(function(){var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?s.isErrorNoTelemetry(e)?new s(e.message+` `+e.stack):Error(e.message+` `+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){a(e)||n.onUnexpectedError(e)}function i(e){if(e instanceof Error){let{name:t,message:n,cause:r}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:s.isErrorNoTelemetry(e),cause:r?i(r):void 0,code:e.code}}return e}function a(e){return e instanceof o?!0:e instanceof Error&&e.name===`Canceled`&&e.message===`Canceled`}var o=class extends Error{constructor(){super(`Canceled`),this.name=this.message}},s=class e extends Error{constructor(e){super(e),this.name=`CodeExpectedError`}static fromError(t){if(t instanceof e)return t;let n=new e;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(e){return e.name===`CodeExpectedError`}},c=class e extends Error{constructor(t){super(t||`An unexpected bug occurred.`),Object.setPrototypeOf(this,e.prototype)}};function l(e,t=`Unreachable`){throw Error(t)}function u(e,t=`unexpected state`){if(!e)throw typeof t==`string`?new c(`Assertion Failed: ${t}`):t}function d(e){e()||(e(),r(new c(`Assertion Failed`)))}function f(e,t){let n=0;for(;n=0;t--)yield e[t]}e.reverse=s;function c(e){return!e||e[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(e){return e[Symbol.iterator]().next().value}e.first=l;function u(e,t){let n=0;for(let r of e)if(t(r,n++))return!0;return!1}e.some=u;function d(e,t){let n=0;for(let r of e)if(!t(r,n++))return!1;return!0}e.every=d;function f(e,t){for(let n of e)if(t(n))return n}e.find=f;function*p(e,t){for(let n of e)t(n)&&(yield n)}e.filter=p;function*h(e,t){let n=0;for(let r of e)yield t(r,n++)}e.map=h;function*g(e,t){let n=0;for(let r of e)yield*t(r,n++)}e.flatMap=g;function*_(...e){for(let t of e)m(t)?yield*t:yield t}e.concat=_;function v(e,t,n){let r=n;for(let n of e)r=t(r,n);return r}e.reduce=v;function y(e){let t=0;for(let n of e)t++;return t}e.length=y;function*b(e,t,n=e.length){for(t<-e.length&&(t=0),t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t1)throw AggregateError(t,`Encountered errors while disposing of store`);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function _(...e){return y(()=>g(e))}var v=class{constructor(e){this._isDisposed=!1,this._fn=e}dispose(){if(!this._isDisposed){if(!this._fn)throw Error(`Unbound disposable context: Need to use an arrow function to preserve the value of this`);this._isDisposed=!0,this._fn()}}};function y(e){return new v(e)}var b=class e{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{g(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t||t===x.None)return t;if(t===this)throw Error(`Cannot register a disposable on itself!`);return this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(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}delete(e){if(e){if(e===this)throw Error(`Cannot dispose a disposable on itself!`);this._toDispose.delete(e),e.dispose()}}},x=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new b,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw Error(`Cannot register a disposable on itself!`);return this._store.add(e)}},S=class e{static{this.Undefined=new e(void 0)}constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}},C=class{constructor(){this._first=S.Undefined,this._last=S.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===S.Undefined}clear(){let e=this._first;for(;e!==S.Undefined;){let t=e.next;e.prev=S.Undefined,e.next=S.Undefined,e=t}this._first=S.Undefined,this._last=S.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let n=new S(e);if(this._first===S.Undefined)this._first=n,this._last=n;else if(t){let e=this._last;this._last=n,n.prev=e,e.next=n}else{let e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==S.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==S.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==S.Undefined&&e.next!==S.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===S.Undefined&&e.next===S.Undefined?(this._first=S.Undefined,this._last=S.Undefined):e.next===S.Undefined?(this._last=this._last.prev,this._last.next=S.Undefined):e.prev===S.Undefined&&(this._first=this._first.next,this._first.prev=S.Undefined);--this._size}*[Symbol.iterator](){let e=this._first;for(;e!==S.Undefined;)yield e.element,e=e.next}};let w=globalThis.performance.now.bind(globalThis.performance);var T=class e{static create(t){return new e(t)}constructor(e){this._now=e===!1?Date.now:w,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._now()-this._startTime:this._stopTime-this._startTime}},E;(function(e){e.None=()=>x.None;function t(e,t){return f(e,()=>void 0,0,void 0,!0,void 0,t)}e.defer=t;function n(e){return(t,n=null,r)=>{let i=!1,a;return a=e(e=>{if(!i)return a?a.dispose():i=!0,t.call(n,e)},null,r),i&&a.dispose(),a}}e.once=n;function r(t,n){return e.once(e.filter(t,n))}e.onceIf=r;function i(e,t,n){return u((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i),n)}e.map=i;function a(e,t,n){return u((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i),n)}e.forEach=a;function o(e,t,n){return u((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i),n)}e.filter=o;function s(e){return e}e.signal=s;function c(...e){return(t,n=null,r)=>d(_(...e.map(e=>e(e=>t.call(n,e)))),r)}e.any=c;function l(e,t,n,r){let a=n;return i(e,e=>(a=t(a,e),a),r)}e.reduce=l;function u(e,t){let n,r=new re({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function d(e,t){return t instanceof Array?t.push(e):t&&t.add(e),e}function f(e,t,n=100,r=!1,i=!1,a,o){let s,c,l,u=0,d,f=new re({leakWarningThreshold:a,onWillAddFirstListener(){s=e(e=>{u++,c=t(c,e),r&&!l&&(f.fire(c),c=void 0),d=()=>{let e=c;c=void 0,l=void 0,(!r||u>1)&&f.fire(e),u=0},typeof n==`number`?(l&&clearTimeout(l),l=setTimeout(d,n)):l===void 0&&(l=null,queueMicrotask(d))})},onWillRemoveListener(){i&&u>0&&d?.()},onDidRemoveLastListener(){d=void 0,s.dispose()}});return o?.add(f),f.event}e.debounce=f;function p(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)}e.accumulate=p;function m(e,t=(e,t)=>e===t,n){let r=!0,i;return o(e,e=>{let n=r||!t(e,i);return r=!1,i=e,n},n)}e.latch=m;function h(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]}e.split=h;function g(e,t=!1,n=[],r){let i=n.slice(),a=e(e=>{i?i.push(e):s.fire(e)});r&&r.add(a);let o=()=>{i?.forEach(e=>s.fire(e)),i=null},s=new re({onWillAddFirstListener(){a||(a=e(e=>s.fire(e)),r&&r.add(a))},onDidAddFirstListener(){i&&(t?setTimeout(o):o())},onDidRemoveLastListener(){a&&a.dispose(),a=null}});return r&&r.add(s),s.event}e.buffer=g;function v(e,t){return(n,r,i)=>{let a=t(new S);return e(function(e){let t=a.evaluate(e);t!==y&&n.call(r,t)},void 0,i)}}e.chain=v;let y=Symbol(`HaltChainable`);class S{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:y),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t=!0,n;return this.steps.push(r=>{let i=t||!e(r,n);return t=!1,n=r,i?r:y}),this}evaluate(e){for(let t of this.steps)if(e=t(e),e===y)break;return e}}function C(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new re({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return i.event}e.fromNodeEventEmitter=C;function w(e,t,n=e=>e){let r=(...e)=>i.fire(n(...e)),i=new re({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return i.event}e.fromDOMEventEmitter=w;function T(e,t){let r,i=new Promise((i,a)=>{let o=n(e)(i,null,t);r=()=>o.dispose()});return i.cancel=r,i}e.toPromise=T;function E(e,t){return e(e=>t.fire(e))}e.forward=E;function D(e,t,n){return t(n),e(e=>t(e))}e.runAndSubscribe=D;class O{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1,this.emitter=new re({onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}}),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function k(e,t){return new O(e,t).emitter.event}e.fromObservable=k;function ee(e){return(t,n,r)=>{let i=0,a=!1,o={beginUpdate(){i++},endUpdate(){i--,i===0&&(e.reportChanges(),a&&(a=!1,t.call(n)))},handlePossibleChange(){},handleChange(){a=!0}};e.addObserver(o),e.reportChanges();let s={dispose(){e.removeObserver(o)}};return r instanceof b?r.add(s):Array.isArray(r)&&r.push(s),s}}e.fromObservableLight=ee})(E||={});var D=class e{static{this.all=new Set}static{this._idPool=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(e){this._stopWatch=new T,this.listenerCount=e}stop(){if(this._stopWatch){let e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}},O=class e{static{this._idPool=1}constructor(t,n,r=(e._idPool++).toString(16).padStart(3,`0`)){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){let n=this.threshold;if(n<=0||t{let t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(let[n,r]of this._stacks)(!e||t{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);let t=this._leakageMon.getMostFrequentStack()??[`UNKNOWN stack`,-1],n=new te(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||r)(n),x.None}if(this._disposed)return x.None;t&&(e=e.bind(t));let i=new ne(e),a;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=k.create(),a=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof ne?(this._deliveryQueue??=new ie,this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._options?.onDidAddListener?.(this),this._size++;let o=y(()=>{a?.(),this._removeListener(i)});return n instanceof b?n.add(o):Array.isArray(n)&&n.push(o),o},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}let t=this._listeners,n=t.indexOf(e);if(n===-1)throw console.log(`disposed?`,this._disposed),console.log(`size?`,this._size),console.log(`arr?`,JSON.stringify(this._listeners)),Error(`Attempted to dispose unknown listener`);this._size--,t[n]=void 0;let r=this._deliveryQueue.current===this;if(this._size*2<=t.length){let e=0;for(let n=0;n0}},ie=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function ae(){return globalThis._VSCODE_NLS_MESSAGES}function A(){return globalThis._VSCODE_NLS_LANGUAGE}let j=A()===`pseudo`||typeof document<`u`&&document.location&&typeof document.location.hash==`string`&&document.location.hash.indexOf(`pseudo=true`)>=0;function M(e,t){let n;return n=t.length===0?e:e.replace(/\{(\d+)\}/g,(e,n)=>{let r=t[n[0]],i=e;return typeof r==`string`?i=r:(typeof r==`number`||typeof r==`boolean`||r==null)&&(i=String(r)),i}),j&&(n=`[`+n.replace(/[aouei]/g,`$&$&`)+`]`),n}function N(e,t,...n){return M(typeof e==`number`?oe(e,t):t,n)}function oe(e,t){let n=ae()?.[e];if(typeof n!=`string`){if(typeof t==`string`)return t;throw Error(`!!! NLS MISSING: ${e} !!!`)}return n}let se=!1,ce=!1,P=!1,le=!1,F,ue=globalThis,de;ue.vscode!==void 0&&ue.vscode.process!==void 0?de=ue.vscode.process:typeof process<`u`&&typeof process?.versions?.node==`string`&&(de=process);let fe=typeof de?.versions?.electron==`string`&&de?.type===`renderer`;if(typeof de==`object`){se=de.platform===`win32`,ce=de.platform===`darwin`,P=de.platform===`linux`,P&&de.env.SNAP&&de.env.SNAP_REVISION,de.env.CI||de.env.BUILD_ARTIFACTSTAGINGDIRECTORY||de.env.GITHUB_WORKSPACE;let e=de.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e);t.userLocale,t.osLocale,t.resolvedLanguage,t.languagePack?.translationsConfigFile}catch{}}else typeof navigator==`object`&&!fe?(F=navigator.userAgent,se=F.indexOf(`Windows`)>=0,ce=F.indexOf(`Macintosh`)>=0,(F.indexOf(`Macintosh`)>=0||F.indexOf(`iPad`)>=0||F.indexOf(`iPhone`)>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints,P=F.indexOf(`Linux`)>=0,F?.indexOf(`Mobi`),le=!0,A(),navigator.language.toLowerCase()):console.error(`Unable to resolve platform.`);let pe=se,me=ce;le&&typeof ue.importScripts==`function`&&ue.origin;let he=F,ge=typeof ue.postMessage==`function`&&!ue.importScripts;(()=>{if(ge){let e=[];ue.addEventListener(`message`,t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n{let r=++t;e.push({id:r,callback:n}),ue.postMessage({vscodeScheduleAsyncWork:r},`*`)}}return e=>setTimeout(e)})();let _e=!!(he&&he.indexOf(`Chrome`)>=0);he&&he.indexOf(`Firefox`),!_e&&he&&he.indexOf(`Safari`),he&&he.indexOf(`Edg/`),he&&he.indexOf(`Android`);function ve(e){return e}var ye=class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,typeof e==`function`?(this._fn=e,this._computeKey=ve):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){let t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}},be;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Running=1]=`Running`,e[e.Completed=2]=`Completed`})(be||={});var xe=class{constructor(e){this.executor=e,this._state=be.Uninitialized}get value(){if(this._state===be.Uninitialized){this._state=be.Running;try{this._value=this.executor()}catch(e){this._error=e}finally{this._state=be.Completed}}else if(this._state===be.Running)throw Error(`Cannot read the value of a lazy that is being initialized`);if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};function Se(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,`\\$&`)}function Ce(e){return e.source===`^`||e.source===`^$`||e.source===`$`||e.source===`^\\s*$`?!1:!!(e.exec(``)&&e.lastIndex===0)}function I(e){return e.split(/\r\n|\r|\n/)}function we(e){for(let t=0,n=e.length;t=0;n--){let t=e.charCodeAt(n);if(t!==32&&t!==9)return n}return-1}function Ee(e){return e>=65&&e<=90}function De(e,t){let n=Math.min(e.length,t.length),r;for(r=0;rt[3*r+1])r=2*r+1;else return t[3*r+2];return 0}});function Fe(){return JSON.parse(`[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]`)}var Ie=class e{static{this.ambiguousCharacterData=new xe(()=>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,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,1523,96,8242,96,1370,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,118002,50,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,118003,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,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,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,118008,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,118009,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,117974,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,117975,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,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,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,117977,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,117978,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,117979,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,117980,71,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,117981,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,117983,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,117984,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,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,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,117985,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,117986,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,117987,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,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,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,117989,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,117990,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,117991,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,117992,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,117993,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,117994,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,117995,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,71910,87,71919,87,117996,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,117997,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,117998,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,71909,90,66293,90,65338,90,8484,90,8488,90,117999,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,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,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,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,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,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[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,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,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,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,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,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,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,65292,44,65297,49,65307,59,65311,63],"pl":[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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,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,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,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,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,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,65297,49],"zh-hant":[8211,45,65374,126,8218,44,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]}`))}static{this.cache=new ye({getCacheKey:JSON.stringify},t=>{function n(e){let t=new Map;for(let n=0;n!e.startsWith(`_`)&&Object.hasOwn(a,e));o.length===0&&(o=[`_default`]);let s;for(let e of o){let t=n(a[e]);s=i(s,t)}return new e(r(n(a._common),s))})}static getInstance(t){return e.cache.get(Array.from(t))}static{this._locales=new xe(()=>Object.keys(e.ambiguousCharacterData.value).filter(e=>!e.startsWith(`_`)))}static getLocales(){return e._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}},Le=class e{static getRawData(){return JSON.parse(`{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,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,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],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}`)}static{this._data=void 0}static getData(){return this._data||=new Set([...Object.values(e.getRawData())].flat()),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};let Re=`default`;var ze=class{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.method=r,this.args=i,this.type=0}},Be=class{constructor(e,t,n,r){this.vsWorker=e,this.seq=t,this.res=n,this.err=r,this.type=1}},Ve=class{constructor(e,t,n,r,i){this.vsWorker=e,this.req=t,this.channel=n,this.eventName=r,this.arg=i,this.type=2}},He=class{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}},Ue=class{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}},We=class{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}async sendMessage(e,t,n){let r=String(++this._lastSentReq);return new Promise((i,a)=>{this._pendingReplies[r]={resolve:i,reject:a},this._send(new ze(this._workerId,r,e,t,n))})}listen(e,t,n){let r=null,i=new re({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Ve(this._workerId,r,e,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Ue(this._workerId,r)),r=null}});return i.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}createProxyToRemoteChannel(e,t){return new Proxy(Object.create(null),{get:(n,r)=>(typeof r==`string`&&!n[r]&&(Ge(r)?n[r]=t=>this.listen(e,r,t):L(r)?n[r]=this.listen(e,r,void 0):r.charCodeAt(0)===36&&(n[r]=async(...n)=>(await t?.(),this.sendMessage(e,r,n)))),n[r])})}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn(`Got reply to unknown seq`);return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;if(e.err.$isError){let t=Error();t.name=e.err.name,t.message=e.err.message,t.stack=e.err.stack,n=t}t.reject(n);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.channel,e.method,e.args).then(e=>{this._send(new Be(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=i(e.detail)),this._send(new Be(this._workerId,t,void 0,i(e)))})}_handleSubscribeEventMessage(e){let t=e.req,n=this._handler.handleEvent(e.channel,e.eventName,e.arg)(e=>{this._send(new He(this._workerId,t,e))});this._pendingEvents.set(t,n)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn(`Got event for unknown req`);return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn(`Got unsubscribe for unknown req`);return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(e.type===0)for(let n=0;n{e(t,n)},handleMessage:(e,t,n)=>this._handleMessage(e,t,n),handleEvent:(e,t,n)=>this._handleEvent(e,t,n)}),this.requestHandler=t(this)}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t,n){if(e===Re&&t===`$initialize`)return this.initialize(n[0]);let r=e===Re?this.requestHandler:this._localChannels.get(e);if(!r)return Promise.reject(Error(`Missing channel ${e} on worker thread`));let i=r[t];if(typeof i!=`function`)return Promise.reject(Error(`Missing method ${t} on worker thread channel ${e}`));try{return Promise.resolve(i.apply(r,n))}catch(e){return Promise.reject(e)}}_handleEvent(e,t,n){let r=e===Re?this.requestHandler:this._localChannels.get(e);if(!r)throw Error(`Missing channel ${e} on worker thread`);if(Ge(t)){let e=r[t];if(typeof e!=`function`)throw Error(`Missing dynamic event ${t} on request handler.`);let i=e.call(r,n);if(typeof i!=`function`)throw Error(`Missing dynamic event ${t} on request handler.`);return i}if(L(t)){let e=r[t];if(typeof e!=`function`)throw Error(`Missing event ${t} on request handler.`);return e}throw Error(`Malformed event name ${t}`)}getChannel(e){if(!this._remoteChannels.has(e)){let t=this._protocol.createProxyToRemoteChannel(e);this._remoteChannels.set(e,t)}return this._remoteChannels.get(e)}async initialize(e){this._protocol.setWorkerId(e)}};let qe=!1;function Je(e){if(qe)throw Error(`WebWorker already initialized!`);qe=!0;let t=new Ke(e=>globalThis.postMessage(e),t=>e(t));return globalThis.onmessage=e=>{t.onmessage(e.data)},t}var Ye=class{constructor(e,t,n,r){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};let Xe=typeof Buffer<`u`;new xe(()=>new Uint8Array(256));let Ze;var Qe=class e{static wrap(t){return Xe&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new e(t)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return Xe?this.buffer.toString():(Ze||=new TextDecoder,Ze.decode(this.buffer))}};let $e=`0123456789abcdef`;function et({buffer:e}){let t=``;for(let n=0;n>>4],t+=$e[r&15]}return t}function tt(e,t){return(t<<5)-t+e|0}function nt(e,t){t=tt(149417,t);for(let n=0,r=e.length;n>>r)>>>0}function it(e,t=32){return e instanceof ArrayBuffer?et(Qe.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,`0`)}(class e{static{this._bigBlock32=new DataView(new ArrayBuffer(320))}constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){let t=e.length;if(t===0)return;let n=this._buff,r=this._buffLen,i=this._leftoverHighSurrogate,a,o;for(i===0?(a=e.charCodeAt(0),o=0):(a=i,o=-1,i=0);;){let s=a;if(ke(a))if(o+1>>6,e[t++]=128|(n&63)>>>0):n<65536?(e[t++]=224|(n&61440)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0):(e[t++]=240|(n&1835008)>>>18,e[t++]=128|(n&258048)>>>12,e[t++]=128|(n&4032)>>>6,e[t++]=128|(n&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),it(this._h0)+it(this._h1)+it(this._h2)+it(this._h3)+it(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,this._buff.subarray(this._buffLen).fill(0),this._buffLen>56&&(this._step(),this._buff.fill(0));let e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,n=this._buffDV;for(let e=0;e<64;e+=4)t.setUint32(e,n.getUint32(e,!1),!1);for(let e=64;e<320;e+=4)t.setUint32(e,rt(t.getUint32(e-12,!1)^t.getUint32(e-32,!1)^t.getUint32(e-56,!1)^t.getUint32(e-64,!1),1),!1);let r=this._h0,i=this._h1,a=this._h2,o=this._h3,s=this._h4,c,l,u;for(let e=0;e<80;e++)e<20?(c=i&a|~i&o,l=1518500249):e<40?(c=i^a^o,l=1859775393):e<60?(c=i&a|i&o|a&o,l=2400959708):(c=i^a^o,l=3395469782),u=rt(r,5)+c+s+l+t.getUint32(e*4,!1)&4294967295,s=o,o=a,a=rt(i,30),i=r,r=u;this._h0=this._h0+r&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+o&4294967295,this._h4=this._h4+s&4294967295}});var at=class{constructor(e){this.source=e}getElements(){let e=this.source,t=new Int32Array(e.length);for(let n=0,r=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new Ye(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}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},ut=class e{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;let[i,a,o]=e._getElements(t),[s,c,l]=e._getElements(n);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=a,this._modifiedStringElements=s,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]==`string`}static _getElements(t){let n=t.getElements();if(e._isStringArray(n)){let e=new Int32Array(n.length);for(let t=0,r=n.length;t=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){let i;return n<=r?(st.Assert(e===t+1,`originalStart should only be one more than originalEnd`),i=[new Ye(e,0,n,r-n+1)]):e<=t?(st.Assert(n===r+1,`modifiedStart should only be one more than modifiedEnd`),i=[new Ye(e,t-e+1,n,0)]):(st.Assert(e===t+1,`originalStart should only be one more than originalEnd`),st.Assert(n===r+1,`modifiedStart should only be one more than modifiedEnd`),i=[]),i}let a=[0],o=[0],s=this.ComputeRecursionPoint(e,t,n,r,a,o,i),c=a[0],l=o[0];if(s!==null)return s;if(!i[0]){let a=this.ComputeDiffRecursive(e,c,n,l,i),o=[];return o=i[0]?[new Ye(c+1,t-(c+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(c+1,t,l+1,r,i),this.ConcatenateChanges(a,o)}return[new Ye(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_){let v=null,y=null,b=new lt,x=t,S=n,C=f[0]-h[0]-r,w=-1073741824,T=this.m_forwardHistory.length-1;do{let t=C+e;t===x||t=0&&(c=this.m_forwardHistory[T],e=c[0],x=1,S=c.length-1)}while(--T>=-1);if(v=b.getReverseChanges(),_[0]){let e=f[0]+1,t=h[0]+1;if(v!==null&&v.length>0){let n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new Ye(e,d-e+1,t,m-t+1)]}else{b=new lt,x=a,S=o,C=f[0]-h[0]-s,w=1073741824,T=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let e=C+i;e===x||e=l[e+1]?(u=l[e+1]-1,p=u-C-s,u>w&&b.MarkNextChange(),w=u+1,b.AddOriginalElement(u+1,p+1),C=e+1-i):(u=l[e-1],p=u-C-s,u>w&&b.MarkNextChange(),w=u,b.AddModifiedElement(u+1,p+1),C=e-1-i),T>=0&&(l=this.m_reverseHistory[T],i=l[0],x=1,S=l.length-1)}while(--T>=-1);y=b.getChanges()}return this.ConcatenateChanges(v,y)}ComputeRecursionPoint(e,t,n,r,i,a,o){let s=0,c=0,l=0,u=0,d=0,f=0;e--,n--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let p=t-e+(r-n),m=p+1,h=new Int32Array(m),g=new Int32Array(m),_=r-n,v=t-e,y=e-n,b=t-r,x=(v-_)%2==0;h[_]=e,g[v]=t,o[0]=!1;for(let S=1;S<=p/2+1;S++){let p=0,C=0;l=this.ClipDiagonalBound(_-S,S,_,m),u=this.ClipDiagonalBound(_+S,S,_,m);for(let e=l;e<=u;e+=2){s=e===l||ep+C&&(p=s,C=c),!x&&Math.abs(e-v)<=S-1&&s>=g[e])return i[0]=s,a[0]=c,n<=g[e]&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):null}let w=(p-e+(C-n)-S)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(p,w))return o[0]=!0,i[0]=p,a[0]=C,w>0&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):(e++,n++,[new Ye(e,t-e+1,n,r-n+1)]);d=this.ClipDiagonalBound(v-S,S,v,m),f=this.ClipDiagonalBound(v+S,S,v,m);for(let p=d;p<=f;p+=2){s=p===d||p=g[p+1]?g[p+1]-1:g[p-1],c=s-(p-v)-b;let m=s;for(;s>e&&c>n&&this.ElementsAreEqual(s,c);)s--,c--;if(g[p]=s,x&&Math.abs(p-_)<=S&&s<=h[p])return i[0]=s,a[0]=c,m>=h[p]&&S<=1448?this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o):null}if(S<=1447){let e=new Int32Array(u-l+2);e[0]=_-l+1,ct.Copy2(h,l,e,1,u-l+1),this.m_forwardHistory.push(e),e=new Int32Array(f-d+2),e[0]=v-d+1,ct.Copy2(g,d,e,1,f-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(_,l,u,y,v,d,f,b,h,g,s,t,i,c,r,a,x,o)}PrettifyChanges(e){for(let t=0;t0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){let n=e[t],r=0,i=0;if(t>0){let n=e[t-1];r=n.originalStart+n.originalLength,i=n.modifiedStart+n.modifiedLength}let a=n.originalLength>0,o=n.modifiedLength>0,s=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){let t=n.originalStart-e,l=n.modifiedStart-e;if(tc&&(c=u,s=e)}n.originalStart-=s,n.modifiedStart-=s;let l=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],l)){e[t-1]=l[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,n=e.length;t0&&n>s&&(s=n,c=t,l=e)}return s>0?[c,l]:null}_contiguousSequenceScore(e,t,n){let r=0;for(let i=0;i=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){let n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)}ConcatenateChanges(e,t){let n=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){let r=Array(e.length+t.length-1);return ct.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],ct.Copy(t,1,r,e.length,t.length-1),r}else{let n=Array(e.length+t.length);return ct.Copy(e,0,n,0,e.length),ct.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(st.Assert(e.originalStart<=t.originalStart,`Left change is not less than or equal to right change`),st.Assert(e.modifiedStart<=t.modifiedStart,`Left change is not less than or equal to right change`),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){let r=e.originalStart,i=e.originalLength,a=e.modifiedStart,o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new Ye(r,i,a,o),!0}else return n[0]=null,!1}ClipDiagonalBound(e,t,n,r){if(e>=0&&en||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}isEmpty(){return e.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,n){let r,i,a,o;return n.startLineNumbert.endLineNumber?(a=n.endLineNumber,o=n.endColumn):n.endLineNumber===t.endLineNumber?(a=n.endLineNumber,o=Math.max(n.endColumn,t.endColumn)):(a=t.endLineNumber,o=t.endColumn),new e(r,i,a,o)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,a=t.endLineNumber,o=t.endColumn,s=n.startLineNumber,c=n.startColumn,l=n.endLineNumber,u=n.endColumn;return rl?(a=l,o=u):a===l&&(o=Math.min(o,u)),r>a||r===a&&i>o?null:new e(r,i,a,o)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(e,t){return!e&&!t?!0:!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(e){return new R(e.endLineNumber,e.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(e){return new R(e.startLineNumber,e.startColumn)}toString(){return`[`+this.startLineNumber+`,`+this.startColumn+` -> `+this.endLineNumber+`,`+this.endColumn+`]`}setEndPosition(t,n){return new e(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new e(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(e){return!!e&&typeof e.startLineNumber==`number`&&typeof e.startColumn==`number`&&typeof e.endLineNumber==`number`&&typeof e.endColumn==`number`}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}};function z(e){return e<0?0:e>255?255:e|0}function ft(e){return e<0?0:e>4294967295?4294967295:e|0}var pt=class e{constructor(t){let n=z(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);return t.fill(e),t}set(e,t){let n=z(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}},mt=class{constructor(e,t,n){let r=new Uint8Array(e*t);for(let i=0,a=e*t;it&&(t=a),i>n&&(n=i),o>n&&(n=o)}t++,n++;let r=new mt(n,t,0);for(let t=0,n=e.length;t=this._maxCharCode?0:this._states.get(e,t)}};let gt=null;function _t(){return gt===null&&(gt=new ht([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),gt}let vt=null;function yt(){if(vt===null){vt=new pt(0);for(let e=0;e<36;e++)vt.set(` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…|`.charCodeAt(e),1);for(let e=0;e<4;e++)vt.set(`.,;:`.charCodeAt(e),2)}return vt}var bt=class e{static _createLink(e,t,n,r,i){let a=i-1;do{let n=t.charCodeAt(a);if(e.get(n)!==2)break;a--}while(a>r);if(r>0){let e=t.charCodeAt(r-1),n=t.charCodeAt(a);(e===40&&n===41||e===91&&n===93||e===123&&n===125)&&a--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:a+2},url:t.substring(r,a+1)}}static computeLinks(t,n=_t()){let r=yt(),i=[];for(let a=1,o=t.getLineCount();a<=o;a++){let o=t.getLineContent(a),s=o.length,c=0,l=0,u=0,d=1,f=!1,p=!1,m=!1,h=!1;for(;c=0?(r+=n?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}};let Ct=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var wt;(function(e){function t(t){return t===e.None||t===e.Cancelled||t instanceof Tt?!0:!t||typeof t!=`object`?!1:typeof t.isCancellationRequested==`boolean`&&typeof t.onCancellationRequested==`function`}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:E.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Ct})})(wt||={});var Tt=class{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?Ct:(this._emitter||=new re,this._emitter.event)}dispose(){this._emitter&&=(this._emitter.dispose(),null)}},Et=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||=new Tt,this._token}cancel(){this._token?this._token instanceof Tt&&this._token.cancel():this._token=wt.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof Tt&&this._token.dispose():this._token=wt.None}},Dt=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}};let Ot=new Dt,kt=new Dt,At=new Dt,jt=Array(230),Mt=Object.create(null),Nt=Object.create(null),Pt=[];for(let e=0;e<=193;e++)Pt[e]=-1;(function(){let e=[[1,0,`None`,0,`unknown`,0,`VK_UNKNOWN`,``,``],[1,1,`Hyper`,0,``,0,``,``,``],[1,2,`Super`,0,``,0,``,``,``],[1,3,`Fn`,0,``,0,``,``,``],[1,4,`FnLock`,0,``,0,``,``,``],[1,5,`Suspend`,0,``,0,``,``,``],[1,6,`Resume`,0,``,0,``,``,``],[1,7,`Turbo`,0,``,0,``,``,``],[1,8,`Sleep`,0,``,0,`VK_SLEEP`,``,``],[1,9,`WakeUp`,0,``,0,``,``,``],[0,10,`KeyA`,31,`A`,65,`VK_A`,``,``],[0,11,`KeyB`,32,`B`,66,`VK_B`,``,``],[0,12,`KeyC`,33,`C`,67,`VK_C`,``,``],[0,13,`KeyD`,34,`D`,68,`VK_D`,``,``],[0,14,`KeyE`,35,`E`,69,`VK_E`,``,``],[0,15,`KeyF`,36,`F`,70,`VK_F`,``,``],[0,16,`KeyG`,37,`G`,71,`VK_G`,``,``],[0,17,`KeyH`,38,`H`,72,`VK_H`,``,``],[0,18,`KeyI`,39,`I`,73,`VK_I`,``,``],[0,19,`KeyJ`,40,`J`,74,`VK_J`,``,``],[0,20,`KeyK`,41,`K`,75,`VK_K`,``,``],[0,21,`KeyL`,42,`L`,76,`VK_L`,``,``],[0,22,`KeyM`,43,`M`,77,`VK_M`,``,``],[0,23,`KeyN`,44,`N`,78,`VK_N`,``,``],[0,24,`KeyO`,45,`O`,79,`VK_O`,``,``],[0,25,`KeyP`,46,`P`,80,`VK_P`,``,``],[0,26,`KeyQ`,47,`Q`,81,`VK_Q`,``,``],[0,27,`KeyR`,48,`R`,82,`VK_R`,``,``],[0,28,`KeyS`,49,`S`,83,`VK_S`,``,``],[0,29,`KeyT`,50,`T`,84,`VK_T`,``,``],[0,30,`KeyU`,51,`U`,85,`VK_U`,``,``],[0,31,`KeyV`,52,`V`,86,`VK_V`,``,``],[0,32,`KeyW`,53,`W`,87,`VK_W`,``,``],[0,33,`KeyX`,54,`X`,88,`VK_X`,``,``],[0,34,`KeyY`,55,`Y`,89,`VK_Y`,``,``],[0,35,`KeyZ`,56,`Z`,90,`VK_Z`,``,``],[0,36,`Digit1`,22,`1`,49,`VK_1`,``,``],[0,37,`Digit2`,23,`2`,50,`VK_2`,``,``],[0,38,`Digit3`,24,`3`,51,`VK_3`,``,``],[0,39,`Digit4`,25,`4`,52,`VK_4`,``,``],[0,40,`Digit5`,26,`5`,53,`VK_5`,``,``],[0,41,`Digit6`,27,`6`,54,`VK_6`,``,``],[0,42,`Digit7`,28,`7`,55,`VK_7`,``,``],[0,43,`Digit8`,29,`8`,56,`VK_8`,``,``],[0,44,`Digit9`,30,`9`,57,`VK_9`,``,``],[0,45,`Digit0`,21,`0`,48,`VK_0`,``,``],[1,46,`Enter`,3,`Enter`,13,`VK_RETURN`,``,``],[1,47,`Escape`,9,`Escape`,27,`VK_ESCAPE`,``,``],[1,48,`Backspace`,1,`Backspace`,8,`VK_BACK`,``,``],[1,49,`Tab`,2,`Tab`,9,`VK_TAB`,``,``],[1,50,`Space`,10,`Space`,32,`VK_SPACE`,``,``],[0,51,`Minus`,88,`-`,189,`VK_OEM_MINUS`,`-`,`OEM_MINUS`],[0,52,`Equal`,86,`=`,187,`VK_OEM_PLUS`,`=`,`OEM_PLUS`],[0,53,`BracketLeft`,92,`[`,219,`VK_OEM_4`,`[`,`OEM_4`],[0,54,`BracketRight`,94,`]`,221,`VK_OEM_6`,`]`,`OEM_6`],[0,55,`Backslash`,93,`\\`,220,`VK_OEM_5`,`\\`,`OEM_5`],[0,56,`IntlHash`,0,``,0,``,``,``],[0,57,`Semicolon`,85,`;`,186,`VK_OEM_1`,`;`,`OEM_1`],[0,58,`Quote`,95,`'`,222,`VK_OEM_7`,`'`,`OEM_7`],[0,59,`Backquote`,91,"`",192,`VK_OEM_3`,"`",`OEM_3`],[0,60,`Comma`,87,`,`,188,`VK_OEM_COMMA`,`,`,`OEM_COMMA`],[0,61,`Period`,89,`.`,190,`VK_OEM_PERIOD`,`.`,`OEM_PERIOD`],[0,62,`Slash`,90,`/`,191,`VK_OEM_2`,`/`,`OEM_2`],[1,63,`CapsLock`,8,`CapsLock`,20,`VK_CAPITAL`,``,``],[1,64,`F1`,59,`F1`,112,`VK_F1`,``,``],[1,65,`F2`,60,`F2`,113,`VK_F2`,``,``],[1,66,`F3`,61,`F3`,114,`VK_F3`,``,``],[1,67,`F4`,62,`F4`,115,`VK_F4`,``,``],[1,68,`F5`,63,`F5`,116,`VK_F5`,``,``],[1,69,`F6`,64,`F6`,117,`VK_F6`,``,``],[1,70,`F7`,65,`F7`,118,`VK_F7`,``,``],[1,71,`F8`,66,`F8`,119,`VK_F8`,``,``],[1,72,`F9`,67,`F9`,120,`VK_F9`,``,``],[1,73,`F10`,68,`F10`,121,`VK_F10`,``,``],[1,74,`F11`,69,`F11`,122,`VK_F11`,``,``],[1,75,`F12`,70,`F12`,123,`VK_F12`,``,``],[1,76,`PrintScreen`,0,``,0,``,``,``],[1,77,`ScrollLock`,84,`ScrollLock`,145,`VK_SCROLL`,``,``],[1,78,`Pause`,7,`PauseBreak`,19,`VK_PAUSE`,``,``],[1,79,`Insert`,19,`Insert`,45,`VK_INSERT`,``,``],[1,80,`Home`,14,`Home`,36,`VK_HOME`,``,``],[1,81,`PageUp`,11,`PageUp`,33,`VK_PRIOR`,``,``],[1,82,`Delete`,20,`Delete`,46,`VK_DELETE`,``,``],[1,83,`End`,13,`End`,35,`VK_END`,``,``],[1,84,`PageDown`,12,`PageDown`,34,`VK_NEXT`,``,``],[1,85,`ArrowRight`,17,`RightArrow`,39,`VK_RIGHT`,`Right`,``],[1,86,`ArrowLeft`,15,`LeftArrow`,37,`VK_LEFT`,`Left`,``],[1,87,`ArrowDown`,18,`DownArrow`,40,`VK_DOWN`,`Down`,``],[1,88,`ArrowUp`,16,`UpArrow`,38,`VK_UP`,`Up`,``],[1,89,`NumLock`,83,`NumLock`,144,`VK_NUMLOCK`,``,``],[1,90,`NumpadDivide`,113,`NumPad_Divide`,111,`VK_DIVIDE`,``,``],[1,91,`NumpadMultiply`,108,`NumPad_Multiply`,106,`VK_MULTIPLY`,``,``],[1,92,`NumpadSubtract`,111,`NumPad_Subtract`,109,`VK_SUBTRACT`,``,``],[1,93,`NumpadAdd`,109,`NumPad_Add`,107,`VK_ADD`,``,``],[1,94,`NumpadEnter`,3,``,0,``,``,``],[1,95,`Numpad1`,99,`NumPad1`,97,`VK_NUMPAD1`,``,``],[1,96,`Numpad2`,100,`NumPad2`,98,`VK_NUMPAD2`,``,``],[1,97,`Numpad3`,101,`NumPad3`,99,`VK_NUMPAD3`,``,``],[1,98,`Numpad4`,102,`NumPad4`,100,`VK_NUMPAD4`,``,``],[1,99,`Numpad5`,103,`NumPad5`,101,`VK_NUMPAD5`,``,``],[1,100,`Numpad6`,104,`NumPad6`,102,`VK_NUMPAD6`,``,``],[1,101,`Numpad7`,105,`NumPad7`,103,`VK_NUMPAD7`,``,``],[1,102,`Numpad8`,106,`NumPad8`,104,`VK_NUMPAD8`,``,``],[1,103,`Numpad9`,107,`NumPad9`,105,`VK_NUMPAD9`,``,``],[1,104,`Numpad0`,98,`NumPad0`,96,`VK_NUMPAD0`,``,``],[1,105,`NumpadDecimal`,112,`NumPad_Decimal`,110,`VK_DECIMAL`,``,``],[0,106,`IntlBackslash`,97,`OEM_102`,226,`VK_OEM_102`,``,``],[1,107,`ContextMenu`,58,`ContextMenu`,93,``,``,``],[1,108,`Power`,0,``,0,``,``,``],[1,109,`NumpadEqual`,0,``,0,``,``,``],[1,110,`F13`,71,`F13`,124,`VK_F13`,``,``],[1,111,`F14`,72,`F14`,125,`VK_F14`,``,``],[1,112,`F15`,73,`F15`,126,`VK_F15`,``,``],[1,113,`F16`,74,`F16`,127,`VK_F16`,``,``],[1,114,`F17`,75,`F17`,128,`VK_F17`,``,``],[1,115,`F18`,76,`F18`,129,`VK_F18`,``,``],[1,116,`F19`,77,`F19`,130,`VK_F19`,``,``],[1,117,`F20`,78,`F20`,131,`VK_F20`,``,``],[1,118,`F21`,79,`F21`,132,`VK_F21`,``,``],[1,119,`F22`,80,`F22`,133,`VK_F22`,``,``],[1,120,`F23`,81,`F23`,134,`VK_F23`,``,``],[1,121,`F24`,82,`F24`,135,`VK_F24`,``,``],[1,122,`Open`,0,``,0,``,``,``],[1,123,`Help`,0,``,0,``,``,``],[1,124,`Select`,0,``,0,``,``,``],[1,125,`Again`,0,``,0,``,``,``],[1,126,`Undo`,0,``,0,``,``,``],[1,127,`Cut`,0,``,0,``,``,``],[1,128,`Copy`,0,``,0,``,``,``],[1,129,`Paste`,0,``,0,``,``,``],[1,130,`Find`,0,``,0,``,``,``],[1,131,`AudioVolumeMute`,117,`AudioVolumeMute`,173,`VK_VOLUME_MUTE`,``,``],[1,132,`AudioVolumeUp`,118,`AudioVolumeUp`,175,`VK_VOLUME_UP`,``,``],[1,133,`AudioVolumeDown`,119,`AudioVolumeDown`,174,`VK_VOLUME_DOWN`,``,``],[1,134,`NumpadComma`,110,`NumPad_Separator`,108,`VK_SEPARATOR`,``,``],[0,135,`IntlRo`,115,`ABNT_C1`,193,`VK_ABNT_C1`,``,``],[1,136,`KanaMode`,0,``,0,``,``,``],[0,137,`IntlYen`,0,``,0,``,``,``],[1,138,`Convert`,0,``,0,``,``,``],[1,139,`NonConvert`,0,``,0,``,``,``],[1,140,`Lang1`,0,``,0,``,``,``],[1,141,`Lang2`,0,``,0,``,``,``],[1,142,`Lang3`,0,``,0,``,``,``],[1,143,`Lang4`,0,``,0,``,``,``],[1,144,`Lang5`,0,``,0,``,``,``],[1,145,`Abort`,0,``,0,``,``,``],[1,146,`Props`,0,``,0,``,``,``],[1,147,`NumpadParenLeft`,0,``,0,``,``,``],[1,148,`NumpadParenRight`,0,``,0,``,``,``],[1,149,`NumpadBackspace`,0,``,0,``,``,``],[1,150,`NumpadMemoryStore`,0,``,0,``,``,``],[1,151,`NumpadMemoryRecall`,0,``,0,``,``,``],[1,152,`NumpadMemoryClear`,0,``,0,``,``,``],[1,153,`NumpadMemoryAdd`,0,``,0,``,``,``],[1,154,`NumpadMemorySubtract`,0,``,0,``,``,``],[1,155,`NumpadClear`,131,`Clear`,12,`VK_CLEAR`,``,``],[1,156,`NumpadClearEntry`,0,``,0,``,``,``],[1,0,``,5,`Ctrl`,17,`VK_CONTROL`,``,``],[1,0,``,4,`Shift`,16,`VK_SHIFT`,``,``],[1,0,``,6,`Alt`,18,`VK_MENU`,``,``],[1,0,``,57,`Meta`,91,`VK_COMMAND`,``,``],[1,157,`ControlLeft`,5,``,0,`VK_LCONTROL`,``,``],[1,158,`ShiftLeft`,4,``,0,`VK_LSHIFT`,``,``],[1,159,`AltLeft`,6,``,0,`VK_LMENU`,``,``],[1,160,`MetaLeft`,57,``,0,`VK_LWIN`,``,``],[1,161,`ControlRight`,5,``,0,`VK_RCONTROL`,``,``],[1,162,`ShiftRight`,4,``,0,`VK_RSHIFT`,``,``],[1,163,`AltRight`,6,``,0,`VK_RMENU`,``,``],[1,164,`MetaRight`,57,``,0,`VK_RWIN`,``,``],[1,165,`BrightnessUp`,0,``,0,``,``,``],[1,166,`BrightnessDown`,0,``,0,``,``,``],[1,167,`MediaPlay`,0,``,0,``,``,``],[1,168,`MediaRecord`,0,``,0,``,``,``],[1,169,`MediaFastForward`,0,``,0,``,``,``],[1,170,`MediaRewind`,0,``,0,``,``,``],[1,171,`MediaTrackNext`,124,`MediaTrackNext`,176,`VK_MEDIA_NEXT_TRACK`,``,``],[1,172,`MediaTrackPrevious`,125,`MediaTrackPrevious`,177,`VK_MEDIA_PREV_TRACK`,``,``],[1,173,`MediaStop`,126,`MediaStop`,178,`VK_MEDIA_STOP`,``,``],[1,174,`Eject`,0,``,0,``,``,``],[1,175,`MediaPlayPause`,127,`MediaPlayPause`,179,`VK_MEDIA_PLAY_PAUSE`,``,``],[1,176,`MediaSelect`,128,`LaunchMediaPlayer`,181,`VK_MEDIA_LAUNCH_MEDIA_SELECT`,``,``],[1,177,`LaunchMail`,129,`LaunchMail`,180,`VK_MEDIA_LAUNCH_MAIL`,``,``],[1,178,`LaunchApp2`,130,`LaunchApp2`,183,`VK_MEDIA_LAUNCH_APP2`,``,``],[1,179,`LaunchApp1`,0,``,0,`VK_MEDIA_LAUNCH_APP1`,``,``],[1,180,`SelectTask`,0,``,0,``,``,``],[1,181,`LaunchScreenSaver`,0,``,0,``,``,``],[1,182,`BrowserSearch`,120,`BrowserSearch`,170,`VK_BROWSER_SEARCH`,``,``],[1,183,`BrowserHome`,121,`BrowserHome`,172,`VK_BROWSER_HOME`,``,``],[1,184,`BrowserBack`,122,`BrowserBack`,166,`VK_BROWSER_BACK`,``,``],[1,185,`BrowserForward`,123,`BrowserForward`,167,`VK_BROWSER_FORWARD`,``,``],[1,186,`BrowserStop`,0,``,0,`VK_BROWSER_STOP`,``,``],[1,187,`BrowserRefresh`,0,``,0,`VK_BROWSER_REFRESH`,``,``],[1,188,`BrowserFavorites`,0,``,0,`VK_BROWSER_FAVORITES`,``,``],[1,189,`ZoomToggle`,0,``,0,``,``,``],[1,190,`MailReply`,0,``,0,``,``,``],[1,191,`MailForward`,0,``,0,``,``,``],[1,192,`MailSend`,0,``,0,``,``,``],[1,0,``,114,`KeyInComposition`,229,``,``,``],[1,0,``,116,`ABNT_C2`,194,`VK_ABNT_C2`,``,``],[1,0,``,96,`OEM_8`,223,`VK_OEM_8`,``,``],[1,0,``,0,``,0,`VK_KANA`,``,``],[1,0,``,0,``,0,`VK_HANGUL`,``,``],[1,0,``,0,``,0,`VK_JUNJA`,``,``],[1,0,``,0,``,0,`VK_FINAL`,``,``],[1,0,``,0,``,0,`VK_HANJA`,``,``],[1,0,``,0,``,0,`VK_KANJI`,``,``],[1,0,``,0,``,0,`VK_CONVERT`,``,``],[1,0,``,0,``,0,`VK_NONCONVERT`,``,``],[1,0,``,0,``,0,`VK_ACCEPT`,``,``],[1,0,``,0,``,0,`VK_MODECHANGE`,``,``],[1,0,``,0,``,0,`VK_SELECT`,``,``],[1,0,``,0,``,0,`VK_PRINT`,``,``],[1,0,``,0,``,0,`VK_EXECUTE`,``,``],[1,0,``,0,``,0,`VK_SNAPSHOT`,``,``],[1,0,``,0,``,0,`VK_HELP`,``,``],[1,0,``,0,``,0,`VK_APPS`,``,``],[1,0,``,0,``,0,`VK_PROCESSKEY`,``,``],[1,0,``,0,``,0,`VK_PACKET`,``,``],[1,0,``,0,``,0,`VK_DBE_SBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_DBE_DBCSCHAR`,``,``],[1,0,``,0,``,0,`VK_ATTN`,``,``],[1,0,``,0,``,0,`VK_CRSEL`,``,``],[1,0,``,0,``,0,`VK_EXSEL`,``,``],[1,0,``,0,``,0,`VK_EREOF`,``,``],[1,0,``,0,``,0,`VK_PLAY`,``,``],[1,0,``,0,``,0,`VK_ZOOM`,``,``],[1,0,``,0,``,0,`VK_NONAME`,``,``],[1,0,``,0,``,0,`VK_PA1`,``,``],[1,0,``,0,``,0,`VK_OEM_CLEAR`,``,``]],t=[],n=[];for(let r of e){let[e,i,a,o,s,c,l,u,d]=r;if(n[i]||(n[i]=!0,Mt[a]=i,Nt[a.toLowerCase()]=i,e&&(Pt[i]=o)),!t[o]){if(t[o]=!0,!s)throw Error(`String representation missing for key code ${o} around scan code ${a}`);Ot.define(o,s),kt.define(o,u||s),At.define(o,d||u||s)}c&&(jt[c]=o)}})();var Ft;(function(e){function t(e){return Ot.keyCodeToStr(e)}e.toString=t;function n(e){return Ot.strToKeyCode(e)}e.fromString=n;function r(e){return kt.keyCodeToStr(e)}e.toUserSettingsUS=r;function i(e){return At.keyCodeToStr(e)}e.toUserSettingsGeneral=i;function a(e){return kt.strToKeyCode(e)||At.strToKeyCode(e)}e.fromUserSettings=a;function o(e){if(e>=98&&e<=113)return null;switch(e){case 16:return`Up`;case 18:return`Down`;case 15:return`Left`;case 17:return`Right`}return Ot.keyCodeToStr(e)}e.toElectronAccelerator=o})(Ft||={});function It(e,t){return(e|(t&65535)<<16>>>0)>>>0}let Lt,Rt=globalThis.vscode;if(Rt!==void 0&&Rt.process!==void 0){let e=Rt.process;Lt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else Lt=typeof process<`u`&&typeof process?.versions?.node==`string`?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{}},cwd(){return{}.VSCODE_CWD||process.cwd()}}:{get platform(){return pe?`win32`:me?`darwin`:`linux`},get arch(){},get env(){return{}},cwd(){return`/`}};let zt=Lt.cwd,Bt=Lt.env,Vt=Lt.platform;var Ht=class extends Error{constructor(e,t,n){let r;typeof t==`string`&&t.indexOf(`not `)===0?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;let i=`The "${e}" ${e.indexOf(`.`)===-1?`argument`:`property`} ${r} of type ${t}`;i+=`. Received type ${typeof n}`,super(i),this.code=`ERR_INVALID_ARG_TYPE`}};function Ut(e,t){if(typeof e!=`object`||!e)throw new Ht(t,`Object`,e)}function Wt(e,t){if(typeof e!=`string`)throw new Ht(t,`string`,e)}let Gt=Vt===`win32`;function Kt(e){return e===47||e===92}function qt(e){return e===47}function Jt(e){return e>=65&&e<=90||e>=97&&e<=122}function Yt(e,t,n,r){let i=``,a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l2){let e=i.lastIndexOf(n);e===-1?(i=``,a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(n)),o=l,s=0;continue}else if(i.length!==0){i=``,a=0,o=l,s=0;continue}}t&&(i+=i.length>0?`${n}..`:`..`,a=2)}else i.length>0?i+=`${n}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===46&&s!==-1?++s:s=-1}return i}function Xt(e){return e?`${e[0]===`.`?``:`.`}${e}`:``}function Zt(e,t){Ut(t,`pathObject`);let n=t.dir||t.root,r=t.base||`${t.name||``}${Xt(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}let Qt={resolve(...e){let t=``,n=``,r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],Wt(a,`paths[${i}]`),a.length===0)continue}else t.length===0?a=zt():(a=Bt[`=${t}`]||zt(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===92)&&(a=`${t}\\`));let o=a.length,s=0,c=``,l=!1,u=a.charCodeAt(0);if(o===1)Kt(u)&&(s=1,l=!0);else if(Kt(u))if(l=!0,Kt(a.charCodeAt(1))){let e=2,t=e;for(;e2&&Kt(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${a.slice(s)}\\${n}`,r=l,l&&t.length>0)break}return n=Yt(n,!r,`\\`,Kt),r?`${t}\\${n}`:`${t}${n}`||`.`},normalize(e){Wt(e,`path`);let t=e.length;if(t===0)return`.`;let n=0,r,i=!1,a=e.charCodeAt(0);if(t===1)return qt(a)?`\\`:e;if(Kt(a))if(i=!0,Kt(e.charCodeAt(1))){let i=2,a=i;for(;i2&&Kt(e.charCodeAt(2))&&(i=!0,n=3));let o=n0&&Kt(e.charCodeAt(t-1))&&(o+=`\\`),!i&&r===void 0&&e.includes(`:`)){if(o.length>=2&&Jt(o.charCodeAt(0))&&o.charCodeAt(1)===58)return`.\\${o}`;let n=e.indexOf(`:`);do if(n===t-1||Kt(e.charCodeAt(n+1)))return`.\\${o}`;while((n=e.indexOf(`:`,n+1))!==-1)}return r===void 0?i?`\\${o}`:o:i?`${r}\\${o}`:`${r}${o}`},isAbsolute(e){Wt(e,`path`);let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);return Kt(n)||t>2&&Jt(n)&&e.charCodeAt(1)===58&&Kt(e.charCodeAt(2))},join(...e){if(e.length===0)return`.`;let t,n;for(let r=0;r0&&(t===void 0?t=n=i:t+=`\\${i}`)}if(t===void 0)return`.`;let r=!0,i=0;if(typeof n==`string`&&Kt(n.charCodeAt(0))){++i;let e=n.length;e>1&&Kt(n.charCodeAt(1))&&(++i,e>2&&(Kt(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i=2&&(t=`\\${t.slice(i)}`)}return Qt.normalize(t)},relative(e,t){if(Wt(e,`from`),Wt(t,`to`),e===t)return``;let n=Qt.resolve(e),r=Qt.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return``;if(n.length!==e.length||r.length!==t.length){let e=n.split(`\\`),t=r.split(`\\`);e[e.length-1]===``&&e.pop(),t[t.length-1]===``&&t.pop();let i=e.length,a=t.length,o=io?t.slice(s).join(`\\`):i>o?`..\\`.repeat(i-1-s)+`..`:``:`..\\`.repeat(i-s)+t.slice(s).join(`\\`)}let i=0;for(;ii&&e.charCodeAt(a-1)===92;)a--;let o=a-i,s=0;for(;ss&&t.charCodeAt(c-1)===92;)c--;let l=c-s,u=ou){if(t.charCodeAt(s+f)===92)return r.slice(s+f+1);if(f===2)return r.slice(s+f)}o>u&&(e.charCodeAt(i+f)===92?d=f:f===2&&(d=3)),d===-1&&(d=0)}let p=``;for(f=i+d+1;f<=a;++f)(f===a||e.charCodeAt(f)===92)&&(p+=p.length===0?`..`:`\\..`);return s+=d,p.length>0?`${p}${r.slice(s,c)}`:(r.charCodeAt(s)===92&&++s,r.slice(s,c))},toNamespacedPath(e){if(typeof e!=`string`||e.length===0)return e;let t=Qt.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===92){if(t.charCodeAt(1)===92){let e=t.charCodeAt(2);if(e!==63&&e!==46)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Jt(t.charCodeAt(0))&&t.charCodeAt(1)===58&&t.charCodeAt(2)===92)return`\\\\?\\${t}`;return t},dirname(e){Wt(e,`path`);let t=e.length;if(t===0)return`.`;let n=-1,r=0,i=e.charCodeAt(0);if(t===1)return Kt(i)?e:`.`;if(Kt(i)){if(n=r=1,Kt(e.charCodeAt(1))){let i=2,a=i;for(;i2&&Kt(e.charCodeAt(2))?3:2,r=n);let a=-1,o=!0;for(let n=t-1;n>=r;--n)if(Kt(e.charCodeAt(n))){if(!o){a=n;break}}else o=!1;if(a===-1){if(n===-1)return`.`;a=n}return e.slice(0,a)},basename(e,t){t!==void 0&&Wt(t,`suffix`),Wt(e,`path`);let n=0,r=-1,i=!0,a;if(e.length>=2&&Jt(e.charCodeAt(0))&&e.charCodeAt(1)===58&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=n;--a){let c=e.charCodeAt(a);if(Kt(c)){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=n;--a)if(Kt(e.charCodeAt(a))){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){Wt(e,`path`);let t=0,n=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===58&&Jt(e.charCodeAt(0))&&(t=r=2);for(let s=e.length-1;s>=t;--s){let t=e.charCodeAt(s);if(Kt(t)){if(!a){r=s+1;break}continue}i===-1&&(a=!1,i=s+1),t===46?n===-1?n=s:o!==1&&(o=1):n!==-1&&(o=-1)}return n===-1||i===-1||o===0||o===1&&n===i-1&&n===r+1?``:e.slice(n,i)},format:Zt.bind(null,`\\`),parse(e){Wt(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.length,r=0,i=e.charCodeAt(0);if(n===1)return Kt(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Kt(i)){if(r=1,Kt(e.charCodeAt(1))){let t=2,i=t;for(;t0&&(t.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l){if(i=e.charCodeAt(l),Kt(i)){if(!c){o=l+1;break}continue}s===-1&&(c=!1,s=l+1),i===46?a===-1?a=l:u!==1&&(u=1):a!==-1&&(u=-1)}return s!==-1&&(a===-1||u===0||u===1&&a===s-1&&a===o+1?t.base=t.name=e.slice(o,s):(t.name=e.slice(o,a),t.base=e.slice(o,s),t.ext=e.slice(a,s))),o>0&&o!==r?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:`\\`,delimiter:`;`,win32:null,posix:null},B=(()=>{if(Gt){let e=/\\/g;return()=>{let t=zt().replace(e,`/`);return t.slice(t.indexOf(`/`))}}return()=>zt()})(),$t={resolve(...e){let t=``,n=!1;for(let r=e.length-1;r>=0&&!n;r--){let i=e[r];Wt(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===47)}if(!n){let e=B();t=`${e}/${t}`,n=e.charCodeAt(0)===47}return t=Yt(t,!n,`/`,qt),n?`/${t}`:t.length>0?t:`.`},normalize(e){if(Wt(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=Yt(e,!t,`/`,qt),e.length===0?t?`/`:n?`./`:`.`:(n&&(e+=`/`),t?`/${e}`:e)},isAbsolute(e){return Wt(e,`path`),e.length>0&&e.charCodeAt(0)===47},join(...e){if(e.length===0)return`.`;let t=[];for(let n=0;n0&&t.push(r)}return t.length===0?`.`:$t.normalize(t.join(`/`))},relative(e,t){if(Wt(e,`from`),Wt(t,`to`),e===t||(e=$t.resolve(e),t=$t.resolve(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=ra){if(t.charCodeAt(1+s)===47)return t.slice(1+s+1);if(s===0)return t.slice(1+s)}else r>a&&(e.charCodeAt(1+s)===47?o=s:s===0&&(o=0));let c=``;for(s=1+o+1;s<=n;++s)(s===n||e.charCodeAt(s)===47)&&(c+=c.length===0?`..`:`/..`);return`${c}${t.slice(1+o)}`},toNamespacedPath(e){return e},dirname(e){if(Wt(e,`path`),e.length===0)return`.`;let t=e.charCodeAt(0)===47,n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===47){if(!r){n=t;break}}else r=!1;return n===-1?t?`/`:`.`:t&&n===1?`//`:e.slice(0,n)},basename(e,t){t!==void 0&&Wt(t,`suffix`),Wt(e,`path`);let n=0,r=-1,i=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return``;let o=t.length-1,s=-1;for(a=e.length-1;a>=0;--a){let c=e.charCodeAt(a);if(c===47){if(!i){n=a+1;break}}else s===-1&&(i=!1,s=a+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(r=a):(o=-1,r=s))}return n===r?r=s:r===-1&&(r=e.length),e.slice(n,r)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!i){n=a+1;break}}else r===-1&&(i=!1,r=a+1);return r===-1?``:e.slice(n,r)},extname(e){Wt(e,`path`);let t=-1,n=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){let s=e[o];if(s===`/`){if(!i){n=o+1;break}continue}r===-1&&(i=!1,r=o+1),s===`.`?t===-1?t=o:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||r===-1||a===0||a===1&&t===r-1&&t===n+1?``:e.slice(t,r)},format:Zt.bind(null,`/`),parse(e){Wt(e,`path`);let t={root:``,dir:``,base:``,ext:``,name:``};if(e.length===0)return t;let n=e.charCodeAt(0)===47,r;n?(t.root=`/`,r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){let t=e.charCodeAt(c);if(t===47){if(!s){a=c+1;break}continue}o===-1&&(s=!1,o=c+1),t===46?i===-1?i=c:l!==1&&(l=1):i!==-1&&(l=-1)}if(o!==-1){let r=a===0&&n?1:a;i===-1||l===0||l===1&&i===o-1&&i===a+1?t.base=t.name=e.slice(r,o):(t.name=e.slice(r,i),t.base=e.slice(r,o),t.ext=e.slice(i,o))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir=`/`),t},sep:`/`,delimiter:`:`,win32:null,posix:null};$t.win32=Qt.win32=Qt,$t.posix=Qt.posix=$t,Gt?Qt.normalize:$t.normalize,Gt?Qt.resolve:$t.resolve,Gt?Qt.relative:$t.relative,Gt?Qt.dirname:$t.dirname,Gt?Qt.basename:$t.basename,Gt?Qt.extname:$t.extname,Gt?Qt.sep:$t.sep;let en=/^\w[\w\d+.-]*$/,tn=/^\//,nn=/^\/\//;function rn(e,t){if(!e.scheme&&t)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!en.test(e.scheme))throw Error(`[UriError]: Scheme contains illegal characters.`);if(e.path){if(e.authority){if(!tn.test(e.path))throw 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(nn.test(e.path))throw Error(`[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")`)}}function an(e,t){return!e&&!t?`file`:e}function on(e,t){switch(e){case`https`:case`http`:case`file`:t?t[0]!==sn&&(t=sn+t):t=sn;break}return t}let sn=`/`,cn=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var ln=class e{static isUri(t){return t instanceof e?!0:!t||typeof t!=`object`?!1: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`}constructor(e,t,n,r,i,a=!1){typeof e==`object`?(this.scheme=e.scheme||``,this.authority=e.authority||``,this.path=e.path||``,this.query=e.query||``,this.fragment=e.fragment||``):(this.scheme=an(e,a),this.authority=t||``,this.path=on(this.scheme,n||``),this.query=r||``,this.fragment=i||``,rn(this,a))}get fsPath(){return hn(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:a}=e;return t===void 0?t=this.scheme:t===null&&(t=``),n===void 0?n=this.authority:n===null&&(n=``),r===void 0?r=this.path:r===null&&(r=``),i===void 0?i=this.query:i===null&&(i=``),a===void 0?a=this.fragment:a===null&&(a=``),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new dn(t,n,r,i,a)}static parse(e,t=!1){let n=cn.exec(e);return n?new dn(n[2]||``,yn(n[4]||``),yn(n[5]||``),yn(n[7]||``),yn(n[9]||``),t):new dn(``,``,``,``,``)}static file(e){let t=``;if(pe&&(e=e.replace(/\\/g,`/`)),e[0]===`/`&&e[1]===`/`){let n=e.indexOf(`/`,2);n===-1?(t=e.substring(2),e=`/`):(t=e.substring(2,n),e=e.substring(n)||`/`)}return new dn(`file`,t,e,``,``)}static from(e,t){return new dn(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(t,...n){if(!t.path)throw Error(`[UriError]: cannot call joinPath on URI without path`);let r;return r=pe&&t.scheme===`file`?e.file(Qt.join(hn(t,!0),...n)).path:$t.join(t.path,...n),t.with({path:r})}toString(e=!1){return gn(this,e)}toJSON(){return this}static revive(t){if(!t||t instanceof e)return t;{let e=new dn(t);return e._formatted=t.external??null,e._fsPath=t._sep===un?t.fsPath??null:null,e}}};let un=pe?1:void 0;var dn=class extends ln{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||=hn(this,!1),this._fsPath}toString(e=!1){return e?gn(this,!0):(this._formatted||=gn(this,!1),this._formatted)}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=un),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};let fn={58:`%3A`,47:`%2F`,63:`%3F`,35:`%23`,91:`%5B`,93:`%5D`,64:`%40`,33:`%21`,36:`%24`,38:`%26`,39:`%27`,40:`%28`,41:`%29`,42:`%2A`,43:`%2B`,44:`%2C`,59:`%3B`,61:`%3D`,32:`%20`};function pn(e,t,n){let r,i=-1;for(let a=0;a=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||n&&o===91||n&&o===93||n&&o===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r!==void 0&&(r+=e.charAt(a));else{r===void 0&&(r=e.substr(0,a));let t=fn[o];t===void 0?i===-1&&(i=a):(i!==-1&&(r+=encodeURIComponent(e.substring(i,a)),i=-1),r+=t)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r===void 0?e:r}function mn(e){let t;for(let n=0;n1&&e.scheme===`file`?`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,pe&&(n=n.replace(/\//g,`\\`)),n}function gn(e,t){let n=t?mn:pn,r=``,{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=`:`),(a||i===`file`)&&(r+=`/`,r+=`/`),a){let e=a.indexOf(`@`);if(e!==-1){let t=a.substr(0,e);a=a.substr(e+1),e=t.lastIndexOf(`:`),e===-1?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=`:`,r+=n(t.substr(e+1),!1,!0)),r+=`@`}a=a.toLowerCase(),e=a.lastIndexOf(`:`),e===-1?r+=n(a,!1,!0):(r+=n(a.substr(0,e),!1,!0),r+=a.substr(e))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){let e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){let e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=n(o,!0,!1)}return s&&(r+=`?`,r+=n(s,!1,!1)),c&&(r+=`#`,r+=t?c:pn(c,!1,!1)),r}function _n(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+_n(e.substr(3)):e}}let vn=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function yn(e){return e.match(vn)?e.replace(vn,e=>_n(e)):e}var bn=class e extends dt{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return`[`+this.selectionStartLineNumber+`,`+this.selectionStartColumn+` -> `+this.positionLineNumber+`,`+this.positionColumn+`]`}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,n):new e(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new R(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new R(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new e(t,n,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new e(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){this._factories.get(e)?.dispose();let n=new En(this,e,t);return this._factories.set(e,n),y(()=>{let t=this._factories.get(e);!t||t!==n||(this._factories.delete(e),t.dispose())})}async getOrCreate(e){let t=this.get(e);if(t)return t;let n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;let t=this._factories.get(e);return!!(!t||t.isResolved)}setColorMap(e){this._colorMap=e,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]:null}},En=class extends x{get isResolved(){return this._isResolved}constructor(e,t,n){super(),this._registry=e,this._languageId=t,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||=this._create(),this._resolvePromise}async _create(){let e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}},Dn=class{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return`(`+this.offset+`, `+this.type+`)`}},H;(function(e){e[e.Increase=0]=`Increase`,e[e.Decrease=1]=`Decrease`})(H||={});var On;(function(e){let t=new Map;t.set(0,wn.symbolMethod),t.set(1,wn.symbolFunction),t.set(2,wn.symbolConstructor),t.set(3,wn.symbolField),t.set(4,wn.symbolVariable),t.set(5,wn.symbolClass),t.set(6,wn.symbolStruct),t.set(7,wn.symbolInterface),t.set(8,wn.symbolModule),t.set(9,wn.symbolProperty),t.set(10,wn.symbolEvent),t.set(11,wn.symbolOperator),t.set(12,wn.symbolUnit),t.set(13,wn.symbolValue),t.set(15,wn.symbolEnum),t.set(14,wn.symbolConstant),t.set(15,wn.symbolEnum),t.set(16,wn.symbolEnumMember),t.set(17,wn.symbolKeyword),t.set(28,wn.symbolSnippet),t.set(18,wn.symbolText),t.set(19,wn.symbolColor),t.set(20,wn.symbolFile),t.set(21,wn.symbolReference),t.set(22,wn.symbolCustomColor),t.set(23,wn.symbolFolder),t.set(24,wn.symbolTypeParameter),t.set(25,wn.account),t.set(26,wn.issues),t.set(27,wn.tools);function n(e){let n=t.get(e);return n||=(console.info(`No codicon found for CompletionItemKind `+e),wn.symbolProperty),n}e.toIcon=n;function r(e){switch(e){case 0:return N(728,`Method`);case 1:return N(729,`Function`);case 2:return N(730,`Constructor`);case 3:return N(731,`Field`);case 4:return N(732,`Variable`);case 5:return N(733,`Class`);case 6:return N(734,`Struct`);case 7:return N(735,`Interface`);case 8:return N(736,`Module`);case 9:return N(737,`Property`);case 10:return N(738,`Event`);case 11:return N(739,`Operator`);case 12:return N(740,`Unit`);case 13:return N(741,`Value`);case 14:return N(742,`Constant`);case 15:return N(743,`Enum`);case 16:return N(744,`Enum Member`);case 17:return N(745,`Keyword`);case 18:return N(746,`Text`);case 19:return N(747,`Color`);case 20:return N(748,`File`);case 21:return N(749,`Reference`);case 22:return N(750,`Custom Color`);case 23:return N(751,`Folder`);case 24:return N(752,`Type Parameter`);case 25:return N(753,`User`);case 26:return N(754,`Issue`);case 27:return N(755,`Tool`);case 28:return N(756,`Snippet`);default:return``}}e.toLabel=r;let i=new Map;i.set(`method`,0),i.set(`function`,1),i.set(`constructor`,2),i.set(`field`,3),i.set(`variable`,4),i.set(`class`,5),i.set(`struct`,6),i.set(`interface`,7),i.set(`module`,8),i.set(`property`,9),i.set(`event`,10),i.set(`operator`,11),i.set(`unit`,12),i.set(`value`,13),i.set(`constant`,14),i.set(`enum`,15),i.set(`enum-member`,16),i.set(`enumMember`,16),i.set(`keyword`,17),i.set(`snippet`,28),i.set(`text`,18),i.set(`color`,19),i.set(`file`,20),i.set(`reference`,21),i.set(`customcolor`,22),i.set(`folder`,23),i.set(`type-parameter`,24),i.set(`typeParameter`,24),i.set(`account`,25),i.set(`issue`,26),i.set(`tool`,27);function a(e,t){let n=i.get(e);return n===void 0&&!t&&(n=9),n}e.fromString=a})(On||={});var kn;(function(e){e[e.Automatic=0]=`Automatic`,e[e.Explicit=1]=`Explicit`})(kn||={});var An;(function(e){e[e.Code=1]=`Code`,e[e.Label=2]=`Label`})(An||={});var jn;(function(e){e[e.Accepted=0]=`Accepted`,e[e.Rejected=1]=`Rejected`,e[e.Ignored=2]=`Ignored`})(jn||={});var Mn;(function(e){e[e.Automatic=0]=`Automatic`,e[e.PasteAs=1]=`PasteAs`})(Mn||={});var Nn;(function(e){e[e.Invoke=1]=`Invoke`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`})(Nn||={});var Pn;(function(e){e[e.Text=0]=`Text`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`})(Pn||={}),N(757,`array`),N(758,`boolean`),N(759,`class`),N(760,`constant`),N(761,`constructor`),N(762,`enumeration`),N(763,`enumeration member`),N(764,`event`),N(765,`field`),N(766,`file`),N(767,`function`),N(768,`interface`),N(769,`key`),N(770,`method`),N(771,`module`),N(772,`namespace`),N(773,`null`),N(774,`number`),N(775,`object`),N(776,`operator`),N(777,`package`),N(778,`property`),N(779,`string`),N(780,`struct`),N(781,`type parameter`),N(782,`variable`);var Fn;(function(e){let t=new Map;t.set(0,wn.symbolFile),t.set(1,wn.symbolModule),t.set(2,wn.symbolNamespace),t.set(3,wn.symbolPackage),t.set(4,wn.symbolClass),t.set(5,wn.symbolMethod),t.set(6,wn.symbolProperty),t.set(7,wn.symbolField),t.set(8,wn.symbolConstructor),t.set(9,wn.symbolEnum),t.set(10,wn.symbolInterface),t.set(11,wn.symbolFunction),t.set(12,wn.symbolVariable),t.set(13,wn.symbolConstant),t.set(14,wn.symbolString),t.set(15,wn.symbolNumber),t.set(16,wn.symbolBoolean),t.set(17,wn.symbolArray),t.set(18,wn.symbolObject),t.set(19,wn.symbolKey),t.set(20,wn.symbolNull),t.set(21,wn.symbolEnumMember),t.set(22,wn.symbolStruct),t.set(23,wn.symbolEvent),t.set(24,wn.symbolOperator),t.set(25,wn.symbolTypeParameter);function n(e){let n=t.get(e);return n||=(console.info(`No codicon found for SymbolKind `+e),wn.symbolProperty),n}e.toIcon=n;let r=new Map;r.set(0,20),r.set(1,8),r.set(2,8),r.set(3,8),r.set(4,5),r.set(5,0),r.set(6,9),r.set(7,3),r.set(8,2),r.set(9,15),r.set(10,7),r.set(11,1),r.set(12,4),r.set(13,14),r.set(14,18),r.set(15,13),r.set(16,13),r.set(17,13),r.set(18,13),r.set(19,17),r.set(20,13),r.set(21,16),r.set(22,6),r.set(23,10),r.set(24,11),r.set(25,24);function i(e){let t=r.get(e);return t===void 0&&(console.info(`No completion kind found for SymbolKind `+e),t=20),t}e.toCompletionKind=i})(Fn||={}),class e{static{this.Comment=new e(`comment`)}static{this.Imports=new e(`imports`)}static{this.Region=new e(`region`)}static fromValue(t){switch(t){case`comment`:return e.Comment;case`imports`:return e.Imports;case`region`:return e.Region}return new e(t)}constructor(e){this.value=e}};var In;(function(e){e[e.AIGenerated=1]=`AIGenerated`})(In||={});var Ln;(function(e){e[e.Invoke=0]=`Invoke`,e[e.Automatic=1]=`Automatic`})(Ln||={});var Rn;(function(e){function t(e){return!e||typeof e!=`object`?!1:typeof e.id==`string`&&typeof e.title==`string`}e.is=t})(Rn||={});var zn;(function(e){e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`})(zn||={}),new Tn;var Bn;(function(e){e[e.Unknown=0]=`Unknown`,e[e.Disabled=1]=`Disabled`,e[e.Enabled=2]=`Enabled`})(Bn||={});var Vn;(function(e){e[e.Invoke=1]=`Invoke`,e[e.Auto=2]=`Auto`})(Vn||={});var Hn;(function(e){e[e.None=0]=`None`,e[e.KeepWhitespace=1]=`KeepWhitespace`,e[e.InsertAsSnippet=4]=`InsertAsSnippet`})(Hn||={});var Un;(function(e){e[e.Method=0]=`Method`,e[e.Function=1]=`Function`,e[e.Constructor=2]=`Constructor`,e[e.Field=3]=`Field`,e[e.Variable=4]=`Variable`,e[e.Class=5]=`Class`,e[e.Struct=6]=`Struct`,e[e.Interface=7]=`Interface`,e[e.Module=8]=`Module`,e[e.Property=9]=`Property`,e[e.Event=10]=`Event`,e[e.Operator=11]=`Operator`,e[e.Unit=12]=`Unit`,e[e.Value=13]=`Value`,e[e.Constant=14]=`Constant`,e[e.Enum=15]=`Enum`,e[e.EnumMember=16]=`EnumMember`,e[e.Keyword=17]=`Keyword`,e[e.Text=18]=`Text`,e[e.Color=19]=`Color`,e[e.File=20]=`File`,e[e.Reference=21]=`Reference`,e[e.Customcolor=22]=`Customcolor`,e[e.Folder=23]=`Folder`,e[e.TypeParameter=24]=`TypeParameter`,e[e.User=25]=`User`,e[e.Issue=26]=`Issue`,e[e.Tool=27]=`Tool`,e[e.Snippet=28]=`Snippet`})(Un||={});var Wn;(function(e){e[e.Deprecated=1]=`Deprecated`})(Wn||={});var Gn;(function(e){e[e.Invoke=0]=`Invoke`,e[e.TriggerCharacter=1]=`TriggerCharacter`,e[e.TriggerForIncompleteCompletions=2]=`TriggerForIncompleteCompletions`})(Gn||={});var Kn;(function(e){e[e.EXACT=0]=`EXACT`,e[e.ABOVE=1]=`ABOVE`,e[e.BELOW=2]=`BELOW`})(Kn||={});var qn;(function(e){e[e.NotSet=0]=`NotSet`,e[e.ContentFlush=1]=`ContentFlush`,e[e.RecoverFromMarkers=2]=`RecoverFromMarkers`,e[e.Explicit=3]=`Explicit`,e[e.Paste=4]=`Paste`,e[e.Undo=5]=`Undo`,e[e.Redo=6]=`Redo`})(qn||={});var Jn;(function(e){e[e.LF=1]=`LF`,e[e.CRLF=2]=`CRLF`})(Jn||={});var Yn;(function(e){e[e.Text=0]=`Text`,e[e.Read=1]=`Read`,e[e.Write=2]=`Write`})(Yn||={});var Xn;(function(e){e[e.None=0]=`None`,e[e.Keep=1]=`Keep`,e[e.Brackets=2]=`Brackets`,e[e.Advanced=3]=`Advanced`,e[e.Full=4]=`Full`})(Xn||={});var Zn;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]=`acceptSuggestionOnCommitCharacter`,e[e.acceptSuggestionOnEnter=1]=`acceptSuggestionOnEnter`,e[e.accessibilitySupport=2]=`accessibilitySupport`,e[e.accessibilityPageSize=3]=`accessibilityPageSize`,e[e.allowOverflow=4]=`allowOverflow`,e[e.allowVariableLineHeights=5]=`allowVariableLineHeights`,e[e.allowVariableFonts=6]=`allowVariableFonts`,e[e.allowVariableFontsInAccessibilityMode=7]=`allowVariableFontsInAccessibilityMode`,e[e.ariaLabel=8]=`ariaLabel`,e[e.ariaRequired=9]=`ariaRequired`,e[e.autoClosingBrackets=10]=`autoClosingBrackets`,e[e.autoClosingComments=11]=`autoClosingComments`,e[e.screenReaderAnnounceInlineSuggestion=12]=`screenReaderAnnounceInlineSuggestion`,e[e.autoClosingDelete=13]=`autoClosingDelete`,e[e.autoClosingOvertype=14]=`autoClosingOvertype`,e[e.autoClosingQuotes=15]=`autoClosingQuotes`,e[e.autoIndent=16]=`autoIndent`,e[e.autoIndentOnPaste=17]=`autoIndentOnPaste`,e[e.autoIndentOnPasteWithinString=18]=`autoIndentOnPasteWithinString`,e[e.automaticLayout=19]=`automaticLayout`,e[e.autoSurround=20]=`autoSurround`,e[e.bracketPairColorization=21]=`bracketPairColorization`,e[e.guides=22]=`guides`,e[e.codeLens=23]=`codeLens`,e[e.codeLensFontFamily=24]=`codeLensFontFamily`,e[e.codeLensFontSize=25]=`codeLensFontSize`,e[e.colorDecorators=26]=`colorDecorators`,e[e.colorDecoratorsLimit=27]=`colorDecoratorsLimit`,e[e.columnSelection=28]=`columnSelection`,e[e.comments=29]=`comments`,e[e.contextmenu=30]=`contextmenu`,e[e.copyWithSyntaxHighlighting=31]=`copyWithSyntaxHighlighting`,e[e.cursorBlinking=32]=`cursorBlinking`,e[e.cursorSmoothCaretAnimation=33]=`cursorSmoothCaretAnimation`,e[e.cursorStyle=34]=`cursorStyle`,e[e.cursorSurroundingLines=35]=`cursorSurroundingLines`,e[e.cursorSurroundingLinesStyle=36]=`cursorSurroundingLinesStyle`,e[e.cursorWidth=37]=`cursorWidth`,e[e.cursorHeight=38]=`cursorHeight`,e[e.disableLayerHinting=39]=`disableLayerHinting`,e[e.disableMonospaceOptimizations=40]=`disableMonospaceOptimizations`,e[e.domReadOnly=41]=`domReadOnly`,e[e.dragAndDrop=42]=`dragAndDrop`,e[e.dropIntoEditor=43]=`dropIntoEditor`,e[e.editContext=44]=`editContext`,e[e.emptySelectionClipboard=45]=`emptySelectionClipboard`,e[e.experimentalGpuAcceleration=46]=`experimentalGpuAcceleration`,e[e.experimentalWhitespaceRendering=47]=`experimentalWhitespaceRendering`,e[e.extraEditorClassName=48]=`extraEditorClassName`,e[e.fastScrollSensitivity=49]=`fastScrollSensitivity`,e[e.find=50]=`find`,e[e.fixedOverflowWidgets=51]=`fixedOverflowWidgets`,e[e.folding=52]=`folding`,e[e.foldingStrategy=53]=`foldingStrategy`,e[e.foldingHighlight=54]=`foldingHighlight`,e[e.foldingImportsByDefault=55]=`foldingImportsByDefault`,e[e.foldingMaximumRegions=56]=`foldingMaximumRegions`,e[e.unfoldOnClickAfterEndOfLine=57]=`unfoldOnClickAfterEndOfLine`,e[e.fontFamily=58]=`fontFamily`,e[e.fontInfo=59]=`fontInfo`,e[e.fontLigatures=60]=`fontLigatures`,e[e.fontSize=61]=`fontSize`,e[e.fontWeight=62]=`fontWeight`,e[e.fontVariations=63]=`fontVariations`,e[e.formatOnPaste=64]=`formatOnPaste`,e[e.formatOnType=65]=`formatOnType`,e[e.glyphMargin=66]=`glyphMargin`,e[e.gotoLocation=67]=`gotoLocation`,e[e.hideCursorInOverviewRuler=68]=`hideCursorInOverviewRuler`,e[e.hover=69]=`hover`,e[e.inDiffEditor=70]=`inDiffEditor`,e[e.inlineSuggest=71]=`inlineSuggest`,e[e.letterSpacing=72]=`letterSpacing`,e[e.lightbulb=73]=`lightbulb`,e[e.lineDecorationsWidth=74]=`lineDecorationsWidth`,e[e.lineHeight=75]=`lineHeight`,e[e.lineNumbers=76]=`lineNumbers`,e[e.lineNumbersMinChars=77]=`lineNumbersMinChars`,e[e.linkedEditing=78]=`linkedEditing`,e[e.links=79]=`links`,e[e.matchBrackets=80]=`matchBrackets`,e[e.minimap=81]=`minimap`,e[e.mouseStyle=82]=`mouseStyle`,e[e.mouseWheelScrollSensitivity=83]=`mouseWheelScrollSensitivity`,e[e.mouseWheelZoom=84]=`mouseWheelZoom`,e[e.multiCursorMergeOverlapping=85]=`multiCursorMergeOverlapping`,e[e.multiCursorModifier=86]=`multiCursorModifier`,e[e.mouseMiddleClickAction=87]=`mouseMiddleClickAction`,e[e.multiCursorPaste=88]=`multiCursorPaste`,e[e.multiCursorLimit=89]=`multiCursorLimit`,e[e.occurrencesHighlight=90]=`occurrencesHighlight`,e[e.occurrencesHighlightDelay=91]=`occurrencesHighlightDelay`,e[e.overtypeCursorStyle=92]=`overtypeCursorStyle`,e[e.overtypeOnPaste=93]=`overtypeOnPaste`,e[e.overviewRulerBorder=94]=`overviewRulerBorder`,e[e.overviewRulerLanes=95]=`overviewRulerLanes`,e[e.padding=96]=`padding`,e[e.pasteAs=97]=`pasteAs`,e[e.parameterHints=98]=`parameterHints`,e[e.peekWidgetDefaultFocus=99]=`peekWidgetDefaultFocus`,e[e.placeholder=100]=`placeholder`,e[e.definitionLinkOpensInPeek=101]=`definitionLinkOpensInPeek`,e[e.quickSuggestions=102]=`quickSuggestions`,e[e.quickSuggestionsDelay=103]=`quickSuggestionsDelay`,e[e.readOnly=104]=`readOnly`,e[e.readOnlyMessage=105]=`readOnlyMessage`,e[e.renameOnType=106]=`renameOnType`,e[e.renderRichScreenReaderContent=107]=`renderRichScreenReaderContent`,e[e.renderControlCharacters=108]=`renderControlCharacters`,e[e.renderFinalNewline=109]=`renderFinalNewline`,e[e.renderLineHighlight=110]=`renderLineHighlight`,e[e.renderLineHighlightOnlyWhenFocus=111]=`renderLineHighlightOnlyWhenFocus`,e[e.renderValidationDecorations=112]=`renderValidationDecorations`,e[e.renderWhitespace=113]=`renderWhitespace`,e[e.revealHorizontalRightPadding=114]=`revealHorizontalRightPadding`,e[e.roundedSelection=115]=`roundedSelection`,e[e.rulers=116]=`rulers`,e[e.scrollbar=117]=`scrollbar`,e[e.scrollBeyondLastColumn=118]=`scrollBeyondLastColumn`,e[e.scrollBeyondLastLine=119]=`scrollBeyondLastLine`,e[e.scrollPredominantAxis=120]=`scrollPredominantAxis`,e[e.selectionClipboard=121]=`selectionClipboard`,e[e.selectionHighlight=122]=`selectionHighlight`,e[e.selectionHighlightMaxLength=123]=`selectionHighlightMaxLength`,e[e.selectionHighlightMultiline=124]=`selectionHighlightMultiline`,e[e.selectOnLineNumbers=125]=`selectOnLineNumbers`,e[e.showFoldingControls=126]=`showFoldingControls`,e[e.showUnused=127]=`showUnused`,e[e.snippetSuggestions=128]=`snippetSuggestions`,e[e.smartSelect=129]=`smartSelect`,e[e.smoothScrolling=130]=`smoothScrolling`,e[e.stickyScroll=131]=`stickyScroll`,e[e.stickyTabStops=132]=`stickyTabStops`,e[e.stopRenderingLineAfter=133]=`stopRenderingLineAfter`,e[e.suggest=134]=`suggest`,e[e.suggestFontSize=135]=`suggestFontSize`,e[e.suggestLineHeight=136]=`suggestLineHeight`,e[e.suggestOnTriggerCharacters=137]=`suggestOnTriggerCharacters`,e[e.suggestSelection=138]=`suggestSelection`,e[e.tabCompletion=139]=`tabCompletion`,e[e.tabIndex=140]=`tabIndex`,e[e.trimWhitespaceOnDelete=141]=`trimWhitespaceOnDelete`,e[e.unicodeHighlighting=142]=`unicodeHighlighting`,e[e.unusualLineTerminators=143]=`unusualLineTerminators`,e[e.useShadowDOM=144]=`useShadowDOM`,e[e.useTabStops=145]=`useTabStops`,e[e.wordBreak=146]=`wordBreak`,e[e.wordSegmenterLocales=147]=`wordSegmenterLocales`,e[e.wordSeparators=148]=`wordSeparators`,e[e.wordWrap=149]=`wordWrap`,e[e.wordWrapBreakAfterCharacters=150]=`wordWrapBreakAfterCharacters`,e[e.wordWrapBreakBeforeCharacters=151]=`wordWrapBreakBeforeCharacters`,e[e.wordWrapColumn=152]=`wordWrapColumn`,e[e.wordWrapOverride1=153]=`wordWrapOverride1`,e[e.wordWrapOverride2=154]=`wordWrapOverride2`,e[e.wrappingIndent=155]=`wrappingIndent`,e[e.wrappingStrategy=156]=`wrappingStrategy`,e[e.showDeprecated=157]=`showDeprecated`,e[e.inertialScroll=158]=`inertialScroll`,e[e.inlayHints=159]=`inlayHints`,e[e.wrapOnEscapedLineFeeds=160]=`wrapOnEscapedLineFeeds`,e[e.effectiveCursorStyle=161]=`effectiveCursorStyle`,e[e.editorClassName=162]=`editorClassName`,e[e.pixelRatio=163]=`pixelRatio`,e[e.tabFocusMode=164]=`tabFocusMode`,e[e.layoutInfo=165]=`layoutInfo`,e[e.wrappingInfo=166]=`wrappingInfo`,e[e.defaultColorDecorators=167]=`defaultColorDecorators`,e[e.colorDecoratorsActivatedOn=168]=`colorDecoratorsActivatedOn`,e[e.inlineCompletionsAccessibilityVerbose=169]=`inlineCompletionsAccessibilityVerbose`,e[e.effectiveEditContext=170]=`effectiveEditContext`,e[e.scrollOnMiddleClick=171]=`scrollOnMiddleClick`,e[e.effectiveAllowVariableFonts=172]=`effectiveAllowVariableFonts`})(Zn||={});var Qn;(function(e){e[e.TextDefined=0]=`TextDefined`,e[e.LF=1]=`LF`,e[e.CRLF=2]=`CRLF`})(Qn||={});var $n;(function(e){e[e.LF=0]=`LF`,e[e.CRLF=1]=`CRLF`})($n||={});var er;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=3]=`Right`})(er||={});var tr;(function(e){e[e.Increase=0]=`Increase`,e[e.Decrease=1]=`Decrease`})(tr||={});var nr;(function(e){e[e.None=0]=`None`,e[e.Indent=1]=`Indent`,e[e.IndentOutdent=2]=`IndentOutdent`,e[e.Outdent=3]=`Outdent`})(nr||={});var rr;(function(e){e[e.Both=0]=`Both`,e[e.Right=1]=`Right`,e[e.Left=2]=`Left`,e[e.None=3]=`None`})(rr||={});var ir;(function(e){e[e.Type=1]=`Type`,e[e.Parameter=2]=`Parameter`})(ir||={});var ar;(function(e){e[e.Accepted=0]=`Accepted`,e[e.Rejected=1]=`Rejected`,e[e.Ignored=2]=`Ignored`})(ar||={});var or;(function(e){e[e.Code=1]=`Code`,e[e.Label=2]=`Label`})(or||={});var sr;(function(e){e[e.Automatic=0]=`Automatic`,e[e.Explicit=1]=`Explicit`})(sr||={});var cr;(function(e){e[e.DependsOnKbLayout=-1]=`DependsOnKbLayout`,e[e.Unknown=0]=`Unknown`,e[e.Backspace=1]=`Backspace`,e[e.Tab=2]=`Tab`,e[e.Enter=3]=`Enter`,e[e.Shift=4]=`Shift`,e[e.Ctrl=5]=`Ctrl`,e[e.Alt=6]=`Alt`,e[e.PauseBreak=7]=`PauseBreak`,e[e.CapsLock=8]=`CapsLock`,e[e.Escape=9]=`Escape`,e[e.Space=10]=`Space`,e[e.PageUp=11]=`PageUp`,e[e.PageDown=12]=`PageDown`,e[e.End=13]=`End`,e[e.Home=14]=`Home`,e[e.LeftArrow=15]=`LeftArrow`,e[e.UpArrow=16]=`UpArrow`,e[e.RightArrow=17]=`RightArrow`,e[e.DownArrow=18]=`DownArrow`,e[e.Insert=19]=`Insert`,e[e.Delete=20]=`Delete`,e[e.Digit0=21]=`Digit0`,e[e.Digit1=22]=`Digit1`,e[e.Digit2=23]=`Digit2`,e[e.Digit3=24]=`Digit3`,e[e.Digit4=25]=`Digit4`,e[e.Digit5=26]=`Digit5`,e[e.Digit6=27]=`Digit6`,e[e.Digit7=28]=`Digit7`,e[e.Digit8=29]=`Digit8`,e[e.Digit9=30]=`Digit9`,e[e.KeyA=31]=`KeyA`,e[e.KeyB=32]=`KeyB`,e[e.KeyC=33]=`KeyC`,e[e.KeyD=34]=`KeyD`,e[e.KeyE=35]=`KeyE`,e[e.KeyF=36]=`KeyF`,e[e.KeyG=37]=`KeyG`,e[e.KeyH=38]=`KeyH`,e[e.KeyI=39]=`KeyI`,e[e.KeyJ=40]=`KeyJ`,e[e.KeyK=41]=`KeyK`,e[e.KeyL=42]=`KeyL`,e[e.KeyM=43]=`KeyM`,e[e.KeyN=44]=`KeyN`,e[e.KeyO=45]=`KeyO`,e[e.KeyP=46]=`KeyP`,e[e.KeyQ=47]=`KeyQ`,e[e.KeyR=48]=`KeyR`,e[e.KeyS=49]=`KeyS`,e[e.KeyT=50]=`KeyT`,e[e.KeyU=51]=`KeyU`,e[e.KeyV=52]=`KeyV`,e[e.KeyW=53]=`KeyW`,e[e.KeyX=54]=`KeyX`,e[e.KeyY=55]=`KeyY`,e[e.KeyZ=56]=`KeyZ`,e[e.Meta=57]=`Meta`,e[e.ContextMenu=58]=`ContextMenu`,e[e.F1=59]=`F1`,e[e.F2=60]=`F2`,e[e.F3=61]=`F3`,e[e.F4=62]=`F4`,e[e.F5=63]=`F5`,e[e.F6=64]=`F6`,e[e.F7=65]=`F7`,e[e.F8=66]=`F8`,e[e.F9=67]=`F9`,e[e.F10=68]=`F10`,e[e.F11=69]=`F11`,e[e.F12=70]=`F12`,e[e.F13=71]=`F13`,e[e.F14=72]=`F14`,e[e.F15=73]=`F15`,e[e.F16=74]=`F16`,e[e.F17=75]=`F17`,e[e.F18=76]=`F18`,e[e.F19=77]=`F19`,e[e.F20=78]=`F20`,e[e.F21=79]=`F21`,e[e.F22=80]=`F22`,e[e.F23=81]=`F23`,e[e.F24=82]=`F24`,e[e.NumLock=83]=`NumLock`,e[e.ScrollLock=84]=`ScrollLock`,e[e.Semicolon=85]=`Semicolon`,e[e.Equal=86]=`Equal`,e[e.Comma=87]=`Comma`,e[e.Minus=88]=`Minus`,e[e.Period=89]=`Period`,e[e.Slash=90]=`Slash`,e[e.Backquote=91]=`Backquote`,e[e.BracketLeft=92]=`BracketLeft`,e[e.Backslash=93]=`Backslash`,e[e.BracketRight=94]=`BracketRight`,e[e.Quote=95]=`Quote`,e[e.OEM_8=96]=`OEM_8`,e[e.IntlBackslash=97]=`IntlBackslash`,e[e.Numpad0=98]=`Numpad0`,e[e.Numpad1=99]=`Numpad1`,e[e.Numpad2=100]=`Numpad2`,e[e.Numpad3=101]=`Numpad3`,e[e.Numpad4=102]=`Numpad4`,e[e.Numpad5=103]=`Numpad5`,e[e.Numpad6=104]=`Numpad6`,e[e.Numpad7=105]=`Numpad7`,e[e.Numpad8=106]=`Numpad8`,e[e.Numpad9=107]=`Numpad9`,e[e.NumpadMultiply=108]=`NumpadMultiply`,e[e.NumpadAdd=109]=`NumpadAdd`,e[e.NUMPAD_SEPARATOR=110]=`NUMPAD_SEPARATOR`,e[e.NumpadSubtract=111]=`NumpadSubtract`,e[e.NumpadDecimal=112]=`NumpadDecimal`,e[e.NumpadDivide=113]=`NumpadDivide`,e[e.KEY_IN_COMPOSITION=114]=`KEY_IN_COMPOSITION`,e[e.ABNT_C1=115]=`ABNT_C1`,e[e.ABNT_C2=116]=`ABNT_C2`,e[e.AudioVolumeMute=117]=`AudioVolumeMute`,e[e.AudioVolumeUp=118]=`AudioVolumeUp`,e[e.AudioVolumeDown=119]=`AudioVolumeDown`,e[e.BrowserSearch=120]=`BrowserSearch`,e[e.BrowserHome=121]=`BrowserHome`,e[e.BrowserBack=122]=`BrowserBack`,e[e.BrowserForward=123]=`BrowserForward`,e[e.MediaTrackNext=124]=`MediaTrackNext`,e[e.MediaTrackPrevious=125]=`MediaTrackPrevious`,e[e.MediaStop=126]=`MediaStop`,e[e.MediaPlayPause=127]=`MediaPlayPause`,e[e.LaunchMediaPlayer=128]=`LaunchMediaPlayer`,e[e.LaunchMail=129]=`LaunchMail`,e[e.LaunchApp2=130]=`LaunchApp2`,e[e.Clear=131]=`Clear`,e[e.MAX_VALUE=132]=`MAX_VALUE`})(cr||={});var lr;(function(e){e[e.Hint=1]=`Hint`,e[e.Info=2]=`Info`,e[e.Warning=4]=`Warning`,e[e.Error=8]=`Error`})(lr||={});var ur;(function(e){e[e.Unnecessary=1]=`Unnecessary`,e[e.Deprecated=2]=`Deprecated`})(ur||={});var dr;(function(e){e[e.Inline=1]=`Inline`,e[e.Gutter=2]=`Gutter`})(dr||={});var fr;(function(e){e[e.Normal=1]=`Normal`,e[e.Underlined=2]=`Underlined`})(fr||={});var pr;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.TEXTAREA=1]=`TEXTAREA`,e[e.GUTTER_GLYPH_MARGIN=2]=`GUTTER_GLYPH_MARGIN`,e[e.GUTTER_LINE_NUMBERS=3]=`GUTTER_LINE_NUMBERS`,e[e.GUTTER_LINE_DECORATIONS=4]=`GUTTER_LINE_DECORATIONS`,e[e.GUTTER_VIEW_ZONE=5]=`GUTTER_VIEW_ZONE`,e[e.CONTENT_TEXT=6]=`CONTENT_TEXT`,e[e.CONTENT_EMPTY=7]=`CONTENT_EMPTY`,e[e.CONTENT_VIEW_ZONE=8]=`CONTENT_VIEW_ZONE`,e[e.CONTENT_WIDGET=9]=`CONTENT_WIDGET`,e[e.OVERVIEW_RULER=10]=`OVERVIEW_RULER`,e[e.SCROLLBAR=11]=`SCROLLBAR`,e[e.OVERLAY_WIDGET=12]=`OVERLAY_WIDGET`,e[e.OUTSIDE_EDITOR=13]=`OUTSIDE_EDITOR`})(pr||={});var mr;(function(e){e[e.AIGenerated=1]=`AIGenerated`})(mr||={});var hr;(function(e){e[e.Invoke=0]=`Invoke`,e[e.Automatic=1]=`Automatic`})(hr||={});var gr;(function(e){e[e.TOP_RIGHT_CORNER=0]=`TOP_RIGHT_CORNER`,e[e.BOTTOM_RIGHT_CORNER=1]=`BOTTOM_RIGHT_CORNER`,e[e.TOP_CENTER=2]=`TOP_CENTER`})(gr||={});var _r;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=4]=`Right`,e[e.Full=7]=`Full`})(_r||={});var vr;(function(e){e[e.Word=0]=`Word`,e[e.Line=1]=`Line`,e[e.Suggest=2]=`Suggest`})(vr||={});var yr;(function(e){e[e.Left=0]=`Left`,e[e.Right=1]=`Right`,e[e.None=2]=`None`,e[e.LeftOfInjectedText=3]=`LeftOfInjectedText`,e[e.RightOfInjectedText=4]=`RightOfInjectedText`})(yr||={});var br;(function(e){e[e.Off=0]=`Off`,e[e.On=1]=`On`,e[e.Relative=2]=`Relative`,e[e.Interval=3]=`Interval`,e[e.Custom=4]=`Custom`})(br||={});var xr;(function(e){e[e.None=0]=`None`,e[e.Text=1]=`Text`,e[e.Blocks=2]=`Blocks`})(xr||={});var Sr;(function(e){e[e.Smooth=0]=`Smooth`,e[e.Immediate=1]=`Immediate`})(Sr||={});var Cr;(function(e){e[e.Auto=1]=`Auto`,e[e.Hidden=2]=`Hidden`,e[e.Visible=3]=`Visible`})(Cr||={});var wr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(wr||={});var Tr;(function(e){e.Off=`off`,e.OnCode=`onCode`,e.On=`on`})(Tr||={});var Er;(function(e){e[e.Invoke=1]=`Invoke`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.ContentChange=3]=`ContentChange`})(Er||={});var Dr;(function(e){e[e.File=0]=`File`,e[e.Module=1]=`Module`,e[e.Namespace=2]=`Namespace`,e[e.Package=3]=`Package`,e[e.Class=4]=`Class`,e[e.Method=5]=`Method`,e[e.Property=6]=`Property`,e[e.Field=7]=`Field`,e[e.Constructor=8]=`Constructor`,e[e.Enum=9]=`Enum`,e[e.Interface=10]=`Interface`,e[e.Function=11]=`Function`,e[e.Variable=12]=`Variable`,e[e.Constant=13]=`Constant`,e[e.String=14]=`String`,e[e.Number=15]=`Number`,e[e.Boolean=16]=`Boolean`,e[e.Array=17]=`Array`,e[e.Object=18]=`Object`,e[e.Key=19]=`Key`,e[e.Null=20]=`Null`,e[e.EnumMember=21]=`EnumMember`,e[e.Struct=22]=`Struct`,e[e.Event=23]=`Event`,e[e.Operator=24]=`Operator`,e[e.TypeParameter=25]=`TypeParameter`})(Dr||={});var Or;(function(e){e[e.Deprecated=1]=`Deprecated`})(Or||={});var kr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(kr||={});var Ar;(function(e){e[e.Hidden=0]=`Hidden`,e[e.Blink=1]=`Blink`,e[e.Smooth=2]=`Smooth`,e[e.Phase=3]=`Phase`,e[e.Expand=4]=`Expand`,e[e.Solid=5]=`Solid`})(Ar||={});var jr;(function(e){e[e.Line=1]=`Line`,e[e.Block=2]=`Block`,e[e.Underline=3]=`Underline`,e[e.LineThin=4]=`LineThin`,e[e.BlockOutline=5]=`BlockOutline`,e[e.UnderlineThin=6]=`UnderlineThin`})(jr||={});var Mr;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]=`AlwaysGrowsWhenTypingAtEdges`,e[e.NeverGrowsWhenTypingAtEdges=1]=`NeverGrowsWhenTypingAtEdges`,e[e.GrowsOnlyWhenTypingBefore=2]=`GrowsOnlyWhenTypingBefore`,e[e.GrowsOnlyWhenTypingAfter=3]=`GrowsOnlyWhenTypingAfter`})(Mr||={});var Nr;(function(e){e[e.None=0]=`None`,e[e.Same=1]=`Same`,e[e.Indent=2]=`Indent`,e[e.DeepIndent=3]=`DeepIndent`})(Nr||={});var Pr=class{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return It(e,t)}};function Fr(){return{editor:void 0,languages:void 0,CancellationTokenSource:Et,Emitter:re,KeyCode:cr,KeyMod:Pr,Position:R,Range:dt,Selection:bn,SelectionDirection:wr,MarkerSeverity:lr,MarkerTag:ur,Uri:ln,Token:Dn}}var Ir,Lr,Rr=class{constructor(e,t){this.uri=e,this.value=t}};function zr(e){return Array.isArray(e)}(class e{static{this.defaultToKey=e=>e.toString()}constructor(t,n){if(this[Ir]=`ResourceMap`,t instanceof e)this.map=new Map(t.map),this.toKey=n??e.defaultToKey;else if(zr(t)){this.map=new Map,this.toKey=n??e.defaultToKey;for(let[e,n]of t)this.set(e,n)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new Rr(e,t)),this}get(e){return this.map.get(this.toKey(e))?.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){t!==void 0&&(e=e.bind(t));for(let[t,n]of this.map)e(n.value,n.uri,this)}*values(){for(let e of this.map.values())yield e.value}*keys(){for(let e of this.map.values())yield e.uri}*entries(){for(let e of this.map.values())yield[e.uri,e.value]}*[(Ir=Symbol.toStringTag,Symbol.iterator)](){for(let[,e]of this.map)yield[e.uri,e.value]}}),Symbol.toStringTag,Symbol.iterator;var Br=class{constructor(){this[Lr]=`LinkedMap`,this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=0){let n=this._map.get(e);if(n)return t!==0&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,n!==0&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw Error(`Invalid list`);let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._state,r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw Error(`LinkedMap got modified during iteration.`);r=r.next}}keys(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.key,done:!1};return n=n.next,e}else return{value:void 0,done:!0}}};return r}values(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:n.value,done:!1};return n=n.next,e}else return{value:void 0,done:!0}}};return r}entries(){let e=this,t=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(e._state!==t)throw Error(`LinkedMap got modified during iteration.`);if(n){let e={value:[n.key,n.value],done:!1};return n=n.next,e}else return{value:void 0,done:!0}}};return r}[(Lr=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw Error(`Invalid list`);this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw Error(`Invalid list`);this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw Error(`Invalid list`);e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw Error(`Invalid list`);e.previous.next=void 0,this._tail=e.previous}else{let t=e.next,n=e.previous;if(!t||!n)throw Error(`Invalid list`);t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw Error(`Invalid list`);if(!(t!==1&&t!==2)){if(t===1){if(e===this._head)return;let t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===2){if(e===this._tail)return;let t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(let[t,n]of e)this.set(t,n)}},Vr=class extends Br{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}},Hr=class extends Vr{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}},Ur=class{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){let n=this.map.get(e);n&&(n.delete(t),n.size===0&&this.map.delete(e))}forEach(e,t){let n=this.map.get(e);n&&n.forEach(t)}};new Hr(10);var Wr;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=4]=`Right`,e[e.Full=7]=`Full`})(Wr||={});var Gr;(function(e){e[e.Left=1]=`Left`,e[e.Center=2]=`Center`,e[e.Right=3]=`Right`})(Gr||={});var Kr;(function(e){e[e.LTR=0]=`LTR`,e[e.RTL=1]=`RTL`})(Kr||={});var qr;(function(e){e[e.Both=0]=`Both`,e[e.Right=1]=`Right`,e[e.Left=2]=`Left`,e[e.None=3]=`None`})(qr||={});function Jr(e){if(!e||e.length===0)return!1;for(let t=0,n=e.length;t=n)break;let r=e.charCodeAt(t);if(r===110||r===114||r===87)return!0}}return!1}function Yr(e,t,n,r,i){if(r===0)return!0;let a=t.charCodeAt(r-1);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){let n=t.charCodeAt(r);if(e.get(n)!==0)return!0}return!1}function Xr(e,t,n,r,i){if(r+i===n)return!0;let a=t.charCodeAt(r+i);if(e.get(a)!==0||a===13||a===10)return!0;if(i>0){let n=t.charCodeAt(r+i-1);if(e.get(n)!==0)return!0}return!1}function Zr(e,t,n,r,i){return Yr(e,t,n,r,i)&&Xr(e,t,n,r,i)}var Qr=class{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){let t=e.length,n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(n=this._searchRegex.exec(e),!n))return null;let r=n.index,i=n[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(i===0){Me(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||Zr(this._wordSeparators,e,t,r,i))return n}while(n);return null}};function $r(e=``){let t=`(-?\\d*\\.\\d\\w*)|([^`;for(let n of`\`~!@#$%^&*()-=+[{]}\\|;:'",.<>/?`)e.indexOf(n)>=0||(t+=`\\`+n);return t+=`\\s]+)`,new RegExp(t,`g`)}let ei=$r();function ti(e){let t=ei;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n=`g`;e.ignoreCase&&(n+=`i`),e.multiline&&(n+=`m`),e.unicode&&(n+=`u`),t=new RegExp(e.source,n)}return t.lastIndex=0,t}let ni=new C;ni.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function ri(e,t,n,r,i){if(t=ti(t),i||=h.first(ni),n.length>i.maxLen){let a=e-i.maxLen/2;return a<0?a=0:r+=a,n=n.substring(a,e+i.maxLen/2),ri(e,t,n,r,i)}let a=Date.now(),o=e-1-r,s=-1,c=null;for(let e=1;!(Date.now()-a>=i.timeBudget);e++){let r=o-i.windowSize*e;t.lastIndex=Math.max(0,r);let a=ii(t,n,o,s);if(!a&&c||(c=a,r<=0))break;s=r}if(c){let e={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return t.lastIndex=0,e}return null}function ii(e,t,n,r){let i;for(;i=e.exec(t);){let t=i.index||0;if(t<=n&&e.lastIndex>=n)return i;if(r>0&&t>r)return null}return null}var ai=class{static computeUnicodeHighlights(e,t,n){let r=n?n.startLineNumber:1,i=n?n.endLineNumber:e.getLineCount(),a=new si(t),o=a.getCandidateCodePoints(),s;s=o===`allNonBasicAscii`?RegExp(`[^\\t\\n\\r\\x20-\\x7E]`,`g`):RegExp(`${oi(Array.from(o))}`,`g`);let c=new Qr(null,s),u=[],d=!1,f,p=0,m=0,h=0;forLoop:for(let t=r,n=i;t<=n;t++){let n=e.getLineContent(t),r=n.length;c.reset(0);do if(f=c.next(n),f){let e=f.index,i=f.index+f[0].length;e>0&&ke(n.charCodeAt(e-1))&&e--,i+1=1e3){d=!0;break forLoop}u.push(new dt(t,e+1,t,i+1))}}while(f)}return{ranges:u,hasMore:d,ambiguousCharacterCount:p,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:h}}static computeUnicodeHighlightReason(e,t){let n=new si(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{let r=e.codePointAt(0),i=n.ambiguousCharacters.getPrimaryConfusable(r),a=Ie.getLocales().filter(e=>!Ie.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(r));return{kind:0,confusableWith:String.fromCodePoint(i),notAmbiguousInLocales:a}}case 1:return{kind:2}}}};function oi(e,t){return`[${Se(e.map(e=>String.fromCodePoint(e)).join(``))}]`}var si=class{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Ie.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return`allNonBasicAscii`;let e=new Set;if(this.options.invisibleCharacters)for(let t of Le.codePoints)ci(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(let t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(let t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){let n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let r=!1,i=!1;if(t)for(let e of t){let t=e.codePointAt(0),n=Pe(e);r||=n,!n&&!this.ambiguousCharacters.isAmbiguous(t)&&!Le.isInvisibleCharacter(t)&&(i=!0)}return!r&&i?0:this.options.invisibleCharacters&&!ci(e)&&Le.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}};function ci(e){return e===` `||e===` `||e===` `}var li=class{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}},ui=class{constructor(e,t){this.lineRangeMapping=e,this.changes=t}};function di(e,t,n=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r0}e.isGreaterThan=r;function i(e){return e===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(gi||={});function _i(e,t){return(n,r)=>t(e(n),e(r))}let vi=(e,t)=>e-t;function yi(e){return(t,n)=>-e(t,n)}(class e{static{this.empty=new e(e=>{})}constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(t){return new e(e=>this.iterate(n=>t(n)?e(n):!0))}map(t){return new e(e=>this.iterate(n=>e(t(n))))}findLast(e){let t;return this.iterate(n=>(e(n)&&(t=n),!0)),t}findLastMaxBy(e){let t,n=!0;return this.iterate(r=>((n||gi.isGreaterThan(e(r,t)))&&(n=!1,t=r),!0)),t}});var bi=class e{static fromTo(t,n){return new e(t,n)}static addRange(t,n){let r=0;for(;rn))return new e(t,n)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,n){return new e(t,t+n)}static emptyAt(t){return new e(t,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new c(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}contains(e){return this.start<=e&&e=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new c(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new c(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;te.startLineNumber,vi)}static joinMany(e){if(e.length===0)return[];let t=new Di(e[0].slice());for(let n=1;nt)throw new c(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&et.endLineNumberExclusive>=e.startLineNumber),n=Si(this._normalizedRanges,t=>t.startLineNumber<=e.endLineNumberExclusive)+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){let n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{let r=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,r)}}contains(e){let t=xi(this._normalizedRanges,t=>t.startLineNumber<=e);return!!t&&t.endLineNumberExclusive>e}intersects(e){let t=xi(this._normalizedRanges,t=>t.startLineNumbere.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let n=[],r=0,i=0,a=null;for(;r=e.startLineNumber?a=new Ei(a.startLineNumber,Math.max(a.endLineNumberExclusive,e.endLineNumberExclusive)):(n.push(a),a=e)}return a!==null&&n.push(a),new e(n)}subtractFrom(t){let n=wi(this._normalizedRanges,e=>e.endLineNumberExclusive>=t.startLineNumber),r=Si(this._normalizedRanges,e=>e.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new e([t]);let i=[],a=t.startLineNumber;for(let e=n;ea&&i.push(new Ei(a,t.startLineNumber)),a=t.endLineNumberExclusive}return ae.toString()).join(`, `)}getIntersection(t){let n=[],r=0,i=0;for(;re.delta(t)))}},Oi=class e{static{this.zero=new e(0,0)}static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new e(0,n.column-t.column):new e(n.lineNumber-t.lineNumber,n.column-1)}static fromPosition(t){return new e(t.lineNumber-1,t.column-1)}static ofRange(t){return e.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(let e of t)e===` `?(n++,r=0):r++;return new e(n,r)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount===e.lineCount?this.columnCount>=e.columnCount:this.lineCount>e.lineCount}add(t){return t.lineCount===0?new e(this.lineCount,this.columnCount+t.columnCount):new e(this.lineCount+t.lineCount,t.columnCount)}createRange(e){return this.lineCount===0?new dt(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new dt(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}toRange(){return new dt(1,1,this.lineCount+1,this.columnCount+1)}toLineRange(){return Ei.ofLength(1,this.lineCount+1)}addToPosition(e){return this.lineCount===0?new R(e.lineNumber,e.column+this.columnCount):new R(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}},ki=class{getOffsetRange(e){return new bi(this.getOffset(e.getStartPosition()),this.getOffset(e.getEndPosition()))}getRange(e){return dt.fromPositions(this.getPosition(e.start),this.getPosition(e.endExclusive))}getStringReplacement(e){return new Ai.deps.StringReplacement(this.getOffsetRange(e.range),e.text)}getTextReplacement(e){return new Ai.deps.TextReplacement(this.getRange(e.replaceRange),e.newText)}getTextEdit(e){let t=e.replacements.map(e=>this.getTextReplacement(e));return new Ai.deps.TextEdit(t)}},Ai=class{static{this._deps=void 0}static get deps(){if(!this._deps)throw Error(`Dependencies not set. Call _setDependencies first.`);return this._deps}},ji=class extends ki{constructor(e){super(),this.text=e,this.lineStartOffsetByLineIdx=[],this.lineEndOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t0&&e.charAt(t-1)===`\r`?this.lineEndOffsetByLineIdx.push(t-1):this.lineEndOffsetByLineIdx.push(t));this.lineEndOffsetByLineIdx.push(e.length)}getOffset(e){let t=this._validatePosition(e);return this.lineStartOffsetByLineIdx[t.lineNumber-1]+t.column-1}_validatePosition(e){if(e.lineNumber<1)return new R(1,1);let t=this.textLength.lineCount+1;if(e.lineNumber>t)return new R(t,this.getLineLength(t)+1);if(e.column<1)return new R(e.lineNumber,1);let n=this.getLineLength(e.lineNumber);return e.column-1>n?new R(e.lineNumber,n+1):e}getPosition(e){let t=Si(this.lineStartOffsetByLineIdx,t=>t<=e);return new R(t+1,e-this.lineStartOffsetByLineIdx[t]+1)}get textLength(){let e=this.lineStartOffsetByLineIdx.length-1;return new Ai.deps.TextLength(e,this.text.length-this.lineStartOffsetByLineIdx[e])}getLineLength(e){return this.lineEndOffsetByLineIdx[e-1]-this.lineStartOffsetByLineIdx[e-1]}},Mi=class{constructor(){this._transformer=void 0}get endPositionExclusive(){return this.length.addToPosition(new R(1,1))}get lineRange(){return this.length.toLineRange()}getValue(){return this.getValueOfRange(this.length.toRange())}getValueOfOffsetRange(e){return this.getValueOfRange(this.getTransformer().getRange(e))}getLineLength(e){return this.getValueOfRange(new dt(e,1,e,2**53-1)).length}getTransformer(){return this._transformer||=new ji(this.getValue()),this._transformer}getLineAt(e){return this.getValueOfRange(new dt(e,1,e,2**53-1))}},Ni=class extends Mi{constructor(e,t){u(t>=1),super(),this._getLineContent=e,this._lineCount=t}getValueOfRange(e){if(e.startLineNumber===e.endLineNumber)return this._getLineContent(e.startLineNumber).substring(e.startColumn-1,e.endColumn-1);let t=this._getLineContent(e.startLineNumber).substring(e.startColumn-1);for(let n=e.startLineNumber+1;ne[t-1],e.length)}},Fi=class e{static joinReplacements(t,n){if(t.length===0)throw new c;if(t.length===1)return t[0];let r=t[0].range.getStartPosition(),i=t[t.length-1].range.getEndPosition(),a=``;for(let e=0;e ${t.lineNumber},${t.column}): "${this.text}"`}},Ii=class e{static inverse(t,n,r){let i=[],a=1,o=1;for(let n of t){let t=new e(new Ei(a,n.original.startLineNumber),new Ei(o,n.modified.startLineNumber));t.modified.isEmpty||i.push(t),a=n.original.endLineNumberExclusive,o=n.modified.endLineNumberExclusive}let s=new e(new Ei(a,n+1),new Ei(o,r+1));return s.modified.isEmpty||i.push(s),i}static clip(t,n,r){let i=[];for(let a of t){let t=a.original.intersect(n),o=a.modified.intersect(r);t&&!t.isEmpty&&o&&!o.isEmpty&&i.push(new e(t,o))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){let e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new Bi(e,t);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new c(`not a valid diff`);return new Bi(new dt(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new dt(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new Bi(new dt(this.original.startLineNumber-1,2**53-1,this.original.endLineNumberExclusive-1,2**53-1),new dt(this.modified.startLineNumber-1,2**53-1,this.modified.endLineNumberExclusive-1,2**53-1))}toRangeMapping2(e,t){if(Ri(this.original.endLineNumberExclusive,e)&&Ri(this.modified.endLineNumberExclusive,t))return new Bi(new dt(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new dt(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new Bi(dt.fromPositions(new R(this.original.startLineNumber,1),Li(new R(this.original.endLineNumberExclusive-1,2**53-1),e)),dt.fromPositions(new R(this.modified.startLineNumber,1),Li(new R(this.modified.endLineNumberExclusive-1,2**53-1),t)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new Bi(dt.fromPositions(Li(new R(this.original.startLineNumber-1,2**53-1),e),Li(new R(this.original.endLineNumberExclusive-1,2**53-1),e)),dt.fromPositions(Li(new R(this.modified.startLineNumber-1,2**53-1),t),Li(new R(this.modified.endLineNumberExclusive-1,2**53-1),t)));throw new c}};function Li(e,t){if(e.lineNumber<1)return new R(1,1);if(e.lineNumber>t.length)return new R(t.length,t[t.length-1].length+1);let n=t[e.lineNumber-1];return e.column>n.length+1?new R(e.lineNumber,n.length+1):e}function Ri(e,t){return e>=1&&e<=t.length}var zi=class e extends Ii{static fromRangeMappings(t){return new e(Ei.join(t.map(e=>Ei.fromRangeInclusive(e.originalRange))),Ei.join(t.map(e=>Ei.fromRangeInclusive(e.modifiedRange))),t)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){return new e(this.modified,this.original,this.innerChanges?.map(e=>e.flip()))}withInnerChangesFromLineRanges(){return new e(this.original,this.modified,[this.toRangeMapping()])}},Bi=class e{static fromEdit(t){let n=t.getNewRanges();return t.replacements.map((t,r)=>new e(t.range,n[r]))}static assertSorted(e){for(let t=1;t${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}toTextEdit(e){let t=e.getValueOfRange(this.modifiedRange);return new Fi(this.originalRange,t)}};function Vi(e,t,n,r=!1){let i=[];for(let r of fi(e.map(e=>Hi(e,t,n)),(e,t)=>e.original.intersectsOrTouches(t.original)||e.modified.intersectsOrTouches(t.modified))){let e=r[0],t=r[r.length-1];i.push(new zi(e.original.join(t.original),e.modified.join(t.modified),r.map(e=>e.innerChanges[0])))}return d(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length.lineCount-i[i.length-1].modified.endLineNumberExclusive!==t.length.lineCount-i[i.length-1].original.endLineNumberExclusive)?!1:f(i,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive=n.getLineLength(e.modifiedRange.startLineNumber)&&e.originalRange.startColumn-1>=t.getLineLength(e.originalRange.startLineNumber)&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1),new zi(new Ei(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),new Ei(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i),[e])}var Ui=class{computeDiff(e,t,n){let r=new Xi(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),i=[],a=null;for(let e of r.changes){let t;t=e.originalEndLineNumber===0?new Ei(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new Ei(e.originalStartLineNumber,e.originalEndLineNumber+1);let n;n=e.modifiedEndLineNumber===0?new Ei(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new Ei(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let r=new zi(t,n,e.charChanges?.map(e=>new Bi(new dt(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new dt(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn))));a&&(a.modified.endLineNumberExclusive===r.modified.startLineNumber||a.original.endLineNumberExclusive===r.original.startLineNumber)&&(r=new zi(a.original.join(r.original),a.modified.join(r.modified),a.innerChanges&&r.innerChanges?a.innerChanges.concat(r.innerChanges):void 0),i.pop()),i.push(r),a=r}return d(()=>f(i,(e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive===t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive(e===10?`\\n`:String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(`, `)+`]`}_assertIndex(e,t){if(e<0||e>=t.length)throw Error(`Illegal index`)}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}},qi=class e{constructor(e,t,n,r,i,a,o,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=r,this.modifiedStartLineNumber=i,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=s}static createFromDiffChange(t,n,r){return new e(n.getStartLineNumber(t.originalStart),n.getStartColumn(t.originalStart),n.getEndLineNumber(t.originalStart+t.originalLength-1),n.getEndColumn(t.originalStart+t.originalLength-1),r.getStartLineNumber(t.modifiedStart),r.getStartColumn(t.modifiedStart),r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),r.getEndColumn(t.modifiedStart+t.modifiedLength-1))}};function Ji(e){if(e.length<=1)return e;let t=[e[0]],n=t[0];for(let r=1,i=e.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&a()){let e=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),o=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(e.getElements().length>0&&o.getElements().length>0){let t=Wi(e,o,a,!0).changes;s&&(t=Ji(t)),f=[];for(let n=0,r=t.length;n1&&o>1&&e.charCodeAt(n-2)===t.charCodeAt(o-2);)n--,o--;(n>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,n,a+1,1,o)}{let n=Qi(e,1),o=Qi(t,1),s=e.length+1,c=t.length+1;for(;n!0;let t=Date.now();return()=>Date.now()-t{r.push(e.fromOffsetPairs(t?t.getEndExclusives():na.zero,i?i.getStarts():new na(n,(t?t.seq2Range.endExclusive-t.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new e(new bi(t.offset1,n.offset1),new bi(t.offset2,n.offset2))}static assertSorted(e){let t;for(let n of e){if(t&&!(t.seq1Range.endExclusive<=n.seq1Range.start&&t.seq2Range.endExclusive<=n.seq2Range.start))throw new c(`Sequence diffs must be sorted`);t=n}}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){let n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new e(n,r)}getStarts(){return new na(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new na(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},na=class e{static{this.zero=new e(0,0)}static{this.max=new e(2**53-1,2**53-1)}constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new e(this.offset1+t,this.offset2+t)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}},ra=class e{static{this.instance=new e}isValid(){return!0}},ia=class{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new c(`timeout must be positive`)}isValid(){return!(Date.now()-this.startTime0&&c>0&&a.get(s-1,c-1)===3&&(d+=o.get(s-1,c-1)),d+=r?r(s,c):1):d=-1;let f=Math.max(l,u,d);if(f===d){let e=s>0&&c>0?o.get(s-1,c-1):0;o.set(s,c,e+1),a.set(s,c,3)}else f===l?(o.set(s,c,0),a.set(s,c,1)):f===u&&(o.set(s,c,0),a.set(s,c,2));i.set(s,c,f)}let s=[],c=e.length,l=t.length;function u(e,t){(e+1!==c||t+1!==l)&&s.push(new ta(new bi(e+1,c),new bi(t+1,l))),c=e,l=t}let d=e.length-1,f=t.length-1;for(;d>=0&&f>=0;)a.get(d,f)===3?(u(d,f),d--,f--):a.get(d,f)===1?d--:f--;return u(-1,-1),s.reverse(),new ea(s,!1)}},la=class{compute(e,t,n=ra.instance){if(e.length===0||t.length===0)return ea.trivial(e,t);let r=e,i=t;function a(e,t){for(;er.length||d>i.length)continue;let f=a(u,d);s.set(l,f);let p=u===n?c.get(l+1):c.get(l-1);if(c.set(l,f===u?p:new ua(p,u,d,f-u)),s.get(l)===r.length&&s.get(l)-l===i.length)break loop}}let u=c.get(l),d=[],f=r.length,p=i.length;for(;;){let e=u?u.x+u.length:0,t=u?u.y+u.length:0;if((e!==f||t!==p)&&d.push(new ta(new bi(e,f),new bi(t,p))),!u)break;f=u.x,p=u.y,u=u.prev}return d.reverse(),new ea(d,!1)}},ua=class{constructor(e,t,n,r){this.prev=e,this.x=t,this.y=n,this.length=r}},da=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if(e=-e-1,e>=this.negativeArr.length){let e=this.negativeArr;this.negativeArr=new Int32Array(e.length*2),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){let e=this.positiveArr;this.positiveArr=new Int32Array(e.length*2),this.positiveArr.set(e)}this.positiveArr[e]=t}}},fa=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}},pa=class{constructor(e,t,n){this.lines=e,this.range=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let t=this.range.startLineNumber;t<=this.range.endLineNumber;t++){let r=e[t-1],i=0;t===this.range.startLineNumber&&this.range.startColumn>1&&(i=this.range.startColumn-1,r=r.substring(i)),this.lineStartOffsets.push(i);let a=0;if(!n){let e=r.trimStart();a=r.length-e.length,r=e.trimEnd()}this.trimmedWsLengthsByLineIdx.push(a);let o=t===this.range.endLineNumber?Math.min(this.range.endColumn-1-i-a,r.length):r.length;for(let e=0;eString.fromCharCode(e)).join(``)}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){let t=va(e>0?this.elements[e-1]:-1),n=va(et<=e),r=e-this.firstElementOffsetByLineIdx[n];return new R(this.range.startLineNumber+n,1+this.lineStartOffsets[n]+r+(r===0&&t===`left`?0:this.trimmedWsLengthsByLineIdx[n]))}translateRange(e){let t=this.translateOffset(e.start,`right`),n=this.translateOffset(e.endExclusive,`left`);return n.isBefore(t)?dt.fromPositions(n,n):dt.fromPositions(t,n)}findWordContaining(e){if(e<0||e>=this.elements.length||!ma(this.elements[e]))return;let t=e;for(;t>0&&ma(this.elements[t-1]);)t--;let n=e;for(;n=this.elements.length||!ma(this.elements[e]))return;let t=e;for(;t>0&&ma(this.elements[t-1])&&!ha(this.elements[t]);)t--;let n=e;for(;nt<=e.start)??0,Ci(this.firstElementOffsetByLineIdx,t=>e.endExclusive<=t)??this.elements.length)}};function ma(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function ha(e){return e>=65&&e<=90}let ga={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function _a(e){return ga[e]}function va(e){return e===10?8:e===13?7:oa(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function ya(e,t,n,r,i,a){let{moves:o,excludedChanges:s}=xa(e,t,n,a);if(!a.isValid())return[];let c=Sa(e.filter(e=>!s.has(e)),r,i,t,n,a);return hi(o,c),o=wa(o),o=o.filter(e=>{let n=e.original.toOffsetRange().slice(t).map(e=>e.trim());return n.join(` `).length>=15&&ba(n,e=>e.length>=2)>=2}),o=Ta(e,o),o}function ba(e,t){let n=0;for(let r of e)t(r)&&n++;return n}function xa(e,t,n,r){let i=[],a=e.filter(e=>e.modified.isEmpty&&e.original.length>=3).map(e=>new sa(e.original,t,e)),o=new Set(e.filter(e=>e.original.isEmpty&&e.modified.length>=3).map(e=>new sa(e.modified,n,e))),s=new Set;for(let e of a){let t=-1,n;for(let r of o){let i=e.computeSimilarity(r);i>t&&(t=i,n=r)}if(t>.9&&n&&(o.delete(n),i.push(new Ii(e.range,n.range)),s.add(e.source),s.add(n.source)),!r.isValid())return{moves:i,excludedChanges:s}}return{moves:i,excludedChanges:s}}function Sa(e,t,n,r,i,a){let o=[],s=new Ur;for(let n of e)for(let e=n.original.startLineNumber;ee.modified.startLineNumber,vi));for(let t of e){let e=[];for(let r=t.modified.startLineNumber;r{for(let n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===i.endLineNumberExclusive){n.originalLineRange=new Ei(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new Ei(n.modifiedLineRange.startLineNumber,i.endLineNumberExclusive),a.push(n);return}let n={modifiedLineRange:i,originalLineRange:t};c.push(n),a.push(n)}),e=a}if(!a.isValid())return[]}c.sort(yi(_i(e=>e.modifiedLineRange.length,vi)));let l=new Di,u=new Di;for(let e of c){let t=e.modifiedLineRange.startLineNumber-e.originalLineRange.startLineNumber,n=l.subtractFrom(e.modifiedLineRange),r=u.subtractFrom(e.originalLineRange).getWithDelta(t),i=n.getIntersection(r);for(let e of i.ranges){if(e.length<3)continue;let n=e,r=e.delta(-t);o.push(new Ii(r,n)),l.addRange(n),u.addRange(r)}}o.sort(_i(e=>e.original.startLineNumber,vi));let d=new Ti(e);for(let t=0;te.original.startLineNumber<=n.original.startLineNumber),c=xi(e,e=>e.modified.startLineNumber<=n.modified.startLineNumber),f=Math.max(n.original.startLineNumber-s.original.startLineNumber,n.modified.startLineNumber-c.modified.startLineNumber),p=d.findLastMonotonous(e=>e.original.startLineNumbere.modified.startLineNumberr.length||t>i.length||l.contains(t)||u.contains(e)||!Ca(r[e-1],i[t-1],a))break}g>0&&(u.addRange(new Ei(n.original.startLineNumber-g,n.original.startLineNumber)),l.addRange(new Ei(n.modified.startLineNumber-g,n.modified.startLineNumber)));let _;for(_=0;_r.length||t>i.length||l.contains(t)||u.contains(e)||!Ca(r[e-1],i[t-1],a))break}_>0&&(u.addRange(new Ei(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+_)),l.addRange(new Ei(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+_))),(g>0||_>0)&&(o[t]=new Ii(new Ei(n.original.startLineNumber-g,n.original.endLineNumberExclusive+_),new Ei(n.modified.startLineNumber-g,n.modified.endLineNumberExclusive+_)))}return o}function Ca(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let r=new la().compute(new pa([e],new dt(1,1,1,e.length),!1),new pa([t],new dt(1,1,1,t.length),!1),n),i=0,a=ta.invert(r.diffs,e.length);for(let t of a)t.seq1Range.forEach(t=>{oa(e.charCodeAt(t))||i++});function o(t){let n=0;for(let r=0;rt.length?e:t);return i/s>.6&&s>10}function wa(e){if(e.length===0)return e;e.sort(_i(e=>e.original.startLineNumber,vi));let t=[e[0]];for(let n=1;n=0&&o>=0&&a+o<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function Ta(e,t){let n=new Ti(e);return t=t.filter(t=>(n.findLastMonotonous(e=>e.original.startLineNumbere.modified.startLineNumber0&&(o=o.delta(s))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function Oa(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r0?n[r-1]:void 0,a=n[r],o=r+1=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;e.seq1Range.start+oc&&(c=l,s=r)}return e.delta(s)}function Aa(e,t,n){let r=[];for(let e of n){let t=r[r.length-1];if(!t){r.push(e);continue}e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2?r[r.length-1]=new ta(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):r.push(e)}return r}function ja(e,t,n,r,i=!1){let a=ta.invert(n,e.length),o=[],s=new na(0,0);function c(n,c){if(n.offset10;){let n=a[0];if(!(n.seq1Range.intersects(d.seq1Range)||n.seq2Range.intersects(d.seq2Range)))break;let i=new ta(r(e,n.seq1Range.start),r(t,n.seq2Range.start)),o=i.intersect(n);if(p+=o.seq1Range.length,m+=o.seq2Range.length,d=d.join(i),d.seq1Range.endExclusive>=n.seq1Range.endExclusive)a.shift();else break}(i&&p+m0;){let e=a.shift();e.seq1Range.isEmpty||(c(e.getStarts(),e),c(e.getEndExclusives().delta(-1),e))}return Ma(n,o)}function Ma(e,t){let n=[];for(;e.length>0||t.length>0;){let r=e[0],i=t[0],a;a=r&&(!i||r.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=a.seq1Range.start?n[n.length-1]=n[n.length-1].join(a):n.push(a)}return n}function Na(e,t,n){let r=n;if(r.length===0)return r;let i=0,a;do{a=!1;let t=[r[0]];for(let n=1;n5||n.seq1Range.length+n.seq2Range.length>5)}s(o,i)?(a=!0,t[t.length-1]=t[t.length-1].join(i)):t.push(i)}r=t}while(i++<10&&a);return r}function Pa(e,t,n){let r=n;if(r.length===0)return r;let i=0,a;do{a=!1;let n=[r[0]];for(let i=1;i5||i.length>500)return!1;let a=e.getText(i).trim();if(a.length>20||a.split(/\r\n|\r|\n/).length>1)return!1;let c=e.countLinesIn(n.seq1Range),l=n.seq1Range.length,u=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,f=e.countLinesIn(r.seq1Range),p=r.seq1Range.length,m=t.countLinesIn(r.seq2Range),h=r.seq2Range.length;function g(e){return Math.min(e,130)}return(g(c*40+l)**1.5+g(u*40+d)**1.5)**1.5+(g(f*40+p)**1.5+g(m*40+h)**1.5)**1.5>(130**1.5)**1.5*1.3}c(s,o)?(a=!0,n[n.length-1]=n[n.length-1].join(o)):n.push(o)}r=n}while(i++<10&&a);let o=[];return mi(r,(t,n,r)=>{let i=n;function a(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}let s=e.extendToFullLines(n.seq1Range),c=e.getText(new bi(s.start,n.seq1Range.start));a(c)&&(i=i.deltaStart(-c.length));let l=e.getText(new bi(n.seq1Range.endExclusive,s.endExclusive));a(l)&&(i=i.deltaEnd(l.length));let u=ta.fromOffsetPairs(t?t.getEndExclusives():na.zero,r?r.getStarts():na.max),d=i.intersect(u);o.length>0&&d.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(d):o.push(d)}),o}var Fa=class{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((e===0?0:Ia(this.lines[e-1]))+(e===this.lines.length?0:Ia(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join(` `)}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}};function Ia(e){let t=0;for(;te===t))return new li([],[],!1);if(e.length===1&&e[0].length===0||t.length===1&&t[0].length===0)return new li([new zi(new Ei(1,e.length+1),new Ei(1,t.length+1),[new Bi(new dt(1,1,e.length,e[e.length-1].length+1),new dt(1,1,t.length,t[t.length-1].length+1))])],[],!1);let r=n.maxComputationTimeMs===0?ra.instance:new ia(n.maxComputationTimeMs),i=!n.ignoreTrimWhitespace,a=new Map;function o(e){let t=a.get(e);return t===void 0&&(t=a.size,a.set(e,t)),t}let s=e.map(e=>o(e.trim())),c=t.map(e=>o(e.trim())),l=new Fa(s,e),u=new Fa(c,t),f=l.length+u.length<1700?this.dynamicProgrammingDiffing.compute(l,u,r,(n,r)=>e[n]===t[r]?t[r].length===0?.1:1+Math.log(1+t[r].length):.99):this.myersDiffingAlgorithm.compute(l,u,r),p=f.diffs,m=f.hitTimeout;p=Ea(l,u,p),p=Na(l,u,p);let h=[],g=a=>{if(i)for(let o=0;oa.seq1Range.start-_===a.seq2Range.start-v),g(a.seq1Range.start-_),_=a.seq1Range.endExclusive,v=a.seq2Range.endExclusive;let o=this.refineDiff(e,t,a,r,i,n);o.hitTimeout&&(m=!0);for(let e of o.mappings)h.push(e)}g(e.length-_);let y=Vi(h,new Pi(e),new Pi(t)),b=[];return n.computeMoves&&(b=this.computeMoves(y,e,t,s,c,r,i,n)),d(()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;let n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function r(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1||e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(let i of y){if(!i.innerChanges)return!1;for(let r of i.innerChanges)if(!(n(r.modifiedRange.getStartPosition(),t)&&n(r.modifiedRange.getEndPosition(),t)&&n(r.originalRange.getStartPosition(),e)&&n(r.originalRange.getEndPosition(),e)))return!1;if(!r(i.modified,t)||!r(i.original,e))return!1}return!0}),new li(y,b,m)}computeMoves(e,t,n,r,i,a,o,s){return ya(e,t,n,r,i,a).map(e=>new ui(e,Vi(this.refineDiff(t,n,new ta(e.original.toOffsetRange(),e.modified.toOffsetRange()),a,o,s).mappings,new Pi(t),new Pi(n),!0)))}refineDiff(e,t,n,r,i,a){let o=Ra(n).toRangeMapping2(e,t),s=new pa(e,o.originalRange,i),c=new pa(t,o.modifiedRange,i),l=s.length+c.length<500?this.dynamicProgrammingDiffing.compute(s,c,r):this.myersDiffingAlgorithm.compute(s,c,r),u=l.diffs;return u=Ea(s,c,u),u=ja(s,c,u,(e,t)=>e.findWordContaining(t)),a.extendToSubwords&&(u=ja(s,c,u,(e,t)=>e.findSubWordContaining(t),!0)),u=Aa(s,c,u),u=Pa(s,c,u),{mappings:u.map(e=>new Bi(s.translateRange(e.seq1Range),c.translateRange(e.seq2Range))),hitTimeout:l.hitTimeout}}};function Ra(e){return new Ii(new Ei(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new Ei(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}let za={getLegacy:()=>new Ui,getDefault:()=>new La};function Ba(e,t){let n=10**t;return Math.round(e*n)/n}var Va=class{constructor(e,t,n,r=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,e))|0,this.g=Math.min(255,Math.max(0,t))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=Ba(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}},Ha=class e{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=Ba(Math.max(Math.min(1,t),0),3),this.l=Ba(Math.max(Math.min(1,n),0),3),this.a=Ba(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,a=t.a,o=Math.max(n,r,i),s=Math.min(n,r,i),c=0,l=0,u=(s+o)/2,d=o-s;if(d>0){switch(l=Math.min(u<=.5?d/(2*u):d/(2-2*u),1),o){case n:c=(r-i)/d+(r1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(t){let n=t.h/360,{s:r,l:i,a}=t,o,s,c;if(r===0)o=s=c=i;else{let t=i<.5?i*(1+r):i+r-i*r,a=2*i-t;o=e._hue2rgb(a,t,n+1/3),s=e._hue2rgb(a,t,n),c=e._hue2rgb(a,t,n-1/3)}return new Va(Math.round(o*255),Math.round(s*255),Math.round(c*255),a)}},Ua=class e{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,e),0)|0,this.s=Ba(Math.max(Math.min(1,t),0),3),this.v=Ba(Math.max(Math.min(1,n),0),3),this.a=Ba(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(t){let n=t.r/255,r=t.g/255,i=t.b/255,a=Math.max(n,r,i),o=a-Math.min(n,r,i),s=a===0?0:o/a,c;return c=o===0?0:a===n?((r-i)/o%6+6)%6:a===r?(i-n)/o+2:(n-r)/o+4,new e(Math.round(c*60),s,a,t.a)}static toRGBA(e){let{h:t,s:n,v:r,a:i}=e,a=r*n,o=a*(1-Math.abs(t/60%2-1)),s=r-a,[c,l,u]=[0,0,0];return t<60?(c=a,l=o):t<120?(c=o,l=a):t<180?(l=a,u=o):t<240?(l=o,u=a):t<300?(c=o,u=a):t<=360&&(c=a,u=o),c=Math.round((c+s)*255),l=Math.round((l+s)*255),u=Math.round((u+s)*255),new Va(c,l,u,i)}},Wa=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(e,t){return!e&&!t?!0:!e||!t?!1:e.equals(t)}get hsla(){return this._hsla?this._hsla:Ha.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ua.fromRGBA(this.rgba)}constructor(e){if(!e)throw Error(`Color needs a value`);if(e instanceof Va)this.rgba=e;else if(e instanceof Ha)this._hsla=e,this.rgba=Ha.toRGBA(e);else if(e instanceof Ua)this._hsva=e,this.rgba=Ua.toRGBA(e);else throw Error(`Invalid color ctor argument`)}equals(e){return!!e&&Va.equals(this.rgba,e.rgba)&&Ha.equals(this.hsla,e.hsla)&&Ua.equals(this.hsva,e.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),n=e._relativeLuminanceForComponent(this.rgba.g),r=e._relativeLuminanceForComponent(this.rgba.b);return Ba(.2126*t+.7152*n+.0722*r,4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()>>0,this._toNumber32Bit}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n||=.5;let r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(i-r)/i,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n||=.5;let r=e.getRelativeLuminance(),i=t.getRelativeLuminance();return n=n*(r-i)/r,e.darken(n)}static{this.white=new e(new Va(255,255,255,1))}static{this.black=new e(new Va(0,0,0,1))}static{this.red=new e(new Va(255,0,0,1))}static{this.blue=new e(new Va(0,0,255,1))}static{this.green=new e(new Va(0,255,0,1))}static{this.cyan=new e(new Va(0,255,255,1))}static{this.lightgrey=new e(new Va(211,211,211,1))}static{this.transparent=new e(new Va(0,0,0,0))}};(function(e){(function(t){(function(t){function n(t){return t.rgba.a===1?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)}t.formatRGB=n;function r(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`}t.formatRGBA=r;function i(t){return t.hsla.a===1?`hsl(${t.hsla.h}, ${Math.round(t.hsla.s*100)}%, ${Math.round(t.hsla.l*100)}%)`:e.Format.CSS.formatHSLA(t)}t.formatHSL=i;function a(e){return`hsla(${e.hsla.h}, ${Math.round(e.hsla.s*100)}%, ${Math.round(e.hsla.l*100)}%, ${e.hsla.a.toFixed(2)})`}t.formatHSLA=a;function o(e){let t=e.toString(16);return t.length===2?t:`0`+t}function s(e){return`#${o(e.rgba.r)}${o(e.rgba.g)}${o(e.rgba.b)}`}t.formatHex=s;function c(t,n=!1){return n&&t.rgba.a===1?e.Format.CSS.formatHex(t):`#${o(t.rgba.r)}${o(t.rgba.g)}${o(t.rgba.b)}${o(Math.round(t.rgba.a*255))}`}t.formatHexA=c;function l(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)}t.format=l;function u(t){if(t===`transparent`)return e.transparent;if(t.startsWith(`#`))return f(t);if(t.startsWith(`rgba(`)){let n=t.match(/rgba\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+(\.\d+)?)\)/);if(!n)throw Error(`Invalid color format `+t);return new e(new Va(parseInt(n.groups?.r??`0`),parseInt(n.groups?.g??`0`),parseInt(n.groups?.b??`0`),parseFloat(n.groups?.a??`0`)))}if(t.startsWith(`rgb(`)){let n=t.match(/rgb\((?(?:\+|-)?\d+), *(?(?:\+|-)?\d+), *(?(?:\+|-)?\d+)\)/);if(!n)throw Error(`Invalid color format `+t);return new e(new Va(parseInt(n.groups?.r??`0`),parseInt(n.groups?.g??`0`),parseInt(n.groups?.b??`0`)))}return d(t)}t.parse=u;function d(t){switch(t){case`aliceblue`:return new e(new Va(240,248,255,1));case`antiquewhite`:return new e(new Va(250,235,215,1));case`aqua`:return new e(new Va(0,255,255,1));case`aquamarine`:return new e(new Va(127,255,212,1));case`azure`:return new e(new Va(240,255,255,1));case`beige`:return new e(new Va(245,245,220,1));case`bisque`:return new e(new Va(255,228,196,1));case`black`:return new e(new Va(0,0,0,1));case`blanchedalmond`:return new e(new Va(255,235,205,1));case`blue`:return new e(new Va(0,0,255,1));case`blueviolet`:return new e(new Va(138,43,226,1));case`brown`:return new e(new Va(165,42,42,1));case`burlywood`:return new e(new Va(222,184,135,1));case`cadetblue`:return new e(new Va(95,158,160,1));case`chartreuse`:return new e(new Va(127,255,0,1));case`chocolate`:return new e(new Va(210,105,30,1));case`coral`:return new e(new Va(255,127,80,1));case`cornflowerblue`:return new e(new Va(100,149,237,1));case`cornsilk`:return new e(new Va(255,248,220,1));case`crimson`:return new e(new Va(220,20,60,1));case`cyan`:return new e(new Va(0,255,255,1));case`darkblue`:return new e(new Va(0,0,139,1));case`darkcyan`:return new e(new Va(0,139,139,1));case`darkgoldenrod`:return new e(new Va(184,134,11,1));case`darkgray`:return new e(new Va(169,169,169,1));case`darkgreen`:return new e(new Va(0,100,0,1));case`darkgrey`:return new e(new Va(169,169,169,1));case`darkkhaki`:return new e(new Va(189,183,107,1));case`darkmagenta`:return new e(new Va(139,0,139,1));case`darkolivegreen`:return new e(new Va(85,107,47,1));case`darkorange`:return new e(new Va(255,140,0,1));case`darkorchid`:return new e(new Va(153,50,204,1));case`darkred`:return new e(new Va(139,0,0,1));case`darksalmon`:return new e(new Va(233,150,122,1));case`darkseagreen`:return new e(new Va(143,188,143,1));case`darkslateblue`:return new e(new Va(72,61,139,1));case`darkslategray`:return new e(new Va(47,79,79,1));case`darkslategrey`:return new e(new Va(47,79,79,1));case`darkturquoise`:return new e(new Va(0,206,209,1));case`darkviolet`:return new e(new Va(148,0,211,1));case`deeppink`:return new e(new Va(255,20,147,1));case`deepskyblue`:return new e(new Va(0,191,255,1));case`dimgray`:return new e(new Va(105,105,105,1));case`dimgrey`:return new e(new Va(105,105,105,1));case`dodgerblue`:return new e(new Va(30,144,255,1));case`firebrick`:return new e(new Va(178,34,34,1));case`floralwhite`:return new e(new Va(255,250,240,1));case`forestgreen`:return new e(new Va(34,139,34,1));case`fuchsia`:return new e(new Va(255,0,255,1));case`gainsboro`:return new e(new Va(220,220,220,1));case`ghostwhite`:return new e(new Va(248,248,255,1));case`gold`:return new e(new Va(255,215,0,1));case`goldenrod`:return new e(new Va(218,165,32,1));case`gray`:return new e(new Va(128,128,128,1));case`green`:return new e(new Va(0,128,0,1));case`greenyellow`:return new e(new Va(173,255,47,1));case`grey`:return new e(new Va(128,128,128,1));case`honeydew`:return new e(new Va(240,255,240,1));case`hotpink`:return new e(new Va(255,105,180,1));case`indianred`:return new e(new Va(205,92,92,1));case`indigo`:return new e(new Va(75,0,130,1));case`ivory`:return new e(new Va(255,255,240,1));case`khaki`:return new e(new Va(240,230,140,1));case`lavender`:return new e(new Va(230,230,250,1));case`lavenderblush`:return new e(new Va(255,240,245,1));case`lawngreen`:return new e(new Va(124,252,0,1));case`lemonchiffon`:return new e(new Va(255,250,205,1));case`lightblue`:return new e(new Va(173,216,230,1));case`lightcoral`:return new e(new Va(240,128,128,1));case`lightcyan`:return new e(new Va(224,255,255,1));case`lightgoldenrodyellow`:return new e(new Va(250,250,210,1));case`lightgray`:return new e(new Va(211,211,211,1));case`lightgreen`:return new e(new Va(144,238,144,1));case`lightgrey`:return new e(new Va(211,211,211,1));case`lightpink`:return new e(new Va(255,182,193,1));case`lightsalmon`:return new e(new Va(255,160,122,1));case`lightseagreen`:return new e(new Va(32,178,170,1));case`lightskyblue`:return new e(new Va(135,206,250,1));case`lightslategray`:return new e(new Va(119,136,153,1));case`lightslategrey`:return new e(new Va(119,136,153,1));case`lightsteelblue`:return new e(new Va(176,196,222,1));case`lightyellow`:return new e(new Va(255,255,224,1));case`lime`:return new e(new Va(0,255,0,1));case`limegreen`:return new e(new Va(50,205,50,1));case`linen`:return new e(new Va(250,240,230,1));case`magenta`:return new e(new Va(255,0,255,1));case`maroon`:return new e(new Va(128,0,0,1));case`mediumaquamarine`:return new e(new Va(102,205,170,1));case`mediumblue`:return new e(new Va(0,0,205,1));case`mediumorchid`:return new e(new Va(186,85,211,1));case`mediumpurple`:return new e(new Va(147,112,219,1));case`mediumseagreen`:return new e(new Va(60,179,113,1));case`mediumslateblue`:return new e(new Va(123,104,238,1));case`mediumspringgreen`:return new e(new Va(0,250,154,1));case`mediumturquoise`:return new e(new Va(72,209,204,1));case`mediumvioletred`:return new e(new Va(199,21,133,1));case`midnightblue`:return new e(new Va(25,25,112,1));case`mintcream`:return new e(new Va(245,255,250,1));case`mistyrose`:return new e(new Va(255,228,225,1));case`moccasin`:return new e(new Va(255,228,181,1));case`navajowhite`:return new e(new Va(255,222,173,1));case`navy`:return new e(new Va(0,0,128,1));case`oldlace`:return new e(new Va(253,245,230,1));case`olive`:return new e(new Va(128,128,0,1));case`olivedrab`:return new e(new Va(107,142,35,1));case`orange`:return new e(new Va(255,165,0,1));case`orangered`:return new e(new Va(255,69,0,1));case`orchid`:return new e(new Va(218,112,214,1));case`palegoldenrod`:return new e(new Va(238,232,170,1));case`palegreen`:return new e(new Va(152,251,152,1));case`paleturquoise`:return new e(new Va(175,238,238,1));case`palevioletred`:return new e(new Va(219,112,147,1));case`papayawhip`:return new e(new Va(255,239,213,1));case`peachpuff`:return new e(new Va(255,218,185,1));case`peru`:return new e(new Va(205,133,63,1));case`pink`:return new e(new Va(255,192,203,1));case`plum`:return new e(new Va(221,160,221,1));case`powderblue`:return new e(new Va(176,224,230,1));case`purple`:return new e(new Va(128,0,128,1));case`rebeccapurple`:return new e(new Va(102,51,153,1));case`red`:return new e(new Va(255,0,0,1));case`rosybrown`:return new e(new Va(188,143,143,1));case`royalblue`:return new e(new Va(65,105,225,1));case`saddlebrown`:return new e(new Va(139,69,19,1));case`salmon`:return new e(new Va(250,128,114,1));case`sandybrown`:return new e(new Va(244,164,96,1));case`seagreen`:return new e(new Va(46,139,87,1));case`seashell`:return new e(new Va(255,245,238,1));case`sienna`:return new e(new Va(160,82,45,1));case`silver`:return new e(new Va(192,192,192,1));case`skyblue`:return new e(new Va(135,206,235,1));case`slateblue`:return new e(new Va(106,90,205,1));case`slategray`:return new e(new Va(112,128,144,1));case`slategrey`:return new e(new Va(112,128,144,1));case`snow`:return new e(new Va(255,250,250,1));case`springgreen`:return new e(new Va(0,255,127,1));case`steelblue`:return new e(new Va(70,130,180,1));case`tan`:return new e(new Va(210,180,140,1));case`teal`:return new e(new Va(0,128,128,1));case`thistle`:return new e(new Va(216,191,216,1));case`tomato`:return new e(new Va(255,99,71,1));case`turquoise`:return new e(new Va(64,224,208,1));case`violet`:return new e(new Va(238,130,238,1));case`wheat`:return new e(new Va(245,222,179,1));case`white`:return new e(new Va(255,255,255,1));case`whitesmoke`:return new e(new Va(245,245,245,1));case`yellow`:return new e(new Va(255,255,0,1));case`yellowgreen`:return new e(new Va(154,205,50,1));default:return null}}function f(t){let n=t.length;if(n===0||t.charCodeAt(0)!==35)return null;if(n===7)return new e(new Va(16*p(t.charCodeAt(1))+p(t.charCodeAt(2)),16*p(t.charCodeAt(3))+p(t.charCodeAt(4)),16*p(t.charCodeAt(5))+p(t.charCodeAt(6)),1));if(n===9)return new e(new Va(16*p(t.charCodeAt(1))+p(t.charCodeAt(2)),16*p(t.charCodeAt(3))+p(t.charCodeAt(4)),16*p(t.charCodeAt(5))+p(t.charCodeAt(6)),(16*p(t.charCodeAt(7))+p(t.charCodeAt(8)))/255));if(n===4){let n=p(t.charCodeAt(1)),r=p(t.charCodeAt(2)),i=p(t.charCodeAt(3));return new e(new Va(16*n+n,16*r+r,16*i+i))}if(n===5){let n=p(t.charCodeAt(1)),r=p(t.charCodeAt(2)),i=p(t.charCodeAt(3)),a=p(t.charCodeAt(4));return new e(new Va(16*n+n,16*r+r,16*i+i,(16*a+a)/255))}return null}t.parseHex=f;function p(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||={})})(e.Format||={})})(Wa||={});function Ga(e){let t=[];for(let n of e){let e=Number(n);(e||e===0&&n.replace(/\s/g,``)!==``)&&t.push(e)}return t}function Ka(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function qa(e,t){let n=t.index,r=t[0].length;if(n===void 0)return;let i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function Ja(e,t){if(!e)return;let n=Wa.Format.CSS.parseHex(t);if(n)return{range:e,color:Ka(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Ya(e,t,n){if(!e||t.length!==1)return;let r=Ga(t[0].values());return{range:e,color:Ka(r[0],r[1],r[2],n?r[3]:1)}}function Xa(e,t,n){if(!e||t.length!==1)return;let r=Ga(t[0].values()),i=new Wa(new Ha(r[0],r[1]/100,r[2]/100,n?r[3]:1));return{range:e,color:Ka(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}}function Za(e,t){return typeof e==`string`?[...e.matchAll(t)]:e.findMatches(t)}function U(e){let t=[],n=Za(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|^(#)([A-Fa-f0-9]{3})\b|^(#)([A-Fa-f0-9]{4})\b|^(#)([A-Fa-f0-9]{6})\b|^(#)([A-Fa-f0-9]{8})\b|(?<=['"\s])(#)([A-Fa-f0-9]{3})\b|(?<=['"\s])(#)([A-Fa-f0-9]{4})\b|(?<=['"\s])(#)([A-Fa-f0-9]{6})\b|(?<=['"\s])(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(let r of n){let n=r.filter(e=>e!==void 0),i=n[1],a=n[2];if(!a)continue;let o;i===`rgb`?o=Ya(qa(e,r),Za(a,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm),!1):i===`rgba`?o=Ya(qa(e,r),Za(a,/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm),!0):i===`hsl`?o=Xa(qa(e,r),Za(a,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm),!1):i===`hsla`?o=Xa(qa(e,r),Za(a,/^\(\s*((?:360(?:\.0+)?|(?:36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])(?:\.\d+)?))\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*[\s,]\s*(0[.][0-9]+|[.][0-9]+|[01][.]0*|[01])\s*\)$/gm),!0):i===`#`&&(o=Ja(qa(e,r),i+a)),o&&t.push(o)}return t}function Qa(e){return!e||typeof e.getValue!=`function`||typeof e.positionAt!=`function`?[]:U(e)}let $a=/^-+|-+$/g;function eo(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){let r=to(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){let r=no(e,t);n=n.concat(r)}return n}function to(e,t){let n=[],r=e.getLineCount();for(let i=1;i<=r;i++){let r=e.getLineContent(i),a=r.match(t.foldingRules.markers.start);if(a){let e={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:r.length+1};if(e.endColumn>e.startColumn){let t={range:e,...ro(r.substring(a[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}function no(e,t){let n=[],r=e.getLineCount();if(!t.markSectionHeaderRegex||t.markSectionHeaderRegex.trim()===``)return n;let i=Jr(t.markSectionHeaderRegex),a=new RegExp(t.markSectionHeaderRegex,`gdm${i?`s`:``}`);if(Ce(a))return n;for(let t=1;t<=r;t+=95){let i=Math.min(t+100-1,r),o=[];for(let n=t;n<=i;n++)o.push(e.getLineContent(n));let s=o.join(` `);a.lastIndex=0;let c;for(;(c=a.exec(s))!==null;){let e=s.substring(0,c.index),r=(e.match(/\n/g)||[]).length,i=t+r,o=c[0].split(` `),l=o.length,u=i+l-1,d=e.lastIndexOf(` `)+1,f=c.index-d+1,p=o[o.length-1],m={range:{startLineNumber:i,startColumn:f,endLineNumber:u,endColumn:l===1?f+c[0].length:p.length+1},text:(c.groups??{}).label??``,hasSeparatorLine:((c.groups??{}).separator??``)!==``,shouldBeInComments:!0};(m.text||m.hasSeparatorLine)&&(n.length===0||n[n.length-1].range.endLineNumber{this.completeCallback=e,this.errorCallback=t})}complete(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()})}error(e){return this.isSettled?Promise.resolve():new Promise(t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()})}cancel(){return this.error(new o)}},ao;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(ao||={});var oo=class{constructor(){this._unsatisfiedConsumers=[],this._unconsumedValues=[]}get hasFinalValue(){return!!this._finalValue}produce(e){if(this._ensureNoFinalValue(),this._unsatisfiedConsumers.length>0){let t=this._unsatisfiedConsumers.shift();this._resolveOrRejectDeferred(t,e)}else this._unconsumedValues.push(e)}produceFinal(e){this._ensureNoFinalValue(),this._finalValue=e;for(let t of this._unsatisfiedConsumers)this._resolveOrRejectDeferred(t,e);this._unsatisfiedConsumers.length=0}_ensureNoFinalValue(){if(this._finalValue)throw new c(`ProducerConsumer: cannot produce after final value has been set`)}_resolveOrRejectDeferred(e,t){t.ok?e.complete(t.value):e.error(t.error)}consume(){if(this._unconsumedValues.length>0||this._finalValue){let e=this._unconsumedValues.length>0?this._unconsumedValues.shift():this._finalValue;return e.ok?Promise.resolve(e.value):Promise.reject(e.error)}else{let e=new io;return this._unsatisfiedConsumers.push(e),e.p}}};(class e{constructor(e,t){this._onReturn=t,this._producerConsumer=new oo,this._iterator={next:()=>this._producerConsumer.consume(),return:()=>(this._onReturn?.(),Promise.resolve({done:!0,value:void 0})),throw:async e=>(this._finishError(e),{done:!0,value:void 0})},queueMicrotask(async()=>{let t=e({emitOne:e=>this._producerConsumer.produce({ok:!0,value:{done:!1,value:e}}),emitMany:e=>{for(let t of e)this._producerConsumer.produce({ok:!0,value:{done:!1,value:t}})},reject:e=>this._finishError(e)});if(!this._producerConsumer.hasFinalValue)try{await t,this._finishOk()}catch(e){this._finishError(e)}})}static fromArray(t){return new e(e=>{e.emitMany(t)})}static fromPromise(t){return new e(async e=>{e.emitMany(await t)})}static fromPromisesResolveOrder(t){return new e(async e=>{await Promise.all(t.map(async t=>e.emitOne(await t)))})}static merge(t){return new e(async e=>{await Promise.all(t.map(async t=>{for await(let n of t)e.emitOne(n)}))})}static{this.EMPTY=e.fromArray([])}static map(t,n){return new e(async e=>{for await(let r of t)e.emitOne(n(r))})}map(t){return e.map(this,t)}static coalesce(t){return e.filter(t,e=>!!e)}coalesce(){return e.coalesce(this)}static filter(t,n){return new e(async e=>{for await(let r of t)n(r)&&e.emitOne(r)})}filter(t){return e.filter(this,t)}_finishOk(){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!0,value:{done:!0,value:void 0}})}_finishError(e){this._producerConsumer.hasFinalValue||this._producerConsumer.produceFinal({ok:!1,error:e})}[Symbol.asyncIterator](){return this._iterator}});var so=class{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=ft(e);let n=this.values,r=this.prefixSum,i=t.length;return i===0?!1:(this.values=new Uint32Array(n.length+i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+i),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=ft(e),t=ft(t),this.values[e]===t?!1:(this.values[e]=t,e-1=n.length)return!1;let i=n.length-e;return t>=i&&(t=i),t===0?!1:(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=ft(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,r=0,i=0,a=0;for(;t<=n;)if(r=t+(n-t)/2|0,i=this.prefixSum[r],a=i-this.values[r],e=i)t=r+1;else break;return new co(r,e-a)}},co=class{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}},lo=class{constructor(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r,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(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);let t=e.changes;for(let e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new R(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let r=0;re.push(this._models[t])),e}$acceptNewModel(e){this._models[e.url]=new fo(ln.parse(e.url),e.lines,e.EOL,e.versionId)}$acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}$acceptRemovedModel(e){this._models[e]&&delete this._models[e]}},fo=class extends lo{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){let t=[];for(let n=0;nthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>e&&(n=e,r=!0)}return r?{lineNumber:t,column:n}:e}},po=class e{constructor(e=null){this._foreignModule=e,this._requestHandlerBrand=void 0,this._workerTextModelSyncServer=new uo}dispose(){}async $ping(){return`pong`}_getModel(e){return this._workerTextModelSyncServer.getModel(e)}getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(e){this._workerTextModelSyncServer.$acceptNewModel(e)}$acceptModelChanged(e,t){this._workerTextModelSyncServer.$acceptModelChanged(e,t)}$acceptRemovedModel(e){this._workerTextModelSyncServer.$acceptRemovedModel(e)}async $computeUnicodeHighlights(e,t,n){let r=this._getModel(e);return r?ai.computeUnicodeHighlights(r,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(e,t){let n=this._getModel(e);return n?eo(n,t):[]}async $computeDiff(t,n,r,i){let a=this._getModel(t),o=this._getModel(n);return!a||!o?null:e.computeDiff(a,o,r,i)}static computeDiff(e,t,n,r){let i=r===`advanced`?za.getDefault():za.getLegacy(),a=e.getLinesContent(),o=t.getLinesContent(),s=i.computeDiff(a,o,n),c=s.changes.length>0?!1:this._modelsAreIdentical(e,t);function l(e){return e.map(e=>[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,e.innerChanges?.map(e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn])])}return{identical:c,quitEarly:s.hitTimeout,changes:l(s.changes),moves:s.moves.map(e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)])}}static _modelsAreIdentical(e,t){let n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let r=1;r<=n;r++)if(e.getLineContent(r)!==t.getLineContent(r))return!1;return!0}static{this._diffLimit=1e5}async $computeMoreMinimalEdits(t,n,r){let i=this._getModel(t);if(!i)return n;let a=[],o;n=n.slice(0).sort((e,t)=>e.range&&t.range?dt.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1));let s=0;for(let e=1;ee._diffLimit){a.push({range:t,text:s});continue}let l=ot(n,s,r),u=i.offsetAt(dt.lift(t).getStartPosition());for(let e of l){let t=i.positionAt(u+e.originalStart),n=i.positionAt(u+e.originalStart+e.originalLength),r={text:s.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}};i.getValueInRange(r.range)!==r.text&&a.push(r)}}return typeof o==`number`&&a.push({eol:o,text:``,range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),a}async $computeLinks(e){let t=this._getModel(e);return t?xt(t):null}async $computeDefaultDocumentColors(e){let t=this._getModel(e);return t?Qa(t):null}static{this._suggestionsLimit=1e4}async $textualSuggest(t,n,r,i){let a=new T,o=new RegExp(r,i),s=new Set;outer:for(let r of t){let t=this._getModel(r);if(t){for(let r of t.words(o))if(!(r===n||!isNaN(Number(r)))&&(s.add(r),s.size>e._suggestionsLimit))break outer}}return{words:Array.from(s),duration:a.elapsed()}}async $computeWordRanges(e,t,n,r){let i=this._getModel(e);if(!i)return Object.create(null);let a=new RegExp(n,r),o=Object.create(null);for(let e=t.startLineNumber;e{let i=mo.getChannel(r);return t=e({host:new Proxy({},{get(e,t,n){if(t!==`then`){if(typeof t!=`string`)throw Error(`Not supported`);return(...e)=>i.$fhr(t,e)}}}),getMirrorModels:()=>n.requestHandler.getModels()}),new po(t)});return t}function go(e){self.onmessage=t=>{ho(n=>e(n,t.data))}}var _o=t({EndOfLineState:()=>Co,IndentStyle:()=>To,ScriptKind:()=>Eo,ScriptTarget:()=>Do,TokenClass:()=>Oo,createClassifier:()=>bo,createLanguageService:()=>xo,displayPartsToString:()=>So,flattenDiagnosticMessageText:()=>wo,typescript:()=>ko}),vo=void 0,yo={};(e=>{var t=Object.defineProperty,n=(e,n)=>{for(var r in n)t(e,r,{get:n[r],enumerable:!0})},r=e=>e,i={};n(i,{ANONYMOUS:()=>d$,AccessFlags:()=>gi,AssertionLevel:()=>jt,AssignmentDeclarationKind:()=>Ei,AssignmentKind:()=>C_,Associativity:()=>Av,BreakpointResolver:()=>g4,BuilderFileEmit:()=>vG,BuilderProgramKind:()=>$G,BuilderState:()=>_G,CallHierarchy:()=>_4,CharacterCodes:()=>Hi,CheckFlags:()=>li,CheckMode:()=>dB,ClassificationType:()=>lX,ClassificationTypeNames:()=>cX,CommentDirectiveType:()=>Wr,Comparison:()=>s,CompletionInfoFlags:()=>tX,CompletionTriggerKind:()=>JY,Completions:()=>S8,ContainerFlags:()=>mz,ContextFlags:()=>ei,Debug:()=>H,DiagnosticCategory:()=>Di,Diagnostics:()=>G,DocumentHighlights:()=>f1,ElementFlags:()=>hi,EmitFlags:()=>Ki,EmitHint:()=>Xi,EmitOnly:()=>Jr,EndOfLineState:()=>iX,ExitStatus:()=>Xr,ExportKind:()=>$$,Extension:()=>Ui,ExternalEmitHelpers:()=>Yi,FileIncludeKind:()=>Kr,FilePreprocessingDiagnosticsKind:()=>qr,FileSystemEntryKind:()=>Ea,FileWatcherEventKind:()=>aa,FindAllReferences:()=>u5,FlattenLevel:()=>FV,FlowFlags:()=>Ur,ForegroundColorEscapeSequences:()=>hW,FunctionFlags:()=>sv,GeneratedIdentifierFlags:()=>Br,GetLiteralTextFlags:()=>Mp,GoToDefinition:()=>T5,HighlightSpanKind:()=>XY,IdentifierNameMap:()=>lV,ImportKind:()=>Q$,ImportsNotUsedAsValues:()=>Ii,IndentStyle:()=>ZY,IndexFlags:()=>_i,IndexKind:()=>xi,InferenceFlags:()=>wi,InferencePriority:()=>Ci,InlayHintKind:()=>YY,InlayHints:()=>P5,InternalEmitFlags:()=>qi,InternalNodeBuilderFlags:()=>ni,InternalSymbolName:()=>ui,IntersectionFlags:()=>$r,InvalidatedProjectKind:()=>Wq,JSDocParsingMode:()=>na,JsDoc:()=>I5,JsTyping:()=>CY,JsxEmit:()=>Fi,JsxFlags:()=>Lr,JsxReferenceKind:()=>vi,LanguageFeatureMinimumTarget:()=>Ji,LanguageServiceMode:()=>$,LanguageVariant:()=>Bi,LexicalEnvironmentFlags:()=>Qi,ListFormat:()=>$i,LogLevel:()=>Dn,MapCode:()=>B5,MemberOverrideStatus:()=>Zr,ModifierFlags:()=>Ir,ModuleDetectionKind:()=>Ai,ModuleInstanceState:()=>lz,ModuleKind:()=>Pi,ModuleResolutionKind:()=>ki,ModuleSpecifierEnding:()=>nw,NavigateTo:()=>K1,NavigationBar:()=>J1,NewLineKind:()=>Li,NodeBuilderFlags:()=>ti,NodeCheckFlags:()=>di,NodeFactoryFlags:()=>SE,NodeFlags:()=>Fr,NodeResolutionFeatures:()=>eR,ObjectFlags:()=>pi,OperationCanceledException:()=>Gr,OperatorPrecedence:()=>Fv,OrganizeImports:()=>U5,OrganizeImportsMode:()=>qY,OuterExpressionKinds:()=>Zi,OutliningElementsCollector:()=>n7,OutliningSpanKind:()=>nX,OutputFileType:()=>rX,PackageJsonAutoImportPreference:()=>WY,PackageJsonDependencyGroup:()=>UY,PatternMatchKind:()=>S1,PollingInterval:()=>oa,PollingWatchKind:()=>Ni,PragmaKindFlags:()=>ea,PredicateSemantics:()=>zr,PreparePasteEdits:()=>Q7,PrivateIdentifierKind:()=>ED,ProcessLevel:()=>pH,ProgramUpdateLevel:()=>KU,QuotePreference:()=>rQ,RegularExpressionFlags:()=>Vr,RelationComparisonResult:()=>Rr,Rename:()=>s7,ScriptElementKind:()=>oX,ScriptElementKindModifier:()=>sX,ScriptKind:()=>Ri,ScriptSnapshot:()=>HY,ScriptTarget:()=>zi,SemanticClassificationFormat:()=>KY,SemanticMeaning:()=>dX,SemicolonPreference:()=>QY,SignatureCheckMode:()=>fB,SignatureFlags:()=>bi,SignatureHelp:()=>u7,SignatureInfo:()=>gG,SignatureKind:()=>yi,SmartSelectionRange:()=>m7,SnippetKind:()=>Gi,StatisticType:()=>NJ,StructureIsReused:()=>Yr,SymbolAccessibility:()=>ai,SymbolDisplay:()=>v7,SymbolDisplayPartKind:()=>eX,SymbolFlags:()=>ci,SymbolFormatFlags:()=>ii,SyntaxKind:()=>Pr,Ternary:()=>Ti,ThrottledCancellationToken:()=>u4,TokenClass:()=>aX,TokenFlags:()=>Hr,TransformFlags:()=>Wi,TypeFacts:()=>lB,TypeFlags:()=>fi,TypeFormatFlags:()=>ri,TypeMapKind:()=>Si,TypePredicateKind:()=>oi,TypeReferenceSerializationKind:()=>si,UnionReduction:()=>Qr,UpToDateStatusType:()=>vq,VarianceFlags:()=>mi,Version:()=>Fn,VersionRange:()=>Rn,WatchDirectoryFlags:()=>Vi,WatchDirectoryKind:()=>Mi,WatchFileKind:()=>ji,WatchLogLevel:()=>eW,WatchType:()=>nq,accessPrivateIdentifier:()=>jV,addEmitFlags:()=>WE,addEmitHelper:()=>uD,addEmitHelpers:()=>dD,addInternalEmitFlags:()=>KE,addNodeFactoryPatcher:()=>wE,addObjectAllocatorPatcher:()=>cS,addRange:()=>Ee,addRelatedInfo:()=>Dw,addSyntheticLeadingComment:()=>rD,addSyntheticTrailingComment:()=>oD,addToSeen:()=>Jx,advancedAsyncSuperHelper:()=>ZD,affectsDeclarationPathOptionDeclarations:()=>eF,affectsEmitOptionDeclarations:()=>$P,allKeysStartWithDot:()=>PR,altDirectorySeparator:()=>Ia,and:()=>_n,append:()=>I,appendIfUnique:()=>Oe,arrayFrom:()=>$e,arrayIsEqualTo:()=>xe,arrayIsHomogeneous:()=>Gw,arrayOf:()=>Qe,arrayReverseIterator:()=>je,arrayToMap:()=>nt,arrayToMultiMap:()=>it,arrayToNumericMap:()=>rt,assertType:()=>bn,assign:()=>et,asyncSuperHelper:()=>XD,attachFileToDiagnostics:()=>_S,base64decode:()=>$b,base64encode:()=>Qb,binarySearch:()=>We,binarySearchKey:()=>L,bindSourceFile:()=>gz,breakIntoCharacterSpans:()=>j1,breakIntoWordSpans:()=>M1,buildLinkParts:()=>RQ,buildOpts:()=>uF,buildOverload:()=>GOe,bundlerModuleNameResolver:()=>iR,canBeConvertedToAsync:()=>H1,canHaveDecorators:()=>HN,canHaveExportModifier:()=>pT,canHaveFlowNode:()=>c_,canHaveIllegalDecorators:()=>sN,canHaveIllegalModifiers:()=>cN,canHaveIllegalType:()=>aN,canHaveIllegalTypeParameters:()=>oN,canHaveJSDoc:()=>l_,canHaveLocals:()=>Nd,canHaveModifiers:()=>VN,canHaveModuleSpecifier:()=>Wg,canHaveSymbol:()=>Md,canIncludeBindAndCheckDiagnostics:()=>Nw,canJsonReportNoInputFiles:()=>jI,canProduceDiagnostics:()=>ZH,canUsePropertyAccess:()=>hT,canWatchAffectingLocation:()=>CK,canWatchAtTypes:()=>bK,canWatchDirectoryOrFile:()=>vK,canWatchDirectoryOrFilePath:()=>yK,cartesianProduct:()=>Sn,cast:()=>yt,chainBundle:()=>nV,chainDiagnosticMessages:()=>SS,changeAnyExtension:()=>Co,changeCompilerHostLikeToUseCache:()=>dW,changeExtension:()=>pw,changeFullExtension:()=>wo,changesAffectModuleResolution:()=>Of,changesAffectingProgramStructure:()=>kf,characterCodeToRegularExpressionFlag:()=>cs,childIsDecorated:()=>Vh,classElementOrClassElementParameterIsDecorated:()=>Uh,classHasClassThisAssignment:()=>ZV,classHasDeclaredOrExplicitlyAssignedName:()=>iH,classHasExplicitlyAssignedName:()=>rH,classOrConstructorParameterIsDecorated:()=>Hh,classicNameResolver:()=>nz,classifier:()=>S4,cleanExtendedConfigCache:()=>YU,clear:()=>O,clearMap:()=>zx,clearSharedExtendedConfigFileWatcher:()=>JU,climbPastPropertyAccess:()=>xX,clone:()=>st,cloneCompilerOptions:()=>kZ,closeFileWatcher:()=>Ax,closeFileWatcherOf:()=>rW,codefix:()=>C4,collapseTextChangeRangesAcrossMultipleVersions:()=>Dc,collectExternalModuleInfo:()=>oV,combine:()=>we,combinePaths:()=>lo,commandLineOptionOfCustomType:()=>oF,commentPragmas:()=>ta,commonOptionsWithBuild:()=>qP,compact:()=>Se,compareBooleans:()=>Zt,compareDataObjects:()=>Rx,compareDiagnostics:()=>TS,compareEmitHelpers:()=>OD,compareNumberOfDirectorySeparators:()=>cw,comparePaths:()=>ko,comparePathsCaseInsensitive:()=>Oo,comparePathsCaseSensitive:()=>Do,comparePatternKeys:()=>LR,compareProperties:()=>Xt,compareStringsCaseInsensitive:()=>Bt,compareStringsCaseInsensitiveEslintCompatible:()=>Vt,compareStringsCaseSensitive:()=>Ht,compareStringsCaseSensitiveUI:()=>Yt,compareTextSpans:()=>Lt,compareValues:()=>It,compilerOptionsAffectDeclarationPath:()=>fC,compilerOptionsAffectEmit:()=>dC,compilerOptionsAffectSemanticDiagnostics:()=>uC,compilerOptionsDidYouMeanDiagnostics:()=>wF,compilerOptionsIndicateEsModules:()=>ZZ,computeCommonSourceDirectoryOfFilenames:()=>oW,computeLineAndCharacterOfPosition:()=>ps,computeLineOfPosition:()=>ms,computeLineStarts:()=>ls,computePositionOfLineAndCharacter:()=>ds,computeSignatureWithDiagnostics:()=>nK,computeSuggestionDiagnostics:()=>R1,computedOptions:()=>LS,concatenate:()=>de,concatenateDiagnosticMessageChains:()=>CS,consumesNodeCoreModules:()=>D$,contains:()=>C,containsIgnoredPath:()=>tT,containsObjectRestOrSpread:()=>BN,containsParseError:()=>qf,containsPath:()=>Ao,convertCompilerOptionsForTelemetry:()=>lL,convertCompilerOptionsFromJson:()=>zI,convertJsonOption:()=>JI,convertToBase64:()=>Xb,convertToJson:()=>eI,convertToObject:()=>$F,convertToOptionsWithAbsolutePaths:()=>pI,convertToRelativePath:()=>Po,convertToTSConfig:()=>rI,convertTypeAcquisitionFromJson:()=>BI,copyComments:()=>ZQ,copyEntries:()=>Pf,copyLeadingComments:()=>e$,copyProperties:()=>lt,copyTrailingAsLeadingComments:()=>n$,copyTrailingComments:()=>t$,couldStartTrivia:()=>Ts,countWhere:()=>T,createAbstractBuilder:()=>hK,createAccessorPropertyBackingField:()=>PN,createAccessorPropertyGetRedirector:()=>FN,createAccessorPropertySetRedirector:()=>IN,createBaseNodeFactory:()=>gE,createBinaryExpressionTrampoline:()=>EN,createBuilderProgram:()=>iK,createBuilderProgramUsingIncrementalBuildInfo:()=>lK,createBuilderStatusReporter:()=>wq,createCacheableExportInfoMap:()=>e1,createCachedDirectoryStructureHost:()=>GU,createClassifier:()=>fae,createCommentDirectivesMap:()=>gp,createCompilerDiagnostic:()=>bS,createCompilerDiagnosticForInvalidCustomType:()=>gF,createCompilerDiagnosticFromMessageChain:()=>xS,createCompilerHost:()=>sW,createCompilerHostFromProgramHost:()=>iq,createCompilerHostWorker:()=>uW,createDetachedDiagnostic:()=>hS,createDiagnosticCollection:()=>zv,createDiagnosticForFileFromMessageChain:()=>xm,createDiagnosticForNode:()=>mm,createDiagnosticForNodeArray:()=>hm,createDiagnosticForNodeArrayFromMessageChain:()=>vm,createDiagnosticForNodeFromMessageChain:()=>_m,createDiagnosticForNodeInSourceFile:()=>gm,createDiagnosticForRange:()=>Cm,createDiagnosticMessageChainFromDiagnostic:()=>Sm,createDiagnosticReporter:()=>NK,createDocumentPositionMapper:()=>ZB,createDocumentRegistry:()=>m1,createDocumentRegistryInternal:()=>h1,createEmitAndSemanticDiagnosticsBuilderProgram:()=>mK,createEmitHelperFactory:()=>DD,createEmptyExports:()=>pM,createEvaluator:()=>RT,createExpressionForJsxElement:()=>yM,createExpressionForJsxFragment:()=>bM,createExpressionForObjectLiteralElementLike:()=>DM,createExpressionForPropertyName:()=>CM,createExpressionFromEntityName:()=>SM,createExternalHelpersImportDeclarationIfNeeded:()=>GM,createFileDiagnostic:()=>vS,createFileDiagnosticFromMessageChain:()=>bm,createFlowNode:()=>hz,createForOfBindingStatement:()=>xM,createFutureSourceFile:()=>Z$,createGetCanonicalFileName:()=>ln,createGetIsolatedDeclarationErrors:()=>eU,createGetSourceFile:()=>cW,createGetSymbolAccessibilityDiagnosticForNode:()=>$H,createGetSymbolAccessibilityDiagnosticForNodeName:()=>QH,createGetSymbolWalker:()=>Cz,createIncrementalCompilerHost:()=>mq,createIncrementalProgram:()=>hq,createJsxFactoryExpression:()=>_M,createLanguageService:()=>d4,createLanguageServiceSourceFile:()=>c4,createMemberAccessForPropertyName:()=>mM,createModeAwareCache:()=>WL,createModeAwareCacheKey:()=>UL,createModeMismatchDetails:()=>Hf,createModuleNotFoundChain:()=>Vf,createModuleResolutionCache:()=>qL,createModuleResolutionLoader:()=>RW,createModuleResolutionLoaderUsingGlobalCache:()=>AK,createModuleSpecifierResolutionHost:()=>QZ,createMultiMap:()=>R,createNameResolver:()=>VT,createNodeConverters:()=>yE,createNodeFactory:()=>TE,createOptionNameMap:()=>fF,createOverload:()=>e9,createPackageJsonImportFilter:()=>E$,createPackageJsonInfo:()=>T$,createParenthesizerRules:()=>_E,createPatternMatcher:()=>w1,createPrinter:()=>WU,createPrinterWithDefaults:()=>BU,createPrinterWithRemoveComments:()=>VU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>HU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>UU,createProgram:()=>tG,createProgramDiagnostics:()=>mG,createProgramHost:()=>sq,createPropertyNameNodeForIdentifierOrLiteral:()=>lT,createQueue:()=>ft,createRange:()=>ox,createRedirectedBuilderProgram:()=>fK,createResolutionCache:()=>jK,createRuntimeTypeSerializer:()=>wH,createScanner:()=>Gs,createSemanticDiagnosticsBuilderProgram:()=>pK,createSet:()=>pt,createSolutionBuilder:()=>kq,createSolutionBuilderHost:()=>Eq,createSolutionBuilderWithWatch:()=>Aq,createSolutionBuilderWithWatchHost:()=>Dq,createSortedArray:()=>ve,createSourceFile:()=>gP,createSourceMapGenerator:()=>LB,createSourceMapSource:()=>RE,createSuperAccessVariableStatement:()=>OH,createSymbolTable:()=>Cf,createSymlinkCache:()=>vC,createSyntacticTypeNodeBuilder:()=>tie,createSystemWatchFunctions:()=>ja,createTextChange:()=>BZ,createTextChangeFromStartLength:()=>zZ,createTextChangeRange:()=>Tc,createTextRangeFromNode:()=>IZ,createTextRangeFromSpan:()=>RZ,createTextSpan:()=>xc,createTextSpanFromBounds:()=>Sc,createTextSpanFromNode:()=>PZ,createTextSpanFromRange:()=>LZ,createTextSpanFromStringLiteralLikeContent:()=>FZ,createTextWriter:()=>ry,createTokenRange:()=>dx,createTypeChecker:()=>_B,createTypeReferenceDirectiveResolutionCache:()=>JL,createTypeReferenceResolutionLoader:()=>VW,createWatchCompilerHost:()=>gq,createWatchCompilerHostOfConfigFile:()=>uq,createWatchCompilerHostOfFilesAndCompilerOptions:()=>dq,createWatchFactory:()=>rq,createWatchHost:()=>tq,createWatchProgram:()=>_q,createWatchStatusReporter:()=>LK,createWriteFileMeasuringIO:()=>lW,declarationNameToString:()=>lm,decodeMappings:()=>WB,decodedTextSpanIntersectsWith:()=>gc,deduplicate:()=>ge,defaultHoverMaximumTruncationLength:()=>bf,defaultInitCompilerOptions:()=>hF,defaultMaximumTruncationLength:()=>vf,diagnosticCategoryName:()=>Oi,diagnosticToString:()=>W$,diagnosticsEqualityComparer:()=>kS,directoryProbablyExists:()=>rx,directorySeparator:()=>Fa,displayPart:()=>EQ,displayPartsToString:()=>a4,disposeEmitNodes:()=>VE,documentSpansEqual:()=>_Q,dumpTracingLegend:()=>Nr,elementAt:()=>Ne,elideNodes:()=>kN,emitDetachedComments:()=>Ky,emitFiles:()=>IU,emitFilesAndReportErrors:()=>ZK,emitFilesAndReportErrorsAndGetExitStatus:()=>QK,emitModuleKindIsNonNodeESM:()=>tC,emitNewLineBeforeLeadingCommentOfPosition:()=>Gy,emitResolverSkipsTypeChecking:()=>FU,emitSkippedWithNoDiagnostics:()=>oG,emptyArray:()=>c,emptyFileSystemEntries:()=>ww,emptyMap:()=>l,emptyOptions:()=>GY,endsWith:()=>$t,ensurePathIsNonModuleName:()=>So,ensureScriptKind:()=>zC,ensureTrailingDirectorySeparator:()=>xo,entityNameToString:()=>pm,enumerateInsertsAndDeletes:()=>V,equalOwnProperties:()=>tt,equateStringsCaseInsensitive:()=>Nt,equateStringsCaseSensitive:()=>Pt,equateValues:()=>Mt,escapeJsxAttributeString:()=>Xv,escapeLeadingUnderscores:()=>Uc,escapeNonAsciiString:()=>Kv,escapeSnippetText:()=>sT,escapeString:()=>Wv,escapeTemplateSubstitution:()=>Bv,evaluatorResult:()=>LT,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>JT,executeCommandLine:()=>ZJ,expandPreOrPostfixIncrementOrDecrementExpression:()=>OM,explainFiles:()=>GK,explainIfFileIsRedirectAndImpliedFormat:()=>KK,exportAssignmentIsAlias:()=>W_,expressionResultIsUnused:()=>eT,extend:()=>ct,extensionFromPath:()=>bw,extensionIsTS:()=>vw,extensionsNotSupportingExtensionlessResolution:()=>XC,externalHelpersModuleNameText:()=>_f,factory:()=>J,fileExtensionIs:()=>qa,fileExtensionIsOneOf:()=>Ja,fileIncludeReasonToDiagnostics:()=>YK,fileShouldUseJavaScriptRequire:()=>Y$,filter:()=>E,filterMutate:()=>D,filterSemanticDiagnostics:()=>cG,find:()=>y,findAncestor:()=>K,findBestPatternMatch:()=>fn,findChildOfKind:()=>YX,findComputedPropertyNameCacheAssignment:()=>LN,findConfigFile:()=>iW,findConstructorDeclaration:()=>BT,findContainingList:()=>XX,findDiagnosticForNode:()=>k$,findFirstNonJsxWhitespaceToken:()=>rZ,findIndex:()=>x,findLast:()=>b,findLastIndex:()=>S,findListItemInfo:()=>qX,findModifier:()=>pQ,findNextToken:()=>aZ,findPackageJson:()=>w$,findPackageJsons:()=>C$,findPrecedingMatchingToken:()=>hZ,findPrecedingToken:()=>oZ,findSuperStatementIndexPath:()=>_V,findTokenOnLeftOfPosition:()=>iZ,findUseStrictPrologue:()=>NM,first:()=>Ie,firstDefined:()=>p,firstDefinedIterator:()=>m,firstIterator:()=>Le,firstOrOnly:()=>P$,firstOrUndefined:()=>Pe,firstOrUndefinedIterator:()=>Fe,fixupCompilerOptions:()=>G1,flatMap:()=>re,flatMapIterator:()=>ae,flatMapToMutable:()=>ie,flatten:()=>ne,flattenCommaList:()=>zN,flattenDestructuringAssignment:()=>IV,flattenDestructuringBinding:()=>VV,flattenDiagnosticMessageText:()=>DW,forEach:()=>d,forEachAncestor:()=>jf,forEachAncestorDirectory:()=>Lo,forEachAncestorDirectoryStoppingAtGlobalCache:()=>GR,forEachChild:()=>pP,forEachChildRecursively:()=>mP,forEachDynamicImportOrRequireCall:()=>XT,forEachEmittedFile:()=>_U,forEachEnclosingBlockScopeContainer:()=>uee,forEachEntry:()=>Mf,forEachExternalModuleToImportFrom:()=>r1,forEachImportClauseDeclaration:()=>Qg,forEachKey:()=>Nf,forEachLeadingCommentRange:()=>Ps,forEachNameInAccessChainWalkingLeft:()=>tS,forEachNameOfDefaultExport:()=>s1,forEachOptionsSyntaxByName:()=>aE,forEachProjectReference:()=>tE,forEachPropertyAssignment:()=>gh,forEachResolvedProjectReference:()=>eE,forEachReturnStatement:()=>nh,forEachRight:()=>f,forEachTrailingCommentRange:()=>Fs,forEachTsConfigPropArray:()=>yh,forEachUnique:()=>yQ,forEachYieldExpression:()=>rh,formatColorAndReset:()=>CW,formatDiagnostic:()=>mW,formatDiagnostics:()=>pW,formatDiagnosticsWithColorAndContext:()=>EW,formatGeneratedName:()=>NN,formatGeneratedNamePart:()=>jN,formatLocation:()=>TW,formatMessage:()=>yS,formatStringFromArgs:()=>uS,formatting:()=>k7,generateDjb2Hash:()=>ra,generateTSConfig:()=>fI,getAdjustedReferenceLocation:()=>QX,getAdjustedRenameLocation:()=>$X,getAliasDeclarationFromName:()=>H_,getAllAccessorDeclarations:()=>Iy,getAllDecoratorsOfClass:()=>TV,getAllDecoratorsOfClassElement:()=>EV,getAllJSDocTags:()=>Pl,getAllJSDocTagsOfKind:()=>Fl,getAllKeys:()=>Xe,getAllProjectOutputs:()=>MU,getAllSuperTypeNodes:()=>Y_,getAllowImportingTsExtensions:()=>RS,getAllowJSCompilerOption:()=>$S,getAllowSyntheticDefaultImports:()=>GS,getAncestor:()=>Q_,getAnyExtensionFromPath:()=>ro,getAreDeclarationMapsEnabled:()=>QS,getAssignedExpandoInitializer:()=>_g,getAssignedName:()=>tl,getAssignmentDeclarationKind:()=>Eg,getAssignmentDeclarationPropertyAccessKind:()=>Rg,getAssignmentTargetKind:()=>T_,getAutomaticTypeDirectiveNames:()=>FL,getBaseFileName:()=>eo,getBinaryOperatorPrecedence:()=>Lv,getBuildInfo:()=>RU,getBuildInfoFileVersionMap:()=>uK,getBuildInfoText:()=>LU,getBuildOrderFromAnyBuildOrder:()=>Cq,getBuilderCreationParameters:()=>eK,getBuilderFileEmit:()=>xG,getCanonicalDiagnostic:()=>wm,getCheckFlags:()=>jx,getClassExtendsHeritageElement:()=>q_,getClassLikeDeclarationOfSymbol:()=>Ux,getCombinedLocalAndExportSymbolFlags:()=>Px,getCombinedModifierFlags:()=>Pc,getCombinedNodeFlags:()=>Ic,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Fc,getCommentRange:()=>$E,getCommonSourceDirectory:()=>AU,getCommonSourceDirectoryOfConfig:()=>jU,getCompilerOptionValue:()=>pC,getConditions:()=>NL,getConfigFileParsingDiagnostics:()=>XW,getConstantValue:()=>cD,getContainerFlags:()=>xz,getContainerNode:()=>NX,getContainingClass:()=>Sh,getContainingClassExcludingClassDecorators:()=>Th,getContainingClassStaticBlock:()=>Ch,getContainingFunction:()=>bh,getContainingFunctionDeclaration:()=>xh,getContainingFunctionOrClassStaticBlock:()=>wh,getContainingNodeArray:()=>nT,getContainingObjectLiteralElement:()=>p4,getContextualTypeFromParent:()=>a$,getContextualTypeFromParentOrAncestorTypeNode:()=>ZX,getDeclarationDiagnostics:()=>tU,getDeclarationEmitExtensionForPath:()=>my,getDeclarationEmitOutputFilePath:()=>fy,getDeclarationEmitOutputFilePathWorker:()=>py,getDeclarationFileExtension:()=>kP,getDeclarationFromName:()=>z_,getDeclarationModifierFlagsFromSymbol:()=>Mx,getDeclarationOfKind:()=>xf,getDeclarationsOfKind:()=>Sf,getDeclaredExpandoInitializer:()=>gg,getDecorators:()=>nl,getDefaultCompilerOptions:()=>o4,getDefaultFormatCodeSettings:()=>$Y,getDefaultLibFileName:()=>ic,getDefaultLibFilePath:()=>h4,getDefaultLikeExportInfo:()=>o1,getDefaultLikeExportNameFromDeclaration:()=>I$,getDefaultResolutionModeForFileWorker:()=>aG,getDiagnosticText:()=>MF,getDiagnosticsWithinSpan:()=>A$,getDirectoryPath:()=>$a,getDirectoryToWatchFailedLookupLocation:()=>wK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>DK,getDocumentPositionMapper:()=>I1,getDocumentSpansEqualityComparer:()=>vQ,getESModuleInterop:()=>WS,getEditsForFileRename:()=>v1,getEffectiveBaseTypeNode:()=>K_,getEffectiveConstraintOfTypeParameter:()=>zl,getEffectiveContainerForJSDocTemplateTag:()=>h_,getEffectiveImplementsTypeNodes:()=>J_,getEffectiveInitializer:()=>hg,getEffectiveJSDocHost:()=>v_,getEffectiveModifierFlags:()=>ub,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>db,getEffectiveModifierFlagsNoCache:()=>gb,getEffectiveReturnTypeNode:()=>zy,getEffectiveSetAccessorTypeAnnotationNode:()=>Hy,getEffectiveTypeAnnotationNode:()=>Ly,getEffectiveTypeParameterDeclarations:()=>Rl,getEffectiveTypeRoots:()=>AL,getElementOrPropertyAccessArgumentExpressionOrName:()=>Ig,getElementOrPropertyAccessName:()=>Lg,getElementsOfBindingOrAssignmentPattern:()=>rN,getEmitDeclarations:()=>YS,getEmitFlags:()=>kp,getEmitHelpers:()=>pD,getEmitModuleDetectionKind:()=>HS,getEmitModuleFormatOfFileWorker:()=>rG,getEmitModuleKind:()=>BS,getEmitModuleResolutionKind:()=>VS,getEmitScriptTarget:()=>zS,getEmitStandardClassFields:()=>lC,getEnclosingBlockScopeContainer:()=>cm,getEnclosingContainer:()=>sm,getEncodedSemanticClassifications:()=>l1,getEncodedSyntacticClassifications:()=>d1,getEndLinePosition:()=>tp,getEntityNameFromTypeNode:()=>Ih,getEntrypointsFromPackageJsonInfo:()=>CR,getErrorCountForSummary:()=>zK,getErrorSpanForNode:()=>Om,getErrorSummaryText:()=>UK,getEscapedTextOfIdentifierOrLiteral:()=>_v,getEscapedTextOfJsxAttributeName:()=>CT,getEscapedTextOfJsxNamespacedName:()=>ET,getExpandoInitializer:()=>vg,getExportAssignmentExpression:()=>G_,getExportInfoMap:()=>a1,getExportNeedsImportStarHelper:()=>rV,getExpressionAssociativity:()=>jv,getExpressionPrecedence:()=>Nv,getExternalHelpersModuleName:()=>UM,getExternalModuleImportEqualsDeclarationExpression:()=>Zh,getExternalModuleName:()=>Yg,getExternalModuleNameFromDeclaration:()=>ly,getExternalModuleNameFromPath:()=>uy,getExternalModuleNameLiteral:()=>JM,getExternalModuleRequireArgument:()=>Qh,getFallbackOptions:()=>nW,getFileEmitOutput:()=>hG,getFileMatcherPatterns:()=>IC,getFileNamesFromConfigSpecs:()=>eL,getFileWatcherEventKind:()=>ba,getFilesInErrorForSummary:()=>BK,getFirstConstructorWithBody:()=>Dy,getFirstIdentifier:()=>Nb,getFirstNonSpaceCharacterPosition:()=>YQ,getFirstProjectOutput:()=>PU,getFixableErrorSpanExpression:()=>M$,getFormatCodeSettingsForWriting:()=>G$,getFullWidth:()=>If,getFunctionFlags:()=>cv,getHeritageClause:()=>Z_,getHostSignatureFromJSDoc:()=>__,getIdentifierAutoGenerate:()=>CD,getIdentifierGeneratedImportReference:()=>TD,getIdentifierTypeArguments:()=>xD,getImmediatelyInvokedFunctionExpression:()=>jh,getImpliedNodeFormatForEmitWorker:()=>iG,getImpliedNodeFormatForFile:()=>ZW,getImpliedNodeFormatForFileWorker:()=>QW,getImportNeedsImportDefaultHelper:()=>aV,getImportNeedsImportStarHelper:()=>iV,getIndentString:()=>ty,getInferredLibraryNameResolveFrom:()=>WW,getInitializedVariables:()=>Dx,getInitializerOfBinaryExpression:()=>zg,getInitializerOfBindingOrAssignmentElement:()=>ZM,getInterfaceBaseTypeNodes:()=>X_,getInternalEmitFlags:()=>Ap,getInvokedExpression:()=>Lh,getIsFileExcluded:()=>i1,getIsolatedModules:()=>US,getJSDocAugmentsTag:()=>ul,getJSDocClassTag:()=>fl,getJSDocCommentRanges:()=>Ym,getJSDocCommentsAndTags:()=>u_,getJSDocDeprecatedTag:()=>xl,getJSDocDeprecatedTagNoCache:()=>Sl,getJSDocEnumTag:()=>Cl,getJSDocHost:()=>y_,getJSDocImplementsTags:()=>dl,getJSDocOverloadTags:()=>g_,getJSDocOverrideTagNoCache:()=>bl,getJSDocParameterTags:()=>il,getJSDocParameterTagsNoCache:()=>al,getJSDocPrivateTag:()=>hl,getJSDocPrivateTagNoCache:()=>gl,getJSDocProtectedTag:()=>_l,getJSDocProtectedTagNoCache:()=>vl,getJSDocPublicTag:()=>pl,getJSDocPublicTagNoCache:()=>ml,getJSDocReadonlyTag:()=>tee,getJSDocReadonlyTagNoCache:()=>yl,getJSDocReturnTag:()=>Tl,getJSDocReturnType:()=>Al,getJSDocRoot:()=>b_,getJSDocSatisfiesExpressionType:()=>xT,getJSDocSatisfiesTag:()=>Dl,getJSDocTags:()=>Ml,getJSDocTemplateTag:()=>El,getJSDocThisTag:()=>wl,getJSDocType:()=>kl,getJSDocTypeAliasName:()=>iN,getJSDocTypeAssertionType:()=>RM,getJSDocTypeParameterDeclarations:()=>By,getJSDocTypeParameterTags:()=>sl,getJSDocTypeParameterTagsNoCache:()=>cl,getJSDocTypeTag:()=>Ol,getJSXImplicitImportBase:()=>hC,getJSXRuntimeImport:()=>gC,getJSXTransformEnabled:()=>mC,getKeyForCompilerOptions:()=>zL,getLanguageVariant:()=>MS,getLastChild:()=>qx,getLeadingCommentRanges:()=>zs,getLeadingCommentRangesOfNode:()=>Jm,getLeftmostAccessExpression:()=>eS,getLeftmostExpression:()=>nS,getLibFileNameFromLibReference:()=>$T,getLibNameFromLibReference:()=>QT,getLibraryNameFromLibFileName:()=>GW,getLineAndCharacterOfPosition:()=>gs,getLineInfo:()=>VB,getLineOfLocalPosition:()=>Ty,getLineStartPositionForPosition:()=>IX,getLineStarts:()=>fs,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Cx,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Sx,getLinesBetweenPositions:()=>hs,getLinesBetweenRangeEndAndRangeStart:()=>_x,getLinesBetweenRangeEndPositions:()=>vx,getLiteralText:()=>Np,getLocalNameForExternalImport:()=>qM,getLocalSymbolForExportDefault:()=>Gb,getLocaleSpecificMessage:()=>mS,getLocaleTimeString:()=>IK,getMappedContextSpan:()=>CQ,getMappedDocumentSpan:()=>SQ,getMappedLocation:()=>xQ,getMatchedFileSpec:()=>qK,getMatchedIncludeSpec:()=>JK,getMeaningFromDeclaration:()=>fX,getMeaningFromLocation:()=>pX,getMembersOfDeclaration:()=>ah,getModeForFileReference:()=>OW,getModeForResolutionAtIndex:()=>kW,getModeForUsageLocation:()=>jW,getModifiedTime:()=>ca,getModifiers:()=>rl,getModuleInstanceState:()=>uz,getModuleNameStringLiteralAt:()=>pG,getModuleSpecifierEndingPreference:()=>iw,getModuleSpecifierResolverHost:()=>$Z,getNameForExportedSymbol:()=>F$,getNameFromImportAttribute:()=>FT,getNameFromIndexInfo:()=>dee,getNameFromPropertyName:()=>JZ,getNameOfAccessExpression:()=>Qx,getNameOfCompilerOptionValue:()=>cI,getNameOfDeclaration:()=>el,getNameOfExpando:()=>bg,getNameOfJSDocTypedef:()=>Zc,getNameOfScriptTarget:()=>cC,getNameOrArgument:()=>Ng,getNameTable:()=>f4,getNamespaceDeclarationNode:()=>Xg,getNewLineCharacter:()=>ax,getNewLineKind:()=>U$,getNewLineOrDefaultFromHost:()=>zQ,getNewTargetContainer:()=>kh,getNextJSDocCommentLocation:()=>p_,getNodeChildren:()=>lM,getNodeForGeneratedName:()=>AN,getNodeId:()=>mB,getNodeKind:()=>PX,getNodeModifiers:()=>SZ,getNodeModulePathParts:()=>dT,getNonAssignedNameOfDeclaration:()=>$c,getNonAssignmentOperatorForCompoundAssignment:()=>mV,getNonAugmentationDeclaration:()=>qp,getNonDecoratorTokenPosOfNode:()=>vp,getNonIncrementalBuildInfoRoots:()=>dK,getNonModifierTokenPosOfNode:()=>yp,getNormalizedAbsolutePath:()=>po,getNormalizedAbsolutePathWithoutRoot:()=>_o,getNormalizedPathComponents:()=>fo,getObjectFlags:()=>Wx,getOperatorAssociativity:()=>Mv,getOperatorPrecedence:()=>Iv,getOptionFromName:()=>EF,getOptionsForLibraryResolution:()=>YL,getOptionsNameMap:()=>pF,getOptionsSyntaxByArrayElementValue:()=>nE,getOptionsSyntaxByValue:()=>iE,getOrCreateEmitNode:()=>BE,getOrUpdate:()=>oe,getOriginalNode:()=>Bc,getOriginalNodeId:()=>$B,getOutputDeclarationFileName:()=>CU,getOutputDeclarationFileNameWorker:()=>wU,getOutputExtension:()=>xU,getOutputFileNames:()=>NU,getOutputJSFileNameWorker:()=>EU,getOutputPathsFor:()=>bU,getOwnEmitOutputFilePath:()=>dy,getOwnKeys:()=>Ye,getOwnValues:()=>Ze,getPackageJsonTypesVersionsPaths:()=>kL,getPackageNameFromTypesPackageName:()=>$R,getPackageScopeForPath:()=>ER,getParameterSymbolFromJSDoc:()=>m_,getParentNodeInSpan:()=>fQ,getParseTreeNode:()=>Hc,getParsedCommandLineOfConfigFile:()=>NF,getPathComponents:()=>ao,getPathFromPathComponents:()=>oo,getPathUpdater:()=>y1,getPathsBasePath:()=>_y,getPatternFromSpec:()=>NC,getPendingEmitKindWithSeen:()=>PG,getPositionOfLineAndCharacter:()=>us,getPossibleGenericSignatures:()=>_Z,getPossibleOriginalInputExtensionForExtension:()=>hy,getPossibleOriginalInputPathWithoutChangingExt:()=>gy,getPossibleTypeArgumentsInfo:()=>vZ,getPreEmitDiagnostics:()=>fW,getPrecedingNonSpaceCharacterPosition:()=>XQ,getPrivateIdentifier:()=>kV,getProperties:()=>vV,getProperty:()=>Je,getPropertyAssignmentAliasLikeExpression:()=>bee,getPropertyNameForPropertyNameNode:()=>mv,getPropertyNameFromType:()=>AT,getPropertyNameOfBindingOrAssignmentElement:()=>eN,getPropertySymbolFromBindingElement:()=>dQ,getPropertySymbolsFromContextualType:()=>m4,getQuoteFromPreference:()=>oQ,getQuotePreference:()=>aQ,getRangesWhere:()=>ue,getRefactorContextSpan:()=>j$,getReferencedFileLocation:()=>JW,getRegexFromPattern:()=>LC,getRegularExpressionForWildcard:()=>AC,getRegularExpressionsForWildcards:()=>jC,getRelativePathFromDirectory:()=>No,getRelativePathFromFile:()=>Fo,getRelativePathToDirectoryOrUrl:()=>Io,getRenameLocation:()=>$Q,getReplacementSpanForContextToken:()=>NZ,getResolutionDiagnostic:()=>dG,getResolutionModeOverride:()=>PW,getResolveJsonModule:()=>JS,getResolvePackageJsonExports:()=>KS,getResolvePackageJsonImports:()=>qS,getResolvedExternalModuleName:()=>sy,getResolvedModuleFromResolution:()=>zf,getResolvedTypeReferenceDirectiveFromResolution:()=>Bf,getRestIndicatorOfBindingOrAssignmentElement:()=>$M,getRestParameterElementType:()=>ih,getRightMostAssignedExpression:()=>Sg,getRootDeclaration:()=>Dv,getRootDirectoryOfResolutionCache:()=>OK,getRootLength:()=>Qa,getScriptKind:()=>KQ,getScriptKindFromFileName:()=>BC,getScriptTargetFeatures:()=>jp,getSelectedEffectiveModifierFlags:()=>sb,getSelectedSyntacticModifierFlags:()=>cb,getSemanticClassifications:()=>c1,getSemanticJsxChildren:()=>Rv,getSetAccessorTypeAnnotationNode:()=>ky,getSetAccessorValueParameter:()=>Oy,getSetExternalModuleIndicator:()=>PS,getShebang:()=>Vs,getSingleVariableOfVariableStatement:()=>o_,getSnapshotText:()=>GZ,getSnippetElement:()=>hD,getSourceFileOfModule:()=>Xf,getSourceFileOfNode:()=>Yf,getSourceFilePathInNewDir:()=>by,getSourceFileVersionAsHashFromText:()=>aq,getSourceFilesToEmit:()=>vy,getSourceMapRange:()=>qE,getSourceMapper:()=>F1,getSourceTextOfNodeFromSourceFile:()=>bp,getSpanOfTokenAtPosition:()=>Tm,getSpellingSuggestion:()=>Qt,getStartPositionOfLine:()=>$f,getStartPositionOfRange:()=>xx,getStartsOnNewLine:()=>ZE,getStaticPropertiesAndClassStaticBlock:()=>bV,getStrictOptionValue:()=>sC,getStringComparer:()=>Ut,getSubPatternFromSpec:()=>PC,getSuperCallFromStatement:()=>hV,getSuperContainer:()=>Ah,getSupportedCodeFixes:()=>s4,getSupportedExtensions:()=>ZC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>QC,getSwitchedType:()=>u$,getSymbolId:()=>hB,getSymbolNameForPrivateIdentifier:()=>vv,getSymbolTarget:()=>qQ,getSyntacticClassifications:()=>u1,getSyntacticModifierFlags:()=>fb,getSyntacticModifierFlagsNoCache:()=>_b,getSynthesizedDeepClone:()=>oE,getSynthesizedDeepCloneWithReplacements:()=>sE,getSynthesizedDeepClones:()=>lE,getSynthesizedDeepClonesWithReplacements:()=>uE,getSyntheticLeadingComments:()=>tD,getSyntheticTrailingComments:()=>iD,getTargetLabel:()=>SX,getTargetOfBindingOrAssignmentElement:()=>QM,getTemporaryModuleResolutionState:()=>TR,getTextOfConstantValue:()=>Fp,getTextOfIdentifierOrLiteral:()=>gv,getTextOfJSDocComment:()=>Il,getTextOfJsxAttributeName:()=>wT,getTextOfJsxNamespacedName:()=>DT,getTextOfNode:()=>Ep,getTextOfNodeFromSourceText:()=>Tp,getTextOfPropertyName:()=>fm,getThisContainer:()=>Eh,getThisParameter:()=>Ay,getTokenAtPosition:()=>nZ,getTokenPosOfNode:()=>_p,getTokenSourceMapRange:()=>YE,getTouchingPropertyName:()=>eZ,getTouchingToken:()=>tZ,getTrailingCommentRanges:()=>Bs,getTrailingSemicolonDeferringWriter:()=>iy,getTransformers:()=>uU,getTsBuildInfoEmitOutputFilePath:()=>vU,getTsConfigObjectLiteralExpression:()=>_h,getTsConfigPropArrayElementValue:()=>vh,getTypeAnnotationNode:()=>Ry,getTypeArgumentOrTypeParameterList:()=>CZ,getTypeKeywordOfTypeOnlyImport:()=>hQ,getTypeNode:()=>yD,getTypeNodeIfAccessible:()=>f$,getTypeParameterFromJsDoc:()=>x_,getTypeParameterOwner:()=>Oc,getTypesPackageName:()=>ZR,getUILocale:()=>qt,getUniqueName:()=>QQ,getUniqueSymbolId:()=>JQ,getUseDefineForClassFields:()=>eC,getWatchErrorSummaryDiagnosticMessage:()=>VK,getWatchFactory:()=>tW,group:()=>at,groupBy:()=>ot,guessIndentation:()=>lf,handleNoEmitOptions:()=>sG,handleWatchOptionsConfigDirTemplateSubstitution:()=>xI,hasAbstractModifier:()=>nb,hasAccessorModifier:()=>ib,hasAmbientModifier:()=>rb,hasChangesInResolutions:()=>Kf,hasContextSensitiveParameters:()=>rT,hasDecorators:()=>ob,hasDocComment:()=>bZ,hasDynamicName:()=>fv,hasEffectiveModifier:()=>Zy,hasEffectiveModifiers:()=>Xy,hasEffectiveReadonlyModifier:()=>ab,hasExtension:()=>Ka,hasImplementationTSFileExtension:()=>tw,hasIndexSignature:()=>l$,hasInferredType:()=>WT,hasInitializer:()=>rf,hasInvalidEscape:()=>Hv,hasJSDocNodes:()=>tf,hasJSDocParameterTags:()=>ll,hasJSFileExtension:()=>$C,hasJsonModuleEmitEnabled:()=>nC,hasOnlyExpressionInitializer:()=>af,hasOverrideModifier:()=>tb,hasPossibleExternalModuleReference:()=>am,hasProperty:()=>qe,hasPropertyAccessExpressionWithName:()=>CX,hasQuestionToken:()=>$g,hasRecordedExternalHelpers:()=>WM,hasResolutionModeOverride:()=>MT,hasRestParameter:()=>ff,hasScopeMarker:()=>nee,hasStaticModifier:()=>eb,hasSyntacticModifier:()=>Qy,hasSyntacticModifiers:()=>Aee,hasTSFileExtension:()=>ew,hasTabstop:()=>gT,hasTrailingDirectorySeparator:()=>Ya,hasType:()=>nf,hasTypeArguments:()=>S_,hasZeroOrOneAsteriskCharacter:()=>_C,hostGetCanonicalFileName:()=>oy,hostUsesCaseSensitiveFileNames:()=>ay,idText:()=>Gc,identifierIsThisKeyword:()=>Fy,identifierToKeywordKind:()=>Kc,identity:()=>wt,identitySourceMapConsumer:()=>QB,ignoreSourceNewlines:()=>_D,ignoredPaths:()=>xa,importFromModuleSpecifier:()=>Kg,importSyntaxAffectsModuleResolution:()=>FS,indexOfAnyCharCode:()=>w,indexOfNode:()=>Op,indicesOf:()=>pe,inferredTypesContainingFile:()=>UW,injectClassNamedEvaluationHelperBlockIfMissing:()=>aH,injectClassThisAssignmentIfMissing:()=>QV,insertImports:()=>mQ,insertSorted:()=>ye,insertStatementAfterCustomPrologue:()=>pp,insertStatementAfterStandardPrologue:()=>fp,insertStatementsAfterCustomPrologue:()=>dp,insertStatementsAfterStandardPrologue:()=>up,intersperse:()=>_,intrinsicTagNameToString:()=>OT,introducesArgumentsExoticObject:()=>dh,inverseJsxOptionMap:()=>HP,isAbstractConstructorSymbol:()=>Hx,isAbstractModifier:()=>EO,isAccessExpression:()=>Zx,isAccessibilityModifier:()=>OZ,isAccessor:()=>Bu,isAccessorModifier:()=>OO,isAliasableExpression:()=>U_,isAmbientModule:()=>zp,isAmbientPropertyDeclaration:()=>Zp,isAnyDirectorySeparator:()=>za,isAnyImportOrBareOrAccessedRequire:()=>nm,isAnyImportOrReExport:()=>om,isAnyImportOrRequireStatement:()=>rm,isAnyImportSyntax:()=>tm,isAnySupportedFileExtension:()=>xw,isApplicableVersionedTypesKey:()=>VR,isArgumentExpressionOfElementAccess:()=>kX,isArray:()=>mt,isArrayBindingElement:()=>Qu,isArrayBindingOrAssignmentElement:()=>ad,isArrayBindingOrAssignmentPattern:()=>id,isArrayBindingPattern:()=>yk,isArrayLiteralExpression:()=>xk,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>AZ,isArrayTypeNode:()=>ek,isArrowFunction:()=>jk,isAsExpression:()=>Kk,isAssertClause:()=>FA,isAssertEntry:()=>IA,isAssertionExpression:()=>yd,isAssertsKeyword:()=>SO,isAssignmentDeclaration:()=>mg,isAssignmentExpression:()=>kb,isAssignmentOperator:()=>Eb,isAssignmentPattern:()=>Zu,isAssignmentTarget:()=>E_,isAsteriskToken:()=>fO,isAsyncFunction:()=>lv,isAsyncModifier:()=>xO,isAutoAccessorPropertyDeclaration:()=>Vu,isAwaitExpression:()=>Fk,isAwaitKeyword:()=>CO,isBigIntLiteral:()=>eO,isBinaryExpression:()=>Rk,isBinaryLogicalOperator:()=>bb,isBinaryOperatorToken:()=>CN,isBindableObjectDefinePropertyCall:()=>Dg,isBindableStaticAccessExpression:()=>Ag,isBindableStaticElementAccessExpression:()=>jg,isBindableStaticNameExpression:()=>Mg,isBindingElement:()=>bk,isBindingElementOfBareOrAccessedRequire:()=>gee,isBindingName:()=>Au,isBindingOrAssignmentElement:()=>ed,isBindingOrAssignmentPattern:()=>td,isBindingPattern:()=>Xu,isBlock:()=>tA,isBlockLike:()=>X$,isBlockOrCatchScoped:()=>Lp,isBlockScope:()=>Qp,isBlockScopedContainerTopLevel:()=>lee,isBooleanLiteral:()=>Pu,isBreakOrContinueStatement:()=>$l,isBreakStatement:()=>fA,isBuildCommand:()=>XJ,isBuildInfoFile:()=>gU,isBuilderProgram:()=>WK,isBundle:()=>yj,isCallChain:()=>Wl,isCallExpression:()=>Tk,isCallExpressionTarget:()=>hX,isCallLikeExpression:()=>ld,isCallLikeOrFunctionLikeExpression:()=>cd,isCallOrNewExpression:()=>ud,isCallOrNewExpressionTarget:()=>_X,isCallSignatureDeclaration:()=>GO,isCallToHelper:()=>QD,isCaseBlock:()=>kA,isCaseClause:()=>uj,isCaseKeyword:()=>jO,isCaseOrDefaultClause:()=>Yd,isCatchClause:()=>pj,isCatchClauseVariableDeclaration:()=>aT,isCatchClauseVariableDeclarationOrBindingElement:()=>Rp,isCheckJsEnabledForFile:()=>Cw,isCircularBuildOrder:()=>Sq,isClassDeclaration:()=>CA,isClassElement:()=>Ru,isClassExpression:()=>Uk,isClassInstanceProperty:()=>Hu,isClassLike:()=>zu,isClassMemberModifier:()=>Eu,isClassNamedEvaluationHelperBlock:()=>nH,isClassOrTypeElement:()=>Ku,isClassStaticBlockDeclaration:()=>VO,isClassThisAssignmentBlock:()=>XV,isColonToken:()=>hO,isCommaExpression:()=>FM,isCommaListExpression:()=>Qk,isCommaSequence:()=>IM,isCommaToken:()=>lO,isComment:()=>wZ,isCommonJsExportPropertyAssignment:()=>lh,isCommonJsExportedExpression:()=>ch,isCompoundAssignment:()=>pV,isComputedNonLiteralName:()=>um,isComputedPropertyName:()=>NO,isConciseBody:()=>Td,isConditionalExpression:()=>zk,isConditionalTypeNode:()=>sk,isConstAssertion:()=>zT,isConstTypeReference:()=>Xl,isConstructSignatureDeclaration:()=>KO,isConstructorDeclaration:()=>HO,isConstructorTypeNode:()=>ZO,isContextualKeyword:()=>nv,isContinueStatement:()=>dA,isCustomPrologue:()=>Wm,isDebuggerStatement:()=>yA,isDeclaration:()=>Ld,isDeclarationBindingElement:()=>$u,isDeclarationFileName:()=>OP,isDeclarationName:()=>R_,isDeclarationNameOfEnumOrNamespace:()=>Ex,isDeclarationReadonly:()=>Nm,isDeclarationStatement:()=>Rd,isDeclarationWithTypeParameterChildren:()=>em,isDeclarationWithTypeParameters:()=>$p,isDecorator:()=>IO,isDecoratorTarget:()=>gie,isDefaultClause:()=>dj,isDefaultImport:()=>Zg,isDefaultModifier:()=>bO,isDefaultedExpandoInitializer:()=>yg,isDeleteExpression:()=>Mk,isDeleteTarget:()=>I_,isDeprecatedDeclaration:()=>V$,isDestructuringAssignment:()=>Ab,isDiskPathRoot:()=>Ha,isDoStatement:()=>oA,isDocumentRegistryEntry:()=>p1,isDotDotDotToken:()=>cO,isDottedName:()=>Pb,isDynamicName:()=>pv,isEffectiveExternalModule:()=>Yp,isEffectiveStrictModeSourceFile:()=>Xp,isElementAccessChain:()=>Ul,isElementAccessExpression:()=>wk,isEmittedFileOfProgram:()=>$U,isEmptyArrayLiteral:()=>Wb,isEmptyBindingElement:()=>jc,isEmptyBindingPattern:()=>Ac,isEmptyObjectLiteral:()=>Ub,isEmptyStatement:()=>rA,isEmptyStringLiteral:()=>Wh,isEntityName:()=>Ou,isEntityNameExpression:()=>Mb,isEnumConst:()=>Mm,isEnumDeclaration:()=>EA,isEnumMember:()=>_j,isEqualityOperatorKind:()=>s$,isEqualsGreaterThanToken:()=>_O,isExclamationToken:()=>pO,isExcludedFile:()=>tL,isExclusivelyTypeOnlyImportOrExport:()=>AW,isExpandoPropertyDeclaration:()=>jT,isExportAssignment:()=>UA,isExportDeclaration:()=>WA,isExportModifier:()=>yO,isExportName:()=>jM,isExportNamespaceAsDefaultDeclaration:()=>xp,isExportOrDefaultModifier:()=>ON,isExportSpecifier:()=>KA,isExportsIdentifier:()=>Cg,isExportsOrModuleExportsOrAlias:()=>bz,isExpression:()=>q,isExpressionNode:()=>Kh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Sie,isExpressionOfOptionalChainRoot:()=>ql,isExpressionStatement:()=>iA,isExpressionWithTypeArguments:()=>Gk,isExpressionWithTypeArgumentsInClassExtendsClause:()=>jb,isExternalModule:()=>yP,isExternalModuleAugmentation:()=>Gp,isExternalModuleImportEqualsDeclaration:()=>Xh,isExternalModuleIndicator:()=>Cd,isExternalModuleNameRelative:()=>tc,isExternalModuleReference:()=>ZA,isExternalModuleSymbol:()=>Tf,isExternalOrCommonJsModule:()=>Am,isFileLevelReservedGeneratedIdentifier:()=>xu,isFileLevelUniqueName:()=>np,isFileProbablyExternalModule:()=>XN,isFirstDeclarationOfSymbolParameter:()=>wQ,isFixablePromiseHandler:()=>V1,isForInOrOfStatement:()=>wd,isForInStatement:()=>lA,isForInitializer:()=>Dd,isForOfStatement:()=>uA,isForStatement:()=>cA,isFullSourceFile:()=>eg,isFunctionBlock:()=>ph,isFunctionBody:()=>Ed,isFunctionDeclaration:()=>SA,isFunctionExpression:()=>Ak,isFunctionExpressionOrArrowFunction:()=>oT,isFunctionLike:()=>ju,isFunctionLikeDeclaration:()=>Nu,isFunctionLikeKind:()=>Iu,isFunctionLikeOrClassStaticBlockDeclaration:()=>Mu,isFunctionOrConstructorTypeNode:()=>Yu,isFunctionOrModuleBlock:()=>Lu,isFunctionSymbol:()=>Ug,isFunctionTypeNode:()=>XO,isGeneratedIdentifier:()=>yu,isGeneratedPrivateIdentifier:()=>bu,isGetAccessor:()=>ef,isGetAccessorDeclaration:()=>UO,isGetOrSetAccessorDeclaration:()=>Vl,isGlobalScopeAugmentation:()=>Wp,isGlobalSourceFile:()=>km,isGrammarError:()=>ap,isHeritageClause:()=>fj,isHoistedFunction:()=>Gm,isHoistedVariableStatement:()=>qm,isIdentifier:()=>Y,isIdentifierANonContextualKeyword:()=>av,isIdentifierName:()=>V_,isIdentifierOrThisTypeNode:()=>uN,isIdentifierPart:()=>Us,isIdentifierStart:()=>Hs,isIdentifierText:()=>Ws,isIdentifierTypePredicate:()=>mee,isIdentifierTypeReference:()=>Ww,isIfStatement:()=>aA,isIgnoredFileFromWildCardWatching:()=>QU,isImplicitGlob:()=>MC,isImportAttribute:()=>RA,isImportAttributeName:()=>vu,isImportAttributes:()=>LA,isImportCall:()=>Bm,isImportClause:()=>NA,isImportDeclaration:()=>MA,isImportEqualsDeclaration:()=>jA,isImportKeyword:()=>AO,isImportMeta:()=>Vm,isImportOrExportSpecifier:()=>fu,isImportOrExportSpecifierName:()=>GQ,isImportSpecifier:()=>HA,isImportTypeAssertionContainer:()=>PA,isImportTypeNode:()=>hk,isImportable:()=>t1,isInComment:()=>yZ,isInCompoundLikeAssignment:()=>D_,isInExpressionContext:()=>qh,isInJSDoc:()=>ag,isInJSFile:()=>ng,isInJSXText:()=>pZ,isInJsonFile:()=>rg,isInNonReferenceComment:()=>MZ,isInReferenceComment:()=>jZ,isInRightSideOfInternalImportEqualsDeclaration:()=>mX,isInString:()=>lZ,isInTemplateString:()=>fZ,isInTopLevelContext:()=>Oh,isInTypeQuery:()=>Ny,isIncrementalBuildInfo:()=>JG,isIncrementalBundleEmitBuildInfo:()=>qG,isIncrementalCompilation:()=>ZS,isIndexSignatureDeclaration:()=>qO,isIndexedAccessTypeNode:()=>fk,isInferTypeNode:()=>ck,isInfinityOrNaNString:()=>iT,isInitializedProperty:()=>SV,isInitializedVariable:()=>Ox,isInsideJsxElement:()=>mZ,isInsideJsxElementOrAttribute:()=>uZ,isInsideNodeModules:()=>O$,isInsideTemplateLiteral:()=>DZ,isInstanceOfExpression:()=>Vb,isInstantiatedModule:()=>gB,isInterfaceDeclaration:()=>wA,isInternalDeclaration:()=>hf,isInternalModuleImportEqualsDeclaration:()=>$h,isInternalName:()=>kM,isIntersectionTypeNode:()=>ok,isIntrinsicJsxName:()=>$v,isIterationStatement:()=>bd,isJSDoc:()=>Nj,isJSDocAllType:()=>Tj,isJSDocAugmentsTag:()=>Ij,isJSDocAuthorTag:()=>Lj,isJSDocCallbackTag:()=>zj,isJSDocClassTag:()=>Rj,isJSDocCommentContainingNode:()=>Zd,isJSDocConstructSignature:()=>e_,isJSDocDeprecatedTag:()=>Kj,isJSDocEnumTag:()=>Jj,isJSDocFunctionType:()=>Aj,isJSDocImplementsTag:()=>rM,isJSDocImportTag:()=>oM,isJSDocIndexSignature:()=>og,isJSDocLikeText:()=>YN,isJSDocLink:()=>Cj,isJSDocLinkCode:()=>wj,isJSDocLinkLike:()=>df,isJSDocLinkPlain:()=>hte,isJSDocMemberName:()=>Sj,isJSDocNameReference:()=>xj,isJSDocNamepathType:()=>Mj,isJSDocNamespaceBody:()=>kd,isJSDocNode:()=>Xd,isJSDocNonNullableType:()=>Oj,isJSDocNullableType:()=>Dj,isJSDocOptionalParameter:()=>_T,isJSDocOptionalType:()=>kj,isJSDocOverloadTag:()=>Gj,isJSDocOverrideTag:()=>Wj,isJSDocParameterTag:()=>Yj,isJSDocPrivateTag:()=>Vj,isJSDocPropertyLikeTag:()=>tu,isJSDocPropertyTag:()=>nM,isJSDocProtectedTag:()=>Hj,isJSDocPublicTag:()=>Bj,isJSDocReadonlyTag:()=>Uj,isJSDocReturnTag:()=>Xj,isJSDocSatisfiesExpression:()=>bT,isJSDocSatisfiesTag:()=>iM,isJSDocSeeTag:()=>qj,isJSDocSignature:()=>Fj,isJSDocTag:()=>Qd,isJSDocTemplateTag:()=>$j,isJSDocThisTag:()=>Zj,isJSDocThrowsTag:()=>aM,isJSDocTypeAlias:()=>t_,isJSDocTypeAssertion:()=>LM,isJSDocTypeExpression:()=>bj,isJSDocTypeLiteral:()=>Pj,isJSDocTypeTag:()=>Qj,isJSDocTypedefTag:()=>eM,isJSDocUnknownTag:()=>tM,isJSDocUnknownType:()=>Ej,isJSDocVariadicType:()=>jj,isJSXTagName:()=>Gh,isJsonEqual:()=>Pw,isJsonSourceFile:()=>jm,isJsxAttribute:()=>aj,isJsxAttributeLike:()=>Kd,isJsxAttributeName:()=>TT,isJsxAttributes:()=>oj,isJsxCallLike:()=>iee,isJsxChild:()=>Gd,isJsxClosingElement:()=>tj,isJsxClosingFragment:()=>ij,isJsxElement:()=>QA,isJsxExpression:()=>cj,isJsxFragment:()=>nj,isJsxNamespacedName:()=>lj,isJsxOpeningElement:()=>ej,isJsxOpeningFragment:()=>rj,isJsxOpeningLikeElement:()=>Jd,isJsxOpeningLikeElementTagName:()=>_ie,isJsxSelfClosingElement:()=>$A,isJsxSpreadAttribute:()=>sj,isJsxTagNameExpression:()=>Wd,isJsxText:()=>nO,isJumpStatementTarget:()=>wX,isKeyword:()=>$_,isKeywordOrPunctuation:()=>tv,isKnownSymbol:()=>yv,isLabelName:()=>EX,isLabelOfLabeledStatement:()=>TX,isLabeledStatement:()=>gA,isLateVisibilityPaintedStatement:()=>im,isLeftHandSideExpression:()=>fd,isLet:()=>Rm,isLineBreak:()=>ys,isLiteralComputedPropertyDeclarationName:()=>B_,isLiteralExpression:()=>su,isLiteralExpressionOfObject:()=>cu,isLiteralImportTypeNode:()=>Hm,isLiteralKind:()=>ou,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>MX,isLiteralTypeLiteral:()=>_d,isLiteralTypeNode:()=>mk,isLocalName:()=>AM,isLogicalOperator:()=>xb,isLogicalOrCoalescingAssignmentExpression:()=>Cb,isLogicalOrCoalescingAssignmentOperator:()=>Sb,isLogicalOrCoalescingBinaryExpression:()=>Tb,isLogicalOrCoalescingBinaryOperator:()=>wb,isMappedTypeNode:()=>pk,isMemberName:()=>Bl,isMetaProperty:()=>Yk,isMethodDeclaration:()=>BO,isMethodOrAccessor:()=>Uu,isMethodSignature:()=>zO,isMinusToken:()=>dO,isMissingDeclaration:()=>JA,isMissingPackageJsonInfo:()=>LL,isModifier:()=>Du,isModifierKind:()=>wu,isModifierLike:()=>Wu,isModuleAugmentationExternal:()=>Kp,isModuleBlock:()=>OA,isModuleBody:()=>Od,isModuleDeclaration:()=>DA,isModuleExportName:()=>qA,isModuleExportsAccessExpression:()=>Tg,isModuleIdentifier:()=>wg,isModuleName:()=>pN,isModuleOrEnumDeclaration:()=>jd,isModuleReference:()=>Ud,isModuleSpecifierLike:()=>lQ,isModuleWithStringLiteralName:()=>Bp,isNameOfFunctionDeclaration:()=>jX,isNameOfModuleDeclaration:()=>AX,isNamedDeclaration:()=>Qc,isNamedEvaluation:()=>wv,isNamedEvaluationSource:()=>Cv,isNamedExportBindings:()=>eu,isNamedExports:()=>GA,isNamedImportBindings:()=>Ad,isNamedImports:()=>VA,isNamedImportsOrExports:()=>$x,isNamedTupleMember:()=>nk,isNamespaceBody:()=>ree,isNamespaceExport:()=>BA,isNamespaceExportDeclaration:()=>AA,isNamespaceImport:()=>zA,isNamespaceReexportDeclaration:()=>Yh,isNewExpression:()=>Ek,isNewExpressionTarget:()=>gX,isNewScopeNode:()=>ZT,isNoSubstitutionTemplateLiteral:()=>iO,isNodeArray:()=>au,isNodeArrayMultiLine:()=>yx,isNodeDescendantOf:()=>L_,isNodeKind:()=>nu,isNodeLikeSystem:()=>En,isNodeModulesDirectory:()=>Ro,isNodeWithPossibleHoistedDeclaration:()=>O_,isNonContextualKeyword:()=>rv,isNonGlobalAmbientModule:()=>Vp,isNonNullAccess:()=>yT,isNonNullChain:()=>Ql,isNonNullExpression:()=>Jk,isNonStaticMethodOrAccessorWithPrivateName:()=>CV,isNotEmittedStatement:()=>YA,isNullishCoalesce:()=>Yl,isNumber:()=>_t,isNumericLiteral:()=>$D,isNumericLiteralName:()=>cT,isObjectBindingElementWithoutPropertyName:()=>uQ,isObjectBindingOrAssignmentElement:()=>rd,isObjectBindingOrAssignmentPattern:()=>nd,isObjectBindingPattern:()=>vk,isObjectLiteralElement:()=>of,isObjectLiteralElementLike:()=>qu,isObjectLiteralExpression:()=>Sk,isObjectLiteralMethod:()=>mh,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>hh,isObjectTypeDeclaration:()=>Yx,isOmittedExpression:()=>Wk,isOptionalChain:()=>Gl,isOptionalChainRoot:()=>Kl,isOptionalDeclaration:()=>vT,isOptionalJSDocPropertyLikeTag:()=>mT,isOptionalTypeNode:()=>rk,isOuterExpression:()=>zM,isOutermostOptionalChain:()=>Jl,isOverrideModifier:()=>DO,isPackageJsonInfo:()=>IL,isPackedArrayLiteral:()=>$w,isParameter:()=>FO,isParameterPropertyDeclaration:()=>kc,isParameterPropertyModifier:()=>Tu,isParenthesizedExpression:()=>kk,isParenthesizedTypeNode:()=>lk,isParseTreeNode:()=>Vc,isPartOfParameterDeclaration:()=>Ev,isPartOfTypeNode:()=>eh,isPartOfTypeOnlyImportOrExportDeclaration:()=>gu,isPartOfTypeQuery:()=>Jh,isPartiallyEmittedExpression:()=>Zk,isPatternMatch:()=>gn,isPinnedComment:()=>hp,isPlainJsFile:()=>Zf,isPlusToken:()=>uO,isPossiblyTypeArgumentPosition:()=>gZ,isPostfixUnaryExpression:()=>Lk,isPrefixUnaryExpression:()=>Ik,isPrimitiveLiteralValue:()=>HT,isPrivateIdentifier:()=>vO,isPrivateIdentifierClassElementDeclaration:()=>Su,isPrivateIdentifierPropertyAccessExpression:()=>Cu,isPrivateIdentifierSymbol:()=>bv,isProgramUptoDate:()=>YW,isPrologueDirective:()=>Um,isPropertyAccessChain:()=>Hl,isPropertyAccessEntityNameExpression:()=>Fb,isPropertyAccessExpression:()=>Ck,isPropertyAccessOrQualifiedName:()=>sd,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>od,isPropertyAssignment:()=>mj,isPropertyDeclaration:()=>RO,isPropertyName:()=>ku,isPropertyNameLiteral:()=>hv,isPropertySignature:()=>LO,isPrototypeAccess:()=>Lb,isPrototypePropertyAssignment:()=>Bg,isPunctuation:()=>ev,isPushOrUnshiftIdentifier:()=>Tv,isQualifiedName:()=>MO,isQuestionDotToken:()=>gO,isQuestionOrExclamationToken:()=>lN,isQuestionOrPlusOrMinusToken:()=>fN,isQuestionToken:()=>mO,isReadonlyKeyword:()=>wO,isReadonlyKeywordOrPlusOrMinusToken:()=>dN,isRecognizedTripleSlashComment:()=>mp,isReferenceFileLocation:()=>qW,isReferencedFile:()=>KW,isRegularExpressionLiteral:()=>rO,isRequireCall:()=>sg,isRequireVariableStatement:()=>dg,isRestParameter:()=>pf,isRestTypeNode:()=>ik,isReturnStatement:()=>pA,isReturnStatementWithFixablePromiseHandler:()=>B1,isRightSideOfAccessExpression:()=>zb,isRightSideOfInstanceofExpression:()=>Hb,isRightSideOfPropertyAccess:()=>OX,isRightSideOfQualifiedName:()=>xie,isRightSideOfQualifiedNameOrPropertyAccess:()=>Rb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Bb,isRootedDiskPath:()=>Va,isSameEntityName:()=>xg,isSatisfiesExpression:()=>qk,isSemicolonClassElement:()=>eA,isSetAccessor:()=>$d,isSetAccessorDeclaration:()=>WO,isShiftOperatorOrHigher:()=>vN,isShorthandAmbientModuleSymbol:()=>Up,isShorthandPropertyAssignment:()=>hj,isSideEffectImport:()=>GT,isSignedNumericLiteral:()=>dv,isSimpleCopiableExpression:()=>dV,isSimpleInlineableExpression:()=>fV,isSimpleParameterList:()=>NV,isSingleOrDoubleQuote:()=>fg,isSolutionConfig:()=>AI,isSourceElement:()=>IT,isSourceFile:()=>vj,isSourceFileFromLibrary:()=>q$,isSourceFileJS:()=>tg,isSourceFileNotJson:()=>ig,isSourceMapping:()=>KB,isSpecialPropertyDeclaration:()=>Vg,isSpreadAssignment:()=>gj,isSpreadElement:()=>Hk,isStatement:()=>Bd,isStatementButNotDeclaration:()=>zd,isStatementOrBlock:()=>Hd,isStatementWithLocals:()=>Qf,isStatic:()=>$y,isStaticModifier:()=>TO,isString:()=>gt,isStringANonContextualKeyword:()=>iv,isStringAndEmptyAnonymousObjectIntersection:()=>EZ,isStringDoubleQuoted:()=>pg,isStringLiteral:()=>tO,isStringLiteralLike:()=>uf,isStringLiteralOrJsxExpression:()=>qd,isStringLiteralOrTemplate:()=>c$,isStringOrNumericLiteralLike:()=>uv,isStringOrRegularExpressionOrTemplateLiteral:()=>TZ,isStringTextContainingNode:()=>_u,isSuperCall:()=>zm,isSuperKeyword:()=>kO,isSuperProperty:()=>Mh,isSupportedSourceFileName:()=>ow,isSwitchStatement:()=>hA,isSyntaxList:()=>sM,isSyntheticExpression:()=>Xk,isSyntheticReference:()=>XA,isTagName:()=>DX,isTaggedTemplateExpression:()=>Dk,isTaggedTemplateTag:()=>vX,isTemplateExpression:()=>Bk,isTemplateHead:()=>aO,isTemplateLiteral:()=>dd,isTemplateLiteralKind:()=>lu,isTemplateLiteralToken:()=>uu,isTemplateLiteralTypeNode:()=>_k,isTemplateLiteralTypeSpan:()=>gk,isTemplateMiddle:()=>oO,isTemplateMiddleOrTemplateTail:()=>du,isTemplateSpan:()=>$k,isTemplateTail:()=>sO,isTextWhiteSpaceLike:()=>bQ,isThis:()=>FX,isThisContainerOrFunctionBlock:()=>Dh,isThisIdentifier:()=>My,isThisInTypeQuery:()=>Py,isThisInitializedDeclaration:()=>Ph,isThisInitializedObjectBindingExpression:()=>Fh,isThisProperty:()=>Nh,isThisTypeNode:()=>uk,isThisTypeParameter:()=>uT,isThisTypePredicate:()=>hee,isThrowStatement:()=>_A,isToken:()=>iu,isTokenKind:()=>ru,isTraceEnabled:()=>fL,isTransientSymbol:()=>wf,isTrivia:()=>ov,isTryStatement:()=>vA,isTupleTypeNode:()=>tk,isTypeAlias:()=>n_,isTypeAliasDeclaration:()=>TA,isTypeAssertionExpression:()=>Ok,isTypeDeclaration:()=>fT,isTypeElement:()=>Gu,isTypeKeyword:()=>HZ,isTypeKeywordTokenOrIdentifier:()=>UZ,isTypeLiteralNode:()=>$O,isTypeNode:()=>Ju,isTypeNodeKind:()=>Xx,isTypeOfExpression:()=>Nk,isTypeOnlyExportDeclaration:()=>mu,isTypeOnlyImportDeclaration:()=>pu,isTypeOnlyImportOrExportDeclaration:()=>hu,isTypeOperatorNode:()=>dk,isTypeParameterDeclaration:()=>PO,isTypePredicateNode:()=>JO,isTypeQueryNode:()=>QO,isTypeReferenceNode:()=>YO,isTypeReferenceType:()=>sf,isTypeUsableAsPropertyName:()=>kT,isUMDExportSymbol:()=>Gx,isUnaryExpression:()=>md,isUnaryExpressionWithWrite:()=>gd,isUnicodeIdentifierStart:()=>es,isUnionTypeNode:()=>ak,isUrl:()=>Ba,isValidBigIntString:()=>zw,isValidESSymbolDeclaration:()=>uh,isValidTypeOnlyAliasUseSite:()=>Bw,isValueSignatureDeclaration:()=>k_,isVarAwaitUsing:()=>Pm,isVarConst:()=>Im,isVarConstLike:()=>Lm,isVarUsing:()=>Fm,isVariableDeclaration:()=>bA,isVariableDeclarationInVariableStatement:()=>sh,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>lg,isVariableDeclarationInitializedToRequire:()=>cg,isVariableDeclarationList:()=>xA,isVariableLike:()=>oh,isVariableStatement:()=>nA,isVoidExpression:()=>Pk,isWatchSet:()=>kx,isWhileStatement:()=>sA,isWhiteSpaceLike:()=>_s,isWhiteSpaceSingleLine:()=>vs,isWithStatement:()=>mA,isWriteAccess:()=>Ix,isWriteOnlyAccess:()=>Fx,isYieldExpression:()=>Vk,jsxModeNeedsExplicitImport:()=>K$,keywordPart:()=>OQ,last:()=>ze,lastOrUndefined:()=>Re,length:()=>u,libMap:()=>GP,libs:()=>WP,lineBreakPart:()=>BQ,loadModuleFromGlobalCache:()=>az,loadWithModeAwareCache:()=>HW,makeIdentifierFromModuleName:()=>Ip,makeImport:()=>tQ,makeStringLiteral:()=>nQ,mangleScopedPackageName:()=>QR,map:()=>k,mapAllOrFail:()=>j,mapDefined:()=>M,mapDefinedIterator:()=>N,mapEntries:()=>le,mapIterator:()=>ee,mapOneOrMany:()=>N$,mapToDisplayParts:()=>VQ,matchFiles:()=>RC,matchPatternOrExact:()=>Tw,matchedText:()=>dn,matchesExclude:()=>rL,matchesExcludeWorker:()=>iL,maxBy:()=>Rt,maybeBind:()=>ut,maybeSetLocalizedDiagnosticMessages:()=>pS,memoize:()=>kt,memoizeOne:()=>At,min:()=>zt,minAndMax:()=>Qee,missingFileModifiedTime:()=>sa,modifierToFlag:()=>yb,modifiersToFlags:()=>vb,moduleExportNameIsDefault:()=>wp,moduleExportNameTextEscaped:()=>Cp,moduleExportNameTextUnescaped:()=>Sp,moduleOptionDeclaration:()=>YP,moduleResolutionIsEqualTo:()=>Rf,moduleResolutionNameAndModeGetter:()=>LW,moduleResolutionOptionDeclarations:()=>tF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>aC,moduleResolutionUsesNodeModules:()=>eQ,moduleSpecifierToValidIdentifier:()=>R$,moduleSpecifiers:()=>wz,moduleSupportsImportAttributes:()=>oC,moduleSymbolToValidIdentifier:()=>L$,moveEmitHelpers:()=>mD,moveRangeEnd:()=>sx,moveRangePastDecorators:()=>lx,moveRangePastModifiers:()=>ux,moveRangePos:()=>cx,moveSyntheticComments:()=>sD,mutateMap:()=>Vx,mutateMapSkippingNewValues:()=>Bx,needsParentheses:()=>i$,needsScopeMarker:()=>Sd,newCaseClauseTracker:()=>J$,newPrivateEnvironment:()=>OV,noEmitNotification:()=>pU,noEmitSubstitution:()=>fU,noTransformers:()=>lU,noTruncationMaximumTruncationLength:()=>yf,nodeCanBeDecorated:()=>Rh,nodeCoreModules:()=>YT,nodeHasName:()=>Xc,nodeIsDecorated:()=>zh,nodeIsMissing:()=>rp,nodeIsPresent:()=>ip,nodeIsSynthesized:()=>kv,nodeModuleNameResolver:()=>aR,nodeModulesPathPart:()=>dR,nodeNextJsonConfigResolver:()=>oR,nodeOrChildIsDecorated:()=>Bh,nodeOverlapsWithStartEnd:()=>HX,nodePosToString:()=>ep,nodeSeenTracker:()=>WZ,nodeStartsNewLexicalEnvironment:()=>Ov,noop:()=>bt,noopFileWatcher:()=>$K,normalizePath:()=>mo,normalizeSlashes:()=>so,normalizeSpans:()=>bc,not:()=>yn,notImplemented:()=>Ot,notImplementedResolver:()=>zU,nullNodeConverters:()=>bE,nullParenthesizerRules:()=>vE,nullTransformationContext:()=>hU,objectAllocator:()=>oS,operatorPart:()=>AQ,optionDeclarations:()=>ZP,optionMapToObject:()=>aI,optionsAffectingProgramStructure:()=>rF,optionsForBuild:()=>lF,optionsForWatch:()=>KP,optionsHaveChanges:()=>Af,or:()=>vn,orderedRemoveItem:()=>rn,orderedRemoveItemAt:()=>an,packageIdToPackageName:()=>Uf,packageIdToString:()=>Wf,parameterIsThisKeyword:()=>jy,parameterNamePart:()=>jQ,parseBaseNodeFactory:()=>KN,parseBigInt:()=>Lw,parseBuildCommand:()=>jF,parseCommandLine:()=>TF,parseCommandLineWorker:()=>SF,parseConfigFileTextToJson:()=>FF,parseConfigFileWithSystem:()=>RK,parseConfigHostFromCompilerHostLike:()=>lG,parseCustomTypeOption:()=>vF,parseIsolatedEntityName:()=>_P,parseIsolatedJSDocComment:()=>xP,parseJSDocTypeExpressionForTests:()=>Bte,parseJsonConfigFileContent:()=>mI,parseJsonSourceFileConfigFileContent:()=>hI,parseJsonText:()=>vP,parseListTypeOption:()=>yF,parseNodeFactory:()=>qN,parseNodeModuleFromPath:()=>pR,parsePackageName:()=>NR,parsePseudoBigInt:()=>Fw,parseValidBigInt:()=>Rw,pasteEdits:()=>$7,patchWriteFileEnsuringDirectory:()=>Ma,pathContainsNodeModules:()=>fR,pathIsAbsolute:()=>Ua,pathIsBareSpecifier:()=>Ga,pathIsRelative:()=>Wa,patternText:()=>un,performIncrementalCompilation:()=>fq,performance:()=>cr,positionBelongsToNode:()=>WX,positionIsASICandidate:()=>h$,positionIsSynthesized:()=>_w,positionsAreOnSameLine:()=>bx,preProcessFile:()=>$ae,probablyUsesSemicolons:()=>g$,processCommentPragmas:()=>jP,processPragmasIntoFields:()=>MP,processTaggedTemplateExpression:()=>mH,programContainsEsModules:()=>XZ,programContainsModules:()=>YZ,projectReferenceIsEqualTo:()=>Lf,propertyNamePart:()=>MQ,pseudoBigIntToString:()=>Iw,punctuationPart:()=>kQ,pushIfUnique:()=>De,quote:()=>o$,quotePreferenceFromString:()=>iQ,rangeContainsPosition:()=>RX,rangeContainsPositionExclusive:()=>zX,rangeContainsRange:()=>wx,rangeContainsRangeExclusive:()=>LX,rangeContainsStartEnd:()=>BX,rangeEndIsOnSameLineAsRangeStart:()=>gx,rangeEndPositionsAreOnSameLine:()=>mx,rangeEquals:()=>Me,rangeIsOnSingleLine:()=>fx,rangeOfNode:()=>Ow,rangeOfTypeParameters:()=>kw,rangeOverlapsWithStartEnd:()=>VX,rangeStartIsOnSameLineAsRangeEnd:()=>hx,rangeStartPositionsAreOnSameLine:()=>px,readBuilderProgram:()=>pq,readConfigFile:()=>PF,readJson:()=>tx,readJsonConfigFile:()=>IF,readJsonOrUndefined:()=>ex,reduceEachLeadingCommentRange:()=>Is,reduceEachTrailingCommentRange:()=>Ls,reduceLeft:()=>Ge,reduceLeftIterator:()=>h,reducePathComponents:()=>co,refactor:()=>b0,regExpEscape:()=>wC,regularExpressionFlagToCharacterCode:()=>ss,relativeComplement:()=>Ce,removeAllComments:()=>HE,removeEmitHelper:()=>fD,removeExtension:()=>fw,removeFileExtension:()=>uw,removeIgnoredPath:()=>gK,removeMinAndVersionNumbers:()=>nn,removePrefix:()=>mn,removeSuffix:()=>en,removeTrailingDirectorySeparator:()=>bo,repeatString:()=>KZ,replaceElement:()=>Ue,replaceFirstStar:()=>PT,resolutionExtensionIsTSOrJson:()=>yw,resolveConfigFileProjectName:()=>yq,resolveJSModule:()=>$L,resolveLibrary:()=>XL,resolveModuleName:()=>QL,resolveModuleNameFromCache:()=>ZL,resolvePackageNameToPackageJson:()=>PL,resolvePath:()=>uo,resolveProjectReferencePath:()=>uG,resolveTripleslashReference:()=>aW,resolveTypeReferenceDirective:()=>jL,resolvingEmptyArray:()=>gf,returnFalse:()=>xt,returnNoopFileWatcher:()=>eq,returnTrue:()=>St,returnUndefined:()=>Ct,returnsPromise:()=>z1,rewriteModuleSpecifier:()=>PV,sameFlatMap:()=>A,sameMap:()=>te,sameMapping:()=>GB,scanTokenAtPosition:()=>Em,scanner:()=>uX,semanticDiagnosticsOptionDeclarations:()=>QP,serializeCompilerOptions:()=>lI,server:()=>bje,servicesVersion:()=>Xue,setCommentRange:()=>eD,setConfigFileInOptions:()=>gI,setConstantValue:()=>lD,setEmitFlags:()=>UE,setGetSourceFileAsHashVersioned:()=>oq,setIdentifierAutoGenerate:()=>SD,setIdentifierGeneratedImportReference:()=>wD,setIdentifierTypeArguments:()=>bD,setInternalEmitFlags:()=>GE,setLocalizedDiagnosticMessages:()=>fS,setNodeChildren:()=>uM,setNodeFlags:()=>Xw,setObjectAllocator:()=>lS,setOriginalNode:()=>zE,setParent:()=>Zw,setParentRecursive:()=>Qw,setPrivateIdentifier:()=>AV,setSnippetElement:()=>gD,setSourceMapRange:()=>JE,setStackTraceLimit:()=>ia,setStartsOnNewLine:()=>QE,setSyntheticLeadingComments:()=>nD,setSyntheticTrailingComments:()=>aD,setSys:()=>Pa,setSysLog:()=>wa,setTextRange:()=>X,setTextRangeEnd:()=>qw,setTextRangePos:()=>Kw,setTextRangePosEnd:()=>Jw,setTextRangePosWidth:()=>Yw,setTokenSourceMapRange:()=>XE,setTypeNode:()=>vD,setUILocale:()=>Jt,setValueDeclaration:()=>Hg,shouldAllowImportingTsExtension:()=>iz,shouldPreserveConstEnums:()=>XS,shouldRewriteModuleSpecifier:()=>Jg,shouldUseUriStyleNodeCoreModules:()=>H$,showModuleSpecifier:()=>Kx,signatureHasRestParameter:()=>xB,signatureToDisplayParts:()=>WQ,single:()=>Ve,singleElementArray:()=>xn,singleIterator:()=>ce,singleOrMany:()=>He,singleOrUndefined:()=>Be,skipAlias:()=>Nx,skipConstraint:()=>qZ,skipOuterExpressions:()=>BM,skipParentheses:()=>F_,skipPartiallyEmittedExpressions:()=>Zl,skipTrivia:()=>Es,skipTypeChecking:()=>Aw,skipTypeCheckingIgnoringNoCheck:()=>jw,skipTypeParentheses:()=>P_,skipWhile:()=>Tn,sliceAfter:()=>Ew,some:()=>F,sortAndDeduplicate:()=>be,sortAndDeduplicateDiagnostics:()=>nc,sourceFileAffectingCompilerOptions:()=>nF,sourceFileMayBeEmitted:()=>yy,sourceMapCommentRegExp:()=>zB,sourceMapCommentRegExpDontCareLineStart:()=>RB,spacePart:()=>DQ,spanMap:()=>P,startEndContainsRange:()=>Tx,startEndOverlapsWithStartEnd:()=>UX,startOnNewLine:()=>HM,startTracing:()=>Mr,startsWith:()=>pn,startsWithDirectory:()=>jo,startsWithUnderscore:()=>B$,startsWithUseStrict:()=>PM,stringContainsAt:()=>z$,stringToToken:()=>as,stripQuotes:()=>Zv,supportedDeclarationExtensions:()=>JC,supportedJSExtensionsFlat:()=>GC,supportedLocaleDirectories:()=>Rc,supportedTSExtensionsFlat:()=>HC,supportedTSImplementationExtensions:()=>YC,suppressLeadingAndTrailingTrivia:()=>dE,suppressLeadingTrivia:()=>fE,suppressTrailingTrivia:()=>pE,symbolEscapedNameNoDefault:()=>cQ,symbolName:()=>qc,symbolNameNoDefault:()=>sQ,symbolToDisplayParts:()=>UQ,sys:()=>Na,sysLog:()=>Ca,tagNamesAreEquivalent:()=>zP,takeWhile:()=>wn,targetOptionDeclaration:()=>JP,targetToLibMap:()=>rc,testFormatSettings:()=>uie,textChangeRangeIsUnchanged:()=>wc,textChangeRangeNewSpan:()=>Cc,textChanges:()=>y7,textOrKeywordPart:()=>NQ,textPart:()=>PQ,textRangeContainsPositionInclusive:()=>cc,textRangeContainsTextSpan:()=>dc,textRangeIntersectsWithTextSpan:()=>vc,textSpanContainsPosition:()=>sc,textSpanContainsTextRange:()=>uc,textSpanContainsTextSpan:()=>lc,textSpanEnd:()=>ac,textSpanIntersection:()=>yc,textSpanIntersectsWith:()=>hc,textSpanIntersectsWithPosition:()=>_c,textSpanIntersectsWithTextSpan:()=>mc,textSpanIsEmpty:()=>oc,textSpanOverlap:()=>pc,textSpanOverlapsWith:()=>fc,textSpansEqual:()=>gQ,textToKeywordObj:()=>Vo,timestamp:()=>sr,toArray:()=>ht,toBuilderFileEmit:()=>sK,toBuilderStateFileInfoForMultiEmit:()=>oK,toEditorSettings:()=>i4,toFileNameLowerCase:()=>Dt,toPath:()=>yo,toProgramEmitPending:()=>cK,toSorted:()=>Ae,tokenIsIdentifierOrKeyword:()=>zo,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Bo,tokenToString:()=>is,trace:()=>dL,tracing:()=>Ar,tracingEnabled:()=>jr,transferSourceFileChildren:()=>fM,transform:()=>Cde,transformClassFields:()=>vH,transformDeclarations:()=>iU,transformECMAScriptModule:()=>YH,transformES2015:()=>UH,transformES2016:()=>VH,transformES2017:()=>DH,transformES2018:()=>kH,transformES2019:()=>AH,transformES2020:()=>jH,transformES2021:()=>MH,transformESDecorators:()=>EH,transformESNext:()=>NH,transformGenerators:()=>GH,transformImpliedNodeFormatDependentModule:()=>XH,transformJsx:()=>zH,transformLegacyDecorators:()=>TH,transformModule:()=>KH,transformNamedEvaluation:()=>fH,transformNodes:()=>mU,transformSystemModule:()=>JH,transformTypeScript:()=>_H,transpile:()=>boe,transpileDeclaration:()=>goe,transpileModule:()=>U1,transpileOptionValueCompilerOptions:()=>iF,tryAddToSet:()=>se,tryAndIgnoreErrors:()=>x$,tryCast:()=>vt,tryDirectoryExists:()=>b$,tryExtractTSExtension:()=>qb,tryFileExists:()=>y$,tryGetClassExtendingExpressionWithTypeArguments:()=>Db,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Ob,tryGetDirectories:()=>_$,tryGetExtensionFromPath:()=>Sw,tryGetImportFromModuleSpecifier:()=>qg,tryGetJSDocSatisfiesTypeNode:()=>ST,tryGetModuleNameFromFile:()=>XM,tryGetModuleSpecifierFromDeclaration:()=>Gg,tryGetNativePerformanceHooks:()=>or,tryGetPropertyAccessOrIdentifierToString:()=>Ib,tryGetPropertyNameOfBindingOrAssignmentElement:()=>tN,tryGetSourceMappingURL:()=>HB,tryGetTextOfPropertyName:()=>dm,tryParseJson:()=>nx,tryParsePattern:()=>mw,tryParsePatterns:()=>gw,tryParseRawSourceMap:()=>UB,tryReadDirectory:()=>v$,tryReadFile:()=>LF,tryRemoveDirectoryPrefix:()=>SC,tryRemoveExtension:()=>dw,tryRemovePrefix:()=>hn,tryRemoveSuffix:()=>tn,tscBuildOption:()=>cF,typeAcquisitionDeclarations:()=>dF,typeAliasNamePart:()=>FQ,typeDirectiveIsEqualTo:()=>Gf,typeKeywords:()=>VZ,typeParameterNamePart:()=>IQ,typeToDisplayParts:()=>HQ,unchangedPollThresholds:()=>fa,unchangedTextChangeRange:()=>Ec,unescapeLeadingUnderscores:()=>Wc,unmangleScopedPackageName:()=>ez,unorderedRemoveItem:()=>sn,unprefixedNodeCoreModules:()=>qT,unreachableCodeIsError:()=>rC,unsetNodeChildren:()=>dM,unusedLabelIsError:()=>iC,unwrapInnermostStatementOfLabel:()=>fh,unwrapParenthesizedExpression:()=>UT,updateErrorForNoInputFiles:()=>MI,updateLanguageServiceSourceFile:()=>l4,updateMissingFilePathsWatch:()=>XU,updateResolutionField:()=>xL,updateSharedExtendedConfigFileWatcher:()=>qU,updateSourceFile:()=>bP,updateWatchingWildcardDirectories:()=>ZU,usingSingleLineStringWriter:()=>Ff,utf16EncodeAsString:()=>Xs,validateLocaleAndSetLanguage:()=>zc,version:()=>o,versionMajorMinor:()=>a,visitArray:()=>wB,visitCommaListElements:()=>NB,visitEachChild:()=>PB,visitFunctionBody:()=>jB,visitIterationBody:()=>MB,visitLexicalEnvironment:()=>EB,visitNode:()=>Q,visitNodes:()=>CB,visitParameterList:()=>DB,walkUpBindingElementsAndPatterns:()=>Mc,walkUpOuterExpressions:()=>VM,walkUpParenthesizedExpressions:()=>M_,walkUpParenthesizedTypes:()=>j_,walkUpParenthesizedTypesAndGetParentAndChild:()=>N_,whitespaceOrMapCommentRegExp:()=>BB,writeCommentRange:()=>qy,writeFile:()=>Sy,writeFileEnsuringDirectories:()=>wy,zipWith:()=>g}),e.exports=r(i);var a=`5.9`,o=`5.9.3`,s=(e=>(e[e.LessThan=-1]=`LessThan`,e[e.EqualTo=0]=`EqualTo`,e[e.GreaterThan=1]=`GreaterThan`,e))(s||{}),c=[],l=new Map;function u(e){return e===void 0?0:e.length}function d(e,t){if(e!==void 0)for(let n=0;n=0;n--){let r=t(e[n],n);if(r)return r}}function p(e,t){if(e!==void 0)for(let n=0;n=0;r--){let n=e[r];if(t(n,r))return n}}function x(e,t,n){if(e===void 0)return-1;for(let r=n??0;r=0;r--)if(t(e[r],r))return r;return-1}function C(e,t,n=Mt){if(e!==void 0){for(let r=0;r{let[i,a]=t(r,e);n.set(i,a)}),n}function F(e,t){if(e!==void 0)if(t!==void 0){for(let n=0;n0;return!1}function ue(e,t,n){let r;for(let i=0;ie[t])}function he(e,t){let n=[];for(let r=0;r0&&r(t,e[n-1]))return!1;if(n0&&H.assertGreaterThanOrEqual(n(t[a],t[a-1]),0);loopA:for(let o=i;io&&H.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[a],e[i])){case-1:r.push(t[a]);continue loopB;case 0:continue loopB;case 1:continue loopA}}return r}function I(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function we(e,t){return e===void 0?t:t===void 0?e:mt(e)?mt(t)?de(e,t):I(e,t):mt(t)?I(t,e):[e,t]}function Te(e,t){return t<0?e.length+t:t}function Ee(e,t,n,r){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,r);n=n===void 0?0:Te(t,n),r=r===void 0?t.length:Te(t,r);for(let i=n;in(e[t],e[r])||It(t,r))}function Ae(e,t){return e.length===0?c:e.slice().sort(t)}function*je(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Me(e,t,n,r){for(;ne?.at(t):(e,t)=>{if(e!==void 0&&(t=Te(e,t),t>1);switch(r(n(e[i],i),t)){case-1:a=i+1;break;case 0:return i;case 1:o=i-1;break}}return~a}function Ge(e,t,n,r,i){if(e&&e.length>0){let a=e.length;if(a>0){let o=r===void 0||r<0?0:r,s=i===void 0||o+i>a-1?a-1:o+i,c;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}var Ke=Object.prototype.hasOwnProperty;function qe(e,t){return Ke.call(e,t)}function Je(e,t){return Ke.call(e,t)?e[t]:void 0}function Ye(e){let t=[];for(let n in e)Ke.call(e,n)&&t.push(n);return t}function Xe(e){let t=[];do{let n=Object.getOwnPropertyNames(e);for(let e of n)De(t,e)}while(e=Object.getPrototypeOf(e));return t}function Ze(e){let t=[];for(let n in e)Ke.call(e,n)&&t.push(e[n]);return t}function Qe(e,t){let n=Array(e);for(let r=0;r100&&n>t.length>>1){let e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e}return{enqueue:i,dequeue:a,isEmpty:r}}function pt(e,t){let n=new Map,r=0;function*i(){for(let e of n.values())mt(e)?yield*e:yield e}let a={has(r){let i=e(r);if(!n.has(i))return!1;let a=n.get(i);return mt(a)?C(a,r,t):t(a,r)},add(i){let a=e(i);if(n.has(a)){let e=n.get(a);if(mt(e))C(e,i,t)||(e.push(i),r++);else{let o=e;t(o,i)||(n.set(a,[o,i]),r++)}}else n.set(a,i),r++;return this},delete(i){let a=e(i);if(!n.has(a))return!1;let o=n.get(a);if(mt(o)){for(let e=0;ei(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return a}function mt(e){return Array.isArray(e)}function ht(e){return mt(e)?e:[e]}function gt(e){return typeof e==`string`}function _t(e){return typeof e==`number`}function vt(e,t){return e!==void 0&&t(e)?e:void 0}function yt(e,t){return e!==void 0&&t(e)?e:H.fail(`Invalid cast. The supplied value ${e} did not pass the test '${H.getFunctionName(t)}'.`)}function bt(e){}function xt(){return!1}function St(){return!0}function Ct(){}function wt(e){return e}function Tt(e){return e.toLowerCase()}var Et=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function Dt(e){return Et.test(e)?e.replace(Et,Tt):e}function Ot(){throw Error(`Not implemented`)}function kt(e){let t;return()=>(e&&=(t=e(),void 0),t)}function At(e){let t=new Map;return n=>{let r=`${typeof n}:${n}`,i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(n),t.set(r,i)),i}}var jt=(e=>(e[e.None=0]=`None`,e[e.Normal=1]=`Normal`,e[e.Aggressive=2]=`Aggressive`,e[e.VeryAggressive=3]=`VeryAggressive`,e))(jt||{});function Mt(e,t){return e===t}function Nt(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Pt(e,t){return Mt(e,t)}function Ft(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(e,n)===-1?e:n)}function Bt(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function Vt(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Ht(e,t){return Ft(e,t)}function Ut(e){return e?Bt:Ht}var Wt=(()=>{return t;function e(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let r=n(e,t);return r<0?-1:r>0?1:0}function t(t){let n=new Intl.Collator(t,{usage:`sort`,sensitivity:`variant`,numeric:!0}).compare;return(t,r)=>e(t,r,n)}})(),Gt,Kt;function qt(){return Kt}function Jt(e){Kt!==e&&(Kt=e,Gt=void 0)}function Yt(e,t){return Gt??=Wt(Kt),Gt(e,t)}function Xt(e,t,n,r){return e===t?0:e===void 0?-1:t===void 0?1:r(e[n],t[n])}function Zt(e,t){return It(e?1:0,t?1:0)}function Qt(e,t,n){let r=Math.max(2,Math.floor(e.length*.34)),i=Math.floor(e.length*.4)+1,a;for(let o of t){let t=n(o);if(t!==void 0&&Math.abs(t.length-e.length)<=r){if(t===e||t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;let n=B(e,t,i-.1);if(n===void 0)continue;H.assert(nn?o-n:1),l=Math.floor(t.length>n+o?n+o:t.length);i[0]=o;let u=o;for(let e=1;en)return;let d=r;r=i,i=d}let o=r[t.length];return o>n?void 0:o}function $t(e,t,n){let r=e.length-t.length;return r>=0&&(n?Nt(e.slice(r),t):e.indexOf(t,r)===r)}function en(e,t){return $t(e,t)?e.slice(0,e.length-t.length):e}function tn(e,t){return $t(e,t)?e.slice(0,e.length-t.length):void 0}function nn(e){let t=e.length;for(let n=t-1;n>0;n--){let r=e.charCodeAt(n);if(r>=48&&r<=57)do--n,r=e.charCodeAt(n);while(n>0&&r>=48&&r<=57);else if(n>4&&(r===110||r===78)){if(--n,r=e.charCodeAt(n),r!==105&&r!==73||(--n,r=e.charCodeAt(n),r!==109&&r!==77))break;--n,r=e.charCodeAt(n)}else break;if(r!==45&&r!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function rn(e,t){for(let n=0;ne===t)}function cn(e,t){for(let n=0;ni&&gn(s,n)&&(i=s.prefix.length,r=o)}return r}function pn(e,t,n){return n?Nt(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function mn(e,t){return pn(e,t)?e.substr(t.length):e}function hn(e,t,n=wt){return pn(n(e),n(t))?e.substring(t.length):void 0}function gn({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&pn(n,e)&&$t(n,t)}function _n(e,t){return n=>e(n)&&t(n)}function vn(...e){return(...t)=>{let n;for(let r of e)if(n=r(...t),n)return n;return n}}function yn(e){return(...t)=>!e(...t)}function bn(e){}function xn(e){return e===void 0?void 0:[e]}function V(e,t,n,r,i,a){a??=bt;let o=0,s=0,c=e.length,l=t.length,u=!1;for(;o(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))(Dn||{}),H;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(t){return e.currentLogLevel<=t}e.shouldLog=n;function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}e.log=i,(e=>{function t(e){r(1,e)}e.error=t;function n(e){r(2,e)}e.warn=n;function i(e){r(3,e)}e.log=i;function a(e){r(4,e)}e.trace=a})(i=e.log||={});let a={};function o(){return t}e.getAssertionLevel=o;function s(n){let r=t;if(t=n,n>r)for(let t of Ye(a)){let r=a[t];r!==void 0&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}}e.setAssertionLevel=s;function c(e){return t>=e}e.shouldAssert=c;function l(t,n){return c(t)?!0:(a[n]={level:t,assertion:e[n]},e[n]=bt,!1)}function u(e,t){let n=Error(e?`Debug Failure. ${e}`:`Debug Failure.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,t||u),n}e.fail=u;function d(e,t,n){return u(`${t||`Unexpected node.`}\r Node ${j(e.kind)} was unexpected.`,n||d)}e.failBadSyntaxKind=d;function f(e,t,n,r){e||(t=t?`False expression: ${t}`:`False expression.`,n&&(t+=`\r Verbose Debug Information: `+(typeof n==`string`?n:n())),u(t,r||f))}e.assert=f;function p(e,t,n,r,i){e!==t&&u(`Expected ${e} === ${t}. ${n?r?`${n} ${r}`:n:``}`,i||p)}e.assertEqual=p;function m(e,t,n,r){e>=t&&u(`Expected ${e} < ${t}. ${n||``}`,r||m)}e.assertLessThan=m;function h(e,t,n){e>t&&u(`Expected ${e} <= ${t}`,n||h)}e.assertLessThanOrEqual=h;function _(e,t,n){e= ${t}`,n||_)}e.assertGreaterThanOrEqual=_;function y(e,t,n){e??u(t,n||y)}e.assertIsDefined=y;function b(e,t,n){return y(e,t,n||b),e}e.checkDefined=b;function x(e,t,n){for(let r of e)y(r,t,n||x)}e.assertEachIsDefined=x;function S(e,t,n){return x(e,t,n||S),e}e.checkEachDefined=S;function C(e,t=`Illegal value:`,n){return u(`${t} ${typeof e==`object`&&qe(e,`kind`)&&qe(e,`pos`)?`SyntaxKind: `+j(e.kind):JSON.stringify(e)}`,n||C)}e.assertNever=C;function w(e,t,n,r){l(1,`assertEachNode`)&&f(t===void 0||v(e,t),n||`Unexpected node.`,()=>`Node array did not pass test '${ne(t)}'.`,r||w)}e.assertEachNode=w;function T(e,t,n,r){l(1,`assertNode`)&&f(e!==void 0&&(t===void 0||t(e)),n||`Unexpected node.`,()=>`Node ${j(e?.kind)} did not pass test '${ne(t)}'.`,r||T)}e.assertNode=T;function E(e,t,n,r){l(1,`assertNotNode`)&&f(e===void 0||t===void 0||!t(e),n||`Unexpected node.`,()=>`Node ${j(e.kind)} should not have passed test '${ne(t)}'.`,r||E)}e.assertNotNode=E;function D(e,t,n,r){l(1,`assertOptionalNode`)&&f(t===void 0||e===void 0||t(e),n||`Unexpected node.`,()=>`Node ${j(e?.kind)} did not pass test '${ne(t)}'.`,r||D)}e.assertOptionalNode=D;function O(e,t,n,r){l(1,`assertOptionalToken`)&&f(t===void 0||e===void 0||e.kind===t,n||`Unexpected node.`,()=>`Node ${j(e?.kind)} was not a '${j(t)}' token.`,r||O)}e.assertOptionalToken=O;function ee(e,t,n){l(1,`assertMissingNode`)&&f(e===void 0,t||`Unexpected node.`,()=>`Node ${j(e.kind)} was unexpected'.`,n||ee)}e.assertMissingNode=ee;function te(e){}e.type=te;function ne(e){if(typeof e!=`function`)return``;if(qe(e,`name`))return e.name;{let t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:``}}e.getFunctionName=ne;function re(e){return`{ name: ${Wc(e.escapedName)}; flags: ${F(e.flags)}; declarations: ${k(e.declarations,e=>j(e.kind))} }`}e.formatSymbol=re;function ie(e=0,t,n){let r=A(t);if(e===0)return r.length>0&&r[0][0]===0?r[0][1]:`0`;if(n){let t=[],n=e;for(let[i,a]of r){if(i>e)break;i!==0&&i&e&&(t.push(a),n&=~i)}if(n===0)return t.join(`|`)}else for(let[t,n]of r)if(t===e)return n;return e.toString()}e.formatEnum=ie;let ae=new Map;function A(e){let t=ae.get(e);if(t)return t;let n=[];for(let t in e){let r=e[t];typeof r==`number`&&n.push([r,t])}let r=Ae(n,(e,t)=>It(e[0],t[0]));return ae.set(e,r),r}function j(e){return ie(e,Pr,!1)}e.formatSyntaxKind=j;function M(e){return ie(e,Gi,!1)}e.formatSnippetKind=M;function N(e){return ie(e,Ri,!1)}e.formatScriptKind=N;function oe(e){return ie(e,Fr,!0)}e.formatNodeFlags=oe;function se(e){return ie(e,di,!0)}e.formatNodeCheckFlags=se;function ce(e){return ie(e,Ir,!0)}e.formatModifierFlags=ce;function P(e){return ie(e,Wi,!0)}e.formatTransformFlags=P;function le(e){return ie(e,Ki,!0)}e.formatEmitFlags=le;function F(e){return ie(e,ci,!0)}e.formatSymbolFlags=F;function ue(e){return ie(e,fi,!0)}e.formatTypeFlags=ue;function de(e){return ie(e,bi,!0)}e.formatSignatureFlags=de;function fe(e){return ie(e,pi,!0)}e.formatObjectFlags=fe;function pe(e){return ie(e,Ur,!0)}e.formatFlowFlags=pe;function me(e){return ie(e,Rr,!0)}e.formatRelationComparisonResult=me;function he(e){return ie(e,dB,!0)}e.formatCheckMode=he;function ge(e){return ie(e,fB,!0)}e.formatSignatureCheckMode=ge;function _e(e){return ie(e,lB,!0)}e.formatTypeFacts=_e;let ve=!1,ye;function be(e){`__debugFlowFlags`in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){let e=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`,t=this.flags&-2048;return`${e}${t?` (${pe(t)})`:``}`}},__debugFlowFlags:{get(){return ie(this.flags,Ur,!0)}},__debugToString:{value(){return ke(this)}}})}function xe(e){return ve&&(typeof Object.setPrototypeOf==`function`?(ye||(ye=Object.create(Object.prototype),be(ye)),Object.setPrototypeOf(e,ye)):be(e)),e}e.attachFlowNodeDebugInfo=xe;let Se;function Ce(e){`__tsDebuggerDisplay`in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(e){return e=String(e).replace(/(?:,[\s\w]+:[^,]+)+\]$/,`]`),`NodeArray ${e}`}}})}function I(e){ve&&(typeof Object.setPrototypeOf==`function`?(Se||(Se=Object.create(Array.prototype),Ce(Se)),Object.setPrototypeOf(e,Se)):Ce(e))}e.attachNodeArrayDebugInfo=I;function we(){if(ve)return;let e=new WeakMap,t=new WeakMap;Object.defineProperties(oS.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let e=this.flags&33554432?`TransientSymbol`:`Symbol`,t=this.flags&-33554433;return`${e} '${qc(this)}'${t?` (${F(t)})`:``}`}},__debugFlags:{get(){return F(this.flags)}}}),Object.defineProperties(oS.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let e=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:``}`:this.flags&98304?`NullableType`:this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?`-`:``}${this.value.base10Value}n`:this.flags&8192?`UniqueESSymbolType`:this.flags&32?`EnumType`:this.flags&1048576?`UnionType`:this.flags&2097152?`IntersectionType`:this.flags&4194304?`IndexType`:this.flags&8388608?`IndexedAccessType`:this.flags&16777216?`ConditionalType`:this.flags&33554432?`SubstitutionType`:this.flags&262144?`TypeParameter`:this.flags&524288?this.objectFlags&3?`InterfaceType`:this.objectFlags&4?`TypeReference`:this.objectFlags&8?`TupleType`:this.objectFlags&16?`AnonymousType`:this.objectFlags&32?`MappedType`:this.objectFlags&1024?`ReverseMappedType`:this.objectFlags&256?`EvolvingArrayType`:`ObjectType`:`Type`,t=this.flags&524288?this.objectFlags&-1344:0;return`${e}${this.symbol?` '${qc(this.symbol)}'`:``}${t?` (${fe(t)})`:``}`}},__debugFlags:{get(){return ue(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?fe(this.objectFlags):``}},__debugTypeToString:{value(){let t=e.get(this);return t===void 0&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(oS.getSignatureConstructor().prototype,{__debugFlags:{get(){return de(this.flags)}},__debugSignatureToString:{value(){return this.checker?.signatureToString(this)}}});let n=[oS.getNodeConstructor(),oS.getIdentifierConstructor(),oS.getTokenConstructor(),oS.getSourceFileConstructor()];for(let e of n)qe(e.prototype,`__debugKind`)||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${yu(this)?`GeneratedIdentifier`:Y(this)?`Identifier '${Gc(this)}'`:vO(this)?`PrivateIdentifier '${Gc(this)}'`:tO(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+`...`)}`:$D(this)?`NumericLiteral ${this.text}`:eO(this)?`BigIntLiteral ${this.text}n`:PO(this)?`TypeParameterDeclaration`:FO(this)?`ParameterDeclaration`:HO(this)?`ConstructorDeclaration`:UO(this)?`GetAccessorDeclaration`:WO(this)?`SetAccessorDeclaration`:GO(this)?`CallSignatureDeclaration`:KO(this)?`ConstructSignatureDeclaration`:qO(this)?`IndexSignatureDeclaration`:JO(this)?`TypePredicateNode`:YO(this)?`TypeReferenceNode`:XO(this)?`FunctionTypeNode`:ZO(this)?`ConstructorTypeNode`:QO(this)?`TypeQueryNode`:$O(this)?`TypeLiteralNode`:ek(this)?`ArrayTypeNode`:tk(this)?`TupleTypeNode`:rk(this)?`OptionalTypeNode`:ik(this)?`RestTypeNode`:ak(this)?`UnionTypeNode`:ok(this)?`IntersectionTypeNode`:sk(this)?`ConditionalTypeNode`:ck(this)?`InferTypeNode`:lk(this)?`ParenthesizedTypeNode`:uk(this)?`ThisTypeNode`:dk(this)?`TypeOperatorNode`:fk(this)?`IndexedAccessTypeNode`:pk(this)?`MappedTypeNode`:mk(this)?`LiteralTypeNode`:nk(this)?`NamedTupleMember`:hk(this)?`ImportTypeNode`:j(this.kind)}${this.flags?` (${oe(this.flags)})`:``}`}},__debugKind:{get(){return j(this.kind)}},__debugNodeFlags:{get(){return oe(this.flags)}},__debugModifierFlags:{get(){return ce(gb(this))}},__debugTransformFlags:{get(){return P(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Vc(this)}},__debugEmitFlags:{get(){return le(kp(this))}},__debugGetText:{value(e){if(kv(this))return``;let n=t.get(this);if(n===void 0){let r=Hc(this),i=r&&Yf(r);n=i?bp(i,r,e):``,t.set(this,n)}return n}}});ve=!0}e.enableDebugInfo=we;function Te(e){let t=e&7,n=t===0?`in out`:t===3?`[bivariant]`:t===2?`in`:t===1?`out`:t===4?`[independent]`:``;return e&8?n+=` (unmeasurable)`:e&16&&(n+=` (unreliable)`),n}e.formatVariance=Te;class Ee{__debugToString(){switch(this.kind){case 3:return this.debugInfo?.call(this)||`(function mapper)`;case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return g(this.sources,this.targets||k(this.sources,()=>`any`),(e,t)=>`${e.__debugTypeToString()} -> ${typeof t==`string`?t:t.__debugTypeToString()}`).join(`, `);case 2:return g(this.sources,this.targets,(e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`).join(`, `);case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`;default:return C(this)}}}e.DebugTypeMapper=Ee;function De(t){return e.isDebugging?Object.setPrototypeOf(t,Ee.prototype):t}e.attachDebugPrototypeIfDebug=De;function Oe(e){return console.log(ke(e))}e.printControlFlowGraph=Oe;function ke(e){let t=-1;function n(e){return e.id||(e.id=t,t--),e.id}let r;(e=>{e.lr=`─`,e.ud=`│`,e.dr=`╭`,e.dl=`╮`,e.ul=`╯`,e.ur=`╰`,e.udr=`├`,e.udl=`┤`,e.dlr=`┬`,e.ulr=`┴`,e.udlr=`╫`})(r||={});let i;(e=>{e[e.None=0]=`None`,e[e.Up=1]=`Up`,e[e.Down=2]=`Down`,e[e.Left=4]=`Left`,e[e.Right=8]=`Right`,e[e.UpDown=3]=`UpDown`,e[e.LeftRight=12]=`LeftRight`,e[e.UpLeft=5]=`UpLeft`,e[e.UpRight=9]=`UpRight`,e[e.DownLeft=6]=`DownLeft`,e[e.DownRight=10]=`DownRight`,e[e.UpDownLeft=7]=`UpDownLeft`,e[e.UpDownRight=11]=`UpDownRight`,e[e.UpLeftRight=13]=`UpLeftRight`,e[e.DownLeftRight=14]=`DownLeftRight`,e[e.UpDownLeftRight=15]=`UpDownLeftRight`,e[e.NoChildren=16]=`NoChildren`})(i||={});let a=Object.create(null),o=[],s=h(e,new Set);for(let e of o)e.text=C(e.flowNode,e.circular),_(e);let c=y(v(s));return b(s,0),w();function l(e){return!!(e.flags&128)}function u(e){return!!(e.flags&12)&&!!e.antecedent}function d(e){return!!(e.flags&2032)}function f(e){return!!(e.flags&882)}function p(e){let t=[];for(let n of e.edges)n.source===e&&t.push(n.target);return t}function m(e){let t=[];for(let n of e.edges)n.target===e&&t.push(n.source);return t}function h(e,t){let r=n(e),i=a[r];if(i&&t.has(e))return i.circular=!0,i={id:-1,flowNode:e,edges:[],text:``,lane:-1,endLane:-1,level:-1,circular:`circularity`},o.push(i),i;if(t.add(e),!i)if(a[r]=i={id:r,flowNode:e,edges:[],text:``,lane:-1,endLane:-1,level:-1,circular:!1},o.push(i),u(e))for(let n of e.antecedent)g(i,n,t);else d(e)&&g(i,e.antecedent,t);return t.delete(e),i}function g(e,t,n){let r=h(t,n),i={source:e,target:r};e.edges.push(i),r.edges.push(i)}function _(e){if(e.level!==-1)return e.level;let t=0;for(let n of m(e))t=Math.max(t,_(n)+1);return e.level=t}function v(e){let t=0;for(let n of p(e))t=Math.max(t,v(n));return t+1}function y(e){let t=E(Array(e),0);for(let e of o)t[e.level]=Math.max(t[e.level],e.text.length);return t}function b(e,t){if(e.lane===-1){e.lane=t,e.endLane=t;let n=p(e);for(let r=0;r0&&t++;let i=n[r];b(i,t),i.endLane>e.endLane&&(t=i.endLane)}e.endLane=t}}function x(e){if(e&2)return`Start`;if(e&4)return`Branch`;if(e&8)return`Loop`;if(e&16)return`Assignment`;if(e&32)return`True`;if(e&64)return`False`;if(e&128)return`SwitchClause`;if(e&256)return`ArrayMutation`;if(e&512)return`Call`;if(e&1024)return`ReduceLabel`;if(e&1)return`Unreachable`;throw Error()}function S(e){return bp(Yf(e),e,!1)}function C(e,t){let r=x(e.flags);if(t&&(r=`${r}#${n(e)}`),l(e)){let t=[],{switchStatement:n,clauseStart:i,clauseEnd:a}=e.node;for(let e=i;ee.lane)+1,n=E(Array(t),``),r=c.map(()=>Array(t)),i=c.map(()=>E(Array(t),0));for(let e of o){r[e.level][e.lane]=e;let t=p(e);for(let n=0;n0&&(a|=1),n0&&(a|=1),t0?i[n-1][e]:0,r=e>0?i[n][e-1]:0,a=i[n][e];a||(t&8&&(a|=12),r&2&&(a|=3),i[n][e]=a)}for(let t=0;t0?e.repeat(t):``;let n=``;for(;n.length=0,`Invalid argument: major`),H.assert(t>=0,`Invalid argument: minor`),H.assert(n>=0,`Invalid argument: patch`);let a=r?mt(r)?r:r.split(`.`):c,o=i?mt(i)?i:i.split(`.`):c;H.assert(v(a,e=>An.test(e)),`Invalid argument: prerelease`),H.assert(v(o,e=>Mn.test(e)),`Invalid argument: build`),this.major=e,this.minor=t,this.patch=n,this.prerelease=a,this.build=o}static tryParse(t){let n=In(t);if(!n)return;let{major:r,minor:i,patch:a,prerelease:o,build:s}=n;return new e(r,i,a,o,s)}compareTo(e){return this===e?0:e===void 0?1:It(this.major,e.major)||It(this.minor,e.minor)||It(this.patch,e.patch)||Ln(this.prerelease,e.prerelease)}increment(t){switch(t){case`major`:return new e(this.major+1,0,0);case`minor`:return new e(this.major,this.minor+1,0);case`patch`:return new e(this.major,this.minor,this.patch+1);default:return H.assertNever(t)}}with(t){let{major:n=this.major,minor:r=this.minor,patch:i=this.patch,prerelease:a=this.prerelease,build:o=this.build}=t;return new e(n,r,i,a,o)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return F(this.prerelease)&&(e+=`-${this.prerelease.join(`.`)}`),F(this.build)&&(e+=`+${this.build.join(`.`)}`),e}};Pn.zero=new Pn(0,0,0,[`0`]);var Fn=Pn;function In(e){let t=On.exec(e);if(!t)return;let[,n,r=`0`,i=`0`,a=``,o=``]=t;if(!(a&&!kn.test(a))&&!(o&&!jn.test(o)))return{major:parseInt(n,10),minor:parseInt(r,10),patch:parseInt(i,10),prerelease:a,build:o}}function Ln(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;let n=Math.min(e.length,t.length);for(let r=0;r=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function Wn(e){let t=[];for(let n of e.trim().split(zn)){if(!n)continue;let e=[];n=n.trim();let r=Hn.exec(n);if(r){if(!Kn(r[1],r[2],e))return}else for(let t of n.split(Bn)){let n=Un.exec(t.trim());if(!n||!qn(n[1],n[2],e))return}t.push(e)}return t}function Gn(e){let t=Vn.exec(e);if(!t)return;let[,n,r=`*`,i=`*`,a,o]=t;return{version:new Fn(Jn(n)?0:parseInt(n,10),Jn(n)||Jn(r)?0:parseInt(r,10),Jn(n)||Jn(r)||Jn(i)?0:parseInt(i,10),a,o),major:n,minor:r,patch:i}}function Kn(e,t,n){let r=Gn(e);if(!r)return!1;let i=Gn(t);return i?(Jn(r.major)||n.push(Yn(`>=`,r.version)),Jn(i.major)||n.push(Jn(i.minor)?Yn(`<`,i.version.increment(`major`)):Jn(i.patch)?Yn(`<`,i.version.increment(`minor`)):Yn(`<=`,i.version)),!0):!1}function qn(e,t,n){let r=Gn(t);if(!r)return!1;let{version:i,major:a,minor:o,patch:s}=r;if(Jn(a))(e===`<`||e===`>`)&&n.push(Yn(`<`,Fn.zero));else switch(e){case`~`:n.push(Yn(`>=`,i)),n.push(Yn(`<`,i.increment(Jn(o)?`major`:`minor`)));break;case`^`:n.push(Yn(`>=`,i)),n.push(Yn(`<`,i.increment(i.major>0||Jn(o)?`major`:i.minor>0||Jn(s)?`minor`:`patch`)));break;case`<`:case`>=`:n.push(Jn(o)||Jn(s)?Yn(e,i.with({prerelease:`0`})):Yn(e,i));break;case`<=`:case`>`:n.push(Jn(o)?Yn(e===`<=`?`<`:`>=`,i.increment(`major`).with({prerelease:`0`})):Jn(s)?Yn(e===`<=`?`<`:`>=`,i.increment(`minor`).with({prerelease:`0`})):Yn(e,i));break;case`=`:case void 0:Jn(o)||Jn(s)?(n.push(Yn(`>=`,i.with({prerelease:`0`}))),n.push(Yn(`<`,i.increment(Jn(o)?`major`:`minor`).with({prerelease:`0`})))):n.push(Yn(`=`,i));break;default:return!1}return!0}function Jn(e){return e===`*`||e===`x`||e===`X`}function Yn(e,t){return{operator:e,operand:t}}function Xn(e,t){if(t.length===0)return!0;for(let n of t)if(Zn(e,n))return!0;return!1}function Zn(e,t){for(let n of t)if(!Qn(e,n.operator,n.operand))return!1;return!0}function Qn(e,t,n){let r=e.compareTo(n);switch(t){case`<`:return r<0;case`<=`:return r<=0;case`>`:return r>0;case`>=`:return r>=0;case`=`:return r===0;default:return H.assertNever(t)}}function $n(e){return k(e,er).join(` || `)||`*`}function er(e){return k(e,tr).join(` `)}function tr(e){return`${e.operator}${e.operand}`}function nr(){if(En(),typeof performance==`object`)return{shouldWriteNativeEvents:!0,performance}}function rr(){let e=nr();if(!e)return;let{shouldWriteNativeEvents:t,performance:n}=e,r={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return typeof n.timeOrigin==`number`&&typeof n.now==`function`&&(r.performanceTime=n),r.performanceTime&&typeof n.mark==`function`&&typeof n.measure==`function`&&typeof n.clearMarks==`function`&&typeof n.clearMeasures==`function`&&(r.performance=n),r}var ir=rr(),ar=ir?.performanceTime;function or(){return ir}var sr=ar?()=>ar.now():Date.now,cr={};n(cr,{clearMarks:()=>Er,clearMeasures:()=>Tr,createTimer:()=>fr,createTimerIf:()=>dr,disable:()=>kr,enable:()=>Or,forEachMark:()=>wr,forEachMeasure:()=>Cr,getCount:()=>xr,getDuration:()=>Sr,isEnabled:()=>Dr,mark:()=>yr,measure:()=>br,nullTimer:()=>pr});var lr,ur;function dr(e,t,n,r){return e?fr(t,n,r):pr}function fr(e,t,n){let r=0;return{enter:i,exit:a};function i(){++r===1&&yr(t)}function a(){--r===0?(yr(n),br(e,t,n)):r<0&&H.fail(`enter/exit count does not match.`)}}var pr={enter:bt,exit:bt},mr=!1,hr=sr(),gr=new Map,_r=new Map,vr=new Map;function yr(e){if(mr){let t=_r.get(e)??0;_r.set(e,t+1),gr.set(e,sr()),ur?.mark(e),typeof onProfilerEvent==`function`&&onProfilerEvent(e)}}function br(e,t,n){if(mr){let r=(n===void 0?void 0:gr.get(n))??sr(),i=(t===void 0?void 0:gr.get(t))??hr,a=vr.get(e)||0;vr.set(e,a+(r-i)),ur?.measure(e,t,n)}}function xr(e){return _r.get(e)||0}function Sr(e){return vr.get(e)||0}function Cr(e){vr.forEach((t,n)=>e(n,t))}function wr(e){gr.forEach((t,n)=>e(n))}function Tr(e){e===void 0?vr.clear():vr.delete(e),ur?.clearMeasures(e)}function Er(e){e===void 0?(_r.clear(),gr.clear()):(_r.delete(e),gr.delete(e)),ur?.clearMarks(e)}function Dr(){return mr}function Or(e=Na){return mr||(mr=!0,lr||=or(),lr?.performance&&(hr=lr.performance.timeOrigin,(lr.shouldWriteNativeEvents||(e?.cpuProfilingEnabled)?.call(e)||e?.debugMode)&&(ur=lr.performance))),!0}function kr(){mr&&=(gr.clear(),_r.clear(),vr.clear(),ur=void 0,!1)}var Ar,jr;(e=>{let t,n=0,r=0,i,a=[],o,s=[];function c(c,l,u){if(H.assert(!Ar,`Tracing already started`),t===void 0)try{t=vo(`fs`)}catch(e){throw Error(`tracing requires having fs (original error: ${e.message||e})`)}i=c,a.length=0,o===void 0&&(o=lo(l,`legend.json`)),t.existsSync(l)||t.mkdirSync(l,{recursive:!0});let d=i===`build`?`.${process.pid}-${++n}`:i===`server`?`.${process.pid}`:``,f=lo(l,`trace${d}.json`),p=lo(l,`types${d}.json`);s.push({configFilePath:u,tracePath:f,typesPath:p}),r=t.openSync(f,`w`),Ar=e;let m={cat:`__metadata`,ph:`M`,ts:1e3*sr(),pid:1,tid:1};t.writeSync(r,`[ `+[{name:`process_name`,args:{name:`tsc`},...m},{name:`thread_name`,args:{name:`Main`},...m},{name:`TracingStartedInBrowser`,...m,cat:`disabled-by-default-devtools.timeline`}].map(e=>JSON.stringify(e)).join(`, `))}e.startTracing=c;function l(){H.assert(Ar,`Tracing is not in progress`),H.assert(!!a.length==(i!==`server`)),t.writeSync(r,` ] `),t.closeSync(r),Ar=void 0,a.length?b(a):s[s.length-1].typesPath=void 0}e.stopTracing=l;function u(e){i!==`server`&&a.push(e)}e.recordType=u,(e=>{e.Parse=`parse`,e.Program=`program`,e.Bind=`bind`,e.Check=`check`,e.CheckTypes=`checkTypes`,e.Emit=`emit`,e.Session=`session`})(e.Phase||={});function d(e,t,n){v(`I`,e,t,n,`"s":"g"`)}e.instant=d;let f=[];function p(e,t,n,r=!1){r&&v(`B`,e,t,n),f.push({phase:e,name:t,args:n,time:1e3*sr(),separateBeginAndEnd:r})}e.push=p;function m(e){H.assert(f.length>0),_(f.length-1,1e3*sr(),e),f.length--}e.pop=m;function h(){let e=1e3*sr();for(let t=f.length-1;t>=0;t--)_(t,e);f.length=0}e.popAll=h;let g=1e3*10;function _(e,t,n){let{phase:r,name:i,args:a,time:o,separateBeginAndEnd:s}=f[e];s?(H.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),v(`E`,r,i,a,void 0,t)):g-o%g<=t-o&&v(`X`,r,i,{...a,results:n},`"dur":${t-o}`,o)}function v(e,n,a,o,s,c=1e3*sr()){i===`server`&&n===`checkTypes`||(yr(`beginTracing`),t.writeSync(r,`, {"pid":1,"tid":1,"ph":"${e}","cat":"${n}","ts":${c},"name":"${a}"`),s&&t.writeSync(r,`,${s}`),o&&t.writeSync(r,`,"args":${JSON.stringify(o)}`),t.writeSync(r,`}`),yr(`endTracing`),br(`Tracing`,`beginTracing`,`endTracing`))}function y(e){let t=Yf(e);return t?{path:t.path,start:n(gs(t,e.pos)),end:n(gs(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}function b(e){yr(`beginDumpTypes`);let n=s[s.length-1].typesPath,r=t.openSync(n,`w`),i=new Map;t.writeSync(r,`[`);let a=e.length;for(let n=0;ne.id),referenceLocation:y(e.node)}}let f={};if(o.flags&16777216){let e=o;f={conditionalCheckType:e.checkType?.id,conditionalExtendsType:e.extendsType?.id,conditionalTrueType:e.resolvedTrueType?.id??-1,conditionalFalseType:e.resolvedFalseType?.id??-1}}let p={};if(o.flags&33554432){let e=o;p={substitutionBaseType:e.baseType?.id,constraintType:e.constraint?.id}}let m={};if(s&1024){let e=o;m={reverseMappedSourceType:e.source?.id,reverseMappedMappedType:e.mappedType?.id,reverseMappedConstraintType:e.constraintType?.id}}let h={};if(s&256){let e=o;h={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:e.finalArrayType?.id}}let g,_=o.checker.getRecursionIdentity(o);_&&(g=i.get(_),g||(g=i.size,i.set(_,g)));let v={id:o.id,intrinsicName:o.intrinsicName,symbolName:c?.escapedName&&Wc(c.escapedName),recursionId:g,isTuple:s&8?!0:void 0,unionTypes:o.flags&1048576?o.types?.map(e=>e.id):void 0,intersectionTypes:o.flags&2097152?o.types.map(e=>e.id):void 0,aliasTypeArguments:o.aliasTypeArguments?.map(e=>e.id),keyofType:o.flags&4194304?o.type?.id:void 0,...u,...d,...f,...p,...m,...h,destructuringPattern:y(o.pattern),firstDeclaration:y(c?.declarations?.[0]),flags:H.formatTypeFlags(o.flags).split(`|`),display:l};t.writeSync(r,JSON.stringify(v)),n(e[e.Unknown=0]=`Unknown`,e[e.EndOfFileToken=1]=`EndOfFileToken`,e[e.SingleLineCommentTrivia=2]=`SingleLineCommentTrivia`,e[e.MultiLineCommentTrivia=3]=`MultiLineCommentTrivia`,e[e.NewLineTrivia=4]=`NewLineTrivia`,e[e.WhitespaceTrivia=5]=`WhitespaceTrivia`,e[e.ShebangTrivia=6]=`ShebangTrivia`,e[e.ConflictMarkerTrivia=7]=`ConflictMarkerTrivia`,e[e.NonTextFileMarkerTrivia=8]=`NonTextFileMarkerTrivia`,e[e.NumericLiteral=9]=`NumericLiteral`,e[e.BigIntLiteral=10]=`BigIntLiteral`,e[e.StringLiteral=11]=`StringLiteral`,e[e.JsxText=12]=`JsxText`,e[e.JsxTextAllWhiteSpaces=13]=`JsxTextAllWhiteSpaces`,e[e.RegularExpressionLiteral=14]=`RegularExpressionLiteral`,e[e.NoSubstitutionTemplateLiteral=15]=`NoSubstitutionTemplateLiteral`,e[e.TemplateHead=16]=`TemplateHead`,e[e.TemplateMiddle=17]=`TemplateMiddle`,e[e.TemplateTail=18]=`TemplateTail`,e[e.OpenBraceToken=19]=`OpenBraceToken`,e[e.CloseBraceToken=20]=`CloseBraceToken`,e[e.OpenParenToken=21]=`OpenParenToken`,e[e.CloseParenToken=22]=`CloseParenToken`,e[e.OpenBracketToken=23]=`OpenBracketToken`,e[e.CloseBracketToken=24]=`CloseBracketToken`,e[e.DotToken=25]=`DotToken`,e[e.DotDotDotToken=26]=`DotDotDotToken`,e[e.SemicolonToken=27]=`SemicolonToken`,e[e.CommaToken=28]=`CommaToken`,e[e.QuestionDotToken=29]=`QuestionDotToken`,e[e.LessThanToken=30]=`LessThanToken`,e[e.LessThanSlashToken=31]=`LessThanSlashToken`,e[e.GreaterThanToken=32]=`GreaterThanToken`,e[e.LessThanEqualsToken=33]=`LessThanEqualsToken`,e[e.GreaterThanEqualsToken=34]=`GreaterThanEqualsToken`,e[e.EqualsEqualsToken=35]=`EqualsEqualsToken`,e[e.ExclamationEqualsToken=36]=`ExclamationEqualsToken`,e[e.EqualsEqualsEqualsToken=37]=`EqualsEqualsEqualsToken`,e[e.ExclamationEqualsEqualsToken=38]=`ExclamationEqualsEqualsToken`,e[e.EqualsGreaterThanToken=39]=`EqualsGreaterThanToken`,e[e.PlusToken=40]=`PlusToken`,e[e.MinusToken=41]=`MinusToken`,e[e.AsteriskToken=42]=`AsteriskToken`,e[e.AsteriskAsteriskToken=43]=`AsteriskAsteriskToken`,e[e.SlashToken=44]=`SlashToken`,e[e.PercentToken=45]=`PercentToken`,e[e.PlusPlusToken=46]=`PlusPlusToken`,e[e.MinusMinusToken=47]=`MinusMinusToken`,e[e.LessThanLessThanToken=48]=`LessThanLessThanToken`,e[e.GreaterThanGreaterThanToken=49]=`GreaterThanGreaterThanToken`,e[e.GreaterThanGreaterThanGreaterThanToken=50]=`GreaterThanGreaterThanGreaterThanToken`,e[e.AmpersandToken=51]=`AmpersandToken`,e[e.BarToken=52]=`BarToken`,e[e.CaretToken=53]=`CaretToken`,e[e.ExclamationToken=54]=`ExclamationToken`,e[e.TildeToken=55]=`TildeToken`,e[e.AmpersandAmpersandToken=56]=`AmpersandAmpersandToken`,e[e.BarBarToken=57]=`BarBarToken`,e[e.QuestionToken=58]=`QuestionToken`,e[e.ColonToken=59]=`ColonToken`,e[e.AtToken=60]=`AtToken`,e[e.QuestionQuestionToken=61]=`QuestionQuestionToken`,e[e.BacktickToken=62]=`BacktickToken`,e[e.HashToken=63]=`HashToken`,e[e.EqualsToken=64]=`EqualsToken`,e[e.PlusEqualsToken=65]=`PlusEqualsToken`,e[e.MinusEqualsToken=66]=`MinusEqualsToken`,e[e.AsteriskEqualsToken=67]=`AsteriskEqualsToken`,e[e.AsteriskAsteriskEqualsToken=68]=`AsteriskAsteriskEqualsToken`,e[e.SlashEqualsToken=69]=`SlashEqualsToken`,e[e.PercentEqualsToken=70]=`PercentEqualsToken`,e[e.LessThanLessThanEqualsToken=71]=`LessThanLessThanEqualsToken`,e[e.GreaterThanGreaterThanEqualsToken=72]=`GreaterThanGreaterThanEqualsToken`,e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]=`GreaterThanGreaterThanGreaterThanEqualsToken`,e[e.AmpersandEqualsToken=74]=`AmpersandEqualsToken`,e[e.BarEqualsToken=75]=`BarEqualsToken`,e[e.BarBarEqualsToken=76]=`BarBarEqualsToken`,e[e.AmpersandAmpersandEqualsToken=77]=`AmpersandAmpersandEqualsToken`,e[e.QuestionQuestionEqualsToken=78]=`QuestionQuestionEqualsToken`,e[e.CaretEqualsToken=79]=`CaretEqualsToken`,e[e.Identifier=80]=`Identifier`,e[e.PrivateIdentifier=81]=`PrivateIdentifier`,e[e.JSDocCommentTextToken=82]=`JSDocCommentTextToken`,e[e.BreakKeyword=83]=`BreakKeyword`,e[e.CaseKeyword=84]=`CaseKeyword`,e[e.CatchKeyword=85]=`CatchKeyword`,e[e.ClassKeyword=86]=`ClassKeyword`,e[e.ConstKeyword=87]=`ConstKeyword`,e[e.ContinueKeyword=88]=`ContinueKeyword`,e[e.DebuggerKeyword=89]=`DebuggerKeyword`,e[e.DefaultKeyword=90]=`DefaultKeyword`,e[e.DeleteKeyword=91]=`DeleteKeyword`,e[e.DoKeyword=92]=`DoKeyword`,e[e.ElseKeyword=93]=`ElseKeyword`,e[e.EnumKeyword=94]=`EnumKeyword`,e[e.ExportKeyword=95]=`ExportKeyword`,e[e.ExtendsKeyword=96]=`ExtendsKeyword`,e[e.FalseKeyword=97]=`FalseKeyword`,e[e.FinallyKeyword=98]=`FinallyKeyword`,e[e.ForKeyword=99]=`ForKeyword`,e[e.FunctionKeyword=100]=`FunctionKeyword`,e[e.IfKeyword=101]=`IfKeyword`,e[e.ImportKeyword=102]=`ImportKeyword`,e[e.InKeyword=103]=`InKeyword`,e[e.InstanceOfKeyword=104]=`InstanceOfKeyword`,e[e.NewKeyword=105]=`NewKeyword`,e[e.NullKeyword=106]=`NullKeyword`,e[e.ReturnKeyword=107]=`ReturnKeyword`,e[e.SuperKeyword=108]=`SuperKeyword`,e[e.SwitchKeyword=109]=`SwitchKeyword`,e[e.ThisKeyword=110]=`ThisKeyword`,e[e.ThrowKeyword=111]=`ThrowKeyword`,e[e.TrueKeyword=112]=`TrueKeyword`,e[e.TryKeyword=113]=`TryKeyword`,e[e.TypeOfKeyword=114]=`TypeOfKeyword`,e[e.VarKeyword=115]=`VarKeyword`,e[e.VoidKeyword=116]=`VoidKeyword`,e[e.WhileKeyword=117]=`WhileKeyword`,e[e.WithKeyword=118]=`WithKeyword`,e[e.ImplementsKeyword=119]=`ImplementsKeyword`,e[e.InterfaceKeyword=120]=`InterfaceKeyword`,e[e.LetKeyword=121]=`LetKeyword`,e[e.PackageKeyword=122]=`PackageKeyword`,e[e.PrivateKeyword=123]=`PrivateKeyword`,e[e.ProtectedKeyword=124]=`ProtectedKeyword`,e[e.PublicKeyword=125]=`PublicKeyword`,e[e.StaticKeyword=126]=`StaticKeyword`,e[e.YieldKeyword=127]=`YieldKeyword`,e[e.AbstractKeyword=128]=`AbstractKeyword`,e[e.AccessorKeyword=129]=`AccessorKeyword`,e[e.AsKeyword=130]=`AsKeyword`,e[e.AssertsKeyword=131]=`AssertsKeyword`,e[e.AssertKeyword=132]=`AssertKeyword`,e[e.AnyKeyword=133]=`AnyKeyword`,e[e.AsyncKeyword=134]=`AsyncKeyword`,e[e.AwaitKeyword=135]=`AwaitKeyword`,e[e.BooleanKeyword=136]=`BooleanKeyword`,e[e.ConstructorKeyword=137]=`ConstructorKeyword`,e[e.DeclareKeyword=138]=`DeclareKeyword`,e[e.GetKeyword=139]=`GetKeyword`,e[e.InferKeyword=140]=`InferKeyword`,e[e.IntrinsicKeyword=141]=`IntrinsicKeyword`,e[e.IsKeyword=142]=`IsKeyword`,e[e.KeyOfKeyword=143]=`KeyOfKeyword`,e[e.ModuleKeyword=144]=`ModuleKeyword`,e[e.NamespaceKeyword=145]=`NamespaceKeyword`,e[e.NeverKeyword=146]=`NeverKeyword`,e[e.OutKeyword=147]=`OutKeyword`,e[e.ReadonlyKeyword=148]=`ReadonlyKeyword`,e[e.RequireKeyword=149]=`RequireKeyword`,e[e.NumberKeyword=150]=`NumberKeyword`,e[e.ObjectKeyword=151]=`ObjectKeyword`,e[e.SatisfiesKeyword=152]=`SatisfiesKeyword`,e[e.SetKeyword=153]=`SetKeyword`,e[e.StringKeyword=154]=`StringKeyword`,e[e.SymbolKeyword=155]=`SymbolKeyword`,e[e.TypeKeyword=156]=`TypeKeyword`,e[e.UndefinedKeyword=157]=`UndefinedKeyword`,e[e.UniqueKeyword=158]=`UniqueKeyword`,e[e.UnknownKeyword=159]=`UnknownKeyword`,e[e.UsingKeyword=160]=`UsingKeyword`,e[e.FromKeyword=161]=`FromKeyword`,e[e.GlobalKeyword=162]=`GlobalKeyword`,e[e.BigIntKeyword=163]=`BigIntKeyword`,e[e.OverrideKeyword=164]=`OverrideKeyword`,e[e.OfKeyword=165]=`OfKeyword`,e[e.DeferKeyword=166]=`DeferKeyword`,e[e.QualifiedName=167]=`QualifiedName`,e[e.ComputedPropertyName=168]=`ComputedPropertyName`,e[e.TypeParameter=169]=`TypeParameter`,e[e.Parameter=170]=`Parameter`,e[e.Decorator=171]=`Decorator`,e[e.PropertySignature=172]=`PropertySignature`,e[e.PropertyDeclaration=173]=`PropertyDeclaration`,e[e.MethodSignature=174]=`MethodSignature`,e[e.MethodDeclaration=175]=`MethodDeclaration`,e[e.ClassStaticBlockDeclaration=176]=`ClassStaticBlockDeclaration`,e[e.Constructor=177]=`Constructor`,e[e.GetAccessor=178]=`GetAccessor`,e[e.SetAccessor=179]=`SetAccessor`,e[e.CallSignature=180]=`CallSignature`,e[e.ConstructSignature=181]=`ConstructSignature`,e[e.IndexSignature=182]=`IndexSignature`,e[e.TypePredicate=183]=`TypePredicate`,e[e.TypeReference=184]=`TypeReference`,e[e.FunctionType=185]=`FunctionType`,e[e.ConstructorType=186]=`ConstructorType`,e[e.TypeQuery=187]=`TypeQuery`,e[e.TypeLiteral=188]=`TypeLiteral`,e[e.ArrayType=189]=`ArrayType`,e[e.TupleType=190]=`TupleType`,e[e.OptionalType=191]=`OptionalType`,e[e.RestType=192]=`RestType`,e[e.UnionType=193]=`UnionType`,e[e.IntersectionType=194]=`IntersectionType`,e[e.ConditionalType=195]=`ConditionalType`,e[e.InferType=196]=`InferType`,e[e.ParenthesizedType=197]=`ParenthesizedType`,e[e.ThisType=198]=`ThisType`,e[e.TypeOperator=199]=`TypeOperator`,e[e.IndexedAccessType=200]=`IndexedAccessType`,e[e.MappedType=201]=`MappedType`,e[e.LiteralType=202]=`LiteralType`,e[e.NamedTupleMember=203]=`NamedTupleMember`,e[e.TemplateLiteralType=204]=`TemplateLiteralType`,e[e.TemplateLiteralTypeSpan=205]=`TemplateLiteralTypeSpan`,e[e.ImportType=206]=`ImportType`,e[e.ObjectBindingPattern=207]=`ObjectBindingPattern`,e[e.ArrayBindingPattern=208]=`ArrayBindingPattern`,e[e.BindingElement=209]=`BindingElement`,e[e.ArrayLiteralExpression=210]=`ArrayLiteralExpression`,e[e.ObjectLiteralExpression=211]=`ObjectLiteralExpression`,e[e.PropertyAccessExpression=212]=`PropertyAccessExpression`,e[e.ElementAccessExpression=213]=`ElementAccessExpression`,e[e.CallExpression=214]=`CallExpression`,e[e.NewExpression=215]=`NewExpression`,e[e.TaggedTemplateExpression=216]=`TaggedTemplateExpression`,e[e.TypeAssertionExpression=217]=`TypeAssertionExpression`,e[e.ParenthesizedExpression=218]=`ParenthesizedExpression`,e[e.FunctionExpression=219]=`FunctionExpression`,e[e.ArrowFunction=220]=`ArrowFunction`,e[e.DeleteExpression=221]=`DeleteExpression`,e[e.TypeOfExpression=222]=`TypeOfExpression`,e[e.VoidExpression=223]=`VoidExpression`,e[e.AwaitExpression=224]=`AwaitExpression`,e[e.PrefixUnaryExpression=225]=`PrefixUnaryExpression`,e[e.PostfixUnaryExpression=226]=`PostfixUnaryExpression`,e[e.BinaryExpression=227]=`BinaryExpression`,e[e.ConditionalExpression=228]=`ConditionalExpression`,e[e.TemplateExpression=229]=`TemplateExpression`,e[e.YieldExpression=230]=`YieldExpression`,e[e.SpreadElement=231]=`SpreadElement`,e[e.ClassExpression=232]=`ClassExpression`,e[e.OmittedExpression=233]=`OmittedExpression`,e[e.ExpressionWithTypeArguments=234]=`ExpressionWithTypeArguments`,e[e.AsExpression=235]=`AsExpression`,e[e.NonNullExpression=236]=`NonNullExpression`,e[e.MetaProperty=237]=`MetaProperty`,e[e.SyntheticExpression=238]=`SyntheticExpression`,e[e.SatisfiesExpression=239]=`SatisfiesExpression`,e[e.TemplateSpan=240]=`TemplateSpan`,e[e.SemicolonClassElement=241]=`SemicolonClassElement`,e[e.Block=242]=`Block`,e[e.EmptyStatement=243]=`EmptyStatement`,e[e.VariableStatement=244]=`VariableStatement`,e[e.ExpressionStatement=245]=`ExpressionStatement`,e[e.IfStatement=246]=`IfStatement`,e[e.DoStatement=247]=`DoStatement`,e[e.WhileStatement=248]=`WhileStatement`,e[e.ForStatement=249]=`ForStatement`,e[e.ForInStatement=250]=`ForInStatement`,e[e.ForOfStatement=251]=`ForOfStatement`,e[e.ContinueStatement=252]=`ContinueStatement`,e[e.BreakStatement=253]=`BreakStatement`,e[e.ReturnStatement=254]=`ReturnStatement`,e[e.WithStatement=255]=`WithStatement`,e[e.SwitchStatement=256]=`SwitchStatement`,e[e.LabeledStatement=257]=`LabeledStatement`,e[e.ThrowStatement=258]=`ThrowStatement`,e[e.TryStatement=259]=`TryStatement`,e[e.DebuggerStatement=260]=`DebuggerStatement`,e[e.VariableDeclaration=261]=`VariableDeclaration`,e[e.VariableDeclarationList=262]=`VariableDeclarationList`,e[e.FunctionDeclaration=263]=`FunctionDeclaration`,e[e.ClassDeclaration=264]=`ClassDeclaration`,e[e.InterfaceDeclaration=265]=`InterfaceDeclaration`,e[e.TypeAliasDeclaration=266]=`TypeAliasDeclaration`,e[e.EnumDeclaration=267]=`EnumDeclaration`,e[e.ModuleDeclaration=268]=`ModuleDeclaration`,e[e.ModuleBlock=269]=`ModuleBlock`,e[e.CaseBlock=270]=`CaseBlock`,e[e.NamespaceExportDeclaration=271]=`NamespaceExportDeclaration`,e[e.ImportEqualsDeclaration=272]=`ImportEqualsDeclaration`,e[e.ImportDeclaration=273]=`ImportDeclaration`,e[e.ImportClause=274]=`ImportClause`,e[e.NamespaceImport=275]=`NamespaceImport`,e[e.NamedImports=276]=`NamedImports`,e[e.ImportSpecifier=277]=`ImportSpecifier`,e[e.ExportAssignment=278]=`ExportAssignment`,e[e.ExportDeclaration=279]=`ExportDeclaration`,e[e.NamedExports=280]=`NamedExports`,e[e.NamespaceExport=281]=`NamespaceExport`,e[e.ExportSpecifier=282]=`ExportSpecifier`,e[e.MissingDeclaration=283]=`MissingDeclaration`,e[e.ExternalModuleReference=284]=`ExternalModuleReference`,e[e.JsxElement=285]=`JsxElement`,e[e.JsxSelfClosingElement=286]=`JsxSelfClosingElement`,e[e.JsxOpeningElement=287]=`JsxOpeningElement`,e[e.JsxClosingElement=288]=`JsxClosingElement`,e[e.JsxFragment=289]=`JsxFragment`,e[e.JsxOpeningFragment=290]=`JsxOpeningFragment`,e[e.JsxClosingFragment=291]=`JsxClosingFragment`,e[e.JsxAttribute=292]=`JsxAttribute`,e[e.JsxAttributes=293]=`JsxAttributes`,e[e.JsxSpreadAttribute=294]=`JsxSpreadAttribute`,e[e.JsxExpression=295]=`JsxExpression`,e[e.JsxNamespacedName=296]=`JsxNamespacedName`,e[e.CaseClause=297]=`CaseClause`,e[e.DefaultClause=298]=`DefaultClause`,e[e.HeritageClause=299]=`HeritageClause`,e[e.CatchClause=300]=`CatchClause`,e[e.ImportAttributes=301]=`ImportAttributes`,e[e.ImportAttribute=302]=`ImportAttribute`,e[e.AssertClause=301]=`AssertClause`,e[e.AssertEntry=302]=`AssertEntry`,e[e.ImportTypeAssertionContainer=303]=`ImportTypeAssertionContainer`,e[e.PropertyAssignment=304]=`PropertyAssignment`,e[e.ShorthandPropertyAssignment=305]=`ShorthandPropertyAssignment`,e[e.SpreadAssignment=306]=`SpreadAssignment`,e[e.EnumMember=307]=`EnumMember`,e[e.SourceFile=308]=`SourceFile`,e[e.Bundle=309]=`Bundle`,e[e.JSDocTypeExpression=310]=`JSDocTypeExpression`,e[e.JSDocNameReference=311]=`JSDocNameReference`,e[e.JSDocMemberName=312]=`JSDocMemberName`,e[e.JSDocAllType=313]=`JSDocAllType`,e[e.JSDocUnknownType=314]=`JSDocUnknownType`,e[e.JSDocNullableType=315]=`JSDocNullableType`,e[e.JSDocNonNullableType=316]=`JSDocNonNullableType`,e[e.JSDocOptionalType=317]=`JSDocOptionalType`,e[e.JSDocFunctionType=318]=`JSDocFunctionType`,e[e.JSDocVariadicType=319]=`JSDocVariadicType`,e[e.JSDocNamepathType=320]=`JSDocNamepathType`,e[e.JSDoc=321]=`JSDoc`,e[e.JSDocComment=321]=`JSDocComment`,e[e.JSDocText=322]=`JSDocText`,e[e.JSDocTypeLiteral=323]=`JSDocTypeLiteral`,e[e.JSDocSignature=324]=`JSDocSignature`,e[e.JSDocLink=325]=`JSDocLink`,e[e.JSDocLinkCode=326]=`JSDocLinkCode`,e[e.JSDocLinkPlain=327]=`JSDocLinkPlain`,e[e.JSDocTag=328]=`JSDocTag`,e[e.JSDocAugmentsTag=329]=`JSDocAugmentsTag`,e[e.JSDocImplementsTag=330]=`JSDocImplementsTag`,e[e.JSDocAuthorTag=331]=`JSDocAuthorTag`,e[e.JSDocDeprecatedTag=332]=`JSDocDeprecatedTag`,e[e.JSDocClassTag=333]=`JSDocClassTag`,e[e.JSDocPublicTag=334]=`JSDocPublicTag`,e[e.JSDocPrivateTag=335]=`JSDocPrivateTag`,e[e.JSDocProtectedTag=336]=`JSDocProtectedTag`,e[e.JSDocReadonlyTag=337]=`JSDocReadonlyTag`,e[e.JSDocOverrideTag=338]=`JSDocOverrideTag`,e[e.JSDocCallbackTag=339]=`JSDocCallbackTag`,e[e.JSDocOverloadTag=340]=`JSDocOverloadTag`,e[e.JSDocEnumTag=341]=`JSDocEnumTag`,e[e.JSDocParameterTag=342]=`JSDocParameterTag`,e[e.JSDocReturnTag=343]=`JSDocReturnTag`,e[e.JSDocThisTag=344]=`JSDocThisTag`,e[e.JSDocTypeTag=345]=`JSDocTypeTag`,e[e.JSDocTemplateTag=346]=`JSDocTemplateTag`,e[e.JSDocTypedefTag=347]=`JSDocTypedefTag`,e[e.JSDocSeeTag=348]=`JSDocSeeTag`,e[e.JSDocPropertyTag=349]=`JSDocPropertyTag`,e[e.JSDocThrowsTag=350]=`JSDocThrowsTag`,e[e.JSDocSatisfiesTag=351]=`JSDocSatisfiesTag`,e[e.JSDocImportTag=352]=`JSDocImportTag`,e[e.SyntaxList=353]=`SyntaxList`,e[e.NotEmittedStatement=354]=`NotEmittedStatement`,e[e.NotEmittedTypeElement=355]=`NotEmittedTypeElement`,e[e.PartiallyEmittedExpression=356]=`PartiallyEmittedExpression`,e[e.CommaListExpression=357]=`CommaListExpression`,e[e.SyntheticReferenceExpression=358]=`SyntheticReferenceExpression`,e[e.Count=359]=`Count`,e[e.FirstAssignment=64]=`FirstAssignment`,e[e.LastAssignment=79]=`LastAssignment`,e[e.FirstCompoundAssignment=65]=`FirstCompoundAssignment`,e[e.LastCompoundAssignment=79]=`LastCompoundAssignment`,e[e.FirstReservedWord=83]=`FirstReservedWord`,e[e.LastReservedWord=118]=`LastReservedWord`,e[e.FirstKeyword=83]=`FirstKeyword`,e[e.LastKeyword=166]=`LastKeyword`,e[e.FirstFutureReservedWord=119]=`FirstFutureReservedWord`,e[e.LastFutureReservedWord=127]=`LastFutureReservedWord`,e[e.FirstTypeNode=183]=`FirstTypeNode`,e[e.LastTypeNode=206]=`LastTypeNode`,e[e.FirstPunctuation=19]=`FirstPunctuation`,e[e.LastPunctuation=79]=`LastPunctuation`,e[e.FirstToken=0]=`FirstToken`,e[e.LastToken=166]=`LastToken`,e[e.FirstTriviaToken=2]=`FirstTriviaToken`,e[e.LastTriviaToken=7]=`LastTriviaToken`,e[e.FirstLiteralToken=9]=`FirstLiteralToken`,e[e.LastLiteralToken=15]=`LastLiteralToken`,e[e.FirstTemplateToken=15]=`FirstTemplateToken`,e[e.LastTemplateToken=18]=`LastTemplateToken`,e[e.FirstBinaryOperator=30]=`FirstBinaryOperator`,e[e.LastBinaryOperator=79]=`LastBinaryOperator`,e[e.FirstStatement=244]=`FirstStatement`,e[e.LastStatement=260]=`LastStatement`,e[e.FirstNode=167]=`FirstNode`,e[e.FirstJSDocNode=310]=`FirstJSDocNode`,e[e.LastJSDocNode=352]=`LastJSDocNode`,e[e.FirstJSDocTagNode=328]=`FirstJSDocTagNode`,e[e.LastJSDocTagNode=352]=`LastJSDocTagNode`,e[e.FirstContextualKeyword=128]=`FirstContextualKeyword`,e[e.LastContextualKeyword=166]=`LastContextualKeyword`,e))(Pr||{}),Fr=(e=>(e[e.None=0]=`None`,e[e.Let=1]=`Let`,e[e.Const=2]=`Const`,e[e.Using=4]=`Using`,e[e.AwaitUsing=6]=`AwaitUsing`,e[e.NestedNamespace=8]=`NestedNamespace`,e[e.Synthesized=16]=`Synthesized`,e[e.Namespace=32]=`Namespace`,e[e.OptionalChain=64]=`OptionalChain`,e[e.ExportContext=128]=`ExportContext`,e[e.ContainsThis=256]=`ContainsThis`,e[e.HasImplicitReturn=512]=`HasImplicitReturn`,e[e.HasExplicitReturn=1024]=`HasExplicitReturn`,e[e.GlobalAugmentation=2048]=`GlobalAugmentation`,e[e.HasAsyncFunctions=4096]=`HasAsyncFunctions`,e[e.DisallowInContext=8192]=`DisallowInContext`,e[e.YieldContext=16384]=`YieldContext`,e[e.DecoratorContext=32768]=`DecoratorContext`,e[e.AwaitContext=65536]=`AwaitContext`,e[e.DisallowConditionalTypesContext=131072]=`DisallowConditionalTypesContext`,e[e.ThisNodeHasError=262144]=`ThisNodeHasError`,e[e.JavaScriptFile=524288]=`JavaScriptFile`,e[e.ThisNodeOrAnySubNodesHasError=1048576]=`ThisNodeOrAnySubNodesHasError`,e[e.HasAggregatedChildData=2097152]=`HasAggregatedChildData`,e[e.PossiblyContainsDynamicImport=4194304]=`PossiblyContainsDynamicImport`,e[e.PossiblyContainsImportMeta=8388608]=`PossiblyContainsImportMeta`,e[e.JSDoc=16777216]=`JSDoc`,e[e.Ambient=33554432]=`Ambient`,e[e.InWithStatement=67108864]=`InWithStatement`,e[e.JsonFile=134217728]=`JsonFile`,e[e.TypeCached=268435456]=`TypeCached`,e[e.Deprecated=536870912]=`Deprecated`,e[e.BlockScoped=7]=`BlockScoped`,e[e.Constant=6]=`Constant`,e[e.ReachabilityCheckFlags=1536]=`ReachabilityCheckFlags`,e[e.ReachabilityAndEmitFlags=5632]=`ReachabilityAndEmitFlags`,e[e.ContextFlags=101441536]=`ContextFlags`,e[e.TypeExcludesFlags=81920]=`TypeExcludesFlags`,e[e.PermanentlySetIncrementalFlags=12582912]=`PermanentlySetIncrementalFlags`,e[e.IdentifierHasExtendedUnicodeEscape=256]=`IdentifierHasExtendedUnicodeEscape`,e[e.IdentifierIsInJSDocNamespace=4096]=`IdentifierIsInJSDocNamespace`,e))(Fr||{}),Ir=(e=>(e[e.None=0]=`None`,e[e.Public=1]=`Public`,e[e.Private=2]=`Private`,e[e.Protected=4]=`Protected`,e[e.Readonly=8]=`Readonly`,e[e.Override=16]=`Override`,e[e.Export=32]=`Export`,e[e.Abstract=64]=`Abstract`,e[e.Ambient=128]=`Ambient`,e[e.Static=256]=`Static`,e[e.Accessor=512]=`Accessor`,e[e.Async=1024]=`Async`,e[e.Default=2048]=`Default`,e[e.Const=4096]=`Const`,e[e.In=8192]=`In`,e[e.Out=16384]=`Out`,e[e.Decorator=32768]=`Decorator`,e[e.Deprecated=65536]=`Deprecated`,e[e.JSDocPublic=8388608]=`JSDocPublic`,e[e.JSDocPrivate=16777216]=`JSDocPrivate`,e[e.JSDocProtected=33554432]=`JSDocProtected`,e[e.JSDocReadonly=67108864]=`JSDocReadonly`,e[e.JSDocOverride=134217728]=`JSDocOverride`,e[e.SyntacticOrJSDocModifiers=31]=`SyntacticOrJSDocModifiers`,e[e.SyntacticOnlyModifiers=65504]=`SyntacticOnlyModifiers`,e[e.SyntacticModifiers=65535]=`SyntacticModifiers`,e[e.JSDocCacheOnlyModifiers=260046848]=`JSDocCacheOnlyModifiers`,e[e.JSDocOnlyModifiers=65536]=`JSDocOnlyModifiers`,e[e.NonCacheOnlyModifiers=131071]=`NonCacheOnlyModifiers`,e[e.HasComputedJSDocModifiers=268435456]=`HasComputedJSDocModifiers`,e[e.HasComputedFlags=536870912]=`HasComputedFlags`,e[e.AccessibilityModifier=7]=`AccessibilityModifier`,e[e.ParameterPropertyModifier=31]=`ParameterPropertyModifier`,e[e.NonPublicAccessibilityModifier=6]=`NonPublicAccessibilityModifier`,e[e.TypeScriptModifier=28895]=`TypeScriptModifier`,e[e.ExportDefault=2080]=`ExportDefault`,e[e.All=131071]=`All`,e[e.Modifier=98303]=`Modifier`,e))(Ir||{}),Lr=(e=>(e[e.None=0]=`None`,e[e.IntrinsicNamedElement=1]=`IntrinsicNamedElement`,e[e.IntrinsicIndexedElement=2]=`IntrinsicIndexedElement`,e[e.IntrinsicElement=3]=`IntrinsicElement`,e))(Lr||{}),Rr=(e=>(e[e.None=0]=`None`,e[e.Succeeded=1]=`Succeeded`,e[e.Failed=2]=`Failed`,e[e.ReportsUnmeasurable=8]=`ReportsUnmeasurable`,e[e.ReportsUnreliable=16]=`ReportsUnreliable`,e[e.ReportsMask=24]=`ReportsMask`,e[e.ComplexityOverflow=32]=`ComplexityOverflow`,e[e.StackDepthOverflow=64]=`StackDepthOverflow`,e[e.Overflow=96]=`Overflow`,e))(Rr||{}),zr=(e=>(e[e.None=0]=`None`,e[e.Always=1]=`Always`,e[e.Never=2]=`Never`,e[e.Sometimes=3]=`Sometimes`,e))(zr||{}),Br=(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))(Br||{}),Vr=(e=>(e[e.None=0]=`None`,e[e.HasIndices=1]=`HasIndices`,e[e.Global=2]=`Global`,e[e.IgnoreCase=4]=`IgnoreCase`,e[e.Multiline=8]=`Multiline`,e[e.DotAll=16]=`DotAll`,e[e.Unicode=32]=`Unicode`,e[e.UnicodeSets=64]=`UnicodeSets`,e[e.Sticky=128]=`Sticky`,e[e.AnyUnicodeMode=96]=`AnyUnicodeMode`,e[e.Modifiers=28]=`Modifiers`,e))(Vr||{}),Hr=(e=>(e[e.None=0]=`None`,e[e.PrecedingLineBreak=1]=`PrecedingLineBreak`,e[e.PrecedingJSDocComment=2]=`PrecedingJSDocComment`,e[e.Unterminated=4]=`Unterminated`,e[e.ExtendedUnicodeEscape=8]=`ExtendedUnicodeEscape`,e[e.Scientific=16]=`Scientific`,e[e.Octal=32]=`Octal`,e[e.HexSpecifier=64]=`HexSpecifier`,e[e.BinarySpecifier=128]=`BinarySpecifier`,e[e.OctalSpecifier=256]=`OctalSpecifier`,e[e.ContainsSeparator=512]=`ContainsSeparator`,e[e.UnicodeEscape=1024]=`UnicodeEscape`,e[e.ContainsInvalidEscape=2048]=`ContainsInvalidEscape`,e[e.HexEscape=4096]=`HexEscape`,e[e.ContainsLeadingZero=8192]=`ContainsLeadingZero`,e[e.ContainsInvalidSeparator=16384]=`ContainsInvalidSeparator`,e[e.PrecedingJSDocLeadingAsterisks=32768]=`PrecedingJSDocLeadingAsterisks`,e[e.BinaryOrOctalSpecifier=384]=`BinaryOrOctalSpecifier`,e[e.WithSpecifier=448]=`WithSpecifier`,e[e.StringLiteralFlags=7176]=`StringLiteralFlags`,e[e.NumericLiteralFlags=25584]=`NumericLiteralFlags`,e[e.TemplateLiteralLikeFlags=7176]=`TemplateLiteralLikeFlags`,e[e.IsInvalid=26656]=`IsInvalid`,e))(Hr||{}),Ur=(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))(Ur||{}),Wr=(e=>(e[e.ExpectError=0]=`ExpectError`,e[e.Ignore=1]=`Ignore`,e))(Wr||{}),Gr=class{},Kr=(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))(Kr||{}),qr=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]=`FilePreprocessingLibReferenceDiagnostic`,e[e.FilePreprocessingFileExplainingDiagnostic=1]=`FilePreprocessingFileExplainingDiagnostic`,e[e.ResolutionDiagnostics=2]=`ResolutionDiagnostics`,e))(qr||{}),Jr=(e=>(e[e.Js=0]=`Js`,e[e.Dts=1]=`Dts`,e[e.BuilderSignature=2]=`BuilderSignature`,e))(Jr||{}),Yr=(e=>(e[e.Not=0]=`Not`,e[e.SafeModules=1]=`SafeModules`,e[e.Completely=2]=`Completely`,e))(Yr||{}),Xr=(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))(Xr||{}),Zr=(e=>(e[e.Ok=0]=`Ok`,e[e.NeedsOverride=1]=`NeedsOverride`,e[e.HasInvalidOverride=2]=`HasInvalidOverride`,e))(Zr||{}),Qr=(e=>(e[e.None=0]=`None`,e[e.Literal=1]=`Literal`,e[e.Subtype=2]=`Subtype`,e))(Qr||{}),$r=(e=>(e[e.None=0]=`None`,e[e.NoSupertypeReduction=1]=`NoSupertypeReduction`,e[e.NoConstraintReduction=2]=`NoConstraintReduction`,e))($r||{}),ei=(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))(ei||{}),ti=(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.AllowNodeModulesRelativePaths=67108864]=`AllowNodeModulesRelativePaths`,e[e.IgnoreErrors=70221824]=`IgnoreErrors`,e[e.InObjectTypeLiteral=4194304]=`InObjectTypeLiteral`,e[e.InTypeAlias=8388608]=`InTypeAlias`,e[e.InInitialEntityName=16777216]=`InInitialEntityName`,e))(ti||{}),ni=(e=>(e[e.None=0]=`None`,e[e.WriteComputedProps=1]=`WriteComputedProps`,e[e.NoSyntacticPrinter=2]=`NoSyntacticPrinter`,e[e.DoNotIncludeSymbolChain=4]=`DoNotIncludeSymbolChain`,e[e.AllowUnresolvedNames=8]=`AllowUnresolvedNames`,e))(ni||{}),ri=(e=>(e[e.None=0]=`None`,e[e.NoTruncation=1]=`NoTruncation`,e[e.WriteArrayAsGenericType=2]=`WriteArrayAsGenericType`,e[e.GenerateNamesForShadowedTypeParams=4]=`GenerateNamesForShadowedTypeParams`,e[e.UseStructuralFallback=8]=`UseStructuralFallback`,e[e.WriteTypeArgumentsOfSignature=32]=`WriteTypeArgumentsOfSignature`,e[e.UseFullyQualifiedType=64]=`UseFullyQualifiedType`,e[e.SuppressAnyReturnType=256]=`SuppressAnyReturnType`,e[e.MultilineObjectLiterals=1024]=`MultilineObjectLiterals`,e[e.WriteClassExpressionAsTypeLiteral=2048]=`WriteClassExpressionAsTypeLiteral`,e[e.UseTypeOfFunction=4096]=`UseTypeOfFunction`,e[e.OmitParameterModifiers=8192]=`OmitParameterModifiers`,e[e.UseAliasDefinedOutsideCurrentScope=16384]=`UseAliasDefinedOutsideCurrentScope`,e[e.UseSingleQuotesForStringLiteralType=268435456]=`UseSingleQuotesForStringLiteralType`,e[e.NoTypeReduction=536870912]=`NoTypeReduction`,e[e.OmitThisParameter=33554432]=`OmitThisParameter`,e[e.AllowUniqueESSymbolType=1048576]=`AllowUniqueESSymbolType`,e[e.AddUndefined=131072]=`AddUndefined`,e[e.WriteArrowStyleSignature=262144]=`WriteArrowStyleSignature`,e[e.InArrayType=524288]=`InArrayType`,e[e.InElementType=2097152]=`InElementType`,e[e.InFirstTypeArgument=4194304]=`InFirstTypeArgument`,e[e.InTypeAlias=8388608]=`InTypeAlias`,e[e.NodeBuilderFlagsMask=848330095]=`NodeBuilderFlagsMask`,e))(ri||{}),ii=(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))(ii||{}),ai=(e=>(e[e.Accessible=0]=`Accessible`,e[e.NotAccessible=1]=`NotAccessible`,e[e.CannotBeNamed=2]=`CannotBeNamed`,e[e.NotResolved=3]=`NotResolved`,e))(ai||{}),oi=(e=>(e[e.This=0]=`This`,e[e.Identifier=1]=`Identifier`,e[e.AssertsThis=2]=`AssertsThis`,e[e.AssertsIdentifier=3]=`AssertsIdentifier`,e))(oi||{}),si=(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))(si||{}),ci=(e=>(e[e.None=0]=`None`,e[e.FunctionScopedVariable=1]=`FunctionScopedVariable`,e[e.BlockScopedVariable=2]=`BlockScopedVariable`,e[e.Property=4]=`Property`,e[e.EnumMember=8]=`EnumMember`,e[e.Function=16]=`Function`,e[e.Class=32]=`Class`,e[e.Interface=64]=`Interface`,e[e.ConstEnum=128]=`ConstEnum`,e[e.RegularEnum=256]=`RegularEnum`,e[e.ValueModule=512]=`ValueModule`,e[e.NamespaceModule=1024]=`NamespaceModule`,e[e.TypeLiteral=2048]=`TypeLiteral`,e[e.ObjectLiteral=4096]=`ObjectLiteral`,e[e.Method=8192]=`Method`,e[e.Constructor=16384]=`Constructor`,e[e.GetAccessor=32768]=`GetAccessor`,e[e.SetAccessor=65536]=`SetAccessor`,e[e.Signature=131072]=`Signature`,e[e.TypeParameter=262144]=`TypeParameter`,e[e.TypeAlias=524288]=`TypeAlias`,e[e.ExportValue=1048576]=`ExportValue`,e[e.Alias=2097152]=`Alias`,e[e.Prototype=4194304]=`Prototype`,e[e.ExportStar=8388608]=`ExportStar`,e[e.Optional=16777216]=`Optional`,e[e.Transient=33554432]=`Transient`,e[e.Assignment=67108864]=`Assignment`,e[e.ModuleExports=134217728]=`ModuleExports`,e[e.All=-1]=`All`,e[e.Enum=384]=`Enum`,e[e.Variable=3]=`Variable`,e[e.Value=111551]=`Value`,e[e.Type=788968]=`Type`,e[e.Namespace=1920]=`Namespace`,e[e.Module=1536]=`Module`,e[e.Accessor=98304]=`Accessor`,e[e.FunctionScopedVariableExcludes=111550]=`FunctionScopedVariableExcludes`,e[e.BlockScopedVariableExcludes=111551]=`BlockScopedVariableExcludes`,e[e.ParameterExcludes=111551]=`ParameterExcludes`,e[e.PropertyExcludes=0]=`PropertyExcludes`,e[e.EnumMemberExcludes=900095]=`EnumMemberExcludes`,e[e.FunctionExcludes=110991]=`FunctionExcludes`,e[e.ClassExcludes=899503]=`ClassExcludes`,e[e.InterfaceExcludes=788872]=`InterfaceExcludes`,e[e.RegularEnumExcludes=899327]=`RegularEnumExcludes`,e[e.ConstEnumExcludes=899967]=`ConstEnumExcludes`,e[e.ValueModuleExcludes=110735]=`ValueModuleExcludes`,e[e.NamespaceModuleExcludes=0]=`NamespaceModuleExcludes`,e[e.MethodExcludes=103359]=`MethodExcludes`,e[e.GetAccessorExcludes=46015]=`GetAccessorExcludes`,e[e.SetAccessorExcludes=78783]=`SetAccessorExcludes`,e[e.AccessorExcludes=13247]=`AccessorExcludes`,e[e.TypeParameterExcludes=526824]=`TypeParameterExcludes`,e[e.TypeAliasExcludes=788968]=`TypeAliasExcludes`,e[e.AliasExcludes=2097152]=`AliasExcludes`,e[e.ModuleMember=2623475]=`ModuleMember`,e[e.ExportHasLocal=944]=`ExportHasLocal`,e[e.BlockScoped=418]=`BlockScoped`,e[e.PropertyOrAccessor=98308]=`PropertyOrAccessor`,e[e.ClassMember=106500]=`ClassMember`,e[e.ExportSupportsDefaultModifier=112]=`ExportSupportsDefaultModifier`,e[e.ExportDoesNotSupportDefaultModifier=-113]=`ExportDoesNotSupportDefaultModifier`,e[e.Classifiable=2885600]=`Classifiable`,e[e.LateBindingContainer=6256]=`LateBindingContainer`,e))(ci||{}),li=(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))(li||{}),ui=(e=>(e.Call=`__call`,e.Constructor=`__constructor`,e.New=`__new`,e.Index=`__index`,e.ExportStar=`__export`,e.Global=`__global`,e.Missing=`__missing`,e.Type=`__type`,e.Object=`__object`,e.JSXAttributes=`__jsxAttributes`,e.Class=`__class`,e.Function=`__function`,e.Computed=`__computed`,e.Resolving=`__resolving__`,e.ExportEquals=`export=`,e.Default=`default`,e.This=`this`,e.InstantiationExpression=`__instantiationExpression`,e.ImportAttributes=`__importAttributes`,e))(ui||{}),di=(e=>(e[e.None=0]=`None`,e[e.TypeChecked=1]=`TypeChecked`,e[e.LexicalThis=2]=`LexicalThis`,e[e.CaptureThis=4]=`CaptureThis`,e[e.CaptureNewTarget=8]=`CaptureNewTarget`,e[e.SuperInstance=16]=`SuperInstance`,e[e.SuperStatic=32]=`SuperStatic`,e[e.ContextChecked=64]=`ContextChecked`,e[e.MethodWithSuperPropertyAccessInAsync=128]=`MethodWithSuperPropertyAccessInAsync`,e[e.MethodWithSuperPropertyAssignmentInAsync=256]=`MethodWithSuperPropertyAssignmentInAsync`,e[e.CaptureArguments=512]=`CaptureArguments`,e[e.EnumValuesComputed=1024]=`EnumValuesComputed`,e[e.LexicalModuleMergesWithClass=2048]=`LexicalModuleMergesWithClass`,e[e.LoopWithCapturedBlockScopedBinding=4096]=`LoopWithCapturedBlockScopedBinding`,e[e.ContainsCapturedBlockScopeBinding=8192]=`ContainsCapturedBlockScopeBinding`,e[e.CapturedBlockScopedBinding=16384]=`CapturedBlockScopedBinding`,e[e.BlockScopedBindingInLoop=32768]=`BlockScopedBindingInLoop`,e[e.NeedsLoopOutParameter=65536]=`NeedsLoopOutParameter`,e[e.AssignmentsMarked=131072]=`AssignmentsMarked`,e[e.ContainsConstructorReference=262144]=`ContainsConstructorReference`,e[e.ConstructorReference=536870912]=`ConstructorReference`,e[e.ContainsClassWithPrivateIdentifiers=1048576]=`ContainsClassWithPrivateIdentifiers`,e[e.ContainsSuperPropertyInStaticInitializer=2097152]=`ContainsSuperPropertyInStaticInitializer`,e[e.InCheckIdentifier=4194304]=`InCheckIdentifier`,e[e.PartiallyTypeChecked=8388608]=`PartiallyTypeChecked`,e[e.LazyFlags=539358128]=`LazyFlags`,e))(di||{}),fi=(e=>(e[e.Any=1]=`Any`,e[e.Unknown=2]=`Unknown`,e[e.String=4]=`String`,e[e.Number=8]=`Number`,e[e.Boolean=16]=`Boolean`,e[e.Enum=32]=`Enum`,e[e.BigInt=64]=`BigInt`,e[e.StringLiteral=128]=`StringLiteral`,e[e.NumberLiteral=256]=`NumberLiteral`,e[e.BooleanLiteral=512]=`BooleanLiteral`,e[e.EnumLiteral=1024]=`EnumLiteral`,e[e.BigIntLiteral=2048]=`BigIntLiteral`,e[e.ESSymbol=4096]=`ESSymbol`,e[e.UniqueESSymbol=8192]=`UniqueESSymbol`,e[e.Void=16384]=`Void`,e[e.Undefined=32768]=`Undefined`,e[e.Null=65536]=`Null`,e[e.Never=131072]=`Never`,e[e.TypeParameter=262144]=`TypeParameter`,e[e.Object=524288]=`Object`,e[e.Union=1048576]=`Union`,e[e.Intersection=2097152]=`Intersection`,e[e.Index=4194304]=`Index`,e[e.IndexedAccess=8388608]=`IndexedAccess`,e[e.Conditional=16777216]=`Conditional`,e[e.Substitution=33554432]=`Substitution`,e[e.NonPrimitive=67108864]=`NonPrimitive`,e[e.TemplateLiteral=134217728]=`TemplateLiteral`,e[e.StringMapping=268435456]=`StringMapping`,e[e.Reserved1=536870912]=`Reserved1`,e[e.Reserved2=1073741824]=`Reserved2`,e[e.AnyOrUnknown=3]=`AnyOrUnknown`,e[e.Nullable=98304]=`Nullable`,e[e.Literal=2944]=`Literal`,e[e.Unit=109472]=`Unit`,e[e.Freshable=2976]=`Freshable`,e[e.StringOrNumberLiteral=384]=`StringOrNumberLiteral`,e[e.StringOrNumberLiteralOrUnique=8576]=`StringOrNumberLiteralOrUnique`,e[e.DefinitelyFalsy=117632]=`DefinitelyFalsy`,e[e.PossiblyFalsy=117724]=`PossiblyFalsy`,e[e.Intrinsic=67359327]=`Intrinsic`,e[e.StringLike=402653316]=`StringLike`,e[e.NumberLike=296]=`NumberLike`,e[e.BigIntLike=2112]=`BigIntLike`,e[e.BooleanLike=528]=`BooleanLike`,e[e.EnumLike=1056]=`EnumLike`,e[e.ESSymbolLike=12288]=`ESSymbolLike`,e[e.VoidLike=49152]=`VoidLike`,e[e.Primitive=402784252]=`Primitive`,e[e.DefinitelyNonNullable=470302716]=`DefinitelyNonNullable`,e[e.DisjointDomains=469892092]=`DisjointDomains`,e[e.UnionOrIntersection=3145728]=`UnionOrIntersection`,e[e.StructuredType=3670016]=`StructuredType`,e[e.TypeVariable=8650752]=`TypeVariable`,e[e.InstantiableNonPrimitive=58982400]=`InstantiableNonPrimitive`,e[e.InstantiablePrimitive=406847488]=`InstantiablePrimitive`,e[e.Instantiable=465829888]=`Instantiable`,e[e.StructuredOrInstantiable=469499904]=`StructuredOrInstantiable`,e[e.ObjectFlagsType=3899393]=`ObjectFlagsType`,e[e.Simplifiable=25165824]=`Simplifiable`,e[e.Singleton=67358815]=`Singleton`,e[e.Narrowable=536624127]=`Narrowable`,e[e.IncludesMask=473694207]=`IncludesMask`,e[e.IncludesMissingType=262144]=`IncludesMissingType`,e[e.IncludesNonWideningType=4194304]=`IncludesNonWideningType`,e[e.IncludesWildcard=8388608]=`IncludesWildcard`,e[e.IncludesEmptyObject=16777216]=`IncludesEmptyObject`,e[e.IncludesInstantiable=33554432]=`IncludesInstantiable`,e[e.IncludesConstrainedTypeVariable=536870912]=`IncludesConstrainedTypeVariable`,e[e.IncludesError=1073741824]=`IncludesError`,e[e.NotPrimitiveUnion=36323331]=`NotPrimitiveUnion`,e))(fi||{}),pi=(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.SingleSignatureType=134217728]=`SingleSignatureType`,e[e.ClassOrInterface=3]=`ClassOrInterface`,e[e.RequiresWidening=196608]=`RequiresWidening`,e[e.PropagatingFlags=458752]=`PropagatingFlags`,e[e.InstantiatedMapped=96]=`InstantiatedMapped`,e[e.ObjectTypeKindMask=1343]=`ObjectTypeKindMask`,e[e.ContainsSpread=2097152]=`ContainsSpread`,e[e.ObjectRestType=4194304]=`ObjectRestType`,e[e.InstantiationExpressionType=8388608]=`InstantiationExpressionType`,e[e.IsClassInstanceClone=16777216]=`IsClassInstanceClone`,e[e.IdenticalBaseTypeCalculated=33554432]=`IdenticalBaseTypeCalculated`,e[e.IdenticalBaseTypeExists=67108864]=`IdenticalBaseTypeExists`,e[e.IsGenericTypeComputed=2097152]=`IsGenericTypeComputed`,e[e.IsGenericObjectType=4194304]=`IsGenericObjectType`,e[e.IsGenericIndexType=8388608]=`IsGenericIndexType`,e[e.IsGenericType=12582912]=`IsGenericType`,e[e.ContainsIntersections=16777216]=`ContainsIntersections`,e[e.IsUnknownLikeUnionComputed=33554432]=`IsUnknownLikeUnionComputed`,e[e.IsUnknownLikeUnion=67108864]=`IsUnknownLikeUnion`,e[e.IsNeverIntersectionComputed=16777216]=`IsNeverIntersectionComputed`,e[e.IsNeverIntersection=33554432]=`IsNeverIntersection`,e[e.IsConstrainedTypeVariable=67108864]=`IsConstrainedTypeVariable`,e))(pi||{}),mi=(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))(mi||{}),hi=(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))(hi||{}),gi=(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.AllowMissing=16]=`AllowMissing`,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))(gi||{}),_i=(e=>(e[e.None=0]=`None`,e[e.StringsOnly=1]=`StringsOnly`,e[e.NoIndexSignatures=2]=`NoIndexSignatures`,e[e.NoReducibleCheck=4]=`NoReducibleCheck`,e))(_i||{}),vi=(e=>(e[e.Component=0]=`Component`,e[e.Function=1]=`Function`,e[e.Mixed=2]=`Mixed`,e))(vi||{}),yi=(e=>(e[e.Call=0]=`Call`,e[e.Construct=1]=`Construct`,e))(yi||{}),bi=(e=>(e[e.None=0]=`None`,e[e.HasRestParameter=1]=`HasRestParameter`,e[e.HasLiteralTypes=2]=`HasLiteralTypes`,e[e.Abstract=4]=`Abstract`,e[e.IsInnerCallChain=8]=`IsInnerCallChain`,e[e.IsOuterCallChain=16]=`IsOuterCallChain`,e[e.IsUntypedSignatureInJSFile=32]=`IsUntypedSignatureInJSFile`,e[e.IsNonInferrable=64]=`IsNonInferrable`,e[e.IsSignatureCandidateForOverloadFailure=128]=`IsSignatureCandidateForOverloadFailure`,e[e.PropagatingFlags=167]=`PropagatingFlags`,e[e.CallChainFlags=24]=`CallChainFlags`,e))(bi||{}),xi=(e=>(e[e.String=0]=`String`,e[e.Number=1]=`Number`,e))(xi||{}),Si=(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))(Si||{}),Ci=(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))(Ci||{}),wi=(e=>(e[e.None=0]=`None`,e[e.NoDefault=1]=`NoDefault`,e[e.AnyDefault=2]=`AnyDefault`,e[e.SkippedGenericFunction=4]=`SkippedGenericFunction`,e))(wi||{}),Ti=(e=>(e[e.False=0]=`False`,e[e.Unknown=1]=`Unknown`,e[e.Maybe=3]=`Maybe`,e[e.True=-1]=`True`,e))(Ti||{}),Ei=(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))(Ei||{}),Di=(e=>(e[e.Warning=0]=`Warning`,e[e.Error=1]=`Error`,e[e.Suggestion=2]=`Suggestion`,e[e.Message=3]=`Message`,e))(Di||{});function Oi(e,t=!0){let n=Di[e.category];return t?n.toLowerCase():n}var ki=(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))(ki||{}),Ai=(e=>(e[e.Legacy=1]=`Legacy`,e[e.Auto=2]=`Auto`,e[e.Force=3]=`Force`,e))(Ai||{}),ji=(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))(ji||{}),Mi=(e=>(e[e.UseFsEvents=0]=`UseFsEvents`,e[e.FixedPollingInterval=1]=`FixedPollingInterval`,e[e.DynamicPriorityPolling=2]=`DynamicPriorityPolling`,e[e.FixedChunkSizePolling=3]=`FixedChunkSizePolling`,e))(Mi||{}),Ni=(e=>(e[e.FixedInterval=0]=`FixedInterval`,e[e.PriorityInterval=1]=`PriorityInterval`,e[e.DynamicPriority=2]=`DynamicPriority`,e[e.FixedChunkSize=3]=`FixedChunkSize`,e))(Ni||{}),Pi=(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.Node18=101]=`Node18`,e[e.Node20=102]=`Node20`,e[e.NodeNext=199]=`NodeNext`,e[e.Preserve=200]=`Preserve`,e))(Pi||{}),Fi=(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))(Fi||{}),Ii=(e=>(e[e.Remove=0]=`Remove`,e[e.Preserve=1]=`Preserve`,e[e.Error=2]=`Error`,e))(Ii||{}),Li=(e=>(e[e.CarriageReturnLineFeed=0]=`CarriageReturnLineFeed`,e[e.LineFeed=1]=`LineFeed`,e))(Li||{}),Ri=(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))(Ri||{}),zi=(e=>(e[e.ES3=0]=`ES3`,e[e.ES5=1]=`ES5`,e[e.ES2015=2]=`ES2015`,e[e.ES2016=3]=`ES2016`,e[e.ES2017=4]=`ES2017`,e[e.ES2018=5]=`ES2018`,e[e.ES2019=6]=`ES2019`,e[e.ES2020=7]=`ES2020`,e[e.ES2021=8]=`ES2021`,e[e.ES2022=9]=`ES2022`,e[e.ES2023=10]=`ES2023`,e[e.ES2024=11]=`ES2024`,e[e.ESNext=99]=`ESNext`,e[e.JSON=100]=`JSON`,e[e.Latest=99]=`Latest`,e))(zi||{}),Bi=(e=>(e[e.Standard=0]=`Standard`,e[e.JSX=1]=`JSX`,e))(Bi||{}),Vi=(e=>(e[e.None=0]=`None`,e[e.Recursive=1]=`Recursive`,e))(Vi||{}),Hi=(e=>(e[e.EOF=-1]=`EOF`,e[e.nullCharacter=0]=`nullCharacter`,e[e.maxAsciiCharacter=127]=`maxAsciiCharacter`,e[e.lineFeed=10]=`lineFeed`,e[e.carriageReturn=13]=`carriageReturn`,e[e.lineSeparator=8232]=`lineSeparator`,e[e.paragraphSeparator=8233]=`paragraphSeparator`,e[e.nextLine=133]=`nextLine`,e[e.space=32]=`space`,e[e.nonBreakingSpace=160]=`nonBreakingSpace`,e[e.enQuad=8192]=`enQuad`,e[e.emQuad=8193]=`emQuad`,e[e.enSpace=8194]=`enSpace`,e[e.emSpace=8195]=`emSpace`,e[e.threePerEmSpace=8196]=`threePerEmSpace`,e[e.fourPerEmSpace=8197]=`fourPerEmSpace`,e[e.sixPerEmSpace=8198]=`sixPerEmSpace`,e[e.figureSpace=8199]=`figureSpace`,e[e.punctuationSpace=8200]=`punctuationSpace`,e[e.thinSpace=8201]=`thinSpace`,e[e.hairSpace=8202]=`hairSpace`,e[e.zeroWidthSpace=8203]=`zeroWidthSpace`,e[e.narrowNoBreakSpace=8239]=`narrowNoBreakSpace`,e[e.ideographicSpace=12288]=`ideographicSpace`,e[e.mathematicalSpace=8287]=`mathematicalSpace`,e[e.ogham=5760]=`ogham`,e[e.replacementCharacter=65533]=`replacementCharacter`,e[e._=95]=`_`,e[e.$=36]=`$`,e[e._0=48]=`_0`,e[e._1=49]=`_1`,e[e._2=50]=`_2`,e[e._3=51]=`_3`,e[e._4=52]=`_4`,e[e._5=53]=`_5`,e[e._6=54]=`_6`,e[e._7=55]=`_7`,e[e._8=56]=`_8`,e[e._9=57]=`_9`,e[e.a=97]=`a`,e[e.b=98]=`b`,e[e.c=99]=`c`,e[e.d=100]=`d`,e[e.e=101]=`e`,e[e.f=102]=`f`,e[e.g=103]=`g`,e[e.h=104]=`h`,e[e.i=105]=`i`,e[e.j=106]=`j`,e[e.k=107]=`k`,e[e.l=108]=`l`,e[e.m=109]=`m`,e[e.n=110]=`n`,e[e.o=111]=`o`,e[e.p=112]=`p`,e[e.q=113]=`q`,e[e.r=114]=`r`,e[e.s=115]=`s`,e[e.t=116]=`t`,e[e.u=117]=`u`,e[e.v=118]=`v`,e[e.w=119]=`w`,e[e.x=120]=`x`,e[e.y=121]=`y`,e[e.z=122]=`z`,e[e.A=65]=`A`,e[e.B=66]=`B`,e[e.C=67]=`C`,e[e.D=68]=`D`,e[e.E=69]=`E`,e[e.F=70]=`F`,e[e.G=71]=`G`,e[e.H=72]=`H`,e[e.I=73]=`I`,e[e.J=74]=`J`,e[e.K=75]=`K`,e[e.L=76]=`L`,e[e.M=77]=`M`,e[e.N=78]=`N`,e[e.O=79]=`O`,e[e.P=80]=`P`,e[e.Q=81]=`Q`,e[e.R=82]=`R`,e[e.S=83]=`S`,e[e.T=84]=`T`,e[e.U=85]=`U`,e[e.V=86]=`V`,e[e.W=87]=`W`,e[e.X=88]=`X`,e[e.Y=89]=`Y`,e[e.Z=90]=`Z`,e[e.ampersand=38]=`ampersand`,e[e.asterisk=42]=`asterisk`,e[e.at=64]=`at`,e[e.backslash=92]=`backslash`,e[e.backtick=96]=`backtick`,e[e.bar=124]=`bar`,e[e.caret=94]=`caret`,e[e.closeBrace=125]=`closeBrace`,e[e.closeBracket=93]=`closeBracket`,e[e.closeParen=41]=`closeParen`,e[e.colon=58]=`colon`,e[e.comma=44]=`comma`,e[e.dot=46]=`dot`,e[e.doubleQuote=34]=`doubleQuote`,e[e.equals=61]=`equals`,e[e.exclamation=33]=`exclamation`,e[e.greaterThan=62]=`greaterThan`,e[e.hash=35]=`hash`,e[e.lessThan=60]=`lessThan`,e[e.minus=45]=`minus`,e[e.openBrace=123]=`openBrace`,e[e.openBracket=91]=`openBracket`,e[e.openParen=40]=`openParen`,e[e.percent=37]=`percent`,e[e.plus=43]=`plus`,e[e.question=63]=`question`,e[e.semicolon=59]=`semicolon`,e[e.singleQuote=39]=`singleQuote`,e[e.slash=47]=`slash`,e[e.tilde=126]=`tilde`,e[e.backspace=8]=`backspace`,e[e.formFeed=12]=`formFeed`,e[e.byteOrderMark=65279]=`byteOrderMark`,e[e.tab=9]=`tab`,e[e.verticalTab=11]=`verticalTab`,e))(Hi||{}),Ui=(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))(Ui||{}),Wi=(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))(Wi||{}),Gi=(e=>(e[e.TabStop=0]=`TabStop`,e[e.Placeholder=1]=`Placeholder`,e[e.Choice=2]=`Choice`,e[e.Variable=3]=`Variable`,e))(Gi||{}),Ki=(e=>(e[e.None=0]=`None`,e[e.SingleLine=1]=`SingleLine`,e[e.MultiLine=2]=`MultiLine`,e[e.AdviseOnEmitNode=4]=`AdviseOnEmitNode`,e[e.NoSubstitution=8]=`NoSubstitution`,e[e.CapturesThis=16]=`CapturesThis`,e[e.NoLeadingSourceMap=32]=`NoLeadingSourceMap`,e[e.NoTrailingSourceMap=64]=`NoTrailingSourceMap`,e[e.NoSourceMap=96]=`NoSourceMap`,e[e.NoNestedSourceMaps=128]=`NoNestedSourceMaps`,e[e.NoTokenLeadingSourceMaps=256]=`NoTokenLeadingSourceMaps`,e[e.NoTokenTrailingSourceMaps=512]=`NoTokenTrailingSourceMaps`,e[e.NoTokenSourceMaps=768]=`NoTokenSourceMaps`,e[e.NoLeadingComments=1024]=`NoLeadingComments`,e[e.NoTrailingComments=2048]=`NoTrailingComments`,e[e.NoComments=3072]=`NoComments`,e[e.NoNestedComments=4096]=`NoNestedComments`,e[e.HelperName=8192]=`HelperName`,e[e.ExportName=16384]=`ExportName`,e[e.LocalName=32768]=`LocalName`,e[e.InternalName=65536]=`InternalName`,e[e.Indented=131072]=`Indented`,e[e.NoIndentation=262144]=`NoIndentation`,e[e.AsyncFunctionBody=524288]=`AsyncFunctionBody`,e[e.ReuseTempVariableScope=1048576]=`ReuseTempVariableScope`,e[e.CustomPrologue=2097152]=`CustomPrologue`,e[e.NoHoisting=4194304]=`NoHoisting`,e[e.Iterator=8388608]=`Iterator`,e[e.NoAsciiEscaping=16777216]=`NoAsciiEscaping`,e))(Ki||{}),qi=(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))(qi||{}),Ji={Classes:2,ForOf:2,Generators:2,Iteration:2,SpreadElements:2,RestElements:2,TaggedTemplates:2,DestructuringAssignment:2,BindingPatterns:2,ArrowFunctions:2,BlockScopedVariables:2,ObjectAssign:2,RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,Exponentiation:3,AsyncFunctions:4,ForAwaitOf:5,AsyncGenerators:5,AsyncIteration:5,ObjectSpreadRest:5,RegularExpressionFlagsDotAll:5,BindinglessCatch:6,BigInt:7,NullishCoalesce:7,OptionalChaining:7,LogicalAssignment:8,TopLevelAwait:9,ClassFields:9,PrivateNamesAndClassStaticBlocks:9,RegularExpressionFlagsHasIndices:9,ShebangComments:10,RegularExpressionFlagsUnicodeSets:11,UsingAndAwaitUsing:99,ClassAndClassElementDecorators:99},Yi=(e=>(e[e.Extends=1]=`Extends`,e[e.Assign=2]=`Assign`,e[e.Rest=4]=`Rest`,e[e.Decorate=8]=`Decorate`,e[e.ESDecorateAndRunInitializers=8]=`ESDecorateAndRunInitializers`,e[e.Metadata=16]=`Metadata`,e[e.Param=32]=`Param`,e[e.Awaiter=64]=`Awaiter`,e[e.Generator=128]=`Generator`,e[e.Values=256]=`Values`,e[e.Read=512]=`Read`,e[e.SpreadArray=1024]=`SpreadArray`,e[e.Await=2048]=`Await`,e[e.AsyncGenerator=4096]=`AsyncGenerator`,e[e.AsyncDelegator=8192]=`AsyncDelegator`,e[e.AsyncValues=16384]=`AsyncValues`,e[e.ExportStar=32768]=`ExportStar`,e[e.ImportStar=65536]=`ImportStar`,e[e.ImportDefault=131072]=`ImportDefault`,e[e.MakeTemplateObject=262144]=`MakeTemplateObject`,e[e.ClassPrivateFieldGet=524288]=`ClassPrivateFieldGet`,e[e.ClassPrivateFieldSet=1048576]=`ClassPrivateFieldSet`,e[e.ClassPrivateFieldIn=2097152]=`ClassPrivateFieldIn`,e[e.SetFunctionName=4194304]=`SetFunctionName`,e[e.PropKey=8388608]=`PropKey`,e[e.AddDisposableResourceAndDisposeResources=16777216]=`AddDisposableResourceAndDisposeResources`,e[e.RewriteRelativeImportExtension=33554432]=`RewriteRelativeImportExtension`,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))(Yi||{}),Xi=(e=>(e[e.SourceFile=0]=`SourceFile`,e[e.Expression=1]=`Expression`,e[e.IdentifierName=2]=`IdentifierName`,e[e.MappedTypeParameter=3]=`MappedTypeParameter`,e[e.Unspecified=4]=`Unspecified`,e[e.EmbeddedStatement=5]=`EmbeddedStatement`,e[e.JsxAttributeValue=6]=`JsxAttributeValue`,e[e.ImportTypeNodeAttributes=7]=`ImportTypeNodeAttributes`,e))(Xi||{}),Zi=(e=>(e[e.Parentheses=1]=`Parentheses`,e[e.TypeAssertions=2]=`TypeAssertions`,e[e.NonNullAssertions=4]=`NonNullAssertions`,e[e.PartiallyEmittedExpressions=8]=`PartiallyEmittedExpressions`,e[e.ExpressionsWithTypeArguments=16]=`ExpressionsWithTypeArguments`,e[e.Satisfies=32]=`Satisfies`,e[e.Assertions=38]=`Assertions`,e[e.All=63]=`All`,e[e.ExcludeJSDocTypeAssertion=-2147483648]=`ExcludeJSDocTypeAssertion`,e))(Zi||{}),Qi=(e=>(e[e.None=0]=`None`,e[e.InParameters=1]=`InParameters`,e[e.VariablesHoistedInParameters=2]=`VariablesHoistedInParameters`,e))(Qi||{}),$i=(e=>(e[e.None=0]=`None`,e[e.SingleLine=0]=`SingleLine`,e[e.MultiLine=1]=`MultiLine`,e[e.PreserveLines=2]=`PreserveLines`,e[e.LinesMask=3]=`LinesMask`,e[e.NotDelimited=0]=`NotDelimited`,e[e.BarDelimited=4]=`BarDelimited`,e[e.AmpersandDelimited=8]=`AmpersandDelimited`,e[e.CommaDelimited=16]=`CommaDelimited`,e[e.AsteriskDelimited=32]=`AsteriskDelimited`,e[e.DelimitersMask=60]=`DelimitersMask`,e[e.AllowTrailingComma=64]=`AllowTrailingComma`,e[e.Indented=128]=`Indented`,e[e.SpaceBetweenBraces=256]=`SpaceBetweenBraces`,e[e.SpaceBetweenSiblings=512]=`SpaceBetweenSiblings`,e[e.Braces=1024]=`Braces`,e[e.Parenthesis=2048]=`Parenthesis`,e[e.AngleBrackets=4096]=`AngleBrackets`,e[e.SquareBrackets=8192]=`SquareBrackets`,e[e.BracketsMask=15360]=`BracketsMask`,e[e.OptionalIfUndefined=16384]=`OptionalIfUndefined`,e[e.OptionalIfEmpty=32768]=`OptionalIfEmpty`,e[e.Optional=49152]=`Optional`,e[e.PreferNewLine=65536]=`PreferNewLine`,e[e.NoTrailingNewLine=131072]=`NoTrailingNewLine`,e[e.NoInterveningComments=262144]=`NoInterveningComments`,e[e.NoSpaceIfEmpty=524288]=`NoSpaceIfEmpty`,e[e.SingleElement=1048576]=`SingleElement`,e[e.SpaceAfterList=2097152]=`SpaceAfterList`,e[e.Modifiers=2359808]=`Modifiers`,e[e.HeritageClauses=512]=`HeritageClauses`,e[e.SingleLineTypeLiteralMembers=768]=`SingleLineTypeLiteralMembers`,e[e.MultiLineTypeLiteralMembers=32897]=`MultiLineTypeLiteralMembers`,e[e.SingleLineTupleTypeElements=528]=`SingleLineTupleTypeElements`,e[e.MultiLineTupleTypeElements=657]=`MultiLineTupleTypeElements`,e[e.UnionTypeConstituents=516]=`UnionTypeConstituents`,e[e.IntersectionTypeConstituents=520]=`IntersectionTypeConstituents`,e[e.ObjectBindingPatternElements=525136]=`ObjectBindingPatternElements`,e[e.ArrayBindingPatternElements=524880]=`ArrayBindingPatternElements`,e[e.ObjectLiteralExpressionProperties=526226]=`ObjectLiteralExpressionProperties`,e[e.ImportAttributes=526226]=`ImportAttributes`,e[e.ImportClauseEntries=526226]=`ImportClauseEntries`,e[e.ArrayLiteralExpressionElements=8914]=`ArrayLiteralExpressionElements`,e[e.CommaListElements=528]=`CommaListElements`,e[e.CallExpressionArguments=2576]=`CallExpressionArguments`,e[e.NewExpressionArguments=18960]=`NewExpressionArguments`,e[e.TemplateExpressionSpans=262144]=`TemplateExpressionSpans`,e[e.SingleLineBlockStatements=768]=`SingleLineBlockStatements`,e[e.MultiLineBlockStatements=129]=`MultiLineBlockStatements`,e[e.VariableDeclarationList=528]=`VariableDeclarationList`,e[e.SingleLineFunctionBodyStatements=768]=`SingleLineFunctionBodyStatements`,e[e.MultiLineFunctionBodyStatements=1]=`MultiLineFunctionBodyStatements`,e[e.ClassHeritageClauses=0]=`ClassHeritageClauses`,e[e.ClassMembers=129]=`ClassMembers`,e[e.InterfaceMembers=129]=`InterfaceMembers`,e[e.EnumMembers=145]=`EnumMembers`,e[e.CaseBlockClauses=129]=`CaseBlockClauses`,e[e.NamedImportsOrExportsElements=525136]=`NamedImportsOrExportsElements`,e[e.JsxElementOrFragmentChildren=262144]=`JsxElementOrFragmentChildren`,e[e.JsxElementAttributes=262656]=`JsxElementAttributes`,e[e.CaseOrDefaultClauseStatements=163969]=`CaseOrDefaultClauseStatements`,e[e.HeritageClauseTypes=528]=`HeritageClauseTypes`,e[e.SourceFileStatements=131073]=`SourceFileStatements`,e[e.Decorators=2146305]=`Decorators`,e[e.TypeArguments=53776]=`TypeArguments`,e[e.TypeParameters=53776]=`TypeParameters`,e[e.Parameters=2576]=`Parameters`,e[e.IndexSignatureParameters=8848]=`IndexSignatureParameters`,e[e.JSDocComment=33]=`JSDocComment`,e))($i||{}),ea=(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))(ea||{}),ta={reference:{args:[{name:`types`,optional:!0,captureSpan:!0},{name:`lib`,optional:!0,captureSpan:!0},{name:`path`,optional:!0,captureSpan:!0},{name:`no-default-lib`,optional:!0},{name:`resolution-mode`,optional:!0},{name:`preserve`,optional:!0}],kind:1},"amd-dependency":{args:[{name:`path`},{name:`name`,optional:!0}],kind:1},"amd-module":{args:[{name:`name`}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:`factory`}],kind:4},jsxfrag:{args:[{name:`factory`}],kind:4},jsximportsource:{args:[{name:`factory`}],kind:4},jsxruntime:{args:[{name:`factory`}],kind:4}},na=(e=>(e[e.ParseAll=0]=`ParseAll`,e[e.ParseNone=1]=`ParseNone`,e[e.ParseForTypeErrors=2]=`ParseForTypeErrors`,e[e.ParseForTypeInfo=3]=`ParseForTypeInfo`,e))(na||{});function ra(e){let t=5381;for(let n=0;n(e[e.Created=0]=`Created`,e[e.Changed=1]=`Changed`,e[e.Deleted=2]=`Deleted`,e))(aa||{}),oa=(e=>(e[e.High=2e3]=`High`,e[e.Medium=500]=`Medium`,e[e.Low=250]=`Low`,e))(oa||{}),sa=new Date(0);function ca(e,t){return e.getModifiedTime(t)||sa}function la(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var ua={Low:32,Medium:64,High:256},da=la(ua),fa=la(ua);function pa(e){if(!e.getEnvironmentVariable)return;let t=i(`TSC_WATCH_POLLINGINTERVAL`,oa);da=a(`TSC_WATCH_POLLINGCHUNKSIZE`,ua)||da,fa=a(`TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS`,ua)||fa;function n(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}function r(e){let t;return r(`Low`),r(`Medium`),r(`High`),t;function r(r){let i=n(e,r);i&&((t||={})[r]=Number(i))}}function i(e,t){let n=r(e);if(n)return i(`Low`),i(`Medium`),i(`High`),!0;return!1;function i(e){t[e]=n[e]||t[e]}}function a(e,n){let i=r(e);return(t||i)&&la(i?{...n,...i}:n)}}function ma(e,t,n,r,i){let a=n;for(let s=t.length;r&&s;o(),s--){let o=t[n];if(!o)continue;if(o.isClosed){t[n]=void 0;continue}r--;let s=ya(o,ca(e,o.fileName));if(o.isClosed){t[n]=void 0;continue}i?.(o,n,s),t[n]&&(a{a.isClosed=!0,sn(t,a)}}}function s(e){let t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function c(e,t){t.pollIndex=u(t,t.pollingInterval,t.pollIndex,da[t.pollingInterval]),t.length?h(t.pollingInterval):(H.assert(t.pollIndex===0),t.pollScheduled=!1)}function l(e,t){u(n,250,0,n.length),c(e,t),!t.pollScheduled&&n.length&&h(250)}function u(t,r,i,a){return ma(e,t,i,a,o);function o(e,i,a){a?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,p(e))):e.unchangedPolls===fa[r]?t===n?(e.unchangedPolls=1,t[i]=void 0,f(e,250)):r!==2e3&&(e.unchangedPolls++,t[i]=void 0,f(e,r===250?500:2e3)):e.unchangedPolls++}}function d(e){switch(e){case 250:return r;case 500:return i;case 2e3:return a}}function f(e,t){d(t).push(e),m(t)}function p(e){n.push(e),m(250)}function m(e){d(e).pollScheduled||h(e)}function h(t){d(t).pollScheduled=e.setTimeout(t===250?l:c,t,t===250?`pollLowPollingIntervalQueue`:`pollPollingIntervalQueue`,d(t))}}function ga(e,t,n,r){let i=R(),a=r?new Map:void 0,o=new Map,s=ln(t);return c;function c(e,t,r,c){let u=s(e);i.add(u,t).length===1&&a&&a.set(u,n(e)||sa);let d=$a(u)||`.`,f=o.get(d)||l($a(e)||`.`,d,c);return f.referenceCount++,{close:()=>{f.referenceCount===1?(f.close(),o.delete(d)):f.referenceCount--,i.remove(u,t)}}}function l(t,r,c){let l=e(t,1,(e,r)=>{if(!gt(r))return;let o=po(r,t),c=s(o),l=o&&i.get(c);if(l){let t,r=1;if(a){let i=a.get(c);if(e===`change`&&(t=n(o)||sa,t.getTime()===i.getTime()))return;t||=n(o)||sa,a.set(c,t),i===sa?r=0:t===sa&&(r=2)}for(let e of l)e(o,r,t)}},!1,500,c);return l.referenceCount=0,o.set(r,l),l}}function _a(e){let t=[],n=0,r;return i;function i(n,r){let i={fileName:n,callback:r,mtime:ca(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,sn(t,i)}}}function a(){r=void 0,n=ma(e,t,n,da[250]),o()}function o(){!t.length||r||(r=e.setTimeout(a,2e3,`pollQueue`))}}function va(e,t,n,r,i){let a=ln(t)(n),o=e.get(a);return o?o.callbacks.push(r):e.set(a,{watcher:i((t,n,r)=>e.get(a)?.callbacks.slice().forEach(e=>e(t,n,r))),callbacks:[r]}),{close:()=>{let t=e.get(a);t&&(!rn(t.callbacks,r)||t.callbacks.length||(e.delete(a),rW(t)))}}}function ya(e,t){let n=e.mtime.getTime(),r=t.getTime();return n===r?!1:(e.mtime=t,e.callback(e.fileName,ba(n,r),t),!0)}function ba(e,t){return e===0?0:t===0?2:1}var xa=[`/node_modules/.`,`/.git`,`/.#`],Sa=bt;function Ca(e){return Sa(e)}function wa(e){Sa=e}function Ta({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:r,fileSystemEntryExists:i,realpath:a,setTimeout:o,clearTimeout:s}){let l=new Map,u=R(),d=new Map,f,p=Ut(!t),m=ln(t);return(t,n,r,i)=>r?h(t,i,n):e(t,n,r,i);function h(t,n,r,i){let a=m(t),o=l.get(a);o?o.refCount++:(o={watcher:e(t,e=>{C(e,n)||(n?.synchronousWatchDirectory?(l.get(a)?.targetWatcher||g(t,a,e),S(t,a,n)):_(t,a,e,n))},!1,n),refCount:1,childWatches:c,targetWatcher:void 0,links:void 0},l.set(a,o),S(t,a,n)),i&&(o.links??=new Set).add(i);let s=r&&{dirName:t,callback:r};return s&&u.add(a,s),{dirName:t,close:()=>{var e;let t=H.checkDefined(l.get(a));s&&u.remove(a,s),i&&((e=t.links)==null||e.delete(i)),t.refCount--,!t.refCount&&(l.delete(a),t.links=void 0,rW(t),x(t),t.childWatches.forEach(Ax))}}}function g(e,t,n,r){var i;let a,o;gt(n)?a=n:o=n,u.forEach((e,n)=>{if(!(o&&o.get(n)===!0)&&(n===t||pn(t,n)&&t[n.length]===Fa))if(o)if(r){let e=o.get(n);e?e.push(...r):o.set(n,r.slice())}else o.set(n,!0);else e.forEach(({callback:e})=>e(a))}),(i=l.get(t)?.links)==null||i.forEach(t=>{let n=n=>lo(t,No(e,n,m));o?g(t,m(t),o,r?.map(n)):g(t,m(t),n(a))})}function _(e,t,n,r){let a=l.get(t);if(a&&i(e,1)){v(e,t,n,r);return}g(e,t,n),x(a),b(a)}function v(e,t,n,r){let i=d.get(t);i?i.fileNames.push(n):d.set(t,{dirName:e,options:r,fileNames:[n]}),f&&=(s(f),void 0),f=o(y,1e3,`timerToUpdateChildWatches`)}function y(){f=void 0,Ca(`sysLog:: onTimerToUpdateChildWatches:: ${d.size}`);let e=sr(),t=new Map;for(;!f&&d.size;){let e=d.entries().next();H.assert(!e.done);let{value:[n,{dirName:r,options:i,fileNames:a}]}=e;d.delete(n);let o=S(r,n,i);l.get(n)?.targetWatcher||g(r,n,t,o?void 0:a)}Ca(`sysLog:: invokingWatchers:: Elapsed:: ${sr()-e}ms:: ${d.size}`),u.forEach((e,n)=>{let r=t.get(n);r&&e.forEach(({callback:e,dirName:t})=>{mt(r)?r.forEach(e):e(t)})}),Ca(`sysLog:: Elapsed:: ${sr()-e}ms:: onTimerToUpdateChildWatches:: ${d.size} ${f}`)}function b(e){if(!e)return;let t=e.childWatches;e.childWatches=c;for(let e of t)e.close(),b(l.get(m(e.dirName)))}function x(e){e?.targetWatcher&&(e.targetWatcher.close(),e.targetWatcher=void 0)}function S(e,t,n){let o=l.get(t);if(!o)return!1;let s=mo(a(e)),u,d;return p(s,e)===0?u=V(i(e,1)?M(r(e),t=>{let r=po(t,e);return!C(r,n)&&p(r,mo(a(r)))===0?r:void 0}):c,o.childWatches,(e,t)=>p(e,t.dirName),f,Ax,m):o.targetWatcher&&p(s,o.targetWatcher.dirName)===0?(u=!1,H.assert(o.childWatches===c)):(x(o),o.targetWatcher=h(s,n,void 0,e),o.childWatches.forEach(Ax),u=!0),o.childWatches=d||c,u;function f(e){m(h(e,n))}function m(e){(d||=[]).push(e)}}function C(e,r){return F(xa,t=>w(e,t))||ka(e,r,t,n)}function w(e,n){return e.includes(n)?!0:t?!1:m(e).includes(n)}}var Ea=(e=>(e[e.File=0]=`File`,e[e.Directory=1]=`Directory`,e))(Ea||{});function Da(e){return(t,n,r)=>e(n===1?`change`:`rename`,``,r)}function Oa(e,t,n){return(r,i,a)=>{r===`rename`?(a||=n(e)||sa,t(e,a===sa?2:0,a)):t(e,1,a)}}function ka(e,t,n,r){return(t?.excludeDirectories||t?.excludeFiles)&&(rL(e,t?.excludeFiles,n,r())||rL(e,t?.excludeDirectories,n,r()))}function Aa(e,t,n,r,i){return(a,o)=>{if(a===`rename`){let a=o?mo(lo(e,o)):e;(!o||!ka(a,n,r,i))&&t(a)}}}function ja({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:a,useCaseSensitiveFileNames:o,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:u,tscWatchFile:d,useNonPollingWatchers:f,tscWatchDirectory:p,inodeWatching:m,fsWatchWithTimestamp:h,sysLog:g}){let _=new Map,v=new Map,y=new Map,b,x,S,C,w=!1;return{watchFile:T,watchDirectory:ee};function T(e,n,r,i){i=O(i,f);let a=H.checkDefined(i.watchFile);switch(a){case 0:return re(e,n,250,void 0);case 1:return re(e,n,r,void 0);case 2:return E()(e,n,r,void 0);case 3:return D()(e,n,void 0,void 0);case 4:return ie(e,0,Oa(e,n,t),!1,r,nW(i));case 5:return S||=ga(ie,o,t,h),S(e,n,r,nW(i));default:H.assertNever(a)}}function E(){return b||=ha({getModifiedTime:t,setTimeout:n})}function D(){return x||=_a({getModifiedTime:t,setTimeout:n})}function O(e,t){if(e&&e.watchFile!==void 0)return e;switch(d){case`PriorityPollingInterval`:return{watchFile:1};case`DynamicPriorityPolling`:return{watchFile:2};case`UseFsEvents`:return k(4,1,e);case`UseFsEventsWithFallbackDynamicPolling`:return k(4,2,e);case`UseFsEventsOnParentDirectory`:t=!0;default:return t?k(5,1,e):{watchFile:4}}}function k(e,t,n){let r=n?.fallbackPolling;return{watchFile:e,fallbackPolling:r===void 0?t:r}}function ee(e,t,i,d){return c?ie(e,1,Aa(e,t,d,o,s),i,500,nW(d)):(C||=Ta({useCaseSensitiveFileNames:o,getCurrentDirectory:s,fileSystemEntryExists:a,getAccessibleSortedChildDirectories:l,watchDirectory:te,realpath:u,setTimeout:n,clearTimeout:r}),C(e,t,i,d))}function te(e,t,n,r){H.assert(!n);let i=ne(r),a=H.checkDefined(i.watchDirectory);switch(a){case 1:return re(e,()=>t(e),500,void 0);case 2:return E()(e,()=>t(e),500,void 0);case 3:return D()(e,()=>t(e),void 0,void 0);case 0:return ie(e,1,Aa(e,t,r,o,s),n,500,nW(i));default:H.assertNever(a)}}function ne(e){if(e&&e.watchDirectory!==void 0)return e;switch(p){case`RecursiveDirectoryUsingFsWatchFile`:return{watchDirectory:1};case`RecursiveDirectoryUsingDynamicPriorityPolling`:return{watchDirectory:2};default:let t=e?.fallbackPolling;return{watchDirectory:0,fallbackPolling:t===void 0?void 0:t}}}function re(t,n,r,i){return va(_,o,t,n,n=>e(t,n,r,i))}function ie(e,t,n,r,i,a){return va(r?y:v,o,e,n,n=>ae(e,t,n,r,i,a))}function ae(e,n,r,o,s,c){let l,u;m&&(l=e.substring(e.lastIndexOf(Fa)),u=l.slice(Fa.length));let d=a(e,n)?p():y();return{close:()=>{d&&=(d.close(),void 0)}};function f(t){d&&=(g(`sysLog:: ${e}:: Changing watcher to ${t===p?`Present`:`Missing`}FileSystemEntryWatcher`),d.close(),t())}function p(){if(w)return g(`sysLog:: ${e}:: Defaulting to watchFile`),v();try{let t=(n===1||!h?i:A)(e,o,m?_:r);return t.on(`error`,()=>{r(`rename`,``),f(y)}),t}catch(t){return w||=t.code===`ENOSPC`,g(`sysLog:: ${e}:: Changing to watchFile`),v()}}function _(n,i){let a;if(i&&$t(i,`~`)&&(a=i,i=i.slice(0,i.length-1)),n===`rename`&&(!i||i===u||$t(i,l))){let o=t(e)||sa;a&&r(n,a,o),r(n,i,o),m?f(o===sa?y:p):o===sa&&f(y)}else a&&r(n,a),r(n,i)}function v(){return T(e,Da(r),s,c)}function y(){return T(e,(n,i,a)=>{i===0&&(a||=t(e)||sa,a!==sa&&(r(`rename`,``,a),f(p)))},s,c)}}function A(e,n,r){let a=t(e)||sa;return i(e,n,(n,i,o)=>{n===`change`&&(o||=t(e)||sa,o.getTime()===a.getTime())||(a=o||t(e)||sa,r(n,i,a))})}}function Ma(e){let t=e.writeFile;e.writeFile=(n,r,i)=>wy(n,r,!!i,(n,r,i)=>t.call(e,n,r,i),t=>e.createDirectory(t),t=>e.directoryExists(t))}var Na=(En(),void 0);function Pa(e){Na=e}Na&&Na.getEnvironmentVariable&&(pa(Na),H.setAssertionLevel(/^development$/i.test(Na.getEnvironmentVariable(`NODE_ENV`))?1:0)),Na&&Na.debugMode&&(H.isDebugging=!0);var Fa=`/`,Ia=`\\`,La=`://`,Ra=/\\/g;function za(e){return e===47||e===92}function Ba(e){return U(e)<0}function Va(e){return U(e)>0}function Ha(e){let t=U(e);return t>0&&t===e.length}function Ua(e){return U(e)!==0}function Wa(e){return/^\.\.?(?:$|[\\/])/.test(e)}function Ga(e){return!Ua(e)&&!Wa(e)}function Ka(e){return eo(e).includes(`.`)}function qa(e,t){return e.length>t.length&&$t(e,t)}function Ja(e,t){for(let n of t)if(qa(e,n))return!0;return!1}function Ya(e){return e.length>0&&za(e.charCodeAt(e.length-1))}function Xa(e){return e>=97&&e<=122||e>=65&&e<=90}function Za(e,t){let n=e.charCodeAt(t);if(n===58)return t+1;if(n===37&&e.charCodeAt(t+1)===51){let n=e.charCodeAt(t+2);if(n===97||n===65)return t+3}return-1}function U(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let n=e.indexOf(t===47?Fa:Ia,2);return n<0?e.length:n+1}if(Xa(t)&&e.charCodeAt(1)===58){let t=e.charCodeAt(2);if(t===47||t===92)return 3;if(e.length===2)return 2}let n=e.indexOf(La);if(n!==-1){let t=n+La.length,r=e.indexOf(Fa,t);if(r!==-1){let i=e.slice(0,n),a=e.slice(t,r);if(i===`file`&&(a===``||a===`localhost`)&&Xa(e.charCodeAt(r+1))){let t=Za(e,r+2);if(t!==-1){if(e.charCodeAt(t)===47)return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function Qa(e){let t=U(e);return t<0?~t:t}function $a(e){e=so(e);let t=Qa(e);return t===e.length?e:(e=bo(e),e.slice(0,Math.max(t,e.lastIndexOf(Fa))))}function eo(e,t,n){if(e=so(e),Qa(e)===e.length)return``;e=bo(e);let r=e.slice(Math.max(Qa(e),e.lastIndexOf(Fa)+1)),i=t!==void 0&&n!==void 0?ro(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function to(e,t,n){if(pn(t,`.`)||(t=`.`+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let r=e.slice(e.length-t.length);if(n(r,t))return r}}function no(e,t,n){if(typeof t==`string`)return to(e,t,n)||``;for(let r of t){let t=to(e,r,n);if(t)return t}return``}function ro(e,t,n){if(t)return no(bo(e),t,n?Nt:Pt);let r=eo(e),i=r.lastIndexOf(`.`);return i>=0?r.substring(i):``}function io(e,t){let n=e.substring(0,t),r=e.substring(t).split(Fa);return r.length&&!Re(r)&&r.pop(),[n,...r]}function ao(e,t=``){return e=lo(t,e),io(e,Qa(e))}function oo(e,t){return e.length===0?``:(e[0]&&xo(e[0]))+e.slice(1,t).join(Fa)}function so(e){return e.includes(`\\`)?e.replace(Ra,Fa):e}function co(e){if(!F(e))return[];let t=[e[0]];for(let n=1;n1){if(t[t.length-1]!==`..`){t.pop();continue}}else if(t[0])continue}t.push(r)}}return t}function lo(e,...t){e&&=so(e);for(let n of t)n&&(n=so(n),e=!e||Qa(n)!==0?n:xo(e)+n);return e}function uo(e,...t){return mo(F(t)?lo(e,...t):so(e))}function fo(e,t){return co(ao(e,t))}function po(e,t){let n=Qa(e);n===0&&t?(e=lo(t,e),n=Qa(e)):e=so(e);let r=ho(e);if(r!==void 0)return r.length>n?bo(r):r;let i=e.length,a=e.substring(0,n),o,s=n,c=s,l=s,u=n!==0;for(;sc&&(o??=e.substring(0,c-1),c=s);let r=e.indexOf(Fa,s+1);r===-1&&(r=i);let d=r-c;if(d===1&&e.charCodeAt(s)===46)o??=e.substring(0,l);else if(d===2&&e.charCodeAt(s)===46&&e.charCodeAt(s+1)===46)if(!u)o===void 0?l=s+2:o+=o.length===n?`..`:`/..`;else if(o===void 0)o=l-2>=0?e.substring(0,Math.max(n,e.lastIndexOf(Fa,l-2))):e.substring(0,l);else{let e=o.lastIndexOf(Fa);o=e===-1?a:o.substring(0,Math.max(n,e)),o.length===n&&(u=n!==0)}else o===void 0?(u=!0,l=r):(o.length!==n&&(o+=Fa),u=!0,o+=e.substring(c,r));s=r+1}return o??(i>n?bo(e):e)}function mo(e){e=so(e);let t=ho(e);return t===void 0?(t=po(e,``),t&&Ya(e)?xo(t):t):t}function ho(e){if(!To.test(e))return e;let t=e.replace(/\/\.\//g,`/`);if(t.startsWith(`./`)&&(t=t.slice(2)),t!==e&&(e=t,!To.test(e)))return e}function go(e){return e.length===0?``:e.slice(1).join(Fa)}function _o(e,t){return go(fo(e,t))}function yo(e,t,n){return n(Va(e)?mo(e):po(e,t))}function bo(e){return Ya(e)?e.substr(0,e.length-1):e}function xo(e){return Ya(e)?e:e+Fa}function So(e){return!Ua(e)&&!Wa(e)?`./`+e:e}function Co(e,t,n,r){let i=n!==void 0&&r!==void 0?ro(e,n,r):ro(e);return i?e.slice(0,e.length-i.length)+(pn(t,`.`)?t:`.`+t):e}function wo(e,t){let n=kP(e);return n?e.slice(0,e.length-n.length)+(pn(t,`.`)?t:`.`+t):Co(e,t)}var To=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function Eo(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let r=e.substring(0,Qa(e)),i=t.substring(0,Qa(t)),a=Bt(r,i);if(a!==0)return a;let o=e.substring(r.length),s=t.substring(i.length);if(!To.test(o)&&!To.test(s))return n(o,s);let c=co(ao(e)),l=co(ao(t)),u=Math.min(c.length,l.length);for(let e=1;e0==Qa(t)>0,`Paths must either both be absolute or both be relative`),oo(Mo(e,t,typeof n==`boolean`&&n?Nt:Pt,typeof n==`function`?n:wt))}function Po(e,t,n){return Va(e)?Io(t,e,t,n,!1):e}function Fo(e,t,n){return So(No($a(e),t,n))}function Io(e,t,n,r,i){let a=Mo(uo(n,e),uo(n,t),Pt,r),o=a[0];return i&&Va(o)&&(a[0]=(o.charAt(0)===Fa?`file://`:`file:///`)+o),oo(a)}function Lo(e,t){for(;;){let n=t(e);if(n!==void 0)return n;let r=$a(e);if(r===e)return;e=r}}function Ro(e){return $t(e,`/node_modules`)}function W(e,t,n,r,i,a,o){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}var G={Unterminated_string_literal:W(1002,1,`Unterminated_string_literal_1002`,`Unterminated string literal.`),Identifier_expected:W(1003,1,`Identifier_expected_1003`,`Identifier expected.`),_0_expected:W(1005,1,`_0_expected_1005`,`'{0}' expected.`),A_file_cannot_have_a_reference_to_itself:W(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:W(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:W(1009,1,`Trailing_comma_not_allowed_1009`,`Trailing comma not allowed.`),Asterisk_Slash_expected:W(1010,1,`Asterisk_Slash_expected_1010`,`'*/' expected.`),An_element_access_expression_should_take_an_argument:W(1011,1,`An_element_access_expression_should_take_an_argument_1011`,`An element access expression should take an argument.`),Unexpected_token:W(1012,1,`Unexpected_token_1012`,`Unexpected token.`),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1025,1,`An_index_signature_cannot_have_a_trailing_comma_1025`,`An index signature cannot have a trailing comma.`),Accessibility_modifier_already_seen:W(1028,1,`Accessibility_modifier_already_seen_1028`,`Accessibility modifier already seen.`),_0_modifier_must_precede_1_modifier:W(1029,1,`_0_modifier_must_precede_1_modifier_1029`,`'{0}' modifier must precede '{1}' modifier.`),_0_modifier_already_seen:W(1030,1,`_0_modifier_already_seen_1030`,`'{0}' modifier already seen.`),_0_modifier_cannot_appear_on_class_elements_of_this_kind:W(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:W(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:W(1035,1,`Only_ambient_modules_can_use_quoted_names_1035`,`Only ambient modules can use quoted names.`),Statements_are_not_allowed_in_ambient_contexts:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1047,1,`A_rest_parameter_cannot_be_optional_1047`,`A rest parameter cannot be optional.`),A_rest_parameter_cannot_have_an_initializer:W(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:W(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:W(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:W(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:W(1053,1,`A_set_accessor_cannot_have_rest_parameter_1053`,`A 'set' accessor cannot have rest parameter.`),A_get_accessor_cannot_have_parameters:W(1054,1,`A_get_accessor_cannot_have_parameters_1054`,`A 'get' accessor cannot have parameters.`),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:W(1055,1,`Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055`,`Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.`),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1064,1,`The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064`,`The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?`),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:W(1065,1,`The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065`,`The return type of an async function or method must be the global Promise type.`),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:W(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:W(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:W(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:W(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:W(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:W(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:W(1084,1,`Invalid_reference_directive_syntax_1084`,`Invalid 'reference' directive syntax.`),_0_modifier_cannot_appear_on_a_constructor_declaration:W(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:W(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:W(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:W(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:W(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:W(1094,1,`An_accessor_cannot_have_type_parameters_1094`,`An accessor cannot have type parameters.`),A_set_accessor_cannot_have_a_return_type_annotation:W(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:W(1096,1,`An_index_signature_must_have_exactly_one_parameter_1096`,`An index signature must have exactly one parameter.`),_0_list_cannot_be_empty:W(1097,1,`_0_list_cannot_be_empty_1097`,`'{0}' list cannot be empty.`),Type_parameter_list_cannot_be_empty:W(1098,1,`Type_parameter_list_cannot_be_empty_1098`,`Type parameter list cannot be empty.`),Type_argument_list_cannot_be_empty:W(1099,1,`Type_argument_list_cannot_be_empty_1099`,`Type argument list cannot be empty.`),Invalid_use_of_0_in_strict_mode:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1109,1,`Expression_expected_1109`,`Expression expected.`),Type_expected:W(1110,1,`Type_expected_1110`,`Type expected.`),Private_field_0_must_be_declared_in_an_enclosing_class:W(1111,1,`Private_field_0_must_be_declared_in_an_enclosing_class_1111`,`Private field '{0}' must be declared in an enclosing class.`),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:W(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:W(1114,1,`Duplicate_label_0_1114`,`Duplicate label '{0}'.`),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:W(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:W(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:W(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:W(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:W(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:W(1120,1,`An_export_assignment_cannot_have_modifiers_1120`,`An export assignment cannot have modifiers.`),Octal_literals_are_not_allowed_Use_the_syntax_0:W(1121,1,`Octal_literals_are_not_allowed_Use_the_syntax_0_1121`,`Octal literals are not allowed. Use the syntax '{0}'.`),Variable_declaration_list_cannot_be_empty:W(1123,1,`Variable_declaration_list_cannot_be_empty_1123`,`Variable declaration list cannot be empty.`),Digit_expected:W(1124,1,`Digit_expected_1124`,`Digit expected.`),Hexadecimal_digit_expected:W(1125,1,`Hexadecimal_digit_expected_1125`,`Hexadecimal digit expected.`),Unexpected_end_of_text:W(1126,1,`Unexpected_end_of_text_1126`,`Unexpected end of text.`),Invalid_character:W(1127,1,`Invalid_character_1127`,`Invalid character.`),Declaration_or_statement_expected:W(1128,1,`Declaration_or_statement_expected_1128`,`Declaration or statement expected.`),Statement_expected:W(1129,1,`Statement_expected_1129`,`Statement expected.`),case_or_default_expected:W(1130,1,`case_or_default_expected_1130`,`'case' or 'default' expected.`),Property_or_signature_expected:W(1131,1,`Property_or_signature_expected_1131`,`Property or signature expected.`),Enum_member_expected:W(1132,1,`Enum_member_expected_1132`,`Enum member expected.`),Variable_declaration_expected:W(1134,1,`Variable_declaration_expected_1134`,`Variable declaration expected.`),Argument_expression_expected:W(1135,1,`Argument_expression_expected_1135`,`Argument expression expected.`),Property_assignment_expected:W(1136,1,`Property_assignment_expected_1136`,`Property assignment expected.`),Expression_or_comma_expected:W(1137,1,`Expression_or_comma_expected_1137`,`Expression or comma expected.`),Parameter_declaration_expected:W(1138,1,`Parameter_declaration_expected_1138`,`Parameter declaration expected.`),Type_parameter_declaration_expected:W(1139,1,`Type_parameter_declaration_expected_1139`,`Type parameter declaration expected.`),Type_argument_expected:W(1140,1,`Type_argument_expected_1140`,`Type argument expected.`),String_literal_expected:W(1141,1,`String_literal_expected_1141`,`String literal expected.`),Line_break_not_permitted_here:W(1142,1,`Line_break_not_permitted_here_1142`,`Line break not permitted here.`),or_expected:W(1144,1,`or_expected_1144`,`'{' or ';' expected.`),or_JSX_element_expected:W(1145,1,`or_JSX_element_expected_1145`,`'{' or JSX element expected.`),Declaration_expected:W(1146,1,`Declaration_expected_1146`,`Declaration expected.`),Import_declarations_in_a_namespace_cannot_reference_a_module:W(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:W(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:W(1149,1,`File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149`,`File name '{0}' differs from already included file name '{1}' only in casing.`),_0_declarations_must_be_initialized:W(1155,1,`_0_declarations_must_be_initialized_1155`,`'{0}' declarations must be initialized.`),_0_declarations_can_only_be_declared_inside_a_block:W(1156,1,`_0_declarations_can_only_be_declared_inside_a_block_1156`,`'{0}' declarations can only be declared inside a block.`),Unterminated_template_literal:W(1160,1,`Unterminated_template_literal_1160`,`Unterminated template literal.`),Unterminated_regular_expression_literal:W(1161,1,`Unterminated_regular_expression_literal_1161`,`Unterminated regular expression literal.`),An_object_member_cannot_be_declared_optional:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1172,1,`extends_clause_already_seen_1172`,`'extends' clause already seen.`),extends_clause_must_precede_implements_clause:W(1173,1,`extends_clause_must_precede_implements_clause_1173`,`'extends' clause must precede 'implements' clause.`),Classes_can_only_extend_a_single_class:W(1174,1,`Classes_can_only_extend_a_single_class_1174`,`Classes can only extend a single class.`),implements_clause_already_seen:W(1175,1,`implements_clause_already_seen_1175`,`'implements' clause already seen.`),Interface_declaration_cannot_have_implements_clause:W(1176,1,`Interface_declaration_cannot_have_implements_clause_1176`,`Interface declaration cannot have 'implements' clause.`),Binary_digit_expected:W(1177,1,`Binary_digit_expected_1177`,`Binary digit expected.`),Octal_digit_expected:W(1178,1,`Octal_digit_expected_1178`,`Octal digit expected.`),Unexpected_token_expected:W(1179,1,`Unexpected_token_expected_1179`,`Unexpected token. '{' expected.`),Property_destructuring_pattern_expected:W(1180,1,`Property_destructuring_pattern_expected_1180`,`Property destructuring pattern expected.`),Array_element_destructuring_pattern_expected:W(1181,1,`Array_element_destructuring_pattern_expected_1181`,`Array element destructuring pattern expected.`),A_destructuring_declaration_must_have_an_initializer:W(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:W(1183,1,`An_implementation_cannot_be_declared_in_ambient_contexts_1183`,`An implementation cannot be declared in ambient contexts.`),Modifiers_cannot_appear_here:W(1184,1,`Modifiers_cannot_appear_here_1184`,`Modifiers cannot appear here.`),Merge_conflict_marker_encountered:W(1185,1,`Merge_conflict_marker_encountered_1185`,`Merge conflict marker encountered.`),A_rest_element_cannot_have_an_initializer:W(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:W(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:W(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:W(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:W(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:W(1191,1,`An_import_declaration_cannot_have_modifiers_1191`,`An import declaration cannot have modifiers.`),Module_0_has_no_default_export:W(1192,1,`Module_0_has_no_default_export_1192`,`Module '{0}' has no default export.`),An_export_declaration_cannot_have_modifiers:W(1193,1,`An_export_declaration_cannot_have_modifiers_1193`,`An export declaration cannot have modifiers.`),Export_declarations_are_not_permitted_in_a_namespace:W(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:W(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:W(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:W(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:W(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:W(1199,1,`Unterminated_Unicode_escape_sequence_1199`,`Unterminated Unicode escape sequence.`),Line_terminator_not_permitted_before_arrow:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1223,1,`_0_tag_already_specified_1223`,`'{0}' tag already specified.`),Signature_0_must_be_a_type_predicate:W(1224,1,`Signature_0_must_be_a_type_predicate_1224`,`Signature '{0}' must be a type predicate.`),Cannot_find_parameter_0:W(1225,1,`Cannot_find_parameter_0_1225`,`Cannot find parameter '{0}'.`),Type_predicate_0_is_not_assignable_to_1:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1249,1,`A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249`,`A decorator can only decorate a method implementation, not an overload.`),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:W(1250,1,`Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250`,`Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'.`),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:W(1251,1,`Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251`,`Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode.`),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:W(1252,1,`Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252`,`Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode.`),Abstract_properties_can_only_appear_within_an_abstract_class:W(1253,1,`Abstract_properties_can_only_appear_within_an_abstract_class_1253`,`Abstract properties can only appear within an abstract class.`),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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.`),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:W(1286,1,`ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286`,`ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'.`),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:W(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:W(1288,1,`An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288`,`An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled.`),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:W(1289,1,`_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289`,`'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported.`),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:W(1290,1,`_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290`,`'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'.`),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:W(1291,1,`_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291`,`'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported.`),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:W(1292,1,`_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292`,`'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'.`),ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:W(1293,1,`ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293`,`ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.`),This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled:W(1294,1,`This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294`,`This syntax is not allowed when 'erasableSyntaxOnly' is enabled.`),ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript:W(1295,1,`ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295`,`ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript.`),with_statements_are_not_allowed_in_an_async_function_block:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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_node18_node20_or_nodenext:W(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', 'node18', 'node20', or 'nodenext'.`),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve:W(1324,1,`Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_1324`,`Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', 'node18', 'node20', 'nodenext', or 'preserve'.`),Argument_of_dynamic_import_cannot_be_spread_element:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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_node18_node20_or_nodenext:W(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', 'node18', 'node20', or 'nodenext'.`),A_label_is_not_allowed_here:W(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:W(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:W(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:W(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:W(1348,1,`Non_simple_parameter_declared_here_1348`,`Non-simple parameter declared here.`),use_strict_directive_used_here:W(1349,1,`use_strict_directive_used_here_1349`,`'use strict' directive used here.`),Print_the_final_configuration_instead_of_building:W(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:W(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:W(1352,1,`A_bigint_literal_cannot_use_exponential_notation_1352`,`A bigint literal cannot use exponential notation.`),A_bigint_literal_must_be_an_integer:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1364,3,`Convert_to_type_only_export_1364`,`Convert to type-only export`),Convert_all_re_exported_types_to_type_only_exports:W(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:W(1366,3,`Split_into_two_separate_import_declarations_1366`,`Split into two separate import declarations`),Split_all_invalid_type_only_imports:W(1367,3,`Split_all_invalid_type_only_imports_1367`,`Split all invalid type-only imports`),Class_constructor_may_not_be_a_generator:W(1368,1,`Class_constructor_may_not_be_a_generator_1368`,`Class constructor may not be a generator.`),Did_you_mean_0:W(1369,3,`Did_you_mean_0_1369`,`Did you mean '{0}'?`),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:W(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:W(1376,3,`_0_was_imported_here_1376`,`'{0}' was imported here.`),_0_was_exported_here:W(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_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:W(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', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.`),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:W(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:W(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:W(1381,1,`Unexpected_token_Did_you_mean_or_rbrace_1381`,"Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1392,1,`An_import_alias_cannot_use_import_type_1392`,`An import alias cannot use 'import type'`),Imported_via_0_from_file_1:W(1393,3,`Imported_via_0_from_file_1_1393`,`Imported via {0} from file '{1}'`),Imported_via_0_from_file_1_with_packageId_2:W(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:W(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:W(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:W(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:W(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:W(1399,3,`File_is_included_via_import_here_1399`,`File is included via import here.`),Referenced_via_0_from_file_1:W(1400,3,`Referenced_via_0_from_file_1_1400`,`Referenced via '{0}' from file '{1}'`),File_is_included_via_reference_here:W(1401,3,`File_is_included_via_reference_here_1401`,`File is included via reference here.`),Type_library_referenced_via_0_from_file_1:W(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:W(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:W(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:W(1405,3,`Library_referenced_via_0_from_file_1_1405`,`Library referenced via '{0}' from file '{1}'`),File_is_included_via_library_reference_here:W(1406,3,`File_is_included_via_library_reference_here_1406`,`File is included via library reference here.`),Matched_by_include_pattern_0_in_1:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1422,3,`Library_0_specified_in_compilerOptions_1422`,`Library '{0}' specified in compilerOptions`),File_is_library_specified_here:W(1423,3,`File_is_library_specified_here_1423`,`File is library specified here.`),Default_library:W(1424,3,`Default_library_1424`,`Default library`),Default_library_for_target_0:W(1425,3,`Default_library_for_target_0_1425`,`Default library for target '{0}'`),File_is_default_library_for_target_specified_here:W(1426,3,`File_is_default_library_for_target_specified_here_1426`,`File is default library for target specified here.`),Root_file_specified_for_compilation:W(1427,3,`Root_file_specified_for_compilation_1427`,`Root file specified for compilation`),File_is_output_of_project_reference_source_0:W(1428,3,`File_is_output_of_project_reference_source_0_1428`,`File is output of project reference source '{0}'`),File_redirects_to_file_0:W(1429,3,`File_redirects_to_file_0_1429`,`File redirects to file '{0}'`),The_file_is_in_the_program_because_Colon:W(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:W(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_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:W(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', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.`),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:W(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:W(1434,1,`Unexpected_keyword_or_identifier_1434`,`Unexpected keyword or identifier.`),Unknown_keyword_or_identifier_Did_you_mean_0:W(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:W(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:W(1437,1,`Namespace_must_be_given_a_name_1437`,`Namespace must be given a name.`),Interface_must_be_given_a_name:W(1438,1,`Interface_must_be_given_a_name_1438`,`Interface must be given a name.`),Type_alias_must_be_given_a_name:W(1439,1,`Type_alias_must_be_given_a_name_1439`,`Type alias must be given a name.`),Variable_declaration_not_allowed_at_this_location:W(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:W(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:W(1442,1,`Expected_for_property_initializer_1442`,`Expected '=' for property initializer.`),Module_declaration_names_may_only_use_or_quoted_strings:W(1443,1,`Module_declaration_names_may_only_use_or_quoted_strings_1443`,`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:W(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:W(1449,3,`Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449`,`Preserve unused imported values in the JavaScript output that would otherwise be removed.`),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:W(1450,3,`Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450`,`Dynamic imports can only accept a module specifier and an optional set of attributes as arguments`),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:W(1451,1,`Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451`,`Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression`),resolution_mode_should_be_either_require_or_import:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1461,3,`File_is_CommonJS_module_because_package_json_was_not_found_1461`,`File is CommonJS module because 'package.json' was not found`),resolution_mode_is_the_only_valid_key_for_type_import_attributes:W(1463,1,`resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463`,`'resolution-mode' is the only valid key for type import attributes.`),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:W(1464,1,`Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464`,`Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'.`),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(1486,1,`Decorator_used_before_export_here_1486`,`Decorator used before 'export' here.`),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:W(1487,1,`Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487`,`Octal escape sequences are not allowed. Use the syntax '{0}'.`),Escape_sequence_0_is_not_allowed:W(1488,1,`Escape_sequence_0_is_not_allowed_1488`,`Escape sequence '{0}' is not allowed.`),Decimals_with_leading_zeros_are_not_allowed:W(1489,1,`Decimals_with_leading_zeros_are_not_allowed_1489`,`Decimals with leading zeros are not allowed.`),File_appears_to_be_binary:W(1490,1,`File_appears_to_be_binary_1490`,`File appears to be binary.`),_0_modifier_cannot_appear_on_a_using_declaration:W(1491,1,`_0_modifier_cannot_appear_on_a_using_declaration_1491`,`'{0}' modifier cannot appear on a 'using' declaration.`),_0_declarations_may_not_have_binding_patterns:W(1492,1,`_0_declarations_may_not_have_binding_patterns_1492`,`'{0}' declarations may not have binding patterns.`),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:W(1493,1,`The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493`,`The left-hand side of a 'for...in' statement cannot be a 'using' declaration.`),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:W(1494,1,`The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494`,`The left-hand side of a 'for...in' statement cannot be an 'await using' declaration.`),_0_modifier_cannot_appear_on_an_await_using_declaration:W(1495,1,`_0_modifier_cannot_appear_on_an_await_using_declaration_1495`,`'{0}' modifier cannot appear on an 'await using' declaration.`),Identifier_string_literal_or_number_literal_expected:W(1496,1,`Identifier_string_literal_or_number_literal_expected_1496`,`Identifier, string literal, or number literal expected.`),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:W(1497,1,`Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497`,`Expression must be enclosed in parentheses to be used as a decorator.`),Invalid_syntax_in_decorator:W(1498,1,`Invalid_syntax_in_decorator_1498`,`Invalid syntax in decorator.`),Unknown_regular_expression_flag:W(1499,1,`Unknown_regular_expression_flag_1499`,`Unknown regular expression flag.`),Duplicate_regular_expression_flag:W(1500,1,`Duplicate_regular_expression_flag_1500`,`Duplicate regular expression flag.`),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:W(1501,1,`This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501`,`This regular expression flag is only available when targeting '{0}' or later.`),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:W(1502,1,`The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502`,`The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously.`),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:W(1503,1,`Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503`,`Named capturing groups are only available when targeting 'ES2018' or later.`),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:W(1504,1,`Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504`,`Subpattern flags must be present when there is a minus sign.`),Incomplete_quantifier_Digit_expected:W(1505,1,`Incomplete_quantifier_Digit_expected_1505`,`Incomplete quantifier. Digit expected.`),Numbers_out_of_order_in_quantifier:W(1506,1,`Numbers_out_of_order_in_quantifier_1506`,`Numbers out of order in quantifier.`),There_is_nothing_available_for_repetition:W(1507,1,`There_is_nothing_available_for_repetition_1507`,`There is nothing available for repetition.`),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:W(1508,1,`Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508`,`Unexpected '{0}'. Did you mean to escape it with backslash?`),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:W(1509,1,`This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509`,`This regular expression flag cannot be toggled within a subpattern.`),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:W(1510,1,`k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510`,`'\\k' must be followed by a capturing group name enclosed in angle brackets.`),q_is_only_available_inside_character_class:W(1511,1,`q_is_only_available_inside_character_class_1511`,`'\\q' is only available inside character class.`),c_must_be_followed_by_an_ASCII_letter:W(1512,1,`c_must_be_followed_by_an_ASCII_letter_1512`,`'\\c' must be followed by an ASCII letter.`),Undetermined_character_escape:W(1513,1,`Undetermined_character_escape_1513`,`Undetermined character escape.`),Expected_a_capturing_group_name:W(1514,1,`Expected_a_capturing_group_name_1514`,`Expected a capturing group name.`),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:W(1515,1,`Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515`,`Named capturing groups with the same name must be mutually exclusive to each other.`),A_character_class_range_must_not_be_bounded_by_another_character_class:W(1516,1,`A_character_class_range_must_not_be_bounded_by_another_character_class_1516`,`A character class range must not be bounded by another character class.`),Range_out_of_order_in_character_class:W(1517,1,`Range_out_of_order_in_character_class_1517`,`Range out of order in character class.`),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:W(1518,1,`Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518`,`Anything that would possibly match more than a single character is invalid inside a negated character class.`),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:W(1519,1,`Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519`,`Operators must not be mixed within a character class. Wrap it in a nested class instead.`),Expected_a_class_set_operand:W(1520,1,`Expected_a_class_set_operand_1520`,`Expected a class set operand.`),q_must_be_followed_by_string_alternatives_enclosed_in_braces:W(1521,1,`q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521`,`'\\q' must be followed by string alternatives enclosed in braces.`),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:W(1522,1,`A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522`,`A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?`),Expected_a_Unicode_property_name:W(1523,1,`Expected_a_Unicode_property_name_1523`,`Expected a Unicode property name.`),Unknown_Unicode_property_name:W(1524,1,`Unknown_Unicode_property_name_1524`,`Unknown Unicode property name.`),Expected_a_Unicode_property_value:W(1525,1,`Expected_a_Unicode_property_value_1525`,`Expected a Unicode property value.`),Unknown_Unicode_property_value:W(1526,1,`Unknown_Unicode_property_value_1526`,`Unknown Unicode property value.`),Expected_a_Unicode_property_name_or_value:W(1527,1,`Expected_a_Unicode_property_name_or_value_1527`,`Expected a Unicode property name or value.`),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:W(1528,1,`Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528`,`Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set.`),Unknown_Unicode_property_name_or_value:W(1529,1,`Unknown_Unicode_property_name_or_value_1529`,`Unknown Unicode property name or value.`),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:W(1530,1,`Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530`,`Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set.`),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:W(1531,1,`_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531`,`'\\{0}' must be followed by a Unicode property value expression enclosed in braces.`),There_is_no_capturing_group_named_0_in_this_regular_expression:W(1532,1,`There_is_no_capturing_group_named_0_in_this_regular_expression_1532`,`There is no capturing group named '{0}' in this regular expression.`),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:W(1533,1,`This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533`,`This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression.`),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:W(1534,1,`This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534`,`This backreference refers to a group that does not exist. There are no capturing groups in this regular expression.`),This_character_cannot_be_escaped_in_a_regular_expression:W(1535,1,`This_character_cannot_be_escaped_in_a_regular_expression_1535`,`This character cannot be escaped in a regular expression.`),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:W(1536,1,`Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536`,`Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead.`),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:W(1537,1,`Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537`,`Decimal escape sequences and backreferences are not allowed in a character class.`),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:W(1538,1,`Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538`,`Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set.`),A_bigint_literal_cannot_be_used_as_a_property_name:W(1539,1,`A_bigint_literal_cannot_be_used_as_a_property_name_1539`,`A 'bigint' literal cannot be used as a property name.`),A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead:W(1540,2,`A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540`,`A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.`,void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:W(1541,1,`Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541`,`Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute.`),Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:W(1542,1,`Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542`,`Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute.`),Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0:W(1543,1,`Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543`,`Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0:W(1544,1,`Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0_1544`,`Named imports from a JSON file into an ECMAScript module are not allowed when 'module' is set to '{0}'.`),using_declarations_are_not_allowed_in_ambient_contexts:W(1545,1,`using_declarations_are_not_allowed_in_ambient_contexts_1545`,`'using' declarations are not allowed in ambient contexts.`),await_using_declarations_are_not_allowed_in_ambient_contexts:W(1546,1,`await_using_declarations_are_not_allowed_in_ambient_contexts_1546`,`'await using' declarations are not allowed in ambient contexts.`),The_types_of_0_are_incompatible_between_these_types:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2211,3,`Add_extends_constraint_2211`,"Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:W(2212,3,`Add_extends_constraint_to_all_type_parameters_2212`,"Add `extends` constraint to all type parameters"),Duplicate_identifier_0:W(2300,1,`Duplicate_identifier_0_2300`,`Duplicate identifier '{0}'.`),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:W(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:W(2302,1,`Static_members_cannot_reference_class_type_parameters_2302`,`Static members cannot reference class type parameters.`),Circular_definition_of_import_alias_0:W(2303,1,`Circular_definition_of_import_alias_0_2303`,`Circular definition of import alias '{0}'.`),Cannot_find_name_0:W(2304,1,`Cannot_find_name_0_2304`,`Cannot find name '{0}'.`),Module_0_has_no_exported_member_1:W(2305,1,`Module_0_has_no_exported_member_1_2305`,`Module '{0}' has no exported member '{1}'.`),File_0_is_not_a_module:W(2306,1,`File_0_is_not_a_module_2306`,`File '{0}' is not a module.`),Cannot_find_module_0_or_its_corresponding_type_declarations:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2314,1,`Generic_type_0_requires_1_type_argument_s_2314`,`Generic type '{0}' requires {1} type argument(s).`),Type_0_is_not_generic:W(2315,1,`Type_0_is_not_generic_2315`,`Type '{0}' is not generic.`),Global_type_0_must_be_a_class_or_interface_type:W(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:W(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:W(2318,1,`Cannot_find_global_type_0_2318`,`Cannot find global type '{0}'.`),Named_property_0_of_types_1_and_2_are_not_identical:W(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:W(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:W(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:W(2322,1,`Type_0_is_not_assignable_to_type_1_2322`,`Type '{0}' is not assignable to type '{1}'.`),Cannot_redeclare_exported_variable_0:W(2323,1,`Cannot_redeclare_exported_variable_0_2323`,`Cannot redeclare exported variable '{0}'.`),Property_0_is_missing_in_type_1:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2332,1,`this_cannot_be_referenced_in_current_location_2332`,`'this' cannot be referenced in current location.`),this_cannot_be_referenced_in_a_static_property_initializer:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2349,1,`This_expression_is_not_callable_2349`,`This expression is not callable.`),Only_a_void_function_can_be_called_with_the_new_keyword:W(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:W(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:W(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:W(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:W(2354,1,`This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354`,`This syntax requires an imported helper but module '{0}' cannot be found.`),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:W(2355,1,`A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355`,`A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.`),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:W(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:W(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:W(2358,1,`The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358`,`The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter.`),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:W(2359,1,`The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359`,`The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method.`),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2372,1,`Parameter_0_cannot_reference_itself_2372`,`Parameter '{0}' cannot reference itself.`),Parameter_0_cannot_reference_identifier_1_declared_after_it:W(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:W(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:W(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:W(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:W(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:W(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:W(2379,1,`Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379`,`Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.`),Overload_signatures_must_all_be_exported_or_non_exported:W(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:W(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:W(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:W(2386,1,`Overload_signatures_must_all_be_optional_or_required_2386`,`Overload signatures must all be optional or required.`),Function_overload_must_be_static:W(2387,1,`Function_overload_must_be_static_2387`,`Function overload must be static.`),Function_overload_must_not_be_static:W(2388,1,`Function_overload_must_not_be_static_2388`,`Function overload must not be static.`),Function_implementation_name_must_be_0:W(2389,1,`Function_implementation_name_must_be_0_2389`,`Function implementation name must be '{0}'.`),Constructor_implementation_is_missing:W(2390,1,`Constructor_implementation_is_missing_2390`,`Constructor implementation is missing.`),Function_implementation_is_missing_or_not_immediately_following_the_declaration:W(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:W(2392,1,`Multiple_constructor_implementations_are_not_allowed_2392`,`Multiple constructor implementations are not allowed.`),Duplicate_function_implementation:W(2393,1,`Duplicate_function_implementation_2393`,`Duplicate function implementation.`),This_overload_signature_is_not_compatible_with_its_implementation_signature:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2414,1,`Class_name_cannot_be_0_2414`,`Class name cannot be '{0}'.`),Class_0_incorrectly_extends_base_class_1:W(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:W(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:W(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:W(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:W(2419,1,`Types_of_construct_signatures_are_incompatible_2419`,`Types of construct signatures are incompatible.`),Class_0_incorrectly_implements_interface_1:W(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:W(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:W(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:W(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:W(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:W(2427,1,`Interface_name_cannot_be_0_2427`,`Interface name cannot be '{0}'.`),All_declarations_of_0_must_have_identical_type_parameters:W(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:W(2430,1,`Interface_0_incorrectly_extends_interface_1_2430`,`Interface '{0}' incorrectly extends interface '{1}'.`),Enum_name_cannot_be_0:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2449,1,`Class_0_used_before_its_declaration_2449`,`Class '{0}' used before its declaration.`),Enum_0_used_before_its_declaration:W(2450,1,`Enum_0_used_before_its_declaration_2450`,`Enum '{0}' used before its declaration.`),Cannot_redeclare_block_scoped_variable_0:W(2451,1,`Cannot_redeclare_block_scoped_variable_0_2451`,`Cannot redeclare block-scoped variable '{0}'.`),An_enum_member_cannot_have_a_numeric_name:W(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:W(2454,1,`Variable_0_is_used_before_being_assigned_2454`,`Variable '{0}' is used before being assigned.`),Type_alias_0_circularly_references_itself:W(2456,1,`Type_alias_0_circularly_references_itself_2456`,`Type alias '{0}' circularly references itself.`),Type_alias_name_cannot_be_0:W(2457,1,`Type_alias_name_cannot_be_0_2457`,`Type alias name cannot be '{0}'.`),An_AMD_module_cannot_have_multiple_name_assignments:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2468,1,`Cannot_find_global_value_0_2468`,`Cannot find global value '{0}'.`),The_0_operator_cannot_be_applied_to_type_symbol:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2495,1,`Type_0_is_not_an_array_type_or_a_string_type_2495`,`Type '{0}' is not an array type or a string type.`),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:W(2496,1,`The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496`,`The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.`),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:W(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:W(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:W(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:W(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:W(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:W(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:W(2503,1,`Cannot_find_namespace_0_2503`,`Cannot find namespace '{0}'.`),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2520,1,`Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520`,`Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions.`),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:W(2522,1,`The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522`,`The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method.`),yield_expressions_cannot_be_used_in_a_parameter_initializer:W(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:W(2524,1,`await_expressions_cannot_be_used_in_a_parameter_initializer_2524`,`'await' expressions cannot be used in a parameter initializer.`),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:W(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:W(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:W(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:W(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:W(2530,1,`Property_0_is_incompatible_with_index_signature_2530`,`Property '{0}' is incompatible with index signature.`),Object_is_possibly_null:W(2531,1,`Object_is_possibly_null_2531`,`Object is possibly 'null'.`),Object_is_possibly_undefined:W(2532,1,`Object_is_possibly_undefined_2532`,`Object is possibly 'undefined'.`),Object_is_possibly_null_or_undefined:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2554,1,`Expected_0_arguments_but_got_1_2554`,`Expected {0} arguments, but got {1}.`),Expected_at_least_0_arguments_but_got_1:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2571,1,`Object_is_of_type_unknown_2571`,`Object is of type 'unknown'.`),A_rest_element_type_must_be_an_array_type:W(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:W(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:W(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:W(2577,1,`Return_type_annotation_circularly_references_itself_2577`,`Return type annotation circularly references itself.`),Unused_ts_expect_error_directive:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2638,1,`Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638`,`Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator.`),React_components_cannot_include_JSX_namespace_names:W(2639,1,`React_components_cannot_include_JSX_namespace_names_2639`,`React components cannot include JSX namespace names`),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:W(2649,1,`Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649`,`Cannot augment module '{0}' with value exports because it resolves to a non-module entity.`),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:W(2650,1,`Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650`,`Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more.`),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:W(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:W(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:W(2653,1,`Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653`,`Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'.`),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:W(2654,1,`Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654`,`Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}.`),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:W(2655,1,`Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655`,`Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more.`),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:W(2656,1,`Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656`,`Non-abstract class expression is missing implementations for the following members of '{0}': {1}.`),JSX_expressions_must_have_one_parent_element:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2704,1,`The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704`,`The operand of a 'delete' operator cannot be a read-only property.`),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:W(2705,1,`An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705`,`An async function or method in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.`),Required_type_parameters_may_not_follow_optional_type_parameters:W(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:W(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:W(2708,1,`Cannot_use_namespace_0_as_a_value_2708`,`Cannot use namespace '{0}' as a value.`),Cannot_use_namespace_0_as_a_type:W(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:W(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:W(2711,1,`A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711`,`A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.`),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:W(2712,1,`A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712`,`A dynamic import call in ES5 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.`),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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_and_above_with_module_0:W(2725,1,`Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0_2725`,`Class name cannot be 'Object' when targeting ES5 and above with module {0}.`),Cannot_find_lib_definition_for_0:W(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:W(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:W(2728,3,`_0_is_declared_here_2728`,`'{0}' is declared here.`),Property_0_is_used_before_its_initialization:W(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:W(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:W(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:W(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:W(2733,1,`Property_0_was_also_declared_here_2733`,`Property '{0}' was also declared here.`),Are_you_missing_a_semicolon:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2750,1,`The_implementation_signature_is_declared_here_2750`,`The implementation signature is declared here.`),Circularity_originates_in_type_at_this_location:W(2751,1,`Circularity_originates_in_type_at_this_location_2751`,`Circularity originates in type at this location.`),The_first_export_default_is_here:W(2752,1,`The_first_export_default_is_here_2752`,`The first export default is here.`),Another_export_default_is_here:W(2753,1,`Another_export_default_is_here_2753`,`Another export default is here.`),super_may_not_use_type_arguments:W(2754,1,`super_may_not_use_type_arguments_2754`,`'super' may not use type arguments.`),No_constituent_of_type_0_is_callable:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2769,1,`No_overload_matches_this_call_2769`,`No overload matches this call.`),The_last_overload_gave_the_following_error:W(2770,1,`The_last_overload_gave_the_following_error_2770`,`The last overload gave the following error.`),The_last_overload_is_declared_here:W(2771,1,`The_last_overload_is_declared_here_2771`,`The last overload is declared here.`),Overload_0_of_1_2_gave_the_following_error:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(2785,1,`This_spread_always_overwrites_this_property_2785`,`This spread always overwrites this property.`),_0_cannot_be_used_as_a_JSX_component:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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_or_class_static_initialization_blocks:W(2815,1,`arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks_2815`,`'arguments' cannot be referenced in property initializers or class static initialization blocks.`),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:W(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:W(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:W(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:W(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:W(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_node18_node20_nodenext_or_preserve:W(2821,1,`Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2821`,`Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'.`),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:W(2822,1,`Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822`,`Import assertions cannot be used with type-only imports or exports.`),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:W(2823,1,`Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext__2823`,`Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'node20', 'nodenext', or 'preserve'.`),Cannot_find_namespace_0_Did_you_mean_1:W(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:W(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:W(2835,1,`Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835`,`Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?`),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:W(2836,1,`Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836`,`Import assertions are not allowed on statements that compile to CommonJS 'require' calls.`),Import_assertion_values_must_be_string_literal_expressions:W(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:W(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:W(2839,1,`This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839`,`This condition will always return '{0}' since JavaScript compares objects by reference, not value.`),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:W(2840,1,`An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840`,`An interface cannot extend a primitive type like '{0}'. It can only extend other named object types.`),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:W(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:W(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:W(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:W(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:W(2846,1,`A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846`,`A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?`),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:W(2848,1,`The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848`,`The right-hand side of an 'instanceof' expression must not be an instantiation expression.`),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:W(2849,1,`Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849`,`Target signature provides too few arguments. Expected {0} or more, but got {1}.`),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:W(2850,1,`The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850`,`The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'.`),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:W(2851,1,`The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851`,`The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'.`),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:W(2852,1,`await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852`,`'await using' statements are only allowed within async functions and at the top levels of modules.`),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:W(2853,1,`await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853`,`'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.`),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:W(2854,1,`Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854`,`Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.`),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:W(2855,1,`Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855`,`Class field '{0}' defined by the parent class is not accessible in the child class via super.`),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:W(2856,1,`Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856`,`Import attributes are not allowed on statements that compile to CommonJS 'require' calls.`),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:W(2857,1,`Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857`,`Import attributes cannot be used with type-only imports or exports.`),Import_attribute_values_must_be_string_literal_expressions:W(2858,1,`Import_attribute_values_must_be_string_literal_expressions_2858`,`Import attribute values must be string literal expressions.`),Excessive_complexity_comparing_types_0_and_1:W(2859,1,`Excessive_complexity_comparing_types_0_and_1_2859`,`Excessive complexity comparing types '{0}' and '{1}'.`),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:W(2860,1,`The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860`,`The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method.`),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:W(2861,1,`An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861`,`An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression.`),Type_0_is_generic_and_can_only_be_indexed_for_reading:W(2862,1,`Type_0_is_generic_and_can_only_be_indexed_for_reading_2862`,`Type '{0}' is generic and can only be indexed for reading.`),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:W(2863,1,`A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863`,`A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values.`),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:W(2864,1,`A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864`,`A class cannot implement a primitive type like '{0}'. It can only implement other named object types.`),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:W(2865,1,`Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865`,`Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.`),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:W(2866,1,`Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866`,`Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled.`),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:W(2867,1,`Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867`,"Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:W(2868,1,`Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868`,"Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish:W(2869,1,`Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish_2869`,`Right operand of ?? is unreachable because the left operand is never nullish.`),This_binary_expression_is_never_nullish_Are_you_missing_parentheses:W(2870,1,`This_binary_expression_is_never_nullish_Are_you_missing_parentheses_2870`,`This binary expression is never nullish. Are you missing parentheses?`),This_expression_is_always_nullish:W(2871,1,`This_expression_is_always_nullish_2871`,`This expression is always nullish.`),This_kind_of_expression_is_always_truthy:W(2872,1,`This_kind_of_expression_is_always_truthy_2872`,`This kind of expression is always truthy.`),This_kind_of_expression_is_always_falsy:W(2873,1,`This_kind_of_expression_is_always_falsy_2873`,`This kind of expression is always falsy.`),This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:W(2874,1,`This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found_2874`,`This JSX tag requires '{0}' to be in scope, but it could not be found.`),This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed:W(2875,1,`This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_fo_2875`,`This JSX tag requires the module path '{0}' to exist, but none could be found. Make sure you have types for the appropriate package installed.`),This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0:W(2876,1,`This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876`,`This relative import path is unsafe to rewrite because it looks like a file name, but actually resolves to "{0}".`),This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path:W(2877,1,`This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_duri_2877`,`This import uses a '{0}' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path.`),This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files:W(2878,1,`This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_b_2878`,`This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files.`),Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:W(2879,1,`Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879`,`Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found.`),Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert:W(2880,1,`Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880`,`Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'.`),This_expression_is_never_nullish:W(2881,1,`This_expression_is_never_nullish_2881`,`This expression is never nullish.`),Import_declaration_0_is_using_private_name_1:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(4085,1,`Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085`,`Extends clause for inferred type '{0}' has or is using private name '{1}'.`),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:W(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:W(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_anonymous_class_type_may_not_be_private_or_protected:W(4094,1,`Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094`,`Property '{0}' of exported anonymous class type 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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(4109,1,`Type_arguments_for_0_circularly_reference_themselves_4109`,`Type arguments for '{0}' circularly reference themselves.`),Tuple_type_arguments_circularly_reference_themselves:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(4124,1,`Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124`,`Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.`),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:W(4125,1,`Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125`,`Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given.`),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:W(4126,1,`One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126`,`One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value.`),This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic:W(4127,1,`This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127`,`This member cannot have an 'override' modifier because its name is dynamic.`),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:W(4128,1,`This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128`,`This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic.`),The_current_host_does_not_support_the_0_option:W(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:W(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:W(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:W(5012,1,`Cannot_read_file_0_Colon_1_5012`,`Cannot read file '{0}': {1}.`),Unknown_compiler_option_0:W(5023,1,`Unknown_compiler_option_0_5023`,`Unknown compiler option '{0}'.`),Compiler_option_0_requires_a_value_of_type_1:W(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:W(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:W(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:W(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:W(5047,1,`Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047`,`Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher.`),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(5070,1,`Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070`,`Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'.`),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:W(5071,1,`Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071`,`Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'.`),Unknown_build_option_0:W(5072,1,`Unknown_build_option_0_5072`,`Unknown build option '{0}'.`),Build_option_0_requires_a_value_of_type_1:W(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:W(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:W(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:W(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:W(5077,1,`Unknown_build_option_0_Did_you_mean_1_5077`,`Unknown build option '{0}'. Did you mean '{1}'?`),Unknown_watch_option_0:W(5078,1,`Unknown_watch_option_0_5078`,`Unknown watch option '{0}'.`),Unknown_watch_option_0_Did_you_mean_1:W(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:W(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:W(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:W(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:W(5083,1,`Cannot_read_file_0_5083`,`Cannot read file '{0}'.`),A_tuple_member_cannot_be_both_optional_and_rest:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(5094,1,`Compiler_option_0_may_not_be_used_with_build_5094`,`Compiler option '--{0}' may not be used with '--build'.`),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:W(5095,1,`Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095`,`Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later.`),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:W(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:W(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:W(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:W(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:W(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:W(5103,1,`Invalid_value_for_ignoreDeprecations_5103`,`Invalid value for '--ignoreDeprecations'.`),Option_0_is_redundant_and_cannot_be_specified_with_option_1:W(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:W(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:W(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:W(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:W(5108,1,`Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108`,`Option '{0}={1}' has been removed. Please remove it from your configuration.`),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:W(5109,1,`Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109`,`Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'.`),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:W(5110,1,`Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110`,`Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'.`),Generates_a_sourcemap_for_each_corresponding_d_ts_file:W(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:W(6001,3,`Concatenate_and_emit_output_to_single_file_6001`,`Concatenate and emit output to single file.`),Generates_corresponding_d_ts_file:W(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:W(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:W(6005,3,`Watch_input_files_6005`,`Watch input files.`),Redirect_output_structure_to_the_directory:W(6006,3,`Redirect_output_structure_to_the_directory_6006`,`Redirect output structure to the directory.`),Do_not_erase_const_enum_declarations_in_generated_code:W(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:W(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:W(6009,3,`Do_not_emit_comments_to_output_6009`,`Do not emit comments to output.`),Do_not_emit_outputs:W(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:W(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:W(6012,3,`Skip_type_checking_of_declaration_files_6012`,`Skip type checking of declaration files.`),Do_not_resolve_the_real_path_of_symlinks:W(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:W(6014,3,`Only_emit_d_ts_declaration_files_6014`,`Only emit '.d.ts' declaration files.`),Specify_ECMAScript_target_version:W(6015,3,`Specify_ECMAScript_target_version_6015`,`Specify ECMAScript target version.`),Specify_module_code_generation:W(6016,3,`Specify_module_code_generation_6016`,`Specify module code generation.`),Print_this_message:W(6017,3,`Print_this_message_6017`,`Print this message.`),Print_the_compiler_s_version:W(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:W(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:W(6023,3,`Syntax_Colon_0_6023`,`Syntax: {0}`),options:W(6024,3,`options_6024`,`options`),file:W(6025,3,`file_6025`,`file`),Examples_Colon_0:W(6026,3,`Examples_Colon_0_6026`,`Examples: {0}`),Options_Colon:W(6027,3,`Options_Colon_6027`,`Options:`),Version_0:W(6029,3,`Version_0_6029`,`Version {0}`),Insert_command_line_options_and_files_from_a_file:W(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:W(6031,3,`Starting_compilation_in_watch_mode_6031`,`Starting compilation in watch mode...`),File_change_detected_Starting_incremental_compilation:W(6032,3,`File_change_detected_Starting_incremental_compilation_6032`,`File change detected. Starting incremental compilation...`),KIND:W(6034,3,`KIND_6034`,`KIND`),FILE:W(6035,3,`FILE_6035`,`FILE`),VERSION:W(6036,3,`VERSION_6036`,`VERSION`),LOCATION:W(6037,3,`LOCATION_6037`,`LOCATION`),DIRECTORY:W(6038,3,`DIRECTORY_6038`,`DIRECTORY`),STRATEGY:W(6039,3,`STRATEGY_6039`,`STRATEGY`),FILE_OR_DIRECTORY:W(6040,3,`FILE_OR_DIRECTORY_6040`,`FILE OR DIRECTORY`),Errors_Files:W(6041,3,`Errors_Files_6041`,`Errors Files`),Generates_corresponding_map_file:W(6043,3,`Generates_corresponding_map_file_6043`,`Generates corresponding '.map' file.`),Compiler_option_0_expects_an_argument:W(6044,1,`Compiler_option_0_expects_an_argument_6044`,`Compiler option '{0}' expects an argument.`),Unterminated_quoted_string_in_response_file_0:W(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:W(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:W(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:W(6050,1,`Unable_to_open_file_0_6050`,`Unable to open file '{0}'.`),Corrupted_locale_file_0:W(6051,1,`Corrupted_locale_file_0_6051`,`Corrupted locale file {0}.`),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:W(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:W(6053,1,`File_0_not_found_6053`,`File '{0}' not found.`),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:W(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:W(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:W(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:W(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:W(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:W(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:W(6061,3,`NEWLINE_6061`,`NEWLINE`),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:W(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:W(6065,3,`Enables_experimental_support_for_ES7_decorators_6065`,`Enables experimental support for ES7 decorators.`),Enables_experimental_support_for_emitting_type_metadata_for_decorators:W(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:W(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:W(6071,3,`Successfully_created_a_tsconfig_json_file_6071`,`Successfully created a tsconfig.json file.`),Suppress_excess_property_checks_for_object_literals:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6080,3,`Specify_JSX_code_generation_6080`,`Specify JSX code generation.`),Only_amd_and_system_modules_are_supported_alongside_0:W(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:W(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:W(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:W(6085,3,`Enable_tracing_of_the_name_resolution_process_6085`,`Enable tracing of the name resolution process.`),Resolving_module_0_from_1:W(6086,3,`Resolving_module_0_from_1_6086`,`======== Resolving module '{0}' from '{1}'. ========`),Explicitly_specified_module_resolution_kind_Colon_0:W(6087,3,`Explicitly_specified_module_resolution_kind_Colon_0_6087`,`Explicitly specified module resolution kind: '{0}'.`),Module_resolution_kind_is_not_specified_using_0:W(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:W(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:W(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:W(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:W(6092,3,`Module_name_0_matched_pattern_1_6092`,`Module name '{0}', matched pattern '{1}'.`),Trying_substitution_0_candidate_module_location_Colon_1:W(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:W(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:W(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:W(6096,3,`File_0_does_not_exist_6096`,`File '{0}' does not exist.`),File_0_exists_use_it_as_a_name_resolution_result:W(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:W(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:W(6099,3,`Found_package_json_at_0_6099`,`Found 'package.json' at '{0}'.`),package_json_does_not_have_a_0_field:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6110,3,`Trying_other_entries_in_rootDirs_6110`,`Trying other entries in 'rootDirs'.`),Module_resolution_using_rootDirs_has_failed:W(6111,3,`Module_resolution_using_rootDirs_has_failed_6111`,`Module resolution using 'rootDirs' has failed.`),Do_not_emit_use_strict_directives_in_module_output:W(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:W(6113,3,`Enable_strict_null_checks_6113`,`Enable strict null checks.`),Unknown_option_excludes_Did_you_mean_exclude:W(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:W(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:W(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:W(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:W(6120,3,`Type_reference_directive_0_was_not_resolved_6120`,`======== Type reference directive '{0}' was not resolved. ========`),Resolving_with_primary_search_path_0:W(6121,3,`Resolving_with_primary_search_path_0_6121`,`Resolving with primary search path '{0}'.`),Root_directory_cannot_be_determined_skipping_primary_search_paths:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6134,3,`Report_errors_on_unused_locals_6134`,`Report errors on unused locals.`),Report_errors_on_unused_parameters:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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}'.`),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:W(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:W(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:W(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:W(6149,3,`Show_diagnostic_information_6149`,`Show diagnostic information.`),Show_verbose_diagnostic_information:W(6150,3,`Show_verbose_diagnostic_information_6150`,`Show verbose diagnostic information.`),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6162,3,`Disable_size_limitations_on_JavaScript_projects_6162`,`Disable size limitations on JavaScript projects.`),The_character_set_of_the_input_files:W(6163,3,`The_character_set_of_the_input_files_6163`,`The character set of the input files.`),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:W(6164,3,`Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164`,`Skipping module '{0}' that looks like an absolute URI, target file types: {1}.`),Do_not_truncate_error_messages:W(6165,3,`Do_not_truncate_error_messages_6165`,`Do not truncate error messages.`),Output_directory_for_generated_declaration_files:W(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:W(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:W(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:W(6169,3,`Show_all_compiler_options_6169`,`Show all compiler options.`),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:W(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:W(6171,3,`Command_line_Options_6171`,`Command-line Options`),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:W(6179,3,`Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179`,`Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'.`),Enable_all_strict_type_checking_options:W(6180,3,`Enable_all_strict_type_checking_options_6180`,`Enable all strict type-checking options.`),Scoped_package_detected_looking_in_0:W(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:W(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:W(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:W(6186,3,`Enable_strict_checking_of_function_types_6186`,`Enable strict checking of function types.`),Enable_strict_checking_of_property_initialization_in_classes:W(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:W(6188,1,`Numeric_separators_are_not_allowed_here_6188`,`Numeric separators are not allowed here.`),Multiple_consecutive_numeric_separators_are_not_permitted:W(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:W(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:W(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:W(6193,3,`Found_1_error_Watching_for_file_changes_6193`,`Found 1 error. Watching for file changes.`),Found_0_errors_Watching_for_file_changes:W(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:W(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:W(6196,1,`_0_is_declared_but_never_used_6196`,`'{0}' is declared but never used.`,!0),Include_modules_imported_with_json_extension:W(6197,3,`Include_modules_imported_with_json_extension_6197`,`Include modules imported with '.json' extension`),All_destructured_elements_are_unused:W(6198,1,`All_destructured_elements_are_unused_6198`,`All destructured elements are unused.`,!0),All_variables_are_unused:W(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:W(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:W(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:W(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:W(6203,3,`_0_was_also_declared_here_6203`,`'{0}' was also declared here.`),and_here:W(6204,3,`and_here_6204`,`and here.`),All_type_parameters_are_unused:W(6205,1,`All_type_parameters_are_unused_6205`,`All type parameters are unused.`),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6215,3,`Using_compiler_options_of_project_reference_redirect_0_6215`,`Using compiler options of project reference redirect '{0}'.`),Found_1_error:W(6216,3,`Found_1_error_6216`,`Found 1 error.`),Found_0_errors:W(6217,3,`Found_0_errors_6217`,`Found {0} errors.`),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:W(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:W(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:W(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:W(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:W(6222,3,`Emit_class_fields_with_Define_instead_of_Set_6222`,`Emit class fields with Define instead of Set.`),Generates_a_CPU_profile:W(6223,3,`Generates_a_CPU_profile_6223`,`Generates a CPU profile.`),Disable_solution_searching_for_this_project:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6235,3,`Disable_loading_referenced_projects_6235`,`Disable loading referenced projects.`),Arguments_for_the_rest_parameter_0_were_not_provided:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6243,3,`Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243`,`Interpret optional property types as written, rather than adding 'undefined'.`),Modules:W(6244,3,`Modules_6244`,`Modules`),File_Management:W(6245,3,`File_Management_6245`,`File Management`),Emit:W(6246,3,`Emit_6246`,`Emit`),JavaScript_Support:W(6247,3,`JavaScript_Support_6247`,`JavaScript Support`),Type_Checking:W(6248,3,`Type_Checking_6248`,`Type Checking`),Editor_Support:W(6249,3,`Editor_Support_6249`,`Editor Support`),Watch_and_Build_Modes:W(6250,3,`Watch_and_Build_Modes_6250`,`Watch and Build Modes`),Compiler_Diagnostics:W(6251,3,`Compiler_Diagnostics_6251`,`Compiler Diagnostics`),Interop_Constraints:W(6252,3,`Interop_Constraints_6252`,`Interop Constraints`),Backwards_Compatibility:W(6253,3,`Backwards_Compatibility_6253`,`Backwards Compatibility`),Language_and_Environment:W(6254,3,`Language_and_Environment_6254`,`Language and Environment`),Projects:W(6255,3,`Projects_6255`,`Projects`),Output_Formatting:W(6256,3,`Output_Formatting_6256`,`Output Formatting`),Completeness:W(6257,3,`Completeness_6257`,`Completeness`),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:W(6258,1,`_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258`,`'{0}' should be set inside the 'compilerOptions' object of the config json file`),Found_1_error_in_0:W(6259,3,`Found_1_error_in_0_6259`,`Found 1 error in {0}`),Found_0_errors_in_the_same_file_starting_at_Colon_1:W(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:W(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:W(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:W(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:W(6264,3,`Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264`,`Enable importing files with any extension, provided a declaration file is present.`),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:W(6265,3,`Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265`,`Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder.`),Option_0_can_only_be_specified_on_command_line:W(6266,1,`Option_0_can_only_be_specified_on_command_line_6266`,`Option '{0}' can only be specified on command line.`),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6278,3,`There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278`,`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:W(6279,3,`Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279`,`Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update.`),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:W(6280,3,`There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280`,`There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.`),package_json_has_a_peerDependencies_field:W(6281,3,`package_json_has_a_peerDependencies_field_6281`,`'package.json' has a 'peerDependencies' field.`),Found_peerDependency_0_with_1_version:W(6282,3,`Found_peerDependency_0_with_1_version_6282`,`Found peerDependency '{0}' with '{1}' version.`),Failed_to_find_peerDependency_0:W(6283,3,`Failed_to_find_peerDependency_0_6283`,`Failed to find peerDependency '{0}'.`),File_Layout:W(6284,3,`File_Layout_6284`,`File Layout`),Environment_Settings:W(6285,3,`Environment_Settings_6285`,`Environment Settings`),See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule:W(6286,3,`See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule_6286`,`See also https://aka.ms/tsconfig/module`),For_nodejs_Colon:W(6287,3,`For_nodejs_Colon_6287`,`For nodejs:`),and_npm_install_D_types_Slashnode:W(6290,3,`and_npm_install_D_types_Slashnode_6290`,`and npm install -D @types/node`),Other_Outputs:W(6291,3,`Other_Outputs_6291`,`Other Outputs`),Stricter_Typechecking_Options:W(6292,3,`Stricter_Typechecking_Options_6292`,`Stricter Typechecking Options`),Style_Options:W(6293,3,`Style_Options_6293`,`Style Options`),Recommended_Options:W(6294,3,`Recommended_Options_6294`,`Recommended Options`),Enable_project_compilation:W(6302,3,`Enable_project_compilation_6302`,`Enable project compilation`),Composite_projects_may_not_disable_declaration_emit:W(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:W(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:W(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:W(6307,1,`File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307`,`File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern.`),Referenced_project_0_may_not_disable_emit:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6357,3,`A_non_dry_build_would_build_project_0_6357`,`A non-dry build would build project '{0}'`),Building_project_0:W(6358,3,`Building_project_0_6358`,`Building project '{0}'...`),Updating_output_timestamps_of_project_0:W(6359,3,`Updating_output_timestamps_of_project_0_6359`,`Updating output timestamps of project '{0}'...`),Project_0_is_up_to_date:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6370,1,`Options_0_and_1_cannot_be_combined_6370`,`Options '{0}' and '{1}' cannot be combined.`),Updating_unchanged_output_timestamps_of_project_0:W(6371,3,`Updating_unchanged_output_timestamps_of_project_0_6371`,`Updating unchanged output timestamps of project '{0}'...`),A_non_dry_build_would_update_timestamps_for_output_of_project_0:W(6374,3,`A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374`,`A non-dry build would update timestamps for output of project '{0}'`),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:W(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:W(6379,1,`Composite_projects_may_not_disable_incremental_compilation_6379`,`Composite projects may not disable incremental compilation.`),Specify_file_to_store_incremental_compilation_information:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6402,3,`Resolving_in_0_mode_with_conditions_1_6402`,`Resolving in {0} mode with conditions {1}.`),Matched_0_condition_1:W(6403,3,`Matched_0_condition_1_6403`,`Matched '{0}' condition '{1}'.`),Using_0_subpath_1_with_target_2:W(6404,3,`Using_0_subpath_1_with_target_2_6404`,`Using '{0}' subpath '{1}' with target '{2}'.`),Saw_non_matching_condition_0:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6413,3,`Entering_conditional_exports_6413`,`Entering conditional exports.`),Resolved_under_condition_0:W(6414,3,`Resolved_under_condition_0_6414`,`Resolved under condition '{0}'.`),Failed_to_resolve_under_condition_0:W(6415,3,`Failed_to_resolve_under_condition_0_6415`,`Failed to resolve under condition '{0}'.`),Exiting_conditional_exports:W(6416,3,`Exiting_conditional_exports_6416`,`Exiting conditional exports.`),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:W(6417,3,`Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417`,`Searching all ancestor node_modules directories for preferred extensions: {0}.`),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:W(6418,3,`Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418`,`Searching all ancestor node_modules directories for fallback extensions: {0}.`),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors:W(6419,3,`Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors_6419`,`Project '{0}' is out of date because buildinfo file '{1}' indicates that program needs to report errors.`),Project_0_is_out_of_date_because_1:W(6420,3,`Project_0_is_out_of_date_because_1_6420`,`Project '{0}' is out of date because {1}.`),Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files:W(6421,3,`Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_i_6421`,`Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files.`),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6602,3,`Allow_accessing_UMD_globals_from_modules_6602`,`Allow accessing UMD globals from modules.`),Disable_error_reporting_for_unreachable_code:W(6603,3,`Disable_error_reporting_for_unreachable_code_6603`,`Disable error reporting for unreachable code.`),Disable_error_reporting_for_unused_labels:W(6604,3,`Disable_error_reporting_for_unused_labels_6604`,`Disable error reporting for unused labels.`),Ensure_use_strict_is_always_emitted:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6614,3,`Create_sourcemaps_for_d_ts_files_6614`,`Create sourcemaps for d.ts files.`),Output_compiler_performance_information_after_building:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6627,3,`Filters_results_from_the_include_option_6627`,"Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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.`),Skip_building_downstream_projects_on_error_in_upstream_project:W(6640,3,`Skip_building_downstream_projects_on_error_in_upstream_project_6640`,`Skip building downstream projects on error in upstream project.`),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6659,3,`Set_the_newline_character_for_emitting_files_6659`,`Set the newline character for emitting files.`),Disable_emitting_files_from_a_compilation:W(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:W(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:W(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:W(6663,3,`Disable_truncating_types_in_error_messages_6663`,`Disable truncating types in error messages.`),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6677,3,`Deprecated_setting_Use_outFile_instead_6677`,`Deprecated setting. Use 'outFile' instead.`),Specify_an_output_folder_for_all_emitted_files:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6688,3,`Disable_emitting_comments_6688`,`Disable emitting comments.`),Enable_importing_json_files:W(6689,3,`Enable_importing_json_files_6689`,`Enable importing .json files.`),Specify_the_root_folder_within_your_source_files:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(6712,3,`Emit_ECMAScript_standard_compliant_class_fields_6712`,`Emit ECMAScript-standard-compliant class fields.`),Enable_verbose_logging:W(6713,3,`Enable_verbose_logging_6713`,`Enable verbose logging.`),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:W(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:W(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:W(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:W(6718,3,`Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718`,`Specify emit/checking behavior for imports that are only used for types.`),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:W(6719,3,`Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719`,`Require sufficient annotation on exports so other tools can trivially generate declaration files.`),Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any:W(6720,3,`Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720`,`Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'.`),Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript:W(6721,3,`Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721`,`Do not allow runtime constructs that are not part of ECMAScript.`),Default_catch_clause_variables_as_unknown_instead_of_any:W(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:W(6804,3,`Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804`,`Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting.`),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:W(6805,3,`Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805`,`Disable full type checking (only critical parse and emit errors will be reported).`),Check_side_effect_imports:W(6806,3,`Check_side_effect_imports_6806`,`Check side effect imports.`),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:W(6807,1,`This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807`,"This operation can be simplified. This shift is identical to `{0} {1} {2}`."),Enable_lib_replacement:W(6808,3,`Enable_lib_replacement_6808`,`Enable lib replacement.`),one_of_Colon:W(6900,3,`one_of_Colon_6900`,`one of:`),one_or_more_Colon:W(6901,3,`one_or_more_Colon_6901`,`one or more:`),type_Colon:W(6902,3,`type_Colon_6902`,`type:`),default_Colon:W(6903,3,`default_Colon_6903`,`default:`),module_system_or_esModuleInterop:W(6904,3,`module_system_or_esModuleInterop_6904`,`module === "system" or esModuleInterop`),false_unless_strict_is_set:W(6905,3,`false_unless_strict_is_set_6905`,"`false`, unless `strict` is set"),false_unless_composite_is_set:W(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:W(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:W(6908,3,`if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908`,'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:W(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:W(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:W(6911,3,`Computed_from_the_list_of_input_files_6911`,`Computed from the list of input files`),Platform_specific:W(6912,3,`Platform_specific_6912`,`Platform specific`),You_can_learn_about_all_of_the_compiler_options_at_0:W(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:W(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:W(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:W(6916,3,`COMMON_COMMANDS_6916`,`COMMON COMMANDS`),ALL_COMPILER_OPTIONS:W(6917,3,`ALL_COMPILER_OPTIONS_6917`,`ALL COMPILER OPTIONS`),WATCH_OPTIONS:W(6918,3,`WATCH_OPTIONS_6918`,`WATCH OPTIONS`),BUILD_OPTIONS:W(6919,3,`BUILD_OPTIONS_6919`,`BUILD OPTIONS`),COMMON_COMPILER_OPTIONS:W(6920,3,`COMMON_COMPILER_OPTIONS_6920`,`COMMON COMPILER OPTIONS`),COMMAND_LINE_FLAGS:W(6921,3,`COMMAND_LINE_FLAGS_6921`,`COMMAND LINE FLAGS`),tsc_Colon_The_TypeScript_Compiler:W(6922,3,`tsc_Colon_The_TypeScript_Compiler_6922`,`tsc: The TypeScript Compiler`),Compiles_the_current_project_tsconfig_json_in_the_working_directory:W(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:W(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:W(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:W(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:W(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:W(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:W(6929,3,`Compiles_the_current_project_with_additional_settings_6929`,`Compiles the current project, with additional settings.`),true_for_ES2022_and_above_including_ESNext:W(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:W(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:W(7005,1,`Variable_0_implicitly_has_an_1_type_7005`,`Variable '{0}' implicitly has an '{1}' type.`),Parameter_0_implicitly_has_an_1_type:W(7006,1,`Parameter_0_implicitly_has_an_1_type_7006`,`Parameter '{0}' implicitly has an '{1}' type.`),Member_0_implicitly_has_an_1_type:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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_Consider_supplying_a_return_type_annotation:W(7025,1,`Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation_7025`,`Generator implicitly has yield type '{0}'. Consider supplying a return type annotation.`),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:W(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:W(7027,1,`Unreachable_code_detected_7027`,`Unreachable code detected.`,!0),Unused_label:W(7028,1,`Unused_label_7028`,`Unused label.`,!0),Fallthrough_case_in_switch:W(7029,1,`Fallthrough_case_in_switch_7029`,`Fallthrough case in switch.`),Not_all_code_paths_return_a_value:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(8016,1,`Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016`,`Type assertion expressions can only be used in TypeScript files.`),Signature_declarations_can_only_be_used_in_TypeScript_files:W(8017,1,`Signature_declarations_can_only_be_used_in_TypeScript_files_8017`,`Signature declarations can only be used in TypeScript files.`),Report_errors_in_js_files:W(8019,3,`Report_errors_in_js_files_8019`,`Report errors in .js files.`),JSDoc_types_can_only_be_used_inside_documentation_comments:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(8038,1,`Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038`,`Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.`),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:W(8039,1,`A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039`,`A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag`),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:W(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:W(9006,1,`Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006`,`Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit.`),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:W(9007,1,`Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007`,`Function must have an explicit return type annotation with --isolatedDeclarations.`),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:W(9008,1,`Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008`,`Method must have an explicit return type annotation with --isolatedDeclarations.`),At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations:W(9009,1,`At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9009`,`At least one accessor must have an explicit type annotation with --isolatedDeclarations.`),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:W(9010,1,`Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010`,`Variable must have an explicit type annotation with --isolatedDeclarations.`),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:W(9011,1,`Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011`,`Parameter must have an explicit type annotation with --isolatedDeclarations.`),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:W(9012,1,`Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012`,`Property must have an explicit type annotation with --isolatedDeclarations.`),Expression_type_can_t_be_inferred_with_isolatedDeclarations:W(9013,1,`Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013`,`Expression type can't be inferred with --isolatedDeclarations.`),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:W(9014,1,`Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014`,`Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations.`),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:W(9015,1,`Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015`,`Objects that contain spread assignments can't be inferred with --isolatedDeclarations.`),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:W(9016,1,`Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016`,`Objects that contain shorthand properties can't be inferred with --isolatedDeclarations.`),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:W(9017,1,`Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017`,`Only const arrays can be inferred with --isolatedDeclarations.`),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:W(9018,1,`Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018`,`Arrays with spread elements can't inferred with --isolatedDeclarations.`),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:W(9019,1,`Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019`,`Binding elements can't be exported directly with --isolatedDeclarations.`),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:W(9020,1,`Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020`,`Enum member initializers must be computable without references to external symbols with --isolatedDeclarations.`),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:W(9021,1,`Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021`,`Extends clause can't contain an expression with --isolatedDeclarations.`),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:W(9022,1,`Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022`,`Inference from class expressions is not supported with --isolatedDeclarations.`),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:W(9023,1,`Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023`,`Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function.`),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:W(9025,1,`Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_sup_9025`,`Declaration emit for this parameter requires implicitly adding undefined to its type. This is not supported with --isolatedDeclarations.`),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:W(9026,1,`Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026`,`Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations.`),Add_a_type_annotation_to_the_variable_0:W(9027,1,`Add_a_type_annotation_to_the_variable_0_9027`,`Add a type annotation to the variable {0}.`),Add_a_type_annotation_to_the_parameter_0:W(9028,1,`Add_a_type_annotation_to_the_parameter_0_9028`,`Add a type annotation to the parameter {0}.`),Add_a_type_annotation_to_the_property_0:W(9029,1,`Add_a_type_annotation_to_the_property_0_9029`,`Add a type annotation to the property {0}.`),Add_a_return_type_to_the_function_expression:W(9030,1,`Add_a_return_type_to_the_function_expression_9030`,`Add a return type to the function expression.`),Add_a_return_type_to_the_function_declaration:W(9031,1,`Add_a_return_type_to_the_function_declaration_9031`,`Add a return type to the function declaration.`),Add_a_return_type_to_the_get_accessor_declaration:W(9032,1,`Add_a_return_type_to_the_get_accessor_declaration_9032`,`Add a return type to the get accessor declaration.`),Add_a_type_to_parameter_of_the_set_accessor_declaration:W(9033,1,`Add_a_type_to_parameter_of_the_set_accessor_declaration_9033`,`Add a type to parameter of the set accessor declaration.`),Add_a_return_type_to_the_method:W(9034,1,`Add_a_return_type_to_the_method_9034`,`Add a return type to the method`),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:W(9035,1,`Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035`,`Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit.`),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:W(9036,1,`Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036`,`Move the expression in default export to a variable and add a type annotation to it.`),Default_exports_can_t_be_inferred_with_isolatedDeclarations:W(9037,1,`Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037`,`Default exports can't be inferred with --isolatedDeclarations.`),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:W(9038,1,`Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038`,`Computed property names on class or object literals cannot be inferred with --isolatedDeclarations.`),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:W(9039,1,`Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039`,`Type containing private name '{0}' can't be used with --isolatedDeclarations.`),JSX_attributes_must_only_be_assigned_a_non_empty_expression:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(17014,1,`JSX_fragment_has_no_corresponding_closing_tag_17014`,`JSX fragment has no corresponding closing tag.`),Expected_corresponding_closing_tag_for_JSX_fragment:W(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:W(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:W(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:W(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:W(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:W(17020,1,`_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020`,`'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?`),Unicode_escape_sequence_cannot_appear_here:W(17021,1,`Unicode_escape_sequence_cannot_appear_here_17021`,`Unicode escape sequence cannot appear here.`),Circularity_detected_while_resolving_configuration_Colon_0:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(80008,2,`Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008`,`Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers.`),JSDoc_typedef_may_be_converted_to_TypeScript_type:W(80009,2,`JSDoc_typedef_may_be_converted_to_TypeScript_type_80009`,`JSDoc typedef may be converted to TypeScript type.`),JSDoc_typedefs_may_be_converted_to_TypeScript_types:W(80010,2,`JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010`,`JSDoc typedefs may be converted to TypeScript types.`),Add_missing_super_call:W(90001,3,`Add_missing_super_call_90001`,`Add missing 'super()' call`),Make_super_call_the_first_statement_in_the_constructor:W(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:W(90003,3,`Change_extends_to_implements_90003`,`Change 'extends' to 'implements'`),Remove_unused_declaration_for_Colon_0:W(90004,3,`Remove_unused_declaration_for_Colon_0_90004`,`Remove unused declaration for: '{0}'`),Remove_import_from_0:W(90005,3,`Remove_import_from_0_90005`,`Remove import from '{0}'`),Implement_interface_0:W(90006,3,`Implement_interface_0_90006`,`Implement interface '{0}'`),Implement_inherited_abstract_class:W(90007,3,`Implement_inherited_abstract_class_90007`,`Implement inherited abstract class`),Add_0_to_unresolved_variable:W(90008,3,`Add_0_to_unresolved_variable_90008`,`Add '{0}.' to unresolved variable`),Remove_variable_statement:W(90010,3,`Remove_variable_statement_90010`,`Remove variable statement`),Remove_template_tag:W(90011,3,`Remove_template_tag_90011`,`Remove template tag`),Remove_type_parameters:W(90012,3,`Remove_type_parameters_90012`,`Remove type parameters`),Import_0_from_1:W(90013,3,`Import_0_from_1_90013`,`Import '{0}' from "{1}"`),Change_0_to_1:W(90014,3,`Change_0_to_1_90014`,`Change '{0}' to '{1}'`),Declare_property_0:W(90016,3,`Declare_property_0_90016`,`Declare property '{0}'`),Add_index_signature_for_property_0:W(90017,3,`Add_index_signature_for_property_0_90017`,`Add index signature for property '{0}'`),Disable_checking_for_this_file:W(90018,3,`Disable_checking_for_this_file_90018`,`Disable checking for this file`),Ignore_this_error_message:W(90019,3,`Ignore_this_error_message_90019`,`Ignore this error message`),Initialize_property_0_in_the_constructor:W(90020,3,`Initialize_property_0_in_the_constructor_90020`,`Initialize property '{0}' in the constructor`),Initialize_static_property_0:W(90021,3,`Initialize_static_property_0_90021`,`Initialize static property '{0}'`),Change_spelling_to_0:W(90022,3,`Change_spelling_to_0_90022`,`Change spelling to '{0}'`),Declare_method_0:W(90023,3,`Declare_method_0_90023`,`Declare method '{0}'`),Declare_static_method_0:W(90024,3,`Declare_static_method_0_90024`,`Declare static method '{0}'`),Prefix_0_with_an_underscore:W(90025,3,`Prefix_0_with_an_underscore_90025`,`Prefix '{0}' with an underscore`),Rewrite_as_the_indexed_access_type_0:W(90026,3,`Rewrite_as_the_indexed_access_type_0_90026`,`Rewrite as the indexed access type '{0}'`),Declare_static_property_0:W(90027,3,`Declare_static_property_0_90027`,`Declare static property '{0}'`),Call_decorator_expression:W(90028,3,`Call_decorator_expression_90028`,`Call decorator expression`),Add_async_modifier_to_containing_function:W(90029,3,`Add_async_modifier_to_containing_function_90029`,`Add async modifier to containing function`),Replace_infer_0_with_unknown:W(90030,3,`Replace_infer_0_with_unknown_90030`,`Replace 'infer {0}' with 'unknown'`),Replace_all_unused_infer_with_unknown:W(90031,3,`Replace_all_unused_infer_with_unknown_90031`,`Replace all unused 'infer' with 'unknown'`),Add_parameter_name:W(90034,3,`Add_parameter_name_90034`,`Add parameter name`),Declare_private_property_0:W(90035,3,`Declare_private_property_0_90035`,`Declare private property '{0}'`),Replace_0_with_Promise_1:W(90036,3,`Replace_0_with_Promise_1_90036`,`Replace '{0}' with 'Promise<{1}>'`),Fix_all_incorrect_return_type_of_an_async_functions:W(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:W(90038,3,`Declare_private_method_0_90038`,`Declare private method '{0}'`),Remove_unused_destructuring_declaration:W(90039,3,`Remove_unused_destructuring_declaration_90039`,`Remove unused destructuring declaration`),Remove_unused_declarations_for_Colon_0:W(90041,3,`Remove_unused_declarations_for_Colon_0_90041`,`Remove unused declarations for: '{0}'`),Declare_a_private_field_named_0:W(90053,3,`Declare_a_private_field_named_0_90053`,`Declare a private field named '{0}'.`),Includes_imports_of_types_referenced_by_0:W(90054,3,`Includes_imports_of_types_referenced_by_0_90054`,`Includes imports of types referenced by '{0}'`),Remove_type_from_import_declaration_from_0:W(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:W(90056,3,`Remove_type_from_import_of_0_from_1_90056`,`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:W(90057,3,`Add_import_from_0_90057`,`Add import from "{0}"`),Update_import_from_0:W(90058,3,`Update_import_from_0_90058`,`Update import from "{0}"`),Export_0_from_module_1:W(90059,3,`Export_0_from_module_1_90059`,`Export '{0}' from module '{1}'`),Export_all_referenced_locals:W(90060,3,`Export_all_referenced_locals_90060`,`Export all referenced locals`),Update_modifiers_of_0:W(90061,3,`Update_modifiers_of_0_90061`,`Update modifiers of '{0}'`),Add_annotation_of_type_0:W(90062,3,`Add_annotation_of_type_0_90062`,`Add annotation of type '{0}'`),Add_return_type_0:W(90063,3,`Add_return_type_0_90063`,`Add return type '{0}'`),Extract_base_class_to_variable:W(90064,3,`Extract_base_class_to_variable_90064`,`Extract base class to variable`),Extract_default_export_to_variable:W(90065,3,`Extract_default_export_to_variable_90065`,`Extract default export to variable`),Extract_binding_expressions_to_variable:W(90066,3,`Extract_binding_expressions_to_variable_90066`,`Extract binding expressions to variable`),Add_all_missing_type_annotations:W(90067,3,`Add_all_missing_type_annotations_90067`,`Add all missing type annotations`),Add_satisfies_and_an_inline_type_assertion_with_0:W(90068,3,`Add_satisfies_and_an_inline_type_assertion_with_0_90068`,`Add satisfies and an inline type assertion with '{0}'`),Extract_to_variable_and_replace_with_0_as_typeof_0:W(90069,3,`Extract_to_variable_and_replace_with_0_as_typeof_0_90069`,`Extract to variable and replace with '{0} as typeof {0}'`),Mark_array_literal_as_const:W(90070,3,`Mark_array_literal_as_const_90070`,`Mark array literal as const`),Annotate_types_of_properties_expando_function_in_a_namespace:W(90071,3,`Annotate_types_of_properties_expando_function_in_a_namespace_90071`,`Annotate types of properties expando function in a namespace`),Convert_function_to_an_ES2015_class:W(95001,3,`Convert_function_to_an_ES2015_class_95001`,`Convert function to an ES2015 class`),Convert_0_to_1_in_0:W(95003,3,`Convert_0_to_1_in_0_95003`,`Convert '{0}' to '{1} in {0}'`),Extract_to_0_in_1:W(95004,3,`Extract_to_0_in_1_95004`,`Extract to {0} in {1}`),Extract_function:W(95005,3,`Extract_function_95005`,`Extract function`),Extract_constant:W(95006,3,`Extract_constant_95006`,`Extract constant`),Extract_to_0_in_enclosing_scope:W(95007,3,`Extract_to_0_in_enclosing_scope_95007`,`Extract to {0} in enclosing scope`),Extract_to_0_in_1_scope:W(95008,3,`Extract_to_0_in_1_scope_95008`,`Extract to {0} in {1} scope`),Annotate_with_type_from_JSDoc:W(95009,3,`Annotate_with_type_from_JSDoc_95009`,`Annotate with type from JSDoc`),Infer_type_of_0_from_usage:W(95011,3,`Infer_type_of_0_from_usage_95011`,`Infer type of '{0}' from usage`),Infer_parameter_types_from_usage:W(95012,3,`Infer_parameter_types_from_usage_95012`,`Infer parameter types from usage`),Convert_to_default_import:W(95013,3,`Convert_to_default_import_95013`,`Convert to default import`),Install_0:W(95014,3,`Install_0_95014`,`Install '{0}'`),Replace_import_with_0:W(95015,3,`Replace_import_with_0_95015`,`Replace import with '{0}'.`),Use_synthetic_default_member:W(95016,3,`Use_synthetic_default_member_95016`,`Use synthetic 'default' member.`),Convert_to_ES_module:W(95017,3,`Convert_to_ES_module_95017`,`Convert to ES module`),Add_undefined_type_to_property_0:W(95018,3,`Add_undefined_type_to_property_0_95018`,`Add 'undefined' type to property '{0}'`),Add_initializer_to_property_0:W(95019,3,`Add_initializer_to_property_0_95019`,`Add initializer to property '{0}'`),Add_definite_assignment_assertion_to_property_0:W(95020,3,`Add_definite_assignment_assertion_to_property_0_95020`,`Add definite assignment assertion to property '{0}'`),Convert_all_type_literals_to_mapped_type:W(95021,3,`Convert_all_type_literals_to_mapped_type_95021`,`Convert all type literals to mapped type`),Add_all_missing_members:W(95022,3,`Add_all_missing_members_95022`,`Add all missing members`),Infer_all_types_from_usage:W(95023,3,`Infer_all_types_from_usage_95023`,`Infer all types from usage`),Delete_all_unused_declarations:W(95024,3,`Delete_all_unused_declarations_95024`,`Delete all unused declarations`),Prefix_all_unused_declarations_with_where_possible:W(95025,3,`Prefix_all_unused_declarations_with_where_possible_95025`,`Prefix all unused declarations with '_' where possible`),Fix_all_detected_spelling_errors:W(95026,3,`Fix_all_detected_spelling_errors_95026`,`Fix all detected spelling errors`),Add_initializers_to_all_uninitialized_properties:W(95027,3,`Add_initializers_to_all_uninitialized_properties_95027`,`Add initializers to all uninitialized properties`),Add_definite_assignment_assertions_to_all_uninitialized_properties:W(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:W(95029,3,`Add_undefined_type_to_all_uninitialized_properties_95029`,`Add undefined type to all uninitialized properties`),Change_all_jsdoc_style_types_to_TypeScript:W(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:W(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:W(95032,3,`Implement_all_unimplemented_interfaces_95032`,`Implement all unimplemented interfaces`),Install_all_missing_types_packages:W(95033,3,`Install_all_missing_types_packages_95033`,`Install all missing types packages`),Rewrite_all_as_indexed_access_types:W(95034,3,`Rewrite_all_as_indexed_access_types_95034`,`Rewrite all as indexed access types`),Convert_all_to_default_imports:W(95035,3,`Convert_all_to_default_imports_95035`,`Convert all to default imports`),Make_all_super_calls_the_first_statement_in_their_constructor:W(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:W(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:W(95038,3,`Change_all_extended_interfaces_to_implements_95038`,`Change all extended interfaces to 'implements'`),Add_all_missing_super_calls:W(95039,3,`Add_all_missing_super_calls_95039`,`Add all missing super calls`),Implement_all_inherited_abstract_classes:W(95040,3,`Implement_all_inherited_abstract_classes_95040`,`Implement all inherited abstract classes`),Add_all_missing_async_modifiers:W(95041,3,`Add_all_missing_async_modifiers_95041`,`Add all missing 'async' modifiers`),Add_ts_ignore_to_all_error_messages:W(95042,3,`Add_ts_ignore_to_all_error_messages_95042`,`Add '@ts-ignore' to all error messages`),Annotate_everything_with_types_from_JSDoc:W(95043,3,`Annotate_everything_with_types_from_JSDoc_95043`,`Annotate everything with types from JSDoc`),Add_to_all_uncalled_decorators:W(95044,3,`Add_to_all_uncalled_decorators_95044`,`Add '()' to all uncalled decorators`),Convert_all_constructor_functions_to_classes:W(95045,3,`Convert_all_constructor_functions_to_classes_95045`,`Convert all constructor functions to classes`),Generate_get_and_set_accessors:W(95046,3,`Generate_get_and_set_accessors_95046`,`Generate 'get' and 'set' accessors`),Convert_require_to_import:W(95047,3,`Convert_require_to_import_95047`,`Convert 'require' to 'import'`),Convert_all_require_to_import:W(95048,3,`Convert_all_require_to_import_95048`,`Convert all 'require' to 'import'`),Move_to_a_new_file:W(95049,3,`Move_to_a_new_file_95049`,`Move to a new file`),Remove_unreachable_code:W(95050,3,`Remove_unreachable_code_95050`,`Remove unreachable code`),Remove_all_unreachable_code:W(95051,3,`Remove_all_unreachable_code_95051`,`Remove all unreachable code`),Add_missing_typeof:W(95052,3,`Add_missing_typeof_95052`,`Add missing 'typeof'`),Remove_unused_label:W(95053,3,`Remove_unused_label_95053`,`Remove unused label`),Remove_all_unused_labels:W(95054,3,`Remove_all_unused_labels_95054`,`Remove all unused labels`),Convert_0_to_mapped_object_type:W(95055,3,`Convert_0_to_mapped_object_type_95055`,`Convert '{0}' to mapped object type`),Convert_namespace_import_to_named_imports:W(95056,3,`Convert_namespace_import_to_named_imports_95056`,`Convert namespace import to named imports`),Convert_named_imports_to_namespace_import:W(95057,3,`Convert_named_imports_to_namespace_import_95057`,`Convert named imports to namespace import`),Add_or_remove_braces_in_an_arrow_function:W(95058,3,`Add_or_remove_braces_in_an_arrow_function_95058`,`Add or remove braces in an arrow function`),Add_braces_to_arrow_function:W(95059,3,`Add_braces_to_arrow_function_95059`,`Add braces to arrow function`),Remove_braces_from_arrow_function:W(95060,3,`Remove_braces_from_arrow_function_95060`,`Remove braces from arrow function`),Convert_default_export_to_named_export:W(95061,3,`Convert_default_export_to_named_export_95061`,`Convert default export to named export`),Convert_named_export_to_default_export:W(95062,3,`Convert_named_export_to_default_export_95062`,`Convert named export to default export`),Add_missing_enum_member_0:W(95063,3,`Add_missing_enum_member_0_95063`,`Add missing enum member '{0}'`),Add_all_missing_imports:W(95064,3,`Add_all_missing_imports_95064`,`Add all missing imports`),Convert_to_async_function:W(95065,3,`Convert_to_async_function_95065`,`Convert to async function`),Convert_all_to_async_functions:W(95066,3,`Convert_all_to_async_functions_95066`,`Convert all to async functions`),Add_missing_call_parentheses:W(95067,3,`Add_missing_call_parentheses_95067`,`Add missing call parentheses`),Add_all_missing_call_parentheses:W(95068,3,`Add_all_missing_call_parentheses_95068`,`Add all missing call parentheses`),Add_unknown_conversion_for_non_overlapping_types:W(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:W(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:W(95071,3,`Add_missing_new_operator_to_call_95071`,`Add missing 'new' operator to call`),Add_missing_new_operator_to_all_calls:W(95072,3,`Add_missing_new_operator_to_all_calls_95072`,`Add missing 'new' operator to all calls`),Add_names_to_all_parameters_without_names:W(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:W(95074,3,`Enable_the_experimentalDecorators_option_in_your_configuration_file_95074`,`Enable the 'experimentalDecorators' option in your configuration file`),Convert_parameters_to_destructured_object:W(95075,3,`Convert_parameters_to_destructured_object_95075`,`Convert parameters to destructured object`),Extract_type:W(95077,3,`Extract_type_95077`,`Extract type`),Extract_to_type_alias:W(95078,3,`Extract_to_type_alias_95078`,`Extract to type alias`),Extract_to_typedef:W(95079,3,`Extract_to_typedef_95079`,`Extract to typedef`),Infer_this_type_of_0_from_usage:W(95080,3,`Infer_this_type_of_0_from_usage_95080`,`Infer 'this' type of '{0}' from usage`),Add_const_to_unresolved_variable:W(95081,3,`Add_const_to_unresolved_variable_95081`,`Add 'const' to unresolved variable`),Add_const_to_all_unresolved_variables:W(95082,3,`Add_const_to_all_unresolved_variables_95082`,`Add 'const' to all unresolved variables`),Add_await:W(95083,3,`Add_await_95083`,`Add 'await'`),Add_await_to_initializer_for_0:W(95084,3,`Add_await_to_initializer_for_0_95084`,`Add 'await' to initializer for '{0}'`),Fix_all_expressions_possibly_missing_await:W(95085,3,`Fix_all_expressions_possibly_missing_await_95085`,`Fix all expressions possibly missing 'await'`),Remove_unnecessary_await:W(95086,3,`Remove_unnecessary_await_95086`,`Remove unnecessary 'await'`),Remove_all_unnecessary_uses_of_await:W(95087,3,`Remove_all_unnecessary_uses_of_await_95087`,`Remove all unnecessary uses of 'await'`),Enable_the_jsx_flag_in_your_configuration_file:W(95088,3,`Enable_the_jsx_flag_in_your_configuration_file_95088`,`Enable the '--jsx' flag in your configuration file`),Add_await_to_initializers:W(95089,3,`Add_await_to_initializers_95089`,`Add 'await' to initializers`),Extract_to_interface:W(95090,3,`Extract_to_interface_95090`,`Extract to interface`),Convert_to_a_bigint_numeric_literal:W(95091,3,`Convert_to_a_bigint_numeric_literal_95091`,`Convert to a bigint numeric literal`),Convert_all_to_bigint_numeric_literals:W(95092,3,`Convert_all_to_bigint_numeric_literals_95092`,`Convert all to bigint numeric literals`),Convert_const_to_let:W(95093,3,`Convert_const_to_let_95093`,`Convert 'const' to 'let'`),Prefix_with_declare:W(95094,3,`Prefix_with_declare_95094`,`Prefix with 'declare'`),Prefix_all_incorrect_property_declarations_with_declare:W(95095,3,`Prefix_all_incorrect_property_declarations_with_declare_95095`,`Prefix all incorrect property declarations with 'declare'`),Convert_to_template_string:W(95096,3,`Convert_to_template_string_95096`,`Convert to template string`),Add_export_to_make_this_file_into_a_module:W(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:W(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:W(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:W(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:W(95101,3,`Convert_all_invalid_characters_to_HTML_entity_code_95101`,`Convert all invalid characters to HTML entity code`),Convert_all_const_to_let:W(95102,3,`Convert_all_const_to_let_95102`,`Convert all 'const' to 'let'`),Convert_function_expression_0_to_arrow_function:W(95105,3,`Convert_function_expression_0_to_arrow_function_95105`,`Convert function expression '{0}' to arrow function`),Convert_function_declaration_0_to_arrow_function:W(95106,3,`Convert_function_declaration_0_to_arrow_function_95106`,`Convert function declaration '{0}' to arrow function`),Fix_all_implicit_this_errors:W(95107,3,`Fix_all_implicit_this_errors_95107`,`Fix all implicit-'this' errors`),Wrap_invalid_character_in_an_expression_container:W(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:W(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:W(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:W(95111,3,`Add_a_return_statement_95111`,`Add a return statement`),Remove_braces_from_arrow_function_body:W(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:W(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:W(95114,3,`Add_all_missing_return_statement_95114`,`Add all missing return statement`),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:W(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:W(95116,3,`Wrap_all_object_literal_with_parentheses_95116`,`Wrap all object literal with parentheses`),Move_labeled_tuple_element_modifiers_to_labels:W(95117,3,`Move_labeled_tuple_element_modifiers_to_labels_95117`,`Move labeled tuple element modifiers to labels`),Convert_overload_list_to_single_signature:W(95118,3,`Convert_overload_list_to_single_signature_95118`,`Convert overload list to single signature`),Generate_get_and_set_accessors_for_all_overriding_properties:W(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:W(95120,3,`Wrap_in_JSX_fragment_95120`,`Wrap in JSX fragment`),Wrap_all_unparented_JSX_in_JSX_fragment:W(95121,3,`Wrap_all_unparented_JSX_in_JSX_fragment_95121`,`Wrap all unparented JSX in JSX fragment`),Convert_arrow_function_or_function_expression:W(95122,3,`Convert_arrow_function_or_function_expression_95122`,`Convert arrow function or function expression`),Convert_to_anonymous_function:W(95123,3,`Convert_to_anonymous_function_95123`,`Convert to anonymous function`),Convert_to_named_function:W(95124,3,`Convert_to_named_function_95124`,`Convert to named function`),Convert_to_arrow_function:W(95125,3,`Convert_to_arrow_function_95125`,`Convert to arrow function`),Remove_parentheses:W(95126,3,`Remove_parentheses_95126`,`Remove parentheses`),Could_not_find_a_containing_arrow_function:W(95127,3,`Could_not_find_a_containing_arrow_function_95127`,`Could not find a containing arrow function`),Containing_function_is_not_an_arrow_function:W(95128,3,`Containing_function_is_not_an_arrow_function_95128`,`Containing function is not an arrow function`),Could_not_find_export_statement:W(95129,3,`Could_not_find_export_statement_95129`,`Could not find export statement`),This_file_already_has_a_default_export:W(95130,3,`This_file_already_has_a_default_export_95130`,`This file already has a default export`),Could_not_find_import_clause:W(95131,3,`Could_not_find_import_clause_95131`,`Could not find import clause`),Could_not_find_namespace_import_or_named_imports:W(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:W(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:W(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:W(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:W(95136,3,`Name_is_not_valid_95136`,`Name is not valid`),Can_only_convert_property_with_modifier:W(95137,3,`Can_only_convert_property_with_modifier_95137`,`Can only convert property with modifier`),Switch_each_misused_0_to_1:W(95138,3,`Switch_each_misused_0_to_1_95138`,`Switch each misused '{0}' to '{1}'`),Convert_to_optional_chain_expression:W(95139,3,`Convert_to_optional_chain_expression_95139`,`Convert to optional chain expression`),Could_not_find_convertible_access_expression:W(95140,3,`Could_not_find_convertible_access_expression_95140`,`Could not find convertible access expression`),Could_not_find_matching_access_expressions:W(95141,3,`Could_not_find_matching_access_expressions_95141`,`Could not find matching access expressions`),Can_only_convert_logical_AND_access_chains:W(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:W(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:W(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:W(95145,3,`Use_element_access_for_0_95145`,`Use element access for '{0}'`),Use_element_access_for_all_undeclared_properties:W(95146,3,`Use_element_access_for_all_undeclared_properties_95146`,`Use element access for all undeclared properties.`),Delete_all_unused_imports:W(95147,3,`Delete_all_unused_imports_95147`,`Delete all unused imports`),Infer_function_return_type:W(95148,3,`Infer_function_return_type_95148`,`Infer function return type`),Return_type_must_be_inferred_from_a_function:W(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:W(95150,3,`Could_not_determine_function_return_type_95150`,`Could not determine function return type`),Could_not_convert_to_arrow_function:W(95151,3,`Could_not_convert_to_arrow_function_95151`,`Could not convert to arrow function`),Could_not_convert_to_named_function:W(95152,3,`Could_not_convert_to_named_function_95152`,`Could not convert to named function`),Could_not_convert_to_anonymous_function:W(95153,3,`Could_not_convert_to_anonymous_function_95153`,`Could not convert to anonymous function`),Can_only_convert_string_concatenations_and_string_literals:W(95154,3,`Can_only_convert_string_concatenations_and_string_literals_95154`,`Can only convert string concatenations and string literals`),Selection_is_not_a_valid_statement_or_statements:W(95155,3,`Selection_is_not_a_valid_statement_or_statements_95155`,`Selection is not a valid statement or statements`),Add_missing_function_declaration_0:W(95156,3,`Add_missing_function_declaration_0_95156`,`Add missing function declaration '{0}'`),Add_all_missing_function_declarations:W(95157,3,`Add_all_missing_function_declarations_95157`,`Add all missing function declarations`),Method_not_implemented:W(95158,3,`Method_not_implemented_95158`,`Method not implemented.`),Function_not_implemented:W(95159,3,`Function_not_implemented_95159`,`Function not implemented.`),Add_override_modifier:W(95160,3,`Add_override_modifier_95160`,`Add 'override' modifier`),Remove_override_modifier:W(95161,3,`Remove_override_modifier_95161`,`Remove 'override' modifier`),Add_all_missing_override_modifiers:W(95162,3,`Add_all_missing_override_modifiers_95162`,`Add all missing 'override' modifiers`),Remove_all_unnecessary_override_modifiers:W(95163,3,`Remove_all_unnecessary_override_modifiers_95163`,`Remove all unnecessary 'override' modifiers`),Can_only_convert_named_export:W(95164,3,`Can_only_convert_named_export_95164`,`Can only convert named export`),Add_missing_properties:W(95165,3,`Add_missing_properties_95165`,`Add missing properties`),Add_all_missing_properties:W(95166,3,`Add_all_missing_properties_95166`,`Add all missing properties`),Add_missing_attributes:W(95167,3,`Add_missing_attributes_95167`,`Add missing attributes`),Add_all_missing_attributes:W(95168,3,`Add_all_missing_attributes_95168`,`Add all missing attributes`),Add_undefined_to_optional_property_type:W(95169,3,`Add_undefined_to_optional_property_type_95169`,`Add 'undefined' to optional property type`),Convert_named_imports_to_default_import:W(95170,3,`Convert_named_imports_to_default_import_95170`,`Convert named imports to default import`),Delete_unused_param_tag_0:W(95171,3,`Delete_unused_param_tag_0_95171`,`Delete unused '@param' tag '{0}'`),Delete_all_unused_param_tags:W(95172,3,`Delete_all_unused_param_tags_95172`,`Delete all unused '@param' tags`),Rename_param_tag_name_0_to_1:W(95173,3,`Rename_param_tag_name_0_to_1_95173`,`Rename '@param' tag name '{0}' to '{1}'`),Use_0:W(95174,3,`Use_0_95174`,"Use `{0}`."),Use_Number_isNaN_in_all_conditions:W(95175,3,`Use_Number_isNaN_in_all_conditions_95175`,"Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:W(95176,3,`Convert_typedef_to_TypeScript_type_95176`,`Convert typedef to TypeScript type.`),Convert_all_typedef_to_TypeScript_types:W(95177,3,`Convert_all_typedef_to_TypeScript_types_95177`,`Convert all typedef to TypeScript types.`),Move_to_file:W(95178,3,`Move_to_file_95178`,`Move to file`),Cannot_move_to_file_selected_file_is_invalid:W(95179,3,`Cannot_move_to_file_selected_file_is_invalid_95179`,`Cannot move to file, selected file is invalid`),Use_import_type:W(95180,3,`Use_import_type_95180`,`Use 'import type'`),Use_type_0:W(95181,3,`Use_type_0_95181`,`Use 'type {0}'`),Fix_all_with_type_only_imports:W(95182,3,`Fix_all_with_type_only_imports_95182`,`Fix all with type-only imports`),Cannot_move_statements_to_the_selected_file:W(95183,3,`Cannot_move_statements_to_the_selected_file_95183`,`Cannot move statements to the selected file`),Inline_variable:W(95184,3,`Inline_variable_95184`,`Inline variable`),Could_not_find_variable_to_inline:W(95185,3,`Could_not_find_variable_to_inline_95185`,`Could not find variable to inline.`),Variables_with_multiple_declarations_cannot_be_inlined:W(95186,3,`Variables_with_multiple_declarations_cannot_be_inlined_95186`,`Variables with multiple declarations cannot be inlined.`),Add_missing_comma_for_object_member_completion_0:W(95187,3,`Add_missing_comma_for_object_member_completion_0_95187`,`Add missing comma for object member completion '{0}'.`),Add_missing_parameter_to_0:W(95188,3,`Add_missing_parameter_to_0_95188`,`Add missing parameter to '{0}'`),Add_missing_parameters_to_0:W(95189,3,`Add_missing_parameters_to_0_95189`,`Add missing parameters to '{0}'`),Add_all_missing_parameters:W(95190,3,`Add_all_missing_parameters_95190`,`Add all missing parameters`),Add_optional_parameter_to_0:W(95191,3,`Add_optional_parameter_to_0_95191`,`Add optional parameter to '{0}'`),Add_optional_parameters_to_0:W(95192,3,`Add_optional_parameters_to_0_95192`,`Add optional parameters to '{0}'`),Add_all_optional_parameters:W(95193,3,`Add_all_optional_parameters_95193`,`Add all optional parameters`),Wrap_in_parentheses:W(95194,3,`Wrap_in_parentheses_95194`,`Wrap in parentheses`),Wrap_all_invalid_decorator_expressions_in_parentheses:W(95195,3,`Wrap_all_invalid_decorator_expressions_in_parentheses_95195`,`Wrap all invalid decorator expressions in parentheses`),Add_resolution_mode_import_attribute:W(95196,3,`Add_resolution_mode_import_attribute_95196`,`Add 'resolution-mode' import attribute`),Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it:W(95197,3,`Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197`,`Add 'resolution-mode' import attribute to all type-only imports that need it`),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(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:W(18046,1,`_0_is_of_type_unknown_18046`,`'{0}' is of type 'unknown'.`),_0_is_possibly_null:W(18047,1,`_0_is_possibly_null_18047`,`'{0}' is possibly 'null'.`),_0_is_possibly_undefined:W(18048,1,`_0_is_possibly_undefined_18048`,`'{0}' is possibly 'undefined'.`),_0_is_possibly_null_or_undefined:W(18049,1,`_0_is_possibly_null_or_undefined_18049`,`'{0}' is possibly 'null' or 'undefined'.`),The_value_0_cannot_be_used_here:W(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:W(18051,1,`Compiler_option_0_cannot_be_given_an_empty_string_18051`,`Compiler option '{0}' cannot be given an empty string.`),Its_type_0_is_not_a_valid_JSX_element_type:W(18053,1,`Its_type_0_is_not_a_valid_JSX_element_type_18053`,`Its type '{0}' is not a valid JSX element type.`),await_using_statements_cannot_be_used_inside_a_class_static_block:W(18054,1,`await_using_statements_cannot_be_used_inside_a_class_static_block_18054`,`'await using' statements cannot be used inside a class static block.`),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:W(18055,1,`_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055`,`'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled.`),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:W(18056,1,`Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056`,`Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.`),String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020:W(18057,1,`String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es_18057`,`String literal import and export names are not supported when the '--module' flag is set to 'es2015' or 'es2020'.`),Default_imports_are_not_allowed_in_a_deferred_import:W(18058,1,`Default_imports_are_not_allowed_in_a_deferred_import_18058`,`Default imports are not allowed in a deferred import.`),Named_imports_are_not_allowed_in_a_deferred_import:W(18059,1,`Named_imports_are_not_allowed_in_a_deferred_import_18059`,`Named imports are not allowed in a deferred import.`),Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve:W(18060,1,`Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve_18060`,`Deferred imports are only supported when the '--module' flag is set to 'esnext' or 'preserve'.`),_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer:W(18061,1,`_0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer_18061`,`'{0}' is not a valid meta-property for keyword 'import'. Did you mean 'meta' or 'defer'?`)};function zo(e){return e>=80}function Bo(e){return e===32||zo(e)}var Vo={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Ho=new Map(Object.entries(Vo)),Uo=new Map(Object.entries({...Vo,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),Wo=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),Go=new Map([[1,Ji.RegularExpressionFlagsHasIndices],[16,Ji.RegularExpressionFlagsDotAll],[32,Ji.RegularExpressionFlagsUnicode],[64,Ji.RegularExpressionFlagsUnicodeSets],[128,Ji.RegularExpressionFlagsSticky]]),Ko=[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],qo=[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],Jo=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],Yo=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],Xo=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Zo=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Qo=/@(?:see|link)/i;function $o(e,t){if(e=2?$o(e,Jo):$o(e,Ko)}function ts(e,t){return t>=2?$o(e,Yo):$o(e,qo)}function ns(e){let t=[];return e.forEach((e,n)=>{t[e]=n}),t}var rs=ns(Uo);function is(e){return rs[e]}function as(e){return Uo.get(e)}var os=ns(Wo);function ss(e){return os[e]}function cs(e){return Wo.get(e)}function ls(e){let t=[],n=0,r=0;for(;n127&&ys(i)&&(t.push(r),r=n);break}}return t.push(r),t}function us(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):ds(fs(e),t,n,e.text,r)}function ds(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:H.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${r===void 0?`unknown`:xe(e,ls(r))}`));let a=e[t]+n;return i?a>e[t+1]?e[t+1]:typeof r==`string`&&a>r.length?r.length:a:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function ys(e){return e===10||e===13||e===8232||e===8233}function bs(e){return e>=48&&e<=57}function xs(e){return bs(e)||e>=65&&e<=70||e>=97&&e<=102}function Ss(e){return e>=65&&e<=90||e>=97&&e<=122}function Cs(e){return Ss(e)||bs(e)||e===95}function ws(e){return e>=48&&e<=55}function Ts(e,t){let n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return n>127}}function Es(e,t,n,r,i){if(_w(t))return t;let a=!1;for(;;){let o=e.charCodeAt(t);switch(o){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,n)return t;a=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&_s(o)){t++;continue}break}return t}}var Ds=7;function Os(e,t){if(H.assert(t>=0),t===0||ys(e.charCodeAt(t-1))){let n=e.charCodeAt(t);if(t+Ds=0&&n127&&_s(o)){d&&ys(o)&&(u=!0),n++;continue}break scan}}return d&&(p=i(s,c,l,u,a,p)),p}function Ps(e,t,n,r){return Ns(!1,e,t,!1,n,r)}function Fs(e,t,n,r){return Ns(!1,e,t,!0,n,r)}function Is(e,t,n,r,i){return Ns(!0,e,t,!1,n,r,i)}function Ls(e,t,n,r,i){return Ns(!0,e,t,!0,n,r,i)}function Rs(e,t,n,r,i,a=[]){return a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function zs(e,t){return Is(e,t,Rs,void 0,void 0)}function Bs(e,t){return Ls(e,t,Rs,void 0,void 0)}function Vs(e){let t=As.exec(e);if(t)return t[0]}function Hs(e,t){return Ss(e)||e===36||e===95||e>127&&es(e,t)}function Us(e,t,n){return Cs(e)||e===36||(n===1?e===45||e===58:!1)||e>127&&ts(e,t)}function Ws(e,t,n){let r=Ks(e,0);if(!Hs(r,t))return!1;for(let i=qs(r);iu,getStartPos:()=>u,getTokenEnd:()=>c,getTextPos:()=>c,getToken:()=>p,getTokenStart:()=>f,getTokenPos:()=>f,getTokenText:()=>s.substring(f,c),getTokenValue:()=>m,hasUnicodeEscape:()=>(h&1024)!=0,hasExtendedUnicodeEscape:()=>(h&8)!=0,hasPrecedingLineBreak:()=>(h&1)!=0,hasPrecedingJSDocComment:()=>(h&2)!=0,hasPrecedingJSDocLeadingAsterisks:()=>(h&32768)!=0,isIdentifier:()=>p===80||p>118,isReservedWord:()=>p>=83&&p<=118,isUnterminated:()=>(h&4)!=0,getCommentDirectives:()=>g,getNumericLiteralFlags:()=>h&25584,getTokenFlags:()=>h,reScanGreaterToken:de,reScanAsteriskEqualsToken:fe,reScanSlashToken:pe,reScanTemplateToken:ve,reScanTemplateHeadOrNoSubstitutionTemplate:ye,scanJsxIdentifier:Te,scanJsxAttributeValue:Ee,reScanJsxAttributeValue:De,reScanJsxToken:be,reScanLessThanToken:xe,reScanHashToken:Se,reScanQuestionToken:Ce,reScanInvalidIdentifier:F,scanJsxToken:we,scanJsDocToken:ke,scanJSDocCommentTextToken:Oe,scan:P,getText:Pe,clearCommentDirectives:Fe,setText:Ie,setScriptTarget:Re,setLanguageVariant:ze,setScriptKind:Be,setJSDocParsingMode:Ve,setOnError:Le,resetTokenState:He,setTextPos:He,setSkipJsDocLeadingAsterisks:Ue,tryScan:Ne,lookAhead:Me,scanRange:je};return H.isDebugging&&Object.defineProperty(b,`__debugShowCurrentPositionInText`,{get:()=>{let e=b.getText();return e.slice(0,b.getTokenFullStart())+`║`+e.slice(b.getTokenFullStart())}}),b;function x(e){return Ks(s,e)}function S(e){return e>=0&&e=0&&e=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),c++,a=!1}return r.length=l){n+=s.substring(r,c),h|=4,T(G.Unterminated_string_literal);break}let i=C(c);if(i===t){n+=s.substring(r,c),c++;break}if(i===92&&!e){n+=s.substring(r,c),n+=ae(3),r=c;continue}if((i===10||i===13)&&!e){n+=s.substring(r,c),h|=4,T(G.Unterminated_string_literal);break}c++}return n}function ie(e){let t=C(c)===96;c++;let n=c,r=``,i;for(;;){if(c>=l){r+=s.substring(n,c),h|=4,T(G.Unterminated_template_literal),i=t?15:18;break}let a=C(c);if(a===96){r+=s.substring(n,c),c++,i=t?15:18;break}if(a===36&&c+1=l)return T(G.Unexpected_end_of_text),``;let r=C(c);switch(c++,r){case 48:if(c>=l||!bs(C(c)))return`\0`;case 49:case 50:case 51:c=55296&&i<=56319&&c+6=56320&&n<=57343)return c=t,a+String.fromCharCode(n)}return a;case 120:for(;c1114111&&(e&&T(G.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,n,c-n),a=!0),c>=l?(e&&T(G.Unexpected_end_of_text),a=!0):C(c)===125?c++:(e&&T(G.Unterminated_Unicode_escape_sequence),a=!0),a?(h|=2048,s.substring(t,c)):(h|=8,Xs(i))}function j(){if(c+5=0&&Us(r,e)){t+=A(!0),n=c;continue}if(r=j(),!(r>=0&&Us(r,e)))break;h|=1024,t+=s.substring(n,c),t+=Xs(r),c+=6,n=c}else break}return t+=s.substring(n,c),t}function oe(){let e=m.length;if(e>=2&&e<=12){let e=m.charCodeAt(0);if(e>=97&&e<=122){let e=Ho.get(m);if(e!==void 0)return p=e}}return p=80}function se(e){let t=``,n=!1,r=!1;for(;;){let i=C(c);if(i===95){h|=512,n?(n=!1,r=!0):T(r?G.Multiple_consecutive_numeric_separators_are_not_permitted:G.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(n=!0,!bs(i)||i-48>=e)break;t+=s[c],c++,r=!1}return C(c-1)===95&&T(G.Numeric_separators_are_not_allowed_here,c-1,1),t}function ce(){return C(c)===110?(m+=`n`,h&384&&(m=Fw(m)+`n`),c++,10):(m=``+(h&128?parseInt(m.slice(2),2):h&256?parseInt(m.slice(2),8):+m),9)}function P(){for(u=c,h=0;;){if(f=c,c>=l)return p=1;let r=x(c);if(c===0&&r===35&&js(s,c)){if(c=Ms(s,c),t)continue;return p=6}switch(r){case 10:case 13:if(h|=1,t){c++;continue}else return r===13&&c+1=0&&Hs(i,e))return m=A(!0)+N(),p=oe();let a=j();return a>=0&&Hs(a,e)?(c+=6,h|=1024,m=String.fromCharCode(a)+N(),p=oe()):(T(G.Invalid_character),c++,p=0);case 35:if(c!==0&&s[c+1]===`!`)return T(G.can_only_be_used_at_the_start_of_a_file,c,2),c++,p=0;let o=x(c+1);if(o===92){c++;let t=M();if(t>=0&&Hs(t,e))return m=`#`+A(!0)+N(),p=81;let n=j();if(n>=0&&Hs(n,e))return c+=6,h|=1024,m=`#`+String.fromCharCode(n)+N(),p=81;c--}return Hs(o,e)?(c++,ue(o,e)):(m=`#`,T(G.Invalid_character,c++,qs(r))),p=81;case 65533:return T(G.File_appears_to_be_binary,0,0),c=l,p=8;default:let u=ue(r,e);if(u)return p=u;if(vs(r)){c+=qs(r);continue}else if(ys(r)){h|=1,c+=qs(r);continue}let d=qs(r);return T(G.Invalid_character,c,d),c+=d,p=0}}}function le(){switch(y){case 0:return!0;case 1:return!1}return v!==3&&v!==4?!0:y===3?!1:Qo.test(s.slice(u,c))}function F(){H.assert(p===0,`'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'.`),c=f=u,h=0;let e=x(c),t=ue(e,99);return t?p=t:(c+=qs(e),p)}function ue(e,t){let n=e;if(Hs(n,t)){for(c+=qs(n);c=l)return p=1;let t=C(c);if(t===60)return C(c+1)===47?(c+=2,p=31):(c++,p=30);if(t===123)return c++,p=19;let n=0;for(;c0)break;else _s(t)||(n=c);c++}return m=s.substring(u,c),n===-1?13:12}function Te(){if(zo(p)){for(;c=l)return p=1;for(let t=C(c);c=0&&vs(C(c-1))&&!(c+1=l)return p=1;let t=x(c);switch(c+=qs(t),t){case 9:case 11:case 12:case 32:for(;c=0&&Hs(t,e))return m=A(!0)+N(),p=oe();let n=j();return n>=0&&Hs(n,e)?(c+=6,h|=1024,m=String.fromCharCode(n)+N(),p=oe()):(c++,p=0)}if(Hs(t,e)){let n=t;for(;c=0),c=e,u=e,f=e,p=0,m=void 0,h=0}function Ue(e){_+=e?1:-1}}function Ks(e,t){return e.codePointAt(t)}function qs(e){return e>=65536?2:e===-1?0:1}function Js(e){if(H.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}var Ys=String.fromCodePoint?e=>String.fromCodePoint(e):Js;function Xs(e){return Ys(e)}var Zs=new Map(Object.entries({General_Category:`General_Category`,gc:`General_Category`,Script:`Script`,sc:`Script`,Script_Extensions:`Script_Extensions`,scx:`Script_Extensions`})),Qs=new Set(`ASCII.ASCII_Hex_Digit.AHex.Alphabetic.Alpha.Any.Assigned.Bidi_Control.Bidi_C.Bidi_Mirrored.Bidi_M.Case_Ignorable.CI.Cased.Changes_When_Casefolded.CWCF.Changes_When_Casemapped.CWCM.Changes_When_Lowercased.CWL.Changes_When_NFKC_Casefolded.CWKCF.Changes_When_Titlecased.CWT.Changes_When_Uppercased.CWU.Dash.Default_Ignorable_Code_Point.DI.Deprecated.Dep.Diacritic.Dia.Emoji.Emoji_Component.EComp.Emoji_Modifier.EMod.Emoji_Modifier_Base.EBase.Emoji_Presentation.EPres.Extended_Pictographic.ExtPict.Extender.Ext.Grapheme_Base.Gr_Base.Grapheme_Extend.Gr_Ext.Hex_Digit.Hex.IDS_Binary_Operator.IDSB.IDS_Trinary_Operator.IDST.ID_Continue.IDC.ID_Start.IDS.Ideographic.Ideo.Join_Control.Join_C.Logical_Order_Exception.LOE.Lowercase.Lower.Math.Noncharacter_Code_Point.NChar.Pattern_Syntax.Pat_Syn.Pattern_White_Space.Pat_WS.Quotation_Mark.QMark.Radical.Regional_Indicator.RI.Sentence_Terminal.STerm.Soft_Dotted.SD.Terminal_Punctuation.Term.Unified_Ideograph.UIdeo.Uppercase.Upper.Variation_Selector.VS.White_Space.space.XID_Continue.XIDC.XID_Start.XIDS`.split(`.`)),$s=new Set([`Basic_Emoji`,`Emoji_Keycap_Sequence`,`RGI_Emoji_Modifier_Sequence`,`RGI_Emoji_Flag_Sequence`,`RGI_Emoji_Tag_Sequence`,`RGI_Emoji_ZWJ_Sequence`,`RGI_Emoji`]),ec={General_Category:new Set(`C.Other.Cc.Control.cntrl.Cf.Format.Cn.Unassigned.Co.Private_Use.Cs.Surrogate.L.Letter.LC.Cased_Letter.Ll.Lowercase_Letter.Lm.Modifier_Letter.Lo.Other_Letter.Lt.Titlecase_Letter.Lu.Uppercase_Letter.M.Mark.Combining_Mark.Mc.Spacing_Mark.Me.Enclosing_Mark.Mn.Nonspacing_Mark.N.Number.Nd.Decimal_Number.digit.Nl.Letter_Number.No.Other_Number.P.Punctuation.punct.Pc.Connector_Punctuation.Pd.Dash_Punctuation.Pe.Close_Punctuation.Pf.Final_Punctuation.Pi.Initial_Punctuation.Po.Other_Punctuation.Ps.Open_Punctuation.S.Symbol.Sc.Currency_Symbol.Sk.Modifier_Symbol.Sm.Math_Symbol.So.Other_Symbol.Z.Separator.Zl.Line_Separator.Zp.Paragraph_Separator.Zs.Space_Separator`.split(`.`)),Script:new Set(`Adlm.Adlam.Aghb.Caucasian_Albanian.Ahom.Arab.Arabic.Armi.Imperial_Aramaic.Armn.Armenian.Avst.Avestan.Bali.Balinese.Bamu.Bamum.Bass.Bassa_Vah.Batk.Batak.Beng.Bengali.Bhks.Bhaiksuki.Bopo.Bopomofo.Brah.Brahmi.Brai.Braille.Bugi.Buginese.Buhd.Buhid.Cakm.Chakma.Cans.Canadian_Aboriginal.Cari.Carian.Cham.Cher.Cherokee.Chrs.Chorasmian.Copt.Coptic.Qaac.Cpmn.Cypro_Minoan.Cprt.Cypriot.Cyrl.Cyrillic.Deva.Devanagari.Diak.Dives_Akuru.Dogr.Dogra.Dsrt.Deseret.Dupl.Duployan.Egyp.Egyptian_Hieroglyphs.Elba.Elbasan.Elym.Elymaic.Ethi.Ethiopic.Geor.Georgian.Glag.Glagolitic.Gong.Gunjala_Gondi.Gonm.Masaram_Gondi.Goth.Gothic.Gran.Grantha.Grek.Greek.Gujr.Gujarati.Guru.Gurmukhi.Hang.Hangul.Hani.Han.Hano.Hanunoo.Hatr.Hatran.Hebr.Hebrew.Hira.Hiragana.Hluw.Anatolian_Hieroglyphs.Hmng.Pahawh_Hmong.Hmnp.Nyiakeng_Puachue_Hmong.Hrkt.Katakana_Or_Hiragana.Hung.Old_Hungarian.Ital.Old_Italic.Java.Javanese.Kali.Kayah_Li.Kana.Katakana.Kawi.Khar.Kharoshthi.Khmr.Khmer.Khoj.Khojki.Kits.Khitan_Small_Script.Knda.Kannada.Kthi.Kaithi.Lana.Tai_Tham.Laoo.Lao.Latn.Latin.Lepc.Lepcha.Limb.Limbu.Lina.Linear_A.Linb.Linear_B.Lisu.Lyci.Lycian.Lydi.Lydian.Mahj.Mahajani.Maka.Makasar.Mand.Mandaic.Mani.Manichaean.Marc.Marchen.Medf.Medefaidrin.Mend.Mende_Kikakui.Merc.Meroitic_Cursive.Mero.Meroitic_Hieroglyphs.Mlym.Malayalam.Modi.Mong.Mongolian.Mroo.Mro.Mtei.Meetei_Mayek.Mult.Multani.Mymr.Myanmar.Nagm.Nag_Mundari.Nand.Nandinagari.Narb.Old_North_Arabian.Nbat.Nabataean.Newa.Nkoo.Nko.Nshu.Nushu.Ogam.Ogham.Olck.Ol_Chiki.Orkh.Old_Turkic.Orya.Oriya.Osge.Osage.Osma.Osmanya.Ougr.Old_Uyghur.Palm.Palmyrene.Pauc.Pau_Cin_Hau.Perm.Old_Permic.Phag.Phags_Pa.Phli.Inscriptional_Pahlavi.Phlp.Psalter_Pahlavi.Phnx.Phoenician.Plrd.Miao.Prti.Inscriptional_Parthian.Rjng.Rejang.Rohg.Hanifi_Rohingya.Runr.Runic.Samr.Samaritan.Sarb.Old_South_Arabian.Saur.Saurashtra.Sgnw.SignWriting.Shaw.Shavian.Shrd.Sharada.Sidd.Siddham.Sind.Khudawadi.Sinh.Sinhala.Sogd.Sogdian.Sogo.Old_Sogdian.Sora.Sora_Sompeng.Soyo.Soyombo.Sund.Sundanese.Sylo.Syloti_Nagri.Syrc.Syriac.Tagb.Tagbanwa.Takr.Takri.Tale.Tai_Le.Talu.New_Tai_Lue.Taml.Tamil.Tang.Tangut.Tavt.Tai_Viet.Telu.Telugu.Tfng.Tifinagh.Tglg.Tagalog.Thaa.Thaana.Thai.Tibt.Tibetan.Tirh.Tirhuta.Tnsa.Tangsa.Toto.Ugar.Ugaritic.Vaii.Vai.Vith.Vithkuqi.Wara.Warang_Citi.Wcho.Wancho.Xpeo.Old_Persian.Xsux.Cuneiform.Yezi.Yezidi.Yiii.Yi.Zanb.Zanabazar_Square.Zinh.Inherited.Qaai.Zyyy.Common.Zzzz.Unknown`.split(`.`)),Script_Extensions:void 0};ec.Script_Extensions=ec.Script;function tc(e){return Wa(e)||Va(e)}function nc(e){return be(e,TS,kS)}var rc=new Map([[99,`lib.esnext.full.d.ts`],[11,`lib.es2024.full.d.ts`],[10,`lib.es2023.full.d.ts`],[9,`lib.es2022.full.d.ts`],[8,`lib.es2021.full.d.ts`],[7,`lib.es2020.full.d.ts`],[6,`lib.es2019.full.d.ts`],[5,`lib.es2018.full.d.ts`],[4,`lib.es2017.full.d.ts`],[3,`lib.es2016.full.d.ts`],[2,`lib.es6.d.ts`]]);function ic(e){let t=zS(e);switch(t){case 99:case 11:case 10:case 9:case 8:case 7:case 6:case 5:case 4:case 3:case 2:return rc.get(t);default:return`lib.d.ts`}}function ac(e){return e.start+e.length}function oc(e){return e.length===0}function sc(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function lc(e,t){return t.start>=e.start&&ac(t)<=ac(e)}function uc(e,t){return t.pos>=e.start&&t.end<=ac(e)}function dc(e,t){return t.start>=e.pos&&ac(t)<=e.end}function fc(e,t){return pc(e,t)!==void 0}function pc(e,t){let n=yc(e,t);return n&&n.length===0?void 0:n}function mc(e,t){return gc(e.start,e.length,t.start,t.length)}function hc(e,t,n){return gc(e.start,e.length,t,n)}function gc(e,t,n,r){let i=e+t,a=n+r;return n<=i&&a>=e}function _c(e,t){return t<=ac(e)&&t>=e.start}function vc(e,t){return hc(t,e.pos,e.end-e.pos)}function yc(e,t){let n=Math.max(e.start,t.start),r=Math.min(ac(e),ac(t));return n<=r?Sc(n,r):void 0}function bc(e){e=e.filter(e=>e.length>0).sort((e,t)=>e.start===t.start?e.length-t.length:e.start-t.start);let t=[],n=0;for(;n=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?`_`+e:e}function Wc(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function Gc(e){return Wc(e.escapedText)}function Kc(e){let t=as(e.escapedText);return t?vt(t,$_):void 0}function qc(e){return e.valueDeclaration&&Su(e.valueDeclaration)?Gc(e.valueDeclaration.name):Wc(e.escapedName)}function Jc(e){let t=e.parent.parent;if(t){if(Ld(t))return Yc(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return Yc(t.declarationList.declarations[0]);break;case 245:let e=t.expression;switch(e.kind===227&&e.operatorToken.kind===64&&(e=e.left),e.kind){case 212:return e.name;case 213:let t=e.argumentExpression;if(Y(t))return t}break;case 218:return Yc(t.expression);case 257:if(Ld(t.statement)||q(t.statement))return Yc(t.statement);break}}}function Yc(e){let t=el(e);return t&&Y(t)?t:void 0}function Xc(e,t){return!!(Qc(e)&&Y(e.name)&&Gc(e.name)===Gc(t)||nA(e)&&F(e.declarationList.declarations,e=>Xc(e,t)))}function Zc(e){return e.name||Jc(e)}function Qc(e){return!!e.name}function $c(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:t}=e;if(t.kind===167)return t.right;break}case 214:case 227:{let t=e;switch(Eg(t)){case 1:case 4:case 5:case 3:return Ig(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 347:return Zc(e);case 341:return Jc(e);case 278:{let{expression:t}=e;return Y(t)?t:void 0}case 213:let t=e;if(jg(t))return t.argumentExpression}return e.name}function el(e){if(e!==void 0)return $c(e)||(Ak(e)||jk(e)||Uk(e)?tl(e):void 0)}function tl(e){if(e.parent){if(mj(e.parent)||bk(e.parent))return e.parent.name;if(Rk(e.parent)&&e===e.parent.right){if(Y(e.parent.left))return e.parent.left;if(Zx(e.parent.left))return Ig(e.parent.left)}else if(bA(e.parent)&&Y(e.parent.name))return e.parent.name}}function nl(e){if(ob(e))return E(e.modifiers,IO)}function rl(e){if(Qy(e,98303))return E(e.modifiers,Du)}function eee(e,t){if(e.name)if(Y(e.name)){let n=e.name.escapedText;return jl(e.parent,t).filter(e=>Yj(e)&&Y(e.name)&&e.name.escapedText===n)}else{let n=e.parent.parameters.indexOf(e);H.assert(n>-1,`Parameters should always be in their parents' parameter list`);let r=jl(e.parent,t).filter(Yj);if(n$j(e)&&e.typeParameters.some(e=>e.name.escapedText===n))}function sl(e){return ol(e,!1)}function cl(e){return ol(e,!0)}function ll(e){return!!Nl(e,Yj)}function ul(e){return Nl(e,Ij)}function dl(e){return Pl(e,rM)}function fl(e){return Nl(e,Rj)}function pl(e){return Nl(e,Bj)}function ml(e){return Nl(e,Bj,!0)}function hl(e){return Nl(e,Vj)}function gl(e){return Nl(e,Vj,!0)}function _l(e){return Nl(e,Hj)}function vl(e){return Nl(e,Hj,!0)}function tee(e){return Nl(e,Uj)}function yl(e){return Nl(e,Uj,!0)}function bl(e){return Nl(e,Wj,!0)}function xl(e){return Nl(e,Kj)}function Sl(e){return Nl(e,Kj,!0)}function Cl(e){return Nl(e,Jj)}function wl(e){return Nl(e,Zj)}function Tl(e){return Nl(e,Xj)}function El(e){return Nl(e,$j)}function Dl(e){return Nl(e,iM)}function Ol(e){let t=Nl(e,Qj);if(t&&t.typeExpression&&t.typeExpression.type)return t}function kl(e){let t=Nl(e,Qj);return!t&&FO(e)&&(t=y(il(e),e=>!!e.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function Al(e){let t=Tl(e);if(t&&t.typeExpression)return t.typeExpression.type;let n=Ol(e);if(n&&n.typeExpression){let e=n.typeExpression.type;if($O(e)){let t=y(e.members,GO);return t&&t.type}if(XO(e)||Aj(e))return e.type}}function jl(e,t){if(!l_(e))return c;let n=e.jsDoc?.jsDocCache;if(n===void 0||t){let r=u_(e,t);H.assert(r.length<2||r[0]!==r[1]),n=re(r,e=>Nj(e)?e.tags:e),t||(e.jsDoc??=[],e.jsDoc.jsDocCache=n)}return n}function Ml(e){return jl(e,!1)}function Nl(e,t,n){return y(jl(e,n),t)}function Pl(e,t){return Ml(e).filter(t)}function Fl(e,t){return Ml(e).filter(e=>e.kind===t)}function Il(e){return typeof e==`string`?e:e?.map(e=>e.kind===322?e.text:Ll(e)).join(``)}function Ll(e){return`{@${e.kind===325?`link`:e.kind===326?`linkcode`:`linkplain`} ${e.name?pm(e.name):``}${e.name&&(e.text===``||e.text.startsWith(`://`))?``:` `}${e.text}}`}function Rl(e){if(Fj(e)){if(Gj(e.parent)){let t=b_(e.parent);if(t&&u(t.tags))return re(t.tags,e=>$j(e)?e.typeParameters:void 0)}return c}if(t_(e))return H.assert(e.parent.kind===321),re(e.parent.tags,e=>$j(e)?e.typeParameters:void 0);if(e.typeParameters||oN(e)&&e.typeParameters)return e.typeParameters;if(ng(e)){let t=By(e);if(t.length)return t;let n=kl(e);if(n&&XO(n)&&n.typeParameters)return n.typeParameters}return c}function zl(e){return e.constraint?e.constraint:$j(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Bl(e){return e.kind===80||e.kind===81}function Vl(e){return e.kind===179||e.kind===178}function Hl(e){return Ck(e)&&!!(e.flags&64)}function Ul(e){return wk(e)&&!!(e.flags&64)}function Wl(e){return Tk(e)&&!!(e.flags&64)}function Gl(e){let t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function Kl(e){return Gl(e)&&!Jk(e)&&!!e.questionDotToken}function ql(e){return Kl(e.parent)&&e.parent.expression===e}function Jl(e){return!Gl(e.parent)||Kl(e.parent)||e!==e.parent.expression}function Yl(e){return e.kind===227&&e.operatorToken.kind===61}function Xl(e){return YO(e)&&Y(e.typeName)&&e.typeName.escapedText===`const`&&!e.typeArguments}function Zl(e){return BM(e,8)}function Ql(e){return Jk(e)&&!!(e.flags&64)}function $l(e){return e.kind===253||e.kind===252}function eu(e){return e.kind===281||e.kind===280}function tu(e){return e.kind===349||e.kind===342}function nu(e){return e>=167}function ru(e){return e>=0&&e<=166}function iu(e){return ru(e.kind)}function au(e){return qe(e,`pos`)&&qe(e,`end`)}function ou(e){return 9<=e&&e<=15}function su(e){return ou(e.kind)}function cu(e){switch(e.kind){case 211:case 210:case 14:case 219:case 232:return!0}return!1}function lu(e){return 15<=e&&e<=18}function uu(e){return lu(e.kind)}function du(e){let t=e.kind;return t===17||t===18}function fu(e){return HA(e)||KA(e)}function pu(e){switch(e.kind){case 277:return e.isTypeOnly||e.parent.parent.phaseModifier===156;case 275:return e.parent.phaseModifier===156;case 274:return e.phaseModifier===156;case 272:return e.isTypeOnly}return!1}function mu(e){switch(e.kind){case 282:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 279:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 281:return e.parent.isTypeOnly}return!1}function hu(e){return pu(e)||mu(e)}function gu(e){return K(e,hu)!==void 0}function _u(e){return e.kind===11||lu(e.kind)}function vu(e){return tO(e)||Y(e)}function yu(e){return Y(e)&&e.emitNode?.autoGenerate!==void 0}function bu(e){return vO(e)&&e.emitNode?.autoGenerate!==void 0}function xu(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function Su(e){return(RO(e)||Uu(e))&&vO(e.name)}function Cu(e){return Ck(e)&&vO(e.name)}function wu(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function Tu(e){return!!(yb(e)&31)}function Eu(e){return Tu(e)||e===126||e===164||e===129}function Du(e){return wu(e.kind)}function Ou(e){let t=e.kind;return t===167||t===80}function ku(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===168}function Au(e){let t=e.kind;return t===80||t===207||t===208}function ju(e){return!!e&&Iu(e.kind)}function Mu(e){return!!e&&(Iu(e.kind)||VO(e))}function Nu(e){return e&&Fu(e.kind)}function Pu(e){return e.kind===112||e.kind===97}function Fu(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function Iu(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return Fu(e)}}function Lu(e){return vj(e)||OA(e)||tA(e)&&ju(e.parent)}function Ru(e){let t=e.kind;return t===177||t===173||t===175||t===178||t===179||t===182||t===176||t===241}function zu(e){return e&&(e.kind===264||e.kind===232)}function Bu(e){return e&&(e.kind===178||e.kind===179)}function Vu(e){return RO(e)&&ib(e)}function Hu(e){return ng(e)&&jT(e)?(!Ag(e)||!Lb(e.expression))&&!Mg(e,!0):e.parent&&zu(e.parent)&&RO(e)&&!ib(e)}function Uu(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function Wu(e){return Du(e)||IO(e)}function Gu(e){let t=e.kind;return t===181||t===180||t===172||t===174||t===182||t===178||t===179||t===355}function Ku(e){return Gu(e)||Ru(e)}function qu(e){let t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function Ju(e){return Xx(e.kind)}function Yu(e){switch(e.kind){case 185:case 186:return!0}return!1}function Xu(e){if(e){let t=e.kind;return t===208||t===207}return!1}function Zu(e){let t=e.kind;return t===210||t===211}function Qu(e){let t=e.kind;return t===209||t===233}function $u(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function ed(e){return bA(e)||FO(e)||rd(e)||ad(e)}function td(e){return nd(e)||id(e)}function nd(e){switch(e.kind){case 207:case 211:return!0}return!1}function rd(e){switch(e.kind){case 209:case 304:case 305:case 306:return!0}return!1}function id(e){switch(e.kind){case 208:case 210:return!0}return!1}function ad(e){switch(e.kind){case 209:case 233:case 231:case 210:case 211:case 80:case 212:case 213:return!0}return kb(e,!0)}function od(e){let t=e.kind;return t===212||t===167||t===206}function sd(e){let t=e.kind;return t===212||t===167}function cd(e){return ld(e)||oT(e)}function ld(e){switch(e.kind){case 214:case 215:case 216:case 171:case 287:case 286:case 290:return!0;case 227:return e.operatorToken.kind===104;default:return!1}}function ud(e){return e.kind===214||e.kind===215}function dd(e){let t=e.kind;return t===229||t===15}function fd(e){return pd(Zl(e).kind)}function pd(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function md(e){return hd(Zl(e).kind)}function hd(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return pd(e)}}function gd(e){switch(e.kind){case 226:return!0;case 225:return e.operator===46||e.operator===47;default:return!1}}function _d(e){switch(e.kind){case 106:case 112:case 97:case 225:return!0;default:return su(e)}}function q(e){return vd(Zl(e).kind)}function vd(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return hd(e)}}function yd(e){let t=e.kind;return t===217||t===235}function bd(e,t){switch(e.kind){case 249:case 250:case 251:case 247:case 248:return!0;case 257:return t&&bd(e.statement,t)}return!1}function xd(e){return UA(e)||WA(e)}function nee(e){return F(e,xd)}function Sd(e){return!om(e)&&!UA(e)&&!Qy(e,32)&&!zp(e)}function Cd(e){return om(e)||UA(e)||Qy(e,32)}function wd(e){return e.kind===250||e.kind===251}function Td(e){return tA(e)||q(e)}function Ed(e){return tA(e)}function Dd(e){return xA(e)||q(e)}function Od(e){let t=e.kind;return t===269||t===268||t===80}function ree(e){let t=e.kind;return t===269||t===268}function kd(e){let t=e.kind;return t===80||t===268}function Ad(e){let t=e.kind;return t===276||t===275}function jd(e){return e.kind===268||e.kind===267}function Md(e){switch(e.kind){case 220:case 227:case 209:case 214:case 180:case 264:case 232:case 176:case 177:case 186:case 181:case 213:case 267:case 307:case 278:case 279:case 282:case 263:case 219:case 185:case 178:case 80:case 274:case 272:case 277:case 182:case 265:case 339:case 341:case 318:case 342:case 349:case 324:case 347:case 323:case 292:case 293:case 294:case 201:case 175:case 174:case 268:case 203:case 281:case 271:case 275:case 215:case 15:case 9:case 211:case 170:case 212:case 304:case 173:case 172:case 179:case 305:case 308:case 306:case 11:case 266:case 188:case 169:case 261:return!0;default:return!1}}function Nd(e){switch(e.kind){case 220:case 242:case 180:case 270:case 300:case 176:case 195:case 177:case 186:case 181:case 249:case 250:case 251:case 263:case 219:case 185:case 178:case 182:case 339:case 341:case 318:case 324:case 347:case 201:case 175:case 174:case 268:case 179:case 308:case 266:return!0;default:return!1}}function Pd(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function Fd(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function Id(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function Ld(e){return e.kind===169?e.parent&&e.parent.kind!==346||ng(e):Pd(e.kind)}function Rd(e){return Fd(e.kind)}function zd(e){return Id(e.kind)}function Bd(e){let t=e.kind;return Id(t)||Fd(t)||Vd(e)}function Vd(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!ph(e)}function Hd(e){let t=e.kind;return Id(t)||Fd(t)||t===242}function Ud(e){let t=e.kind;return t===284||t===167||t===80}function Wd(e){let t=e.kind;return t===110||t===80||t===212||t===296}function Gd(e){let t=e.kind;return t===285||t===295||t===286||t===12||t===289}function Kd(e){let t=e.kind;return t===292||t===294}function qd(e){let t=e.kind;return t===11||t===295}function Jd(e){let t=e.kind;return t===287||t===286}function iee(e){let t=e.kind;return t===287||t===286||t===290}function Yd(e){let t=e.kind;return t===297||t===298}function Xd(e){return e.kind>=310&&e.kind<=352}function Zd(e){return e.kind===321||e.kind===320||e.kind===322||df(e)||Qd(e)||Pj(e)||Fj(e)}function Qd(e){return e.kind>=328&&e.kind<=352}function $d(e){return e.kind===179}function ef(e){return e.kind===178}function tf(e){if(!l_(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function nf(e){return!!e.type}function rf(e){return!!e.initializer}function af(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 307:return!0;default:return!1}}function of(e){return e.kind===292||e.kind===294||qu(e)}function sf(e){return e.kind===184||e.kind===234}var cf=1073741823;function lf(e){let t=cf;for(let n of e){if(!n.length)continue;let e=0;for(;e0?n.parent.parameters[r-1]:void 0,a=t.text,o=i?de(Bs(a,Es(a,i.end+1,!1,!0)),zs(a,e.pos)):Bs(a,Es(a,e.pos,!1,!0));return F(o)&&mf(ze(o),t)}return!!d(n&&Jm(n,t),e=>mf(e,t))}var gf=[],_f=`tslib`,vf=160,yf=1e6,bf=500;function xf(e,t){let n=e.declarations;if(n){for(let e of n)if(e.kind===t)return e}}function Sf(e,t){return E(e.declarations||c,e=>e.kind===t)}function Cf(e){let t=new Map;if(e)for(let n of e)t.set(n.escapedName,n);return t}function wf(e){return(e.flags&33554432)!=0}function Tf(e){return!!(e.flags&1536)&&e.escapedName.charCodeAt(0)===34}var Ef=Df();function Df(){var e=``;let t=t=>e+=t;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(e,n)=>t(e),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&_s(e.charCodeAt(e.length-1)),writeLine:()=>e+=` `,increaseIndent:bt,decreaseIndent:bt,clear:()=>e=``}}function Of(e,t){return e.configFilePath!==t.configFilePath||aee(e,t)}function aee(e,t){return Af(e,t,tF)}function kf(e,t){return Af(e,t,rF)}function Af(e,t,n){return e!==t&&n.some(n=>!Pw(pC(e,n),pC(t,n)))}function jf(e,t){for(;;){let n=t(e);if(n===`quit`)return;if(n!==void 0)return n;if(vj(e))return;e=e.parent}}function Mf(e,t){let n=e.entries();for(let[e,r]of n){let n=t(r,e);if(n)return n}}function Nf(e,t){let n=e.keys();for(let e of n){let n=t(e);if(n)return n}}function Pf(e,t){e.forEach((e,n)=>{t.set(n,e)})}function Ff(e){let t=Ef.getText();try{return e(Ef),Ef.getText()}finally{Ef.clear(),Ef.writeKeyword(t)}}function If(e){return e.end-e.pos}function Lf(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Rf(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&&oee(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function zf(e){return e.resolvedModule}function Bf(e){return e.resolvedTypeReferenceDirective}function Vf(e,t,n,r,i){let a=t.getResolvedModule(e,n,r)?.alternateResult,o=a&&(VS(t.getCompilerOptions())===2?[G.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[a]]:[G.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,[a,a.includes(dR+`@types/`)?`@types/${QR(i)}`:i]]),s=o?SS(void 0,o[0],...o[1]):t.typesPackageExists(i)?SS(void 0,G.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,i,QR(i)):t.packageBundlesTypes(i)?SS(void 0,G.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):SS(void 0,G.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,QR(i));return s&&(s.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),s}function Hf(e){let t=Sw(e.fileName),n=e.packageJsonScope,r=t===`.ts`?`.mts`:t===`.js`?`.mjs`:void 0,i=n&&!n.contents.packageJsonContent.type?r?SS(void 0,G.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,lo(n.packageDirectory,`package.json`)):SS(void 0,G.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,lo(n.packageDirectory,`package.json`)):r?SS(void 0,G.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,r):SS(void 0,G.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return i.repopulateInfo=()=>!0,i}function oee(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version&&e.peerDependencies===t.peerDependencies}function Uf({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Wf(e){return`${Uf(e)}@${e.version}${e.peerDependencies??``}`}function Gf(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 Kf(e,t,n,r){H.assert(e.length===t.length);for(let i=0;i=0),fs(t)[e]}function ep(e){let t=Yf(e),n=gs(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function tp(e,t){H.assert(e>=0);let n=fs(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{let e=n[r],t=n[r+1]-1;for(H.assert(ys(i.charCodeAt(t)));e<=t&&ys(i.charCodeAt(t));)t--;return t}}function np(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function rp(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function ip(e){return!rp(e)}function ap(e,t){return PO(e)?t===e.expression:VO(e)?t===e.modifiers:LO(e)?t===e.initializer:RO(e)?t===e.questionToken&&Vu(e):mj(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||op(e.modifiers,t,Wu):hj(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||op(e.modifiers,t,Wu):BO(e)?t===e.exclamationToken:HO(e)?t===e.typeParameters||t===e.type||op(e.typeParameters,t,PO):UO(e)?t===e.typeParameters||op(e.typeParameters,t,PO):WO(e)?t===e.typeParameters||t===e.type||op(e.typeParameters,t,PO):AA(e)?t===e.modifiers||op(e.modifiers,t,Wu):!1}function op(e,t,n){return!e||mt(t)||!n(t)?!1:C(e,t)}function sp(e,t,n){if(t===void 0||t.length===0)return e;let r=0;for(;r[`${gs(e,t.range.end).line}`,t])),r=new Map;return{getUnusedExpectations:i,markUsed:a};function i(){return $e(n.entries()).filter(([e,t])=>t.type===0&&!r.get(e)).map(([e,t])=>t)}function a(e){return n.has(`${e}`)?(r.set(`${e}`,!0),!0):!1}}function _p(e,t,n){if(rp(e))return e.pos;if(Xd(e)||e.kind===12)return Es((t??Yf(e)).text,e.pos,!1,!0);if(n&&tf(e))return _p(e.jsDoc[0],t);if(e.kind===353){t??=Yf(e);let r=Pe(lM(e,t));if(r)return _p(r,t,n)}return Es((t??Yf(e)).text,e.pos,!1,!1,ag(e))}function vp(e,t){let n=!rp(e)&&VN(e)?b(e.modifiers,IO):void 0;return n?Es((t||Yf(e)).text,n.end):_p(e,t)}function yp(e,t){let n=!rp(e)&&VN(e)&&e.modifiers?ze(e.modifiers):void 0;return n?Es((t||Yf(e)).text,n.end):_p(e,t)}function bp(e,t,n=!1){return Tp(e.text,t,n)}function see(e){return!!K(e,bj)}function xp(e){return!!(WA(e)&&e.exportClause&&BA(e.exportClause)&&wp(e.exportClause.name))}function Sp(e){return e.kind===11?e.text:Wc(e.escapedText)}function Cp(e){return e.kind===11?Uc(e.text):e.escapedText}function wp(e){return(e.kind===11?e.text:e.escapedText)===`default`}function Tp(e,t,n=!1){if(rp(t))return``;let r=e.substring(n?t.pos:Es(e,t.pos),t.end);return see(t)&&(r=r.split(/\r\n|\n|\r/).map(e=>e.replace(/^\s*\*/,``).trimStart()).join(` `)),r}function Ep(e,t=!1){return bp(Yf(e),e,t)}function Dp(e){return e.pos}function Op(e,t){return We(e,t,Dp,It)}function kp(e){let t=e.emitNode;return t&&t.flags||0}function Ap(e){let t=e.emitNode;return t&&t.internalFlags||0}var jp=kt(()=>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`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),Iterator:new Map(Object.entries({es2015:c})),AsyncIterator:new Map(Object.entries({es2015:c})),ArrayBuffer:new Map(Object.entries({es2024:[`maxByteLength`,`resizable`,`resize`,`detached`,`transfer`,`transferToFixedLength`]})),Atomics:new Map(Object.entries({es2017:[`add`,`and`,`compareExchange`,`exchange`,`isLockFree`,`load`,`or`,`store`,`sub`,`wait`,`notify`,`xor`],es2024:[`waitAsync`],esnext:[`pause`]})),SharedArrayBuffer:new Map(Object.entries({es2017:[`byteLength`,`slice`],es2024:[`growable`,`maxByteLength`,`grow`]})),AsyncIterable:new Map(Object.entries({es2018:c})),AsyncIterableIterator:new Map(Object.entries({es2018:c})),AsyncGenerator:new Map(Object.entries({es2018:c})),AsyncGeneratorFunction:new Map(Object.entries({es2018:c})),RegExp:new Map(Object.entries({es2015:[`flags`,`sticky`,`unicode`],es2018:[`dotAll`],es2024:[`unicodeSets`]})),Reflect:new Map(Object.entries({es2015:[`apply`,`construct`,`defineProperty`,`deleteProperty`,`get`,`getOwnPropertyDescriptor`,`getPrototypeOf`,`has`,`isExtensible`,`ownKeys`,`preventExtensions`,`set`,`setPrototypeOf`]})),ArrayConstructor:new Map(Object.entries({es2015:[`from`,`of`],esnext:[`fromAsync`]})),ObjectConstructor:new Map(Object.entries({es2015:[`assign`,`getOwnPropertySymbols`,`keys`,`is`,`setPrototypeOf`],es2017:[`values`,`entries`,`getOwnPropertyDescriptors`],es2019:[`fromEntries`],es2022:[`hasOwn`],es2024:[`groupBy`]})),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`],esnext:[`f16round`]})),Map:new Map(Object.entries({es2015:[`entries`,`keys`,`values`]})),MapConstructor:new Map(Object.entries({es2024:[`groupBy`]})),Set:new Map(Object.entries({es2015:[`entries`,`keys`,`values`],esnext:[`union`,`intersection`,`difference`,`symmetricDifference`,`isSubsetOf`,`isSupersetOf`,`isDisjointFrom`]})),PromiseConstructor:new Map(Object.entries({es2015:[`all`,`race`,`reject`,`resolve`],es2020:[`allSettled`],es2021:[`any`],es2024:[`withResolvers`]})),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`],es2024:[`isWellFormed`,`toWellFormed`]})),StringConstructor:new Map(Object.entries({es2015:[`fromCodePoint`,`raw`]})),DateTimeFormat:new Map(Object.entries({es2017:[`formatToParts`]})),Promise:new Map(Object.entries({es2015:c,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`],esnext:[`metadata`,`dispose`,`asyncDispose`]})),DataView:new Map(Object.entries({es2020:[`setBigInt64`,`setBigUint64`,`getBigInt64`,`getBigUint64`],esnext:[`setFloat16`,`getFloat16`]})),BigInt:new Map(Object.entries({es2020:c})),RelativeTimeFormat:new Map(Object.entries({es2020:[`format`,`formatToParts`,`resolvedOptions`]})),Int8Array:new Map(Object.entries({es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),Uint8Array:new Map(Object.entries({es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),Uint8ClampedArray:new Map(Object.entries({es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),Int16Array:new Map(Object.entries({es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),Uint16Array:new Map(Object.entries({es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),Int32Array:new Map(Object.entries({es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),Uint32Array:new Map(Object.entries({es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),Float16Array:new Map(Object.entries({esnext:c})),Float32Array:new Map(Object.entries({es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),Float64Array:new Map(Object.entries({es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),BigInt64Array:new Map(Object.entries({es2020:c,es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),BigUint64Array:new Map(Object.entries({es2020:c,es2022:[`at`],es2023:[`findLastIndex`,`findLast`,`toReversed`,`toSorted`,`toSpliced`,`with`]})),Error:new Map(Object.entries({es2022:[`cause`]}))}))),Mp=(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))(Mp||{});function Np(e,t,n){if(t&&Pp(e,n))return bp(t,e);switch(e.kind){case 11:{let t=n&2?Xv:n&1||kp(e)&16777216?Wv:Kv;return e.singleQuote?`'`+t(e.text,39)+`'`:`"`+t(e.text,34)+`"`}case 15:case 16:case 17:case 18:{let t=n&1||kp(e)&16777216?Wv:Kv,r=e.rawText??Bv(t(e.text,96));switch(e.kind){case 15:return"`"+r+"`";case 16:return"`"+r+"${";case 17:return`}`+r+"${";case 18:return`}`+r+"`"}break}case 9:case 10:return e.text;case 14:return n&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?` /`:`/`):e.text}return H.fail(`Literal kind '${e.kind}' not accounted for.`)}function Pp(e,t){if(kv(e)||!e.parent||t&4&&e.isUnterminated)return!1;if($D(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!eO(e)}function Fp(e){return gt(e)?`"${Wv(e)}"`:``+e}function Ip(e){return eo(e).replace(/^(\d)/,`_$1`).replace(/\W/g,`_`)}function Lp(e){return(Ic(e)&7)!=0||Rp(e)}function Rp(e){let t=Dv(e);return t.kind===261&&t.parent.kind===300}function zp(e){return DA(e)&&(e.name.kind===11||Wp(e))}function Bp(e){return DA(e)&&e.name.kind===11}function Vp(e){return DA(e)&&tO(e.name)}function Hp(e){return DA(e)||Y(e)}function Up(e){return cee(e.valueDeclaration)}function cee(e){return!!e&&e.kind===268&&!e.body}function lee(e){return e.kind===308||e.kind===268||Mu(e)}function Wp(e){return!!(e.flags&2048)}function Gp(e){return zp(e)&&Kp(e)}function Kp(e){switch(e.parent.kind){case 308:return yP(e.parent);case 269:return zp(e.parent.parent)&&vj(e.parent.parent.parent)&&!yP(e.parent.parent.parent)}return!1}function qp(e){return e.declarations?.find(e=>!Gp(e)&&!(DA(e)&&Wp(e)))}function Jp(e){return e===1||100<=e&&e<=199}function Yp(e,t){return yP(e)||Jp(BS(t))&&!!e.commonJsModuleIndicator}function Xp(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:!!(sC(t,`alwaysStrict`)||PM(e.statements)||yP(e)||US(t))}function Zp(e){return!!(e.flags&33554432)||Qy(e,128)}function Qp(e,t){switch(e.kind){case 308:case 270:case 300:case 268:case 249:case 250:case 251:case 177:case 175:case 178:case 179:case 263:case 219:case 220:case 173:case 176:return!0;case 242:return!Mu(t)}return!1}function $p(e){switch(H.type(e),e.kind){case 339:case 347:case 324:return!0;default:return em(e)}}function em(e){switch(H.type(e),e.kind){case 180:case 181:case 174:case 182:case 185:case 186:case 318:case 264:case 232:case 265:case 266:case 346:case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function tm(e){switch(e.kind){case 273:case 272:return!0;default:return!1}}function nm(e){return tm(e)||lg(e)}function rm(e){return tm(e)||dg(e)}function im(e){switch(e.kind){case 273:case 272:case 244:case 264:case 263:case 268:case 266:case 265:case 267:return!0;default:return!1}}function am(e){return om(e)||DA(e)||hk(e)||Bm(e)}function om(e){return tm(e)||WA(e)}function sm(e){return K(e.parent,e=>!!(xz(e)&1))}function cm(e){return K(e.parent,e=>Qp(e,e.parent))}function uee(e,t){let n=cm(e);for(;n;)t(n),n=cm(n)}function lm(e){return!e||If(e)===0?`(Missing)`:Ep(e)}function dee(e){return e.declaration?lm(e.declaration.parameters[0].name):void 0}function um(e){return e.kind===168&&!uv(e.expression)}function dm(e){switch(e.kind){case 80:case 81:return e.emitNode?.autoGenerate?void 0:e.escapedText;case 11:case 9:case 10:case 15:return Uc(e.text);case 168:return uv(e.expression)?Uc(e.expression.text):void 0;case 296:return ET(e);default:return H.assertNever(e)}}function fm(e){return H.checkDefined(dm(e))}function pm(e){switch(e.kind){case 110:return`this`;case 81:case 80:return If(e)===0?Gc(e):Ep(e);case 167:return pm(e.left)+`.`+pm(e.right);case 212:return Y(e.name)||vO(e.name)?pm(e.expression)+`.`+pm(e.name):H.assertNever(e.name);case 312:return pm(e.left)+`#`+pm(e.right);case 296:return pm(e.namespace)+`:`+pm(e.name);default:return H.assertNever(e)}}function mm(e,t,...n){return gm(Yf(e),e,t,...n)}function hm(e,t,n,...r){let i=Es(e.text,t.pos);return vS(e,i,t.end-i,n,...r)}function gm(e,t,n,...r){let i=Om(e,t);return vS(e,i.start,i.length,n,...r)}function _m(e,t,n,r){let i=Om(e,t);return bm(e,i.start,i.length,n,r)}function vm(e,t,n,r){let i=Es(e.text,t.pos);return bm(e,i,t.end-i,n,r)}function ym(e,t,n){H.assertGreaterThanOrEqual(t,0),H.assertGreaterThanOrEqual(n,0),H.assertLessThanOrEqual(t,e.length),H.assertLessThanOrEqual(t+n,e.length)}function bm(e,t,n,r,i){return ym(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i,canonicalHead:r.canonicalHead}}function xm(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function Sm(e){return typeof e.messageText==`string`?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Cm(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function wm(e,...t){return{code:e.code,messageText:yS(e,...t)}}function Tm(e,t){let n=Gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),Sc(n.getTokenStart(),n.getTokenEnd())}function Em(e,t){let n=Gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function Dm(e,t){let n=Es(e.text,t.pos);if(t.body&&t.body.kind===242){let{line:r}=gs(e,t.body.pos),{line:i}=gs(e,t.body.end);if(r0?t.statements[0].pos:t.end);case 254:case 230:return Tm(e,Es(e.text,t.pos));case 239:return Tm(e,Es(e.text,t.expression.end));case 351:return Tm(e,Es(e.text,t.tagName.pos));case 177:{let n=t,r=Es(e.text,n.pos),i=Gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,r),a=i.scan();for(;a!==137&&a!==1;)a=i.scan();return Sc(r,i.getTokenEnd())}}if(n===void 0)return Tm(e,t.pos);H.assert(!Nj(n));let r=rp(n),i=r||nO(t)?n.pos:Es(e.text,n.pos);return r?(H.assert(i===n.pos,`This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809`),H.assert(i===n.end,`This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809`)):(H.assert(i>=n.pos,`This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809`),H.assert(i<=n.end,`This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809`)),Sc(i,n.end)}function km(e){return e.kind===308&&!Am(e)}function Am(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function jm(e){return e.scriptKind===6}function Mm(e){return!!(Pc(e)&4096)}function Nm(e){return!!(Pc(e)&8&&!kc(e,e.parent))}function Pm(e){return(Ic(e)&7)==6}function Fm(e){return(Ic(e)&7)==4}function Im(e){return(Ic(e)&7)==2}function Lm(e){let t=Ic(e)&7;return t===2||t===4||t===6}function Rm(e){return(Ic(e)&7)==1}function zm(e){return e.kind===214&&e.expression.kind===108}function Bm(e){if(e.kind!==214)return!1;let t=e.expression;return t.kind===102||Yk(t)&&t.keywordToken===102&&t.name.escapedText===`defer`}function Vm(e){return Yk(e)&&e.keywordToken===102&&e.name.escapedText===`meta`}function Hm(e){return hk(e)&&mk(e.argument)&&tO(e.argument.literal)}function Um(e){return e.kind===245&&e.expression.kind===11}function Wm(e){return!!(kp(e)&2097152)}function Gm(e){return Wm(e)&&SA(e)}function Km(e){return Y(e.name)&&!e.initializer}function qm(e){return Wm(e)&&nA(e)&&v(e.declarationList.declarations,Km)}function Jm(e,t){return e.kind===12?void 0:zs(t.text,e.pos)}function Ym(e,t){return E(e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?de(Bs(t,e.pos),zs(t,e.pos)):zs(t,e.pos),n=>n.end<=e.end&&t.charCodeAt(n.pos+1)===42&&t.charCodeAt(n.pos+2)===42&&t.charCodeAt(n.pos+3)!==47)}var Xm=/^\/\/\/\s*/,Zm=/^\/\/\/\s*/,Qm=/^\/\/\/\s*/,fee=/^\/\/\/\s*/,pee=/^\/\/\/\s*/,$m=/^\/\/\/\s*/;function eh(e){if(183<=e.kind&&e.kind<=206)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==223;case 234:return th(e);case 169:return e.parent.kind===201||e.parent.kind===196;case 80:(e.parent.kind===167&&e.parent.right===e||e.parent.kind===212&&e.parent.name===e)&&(e=e.parent),H.assert(e.kind===80||e.kind===167||e.kind===212,`'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.`);case 167:case 212:case 110:{let{parent:t}=e;if(t.kind===187)return!1;if(t.kind===206)return!t.isTypeOf;if(183<=t.kind&&t.kind<=206)return!0;switch(t.kind){case 234:return th(t);case 169:return e===t.constraint;case 346:return e===t.constraint;case 173:case 172:case 170:case 261:return e===t.type;case 263:case 219:case 220:case 177:case 175:case 174:case 178:case 179:return e===t.type;case 180:case 181:case 182:return e===t.type;case 217:return e===t.type;case 214:case 215:case 216:return C(t.typeArguments,e)}}}return!1}function th(e){return rM(e.parent)||Ij(e.parent)||fj(e.parent)&&!jb(e)}function nh(e,t){return n(e);function n(e){switch(e.kind){case 254:return t(e);case 270:case 242:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 297:case 298:case 257:case 259:case 300:return pP(e,n)}}}function rh(e,t){return n(e);function n(e){switch(e.kind){case 230:t(e);let r=e.expression;r&&n(r);return;case 267:case 265:case 268:case 266:return;default:if(ju(e)){if(e.name&&e.name.kind===168){n(e.name.expression);return}}else eh(e)||pP(e,n)}}}function ih(e){if(e&&e.kind===189)return e.elementType;if(e&&e.kind===184)return Be(e.typeArguments)}function ah(e){switch(e.kind){case 265:case 264:case 232:case 188:return e.members;case 211:return e.properties}}function oh(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function sh(e){return e.parent.kind===262&&e.parent.parent.kind===244}function ch(e){return ng(e)?Sk(e.parent)&&Rk(e.parent.parent)&&Eg(e.parent.parent)===2||lh(e.parent):!1}function lh(e){return ng(e)?Rk(e)&&Eg(e)===1:!1}function uh(e){return(bA(e)?Im(e)&&Y(e.name)&&sh(e):RO(e)?ab(e)&&eb(e):LO(e)&&ab(e))||lh(e)}function dh(e){switch(e.kind){case 175:case 174:case 177:case 178:case 179:case 263:case 219:return!0}return!1}function fh(e,t){for(;;){if(t&&t(e),e.statement.kind!==257)return e.statement;e=e.statement}}function ph(e){return e&&e.kind===242&&ju(e.parent)}function mh(e){return e&&e.kind===175&&e.parent.kind===211}function hh(e){return(e.kind===175||e.kind===178||e.kind===179)&&(e.parent.kind===211||e.parent.kind===232)}function mee(e){return e&&e.kind===1}function hee(e){return e&&e.kind===0}function gh(e,t,n,r){return d(e?.properties,e=>{if(!mj(e))return;let i=dm(e.name);return t===i||r&&r===i?n(e):void 0})}function _h(e){if(e&&e.statements.length){let t=e.statements[0].expression;return vt(t,Sk)}}function vh(e,t,n){return yh(e,t,e=>xk(e.initializer)?y(e.initializer.elements,e=>tO(e)&&e.text===n):void 0)}function yh(e,t,n){return gh(_h(e),t,n)}function bh(e){return K(e.parent,ju)}function xh(e){return K(e.parent,Nu)}function Sh(e){return K(e.parent,zu)}function Ch(e){return K(e.parent,e=>zu(e)||ju(e)?`quit`:VO(e))}function wh(e){return K(e.parent,Mu)}function Th(e){let t=K(e.parent,e=>zu(e)?`quit`:IO(e));return t&&zu(t.parent)?Sh(t.parent):Sh(t??e)}function Eh(e,t,n){for(H.assert(e.kind!==308);;){if(e=e.parent,!e)return H.fail();switch(e.kind){case 168:if(n&&zu(e.parent.parent))return e;e=e.parent.parent;break;case 171:e.parent.kind===170&&Ru(e.parent.parent)?e=e.parent.parent:Ru(e.parent)&&(e=e.parent);break;case 220:if(!t)continue;case 263:case 219:case 268:case 176:case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 180:case 181:case 182:case 267:case 308:return e}}}function Dh(e){switch(e.kind){case 220:case 263:case 219:case 173:return!0;case 242:switch(e.parent.kind){case 177:case 175:case 178:case 179:return!0;default:return!1}default:return!1}}function Oh(e){return Y(e)&&(CA(e.parent)||SA(e.parent))&&e.parent.name===e&&(e=e.parent),vj(Eh(e,!0,!1))}function kh(e){let t=Eh(e,!1,!1);if(t)switch(t.kind){case 177:case 263:case 219:return t}}function Ah(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 168:e=e.parent;break;case 263:case 219:case 220:if(!t)continue;case 173:case 172:case 175:case 174:case 177:case 178:case 179:case 176:return e;case 171:e.parent.kind===170&&Ru(e.parent.parent)?e=e.parent.parent:Ru(e.parent)&&(e=e.parent);break}}}function jh(e){if(e.kind===219||e.kind===220){let t=e,n=e.parent;for(;n.kind===218;)t=n,n=n.parent;if(n.kind===214&&n.expression===t)return n}}function Mh(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function Nh(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===110}function Ph(e){return!!e&&bA(e)&&e.initializer?.kind===110}function Fh(e){return!!e&&(hj(e)||mj(e))&&Rk(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function Ih(e){switch(e.kind){case 184:return e.typeName;case 234:return Mb(e.expression)?e.expression:void 0;case 80:case 167:return e}}function Lh(e){switch(e.kind){case 216:return e.tag;case 287:case 286:return e.tagName;case 227:return e.right;case 290:return e;default:return e.expression}}function Rh(e,t,n,r){if(e&&Qc(t)&&vO(t.name))return!1;switch(t.kind){case 264:return!0;case 232:return!e;case 173:return n!==void 0&&(e?CA(n):zu(n)&&!nb(t)&&!rb(t));case 178:case 179:case 175:return t.body!==void 0&&n!==void 0&&(e?CA(n):zu(n));case 170:return e?n!==void 0&&n.body!==void 0&&(n.kind===177||n.kind===175||n.kind===179)&&Ay(n)!==t&&r!==void 0&&r.kind===264:!1}return!1}function zh(e,t,n,r){return ob(t)&&Rh(e,t,n,r)}function Bh(e,t,n,r){return zh(e,t,n,r)||Vh(e,t,n)}function Vh(e,t,n){switch(t.kind){case 264:return F(t.members,r=>Bh(e,r,t,n));case 232:return!e&&F(t.members,r=>Bh(e,r,t,n));case 175:case 179:case 177:return F(t.parameters,r=>zh(e,r,t,n));default:return!1}}function Hh(e,t){if(zh(e,t))return!0;let n=Dy(t);return!!n&&Vh(e,n,t)}function Uh(e,t,n){let r;if(Bu(t)){let{firstAccessor:e,secondAccessor:i,setAccessor:a}=Iy(n.members,t),o=ob(e)?e:i&&ob(i)?i:void 0;if(!o||t!==o)return!1;r=a?.parameters}else BO(t)&&(r=t.parameters);if(zh(e,t,n))return!0;if(r){for(let i of r)if(!jy(i)&&zh(e,i,t,n))return!0}return!1}function Wh(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return Wh(e.textSourceNode);case 15:return e.text===``}return!1}return e.text===``}function Gh(e){let{parent:t}=e;return t.kind===287||t.kind===286||t.kind===288?t.tagName===e:!1}function Kh(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 210:case 211:case 212:case 213:case 214:case 215:case 216:case 235:case 217:case 239:case 236:case 218:case 219:case 232:case 220:case 223:case 221:case 222:case 225:case 226:case 227:case 228:case 231:case 229:case 233:case 285:case 286:case 289:case 230:case 224:return!0;case 237:return!Bm(e.parent)||e.parent.expression!==e;case 234:return!fj(e.parent)&&!Ij(e.parent);case 167:for(;e.parent.kind===167;)e=e.parent;return e.parent.kind===187||df(e.parent)||xj(e.parent)||Sj(e.parent)||Gh(e);case 312:for(;Sj(e.parent);)e=e.parent;return e.parent.kind===187||df(e.parent)||xj(e.parent)||Sj(e.parent)||Gh(e);case 81:return Rk(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===187||df(e.parent)||xj(e.parent)||Sj(e.parent)||Gh(e))return!0;case 9:case 10:case 11:case 15:case 110:return qh(e);default:return!1}}function qh(e){let{parent:t}=e;switch(t.kind){case 261:case 170:case 173:case 172:case 307:case 304:case 209:return t.initializer===e;case 245:case 246:case 247:case 248:case 254:case 255:case 256:case 297:case 258:return t.expression===e;case 249:let n=t;return n.initializer===e&&n.initializer.kind!==262||n.condition===e||n.incrementor===e;case 250:case 251:let r=t;return r.initializer===e&&r.initializer.kind!==262||r.expression===e;case 217:case 235:return e===t.expression;case 240:return e===t.expression;case 168:return e===t.expression;case 171:case 295:case 294:case 306:return!0;case 234:return t.expression===e&&!eh(t);case 305:return t.objectAssignmentInitializer===e;case 239:return e===t.expression;default:return Kh(t)}}function Jh(e){for(;e.kind===167||e.kind===80;)e=e.parent;return e.kind===187}function Yh(e){return BA(e)&&!!e.parent.moduleSpecifier}function Xh(e){return e.kind===272&&e.moduleReference.kind===284}function Zh(e){return H.assert(Xh(e)),e.moduleReference.expression}function Qh(e){return lg(e)&&eS(e.initializer).arguments[0]}function $h(e){return e.kind===272&&e.moduleReference.kind!==284}function eg(e){return e?.kind===308}function tg(e){return ng(e)}function ng(e){return!!e&&!!(e.flags&524288)}function rg(e){return!!e&&!!(e.flags&134217728)}function ig(e){return!jm(e)}function ag(e){return!!e&&!!(e.flags&16777216)}function og(e){return YO(e)&&Y(e.typeName)&&e.typeName.escapedText===`Object`&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function sg(e,t){if(e.kind!==214)return!1;let{expression:n,arguments:r}=e;if(n.kind!==80||n.escapedText!==`require`||r.length!==1)return!1;let i=r[0];return!t||uf(i)}function cg(e){return ug(e,!1)}function lg(e){return ug(e,!0)}function gee(e){return bk(e)&&lg(e.parent.parent)}function ug(e,t){return bA(e)&&!!e.initializer&&sg(t?eS(e.initializer):e.initializer,!0)}function dg(e){return nA(e)&&e.declarationList.declarations.length>0&&v(e.declarationList.declarations,e=>cg(e))}function fg(e){return e===39||e===34}function pg(e,t){return bp(t,e).charCodeAt(0)===34}function mg(e){return Rk(e)||Zx(e)||Y(e)||Tk(e)}function hg(e){return ng(e)&&e.initializer&&Rk(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&Mb(e.name)&&xg(e.name,e.initializer.left)?e.initializer.right:e.initializer}function gg(e){let t=hg(e);return t&&vg(t,Lb(e.name))}function _ee(e,t){return d(e.properties,e=>mj(e)&&Y(e.name)&&e.name.escapedText===`value`&&e.initializer&&vg(e.initializer,t))}function _g(e){if(e&&e.parent&&Rk(e.parent)&&e.parent.operatorToken.kind===64){let t=Lb(e.parent.left);return vg(e.parent.right,t)||vee(e.parent.left,e.parent.right,t)}if(e&&Tk(e)&&Dg(e)){let t=_ee(e.arguments[2],e.arguments[1].text===`prototype`);if(t)return t}}function vg(e,t){if(Tk(e)){let t=F_(e.expression);return t.kind===219||t.kind===220?e:void 0}if(e.kind===219||e.kind===232||e.kind===220||Sk(e)&&(e.properties.length===0||t))return e}function vee(e,t,n){let r=Rk(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&vg(t.right,n);if(r&&xg(e,t.left))return r}function yg(e){let t=bA(e.parent)?e.parent.name:Rk(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&vg(e.right,Lb(t))&&Mb(t)&&xg(t,e.left)}function bg(e){if(Rk(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Rk(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Y(t.left))return t.left}else if(bA(e.parent))return e.parent.name}function xg(e,t){return hv(e)&&hv(t)?gv(e)===gv(t):Bl(e)&&Og(t)&&(t.expression.kind===110||Y(t.expression)&&(t.expression.escapedText===`window`||t.expression.escapedText===`self`||t.expression.escapedText===`global`))?xg(e,Ng(t)):Og(e)&&Og(t)?Lg(e)===Lg(t)&&xg(e.expression,t.expression):!1}function Sg(e){for(;kb(e,!0);)e=e.right;return e}function Cg(e){return Y(e)&&e.escapedText===`exports`}function wg(e){return Y(e)&&e.escapedText===`module`}function Tg(e){return(Ck(e)||kg(e))&&wg(e.expression)&&Lg(e)===`exports`}function Eg(e){let t=Pg(e);return t===5||ng(e)?t:0}function Dg(e){return u(e.arguments)===3&&Ck(e.expression)&&Y(e.expression.expression)&&Gc(e.expression.expression)===`Object`&&Gc(e.expression.name)===`defineProperty`&&uv(e.arguments[1])&&Mg(e.arguments[0],!0)}function Og(e){return Ck(e)||kg(e)}function kg(e){return wk(e)&&uv(e.argumentExpression)}function Ag(e,t){return Ck(e)&&(!t&&e.expression.kind===110||Y(e.name)&&Mg(e.expression,!0))||jg(e,t)}function jg(e,t){return kg(e)&&(!t&&e.expression.kind===110||Mb(e.expression)||Ag(e.expression,!0))}function Mg(e,t){return Mb(e)||Ag(e,t)}function Ng(e){return Ck(e)?e.name:e.argumentExpression}function Pg(e){if(Tk(e)){if(!Dg(e))return 0;let t=e.arguments[0];return Cg(t)||Tg(t)?8:Ag(t)&&Lg(t)===`prototype`?9:7}return e.operatorToken.kind!==64||!Zx(e.left)||Fg(Sg(e))?0:Mg(e.left.expression,!0)&&Lg(e.left)===`prototype`&&Sk(zg(e))?6:Rg(e.left)}function Fg(e){return Pk(e)&&$D(e.expression)&&e.expression.text===`0`}function Ig(e){if(Ck(e))return e.name;let t=F_(e.argumentExpression);return $D(t)||uf(t)?t:e}function Lg(e){let t=Ig(e);if(t){if(Y(t))return t.escapedText;if(uf(t)||$D(t))return Uc(t.text)}}function Rg(e){if(e.expression.kind===110)return 4;if(Tg(e))return 2;if(Mg(e.expression,!0)){if(Lb(e.expression))return 3;let t=e;for(;!Y(t.expression);)t=t.expression;let n=t.expression;if((n.escapedText===`exports`||n.escapedText===`module`&&Lg(t)===`exports`)&&Ag(e))return 1;if(Mg(e,!0)||wk(e)&&pv(e))return 5}return 0}function zg(e){for(;Rk(e.right);)e=e.right;return e.right}function Bg(e){return Rk(e)&&Eg(e)===3}function Vg(e){return ng(e)&&e.parent&&e.parent.kind===245&&(!wk(e)||kg(e))&&!!Ol(e.parent)}function Hg(e,t){let{valueDeclaration:n}=e;(!n||!(t.flags&33554432&&!ng(t)&&!(n.flags&33554432))&&mg(n)&&!mg(t)||n.kind!==t.kind&&Hp(n))&&(e.valueDeclaration=t)}function Ug(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===263||bA(t)&&t.initializer&&ju(t.initializer)}function Wg(e){switch(e?.kind){case 261:case 209:case 273:case 279:case 272:case 274:case 281:case 275:case 282:case 277:case 206:return!0}return!1}function Gg(e){switch(e.kind){case 261:case 209:return K(e.initializer,e=>sg(e,!0))?.arguments[0];case 273:case 279:case 352:return vt(e.moduleSpecifier,uf);case 272:return vt(vt(e.moduleReference,ZA)?.expression,uf);case 274:case 281:return vt(e.parent.moduleSpecifier,uf);case 275:case 282:return vt(e.parent.parent.moduleSpecifier,uf);case 277:return vt(e.parent.parent.parent.moduleSpecifier,uf);case 206:return Hm(e)?e.argument.literal:void 0;default:H.assertNever(e)}}function Kg(e){return qg(e)||H.failBadSyntaxKind(e.parent)}function qg(e){switch(e.parent.kind){case 273:case 279:case 352:return e.parent;case 284:return e.parent.parent;case 214:return Bm(e.parent)||sg(e.parent,!1)?e.parent:void 0;case 202:if(!tO(e))break;return vt(e.parent.parent,hk);default:return}}function Jg(e,t){return!!t.rewriteRelativeImportExtensions&&Wa(e)&&!OP(e)&&ew(e)}function Yg(e){switch(e.kind){case 273:case 279:case 352:return e.moduleSpecifier;case 272:return e.moduleReference.kind===284?e.moduleReference.expression:void 0;case 206:return Hm(e)?e.argument.literal:void 0;case 214:return e.arguments[0];case 268:return e.name.kind===11?e.name:void 0;default:return H.assertNever(e)}}function Xg(e){switch(e.kind){case 273:return e.importClause&&vt(e.importClause.namedBindings,zA);case 272:return e;case 279:return e.exportClause&&vt(e.exportClause,BA);default:return H.assertNever(e)}}function Zg(e){return(e.kind===273||e.kind===352)&&!!e.importClause&&!!e.importClause.name}function Qg(e,t){if(e.name){let n=t(e);if(n)return n}if(e.namedBindings){let n=zA(e.namedBindings)?t(e.namedBindings):d(e.namedBindings.elements,t);if(n)return n}}function $g(e){switch(e.kind){case 170:case 175:case 174:case 305:case 304:case 173:case 172:return e.questionToken!==void 0}return!1}function e_(e){let t=Aj(e)?Pe(e.parameters):void 0,n=vt(t&&t.name,Y);return!!n&&n.escapedText===`new`}function t_(e){return e.kind===347||e.kind===339||e.kind===341}function n_(e){return t_(e)||TA(e)}function r_(e){return iA(e)&&Rk(e.expression)&&e.expression.operatorToken.kind===64?Sg(e.expression):void 0}function i_(e){return iA(e)&&Rk(e.expression)&&Eg(e.expression)!==0&&Rk(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function a_(e){switch(e.kind){case 244:let t=o_(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function o_(e){return nA(e)?Pe(e.declarationList.declarations):void 0}function s_(e){return DA(e)&&e.body&&e.body.kind===268?e.body:void 0}function c_(e){if(e.kind>=244&&e.kind<=260)return!0;switch(e.kind){case 80:case 110:case 108:case 167:case 237:case 213:case 212:case 209:case 219:case 220:case 175:case 178:case 179:return!0;default:return!1}}function l_(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function u_(e,t){let n;oh(e)&&rf(e)&&tf(e.initializer)&&(n=Ee(n,d_(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(tf(r)&&(n=Ee(n,d_(e,r.jsDoc))),r.kind===170){n=Ee(n,(t?al:il)(r));break}if(r.kind===169){n=Ee(n,(t?cl:sl)(r));break}r=p_(r)}return n||c}function d_(e,t){let n=ze(t);return re(t,t=>{if(t===n){let n=E(t.tags,t=>f_(e,t));return t.tags===n?[t]:n}else return E(t.tags,Gj)})}function f_(e,t){return!(Qj(t)||iM(t))||!t.parent||!Nj(t.parent)||!kk(t.parent.parent)||t.parent.parent===e}function p_(e){let t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||s_(t)||kb(e))return t;if(t.parent&&(o_(t.parent)===e||kb(t)))return t.parent;if(t.parent&&t.parent.parent&&(o_(t.parent.parent)||a_(t.parent.parent)===e||i_(t.parent.parent)))return t.parent.parent}function m_(e){if(e.symbol)return e.symbol;if(!Y(e.name))return;let t=e.name.escapedText,n=__(e);if(!n)return;let r=y(n.parameters,e=>e.name.kind===80&&e.name.escapedText===t);return r&&r.symbol}function h_(e){if(Nj(e.parent)&&e.parent.tags){let t=y(e.parent.tags,t_);if(t)return t}return __(e)}function g_(e){return Pl(e,Gj)}function __(e){let t=v_(e);if(t)return LO(t)&&t.type&&ju(t.type)?t.type:ju(t)?t:void 0}function v_(e){let t=y_(e);if(t)return i_(t)||r_(t)||a_(t)||o_(t)||s_(t)||t}function y_(e){let t=b_(e);if(!t)return;let n=t.parent;if(n&&n.jsDoc&&t===Re(n.jsDoc))return n}function b_(e){return K(e.parent,Nj)}function x_(e){let t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&y(n,e=>e.name.escapedText===t)}function S_(e){return!!e.typeArguments}var C_=(e=>(e[e.None=0]=`None`,e[e.Definite=1]=`Definite`,e[e.Compound=2]=`Compound`,e))(C_||{});function w_(e){let t=e.parent;for(;;){switch(t.kind){case 227:let n=t,r=n.operatorToken.kind;return Eb(r)&&n.left===e?n:void 0;case 225:case 226:let i=t,a=i.operator;return a===46||a===47?i:void 0;case 250:case 251:let o=t;return o.initializer===e?o:void 0;case 218:case 210:case 231:case 236:e=t;break;case 306:e=t.parent;break;case 305:if(t.name!==e)return;e=t.parent;break;case 304:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function T_(e){let t=w_(e);if(!t)return 0;switch(t.kind){case 227:let e=t.operatorToken.kind;return e===64||Sb(e)?1:2;case 225:case 226:return 2;case 250:case 251:return 1}}function E_(e){return!!w_(e)}function yee(e){let t=F_(e.right);return t.kind===227&&vN(t.operatorToken.kind)}function D_(e){let t=w_(e);return!!t&&kb(t,!0)&&yee(t)}function O_(e){switch(e.kind){case 242:case 244:case 255:case 246:case 256:case 270:case 297:case 298:case 257:case 249:case 250:case 251:case 247:case 248:case 259:case 300:return!0}return!1}function k_(e){return Ak(e)||jk(e)||Uu(e)||SA(e)||HO(e)}function A_(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function j_(e){return A_(e,197)}function M_(e){return A_(e,218)}function N_(e){let t;for(;e&&e.kind===197;)t=e,e=e.parent;return[t,e]}function P_(e){for(;lk(e);)e=e.type;return e}function F_(e,t){return BM(e,t?-2147483647:1)}function I_(e){return e.kind!==212&&e.kind!==213?!1:(e=M_(e.parent),e&&e.kind===221)}function L_(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function R_(e){return!vj(e)&&!Xu(e)&&Ld(e.parent)&&e.parent.name===e}function z_(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(NO(t))return t.parent;case 80:if(Ld(t))return t.name===e?t:void 0;if(MO(t)){let e=t.parent;return Yj(e)&&e.name===t?e:void 0}else{let n=t.parent;return Rk(n)&&Eg(n)!==0&&(n.left.symbol||n.symbol)&&el(n)===e?n:void 0}case 81:return Ld(t)&&t.name===e?t:void 0;default:return}}function B_(e){return uv(e)&&e.parent.kind===168&&Ld(e.parent.parent)}function V_(e){let t=e.parent;switch(t.kind){case 173:case 172:case 175:case 174:case 178:case 179:case 307:case 304:case 212:return t.name===e;case 167:return t.right===e;case 209:case 277:return t.propertyName===e;case 282:case 292:case 286:case 287:case 288:return!0}return!1}function H_(e){switch(e.parent.kind){case 274:case 277:case 275:case 282:case 278:case 272:case 281:return e.parent;case 167:do e=e.parent;while(e.parent.kind===167);return H_(e)}}function U_(e){return Mb(e)||Uk(e)}function W_(e){return U_(G_(e))}function G_(e){return UA(e)?e.expression:e.right}function bee(e){return e.kind===305?e.name:e.kind===304?e.initializer:e.parent.right}function K_(e){let t=q_(e);if(t&&ng(e)){let t=ul(e);if(t)return t.class}return t}function q_(e){let t=Z_(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function J_(e){return ng(e)?dl(e).map(e=>e.class):Z_(e.heritageClauses,119)?.types}function Y_(e){return wA(e)?X_(e)||c:zu(e)&&de(xn(K_(e)),J_(e))||c}function X_(e){let t=Z_(e.heritageClauses,96);return t?t.types:void 0}function Z_(e,t){if(e){for(let n of e)if(n.token===t)return n}}function Q_(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function $_(e){return 83<=e&&e<=166}function ev(e){return 19<=e&&e<=79}function tv(e){return $_(e)||ev(e)}function nv(e){return 128<=e&&e<=166}function rv(e){return $_(e)&&!nv(e)}function iv(e){let t=as(e);return t!==void 0&&rv(t)}function av(e){let t=Kc(e);return!!t&&!nv(t)}function ov(e){return 2<=e&&e<=7}var sv=(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))(sv||{});function cv(e){if(!e)return 4;let t=0;switch(e.kind){case 263:case 219:case 175:e.asteriskToken&&(t|=1);case 220:Qy(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function lv(e){switch(e.kind){case 263:case 219:case 220:case 175:return e.body!==void 0&&e.asteriskToken===void 0&&Qy(e,1024)}return!1}function uv(e){return uf(e)||$D(e)}function dv(e){return Ik(e)&&(e.operator===40||e.operator===41)&&$D(e.operand)}function fv(e){let t=el(e);return!!t&&pv(t)}function pv(e){if(!(e.kind===168||e.kind===213))return!1;let t=wk(e)?F_(e.argumentExpression):e.expression;return!uv(t)&&!dv(t)}function mv(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return Uc(e.text);case 168:let t=e.expression;return uv(t)?Uc(t.text):dv(t)?t.operator===41?is(t.operator)+t.operand.text:t.operand.text:void 0;case 296:return ET(e);default:return H.assertNever(e)}}function hv(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function gv(e){return Bl(e)?Gc(e):lj(e)?DT(e):e.text}function _v(e){return Bl(e)?e.escapedText:lj(e)?ET(e):Uc(e.text)}function vv(e,t){return`__#${hB(e)}@${t}`}function yv(e){return pn(e.escapedName,`__@`)}function bv(e){return pn(e.escapedName,`__#`)}function xv(e){return Y(e)?Gc(e)===`__proto__`:tO(e)&&e.text===`__proto__`}function Sv(e,t){switch(e=BM(e),e.kind){case 232:if(iH(e))return!1;break;case 219:if(e.name)return!1;break;case 220:break;default:return!1}return typeof t==`function`?t(e):!0}function Cv(e){switch(e.kind){case 304:return!xv(e.name);case 305:return!!e.objectAssignmentInitializer;case 261:return Y(e.name)&&!!e.initializer;case 170:return Y(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 209:return Y(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 173:return!!e.initializer;case 227:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Y(e.left)}break;case 278:return!0}return!1}function wv(e,t){if(!Cv(e))return!1;switch(e.kind){case 304:return Sv(e.initializer,t);case 305:return Sv(e.objectAssignmentInitializer,t);case 261:case 170:case 209:case 173:return Sv(e.initializer,t);case 227:return Sv(e.right,t);case 278:return Sv(e.expression,t)}}function Tv(e){return e.escapedText===`push`||e.escapedText===`unshift`}function Ev(e){return Dv(e).kind===170}function Dv(e){for(;e.kind===209;)e=e.parent.parent;return e}function Ov(e){let t=e.kind;return t===177||t===219||t===263||t===220||t===175||t===178||t===179||t===268||t===308}function kv(e){return _w(e.pos)||_w(e.end)}var Av=(e=>(e[e.Left=0]=`Left`,e[e.Right=1]=`Right`,e))(Av||{});function jv(e){let t=Pv(e),n=e.kind===215&&e.arguments!==void 0;return Mv(e.kind,t,n)}function Mv(e,t,n){switch(e){case 215:return n?0:1;case 225:case 222:case 223:case 221:case 224:case 228:case 230:return 1;case 227:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function Nv(e){let t=Pv(e),n=e.kind===215&&e.arguments!==void 0;return Iv(e.kind,t,n)}function Pv(e){return e.kind===227?e.operatorToken.kind:e.kind===225||e.kind===226?e.operator:e.kind}var Fv=(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.LogicalOR=5]=`LogicalOR`,e[e.Coalesce=5]=`Coalesce`,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))(Fv||{});function Iv(e,t,n){switch(e){case 357:return 0;case 231:return 1;case 230:return 2;case 228:return 4;case 227:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Lv(t)}case 217:case 236:case 225:case 222:case 223:case 221:case 224:return 16;case 226:return 17;case 214:return 18;case 215:return n?19:18;case 216:case 212:case 213:case 237:return 19;case 235:case 239:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 210:case 211:case 219:case 220:case 232:case 14:case 15:case 229:case 218:case 233:case 285:case 286:case 289:return 20;default:return-1}}function Lv(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Rv(e){return E(e,e=>{switch(e.kind){case 295:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}})}function zv(){let e=[],t=[],n=new Map,r=!1;return{add:a,lookup:i,getGlobalDiagnostics:o,getDiagnostics:s};function i(t){let r;if(r=t.file?n.get(t.file.fileName):e,!r)return;let i=We(r,t,wt,ES);if(i>=0)return r[i];if(~i>0&&kS(t,r[~i-1]))return r[~i-1]}function a(i){let a;i.file?(a=n.get(i.file.fileName),a||(a=[],n.set(i.file.fileName,a),ye(t,i.file.fileName,Ht))):(r&&(r=!1,e=e.slice()),a=e),ye(a,i,ES,kS)}function o(){return r=!0,e}function s(r){if(r)return n.get(r)||[];let i=ie(t,e=>n.get(e));return e.length&&i.unshift(...e),i}}var xee=/\$\{/g;function Bv(e){return e.replace(xee,"\\${")}function Vv(e){return!!((e.templateFlags||0)&2048)}function Hv(e){return e&&!!(iO(e)?Vv(e):Vv(e.head)||F(e.templateSpans,e=>Vv(e.literal)))}var See=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,Cee=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,wee=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,Tee=new Map(Object.entries({" ":`\\t`,"\v":`\\v`,"\f":`\\f`,"\b":`\\b`,"\r":`\\r`,"\n":`\\n`,"\\":`\\\\`,'"':`\\"`,"'":`\\'`,"`":"\\`","\u2028":`\\u2028`,"\u2029":`\\u2029`,"…":`\\u0085`,"\r\n":`\\r\\n`}));function Uv(e){return`\\u`+(`0000`+e.toString(16).toUpperCase()).slice(-4)}function Eee(e,t,n){if(e.charCodeAt(0)===0){let r=n.charCodeAt(t+e.length);return r>=48&&r<=57?`\\x00`:`\\0`}return Tee.get(e)||Uv(e.charCodeAt(0))}function Wv(e,t){let n=t===96?wee:t===39?Cee:See;return e.replace(n,Eee)}var Gv=/[^\u0000-\u007F]/g;function Kv(e,t){return e=Wv(e,t),Gv.test(e)?e.replace(Gv,e=>Uv(e.charCodeAt(0))):e}var qv=/["\u0000-\u001f\u2028\u2029\u0085]/g,Jv=/['\u0000-\u001f\u2028\u2029\u0085]/g,Dee=new Map(Object.entries({'"':`"`,"'":`'`}));function Oee(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function Yv(e){return e.charCodeAt(0)===0?`�`:Dee.get(e)||Oee(e.charCodeAt(0))}function Xv(e,t){let n=t===39?Jv:qv;return e.replace(n,Yv)}function Zv(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&Qv(e.charCodeAt(0))?e.substring(1,t-1):e}function Qv(e){return e===39||e===34||e===96}function $v(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes(`-`)}var ey=[``,` `];function ty(e){let t=ey[1];for(let n=ey.length;n<=e;n++)ey.push(ey[n-1]+t);return ey[e]}function ny(){return ey[1].length}function ry(e){var t,n,r,i,a,o=!1;function s(e){let n=ls(e);n.length>1?(i=i+n.length-1,a=t.length-e.length+ze(n),r=a-t.length===0):r=!1}function c(e){e&&e.length&&(r&&=(e=ty(n)+e,!1),t+=e,s(e))}function l(e){e&&(o=!1),c(e)}function u(e){e&&(o=!0),c(e)}function d(){t=``,n=0,r=!0,i=0,a=0,o=!1}function f(e){e!==void 0&&(t+=e,s(e),o=!1)}function p(e){e&&e.length&&l(e)}function m(n){(!r||n)&&(t+=e,i++,a=t.length,r=!0,o=!1)}return d(),{write:l,rawWrite:f,writeLiteral:p,writeLine:m,increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*ny():t.length-a,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>o,hasTrailingWhitespace:()=>!!t.length&&_s(t.charCodeAt(t.length-1)),clear:d,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:u}}function iy(e){let t=!1;function n(){t&&=(e.writeTrailingSemicolon(`;`),!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(t){n(),e.writeLiteral(t)},writeStringLiteral(t){n(),e.writeStringLiteral(t)},writeSymbol(t,r){n(),e.writeSymbol(t,r)},writePunctuation(t){n(),e.writePunctuation(t)},writeKeyword(t){n(),e.writeKeyword(t)},writeOperator(t){n(),e.writeOperator(t)},writeParameter(t){n(),e.writeParameter(t)},writeSpace(t){n(),e.writeSpace(t)},writeProperty(t){n(),e.writeProperty(t)},writeComment(t){n(),e.writeComment(t)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function ay(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function oy(e){return ln(ay(e))}function sy(e,t,n){return t.moduleName||uy(e,t.fileName,n&&n.fileName)}function cy(e,t){return e.getCanonicalFileName(po(t,e.getCurrentDirectory()))}function ly(e,t,n){let r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;let i=Yg(n);if(!(i&&uf(i)&&!Wa(i.text)&&!cy(e,r.path).includes(cy(e,xo(e.getCommonSourceDirectory())))))return sy(e,r)}function uy(e,t,n){let r=t=>e.getCanonicalFileName(t),i=yo(n?$a(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),a=uw(Io(i,po(t,e.getCurrentDirectory()),i,r,!1));return n?So(a):a}function dy(e,t,n){let r=t.getCompilerOptions(),i;return i=r.outDir?uw(by(e,t,r.outDir)):uw(e),i+n}function fy(e,t){return py(e,t.getCompilerOptions(),t)}function py(e,t,n){let r=t.declarationDir||t.outDir,i=r?xy(e,r,n.getCurrentDirectory(),n.getCommonSourceDirectory(),e=>n.getCanonicalFileName(e)):e,a=my(i);return uw(i)+a}function my(e){return Ja(e,[`.mjs`,`.mts`])?`.d.mts`:Ja(e,[`.cjs`,`.cts`])?`.d.cts`:Ja(e,[`.json`])?`.d.json.ts`:`.d.ts`}function hy(e){return Ja(e,[`.d.mts`,`.mjs`,`.mts`])?[`.mts`,`.mjs`]:Ja(e,[`.d.cts`,`.cjs`,`.cts`])?[`.cts`,`.cjs`]:Ja(e,[`.d.json.ts`])?[`.json`]:[`.tsx`,`.ts`,`.jsx`,`.js`]}function gy(e,t,n,r){return n?uo(r(),No(n,e,t)):e}function _y(e,t){if(e.paths)return e.baseUrl??H.checkDefined(e.pathsBasePath||t.getCurrentDirectory?.call(t),`Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.`)}function vy(e,t,n){let r=e.getCompilerOptions();if(r.outFile){let t=BS(r),i=r.emitDeclarationOnly||t===2||t===4;return E(e.getSourceFiles(),t=>(i||!yP(t))&&yy(t,e,n))}else return E(t===void 0?e.getSourceFiles():[t],t=>yy(t,e,n))}function yy(e,t,n){let r=t.getCompilerOptions();if(r.noEmitForJsFiles&&tg(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!jm(e))return!0;if(t.getRedirectFromSourceFile(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){let n=po(AU(r,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=xy(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(ko(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function by(e,t,n){return xy(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),e=>t.getCanonicalFileName(e))}function xy(e,t,n,r,i){let a=po(e,n);return a=i(a).indexOf(i(r))===0?a.substring(r.length):a,lo(t,a)}function Sy(e,t,n,r,i,a,o){e.writeFile(n,r,i,e=>{t.add(bS(G.Could_not_write_file_0_Colon_1,n,e))},a,o)}function Cy(e,t,n){e.length>Qa(e)&&!n(e)&&(Cy($a(e),t,n),t(e))}function wy(e,t,n,r,i,a){try{r(e,t,n)}catch{Cy($a(mo(e)),i,a),r(e,t,n)}}function Ty(e,t){return ms(fs(e),t)}function Ey(e,t){return ms(e,t)}function Dy(e){return y(e.members,e=>HO(e)&&ip(e.body))}function Oy(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&jy(e.parameters[0]);return e.parameters[t?1:0]}}function ky(e){let t=Oy(e);return t&&t.type}function Ay(e){if(e.parameters.length&&!Fj(e)){let t=e.parameters[0];if(jy(t))return t}}function jy(e){return My(e.name)}function My(e){return!!e&&e.kind===80&&Fy(e)}function Ny(e){return!!K(e,e=>e.kind===187?!0:e.kind===80||e.kind===167?!1:`quit`)}function Py(e){if(!My(e))return!1;for(;MO(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===187}function Fy(e){return e.escapedText===`this`}function Iy(e,t){let n,r,i,a;return fv(t)?(n=t,t.kind===178?i=t:t.kind===179?a=t:H.fail(`Accessor has wrong kind`)):d(e,e=>{Bu(e)&&$y(e)===$y(t)&&mv(e.name)===mv(t.name)&&(n?r||=e:n=e,e.kind===178&&!i&&(i=e),e.kind===179&&!a&&(a=e))}),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:a}}function Ly(e){if(!ng(e)&&SA(e)||TA(e))return;let t=e.type;return t||!ng(e)?t:tu(e)?e.typeExpression&&e.typeExpression.type:kl(e)}function Ry(e){return e.type}function zy(e){return Fj(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(ng(e)?Al(e):void 0)}function By(e){return re(Ml(e),e=>Vy(e)?e.typeParameters:void 0)}function Vy(e){return $j(e)&&!(e.parent.kind===321&&(e.parent.tags.some(t_)||e.parent.tags.some(Gj)))}function Hy(e){let t=Oy(e);return t&&Ly(t)}function Uy(e,t,n,r){Wy(e,t,n.pos,r)}function Wy(e,t,n,r){r&&r.length&&n!==r[0].pos&&Ey(e,n)!==Ey(e,r[0].pos)&&t.writeLine()}function Gy(e,t,n,r){n!==r&&Ey(e,n)!==Ey(e,r)&&t.writeLine()}function kee(e,t,n,r,i,a,o,s){if(r&&r.length>0){let i=!1;for(let a of r)i&&=(n.writeSpace(` `),!1),s(e,t,n,a.pos,a.end,o),a.hasTrailingNewLine?n.writeLine():i=!0;i&&a&&n.writeSpace(` `)}}function Ky(e,t,n,r,i,a,o){let s,c;if(o?i.pos===0&&(s=E(zs(e,i.pos),l)):s=zs(e,i.pos),s){let o=[],l;for(let e of s){if(l){let n=Ey(t,l.end);if(Ey(t,e.pos)>=n+2)break}o.push(e),l=e}if(o.length){let l=Ey(t,ze(o).end);Ey(t,Es(e,i.pos))>=l+2&&(Uy(t,n,i,s),kee(e,t,n,o,!1,!0,a,r),c={nodePos:i.pos,detachedCommentEndPos:ze(o).end})}}return c;function l(t){return hp(e,t.pos)}}function qy(e,t,n,r,i,a){if(e.charCodeAt(r+1)===42){let o=ps(t,r),s=t.length,c;for(let l=r,u=o.line;l0){let e=i%ny(),t=ty((i-e)/ny());for(n.rawWrite(t);e;)n.rawWrite(` `),e--}else n.rawWrite(``)}Jy(e,i,n,a,l,d),l=d}}else n.writeComment(e.substring(r,i))}function Jy(e,t,n,r,i,a){let o=Math.min(t,a-1),s=e.substring(i,o).trim();s?(n.writeComment(s),o!==t&&n.writeLine()):n.rawWrite(r)}function Yy(e,t,n){let r=0;for(;t=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=_b(e)|536870912),n||t&&ng(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=pb(e)|268435456),mb(e.modifierFlagsCache)):jee(e.modifierFlagsCache))}function ub(e){return lb(e,!0)}function db(e){return lb(e,!0,!0)}function fb(e){return lb(e,!1)}function pb(e){let t=0;return e.parent&&!FO(e)&&(ng(e)&&(ml(e)&&(t|=8388608),gl(e)&&(t|=16777216),vl(e)&&(t|=33554432),yl(e)&&(t|=67108864),bl(e)&&(t|=134217728)),Sl(e)&&(t|=65536)),t}function jee(e){return e&65535}function mb(e){return e&131071|(e&260046848)>>>23}function hb(e){return mb(pb(e))}function gb(e){return _b(e)|hb(e)}function _b(e){let t=VN(e)?vb(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function vb(e){let t=0;if(e)for(let n of e)t|=yb(n.kind);return t}function yb(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function bb(e){return e===57||e===56}function xb(e){return bb(e)||e===54}function Sb(e){return e===76||e===77||e===78}function Cb(e){return Rk(e)&&Sb(e.operatorToken.kind)}function wb(e){return bb(e)||e===61}function Tb(e){return Rk(e)&&wb(e.operatorToken.kind)}function Eb(e){return e>=64&&e<=79}function Db(e){let t=Ob(e);return t&&!t.isImplements?t.class:void 0}function Ob(e){if(Gk(e)){if(fj(e.parent)&&zu(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(Ij(e.parent)){let t=v_(e.parent);if(t&&zu(t))return{class:t,isImplements:!1}}}}function kb(e,t){return Rk(e)&&(t?e.operatorToken.kind===64:Eb(e.operatorToken.kind))&&fd(e.left)}function Ab(e){if(kb(e,!0)){let t=e.left.kind;return t===211||t===210}return!1}function jb(e){return Db(e)!==void 0}function Mb(e){return e.kind===80||Fb(e)}function Nb(e){switch(e.kind){case 80:return e;case 167:do e=e.left;while(e.kind!==80);return e;case 212:do e=e.expression;while(e.kind!==80);return e}}function Pb(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===237||e.kind===212&&Pb(e.expression)||e.kind===218&&Pb(e.expression)}function Fb(e){return Ck(e)&&Y(e.name)&&Mb(e.expression)}function Ib(e){if(Ck(e)){let t=Ib(e.expression);if(t!==void 0)return t+`.`+pm(e.name)}else if(wk(e)){let t=Ib(e.expression);if(t!==void 0&&ku(e.argumentExpression))return t+`.`+mv(e.argumentExpression)}else if(Y(e))return Wc(e.escapedText);else if(lj(e))return DT(e)}function Lb(e){return Ag(e)&&Lg(e)===`prototype`}function Rb(e){return e.parent.kind===167&&e.parent.right===e||e.parent.kind===212&&e.parent.name===e||e.parent.kind===237&&e.parent.name===e}function zb(e){return!!e.parent&&(Ck(e.parent)&&e.parent.name===e||wk(e.parent)&&e.parent.argumentExpression===e)}function Bb(e){return MO(e.parent)&&e.parent.right===e||Ck(e.parent)&&e.parent.name===e||Sj(e.parent)&&e.parent.right===e}function Vb(e){return Rk(e)&&e.operatorToken.kind===104}function Hb(e){return Vb(e.parent)&&e===e.parent.right}function Ub(e){return e.kind===211&&e.properties.length===0}function Wb(e){return e.kind===210&&e.elements.length===0}function Gb(e){if(!(!Kb(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function Kb(e){return e&&u(e.declarations)>0&&Qy(e.declarations[0],2048)}function qb(e){return y(WC,t=>qa(e,t))}function Jb(e){let t=[],n=e.length;for(let r=0;r>6|192),t.push(n&63|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(n&63|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(n&63|128)):H.assert(!1,`Unexpected code point`)}return t}var Yb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;function Xb(e){let t=``,n=Jb(e),r=0,i=n.length,a,o,s,c;for(;r>2,o=(n[r]&3)<<4|n[r+1]>>4,s=(n[r+1]&15)<<2|n[r+2]>>6,c=n[r+2]&63,r+1>=i?s=c=64:r+2>=i&&(c=64),t+=Yb.charAt(a)+Yb.charAt(o)+Yb.charAt(s)+Yb.charAt(c),r+=3;return t}function Zb(e){let t=``,n=0,r=e.length;for(;n>4&3,c=(n&15)<<4|a>>2&15,l=(a&3)<<6|o&63;c===0&&a!==0?r.push(s):l===0&&o!==0?r.push(s,c):r.push(s,c,l),i+=4}return Zb(r)}function ex(e,t){let n=gt(t)?t:t.readFile(e);if(!n)return;let r=nx(n);if(r===void 0){let t=FF(e,n);t.error||(r=t.config)}return r}function tx(e,t){return ex(e,t)||{}}function nx(e){try{return JSON.parse(e)}catch{return}}function rx(e,t){return!t.directoryExists||t.directoryExists(e)}var Mee=`\r `,ix=` `;function ax(e){switch(e.newLine){case 0:return Mee;case 1:case void 0:return ix}}function ox(e,t=e){return H.assert(t>=e||t===-1),{pos:e,end:t}}function sx(e,t){return ox(e.pos,t)}function cx(e,t){return ox(t,e.end)}function lx(e){let t=VN(e)?b(e.modifiers,IO):void 0;return t&&!_w(t.end)?cx(e,t.end):e}function ux(e){if(RO(e)||BO(e))return cx(e,e.name.pos);let t=VN(e)?Re(e.modifiers):void 0;return t&&!_w(t.end)?cx(e,t.end):lx(e)}function dx(e,t){return ox(e,e+is(t).length)}function fx(e,t){return hx(e,e,t)}function px(e,t,n){return bx(xx(e,n,!1),xx(t,n,!1),n)}function mx(e,t,n){return bx(e.end,t.end,n)}function hx(e,t,n){return bx(xx(e,n,!1),t.end,n)}function gx(e,t,n){return bx(e.end,xx(t,n,!1),n)}function _x(e,t,n,r){let i=xx(t,n,r);return hs(n,e.end,i)}function vx(e,t,n){return hs(n,e.end,t.end)}function yx(e,t){return!bx(e.pos,e.end,t)}function bx(e,t,n){return hs(n,e,t)===0}function xx(e,t,n){return _w(e.pos)?-1:Es(t.text,e.pos,!1,n)}function Sx(e,t,n,r){let i=Es(n.text,e,!1,r);return hs(n,Nee(i,t,n)??t,i)}function Cx(e,t,n,r){let i=Es(n.text,e,!1,r);return hs(n,e,Math.min(t,i))}function wx(e,t){return Tx(e.pos,e.end,t)}function Tx(e,t,n){return e<=n.pos&&t>=n.end}function Nee(e,t=0,n){for(;e-- >t;)if(!_s(n.text.charCodeAt(e)))return e}function Ex(e){let t=Hc(e);if(t)switch(t.parent.kind){case 267:case 268:return t===t.parent.name}return!1}function Dx(e){return E(e.declarations,Ox)}function Ox(e){return bA(e)&&e.initializer!==void 0}function kx(e){return e.watch&&qe(e,`watch`)}function Ax(e){e.close()}function jx(e){return e.flags&33554432?e.links.checkFlags:0}function Mx(e,t=!1){if(e.valueDeclaration){let n=Pc(t&&e.declarations&&y(e.declarations,WO)||e.flags&32768&&y(e.declarations,UO)||e.valueDeclaration);return e.parent&&e.parent.flags&32?n:n&-8}if(jx(e)&6){let t=e.links.checkFlags;return(t&1024?2:t&256?1:4)|(t&2048?256:0)}return e.flags&4194304?257:0}function Nx(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function Px(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function Fx(e){return Lx(e)===1}function Ix(e){return Lx(e)!==0}function Lx(e){let{parent:t}=e;switch(t?.kind){case 218:return Lx(t);case 226:case 225:let{operator:n}=t;return n===46||n===47?2:0;case 227:let{left:r,operatorToken:i}=t;return r===e&&Eb(i.kind)?i.kind===64?1:2:0;case 212:return t.name===e?Lx(t):0;case 304:{let n=Lx(t.parent);return e===t.name?Pee(n):n}case 305:return e===t.objectAssignmentInitializer?0:Lx(t.parent);case 210:return Lx(t);case 250:case 251:return e===t.initializer?1:0;default:return 0}}function Pee(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return H.assertNever(e)}}function Rx(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(typeof e[n]==`object`){if(!Rx(e[n],t[n]))return!1}else if(typeof e[n]!=`function`&&e[n]!==t[n])return!1;return!0}function zx(e,t){e.forEach(t),e.clear()}function Bx(e,t,n){let{onDeleteValue:r,onExistingValue:i}=n;e.forEach((n,a)=>{t?.has(a)?i&&i(n,t.get?.call(t,a),a):(e.delete(a),r(n,a))})}function Vx(e,t,n){Bx(e,t,n);let{createNewValue:r}=n;t?.forEach((t,n)=>{e.has(n)||e.set(n,r(n,t))})}function Hx(e){if(e.flags&32){let t=Ux(e);return!!t&&Qy(t,64)}return!1}function Ux(e){return e.declarations?.find(zu)}function Wx(e){return e.flags&3899393?e.objectFlags:0}function Gx(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&AA(e.declarations[0])}function Kx({moduleSpecifier:e}){return tO(e)?e.text:Ep(e)}function qx(e){let t;return pP(e,e=>{ip(e)&&(t=e)},e=>{for(let n=e.length-1;n>=0;n--)if(ip(e[n])){t=e[n];break}}),t}function Jx(e,t){return e.has(t)?!1:(e.add(t),!0)}function Yx(e){return zu(e)||wA(e)||$O(e)}function Xx(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function Zx(e){return e.kind===212||e.kind===213}function Qx(e){return e.kind===212?e.name:(H.assert(e.kind===213),e.argumentExpression)}function $x(e){return e.kind===276||e.kind===280}function eS(e){for(;Zx(e);)e=e.expression;return e}function tS(e,t){if(Zx(e.parent)&&zb(e))return n(e.parent);function n(e){if(e.kind===212){let n=t(e.name);if(n!==void 0)return n}else if(e.kind===213)if(Y(e.argumentExpression)||uf(e.argumentExpression)){let n=t(e.argumentExpression);if(n!==void 0)return n}else return;if(Zx(e.expression))return n(e.expression);if(Y(e.expression))return t(e.expression)}}function nS(e,t){for(;;){switch(e.kind){case 226:e=e.operand;continue;case 227:e=e.left;continue;case 228:e=e.condition;continue;case 216:e=e.tag;continue;case 214:if(t)return e;case 235:case 213:case 212:case 236:case 356:case 239:e=e.expression;continue}return e}}function Fee(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function rS(e,t){this.flags=t,(H.isDebugging||Ar)&&(this.checker=e)}function Iee(e,t){this.flags=t,H.isDebugging&&(this.checker=e)}function iS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Lee(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function aS(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Ree(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}var oS={getNodeConstructor:()=>iS,getTokenConstructor:()=>Lee,getIdentifierConstructor:()=>aS,getPrivateIdentifierConstructor:()=>iS,getSourceFileConstructor:()=>iS,getSymbolConstructor:()=>Fee,getTypeConstructor:()=>rS,getSignatureConstructor:()=>Iee,getSourceMapSourceConstructor:()=>Ree},sS=[];function cS(e){sS.push(e),e(oS)}function lS(e){Object.assign(oS,e),d(sS,e=>e(oS))}function uS(e,t){return e.replace(/\{(\d+)\}/g,(e,n)=>``+H.checkDefined(t[+n]))}var dS;function fS(e){dS=e}function pS(e){!dS&&e&&(dS=e())}function mS(e){return dS&&dS[e.key]||e.message}function hS(e,t,n,r,i,...a){n+r>t.length&&(r=t.length-n),ym(t,n,r);let o=mS(i);return F(a)&&(o=uS(o,a)),{file:void 0,start:n,length:r,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function zee(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName==`string`}function gS(e,t){let n=t.fileName||``,r=t.text.length;H.assertEqual(e.fileName,n),H.assertLessThanOrEqual(e.start,r),H.assertLessThanOrEqual(e.start+e.length,r);let i={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){i.relatedInformation=[];for(let a of e.relatedInformation)zee(a)&&a.fileName===n?(H.assertLessThanOrEqual(a.start,r),H.assertLessThanOrEqual(a.start+a.length,r),i.relatedInformation.push(gS(a,t))):i.relatedInformation.push(a)}return i}function _S(e,t){let n=[];for(let r of e)n.push(gS(r,t));return n}function vS(e,t,n,r,...i){ym(e.text,t,n);let a=mS(r);return F(i)&&(a=uS(a,i)),{file:e,start:t,length:n,messageText:a,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function yS(e,...t){let n=mS(e);return F(t)&&(n=uS(n,t)),n}function bS(e,...t){let n=mS(e);return F(t)&&(n=uS(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function xS(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 SS(e,t,...n){let r=mS(t);return F(n)&&(r=uS(r,n)),{messageText:r,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function CS(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function wS(e){return e.file?e.file.path:void 0}function TS(e,t){return ES(e,t)||Bee(e,t)||0}function ES(e,t){let n=AS(e),r=AS(t);return Ht(wS(e),wS(t))||It(e.start,t.start)||It(e.length,t.length)||It(n,r)||Vee(e,t)||0}function Bee(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?It(t.relatedInformation.length,e.relatedInformation.length)||d(e.relatedInformation,(e,n)=>{let r=t.relatedInformation[n];return TS(e,r)})||0:e.relatedInformation?-1:1}function Vee(e,t){let n=jS(e),r=jS(t);typeof n!=`string`&&(n=n.messageText),typeof r!=`string`&&(r=r.messageText);let i=typeof e.messageText==`string`?void 0:e.messageText.next,a=typeof t.messageText==`string`?void 0:t.messageText.next,o=Ht(n,r);return o||(o=Hee(i,a),o)?o:e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0}function Hee(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:DS(e,t)||OS(e,t)}function DS(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;let n=It(t.length,e.length);if(n)return n;for(let r=0;r{e.externalModuleIndicator=XN(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=XN(e)};case 2:let t=[XN];(e.jsx===4||e.jsx===5)&&t.push(Wee),t.push(Gee);let n=vn(...t);return t=>void(t.externalModuleIndicator=n(t,e))}}function FS(e){let t=VS(e);return 3<=t&&t<=99||KS(e)||qS(e)}function Kee(e){return e}var IS=Kee({allowImportingTsExtensions:{dependencies:[`rewriteRelativeImportExtensions`],computeValue:e=>!!(e.allowImportingTsExtensions||e.rewriteRelativeImportExtensions)},target:{dependencies:[`module`],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===101&&9||e.module===102&&10||e.module===199&&99||1)},module:{dependencies:[`target`],computeValue:e=>typeof e.module==`number`?e.module:IS.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:[`module`,`target`],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(IS.module.computeValue(e)){case 1:t=2;break;case 100:case 101:case 102:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:[`module`,`target`],computeValue:e=>{if(e.moduleDetection!==void 0)return e.moduleDetection;let t=IS.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:[`verbatimModuleSyntax`],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:[`module`,`target`],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(IS.module.computeValue(e)){case 100:case 101:case 102:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:[`module`,`target`,`moduleResolution`],computeValue:e=>e.allowSyntheticDefaultImports===void 0?IS.esModuleInterop.computeValue(e)||IS.module.computeValue(e)===4||IS.moduleResolution.computeValue(e)===100:e.allowSyntheticDefaultImports},resolvePackageJsonExports:{dependencies:[`moduleResolution`],computeValue:e=>{let t=IS.moduleResolution.computeValue(e);if(!aC(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:[`moduleResolution`,`resolvePackageJsonExports`],computeValue:e=>{let t=IS.moduleResolution.computeValue(e);if(!aC(t))return!1;if(e.resolvePackageJsonImports!==void 0)return e.resolvePackageJsonImports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:[`moduleResolution`,`module`,`target`],computeValue:e=>{if(e.resolveJsonModule!==void 0)return e.resolveJsonModule;switch(IS.module.computeValue(e)){case 102:case 199:return!0}return IS.moduleResolution.computeValue(e)===100}},declaration:{dependencies:[`composite`],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:[`isolatedModules`,`verbatimModuleSyntax`],computeValue:e=>!!(e.preserveConstEnums||IS.isolatedModules.computeValue(e))},incremental:{dependencies:[`composite`],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:[`declaration`,`composite`],computeValue:e=>!!(e.declarationMap&&IS.declaration.computeValue(e))},allowJs:{dependencies:[`checkJs`],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:[`target`,`module`],computeValue:e=>e.useDefineForClassFields===void 0?IS.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:[`strict`],computeValue:e=>sC(e,`noImplicitAny`)},noImplicitThis:{dependencies:[`strict`],computeValue:e=>sC(e,`noImplicitThis`)},strictNullChecks:{dependencies:[`strict`],computeValue:e=>sC(e,`strictNullChecks`)},strictFunctionTypes:{dependencies:[`strict`],computeValue:e=>sC(e,`strictFunctionTypes`)},strictBindCallApply:{dependencies:[`strict`],computeValue:e=>sC(e,`strictBindCallApply`)},strictPropertyInitialization:{dependencies:[`strict`],computeValue:e=>sC(e,`strictPropertyInitialization`)},strictBuiltinIteratorReturn:{dependencies:[`strict`],computeValue:e=>sC(e,`strictBuiltinIteratorReturn`)},alwaysStrict:{dependencies:[`strict`],computeValue:e=>sC(e,`alwaysStrict`)},useUnknownInCatchVariables:{dependencies:[`strict`],computeValue:e=>sC(e,`useUnknownInCatchVariables`)}}),LS=IS,RS=IS.allowImportingTsExtensions.computeValue,zS=IS.target.computeValue,BS=IS.module.computeValue,VS=IS.moduleResolution.computeValue,HS=IS.moduleDetection.computeValue,US=IS.isolatedModules.computeValue,WS=IS.esModuleInterop.computeValue,GS=IS.allowSyntheticDefaultImports.computeValue,KS=IS.resolvePackageJsonExports.computeValue,qS=IS.resolvePackageJsonImports.computeValue,JS=IS.resolveJsonModule.computeValue,YS=IS.declaration.computeValue,XS=IS.preserveConstEnums.computeValue,ZS=IS.incremental.computeValue,QS=IS.declarationMap.computeValue,$S=IS.allowJs.computeValue,eC=IS.useDefineForClassFields.computeValue;function tC(e){return e>=5&&e<=99}function nC(e){switch(BS(e)){case 0:case 4:case 3:return!1}return!0}function rC(e){return e.allowUnreachableCode===!1}function iC(e){return e.allowUnusedLabels===!1}function aC(e){return e>=3&&e<=99||e===100}function oC(e){return 101<=e&&e<=199||e===200||e===99}function sC(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function cC(e){return Mf(JP.type,(t,n)=>t===e?n:void 0)}function lC(e){return e.useDefineForClassFields!==!1&&zS(e)>=9}function uC(e,t){return Af(t,e,QP)}function dC(e,t){return Af(t,e,$P)}function fC(e,t){return Af(t,e,eF)}function pC(e,t){return t.strictFlag?sC(e,t.name):t.allowJsFlag?$S(e):e[t.name]}function mC(e){let t=e.jsx;return t===2||t===4||t===5}function hC(e,t){let n=t?.pragmas.get(`jsximportsource`),r=mt(n)?n[n.length-1]:n,i=t?.pragmas.get(`jsxruntime`),a=mt(i)?i[i.length-1]:i;if(a?.arguments.factory!==`classic`)return e.jsx===4||e.jsx===5||e.jsxImportSource||r||a?.arguments.factory===`automatic`?r?.arguments.factory||e.jsxImportSource||`react`:void 0}function gC(e,t){return e?`${e}/${t.jsx===5?`jsx-dev-runtime`:`jsx-runtime`}`:void 0}function _C(e){let t=!1;for(let n=0;ni,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||=new Map).set(e,t),setSymlinkedDirectory:(i,a)=>{let o=yo(i,e,t);tT(o)||(o=xo(o),a!==!1&&!n?.has(o)&&(r||=R()).add(a.realPath,i),(n||=new Map).set(o,a))},setSymlinksFromResolutions(e,t,n){H.assert(!a),a=!0,e(e=>s(this,e.resolvedModule)),t(e=>s(this,e.resolvedTypeReferenceDirective)),n.forEach(e=>s(this,e.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>a,setSymlinksFromResolution(e){s(this,e)},hasAnySymlinks:o};function o(){return!!i?.size||!!n&&!!Mf(n,e=>!!e)}function s(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;let{resolvedFileName:i,originalPath:a}=r;n.setSymlinkedFile(yo(a,e,t),i);let[o,s]=yC(i,a,e,t)||c;o&&s&&n.setSymlinkedDirectory(s,{real:xo(o),realPath:xo(yo(o,e,t))})}}function yC(e,t,n,r){let i=ao(po(e,n)),a=ao(po(t,n)),o=!1;for(;i.length>=2&&a.length>=2&&!bC(i[i.length-2],r)&&!bC(a[a.length-2],r)&&r(i[i.length-1])===r(a[a.length-1]);)i.pop(),a.pop(),o=!0;return o?[oo(i),oo(a)]:void 0}function bC(e,t){return e!==void 0&&(t(e)===`node_modules`||pn(e,`@`))}function xC(e){return za(e.charCodeAt(0))?e.slice(1):void 0}function SC(e,t,n){let r=hn(e,t,n);return r===void 0?void 0:xC(r)}var CC=/[^\w\s/]/g;function wC(e){return e.replace(CC,qee)}function qee(e){return`\\`+e}var Jee=[42,63],TC=`(?!(?:${[`node_modules`,`bower_components`,`jspm_packages`].join(`|`)})(?:/|$))`,EC={singleAsteriskRegexFragment:`(?:[^./]|(?:\\.(?!min\\.js$))?)*`,doubleAsteriskRegexFragment:`(?:/${TC}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>FC(e,EC.singleAsteriskRegexFragment)},DC={singleAsteriskRegexFragment:`[^/]*`,doubleAsteriskRegexFragment:`(?:/${TC}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>FC(e,DC.singleAsteriskRegexFragment)},OC={singleAsteriskRegexFragment:`[^/]*`,doubleAsteriskRegexFragment:`(?:/.+?)?`,replaceWildcardCharacter:e=>FC(e,OC.singleAsteriskRegexFragment)},kC={files:EC,directories:DC,exclude:OC};function AC(e,t,n){let r=jC(e,t,n);if(!(!r||!r.length))return`^(?:${r.map(e=>`(?:${e})`).join(`|`)})${n===`exclude`?`(?:$|/)`:`$`}`}function jC(e,t,n){if(!(e===void 0||e.length===0))return re(e,e=>e&&PC(e,t,n,kC[n]))}function MC(e){return!/[.*?]/.test(e)}function NC(e,t,n){let r=e&&PC(e,t,n,kC[n]);return r&&`^(?:${r})${n===`exclude`?`(?:$|/)`:`$`}`}function PC(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:a}=kC[n]){let o=``,s=!1,c=fo(e,t),l=ze(c);if(n!==`exclude`&&l===`**`)return;c[0]=bo(c[0]),MC(l)&&c.push(`**`,`*`);let u=0;for(let e of c){if(e===`**`)o+=i;else if(n===`directories`&&(o+=`(?:`,u++),s&&(o+=Fa),n!==`exclude`){let t=``;e.charCodeAt(0)===42?(t+=`(?:[^./]`+r+`)?`,e=e.substr(1)):e.charCodeAt(0)===63&&(t+=`[^./]`,e=e.substr(1)),t+=e.replace(CC,a),t!==e&&(o+=TC),o+=t}else o+=e.replace(CC,a);s=!0}for(;u>0;)o+=`)?`,u--;return o}function FC(e,t){return e===`*`?t:e===`?`?`[^/]`:`\\`+e}function IC(e,t,n,r,i){e=mo(e),i=mo(i);let a=lo(i,e);return{includeFilePatterns:k(jC(n,a,`files`),e=>`^${e}$`),includeFilePattern:AC(n,a,`files`),includeDirectoryPattern:AC(n,a,`directories`),excludePattern:AC(t,a,`exclude`),basePaths:Yee(e,n,r)}}function LC(e,t){return new RegExp(e,t?``:`i`)}function RC(e,t,n,r,i,a,o,s,c){e=mo(e),a=mo(a);let l=IC(e,n,r,i,a),u=l.includeFilePatterns&&l.includeFilePatterns.map(e=>LC(e,i)),d=l.includeDirectoryPattern&&LC(l.includeDirectoryPattern,i),f=l.excludePattern&&LC(l.excludePattern,i),p=u?u.map(()=>[]):[[]],m=new Map,h=ln(i);for(let e of l.basePaths)g(e,lo(a,e),o);return ne(p);function g(e,n,r){let i=h(c(n));if(m.has(i))return;m.set(i,!0);let{files:a,directories:o}=s(e);for(let r of Ae(a,Ht)){let i=lo(e,r),a=lo(n,r);if(!(t&&!Ja(i,t))&&!(f&&f.test(a)))if(!u)p[0].push(i);else{let e=x(u,e=>e.test(a));e!==-1&&p[e].push(i)}}if(!(r!==void 0&&(r--,r===0)))for(let t of Ae(o,Ht)){let i=lo(e,t),a=lo(n,t);(!d||d.test(a))&&(!f||!f.test(a))&&g(i,a,r)}}}function Yee(e,t,n){let r=[e];if(t){let i=[];for(let n of t){let t=Va(n)?n:mo(lo(e,n));i.push(Xee(t))}i.sort(Ut(!n));for(let t of i)v(r,r=>!Ao(r,t,e,!n))&&r.push(t)}return r}function Xee(e){let t=w(e,Jee);return t<0?Ka(e)?bo($a(e)):e:e.substring(0,e.lastIndexOf(Fa,t))}function zC(e,t){return t||BC(e)||3}function BC(e){switch(e.substr(e.lastIndexOf(`.`)).toLowerCase()){case`.js`:case`.cjs`:case`.mjs`:return 1;case`.jsx`:return 2;case`.ts`:case`.cts`:case`.mts`:return 3;case`.tsx`:return 4;case`.json`:return 6;default:return 0}}var VC=[[`.ts`,`.tsx`,`.d.ts`],[`.cts`,`.d.cts`],[`.mts`,`.d.mts`]],HC=ne(VC),UC=[...VC,[`.json`]],WC=[`.d.ts`,`.d.cts`,`.d.mts`,`.cts`,`.mts`,`.ts`,`.tsx`],GC=ne([[`.js`,`.jsx`],[`.mjs`],[`.cjs`]]),KC=[[`.ts`,`.tsx`,`.d.ts`,`.js`,`.jsx`],[`.cts`,`.d.cts`,`.cjs`],[`.mts`,`.d.mts`,`.mjs`]],qC=[...KC,[`.json`]],JC=[`.d.ts`,`.d.cts`,`.d.mts`],YC=[`.ts`,`.cts`,`.mts`,`.tsx`],XC=[`.mts`,`.d.mts`,`.mjs`,`.cts`,`.d.cts`,`.cjs`];function ZC(e,t){let n=e&&$S(e);if(!t||t.length===0)return n?KC:VC;let r=n?KC:VC,i=ne(r);return[...r,...M(t,e=>e.scriptKind===7||n&&Zee(e.scriptKind)&&!i.includes(e.extension)?[e.extension]:void 0)]}function QC(e,t){return!e||!JS(e)?t:t===KC?qC:t===VC?UC:[...t,[`.json`]]}function Zee(e){return e===1||e===2}function $C(e){return F(GC,t=>qa(e,t))}function ew(e){return F(HC,t=>qa(e,t))}function tw(e){return F(YC,t=>qa(e,t))&&!OP(e)}var nw=(e=>(e[e.Minimal=0]=`Minimal`,e[e.Index=1]=`Index`,e[e.JsExtension=2]=`JsExtension`,e[e.TsExtension=3]=`TsExtension`,e))(nw||{});function rw({imports:e},t=vn($C,ew)){return p(e,({text:e})=>Wa(e)&&!Ja(e,XC)?t(e):void 0)||!1}function iw(e,t,n,r){let i=VS(n),a=3<=i&&i<=99;if(e===`js`||t===99&&a)return iz(n)?o()===2?2:3:2;if(e===`minimal`)return 0;if(e===`index`)return 1;if(!iz(n))return r&&rw(r)?2:0;return o();function o(){let e=!1,i=r?.imports.length?r.imports:r&&tg(r)?aw(r).map(e=>e.arguments[0]):c;for(let o of i)if(Wa(o.text)){if(a&&t===1&&jW(r,o,n)===99||Ja(o.text,XC))continue;if(ew(o.text))return 3;$C(o.text)&&(e=!0)}return e?2:0}}function aw(e){let t=0,n;for(let r of e.statements){if(t>3)break;dg(r)?n=de(n,r.declarationList.declarations.map(e=>e.initializer)):iA(r)&&sg(r.expression,!0)?n=I(n,r.expression):t++}return n||c}function ow(e,t,n){if(!e)return!1;let r=ZC(t,n);for(let n of ne(QC(t,r)))if(qa(e,n))return!0;return!1}function sw(e){let t=e.match(/\//g);return t?t.length:0}function cw(e,t){return It(sw(e),sw(t))}var lw=[`.d.ts`,`.d.mts`,`.d.cts`,`.mjs`,`.mts`,`.cjs`,`.cts`,`.ts`,`.js`,`.tsx`,`.jsx`,`.json`];function uw(e){for(let t of lw){let n=dw(e,t);if(n!==void 0)return n}return e}function dw(e,t){return qa(e,t)?fw(e,t):void 0}function fw(e,t){return e.substring(0,e.length-t.length)}function pw(e,t){return Co(e,t,lw,!1)}function mw(e){let t=e.indexOf(`*`);return t===-1?e:e.indexOf(`*`,t+1)===-1?{prefix:e.substr(0,t),suffix:e.substr(t+1)}:void 0}var hw=new WeakMap;function gw(e){let t=hw.get(e);if(t!==void 0)return t;let n,r,i=Ye(e);for(let e of i){let t=mw(e);t!==void 0&&(typeof t==`string`?(n??=new Set).add(t):(r??=[]).push(t))}return hw.set(e,t={matchableStringSet:n,patterns:r}),t}function _w(e){return!(e>=0)}function vw(e){return e===`.ts`||e===`.tsx`||e===`.d.ts`||e===`.cts`||e===`.mts`||e===`.d.mts`||e===`.d.cts`||pn(e,`.d.`)&&$t(e,`.ts`)}function yw(e){return vw(e)||e===`.json`}function bw(e){let t=Sw(e);return t===void 0?H.fail(`File ${e} has unknown extension.`):t}function xw(e){return Sw(e)!==void 0}function Sw(e){return y(lw,t=>qa(e,t))}function Cw(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var ww={files:c,directories:c};function Tw(e,t){let{matchableStringSet:n,patterns:r}=e;if(n?.has(t))return t;if(!(r===void 0||r.length===0))return fn(r,e=>e,t)}function Ew(e,t){let n=e.indexOf(t);return H.assert(n!==-1),e.slice(n)}function Dw(e,...t){return t.length?(e.relatedInformation||=[],H.assert(e.relatedInformation!==c,`Diagnostic had empty array singleton for related info, but is still being constructed!`),e.relatedInformation.push(...t),e):e}function Qee(e,t){H.assert(e.length!==0);let n=t(e[0]),r=n;for(let i=1;ir&&(r=a)}return{min:n,max:r}}function Ow(e){return{pos:_p(e),end:e.end}}function kw(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Es(e.text,t.end)+1)}}function Aw(e,t,n){return Mw(e,t,n,!1)}function jw(e,t,n){return Mw(e,t,n,!0)}function Mw(e,t,n,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!r&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!Nw(e,t)}function Nw(e,t){if(e.checkJsDirective&&e.checkJsDirective.enabled===!1)return!1;if(e.scriptKind===3||e.scriptKind===4||e.scriptKind===5)return!0;let n=(e.scriptKind===1||e.scriptKind===2)&&Cw(e,t);return Zf(e,t.checkJs)||n||e.scriptKind===7}function Pw(e,t){return e===t||typeof e==`object`&&!!e&&typeof t==`object`&&!!t&&tt(e,t,Pw)}function Fw(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let n=e.length-1,r=0;for(;e.charCodeAt(r)===48;)r++;return e.slice(r,n)||`0`}let n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(r&15?1:0));for(let r=n-1,a=0;r>=2;r--,a+=t){let t=a>>>4,n=e.charCodeAt(r),o=(n<=57?n-48:10+n-(n<=70?65:97))<<(a&15);i[t]|=o;let s=o>>>16;s&&(i[t+1]|=s)}let a=``,o=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=o;t>=0;t--){let n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-r*10,r&&!s&&(o=t,s=!0)}a=e+a}return a}function Iw({negative:e,base10Value:t}){return(e&&t!==`0`?`-`:``)+t}function Lw(e){if(zw(e,!1))return Rw(e)}function Rw(e){let t=e.startsWith(`-`);return{negative:t,base10Value:Fw(`${t?e.slice(1):e}n`)}}function zw(e,t){if(e===``)return!1;let n=Gs(99,!1),r=!0;n.setOnError(()=>r=!1),n.setText(e+`n`);let i=n.scan(),a=i===41;a&&(i=n.scan());let o=n.getTokenFlags();return r&&i===10&&n.getTokenEnd()===e.length+1&&!(o&512)&&(!t||e===Iw({negative:a,base10Value:Fw(n.getTokenValue())}))}function Bw(e){return!!(e.flags&33554432)||ag(e)||Jh(e)||Uw(e)||Hw(e)||!(Kh(e)||Vw(e))}function Vw(e){return Y(e)&&hj(e.parent)&&e.parent.name===e}function Hw(e){for(;e.kind===80||e.kind===212;)e=e.parent;if(e.kind!==168)return!1;if(Qy(e.parent,64))return!0;let t=e.parent.parent.kind;return t===265||t===188}function Uw(e){if(e.kind!==80)return!1;let t=K(e.parent,e=>{switch(e.kind){case 299:return!0;case 212:case 234:return!1;default:return`quit`}});return t?.token===119||t?.parent.kind===265}function Ww(e){return YO(e)&&Y(e.typeName)}function Gw(e,t=Mt){if(e.length<2)return!0;let n=e[0];for(let r=1,i=e.length;re.includes(t))}function nT(e){if(!e.parent)return;switch(e.kind){case 169:let{parent:t}=e;return t.kind===196?void 0:t.typeParameters;case 170:return e.parent.parameters;case 205:return e.parent.templateSpans;case 240:return e.parent.templateSpans;case 171:{let{parent:t}=e;return HN(t)?t.modifiers:void 0}case 299:return e.parent.heritageClauses}let{parent:t}=e;if(Qd(e))return Pj(e.parent)?void 0:e.parent.tags;switch(t.kind){case 188:case 265:return Gu(e)?t.members:void 0;case 193:case 194:return t.types;case 190:case 210:case 357:case 276:case 280:return t.elements;case 211:case 293:return t.properties;case 214:case 215:return Ju(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 285:case 289:return Gd(e)?t.children:void 0;case 287:case 286:return Ju(e)?t.typeArguments:void 0;case 242:case 297:case 298:case 269:return t.statements;case 270:return t.clauses;case 264:case 232:return Ru(e)?t.members:void 0;case 267:return _j(e)?t.members:void 0;case 308:return t.statements}}function rT(e){if(!e.typeParameters){if(F(e.parameters,e=>!Ly(e)))return!0;if(e.kind!==220){let t=Pe(e.parameters);if(!(t&&jy(t)))return!0}}return!1}function iT(e){return e===`Infinity`||e===`-Infinity`||e===`NaN`}function aT(e){return e.kind===261&&e.parent.kind===300}function oT(e){return e.kind===219||e.kind===220}function sT(e){return e.replace(/\$/g,()=>`\\$`)}function cT(e){return(+e).toString()===e}function lT(e,t,n,r,i){let a=i&&e===`new`;return!a&&Ws(e,t)?J.createIdentifier(e):!r&&!a&&cT(e)&&+e>=0?J.createNumericLiteral(+e):J.createStringLiteral(e,!!n)}function uT(e){return!!(e.flags&262144&&e.isThisType)}function dT(e){let t=0,n=0,r=0,i=0,a;(e=>{e[e.BeforeNodeModules=0]=`BeforeNodeModules`,e[e.NodeModules=1]=`NodeModules`,e[e.Scope=2]=`Scope`,e[e.PackageContent=3]=`PackageContent`})(a||={});let o=0,s=0,c=0;for(;s>=0;)switch(o=s,s=e.indexOf(`/`,o+1),c){case 0:e.indexOf(dR,o)===o&&(t=o,n=s,c=1);break;case 1:case 2:c===1&&e.charAt(o+1)===`@`?c=2:(r=s,c=3);break;case 3:c=e.indexOf(dR,o)===o?1:3;break}return i=o,c>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:r,fileNameIndex:i}:void 0}function fT(e){switch(e.kind){case 169:case 264:case 265:case 266:case 267:case 347:case 339:case 341:return!0;case 274:return e.phaseModifier===156;case 277:return e.parent.parent.phaseModifier===156;case 282:return e.parent.parent.isTypeOnly;default:return!1}}function pT(e){return EA(e)||nA(e)||SA(e)||CA(e)||wA(e)||fT(e)||DA(e)&&!Gp(e)&&!Wp(e)}function mT(e){if(!tu(e))return!1;let{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===317}function hT(e,t){if(e.length===0)return!1;let n=e.charCodeAt(0);return n===35?e.length>1&&Hs(e.charCodeAt(1),t):Hs(n,t)}function gT(e){return hD(e)?.kind===0}function _T(e){return ng(e)&&(e.type&&e.type.kind===317||il(e).some(mT))}function vT(e){switch(e.kind){case 173:case 172:return!!e.questionToken;case 170:return!!e.questionToken||_T(e);case 349:case 342:return mT(e);default:return!1}}function yT(e){let t=e.kind;return(t===212||t===213)&&Jk(e.expression)}function bT(e){return ng(e)&&kk(e)&&tf(e)&&!!Dl(e)}function xT(e){return H.checkDefined(ST(e))}function ST(e){let t=Dl(e);return t&&t.typeExpression&&t.typeExpression.type}function CT(e){return Y(e)?e.escapedText:ET(e)}function wT(e){return Y(e)?Gc(e):DT(e)}function TT(e){let t=e.kind;return t===80||t===296}function ET(e){return`${e.namespace.escapedText}:${Gc(e.name)}`}function DT(e){return`${Gc(e.namespace)}:${Gc(e.name)}`}function OT(e){return Y(e)?Gc(e):DT(e)}function kT(e){return!!(e.flags&8576)}function AT(e){return e.flags&8192?e.escapedName:e.flags&384?Uc(``+e.value):H.fail()}function jT(e){return!!e&&(Ck(e)||wk(e)||Rk(e))}function MT(e){return e===void 0?!1:!!PW(e.attributes)}var NT=String.prototype.replace;function PT(e,t){return NT.call(e,`*`,t)}function FT(e){return Y(e.name)?e.name.escapedText:Uc(e.name.text)}function IT(e){switch(e.kind){case 169:case 170:case 173:case 172:case 186:case 185:case 180:case 181:case 182:case 175:case 174:case 176:case 177:case 178:case 179:case 184:case 183:case 187:case 188:case 189:case 190:case 193:case 194:case 197:case 191:case 192:case 198:case 199:case 195:case 196:case 204:case 206:case 203:case 329:case 330:case 347:case 339:case 341:case 346:case 345:case 325:case 326:case 327:case 342:case 349:case 318:case 316:case 315:case 313:case 314:case 323:case 319:case 310:case 334:case 336:case 335:case 351:case 344:case 200:case 201:case 263:case 242:case 269:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 252:case 253:case 254:case 255:case 256:case 257:case 258:case 259:case 261:case 209:case 264:case 265:case 266:case 267:case 268:case 273:case 272:case 279:case 278:case 243:case 260:case 283:return!0}return!1}function LT(e,t=!1,n=!1,r=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:r}}function RT({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function n(i,a){let o=!1,s=!1,c=!1;switch(i=F_(i),i.kind){case 225:let l=n(i.operand,a);if(s=l.resolvedOtherFiles,c=l.hasExternalReferences,typeof l.value==`number`)switch(i.operator){case 40:return LT(l.value,o,s,c);case 41:return LT(-l.value,o,s,c);case 55:return LT(~l.value,o,s,c)}break;case 227:{let e=n(i.left,a),t=n(i.right,a);if(o=(e.isSyntacticallyString||t.isSyntacticallyString)&&i.operatorToken.kind===40,s=e.resolvedOtherFiles||t.resolvedOtherFiles,c=e.hasExternalReferences||t.hasExternalReferences,typeof e.value==`number`&&typeof t.value==`number`)switch(i.operatorToken.kind){case 52:return LT(e.value|t.value,o,s,c);case 51:return LT(e.value&t.value,o,s,c);case 49:return LT(e.value>>t.value,o,s,c);case 50:return LT(e.value>>>t.value,o,s,c);case 48:return LT(e.value<=2)break;case 175:case 177:case 178:case 179:case 263:if(d&3&&ee===`arguments`){C=n;break loop}break;case 219:if(d&3&&ee===`arguments`){C=n;break loop}if(d&16){let e=s.name;if(e&&ee===e.escapedText){C=s.symbol;break loop}}break;case 171:s.parent&&s.parent.kind===170&&(s=s.parent),s.parent&&(Ru(s.parent)||s.parent.kind===264)&&(s=s.parent);break;case 347:case 339:case 341:case 352:let a=b_(s);a&&(s=a.parent);break;case 170:w&&(w===s.initializer||w===s.name&&Xu(w))&&(D||=s);break;case 209:w&&(w===s.initializer||w===s.name&&Xu(w))&&Ev(s)&&!D&&(D=s);break;case 196:if(d&262144){let e=s.typeParameter.name;if(e&&ee===e.escapedText){C=s.typeParameter.symbol;break loop}}break;case 282:w&&w===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent);break}b(s,w)&&(T=s),w=s,s=$j(s)?h_(s)||s.parent:(Yj(s)||Xj(s))&&__(s)||s.parent}if(g&&C&&(!T||C!==T.symbol)&&(C.isReferenced|=d),!C){if(w&&(H.assertNode(w,vj),w.commonJsModuleIndicator&&ee===`exports`&&d&w.symbol.flags))return w.symbol;y||(C=o(a,ee,d))}if(!C&&S&&ng(S)&&S.parent&&sg(S.parent,!1))return t;if(m){if(E&&l(S,ee,E,C))return;C?f(S,C,d,w,D,O):u(S,c,d,m)}return C}function _(t,n,r){let i=zS(e),a=n;if(FO(r)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){let e=c(a);return e===void 0&&(e=d(a.parameters,o)||!1,s(a,e)),!e}return!1;function o(e){return l(e.name)||!!e.initializer&&l(e.initializer)}function l(e){switch(e.kind){case 220:case 219:case 263:case 177:return!1;case 175:case 178:case 179:case 304:return l(e.name);case 173:return eb(e)?!m:l(e.name);default:return Yl(e)||Gl(e)?i<7:bk(e)&&e.dotDotDotToken&&vk(e.parent)?i<4:Ju(e)?!1:pP(e,l)||!1}}}function v(e,t){return e.kind!==220&&e.kind!==219?QO(e)||(Nu(e)||e.kind===173&&!$y(e))&&(!t||t!==e.name):t&&t===e.name?!1:e.asteriskToken||Qy(e,1024)?!0:!jh(e)}function b(e,t){switch(e.kind){case 170:return!!t&&t===e.name;case 263:case 264:case 265:case 267:case 266:case 268:return!0;default:return!1}}function x(e,t){if(e.declarations){for(let n of e.declarations)if(n.kind===169&&($j(n.parent)?y_(n.parent):n.parent)===t)return!($j(n.parent)&&y(n.parent.parent.tags,t_))}return!1}}function HT(e,t=!0){switch(H.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 225:return e.operator===41?$D(e.operand)||t&&eO(e.operand):e.operator===40?$D(e.operand):!1;default:return!1}}function UT(e){for(;e.kind===218;)e=e.expression;return e}function WT(e){switch(H.type(e),e.kind){case 170:case 172:case 173:case 209:case 212:case 213:case 227:case 261:case 278:case 304:case 305:case 342:case 349:return!0;default:return!1}}function GT(e){let t=K(e,MA);return!!t&&!t.importClause}var KT=`assert.assert/strict.async_hooks.buffer.child_process.cluster.console.constants.crypto.dgram.diagnostics_channel.dns.dns/promises.domain.events.fs.fs/promises.http.http2.https.inspector.inspector/promises.module.net.os.path.path/posix.path/win32.perf_hooks.process.punycode.querystring.readline.readline/promises.repl.stream.stream/consumers.stream/promises.stream/web.string_decoder.sys.test/mock_loader.timers.timers/promises.tls.trace_events.tty.url.util.util/types.v8.vm.wasi.worker_threads.zlib`.split(`.`),qT=new Set(KT),JT=new Set([`node:sea`,`node:sqlite`,`node:test`,`node:test/reporters`]),YT=new Set([...KT,...KT.map(e=>`node:${e}`),...JT]);function XT(e,t,n,r){let i=ng(e),a=/import|require/g;for(;a.exec(e.text)!==null;){let o=ete(e,a.lastIndex,t);if(i&&sg(o,n))r(o,o.arguments[0]);else if(Bm(o)&&o.arguments.length>=1&&(!n||uf(o.arguments[0])))r(o,o.arguments[0]);else if(t&&Hm(o))r(o,o.argument.literal);else if(t&&oM(o)){let e=Yg(o);e&&tO(e)&&e.text&&r(o,e)}}}function ete(e,t,n){let r=ng(e),i=e,a=e=>{if(e.pos<=t&&(te&&t(e))}function tE(e,t,n,r){let i;return a(e,t,void 0);function a(e,t,o){if(r){let t=r(e,o);if(t)return t}let s;return d(t,(e,t)=>{if(e&&i?.has(e.sourceFile.path)){(s??=new Set).add(e);return}let r=n(e,o,t);if(r||!e)return r;(i||=new Set).add(e.sourceFile.path)})||d(t,e=>e&&!s?.has(e)?a(e.commandLine.projectReferences,e.references,e):void 0)}}function nE(e,t,n){return e&&rE(e,t,n)}function rE(e,t,n){return gh(e,t,e=>xk(e.initializer)?y(e.initializer.elements,e=>tO(e)&&e.text===n):void 0)}function iE(e,t,n){return aE(e,t,e=>tO(e.initializer)&&e.initializer.text===n?e.initializer:void 0)}function aE(e,t,n){return gh(e,t,n)}function oE(e,t=!0){let n=e&&cE(e);return n&&!t&&dE(n),Qw(n,!1)}function sE(e,t,n){let r=n(e);return r?zE(r,e):r=cE(e,n),r&&!t&&dE(r),r}function cE(e,t){let n=t?e=>sE(e,!0,t):oE,r=PB(e,n,void 0,t?e=>e&&uE(e,!0,t):e=>e&&lE(e),n);return r===e?X(tO(e)?zE(J.createStringLiteralFromNode(e),e):$D(e)?zE(J.createNumericLiteral(e.text,e.numericLiteralFlags),e):J.cloneNode(e),e):(r.parent=void 0,r)}function lE(e,t=!0){if(e){let n=J.createNodeArray(e.map(e=>oE(e,t)),e.hasTrailingComma);return X(n,e),n}return e}function uE(e,t,n){return J.createNodeArray(e.map(e=>sE(e,t,n)),e.hasTrailingComma)}function dE(e){fE(e),pE(e)}function fE(e){mE(e,1024,hE)}function pE(e){mE(e,2048,qx)}function mE(e,t,n){WE(e,t);let r=n(e);r&&mE(r,t,n)}function hE(e){return pP(e,e=>e)}function gE(){let e,t,n,r,i;return{createBaseSourceFileNode:a,createBaseIdentifierNode:o,createBasePrivateIdentifierNode:s,createBaseTokenNode:c,createBaseNode:l};function a(e){return new(i||=(oS.getSourceFileConstructor()))(e,-1,-1)}function o(e){return new(n||=(oS.getIdentifierConstructor()))(e,-1,-1)}function s(e){return new(r||=(oS.getPrivateIdentifierConstructor()))(e,-1,-1)}function c(e){return new(t||=(oS.getTokenConstructor()))(e,-1,-1)}function l(t){return new(e||=(oS.getNodeConstructor()))(t,-1,-1)}}function _E(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:r,getParenthesizeRightSideOfBinaryForOperator:i,parenthesizeLeftSideOfBinary:u,parenthesizeRightSideOfBinary:d,parenthesizeExpressionOfComputedPropertyName:f,parenthesizeConditionOfConditionalExpression:p,parenthesizeBranchOfConditionalExpression:m,parenthesizeExpressionOfExportDefault:h,parenthesizeExpressionOfNew:g,parenthesizeLeftSideOfAccess:_,parenthesizeOperandOfPostfixUnary:v,parenthesizeOperandOfPrefixUnary:y,parenthesizeExpressionsOfCommaDelimitedList:b,parenthesizeExpressionForDisallowedComma:x,parenthesizeExpressionOfExpressionStatement:S,parenthesizeConciseBodyOfArrowFunction:C,parenthesizeCheckTypeOfConditionalType:w,parenthesizeExtendsTypeOfConditionalType:T,parenthesizeConstituentTypesOfUnionType:D,parenthesizeConstituentTypeOfUnionType:E,parenthesizeConstituentTypesOfIntersectionType:k,parenthesizeConstituentTypeOfIntersectionType:O,parenthesizeOperandOfTypeOperator:ee,parenthesizeOperandOfReadonlyTypeOperator:ne,parenthesizeNonArrayTypeOfPostfixType:re,parenthesizeElementTypesOfTupleType:ie,parenthesizeElementTypeOfTupleType:ae,parenthesizeTypeOfOptionalType:j,parenthesizeTypeArguments:oe,parenthesizeLeadingTypeArgument:M};function r(e){t||=new Map;let n=t.get(e);return n||(n=t=>u(e,t),t.set(e,n)),n}function i(e){n||=new Map;let t=n.get(e);return t||(t=t=>d(e,void 0,t),n.set(e,t)),t}function a(e,t){return e===61?t===56||t===57:t===61?e===56||e===57:!1}function o(e,t,n,r){let i=Zl(t);if(Rk(i)&&a(e,i.operatorToken.kind))return!0;let o=Iv(227,e),l=Mv(227,e);if(!n&&t.kind===220&&o>3)return!0;switch(It(Nv(i),o)){case-1:return!(!n&&l===1&&t.kind===230);case 1:return!1;case 0:if(n)return l===1;if(Rk(i)&&i.operatorToken.kind===e){if(s(e))return!1;if(e===40){let e=r?c(r):0;if(ou(e)&&e===c(i))return!1}}return jv(i)===0}}function s(e){return e===42||e===52||e===51||e===53||e===28}function c(e){if(e=Zl(e),ou(e.kind))return e.kind;if(e.kind===227&&e.operatorToken.kind===40){if(e.cachedLiteralKind!==void 0)return e.cachedLiteralKind;let t=c(e.left),n=ou(t)&&t===c(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function l(t,n,r,i){return Zl(n).kind===218?n:o(t,n,r,i)?e.createParenthesizedExpression(n):n}function u(e,t){return l(e,t,!0)}function d(e,t,n){return l(e,n,!1,t)}function f(t){return IM(t)?e.createParenthesizedExpression(t):t}function p(t){let n=Iv(228,58);return It(Nv(Zl(t)),n)===1?t:e.createParenthesizedExpression(t)}function m(t){return IM(Zl(t))?e.createParenthesizedExpression(t):t}function h(t){let n=Zl(t),r=IM(n);if(!r)switch(nS(n,!1).kind){case 232:case 219:r=!0}return r?e.createParenthesizedExpression(t):t}function g(t){let n=nS(t,!0);switch(n.kind){case 214:return e.createParenthesizedExpression(t);case 215:return n.arguments?t:e.createParenthesizedExpression(t)}return _(t)}function _(t,n){let r=Zl(t);return fd(r)&&(r.kind!==215||r.arguments)&&(n||!Gl(r))?t:X(e.createParenthesizedExpression(t),t)}function v(t){return fd(t)?t:X(e.createParenthesizedExpression(t),t)}function y(t){return md(t)?t:X(e.createParenthesizedExpression(t),t)}function b(t){let n=te(t,x);return X(e.createNodeArray(n,t.hasTrailingComma),t)}function x(t){return Nv(Zl(t))>Iv(227,28)?t:X(e.createParenthesizedExpression(t),t)}function S(t){let n=Zl(t);if(Tk(n)){let r=n.expression,i=Zl(r).kind;if(i===219||i===220){let i=e.updateCallExpression(n,X(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}let r=nS(n,!1).kind;return r===211||r===219?X(e.createParenthesizedExpression(t),t):t}function C(t){return!tA(t)&&(IM(t)||nS(t,!1).kind===211)?X(e.createParenthesizedExpression(t),t):t}function w(t){switch(t.kind){case 185:case 186:case 195:return e.createParenthesizedType(t)}return t}function T(t){switch(t.kind){case 195:return e.createParenthesizedType(t)}return t}function E(t){switch(t.kind){case 193:case 194:return e.createParenthesizedType(t)}return w(t)}function D(t){return e.createNodeArray(te(t,E))}function O(t){switch(t.kind){case 193:case 194:return e.createParenthesizedType(t)}return E(t)}function k(t){return e.createNodeArray(te(t,O))}function ee(t){switch(t.kind){case 194:return e.createParenthesizedType(t)}return O(t)}function ne(t){switch(t.kind){case 199:return e.createParenthesizedType(t)}return ee(t)}function re(t){switch(t.kind){case 196:case 199:case 187:return e.createParenthesizedType(t)}return ee(t)}function ie(t){return e.createNodeArray(te(t,ae))}function ae(t){return A(t)?e.createParenthesizedType(t):t}function A(e){return Dj(e)?e.postfix:nk(e)||XO(e)||ZO(e)||dk(e)?A(e.type):sk(e)?A(e.falseType):ak(e)||ok(e)?A(ze(e.types)):ck(e)?!!e.typeParameter.constraint&&A(e.typeParameter.constraint):!1}function j(t){return A(t)?e.createParenthesizedType(t):re(t)}function M(t){return Yu(t)&&t.typeParameters?e.createParenthesizedType(t):t}function N(e,t){return t===0?M(e):e}function oe(t){if(F(t))return e.createNodeArray(te(t,N))}}var vE={getParenthesizeLeftSideOfBinaryForOperator:e=>wt,getParenthesizeRightSideOfBinaryForOperator:e=>wt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:wt,parenthesizeConditionOfConditionalExpression:wt,parenthesizeBranchOfConditionalExpression:wt,parenthesizeExpressionOfExportDefault:wt,parenthesizeExpressionOfNew:e=>yt(e,fd),parenthesizeLeftSideOfAccess:e=>yt(e,fd),parenthesizeOperandOfPostfixUnary:e=>yt(e,fd),parenthesizeOperandOfPrefixUnary:e=>yt(e,md),parenthesizeExpressionsOfCommaDelimitedList:e=>yt(e,au),parenthesizeExpressionForDisallowedComma:wt,parenthesizeExpressionOfExpressionStatement:wt,parenthesizeConciseBodyOfArrowFunction:wt,parenthesizeCheckTypeOfConditionalType:wt,parenthesizeExtendsTypeOfConditionalType:wt,parenthesizeConstituentTypesOfUnionType:e=>yt(e,au),parenthesizeConstituentTypeOfUnionType:wt,parenthesizeConstituentTypesOfIntersectionType:e=>yt(e,au),parenthesizeConstituentTypeOfIntersectionType:wt,parenthesizeOperandOfTypeOperator:wt,parenthesizeOperandOfReadonlyTypeOperator:wt,parenthesizeNonArrayTypeOfPostfixType:wt,parenthesizeElementTypesOfTupleType:e=>yt(e,au),parenthesizeElementTypeOfTupleType:wt,parenthesizeTypeOfOptionalType:wt,parenthesizeTypeArguments:e=>e&&yt(e,au),parenthesizeLeadingTypeArgument:wt};function yE(e){return{convertToFunctionBlock:t,convertToFunctionExpression:n,convertToClassExpression:r,convertToArrayAssignmentElement:i,convertToObjectAssignmentElement:a,convertToAssignmentPattern:o,convertToObjectAssignmentPattern:s,convertToArrayAssignmentPattern:c,convertToAssignmentElementTarget:l};function t(t,n){if(tA(t))return t;let r=e.createReturnStatement(t);X(r,t);let i=e.createBlock([r],n);return X(i,t),i}function n(t){if(!t.body)return H.fail(`Cannot convert a FunctionDeclaration without a body`);let n=e.createFunctionExpression(rl(t)?.filter(e=>!yO(e)&&!bO(e)),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return zE(n,t),X(n,t),ZE(t)&&QE(n,!0),n}function r(t){let n=e.createClassExpression(t.modifiers?.filter(e=>!yO(e)&&!bO(e)),t.name,t.typeParameters,t.heritageClauses,t.members);return zE(n,t),X(n,t),ZE(t)&&QE(n,!0),n}function i(t){if(bk(t)){if(t.dotDotDotToken)return H.assertNode(t.name,Y),zE(X(e.createSpreadElement(t.name),t),t);let n=l(t.name);return t.initializer?zE(X(e.createAssignment(n,t.initializer),t),t):n}return yt(t,q)}function a(t){if(bk(t)){if(t.dotDotDotToken)return H.assertNode(t.name,Y),zE(X(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){let n=l(t.name);return zE(X(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return H.assertNode(t.name,Y),zE(X(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return yt(t,qu)}function o(e){switch(e.kind){case 208:case 210:return c(e);case 207:case 211:return s(e)}}function s(t){return vk(t)?zE(X(e.createObjectLiteralExpression(k(t.elements,a)),t),t):yt(t,Sk)}function c(t){return yk(t)?zE(X(e.createArrayLiteralExpression(k(t.elements,i)),t),t):yt(t,xk)}function l(e){return Xu(e)?o(e):yt(e,q)}}var bE={convertToFunctionBlock:Ot,convertToFunctionExpression:Ot,convertToClassExpression:Ot,convertToArrayAssignmentElement:Ot,convertToObjectAssignmentElement:Ot,convertToAssignmentPattern:Ot,convertToObjectAssignmentPattern:Ot,convertToArrayAssignmentPattern:Ot,convertToAssignmentElementTarget:Ot},xE=0,SE=(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))(SE||{}),CE=[];function wE(e){CE.push(e)}function TE(e,t){let n=e&8?wt:zE,r=kt(()=>e&1?vE:_E(b)),i=kt(()=>e&2?bE:yE(b)),a=At(e=>(t,n)=>or(t,e,n)),o=At(e=>t=>nr(e,t)),s=At(e=>t=>ir(t,e)),l=At(e=>()=>Ma(e)),u=At(e=>t=>Pa(e,t)),f=At(e=>(t,n)=>Ia(e,t,n)),p=At(e=>(t,n)=>Na(e,t,n)),m=At(e=>(t,n)=>Fa(e,t,n)),h=At(e=>(t,n)=>So(e,t,n)),g=At(e=>(t,n,r)=>Co(e,t,n,r)),_=At(e=>(t,n,r)=>wo(e,t,n,r)),y=At(e=>(t,n,r,i)=>To(e,t,n,r,i)),b={get parenthesizer(){return r()},get converters(){return i()},baseFactory:t,flags:e,createNodeArray:x,createNumericLiteral:T,createBigIntLiteral:E,createStringLiteral:O,createStringLiteralFromNode:k,createRegularExpressionLiteral:ee,createLiteralLikeNode:te,createIdentifier:ie,createTempVariable:ae,createLoopVariable:j,createUniqueName:M,getGeneratedNameForNode:N,createPrivateIdentifier:se,createUniquePrivateName:P,getGeneratedPrivateNameForNode:le,createToken:de,createSuper:fe,createThis:pe,createNull:me,createTrue:he,createFalse:ge,createModifier:_e,createModifiersFromModifierFlags:ve,createQualifiedName:ye,updateQualifiedName:be,createComputedPropertyName:xe,updateComputedPropertyName:Se,createTypeParameterDeclaration:Ce,updateTypeParameterDeclaration:we,createParameterDeclaration:Te,updateParameterDeclaration:Ee,createDecorator:De,updateDecorator:Oe,createPropertySignature:ke,updatePropertySignature:Ae,createPropertyDeclaration:Me,updatePropertyDeclaration:Ne,createMethodSignature:Pe,updateMethodSignature:Fe,createMethodDeclaration:Ie,updateMethodDeclaration:Le,createConstructorDeclaration:We,updateConstructorDeclaration:L,createGetAccessorDeclaration:Je,updateGetAccessorDeclaration:Ye,createSetAccessorDeclaration:Ze,updateSetAccessorDeclaration:Qe,createCallSignature:et,updateCallSignature:tt,createConstructSignature:nt,updateConstructSignature:rt,createIndexSignature:it,updateIndexSignature:at,createClassStaticBlockDeclaration:Ve,updateClassStaticBlockDeclaration:He,createTemplateLiteralTypeSpan:ot,updateTemplateLiteralTypeSpan:st,createKeywordTypeNode:ct,createTypePredicateNode:lt,updateTypePredicateNode:ut,createTypeReferenceNode:R,updateTypeReferenceNode:dt,createFunctionTypeNode:z,updateFunctionTypeNode:ft,createConstructorTypeNode:ht,updateConstructorTypeNode:vt,createTypeQueryNode:Ct,updateTypeQueryNode:Tt,createTypeLiteralNode:Et,updateTypeLiteralNode:Dt,createArrayTypeNode:Ot,updateArrayTypeNode:jt,createTupleTypeNode:Mt,updateTupleTypeNode:Nt,createNamedTupleMember:Pt,updateNamedTupleMember:Ft,createOptionalTypeNode:It,updateOptionalTypeNode:Lt,createRestTypeNode:Rt,updateRestTypeNode:zt,createUnionTypeNode:Ht,updateUnionTypeNode:Ut,createIntersectionTypeNode:Wt,updateIntersectionTypeNode:Gt,createConditionalTypeNode:Kt,updateConditionalTypeNode:qt,createInferTypeNode:Jt,updateInferTypeNode:Yt,createImportTypeNode:Qt,updateImportTypeNode:B,createParenthesizedType:$t,updateParenthesizedType:en,createThisTypeNode:tn,createTypeOperatorNode:nn,updateTypeOperatorNode:rn,createIndexedAccessTypeNode:an,updateIndexedAccessTypeNode:on,createMappedTypeNode:sn,updateMappedTypeNode:cn,createLiteralTypeNode:ln,updateLiteralTypeNode:un,createTemplateLiteralType:Xt,updateTemplateLiteralType:Zt,createObjectBindingPattern:dn,updateObjectBindingPattern:fn,createArrayBindingPattern:mn,updateArrayBindingPattern:hn,createBindingElement:gn,updateBindingElement:_n,createArrayLiteralExpression:vn,updateArrayLiteralExpression:yn,createObjectLiteralExpression:bn,updateObjectLiteralExpression:xn,createPropertyAccessExpression:e&4?(e,t)=>UE(Sn(e,t),262144):Sn,updatePropertyAccessExpression:Cn,createPropertyAccessChain:e&4?(e,t,n)=>UE(wn(e,t,n),262144):wn,updatePropertyAccessChain:Tn,createElementAccessExpression:Dn,updateElementAccessExpression:On,createElementAccessChain:kn,updateElementAccessChain:An,createCallExpression:Mn,updateCallExpression:Nn,createCallChain:Pn,updateCallChain:Fn,createNewExpression:In,updateNewExpression:Ln,createTaggedTemplateExpression:Rn,updateTaggedTemplateExpression:zn,createTypeAssertion:Bn,updateTypeAssertion:Vn,createParenthesizedExpression:Hn,updateParenthesizedExpression:Un,createFunctionExpression:Wn,updateFunctionExpression:Gn,createArrowFunction:Kn,updateArrowFunction:qn,createDeleteExpression:Jn,updateDeleteExpression:Yn,createTypeOfExpression:Xn,updateTypeOfExpression:Zn,createVoidExpression:Qn,updateVoidExpression:$n,createAwaitExpression:er,updateAwaitExpression:tr,createPrefixUnaryExpression:nr,updatePrefixUnaryExpression:rr,createPostfixUnaryExpression:ir,updatePostfixUnaryExpression:ar,createBinaryExpression:or,updateBinaryExpression:cr,createConditionalExpression:lr,updateConditionalExpression:ur,createTemplateExpression:dr,updateTemplateExpression:fr,createTemplateHead:vr,createTemplateMiddle:yr,createTemplateTail:br,createNoSubstitutionTemplateLiteral:xr,createTemplateLiteralLikeNode:_r,createYieldExpression:Sr,updateYieldExpression:Cr,createSpreadElement:wr,updateSpreadElement:Tr,createClassExpression:Er,updateClassExpression:Dr,createOmittedExpression:Or,createExpressionWithTypeArguments:kr,updateExpressionWithTypeArguments:Ar,createAsExpression:jr,updateAsExpression:Mr,createNonNullExpression:Nr,updateNonNullExpression:Pr,createSatisfiesExpression:Fr,updateSatisfiesExpression:Ir,createNonNullChain:Lr,updateNonNullChain:Rr,createMetaProperty:zr,updateMetaProperty:Br,createTemplateSpan:Vr,updateTemplateSpan:Hr,createSemicolonClassElement:Ur,createBlock:Wr,updateBlock:Gr,createVariableStatement:Kr,updateVariableStatement:qr,createEmptyStatement:Jr,createExpressionStatement:Yr,updateExpressionStatement:Xr,createIfStatement:Zr,updateIfStatement:Qr,createDoStatement:$r,updateDoStatement:ei,createWhileStatement:ti,updateWhileStatement:ni,createForStatement:ri,updateForStatement:ii,createForInStatement:ai,updateForInStatement:oi,createForOfStatement:si,updateForOfStatement:ci,createContinueStatement:li,updateContinueStatement:ui,createBreakStatement:di,updateBreakStatement:fi,createReturnStatement:pi,updateReturnStatement:mi,createWithStatement:hi,updateWithStatement:gi,createSwitchStatement:_i,updateSwitchStatement:vi,createLabeledStatement:yi,updateLabeledStatement:bi,createThrowStatement:xi,updateThrowStatement:Si,createTryStatement:Ci,updateTryStatement:wi,createDebuggerStatement:Ti,createVariableDeclaration:Ei,updateVariableDeclaration:Di,createVariableDeclarationList:Oi,updateVariableDeclarationList:ki,createFunctionDeclaration:Ai,updateFunctionDeclaration:ji,createClassDeclaration:Ni,updateClassDeclaration:Pi,createInterfaceDeclaration:Fi,updateInterfaceDeclaration:Ii,createTypeAliasDeclaration:Li,updateTypeAliasDeclaration:Ri,createEnumDeclaration:zi,updateEnumDeclaration:Bi,createModuleDeclaration:Vi,updateModuleDeclaration:Hi,createModuleBlock:Ui,updateModuleBlock:Wi,createCaseBlock:Gi,updateCaseBlock:Ki,createNamespaceExportDeclaration:qi,updateNamespaceExportDeclaration:Ji,createImportEqualsDeclaration:Xi,updateImportEqualsDeclaration:Zi,createImportDeclaration:Qi,updateImportDeclaration:$i,createImportClause:ea,updateImportClause:ta,createAssertClause:na,updateAssertClause:ra,createAssertEntry:ia,updateAssertEntry:aa,createImportTypeAssertionContainer:oa,updateImportTypeAssertionContainer:sa,createImportAttributes:ca,updateImportAttributes:la,createImportAttribute:ua,updateImportAttribute:da,createNamespaceImport:fa,updateNamespaceImport:pa,createNamespaceExport:ma,updateNamespaceExport:ha,createNamedImports:ga,updateNamedImports:_a,createImportSpecifier:va,updateImportSpecifier:ya,createExportAssignment:ba,updateExportAssignment:xa,createExportDeclaration:Sa,updateExportDeclaration:Ca,createNamedExports:Ta,updateNamedExports:Ea,createExportSpecifier:Da,updateExportSpecifier:Oa,createMissingDeclaration:ka,createExternalModuleReference:Aa,updateExternalModuleReference:ja,get createJSDocAllType(){return l(313)},get createJSDocUnknownType(){return l(314)},get createJSDocNonNullableType(){return p(316)},get updateJSDocNonNullableType(){return m(316)},get createJSDocNullableType(){return p(315)},get updateJSDocNullableType(){return m(315)},get createJSDocOptionalType(){return u(317)},get updateJSDocOptionalType(){return f(317)},get createJSDocVariadicType(){return u(319)},get updateJSDocVariadicType(){return f(319)},get createJSDocNamepathType(){return u(320)},get updateJSDocNamepathType(){return f(320)},createJSDocFunctionType:La,updateJSDocFunctionType:Ra,createJSDocTypeLiteral:za,updateJSDocTypeLiteral:Ba,createJSDocTypeExpression:Va,updateJSDocTypeExpression:Ha,createJSDocSignature:Ua,updateJSDocSignature:Wa,createJSDocTemplateTag:Ja,updateJSDocTemplateTag:Ya,createJSDocTypedefTag:Xa,updateJSDocTypedefTag:Za,createJSDocParameterTag:U,updateJSDocParameterTag:Qa,createJSDocPropertyTag:$a,updateJSDocPropertyTag:eo,createJSDocCallbackTag:to,updateJSDocCallbackTag:no,createJSDocOverloadTag:ro,updateJSDocOverloadTag:io,createJSDocAugmentsTag:ao,updateJSDocAugmentsTag:oo,createJSDocImplementsTag:so,updateJSDocImplementsTag:xo,createJSDocSeeTag:co,updateJSDocSeeTag:lo,createJSDocImportTag:Ao,updateJSDocImportTag:jo,createJSDocNameReference:uo,updateJSDocNameReference:fo,createJSDocMemberName:po,updateJSDocMemberName:mo,createJSDocLink:ho,updateJSDocLink:go,createJSDocLinkCode:_o,updateJSDocLinkCode:vo,createJSDocLinkPlain:yo,updateJSDocLinkPlain:bo,get createJSDocTypeTag(){return _(345)},get updateJSDocTypeTag(){return y(345)},get createJSDocReturnTag(){return _(343)},get updateJSDocReturnTag(){return y(343)},get createJSDocThisTag(){return _(344)},get updateJSDocThisTag(){return y(344)},get createJSDocAuthorTag(){return h(331)},get updateJSDocAuthorTag(){return g(331)},get createJSDocClassTag(){return h(333)},get updateJSDocClassTag(){return g(333)},get createJSDocPublicTag(){return h(334)},get updateJSDocPublicTag(){return g(334)},get createJSDocPrivateTag(){return h(335)},get updateJSDocPrivateTag(){return g(335)},get createJSDocProtectedTag(){return h(336)},get updateJSDocProtectedTag(){return g(336)},get createJSDocReadonlyTag(){return h(337)},get updateJSDocReadonlyTag(){return g(337)},get createJSDocOverrideTag(){return h(338)},get updateJSDocOverrideTag(){return g(338)},get createJSDocDeprecatedTag(){return h(332)},get updateJSDocDeprecatedTag(){return g(332)},get createJSDocThrowsTag(){return _(350)},get updateJSDocThrowsTag(){return y(350)},get createJSDocSatisfiesTag(){return _(351)},get updateJSDocSatisfiesTag(){return y(351)},createJSDocEnumTag:Oo,updateJSDocEnumTag:ko,createJSDocUnknownTag:Eo,updateJSDocUnknownTag:Do,createJSDocText:Mo,updateJSDocText:No,createJSDocComment:Po,updateJSDocComment:Fo,createJsxElement:Io,updateJsxElement:Lo,createJsxSelfClosingElement:Ro,updateJsxSelfClosingElement:W,createJsxOpeningElement:G,updateJsxOpeningElement:zo,createJsxClosingElement:Bo,updateJsxClosingElement:Vo,createJsxFragment:Ho,createJsxText:Wo,updateJsxText:Go,createJsxOpeningFragment:Ko,createJsxJsxClosingFragment:qo,updateJsxFragment:Uo,createJsxAttribute:Jo,updateJsxAttribute:Yo,createJsxAttributes:Xo,updateJsxAttributes:Zo,createJsxSpreadAttribute:Qo,updateJsxSpreadAttribute:$o,createJsxExpression:es,updateJsxExpression:ts,createJsxNamespacedName:ns,updateJsxNamespacedName:rs,createCaseClause:is,updateCaseClause:os,createDefaultClause:ss,updateDefaultClause:cs,createHeritageClause:ls,updateHeritageClause:us,createCatchClause:ds,updateCatchClause:fs,createPropertyAssignment:ps,updatePropertyAssignment:ms,createShorthandPropertyAssignment:gs,updateShorthandPropertyAssignment:_s,createSpreadAssignment:ys,updateSpreadAssignment:bs,createEnumMember:xs,updateEnumMember:Ss,createSourceFile:Cs,updateSourceFile:ks,createRedirectedSourceFile:ws,createBundle:As,updateBundle:js,createSyntheticExpression:Ms,createSyntaxList:Ns,createNotEmittedStatement:Ps,createNotEmittedTypeElement:Ls,createPartiallyEmittedExpression:Fs,updatePartiallyEmittedExpression:Is,createCommaListExpression:zs,updateCommaListExpression:Bs,createSyntheticReferenceExpression:Vs,updateSyntheticReferenceExpression:Hs,cloneNode:qs,get createComma(){return a(28)},get createAssignment(){return a(64)},get createLogicalOr(){return a(57)},get createLogicalAnd(){return a(56)},get createBitwiseOr(){return a(52)},get createBitwiseXor(){return a(53)},get createBitwiseAnd(){return a(51)},get createStrictEquality(){return a(37)},get createStrictInequality(){return a(38)},get createEquality(){return a(35)},get createInequality(){return a(36)},get createLessThan(){return a(30)},get createLessThanEquals(){return a(33)},get createGreaterThan(){return a(32)},get createGreaterThanEquals(){return a(34)},get createLeftShift(){return a(48)},get createRightShift(){return a(49)},get createUnsignedRightShift(){return a(50)},get createAdd(){return a(40)},get createSubtract(){return a(41)},get createMultiply(){return a(42)},get createDivide(){return a(44)},get createModulo(){return a(45)},get createExponent(){return a(43)},get createPrefixPlus(){return o(40)},get createPrefixMinus(){return o(41)},get createPrefixIncrement(){return o(46)},get createPrefixDecrement(){return o(47)},get createBitwiseNot(){return o(55)},get createLogicalNot(){return o(54)},get createPostfixIncrement(){return s(46)},get createPostfixDecrement(){return s(47)},createImmediatelyInvokedFunctionExpression:Js,createImmediatelyInvokedArrowFunction:Ys,createVoidZero:Xs,createExportDefault:Zs,createExternalModuleExport:Qs,createTypeCheck:$s,createIsNotTypeCheck:ec,createMethodCall:tc,createGlobalMethodCall:ac,createFunctionBindCall:nc,createFunctionCallCall:rc,createFunctionApplyCall:ic,createArraySliceCall:oc,createArrayConcatCall:sc,createObjectDefinePropertyCall:cc,createObjectGetOwnPropertyDescriptorCall:lc,createReflectGetCall:uc,createReflectSetCall:dc,createPropertyDescriptor:pc,createCallBinding:yc,createAssignmentTargetWrapper:bc,inlineExpressions:xc,getInternalName:Cc,getLocalName:wc,getExportName:Tc,getDeclarationName:Ec,getNamespaceMemberName:Dc,getExternalModuleOrNamespaceExportName:Oc,restoreOuterExpressions:gc,restoreEnclosingLabel:_c,createUseStrictPrologue:jc,copyPrologue:kc,copyStandardPrologue:Mc,copyCustomPrologue:Nc,ensureUseStrict:Pc,liftToBlock:Fc,mergeLexicalEnvironment:Lc,replaceModifiers:Rc,replaceDecoratorsAndModifiers:zc,replacePropertyName:Bc};return d(CE,e=>e(b)),b;function x(e,t){if(e===void 0||e===c)e=[];else if(au(e)){if(t===void 0||e.hasTrailingComma===t)return e.transformFlags===void 0&&PE(e),H.attachNodeArrayDebugInfo(e),e;let n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,H.attachNodeArrayDebugInfo(n),n}let n=e.length,r=n>=1&&n<=4?e.slice():e;return r.pos=-1,r.end=-1,r.hasTrailingComma=!!t,r.transformFlags=0,PE(r),H.attachNodeArrayDebugInfo(r),r}function S(e){return t.createBaseNode(e)}function C(e){let t=S(e);return t.symbol=void 0,t.localSymbol=void 0,t}function w(e,t){return e!==t&&(e.typeArguments=t.typeArguments),Xc(e,t)}function T(e,t=0){let n=typeof e==`number`?e+``:e;H.assert(n.charCodeAt(0)!==45,`Negative numbers should be created in combination with createPrefixUnaryExpression`);let r=C(9);return r.text=n,r.numericLiteralFlags=t,t&384&&(r.transformFlags|=1024),r}function E(e){let t=ue(10);return t.text=typeof e==`string`?e:Iw(e)+`n`,t.transformFlags|=32,t}function D(e,t){let n=C(11);return n.text=e,n.singleQuote=t,n}function O(e,t,n){let r=D(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function k(e){let t=D(gv(e),void 0);return t.textSourceNode=e,t}function ee(e){let t=ue(14);return t.text=e,t}function te(e,t){switch(e){case 9:return T(t,0);case 10:return E(t);case 11:return O(t,void 0);case 12:return Wo(t,!1);case 13:return Wo(t,!0);case 14:return ee(t);case 15:return _r(e,t,void 0,0)}}function ne(e){let n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function re(e,t,n,r){let i=ne(Uc(e));return SD(i,{flags:t,id:xE,prefix:n,suffix:r}),xE++,i}function ie(e,t,n){t===void 0&&e&&(t=as(e)),t===80&&(t=void 0);let r=ne(Uc(e));return n&&(r.flags|=256),r.escapedText===`await`&&(r.transformFlags|=67108864),r.flags&256&&(r.transformFlags|=1024),r}function ae(e,t,n,r){let i=1;t&&(i|=8);let a=re(``,i,n,r);return e&&e(a),a}function j(e){let t=2;return e&&(t|=8),re(``,t,void 0,void 0)}function M(e,t=0,n,r){return H.assert(!(t&7),`Argument out of range: flags`),H.assert((t&48)!=32,`GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic`),re(e,3|t,n,r)}function N(e,t=0,n,r){H.assert(!(t&7),`Argument out of range: flags`);let i=e?Bl(e)?NN(!1,n,e,r,Gc):`generated@${mB(e)}`:``;(n||r)&&(t|=16);let a=re(i,4|t,n,r);return a.original=e,a}function oe(e){let n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function se(e){return pn(e,`#`)||H.fail(`First character of private identifier must be #: `+e),oe(Uc(e))}function ce(e,t,n,r){let i=oe(Uc(e));return SD(i,{flags:t,id:xE,prefix:n,suffix:r}),xE++,i}function P(e,t,n){return e&&!pn(e,`#`)&&H.fail(`First character of private identifier must be #: `+e),ce(e??``,8|(e?3:1),t,n)}function le(e,t,n){let r=ce(Bl(e)?NN(!0,t,e,n,Gc):`#generated@${mB(e)}`,4|(t||n?16:0),t,n);return r.original=e,r}function ue(e){return t.createBaseTokenNode(e)}function de(e){H.assert(e>=0&&e<=166,`Invalid token`),H.assert(e<=15||e>=18,`Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals.`),H.assert(e<=9||e>=15,`Invalid token. Use 'createLiteralLikeNode' to create literals.`),H.assert(e!==80,`Invalid token. Use 'createIdentifier' to create identifiers`);let t=ue(e),n=0;switch(e){case 134:n=384;break;case 160:n=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:n=1;break;case 108:n=134218752,t.flowNode=void 0;break;case 126:n=1024;break;case 129:n=16777216;break;case 110:n=16384,t.flowNode=void 0;break}return n&&(t.transformFlags|=n),t}function fe(){return de(108)}function pe(){return de(110)}function me(){return de(106)}function he(){return de(112)}function ge(){return de(97)}function _e(e){return de(e)}function ve(e){let t=[];return e&32&&t.push(_e(95)),e&128&&t.push(_e(138)),e&2048&&t.push(_e(90)),e&4096&&t.push(_e(87)),e&1&&t.push(_e(125)),e&2&&t.push(_e(123)),e&4&&t.push(_e(124)),e&64&&t.push(_e(128)),e&256&&t.push(_e(126)),e&16&&t.push(_e(164)),e&8&&t.push(_e(148)),e&512&&t.push(_e(129)),e&1024&&t.push(_e(134)),e&8192&&t.push(_e(103)),e&16384&&t.push(_e(147)),t.length?t:void 0}function ye(e,t){let n=S(167);return n.left=e,n.right=Hc(t),n.transformFlags|=ME(n.left)|jE(n.right),n.flowNode=void 0,n}function be(e,t,n){return e.left!==t||e.right!==n?Xc(ye(t,n),e):e}function xe(e){let t=S(168);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=ME(t.expression)|132096,t}function Se(e,t){return e.expression===t?e:Xc(xe(t),e)}function Ce(e,t,n,r){let i=C(169);return i.modifiers=K(e),i.name=Hc(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function we(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==i?Xc(Ce(t,n,r,i),e):e}function Te(e,t,n,r,i,a){let o=C(170);return o.modifiers=K(e),o.dotDotDotToken=t,o.name=Hc(n),o.questionToken=r,o.type=i,o.initializer=Kc(a),My(o.name)?o.transformFlags=1:o.transformFlags=NE(o.modifiers)|ME(o.dotDotDotToken)|AE(o.name)|ME(o.questionToken)|ME(o.initializer)|(o.questionToken??o.type?1:0)|(o.dotDotDotToken??o.initializer?1024:0)|(vb(o.modifiers)&31?8192:0),o.jsDoc=void 0,o}function Ee(e,t,n,r,i,a,o){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==a||e.initializer!==o?Xc(Te(t,n,r,i,a,o),e):e}function De(e){let t=S(171);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=ME(t.expression)|33562625,t}function Oe(e,t){return e.expression===t?e:Xc(De(t),e)}function ke(e,t,n,r){let i=C(172);return i.modifiers=K(e),i.name=Hc(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function Ae(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?je(ke(t,n,r,i),e):e}function je(e,t){return e!==t&&(e.initializer=t.initializer),Xc(e,t)}function Me(e,t,n,r,i){let a=C(173);a.modifiers=K(e),a.name=Hc(t),a.questionToken=n&&mO(n)?n:void 0,a.exclamationToken=n&&pO(n)?n:void 0,a.type=r,a.initializer=Kc(i);let o=a.flags&33554432||vb(a.modifiers)&128;return a.transformFlags=NE(a.modifiers)|AE(a.name)|ME(a.initializer)|(o||a.questionToken||a.exclamationToken||a.type?1:0)|(NO(a.name)||vb(a.modifiers)&256&&a.initializer?8192:0)|16777216,a.jsDoc=void 0,a}function Ne(e,t,n,r,i,a){return e.modifiers!==t||e.name!==n||e.questionToken!==(r!==void 0&&mO(r)?r:void 0)||e.exclamationToken!==(r!==void 0&&pO(r)?r:void 0)||e.type!==i||e.initializer!==a?Xc(Me(t,n,r,i,a),e):e}function Pe(e,t,n,r,i,a){let o=C(174);return o.modifiers=K(e),o.name=Hc(t),o.questionToken=n,o.typeParameters=K(r),o.parameters=K(i),o.type=a,o.transformFlags=1,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.typeArguments=void 0,o}function Fe(e,t,n,r,i,a,o){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o?w(Pe(t,n,r,i,a,o),e):e}function Ie(e,t,n,r,i,a,o,s){let c=C(175);if(c.modifiers=K(e),c.asteriskToken=t,c.name=Hc(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=K(i),c.parameters=x(a),c.type=o,c.body=s,!c.body)c.transformFlags=1;else{let e=vb(c.modifiers)&1024,t=!!c.asteriskToken,n=e&&t;c.transformFlags=NE(c.modifiers)|ME(c.asteriskToken)|AE(c.name)|ME(c.questionToken)|NE(c.typeParameters)|NE(c.parameters)|ME(c.type)|ME(c.body)&-67108865|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}return c.typeArguments=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.flowNode=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function Le(e,t,n,r,i,a,o,s,c){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?ze(Ie(t,n,r,i,a,o,s,c),e):e}function ze(e,t){return e!==t&&(e.exclamationToken=t.exclamationToken),Xc(e,t)}function Ve(e){let t=C(176);return t.body=e,t.transformFlags=ME(e)|16777216,t.modifiers=void 0,t.jsDoc=void 0,t.locals=void 0,t.nextContainer=void 0,t.endFlowNode=void 0,t.returnFlowNode=void 0,t}function He(e,t){return e.body===t?e:Ue(Ve(t),e)}function Ue(e,t){return e!==t&&(e.modifiers=t.modifiers),Xc(e,t)}function We(e,t,n){let r=C(177);return r.modifiers=K(e),r.parameters=x(t),r.body=n,r.body?r.transformFlags=NE(r.modifiers)|NE(r.parameters)|ME(r.body)&-67108865|1024:r.transformFlags=1,r.typeParameters=void 0,r.type=void 0,r.typeArguments=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.endFlowNode=void 0,r.returnFlowNode=void 0,r}function L(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?Ke(We(t,n,r),e):e}function Ke(e,t){return e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type),w(e,t)}function Je(e,t,n,r,i){let a=C(178);return a.modifiers=K(e),a.name=Hc(t),a.parameters=x(n),a.type=r,a.body=i,a.body?a.transformFlags=NE(a.modifiers)|AE(a.name)|NE(a.parameters)|ME(a.type)|ME(a.body)&-67108865|(a.type?1:0):a.transformFlags=1,a.typeArguments=void 0,a.typeParameters=void 0,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.flowNode=void 0,a.endFlowNode=void 0,a.returnFlowNode=void 0,a}function Ye(e,t,n,r,i,a){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==a?Xe(Je(t,n,r,i,a),e):e}function Xe(e,t){return e!==t&&(e.typeParameters=t.typeParameters),w(e,t)}function Ze(e,t,n,r){let i=C(179);return i.modifiers=K(e),i.name=Hc(t),i.parameters=x(n),i.body=r,i.body?i.transformFlags=NE(i.modifiers)|AE(i.name)|NE(i.parameters)|ME(i.body)&-67108865|(i.type?1:0):i.transformFlags=1,i.typeArguments=void 0,i.typeParameters=void 0,i.type=void 0,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i.endFlowNode=void 0,i.returnFlowNode=void 0,i}function Qe(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?$e(Ze(t,n,r,i),e):e}function $e(e,t){return e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type),w(e,t)}function et(e,t,n){let r=C(180);return r.typeParameters=K(e),r.parameters=K(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function tt(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?w(et(t,n,r),e):e}function nt(e,t,n){let r=C(181);return r.typeParameters=K(e),r.parameters=K(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function rt(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?w(nt(t,n,r),e):e}function it(e,t,n){let r=C(182);return r.modifiers=K(e),r.parameters=K(t),r.type=n,r.transformFlags=1,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function at(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?w(it(t,n,r),e):e}function ot(e,t){let n=S(205);return n.type=e,n.literal=t,n.transformFlags=1,n}function st(e,t,n){return e.type!==t||e.literal!==n?Xc(ot(t,n),e):e}function ct(e){return de(e)}function lt(e,t,n){let r=S(183);return r.assertsModifier=e,r.parameterName=Hc(t),r.type=n,r.transformFlags=1,r}function ut(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?Xc(lt(t,n,r),e):e}function R(e,t){let n=S(184);return n.typeName=Hc(e),n.typeArguments=t&&r().parenthesizeTypeArguments(x(t)),n.transformFlags=1,n}function dt(e,t,n){return e.typeName!==t||e.typeArguments!==n?Xc(R(t,n),e):e}function z(e,t,n){let r=C(185);return r.typeParameters=K(e),r.parameters=K(t),r.type=n,r.transformFlags=1,r.modifiers=void 0,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.typeArguments=void 0,r}function ft(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?pt(z(t,n,r),e):e}function pt(e,t){return e!==t&&(e.modifiers=t.modifiers),w(e,t)}function ht(...e){return e.length===4?gt(...e):e.length===3?_t(...e):H.fail(`Incorrect number of arguments specified.`)}function gt(e,t,n,r){let i=C(186);return i.modifiers=K(e),i.typeParameters=K(t),i.parameters=K(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.typeArguments=void 0,i}function _t(e,t,n){return gt(void 0,e,t,n)}function vt(...e){return e.length===5?bt(...e):e.length===4?xt(...e):H.fail(`Incorrect number of arguments specified.`)}function bt(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?w(ht(t,n,r,i),e):e}function xt(e,t,n,r){return bt(e,e.modifiers,t,n,r)}function Ct(e,t){let n=S(187);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Tt(e,t,n){return e.exprName!==t||e.typeArguments!==n?Xc(Ct(t,n),e):e}function Et(e){let t=C(188);return t.members=x(e),t.transformFlags=1,t}function Dt(e,t){return e.members===t?e:Xc(Et(t),e)}function Ot(e){let t=S(189);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function jt(e,t){return e.elementType===t?e:Xc(Ot(t),e)}function Mt(e){let t=S(190);return t.elements=x(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Nt(e,t){return e.elements===t?e:Xc(Mt(t),e)}function Pt(e,t,n,r){let i=C(203);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function Ft(e,t,n,r,i){return e.dotDotDotToken!==t||e.name!==n||e.questionToken!==r||e.type!==i?Xc(Pt(t,n,r,i),e):e}function It(e){let t=S(191);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Lt(e,t){return e.type===t?e:Xc(It(t),e)}function Rt(e){let t=S(192);return t.type=e,t.transformFlags=1,t}function zt(e,t){return e.type===t?e:Xc(Rt(t),e)}function Bt(e,t,n){let r=S(e);return r.types=b.createNodeArray(n(t)),r.transformFlags=1,r}function Vt(e,t,n){return e.types===t?e:Xc(Bt(e.kind,t,n),e)}function Ht(e){return Bt(193,e,r().parenthesizeConstituentTypesOfUnionType)}function Ut(e,t){return Vt(e,t,r().parenthesizeConstituentTypesOfUnionType)}function Wt(e){return Bt(194,e,r().parenthesizeConstituentTypesOfIntersectionType)}function Gt(e,t){return Vt(e,t,r().parenthesizeConstituentTypesOfIntersectionType)}function Kt(e,t,n,i){let a=S(195);return a.checkType=r().parenthesizeCheckTypeOfConditionalType(e),a.extendsType=r().parenthesizeExtendsTypeOfConditionalType(t),a.trueType=n,a.falseType=i,a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function qt(e,t,n,r,i){return e.checkType!==t||e.extendsType!==n||e.trueType!==r||e.falseType!==i?Xc(Kt(t,n,r,i),e):e}function Jt(e){let t=S(196);return t.typeParameter=e,t.transformFlags=1,t}function Yt(e,t){return e.typeParameter===t?e:Xc(Jt(t),e)}function Xt(e,t){let n=S(204);return n.head=e,n.templateSpans=x(t),n.transformFlags=1,n}function Zt(e,t,n){return e.head!==t||e.templateSpans!==n?Xc(Xt(t,n),e):e}function Qt(e,t,n,i,a=!1){let o=S(206);return o.argument=e,o.attributes=t,o.assertions&&o.assertions.assertClause&&o.attributes&&(o.assertions.assertClause=o.attributes),o.qualifier=n,o.typeArguments=i&&r().parenthesizeTypeArguments(i),o.isTypeOf=a,o.transformFlags=1,o}function B(e,t,n,r,i,a=e.isTypeOf){return e.argument!==t||e.attributes!==n||e.qualifier!==r||e.typeArguments!==i||e.isTypeOf!==a?Xc(Qt(t,n,r,i,a),e):e}function $t(e){let t=S(197);return t.type=e,t.transformFlags=1,t}function en(e,t){return e.type===t?e:Xc($t(t),e)}function tn(){let e=S(198);return e.transformFlags=1,e}function nn(e,t){let n=S(199);return n.operator=e,n.type=e===148?r().parenthesizeOperandOfReadonlyTypeOperator(t):r().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function rn(e,t){return e.type===t?e:Xc(nn(e.operator,t),e)}function an(e,t){let n=S(200);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function on(e,t,n){return e.objectType!==t||e.indexType!==n?Xc(an(t,n),e):e}function sn(e,t,n,r,i,a){let o=C(201);return o.readonlyToken=e,o.typeParameter=t,o.nameType=n,o.questionToken=r,o.type=i,o.members=a&&x(a),o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function cn(e,t,n,r,i,a,o){return e.readonlyToken!==t||e.typeParameter!==n||e.nameType!==r||e.questionToken!==i||e.type!==a||e.members!==o?Xc(sn(t,n,r,i,a,o),e):e}function ln(e){let t=S(202);return t.literal=e,t.transformFlags=1,t}function un(e,t){return e.literal===t?e:Xc(ln(t),e)}function dn(e){let t=S(207);return t.elements=x(e),t.transformFlags|=NE(t.elements)|525312,t.transformFlags&32768&&(t.transformFlags|=65664),t}function fn(e,t){return e.elements===t?e:Xc(dn(t),e)}function mn(e){let t=S(208);return t.elements=x(e),t.transformFlags|=NE(t.elements)|525312,t}function hn(e,t){return e.elements===t?e:Xc(mn(t),e)}function gn(e,t,n,r){let i=C(209);return i.dotDotDotToken=e,i.propertyName=Hc(t),i.name=Hc(n),i.initializer=Kc(r),i.transformFlags|=ME(i.dotDotDotToken)|AE(i.propertyName)|AE(i.name)|ME(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function _n(e,t,n,r,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==r||e.initializer!==i?Xc(gn(t,n,r,i),e):e}function vn(e,t){let n=S(210),i=e&&Re(e),a=x(e,i&&Wk(i)?!0:void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(a),n.multiLine=t,n.transformFlags|=NE(n.elements),n}function yn(e,t){return e.elements===t?e:Xc(vn(t,e.multiLine),e)}function bn(e,t){let n=C(211);return n.properties=x(e),n.multiLine=t,n.transformFlags|=NE(n.properties),n.jsDoc=void 0,n}function xn(e,t){return e.properties===t?e:Xc(bn(t,e.multiLine),e)}function V(e,t,n){let r=C(212);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=ME(r.expression)|ME(r.questionDotToken)|(Y(r.name)?jE(r.name):ME(r.name)|536870912),r.jsDoc=void 0,r.flowNode=void 0,r}function Sn(e,t){let n=V(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Hc(t));return kO(e)&&(n.transformFlags|=384),n}function Cn(e,t,n){return Hl(e)?Tn(e,t,e.questionDotToken,yt(n,Y)):e.expression!==t||e.name!==n?Xc(Sn(t,n),e):e}function wn(e,t,n){let i=V(r().parenthesizeLeftSideOfAccess(e,!0),t,Hc(n));return i.flags|=64,i.transformFlags|=32,i}function Tn(e,t,n,r){return H.assert(!!(e.flags&64),`Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead.`),e.expression!==t||e.questionDotToken!==n||e.name!==r?Xc(wn(t,n,r),e):e}function En(e,t,n){let r=C(213);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=ME(r.expression)|ME(r.questionDotToken)|ME(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function Dn(e,t){let n=En(r().parenthesizeLeftSideOfAccess(e,!1),void 0,Wc(t));return kO(e)&&(n.transformFlags|=384),n}function On(e,t,n){return Ul(e)?An(e,t,e.questionDotToken,n):e.expression!==t||e.argumentExpression!==n?Xc(Dn(t,n),e):e}function kn(e,t,n){let i=En(r().parenthesizeLeftSideOfAccess(e,!0),t,Wc(n));return i.flags|=64,i.transformFlags|=32,i}function An(e,t,n,r){return H.assert(!!(e.flags&64),`Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead.`),e.expression!==t||e.questionDotToken!==n||e.argumentExpression!==r?Xc(kn(t,n,r),e):e}function jn(e,t,n,r){let i=C(214);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=ME(i.expression)|ME(i.questionDotToken)|NE(i.typeArguments)|NE(i.arguments),i.typeArguments&&(i.transformFlags|=1),Mh(i.expression)&&(i.transformFlags|=16384),i}function Mn(e,t,n){let i=jn(r().parenthesizeLeftSideOfAccess(e,!1),void 0,K(t),r().parenthesizeExpressionsOfCommaDelimitedList(x(n)));return AO(i.expression)&&(i.transformFlags|=8388608),i}function Nn(e,t,n,r){return Wl(e)?Fn(e,t,e.questionDotToken,n,r):e.expression!==t||e.typeArguments!==n||e.arguments!==r?Xc(Mn(t,n,r),e):e}function Pn(e,t,n,i){let a=jn(r().parenthesizeLeftSideOfAccess(e,!0),t,K(n),r().parenthesizeExpressionsOfCommaDelimitedList(x(i)));return a.flags|=64,a.transformFlags|=32,a}function Fn(e,t,n,r,i){return H.assert(!!(e.flags&64),`Cannot update a CallExpression using updateCallChain. Use updateCall instead.`),e.expression!==t||e.questionDotToken!==n||e.typeArguments!==r||e.arguments!==i?Xc(Pn(t,n,r,i),e):e}function In(e,t,n){let i=C(215);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=K(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=ME(i.expression)|NE(i.typeArguments)|NE(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function Ln(e,t,n,r){return e.expression!==t||e.typeArguments!==n||e.arguments!==r?Xc(In(t,n,r),e):e}function Rn(e,t,n){let i=S(216);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=K(t),i.template=n,i.transformFlags|=ME(i.tag)|NE(i.typeArguments)|ME(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),Hv(i.template)&&(i.transformFlags|=128),i}function zn(e,t,n,r){return e.tag!==t||e.typeArguments!==n||e.template!==r?Xc(Rn(t,n,r),e):e}function Bn(e,t){let n=S(217);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=ME(n.expression)|ME(n.type)|1,n}function Vn(e,t,n){return e.type!==t||e.expression!==n?Xc(Bn(t,n),e):e}function Hn(e){let t=S(218);return t.expression=e,t.transformFlags=ME(t.expression),t.jsDoc=void 0,t}function Un(e,t){return e.expression===t?e:Xc(Hn(t),e)}function Wn(e,t,n,r,i,a,o){let s=C(219);s.modifiers=K(e),s.asteriskToken=t,s.name=Hc(n),s.typeParameters=K(r),s.parameters=x(i),s.type=a,s.body=o;let c=vb(s.modifiers)&1024,l=!!s.asteriskToken,u=c&&l;return s.transformFlags=NE(s.modifiers)|ME(s.asteriskToken)|AE(s.name)|NE(s.typeParameters)|NE(s.parameters)|ME(s.type)|ME(s.body)&-67108865|(u?128:c?256:l?2048:0)|(s.typeParameters||s.type?1:0)|4194304,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function Gn(e,t,n,r,i,a,o,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?w(Wn(t,n,r,i,a,o,s),e):e}function Kn(e,t,n,i,a,o){let s=C(220);s.modifiers=K(e),s.typeParameters=K(t),s.parameters=x(n),s.type=i,s.equalsGreaterThanToken=a??de(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(o);let c=vb(s.modifiers)&1024;return s.transformFlags=NE(s.modifiers)|NE(s.typeParameters)|NE(s.parameters)|ME(s.type)|ME(s.equalsGreaterThanToken)|ME(s.body)&-67108865|(s.typeParameters||s.type?1:0)|(c?16640:0)|1024,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function qn(e,t,n,r,i,a,o){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?w(Kn(t,n,r,i,a,o),e):e}function Jn(e){let t=S(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ME(t.expression),t}function Yn(e,t){return e.expression===t?e:Xc(Jn(t),e)}function Xn(e){let t=S(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ME(t.expression),t}function Zn(e,t){return e.expression===t?e:Xc(Xn(t),e)}function Qn(e){let t=S(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ME(t.expression),t}function $n(e,t){return e.expression===t?e:Xc(Qn(t),e)}function er(e){let t=S(224);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=ME(t.expression)|2097536,t}function tr(e,t){return e.expression===t?e:Xc(er(t),e)}function nr(e,t){let n=S(225);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=ME(n.operand),(e===46||e===47)&&Y(n.operand)&&!yu(n.operand)&&!AM(n.operand)&&(n.transformFlags|=268435456),n}function rr(e,t){return e.operand===t?e:Xc(nr(e.operator,t),e)}function ir(e,t){let n=S(226);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=ME(n.operand),Y(n.operand)&&!yu(n.operand)&&!AM(n.operand)&&(n.transformFlags|=268435456),n}function ar(e,t){return e.operand===t?e:Xc(ir(t,e.operator),e)}function or(e,t,n){let i=C(227),a=qc(t),o=a.kind;return i.left=r().parenthesizeLeftSideOfBinary(o,e),i.operatorToken=a,i.right=r().parenthesizeRightSideOfBinary(o,i.left,n),i.transformFlags|=ME(i.left)|ME(i.operatorToken)|ME(i.right),o===61?i.transformFlags|=32:o===64?Sk(i.left)?i.transformFlags|=5248|sr(i.left):xk(i.left)&&(i.transformFlags|=5120|sr(i.left)):o===43||o===68?i.transformFlags|=512:Sb(o)&&(i.transformFlags|=16),o===103&&vO(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function sr(e){return BN(e)?65536:0}function cr(e,t,n,r){return e.left!==t||e.operatorToken!==n||e.right!==r?Xc(or(t,n,r),e):e}function lr(e,t,n,i,a){let o=S(228);return o.condition=r().parenthesizeConditionOfConditionalExpression(e),o.questionToken=t??de(58),o.whenTrue=r().parenthesizeBranchOfConditionalExpression(n),o.colonToken=i??de(59),o.whenFalse=r().parenthesizeBranchOfConditionalExpression(a),o.transformFlags|=ME(o.condition)|ME(o.questionToken)|ME(o.whenTrue)|ME(o.colonToken)|ME(o.whenFalse),o.flowNodeWhenFalse=void 0,o.flowNodeWhenTrue=void 0,o}function ur(e,t,n,r,i,a){return e.condition!==t||e.questionToken!==n||e.whenTrue!==r||e.colonToken!==i||e.whenFalse!==a?Xc(lr(t,n,r,i,a),e):e}function dr(e,t){let n=S(229);return n.head=e,n.templateSpans=x(t),n.transformFlags|=ME(n.head)|NE(n.templateSpans)|1024,n}function fr(e,t,n){return e.head!==t||e.templateSpans!==n?Xc(dr(t,n),e):e}function pr(e,t,n,r=0){H.assert(!(r&-7177),`Unsupported template flags.`);let i;if(n!==void 0&&n!==t&&(i=kE(e,n),typeof i==`object`))return H.fail(`Invalid raw text`);if(t===void 0){if(i===void 0)return H.fail(`Arguments 'text' and 'rawText' may not both be undefined.`);t=i}else i!==void 0&&H.assert(t===i,`Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.`);return t}function mr(e){let t=1024;return e&&(t|=128),t}function hr(e,t,n,r){let i=ue(e);return i.text=t,i.rawText=n,i.templateFlags=r&7176,i.transformFlags=mr(i.templateFlags),i}function gr(e,t,n,r){let i=C(e);return i.text=t,i.rawText=n,i.templateFlags=r&7176,i.transformFlags=mr(i.templateFlags),i}function _r(e,t,n,r){return e===15?gr(e,t,n,r):hr(e,t,n,r)}function vr(e,t,n){return e=pr(16,e,t,n),_r(16,e,t,n)}function yr(e,t,n){return e=pr(16,e,t,n),_r(17,e,t,n)}function br(e,t,n){return e=pr(16,e,t,n),_r(18,e,t,n)}function xr(e,t,n){return e=pr(16,e,t,n),gr(15,e,t,n)}function Sr(e,t){H.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");let n=S(230);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=ME(n.expression)|ME(n.asteriskToken)|1049728,n}function Cr(e,t,n){return e.expression!==n||e.asteriskToken!==t?Xc(Sr(t,n),e):e}function wr(e){let t=S(231);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=ME(t.expression)|33792,t}function Tr(e,t){return e.expression===t?e:Xc(wr(t),e)}function Er(e,t,n,r,i){let a=C(232);return a.modifiers=K(e),a.name=Hc(t),a.typeParameters=K(n),a.heritageClauses=K(r),a.members=x(i),a.transformFlags|=NE(a.modifiers)|AE(a.name)|NE(a.typeParameters)|NE(a.heritageClauses)|NE(a.members)|(a.typeParameters?1:0)|1024,a.jsDoc=void 0,a}function Dr(e,t,n,r,i,a){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==a?Xc(Er(t,n,r,i,a),e):e}function Or(){return S(233)}function kr(e,t){let n=S(234);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=ME(n.expression)|NE(n.typeArguments)|1024,n}function Ar(e,t,n){return e.expression!==t||e.typeArguments!==n?Xc(kr(t,n),e):e}function jr(e,t){let n=S(235);return n.expression=e,n.type=t,n.transformFlags|=ME(n.expression)|ME(n.type)|1,n}function Mr(e,t,n){return e.expression!==t||e.type!==n?Xc(jr(t,n),e):e}function Nr(e){let t=S(236);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=ME(t.expression)|1,t}function Pr(e,t){return Ql(e)?Rr(e,t):e.expression===t?e:Xc(Nr(t),e)}function Fr(e,t){let n=S(239);return n.expression=e,n.type=t,n.transformFlags|=ME(n.expression)|ME(n.type)|1,n}function Ir(e,t,n){return e.expression!==t||e.type!==n?Xc(Fr(t,n),e):e}function Lr(e){let t=S(236);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=ME(t.expression)|1,t}function Rr(e,t){return H.assert(!!(e.flags&64),`Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead.`),e.expression===t?e:Xc(Lr(t),e)}function zr(e,t){let n=S(237);switch(n.keywordToken=e,n.name=t,n.transformFlags|=ME(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return H.assertNever(e)}return n.flowNode=void 0,n}function Br(e,t){return e.name===t?e:Xc(zr(e.keywordToken,t),e)}function Vr(e,t){let n=S(240);return n.expression=e,n.literal=t,n.transformFlags|=ME(n.expression)|ME(n.literal)|1024,n}function Hr(e,t,n){return e.expression!==t||e.literal!==n?Xc(Vr(t,n),e):e}function Ur(){let e=S(241);return e.transformFlags|=1024,e}function Wr(e,t){let n=S(242);return n.statements=x(e),n.multiLine=t,n.transformFlags|=NE(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function Gr(e,t){return e.statements===t?e:Xc(Wr(t,e.multiLine),e)}function Kr(e,t){let n=S(244);return n.modifiers=K(e),n.declarationList=mt(t)?Oi(t):t,n.transformFlags|=NE(n.modifiers)|ME(n.declarationList),vb(n.modifiers)&128&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function qr(e,t,n){return e.modifiers!==t||e.declarationList!==n?Xc(Kr(t,n),e):e}function Jr(){let e=S(243);return e.jsDoc=void 0,e}function Yr(e){let t=S(245);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=ME(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function Xr(e,t){return e.expression===t?e:Xc(Yr(t),e)}function Zr(e,t,n){let r=S(246);return r.expression=e,r.thenStatement=Jc(t),r.elseStatement=Jc(n),r.transformFlags|=ME(r.expression)|ME(r.thenStatement)|ME(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function Qr(e,t,n,r){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==r?Xc(Zr(t,n,r),e):e}function $r(e,t){let n=S(247);return n.statement=Jc(e),n.expression=t,n.transformFlags|=ME(n.statement)|ME(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function ei(e,t,n){return e.statement!==t||e.expression!==n?Xc($r(t,n),e):e}function ti(e,t){let n=S(248);return n.expression=e,n.statement=Jc(t),n.transformFlags|=ME(n.expression)|ME(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function ni(e,t,n){return e.expression!==t||e.statement!==n?Xc(ti(t,n),e):e}function ri(e,t,n,r){let i=S(249);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Jc(r),i.transformFlags|=ME(i.initializer)|ME(i.condition)|ME(i.incrementor)|ME(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function ii(e,t,n,r,i){return e.initializer!==t||e.condition!==n||e.incrementor!==r||e.statement!==i?Xc(ri(t,n,r,i),e):e}function ai(e,t,n){let r=S(250);return r.initializer=e,r.expression=t,r.statement=Jc(n),r.transformFlags|=ME(r.initializer)|ME(r.expression)|ME(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function oi(e,t,n,r){return e.initializer!==t||e.expression!==n||e.statement!==r?Xc(ai(t,n,r),e):e}function si(e,t,n,i){let a=S(251);return a.awaitModifier=e,a.initializer=t,a.expression=r().parenthesizeExpressionForDisallowedComma(n),a.statement=Jc(i),a.transformFlags|=ME(a.awaitModifier)|ME(a.initializer)|ME(a.expression)|ME(a.statement)|1024,e&&(a.transformFlags|=128),a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.flowNode=void 0,a}function ci(e,t,n,r,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==r||e.statement!==i?Xc(si(t,n,r,i),e):e}function li(e){let t=S(252);return t.label=Hc(e),t.transformFlags|=ME(t.label)|4194304,t.jsDoc=void 0,t.flowNode=void 0,t}function ui(e,t){return e.label===t?e:Xc(li(t),e)}function di(e){let t=S(253);return t.label=Hc(e),t.transformFlags|=ME(t.label)|4194304,t.jsDoc=void 0,t.flowNode=void 0,t}function fi(e,t){return e.label===t?e:Xc(di(t),e)}function pi(e){let t=S(254);return t.expression=e,t.transformFlags|=ME(t.expression)|4194432,t.jsDoc=void 0,t.flowNode=void 0,t}function mi(e,t){return e.expression===t?e:Xc(pi(t),e)}function hi(e,t){let n=S(255);return n.expression=e,n.statement=Jc(t),n.transformFlags|=ME(n.expression)|ME(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function gi(e,t,n){return e.expression!==t||e.statement!==n?Xc(hi(t,n),e):e}function _i(e,t){let n=S(256);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=ME(n.expression)|ME(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function vi(e,t,n){return e.expression!==t||e.caseBlock!==n?Xc(_i(t,n),e):e}function yi(e,t){let n=S(257);return n.label=Hc(e),n.statement=Jc(t),n.transformFlags|=ME(n.label)|ME(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function bi(e,t,n){return e.label!==t||e.statement!==n?Xc(yi(t,n),e):e}function xi(e){let t=S(258);return t.expression=e,t.transformFlags|=ME(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function Si(e,t){return e.expression===t?e:Xc(xi(t),e)}function Ci(e,t,n){let r=S(259);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=ME(r.tryBlock)|ME(r.catchClause)|ME(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function wi(e,t,n,r){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==r?Xc(Ci(t,n,r),e):e}function Ti(){let e=S(260);return e.jsDoc=void 0,e.flowNode=void 0,e}function Ei(e,t,n,r){let i=C(261);return i.name=Hc(e),i.exclamationToken=t,i.type=n,i.initializer=Kc(r),i.transformFlags|=AE(i.name)|ME(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function Di(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?Xc(Ei(t,n,r,i),e):e}function Oi(e,t=0){let n=S(262);return n.flags|=t&7,n.declarations=x(e),n.transformFlags|=NE(n.declarations)|4194304,t&7&&(n.transformFlags|=263168),t&4&&(n.transformFlags|=4),n}function ki(e,t){return e.declarations===t?e:Xc(Oi(t,e.flags),e)}function Ai(e,t,n,r,i,a,o){let s=C(263);if(s.modifiers=K(e),s.asteriskToken=t,s.name=Hc(n),s.typeParameters=K(r),s.parameters=x(i),s.type=a,s.body=o,!s.body||vb(s.modifiers)&128)s.transformFlags=1;else{let e=vb(s.modifiers)&1024,t=!!s.asteriskToken,n=e&&t;s.transformFlags=NE(s.modifiers)|ME(s.asteriskToken)|AE(s.name)|NE(s.typeParameters)|NE(s.parameters)|ME(s.type)|ME(s.body)&-67108865|(n?128:e?256:t?2048:0)|(s.typeParameters||s.type?1:0)|4194304}return s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function ji(e,t,n,r,i,a,o,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?Mi(Ai(t,n,r,i,a,o,s),e):e}function Mi(e,t){return e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers),w(e,t)}function Ni(e,t,n,r,i){let a=C(264);return a.modifiers=K(e),a.name=Hc(t),a.typeParameters=K(n),a.heritageClauses=K(r),a.members=x(i),vb(a.modifiers)&128?a.transformFlags=1:(a.transformFlags|=NE(a.modifiers)|AE(a.name)|NE(a.typeParameters)|NE(a.heritageClauses)|NE(a.members)|(a.typeParameters?1:0)|1024,a.transformFlags&8192&&(a.transformFlags|=1)),a.jsDoc=void 0,a}function Pi(e,t,n,r,i,a){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==a?Xc(Ni(t,n,r,i,a),e):e}function Fi(e,t,n,r,i){let a=C(265);return a.modifiers=K(e),a.name=Hc(t),a.typeParameters=K(n),a.heritageClauses=K(r),a.members=x(i),a.transformFlags=1,a.jsDoc=void 0,a}function Ii(e,t,n,r,i,a){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.heritageClauses!==i||e.members!==a?Xc(Fi(t,n,r,i,a),e):e}function Li(e,t,n,r){let i=C(266);return i.modifiers=K(e),i.name=Hc(t),i.typeParameters=K(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Ri(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.typeParameters!==r||e.type!==i?Xc(Li(t,n,r,i),e):e}function zi(e,t,n){let r=C(267);return r.modifiers=K(e),r.name=Hc(t),r.members=x(n),r.transformFlags|=NE(r.modifiers)|ME(r.name)|NE(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Bi(e,t,n,r){return e.modifiers!==t||e.name!==n||e.members!==r?Xc(zi(t,n,r),e):e}function Vi(e,t,n,r=0){let i=C(268);return i.modifiers=K(e),i.flags|=r&2088,i.name=t,i.body=n,vb(i.modifiers)&128?i.transformFlags=1:i.transformFlags|=NE(i.modifiers)|ME(i.name)|ME(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Hi(e,t,n,r){return e.modifiers!==t||e.name!==n||e.body!==r?Xc(Vi(t,n,r,e.flags),e):e}function Ui(e){let t=S(269);return t.statements=x(e),t.transformFlags|=NE(t.statements),t.jsDoc=void 0,t}function Wi(e,t){return e.statements===t?e:Xc(Ui(t),e)}function Gi(e){let t=S(270);return t.clauses=x(e),t.transformFlags|=NE(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function Ki(e,t){return e.clauses===t?e:Xc(Gi(t),e)}function qi(e){let t=C(271);return t.name=Hc(e),t.transformFlags|=jE(t.name)|1,t.modifiers=void 0,t.jsDoc=void 0,t}function Ji(e,t){return e.name===t?e:Yi(qi(t),e)}function Yi(e,t){return e!==t&&(e.modifiers=t.modifiers),Xc(e,t)}function Xi(e,t,n,r){let i=C(272);return i.modifiers=K(e),i.name=Hc(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=NE(i.modifiers)|jE(i.name)|ME(i.moduleReference),ZA(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Zi(e,t,n,r,i){return e.modifiers!==t||e.isTypeOnly!==n||e.name!==r||e.moduleReference!==i?Xc(Xi(t,n,r,i),e):e}function Qi(e,t,n,r){let i=S(273);return i.modifiers=K(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=ME(i.importClause)|ME(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function $i(e,t,n,r,i){return e.modifiers!==t||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Xc(Qi(t,n,r,i),e):e}function ea(e,t,n){let r=C(274);return typeof e==`boolean`&&(e=e?156:void 0),r.isTypeOnly=e===156,r.phaseModifier=e,r.name=t,r.namedBindings=n,r.transformFlags|=ME(r.name)|ME(r.namedBindings),e===156&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function ta(e,t,n,r){return typeof t==`boolean`&&(t=t?156:void 0),e.phaseModifier!==t||e.name!==n||e.namedBindings!==r?Xc(ea(t,n,r),e):e}function na(e,t){let n=S(301);return n.elements=x(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function ra(e,t,n){return e.elements!==t||e.multiLine!==n?Xc(na(t,n),e):e}function ia(e,t){let n=S(302);return n.name=e,n.value=t,n.transformFlags|=4,n}function aa(e,t,n){return e.name!==t||e.value!==n?Xc(ia(t,n),e):e}function oa(e,t){let n=S(303);return n.assertClause=e,n.multiLine=t,n}function sa(e,t,n){return e.assertClause!==t||e.multiLine!==n?Xc(oa(t,n),e):e}function ca(e,t,n){let r=S(301);return r.token=n??118,r.elements=x(e),r.multiLine=t,r.transformFlags|=4,r}function la(e,t,n){return e.elements!==t||e.multiLine!==n?Xc(ca(t,n,e.token),e):e}function ua(e,t){let n=S(302);return n.name=e,n.value=t,n.transformFlags|=4,n}function da(e,t,n){return e.name!==t||e.value!==n?Xc(ua(t,n),e):e}function fa(e){let t=C(275);return t.name=e,t.transformFlags|=ME(t.name),t.transformFlags&=-67108865,t}function pa(e,t){return e.name===t?e:Xc(fa(t),e)}function ma(e){let t=C(281);return t.name=e,t.transformFlags|=ME(t.name)|32,t.transformFlags&=-67108865,t}function ha(e,t){return e.name===t?e:Xc(ma(t),e)}function ga(e){let t=S(276);return t.elements=x(e),t.transformFlags|=NE(t.elements),t.transformFlags&=-67108865,t}function _a(e,t){return e.elements===t?e:Xc(ga(t),e)}function va(e,t,n){let r=C(277);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=ME(r.propertyName)|ME(r.name),r.transformFlags&=-67108865,r}function ya(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Xc(va(t,n,r),e):e}function ba(e,t,n){let i=C(278);return i.modifiers=K(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=NE(i.modifiers)|ME(i.expression),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function xa(e,t,n){return e.modifiers!==t||e.expression!==n?Xc(ba(t,e.isExportEquals,n),e):e}function Sa(e,t,n,r,i){let a=C(279);return a.modifiers=K(e),a.isTypeOnly=t,a.exportClause=n,a.moduleSpecifier=r,a.attributes=a.assertClause=i,a.transformFlags|=NE(a.modifiers)|ME(a.exportClause)|ME(a.moduleSpecifier),a.transformFlags&=-67108865,a.jsDoc=void 0,a}function Ca(e,t,n,r,i,a){return e.modifiers!==t||e.isTypeOnly!==n||e.exportClause!==r||e.moduleSpecifier!==i||e.attributes!==a?wa(Sa(t,n,r,i,a),e):e}function wa(e,t){return e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers),Xc(e,t)}function Ta(e){let t=S(280);return t.elements=x(e),t.transformFlags|=NE(t.elements),t.transformFlags&=-67108865,t}function Ea(e,t){return e.elements===t?e:Xc(Ta(t),e)}function Da(e,t,n){let r=S(282);return r.isTypeOnly=e,r.propertyName=Hc(t),r.name=Hc(n),r.transformFlags|=ME(r.propertyName)|ME(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function Oa(e,t,n,r){return e.isTypeOnly!==t||e.propertyName!==n||e.name!==r?Xc(Da(t,n,r),e):e}function ka(){let e=C(283);return e.jsDoc=void 0,e}function Aa(e){let t=S(284);return t.expression=e,t.transformFlags|=ME(t.expression),t.transformFlags&=-67108865,t}function ja(e,t){return e.expression===t?e:Xc(Aa(t),e)}function Ma(e){return S(e)}function Na(e,t,n=!1){let i=Pa(e,n?t&&r().parenthesizeNonArrayTypeOfPostfixType(t):t);return i.postfix=n,i}function Pa(e,t){let n=S(e);return n.type=t,n}function Fa(e,t,n){return t.type===n?t:Xc(Na(e,n,t.postfix),t)}function Ia(e,t,n){return t.type===n?t:Xc(Pa(e,n),t)}function La(e,t){let n=C(318);return n.parameters=K(e),n.type=t,n.transformFlags=NE(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function Ra(e,t,n){return e.parameters!==t||e.type!==n?Xc(La(t,n),e):e}function za(e,t=!1){let n=C(323);return n.jsDocPropertyTags=K(e),n.isArrayType=t,n}function Ba(e,t,n){return e.jsDocPropertyTags!==t||e.isArrayType!==n?Xc(za(t,n),e):e}function Va(e){let t=S(310);return t.type=e,t}function Ha(e,t){return e.type===t?e:Xc(Va(t),e)}function Ua(e,t,n){let r=C(324);return r.typeParameters=K(e),r.parameters=x(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function Wa(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?Xc(Ua(t,n,r),e):e}function Ga(e){let t=EE(e.kind);return e.tagName.escapedText===Uc(t)?e.tagName:ie(t)}function Ka(e,t,n){let r=S(e);return r.tagName=t,r.comment=n,r}function qa(e,t,n){let r=C(e);return r.tagName=t,r.comment=n,r}function Ja(e,t,n,r){let i=Ka(346,e??ie(`template`),r);return i.constraint=t,i.typeParameters=x(n),i}function Ya(e,t=Ga(e),n,r,i){return e.tagName!==t||e.constraint!==n||e.typeParameters!==r||e.comment!==i?Xc(Ja(t,n,r,i),e):e}function Xa(e,t,n,r){let i=qa(347,e??ie(`typedef`),r);return i.typeExpression=t,i.fullName=n,i.name=iN(n),i.locals=void 0,i.nextContainer=void 0,i}function Za(e,t=Ga(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Xc(Xa(t,n,r,i),e):e}function U(e,t,n,r,i,a){let o=qa(342,e??ie(`param`),a);return o.typeExpression=r,o.name=t,o.isNameFirst=!!i,o.isBracketed=n,o}function Qa(e,t=Ga(e),n,r,i,a,o){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?Xc(U(t,n,r,i,a,o),e):e}function $a(e,t,n,r,i,a){let o=qa(349,e??ie(`prop`),a);return o.typeExpression=r,o.name=t,o.isNameFirst=!!i,o.isBracketed=n,o}function eo(e,t=Ga(e),n,r,i,a,o){return e.tagName!==t||e.name!==n||e.isBracketed!==r||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?Xc($a(t,n,r,i,a,o),e):e}function to(e,t,n,r){let i=qa(339,e??ie(`callback`),r);return i.typeExpression=t,i.fullName=n,i.name=iN(n),i.locals=void 0,i.nextContainer=void 0,i}function no(e,t=Ga(e),n,r,i){return e.tagName!==t||e.typeExpression!==n||e.fullName!==r||e.comment!==i?Xc(to(t,n,r,i),e):e}function ro(e,t,n){let r=Ka(340,e??ie(`overload`),n);return r.typeExpression=t,r}function io(e,t=Ga(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Xc(ro(t,n,r),e):e}function ao(e,t,n){let r=Ka(329,e??ie(`augments`),n);return r.class=t,r}function oo(e,t=Ga(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Xc(ao(t,n,r),e):e}function so(e,t,n){let r=Ka(330,e??ie(`implements`),n);return r.class=t,r}function co(e,t,n){let r=Ka(348,e??ie(`see`),n);return r.name=t,r}function lo(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?Xc(co(t,n,r),e):e}function uo(e){let t=S(311);return t.name=e,t}function fo(e,t){return e.name===t?e:Xc(uo(t),e)}function po(e,t){let n=S(312);return n.left=e,n.right=t,n.transformFlags|=ME(n.left)|ME(n.right),n}function mo(e,t,n){return e.left!==t||e.right!==n?Xc(po(t,n),e):e}function ho(e,t){let n=S(325);return n.name=e,n.text=t,n}function go(e,t,n){return e.name===t?e:Xc(ho(t,n),e)}function _o(e,t){let n=S(326);return n.name=e,n.text=t,n}function vo(e,t,n){return e.name===t?e:Xc(_o(t,n),e)}function yo(e,t){let n=S(327);return n.name=e,n.text=t,n}function bo(e,t,n){return e.name===t?e:Xc(yo(t,n),e)}function xo(e,t=Ga(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Xc(so(t,n,r),e):e}function So(e,t,n){return Ka(e,t??ie(EE(e)),n)}function Co(e,t,n=Ga(t),r){return t.tagName!==n||t.comment!==r?Xc(So(e,n,r),t):t}function wo(e,t,n,r){let i=Ka(e,t??ie(EE(e)),r);return i.typeExpression=n,i}function To(e,t,n=Ga(t),r,i){return t.tagName!==n||t.typeExpression!==r||t.comment!==i?Xc(wo(e,n,r,i),t):t}function Eo(e,t){return Ka(328,e,t)}function Do(e,t,n){return e.tagName!==t||e.comment!==n?Xc(Eo(t,n),e):e}function Oo(e,t,n){let r=qa(341,e??ie(EE(341)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function ko(e,t=Ga(e),n,r){return e.tagName!==t||e.typeExpression!==n||e.comment!==r?Xc(Oo(t,n,r),e):e}function Ao(e,t,n,r,i){let a=Ka(352,e??ie(`import`),i);return a.importClause=t,a.moduleSpecifier=n,a.attributes=r,a.comment=i,a}function jo(e,t,n,r,i,a){return e.tagName!==t||e.comment!==a||e.importClause!==n||e.moduleSpecifier!==r||e.attributes!==i?Xc(Ao(t,n,r,i,a),e):e}function Mo(e){let t=S(322);return t.text=e,t}function No(e,t){return e.text===t?e:Xc(Mo(t),e)}function Po(e,t){let n=S(321);return n.comment=e,n.tags=K(t),n}function Fo(e,t,n){return e.comment!==t||e.tags!==n?Xc(Po(t,n),e):e}function Io(e,t,n){let r=S(285);return r.openingElement=e,r.children=x(t),r.closingElement=n,r.transformFlags|=ME(r.openingElement)|NE(r.children)|ME(r.closingElement)|2,r}function Lo(e,t,n,r){return e.openingElement!==t||e.children!==n||e.closingElement!==r?Xc(Io(t,n,r),e):e}function Ro(e,t,n){let r=S(286);return r.tagName=e,r.typeArguments=K(t),r.attributes=n,r.transformFlags|=ME(r.tagName)|NE(r.typeArguments)|ME(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function W(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Xc(Ro(t,n,r),e):e}function G(e,t,n){let r=S(287);return r.tagName=e,r.typeArguments=K(t),r.attributes=n,r.transformFlags|=ME(r.tagName)|NE(r.typeArguments)|ME(r.attributes)|2,t&&(r.transformFlags|=1),r}function zo(e,t,n,r){return e.tagName!==t||e.typeArguments!==n||e.attributes!==r?Xc(G(t,n,r),e):e}function Bo(e){let t=S(288);return t.tagName=e,t.transformFlags|=ME(t.tagName)|2,t}function Vo(e,t){return e.tagName===t?e:Xc(Bo(t),e)}function Ho(e,t,n){let r=S(289);return r.openingFragment=e,r.children=x(t),r.closingFragment=n,r.transformFlags|=ME(r.openingFragment)|NE(r.children)|ME(r.closingFragment)|2,r}function Uo(e,t,n,r){return e.openingFragment!==t||e.children!==n||e.closingFragment!==r?Xc(Ho(t,n,r),e):e}function Wo(e,t){let n=S(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Go(e,t,n){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==n?Xc(Wo(t,n),e):e}function Ko(){let e=S(290);return e.transformFlags|=2,e}function qo(){let e=S(291);return e.transformFlags|=2,e}function Jo(e,t){let n=C(292);return n.name=e,n.initializer=t,n.transformFlags|=ME(n.name)|ME(n.initializer)|2,n}function Yo(e,t,n){return e.name!==t||e.initializer!==n?Xc(Jo(t,n),e):e}function Xo(e){let t=C(293);return t.properties=x(e),t.transformFlags|=NE(t.properties)|2,t}function Zo(e,t){return e.properties===t?e:Xc(Xo(t),e)}function Qo(e){let t=S(294);return t.expression=e,t.transformFlags|=ME(t.expression)|2,t}function $o(e,t){return e.expression===t?e:Xc(Qo(t),e)}function es(e,t){let n=S(295);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=ME(n.dotDotDotToken)|ME(n.expression)|2,n}function ts(e,t){return e.expression===t?e:Xc(es(e.dotDotDotToken,t),e)}function ns(e,t){let n=S(296);return n.namespace=e,n.name=t,n.transformFlags|=ME(n.namespace)|ME(n.name)|2,n}function rs(e,t,n){return e.namespace!==t||e.name!==n?Xc(ns(t,n),e):e}function is(e,t){let n=S(297);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=x(t),n.transformFlags|=ME(n.expression)|NE(n.statements),n.jsDoc=void 0,n}function os(e,t,n){return e.expression!==t||e.statements!==n?Xc(is(t,n),e):e}function ss(e){let t=S(298);return t.statements=x(e),t.transformFlags=NE(t.statements),t}function cs(e,t){return e.statements===t?e:Xc(ss(t),e)}function ls(e,t){let n=S(299);switch(n.token=e,n.types=x(t),n.transformFlags|=NE(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return H.assertNever(e)}return n}function us(e,t){return e.types===t?e:Xc(ls(e.token,t),e)}function ds(e,t){let n=S(300);return n.variableDeclaration=Yc(e),n.block=t,n.transformFlags|=ME(n.variableDeclaration)|ME(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function fs(e,t,n){return e.variableDeclaration!==t||e.block!==n?Xc(ds(t,n),e):e}function ps(e,t){let n=C(304);return n.name=Hc(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=AE(n.name)|ME(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ms(e,t,n){return e.name!==t||e.initializer!==n?hs(ps(t,n),e):e}function hs(e,t){return e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken),Xc(e,t)}function gs(e,t){let n=C(305);return n.name=Hc(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=jE(n.name)|ME(n.objectAssignmentInitializer)|1024,n.equalsToken=void 0,n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function _s(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?vs(gs(t,n),e):e}function vs(e,t){return e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken,e.equalsToken=t.equalsToken),Xc(e,t)}function ys(e){let t=C(306);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=ME(t.expression)|65664,t.jsDoc=void 0,t}function bs(e,t){return e.expression===t?e:Xc(ys(t),e)}function xs(e,t){let n=C(307);return n.name=Hc(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=ME(n.name)|ME(n.initializer)|1,n.jsDoc=void 0,n}function Ss(e,t,n){return e.name!==t||e.initializer!==n?Xc(xs(t,n),e):e}function Cs(e,n,r){let i=t.createBaseSourceFileNode(308);return i.statements=x(e),i.endOfFileToken=n,i.flags|=r,i.text=``,i.fileName=``,i.path=``,i.resolvedPath=``,i.originalFileName=``,i.languageVersion=1,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=NE(i.statements)|ME(i.endOfFileToken),i.locals=void 0,i.nextContainer=void 0,i.endFlowNode=void 0,i.nodeCount=0,i.identifierCount=0,i.symbolCount=0,i.parseDiagnostics=void 0,i.bindDiagnostics=void 0,i.bindSuggestionDiagnostics=void 0,i.lineMap=void 0,i.externalModuleIndicator=void 0,i.setExternalModuleIndicator=void 0,i.pragmas=void 0,i.checkJsDirective=void 0,i.referencedFiles=void 0,i.typeReferenceDirectives=void 0,i.libReferenceDirectives=void 0,i.amdDependencies=void 0,i.commentDirectives=void 0,i.identifiers=void 0,i.packageJsonLocations=void 0,i.packageJsonScope=void 0,i.imports=void 0,i.moduleAugmentations=void 0,i.ambientModuleNames=void 0,i.classifiableNames=void 0,i.impliedNodeFormat=void 0,i}function ws(e){let t=Object.create(e.redirectTarget);return Object.defineProperties(t,{id:{get(){return this.redirectInfo.redirectTarget.id},set(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(e){this.redirectInfo.redirectTarget.symbol=e}}}),t.redirectInfo=e,t}function Ts(e){let t=ws(e.redirectInfo);return t.flags|=e.flags&-17,t.fileName=e.fileName,t.path=e.path,t.resolvedPath=e.resolvedPath,t.originalFileName=e.originalFileName,t.packageJsonLocations=e.packageJsonLocations,t.packageJsonScope=e.packageJsonScope,t.emitNode=void 0,t}function Es(e){let n=t.createBaseSourceFileNode(308);n.flags|=e.flags&-17;for(let t in e)if(!(qe(n,t)||!qe(e,t))){if(t===`emitNode`){n.emitNode=void 0;continue}n[t]=e[t]}return n}function Ds(e){let t=e.redirectInfo?Ts(e):Es(e);return n(t,e),t}function Os(e,t,n,r,i,a,o){let s=Ds(e);return s.statements=x(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=a,s.libReferenceDirectives=o,s.transformFlags=NE(s.statements)|ME(s.endOfFileToken),s}function ks(e,t,n=e.isDeclarationFile,r=e.referencedFiles,i=e.typeReferenceDirectives,a=e.hasNoDefaultLib,o=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==a||e.libReferenceDirectives!==o?Xc(Os(e,t,n,r,i,a,o),e):e}function As(e){let t=S(309);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function js(e,t){return e.sourceFiles===t?e:Xc(As(t),e)}function Ms(e,t=!1,n){let r=S(238);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r}function Ns(e){let t=S(353);return t._children=e,t}function Ps(e){let t=S(354);return t.original=e,X(t,e),t}function Fs(e,t){let n=S(356);return n.expression=e,n.original=t,n.transformFlags|=ME(n.expression)|1,X(n,t),n}function Is(e,t){return e.expression===t?e:Xc(Fs(t,e.original),e)}function Ls(){return S(355)}function Rs(e){if(kv(e)&&!Vc(e)&&!e.original&&!e.emitNode&&!e.id){if(Qk(e))return e.elements;if(Rk(e)&&lO(e.operatorToken))return[e.left,e.right]}return e}function zs(e){let t=S(357);return t.elements=x(A(e,Rs)),t.transformFlags|=NE(t.elements),t}function Bs(e,t){return e.elements===t?e:Xc(zs(t),e)}function Vs(e,t){let n=S(358);return n.expression=e,n.thisArg=t,n.transformFlags|=ME(n.expression)|ME(n.thisArg),n}function Hs(e,t,n){return e.expression!==t||e.thisArg!==n?Xc(Vs(t,n),e):e}function Us(e){let t=ne(e.escapedText);return t.flags|=e.flags&-17,t.transformFlags=e.transformFlags,n(t,e),SD(t,{...e.emitNode.autoGenerate}),t}function Ws(e){let t=ne(e.escapedText);t.flags|=e.flags&-17,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,n(t,e);let r=xD(e);return r&&bD(t,r),t}function Gs(e){let t=oe(e.escapedText);return t.flags|=e.flags&-17,t.transformFlags=e.transformFlags,n(t,e),SD(t,{...e.emitNode.autoGenerate}),t}function Ks(e){let t=oe(e.escapedText);return t.flags|=e.flags&-17,t.transformFlags=e.transformFlags,n(t,e),t}function qs(e){if(e===void 0)return e;if(vj(e))return Ds(e);if(yu(e))return Us(e);if(Y(e))return Ws(e);if(bu(e))return Gs(e);if(vO(e))return Ks(e);let r=nu(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);r.flags|=e.flags&-17,r.transformFlags=e.transformFlags,n(r,e);for(let t in e)qe(r,t)||!qe(e,t)||(r[t]=e[t]);return r}function Js(e,t,n){return Mn(Wn(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Wr(e,!0)),void 0,n?[n]:[])}function Ys(e,t,n){return Mn(Kn(void 0,void 0,t?[t]:[],void 0,void 0,Wr(e,!0)),void 0,n?[n]:[])}function Xs(){return Qn(T(`0`))}function Zs(e){return ba(void 0,!1,e)}function Qs(e){return Sa(void 0,!1,Ta([Da(!1,void 0,e)]))}function $s(e,t){return t===`null`?b.createStrictEquality(e,me()):t===`undefined`?b.createStrictEquality(e,Xs()):b.createStrictEquality(Xn(e),O(t))}function ec(e,t){return t===`null`?b.createStrictInequality(e,me()):t===`undefined`?b.createStrictInequality(e,Xs()):b.createStrictInequality(Xn(e),O(t))}function tc(e,t,n){return Wl(e)?Pn(wn(e,void 0,t),void 0,void 0,n):Mn(Sn(e,t),void 0,n)}function nc(e,t,n){return tc(e,`bind`,[t,...n])}function rc(e,t,n){return tc(e,`call`,[t,...n])}function ic(e,t,n){return tc(e,`apply`,[t,n])}function ac(e,t,n){return tc(ie(e),t,n)}function oc(e,t){return tc(e,`slice`,t===void 0?[]:[Wc(t)])}function sc(e,t){return tc(e,`concat`,t)}function cc(e,t,n){return ac(`Object`,`defineProperty`,[e,Wc(t),n])}function lc(e,t){return ac(`Object`,`getOwnPropertyDescriptor`,[e,Wc(t)])}function uc(e,t,n){return ac(`Reflect`,`get`,n?[e,t,n]:[e,t])}function dc(e,t,n,r){return ac(`Reflect`,`set`,r?[e,t,n,r]:[e,t,n])}function fc(e,t,n){return n?(e.push(ps(t,n)),!0):!1}function pc(e,t){let n=[];fc(n,`enumerable`,Wc(e.enumerable)),fc(n,`configurable`,Wc(e.configurable));let r=fc(n,`writable`,Wc(e.writable));r=fc(n,`value`,e.value)||r;let i=fc(n,`get`,e.get);return i=fc(n,`set`,e.set)||i,H.assert(!(r&&i),`A PropertyDescriptor may not be both an accessor descriptor and a data descriptor.`),bn(n,!t)}function mc(e,t){switch(e.kind){case 218:return Un(e,t);case 217:return Vn(e,e.type,t);case 235:return Mr(e,t,e.type);case 239:return Ir(e,t,e.type);case 236:return Pr(e,t);case 234:return Ar(e,t,e.typeArguments);case 356:return Is(e,t)}}function hc(e){return kk(e)&&kv(e)&&kv(qE(e))&&kv($E(e))&&!F(tD(e))&&!F(iD(e))}function gc(e,t,n=63){return e&&zM(e,n)&&!hc(e)?mc(e,gc(e.expression,t)):t}function _c(e,t,n){if(!t)return e;let r=bi(t,t.label,gA(t.statement)?_c(e,t.statement):e);return n&&n(t),r}function vc(e,t){let n=F_(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 210:return n.elements.length!==0;case 211:return n.properties.length>0;default:return!0}}function yc(e,t,n,i=!1){let a=BM(e,63),o,s;return Mh(a)?(o=pe(),s=a):kO(a)?(o=pe(),s=n!==void 0&&n<2?X(ie(`_super`),a):a):kp(a)&8192?(o=Xs(),s=r().parenthesizeLeftSideOfAccess(a,!1)):Ck(a)?vc(a.expression,i)?(o=ae(t),s=Sn(X(b.createAssignment(o,a.expression),a.expression),a.name),X(s,a)):(o=a.expression,s=a):wk(a)?vc(a.expression,i)?(o=ae(t),s=Dn(X(b.createAssignment(o,a.expression),a.expression),a.argumentExpression),X(s,a)):(o=a.expression,s=a):(o=Xs(),s=r().parenthesizeLeftSideOfAccess(e,!1)),{target:s,thisArg:o}}function bc(e,t){return Sn(Hn(bn([Ze(void 0,`value`,[Te(void 0,void 0,e,void 0,void 0,void 0)],Wr([Yr(t)]))])),`value`)}function xc(e){return e.length>10?zs(e):Ge(e,b.createComma)}function Sc(e,t,n,r=0,i){let a=i?e&&$c(e):el(e);if(a&&Y(a)&&!yu(a)){let e=Zw(X(qs(a),a),a.parent);return r|=kp(a),n||(r|=96),t||(r|=3072),r&&UE(e,r),e}return N(e)}function Cc(e,t,n){return Sc(e,t,n,98304)}function wc(e,t,n,r){return Sc(e,t,n,32768,r)}function Tc(e,t,n){return Sc(e,t,n,16384)}function Ec(e,t,n){return Sc(e,t,n)}function Dc(e,t,n,r){let i=Sn(e,kv(t)?t:qs(t));X(i,t);let a=0;return r||(a|=96),n||(a|=3072),a&&UE(i,a),i}function Oc(e,t,n,r){return e&&Qy(t,32)?Dc(e,Sc(t),n,r):Tc(t,n,r)}function kc(e,t,n,r){return Nc(e,t,Mc(e,t,0,n),r)}function Ac(e){return tO(e.expression)&&e.expression.text===`use strict`}function jc(){return HM(Yr(O(`use strict`)))}function Mc(e,t,n=0,r){H.assert(t.length===0,`Prologue directives should be at the first statement in the target statements array`);let i=!1,a=e.length;for(;ns&&l.splice(i,0,...t.slice(s,c)),s>o&&l.splice(r,0,...t.slice(o,s)),o>a&&l.splice(n,0,...t.slice(a,o)),a>0)if(n===0)l.splice(0,0,...t.slice(0,a));else{let r=new Map;for(let t=0;t=0;e--){let n=t[e];r.has(n.expression.text)||l.unshift(n)}}return au(e)?X(x(l,e.hasTrailingComma),e):e}function Rc(e,t){let n;return n=typeof t==`number`?ve(t):t,PO(e)?we(e,n,e.name,e.constraint,e.default):FO(e)?Ee(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):ZO(e)?bt(e,n,e.typeParameters,e.parameters,e.type):LO(e)?Ae(e,n,e.name,e.questionToken,e.type):RO(e)?Ne(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):zO(e)?Fe(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):BO(e)?Le(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):HO(e)?L(e,n,e.parameters,e.body):UO(e)?Ye(e,n,e.name,e.parameters,e.type,e.body):WO(e)?Qe(e,n,e.name,e.parameters,e.body):qO(e)?at(e,n,e.parameters,e.type):Ak(e)?Gn(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):jk(e)?qn(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):Uk(e)?Dr(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):nA(e)?qr(e,n,e.declarationList):SA(e)?ji(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):CA(e)?Pi(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):wA(e)?Ii(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):TA(e)?Ri(e,n,e.name,e.typeParameters,e.type):EA(e)?Bi(e,n,e.name,e.members):DA(e)?Hi(e,n,e.name,e.body):jA(e)?Zi(e,n,e.isTypeOnly,e.name,e.moduleReference):MA(e)?$i(e,n,e.importClause,e.moduleSpecifier,e.attributes):UA(e)?xa(e,n,e.expression):WA(e)?Ca(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):H.assertNever(e)}function zc(e,t){return FO(e)?Ee(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):RO(e)?Ne(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):BO(e)?Le(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):UO(e)?Ye(e,t,e.name,e.parameters,e.type,e.body):WO(e)?Qe(e,t,e.name,e.parameters,e.body):Uk(e)?Dr(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):CA(e)?Pi(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):H.assertNever(e)}function Bc(e,t){switch(e.kind){case 178:return Ye(e,e.modifiers,t,e.parameters,e.type,e.body);case 179:return Qe(e,e.modifiers,t,e.parameters,e.body);case 175:return Le(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 174:return Fe(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 173:return Ne(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 172:return Ae(e,e.modifiers,t,e.questionToken,e.type);case 304:return ms(e,t,e.initializer)}}function K(e){return e?x(e):void 0}function Hc(e){return typeof e==`string`?ie(e):e}function Wc(e){return typeof e==`string`?O(e):typeof e==`number`?T(e):typeof e==`boolean`?e?he():ge():e}function Kc(e){return e&&r().parenthesizeExpressionForDisallowedComma(e)}function qc(e){return typeof e==`number`?de(e):e}function Jc(e){return e&&YA(e)?X(n(Jr(),e),e):e}function Yc(e){return typeof e==`string`||e&&!bA(e)?Ei(e,void 0,void 0,void 0):e}function Xc(e,t){return e!==t&&(n(e,t),X(e,t)),e}}function EE(e){switch(e){case 345:return`type`;case 343:return`returns`;case 344:return`this`;case 341:return`enum`;case 331:return`author`;case 333:return`class`;case 334:return`public`;case 335:return`private`;case 336:return`protected`;case 337:return`readonly`;case 338:return`override`;case 346:return`template`;case 347:return`typedef`;case 342:return`param`;case 349:return`prop`;case 339:return`callback`;case 340:return`overload`;case 329:return`augments`;case 330:return`implements`;case 352:return`import`;default:return H.fail(`Unsupported kind: ${H.formatSyntaxKind(e)}`)}}var DE,OE={};function kE(e,t){switch(DE||=Gs(99,!1,0),e){case 15:DE.setText("`"+t+"`");break;case 16:DE.setText("`"+t+"${");break;case 17:DE.setText(`}`+t+"${");break;case 18:DE.setText(`}`+t+"`");break}let n=DE.scan();if(n===20&&(n=DE.reScanTemplateToken(!1)),DE.isUnterminated())return DE.setText(void 0),OE;let r;switch(n){case 15:case 16:case 17:case 18:r=DE.getTokenValue();break}return r===void 0||DE.scan()!==1?(DE.setText(void 0),OE):(DE.setText(void 0),r)}function AE(e){return e&&Y(e)?jE(e):ME(e)}function jE(e){return ME(e)&-67108865}function tte(e,t){return t|e.transformFlags&134234112}function ME(e){if(!e)return 0;let t=e.transformFlags&~nte(e.kind);return Qc(e)&&ku(e.name)?tte(e.name,t):t}function NE(e){return e?e.transformFlags:0}function PE(e){let t=0;for(let n of e)t|=ME(n);e.transformFlags=t}function nte(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var FE=gE();function IE(e){return e.flags|=16,e}var J=TE(4,{createBaseSourceFileNode:e=>IE(FE.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>IE(FE.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>IE(FE.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>IE(FE.createBaseTokenNode(e)),createBaseNode:e=>IE(FE.createBaseNode(e))}),LE;function RE(e,t,n){return new(LE||=(oS.getSourceMapSourceConstructor()))(e,t,n)}function zE(e,t){if(e.original!==t&&(e.original=t,t)){let n=t.emitNode;n&&(e.emitNode=rte(n,e.emitNode))}return e}function rte(e,t){let{flags:n,internalFlags:r,leadingComments:i,trailingComments:a,commentRange:o,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:u,startsOnNewLine:d,snippetElement:f,classThis:p,assignedName:m}=e;if(t||={},n&&(t.flags=n),r&&(t.internalFlags=r&-9),i&&(t.leadingComments=Ee(i.slice(),t.leadingComments)),a&&(t.trailingComments=Ee(a.slice(),t.trailingComments)),o&&(t.commentRange=o),s&&(t.sourceMapRange=s),c&&(t.tokenSourceMapRanges=ite(c,t.tokenSourceMapRanges)),l!==void 0&&(t.constantValue=l),u)for(let e of u)t.helpers=Oe(t.helpers,e);return d!==void 0&&(t.startsOnNewLine=d),f!==void 0&&(t.snippetElement=f),p&&(t.classThis=p),m&&(t.assignedName=m),t}function ite(e,t){t||=[];for(let n in e)t[n]=e[n];return t}function BE(e){if(e.emitNode)H.assert(!(e.emitNode.internalFlags&8),`Invalid attempt to mutate an immutable node.`);else{if(Vc(e)){if(e.kind===308)return e.emitNode={annotatedNodes:[e]};BE(Yf(Hc(Yf(e)))??H.fail(`Could not determine parsed source file.`)).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function VE(e){let t=Yf(Hc(e))?.emitNode?.annotatedNodes;if(t)for(let e of t)e.emitNode=void 0}function HE(e){let t=BE(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function UE(e,t){return BE(e).flags=t,e}function WE(e,t){let n=BE(e);return n.flags|=t,e}function GE(e,t){return BE(e).internalFlags=t,e}function KE(e,t){let n=BE(e);return n.internalFlags|=t,e}function qE(e){return e.emitNode?.sourceMapRange??e}function JE(e,t){return BE(e).sourceMapRange=t,e}function YE(e,t){return e.emitNode?.tokenSourceMapRanges?.[t]}function XE(e,t,n){let r=BE(e),i=r.tokenSourceMapRanges??=[];return i[t]=n,e}function ZE(e){return e.emitNode?.startsOnNewLine}function QE(e,t){return BE(e).startsOnNewLine=t,e}function $E(e){return e.emitNode?.commentRange??e}function eD(e,t){return BE(e).commentRange=t,e}function tD(e){return e.emitNode?.leadingComments}function nD(e,t){return BE(e).leadingComments=t,e}function rD(e,t,n,r){return nD(e,I(tD(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function iD(e){return e.emitNode?.trailingComments}function aD(e,t){return BE(e).trailingComments=t,e}function oD(e,t,n,r){return aD(e,I(iD(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function sD(e,t){nD(e,tD(t)),aD(e,iD(t));let n=BE(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function cD(e){return e.emitNode?.constantValue}function lD(e,t){let n=BE(e);return n.constantValue=t,e}function uD(e,t){let n=BE(e);return n.helpers=I(n.helpers,t),e}function dD(e,t){if(F(t)){let n=BE(e);for(let e of t)n.helpers=Oe(n.helpers,e)}return e}function fD(e,t){let n=e.emitNode?.helpers;return n?rn(n,t):!1}function pD(e){return e.emitNode?.helpers}function mD(e,t,n){let r=e.emitNode,i=r&&r.helpers;if(!F(i))return;let a=BE(t),o=0;for(let e=0;e0&&(i[e-o]=t)}o>0&&(i.length-=o)}function hD(e){return e.emitNode?.snippetElement}function gD(e,t){let n=BE(e);return n.snippetElement=t,e}function _D(e){return BE(e).internalFlags|=4,e}function vD(e,t){let n=BE(e);return n.typeNode=t,e}function yD(e){return e.emitNode?.typeNode}function bD(e,t){return BE(e).identifierTypeArguments=t,e}function xD(e){return e.emitNode?.identifierTypeArguments}function SD(e,t){return BE(e).autoGenerate=t,e}function CD(e){return e.emitNode?.autoGenerate}function wD(e,t){return BE(e).generatedImportReference=t,e}function TD(e){return e.emitNode?.generatedImportReference}var ED=(e=>(e.Field=`f`,e.Method=`m`,e.Accessor=`a`,e))(ED||{});function DD(e){let t=e.factory,n=kt(()=>GE(t.createTrue(),8)),r=kt(()=>GE(t.createFalse(),8));return{getUnscopedHelperName:i,createDecorateHelper:a,createMetadataHelper:o,createParamHelper:s,createESDecorateHelper:h,createRunInitializersHelper:g,createAssignHelper:_,createAwaitHelper:v,createAsyncGeneratorHelper:y,createAsyncDelegatorHelper:b,createAsyncValuesHelper:x,createRestHelper:S,createAwaiterHelper:C,createExtendsHelper:w,createTemplateObjectHelper:T,createSpreadArrayHelper:E,createPropKeyHelper:D,createSetFunctionNameHelper:O,createValuesHelper:k,createReadHelper:ee,createGeneratorHelper:te,createImportStarHelper:ne,createImportStarCallbackHelper:re,createImportDefaultHelper:ie,createExportStarHelper:ae,createClassPrivateFieldGetHelper:A,createClassPrivateFieldSetHelper:j,createClassPrivateFieldInHelper:M,createAddDisposableResourceHelper:N,createDisposeResourcesHelper:oe,createRewriteRelativeImportExtensionsHelper:se};function i(e){return UE(t.createIdentifier(e),8196)}function a(n,r,a,o){e.requestEmitHelper(AD);let s=[];return s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),a&&(s.push(a),o&&s.push(o)),t.createCallExpression(i(`__decorate`),void 0,s)}function o(n,r){return e.requestEmitHelper(jD),t.createCallExpression(i(`__metadata`),void 0,[t.createStringLiteral(n),r])}function s(n,r,a){return e.requestEmitHelper(MD),X(t.createCallExpression(i(`__param`),void 0,[t.createNumericLiteral(r+``),n]),a)}function c(e){let n=[t.createPropertyAssignment(t.createIdentifier(`kind`),t.createStringLiteral(`class`)),t.createPropertyAssignment(t.createIdentifier(`name`),e.name),t.createPropertyAssignment(t.createIdentifier(`metadata`),e.metadata)];return t.createObjectLiteralExpression(n)}function l(e){let n=e.computed?t.createElementAccessExpression(t.createIdentifier(`obj`),e.name):t.createPropertyAccessExpression(t.createIdentifier(`obj`),e.name);return t.createPropertyAssignment(`get`,t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier(`obj`))],void 0,void 0,n))}function u(e){let n=e.computed?t.createElementAccessExpression(t.createIdentifier(`obj`),e.name):t.createPropertyAccessExpression(t.createIdentifier(`obj`),e.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(n,t.createIdentifier(`value`)))])))}function d(e){let n=e.computed?e.name:Y(e.name)?t.createStringLiteralFromNode(e.name):e.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(n,103,t.createIdentifier(`obj`))))}function f(e,n){let r=[];return r.push(d(e)),n.get&&r.push(l(e)),n.set&&r.push(u(e)),t.createObjectLiteralExpression(r)}function p(e){let n=[t.createPropertyAssignment(t.createIdentifier(`kind`),t.createStringLiteral(e.kind)),t.createPropertyAssignment(t.createIdentifier(`name`),e.name.computed?e.name.name:t.createStringLiteralFromNode(e.name.name)),t.createPropertyAssignment(t.createIdentifier(`static`),e.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier(`private`),e.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier(`access`),f(e.name,e.access)),t.createPropertyAssignment(t.createIdentifier(`metadata`),e.metadata)];return t.createObjectLiteralExpression(n)}function m(e){return e.kind===`class`?c(e):p(e)}function h(n,r,a,o,s,c){return e.requestEmitHelper(ND),t.createCallExpression(i(`__esDecorate`),void 0,[n??t.createNull(),r??t.createNull(),a,m(o),s,c])}function g(n,r,a){return e.requestEmitHelper(PD),t.createCallExpression(i(`__runInitializers`),void 0,a?[n,r,a]:[n,r])}function _(n){return zS(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier(`Object`),`assign`),void 0,n):(e.requestEmitHelper(FD),t.createCallExpression(i(`__assign`),void 0,n))}function v(n){return e.requestEmitHelper(ID),t.createCallExpression(i(`__await`),void 0,[n])}function y(n,r){return e.requestEmitHelper(ID),e.requestEmitHelper(LD),(n.emitNode||={}).flags|=1572864,t.createCallExpression(i(`__asyncGenerator`),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier(`arguments`),n])}function b(n){return e.requestEmitHelper(ID),e.requestEmitHelper(RD),t.createCallExpression(i(`__asyncDelegator`),void 0,[n])}function x(n){return e.requestEmitHelper(zD),t.createCallExpression(i(`__asyncValues`),void 0,[n])}function S(n,r,a,o){e.requestEmitHelper(BD);let s=[],c=0;for(let e=0;e{let r=``;for(let i=0;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; };`},jD={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); };`},MD={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); } };`},ND={name:`typescript:esDecorate`,importName:`__esDecorate`,scoped:!1,priority:2,text:` var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); var _, done = false; for (var i = decorators.length - 1; i >= 0; i--) { var context = {}; for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; for (var p in contextIn.access) context.access[p] = contextIn.access[p]; context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); if (kind === "accessor") { if (result === void 0) continue; if (result === null || typeof result !== "object") throw new TypeError("Object expected"); if (_ = accept(result.get)) descriptor.get = _; if (_ = accept(result.set)) descriptor.set = _; if (_ = accept(result.init)) initializers.unshift(_); } else if (_ = accept(result)) { if (kind === "field") initializers.unshift(_); else descriptor[key] = _; } } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; };`},PD={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; };`},FD={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); };`},ID={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); }`},LD={name:`typescript:asyncGenerator`,importName:`__asyncGenerator`,scoped:!1,dependencies:[ID],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 = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } };`},RD={name:`typescript:asyncDelegator`,importName:`__asyncDelegator`,scoped:!1,dependencies:[ID],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; } };`},zD={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); } };`},BD={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; };`},ate={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()); }); };`},ote={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 __()); }; })();`},VD={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; };`},HD={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; };`},UD={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)); };`},ste={name:`typescript:propKey`,importName:`__propKey`,scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); };`},cte={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 }); };`},lte={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."); };`},WD={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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); return g.next = verb(0), g["throw"] = verb(1), g["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 }; } };`},GD={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]; }));`},KD={name:`typescript:commonjsimportstar`,importName:`__importStar`,scoped:!1,dependencies:[GD,{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; });`}],priority:2,text:` var __importStar = (this && this.__importStar) || (function () { var ownKeys = function(o) { ownKeys = Object.getOwnPropertyNames || function (o) { var ar = []; for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; return ar; }; return ownKeys(o); }; return function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); __setModuleDefault(result, mod); return result; }; })();`},ute={name:`typescript:commonjsimportdefault`,importName:`__importDefault`,scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; };`},dte={name:`typescript:export-star`,importName:`__exportStar`,scoped:!1,dependencies:[GD],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); };`},fte={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); };`},qD={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; };`},pte={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); };`},JD={name:`typescript:addDisposableResource`,importName:`__addDisposableResource`,scoped:!1,text:` var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); var dispose, inner; if (async) { if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); dispose = value[Symbol.asyncDispose]; } if (dispose === void 0) { if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); dispose = value[Symbol.dispose]; if (async) inner = dispose; } if (typeof dispose !== "function") throw new TypeError("Object not disposable."); if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } }; env.stack.push({ value: value, dispose: dispose, async: async }); } else if (async) { env.stack.push({ async: true }); } return value; };`},YD={name:`typescript:disposeResources`,importName:`__disposeResources`,scoped:!1,text:` var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { return function (env) { function fail(e) { env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; env.hasError = true; } var r, s = 0; function next() { while (r = env.stack.pop()) { try { if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next); if (r.dispose) { var result = r.dispose.call(r.value); if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); } else s |= 1; } catch (e) { fail(e); } } if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve(); if (env.hasError) throw env.error; } return next(); }; })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; });`},mte={name:`typescript:rewriteRelativeImportExtensions`,importName:`__rewriteRelativeImportExtension`,scoped:!1,text:` var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) { if (typeof path === "string" && /^\\.\\.?\\//.test(path)) { return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) { return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js"); }); } return path; };`},XD={name:`typescript:async-super`,scoped:!0,text:kD` const ${`_superIndex`} = name => super[name];`},ZD={name:`typescript:advanced-async-super`,scoped:!0,text:kD` 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 QD(e,t){return Tk(e)&&Y(e.expression)&&(kp(e.expression)&8192)!=0&&e.expression.escapedText===t}function $D(e){return e.kind===9}function eO(e){return e.kind===10}function tO(e){return e.kind===11}function nO(e){return e.kind===12}function rO(e){return e.kind===14}function iO(e){return e.kind===15}function aO(e){return e.kind===16}function oO(e){return e.kind===17}function sO(e){return e.kind===18}function cO(e){return e.kind===26}function lO(e){return e.kind===28}function uO(e){return e.kind===40}function dO(e){return e.kind===41}function fO(e){return e.kind===42}function pO(e){return e.kind===54}function mO(e){return e.kind===58}function hO(e){return e.kind===59}function gO(e){return e.kind===29}function _O(e){return e.kind===39}function Y(e){return e.kind===80}function vO(e){return e.kind===81}function yO(e){return e.kind===95}function bO(e){return e.kind===90}function xO(e){return e.kind===134}function SO(e){return e.kind===131}function CO(e){return e.kind===135}function wO(e){return e.kind===148}function TO(e){return e.kind===126}function EO(e){return e.kind===128}function DO(e){return e.kind===164}function OO(e){return e.kind===129}function kO(e){return e.kind===108}function AO(e){return e.kind===102}function jO(e){return e.kind===84}function MO(e){return e.kind===167}function NO(e){return e.kind===168}function PO(e){return e.kind===169}function FO(e){return e.kind===170}function IO(e){return e.kind===171}function LO(e){return e.kind===172}function RO(e){return e.kind===173}function zO(e){return e.kind===174}function BO(e){return e.kind===175}function VO(e){return e.kind===176}function HO(e){return e.kind===177}function UO(e){return e.kind===178}function WO(e){return e.kind===179}function GO(e){return e.kind===180}function KO(e){return e.kind===181}function qO(e){return e.kind===182}function JO(e){return e.kind===183}function YO(e){return e.kind===184}function XO(e){return e.kind===185}function ZO(e){return e.kind===186}function QO(e){return e.kind===187}function $O(e){return e.kind===188}function ek(e){return e.kind===189}function tk(e){return e.kind===190}function nk(e){return e.kind===203}function rk(e){return e.kind===191}function ik(e){return e.kind===192}function ak(e){return e.kind===193}function ok(e){return e.kind===194}function sk(e){return e.kind===195}function ck(e){return e.kind===196}function lk(e){return e.kind===197}function uk(e){return e.kind===198}function dk(e){return e.kind===199}function fk(e){return e.kind===200}function pk(e){return e.kind===201}function mk(e){return e.kind===202}function hk(e){return e.kind===206}function gk(e){return e.kind===205}function _k(e){return e.kind===204}function vk(e){return e.kind===207}function yk(e){return e.kind===208}function bk(e){return e.kind===209}function xk(e){return e.kind===210}function Sk(e){return e.kind===211}function Ck(e){return e.kind===212}function wk(e){return e.kind===213}function Tk(e){return e.kind===214}function Ek(e){return e.kind===215}function Dk(e){return e.kind===216}function Ok(e){return e.kind===217}function kk(e){return e.kind===218}function Ak(e){return e.kind===219}function jk(e){return e.kind===220}function Mk(e){return e.kind===221}function Nk(e){return e.kind===222}function Pk(e){return e.kind===223}function Fk(e){return e.kind===224}function Ik(e){return e.kind===225}function Lk(e){return e.kind===226}function Rk(e){return e.kind===227}function zk(e){return e.kind===228}function Bk(e){return e.kind===229}function Vk(e){return e.kind===230}function Hk(e){return e.kind===231}function Uk(e){return e.kind===232}function Wk(e){return e.kind===233}function Gk(e){return e.kind===234}function Kk(e){return e.kind===235}function qk(e){return e.kind===239}function Jk(e){return e.kind===236}function Yk(e){return e.kind===237}function Xk(e){return e.kind===238}function Zk(e){return e.kind===356}function Qk(e){return e.kind===357}function $k(e){return e.kind===240}function eA(e){return e.kind===241}function tA(e){return e.kind===242}function nA(e){return e.kind===244}function rA(e){return e.kind===243}function iA(e){return e.kind===245}function aA(e){return e.kind===246}function oA(e){return e.kind===247}function sA(e){return e.kind===248}function cA(e){return e.kind===249}function lA(e){return e.kind===250}function uA(e){return e.kind===251}function dA(e){return e.kind===252}function fA(e){return e.kind===253}function pA(e){return e.kind===254}function mA(e){return e.kind===255}function hA(e){return e.kind===256}function gA(e){return e.kind===257}function _A(e){return e.kind===258}function vA(e){return e.kind===259}function yA(e){return e.kind===260}function bA(e){return e.kind===261}function xA(e){return e.kind===262}function SA(e){return e.kind===263}function CA(e){return e.kind===264}function wA(e){return e.kind===265}function TA(e){return e.kind===266}function EA(e){return e.kind===267}function DA(e){return e.kind===268}function OA(e){return e.kind===269}function kA(e){return e.kind===270}function AA(e){return e.kind===271}function jA(e){return e.kind===272}function MA(e){return e.kind===273}function NA(e){return e.kind===274}function PA(e){return e.kind===303}function FA(e){return e.kind===301}function IA(e){return e.kind===302}function LA(e){return e.kind===301}function RA(e){return e.kind===302}function zA(e){return e.kind===275}function BA(e){return e.kind===281}function VA(e){return e.kind===276}function HA(e){return e.kind===277}function UA(e){return e.kind===278}function WA(e){return e.kind===279}function GA(e){return e.kind===280}function KA(e){return e.kind===282}function qA(e){return e.kind===80||e.kind===11}function JA(e){return e.kind===283}function YA(e){return e.kind===354}function XA(e){return e.kind===358}function ZA(e){return e.kind===284}function QA(e){return e.kind===285}function $A(e){return e.kind===286}function ej(e){return e.kind===287}function tj(e){return e.kind===288}function nj(e){return e.kind===289}function rj(e){return e.kind===290}function ij(e){return e.kind===291}function aj(e){return e.kind===292}function oj(e){return e.kind===293}function sj(e){return e.kind===294}function cj(e){return e.kind===295}function lj(e){return e.kind===296}function uj(e){return e.kind===297}function dj(e){return e.kind===298}function fj(e){return e.kind===299}function pj(e){return e.kind===300}function mj(e){return e.kind===304}function hj(e){return e.kind===305}function gj(e){return e.kind===306}function _j(e){return e.kind===307}function vj(e){return e.kind===308}function yj(e){return e.kind===309}function bj(e){return e.kind===310}function xj(e){return e.kind===311}function Sj(e){return e.kind===312}function Cj(e){return e.kind===325}function wj(e){return e.kind===326}function hte(e){return e.kind===327}function Tj(e){return e.kind===313}function Ej(e){return e.kind===314}function Dj(e){return e.kind===315}function Oj(e){return e.kind===316}function kj(e){return e.kind===317}function Aj(e){return e.kind===318}function jj(e){return e.kind===319}function Mj(e){return e.kind===320}function Nj(e){return e.kind===321}function Pj(e){return e.kind===323}function Fj(e){return e.kind===324}function Ij(e){return e.kind===329}function Lj(e){return e.kind===331}function Rj(e){return e.kind===333}function zj(e){return e.kind===339}function Bj(e){return e.kind===334}function Vj(e){return e.kind===335}function Hj(e){return e.kind===336}function Uj(e){return e.kind===337}function Wj(e){return e.kind===338}function Gj(e){return e.kind===340}function Kj(e){return e.kind===332}function qj(e){return e.kind===348}function Jj(e){return e.kind===341}function Yj(e){return e.kind===342}function Xj(e){return e.kind===343}function Zj(e){return e.kind===344}function Qj(e){return e.kind===345}function $j(e){return e.kind===346}function eM(e){return e.kind===347}function tM(e){return e.kind===328}function nM(e){return e.kind===349}function rM(e){return e.kind===330}function iM(e){return e.kind===351}function aM(e){return e.kind===350}function oM(e){return e.kind===352}function sM(e){return e.kind===353}var cM=new WeakMap;function lM(e,t){let n=e.kind;return nu(n)?n===353?e._children:cM.get(t)?.get(e):c}function uM(e,t,n){e.kind===353&&H.fail(`Should not need to re-set the children of a SyntaxList.`);let r=cM.get(t);return r===void 0&&(r=new WeakMap,cM.set(t,r)),r.set(e,n),n}function dM(e,t){var n;e.kind===353&&H.fail(`Did not expect to unset the children of a SyntaxList.`),(n=cM.get(t))==null||n.delete(e)}function fM(e,t){let n=cM.get(e);n!==void 0&&(cM.delete(e),cM.set(t,n))}function pM(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function mM(e,t,n,r){if(NO(n))return X(e.createElementAccessExpression(t,n.expression),r);{let r=X(Bl(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return WE(r,128),r}}function hM(e,t){let n=qN.createIdentifier(e||`React`);return Zw(n,Hc(t)),n}function gM(e,t,n){if(MO(t)){let r=gM(e,t.left,n),i=e.createIdentifier(Gc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}else return hM(Gc(t),n)}function _M(e,t,n,r){return t?gM(e,t,r):e.createPropertyAccessExpression(hM(n,r),`createElement`)}function vM(e,t,n,r){return t?gM(e,t,r):e.createPropertyAccessExpression(hM(n,r),`Fragment`)}function yM(e,t,n,r,i,a){let o=[n];if(r&&o.push(r),i&&i.length>0)if(r||o.push(e.createNull()),i.length>1)for(let e of i)HM(e),o.push(e);else o.push(i[0]);return X(e.createCallExpression(t,void 0,o),a)}function bM(e,t,n,r,i,a,o){let s=[vM(e,n,r,a),e.createNull()];if(i&&i.length>0)if(i.length>1)for(let e of i)HM(e),s.push(e);else s.push(i[0]);return X(e.createCallExpression(_M(e,t,r,a),void 0,s),o)}function xM(e,t,n){if(xA(t)){let r=Ie(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return X(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}else{let r=X(e.createAssignment(t,n),t);return X(e.createExpressionStatement(r),t)}}function SM(e,t){if(MO(t)){let n=SM(e,t.left),r=Zw(X(e.cloneNode(t.right),t.right),t.right.parent);return X(e.createPropertyAccessExpression(n,r),t)}else return Zw(X(e.cloneNode(t),t),t.parent)}function CM(e,t){return Y(t)?e.createStringLiteralFromNode(t):NO(t)?Zw(X(e.cloneNode(t.expression),t.expression),t.expression.parent):Zw(X(e.cloneNode(t),t),t.parent)}function wM(e,t,n,r,i){let{firstAccessor:a,getAccessor:o,setAccessor:s}=Iy(t,n);if(n===a)return X(e.createObjectDefinePropertyCall(r,CM(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:o&&X(zE(e.createFunctionExpression(rl(o),void 0,void 0,void 0,o.parameters,void 0,o.body),o),o),set:s&&X(zE(e.createFunctionExpression(rl(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),a)}function TM(e,t,n){return zE(X(e.createAssignment(mM(e,n,t.name,t.name),t.initializer),t),t)}function EM(e,t,n){return zE(X(e.createAssignment(mM(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function gte(e,t,n){return zE(X(e.createAssignment(mM(e,n,t.name,t.name),zE(X(e.createFunctionExpression(rl(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function DM(e,t,n,r){switch(n.name&&vO(n.name)&&H.failBadSyntaxKind(n.name,`Private identifiers are not allowed in object literals.`),n.kind){case 178:case 179:return wM(e,t.properties,n,r,!!t.multiLine);case 304:return TM(e,n,r);case 305:return EM(e,n,r);case 175:return gte(e,n,r)}}function OM(e,t,n,r,i){let a=t.operator;H.assert(a===46||a===47,`Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression`);let o=e.createTempVariable(r);n=e.createAssignment(o,n),X(n,t.operand);let s=Ik(t)?e.createPrefixUnaryExpression(a,o):e.createPostfixUnaryExpression(o,a);return X(s,t),i&&(s=e.createAssignment(i,s),X(s,t)),n=e.createComma(n,s),X(n,t),Lk(t)&&(n=e.createComma(n,o),X(n,t)),n}function kM(e){return(kp(e)&65536)!=0}function AM(e){return(kp(e)&32768)!=0}function jM(e){return(kp(e)&16384)!=0}function MM(e){return tO(e.expression)&&e.expression.text===`use strict`}function NM(e){for(let t of e)if(Um(t)){if(MM(t))return t}else break}function PM(e){let t=Pe(e);return t!==void 0&&Um(t)&&MM(t)}function FM(e){return e.kind===227&&e.operatorToken.kind===28}function IM(e){return FM(e)||Qk(e)}function LM(e){return kk(e)&&ng(e)&&!!Ol(e)}function RM(e){let t=kl(e);return H.assertIsDefined(t),t}function zM(e,t=63){switch(e.kind){case 218:return t&-2147483648&&LM(e)?!1:(t&1)!=0;case 217:case 235:return(t&2)!=0;case 239:return(t&34)!=0;case 234:return(t&16)!=0;case 236:return(t&4)!=0;case 356:return(t&8)!=0}return!1}function BM(e,t=63){for(;zM(e,t);)e=e.expression;return e}function VM(e,t=63){let n=e.parent;for(;zM(n,t);)n=n.parent,H.assert(n);return n}function HM(e){return QE(e,!0)}function UM(e){let t=Bc(e,vj),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function WM(e){let t=Bc(e,vj),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function GM(e,t,n,r,i,a,o){if(r.importHelpers&&Yp(n,r)){let s=BS(r),c=iG(n,r),l=_te(n);if(c!==1&&(s>=5&&s<=99||c===99||c===void 0&&s===200)){if(l){let r=[];for(let e of l){let t=e.importName;t&&De(r,t)}if(F(r)){r.sort(Ht);let i=e.createNamedImports(k(r,r=>np(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r)))),a=BE(Bc(n,vj));a.externalHelpers=!0;let o=e.createImportDeclaration(void 0,e.createImportClause(void 0,void 0,i),e.createStringLiteral(_f),void 0);return KE(o,2),o}}}else{let t=KM(e,n,r,l,i,a||o);if(t){let n=e.createImportEqualsDeclaration(void 0,!1,t,e.createExternalModuleReference(e.createStringLiteral(_f)));return KE(n,2),n}}}}function _te(e){return E(pD(e),e=>!e.scoped)}function KM(e,t,n,r,i,a){let o=UM(t);if(o)return o;if(F(r)||(i||WS(n)&&a)&&rG(t,n)<4){let n=BE(Bc(t,vj));return n.externalHelpersModuleName||=e.createUniqueName(_f)}}function qM(e,t,n){let r=Xg(t);if(r&&!Zg(t)&&!xp(t)){let i=r.name;return i.kind===11?e.getGeneratedNameForNode(t):yu(i)?i:e.createIdentifier(bp(n,i)||Gc(i))}if(t.kind===273&&t.importClause||t.kind===279&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function JM(e,t,n,r,i,a){let o=Yg(t);if(o&&tO(o))return vte(t,r,e,i,a)||YM(e,o,n)||e.cloneNode(o)}function YM(e,t,n){let r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}function XM(e,t,n,r){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&r.outFile)return e.createStringLiteral(uy(n,t.fileName))}}function vte(e,t,n,r,i){return XM(n,r.getExternalModuleFileFromDeclaration(e),t,i)}function ZM(e){if($u(e))return e.initializer;if(mj(e)){let t=e.initializer;return kb(t,!0)?t.right:void 0}if(hj(e))return e.objectAssignmentInitializer;if(kb(e,!0))return e.right;if(Hk(e))return ZM(e.expression)}function QM(e){if($u(e))return e.name;if(qu(e)){switch(e.kind){case 304:return QM(e.initializer);case 305:return e.name;case 306:return QM(e.expression)}return}return kb(e,!0)?QM(e.left):Hk(e)?QM(e.expression):e}function $M(e){switch(e.kind){case 170:case 209:return e.dotDotDotToken;case 231:case 306:return e}}function eN(e){let t=tN(e);return H.assert(!!t||gj(e),`Invalid property name for binding element.`),t}function tN(e){switch(e.kind){case 209:if(e.propertyName){let t=e.propertyName;return vO(t)?H.failBadSyntaxKind(t):NO(t)&&nN(t.expression)?t.expression:t}break;case 304:if(e.name){let t=e.name;return vO(t)?H.failBadSyntaxKind(t):NO(t)&&nN(t.expression)?t.expression:t}break;case 306:return e.name&&vO(e.name)?H.failBadSyntaxKind(e.name):e.name}let t=QM(e);if(t&&ku(t))return t}function nN(e){let t=e.kind;return t===11||t===9}function rN(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function iN(e){if(e){let t=e;for(;;){if(Y(t)||!t.body)return Y(t)?t:t.name;t=t.body}}}function aN(e){let t=e.kind;return t===177||t===179}function oN(e){let t=e.kind;return t===177||t===178||t===179}function sN(e){let t=e.kind;return t===304||t===305||t===263||t===177||t===182||t===176||t===283||t===244||t===265||t===266||t===267||t===268||t===272||t===273||t===271||t===279||t===278}function cN(e){let t=e.kind;return t===176||t===304||t===305||t===283||t===271}function lN(e){return mO(e)||pO(e)}function uN(e){return Y(e)||uk(e)}function dN(e){return wO(e)||uO(e)||dO(e)}function fN(e){return mO(e)||uO(e)||dO(e)}function pN(e){return Y(e)||tO(e)}function yte(e){return e===43}function mN(e){return e===42||e===44||e===45}function hN(e){return yte(e)||mN(e)}function gN(e){return e===40||e===41}function _N(e){return gN(e)||hN(e)}function bte(e){return e===48||e===49||e===50}function vN(e){return bte(e)||_N(e)}function yN(e){return e===30||e===33||e===32||e===34||e===104||e===103}function xte(e){return yN(e)||vN(e)}function Ste(e){return e===35||e===37||e===36||e===38}function Cte(e){return Ste(e)||xte(e)}function bN(e){return e===51||e===52||e===53}function xN(e){return bN(e)||Cte(e)}function wte(e){return e===56||e===57}function Tte(e){return wte(e)||xN(e)}function Ete(e){return e===61||Tte(e)||Eb(e)}function SN(e){return Ete(e)||e===28}function CN(e){return SN(e.kind)}var wN;(e=>{function t(e,n,r,i,a,o,c){let l=n>0?a[n-1]:void 0;return H.assertEqual(r[n],t),a[n]=e.onEnter(i[n],l,c),r[n]=s(e,t),n}e.enter=t;function n(e,t,r,i,a,o,u){H.assertEqual(r[t],n),H.assertIsDefined(e.onLeft),r[t]=s(e,n);let d=e.onLeft(i[t].left,a[t],i[t]);return d?(l(t,i,d),c(t,r,i,a,d)):t}e.left=n;function r(e,t,n,i,a,o,c){return H.assertEqual(n[t],r),H.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,a[t],i[t]),t}e.operator=r;function i(e,t,n,r,a,o,u){H.assertEqual(n[t],i),H.assertIsDefined(e.onRight),n[t]=s(e,i);let d=e.onRight(r[t].right,a[t],r[t]);return d?(l(t,r,d),c(t,n,r,a,d)):t}e.right=i;function a(e,t,n,r,i,o,c){H.assertEqual(n[t],a),n[t]=s(e,a);let l=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){let r=n[t]===a?`right`:`left`;i[t]=e.foldState(i[t],l,r)}}else o.value=l;return t}e.exit=a;function o(e,t,n,r,i,a,s){return H.assertEqual(n[t],o),t}e.done=o;function s(e,s){switch(s){case t:if(e.onLeft)return n;case n:if(e.onOperator)return r;case r:if(e.onRight)return i;case i:return a;case a:return o;case o:return o;default:H.fail(`Invalid state`)}}e.nextState=s;function c(e,n,r,i,a){return e++,n[e]=t,r[e]=a,i[e]=void 0,e}function l(e,t,n){if(H.shouldAssert(2))for(;e>=0;)H.assert(t[e]!==n,`Circular traversal detected.`),e--}})(wN||={});var TN=class{constructor(e,t,n,r,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=a}};function EN(e,t,n,r,i,a){let o=new TN(e,t,n,r,i,a);return s;function s(e,t){let n={value:void 0},r=[wN.enter],i=[e],a=[void 0],s=0;for(;r[s]!==wN.done;)s=r[s](o,s,r,i,a,n,t);return H.assertEqual(s,0),n.value}}function DN(e){return e===95||e===90}function ON(e){let t=e.kind;return DN(t)}function kN(e,t){if(t!==void 0)return t.length===0?t:X(e.createNodeArray([],t.hasTrailingComma),t)}function AN(e){let t=e.emitNode.autoGenerate;if(t.flags&4){let n=t.id,r=e,i=r.original;for(;i;){r=i;let e=r.emitNode?.autoGenerate;if(Bl(r)&&(e===void 0||e.flags&4&&e.id!==n))break;i=r.original}return r}return e}function jN(e,t){return typeof e==`object`?NN(!1,e.prefix,e.node,e.suffix,t):typeof e==`string`?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:``}function MN(e,t){return typeof e==`string`?e:Dte(e,H.checkDefined(t))}function Dte(e,t){return bu(e)?t(e).slice(1):yu(e)?t(e):vO(e)?e.escapedText.slice(1):Gc(e)}function NN(e,t,n,r,i){return t=jN(t,i),r=jN(r,i),n=MN(n,i),`${e?`#`:``}${t}${n}${r}`}function PN(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,`_accessor_storage`),void 0,void 0,r)}function FN(e,t,n,r,i=e.createThis()){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,`_accessor_storage`)))]))}function IN(e,t,n,r,i=e.createThis()){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,`value`)],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(i,e.getGeneratedPrivateNameForNode(t.name,void 0,`_accessor_storage`)),e.createIdentifier(`value`)))]))}function LN(e){let t=e.expression;for(;;){if(t=BM(t),Qk(t)){t=ze(t.elements);continue}if(FM(t)){t=t.right;continue}if(kb(t,!0)&&yu(t.left))return t;break}}function Ote(e){return kk(e)&&kv(e)&&!e.emitNode}function RN(e,t){if(Ote(e))RN(e.expression,t);else if(FM(e))RN(e.left,t),RN(e.right,t);else if(Qk(e))for(let n of e.elements)RN(n,t);else t.push(e)}function zN(e){let t=[];return RN(e,t),t}function BN(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of rN(e)){let e=QM(t);if(e&&Zu(e)&&(e.transformFlags&65536||e.transformFlags&128&&BN(e)))return!0}return!1}function X(e,t){return t?Jw(e,t.pos,t.end):e}function VN(e){let t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function HN(e){let t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var kte,UN,WN,GN,Ate,KN={createBaseSourceFileNode:e=>new(Ate||=(oS.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(WN||=(oS.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(GN||=(oS.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(UN||=(oS.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(kte||=(oS.getNodeConstructor()))(e,-1,-1)},qN=TE(1,KN);function Z(e,t){return t&&e(t)}function JN(e,t,n){if(n){if(t)return t(n);for(let t of n){let n=e(t);if(n)return n}}}function YN(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function XN(e){return d(e.statements,ZN)||jte(e)}function ZN(e){return VN(e)&&$N(e,95)||jA(e)&&ZA(e.moduleReference)||MA(e)||UA(e)||WA(e)?e:void 0}function jte(e){return e.flags&8388608?QN(e):void 0}function QN(e){return Mte(e)?e:pP(e,QN)}function $N(e,t){return F(e.modifiers,e=>e.kind===t)}function Mte(e){return Yk(e)&&e.keywordToken===102&&e.name.escapedText===`meta`}var eP={167:function(e,t,n){return Z(t,e.left)||Z(t,e.right)},169:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||Z(t,e.constraint)||Z(t,e.default)||Z(t,e.expression)},305:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||Z(t,e.questionToken)||Z(t,e.exclamationToken)||Z(t,e.equalsToken)||Z(t,e.objectAssignmentInitializer)},306:function(e,t,n){return Z(t,e.expression)},170:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.dotDotDotToken)||Z(t,e.name)||Z(t,e.questionToken)||Z(t,e.type)||Z(t,e.initializer)},173:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||Z(t,e.questionToken)||Z(t,e.exclamationToken)||Z(t,e.type)||Z(t,e.initializer)},172:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||Z(t,e.questionToken)||Z(t,e.type)||Z(t,e.initializer)},304:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||Z(t,e.questionToken)||Z(t,e.exclamationToken)||Z(t,e.initializer)},261:function(e,t,n){return Z(t,e.name)||Z(t,e.exclamationToken)||Z(t,e.type)||Z(t,e.initializer)},209:function(e,t,n){return Z(t,e.dotDotDotToken)||Z(t,e.propertyName)||Z(t,e.name)||Z(t,e.initializer)},182:function(e,t,n){return JN(t,n,e.modifiers)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)},186:function(e,t,n){return JN(t,n,e.modifiers)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)},185:function(e,t,n){return JN(t,n,e.modifiers)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)},180:tP,181:tP,175:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.asteriskToken)||Z(t,e.name)||Z(t,e.questionToken)||Z(t,e.exclamationToken)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)||Z(t,e.body)},174:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||Z(t,e.questionToken)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)},177:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)||Z(t,e.body)},178:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)||Z(t,e.body)},179:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)||Z(t,e.body)},263:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.asteriskToken)||Z(t,e.name)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)||Z(t,e.body)},219:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.asteriskToken)||Z(t,e.name)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)||Z(t,e.body)},220:function(e,t,n){return JN(t,n,e.modifiers)||JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)||Z(t,e.equalsGreaterThanToken)||Z(t,e.body)},176:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.body)},184:function(e,t,n){return Z(t,e.typeName)||JN(t,n,e.typeArguments)},183:function(e,t,n){return Z(t,e.assertsModifier)||Z(t,e.parameterName)||Z(t,e.type)},187:function(e,t,n){return Z(t,e.exprName)||JN(t,n,e.typeArguments)},188:function(e,t,n){return JN(t,n,e.members)},189:function(e,t,n){return Z(t,e.elementType)},190:function(e,t,n){return JN(t,n,e.elements)},193:nP,194:nP,195:function(e,t,n){return Z(t,e.checkType)||Z(t,e.extendsType)||Z(t,e.trueType)||Z(t,e.falseType)},196:function(e,t,n){return Z(t,e.typeParameter)},206:function(e,t,n){return Z(t,e.argument)||Z(t,e.attributes)||Z(t,e.qualifier)||JN(t,n,e.typeArguments)},303:function(e,t,n){return Z(t,e.assertClause)},197:rP,199:rP,200:function(e,t,n){return Z(t,e.objectType)||Z(t,e.indexType)},201:function(e,t,n){return Z(t,e.readonlyToken)||Z(t,e.typeParameter)||Z(t,e.nameType)||Z(t,e.questionToken)||Z(t,e.type)||JN(t,n,e.members)},202:function(e,t,n){return Z(t,e.literal)},203:function(e,t,n){return Z(t,e.dotDotDotToken)||Z(t,e.name)||Z(t,e.questionToken)||Z(t,e.type)},207:iP,208:iP,210:function(e,t,n){return JN(t,n,e.elements)},211:function(e,t,n){return JN(t,n,e.properties)},212:function(e,t,n){return Z(t,e.expression)||Z(t,e.questionDotToken)||Z(t,e.name)},213:function(e,t,n){return Z(t,e.expression)||Z(t,e.questionDotToken)||Z(t,e.argumentExpression)},214:aP,215:aP,216:function(e,t,n){return Z(t,e.tag)||Z(t,e.questionDotToken)||JN(t,n,e.typeArguments)||Z(t,e.template)},217:function(e,t,n){return Z(t,e.type)||Z(t,e.expression)},218:function(e,t,n){return Z(t,e.expression)},221:function(e,t,n){return Z(t,e.expression)},222:function(e,t,n){return Z(t,e.expression)},223:function(e,t,n){return Z(t,e.expression)},225:function(e,t,n){return Z(t,e.operand)},230:function(e,t,n){return Z(t,e.asteriskToken)||Z(t,e.expression)},224:function(e,t,n){return Z(t,e.expression)},226:function(e,t,n){return Z(t,e.operand)},227:function(e,t,n){return Z(t,e.left)||Z(t,e.operatorToken)||Z(t,e.right)},235:function(e,t,n){return Z(t,e.expression)||Z(t,e.type)},236:function(e,t,n){return Z(t,e.expression)},239:function(e,t,n){return Z(t,e.expression)||Z(t,e.type)},237:function(e,t,n){return Z(t,e.name)},228:function(e,t,n){return Z(t,e.condition)||Z(t,e.questionToken)||Z(t,e.whenTrue)||Z(t,e.colonToken)||Z(t,e.whenFalse)},231:function(e,t,n){return Z(t,e.expression)},242:Nte,269:Nte,308:function(e,t,n){return JN(t,n,e.statements)||Z(t,e.endOfFileToken)},244:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.declarationList)},262:function(e,t,n){return JN(t,n,e.declarations)},245:function(e,t,n){return Z(t,e.expression)},246:function(e,t,n){return Z(t,e.expression)||Z(t,e.thenStatement)||Z(t,e.elseStatement)},247:function(e,t,n){return Z(t,e.statement)||Z(t,e.expression)},248:function(e,t,n){return Z(t,e.expression)||Z(t,e.statement)},249:function(e,t,n){return Z(t,e.initializer)||Z(t,e.condition)||Z(t,e.incrementor)||Z(t,e.statement)},250:function(e,t,n){return Z(t,e.initializer)||Z(t,e.expression)||Z(t,e.statement)},251:function(e,t,n){return Z(t,e.awaitModifier)||Z(t,e.initializer)||Z(t,e.expression)||Z(t,e.statement)},252:oP,253:oP,254:function(e,t,n){return Z(t,e.expression)},255:function(e,t,n){return Z(t,e.expression)||Z(t,e.statement)},256:function(e,t,n){return Z(t,e.expression)||Z(t,e.caseBlock)},270:function(e,t,n){return JN(t,n,e.clauses)},297:function(e,t,n){return Z(t,e.expression)||JN(t,n,e.statements)},298:function(e,t,n){return JN(t,n,e.statements)},257:function(e,t,n){return Z(t,e.label)||Z(t,e.statement)},258:function(e,t,n){return Z(t,e.expression)},259:function(e,t,n){return Z(t,e.tryBlock)||Z(t,e.catchClause)||Z(t,e.finallyBlock)},300:function(e,t,n){return Z(t,e.variableDeclaration)||Z(t,e.block)},171:function(e,t,n){return Z(t,e.expression)},264:Pte,232:Pte,265:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||JN(t,n,e.typeParameters)||JN(t,n,e.heritageClauses)||JN(t,n,e.members)},266:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||JN(t,n,e.typeParameters)||Z(t,e.type)},267:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||JN(t,n,e.members)},307:function(e,t,n){return Z(t,e.name)||Z(t,e.initializer)},268:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||Z(t,e.body)},272:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||Z(t,e.moduleReference)},273:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.importClause)||Z(t,e.moduleSpecifier)||Z(t,e.attributes)},274:function(e,t,n){return Z(t,e.name)||Z(t,e.namedBindings)},301:function(e,t,n){return JN(t,n,e.elements)},302:function(e,t,n){return Z(t,e.name)||Z(t,e.value)},271:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)},275:function(e,t,n){return Z(t,e.name)},281:function(e,t,n){return Z(t,e.name)},276:Fte,280:Fte,279:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.exportClause)||Z(t,e.moduleSpecifier)||Z(t,e.attributes)},277:sP,282:sP,278:function(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.expression)},229:function(e,t,n){return Z(t,e.head)||JN(t,n,e.templateSpans)},240:function(e,t,n){return Z(t,e.expression)||Z(t,e.literal)},204:function(e,t,n){return Z(t,e.head)||JN(t,n,e.templateSpans)},205:function(e,t,n){return Z(t,e.type)||Z(t,e.literal)},168:function(e,t,n){return Z(t,e.expression)},299:function(e,t,n){return JN(t,n,e.types)},234:function(e,t,n){return Z(t,e.expression)||JN(t,n,e.typeArguments)},284:function(e,t,n){return Z(t,e.expression)},283:function(e,t,n){return JN(t,n,e.modifiers)},357:function(e,t,n){return JN(t,n,e.elements)},285:function(e,t,n){return Z(t,e.openingElement)||JN(t,n,e.children)||Z(t,e.closingElement)},289:function(e,t,n){return Z(t,e.openingFragment)||JN(t,n,e.children)||Z(t,e.closingFragment)},286:Ite,287:Ite,293:function(e,t,n){return JN(t,n,e.properties)},292:function(e,t,n){return Z(t,e.name)||Z(t,e.initializer)},294:function(e,t,n){return Z(t,e.expression)},295:function(e,t,n){return Z(t,e.dotDotDotToken)||Z(t,e.expression)},288:function(e,t,n){return Z(t,e.tagName)},296:function(e,t,n){return Z(t,e.namespace)||Z(t,e.name)},191:cP,192:cP,310:cP,316:cP,315:cP,317:cP,319:cP,318:function(e,t,n){return JN(t,n,e.parameters)||Z(t,e.type)},321:function(e,t,n){return(typeof e.comment==`string`?void 0:JN(t,n,e.comment))||JN(t,n,e.tags)},348:function(e,t,n){return Z(t,e.tagName)||Z(t,e.name)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment))},311:function(e,t,n){return Z(t,e.name)},312:function(e,t,n){return Z(t,e.left)||Z(t,e.right)},342:Lte,349:Lte,331:function(e,t,n){return Z(t,e.tagName)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment))},330:function(e,t,n){return Z(t,e.tagName)||Z(t,e.class)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment))},329:function(e,t,n){return Z(t,e.tagName)||Z(t,e.class)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment))},346:function(e,t,n){return Z(t,e.tagName)||Z(t,e.constraint)||JN(t,n,e.typeParameters)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment))},347:function(e,t,n){return Z(t,e.tagName)||(e.typeExpression&&e.typeExpression.kind===310?Z(t,e.typeExpression)||Z(t,e.fullName)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment)):Z(t,e.fullName)||Z(t,e.typeExpression)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment)))},339:function(e,t,n){return Z(t,e.tagName)||Z(t,e.fullName)||Z(t,e.typeExpression)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment))},343:lP,345:lP,344:lP,341:lP,351:lP,350:lP,340:lP,324:function(e,t,n){return d(e.typeParameters,t)||d(e.parameters,t)||Z(t,e.type)},325:uP,326:uP,327:uP,323:function(e,t,n){return d(e.jsDocPropertyTags,t)},328:dP,333:dP,334:dP,335:dP,336:dP,337:dP,332:dP,338:dP,352:Rte,356:fP};function tP(e,t,n){return JN(t,n,e.typeParameters)||JN(t,n,e.parameters)||Z(t,e.type)}function nP(e,t,n){return JN(t,n,e.types)}function rP(e,t,n){return Z(t,e.type)}function iP(e,t,n){return JN(t,n,e.elements)}function aP(e,t,n){return Z(t,e.expression)||Z(t,e.questionDotToken)||JN(t,n,e.typeArguments)||JN(t,n,e.arguments)}function Nte(e,t,n){return JN(t,n,e.statements)}function oP(e,t,n){return Z(t,e.label)}function Pte(e,t,n){return JN(t,n,e.modifiers)||Z(t,e.name)||JN(t,n,e.typeParameters)||JN(t,n,e.heritageClauses)||JN(t,n,e.members)}function Fte(e,t,n){return JN(t,n,e.elements)}function sP(e,t,n){return Z(t,e.propertyName)||Z(t,e.name)}function Ite(e,t,n){return Z(t,e.tagName)||JN(t,n,e.typeArguments)||Z(t,e.attributes)}function cP(e,t,n){return Z(t,e.type)}function Lte(e,t,n){return Z(t,e.tagName)||(e.isNameFirst?Z(t,e.name)||Z(t,e.typeExpression):Z(t,e.typeExpression)||Z(t,e.name))||(typeof e.comment==`string`?void 0:JN(t,n,e.comment))}function lP(e,t,n){return Z(t,e.tagName)||Z(t,e.typeExpression)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment))}function uP(e,t,n){return Z(t,e.name)}function dP(e,t,n){return Z(t,e.tagName)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment))}function Rte(e,t,n){return Z(t,e.tagName)||Z(t,e.importClause)||Z(t,e.moduleSpecifier)||Z(t,e.attributes)||(typeof e.comment==`string`?void 0:JN(t,n,e.comment))}function fP(e,t,n){return Z(t,e.expression)}function pP(e,t,n){if(e===void 0||e.kind<=166)return;let r=eP[e.kind];return r===void 0?void 0:r(e,t,n)}function mP(e,t,n){let r=hP(e),i=[];for(;i.length=0;--t)r.push(e[t]),i.push(a)}else{let n=t(e,a);if(n){if(n===`skip`)continue;return n}if(e.kind>=167)for(let t of hP(e))r.push(t),i.push(e)}}}function hP(e){let t=[];return pP(e,n,n),t;function n(e){t.unshift(e)}}function zte(e){e.externalModuleIndicator=XN(e)}function gP(e,t,n,r=!1,i){var a,o;(a=Ar)==null||a.push(Ar.Phase.Parse,`createSourceFile`,{path:e},!0),yr(`beforeParse`);let s,{languageVersion:c,setExternalModuleIndicator:l,impliedNodeFormat:u,jsDocParsingMode:d}=typeof n==`object`?n:{languageVersion:n};if(c===100)s=SP.parseSourceFile(e,t,c,void 0,r,6,bt,d);else{let n=u===void 0?l:e=>(e.impliedNodeFormat=u,(l||zte)(e));s=SP.parseSourceFile(e,t,c,void 0,r,i,n,d)}return yr(`afterParse`),br(`Parse`,`beforeParse`,`afterParse`),(o=Ar)==null||o.pop(),s}function _P(e,t){return SP.parseIsolatedEntityName(e,t)}function vP(e,t){return SP.parseJsonText(e,t)}function yP(e){return e.externalModuleIndicator!==void 0}function bP(e,t,n,r=!1){let i=DP.updateSourceFile(e,t,n,r);return i.flags|=e.flags&12582912,i}function xP(e,t,n){let r=SP.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&SP.fixupParentReferences(r.jsDoc),r}function Bte(e,t,n){return SP.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}var SP;(e=>{var t=Gs(99,!0),n=40960,r,i,a,o,s;function u(e){return ge++,e}var d=TE(11,{createBaseSourceFileNode:e=>u(new s(e,0,0)),createBaseIdentifierNode:e=>u(new a(e,0,0)),createBasePrivateIdentifierNode:e=>u(new o(e,0,0)),createBaseTokenNode:e=>u(new i(e,0,0)),createBaseNode:e=>u(new r(e,0,0))}),{createNodeArray:f,createNumericLiteral:p,createStringLiteral:m,createLiteralLikeNode:h,createIdentifier:g,createPrivateIdentifier:_,createToken:v,createArrayLiteralExpression:y,createObjectLiteralExpression:b,createPropertyAccessExpression:S,createPropertyAccessChain:C,createElementAccessExpression:w,createElementAccessChain:T,createCallExpression:E,createCallChain:D,createNewExpression:O,createParenthesizedExpression:k,createBlock:ee,createVariableStatement:te,createExpressionStatement:ne,createIfStatement:re,createWhileStatement:ie,createForStatement:ae,createForOfStatement:A,createVariableDeclaration:j,createVariableDeclarationList:N}=d,oe,se,ce,P,le,ue,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se=!0,Ce=!1;function we(e,t,n,r,i=!1,a,o,s=0){if(a=zC(e,a),a===6){let a=De(e,t,n,r,i);return eI(a,a.statements[0]?.expression,a.parseDiagnostics,!1,void 0),a.referencedFiles=c,a.typeReferenceDirectives=c,a.libReferenceDirectives=c,a.amdDependencies=c,a.hasNoDefaultLib=!1,a.pragmas=l,a}Oe(e,t,n,r,a,s);let u=Ae(n,i,a,o||zte,s);return ke(),u}e.parseSourceFile=we;function Te(e,t){Oe(``,e,t,void 0,1,0),ht();let n=$n(!0),r=z()===1&&!fe.length;return ke(),r?n:void 0}e.parseIsolatedEntityName=Te;function De(e,t,n=2,r,i=!1){Oe(e,t,n,r,6,0),se=xe,ht();let a=R(),o,s;if(z()===1)o=Zt([],a,a),s=Kt();else{let e;for(;z()!==1;){let t;switch(z()){case 23:t=$a();break;case 112:case 97:case 106:t=Kt();break;case 41:t=kt(()=>ht()===9&&ht()!==59)?ca():to();break;case 9:case 11:if(kt(()=>ht()!==59)){t=lr();break}default:t=to();break}e&&mt(e)?e.push(t):e?e=[e,t]:(e=t,z()!==1&&ot(G.Unexpected_token))}let t=ne(mt(e)?B(y(e),a):H.checkDefined(e));B(t,a),o=Zt([t],a),s=Wt(1,G.Unexpected_token)}let c=Ie(e,2,6,!1,o,s,se,bt);i&&Fe(c),c.nodeCount=ge,c.identifierCount=ve,c.identifiers=_e,c.parseDiagnostics=_S(fe,c),pe&&(c.jsDocDiagnostics=_S(pe,c));let l=c;return ke(),l}e.parseJsonText=De;function Oe(e,n,c,l,u,d){switch(r=oS.getNodeConstructor(),i=oS.getTokenConstructor(),a=oS.getIdentifierConstructor(),o=oS.getPrivateIdentifierConstructor(),s=oS.getSourceFileConstructor(),oe=mo(e),ce=n,P=c,me=l,le=u,ue=MS(u),fe=[],ye=0,_e=new Map,ve=0,ge=0,se=0,Se=!0,le){case 1:case 2:xe=524288;break;case 6:xe=134742016;break;default:xe=0;break}Ce=!1,t.setText(ce),t.setOnError(ut),t.setScriptTarget(P),t.setLanguageVariant(ue),t.setScriptKind(le),t.setJSDocParsingMode(d)}function ke(){t.clearCommentDirectives(),t.setText(``),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),ce=void 0,P=void 0,me=void 0,le=void 0,ue=void 0,se=0,fe=void 0,pe=void 0,ye=0,_e=void 0,be=void 0,Se=!0}function Ae(e,n,r,i,a){let o=OP(oe);o&&(xe|=33554432),se=xe,ht();let s=Nn(0,Wo);H.assert(z()===1);let c=dt(),l=Me(Kt(),c),u=Ie(oe,e,r,o,s,l,se,i);return jP(u,ce),MP(u,d),u.commentDirectives=t.getCommentDirectives(),u.nodeCount=ge,u.identifierCount=ve,u.identifiers=_e,u.parseDiagnostics=_S(fe,u),u.jsDocParsingMode=a,pe&&(u.jsDocDiagnostics=_S(pe,u)),n&&Fe(u),u;function d(e,t,n){fe.push(hS(oe,ce,e,t,n))}}let je=!1;function Me(e,t){if(!t)return e;H.assert(!e.jsDoc);let n=M(Ym(e,ce),t=>Tc.parseJSDocComment(e,t.pos,t.end-t.pos));return n.length&&(e.jsDoc=n),je&&(je=!1,e.flags|=536870912),e}function Ne(e){let n=me,r=DP.createSyntaxCursor(e);me={currentNode:p};let i=[],a=fe;fe=[];let o=0,s=l(e.statements,0);for(;s!==-1;){let n=e.statements[o],r=e.statements[s];Ee(i,e.statements,o,s),o=u(e.statements,s);let c=x(a,e=>e.start>=n.pos),d=c>=0?x(a,e=>e.start>=r.pos,c):-1;c>=0&&Ee(fe,a,c,d>=0?d:void 0),Ot(()=>{let n=xe;for(xe|=65536,t.resetTokenState(r.pos),ht();z()!==1;){let n=t.getTokenFullStart(),r=Pn(0,Wo);if(i.push(r),n===t.getTokenFullStart()&&ht(),o>=0){let t=e.statements[o];if(r.end===t.pos)break;r.end>t.pos&&(o=u(e.statements,o+1))}}xe=n},2),s=o>=0?l(e.statements,o):-1}if(o>=0){let t=e.statements[o];Ee(i,e.statements,o);let n=x(a,e=>e.start>=t.pos);n>=0&&Ee(fe,a,n)}return me=n,d.updateSourceFile(e,X(f(i),e.statements));function c(e){return!(e.flags&65536)&&!!(e.transformFlags&67108864)}function l(e,t){for(let n=t;n118}function Mt(){return z()===80?!0:z()===127&&tt()||z()===135&&at()?!1:z()>118}function Nt(e,t,n=!0){return z()===e?(n&&ht(),!0):(t?ot(t):ot(G._0_expected,is(e)),!1)}let Pt=Object.keys(Vo).filter(e=>e.length>2);function Ft(e){if(Dk(e)){ct(Es(ce,e.template.pos),e.template.end,G.Module_declaration_names_may_only_use_or_quoted_strings);return}let n=Y(e)?Gc(e):void 0;if(!n||!Ws(n,P)){ot(G._0_expected,is(27));return}let r=Es(ce,e.pos);switch(n){case`const`:case`let`:case`var`:ct(r,e.end,G.Variable_declaration_not_allowed_at_this_location);return;case`declare`:return;case`interface`:It(G.Interface_name_cannot_be_0,G.Interface_must_be_given_a_name,19);return;case`is`:ct(r,t.getTokenStart(),G.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case`module`:case`namespace`:It(G.Namespace_name_cannot_be_0,G.Namespace_must_be_given_a_name,19);return;case`type`:It(G.Type_alias_name_cannot_be_0,G.Type_alias_must_be_given_a_name,64);return}let i=Qt(n,Pt,wt)??Lt(n);if(i){ct(r,e.end,G.Unknown_keyword_or_identifier_Did_you_mean_0,i);return}z()!==0&&ct(r,e.end,G.Unexpected_keyword_or_identifier)}function It(e,n,r){z()===r?ot(n):ot(e,t.getTokenValue())}function Lt(e){for(let t of Pt)if(e.length>t.length+2&&pn(e,t))return`${t} ${e.slice(t.length)}`}function Rt(e,n,r){if(z()===60&&!t.hasPrecedingLineBreak()){ot(G.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(z()===21){ot(G.Cannot_start_a_function_call_in_a_type_annotation),ht();return}if(n&&!Jt()){r?ot(G._0_expected,is(27)):ot(G.Expected_for_property_initializer);return}if(!Yt()){if(r){ot(G._0_expected,is(27));return}Ft(e)}}function zt(e){return z()===e?(gt(),!0):(H.assert(tv(e)),ot(G._0_expected,is(e)),!1)}function Bt(e,t,n,r){if(z()===t){ht();return}let i=ot(G._0_expected,is(t));n&&i&&Dw(i,hS(oe,ce,r,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,is(e),is(t)))}function Vt(e){return z()===e?(ht(),!0):!1}function Ht(e){if(z()===e)return Kt()}function Ut(e){if(z()===e)return qt()}function Wt(e,t,n){return Ht(e)||$t(e,!1,t||G._0_expected,n||is(e))}function Gt(e){return Ut(e)||(H.assert(tv(e)),$t(e,!1,G._0_expected,is(e)))}function Kt(){let e=R(),t=z();return ht(),B(v(t),e)}function qt(){let e=R(),t=z();return gt(),B(v(t),e)}function Jt(){return z()===27?!0:z()===20||z()===1||t.hasPrecedingLineBreak()}function Yt(){return Jt()?(z()===27&&ht(),!0):!1}function Xt(){return Yt()||Nt(27)}function Zt(e,n,r,i){let a=f(e,i);return Jw(a,n,r??t.getTokenFullStart()),a}function B(e,n,r){return Jw(e,n,r??t.getTokenFullStart()),xe&&(e.flags|=xe),Ce&&(Ce=!1,e.flags|=262144),e}function $t(e,n,r,...i){n?st(t.getTokenFullStart(),0,r,...i):r&&ot(r,...i);let a=R();return B(e===80?g(``,void 0):lu(e)?d.createTemplateLiteralLikeNode(e,``,``,void 0):e===9?p(``,void 0):e===11?m(``,void 0):e===283?d.createMissingDeclaration():v(e),a)}function en(e){let t=_e.get(e);return t===void 0&&_e.set(e,t=e),t}function tn(e,n,r){if(e){ve++;let e=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():R(),n=z(),r=en(t.getTokenValue()),i=t.hasExtendedUnicodeEscape();return ft(),B(g(r,n,i),e)}if(z()===81)return ot(r||G.Private_identifiers_are_not_allowed_outside_class_bodies),tn(!0);if(z()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return tn(!0);ve++;let i=z()===1,a=t.isReservedWord(),o=t.getTokenText(),s=a?G.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:G.Identifier_expected;return $t(80,i,n||s,o)}function nn(e){return tn(jt(),void 0,e)}function rn(e,t){return tn(Mt(),e,t)}function an(e){return tn(zo(z()),e)}function on(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&ot(G.Unicode_escape_sequence_cannot_appear_here),tn(zo(z()))}function sn(){return zo(z())||z()===11||z()===9||z()===10}function cn(){return zo(z())||z()===11}function ln(e){if(z()===11||z()===9||z()===10){let e=lr();return e.text=en(e.text),e}return z()===23?dn():z()===81?fn():an()}function un(){return ln()}function dn(){let e=R();Nt(23);let t=L(zi);return Nt(24),B(d.createComputedPropertyName(t),e)}function fn(){let e=R(),n=_(en(t.getTokenValue()));return ht(),B(n,e)}function mn(e){return z()===e&&At(gn)}function hn(){return ht(),t.hasPrecedingLineBreak()?!1:bn()}function gn(){switch(z()){case 87:return ht()===94;case 95:return ht(),z()===90?kt(V):z()===156?kt(vn):_n();case 90:return V();case 126:return ht(),bn();case 139:case 153:return ht(),xn();default:return hn()}}function _n(){return z()===60||z()!==42&&z()!==130&&z()!==19&&bn()}function vn(){return ht(),_n()}function yn(){return wu(z())&&At(gn)}function bn(){return z()===23||z()===19||z()===42||z()===26||sn()}function xn(){return z()===23||sn()}function V(){return ht(),z()===86||z()===100||z()===120||z()===60||z()===128&&kt(Oo)||z()===134&&kt(ko)}function Sn(e,t){if(Fn(e))return!0;switch(e){case 0:case 1:case 3:return!(z()===27&&t)&&No();case 2:return z()===84||z()===90;case 4:return kt(Gr);case 5:return kt(vs)||z()===27&&!t;case 6:return z()===23||sn();case 12:switch(z()){case 23:case 42:case 26:case 25:return!0;default:return sn()}case 18:return sn();case 9:return z()===23||z()===26||sn();case 24:return cn();case 7:return z()===19?kt(Cn):t?Mt()&&!Dn():Ii()&&!Dn();case 8:return rs();case 10:return z()===28||z()===26||rs();case 19:return z()===103||z()===87||Mt();case 15:switch(z()){case 28:case 25:return!0}case 11:return z()===26||Li();case 16:return kr(!1);case 17:return kr(!0);case 20:case 21:return z()===28||hi();case 22:return Rs();case 23:return z()===161&&kt(Yo)?!1:z()===11?!0:zo(z());case 13:return zo(z())||z()===19;case 14:return!0;case 25:return!0;case 26:return H.fail(`ParsingContext.Count used as a context`);default:H.assertNever(e,`Non-exhaustive case in 'isListElement'.`)}}function Cn(){if(H.assert(z()===19),ht()===20){let e=ht();return e===28||e===19||e===96||e===119}return!0}function wn(){return ht(),Mt()}function Tn(){return ht(),zo(z())}function En(){return ht(),Bo(z())}function Dn(){return z()===119||z()===96?kt(On):!1}function On(){return ht(),Li()}function kn(){return ht(),hi()}function An(e){if(z()===1)return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return z()===20;case 3:return z()===20||z()===84||z()===90;case 7:return z()===19||z()===96||z()===119;case 8:return jn();case 19:return z()===32||z()===21||z()===19||z()===96||z()===119;case 11:return z()===22||z()===27;case 15:case 21:case 10:return z()===24;case 17:case 16:case 18:return z()===22||z()===24;case 20:return z()!==28;case 22:return z()===19||z()===20;case 13:return z()===32||z()===44;case 14:return z()===30&&kt($s);default:return!1}}function jn(){return!!(Jt()||na(z())||z()===39)}function Mn(){H.assert(ye,`Missing parsing context`);for(let e=0;e<26;e++)if(ye&1<=0)}function Yn(e){return e===6?G.An_enum_member_name_must_be_followed_by_a_or:void 0}function Xn(){let e=Zt([],R());return e.isMissingList=!0,e}function Zn(e){return!!e.isMissingList}function Qn(e,t,n,r){if(Nt(n)){let n=Jn(e,t);return Nt(r),n}return Xn()}function $n(e,t){let n=R(),r=e?an(t):rn(t);for(;Vt(25)&&z()!==30;)r=B(d.createQualifiedName(r,tr(e,!1,!0)),n);return r}function er(e,t){return B(d.createQualifiedName(e,t),e.pos)}function tr(e,n,r){if(t.hasPrecedingLineBreak()&&zo(z())&&kt(Do))return $t(80,!0,G.Identifier_expected);if(z()===81){let e=fn();return n?e:$t(80,!0,G.Identifier_expected)}return e?r?an():on():rn()}function nr(e){let t=R(),n=[],r;do r=cr(e),n.push(r);while(r.literal.kind===17);return Zt(n,t)}function rr(e){let t=R();return B(d.createTemplateExpression(ur(e),nr(e)),t)}function ir(){let e=R();return B(d.createTemplateLiteralType(ur(!1),ar()),e)}function ar(){let e=R(),t=[],n;do n=or(),t.push(n);while(n.literal.kind===17);return Zt(t,e)}function or(){let e=R();return B(d.createTemplateLiteralTypeSpan(Pi(),sr(!1)),e)}function sr(e){return z()===20?(xt(e),dr()):Wt(18,G._0_expected,is(20))}function cr(e){let t=R();return B(d.createTemplateSpan(L(zi),sr(e)),t)}function lr(){return pr(z())}function ur(e){!e&&t.getTokenFlags()&26656&&xt(!1);let n=pr(z());return H.assert(n.kind===16,`Template head has wrong token kind`),n}function dr(){let e=pr(z());return H.assert(e.kind===17||e.kind===18,`Template fragment has wrong token kind`),e}function fr(e){let n=e===15||e===18,r=t.getTokenText();return r.substring(1,r.length-(t.isUnterminated()?0:n?1:2))}function pr(e){let n=R(),r=lu(e)?d.createTemplateLiteralLikeNode(e,t.getTokenValue(),fr(e),t.getTokenFlags()&7176):e===9?p(t.getTokenValue(),t.getNumericLiteralFlags()):e===11?m(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):ou(e)?h(e,t.getTokenValue()):H.fail();return t.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(r.isUnterminated=!0),ht(),B(r,n)}function mr(){return $n(!0,G.Type_expected)}function hr(){if(!t.hasPrecedingLineBreak()&&St()===30)return Qn(20,Pi,30,32)}function gr(){let e=R();return B(d.createTypeReferenceNode(mr(),hr()),e)}function _r(e){switch(e.kind){case 184:return rp(e.typeName);case 185:case 186:{let{parameters:t,type:n}=e;return Zn(t)||_r(n)}case 197:return _r(e.type);default:return!1}}function vr(e){return ht(),B(d.createTypePredicateNode(void 0,e,Pi()),e.pos)}function yr(){let e=R();return ht(),B(d.createThisTypeNode(),e)}function br(){let e=R();return ht(),B(d.createJSDocAllType(),e)}function xr(){let e=R();return ht(),B(d.createJSDocNonNullableType(mi(),!1),e)}function Sr(){let e=R();return ht(),z()===28||z()===20||z()===22||z()===32||z()===64||z()===52?B(d.createJSDocUnknownType(),e):B(d.createJSDocNullableType(Pi(),!1),e)}function Cr(){let e=R(),t=dt();if(At(Zs)){let n=Rr(36),r=Fr(59,!1);return Me(B(d.createJSDocFunctionType(n,r),e),t)}return B(d.createTypeReferenceNode(an(),void 0),e)}function wr(){let e=R(),t;return(z()===110||z()===105)&&(t=an(),Nt(59)),B(d.createParameterDeclaration(void 0,void 0,t,void 0,Tr(),void 0),e)}function Tr(){t.setSkipJsDocLeadingAsterisks(!0);let e=R();if(Vt(144)){let n=d.createJSDocNamepathType(void 0);terminate:for(;;)switch(z()){case 20:case 1:case 28:case 5:break terminate;default:gt()}return t.setSkipJsDocLeadingAsterisks(!1),B(n,e)}let n=Vt(26),r=ji();return t.setSkipJsDocLeadingAsterisks(!1),n&&(r=B(d.createJSDocVariadicType(r),e)),z()===64?(ht(),B(d.createJSDocOptionalType(r),e)):r}function Er(){let e=R();Nt(114);let n=$n(!0),r=t.hasPrecedingLineBreak()?void 0:Ls();return B(d.createTypeQueryNode(n,r),e)}function Dr(){let e=R(),t=ws(!1,!0),n=rn(),r,i;Vt(96)&&(hi()||!Li()?r=Pi():i=ma());let a=Vt(64)?Pi():void 0,o=d.createTypeParameterDeclaration(t,n,r,a);return o.expression=i,B(o,e)}function Or(){if(z()===30)return Qn(19,Dr,30,32)}function kr(e){return z()===26||rs()||wu(z())||z()===60||hi(!e)}function Ar(e){let t=as(G.Private_identifiers_cannot_be_used_as_parameters);return If(t)===0&&!F(e)&&wu(z())&&ht(),t}function jr(){return jt()||z()===23||z()===19}function Mr(e){return Pr(e)}function Nr(e){return Pr(e,!1)}function Pr(e,t=!0){let n=R(),r=dt(),i=e?Xe(()=>ws(!0)):Ze(()=>ws(!0));if(z()===110){let e=d.createParameterDeclaration(i,void 0,tn(!0),void 0,Fi(),void 0),t=Pe(i);return t&<(t,G.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Me(B(e,n),r)}let a=Se;Se=!1;let o=Ht(26);if(!t&&!jr())return;let s=Me(B(d.createParameterDeclaration(i,o,Ar(i),Ht(58),Fi(),Bi()),n),r);return Se=a,s}function Fr(e,t){if(Ir(e,t))return Ke(ji)}function Ir(e,t){return e===39?(Nt(e),!0):Vt(59)?!0:t&&z()===39?(ot(G._0_expected,is(59)),ht(),!0):!1}function Lr(e,t){let n=tt(),r=at();Be(!!(e&1)),He(!!(e&2));let i=e&32?Jn(17,wr):Jn(16,()=>t?Mr(r):Nr(r));return Be(n),He(r),i}function Rr(e){if(!Nt(21))return Xn();let t=Lr(e,!0);return Nt(22),t}function zr(){Vt(28)||Xt()}function Br(e){let t=R(),n=dt();e===181&&Nt(105);let r=Or(),i=Rr(4),a=Fr(59,!0);return zr(),Me(B(e===180?d.createCallSignature(r,i,a):d.createConstructSignature(r,i,a),t),n)}function Vr(){return z()===23&&kt(Hr)}function Hr(){if(ht(),z()===26||z()===24)return!0;if(wu(z())){if(ht(),Mt())return!0}else if(Mt())ht();else return!1;return z()===59||z()===28?!0:z()===58?(ht(),z()===59||z()===28||z()===24):!1}function Ur(e,t,n){let r=Qn(16,()=>Mr(!1),23,24),i=Fi();return zr(),Me(B(d.createIndexSignature(n,r,i),e),t)}function Wr(e,t,n){let r=un(),i=Ht(58),a;if(z()===21||z()===30){let e=Or(),t=Rr(4),o=Fr(59,!0);a=d.createMethodSignature(n,r,i,e,t,o)}else{let e=Fi();a=d.createPropertySignature(n,r,i,e),z()===64&&(a.initializer=Bi())}return zr(),Me(B(a,e),t)}function Gr(){if(z()===21||z()===30||z()===139||z()===153)return!0;let e=!1;for(;wu(z());)e=!0,ht();return z()===23?!0:(sn()&&(e=!0,ht()),e?z()===21||z()===30||z()===58||z()===59||z()===28||Jt():!1)}function Kr(){if(z()===21||z()===30)return Br(180);if(z()===105&&kt(qr))return Br(181);let e=R(),t=dt(),n=ws(!1);return mn(139)?_s(e,t,n,178,4):mn(153)?_s(e,t,n,179,4):Vr()?Ur(e,t,n):Wr(e,t,n)}function qr(){return ht(),z()===21||z()===30}function Jr(){return ht()===25}function Yr(){switch(ht()){case 21:case 30:case 25:return!0}return!1}function Xr(){let e=R();return B(d.createTypeLiteralNode(Zr()),e)}function Zr(){let e;return Nt(19)?(e=Nn(4,Kr),Nt(20)):e=Xn(),e}function Qr(){return ht(),z()===40||z()===41?ht()===148:(z()===148&&ht(),z()===23&&wn()&&ht()===103)}function $r(){let e=R(),t=an();Nt(103);let n=Pi();return B(d.createTypeParameterDeclaration(void 0,t,n,void 0),e)}function ei(){let e=R();Nt(19);let t;(z()===148||z()===40||z()===41)&&(t=Kt(),t.kind!==148&&Nt(148)),Nt(23);let n=$r(),r=Vt(130)?Pi():void 0;Nt(24);let i;(z()===58||z()===40||z()===41)&&(i=Kt(),i.kind!==58&&Nt(58));let a=Fi();Xt();let o=Nn(4,Kr);return Nt(20),B(d.createMappedTypeNode(t,n,r,i,a,o),e)}function ti(){let e=R();if(Vt(26))return B(d.createRestTypeNode(Pi()),e);let t=Pi();if(Dj(t)&&t.pos===t.type.pos){let e=d.createOptionalTypeNode(t.type);return X(e,t),e.flags=t.flags,e}return t}function ni(){return ht()===59||z()===58&&ht()===59}function ri(){return z()===26?zo(ht())&&ni():zo(z())&&ni()}function ii(){if(kt(ri)){let e=R(),t=dt(),n=Ht(26),r=an(),i=Ht(58);Nt(59);let a=ti();return Me(B(d.createNamedTupleMember(n,r,i,a),e),t)}return ti()}function ai(){let e=R();return B(d.createTupleTypeNode(Qn(21,ii,23,24)),e)}function oi(){let e=R();Nt(21);let t=Pi();return Nt(22),B(d.createParenthesizedType(t),e)}function si(){let e;if(z()===128){let t=R();ht(),e=Zt([B(v(128),t)],t)}return e}function ci(){let e=R(),t=dt(),n=si(),r=Vt(105);H.assert(!n||r,`Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.`);let i=Or(),a=Rr(4),o=Fr(39,!1);return Me(B(r?d.createConstructorTypeNode(n,i,a,o):d.createFunctionTypeNode(i,a,o),e),t)}function li(){let e=Kt();return z()===25?void 0:e}function ui(e){let t=R();e&&ht();let n=z()===112||z()===97||z()===106?Kt():pr(z());return e&&(n=B(d.createPrefixUnaryExpression(41,n),t)),B(d.createLiteralTypeNode(n),t)}function di(){return ht(),z()===102}function fi(){se|=4194304;let e=R(),n=Vt(114);Nt(102),Nt(21);let r=Pi(),i;if(Vt(28)){let e=t.getTokenStart();Nt(19);let n=z();if(n===118||n===132?ht():ot(G._0_expected,is(118)),Nt(59),i=ac(n,!0),Vt(28),!Nt(20)){let t=Re(fe);t&&t.code===G._0_expected.code&&Dw(t,hS(oe,ce,e,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,`{`,`}`))}}Nt(22);let a=Vt(25)?mr():void 0,o=hr();return B(d.createImportTypeNode(r,i,a,o,n),e)}function pi(){return ht(),z()===9||z()===10}function mi(){switch(z()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return At(li)||gr();case 67:t.reScanAsteriskEqualsToken();case 42:return br();case 61:t.reScanQuestionToken();case 58:return Sr();case 100:return Cr();case 54:return xr();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return ui();case 41:return kt(pi)?ui(!0):gr();case 116:return Kt();case 110:{let e=yr();return z()===142&&!t.hasPrecedingLineBreak()?vr(e):e}case 114:return kt(di)?fi():Er();case 19:return kt(Qr)?ei():Xr();case 23:return ai();case 21:return oi();case 102:return fi();case 131:return kt(Do)?Ni():gr();case 16:return ir();default:return gr()}}function hi(e){switch(z()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!e;case 41:return!e&&kt(pi);case 21:return!e&&kt(gi);default:return Mt()}}function gi(){return ht(),z()===22||kr(!1)||hi()}function _i(){let e=R(),n=mi();for(;!t.hasPrecedingLineBreak();)switch(z()){case 54:ht(),n=B(d.createJSDocNonNullableType(n,!0),e);break;case 58:if(kt(kn))return n;ht(),n=B(d.createJSDocNullableType(n,!0),e);break;case 23:if(Nt(23),hi()){let t=Pi();Nt(24),n=B(d.createIndexedAccessTypeNode(n,t),e)}else Nt(24),n=B(d.createArrayTypeNode(n),e);break;default:return n}return n}function vi(e){let t=R();return Nt(e),B(d.createTypeOperatorNode(e,Si()),t)}function yi(){if(Vt(96)){let e=qe(Pi);if(rt()||z()!==58)return e}}function bi(){let e=R(),t=rn(),n=At(yi);return B(d.createTypeParameterDeclaration(void 0,t,n),e)}function xi(){let e=R();return Nt(140),B(d.createInferTypeNode(bi()),e)}function Si(){let e=z();switch(e){case 143:case 158:case 148:return vi(e);case 140:return xi()}return Ke(_i)}function Ci(e){if(Oi()){let t=ci(),n;return n=XO(t)?e?G.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:G.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?G.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:G.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,lt(t,n),t}}function wi(e,t,n){let r=R(),i=e===52,a=Vt(e),o=a&&Ci(i)||t();if(z()===e||a){let a=[o];for(;Vt(e);)a.push(Ci(i)||t());o=B(n(Zt(a,r)),r)}return o}function Ti(){return wi(51,Si,d.createIntersectionTypeNode)}function Ei(){return wi(52,Ti,d.createUnionTypeNode)}function Di(){return ht(),z()===105}function Oi(){return z()===30||z()===21&&kt(Ai)?!0:z()===105||z()===128&&kt(Di)}function ki(){if(wu(z())&&ws(!1),Mt()||z()===110)return ht(),!0;if(z()===23||z()===19){let e=fe.length;return as(),e===fe.length}return!1}function Ai(){return ht(),!!(z()===22||z()===26||ki()&&(z()===59||z()===28||z()===58||z()===64||z()===22&&(ht(),z()===39)))}function ji(){let e=R(),t=Mt()&&At(Mi),n=Pi();return t?B(d.createTypePredicateNode(void 0,t,n),e):n}function Mi(){let e=rn();if(z()===142&&!t.hasPrecedingLineBreak())return ht(),e}function Ni(){let e=R(),t=Wt(131),n=z()===110?yr():rn(),r=Vt(142)?Pi():void 0;return B(d.createTypePredicateNode(t,n,r),e)}function Pi(){if(xe&81920)return Ue(81920,Pi);if(Oi())return ci();let e=R(),n=Ei();if(!rt()&&!t.hasPrecedingLineBreak()&&Vt(96)){let t=qe(Pi);Nt(58);let r=Ke(Pi);Nt(59);let i=Ke(Pi);return B(d.createConditionalTypeNode(n,t,r,i),e)}return n}function Fi(){return Vt(59)?Pi():void 0}function Ii(){switch(z()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return kt(Yr);default:return Mt()}}function Li(){if(Ii())return!0;switch(z()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return ia()?!0:Mt()}}function Ri(){return z()!==19&&z()!==100&&z()!==86&&z()!==60&&Li()}function zi(){let e=it();e&&Ve(!1);let t=R(),n=Vi(!0),r;for(;r=Ht(28);)n=oa(n,r,Vi(!0),t);return e&&Ve(!0),n}function Bi(){return Vt(64)?Vi(!0):void 0}function Vi(e){if(Hi())return Wi();let t=Ki(e)||Xi(e);if(t)return t;let n=R(),r=dt(),i=ta(0);return i.kind===80&&z()===39?Gi(n,i,e,r,void 0):fd(i)&&Eb(vt())?oa(i,Kt(),Vi(e),n):ea(i,n,e)}function Hi(){return z()===127?tt()?!0:kt(Ao):!1}function Ui(){return ht(),!t.hasPrecedingLineBreak()&&Mt()}function Wi(){let e=R();return ht(),!t.hasPrecedingLineBreak()&&(z()===42||Li())?B(d.createYieldExpression(Ht(42),Vi(!0)),e):B(d.createYieldExpression(void 0,void 0),e)}function Gi(e,t,n,r,i){H.assert(z()===39,`parseSimpleArrowFunctionExpression should only have been called if we had a =>`);let a=d.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);B(a,t.pos);let o=Zt([a],a.pos,a.end),s=Wt(39),c=$i(!!i,n);return Me(B(d.createArrowFunction(i,void 0,o,void 0,s,c),e),r)}function Ki(e){let t=qi();if(t!==0)return t===1?Qi(!0,!0):At(()=>Yi(e))}function qi(){return z()===21||z()===30||z()===134?kt(Ji):z()===39?1:0}function Ji(){if(z()===134&&(ht(),t.hasPrecedingLineBreak()||z()!==21&&z()!==30))return 0;let e=z(),n=ht();if(e===21){if(n===22)switch(ht()){case 39:case 59:case 19:return 1;default:return 0}if(n===23||n===19)return 2;if(n===26)return 1;if(wu(n)&&n!==134&&kt(wn))return ht()===130?0:1;if(!Mt()&&n!==110)return 0;switch(ht()){case 59:return 1;case 58:return ht(),z()===59||z()===28||z()===64||z()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return H.assert(e===30),!Mt()&&z()!==87?0:ue===1?kt(()=>{Vt(87);let e=ht();if(e===96)switch(ht()){case 64:case 32:case 44:return!1;default:return!0}else if(e===28||e===64)return!0;return!1})?1:0:2}function Yi(e){let n=t.getTokenStart();if(be?.has(n))return;let r=Qi(!1,e);return r||(be||=new Set).add(n),r}function Xi(e){if(z()===134&&kt(Zi)===1){let t=R(),n=dt(),r=Ts();return Gi(t,ta(0),e,n,r)}}function Zi(){if(z()===134){if(ht(),t.hasPrecedingLineBreak()||z()===39)return 0;let e=ta(0);if(!t.hasPrecedingLineBreak()&&e.kind===80&&z()===39)return 1}return 0}function Qi(e,t){let n=R(),r=dt(),i=Ts(),a=F(i,xO)?2:0,o=Or(),s;if(Nt(21)){if(e)s=Lr(a,e);else{let t=Lr(a,e);if(!t)return;s=t}if(!Nt(22)&&!e)return}else{if(!e)return;s=Xn()}let c=z()===59,l=Fr(59,!1);if(l&&!e&&_r(l))return;let u=l;for(;u?.kind===197;)u=u.type;let f=u&&Aj(u);if(!e&&z()!==39&&(f||z()!==19))return;let p=z(),m=Wt(39),h=p===39||p===19?$i(F(i,xO),t):rn();if(!(!t&&c&&z()!==59))return Me(B(d.createArrowFunction(i,o,s,l,m,h),n),r)}function $i(e,t){if(z()===19)return oo(e?2:0);if(z()!==27&&z()!==100&&z()!==86&&No()&&!Ri())return oo(16|(e?2:0));let n=tt();Be(!1);let r=Se;Se=!1;let i=e?Xe(()=>Vi(t)):Ze(()=>Vi(t));return Se=r,Be(n),i}function ea(e,t,r){let i=Ht(58);if(!i)return e;let a;return B(d.createConditionalExpression(e,i,Ue(n,()=>Vi(!1)),a=Wt(59),ip(a)?Vi(r):$t(80,!1,G._0_expected,is(59))),t)}function ta(e){let t=R();return ra(e,ma(),t)}function na(e){return e===103||e===165}function ra(e,n,r){for(;;){vt();let i=Lv(z());if(!(z()===43?i>=e:i>e)||z()===103&&nt())break;if(z()===130||z()===152){if(t.hasPrecedingLineBreak())break;{let e=z();ht(),n=e===152?aa(n,Pi()):sa(n,Pi())}}else n=oa(n,Kt(),ta(i),r)}return n}function ia(){return nt()&&z()===103?!1:Lv(z())>0}function aa(e,t){return B(d.createSatisfiesExpression(e,t),e.pos)}function oa(e,t,n,r){return B(d.createBinaryExpression(e,t,n),r)}function sa(e,t){return B(d.createAsExpression(e,t),e.pos)}function ca(){let e=R();return B(d.createPrefixUnaryExpression(z(),pt(ha)),e)}function la(){let e=R();return B(d.createDeleteExpression(pt(ha)),e)}function ua(){let e=R();return B(d.createTypeOfExpression(pt(ha)),e)}function da(){let e=R();return B(d.createVoidExpression(pt(ha)),e)}function fa(){return z()===135?at()?!0:kt(Ao):!1}function pa(){let e=R();return B(d.createAwaitExpression(pt(ha)),e)}function ma(){if(ga()){let e=R(),t=_a();return z()===43?ra(Lv(z()),t,e):t}let e=z(),t=ha();if(z()===43){let n=Es(ce,t.pos),{end:r}=t;t.kind===217?ct(n,r,G.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(H.assert(tv(e)),ct(n,r,G.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,is(e)))}return t}function ha(){switch(z()){case 40:case 41:case 55:case 54:return ca();case 91:return la();case 114:return ua();case 116:return da();case 30:return ue===1?xa(!0,void 0,void 0,!0):Ia();case 135:if(fa())return pa();default:return _a()}}function ga(){switch(z()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ue!==1)return!1;default:return!0}}function _a(){if(z()===46||z()===47){let e=R();return B(d.createPrefixUnaryExpression(z(),pt(va)),e)}else if(ue===1&&z()===30&&kt(En))return xa(!0);let e=va();if(H.assert(fd(e)),(z()===46||z()===47)&&!t.hasPrecedingLineBreak()){let t=z();return ht(),B(d.createPostfixUnaryExpression(e,t),e.pos)}return e}function va(){let e=R(),t;return z()===102?kt(qr)?(se|=4194304,t=Kt()):kt(Jr)?(ht(),ht(),t=B(d.createMetaProperty(102,an()),e),t.name.escapedText===`defer`?(z()===21||z()===30)&&(se|=4194304):se|=8388608):t=ya():t=z()===108?ba():ya(),Ga(e,t)}function ya(){return Ha(R(),Ya(),!0)}function ba(){let e=R(),t=Kt();if(z()===30){let e=R(),n=At(qa);n!==void 0&&(ct(e,R(),G.super_may_not_use_type_arguments),Ua()||(t=d.createExpressionWithTypeArguments(t,n)))}return z()===21||z()===25||z()===23?t:(Wt(25,G.super_must_be_followed_by_an_argument_list_or_member_access),B(S(t,tr(!0,!0,!0)),e))}function xa(e,t,n,r=!1){let i=R(),a=Ea(e),o;if(a.kind===287){let t=wa(a),r,s=t[t.length-1];if(s?.kind===285&&!zP(s.openingElement.tagName,s.closingElement.tagName)&&zP(a.tagName,s.closingElement.tagName)){let e=s.children.end,n=B(d.createJsxElement(s.openingElement,s.children,B(d.createJsxClosingElement(B(g(``),e,e)),e,e)),s.openingElement.pos,e);t=Zt([...t.slice(0,t.length-1),n],t.pos,e),r=s.closingElement}else r=Pa(a,e),zP(a.tagName,r.tagName)||(n&&ej(n)&&zP(r.tagName,n.tagName)?lt(a.tagName,G.JSX_element_0_has_no_corresponding_closing_tag,Tp(ce,a.tagName)):lt(r.tagName,G.Expected_corresponding_JSX_closing_tag_for_0,Tp(ce,a.tagName)));o=B(d.createJsxElement(a,t,r),i)}else a.kind===290?o=B(d.createJsxFragment(a,wa(a),Fa(e)),i):(H.assert(a.kind===286),o=a);if(!r&&e&&z()===30){let e=t===void 0?o.pos:t,n=At(()=>xa(!0,e));if(n){let t=$t(28,!1);return Yw(t,n.pos,0),ct(Es(ce,e),n.end,G.JSX_expressions_must_have_one_parent_element),B(d.createBinaryExpression(o,t,n),i)}}return o}function Sa(){let e=R(),n=d.createJsxText(t.getTokenValue(),he===13);return he=t.scanJsxToken(),B(n,e)}function Ca(e,t){switch(t){case 1:if(rj(e))lt(e,G.JSX_fragment_has_no_corresponding_closing_tag);else{let t=e.tagName;ct(Math.min(Es(ce,t.pos),t.end),t.end,G.JSX_element_0_has_no_corresponding_closing_tag,Tp(ce,e.tagName))}return;case 31:case 7:return;case 12:case 13:return Sa();case 19:return ka(!1);case 30:return xa(!1,void 0,e);default:return H.assertNever(t)}}function wa(e){let n=[],r=R(),i=ye;for(ye|=16384;;){let r=Ca(e,he=t.reScanJsxToken());if(!r||(n.push(r),ej(e)&&r?.kind===285&&!zP(r.openingElement.tagName,r.closingElement.tagName)&&zP(e.tagName,r.closingElement.tagName)))break}return ye=i,Zt(n,r)}function Ta(){let e=R();return B(d.createJsxAttributes(Nn(13,Aa)),e)}function Ea(e){let t=R();if(Nt(30),z()===32)return Et(),B(d.createJsxOpeningFragment(),t);let n=Da(),r=xe&524288?void 0:Ls(),i=Ta(),a;return z()===32?(Et(),a=d.createJsxOpeningElement(n,r,i)):(Nt(44),Nt(32,void 0,!1)&&(e?ht():Et()),a=d.createJsxSelfClosingElement(n,r,i)),B(a,t)}function Da(){let e=R(),t=Oa();if(lj(t))return t;let n=t;for(;Vt(25);)n=B(S(n,tr(!0,!1,!1)),e);return n}function Oa(){let e=R();Tt();let t=z()===110,n=on();return Vt(59)?(Tt(),B(d.createJsxNamespacedName(n,on()),e)):t?B(d.createToken(110),e):n}function ka(e){let t=R();if(!Nt(19))return;let n,r;return z()!==20&&(e||(n=Ht(26)),r=zi()),e?Nt(20):Nt(20,void 0,!1)&&Et(),B(d.createJsxExpression(n,r),t)}function Aa(){if(z()===19)return Na();let e=R();return B(d.createJsxAttribute(Ma(),ja()),e)}function ja(){if(z()===64){if(Dt()===11)return lr();if(z()===19)return ka(!0);if(z()===30)return xa(!0);ot(G.or_JSX_element_expected)}}function Ma(){let e=R();Tt();let t=on();return Vt(59)?(Tt(),B(d.createJsxNamespacedName(t,on()),e)):t}function Na(){let e=R();Nt(19),Nt(26);let t=zi();return Nt(20),B(d.createJsxSpreadAttribute(t),e)}function Pa(e,t){let n=R();Nt(31);let r=Da();return Nt(32,void 0,!1)&&(t||!zP(e.tagName,r)?ht():Et()),B(d.createJsxClosingElement(r),n)}function Fa(e){let t=R();return Nt(31),Nt(32,G.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?ht():Et()),B(d.createJsxJsxClosingFragment(),t)}function Ia(){H.assert(ue!==1,`Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.`);let e=R();Nt(30);let t=Pi();Nt(32);let n=ha();return B(d.createTypeAssertion(t,n),e)}function La(){return ht(),zo(z())||z()===23||Ua()}function Ra(){return z()===29&&kt(La)}function za(e){if(e.flags&64)return!0;if(Jk(e)){let t=e.expression;for(;Jk(t)&&!(t.flags&64);)t=t.expression;if(t.flags&64){for(;Jk(e);)e.flags|=64,e=e.expression;return!0}}return!1}function Ba(e,t,n){let r=tr(!0,!0,!0),i=n||za(t),a=i?C(t,n,r):S(t,r);return i&&vO(a.name)&<(a.name,G.An_optional_chain_cannot_contain_private_identifiers),Gk(t)&&t.typeArguments&&ct(t.typeArguments.pos-1,Es(ce,t.typeArguments.end)+1,G.An_instantiation_expression_cannot_be_followed_by_a_property_access),B(a,e)}function Va(e,t,n){let r;if(z()===24)r=$t(80,!0,G.An_element_access_expression_should_take_an_argument);else{let e=L(zi);uv(e)&&(e.text=en(e.text)),r=e}return Nt(24),B(n||za(t)?T(t,n,r):w(t,r),e)}function Ha(e,n,r){for(;;){let i,a=!1;if(r&&Ra()?(i=Wt(29),a=zo(z())):a=Vt(25),a){n=Ba(e,n,i);continue}if((i||!it())&&Vt(23)){n=Va(e,n,i);continue}if(Ua()){n=!i&&n.kind===234?Wa(e,n.expression,i,n.typeArguments):Wa(e,n,i,void 0);continue}if(!i){if(z()===54&&!t.hasPrecedingLineBreak()){ht(),n=B(d.createNonNullExpression(n),e);continue}let r=At(qa);if(r){n=B(d.createExpressionWithTypeArguments(n,r),e);continue}}return n}}function Ua(){return z()===15||z()===16}function Wa(e,t,n,r){let i=d.createTaggedTemplateExpression(t,r,z()===15?(xt(!0),lr()):rr(!0));return(n||t.flags&64)&&(i.flags|=64),i.questionDotToken=n,B(i,e)}function Ga(e,t){for(;;){t=Ha(e,t,!0);let n,r=Ht(29);if(r&&(n=At(qa),Ua())){t=Wa(e,t,r,n);continue}if(n||z()===21){!r&&t.kind===234&&(n=t.typeArguments,t=t.expression);let i=Ka();t=B(r||za(t)?D(t,r,n,i):E(t,n,i),e);continue}if(r){let n=$t(80,!1,G.Identifier_expected);t=B(C(t,r,n),e)}break}return t}function Ka(){Nt(21);let e=Jn(11,Qa);return Nt(22),e}function qa(){if(xe&524288||St()!==30)return;ht();let e=Jn(20,Pi);if(vt()===32)return ht(),e&&Ja()?e:void 0}function Ja(){switch(z()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||ia()||!Li()}function Ya(){switch(z()){case 15:t.getTokenFlags()&26656&&xt(!1);case 9:case 10:case 11:return lr();case 110:case 108:case 106:case 112:case 97:return Kt();case 21:return Xa();case 23:return $a();case 19:return to();case 134:if(!kt(ko))break;return no();case 60:return Os();case 86:return ks();case 100:return no();case 105:return io();case 44:case 69:if(yt()===14)return lr();break;case 16:return rr(!1);case 81:return fn()}return rn(G.Expression_expected)}function Xa(){let e=R(),t=dt();Nt(21);let n=L(zi);return Nt(22),Me(B(k(n),e),t)}function Za(){let e=R();Nt(26);let t=Vi(!0);return B(d.createSpreadElement(t),e)}function U(){return z()===26?Za():z()===28?B(d.createOmittedExpression(),R()):Vi(!0)}function Qa(){return Ue(n,U)}function $a(){let e=R(),n=t.getTokenStart(),r=Nt(23),i=t.hasPrecedingLineBreak(),a=Jn(15,U);return Bt(23,24,r,n),B(y(a,i),e)}function eo(){let e=R(),t=dt();if(Ht(26)){let n=Vi(!0);return Me(B(d.createSpreadAssignment(n),e),t)}let n=ws(!0);if(mn(139))return _s(e,t,n,178,0);if(mn(153))return _s(e,t,n,179,0);let r=Ht(42),i=Mt(),a=un(),o=Ht(58),s=Ht(54);if(r||z()===21||z()===30)return ms(e,t,n,r,a,o,s);let c;if(i&&z()!==59){let e=Ht(64),t=e?L(()=>Vi(!0)):void 0;c=d.createShorthandPropertyAssignment(a,t),c.equalsToken=e}else{Nt(59);let e=L(()=>Vi(!0));c=d.createPropertyAssignment(a,e)}return c.modifiers=n,c.questionToken=o,c.exclamationToken=s,Me(B(c,e),t)}function to(){let e=R(),n=t.getTokenStart(),r=Nt(19),i=t.hasPrecedingLineBreak(),a=Jn(12,eo,!0);return Bt(19,20,r,n),B(b(a,i),e)}function no(){let e=it();Ve(!1);let t=R(),n=dt(),r=ws(!1);Nt(100);let i=Ht(42),a=i?1:0,o=F(r,xO)?2:0,s=a&&o?Qe(ro):a?Je(ro):o?Xe(ro):ro(),c=Or(),l=Rr(a|o),u=Fr(59,!1),f=oo(a|o);return Ve(e),Me(B(d.createFunctionExpression(r,i,s,c,l,u,f),t),n)}function ro(){return jt()?nn():void 0}function io(){let e=R();if(Nt(105),Vt(25)){let t=an();return B(d.createMetaProperty(105,t),e)}let t=Ha(R(),Ya(),!1),n;t.kind===234&&(n=t.typeArguments,t=t.expression),z()===29&&ot(G.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Tp(ce,t));let r=z()===21?Ka():void 0;return B(O(t,n,r),e)}function ao(e,n){let r=R(),i=dt(),a=t.getTokenStart(),o=Nt(19,n);if(o||e){let e=t.hasPrecedingLineBreak(),n=Nn(1,Wo);Bt(19,20,o,a);let s=Me(B(ee(n,e),r),i);return z()===64&&(ot(G.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),ht()),s}else return Me(B(ee(Xn(),void 0),r),i)}function oo(e,t){let n=tt();Be(!!(e&1));let r=at();He(!!(e&2));let i=Se;Se=!1;let a=it();a&&Ve(!1);let o=ao(!!(e&16),t);return a&&Ve(!0),Se=i,Be(n),He(r),o}function so(){let e=R(),t=dt();return Nt(27),Me(B(d.createEmptyStatement(),e),t)}function co(){let e=R(),n=dt();Nt(101);let r=t.getTokenStart(),i=Nt(21),a=L(zi);return Bt(21,22,i,r),Me(B(re(a,Wo(),Vt(93)?Wo():void 0),e),n)}function lo(){let e=R(),n=dt();Nt(92);let r=Wo();Nt(117);let i=t.getTokenStart(),a=Nt(21),o=L(zi);return Bt(21,22,a,i),Vt(27),Me(B(d.createDoStatement(r,o),e),n)}function uo(){let e=R(),n=dt();Nt(117);let r=t.getTokenStart(),i=Nt(21),a=L(zi);return Bt(21,22,i,r),Me(B(ie(a,Wo()),e),n)}function fo(){let e=R(),t=dt();Nt(99);let n=Ht(135);Nt(21);let r;z()!==27&&(r=z()===115||z()===121||z()===87||z()===160&&kt(Io)||z()===135&&kt(Ho)?cs(!0):Ge(zi));let i;if(n?Nt(165):Vt(165)){let e=L(()=>Vi(!0));Nt(22),i=A(n,r,e,Wo())}else if(Vt(103)){let e=L(zi);Nt(22),i=d.createForInStatement(r,e,Wo())}else{Nt(27);let e=z()!==27&&z()!==22?L(zi):void 0;Nt(27);let t=z()===22?void 0:L(zi);Nt(22),i=ae(r,e,t,Wo())}return Me(B(i,e),t)}function po(e){let t=R(),n=dt();Nt(e===253?83:88);let r=Jt()?void 0:rn();return Xt(),Me(B(e===253?d.createBreakStatement(r):d.createContinueStatement(r),t),n)}function ho(){let e=R(),t=dt();Nt(107);let n=Jt()?void 0:L(zi);return Xt(),Me(B(d.createReturnStatement(n),e),t)}function go(){let e=R(),n=dt();Nt(118);let r=t.getTokenStart(),i=Nt(21),a=L(zi);Bt(21,22,i,r);let o=We(67108864,Wo);return Me(B(d.createWithStatement(a,o),e),n)}function _o(){let e=R(),t=dt();Nt(84);let n=L(zi);Nt(59);let r=Nn(3,Wo);return Me(B(d.createCaseClause(n,r),e),t)}function vo(){let e=R();Nt(90),Nt(59);let t=Nn(3,Wo);return B(d.createDefaultClause(t),e)}function yo(){return z()===84?_o():vo()}function bo(){let e=R();Nt(19);let t=Nn(2,yo);return Nt(20),B(d.createCaseBlock(t),e)}function xo(){let e=R(),t=dt();Nt(109),Nt(21);let n=L(zi);Nt(22);let r=bo();return Me(B(d.createSwitchStatement(n,r),e),t)}function So(){let e=R(),n=dt();Nt(111);let r=t.hasPrecedingLineBreak()?void 0:L(zi);return r===void 0&&(ve++,r=B(g(``),R())),Yt()||Ft(r),Me(B(d.createThrowStatement(r),e),n)}function Co(){let e=R(),t=dt();Nt(113);let n=ao(!1),r=z()===85?wo():void 0,i;return(!r||z()===98)&&(Nt(98,G.catch_or_finally_expected),i=ao(!1)),Me(B(d.createTryStatement(n,r,i),e),t)}function wo(){let e=R();Nt(85);let t;Vt(21)?(t=ss(),Nt(22)):t=void 0;let n=ao(!1);return B(d.createCatchClause(t,n),e)}function To(){let e=R(),t=dt();return Nt(89),Xt(),Me(B(d.createDebuggerStatement(),e),t)}function Eo(){let e=R(),t=dt(),n,r=z()===21,i=L(zi);return Y(i)&&Vt(59)?n=d.createLabeledStatement(i,Wo()):(Yt()||Ft(i),n=ne(i),r&&(t=!1)),Me(B(n,e),t)}function Do(){return ht(),zo(z())&&!t.hasPrecedingLineBreak()}function Oo(){return ht(),z()===86&&!t.hasPrecedingLineBreak()}function ko(){return ht(),z()===100&&!t.hasPrecedingLineBreak()}function Ao(){return ht(),(zo(z())||z()===9||z()===10||z()===11)&&!t.hasPrecedingLineBreak()}function jo(){for(;;)switch(z()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return W();case 135:return Uo();case 120:case 156:case 166:return Ui();case 144:case 145:return Zo();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let e=z();if(ht(),t.hasPrecedingLineBreak())return!1;if(e===138&&z()===156)return!0;continue;case 162:return ht(),z()===19||z()===80||z()===95;case 102:return ht(),z()===166||z()===11||z()===42||z()===19||zo(z());case 95:let n=ht();if(n===156&&(n=kt(ht)),n===64||n===42||n===19||n===90||n===130||n===60)return!0;continue;case 126:ht();continue;default:return!1}}function Mo(){return kt(jo)}function No(){switch(z()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Mo()||kt(Yr);case 87:case 95:return Mo();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Mo()||!kt(Do);default:return Li()}}function Po(){return ht(),jt()||z()===19||z()===23}function Fo(){return kt(Po)}function Io(){return Ro(!0)}function Lo(){return ht(),z()===64||z()===27||z()===59}function Ro(e){return ht(),e&&z()===165?kt(Lo):(jt()||z()===19)&&!t.hasPrecedingLineBreak()}function W(){return kt(Ro)}function Ho(e){return ht()===160?Ro(e):!1}function Uo(){return kt(Ho)}function Wo(){switch(z()){case 27:return so();case 19:return ao(!1);case 115:return us(R(),dt(),void 0);case 121:if(Fo())return us(R(),dt(),void 0);break;case 135:if(Uo())return us(R(),dt(),void 0);break;case 160:if(W())return us(R(),dt(),void 0);break;case 100:return ds(R(),dt(),void 0);case 86:return As(R(),dt(),void 0);case 101:return co();case 92:return lo();case 117:return uo();case 99:return fo();case 88:return po(252);case 83:return po(253);case 107:return ho();case 118:return go();case 109:return xo();case 111:return So();case 113:case 85:case 98:return Co();case 89:return To();case 60:return Ko();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Mo())return Ko();break}return Eo()}function Go(e){return e.kind===138}function Ko(){let e=R(),t=dt(),n=ws(!0);if(F(n,Go)){let r=qo(e);if(r)return r;for(let e of n)e.flags|=33554432;return We(33554432,()=>Jo(e,t,n))}else return Jo(e,t,n)}function qo(e){return We(33554432,()=>{let t=Fn(ye,e);if(t)return In(t)})}function Jo(e,t,n){switch(z()){case 115:case 121:case 87:case 160:case 135:return us(e,t,n);case 100:return ds(e,t,n);case 86:return As(e,t,n);case 120:return Bs(e,t,n);case 156:return Vs(e,t,n);case 94:return Us(e,t,n);case 162:case 144:case 145:return Ys(e,t,n);case 102:return tc(e,t,n);case 95:switch(ht(),z()){case 90:case 64:return Sc(e,t,n);case 130:return ec(e,t,n);default:return xc(e,t,n)}default:if(n){let t=$t(283,!0,G.Declaration_expected);return Kw(t,e),t.modifiers=n,t}return}}function Yo(){return ht()===11}function Xo(){return ht(),z()===161||z()===64}function Zo(){return ht(),!t.hasPrecedingLineBreak()&&(Mt()||z()===11)}function Qo(e,t){if(z()!==19){if(e&4){zr();return}if(Jt()){Xt();return}}return oo(e,t)}function $o(){let e=R();if(z()===28)return B(d.createOmittedExpression(),e);let t=Ht(26),n=as(),r=Bi();return B(d.createBindingElement(t,void 0,n,r),e)}function es(){let e=R(),t=Ht(26),n=jt(),r=un(),i;n&&z()!==59?(i=r,r=void 0):(Nt(59),i=as());let a=Bi();return B(d.createBindingElement(t,r,i,a),e)}function ts(){let e=R();Nt(19);let t=L(()=>Jn(9,es));return Nt(20),B(d.createObjectBindingPattern(t),e)}function ns(){let e=R();Nt(23);let t=L(()=>Jn(10,$o));return Nt(24),B(d.createArrayBindingPattern(t),e)}function rs(){return z()===19||z()===23||z()===81||jt()}function as(e){return z()===23?ns():z()===19?ts():nn(e)}function os(){return ss(!0)}function ss(e){let n=R(),r=dt(),i=as(G.Private_identifiers_are_not_allowed_in_variable_declarations),a;e&&i.kind===80&&z()===54&&!t.hasPrecedingLineBreak()&&(a=Kt());let o=Fi(),s=na(z())?void 0:Bi();return Me(B(j(i,a,o,s),n),r)}function cs(e){let t=R(),n=0;switch(z()){case 115:break;case 121:n|=1;break;case 87:n|=2;break;case 160:n|=4;break;case 135:H.assert(Uo()),n|=6,ht();break;default:H.fail()}ht();let r;if(z()===165&&kt(ls))r=Xn();else{let t=nt();ze(e),r=Jn(8,e?ss:os),ze(t)}return B(N(r,n),t)}function ls(){return wn()&&ht()===22}function us(e,t,n){let r=cs(!1);return Xt(),Me(B(te(n,r),e),t)}function ds(e,t,n){let r=at(),i=vb(n);Nt(100);let a=Ht(42),o=i&2048?ro():nn(),s=a?1:0,c=i&1024?2:0,l=Or();i&32&&He(!0);let u=Rr(s|c),f=Fr(59,!1),p=Qo(s|c,G.or_expected);return He(r),Me(B(d.createFunctionDeclaration(n,a,o,l,u,f,p),e),t)}function fs(){if(z()===137)return Nt(137);if(z()===11&&kt(ht)===21)return At(()=>{let e=lr();return e.text===`constructor`?e:void 0})}function ps(e,t,n){return At(()=>{if(fs()){let r=Or(),i=Rr(0),a=Fr(59,!1),o=Qo(0,G.or_expected),s=d.createConstructorDeclaration(n,i,o);return s.typeParameters=r,s.type=a,Me(B(s,e),t)}})}function ms(e,t,n,r,i,a,o,s){let c=r?1:0,l=F(n,xO)?2:0,u=Or(),f=Rr(c|l),p=Fr(59,!1),m=Qo(c|l,s),h=d.createMethodDeclaration(n,r,i,a,u,f,p,m);return h.exclamationToken=o,Me(B(h,e),t)}function hs(e,n,r,i,a){let o=!a&&!t.hasPrecedingLineBreak()?Ht(54):void 0,s=Fi(),c=Ue(90112,Bi);return Rt(i,s,c),Me(B(d.createPropertyDeclaration(r,i,a||o,s,c),e),n)}function gs(e,t,n){let r=Ht(42),i=un(),a=Ht(58);return r||z()===21||z()===30?ms(e,t,n,r,i,a,void 0,G.or_expected):hs(e,t,n,i,a)}function _s(e,t,n,r,i){let a=un(),o=Or(),s=Rr(0),c=Fr(59,!1),l=Qo(i),u=r===178?d.createGetAccessorDeclaration(n,a,s,c,l):d.createSetAccessorDeclaration(n,a,s,l);return u.typeParameters=o,WO(u)&&(u.type=c),Me(B(u,e),t)}function vs(){let e;if(z()===60)return!0;for(;wu(z());){if(e=z(),Eu(e))return!0;ht()}if(z()===42||(sn()&&(e=z(),ht()),z()===23))return!0;if(e!==void 0){if(!$_(e)||e===153||e===139)return!0;switch(z()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Jt()}}return!1}function ys(e,t,n){Wt(126);let r=bs(),i=Me(B(d.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}function bs(){let e=tt(),t=at();Be(!1),He(!0);let n=ao(!1);return Be(e),He(t),n}function xs(){if(at()&&z()===135){let e=R(),t=rn(G.Expression_expected);return ht(),Ga(e,Ha(e,t,!0))}return va()}function Ss(){let e=R();if(!Vt(60))return;let t=Ye(xs);return B(d.createDecorator(t),e)}function Cs(e,t,n){let r=R(),i=z();if(z()===87&&t){if(!At(hn))return}else if(n&&z()===126&&kt(Qs))return;else if(e&&z()===126)return;else if(!yn())return;return B(v(i),r)}function ws(e,t,n){let r=R(),i,a,o,s=!1,c=!1,l=!1;if(e&&z()===60)for(;a=Ss();)i=I(i,a);for(;o=Cs(s,t,n);)o.kind===126&&(s=!0),i=I(i,o),c=!0;if(c&&e&&z()===60)for(;a=Ss();)i=I(i,a),l=!0;if(l)for(;o=Cs(s,t,n);)o.kind===126&&(s=!0),i=I(i,o);return i&&Zt(i,r)}function Ts(){let e;if(z()===134){let t=R();ht(),e=Zt([B(v(134),t)],t)}return e}function Ds(){let e=R(),t=dt();if(z()===27)return ht(),Me(B(d.createSemicolonClassElement(),e),t);let n=ws(!0,!0,!0);if(z()===126&&kt(Qs))return ys(e,t,n);if(mn(139))return _s(e,t,n,178,0);if(mn(153))return _s(e,t,n,179,0);if(z()===137||z()===11){let r=ps(e,t,n);if(r)return r}if(Vr())return Ur(e,t,n);if(zo(z())||z()===11||z()===9||z()===10||z()===42||z()===23)if(F(n,Go)){for(let e of n)e.flags|=33554432;return We(33554432,()=>gs(e,t,n))}else return gs(e,t,n);return n?hs(e,t,n,$t(80,!0,G.Declaration_expected),void 0):H.fail(`Should not have attempted to parse class member declaration.`)}function Os(){let e=R(),t=dt(),n=ws(!0);if(z()===86)return js(e,t,n,232);let r=$t(283,!0,G.Expression_expected);return Kw(r,e),r.modifiers=n,r}function ks(){return js(R(),dt(),void 0,232)}function As(e,t,n){return js(e,t,n,264)}function js(e,t,n,r){let i=at();Nt(86);let a=Ms(),o=Or();F(n,yO)&&He(!0);let s=Ps(),c;return Nt(19)?(c=zs(),Nt(20)):c=Xn(),He(i),Me(B(r===264?d.createClassDeclaration(n,a,o,s,c):d.createClassExpression(n,a,o,s,c),e),t)}function Ms(){return jt()&&!Ns()?tn(jt()):void 0}function Ns(){return z()===119&&kt(Tn)}function Ps(){if(Rs())return Nn(22,Fs)}function Fs(){let e=R(),t=z();H.assert(t===96||t===119),ht();let n=Jn(7,Is);return B(d.createHeritageClause(t,n),e)}function Is(){let e=R(),t=va();if(t.kind===234)return t;let n=Ls();return B(d.createExpressionWithTypeArguments(t,n),e)}function Ls(){return z()===30?Qn(20,Pi,30,32):void 0}function Rs(){return z()===96||z()===119}function zs(){return Nn(5,Ds)}function Bs(e,t,n){Nt(120);let r=rn(),i=Or(),a=Ps(),o=Zr();return Me(B(d.createInterfaceDeclaration(n,r,i,a,o),e),t)}function Vs(e,n,r){Nt(156),t.hasPrecedingLineBreak()&&ot(G.Line_break_not_permitted_here);let i=rn(),a=Or();Nt(64);let o=z()===141&&At(li)||Pi();return Xt(),Me(B(d.createTypeAliasDeclaration(r,i,a,o),e),n)}function Hs(){let e=R(),t=dt(),n=un(),r=L(Bi);return Me(B(d.createEnumMember(n,r),e),t)}function Us(e,t,n){Nt(94);let r=rn(),i;return Nt(19)?(i=$e(()=>Jn(6,Hs)),Nt(20)):i=Xn(),Me(B(d.createEnumDeclaration(n,r,i),e),t)}function Ks(){let e=R(),t;return Nt(19)?(t=Nn(1,Wo),Nt(20)):t=Xn(),B(d.createModuleBlock(t),e)}function qs(e,t,n,r){let i=r&32,a=r&8?an():rn(),o=Vt(25)?qs(R(),!1,void 0,8|i):Ks();return Me(B(d.createModuleDeclaration(n,a,o,r),e),t)}function Js(e,t,n){let r=0,i;z()===162?(i=rn(),r|=2048):(i=lr(),i.text=en(i.text));let a;return z()===19?a=Ks():Xt(),Me(B(d.createModuleDeclaration(n,i,a,r),e),t)}function Ys(e,t,n){let r=0;if(z()===162)return Js(e,t,n);if(Vt(145))r|=32;else if(Nt(144),z()===11)return Js(e,t,n);return qs(e,t,n,r)}function Xs(){return z()===149&&kt(Zs)}function Zs(){return ht()===21}function Qs(){return ht()===19}function $s(){return ht()===44}function ec(e,t,n){Nt(130),Nt(145);let r=rn();Xt();let i=d.createNamespaceExportDeclaration(r);return i.modifiers=n,Me(B(i,e),t)}function tc(e,n,r){Nt(102);let i=t.getTokenFullStart(),a;Mt()&&(a=rn());let o;if(a?.escapedText===`type`&&(z()!==161||Mt()&&kt(Xo))&&(Mt()||oc())?(o=156,a=Mt()?rn():void 0):a?.escapedText===`defer`&&(z()===161?!kt(Yo):z()!==28&&z()!==64)&&(o=166,a=Mt()?rn():void 0),a&&!sc()&&o!==166)return cc(e,n,r,a,o===156);let s=nc(a,i,o,void 0),c=fc(),l=rc();return Xt(),Me(B(d.createImportDeclaration(r,s,c,l),e),n)}function nc(e,t,n,r=!1){let i;return(e||z()===42||z()===19)&&(i=lc(e,t,n,r),Nt(161)),i}function rc(){let e=z();if((e===118||e===132)&&!t.hasPrecedingLineBreak())return ac(e)}function ic(){let e=R(),t=zo(z())?an():pr(11);Nt(59);let n=Vi(!0);return B(d.createImportAttribute(t,n),e)}function ac(e,n){let r=R();n||Nt(e);let i=t.getTokenStart();if(Nt(19)){let n=t.hasPrecedingLineBreak(),a=Jn(24,ic,!0);if(!Nt(20)){let e=Re(fe);e&&e.code===G._0_expected.code&&Dw(e,hS(oe,ce,i,1,G.The_parser_expected_to_find_a_1_to_match_the_0_token_here,`{`,`}`))}return B(d.createImportAttributes(a,n,e),r)}else{let t=Zt([],R(),void 0,!1);return B(d.createImportAttributes(t,!1,e),r)}}function oc(){return z()===42||z()===19}function sc(){return z()===28||z()===161}function cc(e,t,n,r,i){Nt(64);let a=uc();return Xt(),Me(B(d.createImportEqualsDeclaration(n,i,r,a),e),t)}function lc(e,n,r,i){let a;return(!e||Vt(28))&&(i&&t.setSkipJsDocLeadingAsterisks(!0),a=z()===42?pc():gc(276),i&&t.setSkipJsDocLeadingAsterisks(!1)),B(d.createImportClause(r,e,a),n)}function uc(){return Xs()?dc():$n(!1)}function dc(){let e=R();Nt(149),Nt(21);let t=fc();return Nt(22),B(d.createExternalModuleReference(t),e)}function fc(){if(z()===11){let e=lr();return e.text=en(e.text),e}else return zi()}function pc(){let e=R();Nt(42),Nt(130);let t=rn();return B(d.createNamespaceImport(t),e)}function mc(){return zo(z())||z()===11}function hc(e){return z()===11?lr():e()}function gc(e){let t=R();return B(e===276?d.createNamedImports(Qn(23,vc,19,20)):d.createNamedExports(Qn(23,_c,19,20)),t)}function _c(){let e=dt();return Me(yc(282),e)}function vc(){return yc(277)}function yc(e){let n=R(),r=$_(z())&&!Mt(),i=t.getTokenStart(),a=t.getTokenEnd(),o=!1,s,c=!0,l=hc(an);if(l.kind===80&&l.escapedText===`type`)if(z()===130){let e=an();if(z()===130){let t=an();mc()?(o=!0,s=e,l=hc(u),c=!1):(s=l,l=t,c=!1)}else mc()?(s=l,c=!1,l=hc(u)):(o=!0,l=e)}else mc()&&(o=!0,l=hc(u));return c&&z()===130&&(s=l,Nt(130),l=hc(u)),e===277&&(l.kind===80?r&&ct(i,a,G.Identifier_expected):(ct(Es(ce,l.pos),l.end,G.Identifier_expected),l=Jw($t(80,!1),l.pos,l.pos))),B(e===277?d.createImportSpecifier(o,s,l):d.createExportSpecifier(o,s,l),n);function u(){return r=$_(z())&&!Mt(),i=t.getTokenStart(),a=t.getTokenEnd(),an()}}function bc(e){return B(d.createNamespaceExport(hc(an)),e)}function xc(e,n,r){let i=at();He(!0);let a,o,s,c=Vt(156),l=R();Vt(42)?(Vt(130)&&(a=bc(l)),Nt(161),o=fc()):(a=gc(280),(z()===161||z()===11&&!t.hasPrecedingLineBreak())&&(Nt(161),o=fc()));let u=z();return o&&(u===118||u===132)&&!t.hasPrecedingLineBreak()&&(s=ac(u)),Xt(),He(i),Me(B(d.createExportDeclaration(r,c,a,o,s),e),n)}function Sc(e,t,n){let r=at();He(!0);let i;Vt(64)?i=!0:Nt(90);let a=Vi(!0);return Xt(),He(r),Me(B(d.createExportAssignment(n,i,a),e),t)}let Cc;(e=>{e[e.SourceElements=0]=`SourceElements`,e[e.BlockStatements=1]=`BlockStatements`,e[e.SwitchClauses=2]=`SwitchClauses`,e[e.SwitchClauseStatements=3]=`SwitchClauseStatements`,e[e.TypeMembers=4]=`TypeMembers`,e[e.ClassMembers=5]=`ClassMembers`,e[e.EnumMembers=6]=`EnumMembers`,e[e.HeritageClauseElement=7]=`HeritageClauseElement`,e[e.VariableDeclarations=8]=`VariableDeclarations`,e[e.ObjectBindingElements=9]=`ObjectBindingElements`,e[e.ArrayBindingElements=10]=`ArrayBindingElements`,e[e.ArgumentExpressions=11]=`ArgumentExpressions`,e[e.ObjectLiteralMembers=12]=`ObjectLiteralMembers`,e[e.JsxAttributes=13]=`JsxAttributes`,e[e.JsxChildren=14]=`JsxChildren`,e[e.ArrayLiteralMembers=15]=`ArrayLiteralMembers`,e[e.Parameters=16]=`Parameters`,e[e.JSDocParameters=17]=`JSDocParameters`,e[e.RestProperties=18]=`RestProperties`,e[e.TypeParameters=19]=`TypeParameters`,e[e.TypeArguments=20]=`TypeArguments`,e[e.TupleElementTypes=21]=`TupleElementTypes`,e[e.HeritageClauses=22]=`HeritageClauses`,e[e.ImportOrExportSpecifiers=23]=`ImportOrExportSpecifiers`,e[e.ImportAttributes=24]=`ImportAttributes`,e[e.JSDocComment=25]=`JSDocComment`,e[e.Count=26]=`Count`})(Cc||={});let wc;(e=>{e[e.False=0]=`False`,e[e.True=1]=`True`,e[e.Unknown=2]=`Unknown`})(wc||={});let Tc;(e=>{function n(e,n,i){Oe(`file.js`,e,99,void 0,1,0),t.setText(e,n,i),he=t.scan();let a=r(),o=Ie(`file.js`,99,1,!1,[],v(1),0,bt),s=_S(fe,o);return pe&&(o.jsDocDiagnostics=_S(pe,o)),ke(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0}e.parseJSDocTypeExpressionForTests=n;function r(e){let t=R(),n=(e?Vt:Nt)(19),r=We(16777216,Tr);(!e||n)&&zt(20);let i=d.createJSDocTypeExpression(r);return Fe(i),B(i,t)}e.parseJSDocTypeExpression=r;function i(){let e=R(),t=Vt(19),n=R(),r=$n(!1);for(;z()===81;)Ct(),gt(),r=B(d.createJSDocMemberName(r,rn()),n);t&&zt(20);let i=d.createJSDocNameReference(r);return Fe(i),B(i,e)}e.parseJSDocNameReference=i;function a(e,t,n){Oe(``,e,99,void 0,1,0);let r=We(16777216,()=>l(t,n)),i=_S(fe,{languageVariant:0,text:e});return ke(),r?{jsDoc:r,diagnostics:i}:void 0}e.parseIsolatedJSDocComment=a;function o(e,t,n){let r=he,i=fe.length,a=Ce,o=We(16777216,()=>l(t,n));return Zw(o,e),xe&524288&&(pe||=[],Ee(pe,fe,i)),he=r,fe.length=i,Ce=a,o}e.parseJSDocComment=o;let s;(e=>{e[e.BeginningOfLine=0]=`BeginningOfLine`,e[e.SawAsterisk=1]=`SawAsterisk`,e[e.SavingComments=2]=`SavingComments`,e[e.SavingBackticks=3]=`SavingBackticks`})(s||={});let c;(e=>{e[e.Property=1]=`Property`,e[e.Parameter=2]=`Parameter`,e[e.CallbackParameter=4]=`CallbackParameter`})(c||={});function l(e=0,n){let a=ce,o=n===void 0?a.length:e+n;if(n=o-e,H.assert(e>=0),H.assert(e<=o),H.assert(o<=a.length),!YN(a,e))return;let s,c,l,u,f,p=[],m=[],h=ye;ye|=1<<25;let _=t.scanRange(e+3,n-5,v);return ye=h,_;function v(){let n=1,r,i=e-(a.lastIndexOf(` `,e)+1)+4;function h(e){r||=i,p.push(e),i+=e.length}for(gt();Re(5););Re(4)&&(n=0,i=0);loop:for(;;){switch(z()){case 60:b(p),f||=R(),re(T(i)),n=0,r=void 0;break;case 4:p.push(t.getTokenText()),n=0,i=0;break;case 42:let a=t.getTokenText();n===1?(n=2,h(a)):(H.assert(n===0),n=1,i+=a.length);break;case 5:H.assert(n!==2,`whitespace shouldn't come from the scanner while saving top-level comment text`);let o=t.getTokenText();r!==void 0&&i+o.length>r&&p.push(o.slice(r-i)),i+=o.length;break;case 1:break loop;case 82:n=2,h(t.getTokenValue());break;case 19:n=2;let s=t.getTokenFullStart(),c=O(t.getTokenEnd()-1);if(c){u||y(p),m.push(B(d.createJSDocText(p.join(``)),u??e,s)),m.push(c),p=[],u=t.getTokenEnd();break}default:n=2,h(t.getTokenText());break}n===2?_t(!1):gt()}let g=p.join(``).trimEnd();m.length&&g.length&&m.push(B(d.createJSDocText(g),u??e,f)),m.length&&s&&H.assertIsDefined(f,`having parsed tags implies that the end of the comment span should be set`);let _=s&&Zt(s,c,l);return B(d.createJSDocComment(m.length?Zt(m,e,f):g.length?g:void 0,_),e,o)}function y(e){for(;e.length&&(e[0]===` `||e[0]===`\r`);)e.shift()}function b(e){for(;e.length;){let t=e[e.length-1].trimEnd();if(t===``)e.pop();else if(t.lengthc&&(i.push(n.slice(c-e)),s=2),e+=n.length;break;case 19:s=2;let u=t.getTokenFullStart(),f=O(t.getTokenEnd()-1);f?(a.push(B(d.createJSDocText(i.join(``)),o??r,u)),a.push(f),i=[],o=t.getTokenEnd()):l(t.getTokenText());break;case 62:s=s===3?2:3,l(t.getTokenText());break;case 82:s!==3&&(s=2),l(t.getTokenValue());break;case 42:if(s===0){s=1,e+=1;break}default:s!==3&&(s=2),l(t.getTokenText());break}u=s===2||s===3?_t(s===3):gt()}y(i);let f=i.join(``).trimEnd();if(a.length)return f.length&&a.push(B(d.createJSDocText(f),o??r)),Zt(a,r,t.getTokenEnd());if(f.length)return f}function O(e){let n=At(ee);if(!n)return;gt(),C();let r=k(),i=[];for(;z()!==20&&z()!==4&&z()!==1;)i.push(t.getTokenText()),gt();return B((n===`link`?d.createJSDocLink:n===`linkcode`?d.createJSDocLinkCode:d.createJSDocLinkPlain)(r,i.join(``)),e,t.getTokenEnd())}function k(){if(zo(z())){let e=R(),t=an();for(;Vt(25);)t=B(d.createQualifiedName(t,z()===81?$t(80,!1):an()),e);for(;z()===81;)Ct(),gt(),t=B(d.createJSDocMemberName(t,rn()),e);return t}}function ee(){if(w(),z()===19&>()===60&&zo(gt())){let e=t.getTokenValue();if(te(e))return e}}function te(e){return e===`link`||e===`linkcode`||e===`linkplain`}function ne(e,t,n,r){return B(d.createJSDocUnknownTag(t,E(e,R(),n,r)),e)}function re(e){e&&(s?s.push(e):(s=[e],c=e.pos),l=e.end)}function ie(){return w(),z()===19?r():void 0}function ae(){let e=Re(23);e&&C();let t=Re(62),n=ze();return t&&Gt(62),e&&(C(),Ht(64)&&zi(),Nt(24)),{name:n,isBracketed:e}}function A(e){switch(e.kind){case 151:return!0;case 189:return A(e.elementType);default:return YO(e)&&Y(e.typeName)&&e.typeName.escapedText===`Object`&&!e.typeArguments}}function j(e,t,n,r){let i=ie(),a=!i;w();let{name:o,isBracketed:s}=ae(),c=w();a&&!kt(ee)&&(i=ie());let l=E(e,R(),r,c),u=M(i,o,n,r);return u&&(i=u,a=!0),B(n===1?d.createJSDocPropertyTag(t,o,s,i,a,l):d.createJSDocParameterTag(t,o,s,i,a,l),e)}function M(e,t,n,r){if(e&&A(e.type)){let i=R(),a,o;for(;a=At(()=>Ne(n,r,t));)a.kind===342||a.kind===349?o=I(o,a):a.kind===346&<(a.tagName,G.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(o){let t=B(d.createJSDocTypeLiteral(o,e.type.kind===189),i);return B(d.createJSDocTypeExpression(t),i)}}}function N(e,n,r,i){F(s,Xj)&&ct(n.pos,t.getTokenStart(),G._0_tag_already_specified,Wc(n.escapedText));let a=ie();return B(d.createJSDocReturnTag(n,a,E(e,R(),r,i)),e)}function se(e,n,i,a){F(s,Qj)&&ct(n.pos,t.getTokenStart(),G._0_tag_already_specified,Wc(n.escapedText));let o=r(!0),c=i!==void 0&&a!==void 0?E(e,R(),i,a):void 0;return B(d.createJSDocTypeTag(n,o,c),e)}function P(e,n,r,a){let o=z()===23||kt(()=>gt()===60&&zo(gt())&&te(t.getTokenValue()))?void 0:i(),s=r!==void 0&&a!==void 0?E(e,R(),r,a):void 0;return B(d.createJSDocSeeTag(n,o,s),e)}function le(e,t,n,r){let i=ie(),a=E(e,R(),n,r);return B(d.createJSDocThrowsTag(t,i,a),e)}function ue(e,n,r,i){let a=R(),o=fe(),s=t.getTokenFullStart(),c=E(e,s,r,i);c||(s=t.getTokenFullStart());let l=typeof c==`string`?o.text+c:Zt(de([B(o,a,s)],c),a);return B(d.createJSDocAuthorTag(n,l),e)}function fe(){let e=[],n=!1,r=t.getToken();for(;r!==1&&r!==4;){if(r===30)n=!0;else if(r===60&&!n)break;else if(r===32&&n){e.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}e.push(t.getTokenText()),r=gt()}return d.createJSDocText(e.join(``))}function pe(e,t,n,r){let i=_e();return B(d.createJSDocImplementsTag(t,i,E(e,R(),n,r)),e)}function me(e,t,n,r){let i=_e();return B(d.createJSDocAugmentsTag(t,i,E(e,R(),n,r)),e)}function he(e,t,n,i){let a=r(!1),o=n!==void 0&&i!==void 0?E(e,R(),n,i):void 0;return B(d.createJSDocSatisfiesTag(t,a,o),e)}function ge(e,n,r,i){let a=t.getTokenFullStart(),o;Mt()&&(o=rn());let s=nc(o,a,156,!0),c=fc(),l=rc(),u=r!==void 0&&i!==void 0?E(e,R(),r,i):void 0;return B(d.createJSDocImportTag(n,s,c,l,u),e)}function _e(){let e=Vt(19),n=R(),r=be();t.setSkipJsDocLeadingAsterisks(!0);let i=Ls();t.setSkipJsDocLeadingAsterisks(!1);let a=B(d.createExpressionWithTypeArguments(r,i),n);return e&&(C(),Nt(20)),a}function be(){let e=R(),t=Be();for(;Vt(25);){let n=Be();t=B(S(t,n),e)}return t}function xe(e,t,n,r,i){return B(t(n,E(e,R(),r,i)),e)}function Se(e,t,n,i){let a=r(!0);return C(),B(d.createJSDocThisTag(t,a,E(e,R(),n,i)),e)}function Ce(e,t,n,i){let a=r(!0);return C(),B(d.createJSDocEnumTag(t,a,E(e,R(),n,i)),e)}function we(e,t,n,r){let i=ie();w();let a=Te();C();let o=D(n),s;if(!i||A(i.type)){let t,r,a,o=!1;for(;(t=At(()=>Me(n)))&&t.kind!==346;)if(o=!0,t.kind===345)if(r){let e=ot(G.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&Dw(e,hS(oe,ce,0,0,G.The_tag_was_first_specified_here));break}else r=t;else a=I(a,t);if(o){let t=i&&i.type.kind===189,n=d.createJSDocTypeLiteral(a,t);i=r&&r.typeExpression&&!A(r.typeExpression.type)?r.typeExpression:B(n,e),s=i.end}}return s=s||o!==void 0?R():(a??i??t).end,o||=E(e,s,n,r),B(d.createJSDocTypedefTag(t,i,a,o),e,s)}function Te(e){let n=t.getTokenStart();if(!zo(z()))return;let r=Be();if(Vt(25)){let t=Te(!0);return B(d.createModuleDeclaration(void 0,r,t,e?8:void 0),n)}return e&&(r.flags|=4096),r}function Ee(e){let t=R(),n,r;for(;n=At(()=>Ne(4,e));){if(n.kind===346){lt(n.tagName,G.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=I(r,n)}return Zt(r||[],t)}function De(e,t){let n=Ee(t),r=At(()=>{if(Re(60)){let e=T(t);if(e&&e.kind===343)return e}});return B(d.createJSDocSignature(void 0,n,r),e)}function Oe(e,t,n,r){let i=Te();C();let a=D(n),o=De(e,n);a||=E(e,R(),n,r);let s=a===void 0?o.end:R();return B(d.createJSDocCallbackTag(t,o,i,a),e,s)}function ke(e,t,n,r){C();let i=D(n),a=De(e,n);i||=E(e,R(),n,r);let o=i===void 0?a.end:R();return B(d.createJSDocOverloadTag(t,a,i),e,o)}function Ae(e,t){for(;!Y(e)||!Y(t);)if(!Y(e)&&!Y(t)&&e.right.escapedText===t.right.escapedText)e=e.left,t=t.left;else return!1;return e.escapedText===t.escapedText}function Me(e){return Ne(1,e)}function Ne(e,t,n){let r=!0,i=!1;for(;;)switch(gt()){case 60:if(r){let r=Pe(e,t);return r&&(r.kind===342||r.kind===349)&&n&&(Y(r.name)||!Ae(n,r.name.left))?!1:r}i=!1;break;case 4:r=!0,i=!1;break;case 42:i&&(r=!1),i=!0;break;case 80:r=!1;break;case 1:return!1}}function Pe(e,n){H.assert(z()===60);let r=t.getTokenFullStart();gt();let i=Be(),a=w(),o;switch(i.escapedText){case`type`:return e===1&&se(r,i);case`prop`:case`property`:o=1;break;case`arg`:case`argument`:case`param`:o=6;break;case`template`:return Le(r,i,n,a);case`this`:return Se(r,i,n,a);default:return!1}return e&o?j(r,i,e,n):!1}function Fe(){let e=R(),t=Re(23);t&&C();let n=ws(!1,!0),r=Be(G.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),i;if(t&&(C(),Nt(64),i=We(16777216,Tr),Nt(24)),!rp(r))return B(d.createTypeParameterDeclaration(n,r,void 0,i),e)}function Ie(){let e=R(),t=[];do{C();let e=Fe();e!==void 0&&t.push(e),w()}while(Re(28));return Zt(t,e)}function Le(e,t,n,i){let a=z()===19?r():void 0,o=Ie();return B(d.createJSDocTemplateTag(t,a,o,E(e,R(),n,i)),e)}function Re(e){return z()===e?(gt(),!0):!1}function ze(){let e=Be();for(Vt(23)&&Nt(24);Vt(25);){let t=Be();Vt(23)&&Nt(24),e=er(e,t)}return e}function Be(e){if(!zo(z()))return $t(80,!e,e||G.Identifier_expected);ve++;let n=t.getTokenStart(),r=t.getTokenEnd(),i=z(),a=B(g(en(t.getTokenValue()),i),n,r);return gt(),a}}})(Tc=e.JSDocParser||={})})(SP||={});var CP=new WeakSet;function wP(e){CP.has(e)&&H.fail(`Source file has already been incrementally parsed`),CP.add(e)}var Vte=new WeakSet;function TP(e){return Vte.has(e)}function EP(e){Vte.add(e)}var DP;(e=>{function t(e,t,r,i){if(i||=H.shouldAssert(2),u(e,t,r,i),wc(r))return e;if(e.statements.length===0)return SP.parseSourceFile(e.fileName,t,e.languageVersion,void 0,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);wP(e),SP.fixupParentReferences(e);let a=e.text,o=d(e),l=c(e,r);u(e,t,l,i),H.assert(l.span.start<=r.span.start),H.assert(ac(l.span)===ac(r.span)),H.assert(ac(Cc(l))===ac(Cc(r)));let f=Cc(l).length-l.span.length;s(e,l.span.start,ac(l.span),ac(Cc(l)),f,a,t,i);let p=SP.parseSourceFile(e.fileName,t,e.languageVersion,o,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);return p.commentDirectives=n(e.commentDirectives,p.commentDirectives,l.span.start,ac(l.span),f,a,t,i),p.impliedNodeFormat=e.impliedNodeFormat,fM(e,p),p}e.updateSourceFile=t;function n(e,t,n,r,i,a,o,s){if(!e)return t;let c,l=!1;for(let t of e){let{range:e,type:l}=t;if(e.endr){u();let t={range:{pos:e.pos+i,end:e.end+i},type:l};c=I(c,t),s&&H.assert(a.substring(e.pos,e.end)===o.substring(t.range.pos,t.range.end))}}return u(),c;function u(){l||(l=!0,c?t&&c.push(...t):c=t)}}function r(e,t,n,r,a,s,c){n?u(e):l(e);return;function l(e){let n=``;if(c&&i(e)&&(n=a.substring(e.pos,e.end)),dM(e,t),Jw(e,e.pos+r,e.end+r),c&&i(e)&&H.assert(n===s.substring(e.pos,e.end)),pP(e,l,u),tf(e))for(let t of e.jsDoc)l(t);o(e,c)}function u(e){Jw(e,e.pos+r,e.end+r);for(let t of e)l(t)}}function i(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function a(e,t,n,r,i){H.assert(e.end>=t,`Adjusting an element that was entirely before the change range`),H.assert(e.pos<=n,`Adjusting an element that was entirely after the change range`),H.assert(e.pos<=e.end);let a=Math.min(e.pos,r),o=e.end>=n?e.end+i:Math.min(e.end,r);if(H.assert(a<=o),e.parent){let t=e.parent;H.assertGreaterThanOrEqual(a,t.pos),H.assertLessThanOrEqual(o,t.end)}Jw(e,a,o)}function o(e,t){if(t){let t=e.pos,n=e=>{H.assert(e.pos>=t),t=e.end};if(tf(e))for(let t of e.jsDoc)n(t);pP(e,n),H.assert(t<=e.end)}}function s(e,t,n,i,s,c,l,u){d(e);return;function d(p){if(H.assert(p.pos<=p.end),p.pos>n){r(p,e,!1,s,c,l,u);return}let m=p.end;if(m>=t){if(EP(p),dM(p,e),a(p,t,n,i,s),pP(p,d,f),tf(p))for(let e of p.jsDoc)d(e);o(p,u);return}H.assert(mn){r(o,e,!0,s,c,l,u);return}let f=o.end;if(f>=t){EP(o),a(o,t,n,i,s);for(let e of o)d(e);return}H.assert(f0&&t<=1;t++){let t=l(e,n);H.assert(t.pos<=n);let r=t.pos;n=Math.max(0,r-1)}return Tc(Sc(n,ac(t.span)),t.newLength+(t.span.start-n))}function l(e,t){let n=e,r;if(pP(e,a),r){let e=i(r);e.pos>n.pos&&(n=e)}return n;function i(e){for(;;){let t=qx(e);if(t)e=t;else return e}}function a(e){if(!rp(e))if(e.pos<=t){if(e.pos>=n.pos&&(n=e),tt),!0}}function u(e,t,n,r){let i=e.text;if(n&&(H.assert(i.length-n.span.length+n.newLength===t.length),r||H.shouldAssert(3))){let e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);H.assert(e===r);let a=i.substring(ac(n.span),i.length),o=t.substring(ac(Cc(n)),t.length);H.assert(a===o)}}function d(e){let t=e.statements,n=0;H.assert(n=e.pos&&i=e.pos&&i{e[e.Value=-1]=`Value`})(f||={})})(DP||={});function OP(e){return kP(e)!==void 0}function kP(e){let t=ro(e,JC,!1);if(t)return t;if(qa(e,`.ts`)){let t=eo(e),n=t.lastIndexOf(`.d.`);if(n>=0)return t.substring(n)}}function AP(e,t,n,r){if(e){if(e===`import`)return 99;if(e===`require`)return 1;r(t,n-t,G.resolution_mode_should_be_either_require_or_import)}}function jP(e,t){let n=[];for(let e of zs(t,0)||c)Hte(n,e,t.substring(e.pos,e.end));e.pragmas=new Map;for(let t of n){if(e.pragmas.has(t.name)){let n=e.pragmas.get(t.name);n instanceof Array?n.push(t.args):e.pragmas.set(t.name,[n,t.args]);continue}e.pragmas.set(t.name,t.args)}}function MP(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,r)=>{switch(r){case`reference`:{let r=e.referencedFiles,i=e.typeReferenceDirectives,a=e.libReferenceDirectives;d(ht(n),n=>{let{types:o,lib:s,path:c,"resolution-mode":l,preserve:u}=n.arguments,d=u===`true`?!0:void 0;if(n.arguments[`no-default-lib`]===`true`)e.hasNoDefaultLib=!0;else if(o){let e=AP(l,o.pos,o.end,t);i.push({pos:o.pos,end:o.end,fileName:o.value,...e?{resolutionMode:e}:{},...d?{preserve:d}:{}})}else s?a.push({pos:s.pos,end:s.end,fileName:s.value,...d?{preserve:d}:{}}):c?r.push({pos:c.pos,end:c.end,fileName:c.value,...d?{preserve:d}:{}}):t(n.range.pos,n.range.end-n.range.pos,G.Invalid_reference_directive_syntax)});break}case`amd-dependency`:e.amdDependencies=k(ht(n),e=>({name:e.arguments.name,path:e.arguments.path}));break;case`amd-module`:if(n instanceof Array)for(let r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,G.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=r.arguments.name;else e.moduleName=n.arguments.name;break;case`ts-nocheck`:case`ts-check`:d(ht(n),t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:r===`ts-check`,end:t.range.end,pos:t.range.pos})});break;case`jsx`:case`jsxfrag`:case`jsximportsource`:case`jsxruntime`:return;default:H.fail(`Unhandled pragma kind`)}})}var NP=new Map;function PP(e){if(NP.has(e))return NP.get(e);let t=RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,`im`);return NP.set(e,t),t}var FP=/^\/\/\/\s*<(\S+)\s.*?\/>/m,IP=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function Hte(e,t,n){let r=t.kind===2&&FP.exec(n);if(r){let i=r[1].toLowerCase(),a=ta[i];if(!a||!(a.kind&1))return;if(a.args){let r={};for(let e of a.args){let i=PP(e.name).exec(n);if(!i&&!e.optional)return;if(i){let n=i[2]||i[3];if(e.captureSpan){let a=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:a,end:a+n.length}}else r[e.name]=n}}e.push({name:i,args:{arguments:r,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}let i=t.kind===2&&IP.exec(n);if(i)return LP(e,t,2,i);if(t.kind===3){let r=/@(\S+)(\s+(?:\S.*)?)?$/gm,i;for(;i=r.exec(n);)LP(e,t,4,i)}}function LP(e,t,n,r){if(!r)return;let i=r[1].toLowerCase(),a=ta[i];if(!a||!(a.kind&n))return;let o=r[2],s=RP(a,o);s!==`fail`&&e.push({name:i,args:{arguments:s,range:t}})}function RP(e,t){if(!t||!e.args)return{};let n=t.trim().split(/\s+/),r={};for(let t=0;t[``+t,e])),UP=[[`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`],[`es2024`,`lib.es2024.d.ts`],[`esnext`,`lib.esnext.d.ts`],[`dom`,`lib.dom.d.ts`],[`dom.iterable`,`lib.dom.iterable.d.ts`],[`dom.asynciterable`,`lib.dom.asynciterable.d.ts`],[`webworker`,`lib.webworker.d.ts`],[`webworker.importscripts`,`lib.webworker.importscripts.d.ts`],[`webworker.iterable`,`lib.webworker.iterable.d.ts`],[`webworker.asynciterable`,`lib.webworker.asynciterable.d.ts`],[`scripthost`,`lib.scripthost.d.ts`],[`es2015.core`,`lib.es2015.core.d.ts`],[`es2015.collection`,`lib.es2015.collection.d.ts`],[`es2015.generator`,`lib.es2015.generator.d.ts`],[`es2015.iterable`,`lib.es2015.iterable.d.ts`],[`es2015.promise`,`lib.es2015.promise.d.ts`],[`es2015.proxy`,`lib.es2015.proxy.d.ts`],[`es2015.reflect`,`lib.es2015.reflect.d.ts`],[`es2015.symbol`,`lib.es2015.symbol.d.ts`],[`es2015.symbol.wellknown`,`lib.es2015.symbol.wellknown.d.ts`],[`es2016.array.include`,`lib.es2016.array.include.d.ts`],[`es2016.intl`,`lib.es2016.intl.d.ts`],[`es2017.arraybuffer`,`lib.es2017.arraybuffer.d.ts`],[`es2017.date`,`lib.es2017.date.d.ts`],[`es2017.object`,`lib.es2017.object.d.ts`],[`es2017.sharedmemory`,`lib.es2017.sharedmemory.d.ts`],[`es2017.string`,`lib.es2017.string.d.ts`],[`es2017.intl`,`lib.es2017.intl.d.ts`],[`es2017.typedarrays`,`lib.es2017.typedarrays.d.ts`],[`es2018.asyncgenerator`,`lib.es2018.asyncgenerator.d.ts`],[`es2018.asynciterable`,`lib.es2018.asynciterable.d.ts`],[`es2018.intl`,`lib.es2018.intl.d.ts`],[`es2018.promise`,`lib.es2018.promise.d.ts`],[`es2018.regexp`,`lib.es2018.regexp.d.ts`],[`es2019.array`,`lib.es2019.array.d.ts`],[`es2019.object`,`lib.es2019.object.d.ts`],[`es2019.string`,`lib.es2019.string.d.ts`],[`es2019.symbol`,`lib.es2019.symbol.d.ts`],[`es2019.intl`,`lib.es2019.intl.d.ts`],[`es2020.bigint`,`lib.es2020.bigint.d.ts`],[`es2020.date`,`lib.es2020.date.d.ts`],[`es2020.promise`,`lib.es2020.promise.d.ts`],[`es2020.sharedmemory`,`lib.es2020.sharedmemory.d.ts`],[`es2020.string`,`lib.es2020.string.d.ts`],[`es2020.symbol.wellknown`,`lib.es2020.symbol.wellknown.d.ts`],[`es2020.intl`,`lib.es2020.intl.d.ts`],[`es2020.number`,`lib.es2020.number.d.ts`],[`es2021.promise`,`lib.es2021.promise.d.ts`],[`es2021.string`,`lib.es2021.string.d.ts`],[`es2021.weakref`,`lib.es2021.weakref.d.ts`],[`es2021.intl`,`lib.es2021.intl.d.ts`],[`es2022.array`,`lib.es2022.array.d.ts`],[`es2022.error`,`lib.es2022.error.d.ts`],[`es2022.intl`,`lib.es2022.intl.d.ts`],[`es2022.object`,`lib.es2022.object.d.ts`],[`es2022.string`,`lib.es2022.string.d.ts`],[`es2022.regexp`,`lib.es2022.regexp.d.ts`],[`es2023.array`,`lib.es2023.array.d.ts`],[`es2023.collection`,`lib.es2023.collection.d.ts`],[`es2023.intl`,`lib.es2023.intl.d.ts`],[`es2024.arraybuffer`,`lib.es2024.arraybuffer.d.ts`],[`es2024.collection`,`lib.es2024.collection.d.ts`],[`es2024.object`,`lib.es2024.object.d.ts`],[`es2024.promise`,`lib.es2024.promise.d.ts`],[`es2024.regexp`,`lib.es2024.regexp.d.ts`],[`es2024.sharedmemory`,`lib.es2024.sharedmemory.d.ts`],[`es2024.string`,`lib.es2024.string.d.ts`],[`esnext.array`,`lib.es2023.array.d.ts`],[`esnext.collection`,`lib.esnext.collection.d.ts`],[`esnext.symbol`,`lib.es2019.symbol.d.ts`],[`esnext.asynciterable`,`lib.es2018.asynciterable.d.ts`],[`esnext.intl`,`lib.esnext.intl.d.ts`],[`esnext.disposable`,`lib.esnext.disposable.d.ts`],[`esnext.bigint`,`lib.es2020.bigint.d.ts`],[`esnext.string`,`lib.es2022.string.d.ts`],[`esnext.promise`,`lib.es2024.promise.d.ts`],[`esnext.weakref`,`lib.es2021.weakref.d.ts`],[`esnext.decorators`,`lib.esnext.decorators.d.ts`],[`esnext.object`,`lib.es2024.object.d.ts`],[`esnext.array`,`lib.esnext.array.d.ts`],[`esnext.regexp`,`lib.es2024.regexp.d.ts`],[`esnext.string`,`lib.es2024.string.d.ts`],[`esnext.iterator`,`lib.esnext.iterator.d.ts`],[`esnext.promise`,`lib.esnext.promise.d.ts`],[`esnext.float16`,`lib.esnext.float16.d.ts`],[`esnext.error`,`lib.esnext.error.d.ts`],[`esnext.sharedmemory`,`lib.esnext.sharedmemory.d.ts`],[`decorators`,`lib.decorators.d.ts`],[`decorators.legacy`,`lib.decorators.legacy.d.ts`]],WP=UP.map(e=>e[0]),GP=new Map(UP),KP=[{name:`watchFile`,type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:G.Watch_and_Build_Modes,description:G.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:G.Watch_and_Build_Modes,description:G.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:G.Watch_and_Build_Modes,description:G.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:`synchronousWatchDirectory`,type:`boolean`,category:G.Watch_and_Build_Modes,description:G.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:oL},allowConfigDirTemplateSubstitution:!0,category:G.Watch_and_Build_Modes,description:G.Remove_a_list_of_directories_from_the_watch_process},{name:`excludeFiles`,type:`list`,element:{name:`excludeFile`,type:`string`,isFilePath:!0,extraValidation:oL},allowConfigDirTemplateSubstitution:!0,category:G.Watch_and_Build_Modes,description:G.Remove_a_list_of_files_from_the_watch_mode_s_processing}],qP=[{name:`help`,shortName:`h`,type:`boolean`,showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:G.Command_line_Options,description:G.Print_this_message,defaultValueDescription:!1},{name:`help`,shortName:`?`,type:`boolean`,isCommandLineOnly:!0,category:G.Command_line_Options,defaultValueDescription:!1},{name:`watch`,shortName:`w`,type:`boolean`,showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:G.Command_line_Options,description:G.Watch_input_files,defaultValueDescription:!1},{name:`preserveWatchOutput`,type:`boolean`,showInSimplifiedHelpView:!1,category:G.Output_Formatting,description:G.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:`listFiles`,type:`boolean`,category:G.Compiler_Diagnostics,description:G.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:`explainFiles`,type:`boolean`,category:G.Compiler_Diagnostics,description:G.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:`listEmittedFiles`,type:`boolean`,category:G.Compiler_Diagnostics,description:G.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:`pretty`,type:`boolean`,showInSimplifiedHelpView:!0,category:G.Output_Formatting,description:G.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:`traceResolution`,type:`boolean`,category:G.Compiler_Diagnostics,description:G.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:`diagnostics`,type:`boolean`,category:G.Compiler_Diagnostics,description:G.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:`extendedDiagnostics`,type:`boolean`,category:G.Compiler_Diagnostics,description:G.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:`generateCpuProfile`,type:`string`,isFilePath:!0,paramType:G.FILE_OR_DIRECTORY,category:G.Compiler_Diagnostics,description:G.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:`profile.cpuprofile`},{name:`generateTrace`,type:`string`,isFilePath:!0,paramType:G.DIRECTORY,category:G.Compiler_Diagnostics,description:G.Generates_an_event_trace_and_a_list_of_types},{name:`incremental`,shortName:`i`,type:`boolean`,category:G.Projects,description:G.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:G.false_unless_composite_is_set},{name:`declaration`,shortName:`d`,type:`boolean`,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:G.Emit,transpileOptionValue:void 0,description:G.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:G.false_unless_composite_is_set},{name:`declarationMap`,type:`boolean`,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:G.Emit,defaultValueDescription:!1,description:G.Create_sourcemaps_for_d_ts_files},{name:`emitDeclarationOnly`,type:`boolean`,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:G.Emit,description:G.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:`sourceMap`,type:`boolean`,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:G.Emit,defaultValueDescription:!1,description:G.Create_source_map_files_for_emitted_JavaScript_files},{name:`inlineSourceMap`,type:`boolean`,affectsBuildInfo:!0,category:G.Emit,description:G.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:`noCheck`,type:`boolean`,showInSimplifiedHelpView:!1,category:G.Compiler_Diagnostics,description:G.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:`noEmit`,type:`boolean`,showInSimplifiedHelpView:!0,category:G.Emit,description:G.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:`assumeChangesOnlyAffectDirectDependencies`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:G.Watch_and_Build_Modes,description:G.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:G.Command_line_Options,isCommandLineOnly:!0,description:G.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:G.Platform_specific}],JP={name:`target`,shortName:`t`,type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,es2024:11,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set([`es3`]),paramType:G.VERSION,showInSimplifiedHelpView:!0,category:G.Language_and_Environment,description:G.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},YP={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,node18:101,node20:102,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:G.KIND,showInSimplifiedHelpView:!0,category:G.Modules,description:G.Specify_what_module_code_is_generated,defaultValueDescription:void 0},XP=[{name:`all`,type:`boolean`,showInSimplifiedHelpView:!0,category:G.Command_line_Options,description:G.Show_all_compiler_options,defaultValueDescription:!1},{name:`version`,shortName:`v`,type:`boolean`,showInSimplifiedHelpView:!0,category:G.Command_line_Options,description:G.Print_the_compiler_s_version,defaultValueDescription:!1},{name:`init`,type:`boolean`,showInSimplifiedHelpView:!0,category:G.Command_line_Options,description:G.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:`project`,shortName:`p`,type:`string`,isFilePath:!0,showInSimplifiedHelpView:!0,category:G.Command_line_Options,paramType:G.FILE_OR_DIRECTORY,description:G.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:`showConfig`,type:`boolean`,showInSimplifiedHelpView:!0,category:G.Command_line_Options,isCommandLineOnly:!0,description:G.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:`listFilesOnly`,type:`boolean`,category:G.Command_line_Options,isCommandLineOnly:!0,description:G.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},JP,YP,{name:`lib`,type:`list`,element:{name:`lib`,type:GP,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:G.Language_and_Environment,description:G.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:`allowJs`,type:`boolean`,allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:G.JavaScript_Support,description:G.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:`checkJs`,type:`boolean`,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:G.JavaScript_Support,description:G.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:`jsx`,type:VP,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:G.KIND,showInSimplifiedHelpView:!0,category:G.Language_and_Environment,description:G.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:`outFile`,type:`string`,affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:G.FILE,showInSimplifiedHelpView:!0,category:G.Emit,description:G.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:G.DIRECTORY,showInSimplifiedHelpView:!0,category:G.Emit,description:G.Specify_an_output_folder_for_all_emitted_files},{name:`rootDir`,type:`string`,affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:G.LOCATION,category:G.Modules,description:G.Specify_the_root_folder_within_your_source_files,defaultValueDescription:G.Computed_from_the_list_of_input_files},{name:`composite`,type:`boolean`,affectsBuildInfo:!0,isTSConfigOnly:!0,category:G.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:G.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:`tsBuildInfoFile`,type:`string`,affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:G.FILE,category:G.Projects,transpileOptionValue:void 0,defaultValueDescription:`.tsbuildinfo`,description:G.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:`removeComments`,type:`boolean`,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:G.Emit,defaultValueDescription:!1,description:G.Disable_emitting_comments},{name:`importHelpers`,type:`boolean`,affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:G.Emit,description:G.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:G.Backwards_Compatibility,description:G.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:`downlevelIteration`,type:`boolean`,affectsEmit:!0,affectsBuildInfo:!0,category:G.Emit,description:G.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:`isolatedModules`,type:`boolean`,category:G.Interop_Constraints,description:G.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:`verbatimModuleSyntax`,type:`boolean`,affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Interop_Constraints,description:G.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:`isolatedDeclarations`,type:`boolean`,category:G.Interop_Constraints,description:G.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:`erasableSyntaxOnly`,type:`boolean`,category:G.Interop_Constraints,description:G.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:`libReplacement`,type:`boolean`,affectsProgramStructure:!0,category:G.Language_and_Environment,description:G.Enable_lib_replacement,defaultValueDescription:!0},{name:`strict`,type:`boolean`,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:G.Type_Checking,description:G.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:`noImplicitAny`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:G.Type_Checking,description:G.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:G.false_unless_strict_is_set},{name:`strictNullChecks`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:G.Type_Checking,description:G.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:G.false_unless_strict_is_set},{name:`strictFunctionTypes`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:G.Type_Checking,description:G.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:G.false_unless_strict_is_set},{name:`strictBindCallApply`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:G.Type_Checking,description:G.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:G.false_unless_strict_is_set},{name:`strictPropertyInitialization`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:G.Type_Checking,description:G.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:G.false_unless_strict_is_set},{name:`strictBuiltinIteratorReturn`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:G.Type_Checking,description:G.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:G.false_unless_strict_is_set},{name:`noImplicitThis`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:G.Type_Checking,description:G.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:G.false_unless_strict_is_set},{name:`useUnknownInCatchVariables`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:G.Type_Checking,description:G.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:G.false_unless_strict_is_set},{name:`alwaysStrict`,type:`boolean`,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:G.Type_Checking,description:G.Ensure_use_strict_is_always_emitted,defaultValueDescription:G.false_unless_strict_is_set},{name:`noUnusedLocals`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Type_Checking,description:G.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:`noUnusedParameters`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Type_Checking,description:G.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:`exactOptionalPropertyTypes`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Type_Checking,description:G.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:`noImplicitReturns`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Type_Checking,description:G.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:G.Type_Checking,description:G.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:`noUncheckedIndexedAccess`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Type_Checking,description:G.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:`noImplicitOverride`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Type_Checking,description:G.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:G.Type_Checking,description:G.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:`moduleResolution`,type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set([`node`]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:G.STRATEGY,category:G.Modules,description:G.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:G.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:`baseUrl`,type:`string`,affectsModuleResolution:!0,isFilePath:!0,category:G.Modules,description:G.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:`paths`,type:`object`,affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:G.Modules,description:G.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:`rootDirs`,type:`list`,isTSConfigOnly:!0,element:{name:`rootDirs`,type:`string`,isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:G.Modules,description:G.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:G.Computed_from_the_list_of_input_files},{name:`typeRoots`,type:`list`,element:{name:`typeRoots`,type:`string`,isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:G.Modules,description:G.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:`types`,type:`list`,element:{name:`types`,type:`string`},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:G.Modules,description:G.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:G.Interop_Constraints,description:G.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:G.module_system_or_esModuleInterop},{name:`esModuleInterop`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:G.Interop_Constraints,description:G.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:`preserveSymlinks`,type:`boolean`,category:G.Interop_Constraints,description:G.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:G.Modules,description:G.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:`moduleSuffixes`,type:`list`,element:{name:`suffix`,type:`string`},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:G.Modules,description:G.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:`allowImportingTsExtensions`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Modules,description:G.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:`rewriteRelativeImportExtensions`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Modules,description:G.Rewrite_ts_tsx_mts_and_cts_file_extensions_in_relative_import_paths_to_their_JavaScript_equivalent_in_output_files,defaultValueDescription:!1},{name:`resolvePackageJsonExports`,type:`boolean`,affectsModuleResolution:!0,category:G.Modules,description:G.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:G.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:`resolvePackageJsonImports`,type:`boolean`,affectsModuleResolution:!0,category:G.Modules,description:G.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:G.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:`customConditions`,type:`list`,element:{name:`condition`,type:`string`},affectsModuleResolution:!0,category:G.Modules,description:G.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:`noUncheckedSideEffectImports`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Modules,description:G.Check_side_effect_imports,defaultValueDescription:!1},{name:`sourceRoot`,type:`string`,affectsEmit:!0,affectsBuildInfo:!0,paramType:G.LOCATION,category:G.Emit,description:G.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:`mapRoot`,type:`string`,affectsEmit:!0,affectsBuildInfo:!0,paramType:G.LOCATION,category:G.Emit,description:G.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:`inlineSources`,type:`boolean`,affectsEmit:!0,affectsBuildInfo:!0,category:G.Emit,description:G.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:`experimentalDecorators`,type:`boolean`,affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Language_and_Environment,description:G.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:`emitDecoratorMetadata`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:G.Language_and_Environment,description:G.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:`jsxFactory`,type:`string`,category:G.Language_and_Environment,description:G.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:G.Language_and_Environment,description:G.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:`React.Fragment`},{name:`jsxImportSource`,type:`string`,affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:G.Language_and_Environment,description:G.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:G.Modules,description:G.Enable_importing_json_files,defaultValueDescription:!1},{name:`allowArbitraryExtensions`,type:`boolean`,affectsProgramStructure:!0,category:G.Modules,description:G.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:G.Backwards_Compatibility,paramType:G.FILE,transpileOptionValue:void 0,description:G.Deprecated_setting_Use_outFile_instead},{name:`reactNamespace`,type:`string`,affectsEmit:!0,affectsBuildInfo:!0,category:G.Language_and_Environment,description:G.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:`skipDefaultLibCheck`,type:`boolean`,affectsBuildInfo:!0,category:G.Completeness,description:G.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:`charset`,type:`string`,category:G.Backwards_Compatibility,description:G.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:G.Emit,description:G.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:G.NEWLINE,category:G.Emit,description:G.Set_the_newline_character_for_emitting_files,defaultValueDescription:`lf`},{name:`noErrorTruncation`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Output_Formatting,description:G.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:`noLib`,type:`boolean`,category:G.Language_and_Environment,affectsProgramStructure:!0,description:G.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:`noResolve`,type:`boolean`,affectsModuleResolution:!0,category:G.Modules,description:G.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:G.Emit,description:G.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:`disableSizeLimit`,type:`boolean`,affectsProgramStructure:!0,category:G.Editor_Support,description:G.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:G.Projects,description:G.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:`disableSolutionSearching`,type:`boolean`,isTSConfigOnly:!0,category:G.Projects,description:G.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:`disableReferencedProjectLoad`,type:`boolean`,isTSConfigOnly:!0,category:G.Projects,description:G.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:`noImplicitUseStrict`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Backwards_Compatibility,description:G.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:`noEmitHelpers`,type:`boolean`,affectsEmit:!0,affectsBuildInfo:!0,category:G.Emit,description:G.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:`noEmitOnError`,type:`boolean`,affectsEmit:!0,affectsBuildInfo:!0,category:G.Emit,transpileOptionValue:void 0,description:G.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:`preserveConstEnums`,type:`boolean`,affectsEmit:!0,affectsBuildInfo:!0,category:G.Emit,description:G.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:`declarationDir`,type:`string`,affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:G.DIRECTORY,category:G.Emit,transpileOptionValue:void 0,description:G.Specify_the_output_directory_for_generated_declaration_files},{name:`skipLibCheck`,type:`boolean`,affectsBuildInfo:!0,category:G.Completeness,description:G.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:`allowUnusedLabels`,type:`boolean`,affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Type_Checking,description:G.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:`allowUnreachableCode`,type:`boolean`,affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Type_Checking,description:G.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:`suppressExcessPropertyErrors`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Backwards_Compatibility,description:G.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:`suppressImplicitAnyIndexErrors`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:G.Backwards_Compatibility,description:G.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:`forceConsistentCasingInFileNames`,type:`boolean`,affectsModuleResolution:!0,category:G.Interop_Constraints,description:G.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:`maxNodeModuleJsDepth`,type:`number`,affectsModuleResolution:!0,category:G.JavaScript_Support,description:G.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:G.Backwards_Compatibility,description:G.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:`useDefineForClassFields`,type:`boolean`,affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:G.Language_and_Environment,description:G.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:G.true_for_ES2022_and_above_including_ESNext},{name:`preserveValueImports`,type:`boolean`,affectsEmit:!0,affectsBuildInfo:!0,category:G.Backwards_Compatibility,description:G.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:`keyofStringsOnly`,type:`boolean`,category:G.Backwards_Compatibility,description:G.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:G.Specify_a_list_of_language_service_plugins_to_include,category:G.Editor_Support},{name:`moduleDetection`,type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:G.Control_what_method_is_used_to_detect_module_format_JS_files,category:G.Language_and_Environment,defaultValueDescription:G.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}],ZP=[...qP,...XP],QP=ZP.filter(e=>!!e.affectsSemanticDiagnostics),$P=ZP.filter(e=>!!e.affectsEmit),eF=ZP.filter(e=>!!e.affectsDeclarationPath),tF=ZP.filter(e=>!!e.affectsModuleResolution),nF=ZP.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),rF=ZP.filter(e=>!!e.affectsProgramStructure),iF=ZP.filter(e=>qe(e,`transpileOptionValue`)),aF=ZP.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),Ute=KP.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),oF=ZP.filter(sF);function sF(e){return!gt(e.type)}var cF={name:`build`,type:`boolean`,shortName:`b`,showInSimplifiedHelpView:!0,category:G.Command_line_Options,description:G.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},lF=[cF,{name:`verbose`,shortName:`v`,category:G.Command_line_Options,description:G.Enable_verbose_logging,type:`boolean`,defaultValueDescription:!1},{name:`dry`,shortName:`d`,category:G.Command_line_Options,description:G.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:`boolean`,defaultValueDescription:!1},{name:`force`,shortName:`f`,category:G.Command_line_Options,description:G.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:`boolean`,defaultValueDescription:!1},{name:`clean`,category:G.Command_line_Options,description:G.Delete_the_outputs_of_all_projects,type:`boolean`,defaultValueDescription:!1},{name:`stopBuildOnErrors`,category:G.Command_line_Options,description:G.Skip_building_downstream_projects_on_error_in_upstream_project,type:`boolean`,defaultValueDescription:!1}],uF=[...qP,...lF],dF=[{name:`enable`,type:`boolean`,defaultValueDescription:!1},{name:`include`,type:`list`,element:{name:`include`,type:`string`}},{name:`exclude`,type:`list`,element:{name:`exclude`,type:`string`}},{name:`disableFilenameBasedTypeAcquisition`,type:`boolean`,defaultValueDescription:!1}];function fF(e){let t=new Map,n=new Map;return d(e,e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)}),{optionsNameMap:t,shortOptionNames:n}}var Wte;function pF(){return Wte||=fF(ZP)}var mF={diagnostic:G.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:kF},hF={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function gF(e){return _F(e,bS)}function _F(e,t){let n=$e(e.type.keys()),r=(e.deprecatedKeys?n.filter(t=>!e.deprecatedKeys.has(t)):n).map(e=>`'${e}'`).join(`, `);return t(G.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function vF(e,t,n){return ZI(e,(t??``).trim(),n)}function yF(e,t=``,n){if(t=t.trim(),pn(t,`-`))return;if(e.type===`listOrElement`&&!t.includes(`,`))return XI(e,t,n);if(t===``)return[];let r=t.split(`,`);switch(e.element.type){case`number`:return M(r,t=>XI(e.element,parseInt(t),n));case`string`:return M(r,t=>XI(e.element,t||``,n));case`boolean`:case`object`:return H.fail(`List of ${e.element.type} is not yet supported.`);default:return M(r,t=>vF(e.element,t,n))}}function bF(e){return e.name}function xF(e,t,n,r,i){let a=t.alternateMode?.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(a)return qI(i,r,a===cF?G.Option_build_must_be_the_first_command_line_argument:t.alternateMode.diagnostic,e);let o=Qt(e,t.optionDeclarations,bF);return o?qI(i,r,t.unknownDidYouMeanDiagnostic,n||e,o.name):qI(i,r,t.unknownOptionDiagnostic,n||e)}function SF(e,t,n){let r={},i,a=[],o=[];return s(t),{options:r,watchOptions:i,fileNames:a,errors:o};function s(t){let n=0;for(;nNa.readFile(e)));if(!gt(t)){o.push(t);return}let r=[],i=0;for(;;){for(;i=t.length)break;let n=i;if(t.charCodeAt(n)===34){for(i++;i32;)i++;r.push(t.substring(n,i))}}s(r)}}function CF(e,t,n,r,i,a){if(r.isTSConfigOnly){let n=e[t];n===`null`?(i[r.name]=void 0,t++):r.type===`boolean`?n===`false`?(i[r.name]=XI(r,!1,a),t++):(n===`true`&&t++,a.push(bS(G.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(a.push(bS(G.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!pn(n,`-`)&&t++)}else if(!e[t]&&r.type!==`boolean`&&a.push(bS(n.optionTypeMismatchDiagnostic,r.name,tI(r))),e[t]!==`null`)switch(r.type){case`number`:i[r.name]=XI(r,parseInt(e[t]),a),t++;break;case`boolean`:let n=e[t];i[r.name]=XI(r,n!==`false`,a),(n===`false`||n===`true`)&&t++;break;case`string`:i[r.name]=XI(r,e[t]||``,a),t++;break;case`list`:let o=yF(r,e[t],a);i[r.name]=o||[],o&&t++;break;case`listOrElement`:H.fail(`listOrElement not supported here`);break;default:i[r.name]=vF(r,e[t],a),t++;break}else i[r.name]=void 0,t++;return t}var wF={alternateMode:mF,getOptionsNameMap:pF,optionDeclarations:ZP,unknownOptionDiagnostic:G.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:G.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:G.Compiler_option_0_expects_an_argument};function TF(e,t){return SF(wF,e,t)}function EF(e,t){return DF(pF,e,t)}function DF(e,t,n=!1){t=t.toLowerCase();let{optionsNameMap:r,shortOptionNames:i}=e();if(n){let e=i.get(t);e!==void 0&&(t=e)}return r.get(t)}var OF;function kF(){return OF||=fF(uF)}var AF={alternateMode:{diagnostic:G.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:pF},getOptionsNameMap:kF,optionDeclarations:uF,unknownOptionDiagnostic:G.Unknown_build_option_0,unknownDidYouMeanDiagnostic:G.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:G.Build_option_0_requires_a_value_of_type_1};function jF(e){let{options:t,watchOptions:n,fileNames:r,errors:i}=SF(AF,e),a=t;return r.length===0&&r.push(`.`),a.clean&&a.force&&i.push(bS(G.Options_0_and_1_cannot_be_combined,`clean`,`force`)),a.clean&&a.verbose&&i.push(bS(G.Options_0_and_1_cannot_be_combined,`clean`,`verbose`)),a.clean&&a.watch&&i.push(bS(G.Options_0_and_1_cannot_be_combined,`clean`,`watch`)),a.watch&&a.dry&&i.push(bS(G.Options_0_and_1_cannot_be_combined,`watch`,`dry`)),{buildOptions:a,watchOptions:n,projects:r,errors:i}}function MF(e,...t){return yt(bS(e,...t).messageText,gt)}function NF(e,t,n,r,i,a){let o=LF(e,e=>n.readFile(e));if(!gt(o)){n.onUnRecoverableConfigFileDiagnostic(o);return}let s=vP(e,o),c=n.getCurrentDirectory();return s.path=yo(e,c,ln(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,hI(s,n,po($a(e),c),t,po(e,c),void 0,a,r,i)}function PF(e,t){let n=LF(e,t);return gt(n)?FF(e,n):{config:{},error:n}}function FF(e,t){let n=vP(e,t);return{config:QF(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function IF(e,t){let n=LF(e,t);return gt(n)?vP(e,n):{fileName:e,parseDiagnostics:[n]}}function LF(e,t){let n;try{n=t(e)}catch(t){return bS(G.Cannot_read_file_0_Colon_1,e,t.message)}return n===void 0?bS(G.Cannot_read_file_0,e):n}function RF(e){return nt(e,bF)}var zF={optionDeclarations:dF,unknownOptionDiagnostic:G.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:G.Unknown_type_acquisition_option_0_Did_you_mean_1},BF;function VF(){return BF||=fF(KP)}var HF={getOptionsNameMap:VF,optionDeclarations:KP,unknownOptionDiagnostic:G.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:G.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:G.Watch_option_0_requires_a_value_of_type_1},UF;function WF(){return UF||=RF(ZP)}var Gte;function GF(){return Gte||=RF(KP)}var Kte;function KF(){return Kte||=RF(dF)}var qF={name:`extends`,type:`listOrElement`,element:{name:`extends`,type:`string`},category:G.File_Management,disallowNullOrUndefined:!0},JF={name:`compilerOptions`,type:`object`,elementOptions:WF(),extraKeyDiagnostics:wF},YF={name:`watchOptions`,type:`object`,elementOptions:GF(),extraKeyDiagnostics:HF},XF={name:`typeAcquisition`,type:`object`,elementOptions:KF(),extraKeyDiagnostics:zF},ZF;function qte(){return ZF===void 0&&(ZF={name:void 0,type:`object`,elementOptions:RF([JF,YF,XF,qF,{name:`references`,type:`list`,element:{name:`references`,type:`object`},category:G.Projects},{name:`files`,type:`list`,element:{name:`files`,type:`string`},category:G.File_Management},{name:`include`,type:`list`,element:{name:`include`,type:`string`},category:G.File_Management,defaultValueDescription:G.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:`exclude`,type:`list`,element:{name:`exclude`,type:`string`},category:G.File_Management,defaultValueDescription:G.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},BP])}),ZF}function QF(e,t,n){let r=e.statements[0]?.expression;if(r&&r.kind!==211){if(t.push(gm(e,r,G.The_root_value_of_a_0_file_must_be_an_object,eo(e.fileName)===`jsconfig.json`?`jsconfig.json`:`tsconfig.json`)),xk(r)){let i=y(r.elements,Sk);if(i)return eI(e,i,t,!0,n)}return{}}return eI(e,r,t,!0,n)}function $F(e,t){return eI(e,e.statements[0]?.expression,t,!0,void 0)}function eI(e,t,n,r,i){if(!t)return r?{}:void 0;return s(t,i?.rootOptions);function a(t,a){let o=r?{}:void 0;for(let l of t.properties){if(l.kind!==304){n.push(gm(e,l,G.Property_assignment_expected));continue}l.questionToken&&n.push(gm(e,l.questionToken,G.The_0_modifier_can_only_be_used_in_TypeScript_files,`?`)),c(l.name)||n.push(gm(e,l.name,G.String_literal_with_double_quotes_expected));let t=um(l.name)?void 0:fm(l.name),u=t&&Wc(t),d=u?(a?.elementOptions)?.get(u):void 0,f=s(l.initializer,d);u!==void 0&&(r&&(o[u]=f),i?.onPropertySet(u,f,l,a,d))}return o}function o(e,t){if(!r){e.forEach(e=>s(e,t));return}return E(e.map(e=>s(e,t)),e=>e!==void 0)}function s(t,r){switch(t.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return c(t)||n.push(gm(e,t,G.String_literal_with_double_quotes_expected)),t.text;case 9:return Number(t.text);case 225:if(t.operator!==41||t.operand.kind!==9)break;return-Number(t.operand.text);case 211:return a(t,r);case 210:return o(t.elements,r&&r.element)}r?n.push(gm(e,t,G.Compiler_option_0_requires_a_value_of_type_1,r.name,tI(r))):n.push(gm(e,t,G.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function c(t){return tO(t)&&pg(t,e)}}function tI(e){return e.type===`listOrElement`?`${tI(e.element)} or Array`:e.type===`list`?`Array`:gt(e.type)?e.type:`string`}function nI(e,t){if(e){if(_I(t))return!e.disallowNullOrUndefined;if(e.type===`list`)return mt(t);if(e.type===`listOrElement`)return mt(t)||nI(e.element,t);let n=gt(e.type)?e.type:`string`;return typeof t===n}return!1}function rI(e,t,n){let r=ln(n.useCaseSensitiveFileNames),i=k(E(e.fileNames,e.options.configFile?.configFileSpecs?.validatedIncludeSpecs?Jte(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):St),e=>Fo(po(t,n.getCurrentDirectory()),po(e,n.getCurrentDirectory()),r)),a={configFilePath:po(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},o=lI(e.options,a),s=e.watchOptions&&uI(e.watchOptions),c={compilerOptions:{...aI(o),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:s&&aI(s),references:k(e.projectReferences,e=>({...e,path:e.originalPath?e.originalPath:``,originalPath:void 0})),files:u(i)?i:void 0,...e.options.configFile?.configFileSpecs?{include:oI(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},l=new Set(o.keys()),d={};for(let t in LS)!l.has(t)&&iI(t,l)&&LS[t].computeValue(e.options)!==LS[t].computeValue({})&&(d[t]=LS[t].computeValue(e.options));return et(c.compilerOptions,aI(lI(d,a))),c}function iI(e,t){let n=new Set;return r(e);function r(e){return Jx(n,e)?F(LS[e]?.dependencies,e=>t.has(e)||r(e)):!1}}function aI(e){return Object.fromEntries(e)}function oI(e){if(u(e)&&(u(e)!==1||e[0]!==yI))return e}function Jte(e,t,n,r){if(!t)return St;let i=IC(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),a=i.excludePattern&&LC(i.excludePattern,r.useCaseSensitiveFileNames),o=i.includeFilePattern&&LC(i.includeFilePattern,r.useCaseSensitiveFileNames);return o?a?e=>!(o.test(e)&&!a.test(e)):e=>!o.test(e):a?e=>a.test(e):St}function sI(e){switch(e.type){case`string`:case`number`:case`boolean`:case`object`:return;case`list`:case`listOrElement`:return sI(e.element);default:return e.type}}function cI(e,t){return Mf(t,(t,n)=>{if(t===e)return n})}function lI(e,t){return dI(e,pF(),t)}function uI(e){return dI(e,VF())}function dI(e,{optionsNameMap:t},n){let r=new Map,i=n&&ln(n.useCaseSensitiveFileNames);for(let a in e)if(qe(e,a)){if(t.has(a)&&(t.get(a).category===G.Command_line_Options||t.get(a).category===G.Output_Formatting))continue;let o=e[a],s=t.get(a.toLowerCase());if(s){H.assert(s.type!==`listOrElement`);let e=sI(s);e?s.type===`list`?r.set(a,o.map(t=>cI(t,e))):r.set(a,cI(o,e)):n&&s.isFilePath?r.set(a,Fo(n.configFilePath,po(o,$a(n.configFilePath)),i)):n&&s.type===`list`&&s.element.isFilePath?r.set(a,o.map(e=>Fo(n.configFilePath,po(e,$a(n.configFilePath)),i))):r.set(a,o)}}return r}function fI(e,t){let n=[],r=Object.keys(e).filter(e=>e!==`init`&&e!==`help`&&e!==`watch`);if(n.push(`{`),n.push(` // ${mS(G.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)}`),n.push(` "compilerOptions": {`),a(G.File_Layout),o(`rootDir`,`./src`,`optional`),o(`outDir`,`./dist`,`optional`),i(),a(G.Environment_Settings),a(G.See_also_https_Colon_Slash_Slashaka_ms_Slashtsconfig_Slashmodule),o(`module`,199),o(`target`,99),o(`types`,[]),e.lib&&o(`lib`,e.lib),a(G.For_nodejs_Colon),n.push(` // "lib": ["esnext"],`),n.push(` // "types": ["node"],`),a(G.and_npm_install_D_types_Slashnode),i(),a(G.Other_Outputs),o(`sourceMap`,!0),o(`declaration`,!0),o(`declarationMap`,!0),i(),a(G.Stricter_Typechecking_Options),o(`noUncheckedIndexedAccess`,!0),o(`exactOptionalPropertyTypes`,!0),i(),a(G.Style_Options),o(`noImplicitReturns`,!0,`optional`),o(`noImplicitOverride`,!0,`optional`),o(`noUnusedLocals`,!0,`optional`),o(`noUnusedParameters`,!0,`optional`),o(`noFallthroughCasesInSwitch`,!0,`optional`),o(`noPropertyAccessFromIndexSignature`,!0,`optional`),i(),a(G.Recommended_Options),o(`strict`,!0),o(`jsx`,4),o(`verbatimModuleSyntax`,!0),o(`isolatedModules`,!0),o(`noUncheckedSideEffectImports`,!0),o(`moduleDetection`,3),o(`skipLibCheck`,!0),r.length>0)for(i();r.length>0;)o(r[0],e[r[0]]);function i(){n.push(``)}function a(e){n.push(` // ${mS(e)}`)}function o(t,i,a=`never`){let o=r.indexOf(t);o>=0&&r.splice(o,1);let c;c=a===`always`?!0:a===`never`?!1:!qe(e,t);let l=e[t]??i;c?n.push(` // "${t}": ${s(t,l)},`):n.push(` "${t}": ${s(t,l)},`)}function s(e,t){let n=ZP.filter(t=>t.name===e)[0];n||H.fail(`No option named ${e}?`);let r=n.type instanceof Map?n.type:void 0;if(mt(t)){let e=`element`in n&&n.element.type instanceof Map?n.element.type:void 0;return`[${t.map(t=>c(t,e)).join(`, `)}]`}else return c(t,r)}function c(e,t){return t&&(e=cI(e,t)??H.fail(`No matching value of ${e}`)),JSON.stringify(e)}return n.push(` }`),n.push(`}`),n.push(``),n.join(t)}function pI(e,t){let n={},r=pF().optionsNameMap;for(let i in e)qe(e,i)&&(n[i]=Yte(r.get(i.toLowerCase()),e[i],t));return n.configFilePath&&=t(n.configFilePath),n}function Yte(e,t,n){if(e&&!_I(t)){if(e.type===`list`){let r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);H.assert(e.type!==`listOrElement`)}return t}function mI(e,t,n,r,i,a,o,s,c){return bI(e,void 0,t,n,r,c,i,a,o,s)}function hI(e,t,n,r,i,a,o,s,c){var l,u;(l=Ar)==null||l.push(Ar.Phase.Parse,`parseJsonSourceFileConfigFileContent`,{path:e.fileName});let d=bI(void 0,e,t,n,r,c,i,a,o,s);return(u=Ar)==null||u.pop(),d}function gI(e,t){t&&Object.defineProperty(e,`configFile`,{enumerable:!1,writable:!1,value:t})}function _I(e){return e==null}function vI(e,t){return $a(po(e,t))}var yI=`**/*`;function bI(e,t,n,r,i={},a,o,s=[],c=[],l){H.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let u=[],d=PI(e,t,n,r,o,s,u,l),{raw:f}=d,p=SI(ct(i,d.options||{}),aF,r),m=xI(a&&d.watchOptions?ct(a,d.watchOptions):d.watchOptions||a,r);p.configFilePath=o&&so(o);let h=mo(o?vI(o,r):r),g=_();return t&&(t.configFileSpecs=g),gI(p,t),{options:p,watchOptions:m,fileNames:y(h),projectReferences:b(h),typeAcquisition:d.typeAcquisition||UI(),raw:f,errors:u,wildcardDirectories:ene(g,h,n.useCaseSensitiveFileNames),compileOnSave:!!f.compileOnSave};function _(){let e=C(`references`,e=>typeof e==`object`,`object`),n=x(S(`files`));if(n){let r=e===`no-prop`||mt(e)&&e.length===0,i=qe(f,`extends`);if(n.length===0&&r&&!i)if(t){let e=o||`tsconfig.json`,n=G.The_files_list_in_config_file_0_is_empty,r=qI(t,yh(t,`files`,e=>e.initializer),n,e);u.push(r)}else w(G.The_files_list_in_config_file_0_is_empty,o||`tsconfig.json`)}let r=x(S(`include`)),i=S(`exclude`),a=!1,s=x(i);if(i===`no-prop`){let e=p.outDir,t=p.declarationDir;(e||t)&&(s=E([e,t],e=>!!e))}n===void 0&&r===void 0&&(r=[yI],a=!0);let c,l,d,m;r&&(c=aL(r,u,!0,t,`include`),d=EI(c,h)||c),s&&(l=aL(s,u,!1,t,`exclude`),m=EI(l,h)||l);let g=E(n,gt),_=EI(g,h)||g;return{filesSpecs:n,includeSpecs:r,excludeSpecs:s,validatedFilesSpec:_,validatedIncludeSpecs:d,validatedExcludeSpecs:m,validatedFilesSpecBeforeSubstitution:g,validatedIncludeSpecsBeforeSubstitution:c,validatedExcludeSpecsBeforeSubstitution:l,isDefaultIncludeSpec:a}}function y(e){let t=eL(g,e,p,n,c);return kI(t,jI(f),s)&&u.push(OI(g,o)),t}function b(e){let t,n=C(`references`,e=>typeof e==`object`,`object`);if(mt(n))for(let r of n)typeof r.path==`string`?(t||=[]).push({path:po(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular}):w(G.Compiler_option_0_requires_a_value_of_type_1,`reference.path`,`string`);return t}function x(e){return mt(e)?e:void 0}function S(e){return C(e,gt,`string`)}function C(e,n,r){if(qe(f,e)&&!_I(f[e]))if(mt(f[e])){let i=f[e];return!t&&!v(i,n)&&u.push(bS(G.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}else return w(G.Compiler_option_0_requires_a_value_of_type_1,e,`Array`),`not-array`;return`no-prop`}function w(e,...n){t||u.push(bS(e,...n))}}function xI(e,t){return SI(e,Ute,t)}function SI(e,t,n){if(!e)return e;let r;for(let r of t)if(e[r.name]!==void 0){let t=e[r.name];switch(r.type){case`string`:H.assert(r.isFilePath),wI(t)&&i(r,TI(t,n));break;case`list`:H.assert(r.element.isFilePath);let e=EI(t,n);e&&i(r,e);break;case`object`:H.assert(r.name===`paths`);let a=DI(t,n);a&&i(r,a);break;default:H.fail(`option type not supported`)}}return r||e;function i(t,n){(r??=et({},e))[t.name]=n}}var CI="${configDir}";function wI(e){return gt(e)&&pn(e,CI,!0)}function TI(e,t){return po(e.replace(CI,`./`),t)}function EI(e,t){if(!e)return e;let n;return e.forEach((r,i)=>{wI(r)&&((n??=e.slice())[i]=TI(r,t))}),n}function DI(e,t){let n;return Ye(e).forEach(r=>{if(!mt(e[r]))return;let i=EI(e[r],t);i&&((n??=et({},e))[r]=i)}),n}function Xte(e){return e.code===G.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function OI({includeSpecs:e,excludeSpecs:t},n){return bS(G.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||`tsconfig.json`,JSON.stringify(e||[]),JSON.stringify(t||[]))}function kI(e,t,n){return e.length===0&&t&&(!n||n.length===0)}function AI(e){return!e.fileNames.length&&qe(e.raw,`references`)}function jI(e){return!qe(e,`files`)&&!qe(e,`references`)}function MI(e,t,n,r,i){let a=r.length;return kI(e,i)?r.push(OI(n,t)):D(r,e=>!Xte(e)),a!==r.length}function NI(e){return!!e.options}function PI(e,t,n,r,i,a,o,s){r=so(r);let c=po(i||``,r);if(a.includes(c))return o.push(bS(G.Circularity_detected_while_resolving_configuration_Colon_0,[...a,c].join(` -> `))),{raw:e||$F(t,o)};let l=e?FI(e,n,r,i,o):LI(t,n,r,i,o);if(l.options?.paths&&(l.options.pathsBasePath=r),l.extendedConfigPath){a=a.concat([c]);let e={options:{}};gt(l.extendedConfigPath)?u(e,l.extendedConfigPath):l.extendedConfigPath.forEach(t=>u(e,t)),e.include&&(l.raw.include=e.include),e.exclude&&(l.raw.exclude=e.exclude),e.files&&(l.raw.files=e.files),l.raw.compileOnSave===void 0&&e.compileOnSave&&(l.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=$e(e.extendedSourceFiles.keys())),l.options=et(e.options,l.options),l.watchOptions=l.watchOptions&&e.watchOptions?d(e,l.watchOptions):l.watchOptions||e.watchOptions}return l;function u(e,i){let c=Zte(t,i,n,a,o,s,e);if(c&&NI(c)){let t=c.raw,a,o=o=>{l.raw[o]||t[o]&&(e[o]=k(t[o],e=>wI(e)||Va(e)?e:lo(a||=Po($a(i),r,ln(n.useCaseSensitiveFileNames)),e)))};o(`include`),o(`exclude`),o(`files`),t.compileOnSave!==void 0&&(e.compileOnSave=t.compileOnSave),et(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?d(e,c.watchOptions):e.watchOptions||c.watchOptions}}function d(e,t){return e.watchOptionsCopied?et(e.watchOptions,t):(e.watchOptionsCopied=!0,et({},e.watchOptions,t))}}function FI(e,t,n,r,i){qe(e,`excludes`)&&i.push(bS(G.Unknown_option_excludes_Did_you_mean_exclude));let a=HI(e.compilerOptions,n,i,r),o=WI(e.typeAcquisition,n,i,r),s=GI(e.watchOptions,n,i);return e.compileOnSave=Qte(e,n,i),{raw:e,options:a,watchOptions:s,typeAcquisition:o,extendedConfigPath:e.extends||e.extends===``?II(e.extends,t,n,r,i):void 0}}function II(e,t,n,r,i,a,o,s){let c,l=r?vI(r,n):n;if(gt(e))c=RI(e,t,l,i,o,s);else if(mt(e)){c=[];for(let r=0;re.name===d)&&(l=I(l,p.name))))}}function RI(e,t,n,r,i,a){if(e=so(e),Va(e)||pn(e,`./`)||pn(e,`../`)){let o=po(e,n);if(!t.fileExists(o)&&!$t(o,`.json`)&&(o=`${o}.json`,!t.fileExists(o))){r.push(qI(a,i,G.File_0_not_found,e));return}return o}let o=oR(e,lo(n,`tsconfig.json`),t);if(o.resolvedModule)return o.resolvedModule.resolvedFileName;e===``?r.push(qI(a,i,G.Compiler_option_0_cannot_be_given_an_empty_string,`extends`)):r.push(qI(a,i,G.File_0_not_found,e))}function Zte(e,t,n,r,i,a,o){let s=n.useCaseSensitiveFileNames?t:Dt(t),c,l,u;if(a&&(c=a.get(s))?{extendedResult:l,extendedConfig:u}=c:(l=IF(t,e=>n.readFile(e)),l.parseDiagnostics.length||(u=PI(void 0,l,n,$a(t),eo(t),r,i,a)),a&&a.set(s,{extendedResult:l,extendedConfig:u})),e&&((o.extendedSourceFiles??=new Set).add(l.fileName),l.extendedSourceFiles))for(let e of l.extendedSourceFiles)o.extendedSourceFiles.add(e);if(l.parseDiagnostics.length){i.push(...l.parseDiagnostics);return}return u}function Qte(e,t,n){if(!qe(e,BP.name))return!1;let r=JI(BP,e.compileOnSave,t,n);return typeof r==`boolean`&&r}function zI(e,t,n){let r=[];return{options:HI(e,t,r,n),errors:r}}function BI(e,t,n){let r=[];return{options:WI(e,t,r,n),errors:r}}function VI(e){return e&&eo(e)===`jsconfig.json`?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function HI(e,t,n,r){let i=VI(r);return KI(WF(),e,t,i,wF,n),r&&(i.configFilePath=so(r)),i}function UI(e){return{enable:!!e&&eo(e)===`jsconfig.json`,include:[],exclude:[]}}function WI(e,t,n,r){let i=UI(r);return KI(KF(),e,t,i,zF,n),i}function GI(e,t,n){return KI(GF(),e,t,void 0,HF,n)}function KI(e,t,n,r,i,a){if(t){for(let o in t){let s=e.get(o);s?(r||={})[s.name]=JI(s,t[o],n,a):a.push(xF(o,i))}return r}}function qI(e,t,n,...r){return e&&t?gm(e,t,n,...r):bS(n,...r)}function JI(e,t,n,r,i,a,o){if(e.isCommandLineOnly){r.push(qI(o,i?.name,G.Option_0_can_only_be_specified_on_command_line,e.name));return}if(nI(e,t)){let s=e.type;if(s===`list`&&mt(t))return QI(e,t,n,r,i,a,o);if(s===`listOrElement`)return mt(t)?QI(e,t,n,r,i,a,o):JI(e.element,t,n,r,i,a,o);if(!gt(e.type))return ZI(e,t,r,a,o);let c=XI(e,t,r,a,o);return _I(c)?c:YI(e,n,c)}else r.push(qI(o,a,G.Compiler_option_0_requires_a_value_of_type_1,e.name,tI(e)))}function YI(e,t,n){return e.isFilePath&&(n=so(n),n=wI(n)?n:po(n,t),n===``&&(n=`.`)),n}function XI(e,t,n,r,i){if(_I(t))return;let a=e.extraValidation?.call(e,t);if(!a)return t;n.push(qI(i,r,...a))}function ZI(e,t,n,r,i){if(_I(t))return;let a=t.toLowerCase(),o=e.type.get(a);if(o!==void 0)return XI(e,o,n,r,i);n.push(_F(e,(e,...t)=>qI(i,r,e,...t)))}function QI(e,t,n,r,i,a,o){return E(k(t,(t,s)=>JI(e.element,t,n,r,i,a?.elements[s],o)),t=>e.listPreserveFalsyValues?!0:!!t)}var $I=/(?:^|\/)\*\*\/?$/,$te=/^[^*?]*(?=\/[^/]*[*?])/;function eL(e,t,n,r,i=c){t=mo(t);let a=ln(r.useCaseSensitiveFileNames),o=new Map,s=new Map,l=new Map,{validatedFilesSpec:u,validatedIncludeSpecs:d,validatedExcludeSpecs:f}=e,p=ZC(n,i),m=QC(n,p);if(u)for(let e of u){let n=po(e,t);o.set(a(n),n)}let h;if(d&&d.length>0)for(let e of r.readDirectory(t,ne(m),f,d,void 0)){if(qa(e,`.json`)){if(!h){let e=k(jC(d.filter(e=>$t(e,`.json`)),t,`files`),e=>`^${e}$`);h=e?e.map(e=>LC(e,r.useCaseSensitiveFileNames)):c}if(x(h,t=>t.test(e))!==-1){let t=a(e);!o.has(t)&&!l.has(t)&&l.set(t,e)}continue}if(tne(e,o,s,p,a))continue;nne(e,s,p,a);let n=a(e);!o.has(n)&&!s.has(n)&&s.set(n,e)}let g=$e(o.values()),_=$e(s.values());return g.concat(_,$e(l.values()))}function tL(e,t,n,r,i){let{validatedFilesSpec:a,validatedIncludeSpecs:o,validatedExcludeSpecs:s}=t;if(!u(o)||!u(s))return!1;n=mo(n);let c=ln(r);if(a){for(let t of a)if(c(po(t,n))===e)return!1}return iL(e,s,r,i,n)}function nL(e){let t=pn(e,`**/`)?0:e.indexOf(`/**/`);return t===-1?!1:($t(e,`/..`)?e.length:e.lastIndexOf(`/../`))>t}function rL(e,t,n,r){return iL(e,E(t,e=>!nL(e)),n,r)}function iL(e,t,n,r,i){let a=AC(t,lo(mo(r),i),`exclude`),o=a&&LC(a,n);return o?o.test(e)?!0:!Ka(e)&&o.test(xo(e)):!1}function aL(e,t,n,r,i){return e.filter(e=>{if(!gt(e))return!1;let r=oL(e,n);return r!==void 0&&t.push(a(...r)),r===void 0});function a(e,t){return qI(r,vh(r,i,t),e,t)}}function oL(e,t){if(H.assert(typeof e==`string`),t&&$I.test(e))return[G.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(nL(e))return[G.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function ene({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){let i=AC(t,n,`exclude`),a=i&&new RegExp(i,r?``:`i`),o={},s=new Map;if(e!==void 0){let t=[];for(let i of e){let e=mo(lo(n,i));if(a&&a.test(e))continue;let c=cL(e,r);if(c){let{key:e,path:n,flags:r}=c,i=s.get(e),a=i===void 0?void 0:o[i];(a===void 0||aJa(e,t)?t:void 0);if(!a)return!1;for(let r of a){if(qa(e,r)&&(r!==`.ts`||!qa(e,`.d.ts`)))return!1;let a=i(pw(e,r));if(t.has(a)||n.has(a)){if(r===`.d.ts`&&(qa(e,`.js`)||qa(e,`.jsx`)))continue;return!0}}return!1}function nne(e,t,n,r){let i=d(n,t=>Ja(e,t)?t:void 0);if(i)for(let n=i.length-1;n>=0;n--){let a=i[n];if(qa(e,a))return;let o=r(pw(e,a));t.delete(o)}}function lL(e){let t={};for(let n in e)if(qe(e,n)){let r=EF(n);r!==void 0&&(t[n]=uL(e[n],r))}return t}function uL(e,t){if(e===void 0)return e;switch(t.type){case`object`:return``;case`string`:return``;case`number`:return typeof e==`number`?e:``;case`boolean`:return typeof e==`boolean`?e:``;case`listOrElement`:if(!mt(e))return uL(e,t.element);case`list`:let n=t.element;return mt(e)?M(e,e=>uL(e,n)):``;default:return Mf(t.type,(t,n)=>{if(t===e)return n})}}function dL(e,t,...n){e.trace(yS(t,...n))}function fL(e,t){return!!e.traceResolution&&t.trace!==void 0}function pL(e,t,n){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name==`string`&&typeof i.version==`string`&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Fa.length),version:i.version,peerDependencies:OR(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function mL(e){return pL(void 0,e,void 0)}function hL(e){if(e)return H.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function gL(e){let t=[];return e&1&&t.push(`TypeScript`),e&2&&t.push(`JavaScript`),e&4&&t.push(`Declaration`),e&8&&t.push(`JSON`),t.join(`, `)}function rne(e){let t=[];return e&1&&t.push(...YC),e&2&&t.push(...GC),e&4&&t.push(...JC),e&8&&t.push(`.json`),t}function _L(e){if(e)return H.assert(vw(e.extension)),{fileName:e.path,packageId:e.packageId}}function vL(e,t,n,r,i,a,o,s,c){if(!o.resultFromCache&&!o.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!tc(e)){let{resolvedFileName:e,originalPath:n}=lne(t.path,o.host,o.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return yL(t,n,r,i,a,o.resultFromCache,s,c)}function yL(e,t,n,r,i,a,o,s){return a?o?.isReadonly?{...a,failedLookupLocations:SL(a.failedLookupLocations,n),affectingLocations:SL(a.affectingLocations,r),resolutionDiagnostics:SL(a.resolutionDiagnostics,i)}:(a.failedLookupLocations=xL(a.failedLookupLocations,n),a.affectingLocations=xL(a.affectingLocations,r),a.resolutionDiagnostics=xL(a.resolutionDiagnostics,i),a):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:bL(n),affectingLocations:bL(r),resolutionDiagnostics:bL(i),alternateResult:s}}function bL(e){return e.length?e:void 0}function xL(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function SL(e,t){return e?.length?t.length?[...e,...t]:e.slice():bL(t)}function CL(e,t,n,r){if(!qe(e,t)){r.traceEnabled&&dL(r.host,G.package_json_does_not_have_a_0_field,t);return}let i=e[t];if(typeof i!==n||i===null){r.traceEnabled&&dL(r.host,G.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,i===null?`null`:typeof i);return}return i}function wL(e,t,n,r){let i=CL(e,t,`string`,r);if(i===void 0)return;if(!i){r.traceEnabled&&dL(r.host,G.package_json_had_a_falsy_0_field,t);return}let a=mo(lo(n,i));return r.traceEnabled&&dL(r.host,G.package_json_has_0_field_1_that_references_2,t,i,a),a}function TL(e,t,n){return wL(e,`typings`,t,n)||wL(e,`types`,t,n)}function ine(e,t,n){return wL(e,`tsconfig`,t,n)}function EL(e,t,n){return wL(e,`main`,t,n)}function ane(e,t){let n=CL(e,`typesVersions`,`object`,t);if(n!==void 0)return t.traceEnabled&&dL(t.host,G.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}function DL(e,t){let n=ane(e,t);if(n===void 0)return;if(t.traceEnabled)for(let e in n)qe(n,e)&&!Rn.tryParse(e)&&dL(t.host,G.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);let r=kL(n);if(!r){t.traceEnabled&&dL(t.host,G.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,a);return}let{version:i,paths:o}=r;if(typeof o!=`object`){t.traceEnabled&&dL(t.host,G.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${i}']`,`object`,typeof o);return}return r}var OL;function kL(e){OL||=new Fn(o);for(let t in e){if(!qe(e,t))continue;let n=Rn.tryParse(t);if(n!==void 0&&n.test(OL))return{version:t,paths:e[t]}}}function AL(e,t){if(e.typeRoots)return e.typeRoots;let n;if(e.configFilePath?n=$a(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),n!==void 0)return one(n)}function one(e){let t;return Lo(mo(e),e=>{let n=lo(e,sne);(t??=[]).push(n)}),t}var sne=lo(`node_modules`,`@types`);function cne(e,t,n){return ko(e,t,!(typeof n.useCaseSensitiveFileNames==`function`?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))===0}function lne(e,t,n){let r=lR(e,t,n),i=cne(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function une(e,t,n){return lo(e,$t(e,`/node_modules/@types`)||$t(e,`/node_modules/@types/`)?XR(t,n):t)}function jL(e,t,n,r,i,a,o){H.assert(typeof e==`string`,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let s=fL(n,r);i&&(n=i.commandLine.options);let c=t?$a(t):void 0,l=c?a?.getFromDirectoryCache(e,o,c,i):void 0;if(!l&&c&&!tc(e)&&(l=a?.getFromNonRelativeNameCache(e,o,c,i)),l)return s&&(dL(r,G.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&dL(r,G.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),dL(r,G.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),S(l)),l;let u=AL(n,r);s&&(t===void 0?u===void 0?dL(r,G.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):dL(r,G.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,u):u===void 0?dL(r,G.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):dL(r,G.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,u),i&&dL(r,G.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));let d=[],f=[],m=ML(n);o!==void 0&&(m|=30);let h=VS(n);o===99&&3<=h&&h<=99&&(m|=32);let g=m&8?NL(n,o):[],_=[],v={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:d,affectingLocations:f,packageJsonInfoCache:a,features:m,conditions:g,requestContainingDirectory:c,reportDiagnostic:e=>void _.push(e),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},y=C(),b=!0;y||(y=w(),b=!1);let x;if(y){let{fileName:e,packageId:t}=y,i=e,a;n.preserveSymlinks||({resolvedFileName:i,originalPath:a}=lne(e,r,s)),x={primary:b,resolvedFileName:i,originalPath:a,packageId:t,isExternalLibraryImport:fR(e)}}return l={resolvedTypeReferenceDirective:x,failedLookupLocations:bL(d),affectingLocations:bL(f),resolutionDiagnostics:bL(_)},c&&a&&!a.isReadonly&&(a.getOrCreateCacheForDirectory(c,i).set(e,o,l),tc(e)||a.getOrCreateCacheForNonRelativeName(e,o,i).set(c,l)),s&&S(l),l;function S(t){t.resolvedTypeReferenceDirective?.resolvedFileName?t.resolvedTypeReferenceDirective.packageId?dL(r,G.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,Wf(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):dL(r,G.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):dL(r,G.Type_reference_directive_0_was_not_resolved,e)}function C(){if(u&&u.length)return s&&dL(r,G.Resolving_with_primary_search_path_0,u.join(`, `)),p(u,t=>{let i=une(t,e,v),a=rx(t,r);if(!a&&s&&dL(r,G.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){let e=gR(4,i,!a,v);if(e){let t=pR(e.path);return _L(pL(t?AR(t,!1,v):void 0,e,v))}}return _L(SR(4,i,!a,v))});s&&dL(r,G.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function w(){let i=t&&$a(t);if(i!==void 0){let a;if(!n.typeRoots||!$t(t,UW))if(s&&dL(r,G.Looking_up_in_node_modules_folder_initial_location_0,i),tc(e)){let{path:t}=cR(i,e);a=uR(4,t,!1,v,!0)}else{let t=HR(4,e,i,v,void 0,void 0);a=t&&t.value}else s&&dL(r,G.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return _L(a)}else s&&dL(r,G.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function ML(e){let t=0;switch(VS(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 NL(e,t){let n=VS(e);if(t===void 0){if(n===100)t=99;else if(n===2)return[]}let r=t===99?[`import`]:[`require`];return e.noDtsResolution||r.push(`types`),n!==100&&r.push(`node`),de(r,e.customConditions)}function PL(e,t,n,r,i){let a=TR(i?.getPackageJsonInfoCache(),r,n);return GR(r,t,t=>{if(eo(t)!==`node_modules`)return AR(lo(lo(t,`node_modules`),e),!1,a)})}function FL(e,t){if(e.types)return e.types;let n=[];if(t.directoryExists&&t.getDirectories){let r=AL(e,t);if(r){for(let e of r)if(t.directoryExists(e))for(let r of t.getDirectories(e)){let i=mo(r),a=lo(e,i,`package.json`);if(!(t.fileExists(a)&&tx(a,t).typings===null)){let e=eo(i);e.charCodeAt(0)!==46&&n.push(e)}}}}return n}function IL(e){return!!e?.contents}function LL(e){return!!e&&!e.contents}function RL(e){if(typeof e!=`object`||!e)return``+e;if(mt(e))return`[${e.map(e=>RL(e))?.join(`,`)}]`;let t=`{`;for(let n in e)qe(e,n)&&(t+=`${n}: ${RL(e[n])}`);return t+`}`}function zL(e,t){return t.map(t=>RL(pC(e,t))).join(`|`)+`|${e.pathsBasePath}`}function BL(e,t){let n=new Map,r=new Map,i=new Map;return e&&n.set(e,i),{getMapOfCacheRedirects:a,getOrCreateMapOfCacheRedirects:o,update:s,clear:l,getOwnMap:()=>i};function a(e){return e?c(e.commandLine.options,!1):i}function o(e){return e?c(e.commandLine.options,!0):i}function s(t){e!==t&&(e?i=c(t,!0):n.set(t,i),e=t)}function c(t,a){let o=n.get(t);if(o)return o;let s=u(t);if(o=r.get(s),!o){if(e){let t=u(e);t===s?o=i:r.has(t)||r.set(t,i)}a&&(o??=new Map),o&&r.set(s,o)}return o&&n.set(t,o),o}function l(){let a=e&&t.get(e);i.clear(),n.clear(),t.clear(),r.clear(),e&&(a&&t.set(e,a),n.set(e,i))}function u(e){let n=t.get(e);return n||t.set(e,n=zL(e,tF)),n}}function VL(e,t){let n;return{getPackageJsonInfo:r,setPackageJsonInfo:i,clear:a,getInternalMap:o};function r(r){return n?.get(yo(r,e,t))}function i(r,i){(n||=new Map).set(yo(r,e,t),i)}function a(){n=void 0}function o(){return n}}function HL(e,t,n,r){let i=e.getOrCreateMapOfCacheRedirects(t),a=i.get(n);return a||(a=r(),i.set(n,a)),a}function dne(e,t,n,r){let i=BL(n,r);return{getFromDirectoryCache:c,getOrCreateCacheForDirectory:s,clear:a,update:o,directoryToModuleNameMap:i};function a(){i.clear()}function o(e){i.update(e)}function s(n,r){return HL(i,r,yo(n,e,t),()=>WL())}function c(n,r,a,o){let s=yo(a,e,t);return(i.getMapOfCacheRedirects(o)?.get(s))?.get(n,r)}}function UL(e,t){return t===void 0?e:`${t}|${e}`}function WL(){let e=new Map,t=new Map,n={get(t,n){return e.get(r(t,n))},set(t,i,a){return e.set(r(t,i),a),n},delete(t,i){return e.delete(r(t,i)),n},has(t,n){return e.has(r(t,n))},forEach(n){return e.forEach((e,r)=>{let[i,a]=t.get(r);return n(e,i,a)})},size(){return e.size}};return n;function r(e,n){let r=UL(e,n);return t.set(r,[e,n]),r}}function fne(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function pne(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function GL(e,t,n,r,i){let a=BL(n,i);return{getFromNonRelativeNameCache:c,getOrCreateCacheForNonRelativeName:l,clear:o,update:s};function o(){a.clear()}function s(e){a.update(e)}function c(e,t,n,r){return H.assert(!tc(e)),(a.getMapOfCacheRedirects(r)?.get(UL(e,t)))?.get(n)}function l(e,t,n){return H.assert(!tc(e)),HL(a,n,UL(e,t),u)}function u(){let n=new Map;return{get:i,set:a};function i(r){return n.get(yo(r,e,t))}function a(i,a){let s=yo(i,e,t);if(n.has(s))return;n.set(s,a);let c=r(a),l=c&&o(s,c),u=s;for(;u!==l;){let e=$a(u);if(e===u||n.has(e))break;n.set(e,a),u=e}}function o(n,r){let i=yo($a(r),e,t),a=0,o=Math.min(n.length,i.length);for(;ar,clearAllExceptPackageJsonInfoCache:l,optionsToRedirectsKey:a};function c(){l(),r.clear()}function l(){o.clear(),s.clear()}function u(e){o.update(e),s.update(e)}}function qL(e,t,n,r,i){let a=KL(e,t,n,r,fne,i);return a.getOrCreateCacheForModuleName=(e,t,n)=>a.getOrCreateCacheForNonRelativeName(e,t,n),a}function JL(e,t,n,r,i){return KL(e,t,n,r,pne,i)}function YL(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function XL(e,t,n,r,i){return QL(e,t,YL(n),r,i)}function ZL(e,t,n,r){let i=$a(t);return n.getFromDirectoryCache(e,r,i,void 0)}function QL(e,t,n,r,i,a,o){let s=fL(n,r);a&&(n=a.commandLine.options),s&&(dL(r,G.Resolving_module_0_from_1,e,t),a&&dL(r,G.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName));let c=$a(t),l=i?.getFromDirectoryCache(e,o,c,a);if(l)s&&dL(r,G.Resolution_for_module_0_was_found_in_cache_from_location_1,e,c);else{let u=n.moduleResolution;switch(u===void 0?(u=VS(n),s&&dL(r,G.Module_resolution_kind_is_not_specified_using_0,ki[u])):s&&dL(r,G.Explicitly_specified_module_resolution_kind_Colon_0,ki[u]),u){case 3:l=tR(e,t,n,r,i,a,o);break;case 99:l=vne(e,t,n,r,i,a,o);break;case 2:l=aR(e,t,n,r,i,a,o?NL(n,o):void 0);break;case 1:l=nz(e,t,n,r,i,a);break;case 100:l=iR(e,t,n,r,i,a,o?NL(n,o):void 0);break;default:return H.fail(`Unexpected moduleResolution: ${u}`)}i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(c,a).set(e,o,l),tc(e)||i.getOrCreateCacheForNonRelativeName(e,o,a).set(c,l))}return s&&(l.resolvedModule?l.resolvedModule.packageId?dL(r,G.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,l.resolvedModule.resolvedFileName,Wf(l.resolvedModule.packageId)):dL(r,G.Module_name_0_was_successfully_resolved_to_1,e,l.resolvedModule.resolvedFileName):dL(r,G.Module_name_0_was_not_resolved,e)),l}function mne(e,t,n,r,i){let a=hne(e,t,r,i);return a?a.value:tc(t)?gne(e,t,n,r,i):_ne(e,t,r,i)}function hne(e,t,n,r){let{baseUrl:i,paths:a}=r.compilerOptions;if(a&&!Wa(t))return r.traceEnabled&&(i&&dL(r.host,G.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t),dL(r.host,G.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t)),JR(e,t,_y(r.compilerOptions,r.host),a,gw(a),n,!1,r)}function gne(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&dL(i.host,G.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let a=mo(lo(n,t)),o,s;for(let e of i.compilerOptions.rootDirs){let t=mo(e);$t(t,Fa)||(t+=Fa);let n=pn(a,t)&&(s===void 0||s.length(e[e.None=0]=`None`,e[e.Imports=2]=`Imports`,e[e.SelfName=4]=`SelfName`,e[e.Exports=8]=`Exports`,e[e.ExportsPatternTrailers=16]=`ExportsPatternTrailers`,e[e.AllFeatures=30]=`AllFeatures`,e[e.Node16Default=30]=`Node16Default`,e[e.NodeNextDefault=30]=`NodeNextDefault`,e[e.BundlerDefault=30]=`BundlerDefault`,e[e.EsmMode=32]=`EsmMode`,e))(eR||{});function tR(e,t,n,r,i,a,o){return nR(30,e,t,n,r,i,a,o)}function vne(e,t,n,r,i,a,o){return nR(30,e,t,n,r,i,a,o)}function nR(e,t,n,r,i,a,o,s,c){let l=$a(n),u=s===99?32:0,d=r.noDtsResolution?3:7;return JS(r)&&(d|=8),sR(e|u,t,l,r,i,a,d,!1,o,c)}function rR(e,t,n){return sR(0,e,t,{moduleResolution:2,allowJs:!0},n,void 0,2,!1,void 0,void 0)}function iR(e,t,n,r,i,a,o){let s=$a(t),c=n.noDtsResolution?3:7;return JS(n)&&(c|=8),sR(ML(n),e,s,n,r,i,c,!1,a,o)}function aR(e,t,n,r,i,a,o,s){let c;return s?c=8:n.noDtsResolution?(c=3,JS(n)&&(c|=8)):c=JS(n)?15:7,sR(o?30:0,e,$a(t),n,r,i,c,!!s,a,o)}function oR(e,t,n){return sR(30,e,$a(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function sR(e,t,n,r,i,a,o,s,l,u){let d=fL(r,i),f=[],p=[],m=VS(r);u??=NL(r,m===100||m===2?void 0:e&32?99:1);let h=[],g={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:f,affectingLocations:p,packageJsonInfoCache:a,features:e,conditions:u??c,requestContainingDirectory:n,reportDiagnostic:e=>void h.push(e),isConfigLookup:s,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};d&&aC(m)&&dL(i,G.Resolving_in_0_mode_with_conditions_1,e&32?`ESM`:`CJS`,g.conditions.map(e=>`'${e}'`).join(`, `));let _;if(m===2){let e=o&5,t=o&-6;_=e&&y(e,g)||t&&y(t,g)||void 0}else _=y(o,g);let v;if(g.resolvedPackageDirectory&&!s&&!tc(t)){let t=_?.value&&o&5&&!MR(5,_.value.resolved.extension);if(_?.value?.isExternalLibraryImport&&t&&e&8&&u?.includes(`import`)){sz(g,G.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let e={...g,features:g.features&-9,reportDiagnostic:bt},t=y(o&5,e);t?.value?.isExternalLibraryImport&&(v=t.value.resolved.path)}else if((!_?.value||t)&&m===2){sz(g,G.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let e={...g.compilerOptions,moduleResolution:100},t={...g,compilerOptions:e,features:30,conditions:NL(e),reportDiagnostic:bt},n=y(o&5,t);n?.value?.isExternalLibraryImport&&(v=n.value.resolved.path)}}return vL(t,_?.value?.resolved,_?.value?.isExternalLibraryImport,f,p,h,g,a,v);function y(r,o){let s=mne(r,t,n,(e,t,n,r)=>uR(e,t,n,r,!0),o);if(s)return oz({resolved:s,isExternalLibraryImport:fR(s.path)});if(tc(t)){let{path:e,parts:i}=cR(n,t),a=uR(r,e,!1,o,!0);return a&&oz({resolved:a,isExternalLibraryImport:C(i,`node_modules`)})}else{if(e&2&&pn(t,`#`)){let e=bne(r,t,n,o,a,l);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(e&4){let e=yne(r,t,n,o,a,l);if(e)return e.value&&{value:{resolved:e.value,isExternalLibraryImport:!1}}}if(t.includes(`:`)){d&&dL(i,G.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,gL(r));return}d&&dL(i,G.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,gL(r));let s=HR(r,t,n,o,a,l);return r&4&&(s??=rz(t,o)),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function cR(e,t){let n=lo(e,t),r=ao(n),i=Re(r);return{path:i===`.`||i===`..`?xo(mo(n)):mo(n),parts:r}}function lR(e,t,n){if(!t.realpath)return e;let r=mo(t.realpath(e));return n&&dL(t,G.Resolving_real_path_for_0_result_1,e,r),r}function uR(e,t,n,r,i){if(r.traceEnabled&&dL(r.host,G.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,gL(e)),!Ya(t)){if(!n){let e=$a(t);rx(e,r.host)||(r.traceEnabled&&dL(r.host,G.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}let a=gR(e,t,n,r);if(a){let e=i?pR(a.path):void 0;return pL(e?AR(e,!1,r):void 0,a,r)}}if(n||rx(t,r.host)||(r.traceEnabled&&dL(r.host,G.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(r.features&32))return SR(e,t,n,r,i)}var dR=`/node_modules/`;function fR(e){return e.includes(dR)}function pR(e,t){let n=mo(e),r=n.lastIndexOf(dR);if(r===-1)return;let i=r+dR.length,a=mR(n,i,t);return n.charCodeAt(i)===64&&(a=mR(n,a,t)),n.slice(0,a)}function mR(e,t,n){let r=e.indexOf(Fa,t+1);return r===-1?n?e.length:t:r}function hR(e,t,n,r){return mL(gR(e,t,n,r))}function gR(e,t,n,r){let i=_R(e,t,n,r);if(i)return i;if(!(r.features&32)){let i=yR(t,e,``,n,r);if(i)return i}}function _R(e,t,n,r){if(!eo(t).includes(`.`))return;let i=uw(t);i===t&&(i=t.substring(0,t.lastIndexOf(`.`)));let a=t.substring(i.length);return r.traceEnabled&&dL(r.host,G.File_name_0_has_a_1_extension_stripping_it,t,a),yR(i,e,a,n,r)}function vR(e,t,n,r,i){if(e&1&&Ja(t,YC)||e&4&&Ja(t,JC)){let e=bR(t,r,i),a=qb(t);return e===void 0?void 0:{path:t,ext:a,resolvedUsingTsExtension:n?!$t(n,a):void 0}}return i.isConfigLookup&&e===8&&qa(t,`.json`)?bR(t,r,i)===void 0?void 0:{path:t,ext:`.json`,resolvedUsingTsExtension:void 0}:_R(e,t,r,i)}function yR(e,t,n,r,i){if(!r){let t=$a(e);t&&(r=!rx(t,i.host))}switch(n){case`.mjs`:case`.mts`:case`.d.mts`:return t&1&&a(`.mts`,n===`.mts`||n===`.d.mts`)||t&4&&a(`.d.mts`,n===`.mts`||n===`.d.mts`)||t&2&&a(`.mjs`)||void 0;case`.cjs`:case`.cts`:case`.d.cts`:return t&1&&a(`.cts`,n===`.cts`||n===`.d.cts`)||t&4&&a(`.d.cts`,n===`.cts`||n===`.d.cts`)||t&2&&a(`.cjs`)||void 0;case`.json`:return t&4&&a(`.d.json.ts`)||t&8&&a(`.json`)||void 0;case`.tsx`:case`.jsx`:return t&1&&(a(`.tsx`,n===`.tsx`)||a(`.ts`,n===`.tsx`))||t&4&&a(`.d.ts`,n===`.tsx`)||t&2&&(a(`.jsx`)||a(`.js`))||void 0;case`.ts`:case`.d.ts`:case`.js`:case``:return t&1&&(a(`.ts`,n===`.ts`||n===`.d.ts`)||a(`.tsx`,n===`.ts`||n===`.d.ts`))||t&4&&a(`.d.ts`,n===`.ts`||n===`.d.ts`)||t&2&&(a(`.js`)||a(`.jsx`))||i.isConfigLookup&&a(`.json`)||void 0;default:return t&4&&!OP(e+n)&&a(`.d${n}.ts`)||void 0}function a(t,n){let a=bR(e+t,r,i);return a===void 0?void 0:{path:a,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function bR(e,t,n){if(!n.compilerOptions.moduleSuffixes?.length)return xR(e,t,n);let r=Sw(e)??``,i=r?fw(e,r):e;return d(n.compilerOptions.moduleSuffixes,e=>xR(i+e+r,t,n))}function xR(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&dL(n.host,G.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&dL(n.host,G.File_0_does_not_exist,e)}(r=n.failedLookupLocations)==null||r.push(e)}function SR(e,t,n,r,i=!0){let a=i?AR(t,n,r):void 0;return pL(a,jR(e,t,n,r,a),r)}function CR(e,t,n,r,i){if(!i&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let a,o=5|(i?2:0),s=ML(t),c=TR(r?.getPackageJsonInfoCache(),n,t);c.conditions=NL(t),c.requestContainingDirectory=e.packageDirectory;let l=jR(o,e.packageDirectory,!1,c,e);if(a=I(a,l?.path),s&8&&e.contents.packageJsonContent.exports){let r=ge([NL(t,99),NL(t,1)],xe);for(let t of r){let r={...c,failedLookupLocations:[],conditions:t,host:n},i=wR(e,e.contents.packageJsonContent.exports,r,o);if(i)for(let e of i)a=Oe(a,e.path)}}return e.contents.resolvedEntrypoints=a||!1}function wR(e,t,n,r){let i;if(mt(t))for(let e of t)a(e);else if(typeof t==`object`&&t&&PR(t))for(let e in t)a(t[e]);else a(t);return i;function a(t){var o;if(typeof t==`string`&&pn(t,`./`))if(t.includes(`*`)&&n.host.readDirectory){if(t.indexOf(`*`)!==t.lastIndexOf(`*`))return!1;n.host.readDirectory(e.packageDirectory,rne(r),void 0,[wo(PT(t,`**/*`),`.*`)]).forEach(e=>{i=Oe(i,{path:e,ext:ro(e),resolvedUsingTsExtension:void 0})})}else{let a=ao(t).slice(2);if(a.includes(`..`)||a.includes(`.`)||a.includes(`node_modules`))return!1;let s=vR(r,po(lo(e.packageDirectory,t),(o=n.host).getCurrentDirectory?.call(o)),t,!1,n);if(s)return i=Oe(i,s,(e,t)=>e.path===t.path),!0}else if(Array.isArray(t)){for(let e of t)if(a(e))return!0}else if(typeof t==`object`&&t)return d(Ye(t),e=>{if(e===`default`||C(n.conditions,e)||VR(n.conditions,e))return a(t[e]),!0})}}function TR(e,t,n){return{host:t,compilerOptions:n,traceEnabled:fL(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:c,requestContainingDirectory:void 0,reportDiagnostic:bt,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function ER(e,t){return GR(t.host,e,e=>AR(e,!1,t))}function DR(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=DL(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function OR(e,t){return e.contents.peerDependencies===void 0&&(e.contents.peerDependencies=kR(e,t)||!1),e.contents.peerDependencies||void 0}function kR(e,t){let n=CL(e.contents.packageJsonContent,`peerDependencies`,`object`,t);if(n===void 0)return;t.traceEnabled&&dL(t.host,G.package_json_has_a_peerDependencies_field);let r=lR(e.packageDirectory,t.host,t.traceEnabled),i=r.substring(0,r.lastIndexOf(`node_modules`)+12)+Fa,a=``;for(let e in n)if(qe(n,e)){let n=AR(i+e,!1,t);if(n){let r=n.contents.packageJsonContent.version;a+=`+${e}@${r}`,t.traceEnabled&&dL(t.host,G.Found_peerDependency_0_with_1_version,e,r)}else t.traceEnabled&&dL(t.host,G.Failed_to_find_peerDependency_0,e)}return a}function AR(e,t,n){var r,i,a,o,s;let{host:c,traceEnabled:l}=n,u=lo(e,`package.json`);if(t){(r=n.failedLookupLocations)==null||r.push(u);return}let d=n.packageJsonInfoCache?.getPackageJsonInfo(u);if(d!==void 0){if(IL(d))return l&&dL(c,G.File_0_exists_according_to_earlier_cached_lookups,u),(i=n.affectingLocations)==null||i.push(u),d.packageDirectory===e?d:{packageDirectory:e,contents:d.contents};d.directoryExists&&l&&dL(c,G.File_0_does_not_exist_according_to_earlier_cached_lookups,u),(a=n.failedLookupLocations)==null||a.push(u);return}let f=rx(e,c);if(f&&c.fileExists(u)){let t=tx(u,c);l&&dL(c,G.Found_package_json_at_0,u);let r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,r),(o=n.affectingLocations)==null||o.push(u),r}else f&&l&&dL(c,G.File_0_does_not_exist,u),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,{packageDirectory:e,directoryExists:f}),(s=n.failedLookupLocations)==null||s.push(u)}function jR(e,t,n,r,i){let a=i&&DR(i,r),s;i&&cne(i?.packageDirectory,t,r.host)&&(s=r.isConfigLookup?ine(i.contents.packageJsonContent,i.packageDirectory,r):e&4&&TL(i.contents.packageJsonContent,i.packageDirectory,r)||e&7&&EL(i.contents.packageJsonContent,i.packageDirectory,r)||void 0);let c=(e,t,n,r)=>{let a=vR(e,t,void 0,n,r);if(a)return mL(a);let o=e===4?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,i?.contents.packageJsonContent.type!==`module`&&(r.features&=-33);let l=uR(o,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=s?!rx($a(s),r.host):void 0,u=n||!rx(t,r.host),d=lo(t,r.isConfigLookup?`tsconfig`:`index`);if(a&&(!s||Ao(t,s))){let n=No(t,s||d,!1);r.traceEnabled&&dL(r.host,G.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,o,n);let i=gw(a.paths),f=JR(e,n,t,a.paths,i,c,l||u,r);if(f)return hL(f.value)}let f=s&&hL(c(e,s,l,r));if(f)return f;if(!(r.features&32))return gR(e,d,u,r)}function MR(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 NR(e){let t=e.indexOf(Fa);return e[0]===`@`&&(t=e.indexOf(Fa,t+1)),t===-1?{packageName:e,rest:``}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function PR(e){return v(Ye(e),e=>pn(e,`.`))}function FR(e){return!F(Ye(e),e=>pn(e,`.`))}function yne(e,t,n,r,i,a){var o;let s=ER(po(n,(o=r.host).getCurrentDirectory?.call(o)),r);if(!s||!s.contents.packageJsonContent.exports||typeof s.contents.packageJsonContent.name!=`string`)return;let c=ao(t),l=ao(s.contents.packageJsonContent.name);if(!v(l,(e,t)=>c[t]===e))return;let d=c.slice(l.length),f=u(d)?`.${Fa}${d.join(Fa)}`:`.`;if($S(r.compilerOptions)&&!fR(n))return IR(s,e,f,r,i,a);let p=e&5,m=e&-6;return IR(s,p,f,r,i,a)||IR(s,m,f,r,i,a)}function IR(e,t,n,r,i,a){if(e.contents.packageJsonContent.exports){if(n===`.`){let o;if(typeof e.contents.packageJsonContent.exports==`string`||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports==`object`&&FR(e.contents.packageJsonContent.exports)?o=e.contents.packageJsonContent.exports:qe(e.contents.packageJsonContent.exports,`.`)&&(o=e.contents.packageJsonContent.exports[`.`]),o)return BR(t,r,i,a,n,e,!1)(o,``,!1,`.`)}else if(PR(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!=`object`)return r.traceEnabled&&dL(r.host,G.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),oz(void 0);let o=RR(t,r,i,a,n,e.contents.packageJsonContent.exports,e,!1);if(o)return o}return r.traceEnabled&&dL(r.host,G.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),oz(void 0)}}function bne(e,t,n,r,i,a){var o;if(t===`#`||pn(t,`#/`))return r.traceEnabled&&dL(r.host,G.Invalid_import_specifier_0_has_no_possible_resolutions,t),oz(void 0);let s=po(n,(o=r.host).getCurrentDirectory?.call(o)),c=ER(s,r);return c?c.contents.packageJsonContent.imports?RR(e,r,i,a,t,c.contents.packageJsonContent.imports,c,!0)||(r.traceEnabled&&dL(r.host,G.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,c.packageDirectory),oz(void 0)):(r.traceEnabled&&dL(r.host,G.package_json_scope_0_has_no_imports_defined,c.packageDirectory),oz(void 0)):(r.traceEnabled&&dL(r.host,G.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,s),oz(void 0))}function LR(e,t){let n=e.indexOf(`*`),r=t.indexOf(`*`),i=n===-1?e.length:n+1,a=r===-1?t.length:r+1;return i>a?-1:a>i||n===-1?1:r===-1||e.length>t.length?-1:t.length>e.length?1:0}function RR(e,t,n,r,i,a,o,s){let c=BR(e,t,n,r,i,o,s);if(!$t(i,Fa)&&!i.includes(`*`)&&qe(a,i)){let e=a[i];return c(e,``,!1,i)}let l=Ae(E(Ye(a),e=>zR(e)||$t(e,`/`)),LR);for(let e of l)if(t.features&16&&u(e,i)){let t=a[e],n=e.indexOf(`*`);return c(t,i.substring(e.substring(0,n).length,i.length-(e.length-1-n)),!0,e)}else if($t(e,`*`)&&pn(i,e.substring(0,e.length-1))){let t=a[e];return c(t,i.substring(e.length-1),!0,e)}else if(pn(i,e)){let t=a[e];return c(t,i.substring(e.length),!1,e)}function u(e,t){if($t(e,`*`))return!1;let n=e.indexOf(`*`);return n===-1?!1:pn(t,e.substring(0,n))&&$t(t,e.substring(n+1))}}function zR(e){let t=e.indexOf(`*`);return t!==-1&&t===e.lastIndexOf(`*`)}function BR(e,t,n,r,i,a,o){return s;function s(l,d,f,p){var m,h;if(typeof l==`string`){if(!f&&d.length>0&&!$t(l,`/`))return t.traceEnabled&&dL(t.host,G.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),oz(void 0);if(!pn(l,`./`)){if(o&&!pn(l,`../`)&&!pn(l,`/`)&&!Va(l)){let i=f?l.replace(/\*/g,d):l+d;sz(t,G.Using_0_subpath_1_with_target_2,`imports`,p,i),sz(t,G.Resolving_module_0_from_1,i,a.packageDirectory+`/`);let o=sR(t.features,i,a.packageDirectory+`/`,t.compilerOptions,t.host,n,e,!1,r,t.conditions);return(m=t.failedLookupLocations)==null||m.push(...o.failedLookupLocations??c),(h=t.affectingLocations)==null||h.push(...o.affectingLocations??c),oz(o.resolvedModule?{path:o.resolvedModule.resolvedFileName,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId,originalPath:o.resolvedModule.originalPath,resolvedUsingTsExtension:o.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&dL(t.host,G.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),oz(void 0)}let s=(Wa(l)?ao(l).slice(1):ao(l)).slice(1);if(s.includes(`..`)||s.includes(`.`)||s.includes(`node_modules`))return t.traceEnabled&&dL(t.host,G.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),oz(void 0);let u=lo(a.packageDirectory,l),_=ao(d);if(_.includes(`..`)||_.includes(`.`)||_.includes(`node_modules`))return t.traceEnabled&&dL(t.host,G.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),oz(void 0);t.traceEnabled&&dL(t.host,G.Using_0_subpath_1_with_target_2,o?`imports`:`exports`,p,f?l.replace(/\*/g,d):l+d);let y=g(f?u.replace(/\*/g,d):u+d);return v(y,d,lo(a.packageDirectory,`package.json`),o)||oz(pL(a,vR(e,y,l,!1,t),t))}else if(typeof l==`object`&&l)if(Array.isArray(l)){if(!u(l))return t.traceEnabled&&dL(t.host,G.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),oz(void 0);for(let e of l){let t=s(e,d,f,p);if(t)return t}}else{sz(t,G.Entering_conditional_exports);for(let e of Ye(l))if(e===`default`||t.conditions.includes(e)||VR(t.conditions,e)){sz(t,G.Matched_0_condition_1,o?`imports`:`exports`,e);let n=l[e],r=s(n,d,f,p);if(r)return sz(t,G.Resolved_under_condition_0,e),sz(t,G.Exiting_conditional_exports),r;sz(t,G.Failed_to_resolve_under_condition_0,e)}else sz(t,G.Saw_non_matching_condition_0,e);sz(t,G.Exiting_conditional_exports);return}else if(l===null)return t.traceEnabled&&dL(t.host,G.package_json_scope_0_explicitly_maps_specifier_1_to_null,a.packageDirectory,i),oz(void 0);return t.traceEnabled&&dL(t.host,G.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,i),oz(void 0);function g(e){var n;return e===void 0?e:po(e,(n=t.host).getCurrentDirectory?.call(n))}function _(e,t){return xo(lo(e,t))}function v(n,r,i,o){var s,c;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!n.includes(`/node_modules/`)&&(!t.compilerOptions.configFile||Ao(a.packageDirectory,g(t.compilerOptions.configFile.fileName),!cz(t)))){let u=oy({useCaseSensitiveFileNames:()=>cz(t)}),d=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let e=g(AU(t.compilerOptions,()=>[],(s=t.host).getCurrentDirectory?.call(s)||``,u));d.push(e)}else if(t.requestContainingDirectory){let e=g(lo(t.requestContainingDirectory,`index.ts`)),n=g(AU(t.compilerOptions,()=>[e,g(i)],(c=t.host).getCurrentDirectory?.call(c)||``,u));d.push(n);let r=xo(n);for(;r&&r.length>1;){let e=ao(r);e.pop();let t=oo(e);d.unshift(t),r=xo(t)}}d.length>1&&t.reportDiagnostic(bS(o?G.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:G.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,r===``?`.`:r,i));for(let r of d){let i=l(r);for(let o of i)if(Ao(o,n,!cz(t))){let i=lo(r,n.slice(o.length+1));for(let n of[`.mjs`,`.cjs`,`.js`,`.json`,`.d.mts`,`.d.cts`,`.d.ts`])if(qa(i,n)){let r=hy(i);for(let o of r){if(!MR(e,o))continue;let r=Co(i,o,n,!cz(t));if(t.host.fileExists(r))return oz(pL(a,vR(e,r,void 0,!1,t),t))}}}}}return;function l(e){var n;let r=t.compilerOptions.configFile?(n=t.host).getCurrentDirectory?.call(n)||``:e,i=[];return t.compilerOptions.declarationDir&&i.push(g(_(r,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&i.push(g(_(r,t.compilerOptions.outDir))),i}}}}function VR(e,t){if(!e.includes(`types`)||!pn(t,`types@`))return!1;let n=Rn.tryParse(t.substring(6));return n?n.test(o):!1}function HR(e,t,n,r,i,a){return WR(e,t,n,r,!1,i,a)}function UR(e,t,n){return WR(4,e,t,n,!0,void 0,void 0)}function WR(e,t,n,r,i,a,o){let s=r.features===0?void 0:r.features&32||r.conditions.includes(`import`)?99:1,c=e&5,l=e&-6;if(c){sz(r,G.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,gL(c));let e=u(c);if(e)return e}if(l&&!i)return sz(r,G.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,gL(l)),u(l);function u(e){return GR(r.host,so(n),n=>{if(eo(n)!==`node_modules`)return tz(a,t,s,n,o,r)||oz(KR(e,t,n,r,i,a,o))})}}function GR(e,t,n){let r=(e?.getGlobalTypingsCacheLocation)?.call(e);return Lo(t,e=>{let t=n(e);if(t!==void 0)return t;if(e===r)return!1})||void 0}function KR(e,t,n,r,i,a,o){let s=lo(n,`node_modules`),c=rx(s,r.host);if(!c&&r.traceEnabled&&dL(r.host,G.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){let n=qR(e,t,s,c,r,a,o);if(n)return n}if(e&4){let e=lo(s,`@types`),n=c;return c&&!rx(e,r.host)&&(r.traceEnabled&&dL(r.host,G.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),qR(4,XR(t,r),e,n,r,a,o)}}function qR(e,t,n,r,i,a,s){let l=mo(lo(n,t)),{packageName:u,rest:d}=NR(t),f=lo(n,u),p,m=AR(l,!r,i);if(d!==``&&m&&(!(i.features&8)||!qe((p=AR(f,!r,i))?.contents.packageJsonContent??c,`exports`))){let t=gR(e,l,!r,i);if(t)return mL(t);let n=jR(e,l,!r,i,m);return pL(m,n,i)}let h=(e,t,n,r)=>{let i=(d||!(r.features&32))&&gR(e,t,n,r)||jR(e,t,n,r,m);return!i&&!d&&m&&(m.contents.packageJsonContent.exports===void 0||m.contents.packageJsonContent.exports===null)&&r.features&32&&(i=gR(e,lo(t,`index.js`),n,r)),pL(m,i,r)};if(d!==``&&(m=p??AR(f,!r,i)),m&&(i.resolvedPackageDirectory=!0),m&&m.contents.packageJsonContent.exports&&i.features&8)return IR(m,e,lo(`.`,d),i,a,s)?.value;let g=d!==``&&m?DR(m,i):void 0;if(g){i.traceEnabled&&dL(i.host,G.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,g.version,o,d);let t=r&&rx(f,i.host),n=gw(g.paths),a=JR(e,d,f,g.paths,n,h,!t,i);if(a)return a.value}return h(e,l,!r,i)}function JR(e,t,n,r,i,a,o,s){let c=Tw(i,t);if(c){let i=gt(c)?void 0:dn(c,t),l=gt(c)?c:un(c);return s.traceEnabled&&dL(s.host,G.Module_name_0_matched_pattern_1,t,l),{value:d(r[l],t=>{let r=i?PT(t,i):t,c=mo(lo(n,r));s.traceEnabled&&dL(s.host,G.Trying_substitution_0_candidate_module_location_Colon_1,t,r);let l=Sw(t);if(l!==void 0){let e=bR(c,o,s);if(e!==void 0)return mL({path:e,ext:l,resolvedUsingTsExtension:void 0})}return a(e,c,o||!rx($a(c),s.host),s)})}}}var YR=`__`;function XR(e,t){let n=QR(e);return t.traceEnabled&&n!==e&&dL(t.host,G.Scoped_package_detected_looking_in_0,n),n}function ZR(e){return`@types/${QR(e)}`}function QR(e){if(pn(e,`@`)){let t=e.replace(Fa,YR);if(t!==e)return t.slice(1)}return e}function $R(e){let t=mn(e,`@types/`);return t===e?e:ez(t)}function ez(e){return e.includes(YR)?`@`+e.replace(YR,Fa):e}function tz(e,t,n,r,i,a){let o=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(o)return a.traceEnabled&&dL(a.host,G.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),a.resultFromCache=o,{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||!0,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId,resolvedUsingTsExtension:o.resolvedModule.resolvedUsingTsExtension}}}function nz(e,t,n,r,i,a){let o=fL(n,r),s=[],c=[],l=$a(t),u=[],d={compilerOptions:n,host:r,traceEnabled:o,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>void u.push(e),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},f=p(5)||p(2|(n.resolveJsonModule?8:0));return vL(e,f&&f.value,f?.value&&fR(f.value.path),s,c,u,d,i);function p(t){let n=mne(t,e,l,hR,d);if(n)return{value:n};if(tc(e))return oz(hR(t,mo(lo(l,e)),!1,d));{let n=GR(d.host,l,n=>tz(i,e,void 0,n,a,d)||oz(hR(t,mo(lo(n,e)),!1,d)));if(n)return n;if(t&5){let n=UR(e,l,d);return t&4&&(n??=rz(e,d)),n}}}}function rz(e,t){if(t.compilerOptions.typeRoots)for(let n of t.compilerOptions.typeRoots){let r=une(n,e,t),i=rx(n,t.host);!i&&t.traceEnabled&&dL(t.host,G.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);let a=gR(4,r,!i,t);if(a){let e=pR(a.path);return oz(pL(e?AR(e,!1,t):void 0,a,t))}let o=SR(4,r,!i,t);if(o)return oz(o)}}function iz(e,t){return RS(e)||!!t&&OP(t)}function az(e,t,n,r,i,a){let o=fL(n,r);o&&dL(r,G.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);let s=[],c=[],l=[],u={compilerOptions:n,host:r,traceEnabled:o,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:a,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>void l.push(e),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};return yL(KR(4,e,i,u,!1,void 0,void 0),!0,s,c,l,u.resultFromCache,void 0)}function oz(e){return e===void 0?void 0:{value:e}}function sz(e,t,...n){e.traceEnabled&&dL(e.host,t,...n)}function cz(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames==`boolean`?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var lz=(e=>(e[e.NonInstantiated=0]=`NonInstantiated`,e[e.Instantiated=1]=`Instantiated`,e[e.ConstEnumOnly=2]=`ConstEnumOnly`,e))(lz||{});function uz(e,t){return e.body&&!e.body.parent&&(Zw(e.body,e),Qw(e.body,!1)),e.body?dz(e.body,t):1}function dz(e,t=new Map){let n=mB(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);let r=fz(e,t);return t.set(n,r),r}function fz(e,t){switch(e.kind){case 265:case 266:return 0;case 267:if(Mm(e))return 2;break;case 273:case 272:if(!Qy(e,32))return 0;break;case 279:let n=e;if(!n.moduleSpecifier&&n.exportClause&&n.exportClause.kind===280){let e=0;for(let r of n.exportClause.elements){let n=pz(r,t);if(n>e&&(e=n),e===1)return e}return e}break;case 269:{let n=0;return pP(e,e=>{let r=dz(e,t);switch(r){case 0:return;case 2:n=2;return;case 1:return n=1,!0;default:H.assertNever(r)}}),n}case 268:return uz(e,t);case 80:if(e.flags&4096)return 0}return 1}function pz(e,t){let n=e.propertyName||e.name;if(n.kind!==80)return 1;let r=e.parent;for(;r;){if(tA(r)||OA(r)||vj(r)){let e=r.statements,i;for(let a of e)if(Xc(a,n)){a.parent||(Zw(a,r),Qw(a,!1));let e=dz(a,t);if((i===void 0||e>i)&&(i=e),i===1)return i;a.kind===272&&(i=1)}if(i!==void 0)return i}r=r.parent}return 1}var mz=(e=>(e[e.None=0]=`None`,e[e.IsContainer=1]=`IsContainer`,e[e.IsBlockScopedContainer=2]=`IsBlockScopedContainer`,e[e.IsControlFlowContainer=4]=`IsControlFlowContainer`,e[e.IsFunctionLike=8]=`IsFunctionLike`,e[e.IsFunctionExpression=16]=`IsFunctionExpression`,e[e.HasLocals=32]=`HasLocals`,e[e.IsInterface=64]=`IsInterface`,e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]=`IsObjectLiteralOrClassExpressionMethodOrAccessor`,e))(mz||{});function hz(e,t,n){return H.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var xne=_z();function gz(e,t){yr(`beforeBind`),xne(e,t),yr(`afterBind`),br(`Bind`,`beforeBind`,`afterBind`)}function _z(){var e,t,n,r,i,a,o,s,c,l,f,p,m,h,g,_,y,b,x,S,w,T,E,D,O,k=!1,ee=0,te,ne,re=hz(1,void 0,void 0),ie=hz(1,void 0,void 0),ae=ut();return j;function A(t,n,...r){return gm(Yf(t)||e,t,n,...r)}function j(u,d){var v,x;e=u,t=d,n=zS(t),O=M(e,d),ne=new Set,ee=0,te=oS.getSymbolConstructor(),H.attachFlowNodeDebugInfo(re),H.attachFlowNodeDebugInfo(ie),e.locals||((v=Ar)==null||v.push(Ar.Phase.Bind,`bindSourceFile`,{path:e.path},!0),dn(e),(x=Ar)==null||x.pop(),e.symbolCount=ee,e.classifiableNames=ne,Ut(),Wt()),e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,a=void 0,o=void 0,s=void 0,c=void 0,f=void 0,l=!1,p=void 0,m=void 0,h=void 0,g=void 0,_=void 0,y=void 0,b=void 0,S=void 0,w=!1,T=!1,E=!1,k=!1,D=0}function M(e,t){return sC(t,`alwaysStrict`)&&!e.isDeclarationFile?!0:!!e.externalModuleIndicator}function N(e,t){return ee++,new te(e,t)}function oe(e,t,n){e.flags|=n,t.symbol=e,e.declarations=Oe(e.declarations,t),n&1955&&!e.exports&&(e.exports=Cf()),n&6240&&!e.members&&(e.members=Cf()),e.constEnumOnlyModule&&e.flags&304&&(e.constEnumOnlyModule=!1),n&111551&&Hg(e,t)}function se(e){if(e.kind===278)return e.isExportEquals?`export=`:`default`;let t=el(e);if(t){if(zp(e)){let n=gv(t);return Wp(e)?`__global`:`"${n}"`}if(t.kind===168){let e=t.expression;if(uv(e))return Uc(e.text);if(dv(e))return is(e.operator)+e.operand.text;H.fail(`Only computed properties with literal names have declaration names`)}if(vO(t)){let n=Sh(e);if(!n)return;let r=n.symbol;return vv(r,t.escapedText)}return lj(t)?ET(t):hv(t)?_v(t):void 0}switch(e.kind){case 177:return`__constructor`;case 185:case 180:case 324:return`__call`;case 186:case 181:return`__new`;case 182:return`__index`;case 279:return`__export`;case 308:return`export=`;case 227:if(Eg(e)===2)return`export=`;H.fail(`Unknown binary declaration kind`);break;case 318:return e_(e)?`__new`:`__call`;case 170:return H.assert(e.parent.kind===318,`Impossible parameter parent kind`,()=>`parent is: ${H.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`),`arg`+e.parent.parameters.indexOf(e)}}function ce(e){return Qc(e)?lm(e.name):Wc(H.checkDefined(se(e)))}function P(t,n,r,i,a,o,s){H.assert(s||!fv(r));let c=Qy(r,2048)||KA(r)&&wp(r.name),l=s?`__computed`:c&&n?`default`:se(r),f;if(l===void 0)f=N(0,`__missing`);else if(f=t.get(l),i&2885600&&ne.add(l),!f)t.set(l,f=N(0,l)),o&&(f.isReplaceableByMethod=!0);else if(o&&!f.isReplaceableByMethod)return f;else if(f.flags&a){if(f.isReplaceableByMethod)t.set(l,f=N(0,l));else if(!(i&3&&f.flags&67108864)){Qc(r)&&Zw(r.name,r);let t=f.flags&2?G.Cannot_redeclare_block_scoped_variable_0:G.Duplicate_identifier_0,n=!0;(f.flags&384||i&384)&&(t=G.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let a=!1;u(f.declarations)&&(c||f.declarations&&f.declarations.length&&r.kind===278&&!r.isExportEquals)&&(t=G.A_module_cannot_have_multiple_default_exports,n=!1,a=!0);let o=[];TA(r)&&rp(r.type)&&Qy(r,32)&&f.flags&2887656&&o.push(A(r,G.Did_you_mean_0,`export type { ${Wc(r.name.escapedText)} }`));let s=el(r)||r;d(f.declarations,(r,i)=>{let c=el(r)||r,l=n?A(c,t,ce(r)):A(c,t);e.bindDiagnostics.push(a?Dw(l,A(s,i===0?G.Another_export_default_is_here:G.and_here)):l),a&&o.push(A(c,G.The_first_export_default_is_here))});let p=n?A(s,t,ce(r)):A(s,t);e.bindDiagnostics.push(Dw(p,...o)),f=N(0,l)}}return oe(f,r,i),f.parent?H.assert(f.parent===n,`Existing symbol parent should match new one`):f.parent=n,f}function le(e,t,n){let r=!!(Pc(e)&32)||ue(e);if(t&2097152)return e.kind===282||e.kind===272&&r?P(i.symbol.exports,i.symbol,e,t,n):(H.assertNode(i,Nd),P(i.locals,void 0,e,t,n));if(t_(e)&&H.assert(ng(e)),!zp(e)&&(r||i.flags&128)){if(!Nd(i)||!i.locals||Qy(e,2048)&&!se(e))return P(i.symbol.exports,i.symbol,e,t,n);let r=t&111551?1048576:0,a=P(i.locals,void 0,e,r,n);return a.exportSymbol=P(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=a,a}else return H.assertNode(i,Nd),P(i.locals,void 0,e,t,n)}function ue(e){if(e.parent&&DA(e)&&(e=e.parent),!t_(e))return!1;if(!Jj(e)&&e.fullName)return!0;let t=el(e);return t?!!(Fb(t.parent)&&Bn(t.parent)||Ld(t.parent)&&Pc(t.parent)&32):!1}function fe(e,t){let n=i,r=a,s=o,c=T;if(e.kind===220&&e.body.kind!==242&&(T=!0),t&1?(e.kind!==220&&(a=i),i=o=e,t&32&&(i.locals=Cf(),kt(i))):t&2&&(o=e,t&32&&(o.locals=void 0)),t&4){let n=p,r=m,i=h,a=g,o=b,s=S,c=w,l=t&16&&!Qy(e,1024)&&!e.asteriskToken&&!!jh(e)||e.kind===176;l||(p=hz(2,void 0,void 0),t&144&&(p.node=e)),g=l||e.kind===177||ng(e)&&(e.kind===263||e.kind===219)?we():void 0,b=void 0,m=void 0,h=void 0,S=void 0,w=!1,ge(e),e.flags&=-5633,!(p.flags&1)&&t&8&&ip(e.body)&&(e.flags|=512,w&&(e.flags|=1024),e.endFlowNode=p),e.kind===308&&(e.flags|=D,e.endFlowNode=p),g&&(ke(g,p),p=Pe(g),(e.kind===177||e.kind===176||ng(e)&&(e.kind===263||e.kind===219))&&(e.returnFlowNode=p)),l||(p=n),m=r,h=i,g=a,b=o,S=s,w=c}else t&64?(l=!1,ge(e),H.assertNotNode(e,Y),e.flags=l?e.flags|256:e.flags&-257):ge(e);T=c,i=n,a=r,o=s}function pe(e){me(e,e=>e.kind===263?dn(e):void 0),me(e,e=>e.kind===263?void 0:dn(e))}function me(e,t=dn){e!==void 0&&d(e,t)}function he(e){pP(e,dn,me)}function ge(e){let n=k;if(k=!1,rr(e)){c_(e)&&e.flowNode&&(e.flowNode=void 0),he(e),fn(e),k=n;return}switch(e.kind>=244&&e.kind<=260&&(!t.allowUnreachableCode||e.kind===254)&&(e.flowNode=p),e.kind){case 248:Ue(e);break;case 247:We(e);break;case 249:L(e);break;case 250:case 251:Ge(e);break;case 246:Ke(e);break;case 254:case 258:qe(e);break;case 253:case 252:Xe(e);break;case 259:Ze(e);break;case 256:Qe(e);break;case 270:$e(e);break;case 297:et(e);break;case 245:tt(e);break;case 257:rt(e);break;case 225:st(e);break;case 226:ct(e);break;case 227:if(Ab(e)){k=n,lt(e);return}ae(e);break;case 221:R(e);break;case 228:dt(e);break;case 261:ft(e);break;case 212:case 213:Dt(e);break;case 214:Ot(e);break;case 236:Et(e);break;case 347:case 339:case 341:_t(e);break;case 352:xt(e);break;case 308:pe(e.statements),dn(e.endOfFileToken);break;case 242:case 269:pe(e.statements);break;case 209:pt(e);break;case 170:mt(e);break;case 211:case 210:case 304:case 231:k=n;default:he(e);break}fn(e),k=n}function _e(e){switch(e.kind){case 80:case 110:return!0;case 212:case 213:return ye(e);case 214:return be(e);case 218:if(LM(e))return!1;case 236:return _e(e.expression);case 227:return Se(e);case 225:return e.operator===54&&_e(e.operand);case 222:return _e(e.expression)}return!1}function ve(e){switch(e.kind){case 80:case 110:case 108:case 237:return!0;case 212:case 218:case 236:return ve(e.expression);case 213:return(uv(e.argumentExpression)||Mb(e.argumentExpression))&&ve(e.expression);case 227:return e.operatorToken.kind===28&&ve(e.right)||Eb(e.operatorToken.kind)&&fd(e.left)}return!1}function ye(e){return ve(e)||Gl(e)&&ye(e.expression)}function be(e){if(e.arguments){for(let t of e.arguments)if(ye(t))return!0}return!!(e.expression.kind===212&&ye(e.expression.expression))}function xe(e,t){return Nk(e)&&Ce(e.expression)&&uf(t)}function Se(e){switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return ye(e.left);case 35:case 36:case 37:case 38:let t=F_(e.left),n=F_(e.right);return Ce(t)||Ce(n)||xe(n,t)||xe(t,n)||Pu(n)&&_e(t)||Pu(t)&&_e(n);case 104:return Ce(e.left);case 103:return _e(e.right);case 28:return _e(e.right)}return!1}function Ce(e){switch(e.kind){case 218:return Ce(e.expression);case 227:switch(e.operatorToken.kind){case 64:return Ce(e.left);case 28:return Ce(e.right)}}return ye(e)}function we(){return hz(4,void 0,void 0)}function Te(){return hz(8,void 0,void 0)}function Ee(e,t,n){return hz(1024,{target:e,antecedents:t},n)}function De(e){e.flags|=e.flags&2048?4096:2048}function ke(e,t){!(t.flags&1)&&!C(e.antecedent,t)&&((e.antecedent||=[]).push(t),De(t))}function Ae(e,t,n){return t.flags&1?t:n?(n.kind===112&&e&64||n.kind===97&&e&32)&&!ql(n)&&!Yl(n.parent)?re:_e(n)?(De(t),hz(e,n,t)):t:e&32?t:re}function je(e,t,n,r){return De(e),hz(128,{switchStatement:t,clauseStart:n,clauseEnd:r},e)}function Me(e,t,n){De(t),E=!0;let r=hz(e,n,t);return b&&ke(b,r),r}function Ne(e,t){return De(e),E=!0,hz(512,t,e)}function Pe(e){let t=e.antecedent;return t?t.length===1?t[0]:e:re}function Fe(e){let t=e.parent;switch(t.kind){case 246:case 248:case 247:return t.expression===e;case 249:case 228:return t.condition===e}return!1}function Ie(e){for(;;)if(e.kind===218)e=e.expression;else if(e.kind===225&&e.operator===54)e=e.operand;else return Tb(e)}function Le(e){return Cb(F_(e))}function Re(e){for(;kk(e.parent)||Ik(e.parent)&&e.parent.operator===54;)e=e.parent;return!Fe(e)&&!Ie(e.parent)&&!(Gl(e.parent)&&e.parent.expression===e)}function ze(e,t,n,r){let i=_,a=y;_=n,y=r,e(t),_=i,y=a}function Be(e,t,n){ze(dn,e,t,n),(!e||!Le(e)&&!Ie(e)&&!(Gl(e)&&Jl(e)))&&(ke(t,Ae(32,p,e)),ke(n,Ae(64,p,e)))}function Ve(e,t,n){let r=m,i=h;m=t,h=n,dn(e),m=r,h=i}function He(e,t){let n=S;for(;n&&e.parent.kind===257;)n.continueTarget=t,n=n.next,e=e.parent;return t}function Ue(e){let t=He(e,Te()),n=we(),r=we();ke(t,p),p=t,Be(e.expression,n,r),p=Pe(n),Ve(e.statement,r,t),ke(t,p),p=Pe(r)}function We(e){let t=Te(),n=He(e,we()),r=we();ke(t,p),p=t,Ve(e.statement,r,n),ke(n,p),p=Pe(n),Be(e.expression,t,r),p=Pe(r)}function L(e){let t=He(e,Te()),n=we(),r=we(),i=we();dn(e.initializer),ke(t,p),p=t,Be(e.condition,n,i),p=Pe(n),Ve(e.statement,i,r),ke(r,p),p=Pe(r),dn(e.incrementor),ke(t,p),p=Pe(i)}function Ge(e){let t=He(e,Te()),n=we();dn(e.expression),ke(t,p),p=t,e.kind===251&&dn(e.awaitModifier),ke(n,p),dn(e.initializer),e.initializer.kind!==262&&at(e.initializer),Ve(e.statement,n,t),ke(t,p),p=Pe(n)}function Ke(e){let t=we(),n=we(),r=we();Be(e.expression,t,n),p=Pe(t),dn(e.thenStatement),ke(r,p),p=Pe(n),dn(e.elseStatement),ke(r,p),p=Pe(r)}function qe(e){let t=T;T=!0,dn(e.expression),T=t,e.kind===254&&(w=!0,g&&ke(g,p)),p=re,E=!0}function Je(e){for(let t=S;t;t=t.next)if(t.name===e)return t}function Ye(e,t,n){let r=e.kind===253?t:n;r&&(ke(r,p),p=re,E=!0)}function Xe(e){if(dn(e.label),e.label){let t=Je(e.label.escapedText);t&&(t.referenced=!0,Ye(e,t.breakTarget,t.continueTarget))}else Ye(e,m,h)}function Ze(e){let t=g,n=b,r=we(),i=we(),a=we();if(e.finallyBlock&&(g=i),ke(a,p),b=a,dn(e.tryBlock),ke(r,p),e.catchClause&&(p=Pe(a),a=we(),ke(a,p),b=a,dn(e.catchClause),ke(r,p)),g=t,b=n,e.finallyBlock){let t=we();t.antecedent=de(de(r.antecedent,a.antecedent),i.antecedent),p=t,dn(e.finallyBlock),p.flags&1?p=re:(g&&i.antecedent&&ke(g,Ee(t,i.antecedent,p)),b&&a.antecedent&&ke(b,Ee(t,a.antecedent,p)),p=r.antecedent?Ee(t,r.antecedent,p):re)}else p=Pe(r)}function Qe(e){let t=we();dn(e.expression);let n=m,r=x;m=t,x=p,dn(e.caseBlock),ke(t,p);let i=d(e.caseBlock.clauses,e=>e.kind===298);e.possiblyExhaustive=!i&&!t.antecedent,i||ke(t,je(x,e,0,0)),m=n,x=r,p=Pe(t)}function $e(e){let n=e.clauses,r=e.parent.expression.kind===112||_e(e.parent.expression),i=re;for(let a=0;aWA(e)||UA(e))}function Pt(e){e.flags&33554432&&!Nt(e)?e.flags|=128:e.flags&=-129}function Ft(t){if(Pt(t),zp(t))if(Qy(t,32)&&sn(t,G.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Kp(t))It(t);else{let n;if(t.name.kind===11){let{text:e}=t.name;n=mw(e),n===void 0&&sn(t.name,G.Pattern_0_can_have_at_most_one_Asterisk_character,e)}let r=At(t,512,110735);e.patternAmbientModules=I(e.patternAmbientModules,n&&!gt(n)?{pattern:n,symbol:r}:void 0)}else{let e=It(t);if(e!==0){let{symbol:n}=t;n.constEnumOnlyModule=!(n.flags&304)&&e===2&&n.constEnumOnlyModule!==!1}}}function It(e){let t=uz(e),n=t!==0;return At(e,n?512:1024,n?110735:0),t}function Lt(e){let t=N(131072,se(e));oe(t,e,131072);let n=N(2048,`__type`);oe(n,e,2048),n.members=Cf(),n.members.set(t.escapedName,t)}function Rt(e){return Vt(e,4096,`__object`)}function zt(e){return Vt(e,4096,`__jsxAttributes`)}function Bt(e,t,n){return At(e,t,n)}function Vt(e,t,n){let r=N(t,n);return t&106508&&(r.parent=i.symbol),oe(r,e,t),r}function Ht(e,t,n){switch(o.kind){case 268:le(e,t,n);break;case 308:if(Am(i)){le(e,t,n);break}default:H.assertNode(o,Nd),o.locals||(o.locals=Cf(),kt(o)),P(o.locals,void 0,e,t,n)}}function Ut(){if(!c)return;let t=i,n=s,a=o,l=r,u=p;for(let t of c){let n=t.parent.parent;i=sm(n)||e,o=cm(n)||e,p=hz(2,void 0,void 0),r=t,dn(t.typeExpression);let a=el(t);if((Jj(t)||!t.fullName)&&a&&Fb(a.parent)){let n=Bn(a.parent);if(n){Rn(e.symbol,a.parent,n,!!K(a,e=>Ck(e)&&e.name.escapedText===`prototype`),!1);let r=i;switch(Rg(a.parent)){case 1:case 2:i=Am(e)?e:void 0;break;case 4:i=a.parent.expression;break;case 3:i=a.parent.expression.name;break;case 5:i=bz(e,a.parent.expression)?e:Ck(a.parent.expression)?a.parent.expression.name:a.parent.expression;break;case 0:return H.fail(`Shouldn't have detected typedef or enum on non-assignment declaration`)}i&&le(t,524288,788968),i=r}}else Jj(t)||!t.fullName||t.fullName.kind===80?(r=t.parent,Ht(t,524288,788968)):dn(t.fullName)}i=t,s=n,o=a,r=l,p=u}function Wt(){if(f===void 0)return;let t=i,n=s,a=o,c=r,l=p;for(let t of f){let n=y_(t),a=n?sm(n):void 0,s=n?cm(n):void 0;i=a||e,o=s||e,p=hz(2,void 0,void 0),r=t,dn(t.importClause)}i=t,s=n,o=a,r=c,p=l}function Gt(t){if(!e.parseDiagnostics.length&&!(t.flags&33554432)&&!(t.flags&16777216)&&!V_(t)){let n=Kc(t);if(n===void 0)return;O&&n>=119&&n<=127?e.bindDiagnostics.push(A(t,Kt(t),lm(t))):n===135?yP(e)&&Oh(t)?e.bindDiagnostics.push(A(t,G.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,lm(t))):t.flags&65536&&e.bindDiagnostics.push(A(t,G.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,lm(t))):n===127&&t.flags&16384&&e.bindDiagnostics.push(A(t,G.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,lm(t)))}}function Kt(t){return Sh(t)?G.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?G.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:G.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function qt(t){t.escapedText===`#constructor`&&(e.parseDiagnostics.length||e.bindDiagnostics.push(A(t,G.constructor_is_a_reserved_word,lm(t))))}function Jt(e){O&&fd(e.left)&&Eb(e.operatorToken.kind)&&Qt(e,e.left)}function Yt(e){O&&e.variableDeclaration&&Qt(e,e.variableDeclaration.name)}function Xt(t){if(O&&t.expression.kind===80){let n=Om(e,t.expression);e.bindDiagnostics.push(vS(e,n.start,n.length,G.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Zt(e){return Y(e)&&(e.escapedText===`eval`||e.escapedText===`arguments`)}function Qt(t,n){if(n&&n.kind===80){let r=n;if(Zt(r)){let i=Om(e,n);e.bindDiagnostics.push(vS(e,i.start,i.length,B(t),Gc(r)))}}}function B(t){return Sh(t)?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?G.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:G.Invalid_use_of_0_in_strict_mode}function $t(e){O&&!(e.flags&33554432)&&Qt(e,e.name)}function en(t){return Sh(t)?G.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?G.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:G.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function tn(t){if(n<2&&o.kind!==308&&o.kind!==268&&!Mu(o)){let n=Om(e,t);e.bindDiagnostics.push(vS(e,n.start,n.length,en(t)))}}function nn(e){O&&Qt(e,e.operand)}function rn(e){O&&(e.operator===46||e.operator===47)&&Qt(e,e.operand)}function an(e){O&&sn(e,G.with_statements_are_not_allowed_in_strict_mode)}function on(e){O&&zS(t)>=2&&(Rd(e.statement)||nA(e.statement))&&sn(e.label,G.A_label_is_not_allowed_here)}function sn(t,n,...r){let i=Tm(e,t.pos);e.bindDiagnostics.push(vS(e,i.start,i.length,n,...r))}function cn(e,t,n){ln(e,t,t,n)}function ln(t,n,r,i){un(t,{pos:_p(n,e),end:r.end},i)}function un(t,n,r){let i=vS(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=I(e.bindSuggestionDiagnostics,{...i,category:2})}function dn(t){if(!t)return;Zw(t,r),Ar&&(t.tracingPath=e.path);let n=O;if(hn(t),t.kind>166){let e=r;r=t;let n=xz(t);n===0?ge(t):fe(t,n),r=e}else{let e=r;t.kind===1&&(r=t),fn(t),r=e}O=n}function fn(e){if(tf(e))if(ng(e))for(let t of e.jsDoc)dn(t);else for(let t of e.jsDoc)Zw(t,e),Qw(t,!1)}function pn(e){if(!O)for(let t of e){if(!Um(t))return;if(mn(t)){O=!0;return}}}function mn(t){let n=bp(e,t.expression);return n===`"use strict"`||n===`'use strict'`}function hn(t){switch(t.kind){case 80:if(t.flags&4096){let e=t.parent;for(;e&&!t_(e);)e=e.parent;Ht(e,524288,788968);break}case 110:return p&&(q(t)||r.kind===305)&&(t.flowNode=p),Gt(t);case 167:p&&Jh(t)&&(t.flowNode=p);break;case 237:case 108:t.flowNode=p;break;case 81:return qt(t);case 212:case 213:let n=t;p&&ve(n)&&(n.flowNode=p),Vg(n)&&jn(n),ng(n)&&e.commonJsModuleIndicator&&Tg(n)&&!Sz(o,`module`)&&P(e.locals,void 0,n.expression,134217729,111550);break;case 227:switch(Eg(t)){case 1:Tn(t);break;case 2:En(t);break;case 3:Pn(t.left,t);break;case 6:Mn(t);break;case 4:On(t);break;case 5:let e=t.left.expression;if(ng(t)&&Y(e)&&Ph(Sz(o,e.escapedText)?.valueDeclaration)){On(t);break}In(t);break;case 0:break;default:H.fail(`Unknown binary expression special property assignment kind`)}return Jt(t);case 300:return Yt(t);case 221:return Xt(t);case 226:return nn(t);case 225:return rn(t);case 255:return an(t);case 257:return on(t);case 198:l=!0;return;case 183:break;case 169:return tr(t);case 170:return Xn(t);case 261:return Yn(t);case 209:return t.flowNode=p,Yn(t);case 173:case 172:return gn(t);case 304:case 305:return $n(t,4,0);case 307:return $n(t,8,900095);case 180:case 181:case 182:return At(t,131072,0);case 175:case 174:return $n(t,8192|(t.questionToken?16777216:0),mh(t)?0:103359);case 263:return Zn(t);case 177:return At(t,16384,0);case 178:return $n(t,32768,46015);case 179:return $n(t,65536,78783);case 185:case 318:case 324:case 186:return Lt(t);case 188:case 323:case 201:return _n(t);case 333:return bt(t);case 211:return Rt(t);case 219:case 220:return Qn(t);case 214:switch(Eg(t)){case 7:return Fn(t);case 8:return wn(t);case 9:return Nn(t);case 0:break;default:return H.fail(`Unknown call expression assignment declaration kind`)}ng(t)&&Kn(t);break;case 232:case 264:return O=!0,qn(t);case 265:return Ht(t,64,788872);case 266:return Ht(t,524288,788968);case 267:return Jn(t);case 268:return Ft(t);case 293:return zt(t);case 292:return Bt(t,4,0);case 272:case 275:case 277:case 282:return At(t,2097152,2097152);case 271:return xn(t);case 274:return Sn(t);case 279:return V(t);case 278:return bn(t);case 308:return pn(t.statements),vn();case 242:if(!Mu(t.parent))return;case 269:return pn(t.statements);case 342:if(t.parent.kind===324)return Xn(t);if(t.parent.kind!==323)break;case 349:let i=t;return At(i,i.isBracketed||i.typeExpression&&i.typeExpression.type.kind===317?16777220:4,0);case 347:case 339:case 341:return(c||=[]).push(t);case 340:return dn(t.typeExpression);case 352:return(f||=[]).push(t)}}function gn(e){let t=Vu(e),n=t?98304:4,r=t?13247:0;return $n(e,n|(e.questionToken?16777216:0),r)}function _n(e){return Vt(e,2048,`__type`)}function vn(){if(Pt(e),yP(e))yn();else if(jm(e)){yn();let t=e.symbol;P(e.symbol.exports,e.symbol,e,4,-1),e.symbol=t}}function yn(){Vt(e,512,`"${uw(e.fileName)}"`)}function bn(e){if(!i.symbol||!i.symbol.exports)Vt(e,111551,se(e));else{let t=W_(e)?2097152:4,n=P(i.symbol.exports,i.symbol,e,t,-1);e.isExportEquals&&Hg(n,e)}}function xn(t){F(t.modifiers)&&e.bindDiagnostics.push(A(t,G.Modifiers_cannot_appear_here));let n=vj(t.parent)?yP(t.parent)?t.parent.isDeclarationFile?void 0:G.Global_module_exports_may_only_appear_in_declaration_files:G.Global_module_exports_may_only_appear_in_module_files:G.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(A(t,n)):(e.symbol.globalExports=e.symbol.globalExports||Cf(),P(e.symbol.globalExports,e.symbol,t,2097152,2097152))}function V(e){!i.symbol||!i.symbol.exports?Vt(e,8388608,se(e)):e.exportClause?BA(e.exportClause)&&(Zw(e.exportClause,e),P(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):P(i.symbol.exports,i.symbol,e,8388608,0)}function Sn(e){e.name&&At(e,2097152,2097152)}function Cn(t){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||yn()),!0)}function wn(e){if(!Cn(e))return;let t=Gn(e.arguments[0],void 0,(e,t)=>(t&&oe(t,e,67110400),t));t&&P(t.exports,t,e,1048580,0)}function Tn(e){if(!Cn(e))return;let t=Gn(e.left.expression,void 0,(e,t)=>(t&&oe(t,e,67110400),t));if(t){let n=U_(e.right)&&(Cg(e.left.expression)||Tg(e.left.expression))?2097152:1048580;Zw(e.left,e),P(t.exports,t,e.left,n,0)}}function En(t){if(!Cn(t))return;let n=Sg(t.right);if(Ub(n)||i===e&&bz(e,n))return;if(Sk(n)&&v(n.properties,hj)){d(n.properties,Dn);return}let r=W_(t)?2097152:1049092;Hg(P(e.symbol.exports,e.symbol,t,r|67108864,0),t)}function Dn(t){P(e.symbol.exports,e.symbol,t,69206016,0)}function On(e){if(H.assert(ng(e)),Rk(e)&&Ck(e.left)&&vO(e.left.name)||Ck(e)&&vO(e.name))return;let t=Eh(e,!1,!1);switch(t.kind){case 263:case 219:let n=t.symbol;if(Rk(t.parent)&&t.parent.operatorToken.kind===64){let e=t.parent.left;Ag(e)&&Lb(e.expression)&&(n=Wn(e.expression.expression,a))}n&&n.valueDeclaration&&(n.members=n.members||Cf(),fv(e)?kn(e,n,n.members):P(n.members,n,e,67108868,0),oe(n,n.valueDeclaration,32));break;case 177:case 173:case 175:case 178:case 179:case 176:let r=t.parent,i=$y(t)?r.symbol.exports:r.symbol.members;fv(e)?kn(e,r.symbol,i):P(i,r.symbol,e,67108868,0,!0);break;case 308:if(fv(e))break;t.commonJsModuleIndicator?P(t.symbol.exports,t.symbol,e,1048580,0):At(e,1,111550);break;case 268:break;default:H.failBadSyntaxKind(t)}}function kn(e,t,n){P(n,t,e,4,0,!0,!0),An(e,t)}function An(e,t){t&&(t.assignmentDeclarationMembers||=new Map).set(mB(e),e)}function jn(e){e.expression.kind===110?On(e):Ag(e)&&e.parent.parent.kind===308&&(Lb(e.expression)?Pn(e,e.parent):Ln(e))}function Mn(e){Zw(e.left,e),Zw(e.right,e),Vn(e.left.expression,e.left,!1,!0)}function Nn(e){let t=Wn(e.arguments[0].expression);t&&t.valueDeclaration&&oe(t,t.valueDeclaration,32),zn(e,t,!0)}function Pn(e,t){let n=e.expression,r=n.expression;Zw(r,n),Zw(n,e),Zw(e,t),Vn(r,e,!0,!0)}function Fn(e){let t=Wn(e.arguments[0]),n=e.parent.parent.kind===308;t=Rn(t,e.arguments[0],n,!1,!1),zn(e,t,!1)}function In(t){let n=Wn(t.left.expression,o)||Wn(t.left.expression,i);if(!ng(t)&&!Ug(n))return;let r=eS(t.left);Y(r)&&Sz(i,r.escapedText)?.flags&2097152||(Zw(t.left,t),Zw(t.right,t),Y(t.left.expression)&&i===e&&bz(e,t.left.expression)?Tn(t):fv(t)?(Vt(t,67108868,`__computed`),An(t,Rn(n,t.left.expression,Bn(t.left),!1,!1))):Ln(yt(t.left,Mg)))}function Ln(e){H.assert(!Y(e)),Zw(e.expression,e),Vn(e.expression,e,!1,!1)}function Rn(t,n,r,i,a){if(t?.flags&2097152)return t;if(r&&!i){let r=67110400;t=Gn(n,t,(t,n,i)=>n?(oe(n,t,r),n):P(i?i.exports:e.jsGlobalAugmentations||=Cf(),i,t,r,110735))}return a&&t&&t.valueDeclaration&&oe(t,t.valueDeclaration,32),t}function zn(e,t,n){if(!t||!Hn(t))return;let r=n?t.members||=Cf():t.exports||=Cf(),i=0,a=0;Nu(_g(e))?(i=8192,a=103359):Tk(e)&&Dg(e)&&(F(e.arguments[2].properties,e=>{let t=el(e);return!!t&&Y(t)&&Gc(t)===`set`})&&(i|=65540,a|=78783),F(e.arguments[2].properties,e=>{let t=el(e);return!!t&&Y(t)&&Gc(t)===`get`})&&(i|=32772,a|=46015)),i===0&&(i=4,a=0),P(r,t,e,i|67108864,a&-67108865)}function Bn(e){return Rk(e.parent)?Un(e.parent).parent.kind===308:e.parent.parent.kind===308}function Vn(e,t,n,r){let a=Wn(e,o)||Wn(e,i),s=Bn(t);a=Rn(a,t.expression,s,n,r),zn(t,a,n)}function Hn(e){if(e.flags&1072)return!0;let t=e.valueDeclaration;if(t&&Tk(t))return!!_g(t);let n=t?bA(t)?t.initializer:Rk(t)?t.right:Ck(t)&&Rk(t.parent)?t.parent.right:void 0:void 0;if(n&&=Sg(n),n){let e=Lb(bA(t)?t.name:Rk(t)?t.left:t);return!!vg(Rk(n)&&(n.operatorToken.kind===57||n.operatorToken.kind===61)?n.right:n,e)}return!1}function Un(e){for(;Rk(e.parent);)e=e.parent;return e.parent}function Wn(e,t=i){if(Y(e))return Sz(t,e.escapedText);{let t=Wn(e.expression);return t&&t.exports&&t.exports.get(Lg(e))}}function Gn(t,n,r){if(bz(e,t))return e.symbol;if(Y(t))return r(t,Wn(t),n);{let e=Gn(t.expression,n,r),i=Ng(t);return vO(i)&&H.fail(`unexpected PrivateIdentifier`),r(i,e&&e.exports&&e.exports.get(Lg(t)),e)}}function Kn(t){!e.commonJsModuleIndicator&&sg(t,!1)&&Cn(t)}function qn(t){t.kind===264?Ht(t,32,899503):(Vt(t,32,t.name?t.name.escapedText:`__class`),t.name&&ne.add(t.name.escapedText));let{symbol:n}=t,r=N(4194308,`prototype`),i=n.exports.get(r.escapedName);i&&(t.name&&Zw(t.name,t),e.bindDiagnostics.push(A(i.declarations[0],G.Duplicate_identifier_0,qc(r)))),n.exports.set(r.escapedName,r),r.parent=n}function Jn(e){return Mm(e)?Ht(e,128,899967):Ht(e,256,899327)}function Yn(e){if(O&&Qt(e,e.name),!Xu(e.name)){let t=e.kind===261?e:e.parent.parent;ng(e)&&lg(t)&&!Ol(e)&&!(Pc(e)&32)?At(e,2097152,2097152):Lp(e)?Ht(e,2,111551):Ev(e)?At(e,1,111551):At(e,1,111550)}}function Xn(e){if(!(e.kind===342&&i.kind!==324)&&(O&&!(e.flags&33554432)&&Qt(e,e.name),Xu(e.name)?Vt(e,1,`__`+e.parent.parameters.indexOf(e)):At(e,1,111551),kc(e,e.parent))){let t=e.parent.parent;P(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function Zn(t){!e.isDeclarationFile&&!(t.flags&33554432)&&lv(t)&&(D|=4096),$t(t),O?(tn(t),Ht(t,16,110991)):At(t,16,110991)}function Qn(t){return!e.isDeclarationFile&&!(t.flags&33554432)&&lv(t)&&(D|=4096),p&&(t.flowNode=p),$t(t),Vt(t,16,t.name?t.name.escapedText:`__function`)}function $n(t,n,r){return!e.isDeclarationFile&&!(t.flags&33554432)&&lv(t)&&(D|=4096),p&&hh(t)&&(t.flowNode=p),fv(t)?Vt(t,n,`__computed`):At(t,n,r)}function er(e){let t=K(e,e=>e.parent&&sk(e.parent)&&e.parent.extendsType===e);return t&&t.parent}function tr(e){if($j(e.parent)){let t=h_(e.parent);t?(H.assertNode(t,Nd),t.locals??=Cf(),P(t.locals,void 0,e,262144,526824)):At(e,262144,526824)}else if(e.parent.kind===196){let t=er(e.parent);t?(H.assertNode(t,Nd),t.locals??=Cf(),P(t.locals,void 0,e,262144,526824)):Vt(e,262144,se(e))}else At(e,262144,526824)}function nr(e){let n=uz(e);return n===1||n===2&&XS(t)}function rr(e){if(!(p.flags&1))return!1;if(p===re&&(zd(e)&&e.kind!==243||e.kind===264||vz(e,t)||e.kind===268&&nr(e))&&(p=ie,!t.allowUnreachableCode)){let n=rC(t)&&!(e.flags&33554432)&&(!nA(e)||!!(Ic(e.declarationList)&7)||e.declarationList.declarations.some(e=>!!e.initializer));yz(e,t,(e,t)=>ln(n,e,t,G.Unreachable_code_detected))}return!0}}function vz(e,t){return e.kind===267&&(!Mm(e)||XS(t))}function yz(e,t,n){if(Bd(e)&&r(e)&&tA(e.parent)){let{statements:t}=e.parent,i=Ew(t,e);ue(i,r,(e,t)=>n(i[e],i[t-1]))}else n(e,e);function r(e){return!SA(e)&&!i(e)&&!(nA(e)&&!(Ic(e)&7)&&e.declarationList.declarations.some(e=>!e.initializer))}function i(e){switch(e.kind){case 265:case 266:return!0;case 268:return uz(e)!==1;case 267:return!vz(e,t);default:return!1}}}function bz(e,t){let n=0,r=ft();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,t=r.dequeue(),Cg(t)||Tg(t))return!0;if(Y(t)){let n=Sz(e,t.escapedText);if(n&&n.valueDeclaration&&bA(n.valueDeclaration)&&n.valueDeclaration.initializer){let e=n.valueDeclaration.initializer;r.enqueue(e),kb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function xz(e){switch(e.kind){case 232:case 264:case 267:case 211:case 188:case 323:case 293:return 1;case 265:return 65;case 268:case 266:case 201:case 182:return 33;case 308:return 37;case 178:case 179:case 175:if(hh(e))return 173;case 177:case 263:case 174:case 180:case 324:case 318:case 185:case 181:case 186:case 176:return 45;case 352:return 37;case 219:case 220:return 61;case 269:return 4;case 173:return e.initializer?4:0;case 300:case 249:case 250:case 251:case 270:return 34;case 242:return ju(e.parent)||VO(e.parent)?0:34}return 0}function Sz(e,t){let n=(vt(e,Nd)?.locals)?.get(t);if(n)return n.exportSymbol??n;if(vj(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Md(e))return(e.symbol?.exports)?.get(t)}function Cz(e,t,n,r,i,a,o,s,c,l){return u;function u(u=()=>!0){let f=[],p=[];return{walkType:e=>{try{return m(e),{visitedTypes:Ze(f),visitedSymbols:Ze(p)}}finally{O(f),O(p)}},walkSymbol:e=>{try{return w(e),{visitedTypes:Ze(f),visitedSymbols:Ze(p)}}finally{O(f),O(p)}}};function m(e){if(e&&!f[e.id]&&(f[e.id]=e,!w(e.symbol))){if(e.flags&524288){let t=e,n=t.objectFlags;n&4&&h(e),n&32&&b(e),n&3&&S(e),n&24&&C(t)}e.flags&262144&&g(e),e.flags&3145728&&_(e),e.flags&4194304&&v(e),e.flags&8388608&&y(e)}}function h(e){m(e.target),d(l(e),m)}function g(e){m(s(e))}function _(e){d(e.types,m)}function v(e){m(e.type)}function y(e){m(e.objectType),m(e.indexType),m(e.constraint)}function b(e){m(e.typeParameter),m(e.constraintType),m(e.templateType),m(e.modifiersType)}function x(r){let i=t(r);i&&m(i.type),d(r.typeParameters,m);for(let e of r.parameters)w(e);m(e(r)),m(n(r))}function S(e){C(e),d(e.typeParameters,m),d(r(e),m),m(e.thisType)}function C(e){let t=i(e);for(let e of t.indexInfos)m(e.keyType),m(e.type);for(let e of t.callSignatures)x(e);for(let e of t.constructSignatures)x(e);for(let e of t.properties)w(e)}function w(e){if(!e)return!1;let t=hB(e);return p[t]?!1:(p[t]=e,u(e)?(m(a(e)),e.exports&&e.exports.forEach(w),d(e.declarations,e=>{if(e.type&&e.type.kind===187){let t=e.type;w(o(c(t.exprName)))}}),!1):!0)}}}var wz={};n(wz,{RelativePreference:()=>Tz,countPathComponents:()=>Rz,forEachFileNameOfModule:()=>Vz,getLocalModuleSpecifierBetweenFileNames:()=>Nz,getModuleSpecifier:()=>Oz,getModuleSpecifierPreferences:()=>Ez,getModuleSpecifiers:()=>wne,getModuleSpecifiersWithCacheInfo:()=>Mz,getNodeModulesPackageName:()=>kz,tryGetJSExtensionForFile:()=>eB,tryGetModuleSpecifiersFromCache:()=>Cne,tryGetRealFileNameForNonJsDeclarationFileName:()=>Qz,updateModuleSpecifier:()=>Dz});var Sne=At(e=>{try{let t=e.indexOf(`/`);if(t!==0)return new RegExp(e);let n=e.lastIndexOf(`/`);if(t===n)return new RegExp(e);for(;(t=e.indexOf(`/`,t+1))!==n;)if(e[t-1]!==`\\`)return new RegExp(e);let r=e.substring(n+1).replace(/[^iu]/g,``);return e=e.substring(1,n),new RegExp(e,r)}catch{return}}),Tz=(e=>(e[e.Relative=0]=`Relative`,e[e.NonRelative=1]=`NonRelative`,e[e.Shortest=2]=`Shortest`,e[e.ExternalNonRelative=3]=`ExternalNonRelative`,e))(Tz||{});function Ez({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},r,i,a,o){let s=c();return{excludeRegexes:n,relativePreference:o===void 0?e===`relative`?0:e===`non-relative`?1:e===`project-relative`?3:2:tc(o)?0:1,getAllowedEndingsInPreferredOrder:e=>{let t=rB(a,r,i),n=e===t?s:c(e),o=VS(i);if((e??t)===99&&3<=o&&o<=99)return iz(i,a.fileName)?[3,2]:[2];if(VS(i)===1)return n===2?[2,1]:[1,2];let l=iz(i,a.fileName);switch(n){case 2:return l?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return l?[1,0,3,2]:[1,0,2];case 0:return l?[0,1,3,2]:[0,1,2];default:H.assertNever(n)}}};function c(e){if(o!==void 0){if($C(o))return 2;if($t(o,`/index`))return 1}return iw(t,e??rB(a,r,i),i,eg(a)?a:void 0)}}function Dz(e,t,n,r,i,a,o={}){let s=Az(e,t,n,r,i,Ez({},i,e,t,a),{},o);if(s!==a)return s}function Oz(e,t,n,r,i,a={}){return Az(e,t,n,r,i,Ez({},i,e,t),{},a)}function kz(e,t,n,r,i,a={}){let o=Iz(t.fileName,r);return p(Hz(o,n,r,i,e,a),n=>Yz(n,o,t,r,e,i,!0,a.overrideImportMode))}function Az(e,t,n,r,i,a,o,s={}){let c=Iz(n,i);return p(Hz(c,r,i,o,e,s),n=>Yz(n,c,t,i,e,o,void 0,s.overrideImportMode))||Lz(r,c,e,i,s.overrideImportMode||rB(t,i,e),a)}function Cne(e,t,n,r,i={}){let a=jz(e,t,n,r,i);return a[1]&&{kind:a[0],moduleSpecifiers:a[1],computedWithoutCache:!1}}function jz(e,t,n,r,i={}){let a=Xf(e);if(!a)return c;let o=n.getModuleSpecifierCache?.call(n),s=o?.get(t.path,a.path,r,i);return[s?.kind,s?.moduleSpecifiers,a,s?.modulePaths,o]}function wne(e,t,n,r,i,a,o={}){return Mz(e,t,n,r,i,a,o,!1).moduleSpecifiers}function Mz(e,t,n,r,i,a,o={},s){let l=!1,u=Dne(e,t);if(u)return{kind:`ambient`,moduleSpecifiers:s&&Fz(u,a.autoImportSpecifierExcludeRegexes)?c:[u],computedWithoutCache:l};let[d,f,p,m,h]=jz(e,r,i,a,o);if(f)return{kind:d,moduleSpecifiers:f,computedWithoutCache:l};if(!p)return{kind:void 0,moduleSpecifiers:c,computedWithoutCache:l};l=!0,m||=Wz(Iz(r.fileName,i),p.originalFileName,i,n,o);let g=Pz(m,n,r,i,a,o,s);return h?.set(r.path,p.path,a,o,g.kind,m,g.moduleSpecifiers),g}function Nz(e,t,n,r,i,a={}){return Lz(t,Iz(e.fileName,r),n,r,a.overrideImportMode??e.impliedNodeFormat,Ez(i,r,n,e))}function Pz(e,t,n,r,i,a={},o){let s=Iz(n.fileName,r),l=Ez(i,r,t,n),u=eg(n)&&d(e,e=>d(r.getFileIncludeReasons().get(yo(e.path,r.getCurrentDirectory(),s.getCanonicalFileName)),e=>{if(e.kind!==3||e.file!==n.path)return;let t=r.getModeForResolutionAtIndex(n,e.index),i=a.overrideImportMode??r.getDefaultResolutionModeForFile(n);if(t!==i&&t!==void 0&&i!==void 0)return;let o=pG(n,e.index).text;return l.relativePreference!==1||!Wa(o)?o:void 0}));if(u)return{kind:void 0,moduleSpecifiers:[u],computedWithoutCache:!0};let f=F(e,e=>e.isInNodeModules),p,m,h,g;for(let c of e){let e=c.isInNodeModules?Yz(c,s,n,r,t,i,void 0,a.overrideImportMode):void 0;if(e&&!(o&&Fz(e,l.excludeRegexes))&&(p=I(p,e),c.isRedirect))return{kind:`node_modules`,moduleSpecifiers:p,computedWithoutCache:!0};let u=Lz(c.path,s,t,r,a.overrideImportMode||n.impliedNodeFormat,l,c.isRedirect||!!e);!u||o&&Fz(u,l.excludeRegexes)||(c.isRedirect?h=I(h,u):Ga(u)?fR(u)?g=I(g,u):m=I(m,u):(o||!f||c.isInNodeModules)&&(g=I(g,u)))}return m?.length?{kind:`paths`,moduleSpecifiers:m,computedWithoutCache:!0}:h?.length?{kind:`redirect`,moduleSpecifiers:h,computedWithoutCache:!0}:p?.length?{kind:`node_modules`,moduleSpecifiers:p,computedWithoutCache:!0}:{kind:`relative`,moduleSpecifiers:g??c,computedWithoutCache:!0}}function Fz(e,t){return F(t,t=>!!Sne(t)?.test(e))}function Iz(e,t){e=po(e,t.getCurrentDirectory());let n=ln(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),r=$a(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:r,canonicalSourceDirectory:n(r)}}function Lz(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:a,relativePreference:o,excludeRegexes:s},c){let{baseUrl:l,paths:u,rootDirs:d}=n;if(c&&!u)return;let{sourceDirectory:f,canonicalSourceDirectory:p,getCanonicalFileName:m}=t,h=a(i),g=d&&One(d,e,f,m,h,n)||Zz(So(No(f,e,m)),h,n);if(!l&&!u&&!qS(n)||o===0)return c?void 0:g;let _=po(_y(n,r)||l,r.getCurrentDirectory()),v=tB(e,_,m);if(!v)return c?void 0:g;let y=c?void 0:Jz(e,f,n,r,i,iB(h)),b=c||y===void 0?u&&Gz(v,u,h,_,m,r,n):void 0;if(c)return b;let x=y??(b===void 0&&l!==void 0?Zz(v,h,n):b);if(!x)return g;let S=Fz(g,s),C=Fz(x,s);if(!S&&C)return g;if(S&&!C||o===1&&!Wa(x))return x;if(o===3&&!Wa(x)){let i=n.configFilePath?yo($a(n.configFilePath),r.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(r.getCurrentDirectory()),a=yo(e,i,m),o=pn(p,i),s=pn(a,i);return o&&!s||!o&&s||!Tne(Bz(r,$a(a)),Bz(r,f),!ay(r))?x:g}return nB(x)||Rz(g)e.fileExists(lo(t,`package.json`))?t:void 0)}function Vz(e,t,n,r,i){let a=oy(n),o=n.getCurrentDirectory(),s=n.isSourceOfProjectReferenceRedirect(t)?n.getRedirectFromSourceFile(t)?.outputDts:void 0,l=yo(t,o,a),u=n.redirectTargetsMap.get(l)||c,f=[...s?[s]:c,t,...u].map(e=>po(e,o)),p=!v(f,tT);if(!r){let e=d(f,e=>!(p&&tT(e))&&i(e,s===e));if(e)return e}let m=n.getSymlinkCache?.call(n).getSymlinkedDirectoriesByRealpath(),h=po(t,o);return m&&GR(n,$a(h),t=>{let n=m.get(xo(yo(t,o,a)));if(n)return jo(e,t,a)?!1:d(f,e=>{if(!jo(e,t,a))return;let r=No(t,e,a);for(let t of n){let n=i(uo(t,r),e===s);if(p=!0,n)return n}})})||(r?d(f,e=>p&&tT(e)?void 0:i(e,e===s)):void 0)}function Hz(e,t,n,r,i,a={}){let o=yo(e.importingSourceFileName,n.getCurrentDirectory(),oy(n)),s=yo(t,n.getCurrentDirectory(),oy(n)),c=n.getModuleSpecifierCache?.call(n);if(c){let e=c.get(o,s,r,a);if(e?.modulePaths)return e.modulePaths}let l=Wz(e,t,n,i,a);return c&&c.setModulePaths(o,s,r,a,l),l}var Uz=[`dependencies`,`peerDependencies`,`optionalDependencies`];function Ene(e){let t;for(let n of Uz){let r=e[n];r&&typeof r==`object`&&(t=de(t,Ye(r)))}return t}function Wz(e,t,n,r,i){let a=n.getModuleResolutionCache?.call(n),o=n.getSymlinkCache?.call(n);if(a&&o&&n.readFile&&!fR(e.importingSourceFileName)){H.type(n);let t=TR(a.getPackageJsonInfoCache(),n,{}),s=ER($a(e.importingSourceFileName),t);if(s){let e=Ene(s.contents.packageJsonContent);for(let t of e||c){let e=QL(t,lo(s.packageDirectory,`package.json`),r,n,a,void 0,i.overrideImportMode);o.setSymlinksFromResolution(e.resolvedModule)}}}let s=new Map;Vz(e.importingSourceFileName,t,n,!0,(t,n)=>{let r=fR(t);s.set(t,{path:e.getCanonicalFileName(t),isRedirect:n,isInNodeModules:r})});let l=[];for(let t=e.canonicalSourceDirectory;s.size!==0;){let e=xo(t),n;s.forEach(({path:t,isRedirect:r,isInNodeModules:i},a)=>{pn(t,e)&&((n||=[]).push({path:a,isRedirect:r,isInNodeModules:i}),s.delete(a))}),n&&(n.length>1&&n.sort(zz),l.push(...n));let r=$a(t);if(r===t)break;t=r}if(s.size){let e=$e(s.entries(),([e,{isRedirect:t,isInNodeModules:n}])=>({path:e,isRedirect:t,isInNodeModules:n}));e.length>1&&e.sort(zz),l.push(...e)}return l}function Dne(e,t){let n=e.declarations?.find(e=>Vp(e)&&(!Gp(e)||!tc(gv(e.name))));if(n)return n.name.text;let r=M(e.declarations,e=>{if(!DA(e))return;let n=a(e);if(!(n?.parent?.parent&&OA(n.parent)&&zp(n.parent.parent)&&vj(n.parent.parent.parent)))return;let r=n.parent.parent.symbol.exports?.get(`export=`)?.valueDeclaration?.expression;if(!r)return;let i=t.getSymbolAtLocation(r);if(!i)return;if((i?.flags&2097152?t.getAliasedSymbol(i):i)===e.symbol)return n.parent.parent;function a(e){for(;e.flags&8;)e=e.parent;return e}})[0];if(r)return r.name.text}function Gz(e,t,n,r,i,a,o){for(let a in t)for(let c of t[a]){let t=mo(c),l=tB(t,r,i)??t,u=l.indexOf(`*`),d=n.map(t=>({ending:t,value:Zz(e,[t],o)}));if(Sw(l)&&d.push({ending:void 0,value:e}),u!==-1){let e=l.substring(0,u),t=l.substring(u+1);for(let{ending:n,value:r}of d)if(r.length>=e.length+t.length&&pn(r,e)&&$t(r,t)&&s({ending:n,value:r})){let n=r.substring(e.length,r.length-t.length);if(!Wa(n))return PT(a,n)}}else if(F(d,e=>e.ending!==0&&l===e.value)||F(d,e=>e.ending===0&&l===e.value&&s(e)))return a}function s({ending:t,value:n}){return t!==0||n===Zz(e,[t],o,a)}}function Kz(e,t,n,r,i,a,o,s,c,l){if(typeof a==`string`){let o=!ay(t),u=()=>t.getCommonSourceDirectory(),d=c&&EU(n,e,o,u),f=c&&wU(n,e,o,u),p=po(lo(r,a),void 0),m=ew(n)?uw(n)+eB(n,e):void 0,h=l&&tw(n);switch(s){case 0:if(m&&ko(m,p,o)===0||ko(n,p,o)===0||d&&ko(d,p,o)===0||f&&ko(f,p,o)===0)return{moduleFileToTry:i};break;case 1:if(h&&Ao(n,p,o)){let e=No(p,n,!1);return{moduleFileToTry:po(lo(lo(i,a),e),void 0)}}if(m&&Ao(p,m,o)){let e=No(p,m,!1);return{moduleFileToTry:po(lo(lo(i,a),e),void 0)}}if(!h&&Ao(p,n,o)){let e=No(p,n,!1);return{moduleFileToTry:po(lo(lo(i,a),e),void 0)}}if(d&&Ao(p,d,o))return{moduleFileToTry:lo(i,No(p,d,!1))};if(f&&Ao(p,f,o))return{moduleFileToTry:lo(i,wo(No(p,f,!1),$z(f,e)))};break;case 2:let t=p.indexOf(`*`),r=p.slice(0,t),s=p.slice(t+1);if(h&&pn(n,r,o)&&$t(n,s,o))return{moduleFileToTry:PT(i,n.slice(r.length,n.length-s.length))};if(m&&pn(m,r,o)&&$t(m,s,o))return{moduleFileToTry:PT(i,m.slice(r.length,m.length-s.length))};if(!h&&pn(n,r,o)&&$t(n,s,o))return{moduleFileToTry:PT(i,n.slice(r.length,n.length-s.length))};if(d&&pn(d,r,o)&&$t(d,s,o))return{moduleFileToTry:PT(i,d.slice(r.length,d.length-s.length))};if(f&&pn(f,r,o)&&$t(f,s,o)){let t=PT(i,f.slice(r.length,f.length-s.length)),n=eB(f,e);return n?{moduleFileToTry:wo(t,n)}:void 0}break}}else if(Array.isArray(a))return d(a,a=>Kz(e,t,n,r,i,a,o,s,c,l));else if(typeof a==`object`&&a){for(let u of Ye(a))if(u===`default`||o.indexOf(u)>=0||VR(o,u)){let d=a[u],f=Kz(e,t,n,r,i,d,o,s,c,l);if(f)return f}}}function qz(e,t,n,r,i,a,o){return typeof a==`object`&&a&&!Array.isArray(a)&&PR(a)?d(Ye(a),s=>{let c=po(lo(i,s),void 0),l=$t(s,`/`)?1:s.includes(`*`)?2:0;return Kz(e,t,n,r,c,a[s],o,l,!1,!1)}):Kz(e,t,n,r,i,a,o,0,!1,!1)}function Jz(e,t,n,r,i,a){if(!r.readFile||!qS(n))return;let o=Bz(r,t);if(!o)return;let s=lo(o,`package.json`),c=(r.getPackageJsonInfoCache?.call(r))?.getPackageJsonInfo(s);if(LL(c)||!r.fileExists(s))return;let l=(c?.contents.packageJsonContent||nx(r.readFile(s)))?.imports;if(!l)return;let u=NL(n,i);return d(Ye(l),t=>{if(!pn(t,`#`)||t===`#`||pn(t,`#/`))return;let i=$t(t,`/`)?1:t.includes(`*`)?2:0;return Kz(n,r,e,o,t,l[t],u,i,!0,a)})?.moduleFileToTry}function One(e,t,n,r,i,a){let o=Xz(t,e,r);if(o===void 0)return;let s=zt(re(Xz(n,e,r),e=>k(o,t=>So(No(e,t,r)))),cw);if(s)return Zz(s,i,a)}function Yz({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:r},i,a,o,s,c,l){if(!a.fileExists||!a.readFile)return;let u=dT(e);if(!u)return;let d=Ez(s,a,o,i).getAllowedEndingsInPreferredOrder(),f=e,p=!1;if(!c){let t=u.packageRootIndex,n;for(;;){let{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=v(t);if(VS(o)!==1){if(s)return;if(c)return r}if(i){f=i,p=!0;break}if(n||=r,t=e.indexOf(Fa,t+1),t===-1){f=Zz(n,d,o,a);break}}}if(t&&!p)return;let m=a.getGlobalTypingsCacheLocation&&a.getGlobalTypingsCacheLocation(),h=n(f.substring(0,u.topLevelNodeModulesIndex));if(!(pn(r,h)||m&&pn(n(m),h)))return;let g=f.substring(u.topLevelPackageNameIndex+1),_=$R(g);return VS(o)===1&&_===g?void 0:_;function v(t){let r=e.substring(0,t),s=lo(r,`package.json`),c=e,f=!1,p=(a.getPackageJsonInfoCache?.call(a))?.getPackageJsonInfo(s);if(IL(p)||p===void 0&&a.fileExists(s)){let t=p?.contents.packageJsonContent||nx(a.readFile(s)),m=l||rB(i,a,o);if(KS(o)){let n=$R(r.substring(u.topLevelPackageNameIndex+1)),i=NL(o,m),s=t?.exports?qz(o,a,e,r,n,t.exports,i):void 0;if(s)return{...s,verbatimFromExports:!0};if(t?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let h=t?.typesVersions?kL(t.typesVersions):void 0;if(h){let t=Gz(e.slice(r.length+1),h.paths,d,r,n,a,o);t===void 0?f=!0:c=lo(r,t)}let g=t?.typings||t?.types||t?.main||`index.js`;if(gt(g)&&!(f&&Tw(gw(h.paths),g))){let e=yo(g,r,n),i=n(c);if(uw(e)===uw(i)||t?.type!==`module`&&!Ja(i,XC)&&pn(i,e)&&$a(i)===bo(e)&&uw(eo(i))===`index`)return{packageRootPath:r,moduleFileToTry:c}}}else{let e=n(c.substring(u.packageRootIndex+1));if(e===`index.d.ts`||e===`index.js`||e===`index.ts`||e===`index.tsx`)return{moduleFileToTry:c,packageRootPath:r}}return{moduleFileToTry:c}}}function kne(e,t){if(!e.fileExists)return;let n=ne(ZC({allowJs:!0},[{extension:`node`,isMixedContent:!1},{extension:`json`,isMixedContent:!1,scriptKind:6}]));for(let r of n){let n=t+r;if(e.fileExists(n))return n}}function Xz(e,t,n){return M(t,t=>{let r=tB(e,t,n);return r!==void 0&&nB(r)?void 0:r})}function Zz(e,t,n,r){if(Ja(e,[`.json`,`.mjs`,`.cjs`]))return e;let i=uw(e);if(e===i)return e;let a=t.indexOf(2),o=t.indexOf(3);if(Ja(e,[`.mts`,`.cts`])&&o!==-1&&oe===0||e===1);return r!==-1&&r-1&&t(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))(lB||{}),uB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),dB=(e=>(e[e.Normal=0]=`Normal`,e[e.Contextual=1]=`Contextual`,e[e.Inferential=2]=`Inferential`,e[e.SkipContextSensitive=4]=`SkipContextSensitive`,e[e.SkipGenericFunctions=8]=`SkipGenericFunctions`,e[e.IsForSignatureHelp=16]=`IsForSignatureHelp`,e[e.RestBindingElement=32]=`RestBindingElement`,e[e.TypeOnly=64]=`TypeOnly`,e))(dB||{}),fB=(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))(fB||{}),Mne=_n(Fne,vB),pB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Nne=class{};function Pne(){this.flags=0}function mB(e){return e.id||(e.id=cB,cB++),e.id}function hB(e){return e.id||(e.id=sB,sB++),e.id}function gB(e,t){let n=uz(e);return n===1||t&&n===2}function _B(e){var t=[],n=e=>{t.push(e)},r,i,a=oS.getSymbolConstructor(),o=oS.getTypeConstructor(),s=oS.getSignatureConstructor(),l=0,f=0,m=0,h=0,g=0,_=0,w,D,ee=!1,ie=Cf(),ae=[1],A=e.getCompilerOptions(),j=zS(A),N=BS(A),ce=!!A.experimentalDecorators,P=eC(A),le=lC(A),ue=GS(A),fe=sC(A,`strictNullChecks`),me=sC(A,`strictFunctionTypes`),he=sC(A,`strictBindCallApply`),_e=sC(A,`strictPropertyInitialization`),ve=sC(A,`strictBuiltinIteratorReturn`),ye=sC(A,`noImplicitAny`),be=sC(A,`noImplicitThis`),Se=sC(A,`useUnknownInCatchVariables`),we=A.exactOptionalPropertyTypes,Te=!!A.noUncheckedSideEffectImports,ke=wH(),Ae=qJ(),je=iu(),Ne=tie(A,je.syntacticBuilderResolver),Be=RT({evaluateElementAccessExpression:XK,evaluateEntityNameExpression:YK}),Ve=Cf(),He=lo(4,`undefined`);He.declarations=[];var L=lo(1536,`globalThis`,8);L.exports=Ve,L.declarations=[],Ve.set(L.escapedName,L);var Ke=lo(4,`arguments`),qe=lo(4,`require`),Je=A.verbatimModuleSyntax?`verbatimModuleSyntax`:`isolatedModules`,Ye=!A.verbatimModuleSyntax,Xe,Ze,et=0,tt,nt=0,rt=VT({compilerOptions:A,requireSymbol:qe,argumentsSymbol:Ke,globals:Ve,getSymbolOfDeclaration:wc,error:U,getRequiresScopeChangeCache:Ao,setRequiresScopeChangeCache:jo,lookup:Eo,onPropertyWithInvalidInitializer:Mo,onFailedToResolveSymbol:Po,onSuccessfullyResolvedSymbol:Io}),ot=VT({compilerOptions:A,requireSymbol:qe,argumentsSymbol:Ke,globals:Ve,getSymbolOfDeclaration:wc,error:U,getRequiresScopeChangeCache:Ao,setRequiresScopeChangeCache:jo,lookup:HR});let st={getNodeCount:()=>Ge(e.getSourceFiles(),(e,t)=>e+t.nodeCount,0),getIdentifierCount:()=>Ge(e.getSourceFiles(),(e,t)=>e+t.identifierCount,0),getSymbolCount:()=>Ge(e.getSourceFiles(),(e,t)=>e+t.symbolCount,f),getTypeCount:()=>l,getInstantiationCount:()=>m,getRelationCacheSizes:()=>({assignable:Na.size,identity:Fa.size,subtype:ja.size,strictSubtype:Ma.size}),isUndefinedSymbol:e=>e===He,isArgumentsSymbol:e=>e===Ke,isUnknownSymbol:e=>e===Ft,getMergedSymbol:Cc,symbolIsValue:zc,getDiagnostics:Pq,getGlobalDiagnostics:Hre,getRecursionIdentity:Xk,getUnmatchedProperties:rN,getTypeOfSymbolAtLocation:(e,t)=>{let n=Hc(t);return n?iF(e,n):Gt},getTypeOfSymbol:Jf,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{let n=Hc(e,FO);return n===void 0?H.fail(`Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.`):(H.assert(kc(n,n.parent)),Do(n,Uc(t)))},getDeclaredTypeOfSymbol:Kp,getPropertiesOfType:S_,getPropertyOfType:(e,t)=>Kv(e,Uc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{let r=Hc(n);if(!r)return;let i=xR(Uc(t),r);return i?TR(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>Wu(e,Uc(t)),getIndexInfoOfType:(e,t)=>ny(e,t===0?rn:on),getIndexInfosOfType:ty,getIndexInfosOfIndexSymbol:Cb,getSignaturesOfType:Jv,getIndexTypeOfType:(e,t)=>ay(e,t===0?rn:on),getIndexType:e=>iw(e),getBaseTypes:bp,getBaseTypeOfLiteralType:cj,getWidenedType:CM,getWidenedLiteralType:yj,fillMissingTypeArguments:vy,getTypeFromTypeNode:e=>{let t=Hc(e,Ju);return t?DE(t):Gt},getParameterType:sV,getParameterIdentifierInfoAtPosition:rV,getPromisedTypeOfPromise:tW,getAwaitedType:e=>lW(e),getReturnTypeOfSignature:Uy,isNullableType:uR,getNullableType:qj,getNonNullableType:Qj,getNonOptionalType:rM,getTypeArguments:ex,typeToTypeNode:je.typeToTypeNode,typePredicateToTypePredicateNode:je.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:je.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:je.signatureToSignatureDeclaration,symbolToEntityName:je.symbolToEntityName,symbolToExpression:je.symbolToExpression,symbolToNode:je.symbolToNode,symbolToTypeParameterDeclarations:je.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:je.symbolToParameterDeclaration,typeParameterToDeclaration:je.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{let n=Hc(e);return n?Rq(n,t):[]},getSymbolAtLocation:e=>{let t=Hc(e);return t?Qq(t,!0):void 0},getIndexInfosAtLocation:e=>{let t=Hc(e);return t?$q(t):void 0},getShorthandAssignmentValueSymbol:e=>{let t=Hc(e);return t?eJ(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{let t=Hc(e,KA);return t?tJ(t):void 0},getExportSymbolOfSymbol(e){return Cc(e.exportSymbol||e)},getTypeAtLocation:e=>{let t=Hc(e);return t?nJ(t):Gt},getTypeOfAssignmentPattern:e=>{let t=Hc(e,Zu);return t&&rJ(t)||Gt},getPropertySymbolOfDestructuringAssignment:e=>{let t=Hc(e,Y);return t?iJ(t):void 0},signatureToString:(e,t,n,r)=>Ul(e,Hc(t),n,r),typeToString:(e,t,n)=>Yl(e,Hc(t),n),symbolToString:(e,t,n,r)=>Hl(e,Hc(t),n,r),typePredicateToString:(e,t,n)=>ou(e,Hc(t),n),writeSignature:(e,t,n,r,i,a,o,s)=>Ul(e,Hc(t),n,r,i,a,o,s),writeType:(e,t,n,r,i,a,o)=>Yl(e,Hc(t),n,r,i,a,o),writeSymbol:(e,t,n,r,i)=>Hl(e,Hc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>ou(e,Hc(t),n,r),getAugmentedPropertiesOfType:cJ,getRootSymbols:uJ,getSymbolOfExpando:jB,getContextualType:(e,t)=>{let n=Hc(e,q);if(n)return t&4?dt(n,()=>KI(n,t)):KI(n,t)},getContextualTypeForObjectLiteralElement:e=>{let t=Hc(e,qu);return t?FI(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{let n=Hc(e,ld);return n&&bI(n,t)},getContextualTypeForJsxAttribute:e=>{let t=Hc(e,Kd);return t&&zI(t,void 0)},isContextSensitive:vD,getTypeOfPropertyOfContextualType:kI,getFullyQualifiedName:Us,getResolvedSignature:(e,t,n)=>z(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:lt,getResolvedSignatureForSignatureHelp:(e,t,n)=>ut(e,()=>z(e,t,n,16)),getExpandedParameters:$m,hasEffectiveRestParameter:mV,containsArgumentsReference:Ty,getConstantValue:e=>{let t=Hc(e,jJ);return t?MJ(t):void 0},isValidPropertyAccess:(e,t)=>{let n=Hc(e,od);return!!n&&XR(n,Uc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{let r=Hc(e,Ck);return!!r&&ZR(r,t,n)},getSignatureFromDeclaration:e=>{let t=Hc(e,ju);return t?by(t):void 0},isImplementationOfOverload:e=>{let t=Hc(e,ju);return t?xJ(t):void 0},getImmediateAliasedSymbol:OL,getAliasedSymbol:Is,getEmitResolver:Ga,requiresAddingImplicitUndefined:SJ,getExportsOfModule:pc,getExportsAndPropertiesOfModule:mc,forEachExportAndPropertyOfModule:hc,getSymbolWalker:Cz(kee,Iy,Uy,bp,u_,Jf,DN,A_,Nb,ex),getAmbientModules:eX,getJsxIntrinsicTagNamesAt:gne,isOptionalParameter:e=>{let t=Hc(e,FO);return t?my(t):!1},tryGetMemberInModuleExports:(e,t)=>gc(Uc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>_c(Uc(e),t),tryFindAmbientModule:e=>fy(e,!0),getApparentType:Fv,getUnionType:AC,isTypeAssignableTo:MD,createAnonymousType:pl,createSignature:Xm,createSymbol:lo,createIndexInfo:xb,getAnyType:()=>Vt,getStringType:()=>rn,getStringLiteralType:hE,getNumberType:()=>on,getNumberLiteralType:gE,getBigIntType:()=>sn,getBigIntLiteralType:_E,getUnknownType:()=>Yt,createPromiseType:IV,createArrayType:PS,getElementTypeOfArrayType:yA,getBooleanType:()=>hn,getFalseType:e=>e?cn:ln,getTrueType:e=>e?un:dn,getVoidType:()=>bn,getUndefinedType:()=>Xt,getNullType:()=>tn,getESSymbolType:()=>gn,getNeverType:()=>V,getNonPrimitiveType:()=>En,getOptionalType:()=>en,getPromiseType:()=>Yx(!1),getPromiseLikeType:()=>Qx(!1),getAnyAsyncIterableType:()=>{let e=nS(!1);if(e!==Kn)return Zb(e,[Vt,Vt,Vt])},isSymbolAccessible:El,isArrayType:hA,isTupleType:Ej,isArrayLikeType:kA,isEmptyAnonymousObjectType:nO,isTypeInvalidDueToUnionDiscriminant:w_,getExactOptionalProperties:bO,getAllPossiblePropertiesOfTypes:yee,getSuggestedSymbolForNonexistentProperty:zR,getSuggestedSymbolForNonexistentJSXAttribute:BR,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>UR(e,Uc(t),n),getSuggestedSymbolForNonexistentModule:WR,getSuggestedSymbolForNonexistentClassMember:RR,getBaseConstraintOfType:ov,getDefaultFromTypeParameter:e=>e&&e.flags&262144?Sv(e):void 0,resolveName(e,t,n,r){return rt(t,Uc(e),n,void 0,!1,r)},getJsxNamespace:e=>Wc(Va(e)),getJsxFragmentFactory:e=>{let t=GJ(e);return t&&Wc(Nb(t).escapedText)},getAccessibleSymbolChain:_l,getTypePredicateOfSignature:Iy,resolveExternalModuleName:e=>{let t=Hc(e,q);return t&&$s(t,t,!0)},resolveExternalModuleSymbol:ic,tryGetThisTypeAt:(e,t,n)=>{let r=Hc(e);return r&&$F(r,t,n)},getTypeArgumentConstraint:e=>{let t=Hc(e,Ju);return t&&PU(t)},getSuggestionDiagnostics:(t,n)=>{let i=Hc(t,vj)||H.fail(`Could not determine parsed source file.`);if(Aw(i,A,e))return c;let a;try{return r=n,Iq(i),H.assert(!!(To(i).flags&1)),a=Ee(a,Da.getDiagnostics(i.fileName)),VW(Mq(i),(e,t,n)=>{!qf(e)&&!jq(t,!!(e.flags&33554432))&&(a||=[]).push({...n,category:2})}),a||c}finally{r=void 0}},runWithCancellationToken:(e,t)=>{try{return r=e,t(st)}finally{r=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:lp,isDeclarationVisible:xu,isPropertyAccessible:$R,getTypeOnlyAliasDeclaration:Vs,getMemberOverrideModifierStatus:Fre,isTypeParameterPossiblyReferenced:QE,typeHasCallOrConstructSignatures:lJ,getSymbolFlags:Rs,getTypeArgumentsForResolvedSignature:ct,isLibType:au};function ct(e){if(e.mapper!==void 0)return AE((e.target||e).typeParameters,e.mapper)}function lt(e,t){let n=new Set,r=[];dt(t,()=>z(e,r,void 0,0));for(let e of r)n.add(e);r.length=0,ut(t,()=>z(e,r,void 0,0));for(let e of r)n.add(e);return $e(n)}function ut(e,t){if(e=K(e,cd),e){let n=[],r=[];for(;e;){let t=To(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,oT(e)){let t=wo(wc(e)),n=t.type;r.push([t,n]),t.type=void 0}e=K(e.parent,cd)}let i=t();for(let[e,t]of n)e.resolvedSignature=t;for(let[e,t]of r)e.type=t;return i}return t()}function dt(e,t){let n=K(e,ld);if(n){let t=e;do To(t).skipDirectInference=!0,t=t.parent;while(t&&t!==n)}ee=!0;let r=ut(e,t);if(ee=!1,n){let t=e;do To(t).skipDirectInference=void 0,t=t.parent;while(t&&t!==n)}return r}function z(e,t,n,r){let i=Hc(e,ld);Xe=n;let a=i?OB(i,t,r):void 0;return Xe=void 0,a}var ft=new Map,pt=new Map,ht=new Map,_t=new Map,bt=new Map,xt=new Map,St=new Map,Ct=new Map,wt=new Map,Tt=new Map,Et=new Map,Dt=new Map,Ot=new Map,kt=new Map,At=new Map,jt=[],Nt=new Map,Pt=new Set,Ft=lo(4,`unknown`),Lt=lo(0,`__resolving__`),Rt=new Map,zt=new Map,Bt=new Set,Vt=Zc(1,`any`),Ht=Zc(1,`any`,262144,`auto`),Ut=Zc(1,`any`,void 0,`wildcard`),Wt=Zc(1,`any`,void 0,`blocked string`),Gt=Zc(1,`error`),Kt=Zc(1,`unresolved`),qt=Zc(1,`any`,65536,`non-inferrable`),Jt=Zc(1,`intrinsic`),Yt=Zc(2,`unknown`),Xt=Zc(32768,`undefined`),Zt=fe?Xt:Zc(32768,`undefined`,65536,`widening`),B=Zc(32768,`undefined`,void 0,`missing`),$t=we?B:Xt,en=Zc(32768,`undefined`,void 0,`optional`),tn=Zc(65536,`null`),nn=fe?tn:Zc(65536,`null`,65536,`widening`),rn=Zc(4,`string`),on=Zc(8,`number`),sn=Zc(64,`bigint`),cn=Zc(512,`false`,void 0,`fresh`),ln=Zc(512,`false`),un=Zc(512,`true`,void 0,`fresh`),dn=Zc(512,`true`);un.regularType=dn,un.freshType=un,dn.regularType=dn,dn.freshType=un,cn.regularType=ln,cn.freshType=cn,ln.regularType=ln,ln.freshType=cn;var hn=AC([ln,dn]),gn=Zc(4096,`symbol`),bn=Zc(16384,`void`),V=Zc(131072,`never`),Cn=Zc(131072,`never`,262144,`silent`),wn=Zc(131072,`never`,void 0,`implicit`),Tn=Zc(131072,`never`,void 0,`unreachable`),En=Zc(67108864,`object`),Dn=AC([rn,on]),On=AC([rn,on,gn]),kn=AC([on,sn]),An=AC([rn,on,hn,sn,tn,Xt]),jn=lw([``,``],[on]),Mn=FE(e=>e.flags&262144?GE(e):e,()=>`(restrictive mapper)`),Nn=FE(e=>e.flags&262144?Ut:e,()=>`(permissive mapper)`),Pn=Zc(131072,`never`,void 0,`unique literal`),Fn=FE(e=>e.flags&262144?Pn:e,()=>`(unique literal mapper)`),In,Ln=FE(e=>(In&&(e===Zn||e===Qn||e===$n)&&In(!0),e),()=>`(unmeasurable reporter)`),Rn=FE(e=>(In&&(e===Zn||e===Qn||e===$n)&&In(!1),e),()=>`(unreliable reporter)`),zn=pl(void 0,ie,c,c,c),Bn=pl(void 0,ie,c,c,c);Bn.objectFlags|=2048;var Vn=pl(void 0,ie,c,c,c);Vn.objectFlags|=141440;var Hn=lo(2048,`__type`);Hn.members=Cf();var Un=pl(Hn,ie,c,c,c),Wn=pl(void 0,ie,c,c,c),Gn=fe?AC([Xt,tn,Wn]):Yt,Kn=pl(void 0,ie,c,c,c);Kn.instantiations=new Map;var qn=pl(void 0,ie,c,c,c);qn.objectFlags|=262144;var Jn=pl(void 0,ie,c,c,c),Yn=pl(void 0,ie,c,c,c),Xn=pl(void 0,ie,c,c,c),Zn=al(),Qn=al();Qn.constraint=Zn;var $n=al(),er=al(),tr=al();tr.constraint=er;var nr=gy(1,`<>`,0,Vt),rr=Xm(void 0,void 0,void 0,c,Vt,void 0,0,0),ir=Xm(void 0,void 0,void 0,c,Gt,void 0,0,0),ar=Xm(void 0,void 0,void 0,c,Vt,void 0,0,0),or=Xm(void 0,void 0,void 0,c,Cn,void 0,0,0),sr=xb(on,rn,!0),cr=xb(rn,Vt,!1),lr=new Map,ur={get yieldType(){return H.fail(`Not supported`)},get returnType(){return H.fail(`Not supported`)},get nextType(){return H.fail(`Not supported`)}},dr=RG(Vt,Vt,Vt),fr=RG(Cn,Cn,Cn),pr={iterableCacheKey:`iterationTypesOfAsyncIterable`,iteratorCacheKey:`iterationTypesOfAsyncIterator`,iteratorSymbolName:`asyncIterator`,getGlobalIteratorType:Fee,getGlobalIterableType:nS,getGlobalIterableIteratorType:rS,getGlobalIteratorObjectType:iS,getGlobalGeneratorType:Lee,getGlobalBuiltinIteratorTypes:Iee,resolveIterationType:(e,t)=>lW(e,t,G.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:G.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:G.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:G.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},mr={iterableCacheKey:`iterationTypesOfIterable`,iteratorCacheKey:`iterationTypesOfIterator`,iteratorSymbolName:`iterator`,getGlobalIteratorType:Ree,getGlobalIterableType:aS,getGlobalIterableIteratorType:sS,getGlobalIteratorObjectType:uS,getGlobalGeneratorType:dS,getGlobalBuiltinIteratorTypes:lS,resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:G.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:G.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:G.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},hr,gr=new Map,_r=new Map,vr,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi=new Map,ki=0,Ai=0,ji=0,Mi=!1,Ni=0,Fi,Ii,Li,Ri=[],zi=[],Bi=[],Vi=0,Hi=[],Ui=[],Wi=[],Gi=0,Ki=[],qi=[],Yi=0,Xi=hE(``),Zi=gE(0),Qi=_E({negative:!1,base10Value:`0`}),$i=[],ea=[],ta=[],na=0,ra=!1,ia=0,aa=10,oa=[],sa=[],ca=[],la=[],ua=[],da=[],fa=[],pa=[],ma=[],ha=[],ga=[],_a=[],va=[],ya=[],ba=[],xa=[],Sa=[],Ca=[],wa=[],Ta=0,Ea=zv(),Da=zv(),Oa=eee(),ka,Aa,ja=new Map,Ma=new Map,Na=new Map,Pa=new Map,Fa=new Map,Ia=new Map,La=[[`.mts`,`.mjs`],[`.ts`,`.js`],[`.cts`,`.cjs`],[`.mjs`,`.mjs`],[`.js`,`.js`],[`.cjs`,`.cjs`],[`.tsx`,A.jsx===1?`.jsx`:`.js`],[`.jsx`,`.jsx`],[`.json`,`.json`]];return YJ(),st;function Ra(e){return!Ck(e)||!Y(e.name)||!Ck(e.expression)&&!Y(e.expression)?!1:Y(e.expression)?Gc(e.expression)===`Symbol`&&DN(e.expression)===(Ax(`Symbol`,1160127,void 0)||Ft):Y(e.expression.expression)?Gc(e.expression.name)===`Symbol`&&Gc(e.expression.expression)===`globalThis`&&DN(e.expression.expression)===L:!1}function za(e){return e?At.get(e):void 0}function Ba(e,t){return e&&At.set(e,t),t}function Va(e){if(e){let t=Yf(e);if(t)if(rj(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;let n=t.pragmas.get(`jsxfrag`);if(n&&(t.localJsxFragmentFactory=_P((mt(n)?n[0]:n).arguments.factory,j),Q(t.localJsxFragmentFactory,Ua,Ou),t.localJsxFragmentFactory))return t.localJsxFragmentNamespace=Nb(t.localJsxFragmentFactory).escapedText;let r=GJ(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=Nb(r).escapedText}else{let e=Ha(t);if(e)return t.localJsxNamespace=e}}return ka||(ka=`React`,A.jsxFactory?(Aa=_P(A.jsxFactory,j),Q(Aa,Ua),Aa&&(ka=Nb(Aa).escapedText)):A.reactNamespace&&(ka=Uc(A.reactNamespace))),Aa||=J.createQualifiedName(J.createIdentifier(Wc(ka)),`createElement`),ka}function Ha(e){if(e.localJsxNamespace)return e.localJsxNamespace;let t=e.pragmas.get(`jsx`);if(t&&(e.localJsxFactory=_P((mt(t)?t[0]:t).arguments.factory,j),Q(e.localJsxFactory,Ua,Ou),e.localJsxFactory))return e.localJsxNamespace=Nb(e.localJsxFactory).escapedText}function Ua(e){return Jw(e,-1,-1),PB(e,Ua,void 0)}function Ga(e,t,n){return n||Pq(e,t),Ae}function Ya(e,t,...n){let r=e?mm(e,t,...n):bS(t,...n);return Ea.lookup(r)||(Ea.add(r),r)}function Xa(e,t,n,...r){let i=U(t,n,...r);return i.skippedOn=e,i}function Za(e,t,...n){return e?mm(e,t,...n):bS(t,...n)}function U(e,t,...n){let r=Za(e,t,...n);return Ea.add(r),r}function Qa(e){let t=Yf(e).fileName;return Ja(t,[`.cts`,`.cjs`])?G.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax:G.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript}function eo(e,t){e?Ea.add(t):Da.add({...t,category:2})}function to(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;let i=Yf(t);eo(e,`message`in n?vS(i,0,0,n,...r):xm(i,n));return}eo(e,`message`in n?mm(t,n,...r):_m(Yf(t),t,n))}function no(e,t,n,...r){let i=U(e,n,...r);return t&&Dw(i,mm(e,G.Did_you_forget_to_use_await)),i}function io(e,t){let n=Array.isArray(e)?d(e,xl):xl(e);return n&&Dw(t,mm(n,G.The_declaration_was_marked_as_deprecated_here)),Da.add(t),t}function ao(e){let t=Ec(e);return t&&u(e.declarations)>1?t.flags&64?F(e.declarations,oo):v(e.declarations,oo):!!e.valueDeclaration&&oo(e.valueDeclaration)||u(e.declarations)&&v(e.declarations,oo)}function oo(e){return!!(fX(e)&536870912)}function so(e,t,n){return io(t,mm(e,G._0_is_deprecated,n))}function co(e,t,n,r){return io(t,n?mm(e,G.The_signature_0_of_1_is_deprecated,r,n):mm(e,G._0_is_deprecated,r))}function lo(e,t,n){f++;let r=new a(e|33554432,t);return r.links=new Nne,r.links.checkFlags=n||0,r}function uo(e,t){let n=lo(1,e);return n.links.type=t,n}function fo(e,t){let n=lo(4,e);return n.links.type=t,n}function mo(e){let t=0;return e&2&&(t|=111551),e&1&&(t|=111550),e&4&&(t|=0),e&8&&(t|=900095),e&16&&(t|=110991),e&32&&(t|=899503),e&64&&(t|=788872),e&256&&(t|=899327),e&128&&(t|=899967),e&512&&(t|=110735),e&8192&&(t|=103359),e&32768&&(t|=46015),e&65536&&(t|=78783),e&262144&&(t|=526824),e&524288&&(t|=788968),e&2097152&&(t|=2097152),t}function ho(e,t){t.mergeId||(t.mergeId=Ane,Ane++),oa[t.mergeId]=e}function go(e){let t=lo(e.flags,e.escapedName);return t.declarations=e.declarations?e.declarations.slice():[],t.parent=e.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),e.members&&(t.members=new Map(e.members)),e.exports&&(t.exports=new Map(e.exports)),ho(t,e),t}function _o(e,t,n=!1){if(!(e.flags&mo(t.flags))||(t.flags|e.flags)&67108864){if(t===e)return e;if(!(e.flags&33554432)){let n=Fs(e);if(n===Ft)return t;if(!(n.flags&mo(t.flags))||(t.flags|n.flags)&67108864)e=go(n);else return r(e,t),t}t.flags&512&&e.flags&512&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&Hg(e,t.valueDeclaration),Ee(e.declarations,t.declarations),t.members&&(e.members||=Cf(),xo(e.members,t.members,n)),t.exports&&(e.exports||=Cf(),xo(e.exports,t.exports,n,e)),n||ho(e,t)}else e.flags&1024?e!==L&&U(t.declarations&&el(t.declarations[0]),G.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Hl(e)):r(e,t);return e;function r(e,t){let n=!!(e.flags&384||t.flags&384),r=!!(e.flags&2||t.flags&2),a=n?G.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?G.Cannot_redeclare_block_scoped_variable_0:G.Duplicate_identifier_0,o=t.declarations&&Yf(t.declarations[0]),s=e.declarations&&Yf(e.declarations[0]),c=Zf(o,A.checkJs),l=Zf(s,A.checkJs),u=Hl(t);if(o&&s&&hr&&!n&&o!==s){let n=ko(o.path,s.path)===-1?o:s,a=n===o?s:o,d=oe(oe(hr,`${n.path}|${a.path}`,()=>({firstFile:n,secondFile:a,conflictingSymbols:new Map})).conflictingSymbols,u,()=>({isBlockScoped:r,firstFileLocations:[],secondFileLocations:[]}));c||i(d.firstFileLocations,t),l||i(d.secondFileLocations,e)}else c||vo(t,a,u,e),l||vo(e,a,u,t)}function i(e,t){if(t.declarations)for(let n of t.declarations)De(e,n)}}function vo(e,t,n,r){d(e.declarations,e=>{yo(e,t,n,r.declarations)})}function yo(e,t,n,r){let i=(vg(e,!1)?bg(e):el(e))||e,a=Ya(i,t,n);for(let e of r||c){let t=(vg(e,!1)?bg(e):el(e))||e;if(t===i)continue;a.relatedInformation=a.relatedInformation||[];let r=mm(t,G._0_was_also_declared_here,n),o=mm(t,G.and_here);u(a.relatedInformation)>=5||F(a.relatedInformation,e=>TS(e,o)===0||TS(e,r)===0)||Dw(a,u(a.relatedInformation)?o:r)}}function bo(e,t){if(!e?.size)return t;if(!t?.size)return e;let n=Cf();return xo(n,e),xo(n,t),n}function xo(e,t,n=!1,r){t.forEach((t,i)=>{let a=e.get(i),o=a?_o(a,t,n):Cc(t);r&&a&&(o.parent=r),e.set(i,o)})}function So(e){let t=e.parent;if(t.symbol.declarations?.[0]!==t){H.assert(t.symbol.declarations.length>1);return}if(Wp(t))xo(Ve,t.symbol.exports);else{let n=ec(e,e,e.parent.parent.flags&33554432?void 0:G.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!1,!0);if(!n)return;if(n=ic(n),n.flags&1920)if(F(xr,e=>n===e.symbol)){let r=_o(t.symbol,n,!0);Sr||=new Map,Sr.set(e.text,r)}else{if(n.exports?.get(`__export`)&&t.symbol.exports?.size){let e=Um(n,`resolvedExports`);for(let[r,i]of $e(t.symbol.exports.entries()))e.has(r)&&!n.exports.has(r)&&_o(e.get(r),i)}_o(n,t.symbol)}else U(e,G.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}}function Co(){let e=He.escapedName,t=Ve.get(e);t?d(t.declarations,t=>{fT(t)||Ea.add(mm(t,G.Declaration_name_conflicts_with_built_in_global_identifier_0,Wc(e)))}):Ve.set(e,He)}function wo(e){if(e.flags&33554432)return e.links;let t=hB(e);return sa[t]??(sa[t]=new Nne)}function To(e){let t=mB(e);return ca[t]||(ca[t]=new Pne)}function Eo(e,t,n){if(n){let r=Cc(e.get(t));if(r&&(r.flags&n||r.flags&2097152&&Rs(r)&n))return r}}function Do(e,t){let n=e.parent,r=e.parent.parent,i=Eo(n.locals,t,111551),a=Eo(Wm(r.symbol),t,111551);return i&&a?[i,a]:H.fail(`There should exist two symbols, one as property declaration and one as parameter declaration`)}function Oo(t,n){let r=Yf(t),i=Yf(n),a=cm(t);if(r!==i){if(N&&(r.externalModuleIndicator||i.externalModuleIndicator)||!A.outFile||Ny(n)||t.flags&33554432||s(n,t))return!0;let a=e.getSourceFiles();return a.indexOf(r)<=a.indexOf(i)}if(n.flags&16777216||Ny(n)||ON(n))return!0;if(t.pos<=n.pos&&!(RO(t)&&Nh(n.parent)&&!t.initializer&&!t.exclamationToken)){if(t.kind===209){let e=Q_(n,209);return e?K(e,bk)!==K(t,bk)||t.pose===t?`quit`:NO(e)?e.parent.parent===t:!ce&&IO(e)&&(e.parent===t||BO(e.parent)&&e.parent.parent===t||Vl(e.parent)&&e.parent.parent===t||RO(e.parent)&&e.parent.parent===t||FO(e.parent)&&e.parent.parent.parent===t));return e?!ce&&IO(e)?!!K(n,t=>t===e?`quit`:ju(t)&&!jh(t)):!1:!0}else if(RO(t))return!l(t,n,!1);else if(kc(t,t.parent))return!(le&&Sh(t)===Sh(n)&&s(n,t));return!0}if(n.parent.kind===282||n.parent.kind===278&&n.parent.isExportEquals||n.kind===278&&n.isExportEquals)return!0;if(s(n,t))return le&&Sh(t)&&(RO(t)||kc(t,t.parent))?!l(t,n,!0):!0;return!1;function o(e,t){switch(e.parent.parent.kind){case 244:case 249:case 251:if(Xo(t,e,a))return!0;break}let n=e.parent.parent;return wd(n)&&Xo(t,n.expression,a)}function s(e,t){return c(e,t)}function c(e,t){return!!K(e,n=>{if(n===a)return`quit`;if(ju(n))return!jh(n);if(VO(n))return t.pose.end?!1:K(t,t=>{if(t===e)return`quit`;switch(t.kind){case 220:return!0;case 173:return n&&(RO(e)&&t.parent===e.parent||kc(e,e.parent)&&t.parent===e.parent.parent)?`quit`:!0;case 242:switch(t.parent.kind){case 178:case 175:case 179:return!0;default:return!1}default:return!1}})===void 0}}function Ao(e){return To(e).declarationRequiresScopeChange}function jo(e,t){To(e).declarationRequiresScopeChange=t}function Mo(e,t,n,r){return le?!1:(e&&!r&&W(e,t,t)||U(e,e&&n.type&&cc(n.type,e.pos)?G.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:G.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,lm(n.name),Ro(t)),!0)}function Po(e,t,r,i){let a=gt(t)?t:t.escapedText;n(()=>{if(!e||e.parent.kind!==325&&!W(e,a,t)&&!zo(e)&&!Vo(e,a,r)&&!Wo(e,a)&&!Jo(e,a,r)&&!Go(e,a,r)&&!Ho(e,a,r)){let n,o;if(t&&(o=bne(t),o&&U(e,i,Ro(t),o)),!o&&ia{let n=t.escapedName,s=i&&vj(i)&&Am(i);if(e&&(r&2||(r&32||r&384)&&(r&111551)==111551)){let n=Rc(t);(n.flags&2||n.flags&32||n.flags&384)&&Yo(n,e)}if(s&&(r&111551)==111551&&!(e.flags&16777216)){let r=Cc(t);u(r.declarations)&&v(r.declarations,e=>AA(e)||vj(e)&&!!e.symbol.globalExports)&&to(!A.allowUmdGlobalAccess,e,G._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Wc(n))}if(a&&!o&&(r&111551)==111551){let n=Cc(Gm(t)),i=Dv(a);n===wc(a)?U(e,G.Parameter_0_cannot_reference_itself,lm(a.name)):n.valueDeclaration&&n.valueDeclaration.pos>a.pos&&i.parent.locals&&Eo(i.parent.locals,n.escapedName,r)===n&&U(e,G.Parameter_0_cannot_reference_identifier_1_declared_after_it,lm(a.name),lm(e))}if(e&&r&111551&&t.flags&2097152&&!(t.flags&111551)&&!Bw(e)){let r=Vs(t,111551);if(r){let t=r.kind===282||r.kind===279||r.kind===281?G._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:G._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,i=Wc(n);Lo(U(e,t,i),r,i)}}if(A.isolatedModules&&t&&s&&(r&111551)==111551){let e=Eo(Ve,n,r)===t&&vj(i)&&i.locals&&Eo(i.locals,n,-111552);if(e){let t=e.declarations?.find(e=>e.kind===277||e.kind===274||e.kind===275||e.kind===272);t&&!pu(t)&&U(t,G.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Wc(n))}}})}function Lo(e,t,n){return t?Dw(e,mm(t,t.kind===282||t.kind===279||t.kind===281?G._0_was_exported_here:G._0_was_imported_here,n)):e}function Ro(e){return gt(e)?Wc(e):lm(e)}function W(e,t,n){if(!Y(e)||e.escapedText!==t||Bq(e)||Ny(e))return!1;let r=Eh(e,!1,!1),i=r;for(;i;){if(zu(i.parent)){let a=wc(i.parent);if(!a)break;if(Kv(Jf(a),t))return U(e,G.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Ro(n),Hl(a)),!0;if(i===r&&!$y(i)){let r=Kp(a).thisType;if(Kv(r,t))return U(e,G.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Ro(n)),!0}}i=i.parent}return!1}function zo(e){let t=Bo(e);return t&&Js(t,64,!0)?(U(e,G.Cannot_extend_an_interface_0_Did_you_mean_implements,Ep(t)),!0):!1}function Bo(e){switch(e.kind){case 80:case 212:return e.parent?Bo(e.parent):void 0;case 234:if(Mb(e.expression))return e.expression;default:return}}function Vo(e,t,n){let r=1920|(ng(e)?111551:0);if(n===r){let n=Fs(rt(e,t,788968&~r,void 0,!1)),i=e.parent;if(n){if(MO(i)){H.assert(i.left===e,`Should only be resolving left side of qualified name as a namespace`);let r=i.right.escapedText;if(Kv(Kp(n),r))return U(i,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,Wc(t),Wc(r)),!0}return U(e,G._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Wc(t)),!0}}return!1}function Ho(e,t,n){if(n&788584){let n=Fs(rt(e,t,111127,void 0,!1));if(n&&!(n.flags&1920))return U(e,G._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Wc(t)),!0}return!1}function Uo(e){return e===`any`||e===`string`||e===`number`||e===`boolean`||e===`never`||e===`unknown`}function Wo(e,t){return Uo(t)&&e.parent.kind===282?(U(e,G.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0):!1}function Go(e,t,n){if(n&111551){if(Uo(t)){let n=e.parent.parent;if(n&&n.parent&&fj(n)){let r=n.token;n.parent.kind===265&&r===96?U(e,G.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Wc(t)):zu(n.parent)&&r===96?U(e,G.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Wc(t)):zu(n.parent)&&r===119&&U(e,G.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Wc(t))}else U(e,G._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Wc(t));return!0}let n=Fs(rt(e,t,788544,void 0,!1)),r=n&&Rs(n);if(n&&r!==void 0&&!(r&111551)){let r=Wc(t);return qo(t)?U(e,G._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,r):Ko(e,n)?U(e,G._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,r===`K`?`P`:`K`):U(e,G._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r),!0}}return!1}function Ko(e,t){let n=K(e.parent,e=>NO(e)||LO(e)?!1:$O(e)||`quit`);if(n&&n.members.length===1){let e=Kp(t);return!!(e.flags&1048576)&&dH(e,384,!0)}return!1}function qo(e){switch(e){case`Promise`:case`Symbol`:case`Map`:case`WeakMap`:case`Set`:case`WeakSet`:return!0}return!1}function Jo(e,t,n){if(n&111127){if(Fs(rt(e,t,1024,void 0,!1)))return U(e,G.Cannot_use_namespace_0_as_a_value,Wc(t)),!0}else if(n&788544&&Fs(rt(e,t,1536,void 0,!1)))return U(e,G.Cannot_use_namespace_0_as_a_type,Wc(t)),!0;return!1}function Yo(e,t){if(H.assert(!!(e.flags&2||e.flags&32||e.flags&384)),e.flags&67108881&&e.flags&32)return;let n=e.declarations?.find(e=>Lp(e)||zu(e)||e.kind===267);if(n===void 0)return H.fail(`checkResolvedBlockScopedVariable could not find block-scoped declaration`);if(!(n.flags&33554432)&&!Oo(n,t)){let r,i=lm(el(n));e.flags&2?r=U(t,G.Block_scoped_variable_0_used_before_its_declaration,i):e.flags&32?r=U(t,G.Class_0_used_before_its_declaration,i):e.flags&256?r=U(t,G.Enum_0_used_before_its_declaration,i):(H.assert(!!(e.flags&128)),US(A)&&(r=U(t,G.Enum_0_used_before_its_declaration,i))),r&&Dw(r,mm(n,G._0_is_declared_here,i))}}function Xo(e,t,n){return!!t&&!!K(e,e=>e===t||(e===n||ju(e)&&(!jh(e)||cv(e)&3)?`quit`:!1))}function Zo(e){switch(e.kind){case 272:return e;case 274:return e.parent;case 275:return e.parent.parent;case 277:return e.parent.parent.parent;default:return}}function Qo(e){return e.declarations&&b(e.declarations,$o)}function $o(e){return e.kind===272||e.kind===271||e.kind===274&&!!e.name||e.kind===275||e.kind===281||e.kind===277||e.kind===282||e.kind===278&&W_(e)||Rk(e)&&Eg(e)===2&&W_(e)||Zx(e)&&Rk(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&es(e.parent.right)||e.kind===305||e.kind===304&&es(e.initializer)||e.kind===261&&lg(e)||e.kind===209&&lg(e.parent.parent)}function es(e){return U_(e)||Ak(e)&&kB(e)}function ts(e,t){let n=Ds(e);if(n){let e=eS(n.expression).arguments[0];return Y(n.name)?Fs(Kv(ky(e),n.name.escapedText)):void 0}if(bA(e)||e.moduleReference.kind===284){let n=$s(e,Qh(e)||Zh(e)),r=ic(n);if(r&&102<=N&&N<=199){let n=vs(r,`module.exports`,e,t);if(n)return n}return zs(e,n,r,!1),r}let r=Hs(e.moduleReference,t);return ns(e,r),r}function ns(e,t){if(zs(e,void 0,t,!1)&&!e.isTypeOnly){let t=Vs(wc(e)),n=t.kind===282||t.kind===279,r=n?G.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:G.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?G._0_was_exported_here:G._0_was_imported_here,a=t.kind===279?`*`:Sp(t.name);Dw(U(e.moduleReference,r),mm(t,i,a))}}function rs(e,t,n,r){let i=e.exports.get(`export=`),a=i?Kv(Jf(i),t,!0):e.exports.get(t),o=Fs(a,r);return zs(n,a,o,!1),o}function as(e){return UA(e)&&!e.isExportEquals||Qy(e,2048)||KA(e)||BA(e)}function os(t){return uf(t)?e.getEmitSyntaxForUsageLocation(Yf(t),t):void 0}function ss(e,t){return e===99&&t===1}function cs(e,t){if(100<=N&&N<=199&&os(e)===99){t??=$s(e,e,!0);let n=t&&Xf(t);return n&&(jm(n)||kP(n.fileName)===`.d.json.ts`)}return!1}function ls(t,n,r,i){let a=t&&os(i);if(t&&a!==void 0){let n=e.getImpliedNodeFormatForEmit(t);if(a===99&&n===1&&100<=N&&N<=199)return!0;if(a===99&&n===99)return!1}if(!ue)return!1;if(!t||t.isDeclarationFile){let e=rs(n,`default`,void 0,!0);return!(e&&F(e.declarations,as)||rs(n,Uc(`__esModule`),void 0,r))}return tg(t)?typeof t.externalModuleIndicator!=`object`&&!rs(n,Uc(`__esModule`),void 0,r):fc(n)}function us(e,t){let n=$s(e,e.parent.moduleSpecifier);if(n)return ds(n,e,t)}function ds(t,n,r){let i=t.declarations?.find(vj),a=fs(n),o,s;if(Up(t))o=t;else if(i&&a&&102<=N&&N<=199&&os(a)===1&&e.getImpliedNodeFormatForEmit(i)===99&&(s=rs(t,`module.exports`,n,r))){if(!WS(A)){U(n.name,G.Module_0_can_only_be_default_imported_using_the_1_flag,Hl(t),`esModuleInterop`);return}return zs(n,s,void 0,!1),s}else o=rs(t,`default`,n,r);if(!a)return o;let c=cs(a,t),l=ls(i,t,r,a);if(!o&&!l&&!c)if(fc(t)&&!ue){let e=N>=5?`allowSyntheticDefaultImports`:`esModuleInterop`,r=t.exports.get(`export=`).valueDeclaration,i=U(n.name,G.Module_0_can_only_be_default_imported_using_the_1_flag,Hl(t),e);r&&Dw(i,mm(r,G.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,e))}else NA(n)?ps(t,n):Ss(t,t,n,fu(n)&&n.propertyName||n.name);else if(l||c){let e=ic(t,r)||Fs(t,r);return zs(n,t,e,!1),e}return zs(n,o,void 0,!1),o}function fs(e){switch(e.kind){case 274:return e.parent.moduleSpecifier;case 272:return ZA(e.moduleReference)?e.moduleReference.expression:void 0;case 275:return e.parent.parent.moduleSpecifier;case 277:return e.parent.parent.parent.moduleSpecifier;case 282:return e.parent.parent.moduleSpecifier;default:return H.assertNever(e)}}function ps(e,t){if(e.exports?.has(t.symbol.escapedName))U(t.name,G.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Hl(e),Hl(t.symbol));else{let n=U(t.name,G.Module_0_has_no_default_export,Hl(e)),r=e.exports?.get(`__export`);if(r){let e=r.declarations?.find(e=>!!(WA(e)&&e.moduleSpecifier&&($s(e,e.moduleSpecifier)?.exports)?.has(`default`)));e&&Dw(n,mm(e,G.export_Asterisk_does_not_re_export_a_default))}}}function ms(e,t){let n=e.parent.parent.moduleSpecifier,r=$s(e,n),i=lc(r,n,t,!1);return zs(e,r,i,!1),i}function hs(e,t){let n=e.parent.moduleSpecifier,r=n&&$s(e,n),i=n&&lc(r,n,t,!1);return zs(e,r,i,!1),i}function _s(e,t){if(e===Ft&&t===Ft)return Ft;if(e.flags&790504)return e;let n=lo(e.flags|t.flags,e.escapedName);return H.assert(e.declarations||t.declarations),n.declarations=ge(de(e.declarations,t.declarations),Mt),n.parent=e.parent||t.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),t.members&&(n.members=new Map(t.members)),e.exports&&(n.exports=new Map(e.exports)),n}function vs(e,t,n,r){if(e.flags&1536){let i=yc(e).get(t),a=Fs(i,r);return zs(n,i,a,!1,wo(e).typeOnlyExportStarMap?.get(t),t),a}}function bs(e,t){if(e.flags&3){let n=e.valueDeclaration.type;if(n)return Fs(Kv(DE(n),t))}}function xs(e,t,n=!1){let r=Qh(e)||e.moduleSpecifier,i=$s(e,r),a=!Ck(t)&&t.propertyName||t.name;if(!Y(a)&&a.kind!==11)return;let o=Cp(a),s=lc(i,r,!1,o===`default`&&ue);if(s&&(o||a.kind===11)){if(Up(i))return i;let c;c=i&&i.exports&&i.exports.get(`export=`)?Kv(Jf(s),o,!0):bs(s,o),c=Fs(c,n);let l=vs(s,o,t,n);if(l===void 0&&o===`default`){let e=i.declarations?.find(vj);(cs(r,i)||ls(e,i,n,r))&&(l=ic(i,n)||Fs(i,n))}let u=l&&c&&l!==c?_s(c,l):l||c;return fu(t)&&cs(r,i)&&o!==`default`?U(a,G.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,Pi[N]):u||Ss(i,s,e,a),u}}function Ss(e,t,n,r){let i=Us(e,n),a=lm(r),o=Y(r)?WR(r,t):void 0;if(o!==void 0){let e=Hl(o),t=U(r,G._0_has_no_exported_member_named_1_Did_you_mean_2,i,a,e);o.valueDeclaration&&Dw(t,mm(o.valueDeclaration,G._0_is_declared_here,e))}else e.exports?.has(`default`)?U(r,G.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,i,a):Cs(n,r,a,e,i)}function Cs(e,t,n,r,i){let a=(vt(r.valueDeclaration,Nd)?.locals)?.get(Cp(t)),o=r.exports;if(a){let r=o?.get(`export=`);if(r)Lc(r,a)?ws(e,t,n,i):U(t,G.Module_0_has_no_exported_member_1,i,n);else{let e=o?y(dy(o),e=>!!Lc(e,a)):void 0,r=e?U(t,G.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,Hl(e)):U(t,G.Module_0_declares_1_locally_but_it_is_not_exported,i,n);a.declarations&&Dw(r,...k(a.declarations,(e,t)=>mm(e,t===0?G._0_is_declared_here:G.and_here,n)))}}else U(t,G.Module_0_has_no_exported_member_1,i,n)}function ws(e,t,n,r){N>=5?U(t,WS(A)?G._0_can_only_be_imported_by_using_a_default_import:G._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):ng(e)?U(t,WS(A)?G._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:G._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):U(t,WS(A)?G._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:G._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,r)}function Ts(e,t){if(HA(e)&&wp(e.propertyName||e.name)){let n=fs(e),r=n&&$s(e,n);if(r)return ds(r,e,t)}let n=bk(e)?Dv(e):e.parent.parent.parent,r=Ds(n),i=xs(n,r||e,t),a=e.propertyName||e.name;return r&&i&&Y(a)?Fs(Kv(Jf(i),a.escapedText),t):(zs(e,void 0,i,!1),i)}function Ds(e){if(bA(e)&&e.initializer&&Ck(e.initializer))return e.initializer}function Os(e,t){if(Md(e.parent)){let n=ic(e.parent.symbol,t);return zs(e,void 0,n,!1),n}}function ks(e,t,n){let r=e.propertyName||e.name;if(wp(r)){let t=fs(e),r=t&&$s(e,t);if(r)return ds(r,e,!!n)}let i=e.parent.parent.moduleSpecifier?xs(e.parent.parent,e,n):r.kind===11?void 0:Js(r,t,!1,n);return zs(e,void 0,i,!1),i}function As(e,t){let n=js(UA(e)?e.expression:e.right,t);return zs(e,void 0,n,!1),n}function js(e,t){return Uk(e)?RH(e).symbol:!Ou(e)&&!Mb(e)?void 0:Js(e,901119,!0,t)||(RH(e),To(e).resolvedSymbol)}function Ms(e,t){if(Rk(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64)return js(e.parent.right,t)}function Ns(e,t=!1){switch(e.kind){case 272:case 261:return ts(e,t);case 274:return us(e,t);case 275:return ms(e,t);case 281:return hs(e,t);case 277:case 209:return Ts(e,t);case 282:return ks(e,901119,t);case 278:case 227:return As(e,t);case 271:return Os(e,t);case 305:return Js(e.name,901119,!0,t);case 304:return js(e.initializer,t);case 213:case 212:return Ms(e,t);default:return H.fail()}}function Ps(e,t=901119){return e?(e.flags&(2097152|t))==2097152||!!(e.flags&2097152&&e.flags&67108864):!1}function Fs(e,t){return!t&&Ps(e)?Is(e):e}function Is(e){H.assert((e.flags&2097152)!=0,`Should only get Alias here.`);let t=wo(e);if(t.aliasTarget)t.aliasTarget===Lt&&(t.aliasTarget=Ft);else{t.aliasTarget=Lt;let n=Qo(e);if(!n)return H.fail();let r=Ns(n);t.aliasTarget===Lt?t.aliasTarget=r||Ft:U(n,G.Circular_definition_of_import_alias_0,Hl(e))}return t.aliasTarget}function Ls(e){if(wo(e).aliasTarget!==Lt)return Is(e)}function Rs(e,t,n){let r=t&&Vs(e),i=r&&WA(r),a=r&&(i?$s(r.moduleSpecifier,r.moduleSpecifier,!0):Is(r.symbol)),o=i&&a?bc(a):void 0,s=n?0:e.flags,c;for(;e.flags&2097152;){let t=Rc(Is(e));if(!i&&t===a||o?.get(t.escapedName)===t)break;if(t===Ft)return-1;if(t===e||c?.has(t))break;t.flags&2097152&&(c?c.add(t):c=new Set([e,t])),s|=t.flags,e=t}return s}function zs(e,t,n,r,i,a){if(!e||Ck(e))return!1;let o=wc(e);if(hu(e)){let t=wo(o);return t.typeOnlyDeclaration=e,!0}if(i){let e=wo(o);return e.typeOnlyDeclaration=i,o.escapedName!==a&&(e.typeOnlyExportStarName=a),!0}let s=wo(o);return Bs(s,t,r)||Bs(s,n,r)}function Bs(e,t,n){if(t&&(e.typeOnlyDeclaration===void 0||n&&e.typeOnlyDeclaration===!1)){let n=t.exports?.get(`export=`)??t;e.typeOnlyDeclaration=(n.declarations&&y(n.declarations,hu))??wo(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function Vs(e,t){if(!(e.flags&2097152))return;let n=wo(e);if(n.typeOnlyDeclaration===void 0){n.typeOnlyDeclaration=!1;let t=Fs(e);zs(e.declarations?.[0],Qo(e)&&OL(e),t,!0)}if(t===void 0)return n.typeOnlyDeclaration||void 0;if(n.typeOnlyDeclaration)return Rs(n.typeOnlyDeclaration.kind===279?Fs(bc(n.typeOnlyDeclaration.symbol.parent).get(n.typeOnlyExportStarName||e.escapedName)):Is(n.typeOnlyDeclaration.symbol))&t?n.typeOnlyDeclaration:void 0}function Hs(e,t){return e.kind===80&&Rb(e)&&(e=e.parent),e.kind===80||e.parent.kind===167?Js(e,1920,!1,t):(H.assert(e.parent.kind===272),Js(e,901119,!1,t))}function Us(e,t){return e.parent?Us(e.parent,t)+`.`+Hl(e):Hl(e,t,void 0,36)}function Ks(e){for(;MO(e.parent);)e=e.parent;return e}function qs(e){let t=Nb(e),n=rt(t,t,111551,void 0,!0);if(n){for(;MO(t.parent);){if(n=Kv(Jf(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}function Js(e,t,n,r,i){if(rp(e))return;let a=1920|(ng(e)?t&111551:0),o;if(e.kind===80){let r=t===a||kv(e)?G.Cannot_find_namespace_0:TN(Nb(e)),s=ng(e)&&!kv(e)?Ys(e,t):void 0;if(o=Cc(rt(i||e,e,t,n||s?void 0:r,!0,!1)),!o)return Cc(s)}else if(e.kind===167||e.kind===212){let r=e.kind===167?e.left:e.expression,s=e.kind===167?e.right:e.name,c=Js(r,a,n,!1,i);if(!c||rp(s))return;if(c===Ft)return c;if(c.valueDeclaration&&ng(c.valueDeclaration)&&VS(A)!==100&&bA(c.valueDeclaration)&&c.valueDeclaration.initializer&&HB(c.valueDeclaration.initializer)){let e=c.valueDeclaration.initializer.arguments[0],t=$s(e,e);if(t){let e=ic(t);e&&(c=e)}}if(o=Cc(Eo(yc(c),s.escapedText,t)),!o&&c.flags&2097152&&(o=Cc(Eo(yc(Is(c)),s.escapedText,t))),!o){if(!n){let n=Us(c),r=lm(s),i=WR(s,c);if(i){U(s,G._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,Hl(i));return}let a=MO(e)&&Ks(e);if(Cr&&t&788968&&a&&!Nk(a.parent)&&qs(a)){U(a,G._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,pm(a));return}if(t&1920&&MO(e.parent)){let t=Cc(Eo(yc(c),s.escapedText,788968));if(t){U(e.parent.right,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,Hl(t),Wc(e.parent.right.escapedText));return}}U(s,G.Namespace_0_has_no_exported_member_1,n,r)}return}}else H.assertNever(e,`Unknown entity name kind.`);return!kv(e)&&Ou(e)&&(o.flags&2097152||e.parent.kind===278)&&zs(H_(e),o,void 0,!0),o.flags&t||r?o:Is(o)}function Ys(e,t){if(bx(e.parent)){let n=Xs(e.parent);if(n)return rt(n,e,t,void 0,!0)}}function Xs(e){if(K(e,e=>Xd(e)||e.flags&16777216?t_(e):`quit`))return;let t=y_(e);if(t&&iA(t)&&Bg(t.expression)){let e=wc(t.expression.left);if(e)return Zs(e)}if(t&&Ak(t)&&Bg(t.parent)&&iA(t.parent.parent)){let e=wc(t.parent.left);if(e)return Zs(e)}if(t&&(mh(t)||mj(t))&&Rk(t.parent.parent)&&Eg(t.parent.parent)===6){let e=wc(t.parent.parent.left);if(e)return Zs(e)}let n=v_(e);if(n&&ju(n)){let e=wc(n);return e&&e.valueDeclaration}}function Zs(e){let t=e.parent.valueDeclaration;if(t)return(mg(t)?_g(t):af(t)?gg(t):void 0)||t}function Qs(e){let t=e.valueDeclaration;if(!t||!ng(t)||e.flags&524288||vg(t,!1))return;let n=bA(t)?gg(t):_g(t);if(n){let t=Tc(n);if(t)return AB(t,e)}}function $s(e,t,n){let r=VS(A)===1?G.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:G.Cannot_find_module_0_or_its_corresponding_type_declarations;return ec(e,t,n?void 0:r,n)}function ec(e,t,n,r=!1,i=!1){return uf(t)?nc(e,t.text,n,r?void 0:t,i):void 0}function nc(t,n,r,i,a=!1){if(i&&pn(n,`@types/`)){let e=G.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;U(i,e,mn(n,`@types/`),n)}let o=fy(n,!0);if(o)return o;let s=Yf(t),c=uf(t)?t:(DA(t)?t:t.parent&&DA(t.parent)&&t.parent.name===t?t.parent:void 0)?.name||(Hm(t)?t:void 0)?.argument.literal||(bA(t)&&t.initializer&&sg(t.initializer,!0)?t.initializer.arguments[0]:void 0)||K(t,Bm)?.arguments[0]||K(t,vn(MA,oM,WA))?.moduleSpecifier||K(t,Xh)?.moduleReference.expression,l=c&&uf(c)?e.getModeForUsageLocation(s,c):e.getDefaultResolutionModeForFile(s),u=VS(A),d=e.getResolvedModule(s,n,l)?.resolvedModule,f=i&&d&&dG(A,d,s),p=d&&(!f||f===G.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(d.resolvedFileName);if(p){if(f&&U(i,f,n,d.resolvedFileName),d.resolvedUsingTsExtension&&OP(n)){let e=K(t,MA)?.importClause||K(t,vn(jA,WA));(i&&e&&!e.isTypeOnly||K(t,Bm))&&U(i,G.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,m(H.checkDefined(qb(n))))}else if(d.resolvedUsingTsExtension&&!iz(A,s.fileName)){let e=K(t,MA)?.importClause||K(t,vn(jA,WA));if(i&&!(e?.isTypeOnly||K(t,hk))){let e=H.checkDefined(qb(n));U(i,G.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}else if(A.rewriteRelativeImportExtensions&&!(t.flags&33554432)&&!OP(n)&&!Hm(t)&&!gu(t)){let t=Jg(n,A);if(!d.resolvedUsingTsExtension&&t)U(i,G.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,Fo(po(s.fileName,e.getCurrentDirectory()),d.resolvedFileName,oy(e)));else if(d.resolvedUsingTsExtension&&!t&&yy(p,e))U(i,G.This_import_uses_a_0_extension_to_resolve_to_an_input_TypeScript_file_but_will_not_be_rewritten_during_emit_because_it_is_not_a_relative_path,ro(n));else if(d.resolvedUsingTsExtension&&t){let t=e.getRedirectFromSourceFile(p.path)?.resolvedRef;if(t){let n=!e.useCaseSensitiveFileNames(),r=e.getCommonSourceDirectory(),a=jU(t.commandLine,n);No(r,a,n)!==No(A.outDir||r,t.commandLine.options.outDir||a,n)&&U(i,G.This_import_path_is_unsafe_to_rewrite_because_it_resolves_to_another_project_and_the_relative_path_between_the_projects_output_files_is_not_the_same_as_the_relative_path_between_its_input_files)}}}if(p.symbol){if(i&&d.isExternalLibraryImport&&!yw(d.extension)&&rc(!1,i,s,l,d,n),i&&(N===100||N===101)){let e=s.impliedNodeFormat===1&&!K(t,Bm)||!!K(t,jA),r=K(t,e=>hk(e)||WA(e)||MA(e)||oM(e));if(e&&p.impliedNodeFormat===99&&!MT(r))if(K(t,jA))U(i,G.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,n);else{let e,t=Sw(s.fileName);(t===`.ts`||t===`.js`||t===`.tsx`||t===`.jsx`)&&(e=Hf(s));let a=r?.kind===273&&r.importClause?.isTypeOnly?G.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:r?.kind===206?G.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:G.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;Ea.add(_m(Yf(i),i,SS(e,a,n)))}}return Cc(p.symbol)}i&&r&&!GT(i)&&U(i,G.File_0_is_not_a_module,p.fileName);return}if(xr){let e=fn(xr,e=>e.pattern,n);if(e)return Cc(Sr&&Sr.get(n)||e.symbol)}if(!i)return;if(d&&!yw(d.extension)&&f===void 0||f===G.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(a){let e=G.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;U(i,e,n,d.resolvedFileName)}else rc(ye&&!!r,i,s,l,d,n);return}if(r){if(d){let t=e.getRedirectFromSourceFile(d.resolvedFileName);if(t?.outputDts){U(i,G.Output_file_0_has_not_been_built_from_source_file_1,t.outputDts,d.resolvedFileName);return}}if(f)U(i,f,n,d.resolvedFileName);else{let t=Wa(n)&&!Ka(n),a=u===3||u===99;if(!JS(A)&&qa(n,`.json`)&&u!==1&&nC(A))U(i,G.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(l===99&&a&&t){let t=po(n,$a(s.path)),r=La.find(([n,r])=>e.fileExists(t+n))?.[1];r?U(i,G.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):U(i,G.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 e.getResolvedModule(s,n,l)?.alternateResult?to(!0,i,SS(Vf(s,e,n,l,n),r,n)):U(i,r,n)}}return;function m(e){let t=fw(n,e);if(tC(N)||l===99){let r=OP(n)&&iz(A);return t+(e===`.mts`||e===`.d.mts`?r?`.mts`:`.mjs`:e===`.cts`||e===`.d.mts`?r?`.cts`:`.cjs`:r?`.ts`:`.js`)}return t}}function rc(t,n,r,i,{packageId:a,resolvedFileName:o},s){if(GT(n))return;let c;!tc(s)&&a&&(c=Vf(r,e,s,i,a.name)),to(t,n,SS(c,G.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,o))}function ic(e,t){if(e?.exports)return Cc(oc(Cc(Fs(e.exports.get(`export=`),t)),Cc(e)))||e}function oc(e,t){if(!e||e===Ft||e===t||t.exports.size===1||e.flags&2097152)return e;let n=wo(e);if(n.cjsExportMerged)return n.cjsExportMerged;let r=e.flags&33554432?e:go(e);return r.flags|=512,r.exports===void 0&&(r.exports=Cf()),t.exports.forEach((e,t)=>{t!==`export=`&&r.exports.set(t,r.exports.has(t)?_o(r.exports.get(t),e):e)}),r===e&&(wo(r).resolvedExports=void 0,wo(r).resolvedMembers=void 0),wo(r).cjsExportMerged=r,n.cjsExportMerged=r}function lc(t,n,r,i){let a=ic(t,r);if(!r&&a){if(!i&&!(a.flags&1539)&&!xf(a,308)){let e=N>=5?`allowSyntheticDefaultImports`:`esModuleInterop`;return U(n,G.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),a}let o=n.parent,s=MA(o)&&Xg(o);if(s||Bm(o)){let c=Bm(o)?o.arguments[0]:o.moduleSpecifier,l=Jf(a),u=BB(l,a,t,c);if(u)return dc(a,u,o);let d=(t?.declarations)?.find(vj),f=os(c),p;if(s&&d&&102<=N&&N<=199&&f===1&&e.getImpliedNodeFormatForEmit(d)===99&&(p=rs(a,`module.exports`,s,r)))return!i&&!(a.flags&1539)&&U(n,G.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,`esModuleInterop`),WS(A)&&uc(l)?dc(p,l,o):p;let m=d&&ss(f,e.getImpliedNodeFormatForEmit(d));if((WS(A)||m)&&(uc(l)||Kv(l,`default`,!0)||m))return dc(a,l.flags&3670016?VB(l,a,t,c):zB(a,a.parent),o)}}return a}function uc(e){return F(qv(e,0))||F(qv(e,1))}function dc(e,t,n){let r=lo(e.flags,e.escapedName);r.declarations=e.declarations?e.declarations.slice():[],r.parent=e.parent,r.links.target=e,r.links.originatingImport=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),e.members&&(r.members=new Map(e.members)),e.exports&&(r.exports=new Map(e.exports));let i=u_(t);return r.links.type=pl(r,i.members,c,c,i.indexInfos),r}function fc(e){return e.exports.get(`export=`)!==void 0}function pc(e){return dy(bc(e))}function mc(e){let t=pc(e),n=ic(e);if(n!==e){let e=Jf(n);vc(e)&&Ee(t,S_(e))}return t}function hc(e,t){bc(e).forEach((e,n)=>{ol(n)||t(e,n)});let n=ic(e);if(n!==e){let e=Jf(n);vc(e)&&C_(e,(e,n)=>{t(e,n)})}}function gc(e,t){let n=bc(t);if(n)return n.get(e)}function _c(e,t){let n=gc(e,t);if(n)return n;let r=ic(t);if(r===t)return;let i=Jf(r);return vc(i)?Kv(i,e):void 0}function vc(e){return!(e.flags&402784252||Wx(e)&1||hA(e)||Ej(e))}function yc(e){return e.flags&6256?Um(e,`resolvedExports`):e.flags&1536?bc(e):e.exports||ie}function bc(e){let t=wo(e);if(!t.resolvedExports){let{exports:n,typeOnlyExportStarMap:r}=Sc(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function xc(e,t,n,r){t&&t.forEach((t,i)=>{if(i===`default`)return;let a=e.get(i);if(!a)e.set(i,t),n&&r&&n.set(i,{specifierText:Ep(r.moduleSpecifier)});else if(n&&r&&a&&Fs(a)!==Fs(t)){let e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}})}function Sc(e){let t=[],n,r=new Set;e=ic(e);let i=a(e)||ie;return n&&r.forEach(e=>n.delete(e)),{exports:i,typeOnlyExportStarMap:n};function a(e,i,o){if(!o&&e?.exports&&e.exports.forEach((e,t)=>r.add(t)),!(e&&e.exports&&De(t,e)))return;let s=new Map(e.exports),c=e.exports.get(`__export`);if(c){let e=Cf(),t=new Map;if(c.declarations)for(let n of c.declarations)xc(e,a($s(n,n.moduleSpecifier),n,o||n.isTypeOnly),t,n);t.forEach(({exportsWithDuplicate:e},n)=>{if(!(n===`export=`||!(e&&e.length)||s.has(n)))for(let r of e)Ea.add(mm(r,G.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,t.get(n).specifierText,Wc(n)))}),xc(s,e)}return i?.isTypeOnly&&(n??=new Map,s.forEach((e,t)=>n.set(t,i))),s}}function Cc(e){let t;return e&&e.mergeId&&(t=oa[e.mergeId])?t:e}function wc(e){return Cc(e.symbol&&Gm(e.symbol))}function Tc(e){return Md(e)?wc(e):void 0}function Ec(e){return Cc(e.parent&&Gm(e.parent))}function Dc(e){return(e.valueDeclaration?.kind===220||e.valueDeclaration?.kind===219)&&Tc(e.valueDeclaration.parent)||e}function Oc(t,n){let r=Yf(n),i=mB(r),a=wo(t),o;if(a.extendedContainersByFile&&(o=a.extendedContainersByFile.get(i)))return o;if(r&&r.imports){for(let e of r.imports){if(kv(e))continue;let r=$s(n,e,!0);r&&Fc(r,t)&&(o=I(o,r))}if(u(o))return(a.extendedContainersByFile||=new Map).set(i,o),o}if(a.extendedContainers)return a.extendedContainers;let s=e.getSourceFiles();for(let e of s){if(!yP(e))continue;let n=wc(e);Fc(n,t)&&(o=I(o,n))}return a.extendedContainers=o||c}function Ac(e,t,n){let r=Ec(e);if(r&&!(e.flags&262144))return c(r);let i=M(e.declarations,t=>{if(!zp(t)&&t.parent){if(Nl(t.parent))return wc(t.parent);if(OA(t.parent)&&t.parent.parent&&ic(wc(t.parent.parent))===e)return wc(t.parent.parent)}if(Uk(t)&&Rk(t.parent)&&t.parent.operatorToken.kind===64&&Zx(t.parent.left)&&Mb(t.parent.left.expression))return Tg(t.parent.left)||Cg(t.parent.left.expression)?wc(Yf(t)):(RH(t.parent.left.expression),To(t.parent.left.expression).resolvedSymbol)});if(!u(i))return;let a=M(i,t=>Fc(t,e)?t:void 0),o=[],s=[];for(let e of a){let[t,...n]=c(e);o=I(o,t),s=Ee(s,n)}return de(o,s);function c(r){let i=M(r.declarations,l),a=t&&Oc(e,t),o=jc(r,n);if(t&&r.flags&gl(n)&&_l(r,t,1920,!1))return I(de(de([r],i),a),o);let s=!(r.flags&gl(n))&&r.flags&788968&&Kp(r).flags&524288&&n===111551?hl(t,e=>Mf(e,e=>{if(e.flags&gl(n)&&Jf(e)===Kp(r))return e})):void 0,c=s?[s,...i,r]:[...i,r];return c=I(c,o),c=Ee(c,a),c}function l(e){return r&&Nc(e,r)}}function jc(e,t){let n=!!u(e.declarations)&&Ie(e.declarations);if(t&111551&&n&&n.parent&&bA(n.parent)&&(Sk(n)&&n===n.parent.initializer||$O(n)&&n===n.parent.type))return wc(n.parent)}function Nc(e,t){let n=Al(e),r=n&&n.exports&&n.exports.get(`export=`);return r&&Lc(r,t)?n:void 0}function Fc(e,t){if(e===Ec(t))return t;let n=e.exports&&e.exports.get(`export=`);if(n&&Lc(n,t))return e;let r=yc(e),i=r.get(t.escapedName);return i&&Lc(i,t)?i:Mf(r,e=>{if(Lc(e,t))return e})}function Lc(e,t){if(Cc(Fs(Cc(e)))===Cc(Fs(Cc(t))))return e}function Rc(e){return Cc(e&&(e.flags&1048576)!=0&&e.exportSymbol||e)}function zc(e,t){return!!(e.flags&111551||e.flags&2097152&&Rs(e,!t)&111551)}function Vc(e){var t;let n=new o(st,e);return l++,n.id=l,(t=Ar)==null||t.recordType(n),n}function Jc(e,t){let n=Vc(e);return n.symbol=t,n}function Yc(e){return new o(st,e)}function Zc(e,t,n=0,r){$c(t,r);let i=Vc(e);return i.intrinsicName=t,i.debugIntrinsicName=r,i.objectFlags=n|52953088,i}function $c(e,t){let n=`${e},${t??``}`;Bt.has(n)&&H.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:``}; you may need to pass a name to createIntrinsicType.`),Bt.add(n)}function tl(e,t){let n=Jc(524288,t);return n.objectFlags=e,n.members=void 0,n.properties=void 0,n.callSignatures=void 0,n.constructSignatures=void 0,n.indexInfos=void 0,n}function eee(){return AC($e(uB.keys(),hE))}function al(e){return Jc(262144,e)}function ol(e){return e.charCodeAt(0)===95&&e.charCodeAt(1)===95&&e.charCodeAt(2)!==95&&e.charCodeAt(2)!==64&&e.charCodeAt(2)!==35}function sl(e){let t;return e.forEach((e,n)=>{cl(e,n)&&(t||=[]).push(e)}),t||c}function cl(e,t){return!ol(t)&&zc(e)}function ul(e){let t=sl(e),n=_b(e);return n?de(t,[n]):t}function dl(e,t,n,r,i){let a=e;return a.members=t,a.properties=c,a.callSignatures=n,a.constructSignatures=r,a.indexInfos=i,t!==ie&&(a.properties=sl(t)),a}function pl(e,t,n,r,i){return dl(tl(16,e),t,n,r,i)}function ml(e){if(e.constructSignatures.length===0)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;let t=E(e.constructSignatures,e=>!(e.flags&4));if(e.constructSignatures===t)return e;let n=pl(e.symbol,e.members,e.callSignatures,F(t)?t:c,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}function hl(e,t){let n;for(let r=e;r;r=r.parent){if(Nd(r)&&r.locals&&!km(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 308:if(!Am(r))break;case 268:if(n=t(wc(r)?.exports||ie,void 0,!0,r))return n;break;case 264:case 232:case 265:let e;if((wc(r).members||ie).forEach((t,n)=>{t.flags&788968&&(e||=Cf()).set(n,t)}),e&&(n=t(e,void 0,!1,r)))return n;break}}return t(Ve,void 0,!0)}function gl(e){return e===111551?111551:1920}function _l(e,t,n,r,i=new Map){if(!(e&&!tee(e)))return;let a=wo(e),o=a.accessibleChainCache||=new Map,s=hl(t,(e,t,n,r)=>r),c=`${r?0:1}|${s?mB(s):0}|${n}`;if(o.has(c))return o.get(c);let l=hB(e),u=i.get(l);u||i.set(l,u=[]);let d=hl(t,f);return o.set(c,d),d;function f(e,t,n){if(!De(u,e))return;let r=h(e,t,n);return u.pop(),r}function p(e,n){return!vl(e,t,n)||!!_l(e.parent,t,gl(n),r,i)}function m(t,r,i){return(e===(r||t)||Cc(e)===Cc(r||t))&&!F(t.declarations,Nl)&&(i||p(Cc(t),n))}function h(n,i,a){return m(n.get(e.escapedName),void 0,i)?[e]:Mf(n,n=>{if(n.flags&2097152&&n.escapedName!==`export=`&&n.escapedName!==`default`&&!(Gx(n)&&t&&yP(Yf(t)))&&(!r||F(n.declarations,Xh))&&(!a||!F(n.declarations,Yh))&&(i||!xf(n,282))){let e=g(n,Is(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&m(Cc(n.exportSymbol),void 0,i))return[e]})||(n===Ve?g(L,L,i):void 0)}function g(e,t,r){if(m(e,t,r))return[e];let i=yc(t),a=i&&f(i,!0);if(a&&p(e,gl(n)))return[e].concat(a)}}function vl(e,t,n){let r=!1;return hl(t,t=>{let i=Cc(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;let a=i.flags&2097152&&!xf(i,282);return i=a?Is(i):i,(a?Rs(i):i.flags)&n?(r=!0,!0):!1}),r}function tee(e){if(e.declarations&&e.declarations.length){for(let t of e.declarations)switch(t.kind){case 173:case 175:case 178:case 179:continue;default:return!1}return!0}return!1}function yl(e,t){return Dl(e,t,788968,!1,!0).accessibility===0}function bl(e,t){return Dl(e,t,111551,!1,!0).accessibility===0}function Sl(e,t,n){return Dl(e,t,n,!1,!1).accessibility===0}function Tl(e,t,n,r,i,a){if(!u(e))return;let o,s=!1;for(let c of e){let e=_l(c,t,r,!1);if(e){o=c;let t=Fl(e[0],i);if(t)return t}if(a&&F(c.declarations,Nl)){if(i){s=!0;continue}return{accessibility:0}}let l=Tl(Ac(c,t,r),t,n,n===c?gl(r):r,i,a);if(l)return l}if(s)return{accessibility:0};if(o)return{accessibility:1,errorSymbolName:Hl(n,t,r),errorModuleName:o===n?void 0:Hl(o,t,1920)}}function El(e,t,n,r){return Dl(e,t,n,r,!0)}function Dl(e,t,n,r,i){if(e&&t){let a=Tl([e],t,e,n,r,i);if(a)return a;let o=d(e.declarations,Al);return o&&o!==Al(t)?{accessibility:2,errorSymbolName:Hl(e,t,n),errorModuleName:Hl(o),errorNode:ng(t)?t:void 0}:{accessibility:1,errorSymbolName:Hl(e,t,n)}}return{accessibility:0}}function Al(e){let t=K(e,jl);return t&&wc(t)}function jl(e){return zp(e)||e.kind===308&&Am(e)}function Nl(e){return Bp(e)||e.kind===308&&Am(e)}function Fl(e,t){let n;if(!v(E(e.declarations,e=>e.kind!==80),r))return;return{accessibility:0,aliasesToMakeVisible:n};function r(t){if(!xu(t)){let n=Zo(t);if(n&&!Qy(n,32)&&xu(n.parent))return i(t,n);if(bA(t)&&nA(t.parent.parent)&&!Qy(t.parent.parent,32)&&xu(t.parent.parent.parent))return i(t,t.parent.parent);if(im(t)&&!Qy(t,32)&&xu(t.parent))return i(t,t);if(bk(t)){if(e.flags&2097152&&ng(t)&&t.parent?.parent&&bA(t.parent.parent)&&t.parent.parent.parent?.parent&&nA(t.parent.parent.parent.parent)&&!Qy(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&xu(t.parent.parent.parent.parent.parent))return i(t,t.parent.parent.parent.parent);if(e.flags&2){let e=Mc(t);if(e.kind===170)return!1;let n=e.parent.parent;return n.kind===244?Qy(n,32)?!0:xu(n.parent)?i(t,n):!1:!1}}return!1}return!0}function i(e,r){return t&&(To(e).isVisible=!0,n=Oe(n,r)),!0}}function Ll(e){let t;return t=e.parent.kind===187||e.parent.kind===234&&!eh(e.parent)||e.parent.kind===168||e.parent.kind===183&&e.parent.parameterName===e?1160127:e.kind===167||e.kind===212||e.parent.kind===272||e.parent.kind===167&&e.parent.left===e||e.parent.kind===212&&e.parent.expression===e||e.parent.kind===213&&e.parent.expression===e?1920:788968,t}function Bl(e,t,n=!0){let r=Ll(e),i=Nb(e),a=rt(t,i.escapedText,r,void 0,!1);return a&&a.flags&262144&&r&788968||!a&&My(i)&&El(wc(Eh(i,!1,!1)),i,r,!1).accessibility===0?{accessibility:0}:a?Fl(a,n)||{accessibility:1,errorSymbolName:Ep(i),errorNode:i}:{accessibility:3,errorSymbolName:Ep(i),errorNode:i}}function Hl(e,t,n,r=4,i){let a=70221824,o=0;r&2&&(a|=128),r&1&&(a|=512),r&8&&(a|=16384),r&32&&(o|=4),r&16&&(o|=1);let s=r&4?je.symbolToNode:je.symbolToEntityName;return i?c(i).getText():Ff(c);function c(r){let i=s(e,n,t,a,o),c=t?.kind===308?HU():VU(),l=t&&Yf(t);return c.writeNode(4,i,l,r),r}}function Ul(e,t,n=0,r,i,a,o,s){return i?c(i).getText():Ff(c);function c(i){let c;c=n&262144?r===1?186:185:r===1?181:180;let l=je.signatureToSignatureDeclaration(e,c,t,eu(n)|70222336,void 0,void 0,a,o,s),u=UU(),d=t&&Yf(t);return u.writeNode(4,l,d,iy(i)),i}}function Yl(e,t,n=1064960,r=ry(``),i,a,o){let s=!i&&A.noErrorTruncation||n&1,c=je.typeToTypeNode(e,t,eu(n)|70221824|(s?1:0),void 0,void 0,i,a,o);if(c===void 0)return H.fail(`should always get typenode`);let l=e===Kt?BU():VU(),u=t&&Yf(t);l.writeNode(4,c,u,r);let d=r.getText(),f=i||(s?yf*2:vf*2);return d&&d.length>=f?d.substr(0,f-3)+`...`:d}function Zl(e,t){let n=$l(e.symbol)?Yl(e,e.symbol.valueDeclaration):Yl(e),r=$l(t.symbol)?Yl(t,t.symbol.valueDeclaration):Yl(t);return n===r&&(n=Ql(e),r=Ql(t)),[n,r]}function Ql(e){return Yl(e,void 0,64)}function $l(e){return e&&!!e.valueDeclaration&&q(e.valueDeclaration)&&!vD(e.valueDeclaration)}function eu(e=0){return e&848330095}function nu(e){return!!e.symbol&&!!(e.symbol.flags&32)&&(e===Mp(e.symbol)||!!(e.flags&524288)&&!!(Wx(e)&16777216))}function ru(e){return DE(e)}function iu(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:YK,isExpandoFunctionDeclaration:TJ,hasLateBindableName:Dm,shouldRemoveDeclaration(e,t){return!(e.internalFlags&8&&Mb(t.name.expression)&&TL(t.name).flags&1)},createRecoveryBoundary(e){return le(e)},isDefinitelyReferenceToGlobalSymbolObject:Ra,getAllAccessorDeclarations:PJ,requiresAddingImplicitUndefined(e,t,n){switch(e.kind){case 173:case 172:case 349:t??=wc(e);let r=Jf(t);return!!(t.flags&4&&t.flags&16777216&&vT(e)&&t.links?.mappedType&&aO(r));case 170:case 342:return SJ(e,n);default:H.assertNever(e)}},isOptionalParameter:my,isUndefinedIdentifierExpression(e){return Qq(e)===He},isEntityNameVisible(e,t,n){return Bl(t,e.enclosingDeclaration,n)},serializeExistingTypeNode(e,t,n){return tt(e,t,!!n)},serializeReturnTypeForSignature(e,t,n){let r=e,i=by(t);return n??=wc(t),Xe(r,i,r.enclosingSymbolTypes.get(hB(n))??dD(Uy(i),r.mapper))},serializeTypeOfExpression(e,t){let n=e;return O(dD(CM(aJ(t)),n.mapper),n)},serializeTypeOfDeclaration(e,t,n){let r=e;n??=wc(t);let i=r.enclosingSymbolTypes?.get(hB(n));return i===void 0&&(i=n.flags&98304&&t.kind===179?dD(Kf(n),r.mapper):n&&!(n.flags&133120)?dD(yj(Jf(n)),r.mapper):Gt),t&&(FO(t)||Yj(t))&&SJ(t,r.enclosingDeclaration)&&(i=Jj(i)),Ke(n,r,i)},serializeNameOfParameter(e,t){return be(wc(t),t,e)},serializeEntityName(e,t){let n=e,r=Qq(t,!0);if(r&&bl(r,n.enclosingDeclaration))return Fe(r,n,1160127)},serializeTypeName(e,t,n,r){return Qe(e,t,n,r)},getJsDocPropertyOverride(e,n,r){let i=e,a=Y(r.name)?r.name:r.name.right,o=Wu(t(i,n),a.escapedText);return o&&r.typeExpression&&t(i,r.typeExpression.type)!==o?O(o,i):void 0},enterNewScope(e,t){if(ju(t)||Fj(t)){let n=by(t);return de(e,t,n.parameters,n.typeParameters)}else return de(e,t,void 0,sk(t)?JT(t):[Hp(wc(t.typeParameter))])},markNodeReuse(e,t,r){return n(e,t,r)},trackExistingEntityName(e,t){return Ze(t,e)},trackComputedName(e,t){xe(t,e.enclosingDeclaration,e)},getModuleSpecifierOverride(e,t,n){let r=e;if(r.bundled||r.enclosingFile!==Yf(n)){let e=n.text,i=e,a=To(t).resolvedSymbol,o=t.isTypeOf?111551:788968,s=a&&El(a,r.enclosingDeclaration,o,!1).accessibility===0&&Se(a,r,o,!0)[0];if(s&&Tf(s))e=De(s,r);else{let n=JJ(t);n&&(e=De(n.symbol,r))}if(e.includes(`/node_modules/`)&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(e)),e!==i)return e}},canReuseTypeNode(e,t){return et(e,t)},canReuseTypeNodeAnnotation(e,t,n,r,i){let a=e;if(a.enclosingDeclaration===void 0)return!1;r??=wc(t);let o=a.enclosingSymbolTypes?.get(hB(r));o===void 0&&(o=r.flags&98304?t.kind===179?Kf(r):kf(r):k_(t)?Uy(by(t)):Jf(r));let s=ru(n);return Yu(s)?!0:(i&&s&&(s=vd(s,!FO(t))),!!s&&Je(t,o,s)&&L(n,o))}},typeToTypeNode:(e,t,n,r,i,a,o,s)=>m(t,n,r,i,a,o,t=>O(e,t),s),typePredicateToTypePredicateNode:(e,t,n,r,i)=>m(t,n,r,i,void 0,void 0,t=>_e(e,t)),serializeTypeForDeclaration:(e,t,n,r,i,a)=>m(n,r,i,a,void 0,void 0,n=>Ne.serializeTypeOfDeclaration(e,t,n)),serializeReturnTypeForSignature:(e,t,n,r,i)=>m(t,n,r,i,void 0,void 0,t=>Ne.serializeReturnTypeForSignature(e,wc(e),t)),serializeTypeForExpression:(e,t,n,r,i)=>m(t,n,r,i,void 0,void 0,t=>Ne.serializeTypeOfExpression(e,t)),indexInfoToIndexSignatureDeclaration:(e,t,n,r,i)=>m(t,n,r,i,void 0,void 0,t=>ce(e,t,void 0)),signatureToSignatureDeclaration:(e,t,n,r,i,a,o,s,c)=>m(n,r,i,a,o,s,n=>P(e,t,n),c),symbolToEntityName:(e,t,n,r,i,a)=>m(n,r,i,a,void 0,void 0,n=>Pe(e,n,t,!1)),symbolToExpression:(e,t,n,r,i,a)=>m(n,r,i,a,void 0,void 0,n=>Fe(e,n,t)),symbolToTypeParameterDeclarations:(e,t,n,r,i)=>m(t,n,r,i,void 0,void 0,t=>we(e,t)),symbolToParameterDeclaration:(e,t,n,r,i)=>m(t,n,r,i,void 0,void 0,t=>ye(e,t)),typeParameterToDeclaration:(e,t,n,r,i,a,o,s)=>m(t,n,r,i,a,o,t=>ge(e,t),s),symbolTableToDeclarationStatements:(e,t,n,r,i)=>m(t,n,r,i,void 0,void 0,t=>nt(e,t)),symbolToNode:(e,t,n,r,a,o)=>m(n,r,a,o,void 0,void 0,n=>i(e,n,t)),symbolToDeclarations:a};function t(e,t,n){let r=ru(t);if(!e.mapper)return r;let i=dD(r,e.mapper);return n&&i!==r?void 0:i}function n(e,t,n){if((!kv(t)||!(t.flags&16)||!e.enclosingFile||e.enclosingFile!==Yf(Bc(t)))&&(t=J.cloneNode(t)),t===n||!n)return t;let r=t.original;for(;r&&r!==n;)r=r.original;return r||zE(t,n),e.enclosingFile&&e.enclosingFile===Yf(Bc(n))?X(t,n):t}function i(e,t,n){if(t.internalFlags&1){if(e.valueDeclaration){let t=el(e.valueDeclaration);if(t&&NO(t))return t}let r=wo(e).nameType;if(r&&r.flags&9216)return t.enclosingDeclaration=r.symbol.valueDeclaration,J.createComputedPropertyName(Fe(r.symbol,t,n))}return Fe(e,t,n)}function a(e,t,n,r,i,a){return M(m(void 0,n,void 0,void 0,r,i,t=>f(e,t),a),n=>{switch(n.kind){case 264:return o(n,e);case 267:return s(n,EA,e);case 265:return l(n,e,t);case 268:return s(n,DA,e);default:return}})}function o(e,t){let n=E(t.declarations,zu),r=n&&n.length>0?n[0]:e,i=ub(r)&-161;return Uk(r)&&(e=J.updateClassDeclaration(e,e.modifiers,void 0,e.typeParameters,e.heritageClauses,e.members)),J.replaceModifiers(e,i)}function s(e,t,n){let r=E(n.declarations,t),i=ub(r&&r.length>0?r[0]:e)&-161;return J.replaceModifiers(e,i)}function l(e,t,n){if(n&64)return s(e,wA,t)}function f(e,t){let n=Kp(e);t.typeStack.push(n.id),t.typeStack.push(-1);let r=nt(Cf([e]),t);return t.typeStack.pop(),t.typeStack.pop(),r}function m(t,n,r,i,a,o,s,c){let l=i?.trackSymbol?i.moduleResolverHost:(r||0)&4?zne(e):void 0;n||=0;let u=a||(n&1?yf:vf),d={enclosingDeclaration:t,enclosingFile:t&&Yf(t),flags:n,internalFlags:r||0,tracker:void 0,maxTruncationLength:u,maxExpansionDepth:o??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!A.outFile&&!!t&&Am(Yf(t)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,enclosingSymbolTypes:new Map,mapper:void 0,depth:0,typeStack:[],out:{canIncreaseExpansionDepth:!1,truncated:!1}};d.tracker=new SB(d,i,l);let f=s(d);return d.truncating&&d.flags&1&&d.tracker.reportTruncationError(),c&&(c.canIncreaseExpansionDepth=d.out.canIncreaseExpansionDepth,c.truncated=d.out.truncated),d.encounteredError?void 0:f}function h(e,t,n){let r=hB(t),i=e.enclosingSymbolTypes.get(r);return e.enclosingSymbolTypes.set(r,n),a;function a(){i?e.enclosingSymbolTypes.set(r,i):e.enclosingSymbolTypes.delete(r)}}function g(e){let t=e.flags,n=e.internalFlags,r=e.depth;return i;function i(){e.flags=t,e.internalFlags=n,e.depth=r}}function _(e){return e.maxExpansionDepth>=0&&b(e)}function b(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>e.maxTruncationLength}function S(e,t){for(let n=0;n0)return e.flags&1048576?J.createUnionTypeNode(n):J.createIntersectionTypeNode(n);!i.encounteredError&&!(i.flags&262144)&&(i.encounteredError=!0);return}if(l&48)return H.assert(!!(e.flags&524288)),y(e);if(e.flags&4194304){let t=e.type;i.approximateLength+=6;let n=O(t,i);return J.createTypeOperatorNode(143,n)}if(e.flags&134217728){let t=e.texts,n=e.types,r=J.createTemplateHead(t[0]),a=J.createNodeArray(k(n,(e,r)=>J.createTemplateLiteralTypeSpan(O(e,i),(rf(e));if(e.flags&33554432){let t=O(e.baseType,i),n=px(e)&&Ox(`NoInfer`,!1);return n?ke(n,i,788968,[t]):t}return H.fail(`Should be unreachable.`);function f(e){let n=O(e.checkType,i);if(i.approximateLength+=15,i.flags&4&&e.root.isDistributive&&!(e.checkType.flags&262144)){let r=al(lo(262144,`T`)),a=je(r,i),o=J.createTypeReferenceNode(a);i.approximateLength+=37;let s=HE(e.root.checkType,r,e.mapper),c=i.inferTypeParameters;i.inferTypeParameters=e.root.inferTypeParameters;let l=O(dD(e.root.extendsType,s),i);i.inferTypeParameters=c;let u=p(dD(t(i,e.root.node.trueType),s)),d=p(dD(t(i,e.root.node.falseType),s));return J.createConditionalTypeNode(n,J.createInferTypeNode(J.createTypeParameterDeclaration(void 0,J.cloneNode(o.typeName))),J.createConditionalTypeNode(J.createTypeReferenceNode(J.cloneNode(a)),O(e.checkType,i),J.createConditionalTypeNode(o,l,u,d),J.createKeywordTypeNode(146)),J.createKeywordTypeNode(146))}let r=i.inferTypeParameters;i.inferTypeParameters=e.root.inferTypeParameters;let a=O(e.extendsType,i);i.inferTypeParameters=r;let o=p(UT(e)),s=p(KT(e));return J.createConditionalTypeNode(n,a,o,s)}function p(e){var t,n;return e.flags&1048576?i.visitedTypes?.has(yC(e))?(i.flags&131072||(i.encounteredError=!0,(n=(t=i.tracker)?.reportCyclicStructureError)==null||n.call(t)),ne(i)):x(e,e=>O(e,i)):O(e,i)}function m(e){return!!$E(e)}function h(e){return!!e.target&&m(e.target)&&!m(e)}function _(e){H.assert(!!(e.flags&524288));let n=e.declaration.readonlyToken?J.createToken(e.declaration.readonlyToken.kind):void 0,r=e.declaration.questionToken?J.createToken(e.declaration.questionToken.kind):void 0,a,o,s=Vg(e),c=Pg(e),l=!Kg(e)&&!(qg(e).flags&2)&&i.flags&4&&!(Fg(e).flags&262144&&A_(Fg(e))?.flags&4194304);if(Kg(e)){if(h(e)&&i.flags&4){let t=al(lo(262144,`T`)),n=je(t,i),r=e.target;o=J.createTypeReferenceNode(n),s=dD(Vg(r),nte([Pg(r),qg(r)],[c,t]))}a=J.createTypeOperatorNode(143,o||O(qg(e),i))}else if(l){let e=je(al(lo(262144,`T`)),i);o=J.createTypeReferenceNode(e),a=o}else a=O(Fg(e),i);let u=me(c,i,a),d=de(i,e.declaration,void 0,[Hp(wc(e.declaration.typeParameter))]),f=e.declaration.nameType?O(Ig(e),i):void 0,p=O(cM(s,!!(Zg(e)&4)),i);d();let m=J.createMappedTypeNode(n,u,f,r,p,void 0);i.approximateLength+=10;let g=UE(m,1);if(h(e)&&i.flags&4){let n=dD(A_(t(i,e.declaration.typeParameter.constraint.type))||Yt,e.mapper);return J.createConditionalTypeNode(O(qg(e),i),J.createInferTypeNode(J.createTypeParameterDeclaration(void 0,J.cloneNode(o.typeName),n.flags&2?void 0:O(n,i))),g,J.createKeywordTypeNode(146))}else if(l)return J.createConditionalTypeNode(O(Fg(e),i),J.createInferTypeNode(J.createTypeParameterDeclaration(void 0,J.cloneNode(o.typeName),J.createTypeOperatorNode(143,O(qg(e),i)))),g,J.createKeywordTypeNode(146));return g}function y(e,n=!1,r=!1){let a=e.id,o=e.symbol;if(o){if(Wx(e)&8388608){let n=e.node;if(QO(n)&&t(i,n)===e){let e=Ne.tryReuseExistingTypeNode(i,n);if(e)return e}return i.visitedTypes?.has(a)?ne(i):x(e,S)}let c=nu(e)?788968:111551;if(kB(o.valueDeclaration))return ke(o,i,c);if(!r&&(o.flags&32&&!n&&!jf(o)&&!(o.valueDeclaration&&zu(o.valueDeclaration)&&i.flags&2048&&(!CA(o.valueDeclaration)||El(o,i.enclosingDeclaration,c,!1).accessibility!==0))||o.flags&896||s()))if(w(e,i))i.depth+=1;else return ke(o,i,c);if(i.visitedTypes?.has(a)){let t=du(e);return t?ke(t,i,788968):ne(i)}else return x(e,S)}else return S(e);function s(){let e=!!(o.flags&8192)&&F(o.declarations,e=>$y(e)&&!gm(el(e))),t=!!(o.flags&16)&&(o.parent||d(o.declarations,e=>e.parent.kind===308||e.parent.kind===269));if(e||t)return(!!(i.flags&4096)||i.visitedTypes?.has(a))&&(!(i.flags&8)||bl(o,i.enclosingDeclaration))}}function x(e,t){var r,a;let o=e.id,s=Wx(e)&16&&e.symbol&&e.symbol.flags&32,c=Wx(e)&4&&e.node?`N`+mB(e.node):e.flags&16777216?`N`+mB(e.root.node):e.symbol?(s?`+`:``)+hB(e.symbol):void 0;i.visitedTypes||=new Set,c&&!i.symbolDepth&&(i.symbolDepth=new Map);let l=i.maxExpansionDepth>=0?void 0:i.enclosingDeclaration&&To(i.enclosingDeclaration),u=`${yC(e)}|${i.flags}|${i.internalFlags}`;l&&(l.serializedTypes||=new Map);let d=(l?.serializedTypes)?.get(u);if(d)return(r=d.trackedSymbols)==null||r.forEach(([e,t,n])=>i.tracker.trackSymbol(e,t,n)),d.truncating&&(i.truncating=!0),i.approximateLength+=d.addedLength,_(d.node);let f;if(c){if(f=i.symbolDepth.get(c)||0,f>10)return ne(i);i.symbolDepth.set(c,f+1)}i.visitedTypes.add(o);let p=i.trackedSymbols;i.trackedSymbols=void 0;let m=i.approximateLength,h=t(e),g=i.approximateLength-m;return!i.reportedDiagnostic&&!i.encounteredError&&((a=l?.serializedTypes)==null||a.set(u,{node:h,truncating:i.truncating,addedLength:g,trackedSymbols:i.trackedSymbols})),i.visitedTypes.delete(o),c&&i.symbolDepth.set(c,f),i.trackedSymbols=p,h;function _(e){return!kv(e)&&Hc(e)===e?e:n(i,J.cloneNode(PB(e,_,void 0,v,_)),e)}function v(e,t,n,r,i){return e&&e.length===0?X(J.createNodeArray(void 0,e.hasTrailingComma),e):CB(e,t,n,r,i)}}function S(e){if(a_(e)||e.containsError)return _(e);let t=u_(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return i.approximateLength+=2,UE(J.createTypeLiteralNode(void 0),1);if(t.callSignatures.length===1&&!t.constructSignatures.length){let e=t.callSignatures[0];return P(e,185,i)}if(t.constructSignatures.length===1&&!t.callSignatures.length){let e=t.constructSignatures[0];return P(e,186,i)}}let n=E(t.constructSignatures,e=>!!(e.flags&4));if(F(n)){let e=k(n,hb);return t.callSignatures.length+(t.constructSignatures.length-n.length)+t.indexInfos.length+(i.flags&2048?T(t.properties,e=>!(e.flags&4194304)):u(t.properties))&&e.push(ml(t)),O(HC(e),i)}let r=g(i);i.flags|=4194304;let a=j(t);r();let o=J.createTypeLiteralNode(a);return i.approximateLength+=2,UE(o,i.flags&1024?0:1),o}function ee(e){let t=ex(e);if(e.target===Dr||e.target===Or){if(i.flags&2){let n=O(t[0],i);return J.createTypeReferenceNode(e.target===Dr?`Array`:`ReadonlyArray`,[n])}let n=O(t[0],i),r=J.createArrayTypeNode(n);return e.target===Dr?r:J.createTypeOperatorNode(148,r)}else if(e.target.objectFlags&8){if(t=te(t,(t,n)=>cM(t,!!(e.target.elementFlags[n]&2))),t.length>0){let n=tx(e),r=oe(t.slice(0,n),i);if(r){let{labeledElementDeclarations:t}=e.target;for(let n=0;n0){let n=0;if(e.target.typeParameters&&(n=Math.min(e.target.typeParameters.length,t.length),(tp(e,aS(!1))||tp(e,sS(!1))||tp(e,nS(!1))||tp(e,rS(!1)))&&(!e.node||!YO(e.node)||!e.node.typeArguments||e.node.typeArguments.length0;){let r=t[n-1],i=e.target.typeParameters[n-1],a=Sv(i);if(!a||!ED(r,a))break;n--}o=oe(t.slice(r,n),i)}let s=g(i);i.flags|=16;let c=ke(e.symbol,i,788968,o);return s(),a?re(a,c):c}}function re(e,t){if(hk(e)){let n=e.typeArguments,r=e.qualifier;r&&(Y(r)?n!==xD(r)&&(r=bD(J.cloneNode(r),n)):n!==xD(r.right)&&(r=J.updateQualifiedName(r,r.left,bD(J.cloneNode(r.right),n)))),n=t.typeArguments;let i=ie(t);for(let e of i)r=r?J.createQualifiedName(r,e):e;return J.updateImportTypeNode(e,e.argument,e.attributes,r,n,e.isTypeOf)}else{let n=e.typeArguments,r=e.typeName;Y(r)?n!==xD(r)&&(r=bD(J.cloneNode(r),n)):n!==xD(r.right)&&(r=J.updateQualifiedName(r,r.left,bD(J.cloneNode(r.right),n))),n=t.typeArguments;let i=ie(t);for(let e of i)r=J.createQualifiedName(r,e);return J.updateTypeReferenceNode(e,r,n)}}function ie(e){let t=e.typeName,n=[];for(;!Y(t);)n.unshift(t.right),t=t.left;return n.unshift(t),n}function A(e,t,r){return e.components&&v(e.components,e=>!!(e.name&&NO(e.name)&&Mb(e.name.expression)&&t.enclosingDeclaration&&Bl(e.name.expression,t.enclosingDeclaration,!1)?.accessibility===0))?k(E(e.components,e=>!Dm(e)),i=>(xe(i.name.expression,t.enclosingDeclaration,t),n(t,J.createPropertySignature(e.isReadonly?[J.createModifier(148)]:void 0,i.name,(LO(i)||RO(i)||zO(i)||BO(i)||ef(i)||$d(i))&&i.questionToken?J.createToken(58):void 0,r||O(Jf(i.symbol),t)),i))):[ce(e,t,r)]}function j(e){if(b(i))return i.out.truncated=!0,i.flags&1?[oD(J.createNotEmittedTypeElement(),3,`elided`)]:[J.createPropertySignature(void 0,`...`,void 0,void 0)];i.typeStack.push(-1);let t=[];for(let n of e.callSignatures)t.push(P(n,180,i));for(let n of e.constructSignatures)n.flags&4||t.push(P(n,181,i));for(let n of e.indexInfos)t.push(...A(n,i,e.objectFlags&1024?ne(i):void 0));let n=e.properties;if(!n)return i.typeStack.pop(),t;let r=0;for(let e of n)if(!(ot(i)&&e.flags&4194304)){if(r++,i.flags&2048){if(e.flags&4194304)continue;Mx(e)&6&&i.tracker.reportPrivateInBaseOfClassExpression&&i.tracker.reportPrivateInBaseOfClassExpression(Wc(e.escapedName))}if(b(i)&&r+2!(e.flags&32768)),0);for(let i of r){let r=P(i,174,t,{name:o,questionToken:s});n.push(f(r,i.declaration||e.valueDeclaration))}if(r.length||!s)return}let l;ie(e,t)?l=ne(t):(r&&(t.reverseMappedStack||=[],t.reverseMappedStack.push(e)),l=i?qe(t,void 0,i,e):J.createKeywordTypeNode(133),r&&t.reverseMappedStack.pop());let u=$V(e)?[J.createToken(148)]:void 0;u&&(t.approximateLength+=9);let d=J.createPropertySignature(u,o,s,l);n.push(f(d,e.valueDeclaration));function f(n,r){let i=e.declarations?.find(e=>e.kind===349);if(i){let e=Il(i.comment);e&&nD(n,[{kind:3,text:`* * `+e.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else r&&N(t,n,r);return n}}function N(e,t,n){return e.enclosingFile&&e.enclosingFile===Yf(n)?eD(t,n):t}function oe(e,t,n){if(F(e)){if(b(t)){if(t.out.truncated=!0,!n)return[t.flags&1?rD(J.createKeywordTypeNode(133),3,`elided`):J.createTypeReferenceNode(`...`,void 0)];if(e.length>2)return[O(e[0],t),t.flags&1?rD(J.createKeywordTypeNode(133),3,`... ${e.length-2} more elided ...`):J.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),O(e[e.length-1],t)]}let r=t.flags&64?void 0:R(),i=[],a=0;for(let n of e){if(a++,b(t)&&a+2{if(!Gw(e,([e],[t])=>se(e,t)))for(let[n,r]of e)i[r]=O(n,t)}),e()}return i}}function se(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}function ce(e,t,n){let r=dee(e)||`x`,i=O(e.keyType,t),a=J.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||=O(e.type||Vt,t),!e.type&&!(t.flags&2097152)&&(t.encounteredError=!0),t.approximateLength+=r.length+4,J.createIndexSignature(e.isReadonly?[J.createToken(148)]:void 0,[a],n)}function P(e,t,n,r){let i,a,o=$m(e,!0)[0],s=de(n,e.declaration,o,e.typeParameters,e.parameters,e.mapper);n.approximateLength+=3,n.flags&32&&e.target&&e.mapper&&e.target.typeParameters?a=e.target.typeParameters.map(t=>O(dD(t,e.mapper),n)):i=e.typeParameters&&e.typeParameters.map(e=>ge(e,n));let c=g(n);n.flags&=-257;let l=(F(o,e=>e!==o[o.length-1]&&!!(jx(e)&32768))?e.parameters:o).map(e=>ye(e,n,t===177)),u=n.flags&33554432?void 0:fe(e,n);u&&l.unshift(u),c();let d=Ye(n,e),f=r?.modifiers;if(t===186&&e.flags&4){let e=vb(f);f=J.createModifiersFromModifierFlags(e|64)}let p=t===180?J.createCallSignature(i,l,d):t===181?J.createConstructSignature(i,l,d):t===174?J.createMethodSignature(f,r?.name??J.createIdentifier(``),r?.questionToken,i,l,d):t===175?J.createMethodDeclaration(f,void 0,r?.name??J.createIdentifier(``),void 0,i,l,d,void 0):t===177?J.createConstructorDeclaration(f,l,void 0):t===178?J.createGetAccessorDeclaration(f,r?.name??J.createIdentifier(``),l,d,void 0):t===179?J.createSetAccessorDeclaration(f,r?.name??J.createIdentifier(``),l,void 0):t===182?J.createIndexSignature(f,l,d):t===318?J.createJSDocFunctionType(l,d):t===185?J.createFunctionTypeNode(i,l,d??J.createTypeReferenceNode(J.createIdentifier(``))):t===186?J.createConstructorTypeNode(f,i,l,d??J.createTypeReferenceNode(J.createIdentifier(``))):t===263?J.createFunctionDeclaration(f,void 0,r?.name?yt(r.name,Y):J.createIdentifier(``),i,l,d,void 0):t===219?J.createFunctionExpression(f,void 0,r?.name?yt(r.name,Y):J.createIdentifier(``),i,l,d,J.createBlock([])):t===220?J.createArrowFunction(f,i,l,d,void 0,J.createBlock([])):H.assertNever(t);return a&&(p.typeArguments=J.createNodeArray(a)),e.declaration?.kind===324&&e.declaration.parent.kind===340&&rD(p,3,Ep(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(e=>e.replace(/^\s+/,` `)).join(` `),!0),s?.(),p}function le(e){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();let t,n,i=!1,a=e.tracker,o=e.trackedSymbols;e.trackedSymbols=void 0;let s=e.encounteredError;return e.tracker=new SB(e,{...a.inner,reportCyclicStructureError(){c(()=>a.reportCyclicStructureError())},reportInaccessibleThisError(){c(()=>a.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){c(()=>a.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(e){c(()=>a.reportLikelyUnsafeImportRequiredError(e))},reportNonSerializableProperty(e){c(()=>a.reportNonSerializableProperty(e))},reportPrivateInBaseOfClassExpression(e){c(()=>a.reportPrivateInBaseOfClassExpression(e))},trackSymbol(e,n,r){return(t??=[]).push([e,n,r]),!1},moduleResolverHost:e.tracker.moduleResolverHost},e.tracker.moduleResolverHost),{startRecoveryScope:l,finalizeBoundary:u,markError:c,hadError:()=>i};function c(e){i=!0,e&&(n??=[]).push(e)}function l(){let e=t?.length??0,r=n?.length??0;return()=>{i=!1,t&&(t.length=e),n&&(n.length=r)}}function u(){return e.tracker=a,e.trackedSymbols=o,e.encounteredError=s,n?.forEach(e=>e()),i?!1:(t?.forEach(([t,n,r])=>e.tracker.trackSymbol(t,n,r)),!0)}}function de(e,t,n,r,i,a){let o=Ue(e),s,l,u=e.enclosingDeclaration,f=e.mapper;if(a&&(e.mapper=a),e.enclosingDeclaration&&t){let t=function(t,n){H.assert(e.enclosingDeclaration);let r;To(e.enclosingDeclaration).fakeScopeForSignatureDeclaration===t?r=e.enclosingDeclaration:e.enclosingDeclaration.parent&&To(e.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===t&&(r=e.enclosingDeclaration.parent),H.assertOptionalNode(r,tA);let i=r?.locals??Cf(),a,o;if(n((e,t)=>{if(r){let t=i.get(e);t?o=I(o,{name:e,oldSymbol:t}):a=I(a,e)}i.set(e,t)}),r)return function(){d(a,e=>i.delete(e)),d(o,e=>i.set(e.name,e.oldSymbol))};{let n=J.createBlock(c);To(n).fakeScopeForSignatureDeclaration=t,n.locals=i,Zw(n,e.enclosingDeclaration),e.enclosingDeclaration=n}};s=F(n)?t(`params`,e=>{if(n)for(let t=0;t{if(FO(t)&&Xu(t.name))return n(t.name),!0;return;function n(e){d(e.elements,e=>{switch(e.kind){case 233:return;case 209:return r(e);default:return H.assertNever(e)}})}function r(t){if(Xu(t.name))return n(t.name);let r=wc(t);e(r.escapedName,r)}})||e(r.escapedName,r)}}):void 0,e.flags&4&&F(r)&&(l=t(`typeParams`,t=>{for(let n of r??c){let r=je(n,e).escapedText;t(r,n.symbol)}}))}return()=>{s?.(),l?.(),o(),e.enclosingDeclaration=u,e.mapper=f}}function fe(e,n){if(e.thisParameter)return ye(e.thisParameter,n);if(e.declaration&&ng(e.declaration)){let r=wl(e.declaration);if(r&&r.typeExpression)return J.createParameterDeclaration(void 0,void 0,`this`,void 0,O(t(n,r.typeExpression),n))}}function me(e,t,n){let r=g(t);t.flags&=-513;let i=J.createModifiersFromModifierFlags(ek(e)),a=je(e,t),o=Sv(e),s=o&&O(o,t);return r(),J.createTypeParameterDeclaration(i,a,n,s)}function he(e,n,r){return!S(e,r)&&n&&t(r,n)===e&&Ne.tryReuseExistingTypeNode(r,n)||O(e,r)}function ge(e,t,n=A_(e)){return me(e,t,n&&he(n,Ab(e),t))}function _e(e,t){let n=e.kind===2||e.kind===3?J.createToken(131):void 0,r=e.kind===1||e.kind===3?UE(J.createIdentifier(e.parameterName),16777216):J.createThisTypeNode(),i=e.type&&O(e.type,t);return J.createTypePredicateNode(n,r,i)}function ve(e){let t=xf(e,170);if(t)return t;if(!wf(e))return xf(e,342)}function ye(e,t,n){let r=ve(e),i=qe(t,r,Jf(e),e),a=!(t.flags&8192)&&n&&r&&VN(r)?k(rl(r),J.cloneNode):void 0,o=r&&pf(r)||jx(e)&32768?J.createToken(26):void 0,s=be(e,r,t),c=r&&my(r)||jx(e)&16384?J.createToken(58):void 0,l=J.createParameterDeclaration(a,o,s,c,i,void 0);return t.approximateLength+=qc(e).length+3,l}function be(e,t,n){return t&&t.name?t.name.kind===80?UE(J.cloneNode(t.name),16777216):t.name.kind===167?UE(J.cloneNode(t.name.right),16777216):r(t.name):qc(e);function r(e){return t(e);function t(e){n.tracker.canTrackSymbol&&NO(e)&&dm(e)&&xe(e.expression,n.enclosingDeclaration,n);let r=PB(e,t,void 0,void 0,t);return bk(r)&&(r=J.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),kv(r)||(r=J.cloneNode(r)),UE(r,16777217)}}}function xe(e,t,n){if(!n.tracker.canTrackSymbol)return;let r=Nb(e),i=rt(t,r.escapedText,1160127,void 0,!0);if(i)n.tracker.trackSymbol(i,t,111551);else{let e=rt(r,r.escapedText,1160127,void 0,!0);e&&n.tracker.trackSymbol(e,t,111551)}}function Se(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),Ce(e,t,n,r)}function Ce(e,t,n,r){let i;return!(e.flags&262144)&&(t.enclosingDeclaration||t.flags&64)&&!(t.internalFlags&4)?(i=H.checkDefined(a(e,n,!0)),H.assert(i&&i.length>0)):i=[e],i;function a(e,n,i){let o=_l(e,t.enclosingDeclaration,n,!!(t.flags&128)),s;if(!o||vl(o[0],t.enclosingDeclaration,o.length===1?n:gl(n))){let r=Ac(o?o[0]:e,t.enclosingDeclaration,n);if(u(r)){s=r.map(e=>F(e.declarations,Nl)?De(e,t):void 0);let i=r.map((e,t)=>t);i.sort(c);let l=i.map(e=>r[e]);for(let t of l){let r=a(t,gl(n),!1);if(r){if(t.exports&&t.exports.get(`export=`)&&Lc(t.exports.get(`export=`),e)){o=r;break}o=r.concat(o||[Fc(t,e)||e]);break}}}}if(o)return o;if(i||!(e.flags&6144))return!i&&!r&&d(e.declarations,Nl)?void 0:[e];function c(e,t){let n=s[e],r=s[t];if(n&&r){let e=Wa(r);return Wa(n)===e?Rz(n)-Rz(r):e?-1:1}return 0}}}function we(e,t){let n;return IK(e).flags&524384&&(n=J.createNodeArray(k(lp(e),e=>ge(e,t)))),n}function Te(e,t,n){H.assert(e&&0<=t&&tNE(e,o.links.mapper)),n):we(r,n)}return a}function Ee(e){return fk(e.objectType)?Ee(e.objectType):e}function De(t,n,r){let i=xf(t,308);if(!i){let e=p(t.declarations,e=>Nc(e,t));e&&(i=xf(e,308))}if(i&&i.moduleName!==void 0)return i.moduleName;if(!i&&aB.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1);if(!n.enclosingFile||!n.tracker.moduleResolverHost)return aB.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):Yf(qp(t)).fileName;let a=Bc(n.enclosingDeclaration),o=Wg(a)?Gg(a):void 0,s=n.enclosingFile,c=r||o&&e.getModeForUsageLocation(s,o)||s&&e.getDefaultResolutionModeForFile(s),l=UL(s.path,c),u=wo(t),d=u.specifierCache&&u.specifierCache.get(l);if(!d){let e=!!A.outFile,{moduleResolverHost:i}=n.tracker;d=Ie(wne(t,st,e?{...A,baseUrl:i.getCommonSourceDirectory()}:A,s,i,{importModuleSpecifierPreference:e?`non-relative`:`project-relative`,importModuleSpecifierEnding:e?`minimal`:c===99?`js`:void 0},{overrideImportMode:r})),u.specifierCache??=new Map,u.specifierCache.set(l,d)}return d}function Oe(e){let t=J.createIdentifier(Wc(e.escapedName));return e.parent?J.createQualifiedName(Oe(e.parent),t):t}function ke(e,t,n,r){let i=Se(e,t,n,!(t.flags&16384)),a=n===111551;if(F(i[0].declarations,Nl)){let e=i.length>1?s(i,i.length-1,1):void 0,n=r||Te(i,0,t),o=Yf(Bc(t.enclosingDeclaration)),c=Xf(i[0]),l,u;if((VS(A)===3||VS(A)===99)&&c?.impliedNodeFormat===99&&c.impliedNodeFormat!==o?.impliedNodeFormat&&(l=De(i[0],t,99),u=J.createImportAttributes(J.createNodeArray([J.createImportAttribute(J.createStringLiteral(`resolution-mode`),J.createStringLiteral(`import`))]))),l||=De(i[0],t),!(t.flags&67108864)&&VS(A)!==1&&l.includes(`/node_modules/`)){let e=l;if(VS(A)===3||VS(A)===99){let n=o?.impliedNodeFormat===99?1:99;l=De(i[0],t,n),l.includes(`/node_modules/`)?l=e:u=J.createImportAttributes(J.createNodeArray([J.createImportAttribute(J.createStringLiteral(`resolution-mode`),J.createStringLiteral(n===99?`import`:`require`))]))}u||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}let d=J.createLiteralTypeNode(J.createStringLiteral(l));if(t.approximateLength+=l.length+10,!e||Ou(e))return e&&bD(Y(e)?e:e.right,void 0),J.createImportTypeNode(d,u,e,n,a);{let t=Ee(e),r=t.objectType.typeName;return J.createIndexedAccessTypeNode(J.createImportTypeNode(d,u,r,n,a),t.indexType)}}let o=s(i,i.length-1,0);if(fk(o))return o;if(a)return J.createTypeQueryNode(o);{let e=Y(o)?o:o.right,t=xD(e);return bD(e,void 0),J.createTypeReferenceNode(o,t)}function s(e,n,i){let a=n===e.length-1?r:Te(e,n,t),o=e[n],c=e[n-1],l;if(n===0?(t.flags|=16777216,l=bu(o,t),t.approximateLength+=(l?l.length:0)+1,t.flags^=16777216):c&&yc(c)&&Mf(yc(c),(e,t)=>{if(Lc(e,o)&&!Cm(t)&&t!==`export=`)return l=Wc(t),!0}),l===void 0){let r=p(o.declarations,el);if(r&&NO(r)&&Ou(r.expression)){let t=s(e,n-1,i);return Ou(t)?J.createIndexedAccessTypeNode(J.createParenthesizedType(J.createTypeQueryNode(t)),J.createTypeQueryNode(r.expression)):t}l=bu(o,t)}if(t.approximateLength+=l.length+1,!(t.flags&16)&&c&&Wm(c)&&Wm(c).get(o.escapedName)&&Lc(Wm(c).get(o.escapedName),o)){let t=s(e,n-1,i);return fk(t)?J.createIndexedAccessTypeNode(t,J.createLiteralTypeNode(J.createStringLiteral(l))):J.createIndexedAccessTypeNode(J.createTypeReferenceNode(t,a),J.createLiteralTypeNode(J.createStringLiteral(l)))}let u=UE(J.createIdentifier(l),16777216);if(a&&bD(u,J.createNodeArray(a)),u.symbol=o,n>i){let t=s(e,n-1,i);return Ou(t)?J.createQualifiedName(t,u):H.fail(`Impossible construct - an export of an indexed access cannot be reachable`)}return u}}function Ae(e,t,n){let r=rt(t.enclosingDeclaration,e,788968,void 0,!1);return r&&r.flags&262144?r!==n.symbol:!1}function je(e,t){if(t.flags&4&&t.typeParameterNames){let n=t.typeParameterNames.get(yC(e));if(n)return n}let r=Pe(e.symbol,t,788968,!0);if(!(r.kind&80))return J.createIdentifier(`(Missing type parameter)`);let i=e.symbol?.declarations?.[0];if(i&&PO(i)&&(r=n(t,r,i.name)),t.flags&4){let n=r.escapedText,i=t.typeParameterNamesByTextNextNameCount?.get(n)||0,a=n;for(;t.typeParameterNamesByText?.has(a)||Ae(a,t,e);)i++,a=`${n}_${i}`;if(a!==n){let e=xD(r);r=J.createIdentifier(a),bD(r,e)}t.mustCreateTypeParametersNamesLookups&&(t.mustCreateTypeParametersNamesLookups=!1,t.typeParameterNames=new Map(t.typeParameterNames),t.typeParameterNamesByTextNextNameCount=new Map(t.typeParameterNamesByTextNextNameCount),t.typeParameterNamesByText=new Set(t.typeParameterNamesByText)),t.typeParameterNamesByTextNextNameCount.set(n,i),t.typeParameterNames.set(yC(e),r),t.typeParameterNamesByText.add(a)}return r}function Pe(e,t,n,r){let i=Se(e,t,n);return r&&i.length!==1&&!t.encounteredError&&!(t.flags&65536)&&(t.encounteredError=!0),a(i,i.length-1);function a(e,n){let r=Te(e,n,t),i=e[n];n===0&&(t.flags|=16777216);let o=bu(i,t);n===0&&(t.flags^=16777216);let s=UE(J.createIdentifier(o),16777216);return r&&bD(s,J.createNodeArray(r)),s.symbol=i,n>0?J.createQualifiedName(a(e,n-1),s):s}}function Fe(e,t,n){let r=Se(e,t,n);return i(r,r.length-1);function i(e,n){let r=Te(e,n,t),a=e[n];n===0&&(t.flags|=16777216);let o=bu(a,t);n===0&&(t.flags^=16777216);let s=o.charCodeAt(0);if(fg(s)&&F(a.declarations,Nl)){let e=De(a,t);return t.approximateLength+=2+e.length,J.createStringLiteral(e)}if(n===0||hT(o,j)){let s=UE(J.createIdentifier(o),16777216);return r&&bD(s,J.createNodeArray(r)),s.symbol=a,t.approximateLength+=1+o.length,n>0?J.createPropertyAccessExpression(i(e,n-1),s):s}else{s===91&&(o=o.substring(1,o.length-1),s=o.charCodeAt(0));let c;if(fg(s)&&!(a.flags&8)){let e=Zv(o).replace(/\\./g,e=>e.substring(1));t.approximateLength+=e.length+2,c=J.createStringLiteral(e,s===39)}else ``+ +o===o&&(t.approximateLength+=o.length,c=J.createNumericLiteral(+o));if(!c){let e=UE(J.createIdentifier(o),16777216);r&&bD(e,J.createNodeArray(r)),e.symbol=a,t.approximateLength+=o.length,c=e}return t.approximateLength+=2,J.createElementAccessExpression(i(e,n-1),c)}}}function Le(e){let t=el(e);return t?NO(t)?!!(cU(t.expression).flags&402653316):wk(t)?!!(cU(t.argumentExpression).flags&402653316):tO(t):!1}function Re(e){let t=el(e);return!!(t&&tO(t)&&(t.singleQuote||!kv(t)&&pn(Ep(t,!1),`'`)))}function Be(e,t){let n=lt(e);if(n)if(t.tracker.reportPrivateInBaseOfClassExpression&&t.flags&2048){let t=Wc(e.escapedName);return t=t.replace(/__#\d+@#/g,`__#private@#`),lT(t,zS(A),!1,!0,!!(e.flags&8192))}else return n;let r=!!u(e.declarations)&&v(e.declarations,Le),i=!!u(e.declarations)&&v(e.declarations,Re),a=!!(e.flags&8192);return Ve(e,t,i,r,a)||lT(Wc(e.escapedName),zS(A),i,r,a)}function Ve(e,t,n,r,i){let a=wo(e).nameType;if(a){if(a.flags&384){let e=``+a.value;return!Ws(e,zS(A))&&(r||!cT(e))?J.createStringLiteral(e,!!n):cT(e)&&pn(e,`-`)?J.createComputedPropertyName(J.createPrefixUnaryExpression(41,J.createNumericLiteral(-e))):lT(e,zS(A),n,r,i)}if(a.flags&8192)return J.createComputedPropertyName(Fe(a.symbol,t,111551))}}function Ue(e){let t=e.mustCreateTypeParameterSymbolList,n=e.mustCreateTypeParametersNamesLookups;e.mustCreateTypeParameterSymbolList=!0,e.mustCreateTypeParametersNamesLookups=!0;let r=e.typeParameterNames,i=e.typeParameterNamesByText,a=e.typeParameterNamesByTextNextNameCount,o=e.typeParameterSymbolList;return()=>{e.typeParameterNames=r,e.typeParameterNamesByText=i,e.typeParameterNamesByTextNextNameCount=a,e.typeParameterSymbolList=o,e.mustCreateTypeParameterSymbolList=t,e.mustCreateTypeParametersNamesLookups=n}}function We(e,t){return e.declarations&&y(e.declarations,e=>!!KJ(e)&&(!t||!!K(e,e=>e===t)))}function L(e,t){if(!(Wx(t)&4)||!YO(e))return!0;wx(e);let n=To(e).resolvedSymbol,r=n&&Kp(n);return!r||r!==t.target?!0:u(e.typeArguments)>=_y(t.target.typeParameters)}function Ge(e){for(;To(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}function Ke(e,t,n){return n.flags&8192&&n.symbol===e&&(!t.enclosingDeclaration||F(e.declarations,e=>Yf(e)===t.enclosingFile))&&(t.flags|=1048576),O(n,t)}function qe(e,t,n,r){let i,a=t&&(FO(t)||Yj(t))&&SJ(t,e.enclosingDeclaration),o=t??r.valueDeclaration??We(r)??r.declarations?.[0];if(!S(n,e)&&o){let t=h(e,r,n);Bu(o)?i=Ne.serializeTypeOfAccessor(o,r,e):WT(o)&&!kv(o)&&!(Wx(n)&196608)&&(i=Ne.serializeTypeOfDeclaration(o,r,e)),t()}return i||=(a&&(n=Jj(n)),Ke(r,e,n)),i??J.createKeywordTypeNode(133)}function Je(e,t,n){return n===t?!0:e&&((LO(e)||RO(e))&&e.questionToken||FO(e)&&py(e))?QN(t,524288)===n:!1}function Ye(e,t){let n=e.flags&256,r=g(e);n&&(e.flags&=-257);let i,a=Uy(t);if(!(n&&Ku(a))){if(t.declaration&&!kv(t.declaration)&&!S(a,e)){let n=wc(t.declaration),r=h(e,n,a);i=Ne.serializeReturnTypeForSignature(t.declaration,n,e),r()}i||=Xe(e,t,a)}return!i&&!n&&(i=J.createKeywordTypeNode(133)),r(),i}function Xe(e,t,n){let r=e.suppressReportInferenceFallback;e.suppressReportInferenceFallback=!0;let i=Iy(t),a=i?_e(e.mapper?qE(i,e.mapper):i,e):O(n,e);return e.suppressReportInferenceFallback=r,a}function Ze(e,t,r=t.enclosingDeclaration){let i=!1,a=Nb(e);if(ng(e)&&(Cg(a)||Tg(a.parent)||MO(a.parent)&&wg(a.parent.left)&&Cg(a.parent.right)))return i=!0,{introducesError:i,node:e};let o=Ll(e),s;if(My(a))return s=wc(Eh(a,!1,!1)),El(s,a,o,!1).accessibility!==0&&(i=!0,t.tracker.reportInaccessibleThisError()),{introducesError:i,node:c(e)};if(s=Js(a,o,!0,!0),t.enclosingDeclaration&&!(s&&s.flags&262144)){s=Rc(s);let n=Js(a,o,!0,!0,t.enclosingDeclaration);if(n===Ft||n===void 0&&s!==void 0||n&&s&&!Lc(Rc(n),s))return n!==Ft&&t.tracker.reportInferenceFallback(e),i=!0,{introducesError:i,node:e,sym:s};s=n}if(s)return s.flags&1&&s.valueDeclaration&&(Ev(s.valueDeclaration)||Yj(s.valueDeclaration))||(!(s.flags&262144)&&!R_(e)&&El(s,r,o,!1).accessibility!==0?(t.tracker.reportInferenceFallback(e),i=!0):t.tracker.trackSymbol(s,r,o)),{introducesError:i,node:c(e)};return{introducesError:i,node:e};function c(e){if(e===a){let r=Kp(s),i=s.flags&262144?je(r,t):J.cloneNode(e);return i.symbol=s,n(t,UE(i,16777216),e)}return n(t,PB(e,e=>c(e),void 0),e)}}function Qe(e,t,n,r){let i=n?111551:788968,a=Js(t,i,!0);if(!a)return;let o=a.flags&2097152?Is(a):a;if(El(a,e.enclosingDeclaration,i,!1).accessibility===0)return ke(o,e,i,r)}function et(e,n){let r=t(e,n,!0);if(!r)return!1;if(ng(n)&&Hm(n)){QT(n);let e=To(n).resolvedSymbol;return!e||!(!n.isTypeOf&&!(e.flags&788968)||!(u(n.typeArguments)>=_y(lp(e))))}if(YO(n)){if(Xl(n))return!1;let t=To(n).resolvedSymbol;if(!t)return!1;if(t.flags&262144){let n=Kp(t);return!(e.mapper&&NE(n,e.mapper)!==n)}if(ag(n))return L(n,r)&&!Sx(n)&&!!(t.flags&788968)}if(dk(n)&&n.operator===158&&n.type.kind===155){let t=e.enclosingDeclaration&&Ge(e.enclosingDeclaration);return!!K(n,e=>e===t)}return!0}function tt(e,n,r){let i=t(e,n);if(r&&!CP(i,e=>!!(e.flags&32768))&&et(e,n)){let t=Ne.tryReuseExistingTypeNode(e,n);if(t)return J.createUnionTypeNode([t,J.createKeywordTypeNode(157)])}return O(i,e)}function nt(e,r){let a=Ve(J.createPropertyDeclaration,175,!0),o=Ve((e,t,n,r)=>J.createPropertySignature(e,t,n,r),174,!1),s=r.enclosingDeclaration,l=[],f=new Set,m=[],h=r;r={...h,usedSymbolNames:new Set(h.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(h.remappedSymbolReferences?.entries()),tracker:void 0};let b={...h.tracker.inner,trackSymbol:(e,t,n)=>{if(r.remappedSymbolNames?.has(hB(e)))return!1;if(El(e,t,n,!1).accessibility===0){let t=Ce(e,r,n);if(!(e.flags&4)){let e=t[0],n=Yf(h.enclosingDeclaration);F(e.declarations,e=>Yf(e)===n)&&se(e)}}else if(h.tracker.inner?.trackSymbol)return h.tracker.inner.trackSymbol(e,t,n);return!1}};r.tracker=new SB(r,b,h.tracker.moduleResolverHost),Mf(e,(e,t)=>{tt(e,Wc(t))});let S=!r.bundled,C=e.get(`export=`);return C&&e.size>1&&C.flags&2098688&&(e=Cf(),e.set(`export=`,C)),A(e),ne(l);function w(e){return!!e&&e.kind===80}function T(e){return nA(e)?E(k(e.declarationList.declarations,el),w):E([el(e)],w)}function D(e){let t=y(e,UA),n=x(e,DA),r=n===-1?void 0:e[n];if(r&&t&&t.isExportEquals&&Y(t.expression)&&Y(r.name)&&Gc(r.name)===Gc(t.expression)&&r.body&&OA(r.body)){let i=E(e,e=>!!(ub(e)&32)),a=r.name,o=r.body;if(u(i)&&(r=J.updateModuleDeclaration(r,r.modifiers,r.name,o=J.updateModuleBlock(o,J.createNodeArray([...r.body.statements,J.createExportDeclaration(void 0,!1,J.createNamedExports(k(re(i,e=>T(e)),e=>J.createExportSpecifier(!1,void 0,e))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!y(e,e=>e!==r&&Xc(e,a))){l=[];let n=!F(o.statements,e=>Qy(e,32)||UA(e)||WA(e));d(o.statements,e=>{de(e,n?32:0)}),e=[...E(e,e=>e!==r&&e!==t),...l]}}return e}function ee(e){let t=E(e,e=>WA(e)&&!e.moduleSpecifier&&!!e.exportClause&&GA(e.exportClause));u(t)>1&&(e=[...E(e,e=>!WA(e)||!!e.moduleSpecifier||!e.exportClause),J.createExportDeclaration(void 0,!1,J.createNamedExports(re(t,e=>yt(e.exportClause,GA).elements)),void 0)]);let n=E(e,e=>WA(e)&&!!e.moduleSpecifier&&!!e.exportClause&&GA(e.exportClause));if(u(n)>1){let t=at(n,e=>tO(e.moduleSpecifier)?`>`+e.moduleSpecifier.text:`>`);if(t.length!==n.length)for(let n of t)n.length>1&&(e=[...E(e,e=>!n.includes(e)),J.createExportDeclaration(void 0,!1,J.createNamedExports(re(n,e=>yt(e.exportClause,GA).elements)),n[0].moduleSpecifier)])}return e}function te(e){let t=x(e,e=>WA(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&GA(e.exportClause));if(t>=0){let n=e[t],r=M(n.exportClause.elements,t=>{if(!t.propertyName&&t.name.kind!==11){let n=t.name,r=E(pe(e),t=>Xc(e[t],n));if(u(r)&&v(r,t=>pT(e[t]))){for(let t of r)e[t]=ie(e[t]);return}}return t});u(r)?e[t]=J.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,J.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):an(e,t)}return e}function ne(e){return e=D(e),e=ee(e),e=te(e),s&&(vj(s)&&Am(s)||DA(s))&&(!F(e,Cd)||!nee(e)&&F(e,Sd))&&e.push(pM(J)),e}function ie(e){let t=(ub(e)|32)&-129;return J.replaceModifiers(e,t)}function ae(e){let t=ub(e)&-33;return J.replaceModifiers(e,t)}function A(e,t,n){t||m.push(new Map);let i=0,a=Array.from(e.values());for(let t of a){if(i++,_(r)&&i+2{N(e,!0,!!n)}),m.pop())}function N(e,t,n){S_(Jf(e));let i=Cc(e);if(!f.has(hB(i))&&(f.add(hB(i)),!t||u(e.declarations)&&F(e.declarations,e=>!!K(e,e=>e===s)))){let i=Ue(r);r.tracker.pushErrorFallbackNode(y(e.declarations,e=>Yf(e)===r.enclosingFile)),oe(e,t,n),r.tracker.popErrorFallbackNode(),i()}}function oe(e,t,i,a=e.escapedName){let o=Wc(a),s=a===`default`;if(t&&!(r.flags&131072)&&iv(o)&&!s){r.encounteredError=!0;return}let c=s&&!!(e.flags&-113||e.flags&16&&u(S_(Jf(e))))&&!(e.flags&2097152),l=!c&&!t&&iv(o)&&!s;(c||l)&&(t=!0);let d=(t?0:32)|(s&&!c?2048:0),f=e.flags&1536&&e.flags&7&&a!==`export=`,p=f&&ze(Jf(e),e);if((e.flags&8208||p)&&we(Jf(e),e,tt(e,o),d),e.flags&524288&&fe(e,o,d),e.flags&98311&&a!==`export=`&&!(e.flags&4194304)&&!(e.flags&32)&&!(e.flags&8192)&&!p)if(i)Re(e)&&(l=!1,c=!1);else{let s=Jf(e),u=tt(e,o);if(s.symbol&&s.symbol!==e&&s.symbol.flags&16&&F(s.symbol.declarations,oT)&&(s.symbol.members?.size||s.symbol.exports?.size))r.remappedSymbolReferences||=new Map,r.remappedSymbolReferences.set(hB(s.symbol),e),oe(s.symbol,t,i,a),r.remappedSymbolReferences.delete(hB(s.symbol));else if(!(e.flags&16)&&ze(s,e))we(s,e,u,d);else{let i=e.flags&2?pF(e)?2:1:e.parent?.valueDeclaration&&vj(e.parent?.valueDeclaration)?2:void 0,a=c||!(e.flags&4)?u:Qe(u,e),o=e.declarations&&y(e.declarations,e=>bA(e));o&&xA(o.parent)&&o.parent.declarations.length===1&&(o=o.parent.parent);let f=e.declarations?.find(Ck);if(f&&Rk(f.parent)&&Y(f.parent.right)&&s.symbol?.valueDeclaration&&vj(s.symbol.valueDeclaration)){let e=u===f.parent.right.escapedText?void 0:f.parent.right;r.approximateLength+=12+(e?.escapedText?.length??0),de(J.createExportDeclaration(void 0,!1,J.createNamedExports([J.createExportSpecifier(!1,e,u)])),0),r.tracker.trackSymbol(s.symbol,r.enclosingDeclaration,111551)}else{let f=n(r,J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(a,void 0,qe(r,void 0,s,e))],i)),o);r.approximateLength+=7+a.length,de(f,a===u?d:d&-33),a!==u&&!t&&(r.approximateLength+=16+a.length+u.length,de(J.createExportDeclaration(void 0,!1,J.createNamedExports([J.createExportSpecifier(!1,a,u)])),0),l=!1,c=!1)}}}if(e.flags&384&&I(e,o,d),e.flags&32&&(e.flags&4&&e.valueDeclaration&&Rk(e.valueDeclaration.parent)&&Uk(e.valueDeclaration.parent.right)?Ie(e,tt(e,o),d):je(e,tt(e,o),d)),(e.flags&1536&&(!f||xe(e))||p)&&Se(e,o,d),e.flags&64&&!(e.flags&32)&&me(e,o,d),e.flags&2097152&&Ie(e,tt(e,o),d),e.flags&4&&e.escapedName===`export=`&&Re(e),e.flags&8388608&&e.declarations)for(let t of e.declarations){let e=$s(t,t.moduleSpecifier);if(!e)continue;let n=t.isTypeOnly,i=De(e,r);r.approximateLength+=17+i.length,de(J.createExportDeclaration(void 0,n,void 0,J.createStringLiteral(i)),0)}if(c){let t=tt(e,o);r.approximateLength+=16+t.length,de(J.createExportAssignment(void 0,!1,J.createIdentifier(t)),0)}else if(l){let t=tt(e,o);r.approximateLength+=22+o.length+t.length,de(J.createExportDeclaration(void 0,!1,J.createNamedExports([J.createExportSpecifier(!1,t,o)])),0)}}function se(e){F(e.declarations,Ev)||(H.assertIsDefined(m[m.length-1]),Qe(Wc(e.escapedName),e),m[e.flags&2097152&&!F(e.declarations,e=>!!K(e,WA)||BA(e)||jA(e)&&!ZA(e.moduleReference))?0:m.length-1].set(hB(e),e))}function le(e){return vj(e)&&(Am(e)||jm(e))||zp(e)&&!Wp(e)}function de(e,t){if(VN(e)){let n=ub(e),i=0,a=r.enclosingDeclaration&&(t_(r.enclosingDeclaration)?Yf(r.enclosingDeclaration):r.enclosingDeclaration);t&32&&a&&(le(a)||DA(a))&&pT(e)&&(i|=32),S&&!(i&32)&&(!a||!(a.flags&33554432))&&(EA(e)||nA(e)||SA(e)||CA(e)||DA(e))&&(i|=128),t&2048&&(CA(e)||wA(e)||SA(e))&&(i|=2048),i&&(e=J.replaceModifiers(e,i|n)),r.approximateLength+=He(i|n)}l.push(e)}function fe(e,t,n){let i=Np(e),a=wo(e).typeParameters,o=k(a,e=>ge(e,r)),s=e.declarations?.find(t_),c=Il(s?s.comment||s.parent.comment:void 0),l=g(r);r.flags|=8388608;let u=r.enclosingDeclaration;r.enclosingDeclaration=s;let d=s&&s.typeExpression&&bj(s.typeExpression)&&Ne.tryReuseExistingTypeNode(r,s.typeExpression.type)||O(i,r),f=tt(e,t);r.approximateLength+=8+(c?.length??0)+f.length,de(nD(J.createTypeAliasDeclaration(void 0,f,o,d),c?[{kind:3,text:`* * `+c.replace(/\n/g,` * `)+` `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),n),l(),r.enclosingDeclaration=u}function me(e,t,n){let i=tt(e,t);r.approximateLength+=14+i.length;let a=Mp(e),o=k(lp(e),e=>ge(e,r)),s=bp(a),c=u(s)?HC(s):void 0,l=he(S_(a),!1,c),d=Ge(0,a,c,180),f=Ge(1,a,c,181),p=Ke(a,c),m=u(s)?[J.createHeritageClause(96,M(s,e=>Ye(e,111551)))]:void 0;de(J.createInterfaceDeclaration(void 0,i,o,m,[...p,...f,...d,...l]),n)}function he(e,t,n,i){let o=[],s=0;for(let c of e){if(s++,_(r)&&s+2ke(e)&&Ws(e.escapedName,99))}function xe(e){return v(ye(e),e=>!(Rs(Fs(e))&111551))}function Se(e,t,n){let a=ye(e),o=ot(r),s=it(a,t=>t.parent&&t.parent===e||o?`real`:`merged`),l=s.get(`real`)||c,d=s.get(`merged`)||c;if(u(l)||o){let a;if(o){let t=r.flags;r.flags|=514,a=i(e,r,-1),r.flags=t}else{let n=tt(e,t);a=J.createIdentifier(n),r.approximateLength+=n.length}Oe(l,a,n,!!(e.flags&67108880))}if(u(d)){let n=Yf(r.enclosingDeclaration),i=tt(e,t),a=J.createModuleBlock([J.createExportDeclaration(void 0,!1,J.createNamedExports(M(E(d,e=>e.escapedName!==`export=`),t=>{var i,a;let o=Wc(t.escapedName),s=tt(t,o),c=t.declarations&&Qo(t);if(n&&(c?n!==Yf(c):!F(t.declarations,e=>Yf(e)===n))){(a=(i=r.tracker)?.reportNonlocalAugmentation)==null||a.call(i,n,e,t);return}let l=c&&Ns(c,!0);se(l||t);let u=l?tt(l,Wc(l.escapedName)):s;return J.createExportSpecifier(!1,o===u?void 0:u,o)})))]);de(J.createModuleDeclaration(void 0,J.createIdentifier(i),a,32),0)}}function I(e,t,n){let i=tt(e,t);r.approximateLength+=9+i.length;let a=[],o=E(S_(Jf(e)),e=>!!(e.flags&8)),s=0;for(let e of o){if(s++,_(r)&&s+2!u(e.declarations)||F(e.declarations,e=>Yf(e)===Yf(r.enclosingDeclaration))||o?`local`:`remote`).get(`local`)||c,f=qN.createModuleDeclaration(void 0,t,J.createModuleBlock([]),a);Zw(f,s),f.locals=Cf(e),f.symbol=e[0].parent;let p=l;l=[];let m=S;S=!1;let h={...r,enclosingDeclaration:f},g=r;r=h,A(Cf(d),i,!0),r=g,S=m;let _=l;l=p;let y=k(_,e=>UA(e)&&!e.isExportEquals&&Y(e.expression)?J.createExportDeclaration(void 0,!1,J.createNamedExports([J.createExportSpecifier(!1,e.expression,J.createIdentifier(`default`))])):e),b=v(y,e=>Qy(e,32))?k(y,ae):y;f=J.updateModuleDeclaration(f,f.modifiers,f.name,J.createModuleBlock(b)),de(f,n)}else o&&(r.approximateLength+=14,de(J.createModuleDeclaration(void 0,t,J.createModuleBlock([]),a),n))}function ke(e){return!!(e.flags&2887656)||!(e.flags&4194304||e.escapedName===`prototype`||e.valueDeclaration&&$y(e.valueDeclaration)&&zu(e.valueDeclaration.parent))}function Ae(e){let n=M(e,e=>{let n=r.enclosingDeclaration;r.enclosingDeclaration=e;let i=e.expression;if(Mb(i)){if(Y(i)&&Gc(i)===``)return a(void 0);let e;if({introducesError:e,node:i}=Ze(i,r),e)return a(void 0)}return a(J.createExpressionWithTypeArguments(i,k(e.typeArguments,e=>Ne.tryReuseExistingTypeNode(r,e)||O(t(r,e),r))));function a(e){return r.enclosingDeclaration=n,e}});if(n.length===e.length)return n}function je(e,t,i){r.approximateLength+=9+t.length;let a=e.declarations?.find(zu),o=r.enclosingDeclaration;r.enclosingDeclaration=a||o;let s=lp(e),l=k(s,e=>ge(e,r));d(s,e=>r.approximateLength+=qc(e.symbol).length);let f=Km(Mp(e)),p=bp(f),m=a&&J_(a),h=m&&Ae(m)||M(_p(f),Xe),g=Jf(e),_=!!g.symbol?.valueDeclaration&&zu(g.symbol.valueDeclaration),v=_?gp(g):Vt;r.approximateLength+=(u(p)?8:0)+(u(h)?11:0);let y=[...u(p)?[J.createHeritageClause(96,k(p,e=>Je(e,v,t)))]:[],...u(h)?[J.createHeritageClause(119,h)]:[]],b=BK(f,p,S_(f)),x=E(b,e=>!ct(e)),S=F(b,ct),C=S?ot(r)?he(E(b,ct),!0,p[0],!1):[J.createPropertyDeclaration(void 0,J.createPrivateIdentifier(`#private`),void 0,void 0,void 0)]:c;S&&!ot(r)&&(r.approximateLength+=9);let w=he(x,!0,p[0],!1),T=he(E(S_(g),e=>!(e.flags&4194304)&&e.escapedName!==`prototype`&&!ke(e)),!0,v,!0),D=!_&&!!e.valueDeclaration&&ng(e.valueDeclaration)&&!F(Jv(g,1));D&&(r.approximateLength+=21);let O=D?[J.createConstructorDeclaration(J.createModifiersFromModifierFlags(2),[],void 0)]:Ge(1,g,v,177),ee=Ke(f,p[0]);r.enclosingDeclaration=o,de(n(r,J.createClassDeclaration(void 0,t,l,y,[...ee,...T,...O,...w,...C]),e.declarations&&E(e.declarations,e=>CA(e)||Uk(e))[0]),i)}function Me(e){return p(e,e=>{if(HA(e)||KA(e))return Sp(e.propertyName||e.name);if(Rk(e)||UA(e)){let t=UA(e)?e.expression:e.right;if(Ck(t))return Gc(t.name)}if($o(e)){let t=el(e);if(t&&Y(t))return Gc(t)}})}function Ie(e,t,n){let i=Qo(e);if(!i)return H.fail();let a=Cc(Ns(i,!0));if(!a)return;let o=Up(a)&&Me(e.declarations)||Wc(a.escapedName);o===`export=`&&ue&&(o=`default`);let s=tt(a,o);switch(se(a),i.kind){case 209:if(i.parent?.parent?.kind===261){let e=De(a.parent||a,r),{propertyName:n}=i,o=n&&Y(n)?Gc(n):void 0;r.approximateLength+=24+t.length+e.length+(o?.length??0),de(J.createImportDeclaration(void 0,J.createImportClause(void 0,void 0,J.createNamedImports([J.createImportSpecifier(!1,o?J.createIdentifier(o):void 0,J.createIdentifier(t))])),J.createStringLiteral(e),void 0),0);break}H.failBadSyntaxKind(i.parent?.parent||i,`Unhandled binding element grandparent kind in declaration serialization`);break;case 305:i.parent?.parent?.kind===227&&Le(Wc(e.escapedName),s);break;case 261:if(Ck(i.initializer)){let e=i.initializer,o=J.createUniqueName(t),s=De(a.parent||a,r);r.approximateLength+=22+s.length+Gc(o).length,de(J.createImportEqualsDeclaration(void 0,!1,o,J.createExternalModuleReference(J.createStringLiteral(s))),0),r.approximateLength+=12+t.length+Gc(o).length+Gc(e.name).length,de(J.createImportEqualsDeclaration(void 0,!1,J.createIdentifier(t),J.createQualifiedName(o,e.name)),n);break}case 272:if(a.escapedName===`export=`&&F(a.declarations,e=>vj(e)&&jm(e))){Re(e);break}let c=!(a.flags&512)&&!bA(i);r.approximateLength+=11+t.length+Wc(a.escapedName).length,de(J.createImportEqualsDeclaration(void 0,!1,J.createIdentifier(t),c?Pe(a,r,-1,!1):J.createExternalModuleReference(J.createStringLiteral(De(a,r)))),c?n:0);break;case 271:de(J.createNamespaceExportDeclaration(Gc(i.name)),0);break;case 274:{let e=De(a.parent||a,r),n=r.bundled?J.createStringLiteral(e):i.parent.moduleSpecifier,o=MA(i.parent)?i.parent.attributes:void 0,s=oM(i.parent);r.approximateLength+=14+t.length+3+(s?4:0),de(J.createImportDeclaration(void 0,J.createImportClause(s?156:void 0,J.createIdentifier(t),void 0),n,o),0);break}case 275:{let e=De(a.parent||a,r),n=r.bundled?J.createStringLiteral(e):i.parent.parent.moduleSpecifier,o=oM(i.parent.parent);r.approximateLength+=19+t.length+3+(o?4:0),de(J.createImportDeclaration(void 0,J.createImportClause(o?156:void 0,void 0,J.createNamespaceImport(J.createIdentifier(t))),n,i.parent.attributes),0);break}case 281:r.approximateLength+=19+t.length+3,de(J.createExportDeclaration(void 0,!1,J.createNamespaceExport(J.createIdentifier(t)),J.createStringLiteral(De(a,r))),0);break;case 277:{let e=De(a.parent||a,r),n=r.bundled?J.createStringLiteral(e):i.parent.parent.parent.moduleSpecifier,s=oM(i.parent.parent.parent);r.approximateLength+=19+t.length+3+(s?4:0),de(J.createImportDeclaration(void 0,J.createImportClause(s?156:void 0,void 0,J.createNamedImports([J.createImportSpecifier(!1,t===o?void 0:J.createIdentifier(o),J.createIdentifier(t))])),n,i.parent.parent.parent.attributes),0);break}case 282:let l=i.parent.parent.moduleSpecifier;if(l){let e=i.propertyName;e&&wp(e)&&(o=`default`)}Le(Wc(e.escapedName),l?o:s,l&&uf(l)?J.createStringLiteral(l.text):void 0);break;case 278:Re(e);break;case 227:case 212:case 213:e.escapedName===`default`||e.escapedName===`export=`?Re(e):Le(t,s);break;default:return H.failBadSyntaxKind(i,`Unhandled alias declaration kind in symbol serializer!`)}}function Le(e,t,n){r.approximateLength+=16+e.length+(e===t?0:t.length),de(J.createExportDeclaration(void 0,!1,J.createNamedExports([J.createExportSpecifier(!1,e===t?void 0:t,e)]),n),0)}function Re(e){if(e.flags&4194304)return!1;let t=Wc(e.escapedName),n=t===`export=`,i=n||t===`default`,a=e.declarations&&Qo(e),o=a&&Ns(a,!0);if(o&&u(o.declarations)&&F(o.declarations,e=>Yf(e)===Yf(s))){let c=a&&(UA(a)||Rk(a)?G_(a):bee(a)),u=c&&Mb(c)?aq(c):void 0,d=u&&Js(u,-1,!0,!0,s);(d||o)&&se(d||o);let f=r.tracker.disableTrackSymbol;if(r.tracker.disableTrackSymbol=!0,i)r.approximateLength+=10,l.push(J.createExportAssignment(void 0,n,Fe(o,r,-1)));else if(u===c&&u)Le(t,Gc(u));else if(c&&Uk(c))Le(t,tt(o,qc(o)));else{let n=Qe(t,e);r.approximateLength+=n.length+10,de(J.createImportEqualsDeclaration(void 0,!1,J.createIdentifier(n),Pe(o,r,-1,!1)),0),Le(t,n)}return r.tracker.disableTrackSymbol=f,!0}else{let a=Qe(t,e),s=CM(Jf(Cc(e)));if(ze(s,e))we(s,e,a,i?0:32);else{let n=r.enclosingDeclaration?.kind===268&&(!(e.flags&98304)||e.flags&65536)?1:2;r.approximateLength+=a.length+5,de(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(a,void 0,qe(r,void 0,s,e))],n)),o&&o.flags&4&&o.escapedName===`export=`?128:t===a?32:0)}return i?(r.approximateLength+=a.length+10,l.push(J.createExportAssignment(void 0,n,J.createIdentifier(a))),!0):t===a?!1:(Le(t,a),!0)}}function ze(e,t){let n=Yf(r.enclosingDeclaration);return Wx(e)&48&&!F(e.symbol?.declarations,Ju)&&!u(ty(e))&&!nu(e)&&!!(u(E(S_(e),ke))||u(Jv(e,0)))&&!u(Jv(e,1))&&!We(t,s)&&!(e.symbol&&F(e.symbol.declarations,e=>Yf(e)!==n))&&!F(S_(e),e=>Cm(e.escapedName))&&!F(S_(e),e=>F(e.declarations,e=>Yf(e)!==n))&&v(S_(e),e=>Ws(qc(e),j)?e.flags&98304?$f(e)===Kf(e):!0:!1)}function Ve(e,t,i){return function(a,o,s){let c=Mx(a),l=!!(c&2)&&!ot(r);if(o&&a.flags&2887656||a.flags&4194304||a.escapedName===`constructor`||s&&Kv(s,a.escapedName)&&$V(Kv(s,a.escapedName))===$V(a)&&(a.flags&16777216)==(Kv(s,a.escapedName).flags&16777216)&&ED(Jf(a),Wu(s,a.escapedName)))return[];let u=c&-1025|(o?256:0),f=Be(a,r),p=a.declarations?.find(vn(RO,Bu,bA,LO,Rk,Ck));if(a.flags&98304&&i){let e=[];if(a.flags&65536){let t=a.declarations&&d(a.declarations,e=>{if(e.kind===179)return e;if(Tk(e)&&Dg(e))return d(e.arguments[2].properties,e=>{let t=el(e);if(t&&Y(t)&&Gc(t)===`set`)return e})});H.assert(!!t);let i=Nu(t)?by(t).parameters[0]:void 0,o=a.declarations?.find($d);r.approximateLength+=He(u)+7+(i?qc(i).length:5)+(l?0:2),e.push(n(r,J.createSetAccessorDeclaration(J.createModifiersFromModifierFlags(u),f,[J.createParameterDeclaration(void 0,void 0,i?be(i,ve(i),r):`value`,void 0,l?void 0:qe(r,o,Kf(a),a))],void 0),o??p))}if(a.flags&32768){let t=a.declarations?.find(ef);r.approximateLength+=He(u)+8+(l?0:2),e.push(n(r,J.createGetAccessorDeclaration(J.createModifiersFromModifierFlags(u),f,[],l?void 0:qe(r,t,Jf(a),a),void 0),t??p))}return e}else if(a.flags&98311){let t=($V(a)?8:0)|u;return r.approximateLength+=2+(l?0:2)+He(t),n(r,e(J.createModifiersFromModifierFlags(t),f,a.flags&16777216?J.createToken(58):void 0,l?void 0:qe(r,a.declarations?.find(WO),Kf(a),a),void 0),a.declarations?.find(vn(RO,bA))||p)}if(a.flags&8208){let i=Jv(Jf(a),0);if(l){let t=($V(a)?8:0)|u;return r.approximateLength+=1+He(t),n(r,e(J.createModifiersFromModifierFlags(t),f,a.flags&16777216?J.createToken(58):void 0,void 0,void 0),a.declarations?.find(Nu)||i[0]&&i[0].declaration||a.declarations&&a.declarations[0])}let o=[];for(let e of i){r.approximateLength+=1;let i=P(e,t,r,{name:f,questionToken:a.flags&16777216?J.createToken(58):void 0,modifiers:u?J.createModifiersFromModifierFlags(u):void 0}),s=e.declaration&&Bg(e.declaration.parent)?e.declaration.parent:e.declaration;o.push(n(r,i,s))}return o}return H.fail(`Unhandled class member kind! ${a.__debugFlags||a.flags}`)}}function He(e){let t=0;return e&32&&(t+=7),e&128&&(t+=8),e&2048&&(t+=8),e&4096&&(t+=6),e&1&&(t+=7),e&2&&(t+=8),e&4&&(t+=10),e&64&&(t+=9),e&256&&(t+=7),e&16&&(t+=9),e&8&&(t+=9),e&512&&(t+=9),e&1024&&(t+=6),e&8192&&(t+=3),e&16384&&(t+=4),t}function L(e,t){return o(e,!1,t)}function Ge(e,t,i,a){let o=Jv(t,e);if(e===1){if(!i&&v(o,e=>u(e.parameters)===0))return[];if(i){let e=Jv(i,1);if(!u(e)&&v(o,e=>u(e.parameters)===0))return[];if(e.length===o.length){let t=!1;for(let n=0;nO(e,r)),i=Fe(e.target.symbol,r,788968)):e.symbol&&Sl(e.symbol,s,t)&&(i=Fe(e.symbol,r,788968)),i)return J.createExpressionWithTypeArguments(i,n)}function Xe(e){let t=Ye(e,788968);if(t)return t;if(e.symbol)return J.createExpressionWithTypeArguments(Fe(e.symbol,r,788968),void 0)}function Qe(e,t){var n;let i=t?hB(t):void 0;if(i&&r.remappedSymbolNames.has(i))return r.remappedSymbolNames.get(i);t&&(e=et(t,e));let a=0,o=e;for(;r.usedSymbolNames?.has(e);)a++,e=`${o}_${a}`;return(n=r.usedSymbolNames)==null||n.add(e),i&&r.remappedSymbolNames.set(i,e),e}function et(e,t){if(t===`default`||t===`__class`||t===`__function`){let n=g(r);r.flags|=16777216;let i=bu(e,r);n(),t=i.length>0&&fg(i.charCodeAt(0))?Zv(i):i}return t===`default`?t=`_default`:t===`export=`&&(t=`_exports`),t=Ws(t,j)&&!iv(t)?t:`_`+t.replace(/[^a-z0-9]/gi,`_`),t}function tt(e,t){let n=hB(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=et(e,t),r.remappedSymbolNames.set(n,t),t)}}function ot(e){return e.maxExpansionDepth!==-1}function ct(e){return!!e.valueDeclaration&&Qc(e.valueDeclaration)&&vO(e.valueDeclaration.name)}function lt(e){if(e.valueDeclaration&&Qc(e.valueDeclaration)&&vO(e.valueDeclaration.name))return J.cloneNode(e.valueDeclaration.name)}}function au(t){let n=Wx(t)&4?t.target.symbol:t.symbol;return Ej(t)||!!(n?.declarations)?.some(t=>e.isSourceFileDefaultLibrary(Yf(t)))}function ou(e,t,n=16384,r){return r?i(r).getText():Ff(i);function i(r){let i=eu(n)|70222336,a=je.typePredicateToTypePredicateNode(e,t,i),o=VU(),s=t&&Yf(t);return o.writeNode(4,a,s,r),r}}function lu(e,t){let n=[],r=0;for(let i=0;iel(e)?e:void 0),r=n&&el(n);if(n&&r){if(Tk(n)&&Dg(n))return qc(e);if(NO(r)&&!(jx(e)&4096)){let n=wo(e).nameType;if(n&&n.flags&384){let n=vu(e,t);if(n!==void 0)return n}}return lm(r)}if(n||=e.declarations[0],n.parent&&n.parent.kind===261)return lm(n.parent.name);switch(n.kind){case 232:case 219:case 220:return t&&!t.encounteredError&&!(t.flags&131072)&&(t.encounteredError=!0),n.kind===232?`(Anonymous class)`:`(Anonymous function)`}}let n=vu(e,t);return n===void 0?qc(e):n}function xu(e){if(e){let n=To(e);return n.isVisible===void 0&&(n.isVisible=!!t()),n.isVisible}return!1;function t(){switch(e.kind){case 339:case 347:case 341:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&vj(e.parent.parent.parent));case 209:return xu(e.parent.parent);case 261:if(Xu(e.name)&&!e.name.elements.length)return!1;case 268:case 264:case 265:case 266:case 263:case 267:case 272:if(Gp(e))return!0;let t=Iu(e);return!(dX(e)&32)&&!(e.kind!==272&&t.kind!==308&&t.flags&33554432)?km(t):xu(t);case 173:case 172:case 178:case 179:case 175:case 174:if(Zy(e,6))return!1;case 177:case 181:case 180:case 182:case 170:case 269:case 185:case 186:case 188:case 184:case 189:case 190:case 193:case 194:case 197:case 203:return xu(e.parent);case 274:case 275:case 277:return!1;case 169:case 308:case 271:return!0;case 278:return!1;default:return!1}}}function wu(e,t){let n;e.kind!==11&&e.parent&&e.parent.kind===278?n=rt(e,e,2998271,void 0,!1):e.parent.kind===282&&(n=ks(e.parent,2998271));let r,i;return n&&(i=new Set,i.add(hB(n)),a(n.declarations)),r;function a(e){d(e,e=>{let n=Zo(e)||e;if(t?To(e).isVisible=!0:(r||=[],De(r,n)),$h(e)){let t=e.moduleReference,n=rt(e,Nb(t).escapedText,901119,void 0,!1);n&&i&&se(i,hB(n))&&a(n.declarations)}})}}function Tu(e,t){let n=Eu(e,t);if(n>=0){let{length:e}=$i;for(let t=n;t=na;n--){if(Au($i[n],ta[n]))return-1;if($i[n]===e&&ta[n]===t)return n}return-1}function Au(e,t){switch(t){case 0:return!!wo(e).type;case 2:return!!wo(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 5:return!!e.resolvedTypeArguments;case 6:return!!e.baseTypesResolved;case 7:return!!wo(e).writeType;case 8:return To(e).parameterInitializerContainsUndefined!==void 0}return H.assertNever(t)}function Fu(){return $i.pop(),ta.pop(),ea.pop()}function Iu(e){return K(Dv(e),e=>{switch(e.kind){case 261:case 262:case 277:case 276:case 275:case 274:return!1;default:return!0}}).parent}function Uu(e){let t=Kp(Ec(e));return t.typeParameters?Zb(t,k(t.typeParameters,e=>Vt)):t}function Wu(e,t){let n=Kv(e,t);return n?Jf(n):void 0}function Gu(e,t){let n;return Wu(e,t)||(n=ly(e,t)?.type)&&vd(n,!0,!0)}function Ku(e){return e&&(e.flags&1)!=0}function Yu(e){return e===Gt||!!(e.flags&1&&e.aliasSymbol)}function Qu(e,t){if(t!==0)return xd(e,!1,t);let n=wc(e);return n&&wo(n).type||xd(e,!1,t)}function $u(e,t,n){if(e=TP(e,e=>!(e.flags&98304)),e.flags&131072)return zn;if(e.flags&1048576)return AP(e,e=>$u(e,t,n));let r=AC(k(t,$C)),i=[],a=[];for(let t of S_(e)){let e=ew(t,8576);!MD(e,r)&&!(Mx(t)&6)&&cE(t)?i.push(t):a.push(e)}if(Vw(e)||Hw(r)){if(a.length&&(r=AC([r,...a])),r.flags&131072)return e;let t=xS();return t?rx(t,[e,r]):Gt}let o=Cf();for(let e of i)o.set(e.escapedName,lE(e,!1));let s=pl(n,o,c,c,ty(e));return s.objectFlags|=4194304,s}function ed(e){return!!(e.flags&465829888)&&lH(ov(e)||Yt,32768)}function td(e){return QN(CP(e,ed)?AP(e,e=>e.flags&465829888?sv(e):e):e,524288)}function nd(e,t){let n=rd(e);return n?rF(n,t):t}function rd(e){let t=id(e);if(t&&c_(t)&&t.flowNode){let n=ad(e);if(n){let r=X(qN.createStringLiteral(n),e),i=fd(t)?t:qN.createParenthesizedExpression(t),a=X(qN.createElementAccessExpression(i,r),e);return Zw(r,a),Zw(a,e),i!==t&&Zw(i,a),a.flowNode=t.flowNode,a}}}function id(e){let t=e.parent.parent;switch(t.kind){case 209:case 304:return rd(t);case 210:return rd(e.parent);case 261:return t.initializer;case 227:return t.right}}function ad(e){let t=e.parent;return e.kind===209&&t.kind===207?dd(e.propertyName||e.name):e.kind===304||e.kind===305?dd(e.name):``+t.elements.indexOf(e)}function dd(e){let t=$C(e);return t.flags&384?``+t.value:void 0}function pd(e){let t=e.dotDotDotToken?32:0,n=Qu(e.parent.parent,t);return n&&md(e,n,!1)}function md(e,t,n){if(Ku(t))return t;let r=e.parent;fe&&e.flags&33554432&&Ev(e)?t=Qj(t):fe&&r.parent.initializer&&!XN(lP(r.parent.initializer),65536)&&(t=QN(t,524288));let i=32|(n||yL(e)?16:0),a;if(r.kind===207)if(e.dotDotDotToken){if(t=Hv(t),t.flags&2||!AL(t))return U(e,G.Rest_types_may_only_be_created_from_object_types),Gt;let n=[];for(let e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);a=$u(t,n,e.symbol)}else{let n=e.propertyName||e.name,r=$C(n);a=nd(e,sT(t,r,i,n))}else{let n=FG(65|(e.dotDotDotToken?0:128),t,Xt,r),o=r.elements.indexOf(e);if(e.dotDotDotToken){let e=AP(t,e=>e.flags&58982400?sv(e):e);a=wP(e,Ej)?AP(e,e=>cC(e,o)):PS(n)}else if(kA(t)){let n=gE(o);a=nd(e,gT(t,n,i,e.name)||Gt)}else a=n}return e.initializer?Ly(Mc(e))?fe&&!XN(BH(e,0),16777216)?td(a):a:WH(e,AC([td(a),BH(e,0)],2)):a}function hd(e){let t=kl(e);if(t)return DE(t)}function gd(e){let t=F_(e,!0);return t.kind===106||t.kind===80&&DN(t)===He}function _d(e){let t=F_(e,!0);return t.kind===210&&t.elements.length===0}function vd(e,t=!1,n=!0){return fe&&n?Jj(e,t):e}function xd(e,t,n){if(bA(e)&&e.parent.parent.kind===250){let t=iw(dR(cU(e.parent.parent.expression,n)));return t.flags&4456448?aw(t):rn}if(bA(e)&&e.parent.parent.kind===251){let t=e.parent.parent;return PG(t)||Vt}if(Xu(e.parent))return pd(e);let r=RO(e)&&!ib(e)||LO(e)||nM(e),i=t&&vT(e),a=lf(e);if(Rp(e))return a?Ku(a)||a===Yt?a:Gt:Se?Yt:Vt;if(a)return vd(a,r,i);if((ye||ng(e))&&bA(e)&&!Xu(e.name)&&!(dX(e)&32)&&!(e.flags&33554432)){if(!(fX(e)&6)&&(!e.initializer||gd(e.initializer)))return Ht;if(e.initializer&&_d(e.initializer))return Ir}if(FO(e)){if(!e.symbol)return;let t=e.parent;if(t.kind===179&&Fm(t)){let n=xf(wc(e.parent),178);if(n){let r=by(n),i=MY(t);return i&&e===i?(H.assert(!i.type),Jf(r.thisParameter)):Uy(r)}}let n=Cy(t,e);if(n)return n;let r=e.symbol.escapedName===`this`?cI(t):lI(e);if(r)return vd(r,!1,i)}if(af(e)&&e.initializer){if(ng(e)&&!FO(e)){let t=Fd(e,wc(e),gg(e));if(t)return t}return vd(WH(e,BH(e,n)),r,i)}if(RO(e)&&(ye||ng(e)))if(eb(e)){let t=E(e.parent.members,VO),n=t.length?ree(e.symbol,t):ub(e)&128?Mk(e.symbol):void 0;return n&&vd(n,!0,i)}else{let t=BT(e.parent),n=t?kd(e.symbol,t):ub(e)&128?Mk(e.symbol):void 0;return n&&vd(n,!0,i)}if(aj(e))return un;if(Xu(e.name))return qd(e.name,!1,!0)}function Td(e){if(e.valueDeclaration&&Rk(e.valueDeclaration)){let t=wo(e);return t.isConstructorDeclaredProperty===void 0&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Dd(e)&&v(e.declarations,t=>Rk(t)&&EI(t)&&(t.left.kind!==213||uv(t.left.argumentExpression))&&!Id(void 0,t,e,t))),t.isConstructorDeclaredProperty}return!1}function Ed(e){let t=e.valueDeclaration;return t&&RO(t)&&!Ly(t)&&!t.initializer&&(ye||ng(t))}function Dd(e){if(e.declarations)for(let t of e.declarations){let e=Eh(t,!1,!1);if(e&&(e.kind===177||kB(e)))return e}}function Od(e){let t=Yf(e.declarations[0]),n=Wc(e.escapedName),r=e.declarations.every(e=>ng(e)&&Zx(e)&&Tg(e.expression)),i=r?J.createPropertyAccessExpression(J.createPropertyAccessExpression(J.createIdentifier(`module`),J.createIdentifier(`exports`)),n):J.createPropertyAccessExpression(J.createIdentifier(`exports`),n);return r&&Zw(i.expression.expression,i.expression),Zw(i.expression,i),Zw(i,t),i.flowNode=t.endFlowNode,rF(i,Ht,Xt)}function ree(e,t){let n=pn(e.escapedName,`__#`)?J.createPrivateIdentifier(e.escapedName.split(`@`)[1]):Wc(e.escapedName);for(let r of t){let t=J.createPropertyAccessExpression(J.createThis(),n);Zw(t.expression,t),Zw(t,r),t.flowNode=r.returnFlowNode;let i=Ad(t,e);if(ye&&(i===Ht||i===Ir)&&U(e.valueDeclaration,G.Member_0_implicitly_has_an_1_type,Hl(e),Yl(i)),!wP(i,uR))return mG(i)}}function kd(e,t){let n=pn(e.escapedName,`__#`)?J.createPrivateIdentifier(e.escapedName.split(`@`)[1]):Wc(e.escapedName),r=J.createPropertyAccessExpression(J.createThis(),n);Zw(r.expression,r),Zw(r,t),r.flowNode=t.returnFlowNode;let i=Ad(r,e);return ye&&(i===Ht||i===Ir)&&U(e.valueDeclaration,G.Member_0_implicitly_has_an_1_type,Hl(e),Yl(i)),wP(i,uR)?void 0:mG(i)}function Ad(e,t){return rF(e,Ht,t?.valueDeclaration&&(!Ed(t)||ub(t.valueDeclaration)&128)&&Mk(t)||Xt)}function Pd(e,t){let n=_g(e.valueDeclaration);if(n){let t=ng(n)?Ol(n):void 0;return t&&t.typeExpression?DE(t.typeExpression):e.valueDeclaration&&Fd(e.valueDeclaration,e,n)||yj(RH(n))}let r,i=!1,a=!1;if(Td(e)&&(r=kd(e,Dd(e))),!r){let n;if(e.declarations){let o;for(let r of e.declarations){let s=Rk(r)||Tk(r)?r:Zx(r)?Rk(r.parent)?r.parent:r:void 0;if(!s)continue;let c=Zx(s)?Rg(s):Eg(s);(c===4||Rk(s)&&EI(s,c))&&(Vd(s)?i=!0:a=!0),Tk(s)||(o=Id(o,s,e,r)),o||(n||=[]).push(Rk(s)||Tk(s)?Rd(e,t,s,c):V)}r=o}if(!r){if(!u(n))return Gt;let t=i&&e.declarations?Hd(n,e.declarations):void 0;if(a){let n=Mk(e);n&&((t||=[]).push(n),i=!0)}r=AC(F(t,e=>!!(e.flags&-98305))?t:n)}}let o=CM(vd(r,!1,a&&!i));return e.valueDeclaration&&ng(e.valueDeclaration)&&TP(o,e=>!!(e.flags&-98305))===V?(EM(e.valueDeclaration,Vt),Vt):o}function Fd(e,t,n){if(!ng(e)||!n||!Sk(n)||n.properties.length)return;let r=Cf();for(;Rk(e)||Ck(e);){let t=Tc(e);t?.exports?.size&&xo(r,t.exports),e=Rk(e)?e.parent:e.parent.parent}let i=Tc(e);i?.exports?.size&&xo(r,i.exports);let a=pl(t,r,c,c,c);return a.objectFlags|=4096,a}function Id(e,t,n,r){let i=Ly(t.parent);if(i){let t=CM(DE(i));if(e)!Yu(e)&&!Yu(t)&&!ED(e,t)&&gG(void 0,e,r,t);else return t}if(n.parent?.valueDeclaration){let e=Dc(n.parent);if(e.valueDeclaration){let t=Ly(e.valueDeclaration);if(t){let e=Kv(DE(t),n.escapedName);if(e)return $f(e)}}}return e}function Rd(e,t,n,r){if(Tk(n)){if(t)return Jf(t);let e=RH(n.arguments[2]),r=Wu(e,`value`);if(r)return r;let i=Wu(e,`get`);if(i){let e=bz(i);if(e)return Uy(e)}let a=Wu(e,`set`);if(a){let e=bz(a);if(e)return _V(e)}return Vt}if(zd(n.left,n.right))return Vt;let i=r===1&&(Ck(n.left)||wk(n.left))&&(Tg(n.left.expression)||Y(n.left.expression)&&Cg(n.left.expression)),a=t?Jf(t):i?pE(RH(n.right)):yj(RH(n.right));if(a.flags&524288&&r===2&&e.escapedName===`export=`){let n=u_(a),r=Cf();Pf(n.members,r);let i=r.size;t&&!t.exports&&(t.exports=Cf()),(t||e).exports.forEach((e,t)=>{let n=r.get(t);if(n&&n!==e&&!(e.flags&2097152))if(e.flags&111551&&n.flags&111551){if(e.valueDeclaration&&n.valueDeclaration&&Yf(e.valueDeclaration)!==Yf(n.valueDeclaration)){let t=Wc(e.escapedName),r=vt(n.valueDeclaration,Qc)?.name||n.valueDeclaration;Dw(U(e.valueDeclaration,G.Duplicate_identifier_0,t),mm(r,G._0_was_also_declared_here,t)),Dw(U(r,G.Duplicate_identifier_0,t),mm(e.valueDeclaration,G._0_was_also_declared_here,t))}let i=lo(e.flags|n.flags,t);i.links.type=AC([Jf(e),Jf(n)]),i.valueDeclaration=n.valueDeclaration,i.declarations=de(n.declarations,e.declarations),r.set(t,i)}else r.set(t,_o(e,n));else r.set(t,e)});let o=pl(i===r.size?n.symbol:void 0,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(a.aliasSymbol&&(o.aliasSymbol=a.aliasSymbol,o.aliasTypeArguments=a.aliasTypeArguments),Wx(a)&4)){o.aliasSymbol=a.symbol;let e=ex(a);o.aliasTypeArguments=u(e)?e:void 0}return o.objectFlags|=Yb([a])|Wx(a)&20608,o.symbol&&o.symbol.flags&32&&a===Mp(o.symbol)&&(o.objectFlags|=16777216),o}return RA(a)?(EM(n,Fr),Fr):a}function zd(e,t){return Ck(e)&&e.expression.kind===110&&mP(t,t=>AN(e,t))}function Vd(e){let t=Eh(e,!1,!1);return t.kind===177||t.kind===263||t.kind===219&&!Bg(t.parent)}function Hd(e,t){return H.assert(e.length===t.length),e.filter((e,n)=>{let r=t[n],i=Rk(r)?r:Rk(r.parent)?r.parent:void 0;return i&&Vd(i)})}function Ud(e,t,n){return e.initializer?vd(GH(e,BH(e,0,Xu(e.name)?qd(e.name,!0,!1):Yt))):Xu(e.name)?qd(e.name,t,n):(n&&!cf(e)&&EM(e,Vt),t?qt:Vt)}function Wd(e,t,n){let r=Cf(),i,a=131200;d(e.elements,e=>{let o=e.propertyName||e.name;if(e.dotDotDotToken){i=xb(rn,Vt,!1);return}let s=$C(o);if(!kT(s)){a|=512;return}let c=AT(s),l=lo(4|(e.initializer?16777216:0),c);l.links.type=Ud(e,t,n),r.set(l.escapedName,l)});let o=pl(void 0,r,c,c,i?[i]:c);return o.objectFlags|=a,t&&(o.pattern=e,o.objectFlags|=131072),o}function Gd(e,t,n){let r=e.elements,i=Re(r),a=i&&i.kind===209&&i.dotDotDotToken?i:void 0;if(r.length===0||r.length===1&&a)return j>=2?Gee(Vt):Fr;let o=k(r,e=>Wk(e)?Vt:Ud(e,t,n)),s=S(r,e=>!(e===a||Wk(e)||yL(e)),r.length-1)+1,c=QS(o,k(r,(e,t)=>e===a?4:t>=s?2:1));return t&&(c=Qb(c),c.pattern=e,c.objectFlags|=131072),c}function qd(e,t=!1,n=!1){t&&Hi.push(e);let r=e.kind===207?Wd(e,t,n):Gd(e,t,n);return t&&Hi.pop(),r}function Yd(e,t){return of(xd(e,!0,0),e,t)}function Zd(e){let t=To(e);if(!t.resolvedType){let n=lo(4096,`__importAttributes`),r=Cf();d(e.elements,e=>{let t=lo(4,FT(e));t.parent=n,t.links.type=fq(e),t.links.target=t,r.set(t.escapedName,t)});let i=pl(n,r,c,c,c);i.objectFlags|=262272,t.resolvedType=i}return t.resolvedType}function Qd(e){let t=Tc(e),n=qx(!1);return n&&t&&t===n}function of(e,t,n){return e?(e.flags&4096&&Qd(t.parent)&&(e=xE(t)),n&&DM(t,e),e.flags&8192&&(bk(t)||!lf(t))&&e.symbol!==wc(t)&&(e=gn),CM(e)):(e=FO(t)&&t.dotDotDotToken?Fr:Vt,n&&(cf(t)||EM(t,e)),e)}function cf(e){let t=Dv(e);return JU(t.kind===170?t.parent:t)}function lf(e){let t=Ly(e);if(t)return DE(t)}function mf(e){let t=e.valueDeclaration;return t?(bk(t)&&(t=Mc(t)),FO(t)?CD(t.parent):!1):!1}function hf(e){let t=wo(e);if(!t.type){let n=bf(e);return!t.type&&!mf(e)&&(t.type=n),n}return t.type}function bf(e){if(e.flags&4194304)return Uu(e);if(e===qe)return Vt;if(e.flags&134217728&&e.valueDeclaration){let t=wc(Yf(e.valueDeclaration)),n=lo(t.flags,`exports`);n.declarations=t.declarations?t.declarations.slice():[],n.parent=e,n.links.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),t.members&&(n.members=new Map(t.members)),t.exports&&(n.exports=new Map(t.exports));let r=Cf();return r.set(`exports`,n),pl(e,r,c,c,c)}H.assertIsDefined(e.valueDeclaration);let t=e.valueDeclaration;if(vj(t)&&jm(t))return t.statements.length?CM(yj(cU(t.statements[0].expression))):zn;if(Bu(t))return kf(e);if(!Tu(e,0))return e.flags&512&&!(e.flags&67108864)?If(e):Uf(e);let n;if(t.kind===278)n=of(lf(t)||RH(t.expression),t);else if(Rk(t)||ng(t)&&(Tk(t)||(Ck(t)||jg(t))&&Rk(t.parent)))n=Pd(e);else if(Ck(t)||wk(t)||Y(t)||uf(t)||$D(t)||CA(t)||SA(t)||BO(t)&&!mh(t)||zO(t)||vj(t)){if(e.flags&9136)return If(e);n=Rk(t.parent)?Pd(e):lf(t)||Vt}else if(mj(t))n=lf(t)||YH(t);else if(aj(t))n=lf(t)||NL(t);else if(hj(t))n=lf(t)||JH(t.name,0);else if(mh(t))n=lf(t)||XH(t,0);else if(FO(t)||RO(t)||LO(t)||bA(t)||bk(t)||tu(t))n=Yd(t,!0);else if(EA(t))n=If(e);else if(_j(t))n=Rf(e);else return H.fail(`Unhandled declaration kind! `+H.formatSyntaxKind(t.kind)+` for `+H.formatSymbol(e));return Fu()?n:e.flags&512&&!(e.flags&67108864)?If(e):Uf(e)}function Ef(e){if(e)switch(e.kind){case 178:return zy(e);case 179:return Hy(e);case 173:return H.assert(ib(e)),Ly(e)}}function Df(e){let t=Ef(e);return t&&DE(t)}function Of(e){let t=MY(e);return t&&t.symbol}function aee(e){return Fy(by(e))}function kf(e){let t=wo(e);if(!t.type){if(!Tu(e,0))return Gt;let n=xf(e,178),r=xf(e,179),i=vt(xf(e,173),Vu),a=n&&ng(n)&&hd(n)||Df(n)||Df(r)||Df(i)||n&&n.body&&BV(n)||i&&Yd(i,!0);a||=(r&&!JU(r)?to(ye,r,G.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Hl(e)):n&&!JU(n)?to(ye,n,G.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Hl(e)):i&&!JU(i)&&to(ye,i,G.Member_0_implicitly_has_an_1_type,Hl(e),`any`),Vt),Fu()||(Ef(n)?U(n,G._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hl(e)):Ef(r)||Ef(i)?U(r,G._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hl(e)):n&&ye&&U(n,G._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,Hl(e)),a=Vt),t.type??=a}return t.type}function Af(e){let t=wo(e);if(!t.writeType){if(!Tu(e,7))return Gt;let n=xf(e,179)??vt(xf(e,173),Vu),r=Df(n);Fu()||(Ef(n)&&U(n,G._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hl(e)),r=Vt),t.writeType??=r||kf(e)}return t.writeType}function jf(e){let t=gp(Mp(e));return t.flags&8650752?t:t.flags&2097152?y(t.types,e=>!!(e.flags&8650752)):void 0}function If(e){let t=wo(e),n=t;if(!t.type){let r=e.valueDeclaration&&jB(e.valueDeclaration,!1);if(r){let n=AB(e,r);n&&(e=n,t=n.links)}n.type=t.type=Lf(e)}return t.type}function Lf(e){let t=e.valueDeclaration;if(e.flags&1536&&Up(e))return Vt;if(t&&(t.kind===227||Zx(t)&&t.parent.kind===227))return Pd(e);if(e.flags&512&&t&&vj(t)&&t.commonJsModuleIndicator){let t=ic(e);if(t!==e){if(!Tu(e,0))return Gt;let n=Cc(e.exports.get(`export=`)),r=Pd(n,n===t?void 0:t);return Fu()?r:Uf(e)}}let n=tl(16,e);if(e.flags&32){let t=jf(e);return t?HC([n,t]):n}else return fe&&e.flags&16777216?Jj(n,!0):n}function Rf(e){let t=wo(e);return t.type||=Vp(e)}function zf(e){let t=wo(e);if(!t.type){if(!Tu(e,0))return Gt;let n=Is(e),r=e.declarations&&Ns(Qo(e),!0),i=p(r?.declarations,e=>UA(e)?lf(e):void 0);if(t.type??=r?.declarations&&xq(r.declarations)&&e.declarations.length?Od(r):xq(e.declarations)?Ht:i||(Rs(n)&111551?Jf(n):Gt),!Fu())return Uf(r??e),t.type??=Gt}return t.type}function Bf(e){let t=wo(e);return t.type||=dD(Jf(t.target),t.mapper)}function oee(e){let t=wo(e);return t.writeType||=dD(Kf(t.target),t.mapper)}function Uf(e){let t=e.valueDeclaration;if(t){if(Ly(t))return U(e.valueDeclaration,G._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Hl(e)),Gt;ye&&(t.kind!==170||t.initializer)&&U(e.valueDeclaration,G._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Hl(e))}else if(e.flags&2097152){let t=Qo(e);t&&U(t,G.Circular_definition_of_import_alias_0,Hl(e))}return Vt}function Wf(e){let t=wo(e);return t.type||=(H.assertIsDefined(t.deferralParent),H.assertIsDefined(t.deferralConstituents),t.deferralParent.flags&1048576?AC(t.deferralConstituents):HC(t.deferralConstituents)),t.type}function Gf(e){let t=wo(e);return!t.writeType&&t.deferralWriteConstituents&&(H.assertIsDefined(t.deferralParent),H.assertIsDefined(t.deferralConstituents),t.writeType=t.deferralParent.flags&1048576?AC(t.deferralWriteConstituents):HC(t.deferralWriteConstituents)),t.writeType}function Kf(e){let t=jx(e);return t&2?t&65536?Gf(e)||Wf(e):e.links.writeType||e.links.type:e.flags&4?cM(Jf(e),!!(e.flags&16777216)):e.flags&98304?t&1?oee(e):Af(e):Jf(e)}function Jf(e){let t=jx(e);return t&65536?Wf(e):t&1?Bf(e):t&262144?Ng(e):t&8192?eN(e):e.flags&7?hf(e):e.flags&9136?If(e):e.flags&8?Rf(e):e.flags&98304?kf(e):e.flags&2097152?zf(e):Gt}function $f(e){return cM(Jf(e),!!(e.flags&16777216))}function ep(e,t){if(e===void 0||!(Wx(e)&4))return!1;for(let n of t)if(e.target===n)return!0;return!1}function tp(e,t){return e!==void 0&&t!==void 0&&(Wx(e)&4)!=0&&e.target===t}function np(e){return Wx(e)&4?e.target:e}function ap(e,t){return n(e);function n(e){if(Wx(e)&7){let r=np(e);return r===t||F(bp(r),n)}else if(e.flags&2097152)return F(e.types,n);return!1}}function op(e,t){for(let n of t)e=Oe(e,Hp(wc(n)));return e}function sp(e,t){for(;;){if(e=e.parent,e&&Rk(e)){let t=Eg(e);if(t===6||t===3){let t=wc(e.left);t&&t.parent&&!K(t.parent.valueDeclaration,t=>e===t)&&(e=t.parent.valueDeclaration)}}if(!e)return;let n=e.kind;switch(n){case 264:case 232:case 265:case 180:case 181:case 174:case 185:case 186:case 318:case 263:case 175:case 219:case 220:case 266:case 346:case 347:case 341:case 339:case 201:case 195:{let r=sp(e,t);if((n===219||n===220||mh(e))&&vD(e)){let t=Pe(Jv(Jf(wc(e)),0));if(t&&t.typeParameters)return[...r||c,...t.typeParameters]}if(n===201)return I(r,Hp(wc(e.typeParameter)));if(n===195)return de(r,JT(e));let i=op(r,Rl(e)),a=t&&(n===264||n===232||n===265||kB(e))&&Mp(wc(e)).thisType;return a?I(i,a):i}case 342:let r=m_(e);r&&(e=r.valueDeclaration);break;case 321:{let n=sp(e,t);return e.tags?op(n,re(e.tags,e=>$j(e)?e.typeParameters:void 0)):n}}}}function cp(e){let t=e.flags&32||e.flags&16?e.valueDeclaration:e.declarations?.find(e=>{if(e.kind===265)return!0;if(e.kind!==261)return!1;let t=e.initializer;return!!t&&(t.kind===219||t.kind===220)});return H.assert(!!t,`Class was missing valueDeclaration -OR- non-class had no interface declarations`),sp(t)}function lp(e){if(!e.declarations)return;let t;for(let n of e.declarations)(n.kind===265||n.kind===264||n.kind===232||kB(n)||n_(n))&&(t=op(t,Rl(n)));return t}function up(e){return de(cp(e),lp(e))}function dp(e){let t=Jv(e,1);if(t.length===1){let e=t[0];if(!e.typeParameters&&e.parameters.length===1&&xB(e)){let t=$B(e.parameters[0]);return Ku(t)||yA(t)===Vt}}return!1}function fp(e){if(Jv(e,1).length>0)return!0;if(e.flags&8650752){let t=ov(e);return!!t&&dp(t)}return!1}function pp(e){let t=Ux(e.symbol);return t&&K_(t)}function mp(e,t,n){let r=u(t),i=ng(n);return E(Jv(e,1),e=>(i||r>=_y(e.typeParameters))&&r<=u(e.typeParameters))}function hp(e,t,n){let r=mp(e,t,n),i=k(t,DE);return te(r,e=>F(e.typeParameters)?qy(e,i,ng(n)):e)}function gp(e){if(!e.resolvedBaseConstructorType){let t=Ux(e.symbol),n=t&&K_(t),r=pp(e);if(!r)return e.resolvedBaseConstructorType=Xt;if(!Tu(e,1))return Gt;let i=cU(r.expression);if(n&&r!==n&&(H.assert(!n.typeArguments),cU(n.expression)),i.flags&2621440&&u_(i),!Fu())return U(e.symbol.valueDeclaration,G._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Hl(e.symbol)),e.resolvedBaseConstructorType??=Gt;if(!(i.flags&1)&&i!==nn&&!fp(i)){let t=U(r.expression,G.Type_0_is_not_a_constructor_function_type,Yl(i));if(i.flags&262144){let e=Wb(i),n=Yt;if(e){let t=Jv(e,1);t[0]&&(n=Uy(t[0]))}i.symbol.declarations&&Dw(t,mm(i.symbol.declarations[0],G.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Hl(i.symbol),Yl(n)))}return e.resolvedBaseConstructorType??=Gt}e.resolvedBaseConstructorType??=i}return e.resolvedBaseConstructorType}function _p(e){let t=c;if(e.symbol.declarations)for(let n of e.symbol.declarations){let e=J_(n);if(e)for(let n of e){let e=DE(n);Yu(e)||(t===c?t=[e]:t.push(e))}}return t}function vp(e,t){U(e,G.Type_0_recursively_references_itself_as_a_base_type,Yl(t,void 0,2))}function bp(e){if(!e.baseTypesResolved){if(Tu(e,6)&&(e.objectFlags&8?e.resolvedBaseTypes=[see(e)]:e.symbol.flags&96?(e.symbol.flags&32&&xp(e),e.symbol.flags&64&&kp(e)):H.fail(`type must be class or interface`),!Fu()&&e.symbol.declarations))for(let t of e.symbol.declarations)(t.kind===264||t.kind===265)&&vp(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function see(e){return PS(AC(te(e.typeParameters,(t,n)=>e.elementFlags[n]&8?sT(t,on):t)||c),e.readonly)}function xp(e){e.resolvedBaseTypes=gf;let t=Fv(gp(e));if(!(t.flags&2621441))return e.resolvedBaseTypes=c;let n=pp(e),r,i=t.symbol?Kp(t.symbol):void 0;if(t.symbol&&t.symbol.flags&32&&Tp(i))r=nx(n,t.symbol);else if(t.flags&1)r=t;else{let i=hp(t,n.typeArguments,n);if(!i.length)return U(n.expression,G.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=c;r=Uy(i[0])}if(Yu(r))return e.resolvedBaseTypes=c;let a=Hv(r);if(!Dp(a)){let t=SS(Gv(void 0,r),G.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Yl(a));return Ea.add(_m(Yf(n.expression),n.expression,t)),e.resolvedBaseTypes=c}return e===a||ap(a,e)?(U(e.symbol.valueDeclaration,G.Type_0_recursively_references_itself_as_a_base_type,Yl(e,void 0,2)),e.resolvedBaseTypes=c):(e.resolvedBaseTypes===gf&&(e.members=void 0),e.resolvedBaseTypes=[a])}function Tp(e){let t=e.outerTypeParameters;if(t){let n=t.length-1,r=ex(e);return t[n].symbol!==r[n].symbol}return!0}function Dp(e){if(e.flags&262144){let t=ov(e);if(t)return Dp(t)}return!!(e.flags&67633153&&!a_(e)||e.flags&2097152&&v(e.types,Dp))}function kp(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||c,e.symbol.declarations){for(let t of e.symbol.declarations)if(t.kind===265&&X_(t))for(let n of X_(t)){let r=Hv(DE(n));Yu(r)||(Dp(r)?e!==r&&!ap(r,e)?e.resolvedBaseTypes===c?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):vp(t,e):U(n,G.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Ap(e){if(!e.declarations)return!0;for(let t of e.declarations)if(t.kind===265){if(t.flags&256)return!1;let e=X_(t);if(e){for(let t of e)if(Mb(t.expression)){let e=Js(t.expression,788968,!0);if(!e||!(e.flags&64)||Mp(e).thisType)return!1}}}return!0}function Mp(e){let t=wo(e),n=t;if(!t.declaredType){let r=e.flags&32?1:2,i=AB(e,e.valueDeclaration&&Bne(e.valueDeclaration));i&&(e=i,t=i.links);let a=n.declaredType=t.declaredType=tl(r,e),o=cp(e),s=lp(e);(o||s||r===1||!Ap(e))&&(a.objectFlags|=4,a.typeParameters=de(o,s),a.outerTypeParameters=o,a.localTypeParameters=s,a.instantiations=new Map,a.instantiations.set(Kb(a.typeParameters),a),a.target=a,a.resolvedTypeArguments=a.typeParameters,a.thisType=al(e),a.thisType.isThisType=!0,a.thisType.constraint=a)}return t.declaredType}function Np(e){let t=wo(e);if(!t.declaredType){if(!Tu(e,2))return Gt;let n=H.checkDefined(e.declarations?.find(n_),`Type alias symbol with no valid declaration found`),r=t_(n)?n.typeExpression:n.type,i=r?DE(r):Gt;if(Fu()){let n=lp(e);n&&(t.typeParameters=n,t.instantiations=new Map,t.instantiations.set(Kb(n),i)),i===Jt&&e.escapedName===`BuiltinIteratorReturn`&&(i=cS())}else i=Gt,n.kind===341?U(n.typeExpression.type,G.Type_alias_0_circularly_references_itself,Hl(e)):U(Qc(n)&&n.name||n,G.Type_alias_0_circularly_references_itself,Hl(e));t.declaredType??=i}return t.declaredType}function Pp(e){return e.flags&1056&&e.symbol.flags&8?Kp(Ec(e.symbol)):e}function Fp(e){let t=wo(e);if(!t.declaredType){let n=[];if(e.declarations){for(let t of e.declarations)if(t.kind===267){for(let r of t.members)if(Fm(r)){let t=wc(r),i=AJ(r).value,a=fE(i===void 0?Ip(t):vE(i,hB(e),t));wo(t).declaredType=a,n.push(pE(a))}}}let r=n.length?AC(n,1,e,void 0):Ip(e);r.flags&1048576&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function Ip(e){let t=Jc(32,e),n=Jc(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function Vp(e){let t=wo(e);if(!t.declaredType){let n=Fp(Ec(e));t.declaredType||=n}return t.declaredType}function Hp(e){let t=wo(e);return t.declaredType||=al(e)}function cee(e){let t=wo(e);return t.declaredType||=Kp(Is(e))}function Kp(e){return Jp(e)||Gt}function Jp(e){if(e.flags&96)return Mp(e);if(e.flags&524288)return Np(e);if(e.flags&262144)return Hp(e);if(e.flags&384)return Fp(e);if(e.flags&8)return Vp(e);if(e.flags&2097152)return cee(e)}function Xp(e){switch(e.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 202:return!0;case 189:return Xp(e.elementType);case 184:return!e.typeArguments||e.typeArguments.every(Xp)}return!1}function Zp(e){let t=zl(e);return!t||Xp(t)}function Qp(e){let t=Ly(e);return t?Xp(t):!rf(e)}function $p(e){let t=zy(e),n=Rl(e);return(e.kind===177||!!t&&Xp(t))&&e.parameters.every(Qp)&&n.every(Zp)}function em(e){if(e.declarations&&e.declarations.length===1){let t=e.declarations[0];if(t)switch(t.kind){case 173:case 172:return Qp(t);case 175:case 174:case 177:case 178:case 179:return $p(t)}}return!1}function tm(e,t,n){let r=Cf();for(let i of e)r.set(i.escapedName,n&&em(i)?i:YE(i,t));return r}function nm(e,t){for(let n of t){if(rm(n))continue;let t=e.get(n.escapedName);(!t||t.valueDeclaration&&Rk(t.valueDeclaration)&&!Td(t)&&!Ch(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function rm(e){return!!e.valueDeclaration&&Su(e.valueDeclaration)&&$y(e.valueDeclaration)}function om(e){if(!e.declaredProperties){let t=e.symbol,n=Wm(t);e.declaredProperties=sl(n),e.declaredCallSignatures=c,e.declaredConstructSignatures=c,e.declaredIndexInfos=c,e.declaredCallSignatures=Ey(n.get(`__call`)),e.declaredConstructSignatures=Ey(n.get(`__new`)),e.declaredIndexInfos=Sb(t)}return e}function dm(e){return ym(e)&&kT(NO(e)?TL(e):RH(e.argumentExpression))}function gm(e){return ym(e)&&bm(NO(e)?TL(e):RH(e.argumentExpression))}function ym(e){return!NO(e)&&!wk(e)?!1:Mb(NO(e)?e.expression:e.argumentExpression)}function bm(e){return MD(e,On)}function Cm(e){return e.charCodeAt(0)===95&&e.charCodeAt(1)===95&&e.charCodeAt(2)===64}function Dm(e){let t=el(e);return!!t&&dm(t)}function Pm(e){let t=el(e);return!!t&&gm(t)}function Fm(e){return!fv(e)||Dm(e)}function Im(e){return pv(e)&&!dm(e)}function Lm(e,t,n){H.assert(!!(jx(e)&4096),`Expected a late-bound symbol.`),e.flags|=n,wo(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],n&111551&&Hg(e,t)}function Rm(e,t,n,r){H.assert(!!r.symbol,`The member is expected to have a symbol.`);let i=To(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;let a=Rk(r)?r.left:r.name,o=wk(a)?RH(a.argumentExpression):TL(a);if(kT(o)){let s=AT(o),c=r.symbol.flags,l=n.get(s);l||n.set(s,l=lo(0,s,4096));let u=t&&t.get(s);if(!(e.flags&32)&&l.flags&mo(c)){let e=u?de(u.declarations,l.declarations):l.declarations,t=!(o.flags&8192)&&Wc(s)||lm(a);d(e,e=>U(el(e)||e,G.Property_0_was_also_declared_here,t)),U(a||r,G.Duplicate_property_0,t),l=lo(0,s,4096)}return l.links.nameType=o,Lm(l,r,c),l.parent?H.assert(l.parent===e,`Existing symbol parent should match new one`):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function Vm(e,t,n,r){let i=n.get(`__index`);if(!i){let e=t?.get(`__index`);e?(i=go(e),i.links.checkFlags|=4096):i=lo(0,`__index`,4096),n.set(`__index`,i)}i.declarations?r.symbol.isReplaceableByMethod||i.declarations.push(r):i.declarations=[r]}function Um(e,t){let n=wo(e);if(!n[t]){let r=t===`resolvedExports`,i=r?e.flags&1536?Sc(e).exports:e.exports:e.members;n[t]=i||ie;let a=Cf();for(let t of e.declarations||c){let n=ah(t);if(n)for(let t of n)r===eb(t)&&(Dm(t)?Rm(e,i,a,t):Pm(t)&&Vm(e,i,a,t))}let o=Dc(e).assignmentDeclarationMembers;if(o){let t=$e(o.values());for(let n of t){let t=Eg(n);r===!(t===3||Rk(n)&&EI(n,t)||t===9||t===6)&&Dm(n)&&Rm(e,i,a,n)}}let s=bo(i,a);if(e.flags&33554432&&n.cjsExportMerged&&e.declarations)for(let n of e.declarations){let e=wo(n.symbol)[t];if(!s){s=e;continue}e&&e.forEach((e,t)=>{let n=s.get(t);if(!n)s.set(t,e);else if(n===e)return;else s.set(t,_o(n,e))})}n[t]=s||ie}return n[t]}function Wm(e){return e.flags&6256?Um(e,`resolvedMembers`):e.members||ie}function Gm(e){if(e.flags&106500&&e.escapedName===`__computed`){let t=wo(e);if(!t.lateSymbol&&F(e.declarations,Dm)){let t=Cc(e.parent);F(e.declarations,eb)?yc(t):Wm(t)}return t.lateSymbol||=e}return e}function Km(e,t,n){if(Wx(e)&4){let n=e.target,r=ex(e);return u(n.typeParameters)===u(r)?Zb(n,de(r,[t||n.thisType])):e}else if(e.flags&2097152){let r=te(e.types,e=>Km(e,t,n));return r===e.types?e:HC(r)}return n?Fv(e):e}function qm(e,t,n,r){let i,a,o,s,c;Me(n,r,0,n.length)?(a=t.symbol?Wm(t.symbol):Cf(t.declaredProperties),o=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=ME(n,r),a=tm(t.declaredProperties,i,n.length===1),o=jE(t.declaredCallSignatures,i),s=jE(t.declaredConstructSignatures,i),c=tte(t.declaredIndexInfos,i));let l=bp(t);if(l.length){if(t.symbol&&a===Wm(t.symbol)){let e=Cf(t.declaredProperties),n=gb(t.symbol);n&&e.set(`__index`,n),a=e}dl(e,a,o,s,c);let n=Re(r);for(let e of l){let t=n?Km(dD(e,i),n):e;nm(a,S_(t)),o=de(o,Jv(t,0)),s=de(s,Jv(t,1));let r=t===Vt?[cr]:ty(t);c=de(c,E(r,e=>!Yv(c,e.keyType)))}}dl(e,a,o,s,c)}function Jm(e){qm(e,om(e),c,c)}function Ym(e){let t=om(e.target),n=de(t.typeParameters,[t.thisType]),r=ex(e);qm(e,t,n,r.length===n.length?r:de(r,[e]))}function Xm(e,t,n,r,i,a,o,c){let l=new s(st,c);return l.declaration=e,l.typeParameters=t,l.parameters=r,l.thisParameter=n,l.resolvedReturnType=i,l.resolvedTypePredicate=a,l.minArgumentCount=o,l.resolvedMinArgumentCount=void 0,l.target=void 0,l.mapper=void 0,l.compositeSignatures=void 0,l.compositeKind=void 0,l}function Zm(e){let t=Xm(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,e.flags&167);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function Qm(e,t){let n=Zm(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function fee(e,t){if((e.flags&24)===t)return e;e.optionalCallSignatureCache||={};let n=t===8?`inner`:`outer`;return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=pee(e,t))}function pee(e,t){H.assert(t===8||t===16,`An optional call signature can either be for an inner call chain or an outer call chain, but not both.`);let n=Zm(e);return n.flags|=t,n}function $m(e,t){if(xB(e)){let r=e.parameters.length-1,i=e.parameters[r],a=Jf(i);if(Ej(a))return[n(a,r,i)];if(!t&&a.flags&1048576&&v(a.types,Ej))return k(a.types,e=>n(e,r,i))}return[e.parameters];function n(t,n,i){let a=ex(t),o=r(t,i),s=k(a,(r,i)=>{let a=o&&o[i]?o[i]:nV(e,n+i,t),s=t.target.elementFlags[i],c=lo(1,a,s&12?32768:s&2?16384:0);return c.links.type=s&4?PS(r):r,c});return de(e.parameters.slice(0,n),s)}function r(e,t){let n=k(e.target.labeledElementDeclarations,(n,r)=>tV(n,r,e.target.elementFlags[r],t));if(n){let e=[],t=new Set;for(let r=0;r=t&&s<=i){let s=i?Yy(n,vy(o,n.typeParameters,t,a)):Zm(n);s.typeParameters=e.localTypeParameters,s.resolvedReturnType=e,s.flags=r?s.flags|4:s.flags&-5,l.push(s)}}return l}function fh(e,t,n,r,i){for(let a of e)if(rA(a,t,n,r,i,n?kD:DD))return a}function ph(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n1&&(n=n===void 0?r:-1);for(let n of e[r])if(!t||!fh(t,n,!1,!1,!0)){let i=ph(e,n,r);if(i){let e=n;if(i.length>1){let t=n.thisParameter,r=d(i,e=>e.thisParameter);r&&(t=mM(r,HC(M(i,e=>e.thisParameter&&Jf(e.thisParameter))))),e=Qm(n,i),e.thisParameter=t}(t||=[]).push(e)}}}if(!u(t)&&n!==-1){let r=e[n===void 0?0:n],i=r.slice();for(let t of e)if(t!==r){let e=t[0];if(H.assert(!!e,`getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass`),i=e.typeParameters&&F(i,t=>!!t.typeParameters&&!_h(e.typeParameters,t.typeParameters))?void 0:k(i,t=>xh(t,e)),!i)break}t=i}return t||c}function _h(e,t){if(u(e)!==u(t))return!1;if(!e||!t)return!0;let n=ME(t,e);for(let r=0;r=i?e:t,o=a===e?t:e,s=a===e?r:i,c=mV(e)||mV(t),l=c&&!mV(a),u=Array(s+(l?1:0));for(let d=0;d=fV(a)&&d>=fV(o),_=d>=r?void 0:nV(e,d),v=d>=i?void 0:nV(t,d),y=lo(1|(g&&!h?16777216:0),(_===v?_:_?v?void 0:_:v)||`arg${d}`,h?32768:g?16384:0);y.links.type=h?PS(m):m,u[d]=y}if(l){let e=lo(1,`args`,32768);e.links.type=PS(sV(o,s)),o===t&&(e.links.type=dD(e.links.type,n)),u[s]=e}return u}function xh(e,t){let n=e.typeParameters||t.typeParameters,r;e.typeParameters&&t.typeParameters&&(r=ME(t.typeParameters,e.typeParameters));let i=(e.flags|t.flags)&166,a=e.declaration,o=yh(e,t,r),s=Re(o);s&&jx(s)&32768&&(i|=1);let c=Xm(a,n,vh(e.thisParameter,t.thisParameter,r),o,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return c.compositeKind=1048576,c.compositeSignatures=de(e.compositeKind!==2097152&&e.compositeSignatures||[e],[t]),r?c.mapper=e.compositeKind!==2097152&&e.mapper&&e.compositeSignatures?BE(e.mapper,r):r:e.compositeKind!==2097152&&e.mapper&&e.compositeSignatures&&(c.mapper=e.mapper),c}function zh(e){let t=ty(e[0]);if(t){let n=[];for(let r of t){let t=r.keyType;v(e,e=>!!ny(e,t))&&n.push(xb(t,AC(k(e,e=>ay(e,t))),F(e,e=>ny(e,t).isReadonly)))}return n}return c}function Bh(e){dl(e,ie,gh(k(e.types,e=>e===wr?[ir]:Jv(e,0))),gh(k(e.types,e=>Jv(e,1))),zh(e.types))}function Vh(e,t){return e?t?HC([e,t]):e:t}function Wh(e){let t=T(e,e=>Jv(e,1).length>0),n=k(e,dp);if(t>0&&t===T(n,e=>e)){let e=n.indexOf(!0);n[e]=!1}return n}function eg(e,t,n,r){let i=[];for(let a=0;ae);for(let s=0;s0&&(e=k(e,e=>{let t=Zm(e);return t.resolvedReturnType=eg(Uy(e),i,a,s),t})),n=cg(n,e)}t=cg(t,Jv(c,0)),r=Ge(ty(c),(e,t)=>ug(e,t,!1),r)}dl(e,ie,t||c,n||c,r||c)}function cg(e,t){for(let n of t)(!e||v(e,e=>!rA(e,n,!1,!1,!1,DD)))&&(e=I(e,n));return e}function ug(e,t,n){if(e)for(let r=0;r{!(t.flags&418)&&!(t.flags&512&&t.declarations?.length&&v(t.declarations,zp))&&e.set(t.escapedName,t)}),n=e}let i;if(dl(e,n,c,c,c),t.flags&32){let e=gp(Mp(t));e.flags&11272192?(n=Cf(ul(n)),nm(n,S_(e))):e===Vt&&(i=cr)}let a=_b(n);if(a?r=Cb(a,$e(n.values())):(i&&(r=I(r,i)),t.flags&384&&(Kp(t).flags&32||F(e.properties,e=>!!(Jf(e).flags&296)))&&(r=I(r,sr))),dl(e,n,c,c,r||c),t.flags&8208&&(e.callSignatures=Ey(t)),t.flags&32){let n=Mp(t),r=t.members?Ey(t.members.get(`__constructor`)):c;t.flags&16&&(r=Ee(r.slice(),M(e.callSignatures,e=>kB(e.declaration)?Xm(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,e.flags&167):void 0))),r.length||(r=th(n)),e.constructSignatures=r}}function pg(e,t,n){return dD(e,ME([t.indexType,t.objectType],[gE(0),QS([n])]))}function _ee(e){let t=Fg(e.mappedType);if(!(t.flags&1048576||t.flags&2097152))return;let n=t.flags&1048576?t.origin:t;if(!n||!(n.flags&2097152))return;let r=HC(n.types.filter(t=>t!==e.constraintType));return r===V?void 0:r}function vee(e){let t=ny(e.source,rn),n=Zg(e.mappedType),r=!(n&1),i=n&4?0:16777216,a=t?[xb(rn,nN(t.type,e.mappedType,e.constraintType)||Yt,r&&t.isReadonly)]:c,o=Cf(),s=_ee(e);for(let t of S_(e.source)){if(s&&!MD(ew(t,8576),s))continue;let n=8192|(r&&$V(t)?8:0),a=lo(4|t.flags&i,t.escapedName,n);if(a.declarations=t.declarations,a.links.nameType=wo(t).nameType,a.links.propertyType=Jf(t),e.constraintType.type.flags&8388608&&e.constraintType.type.objectType.flags&262144&&e.constraintType.type.indexType.flags&262144){let t=e.constraintType.type.objectType,n=pg(e.mappedType,e.constraintType.type,t);a.links.mappedType=n,a.links.constraintType=iw(t)}else a.links.mappedType=e.mappedType,a.links.constraintType=e.constraintType;o.set(t.escapedName,a)}dl(e,o,c,c,a)}function Sg(e){if(e.flags&4194304){let t=Fv(e.type);return kj(t)?uC(t):iw(t)}if(e.flags&16777216){if(e.root.isDistributive){let t=e.checkType,n=Sg(t);if(n!==t)return uD(e,HE(e.root.checkType,n,e.mapper),!1)}return e}if(e.flags&1048576)return AP(e,Sg,!0);if(e.flags&2097152){let t=e.types;return t.length===2&&t[0].flags&76&&t[1]===Un?e:HC(te(e.types,Sg))}return e}function Og(e){return jx(e)&4096}function kg(e,t,n,r){for(let n of S_(e))r(ew(n,t));if(e.flags&1)r(rn);else for(let t of ty(e))(!n||t.keyType.flags&134217732)&&r(t.keyType)}function Ag(e){let t=Cf(),n;dl(e,ie,c,c,c);let r=Pg(e),i=Fg(e),a=e.target||e,o=Ig(a),s=s_(a)!==2,l=Vg(a),u=Fv(qg(e)),d=Zg(e);Kg(e)?kg(u,8576,!1,f):SP(Sg(i),f),dl(e,t,c,c,n||c);function f(t){SP(o?dD(o,WE(e.mapper,r,t)):t,e=>p(t,e))}function p(i,a){if(kT(a)){let n=AT(a),r=t.get(n);if(r)r.links.nameType=AC([r.links.nameType,a]),r.links.keyType=AC([r.links.keyType,i]);else{let r=kT(i)?Kv(u,AT(i)):void 0,o=!!(d&4||!(d&8)&&r&&r.flags&16777216),c=!!(d&1||!(d&2)&&r&&$V(r)),l=fe&&!o&&r&&r.flags&16777216,f=r?Og(r):0,p=lo(4|(o?16777216:0),n,f|262144|(c?8:0)|(l?524288:0));p.links.mappedType=e,p.links.nameType=a,p.links.keyType=i,r&&(p.links.syntheticOrigin=r,p.declarations=s?r.declarations:void 0),t.set(n,p)}}else if(Db(a)||a.flags&33){let t=a.flags&5?rn:a.flags&40?on:a,o=dD(l,WE(e.mapper,r,i)),s=cy(u,a),c=xb(t,o,!!(d&1||!(d&2)&&s?.isReadonly));n=ug(n,c,!0)}}}function Ng(e){var t;if(!e.links.type){let n=e.links.mappedType;if(!Tu(e,0))return n.containsError=!0,Gt;let r=dD(Vg(n.target||n),WE(n.mapper,Pg(n),e.links.keyType)),i=fe&&e.flags&16777216&&!lH(r,49152)?Jj(r,!0):e.links.checkFlags&524288?uM(r):r;Fu()||(U(w,G.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Hl(e),Yl(n)),i=Gt),(t=e.links).type??(t.type=i)}return e.links.type}function Pg(e){return e.typeParameter||=Hp(wc(e.declaration.typeParameter))}function Fg(e){return e.constraintType||=A_(Pg(e))||Gt}function Ig(e){return e.declaration.nameType?e.nameType||=dD(DE(e.declaration.nameType),e.mapper):void 0}function Vg(e){return e.templateType||=e.declaration.type?dD(vd(DE(e.declaration.type),!0,!!(Zg(e)&4)),e.mapper):Gt}function Ug(e){return zl(e.declaration.typeParameter)}function Kg(e){let t=Ug(e);return t.kind===199&&t.operator===143}function qg(e){if(!e.modifiersType)if(Kg(e))e.modifiersType=dD(DE(Ug(e).type),e.mapper);else{let t=Fg(DT(e.declaration)),n=t&&t.flags&262144?A_(t):t;e.modifiersType=n&&n.flags&4194304?dD(n.type,e.mapper):Yt}return e.modifiersType}function Zg(e){let t=e.declaration;return(t.readonlyToken?t.readonlyToken.kind===41?2:1:0)|(t.questionToken?t.questionToken.kind===41?8:4:0)}function Qg(e){let t=Zg(e);return t&8?-1:t&4?1:0}function r_(e){if(Wx(e)&32)return Qg(e)||r_(qg(e));if(e.flags&2097152){let t=r_(e.types[0]);return v(e.types,(e,n)=>n===0||r_(e)===t)?t:0}return 0}function i_(e){return!!(Wx(e)&32&&Zg(e)&4)}function a_(e){if(Wx(e)&32){let t=Fg(e);if(Hw(t))return!0;let n=Ig(e);if(n&&Hw(dD(n,PE(Pg(e),t))))return!0}return!1}function s_(e){let t=Ig(e);return t?MD(t,Pg(e))?1:2:0}function u_(e){return e.members||(e.flags&524288?e.objectFlags&4?Ym(e):e.objectFlags&3?Jm(e):e.objectFlags&1024?vee(e):e.objectFlags&16?dg(e):e.objectFlags&32?Ag(e):H.fail(`Unhandled object type `+H.formatObjectFlags(e.objectFlags)):e.flags&1048576?Bh(e):e.flags&2097152?ig(e):H.fail(`Unhandled type `+H.formatTypeFlags(e.flags))),e}function d_(e){return e.flags&524288?u_(e).properties:c}function f_(e,t){if(e.flags&524288){let n=u_(e).members.get(t);if(n&&zc(n))return n}}function p_(e){if(!e.resolvedProperties){let t=Cf();for(let n of e.types){for(let r of S_(n))if(!t.has(r.escapedName)){let n=Vv(e,r.escapedName,!!(e.flags&2097152));n&&t.set(r.escapedName,n)}if(e.flags&1048576&&ty(n).length===0)break}e.resolvedProperties=sl(t)}return e.resolvedProperties}function S_(e){return e=Iv(e),e.flags&3145728?p_(e):d_(e)}function C_(e,t){e=Iv(e),e.flags&3670016&&u_(e).members.forEach((e,n)=>{cl(e,n)&&t(e,n)})}function w_(e,t){return t.properties.some(t=>{let n=t.name&&(lj(t.name)?hE(wT(t.name)):$C(t.name)),r=n&&kT(n)?AT(n):void 0,i=r===void 0?void 0:Wu(e,r);return!!i&&ij(i)&&!MD(nJ(t),i)})}function yee(e){let t=AC(e);if(!(t.flags&1048576))return cJ(t);let n=Cf();for(let r of e)for(let{escapedName:e}of cJ(r))if(!n.has(e)){let r=Lv(t,e);r&&n.set(e,r)}return $e(n.values())}function O_(e){return e.flags&262144?A_(e):e.flags&8388608?Y_(e):e.flags&16777216?rv(e):ov(e)}function A_(e){return lv(e)?Wb(e):void 0}function z_(e,t){let n=$E(e);return!!n&&V_(n,t)}function V_(e,t=0){return t<5&&!!(e&&(e.flags&262144&&F(e.symbol?.declarations,e=>Qy(e,4096))||e.flags&3145728&&F(e.types,e=>V_(e,t))||e.flags&8388608&&V_(e.objectType,t+1)||e.flags&16777216&&V_(rv(e),t+1)||e.flags&33554432&&V_(e.baseType,t)||Wx(e)&32&&z_(e,t)||kj(e)&&x(_C(e),(n,r)=>!!(e.target.elementFlags[r]&8)&&V_(n,t))>=0))}function Y_(e){return lv(e)?$_(e):void 0}function Z_(e){let t=Kw(e,!1);return t===e?O_(e):t}function $_(e){if(Pv(e))return tT(e.objectType,e.indexType);let t=Z_(e.indexType);if(t&&t!==e.indexType){let n=gT(e.objectType,t,e.accessFlags);if(n)return n}let n=Z_(e.objectType);if(n&&n!==e.objectType)return gT(n,e.indexType,e.accessFlags)}function ev(e){if(!e.resolvedDefaultConstraint){let t=qT(e),n=KT(e);e.resolvedDefaultConstraint=Ku(t)?n:Ku(n)?t:AC([t,n])}return e.resolvedDefaultConstraint}function tv(e){if(e.resolvedConstraintOfDistributive!==void 0)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){let t=Kw(e.checkType,!1),n=t===e.checkType?O_(t):t;if(n&&n!==e.checkType){let t=uD(e,HE(e.root.checkType,n,e.mapper),!0);if(!(t.flags&131072))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function nv(e){return tv(e)||ev(e)}function rv(e){return lv(e)?nv(e):void 0}function av(e,t){let n,r=!1;for(let i of e)if(i.flags&465829888){let e=O_(i);for(;e&&e.flags&21233664;)e=O_(e);e&&(n=I(n,e),t&&(n=I(n,i)))}else (i.flags&469892092||nO(i))&&(r=!0);if(n&&(t||r)){if(r)for(let t of e)(t.flags&469892092||nO(t))&&(n=I(n,t));return dO(HC(n,2),!1)}}function ov(e){if(e.flags&464781312||kj(e)){let t=dv(e);return t!==Jn&&t!==Yn?t:void 0}return e.flags&4194304?On:void 0}function sv(e){return ov(e)||e}function lv(e){return dv(e)!==Yn}function dv(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;let t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!Tu(e,4))return Yn;let n,r=Xk(e);if((t.length<10||t.length<50&&!C(t,r))&&(t.push(r),n=i(Kw(e,!1)),t.pop()),!Fu()){if(e.flags&262144){let t=Ab(e);if(t){let n=U(t,G.Type_parameter_0_has_a_circular_constraint,Yl(e));w&&!L_(t,w)&&!L_(w,t)&&Dw(n,mm(w,G.Circularity_originates_in_type_at_this_location))}}n=Yn}e.immediateBaseConstraint??=n||Jn}return e.immediateBaseConstraint}function r(e){let t=n(e);return t!==Jn&&t!==Yn?t:void 0}function i(e){if(e.flags&262144){let t=Wb(e);return e.isThisType||!t?t:r(t)}if(e.flags&3145728){let t=e.types,n=[],i=!1;for(let e of t){let t=r(e);t?(t!==e&&(i=!0),n.push(t)):i=!0}return i?e.flags&1048576&&n.length===t.length?AC(n):e.flags&2097152&&n.length?HC(n):void 0:e}if(e.flags&4194304)return On;if(e.flags&134217728){let t=e.types,n=M(t,r);return n.length===t.length?lw(e.texts,n):rn}if(e.flags&268435456){let t=r(e.type);return t&&t!==e.type?pw(e.symbol,t):rn}if(e.flags&8388608){if(Pv(e))return r(tT(e.objectType,e.indexType));let t=r(e.objectType),n=r(e.indexType),i=t&&n&&gT(t,n,e.accessFlags);return i&&r(i)}if(e.flags&16777216){let t=nv(e);return t&&r(t)}return e.flags&33554432?r(gx(e)):kj(e)?QS(k(_C(e),(t,n)=>{let i=t.flags&262144&&e.target.elementFlags[n]&8&&r(t)||t;return i!==t&&wP(i,e=>_A(e)&&!kj(e))?i:t}),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations):e}}function bv(e,t){if(e===t)return e.resolvedApparentType||=Km(e,t,!0);let n=`I${yC(e)},${yC(t)}`;return za(n)??Ba(n,Km(e,t,!0))}function xv(e){if(e.default)e.default===Xn&&(e.default=Yn);else if(e.target){let t=xv(e.target);e.default=t?dD(t,e.mapper):Jn}else{e.default=Xn;let t=e.symbol&&d(e.symbol.declarations,e=>PO(e)&&e.default),n=t?DE(t):Jn;e.default===Xn&&(e.default=n)}return e.default}function Sv(e){let t=xv(e);return t!==Jn&&t!==Yn?t:void 0}function wv(e){return xv(e)!==Yn}function Av(e){return!!(e.symbol&&d(e.symbol.declarations,e=>PO(e)&&e.default))}function jv(e){return e.resolvedApparentType||=Mv(e)}function Mv(e){let t=e.target??e,n=$E(t);if(n&&!t.declaration.nameType){let r=qg(e),i=a_(r)?jv(r):ov(r);if(i&&wP(i,e=>_A(e)||Nv(e)))return dD(t,HE(n,i,e.mapper))}return e}function Nv(e){return!!(e.flags&2097152)&&v(e.types,_A)}function Pv(e){let t;return!!(e.flags&8388608&&Wx(t=e.objectType)&32&&!a_(t)&&Hw(e.indexType)&&!(Zg(t)&8)&&!t.declaration.nameType)}function Fv(e){let t=e.flags&465829888?ov(e)||Yt:e,n=Wx(t);return n&32?jv(t):n&4&&t!==e?Km(t,e):t.flags&2097152?bv(t,e):t.flags&402653316?kr:t.flags&296?jr:t.flags&2112?ES():t.flags&528?Mr:t.flags&12288?Jx():t.flags&67108864?zn:t.flags&4194304?On:t.flags&2&&!fe?zn:t}function Iv(e){return Hv(Fv(Hv(e)))}function Lv(e,t,n){let r=0,i,a,o,s=e.flags&1048576,c,l=4,d=s?0:8,f=!1;for(let p of e.types){let e=Fv(p);if(!(Yu(e)||e.flags&131072)){let p=Kv(e,t,n),m=p?Mx(p):0;if(p){if(p.flags&106500&&(c??=s?0:16777216,s?c|=p.flags&16777216:c&=p.flags),!i)i=p,r=p.flags&98304||4;else if(p!==i){if((IK(p)||p)===(IK(i)||i)&&Qk(i,p,(e,t)=>e===t?-1:0)===-1)f=!!i.parent&&!!u(lp(i.parent));else{a||(a=new Map,a.set(hB(i),i));let e=hB(p);a.has(e)||a.set(e,p)}r&98304&&(p.flags&98304)!=(r&98304)&&(r=r&-98305|4)}s&&$V(p)?d|=8:!s&&!$V(p)&&(d&=-9),d|=(m&6?0:256)|(m&4?512:0)|(m&2?1024:0)|(m&256?2048:0),rR(p)||(l=2)}else if(s){let n=!Cm(t)&&ly(e,t);n?(r=r&-98305|4,d|=32|(n.isReadonly?8:0),o=I(o,Ej(e)?Nj(e)||Xt:n.type)):bN(e)&&!(Wx(e)&2097152)?(d|=32,o=I(o,Xt)):d|=16}}}if(!i||s&&(a||d&48)&&d&1536&&!(a&&Bv(a.values())))return;if(!a&&!(d&16)&&!o)if(f){let t=vt(i,wf)?.links,n=mM(i,t?.type);return n.parent=i.valueDeclaration?.symbol?.parent,n.links.containingType=e,n.links.mapper=t?.mapper,n.links.writeType=Kf(i),n}else return i;let p=a?$e(a.values()):[i],m,h,g,_=[],v,y,b=!1;for(let e of p){y?e.valueDeclaration&&e.valueDeclaration!==y&&(b=!0):y=e.valueDeclaration,m=Ee(m,e.declarations);let t=Jf(e);h||(h=t,g=wo(e).nameType);let n=Kf(e);(v||n!==t)&&(v=I(v||_.slice(),n)),t!==h&&(d|=64),(ij(t)||Mw(t))&&(d|=128),t.flags&131072&&t!==Pn&&(d|=131072),_.push(t)}Ee(_,o);let x=lo(r|(c??0),t,l|d);return x.links.containingType=e,!b&&y&&(x.valueDeclaration=y,y.symbol.parent&&(x.parent=y.symbol.parent)),x.declarations=m,x.links.nameType=g,_.length>2?(x.links.checkFlags|=65536,x.links.deferralParent=e,x.links.deferralConstituents=_,x.links.deferralWriteConstituents=v):(x.links.type=s?AC(_):HC(_),v&&(x.links.writeType=s?AC(v):HC(v))),x}function xee(e,t,n){let r=n?e.propertyCacheWithoutObjectFunctionPropertyAugment?.get(t):e.propertyCache?.get(t);return r||(r=Lv(e,t,n),r&&((n?e.propertyCacheWithoutObjectFunctionPropertyAugment||=Cf():e.propertyCache||=Cf()).set(t,r),n&&!(jx(r)&48)&&!e.propertyCache?.get(t)&&(e.propertyCache||=Cf()).set(t,r))),r}function Bv(e){let t;for(let n of e){if(!n.declarations)return;if(!t){t=new Set(n.declarations);continue}if(t.forEach(e=>{C(n.declarations,e)||t.delete(e)}),t.size===0)return}return t}function Vv(e,t,n){let r=xee(e,t,n);return r&&!(jx(r)&16)?r:void 0}function Hv(e){return e.flags&1048576&&e.objectFlags&16777216?e.resolvedReducedType||=See(e):e.flags&2097152?(e.objectFlags&16777216||(e.objectFlags|=16777216|(F(p_(e),Cee)?33554432:0)),e.objectFlags&33554432?V:e):e}function See(e){let t=te(e.types,Hv);if(t===e.types)return e;let n=AC(t);return n.flags&1048576&&(n.resolvedReducedType=n),n}function Cee(e){return wee(e)||Tee(e)}function wee(e){return!(e.flags&16777216)&&(jx(e)&131264)==192&&!!(Jf(e).flags&131072)}function Tee(e){return!e.valueDeclaration&&!!(jx(e)&1024)}function Uv(e){return!!(e.flags&1048576&&e.objectFlags&16777216&&F(e.types,Uv)||e.flags&2097152&&Eee(e))}function Eee(e){let t=e.uniqueLiteralFilledInstantiation||=dD(e,Fn);return Hv(t)!==t}function Gv(e,t){if(t.flags&2097152&&Wx(t)&33554432){let n=y(p_(t),wee);if(n)return SS(e,G.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Yl(t,void 0,536870912),Hl(n));let r=y(p_(t),Tee);if(r)return SS(e,G.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Yl(t,void 0,536870912),Hl(r))}return e}function Kv(e,t,n,r){if(e=Iv(e),e.flags&524288){let i=u_(e),a=i.members.get(t);if(a&&!r&&e.symbol?.flags&512&&wo(e.symbol).typeOnlyExportStarMap?.has(t))return;if(a&&zc(a,r))return a;if(n)return;let o=i===qn?wr:i.callSignatures.length?Tr:i.constructSignatures.length?Er:void 0;if(o){let e=f_(o,t);if(e)return e}return f_(Cr,t)}if(e.flags&2097152)return Vv(e,t,!0)||(n?void 0:Vv(e,t,n));if(e.flags&1048576)return Vv(e,t,n)}function qv(e,t){if(e.flags&3670016){let n=u_(e);return t===0?n.callSignatures:n.constructSignatures}return c}function Jv(e,t){let n=qv(Iv(e),t);if(t===0&&!u(n)&&e.flags&1048576){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(wP(e,e=>!!e.symbol?.parent&&Dee(e.symbol.parent)&&(r?r===e.symbol.escapedName:(r=e.symbol.escapedName,!0))))return e.arrayFallbackSignatures=Jv(Wu(PS(AP(e,e=>NE((Oee(e.symbol.parent)?Or:Dr).typeParameters[0],e.mapper)),CP(e,e=>Oee(e.symbol.parent))),r),t);e.arrayFallbackSignatures=n}return n}function Dee(e){return!e||!Dr.symbol||!Or.symbol?!1:!!Lc(e,Dr.symbol)||!!Lc(e,Or.symbol)}function Oee(e){return!e||!Or.symbol?!1:!!Lc(e,Or.symbol)}function Yv(e,t){return y(e,e=>e.keyType===t)}function Xv(e,t){let n,r,i;for(let a of e)a.keyType===rn?n=a:Qv(t,a.keyType)&&(r?(i||=[r]).push(a):r=a);return i?xb(Yt,HC(k(i,e=>e.type)),Ge(i,(e,t)=>e&&t.isReadonly,!0)):r||(n&&Qv(t,rn)?n:void 0)}function Qv(e,t){return MD(e,t)||t===rn&&MD(e,on)||t===on&&(e===jn||!!(e.flags&128)&&cT(e.value))}function ey(e){return e.flags&3670016?u_(e).indexInfos:c}function ty(e){return ey(Iv(e))}function ny(e,t){return Yv(ty(e),t)}function ay(e,t){return ny(e,t)?.type}function sy(e,t){return ty(e).filter(e=>Qv(t,e.keyType))}function cy(e,t){return Xv(ty(e),t)}function ly(e,t){return cy(e,Cm(t)?gn:hE(Wc(t)))}function uy(e){let t;for(let n of Rl(e))t=Oe(t,Hp(n.symbol));return t?.length?t:SA(e)?Sy(e)?.typeParameters:void 0}function dy(e){let t=[];return e.forEach((e,n)=>{ol(n)||t.push(e)}),t}function fy(e,t){if(tc(e))return;let n=Eo(Ve,`"`+e+`"`,512);return n&&t?Cc(n):n}function py(e){return $g(e)||mT(e)||FO(e)&&_T(e)}function my(e){if(py(e))return!0;if(!FO(e))return!1;if(e.initializer){let t=by(e.parent),n=e.parent.parameters.indexOf(e);return H.assert(n>=0),n>=fV(t,3)}let t=jh(e.parent);return t?!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=Fz(t).length:!1}function hy(e){return RO(e)&&!ib(e)&&e.questionToken}function gy(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function _y(e){let t=0;if(e)for(let n=0;n=n&&a<=i){let n=e?e.slice():[];for(let e=a;e!!kl(e))&&!kl(e)&&!mL(e)&&(r|=32);for(let t=l?1:0;tc.arguments.length&&!d||(i=n.length)}if((e.kind===178||e.kind===179)&&Fm(e)&&(!s||!a)){let t=e.kind===178?179:178,n=xf(wc(e),t);n&&(a=Of(n))}o&&o.typeExpression&&(a=mM(lo(1,`this`),DE(o.typeExpression)));let u=Fj(e)?v_(e):e,d=u&&HO(u)?Mp(Cc(u.parent.symbol)):void 0,f=d?d.localTypeParameters:uy(e);(ff(e)||ng(e)&&xy(e,n))&&(r|=1),(ZO(e)&&Qy(e,64)||HO(e)&&Qy(e.parent,64))&&(r|=4),t.resolvedSignature=Xm(e,f,a,n,void 0,void 0,i,r)}return t.resolvedSignature}function xy(e,t){if(Fj(e)||!Ty(e))return!1;let n=Re(e.parameters),r=p(n?il(n):Ml(e).filter(Yj),e=>e.typeExpression&&jj(e.typeExpression.type)?e.typeExpression.type:void 0),i=lo(3,`args`,32768);return r?i.links.type=PS(DE(r.type)):(i.links.checkFlags|=65536,i.links.deferralParent=V,i.links.deferralConstituents=[Fr],i.links.deferralWriteConstituents=[Fr]),r&&t.pop(),t.push(i),!0}function Sy(e){if(!(ng(e)&&Nu(e)))return;let t=Ol(e);return t?.typeExpression&&bz(DE(t.typeExpression))}function Cy(e,t){let n=Sy(e);if(!n)return;let r=e.parameters.indexOf(t);return t.dotDotDotToken?lV(n,r):sV(n,r)}function wy(e){let t=Sy(e);return t&&Uy(t)}function Ty(e){let t=To(e);return t.containsArgumentsReference===void 0&&(t.flags&512?t.containsArgumentsReference=!0:t.containsArgumentsReference=n(e.body)),t.containsArgumentsReference;function n(e){if(!e)return!1;switch(e.kind){case 80:return e.escapedText===Ke.escapedName&&RJ(e)===Ke;case 173:case 175:case 178:case 179:return e.name.kind===168&&n(e.name);case 212:case 213:return n(e.expression);case 304:return n(e.initializer);default:return!Ov(e)&&!eh(e)&&!!pP(e,n)}}}function Ey(e){if(!e||!e.declarations)return c;let t=[];for(let n=0;n0&&r.body){let t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(ng(r)&&r.jsDoc){let e=g_(r);if(u(e)){for(let n of e){let e=n.typeExpression;e.type===void 0&&!HO(r)&&EM(e,Vt),t.push(by(e))}continue}}t.push(!oT(r)&&!mh(r)&&Sy(r)||by(r))}}return t}function ky(e){let t=$s(e,e);if(t){let e=ic(t);if(e)return Jf(e)}return Vt}function Fy(e){if(e.thisParameter)return Jf(e.thisParameter)}function Iy(e){if(!e.resolvedTypePredicate){if(e.target){let t=Iy(e.target);e.resolvedTypePredicate=t?qE(t,e.mapper):nr}else if(e.compositeSignatures)e.resolvedTypePredicate=MC(e.compositeSignatures,e.compositeKind)||nr;else{let t=e.declaration&&zy(e.declaration),n;if(!t){let t=Sy(e.declaration);t&&e!==t&&(n=Iy(t))}if(t||n)e.resolvedTypePredicate=t&&JO(t)?Ry(t,e):n||nr;else if(e.declaration&&Nu(e.declaration)&&(!e.resolvedReturnType||e.resolvedReturnType.flags&16)&&dV(e)>0){let{declaration:t}=e;e.resolvedTypePredicate=nr,e.resolvedTypePredicate=$ne(t)||nr}else e.resolvedTypePredicate=nr}H.assert(!!e.resolvedTypePredicate)}return e.resolvedTypePredicate===nr?void 0:e.resolvedTypePredicate}function Ry(e,t){let n=e.parameterName,r=e.type&&DE(e.type);return n.kind===198?gy(e.assertsModifier?2:0,void 0,void 0,r):gy(e.assertsModifier?3:1,n.escapedText,x(t.parameters,e=>e.escapedName===n.escapedText),r)}function Vy(e,t,n){return t===2097152?HC(e):AC(e,n)}function Uy(e){if(!e.resolvedReturnType){if(!Tu(e,3))return Gt;let t=e.target?dD(Uy(e.target),e.mapper):e.compositeSignatures?dD(Vy(k(e.compositeSignatures,Uy),e.compositeKind,2),e.mapper):Wy(e.declaration)||(rp(e.declaration.body)?Vt:BV(e.declaration));if(e.flags&8?t=tM(t):e.flags&16&&(t=Jj(t)),!Fu()){if(e.declaration){let t=zy(e.declaration);if(t)U(t,G.Return_type_annotation_circularly_references_itself);else if(ye){let t=e.declaration,n=el(t);n?U(n,G._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,lm(n)):U(t,G.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)}}t=Vt}e.resolvedReturnType??=t}return e.resolvedReturnType}function Wy(e){if(e.kind===177)return Mp(Cc(e.parent.symbol));let t=zy(e);if(Fj(e)){let n=b_(e);if(n&&HO(n.parent)&&!t)return Mp(Cc(n.parent.parent.symbol))}if(e_(e))return DE(e.parameters[0].type);if(t)return DE(t);if(e.kind===178&&Fm(e)){let t=ng(e)&&hd(e);if(t)return t;let n=Df(xf(wc(e),179));if(n)return n}return wy(e)}function Gy(e){return e.compositeSignatures&&F(e.compositeSignatures,Gy)||!e.resolvedReturnType&&Eu(e,3)>=0}function kee(e){return Ky(e)||Vt}function Ky(e){if(xB(e)){let t=Jf(e.parameters[e.parameters.length-1]),n=Ej(t)?Nj(t):t;return n&&ay(n,on)}}function qy(e,t,n,r){let i=Jy(e,vy(t,e.typeParameters,_y(e.typeParameters),n));if(r){let e=xz(Uy(i));if(e){let t=Zm(e);t.typeParameters=r;let n=hb(t);n.mapper=i.mapper;let a=Zm(i);return a.resolvedReturnType=n,a}}return i}function Jy(e,t){let n=e.instantiations||=new Map,r=Kb(t),i=n.get(r);return i||n.set(r,i=Yy(e,t)),i}function Yy(e,t){return JE(e,lb(e,t),!0)}function cb(e){return te(e.typeParameters,e=>e.mapper?dD(e,e.mapper):e)}function lb(e,t){return ME(cb(e),t)}function db(e){return e.typeParameters?e.erasedSignatureCache||=fb(e):e}function fb(e){return JE(e,RE(e.typeParameters),!0)}function pb(e){return e.typeParameters?e.canonicalSignatureCache||=jee(e):e}function jee(e){return qy(e,k(e.typeParameters,e=>e.target&&!A_(e.target)?e.target:e),ng(e.declaration))}function mb(e){let t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;let n=RE(t),r=ME(t,k(t,e=>A_(e)||Yt)),i=k(t,e=>dD(e,r)||Yt);for(let e=0;e{Db(e)&&!Yv(n,e)&&n.push(xb(e,t.type?DE(t.type):Vt,Zy(t,8),t))})}}else if(Pm(t)){let e=Rk(t)?t.left:t.name,u=wk(e)?RH(e.argumentExpression):TL(e);if(Yv(n,u))continue;MD(u,On)&&(MD(u,on)?(r=!0,ab(t)||(i=!1)):MD(u,gn)?(a=!0,ab(t)||(o=!1)):(s=!0,ab(t)||(c=!1)),l.push(t.symbol))}let u=de(l,E(t,t=>t!==e));return s&&!Yv(n,rn)&&n.push(DL(c,0,u,rn)),r&&!Yv(n,on)&&n.push(DL(i,0,u,on)),a&&!Yv(n,gn)&&n.push(DL(o,0,u,gn)),n}return c}function Db(e){return!!(e.flags&4108)||Mw(e)||!!(e.flags&2097152)&&!Lw(e)&&F(e.types,Db)}function Ab(e){return M(E(e.symbol&&e.symbol.declarations,PO),zl)[0]}function Ub(e,t){let n;if(e.symbol?.declarations){for(let r of e.symbol.declarations)if(r.parent.kind===196){let[i=r.parent,a]=N_(r.parent.parent);if(a.kind===184&&!t){let t=a,r=AU(t);if(r){let a=t.typeArguments.indexOf(i);if(a()=>EU(t,r,n))));a!==e&&(n=I(n,a))}}}}else if(a.kind===170&&a.dotDotDotToken||a.kind===192||a.kind===203&&a.dotDotDotToken)n=I(n,PS(Yt));else if(a.kind===205)n=I(n,rn);else if(a.kind===169&&a.parent.kind===201)n=I(n,On);else if(a.kind===201&&a.type&&F_(a.type)===r.parent&&a.parent.kind===195&&a.parent.extendsType===a&&a.parent.checkType.kind===201&&a.parent.checkType.type){let e=a.parent.checkType,t=DE(e.type);n=I(n,dD(t,PE(Hp(wc(e.typeParameter)),e.typeParameter.constraint?DE(e.typeParameter.constraint):On)))}}}return n&&HC(n)}function Wb(e){if(!e.constraint)if(e.target){let t=A_(e.target);e.constraint=t?dD(t,e.mapper):Jn}else{let t=Ab(e);if(!t)e.constraint=Ub(e)||Jn;else{let n=DE(t);n.flags&1&&!Yu(n)&&(n=t.parent.parent.kind===201?On:Yt),e.constraint=n}}return e.constraint===Jn?void 0:e.constraint}function Gb(e){let t=xf(e.symbol,169),n=$j(t.parent)?h_(t.parent):t.parent;return n&&Tc(n)}function Kb(e){let t=``;if(e){let n=e.length,r=0;for(;r1&&(t+=`:`+a),r+=a}}return t}function Jb(e,t){return e?`@${hB(e)}`+(t?`:${Kb(t)}`:``):``}function Yb(e,t){let n=0;for(let r of e)(t===void 0||!(r.flags&t))&&(n|=Wx(r));return n&458752}function Xb(e,t){return F(t)&&e===Kn?Yt:Zb(e,t)}function Zb(e,t){let n=Kb(t),r=e.instantiations.get(n);return r||(r=tl(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?Yb(t):0,r.target=e,r.resolvedTypeArguments=t),r}function Qb(e){let t=Jc(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function $b(e,t,n,r,i){if(!r){r=tE(t);let e=nE(r);i=n?AE(e,n):e}let a=tl(4,e.symbol);return a.target=e,a.node=t,a.mapper=n,a.aliasSymbol=r,a.aliasTypeArguments=i,a}function ex(e){if(!e.resolvedTypeArguments){if(!Tu(e,5))return de(e.target.outerTypeParameters,e.target.localTypeParameters?.map(()=>Gt))||c;let t=e.node,n=t?t.kind===184?de(e.target.outerTypeParameters,DU(t,e.target.localTypeParameters)):t.kind===189?[DE(t.elementType)]:k(t.elements,DE):c;Fu()?e.resolvedTypeArguments??=e.mapper?AE(n,e.mapper):n:(e.resolvedTypeArguments??=de(e.target.outerTypeParameters,e.target.localTypeParameters?.map(()=>Gt)||c),U(e.node||w,e.target.symbol?G.Type_arguments_for_0_circularly_reference_themselves:G.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&Hl(e.target.symbol)))}return e.resolvedTypeArguments}function tx(e){return u(e.target.typeParameters)}function nx(e,t){let n=Kp(Cc(t)),r=n.localTypeParameters;if(r){let t=u(e.typeArguments),i=_y(r),a=ng(e);if(!(!ye&&a)&&(tr.length)){let t=a&&Gk(e)&&!Ij(e.parent);if(U(e,i===r.length?t?G.Expected_0_type_arguments_provide_these_with_an_extends_tag:G.Generic_type_0_requires_1_type_argument_s:t?G.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:G.Generic_type_0_requires_between_1_and_2_type_arguments,Yl(n,void 0,2),i,r.length),!a)return Gt}return e.kind===184&&RS(e,u(e.typeArguments)!==r.length)?$b(n,e,void 0):Zb(n,de(n.outerTypeParameters,vy(Tx(e),r,i,a)))}return xx(e,t)?n:Gt}function rx(e,t,n,r){let i=Kp(e);if(i===Jt){let n=pB.get(e.escapedName);if(n!==void 0&&t&&t.length===1)return n===4?dx(t[0]):pw(e,t[0])}let a=wo(e),o=a.typeParameters,s=Kb(t)+Jb(n,r),c=a.instantiations.get(s);return c||a.instantiations.set(s,c=fD(i,ME(o,vy(t,o,_y(o),ng(e.valueDeclaration))),n,r)),c}function Mee(e,t){if(jx(t)&1048576){let n=Tx(e),r=Jb(t,n),i=zt.get(r);return i||(i=Zc(1,`error`,void 0,`alias ${r}`),i.aliasSymbol=t,i.aliasTypeArguments=n,zt.set(r,i)),i}let n=Kp(t),r=wo(t).typeParameters;if(r){let n=u(e.typeArguments),i=_y(r);if(nr.length)return U(e,i===r.length?G.Generic_type_0_requires_1_type_argument_s:G.Generic_type_0_requires_between_1_and_2_type_arguments,Hl(t),i,r.length),Gt;let a=tE(e),o=a&&(ix(t)||!ix(a))?a:void 0,s;if(o)s=nE(o);else if(sf(e)){let t=cx(e,2097152,!0);if(t&&t!==Ft){let n=Is(t);n&&n.flags&524288&&(o=n,s=Tx(e)||(r?[]:void 0))}}return rx(t,Tx(e),o,s)}return xx(e,t)?n:Gt}function ix(e){let t=e.declarations?.find(n_);return!!(t&&bh(t))}function ax(e){switch(e.kind){case 184:return e.typeName;case 234:let t=e.expression;if(Mb(t))return t}}function ox(e){return e.parent?`${ox(e.parent)}.${e.escapedName}`:e.escapedName}function sx(e){let t=(e.kind===167?e.right:e.kind===212?e.name:e).escapedText;if(t){let n=e.kind===167?sx(e.left):e.kind===212?sx(e.expression):void 0,r=n?`${ox(n)}.${t}`:t,i=Rt.get(r);return i||(Rt.set(r,i=lo(524288,t,1048576)),i.parent=n,i.links.declaredType=Kt),i}return Ft}function cx(e,t,n){let r=ax(e);if(!r)return Ft;let i=Js(r,t,n);return i&&i!==Ft?i:n?Ft:sx(r)}function lx(e,t){if(t===Ft)return Gt;if(t=Qs(t)||t,t.flags&96)return nx(e,t);if(t.flags&524288)return Mee(e,t);let n=Jp(t);return n?xx(e,t)?pE(n):Gt:t.flags&111551&&bx(e)?ux(e,t)||(cx(e,788968),Jf(t)):Gt}function ux(e,t){let n=To(e);if(!n.resolvedJSDocType){let r=Jf(t),i=r;if(t.valueDeclaration){let n=e.kind===206&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=lx(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}function dx(e){return fx(e)?hx(e,Yt):e}function fx(e){return!!(e.flags&3145728&&F(e.types,fx)||e.flags&33554432&&!px(e)&&fx(e.baseType)||e.flags&524288&&!nO(e)||e.flags&432275456&&!Mw(e))}function px(e){return!!(e.flags&33554432&&e.constraint.flags&2)}function mx(e,t){return t.flags&3||t===e||e.flags&1?e:hx(e,t)}function hx(e,t){let n=`${yC(e)}>${yC(t)}`,r=Dt.get(n);if(r)return r;let i=Vc(33554432);return i.baseType=e,i.constraint=t,Dt.set(n,i),i}function gx(e){return px(e)?e.baseType:HC([e.constraint,e.baseType])}function _x(e){return e.kind===190&&e.elements.length===1}function vx(e,t,n){return _x(t)&&_x(n)?vx(e,t.elements[0],n.elements[0]):NT(DE(t))===NT(e)?DE(n):void 0}function yx(e,t){let n,r=!0;for(;t&&!Bd(t)&&t.kind!==321;){let i=t.parent;if(i.kind===170&&(r=!r),(r||e.flags&8650752)&&i.kind===195&&t===i.trueType){let t=vx(e,i.checkType,i.extendsType);t&&(n=I(n,t))}else if(e.flags&262144&&i.kind===201&&!i.nameType&&t===i.type){let t=DE(i);if(Pg(t)===NT(e)){let e=$E(t);if(e){let t=A_(e);t&&wP(t,_A)&&(n=I(n,AC([on,jn])))}}}t=i}return n?mx(e,HC(n)):e}function bx(e){return!!(e.flags&16777216)&&(e.kind===184||e.kind===206)}function xx(e,t){return e.typeArguments?(U(e,G.Type_0_is_not_generic,t?Hl(t):e.typeName?lm(e.typeName):oB),!1):!0}function Sx(e){if(Y(e.typeName)){let t=e.typeArguments;switch(e.typeName.escapedText){case`String`:return xx(e),rn;case`Number`:return xx(e),on;case`BigInt`:return xx(e),sn;case`Boolean`:return xx(e),hn;case`Void`:return xx(e),bn;case`Undefined`:return xx(e),Xt;case`Null`:return xx(e),tn;case`Function`:case`function`:return xx(e),wr;case`array`:return(!t||!t.length)&&!ye?Fr:void 0;case`promise`:return(!t||!t.length)&&!ye?IV(Vt):void 0;case`Object`:if(t&&t.length===2){if(og(e)){let e=DE(t[0]),n=DE(t[1]);return pl(void 0,ie,c,c,e===rn||e===on?[xb(e,n,!1)]:c)}return Vt}return xx(e),ye?void 0:Vt}}}function Cx(e){let t=DE(e.type);return fe?qj(t,65536):t}function wx(e){let t=To(e);if(!t.resolvedType){if(Xl(e)&&yd(e.parent))return t.resolvedSymbol=Ft,t.resolvedType=RH(e.parent.expression);let n,r,i=788968;bx(e)&&(r=Sx(e),r||=(n=cx(e,i,!0),n===Ft?n=cx(e,i|111551):cx(e,i),lx(e,n))),r||=(n=cx(e,i),lx(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function Tx(e){return k(e.typeArguments,DE)}function Nee(e){let t=To(e);return t.resolvedType||=pE(CM(qB(e))),t.resolvedType}function Ex(e,t){function n(e){let t=e.declarations;if(t)for(let e of t)switch(e.kind){case 264:case 265:case 267:return e}}if(!e)return t?Kn:zn;let r=Kp(e);return r.flags&524288?u(r.typeParameters)===t?r:(U(n(e),G.Global_type_0_must_have_1_type_parameter_s,qc(e),t),t?Kn:zn):(U(n(e),G.Global_type_0_must_be_a_class_or_interface_type,qc(e)),t?Kn:zn)}function Dx(e,t){return Ax(e,111551,t?G.Cannot_find_global_value_0:void 0)}function Ox(e,t){return Ax(e,788968,t?G.Cannot_find_global_type_0:void 0)}function kx(e,t,n){let r=Ax(e,788968,n?G.Cannot_find_global_type_0:void 0);if(r&&(Kp(r),u(wo(r).typeParameters)!==t)){U(r.declarations&&y(r.declarations,TA),G.Global_type_0_must_have_1_type_parameter_s,qc(r),t);return}return r}function Ax(e,t,n){return rt(void 0,e,t,n,!1,!1)}function Nx(e,t,n){let r=Ox(e,n);return r||n?Ex(r,t):void 0}function Lx(e,t){let n;for(let r of e)n=I(n,Nx(r,t,!1));return n??c}function Pee(){return Hr||=Nx(`TypedPropertyDescriptor`,1,!0)||Kn}function Rx(){return si||=Nx(`TemplateStringsArray`,0,!0)||zn}function zx(){return ci||=Nx(`ImportMeta`,0,!0)||zn}function Bx(){if(!li){let e=lo(0,`ImportMetaExpression`),t=zx(),n=lo(4,`meta`,8);n.parent=e,n.links.type=t;let r=Cf([n]);e.members=r,li=pl(e,r,c,c,c)}return li}function Vx(e){return(ui||=Nx(`ImportCallOptions`,0,e))||zn}function Hx(e){return(di||=Nx(`ImportAttributes`,0,e))||zn}function Kx(e){return zr||=Dx(`Symbol`,e)}function qx(e){return Br||=Ox(`SymbolConstructor`,e)}function Jx(){return(Vr||=Nx(`Symbol`,0,!1))||zn}function Yx(e){return(Ur||=Nx(`Promise`,1,e))||Kn}function Qx(e){return(Wr||=Nx(`PromiseLike`,1,e))||Kn}function $x(e){return Gr||=Dx(`Promise`,e)}function tS(e){return(Kr||=Nx(`PromiseConstructorLike`,0,e))||zn}function nS(e){return(ei||=Nx(`AsyncIterable`,3,e))||Kn}function Fee(e){return(ti||=Nx(`AsyncIterator`,3,e))||Kn}function rS(e){return(ni||=Nx(`AsyncIterableIterator`,3,e))||Kn}function Iee(){return ii??=Lx([`ReadableStreamAsyncIterator`],1)}function iS(e){return(ai||=Nx(`AsyncIteratorObject`,3,e))||Kn}function Lee(e){return(oi||=Nx(`AsyncGenerator`,3,e))||Kn}function aS(e){return(qr||=Nx(`Iterable`,3,e))||Kn}function Ree(e){return(Jr||=Nx(`Iterator`,3,e))||Kn}function sS(e){return(Yr||=Nx(`IterableIterator`,3,e))||Kn}function cS(){return ve?Xt:Vt}function lS(){return ri??=Lx([`ArrayIterator`,`MapIterator`,`SetIterator`,`StringIterator`],1)}function uS(e){return(Xr||=Nx(`IteratorObject`,3,e))||Kn}function dS(e){return(Zr||=Nx(`Generator`,3,e))||Kn}function fS(e){return(Qr||=Nx(`IteratorYieldResult`,1,e))||Kn}function pS(e){return($r||=Nx(`IteratorReturnResult`,1,e))||Kn}function mS(e){return(fi||=Nx(`Disposable`,0,e))||zn}function zee(e){return(pi||=Nx(`AsyncDisposable`,0,e))||zn}function gS(e,t=0){let n=Ax(e,788968,void 0);return n&&Ex(n,t)}function _S(){return mi||=kx(`Extract`,2,!0)||Ft,mi===Ft?void 0:mi}function xS(){return hi||=kx(`Omit`,2,!0)||Ft,hi===Ft?void 0:hi}function wS(e){return gi||=kx(`Awaited`,1,e)||(e?Ft:void 0),gi===Ft?void 0:gi}function ES(){return(_i||=Nx(`BigInt`,0,!1))||zn}function Bee(e){return(bi??=Nx(`ClassDecoratorContext`,1,e))??Kn}function Vee(e){return(xi??=Nx(`ClassMethodDecoratorContext`,2,e))??Kn}function Hee(e){return(Si??=Nx(`ClassGetterDecoratorContext`,2,e))??Kn}function DS(e){return(Ci??=Nx(`ClassSetterDecoratorContext`,2,e))??Kn}function OS(e){return(wi??=Nx(`ClassAccessorDecoratorContext`,2,e))??Kn}function kS(e){return(Ti??=Nx(`ClassAccessorDecoratorTarget`,2,e))??Kn}function AS(e){return(Ei??=Nx(`ClassAccessorDecoratorResult`,2,e))??Kn}function jS(e){return(Di??=Nx(`ClassFieldDecoratorContext`,2,e))??Kn}function Uee(){return vi||=Dx(`NaN`,!1)}function MS(){return yi||=kx(`Record`,2,!0)||Ft,yi===Ft?void 0:yi}function NS(e,t){return e===Kn?zn:Zb(e,t)}function Wee(e){return NS(Pee(),[e])}function Gee(e){return NS(aS(!0),[e,bn,Xt])}function PS(e,t){return NS(t?Or:Dr,[e])}function FS(e){switch(e.kind){case 191:return 2;case 192:return Kee(e);case 203:return e.questionToken?2:e.dotDotDotToken?Kee(e):1;default:return 1}}function Kee(e){return TE(e.type)?4:8}function IS(e){let t=ZS(e.parent);return TE(e)?t?Or:Dr:$S(k(e.elements,FS),t,k(e.elements,LS))}function LS(e){return nk(e)||FO(e)?e:void 0}function RS(e,t){return!!tE(e)||HS(e)&&(e.kind===189?KS(e.elementType):e.kind===190?F(e.elements,KS):t||F(e.typeArguments,KS))}function HS(e){let t=e.parent;switch(t.kind){case 197:case 203:case 184:case 193:case 194:case 200:case 195:case 199:case 189:case 190:return HS(t);case 266:return!0}return!1}function KS(e){switch(e.kind){case 184:return bx(e)||!!(cx(e,788968).flags&524288);case 187:return!0;case 199:return e.operator!==158&&KS(e.type);case 197:case 191:case 203:case 317:case 315:case 316:case 310:return KS(e.type);case 192:return e.type.kind!==189||KS(e.type.elementType);case 193:case 194:return F(e.types,KS);case 200:return KS(e.objectType)||KS(e.indexType);case 195:return KS(e.checkType)||KS(e.extendsType)||KS(e.trueType)||KS(e.falseType)}return!1}function qS(e){let t=To(e);if(!t.resolvedType){let n=IS(e);n===Kn?t.resolvedType=zn:!(e.kind===190&&F(e.elements,e=>!!(FS(e)&8)))&&RS(e)?t.resolvedType=e.kind===190&&e.elements.length===0?n:$b(n,e,void 0):t.resolvedType=iC(n,e.kind===189?[DE(e.elementType)]:k(e.elements,DE))}return t.resolvedType}function ZS(e){return dk(e)&&e.operator===148}function QS(e,t,n=!1,r=[]){let i=$S(t||k(e,e=>1),n,r);return i===Kn?zn:e.length?iC(i,e):i}function $S(e,t,n){if(e.length===1&&e[0]&4)return t?Or:Dr;let r=k(e,e=>e&1?`#`:e&2?`?`:e&4?`.`:`*`).join()+(t?`R`:``)+(F(n,e=>!!e)?`,`+k(n,e=>e?mB(e):`_`).join(`,`):``),i=ft.get(r);return i||ft.set(r,i=rC(e,t,n)),i}function rC(e,t,n){let r=e.length,i=T(e,e=>!!(e&9)),a,o=[],s=0;if(r){a=Array(r);for(let i=0;i!!(e.elementFlags[n]&8&&t.flags&1179648));if(n>=0)return WC(k(t,(t,n)=>e.elementFlags[n]&8?t:Yt))?AP(t[n],r=>aC(e,Ue(t,n,r))):Gt}let n=[],r=[],i=[],a=-1,o=-1,s=-1;for(let r=0;r=1e4)return U(w,eh(w)?G.Type_produces_a_tuple_type_that_is_too_large_to_represent:G.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Gt;d(e,(e,t)=>l(e,i.target.elementFlags[t],i.target.labeledElementDeclarations?.[t]))}else l(kA(i)&&ay(i,on)||Gt,4,e.labeledElementDeclarations?.[r]);else l(i,a,e.labeledElementDeclarations?.[r])}for(let e=0;e=0&&or[o+t]&8?sT(e,on):e)),n.splice(o+1,s-o),r.splice(o+1,s-o),i.splice(o+1,s-o));let c=$S(r,e.readonly,i);return c===Kn?zn:r.length?Zb(c,n):c;function l(e,t,c){t&1&&(a=r.length),t&4&&o<0&&(o=r.length),t&6&&(s=r.length),n.push(t&2?vd(e,!0):e),r.push(t),i.push(c)}}function cC(e,t,n=0){let r=e.target,i=tx(e)-n;return t>r.fixedLength?Rj(e)||QS(c):QS(ex(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function uC(e){return AC(I(Qe(e.target.fixedLength,e=>hE(``+e)),iw(e.target.readonly?Or:Dr)))}function dC(e,t){let n=x(e.elementFlags,e=>!(e&t));return n>=0?n:e.elementFlags.length}function fC(e,t){return e.elementFlags.length-S(e.elementFlags,e=>!(e&t))-1}function pC(e){return e.fixedLength+fC(e,3)}function _C(e){let t=ex(e),n=tx(e);return t.length===n?t:t.slice(0,n)}function vC(e){return vd(DE(e.type),!0)}function yC(e){return e.id}function bC(e,t){return We(e,t,yC,It)>=0}function xC(e,t){let n=We(e,t,yC,It);return n<0?(e.splice(~n,0,t),!0):!1}function SC(e,t,n){let r=n.flags;if(!(r&131072))if(t|=r&473694207,r&465829888&&(t|=33554432),r&2097152&&Wx(n)&67108864&&(t|=536870912),n===Ut&&(t|=8388608),Yu(n)&&(t|=1073741824),!fe&&r&98304)Wx(n)&65536||(t|=4194304);else{let t=e.length,r=t&&n.id>e[t-1].id?~t:We(e,n,yC,It);r<0&&e.splice(~r,0,n)}return t}function CC(e,t,n){let r;for(let i of n)i!==r&&(t=i.flags&1048576?CC(e,t|(DC(i)?1048576:0),i.types):SC(e,t,i),r=i);return t}function wC(e,t){var n;if(e.length<2)return e;let r=Kb(e),i=Ot.get(r);if(i)return i;let a=t&&F(e,e=>!!(e.flags&524288)&&!a_(e)&&ZD(u_(e))),o=e.length,s=o,c=0;for(;s>0;){s--;let t=e[s];if(a||t.flags&469499904){if(t.flags&262144&&sv(t).flags&1048576){lO(t,AC(k(e,e=>e===t?V:e)),Ma)&&an(e,s);continue}let r=t.flags&61603840?y(S_(t),e=>YA(Jf(e))):void 0,i=r&&pE(Jf(r));for(let a of e)if(t!==a){if(c===1e5&&c/(o-s)*o>1e6){(n=Ar)==null||n.instant(Ar.Phase.CheckTypes,`removeSubtypes_DepthLimit`,{typeIds:e.map(e=>e.id)}),U(w,G.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(c++,r&&a.flags&61603840){let e=Wu(a,r.escapedName);if(e&&YA(e)&&pE(e)!==i)continue}if(lO(t,a,Ma)&&(!(Wx(np(t))&1)||!(Wx(np(a))&1)||ND(t,a))){an(e,s);break}}}}return Ot.set(r,e),e}function qee(e,t,n){let r=e.length;for(;r>0;){r--;let i=e[r],a=i.flags;(a&402653312&&t&4||a&256&&t&8||a&2048&&t&64||a&8192&&t&4096||n&&a&32768&&t&16384||mE(i)&&bC(e,i.regularType))&&an(e,r)}}function Jee(e){let t=E(e,Mw);if(t.length){let n=e.length;for(;n>0;){n--;let r=e[n];r.flags&128&&F(t,e=>TC(r,e))&&an(e,n)}}}function TC(e,t){return t.flags&134217728?_N(e,t):mN(e,t)}function EC(e){let t=[];for(let n of e)if(n.flags&2097152&&Wx(n)&67108864){let e=n.types[0].flags&8650752?0:1;De(t,n.types[e])}for(let n of t){let t=[];for(let r of e)if(r.flags&2097152&&Wx(r)&67108864){let e=r.types[0].flags&8650752?0:1;r.types[e]===n&&xC(t,r.types[1-e])}if(wP(ov(n),e=>bC(t,e))){let r=e.length;for(;r>0;){r--;let i=e[r];if(i.flags&2097152&&Wx(i)&67108864){let a=i.types[0].flags&8650752?0:1;i.types[a]===n&&bC(t,i.types[1-a])&&an(e,r)}}xC(e,n)}}}function DC(e){return!!(e.flags&1048576&&(e.aliasSymbol||e.origin))}function OC(e,t){for(let n of t)if(n.flags&1048576){let t=n.origin;n.aliasSymbol||t&&!(t.flags&1048576)?De(e,n):t&&t.flags&1048576&&OC(e,t.types)}}function kC(e,t){let n=Yc(e);return n.types=t,n}function AC(e,t=1,n,r,i){if(e.length===0)return V;if(e.length===1)return e[0];if(e.length===2&&!i&&(e[0].flags&1048576||e[1].flags&1048576)){let i=t===0?`N`:t===2?`S`:`L`,a=e[0].id=2&&a[0]===Xt&&a[1]===B&&an(a,1),(o&402664352||o&16384&&o&32768)&&qee(a,o,!!(t&2)),o&128&&o&402653184&&Jee(a),o&536870912&&EC(a),t===2&&(a=wC(a,!!(o&524288)),!a))return Gt;if(a.length===0)return o&65536?o&4194304?tn:nn:o&32768?o&4194304?Xt:Zt:V}if(!i&&o&1048576){let t=[];OC(t,e);let r=[];for(let e of a)F(t,t=>bC(t.types,e))||r.push(e);if(!n&&t.length===1&&r.length===0)return t[0];if(Ge(t,(e,t)=>e+t.types.length,0)+r.length===a.length){for(let e of t)xC(r,e);i=kC(1048576,r)}}let s=(o&36323331?0:32768)|(o&2097152?16777216:0);return PC(a,s,n,r,i)}function MC(e,t){let n,r=[];for(let i of e){let e=Iy(i);if(e){if(e.kind!==0&&e.kind!==1||n&&!NC(n,e))return;n=e,r.push(e.type)}else{let e=t===2097152?void 0:Uy(i);if(e!==cn&&e!==ln)return}}if(!n)return;let i=Vy(r,t);return gy(n.kind,n.parameterName,n.parameterIndex,i)}function NC(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function PC(e,t,n,r,i){if(e.length===0)return V;if(e.length===1)return e[0];let a=(i?i.flags&1048576?`|${Kb(i.types)}`:i.flags&2097152?`&${Kb(i.types)}`:`#${i.type.id}|${Kb(e)}`:Kb(e))+Jb(n,r),o=pt.get(a);return o||(o=Vc(1048576),o.objectFlags=t|Yb(e,98304),o.types=e,o.origin=i,o.aliasSymbol=n,o.aliasTypeArguments=r,e.length===2&&e[0].flags&512&&e[1].flags&512&&(o.flags|=16,o.intrinsicName=`boolean`),pt.set(a,o)),o}function FC(e){let t=To(e);if(!t.resolvedType){let n=tE(e);t.resolvedType=AC(k(e.types,DE),1,n,nE(n))}return t.resolvedType}function IC(e,t,n){let r=n.flags;return r&2097152?LC(e,t,n.types):(nO(n)?t&16777216||(t|=16777216,e.set(n.id.toString(),n)):(r&3?(n===Ut&&(t|=8388608),Yu(n)&&(t|=1073741824)):(fe||!(r&98304))&&(n===B&&(t|=262144,n=Xt),e.has(n.id.toString())||(n.flags&109472&&t&109472&&(t|=67108864),e.set(n.id.toString(),n))),t|=r&473694207),t)}function LC(e,t,n){for(let r of n)t=IC(e,t,pE(r));return t}function RC(e,t){let n=e.length;for(;n>0;){n--;let r=e[n];(r.flags&4&&t&402653312||r.flags&8&&t&256||r.flags&64&&t&2048||r.flags&4096&&t&8192||r.flags&16384&&t&32768||nO(r)&&t&470302716)&&an(e,n)}}function Yee(e,t){for(let n of e)if(!bC(n.types,t)){if(t===B)return bC(n.types,Xt);if(t===Xt)return bC(n.types,B);let e=t.flags&128?rn:t.flags&288?on:t.flags&2048?sn:t.flags&8192?gn:void 0;if(!e||!bC(n.types,e))return!1}return!0}function Xee(e){let t=e.length,n=E(e,e=>!!(e.flags&128));for(;t>0;){t--;let r=e[t];if(r.flags&402653184){for(let i of n)if(AD(i,r)){an(e,t);break}else if(Mw(r))return!0}}return!1}function zC(e,t){for(let n=0;n!(e.flags&t))}function BC(e){let t,n=x(e,e=>!!(Wx(e)&32768));if(n<0)return!1;let r=n+1;for(;r!!(e.flags&469893116)||nO(e))){if(jD(e,n))return t;if(!(e.flags&1048576&&CP(e,e=>jD(e,n)))&&!jD(n,e))return V;s=67108864}}}let c=Kb(o)+(t&2?`*`:Jb(n,r)),l=_t.get(c);if(!l){if(a&1048576)if(BC(o))l=HC(o,t,n,r);else if(v(o,e=>!!(e.flags&1048576&&e.types[0].flags&32768))){let e=F(o,lM)?B:Xt;zC(o,32768),l=AC([HC(o,t),e],1,n,r)}else if(v(o,e=>!!(e.flags&1048576&&(e.types[0].flags&65536||e.types[1].flags&65536))))zC(o,65536),l=AC([HC(o,t),tn],1,n,r);else if(o.length>=3&&e.length>2){let e=Math.floor(o.length/2);l=HC([HC(o.slice(0,e),t),HC(o.slice(e),t)],t,n,r)}else{if(!WC(o))return Gt;let e=GC(o,t);l=AC(e,1,n,r,F(e,e=>!!(e.flags&2097152))&&qC(e)>qC(o)?kC(2097152,o):void 0)}else l=VC(o,s,n,r);_t.set(c,l)}return l}function UC(e){return Ge(e,(e,t)=>t.flags&1048576?e*t.types.length:t.flags&131072?0:e,1)}function WC(e){var t;let n=UC(e);return n>=1e5?((t=Ar)==null||t.instant(Ar.Phase.CheckTypes,`checkCrossProductUnion_DepthLimit`,{typeIds:e.map(e=>e.id),size:n}),U(w,G.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function GC(e,t){let n=UC(e),r=[];for(let i=0;i=0;t--)if(e[t].flags&1048576){let r=e[t].types,i=r.length;n[t]=r[a%i],a=Math.floor(a/i)}let o=HC(n,t);o.flags&131072||r.push(o)}return r}function KC(e){return!(e.flags&3145728)||e.aliasSymbol?1:e.flags&1048576&&e.origin?KC(e.origin):qC(e.types)}function qC(e){return Ge(e,(e,t)=>e+KC(t),0)}function JC(e){let t=To(e);if(!t.resolvedType){let n=tE(e),r=k(e.types,DE),i=r.length===2?r.indexOf(Un):-1,a=i>=0?r[1-i]:Yt;t.resolvedType=HC(r,a.flags&76||a.flags&134217728&&Mw(a)?1:0,n,nE(n))}return t.resolvedType}function YC(e,t){let n=Vc(4194304);return n.type=e,n.indexFlags=t,n}function XC(e){let t=Yc(4194304);return t.type=e,t}function ZC(e,t){return t&1?e.resolvedStringIndexType||=YC(e,1):e.resolvedIndexType||=YC(e,0)}function QC(e,t){let n=Pg(e),r=Fg(e),i=Ig(e.target||e);if(!i&&!(t&2))return r;let a=[];if(Hw(r)){if(Kg(e))return ZC(e,t);SP(r,s)}else Kg(e)?kg(Fv(qg(e)),8576,!!(t&1),s):SP(Sg(r),s);let o=t&2?TP(AC(a),e=>!(e.flags&5)):AC(a);if(o.flags&1048576&&r.flags&1048576&&Kb(o.types)===Kb(r.types))return r;return o;function s(t){let r=i?dD(i,WE(e.mapper,n,t)):t;a.push(r===rn?Dn:r)}}function Zee(e){let t=Pg(e);return n(Ig(e)||t);function n(e){return e.flags&470810623?!0:e.flags&16777216?e.root.isDistributive&&e.checkType===t:e.flags&137363456?v(e.types,n):e.flags&8388608?n(e.objectType)&&n(e.indexType):e.flags&33554432?n(e.baseType)&&n(e.constraint):e.flags&268435456?n(e.type):!1}}function $C(e){if(vO(e))return V;if($D(e))return pE(cU(e));if(NO(e))return pE(TL(e));let t=mv(e);return t===void 0?q(e)?pE(cU(e)):V:hE(Wc(t))}function ew(e,t,n){if(n||!(Mx(e)&6)){let n=wo(Gm(e)).nameType;if(!n){let t=el(e.valueDeclaration);n=e.escapedName===`default`?hE(`default`):t&&$C(t)||(yv(e)?void 0:hE(qc(e)))}if(n&&n.flags&t)return n}return V}function tw(e,t){return!!(e.flags&t||e.flags&2097152&&F(e.types,e=>tw(e,t)))}function nw(e,t,n){let r=n&&(Wx(e)&7||e.aliasSymbol)?XC(e):void 0;return AC(de(k(S_(e),e=>ew(e,t)),k(ty(e),e=>e!==sr&&tw(e.keyType,t)?e.keyType===rn&&t&8?Dn:e.keyType:V)),1,void 0,void 0,r)}function rw(e,t=0){return!!(e.flags&58982400||kj(e)||a_(e)&&(!Zee(e)||s_(e)===2)||e.flags&1048576&&!(t&4)&&Uv(e)||e.flags&2097152&&lH(e,465829888)&&F(e.types,nO))}function iw(e,t=0){return e=Hv(e),px(e)?dx(iw(e.baseType,t)):rw(e,t)?ZC(e,t):e.flags&1048576?HC(k(e.types,e=>iw(e,t))):e.flags&2097152?AC(k(e.types,e=>iw(e,t))):Wx(e)&32?QC(e,t):e===Ut?Ut:e.flags&2?V:e.flags&131073?On:nw(e,(t&2?128:402653316)|(t&1?0:12584),t===0)}function aw(e){let t=_S();return t?rx(t,[e,rn]):rn}function ow(e){let t=aw(iw(e));return t.flags&131072?rn:t}function sw(e){let t=To(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=iw(DE(e.type));break;case 158:t.resolvedType=e.type.kind===155?xE(j_(e.parent)):Gt;break;case 148:t.resolvedType=DE(e.type);break;default:H.assertNever(e.operator)}return t.resolvedType}function cw(e){let t=To(e);return t.resolvedType||=lw([e.head.text,...k(e.templateSpans,e=>e.literal.text)],k(e.templateSpans,e=>DE(e.type))),t.resolvedType}function lw(e,t){let n=x(t,e=>!!(e.flags&1179648));if(n>=0)return WC(t)?AP(t[n],r=>lw(e,Ue(t,n,r))):Gt;if(C(t,Ut))return Ut;let r=[],i=[],a=e[0];if(!c(e,t))return rn;if(r.length===0)return hE(a);if(i.push(a),v(i,e=>e===``)){if(v(r,e=>!!(e.flags&4)))return rn;if(r.length===1&&Mw(r[0]))return r[0]}let o=`${Kb(r)}|${k(i,e=>e.length).join(`,`)}|${i.join(``)}`,s=Tt.get(o);return s||Tt.set(o,s=dw(i,r)),s;function c(e,t){for(let n=0;npw(e,t)):t.flags&128?hE(mw(e,t.value)):t.flags&134217728?lw(...hw(e,t.texts,t.types)):t.flags&268435456&&e===t.symbol?t:t.flags&268435461||Hw(t)?gw(e,t):jw(t)?gw(e,lw([``,``],[t])):t}function mw(e,t){switch(pB.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function hw(e,t,n){switch(pB.get(e.escapedName)){case 0:return[t.map(e=>e.toUpperCase()),n.map(t=>pw(e,t))];case 1:return[t.map(e=>e.toLowerCase()),n.map(t=>pw(e,t))];case 2:return[t[0]===``?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],t[0]===``?[pw(e,n[0]),...n.slice(1)]:n];case 3:return[t[0]===``?t:[t[0].charAt(0).toLowerCase()+t[0].slice(1),...t.slice(1)],t[0]===``?[pw(e,n[0]),...n.slice(1)]:n]}return[t,n]}function gw(e,t){let n=`${hB(e)},${yC(t)}`,r=Et.get(n);return r||Et.set(n,r=_w(e,t)),r}function _w(e,t){let n=Jc(268435456,e);return n.type=t,n}function vw(e,t,n,r,i){let a=Vc(8388608);return a.objectType=e,a.indexType=t,a.accessFlags=n,a.aliasSymbol=r,a.aliasTypeArguments=i,a}function bw(e){if(ye)return!1;if(Wx(e)&4096)return!0;if(e.flags&1048576)return v(e.types,bw);if(e.flags&2097152)return F(e.types,bw);if(e.flags&465829888){let t=dv(e);return t!==e&&bw(t)}return!1}function xw(e,t){return kT(e)?AT(e):t&&ku(t)?mv(t):void 0}function ww(e,t){if(t.flags&8208){let n=K(e.parent,e=>!Zx(e))||e.parent;return ld(n)?ud(n)&&Y(e)&&WN(n,e):v(t.declarations,e=>!ju(e)||oo(e))}return!0}function Tw(e,t,n,r,i,a){let o=i&&i.kind===213?i:void 0,s=i&&vO(i)?void 0:xw(n,i);if(s!==void 0){if(a&256)return kI(t,s)||Vt;let e=Kv(t,s);if(e){if(a&64&&i&&e.declarations&&ao(e)&&ww(i,e)&&so(o?.argumentExpression??(fk(i)?i.indexType:i),e.declarations,s),o){if(JR(e,o,YR(o.expression,t.symbol)),eH(o,e,T_(o))){U(o.argumentExpression,G.Cannot_assign_to_0_because_it_is_a_read_only_property,Hl(e));return}if(a&8&&(To(i).resolvedSymbol=e),DR(o,e))return Ht}let n=a&4?Kf(e):Jf(e);return o&&T_(o)!==1?rF(o,n):i&&fk(i)&&lM(n)?AC([n,Xt]):n}if(wP(t,Ej)&&cT(s)){let e=+s;if(i&&wP(t,e=>!(e.target.combinedFlags&12))&&!(a&16)){let n=Ew(i);if(Ej(t)){if(e<0)return U(n,G.A_tuple_type_cannot_be_indexed_with_a_negative_value),Xt;U(n,G.Tuple_type_0_of_length_1_has_no_element_at_index_2,Yl(t),tx(t),Wc(s))}else U(n,G.Property_0_does_not_exist_on_type_1,Wc(s),Yl(t))}if(e>=0)return c(ny(t,on)),Lj(t,e,a&1?B:void 0)}}if(!(n.flags&98304)&&uH(n,402665900)){if(t.flags&131073)return t;let l=cy(t,n)||ny(t,rn);if(l){if(a&2&&l.keyType!==on){o&&(a&4?U(o,G.Type_0_is_generic_and_can_only_be_indexed_for_reading,Yl(e)):U(o,G.Type_0_cannot_be_used_to_index_type_1,Yl(n),Yl(e)));return}return i&&l.keyType===rn&&!uH(n,12)?(U(Ew(i),G.Type_0_cannot_be_used_as_an_index_type,Yl(n)),a&1?AC([l.type,B]):l.type):(c(l),a&1&&!(t.symbol&&t.symbol.flags&384&&n.symbol&&n.flags&1024&&Ec(n.symbol)===t.symbol)?AC([l.type,B]):l.type)}if(n.flags&131072)return V;if(bw(t))return Vt;if(o&&!fH(t)){if(bN(t)){if(ye&&n.flags&384)return Ea.add(mm(o,G.Property_0_does_not_exist_on_type_1,n.value,Yl(t))),Xt;if(n.flags&12)return AC(I(k(t.properties,e=>Jf(e)),Xt))}if(t.symbol===L&&s!==void 0&&L.exports.has(s)&&L.exports.get(s).flags&418)U(o,G.Property_0_does_not_exist_on_type_1,Wc(s),Yl(t));else if(ye&&!(a&128))if(s!==void 0&&IR(s,t)){let e=Yl(t);U(o,G.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+`[`+Ep(o.argumentExpression)+`]`)}else if(ay(t,on))U(o.argumentExpression,G.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(s!==void 0&&(e=VR(s,t)))e!==void 0&&U(o.argumentExpression,G.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,Yl(t),e);else{let e=GR(t,o,n);if(e!==void 0)U(o,G.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Yl(t),e);else{let e;if(n.flags&1024)e=SS(void 0,G.Property_0_does_not_exist_on_type_1,`[`+Yl(n)+`]`,Yl(t));else if(n.flags&8192){let r=Us(n.symbol,o);e=SS(void 0,G.Property_0_does_not_exist_on_type_1,`[`+r+`]`,Yl(t))}else n.flags&128||n.flags&256?e=SS(void 0,G.Property_0_does_not_exist_on_type_1,n.value,Yl(t)):n.flags&12&&(e=SS(void 0,G.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Yl(n),Yl(t)));e=SS(e,G.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Yl(r),Yl(t)),Ea.add(_m(Yf(o),o,e))}}}return}}if(a&16&&bN(t))return Xt;if(bw(t))return Vt;if(i){let e=Ew(i);if(e.kind!==10&&n.flags&384)U(e,G.Property_0_does_not_exist_on_type_1,``+n.value,Yl(t));else if(n.flags&12)U(e,G.Type_0_has_no_matching_index_signature_for_type_1,Yl(t),Yl(n));else{let t=e.kind===10?`bigint`:Yl(n);U(e,G.Type_0_cannot_be_used_as_an_index_type,t)}}if(Ku(n))return n;return;function c(e){e&&e.isReadonly&&o&&(E_(o)||I_(o))&&U(o,G.Index_signature_in_type_0_only_permits_reading,Yl(t))}}function Ew(e){return e.kind===213?e.argumentExpression:e.kind===200?e.indexType:e.kind===168?e.expression:e}function jw(e){if(e.flags&2097152){let t=!1;for(let n of e.types)if(n.flags&101248||jw(n))t=!0;else if(!(n.flags&524288))return!1;return t}return!!(e.flags&77)||Mw(e)}function Mw(e){return!!(e.flags&134217728)&&v(e.types,jw)||!!(e.flags&268435456)&&jw(e.type)}function Pw(e){return!!(e.flags&402653184)&&!Mw(e)}function Lw(e){return!!Uw(e)}function Vw(e){return!!(Uw(e)&4194304)}function Hw(e){return!!(Uw(e)&8388608)}function Uw(e){return e.flags&3145728?(e.objectFlags&2097152||(e.objectFlags|=2097152|Ge(e.types,(e,t)=>e|Uw(t),0)),e.objectFlags&12582912):e.flags&33554432?(e.objectFlags&2097152||(e.objectFlags|=2097152|Uw(e.baseType)|Uw(e.constraint)),e.objectFlags&12582912):(e.flags&58982400||a_(e)||kj(e)?4194304:0)|(e.flags&63176704||Pw(e)?8388608:0)}function Kw(e,t){return e.flags&8388608?Qw(e,t):e.flags&16777216?$ee(e,t):e}function qw(e,t,n){if(e.flags&1048576||e.flags&2097152&&!rw(e)){let r=k(e.types,e=>Kw(sT(e,t),n));return e.flags&2097152||n?HC(r):AC(r)}}function Yw(e,t,n){if(t.flags&1048576){let r=k(t.types,t=>Kw(sT(e,t),n));return n?HC(r):AC(r)}}function Qw(e,t){let n=t?`simplifiedForWriting`:`simplifiedForReading`;if(e[n])return e[n]===Yn?e:e[n];e[n]=Yn;let r=Kw(e.objectType,t),i=Kw(e.indexType,t),a=Yw(r,i,t);if(a)return e[n]=a;if(!(i.flags&465829888)){let a=qw(r,i,t);if(a)return e[n]=a}if(kj(r)&&i.flags&296){let a=Bj(r,i.flags&8?0:r.target.fixedLength,0,t);if(a)return e[n]=a}return a_(r)&&s_(r)!==2?e[n]=AP(tT(r,e.indexType),e=>Kw(e,t)):e[n]=e}function $ee(e,t){let n=e.checkType,r=e.extendsType,i=UT(e),a=KT(e);if(a.flags&131072&&NT(i)===NT(n)){if(n.flags&1||MD(gD(n),gD(r)))return Kw(i,t);if($w(n,r))return V}else if(i.flags&131072&&NT(a)===NT(n)){if(!(n.flags&1)&&MD(gD(n),gD(r)))return V;if(n.flags&1||$w(n,r))return Kw(a,t)}return e}function $w(e,t){return!!(AC([Vh(e,t),V]).flags&131072)}function tT(e,t){let n=ME([Pg(e)],[t]),r=BE(e.mapper,n);return vd(dD(Vg(e.target||e),r),!0,Qg(e)>0||(Lw(e)?r_(qg(e))>0:nT(e,t)))}function nT(e,t){let n=ov(t);return!!n&&F(S_(e),e=>!!(e.flags&16777216)&&MD(ew(e,8576),n))}function sT(e,t,n=0,r,i,a){return gT(e,t,n,r,i,a)||(r?Gt:Yt)}function dT(e,t){return wP(e,e=>{if(e.flags&384){let n=AT(e);if(cT(n)){let e=+n;return e>=0&&e0&&!F(e.elements,e=>rk(e)||ik(e)||nk(e)&&!!(e.questionToken||e.dotDotDotToken))}function IT(e,t){return Lw(e)||t&&Ej(e)&&F(_C(e),Lw)}function HT(e,t,n,r,i){let a,o,s=0;for(;;){if(s===1e3)return U(w,G.Type_instantiation_is_excessively_deep_and_possibly_infinite),Gt;let l=dD(NT(e.checkType),t),d=dD(e.extendsType,t);if(l===Gt||d===Gt)return Gt;if(l===Ut||d===Ut)return Ut;let f=P_(e.node.checkType),p=P_(e.node.extendsType),m=PT(f)&&PT(p)&&u(f.elements)===u(p.elements),h=IT(l,m),g;if(e.inferTypeParameters){let n=AM(e.inferTypeParameters,void 0,0);t&&(n.nonFixingMapper=BE(n.nonFixingMapper,t)),h||yN(n.inferences,l,d,1536),g=t?BE(n.mapper,t):n.mapper}let _=g?dD(e.extendsType,g):d;if(!h&&!IT(_,m)){if(!(_.flags&3)&&(l.flags&1||!MD(hD(l),hD(_)))){(l.flags&1||n&&!(_.flags&131072)&&CP(hD(_),e=>MD(e,hD(l))))&&(o||=[]).push(dD(DE(e.node.trueType),g||t));let r=DE(e.node.falseType);if(r.flags&16777216){let n=r.root;if(n.node.parent===e.node&&(!n.isDistributive||n.checkType===e.checkType)){e=n;continue}if(c(r,t))continue}a=dD(r,t);break}if(_.flags&3||MD(gD(l),gD(_))){let n=DE(e.node.trueType),r=g||t;if(c(n,r))continue;a=dD(n,r);break}}a=Vc(16777216),a.root=e,a.checkType=dD(e.checkType,t),a.extendsType=dD(e.extendsType,t),a.mapper=t,a.combinedMapper=g,a.aliasSymbol=r||e.aliasSymbol,a.aliasTypeArguments=r?i:AE(e.aliasTypeArguments,t);break}return o?AC(I(o,a)):a;function c(n,a){if(n.flags&16777216&&a){let o=n.root;if(o.outerTypeParameters){let c=BE(n.mapper,a),l=k(o.outerTypeParameters,e=>NE(e,c)),u=ME(o.outerTypeParameters,l),d=o.isDistributive?NE(o.checkType,u):void 0;if(!d||d===o.checkType||!(d.flags&1179648))return e=o,t=u,r=void 0,i=void 0,o.aliasSymbol&&s++,!0}}return!1}}function UT(e){return e.resolvedTrueType||=dD(DE(e.root.node.trueType),e.mapper)}function KT(e){return e.resolvedFalseType||=dD(DE(e.root.node.falseType),e.mapper)}function qT(e){return e.resolvedInferredTrueType||=e.combinedMapper?dD(DE(e.root.node.trueType),e.combinedMapper):UT(e)}function JT(e){let t;return e.locals&&e.locals.forEach(e=>{e.flags&262144&&(t=I(t,Kp(e)))}),t}function YT(e){return e.isDistributive&&(QE(e.checkType,e.node.trueType)||QE(e.checkType,e.node.falseType))}function XT(e){let t=To(e);if(!t.resolvedType){let n=DE(e.checkType),r=tE(e),i=nE(r),a=sp(e,!0),o=i?a:E(a,t=>QE(t,e)),s={node:e,checkType:n,extendsType:DE(e.extendsType),isDistributive:!!(n.flags&262144),inferTypeParameters:JT(e),outerTypeParameters:o,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=HT(s,void 0,!1),o&&(s.instantiations=new Map,s.instantiations.set(Kb(o),t.resolvedType))}return t.resolvedType}function ete(e){let t=To(e);return t.resolvedType||=Hp(wc(e.typeParameter)),t.resolvedType}function ZT(e){return Y(e)?[e]:I(ZT(e.left),e.right)}function QT(e){let t=To(e);if(!t.resolvedType){if(!Hm(e))return U(e.argument,G.String_literal_expected),t.resolvedSymbol=Ft,t.resolvedType=Gt;let n=e.isTypeOf?111551:e.flags&16777216?900095:788968,r=$s(e,e.argument.literal);if(!r)return t.resolvedSymbol=Ft,t.resolvedType=Gt;let i=!!r.exports?.get(`export=`),a=ic(r,!1);if(rp(e.qualifier))a.flags&n?t.resolvedType=$T(e,t,a,n):(U(e,n===111551?G.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:G.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),t.resolvedSymbol=Ft,t.resolvedType=Gt);else{let r=ZT(e.qualifier),o=a,s;for(;s=r.shift();){let a=r.length?1920:n,c=Cc(Fs(o)),l=e.isTypeOf||ng(e)&&i?Kv(Jf(c),s.escapedText,!1,!0):void 0,u=(e.isTypeOf?void 0:Eo(yc(c),s.escapedText,a))??l;if(!u)return U(s,G.Namespace_0_has_no_exported_member_1,Us(o),lm(s)),t.resolvedType=Gt;To(s).resolvedSymbol=u,To(s.parent).resolvedSymbol=u,o=u}t.resolvedType=$T(e,t,o,n)}}return t.resolvedType}function $T(e,t,n,r){let i=Fs(n);return t.resolvedSymbol=i,r===111551?JB(Jf(n),e):lx(e,i)}function eE(e){let t=To(e);if(!t.resolvedType){let n=tE(e);if(!e.symbol||Wm(e.symbol).size===0&&!n)t.resolvedType=Un;else{let r=tl(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=nE(n),Pj(e)&&e.isArrayType&&(r=PS(r)),t.resolvedType=r}}return t.resolvedType}function tE(e){let t=e.parent;for(;lk(t)||bj(t)||dk(t)&&t.operator===148;)t=t.parent;return n_(t)?wc(t):void 0}function nE(e){return e?lp(e):void 0}function rE(e){return!!(e.flags&524288)&&!a_(e)}function iE(e){return QD(e)||!!(e.flags&474058748)}function aE(e,t){if(!(e.flags&1048576))return e;if(v(e.types,iE))return y(e.types,QD)||zn;let n=y(e.types,e=>!iE(e));if(!n||y(e.types,e=>e!==n&&!iE(e)))return e;return r(n);function r(e){let n=Cf();for(let r of S_(e))if(!(Mx(r)&6)&&cE(r)){let e=r.flags&65536&&!(r.flags&32768),i=lo(16777220,r.escapedName,Og(r)|(t?8:0));i.links.type=e?Xt:vd(Jf(r),!0),i.declarations=r.declarations,i.links.nameType=wo(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}let r=pl(e.symbol,n,c,c,ty(e));return r.objectFlags|=131200,r}}function sE(e,t,n,r,i){if(e.flags&1||t.flags&1)return Vt;if(e.flags&2||t.flags&2)return Yt;if(e.flags&131072)return t;if(t.flags&131072)return e;if(e=aE(e,i),e.flags&1048576)return WC([e,t])?AP(e,e=>sE(e,t,n,r,i)):Gt;if(t=aE(t,i),t.flags&1048576)return WC([e,t])?AP(t,t=>sE(e,t,n,r,i)):Gt;if(t.flags&473960444)return e;if(Vw(e)||Vw(t)){if(QD(e))return t;if(e.flags&2097152){let a=e.types,o=a[a.length-1];if(rE(o)&&rE(t))return HC(de(a.slice(0,a.length-1),[sE(o,t,n,r,i)]))}return HC([e,t])}let a=Cf(),o=new Set,s=e===zn?ty(t):zh([e,t]);for(let e of S_(t))Mx(e)&6?o.add(e.escapedName):cE(e)&&a.set(e.escapedName,lE(e,i));for(let t of S_(e))if(!(o.has(t.escapedName)||!cE(t)))if(a.has(t.escapedName)){let e=a.get(t.escapedName),n=Jf(e);if(e.flags&16777216){let r=de(t.declarations,e.declarations),i=lo(4|t.flags&16777216,t.escapedName),o=Jf(t),s=uM(o),c=uM(n);i.links.type=s===c?o:AC([o,c],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=wo(t).nameType,a.set(t.escapedName,i)}}else a.set(t.escapedName,lE(t,i));let l=pl(n,a,c,c,te(s,e=>uE(e,i)));return l.objectFlags|=2228352|r,l}function cE(e){return!F(e.declarations,Su)&&(!(e.flags&106496)||!e.declarations?.some(e=>zu(e.parent)))}function lE(e,t){let n=e.flags&65536&&!(e.flags&32768);if(!n&&t===$V(e))return e;let r=lo(4|e.flags&16777216,e.escapedName,Og(e)|(t?8:0));return r.links.type=n?Xt:Jf(e),r.declarations=e.declarations,r.links.nameType=wo(e).nameType,r.links.syntheticOrigin=e,r}function uE(e,t){return e.isReadonly===t?e:xb(e.keyType,e.type,t,e.declaration,e.components)}function dE(e,t,n,r){let i=Jc(e,n);return i.value=t,i.regularType=r||i,i}function fE(e){if(e.flags&2976){if(!e.freshType){let t=dE(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function pE(e){return e.flags&2976?e.regularType:e.flags&1048576?e.regularType||=AP(e,pE):e}function mE(e){return!!(e.flags&2976)&&e.freshType===e}function hE(e){let t;return bt.get(e)||(bt.set(e,t=dE(128,e)),t)}function gE(e){let t;return xt.get(e)||(xt.set(e,t=dE(256,e)),t)}function _E(e){let t,n=Iw(e);return St.get(n)||(St.set(n,t=dE(2048,e)),t)}function vE(e,t,n){let r,i=`${t}${typeof e==`string`?`@`:`#`}${e}`,a=1024|(typeof e==`string`?128:256);return Ct.get(i)||(Ct.set(i,r=dE(a,e,n)),r)}function yE(e){if(e.literal.kind===106)return tn;let t=To(e);return t.resolvedType||=pE(cU(e.literal)),t.resolvedType}function bE(e){let t=Jc(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${hB(t.symbol)}`,t}function xE(e){if(ng(e)&&bj(e)){let t=y_(e);t&&(e=o_(t)||t)}if(uh(e)){let t=lh(e)?Tc(e.left):Tc(e);if(t){let e=wo(t);return e.uniqueESSymbolType||=bE(t)}}return gn}function SE(e){let t=Eh(e,!1,!1),n=t&&t.parent;if(n&&(zu(n)||n.kind===265)&&!$y(t)&&(!HO(t)||L_(e,t.body)))return Mp(wc(n)).thisType;if(n&&Sk(n)&&Rk(n.parent)&&Eg(n.parent)===6)return Mp(Tc(n.parent.left).parent).thisType;let r=e.flags&16777216?__(e):void 0;return r&&Ak(r)&&Rk(r.parent)&&Eg(r.parent)===3?Mp(Tc(r.parent.left).parent).thisType:kB(t)&&L_(e,t.body)?Mp(wc(t)).thisType:(U(e,G.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Gt)}function CE(e){let t=To(e);return t.resolvedType||=SE(e),t.resolvedType}function wE(e){return DE(TE(e.type)||e.type)}function TE(e){switch(e.kind){case 197:return TE(e.type);case 190:if(e.elements.length===1&&(e=e.elements[0],e.kind===192||e.kind===203&&e.dotDotDotToken))return TE(e.type);break;case 189:return e.elementType}}function EE(e){let t=To(e);return t.resolvedType||=e.dotDotDotToken?wE(e):vd(DE(e.type),!0,!!e.questionToken)}function DE(e){return yx(OE(e),e)}function OE(e){switch(e.kind){case 133:case 313:case 314:return Vt;case 159:return Yt;case 154:return rn;case 150:return on;case 163:return sn;case 136:return hn;case 155:return gn;case 116:return bn;case 157:return Xt;case 106:return tn;case 146:return V;case 151:return e.flags&524288&&!ye?Vt:En;case 141:return Jt;case 198:case 110:return CE(e);case 202:return yE(e);case 184:return wx(e);case 183:return e.assertsModifier?bn:hn;case 234:return wx(e);case 187:return Nee(e);case 189:case 190:return qS(e);case 191:return vC(e);case 193:return FC(e);case 194:return JC(e);case 315:return Cx(e);case 317:return vd(DE(e.type));case 203:return EE(e);case 197:case 316:case 310:return DE(e.type);case 192:return wE(e);case 319:return Dq(e);case 185:case 186:case 188:case 323:case 318:case 324:return eE(e);case 199:return sw(e);case 200:return TT(e);case 201:return DT(e);case 195:return XT(e);case 196:return ete(e);case 204:return cw(e);case 206:return QT(e);case 80:case 167:case 212:let t=Qq(e);return t?Kp(t):Gt;default:return Gt}}function kE(e,t,n){if(e&&e.length)for(let r=0;re.typeParameter),k(n,()=>Yt))}function ite(e){return e.outerReturnMapper??=VE(e.returnMapper,jM(e).mapper)}function BE(e,t){return e?LE(4,e,t):t}function VE(e,t){return e?LE(5,e,t):t}function HE(e,t,n){return n?LE(5,PE(e,t),n):PE(e,t)}function WE(e,t,n){return e?LE(5,e,PE(t,n)):PE(t,n)}function GE(e){return!e.constraint&&!Ab(e)||e.constraint===Jn?e:e.restrictiveInstantiation||(e.restrictiveInstantiation=al(e.symbol),e.restrictiveInstantiation.constraint=Jn,e.restrictiveInstantiation)}function KE(e){let t=al(e.symbol);return t.target=e,t}function qE(e,t){return gy(e.kind,e.parameterName,e.parameterIndex,dD(e.type,t))}function JE(e,t,n){let r;if(e.typeParameters&&!n){r=k(e.typeParameters,KE),t=BE(ME(e.typeParameters,r),t);for(let e of r)e.mapper=t}let i=Xm(e.declaration,r,e.thisParameter&&YE(e.thisParameter,t),kE(e.parameters,t,YE),void 0,void 0,e.minArgumentCount,e.flags&167);return i.target=e,i.mapper=t,i}function YE(e,t){let n=wo(e);if(n.type&&!qM(n.type)&&(!(e.flags&65536)||n.writeType&&!qM(n.writeType)))return e;jx(e)&1&&(e=n.target,t=BE(n.mapper,t));let r=lo(e.flags,e.escapedName,1|jx(e)&53256);return r.declarations=e.declarations,r.parent=e.parent,r.links.target=e,r.links.mapper=t,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),n.nameType&&(r.links.nameType=n.nameType),r}function XE(e,t,n,r){let i=e.objectFlags&4||e.objectFlags&8388608?e.node:e.symbol.declarations[0],a=To(i),o=e.objectFlags&4?a.resolvedType:e.objectFlags&64?e.target:e,s=a.outerTypeParameters;if(!s){let t=sp(i,!0);if(kB(i)){let e=uy(i);t=Ee(t,e)}s=t||c;let n=e.objectFlags&8388612?[i]:e.symbol.declarations;s=(o.objectFlags&8388612||o.symbol.flags&8192||o.symbol.flags&2048)&&!o.aliasTypeArguments?E(s,e=>F(n,t=>QE(e,t))):s,a.outerTypeParameters=s}if(s.length){let i=BE(e.mapper,t),a=k(s,e=>NE(e,i)),c=n||e.aliasSymbol,l=n?r:AE(e.aliasTypeArguments,t),u=Kb(a)+Jb(c,l);o.instantiations||(o.instantiations=new Map,o.instantiations.set(Kb(s)+Jb(o.aliasSymbol,o.aliasTypeArguments),o));let d=o.instantiations.get(u);if(!d){let n=ME(s,a);o.objectFlags&134217728&&t&&(n=BE(n,t)),d=o.objectFlags&4?$b(e.target,e.node,n,c,l):o.objectFlags&32?tD(o,n,c,l):lD(o,n,c,l),o.instantiations.set(u,d);let r=Wx(d);if(d.flags&3899393&&!(r&524288)){let e=F(a,qM);Wx(d)&524288||(r&52?d.objectFlags|=524288|(e?1048576:0):d.objectFlags|=e?0:524288)}}return d}return e}function ZE(e){return!(e.parent.kind===184&&e.parent.typeArguments&&e===e.parent.typeName||e.parent.kind===206&&e.parent.typeArguments&&e===e.parent.qualifier)}function QE(e,t){if(e.symbol&&e.symbol.declarations&&e.symbol.declarations.length===1){let r=e.symbol.declarations[0].parent;for(let e=t;e!==r;e=e.parent)if(!e||e.kind===242||e.kind===195&&pP(e.extendsType,n))return!0;return n(t)}return!0;function n(t){switch(t.kind){case 198:return!!e.isThisType;case 80:return!e.isThisType&&eh(t)&&ZE(t)&&OE(t)===e;case 187:let r=t.exprName,i=Nb(r);if(!My(i)){let r=DN(i),a=e.symbol.declarations[0],o=a.kind===169?a.parent:e.isThisType?a:void 0;if(r.declarations&&o)return F(r.declarations,e=>L_(e,o))||F(t.typeArguments,n)}return!0;case 175:case 174:return!t.type&&!!t.body||F(t.typeParameters,n)||F(t.parameters,n)||!!t.type&&n(t.type)}return!!pP(t,n)}}function $E(e){let t=Fg(e);if(t.flags&4194304){let e=NT(t.type);if(e.flags&262144)return e}}function tD(e,t,n,r){let i=$E(e);if(i){let e=dD(i,t);if(i!==e)return jP(Hv(e),a,n,r)}return dD(Fg(e),t)===Ut?Ut:lD(e,t,n,r);function a(n){if(n.flags&61603843&&n!==Ut&&!Yu(n)){if(!e.declaration.nameType){let r;if(hA(n)||n.flags&1&&Eu(i,4)<0&&(r=A_(i))&&wP(r,_A))return sD(n,e,HE(i,n,t));if(Ej(n))return aD(n,e,i,t);if(Nv(n))return HC(k(n.types,a))}return lD(e,HE(i,n,t))}return n}}function iD(e,t){return t&1?!0:t&2?!1:e}function aD(e,t,n,r){let i=e.target.elementFlags,a=e.target.fixedLength,o=a?HE(n,e,r):r,s=k(_C(e),(e,s)=>{let c=i[s];return se&1?2:e):c&8?k(i,e=>e&2?1:e):i,u=iD(e.target.readonly,Zg(t));return C(s,Gt)?Gt:QS(s,l,u,e.target.labeledElementDeclarations)}function sD(e,t,n){let r=cD(t,on,!0,n);return Yu(r)?Gt:PS(r,iD(gA(e),Zg(t)))}function cD(e,t,n,r){let i=WE(r,Pg(e),t),a=dD(Vg(e.target||e),i),o=Zg(e);return fe&&o&4&&!lH(a,49152)?Jj(a,!0):fe&&o&8&&n?QN(a,524288):a}function lD(e,t,n,r){H.assert(e.symbol,`anonymous type must have symbol to be instantiated`);let i=tl(e.objectFlags&-1572865|64,e.symbol);if(e.objectFlags&32){i.declaration=e.declaration;let n=Pg(e),r=KE(n);i.typeParameter=r,t=BE(PE(n,r),t),r.mapper=t}return e.objectFlags&8388608&&(i.node=e.node),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:AE(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?Yb(i.aliasTypeArguments):0,i}function uD(e,t,n,r,i){let a=e.root;if(a.outerTypeParameters){let e=k(a.outerTypeParameters,e=>NE(e,t)),o=(n?`C`:``)+Kb(e)+Jb(r,i),s=a.instantiations.get(o);if(!s){let t=ME(a.outerTypeParameters,e),c=a.checkType,l=a.isDistributive?Hv(NE(c,t)):void 0;s=l&&c!==l&&l.flags&1179648?jP(l,e=>HT(a,HE(c,e,t),n),r,i):HT(a,t,n,r,i),a.instantiations.set(o,s)}return s}return e}function dD(e,t){return e&&t?fD(e,t,void 0,void 0):e}function fD(e,t,n,r){var i;if(!qM(e))return e;if(g===100||h>=5e6)return(i=Ar)==null||i.instant(Ar.Phase.CheckTypes,`instantiateType_DepthLimit`,{typeId:e.id,instantiationDepth:g,instantiationCount:h}),U(w,G.Type_instantiation_is_excessively_deep_and_possibly_infinite),Gt;let a=tL(t);a===-1&&$te(t);let o=e.id+Jb(n,r),s=qi[a===-1?Yi-1:a],c=s.get(o);if(c)return c;m++,h++,g++;let l=pD(e,t,n,r);return a===-1?eL():s.set(o,l),g--,l}function pD(e,t,n,r){let i=e.flags;if(i&262144)return NE(e,t);if(i&524288){let i=e.objectFlags;if(i&52){if(i&4&&!e.node){let n=e.resolvedTypeArguments,r=AE(n,t);return r===n?e:iC(e.target,r)}return i&1024?mD(e,t):XE(e,t,n,r)}return e}if(i&3145728){let a=e.flags&1048576?e.origin:void 0,o=a&&a.flags&3145728?a.types:e.types,s=AE(o,t);if(s===o&&n===e.aliasSymbol)return e;let c=n||e.aliasSymbol,l=n?r:AE(e.aliasTypeArguments,t);return i&2097152||a&&a.flags&2097152?HC(s,0,c,l):AC(s,1,c,l)}if(i&4194304)return iw(dD(e.type,t));if(i&134217728)return lw(e.texts,AE(e.types,t));if(i&268435456)return pw(e.symbol,dD(e.type,t));if(i&8388608){let i=n||e.aliasSymbol,a=n?r:AE(e.aliasTypeArguments,t);return sT(dD(e.objectType,t),dD(e.indexType,t),e.accessFlags,void 0,i,a)}if(i&16777216)return uD(e,BE(e.mapper,t),!1,n,r);if(i&33554432){let n=dD(e.baseType,t);if(px(e))return dx(n);let r=dD(e.constraint,t);return n.flags&8650752&&Lw(r)?mx(n,r):r.flags&3||MD(gD(n),gD(r))?n:n.flags&8650752?mx(n,r):HC([r,n])}return e}function mD(e,t){let n=dD(e.mappedType,t);if(!(Wx(n)&32))return e;let r=dD(e.constraintType,t);return r.flags&4194304&&ZM(dD(e.source,t),n,r)||e}function hD(e){return e.flags&402915327?e:e.permissiveInstantiation||=dD(e,Nn)}function gD(e){return e.flags&402915327?e:e.restrictiveInstantiation?e.restrictiveInstantiation:(e.restrictiveInstantiation=dD(e,Mn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation,e.restrictiveInstantiation)}function _D(e,t){return xb(e.keyType,dD(e.type,t),e.isReadonly,e.declaration,e.components)}function vD(e){switch(H.assert(e.kind!==175||mh(e)),e.kind){case 219:case 220:case 175:case 263:return yD(e);case 211:return F(e.properties,vD);case 210:return F(e.elements,vD);case 228:return vD(e.whenTrue)||vD(e.whenFalse);case 227:return(e.operatorToken.kind===57||e.operatorToken.kind===61)&&(vD(e.left)||vD(e.right));case 304:return vD(e.initializer);case 218:return vD(e.expression);case 293:return F(e.properties,vD)||ej(e.parent)&&F(e.parent.parent.children,vD);case 292:{let{initializer:t}=e;return!!t&&vD(t)}case 295:{let{expression:t}=e;return!!t&&vD(t)}}return!1}function yD(e){return rT(e)||SD(e)}function SD(e){return e.typeParameters||zy(e)||!e.body?!1:e.body.kind===242?!!nh(e.body,e=>!!e.expression&&vD(e.expression)):vD(e.body)}function CD(e){return(oT(e)||mh(e))&&yD(e)}function wD(e){if(e.flags&524288){let t=u_(e);if(t.constructSignatures.length||t.callSignatures.length){let n=tl(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=c,n.constructSignatures=c,n.indexInfos=c,n}}else if(e.flags&2097152)return HC(k(e.types,wD));return e}function ED(e,t){return lO(e,t,Fa)}function DD(e,t){return lO(e,t,Fa)?-1:0}function OD(e,t){return lO(e,t,Na)?-1:0}function kD(e,t){return lO(e,t,ja)?-1:0}function AD(e,t){return lO(e,t,ja)}function jD(e,t){return lO(e,t,Ma)}function MD(e,t){return lO(e,t,Na)}function ND(e,t){return e.flags&1048576?v(e.types,e=>ND(e,t)):t.flags&1048576?F(t.types,t=>ND(e,t)):e.flags&2097152?F(e.types,e=>ND(e,t)):e.flags&58982400?ND(ov(e)||Yt,t):nO(t)?!!(e.flags&67633152):t===Cr?!!(e.flags&67633152)&&!nO(e):t===wr?!!(e.flags&524288)&&JN(e):ap(e,np(t))||hA(t)&&!gA(t)&&ND(e,Or)}function PD(e,t){return lO(e,t,Pa)}function FD(e,t){return PD(e,t)||PD(t,e)}function ID(e,t,n,r,i,a){return hO(e,t,Na,n,r,i,a)}function LD(e,t,n,r,i,a){return RD(e,t,Na,n,r,i,a,void 0)}function RD(e,t,n,r,i,a,o,s){return lO(e,t,n)?!0:!r||!BD(i,e,t,n,a,o,s)?hO(e,t,n,r,a,o,s):!1}function zD(e){return!!(e.flags&16777216||e.flags&2097152&&F(e.types,zD))}function BD(e,t,n,r,i,a,o){if(!e||zD(n))return!1;if(!hO(t,n,r,void 0)&&ate(e,t,n,r,i,a,o))return!0;switch(e.kind){case 235:if(!zT(e))break;case 295:case 218:return BD(e.expression,t,n,r,i,a,o);case 227:switch(e.operatorToken.kind){case 64:case 28:return BD(e.right,t,n,r,i,a,o)}break;case 211:return fte(e,t,n,r,a,o);case 210:return ute(e,t,n,r,a,o);case 293:return GD(e,t,n,r,a,o);case 220:return ote(e,t,n,r,a,o)}return!1}function ate(e,t,n,r,i,a,o){let s=Jv(t,0),c=Jv(t,1);for(let l of[c,s])if(F(l,e=>{let t=Uy(e);return!(t.flags&131073)&&hO(t,n,r,void 0)})){let r=o||{};ID(t,n,e,i,a,r);let s=r.errors[r.errors.length-1];return Dw(s,mm(e,l===c?G.Did_you_mean_to_use_new_with_this_expression:G.Did_you_mean_to_call_this_expression)),!0}return!1}function ote(e,t,n,r,i,a){if(tA(e.body)||F(e.parameters,nf))return!1;let o=bz(t);if(!o)return!1;let s=Jv(n,0);if(!u(s))return!1;let c=e.body,l=Uy(o),d=AC(k(s,Uy));if(!hO(l,d,r,void 0)){let t=c&&BD(c,l,d,r,void 0,i,a);if(t)return t;let o=a||{};if(hO(l,d,r,c,void 0,i,o),o.errors)return n.symbol&&u(n.symbol.declarations)&&Dw(o.errors[o.errors.length-1],mm(n.symbol.declarations[0],G.The_expected_type_comes_from_the_return_type_of_this_signature)),!(cv(e)&2)&&!Wu(l,`then`)&&hO(IV(l),d,r,void 0)&&Dw(o.errors[o.errors.length-1],mm(e,G.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function VD(e,t,n){let r=gT(t,n);if(r)return r;if(t.flags&1048576){let r=xO(e,t);if(r)return gT(r,n)}}function HD(e,t){JI(e,t,!1);let n=JH(e,1);return YI(),n}function UD(e,t,n,r,i,a){let o=!1;for(let s of e){let{errorNode:e,innerExpression:c,nameType:l,errorMessage:d}=s,f=VD(t,n,l);if(!f||f.flags&8388608)continue;let p=gT(t,l);if(!p)continue;let m=xw(l,void 0);if(!hO(p,f,r,void 0)){let s=c&&BD(c,p,f,r,void 0,i,a);if(o=!0,!s){let o=a||{},s=c?HD(c,p):p;if(we&&yO(s,f)){let t=mm(e,G.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Yl(s),Yl(f));Ea.add(t),o.errors=[t]}else{let a=!!(m&&(Kv(n,m)||Ft).flags&16777216),c=!!(m&&(Kv(t,m)||Ft).flags&16777216);f=cM(f,a),p=cM(p,a&&c),hO(s,f,r,e,d,i,o)&&s!==p&&hO(p,f,r,e,d,i,o)}if(o.errors){let e=o.errors[o.errors.length-1],t=kT(l)?AT(l):void 0,r=t===void 0?void 0:Kv(n,t),i=!1;if(!r){let t=cy(n,l);t&&t.declaration&&!Yf(t.declaration).hasNoDefaultLib&&(i=!0,Dw(e,mm(t.declaration,G.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&u(r.declarations)||n.symbol&&u(n.symbol.declarations))){let i=r&&u(r.declarations)?r.declarations[0]:n.symbol.declarations[0];Yf(i).hasNoDefaultLib||Dw(e,mm(i,G.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,t&&!(l.flags&8192)?Wc(t):Yl(l),Yl(n)))}}}}}return o}function ste(e,t,n,r,i,a){let o=TP(n,VA),s=TP(n,e=>!VA(e)),c=s===V?void 0:LG(13,0,s,void 0),l=!1;for(let n=e.next();!n.done;n=e.next()){let{errorNode:e,innerExpression:s,nameType:u,errorMessage:d}=n.value,f=c,p=o===V?void 0:VD(t,o,u);if(p&&!(p.flags&8388608)&&(f=c?AC([c,p]):p),!f)continue;let m=gT(t,u);if(!m)continue;let h=xw(u,void 0);if(!hO(m,f,r,void 0)){let n=s&&BD(s,m,f,r,void 0,i,a);if(l=!0,!n){let n=a||{},c=s?HD(s,m):m;if(we&&yO(c,f)){let t=mm(e,G.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Yl(c),Yl(f));Ea.add(t),n.errors=[t]}else{let a=!!(h&&(Kv(o,h)||Ft).flags&16777216),s=!!(h&&(Kv(t,h)||Ft).flags&16777216);f=cM(f,a),m=cM(m,a&&s),hO(c,f,r,e,d,i,n)&&c!==m&&hO(m,f,r,e,d,i,n)}}}}return l}function*cte(e){if(u(e.properties))for(let t of e.properties)sj(t)||jL(wT(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:hE(wT(t.name))})}function*lte(e,t){if(!u(e.children))return;let n=0;for(let r=0;r1,g,_;if(aS(!1)!==Kn){let e=Gee(Vt);g=TP(p,t=>MD(t,e)),_=TP(p,t=>!MD(t,e))}else g=TP(p,VA),_=TP(p,e=>!VA(e));if(h){if(g!==V){let e=QS(IL(s,0));o=ste(lte(s,c),e,g,r,i,a)||o}else if(!lO(sT(t,f),p,r)){o=!0;let e=U(s.openingElement.tagName,G.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,d,Yl(p));a&&a.skipLogging&&(a.errors||=[]).push(e)}}else if(_!==V){let e=m[0],s=WD(e,f,c);s&&(o=UD((function*(){yield s})(),t,n,r,i,a)||o)}else if(!lO(sT(t,f),p,r)){o=!0;let e=U(s.openingElement.tagName,G.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,d,Yl(p));a&&a.skipLogging&&(a.errors||=[]).push(e)}}return o;function c(){if(!s){let t=Ep(e.parent.tagName),r=GL(HL(e)),i=r===void 0?`children`:Wc(r),a=sT(n,hE(i)),o=G._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;s={...o,key:`!!ALREADY FORMATTED!!`,message:yS(o,t,i,Yl(a))}}return s}}function*KD(e,t){let n=u(e.elements);if(n)for(let r=0;rc:fV(e)>c))return r&&!(n&8)&&i(G.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,fV(e),c),0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(t=pb(t),e=wz(e,t,void 0,o));let l=dV(e),u=gV(e),d=gV(t);(u||d)&&dD(u||d,s);let f=t.declaration?t.declaration.kind:0,p=!(n&3)&&me&&f!==175&&f!==174&&f!==177,m=-1,h=Fy(e);if(h&&h!==bn){let e=Fy(t);if(e){let t=!p&&o(h,e,!1)||o(e,h,r);if(!t)return r&&i(G.The_this_types_of_each_signature_are_incompatible),0;m&=t}}let g=u||d?Math.min(l,c):Math.max(l,c),_=u||d?g-1:-1;for(let c=0;c=fV(e)&&c=3&&t[0].flags&32768&&t[1].flags&65536&&F(t,nO)?67108864:0)}return!!(e.objectFlags&67108864)}return!1}function iO(e){return!!((e.flags&1048576?e.types[0]:e).flags&32768)}function aO(e){let t=e.flags&1048576?e.types[0]:e;return!!(t.flags&32768)&&t!==B}function oO(e){return e.flags&524288&&!a_(e)&&S_(e).length===0&&ty(e).length===1&&!!ny(e,rn)||e.flags&3145728&&v(e.types,oO)||!1}function sO(e,t,n){let r=e.flags&8?Ec(e):e,i=t.flags&8?Ec(t):t;if(r===i)return!0;if(r.escapedName!==i.escapedName||!(r.flags&256)||!(i.flags&256))return!1;let a=hB(r)+`,`+hB(i),o=Ia.get(a);if(o!==void 0&&!(o&2&&n))return!!(o&1);let s=Jf(i);for(let e of S_(Jf(r)))if(e.flags&8){let t=Kv(s,e.escapedName);if(!t||!(t.flags&8))return n&&n(G.Property_0_is_missing_in_type_1,qc(e),Yl(Kp(i),void 0,64)),Ia.set(a,2),!1;let r=AJ(xf(e,307)).value,o=AJ(xf(t,307)).value;if(r!==o){let e=typeof r==`string`,s=typeof o==`string`;if(r!==void 0&&o!==void 0){if(n){let a=e?`"${Wv(r)}"`:r,c=s?`"${Wv(o)}"`:o;n(G.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,qc(i),qc(t),c,a)}return Ia.set(a,2),!1}if(e||s){if(n){let e=r??o;H.assert(typeof e==`string`);let a=`"${Wv(e)}"`;n(G.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,qc(i),qc(t),a)}return Ia.set(a,2),!1}}}return Ia.set(a,1),!0}function cO(e,t,n,r){let i=e.flags,a=t.flags;return a&1||i&131072||e===Ut||a&2&&!(n===Ma&&i&1)?!0:a&131072?!1:!!(i&402653316&&a&4||i&128&&i&1024&&a&128&&!(a&1024)&&e.value===t.value||i&296&&a&8||i&256&&i&1024&&a&256&&!(a&1024)&&e.value===t.value||i&2112&&a&64||i&528&&a&16||i&12288&&a&4096||i&32&&a&32&&e.symbol.escapedName===t.symbol.escapedName&&sO(e.symbol,t.symbol,r)||i&1024&&a&1024&&(i&1048576&&a&1048576&&sO(e.symbol,t.symbol,r)||i&2944&&a&2944&&e.value===t.value&&sO(e.symbol,t.symbol,r))||i&32768&&(!fe&&!(a&3145728)||a&49152)||i&65536&&(!fe&&!(a&3145728)||a&65536)||i&524288&&a&67108864&&!(n===Ma&&nO(e)&&!(Wx(e)&8192))||(n===Na||n===Pa)&&(i&1||i&8&&(a&32||a&256&&a&1024)||i&256&&!(i&1024)&&(a&32||a&256&&a&1024&&e.value===t.value)||rO(t)))}function lO(e,t,n){if(mE(e)&&(e=e.regularType),mE(t)&&(t=t.regularType),e===t)return!0;if(n!==Fa){if(n===Pa&&!(t.flags&131072)&&cO(t,e,n)||cO(e,t,n))return!0}else if(!((e.flags|t.flags)&61865984)){if(e.flags!==t.flags)return!1;if(e.flags&67358815)return!0}if(e.flags&524288&&t.flags&524288){let r=n.get(gk(e,t,0,n,!1));if(r!==void 0)return!!(r&1)}return e.flags&469499904||t.flags&469499904?hO(e,t,n,void 0):!1}function uO(e,t){return Wx(e)&2048&&jL(t.escapedName)}function dO(e,t){for(;;){let n=mE(e)?e.regularType:kj(e)?mO(e,t):Wx(e)&4?e.node?Zb(e.target,ex(e)):FA(e)||e:e.flags&3145728?fO(e,t):e.flags&33554432?t?e.baseType:gx(e):e.flags&25165824?Kw(e,t):e;if(n===e)return n;e=n}}function fO(e,t){let n=Hv(e);if(n!==e)return n;if(e.flags&2097152&&pO(e)){let n=te(e.types,e=>dO(e,t));if(n!==e.types)return HC(n)}return e}function pO(e){let t=!1,n=!1;for(let r of e.types)if(t||=!!(r.flags&465829888),n||=!!(r.flags&98304)||nO(r),t&&n)return!0;return!1}function mO(e,t){let n=_C(e),r=te(n,e=>e.flags&25165824?Kw(e,t):e);return n===r?e:aC(e.target,r)}function hO(e,t,n,r,i,a,o){var s;let l,d,f,p,m,h,g=0,_=0,v=0,y=0,b=!1,x=0,S=0,T,E,D=16e6-n.size>>3;H.assert(n!==Fa||!r,`no error reporting in identity checking`);let O=P(e,t,3,!!r,i);if(E&&ie(),b){let i=gk(e,t,0,n,!1);n.set(i,2|(D<=0?32:64)),(s=Ar)==null||s.instant(Ar.Phase.CheckTypes,`checkTypeRelatedTo_DepthLimit`,{sourceId:e.id,targetId:t.id,depth:_,targetDepth:v});let a=D<=0?G.Excessive_complexity_comparing_types_0_and_1:G.Excessive_stack_depth_comparing_types_0_and_1,c=U(r||w,a,Yl(e),Yl(t));o&&(o.errors||=[]).push(c)}else if(l){if(a){let e=a();e&&(CS(e,l),l=e)}let s;if(i&&r&&!O&&e.symbol){let r=wo(e.symbol);if(r.originatingImport&&!Bm(r.originatingImport)&&hO(Jf(r.target),t,n,void 0)){let e=mm(r.originatingImport,G.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);s=I(s,e)}}let c=_m(Yf(r),r,l,s);d&&Dw(c,...d),o&&(o.errors||=[]).push(c),(!o||!o.skipLogging)&&Ea.add(c)}return r&&o&&o.skipLogging&&O===0&&H.assert(!!o.errors,`missed opportunity to interact with error.`),O!==0;function ee(e){l=e.errorInfo,T=e.lastSkippedInfo,E=e.incompatibleStack,x=e.overrideNextErrorInfo,S=e.skipParentCounter,d=e.relatedInfo}function ne(){return{errorInfo:l,lastSkippedInfo:T,incompatibleStack:E?.slice(),overrideNextErrorInfo:x,skipParentCounter:S,relatedInfo:d?.slice()}}function re(e,...t){x++,T=void 0,(E||=[]).push([e,...t])}function ie(){let e=E||[];E=void 0;let t=T;if(T=void 0,e.length===1){ae(...e[0]),t&&N(void 0,...t);return}let n=``,r=[];for(;e.length;){let[t,...i]=e.pop();switch(t.code){case G.Types_of_property_0_are_incompatible.code:{n.indexOf(`new `)===0&&(n=`(${n})`);let e=``+i[0];n=n.length===0?`${e}`:Ws(e,zS(A))?`${n}.${e}`:e[0]===`[`&&e[e.length-1]===`]`?`${n}${e}`:`${n}[${e}]`;break}case G.Call_signature_return_types_0_and_1_are_incompatible.code:case G.Construct_signature_return_types_0_and_1_are_incompatible.code:case G.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case G.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(n.length===0){let e=t;t.code===G.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=G.Call_signature_return_types_0_and_1_are_incompatible:t.code===G.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=G.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else{let e=t.code===G.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===G.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?`new `:``,r=t.code===G.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===G.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?``:`...`;n=`${e}${n}(${r})`}break;case G.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([G.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case G.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([G.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,i[0],i[1],i[2]]);break;default:return H.fail(`Unhandled Diagnostic: ${t.code}`)}}n?ae(n[n.length-1]===`)`?G.The_types_returned_by_0_are_incompatible_between_these_types:G.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(let[e,...t]of r){let n=e.elidedInCompatabilityPyramid;e.elidedInCompatabilityPyramid=!1,ae(e,...t),e.elidedInCompatabilityPyramid=n}t&&N(void 0,...t)}function ae(e,...t){H.assert(!!r),E&&ie(),!e.elidedInCompatabilityPyramid&&(S===0?l=SS(l,e,...t):S--)}function j(e,...t){ae(e,...t),S++}function M(e){H.assert(!!l),d?d.push(e):d=[e]}function N(e,t,r){E&&ie();let[i,a]=Zl(t,r),o=t,s=i;if(!(r.flags&131072)&&ij(t)&&!gO(r)&&(o=cj(t),H.assert(!MD(o,r),`generalized source shouldn't be assignable`),s=Ql(o)),(r.flags&8388608&&!(t.flags&8388608)?r.objectType.flags:r.flags)&262144&&r!==er&&r!==tr){let e=ov(r),n;e&&(MD(o,e)||(n=MD(t,e)))?ae(G._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,a,Yl(e)):(l=void 0,ae(G._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,a,s))}if(e)e===G.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&we&&_O(t,r).length&&(e=G.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(n===Pa)e=G.Type_0_is_not_comparable_to_type_1;else if(i===a)e=G.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(we&&_O(t,r).length)e=G.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(t.flags&128&&r.flags&1048576){let e=KR(t,r);if(e){ae(G.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,a,Yl(e));return}}e=G.Type_0_is_not_assignable_to_type_1}ae(e,s,a)}function oe(e,t){let n=$l(e.symbol)?Yl(e,e.symbol.valueDeclaration):Yl(e),r=$l(t.symbol)?Yl(t,t.symbol.valueDeclaration):Yl(t);(kr===e&&rn===t||jr===e&&on===t||Mr===e&&hn===t||Jx()===e&&gn===t)&&ae(G._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}function se(e,t,n){return Ej(e)?e.target.readonly&&vA(t)?(n&&ae(G.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Yl(e),Yl(t)),!1):_A(t):gA(e)&&vA(t)?(n&&ae(G.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Yl(e),Yl(t)),!1):Ej(t)?hA(e):!0}function ce(e,t,n){return P(e,t,3,n)}function P(e,t,r=3,i=!1,a,o=0){if(e===t)return-1;if(e.flags&524288&&t.flags&402784252)return n===Pa&&!(t.flags&131072)&&cO(t,e,n)||cO(e,t,n,i?ae:void 0)?-1:(i&&le(e,t,e,t,a),0);let s=dO(e,!1),c=dO(t,!0);if(s===c)return-1;if(n===Fa)return s.flags===c.flags?s.flags&67358815?-1:(ue(s,c),Ee(s,c,!1,0,r)):0;if(s.flags&262144&&O_(s)===c)return-1;if(s.flags&470302716&&c.flags&1048576){let e=c.types,t=e.length===2&&e[0].flags&98304?e[1]:e.length===3&&e[0].flags&98304&&e[1].flags&98304?e[2]:void 0;if(t&&!(t.flags&98304)&&(c=dO(t,!0),s===c))return-1}if(n===Pa&&!(c.flags&131072)&&cO(c,s,n)||cO(s,c,n,i?ae:void 0))return-1;if(s.flags&469499904||c.flags&469499904){if(!(o&2)&&bN(s)&&Wx(s)&8192&&pe(s,c,i))return i&&N(a,s,t.aliasSymbol?t:c),0;let l=(n!==Pa||YA(s))&&!(o&2)&&s.flags&405405692&&s!==Cr&&c.flags&2621440&&CO(c)&&(S_(s).length>0||lJ(s)),u=!!(Wx(s)&2048);if(l&&!wO(s,c,u)){if(i){let n=Yl(e.aliasSymbol?e:s),r=Yl(t.aliasSymbol?t:c),i=Jv(s,0),a=Jv(s,1);i.length>0&&P(Uy(i[0]),c,1,!1)||a.length>0&&P(Uy(a[0]),c,1,!1)?ae(G.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):ae(G.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}ue(s,c);let d=s.flags&1048576&&s.types.length<4&&!(c.flags&1048576)||c.flags&1048576&&c.types.length<4&&!(s.flags&469499904)?he(s,c,i,o):Ee(s,c,i,o,r);if(d)return d}return i&&le(e,t,s,c,a),0}function le(e,t,n,i,a){let o=!!FA(e),s=!!FA(t);n=e.aliasSymbol||o?e:n,i=t.aliasSymbol||s?t:i;let c=x>0;if(c&&x--,n.flags&524288&&i.flags&524288){let e=l;se(n,i,!0),l!==e&&(c=!!l)}if(n.flags&524288&&i.flags&402784252)oe(n,i);else if(n.symbol&&n.flags&524288&&Cr===n)ae(G.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Wx(n)&2048&&i.flags&2097152){let e=i.types,t=zL(yB.IntrinsicAttributes,r),n=zL(yB.IntrinsicClassAttributes,r);if(!Yu(t)&&!Yu(n)&&(C(e,t)||C(e,n)))return}else l=Gv(l,t);if(!a&&c){let e=ne();N(a,n,i);let t;l&&l!==e.errorInfo&&(t={code:l.code,messageText:l.messageText}),ee(e),t&&l&&(l.canonicalHead=t),T=[n,i];return}if(N(a,n,i),n.flags&262144&&n.symbol?.declarations?.[0]&&!O_(n)){let e=KE(n);if(e.constraint=dD(i,PE(n,e)),lv(e)){let e=Yl(i,n.symbol.declarations[0]);M(mm(n.symbol.declarations[0],G.This_type_parameter_might_need_an_extends_0_constraint,e))}}}function ue(e,t){if(Ar&&e.flags&3145728&&t.flags&3145728){let n=e,i=t;if(n.objectFlags&i.objectFlags&32768)return;let a=n.types.length,o=i.types.length;a*o>1e6&&Ar.instant(Ar.Phase.CheckTypes,`traceUnionsOrIntersectionsTooLarge_DepthLimit`,{sourceId:e.id,sourceSize:a,targetId:t.id,targetSize:o,pos:r?.pos,end:r?.end})}}function de(e,t){return AC(Ge(e,(e,n)=>{n=Fv(n);let r=n.flags&3145728?Vv(n,t):f_(n,t);return I(e,r&&Jf(r)||ly(n,t)?.type||Xt)},void 0)||c)}function pe(e,t,i){if(!tR(t)||!ye&&Wx(t)&4096)return!1;let a=!!(Wx(e)&2048);if((n===Na||n===Pa)&&(xP(Cr,t)||!a&&QD(t)))return!1;let o=t,s;t.flags&1048576&&(o=lX(e,t,P)||cX(t),s=o.flags&1048576?o.types:[o]);for(let t of S_(e))if(me(t,e.symbol)&&!uO(e,t)){if(!eR(o,t.escapedName,a)){if(i){let n=TP(o,tR);if(!r)return H.fail();if(oj(r)||Jd(r)||Jd(r.parent)){t.valueDeclaration&&aj(t.valueDeclaration)&&Yf(r)===Yf(t.valueDeclaration.name)&&(r=t.valueDeclaration.name);let e=Hl(t),i=BR(e,n),a=i?Hl(i):void 0;a?ae(G.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,Yl(n),a):ae(G.Property_0_does_not_exist_on_type_1,e,Yl(n))}else{let i=e.symbol?.declarations&&Pe(e.symbol.declarations),a;if(t.valueDeclaration&&K(t.valueDeclaration,e=>e===i)&&Yf(i)===Yf(r)){let e=t.valueDeclaration;H.assertNode(e,qu);let i=e.name;r=i,Y(i)&&(a=VR(i,n))}a===void 0?j(G.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Hl(t),Yl(n)):j(G.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Hl(t),Yl(n),a)}}return!0}if(s&&!P(Jf(t),de(s,t.escapedName),3,i))return i&&re(G.Types_of_property_0_are_incompatible,Hl(t)),!0}return!1}function me(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function he(e,t,r,i){if(e.flags&1048576){if(t.flags&1048576){let n=e.origin;if(n&&n.flags&2097152&&t.aliasSymbol&&C(n.types,t))return-1;let r=t.origin;if(r&&r.flags&1048576&&e.aliasSymbol&&C(r.types,e))return-1}return n===Pa?be(e,t,r&&!(e.flags&402784252),i):Ce(e,t,r&&!(e.flags&402784252),i)}if(t.flags&1048576)return _e(gM(e),t,r&&!(e.flags&402784252)&&!(t.flags&402784252),i);if(t.flags&2097152)return ve(e,t,r,2);if(n===Pa&&t.flags&402784252){let n=te(e.types,e=>e.flags&465829888?ov(e)||Yt:e);if(n!==e.types){if(e=HC(n),e.flags&131072)return 0;if(!(e.flags&2097152))return P(e,t,1,!1)||P(t,e,1,!1)}}return be(e,t,!1,1)}function ge(e,t){let n=-1,r=e.types;for(let e of r){let r=_e(e,t,!1,0);if(!r)return 0;n&=r}return n}function _e(e,t,r,i){let a=t.types;if(t.flags&1048576){if(bC(a,e))return-1;if(n!==Pa&&Wx(t)&32768&&!(e.flags&1024)&&(e.flags&2688||(n===ja||n===Ma)&&e.flags&256)){let t=e===e.regularType?e.freshType:e.regularType,n=e.flags&128?rn:e.flags&256?on:e.flags&2048?sn:void 0;return n&&bC(a,n)||t&&bC(a,t)?-1:0}let r=BN(t,e);if(r){let t=P(e,r,2,!1,void 0,i);if(t)return t}}for(let t of a){let n=P(e,t,2,!1,void 0,i);if(n)return n}if(r){let n=xO(e,t,P);n&&P(e,n,2,!0,void 0,i)}return 0}function ve(e,t,n,r){let i=-1,a=t.types;for(let t of a){let a=P(e,t,2,n,void 0,r);if(!a)return 0;i&=a}return i}function be(e,t,n,r){let i=e.types;if(e.flags&1048576&&bC(i,t))return-1;let a=i.length;for(let e=0;e=o.types.length&&a.length%o.types.length===0){let t=P(s,o.types[e%o.types.length],3,!1,void 0,r);if(t){i&=t;continue}}let c=P(s,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}function Te(e=c,t=c,r=c,i,a){if(e.length!==t.length&&n===Fa)return 0;let o=e.length<=t.length?e.length:t.length,s=-1;for(let c=0;c(w|=e?16:8,C(e)));let T;return y===3?((o=Ar)==null||o.instant(Ar.Phase.CheckTypes,`recursiveTypeRelatedTo_DepthLimit`,{sourceId:e.id,sourceIdStack:m.map(e=>e.id),targetId:t.id,targetIdStack:h.map(e=>e.id),depth:_,targetDepth:v}),T=3):((s=Ar)==null||s.push(Ar.Phase.CheckTypes,`structuredTypeRelatedTo`,{sourceId:e.id,targetId:t.id}),T=Oe(e,t,r,i),(c=Ar)==null||c.pop()),In&&=C,a&1&&_--,a&2&&v--,y=S,T?(T===-1||_===0&&v===0)&&E(T===-1||T===3):(n.set(l,2|w),D--,E(!1)),T;function E(e){for(let t=d;tt!==e)&&(o=P(n,t,1,!1,void 0,i))}o&&!(i&2)&&t.flags&2097152&&!Vw(t)&&e.flags&2621440?(o&=ze(e,t,r,void 0,!1,0),o&&bN(e)&&Wx(e)&8192&&(o&=Ye(e,t,!1,r,0))):o&&rE(t)&&!_A(t)&&e.flags&2097152&&Fv(e).flags&3670016&&!F(e.types,e=>e===t||!!(Wx(e)&262144))&&(o&=ze(e,t,r,void 0,!0,i))}return o&&ee(a),o}function ke(e,t){let n=Fv(qg(t)),r=[];return kg(n,8576,!1,n=>void r.push(dD(e,WE(t.mapper,Pg(t),n)))),AC(r)}function Ae(e,t,r,i,a){let o,s,u=!1,d=e.flags,f=t.flags;if(n===Fa){if(d&3145728){let n=ge(e,t);return n&&(n&=ge(t,e)),n}if(d&4194304)return P(e.type,t.type,3,!1);if(d&8388608&&(o=P(e.objectType,t.objectType,3,!1))&&(o&=P(e.indexType,t.indexType,3,!1))||d&16777216&&e.root.isDistributive===t.root.isDistributive&&(o=P(e.checkType,t.checkType,3,!1))&&(o&=P(e.extendsType,t.extendsType,3,!1))&&(o&=P(UT(e),UT(t),3,!1))&&(o&=P(KT(e),KT(t),3,!1))||d&33554432&&(o=P(e.baseType,t.baseType,3,!1))&&(o&=P(e.constraint,t.constraint,3,!1)))return o;if(d&134217728&&xe(e.texts,t.texts)){let n=e.types,r=t.types;o=-1;for(let e=0;e!!(e.flags&262144));){if(o=P(n,t,1,!1))return o;n=A_(n)}return 0}}else if(f&4194304){let n=t.type;if(d&4194304&&(o=P(n,e.type,3,!1)))return o;if(Ej(n)){if(o=P(e,uC(n),2,r))return o}else{let i=Z_(n);if(i){if(P(e,iw(i,t.indexFlags|4),2,r)===-1)return-1}else if(a_(n)){let t=Ig(n),i=Fg(n),a;if(a=t&&Kg(n)?AC([ke(t,n),t]):t||i,P(e,a,2,r)===-1)return-1}}}else if(f&8388608){if(d&8388608){if((o=P(e.objectType,t.objectType,3,r))&&(o&=P(e.indexType,t.indexType,3,r)),o)return o;r&&(s=l)}if(n===Na||n===Pa){let n=t.objectType,c=t.indexType,u=ov(n)||n,d=ov(c)||c;if(!Vw(u)&&!Hw(d)){let t=gT(u,d,4|(u===n?0:2));if(t){if(r&&s&&ee(a),o=P(e,t,2,r,void 0,i))return o;r&&s&&l&&(l=p([s])<=p([l])?s:l)}}}r&&(s=void 0)}else if(a_(t)&&n!==Fa){let n=!!t.declaration.nameType,i=Vg(t),c=Zg(t);if(!(c&8)){if(!n&&i.flags&8388608&&i.objectType===e&&i.indexType===Pg(t))return-1;if(!a_(e)){let i=n?Ig(t):Fg(t),u=iw(e,2),d=c&4,f=d?Vh(i,u):void 0;if(d?!(f.flags&131072):P(i,u,3)){let a=Vg(t),s=Pg(t),c=MP(a,-98305);if(!n&&c.flags&8388608&&c.indexType===s){if(o=P(e,c.objectType,2,r))return o}else{let t=n?f||i:f?HC([f,s]):s;if(o=P(sT(e,t),a,3,r))return o}}s=l,ee(a)}}}else if(f&16777216){if(Vk(t,h,v,10))return 3;let n=t;if(!n.root.inferTypeParameters&&!YT(n.root)&&!(e.flags&16777216&&e.root===n.root)){let t=!MD(hD(n.checkType),hD(n.extendsType)),r=!t&&MD(gD(n.checkType),gD(n.extendsType));if((o=t?-1:P(e,UT(n),2,!1,void 0,i))&&(o&=r?-1:P(e,KT(n),2,!1,void 0,i),o))return o}}else if(f&134217728){if(d&134217728){if(n===Pa)return fN(e,t)?0:-1;dD(e,Ln)}if(_N(e,t))return-1}else if(t.flags&268435456&&!(e.flags&268435456)&&mN(e,t))return-1;if(d&8650752){if(!(d&8388608&&f&8388608)){let n=O_(e)||Yt;if((o=P(n,t,1,!1,void 0,i))||(o=P(Km(n,e),t,1,r&&n!==Yt&&!(f&d&262144),void 0,i)))return o;if(Pv(e)){let n=O_(e.indexType);if(n&&(o=P(sT(e.objectType,n),t,1,r)))return o}}}else if(d&4194304){let n=rw(e.type,e.indexFlags)&&Wx(e.type)&32;if(o=P(On,t,1,r&&!n))return o;if(n){let n=e.type,i=Ig(n);if(o=P(i&&Kg(n)?ke(i,n):i||Fg(n),t,1,r))return o}}else if(d&134217728&&!(f&524288)){if(!(f&134217728)){let n=ov(e);if(n&&n!==e&&(o=P(n,t,1,r)))return o}}else if(d&268435456)if(f&268435456){if(e.symbol!==t.symbol)return 0;if(o=P(e.type,t.type,3,r))return o}else{let n=ov(e);if(n&&(o=P(n,t,1,r)))return o}else if(d&16777216){if(Vk(e,m,_,10))return 3;if(f&16777216){let n=e.root.inferTypeParameters,i=e.extendsType,a;if(n){let e=AM(n,void 0,0,ce);yN(e.inferences,t.extendsType,i,1536),i=dD(i,e.mapper),a=e.mapper}if(ED(i,t.extendsType)&&(P(e.checkType,t.checkType,3)||P(t.checkType,e.checkType,3))&&((o=P(dD(UT(e),a),UT(t),3,r))&&(o&=P(KT(e),KT(t),3,r)),o))return o}let n=ev(e);if(n&&(o=P(n,t,1,r)))return o;let i=!(f&16777216)&&lv(e)?tv(e):void 0;if(i&&(ee(a),o=P(i,t,1,r)))return o}else{if(n!==ja&&n!==Ma&&i_(t)&&QD(e))return-1;if(a_(t))return a_(e)&&(o=je(e,t,r))?o:0;let p=!!(d&402784252);if(n!==Fa)e=Fv(e),d=e.flags;else if(a_(e))return 0;if(Wx(e)&4&&Wx(t)&4&&e.target===t.target&&!Ej(e)&&!(jO(e)||jO(t))){if(RA(e))return-1;let n=TO(e.target);if(n===c)return 1;let r=g(ex(e),ex(t),n,i);if(r!==void 0)return r}else if(gA(t)?wP(e,_A):hA(t)&&wP(e,e=>Ej(e)&&!e.target.readonly))return n===Fa?0:P(ay(e,on)||Vt,ay(t,on)||Vt,3,r);else if(kj(e)&&Ej(t)&&!kj(t)){let n=sv(e);if(n!==e)return P(n,t,1,r)}else if((n===ja||n===Ma)&&QD(t)&&Wx(t)&8192&&!QD(e))return 0;if(d&2621440&&f&524288){let n=r&&l===a.errorInfo&&!p;if(o=ze(e,t,n,void 0,!1,i),o&&(o&=Ve(e,t,0,n,i),o&&(o&=Ve(e,t,1,n,i),o&&(o&=Ye(e,t,p,n,i)))),u&&o)l=s||l||a.errorInfo;else if(o)return o}if(d&2621440&&f&1048576){let n=MP(t,36175872);if(n.flags&1048576){let t=Me(e,n);if(t)return t}}}return 0;function p(e){return e?Ge(e,(e,t)=>e+1+p(t.next),0):0}function g(e,t,n,i){if(o=Te(e,t,n,r,i))return o;if(F(n,e=>!!(e&24))){s=void 0,ee(a);return}let d=t&&ak(t,n);if(u=!d,n!==c&&!d){if(u&&!(r&&F(n,e=>(e&7)==0)))return 0;s=l,ee(a)}}}function je(e,t,r){if(n===Pa||(n===Fa?Zg(e)===Zg(t):r_(e)<=r_(t))){let n;if(n=P(Fg(t),dD(Fg(e),r_(e)<0?Rn:Ln),3,r)){let i=ME([Pg(e)],[Pg(t)]);if(dD(Ig(e),i)===dD(Ig(t),i))return n&P(dD(Vg(e),i),Vg(t),3,r)}}return 0}function Me(e,t){var r;let i=LN(S_(e),t);if(!i)return 0;let a=1;for(let n of i)if(a*=DP($f(n)),a>25)return(r=Ar)==null||r.instant(Ar.Phase.CheckTypes,`typeRelatedToDiscriminatedType_DepthLimit`,{sourceId:e.id,targetId:t.id,numCombinations:a}),0;let o=Array(i.length),s=new Set;for(let e=0;er[a],!1,0,fe||n===Pa))continue outer}De(l,o,Mt),a=!0}if(!a)return 0}let u=-1;for(let t of l)if(u&=ze(e,t,!1,s,!1,0),u&&(u&=Ve(e,t,0,!1,0),u&&(u&=Ve(e,t,1,!1,0),u&&!(Ej(e)&&Ej(t))&&(u&=Ye(e,t,!1,!1,0)))),!u)return u;return u}function Ne(e,t){if(!t||e.length===0)return e;let n;for(let r=0;r5?ae(G.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Yl(e),Yl(t),k(o.slice(0,4),e=>Hl(e)).join(`, `),o.length-4):ae(G.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Yl(e),Yl(t),k(o,e=>Hl(e)).join(`, `)),a&&l&&x++)}function ze(e,t,r,i,a,o){if(n===Fa)return Be(e,t,i);let s=-1;if(Ej(t)){if(_A(e)){if(!t.target.readonly&&(gA(e)||Ej(e)&&e.target.readonly))return 0;let n=tx(e),a=tx(t),c=Ej(e)?e.target.combinedFlags&4:4,l=!!(t.target.combinedFlags&12),u=Ej(e)?e.target.minLength:0,d=t.target.minLength;if(!c&&n=m?a-1-Math.min(d,h):c,v=t.target.elementFlags[_];if(v&8&&!(u&8))return r&&ae(G.Source_provides_no_match_for_variadic_element_at_position_0_in_target,_),0;if(u&8&&!(v&12))return r&&ae(G.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,c,_),0;if(v&1&&!(u&1))return r&&ae(G.Source_provides_no_match_for_required_element_at_position_0_in_target,_),0;if(g&&((u&12||v&12)&&(g=!1),g&&i?.has(``+c)))continue;let y=cM(f[c],!!(u&v&2)),b=p[_],x=P(y,u&8&&v&4?PS(b):cM(b,!!(v&2)),3,r,void 0,o);if(!x)return r&&(a>1||n>1)&&(l&&c>=m&&d>=h&&m!==n-h-1?re(G.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,m,n-h-1,_):re(G.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,c,_)),0;s&=x}return s}if(t.target.combinedFlags&12)return 0}let c=(n===ja||n===Ma)&&!bN(e)&&!RA(e)&&!Ej(e),l=iN(e,t,c,!1);if(l)return r&&He(e,t)&&Re(e,t,l,c),0;if(bN(t)){for(let n of Ne(S_(e),i))if(!f_(t,n.escapedName)&&!(Jf(n).flags&32768))return r&&ae(G.Property_0_does_not_exist_on_type_1,Hl(n),Yl(t)),0}let u=S_(t),d=Ej(e)&&Ej(t);for(let c of Ne(u,i)){let i=c.escapedName;if(!(c.flags&4194304)&&(!d||cT(i)||i===`length`)&&(!a||c.flags&16777216)){let a=Kv(e,i);if(a&&a!==c){let i=Le(e,t,a,c,$f,r,o,n===Pa);if(!i)return 0;s&=i}}}return s}function Be(e,t,n){if(!(e.flags&524288&&t.flags&524288))return 0;let r=Ne(d_(e),n),i=Ne(d_(t),n);if(r.length!==i.length)return 0;let a=-1;for(let e of r){let n=f_(t,e.escapedName);if(!n)return 0;let r=Qk(e,n,P);if(!r)return 0;a&=r}return a}function Ve(e,t,r,i,a){if(n===Fa)return Ke(e,t,r);if(t===qn||e===qn)return-1;let o=e.symbol&&kB(e.symbol.valueDeclaration),s=t.symbol&&kB(t.symbol.valueDeclaration),c=Jv(e,o&&r===1?0:r),l=Jv(t,s&&r===1?0:r);if(r===1&&c.length&&l.length){let e=!!(c[0].flags&4),t=!!(l[0].flags&4);if(e&&!t)return i&&ae(G.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Qe(c[0],l[0],i))return 0}let u=-1,d=r===1?We:Ue,f=Wx(e),p=Wx(t);if(f&64&&p&64&&e.symbol===t.symbol||f&4&&p&4&&e.target===t.target){H.assertEqual(c.length,l.length);for(let e=0;eUl(e,void 0,262144,r);return ae(G.Type_0_is_not_assignable_to_type_1,e(t),e(o)),ae(G.Types_of_construct_signatures_are_incompatible),u}}else outer:for(let t of l){let n=ne(),o=i;for(let e of c){let r=L(e,t,!0,o,a,d(e,t));if(r){u&=r,ee(n);continue outer}o=!1}return o&&ae(G.Type_0_provides_no_match_for_the_signature_1,Yl(e),Ul(t,void 0,void 0,r)),0}return u}function He(e,t){let n=qv(e,0),r=qv(e,1),i=d_(e);return(n.length||r.length)&&!i.length?!!(Jv(t,0).length&&n.length||Jv(t,1).length&&r.length):!0}function Ue(e,t){return e.parameters.length===0&&t.parameters.length===0?(e,t)=>re(G.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Yl(e),Yl(t)):(e,t)=>re(G.Call_signature_return_types_0_and_1_are_incompatible,Yl(e),Yl(t))}function We(e,t){return e.parameters.length===0&&t.parameters.length===0?(e,t)=>re(G.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Yl(e),Yl(t)):(e,t)=>re(G.Construct_signature_return_types_0_and_1_are_incompatible,Yl(e),Yl(t))}function L(e,t,r,i,a,o){let s=n===ja?16:n===Ma?24:0;return YD(r?db(e):e,r?db(t):t,s,i,ae,o,c,Ln);function c(e,t,n){return P(e,t,3,n,void 0,a)}}function Ke(e,t,n){let r=Jv(e,n),i=Jv(t,n);if(r.length!==i.length)return 0;let a=-1;for(let e=0;ee.keyType===rn),c=-1;for(let t of o){let o=n!==Ma&&!r&&s&&t.type.flags&1?-1:a_(e)&&s?P(Vg(e),t.type,3,i):Xe(e,t,i,a);if(!o)return 0;c&=o}return c}function Xe(e,t,r,i){let a=cy(e,t.keyType);return a?Je(a,t,r,i):!(i&1)&&(n!==Ma||Wx(e)&8192)&&fM(e)?qe(e,t,r,i):(r&&ae(G.Index_signature_for_type_0_is_missing_in_type_1,Yl(t.keyType),Yl(e)),0)}function Ze(e,t){let n=ty(e),r=ty(t);if(n.length!==r.length)return 0;for(let t of r){let n=ny(e,t.keyType);if(!(n&&P(n.type,t.type,3)&&n.isReadonly===t.isReadonly))return 0}return-1}function Qe(e,t,n){if(!e.declaration||!t.declaration)return!0;let r=sb(e.declaration,6),i=sb(t.declaration,6);return i===2||i===4&&r!==2||i!==4&&!r?!0:(n&&ae(G.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,uu(r),uu(i)),!1)}}function gO(e){if(e.flags&16)return!1;if(e.flags&3145728)return!!d(e.types,gO);if(e.flags&465829888){let t=O_(e);if(t&&t!==e)return gO(t)}return YA(e)||!!(e.flags&134217728)||!!(e.flags&268435456)}function _O(e,t){return Ej(e)&&Ej(t)?c:S_(t).filter(t=>yO(Wu(e,t.escapedName),Jf(t)))}function yO(e,t){return!!e&&!!t&&lH(e,32768)&&!!lM(t)}function bO(e){return S_(e).filter(e=>lM(Jf(e)))}function xO(e,t,n=OD){return lX(e,t,n)||iX(e,t)||aX(e,t)||oX(e,t)||sX(e,t)}function SO(e,t,n){let r=e.types,i=r.map(e=>e.flags&402784252?0:-1);for(let[e,a]of t){let t=!1;for(let o=0;o!!n(e,s))?t=!0:i[o]=3)}for(let e=0;ei[t]),0):e;return a.flags&131072?e:a}function CO(e){if(e.flags&524288){let t=u_(e);return t.callSignatures.length===0&&t.constructSignatures.length===0&&t.indexInfos.length===0&&t.properties.length>0&&v(t.properties,e=>!!(e.flags&16777216))}return e.flags&33554432?CO(e.baseType):e.flags&2097152?v(e.types,CO):!1}function wO(e,t,n){for(let r of S_(e))if(eR(t,r.escapedName,n))return!0;return!1}function TO(e){return e===Dr||e===Or||e.objectFlags&8?ae:DO(e.symbol,e.typeParameters)}function EO(e){return DO(e,wo(e).typeParameters)}function DO(e,t=c){var n,r;let i=wo(e);if(!i.variances){(n=Ar)==null||n.push(Ar.Phase.CheckTypes,`getVariancesWorker`,{arity:t.length,id:yC(Kp(e))});let a=ra,o=na;ra||(ra=!0,na=$i.length),i.variances=c;let s=[];for(let n of t){let t=ek(n),r=t&16384?t&8192?0:1:t&8192?2:void 0;if(r===void 0){let t=!1,i=!1,a=In;In=e=>e?i=!0:t=!0;let o=kO(e,n,Zn),s=kO(e,n,Qn);r=(MD(s,o)?1:0)|(MD(o,s)?2:0),r===3&&MD(kO(e,n,$n),o)&&(r=4),In=a,(t||i)&&(t&&(r|=8),i&&(r|=16))}s.push(r)}a||(ra=!1,na=o),i.variances=s,(r=Ar)==null||r.pop({variances:s.map(H.formatVariance)})}return i.variances}function kO(e,t,n){let r=PE(t,n),i=Kp(e);if(Yu(i))return i;let a=e.flags&524288?rx(e,AE(wo(e).typeParameters,r)):Zb(i,AE(i.typeParameters,r));return Pt.add(yC(a)),a}function jO(e){return Pt.has(yC(e))}function ek(e){return Ge(e.symbol?.declarations,(e,t)=>e|ub(t),0)&28672}function ak(e,t){for(let n=0;n!!(e.flags&262144)||uk(e))}function pk(e,t,n,r){let i=[],a=``,o=c(e,0),s=c(t,0);return`${a}${o},${s}${n}`;function c(e,t=0){let n=``+e.target.id;for(let o of ex(e)){if(o.flags&262144){if(r||ok(o)){let e=i.indexOf(o);e<0&&(e=i.length,i.push(o)),n+=`=`+e;continue}a=`*`}else if(t<4&&uk(o)){n+=`<`+c(o,t+1)+`>`;continue}n+=`-`+o.id}return n}}function gk(e,t,n,r,i){if(r===Fa&&e.id>t.id){let n=e;e=t,t=n}let a=n?`:`+n:``;return uk(e)&&uk(t)?pk(e,t,a,i):`${e.id},${t.id}${a}`}function _k(e,t){if(jx(e)&6){for(let n of e.links.containingType.types){let r=Kv(n,e.escapedName),i=r&&_k(r,t);if(i)return i}return}return t(e)}function Ok(e){return e.parent&&e.parent.flags&32?Kp(Ec(e)):void 0}function Mk(e){let t=Ok(e),n=t&&bp(t)[0];return n&&Wu(n,e.escapedName)}function Pk(e,t){return _k(e,e=>{let n=Ok(e);return n?ap(n,t):!1})}function Lk(e,t){return!_k(t,t=>Mx(t)&4?!Pk(e,Ok(t)):!1)}function Bk(e,t,n){return _k(t,t=>Mx(t,n)&4?!ap(e,Ok(t)):!1)?void 0:e}function Vk(e,t,n,r=3){if(n>=r){if((Wx(e)&96)==96&&(e=Kk(e)),e.flags&2097152)return F(e.types,e=>Vk(e,t,n,r));let i=Xk(e),a=0,o=0;for(let e=0;e=o&&(a++,a>=r))return!0;o=n.id}}}return!1}function Kk(e){let t;for(;(Wx(e)&96)==96&&(t=qg(e))&&(t.symbol||t.flags&2097152&&F(t.types,e=>!!e.symbol));)e=t;return e}function qk(e,t){return(Wx(e)&96)==96&&(e=Kk(e)),e.flags&2097152?F(e.types,e=>qk(e,t)):Xk(e)===t}function Xk(e){if(e.flags&524288&&!xN(e)){if(Wx(e)&4&&e.node)return e.node;if(e.symbol&&!(Wx(e)&16&&e.symbol.flags&32))return e.symbol;if(Ej(e))return e.target}if(e.flags&262144)return e.symbol;if(e.flags&8388608){do e=e.objectType;while(e.flags&8388608);return e}return e.flags&16777216?e.root:e}function Zk(e,t){return Qk(e,t,DD)!==0}function Qk(e,t,n){if(e===t)return-1;let r=Mx(e)&6;if(r!==(Mx(t)&6))return 0;if(r){if(IK(e)!==IK(t))return 0}else if((e.flags&16777216)!=(t.flags&16777216))return 0;return $V(e)===$V(t)?n(Jf(e),Jf(t)):0}function eA(e,t,n){let r=dV(e),i=dV(t),a=fV(e),o=fV(t),s=mV(e),c=mV(t);return!!(r===i&&a===o&&s===c||n&&a<=o)}function rA(e,t,n,r,i,a){if(e===t)return-1;if(!eA(e,t,n)||u(e.typeParameters)!==u(t.typeParameters))return 0;if(t.typeParameters){let n=ME(e.typeParameters,t.typeParameters);for(let r=0;re|(t.flags&1048576?dA(t.types):t.flags),0)}function fA(e){if(e.length===1)return e[0];let t=fe?te(e,e=>TP(e,e=>!(e.flags&98304))):e,n=sA(t)?AC(t):pA(t);return t===e?n:qj(n,dA(e)&98304)}function pA(e){let t=Ge(e,(e,t)=>jD(e,t)?t:e);return v(e,e=>e===t||jD(e,t))?t:Ge(e,(e,t)=>AD(e,t)?t:e)}function mA(e){return Ge(e,(e,t)=>AD(t,e)?t:e)}function hA(e){return!!(Wx(e)&4)&&(e.target===Dr||e.target===Or)}function gA(e){return!!(Wx(e)&4)&&e.target===Or}function _A(e){return hA(e)||Ej(e)}function vA(e){return hA(e)&&!gA(e)||Ej(e)&&!e.target.readonly}function yA(e){return hA(e)?ex(e)[0]:void 0}function kA(e){return hA(e)||!(e.flags&98304)&&MD(e,Lr)}function PA(e){return vA(e)||!(e.flags&98305)&&MD(e,Fr)}function FA(e){if(!(Wx(e)&4)||!(Wx(e.target)&3))return;if(Wx(e)&33554432)return Wx(e)&67108864?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;let t=e.target;if(Wx(t)&1){let e=pp(t);if(e&&e.expression.kind!==80&&e.expression.kind!==212)return}let n=bp(t);if(n.length!==1||Wm(e.symbol).size)return;let r=u(t.typeParameters)?dD(n[0],ME(t.typeParameters,ex(e).slice(0,t.typeParameters.length))):n[0];return u(ex(e))>u(t.typeParameters)&&(r=Km(r,ze(ex(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function IA(e){return fe?e===wn:e===Zt}function RA(e){let t=yA(e);return!!t&&IA(t)}function zA(e){let t;return Ej(e)||!!Kv(e,`0`)||kA(e)&&!!(t=Wu(e,`length`))&&wP(t,e=>!!(e.flags&256))}function VA(e){return kA(e)||zA(e)}function qA(e,t){let n=Wu(e,``+t);if(n)return n;if(wP(e,Ej))return Lj(e,t,A.noUncheckedIndexedAccess?Xt:void 0)}function JA(e){return!(e.flags&240544)}function YA(e){return!!(e.flags&109472)}function XA(e){let t=sv(e);return t.flags&2097152?F(t.types,YA):YA(t)}function tj(e){return e.flags&2097152&&y(e.types,YA)||e}function ij(e){return e.flags&16?!0:e.flags&1048576?e.flags&1024?!0:v(e.types,YA):YA(e)}function cj(e){return e.flags&1056?Pp(e):e.flags&402653312?rn:e.flags&256?on:e.flags&2048?sn:e.flags&512?hn:e.flags&1048576?uj(e):e}function uj(e){let t=`B${yC(e)}`;return za(t)??Ba(t,AP(e,cj))}function dj(e){return e.flags&402653312?rn:e.flags&288?on:e.flags&2048?sn:e.flags&512?hn:e.flags&1048576?AP(e,dj):e}function yj(e){return e.flags&1056&&mE(e)?Pp(e):e.flags&128&&mE(e)?rn:e.flags&256&&mE(e)?on:e.flags&2048&&mE(e)?sn:e.flags&512&&mE(e)?hn:e.flags&1048576?AP(e,yj):e}function Cj(e){return e.flags&8192?gn:e.flags&1048576?AP(e,Cj):e}function wj(e,t){return KH(e,t)||(e=Cj(yj(e))),pE(e)}function hte(e,t,n){if(e&&YA(e)){let r=t?n?tW(t):t:void 0;e=wj(e,r)}return e}function Tj(e,t,n,r){if(e&&YA(e)){let i=t?aK(n,t,r):void 0;e=wj(e,i)}return e}function Ej(e){return!!(Wx(e)&4&&e.target.objectFlags&8)}function kj(e){return Ej(e)&&!!(e.target.combinedFlags&8)}function Mj(e){return kj(e)&&e.target.elementFlags.length===1}function Nj(e){return Bj(e,e.target.fixedLength)}function Lj(e,t,n){return AP(e,e=>{let r=e,i=Nj(r);return i?n&&t>=pC(r.target)?AC([i,n]):i:Xt})}function Rj(e){let t=Nj(e);return t&&PS(t)}function Bj(e,t,n=0,r=!1,i=!1){let a=tx(e)-n;if(t(e&12)==(t.target.elementFlags[n]&12))}function Hj({value:e}){return e.base10Value===`0`}function Uj(e){return TP(e,e=>XN(e,4194304))}function Wj(e){return AP(e,Kj)}function Kj(e){return e.flags&4?Xi:e.flags&8?Zi:e.flags&64?Qi:e===ln||e===cn||e.flags&114691||e.flags&128&&e.value===``||e.flags&256&&e.value===0||e.flags&2048&&Hj(e)?e:V}function qj(e,t){let n=t&~e.flags&98304;return n===0?e:AC(n===32768?[e,Xt]:n===65536?[e,tn]:[e,Xt,tn])}function Jj(e,t=!1){H.assert(fe);let n=t?$t:Xt;return e===n||e.flags&1048576&&e.types[0]===n?e:AC([e,n])}function Xj(e){return Rr||=Ax(`NonNullable`,524288,void 0)||Ft,Rr===Ft?HC([e,zn]):rx(Rr,[e])}function Qj(e){return fe?$N(e,2097152):e}function tM(e){return fe?AC([e,en]):e}function rM(e){return fe?EP(e,en):e}function aM(e,t,n){return n?Jl(t)?Jj(e):tM(e):e}function sM(e,t){return ql(t)?Qj(e):Gl(t)?rM(e):e}function cM(e,t){return we&&t?EP(e,B):e}function lM(e){return e===B||!!(e.flags&1048576)&&e.types[0]===B}function uM(e){return we?EP(e,B):QN(e,524288)}function dM(e,t){return(e.flags&524)!=0&&(t.flags&28)!=0}function fM(e){let t=Wx(e);return e.flags&2097152?v(e.types,fM):!!(e.symbol&&e.symbol.flags&7040&&!(e.symbol.flags&32)&&!lJ(e))||!!(t&4194304)||!!(t&1024&&fM(e.source))}function mM(e,t){let n=lo(e.flags,e.escapedName,jx(e)&8);n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);let r=wo(e).nameType;return r&&(n.links.nameType=r),n}function hM(e,t){let n=Cf();for(let r of d_(e)){let e=Jf(r),i=t(e);n.set(r.escapedName,i===e?r:mM(r,i))}return n}function gM(e){if(!(bN(e)&&Wx(e)&8192))return e;let t=e.regularType;if(t)return t;let n=e,r=hM(e,gM),i=pl(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=n.objectFlags&-8193,e.regularType=i,i}function _M(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function vM(e){if(!e.siblings){let t=[];for(let n of vM(e.parent))if(bN(n)){let r=f_(n,e.propertyName);r&&SP(Jf(r),e=>{t.push(e)})}e.siblings=t}return e.siblings}function yM(e){if(!e.resolvedProperties){let t=new Map;for(let n of vM(e))if(bN(n)&&!(Wx(n)&2097152))for(let e of S_(n))t.set(e.escapedName,e);e.resolvedProperties=$e(t.values())}return e.resolvedProperties}function bM(e,t){if(!(e.flags&4))return e;let n=Jf(e),r=wM(n,t&&_M(t,e.escapedName,void 0));return r===n?e:mM(e,r)}function xM(e){let t=Nt.get(e.escapedName);if(t)return t;let n=mM(e,$t);return n.flags|=16777216,Nt.set(e.escapedName,n),n}function SM(e,t){let n=Cf();for(let r of d_(e))n.set(r.escapedName,bM(r,t));if(t)for(let e of yM(t))n.has(e.escapedName)||n.set(e.escapedName,xM(e));let r=pl(e.symbol,n,c,c,te(ty(e),e=>xb(e.keyType,CM(e.type),e.isReadonly,e.declaration,e.components)));return r.objectFlags|=Wx(e)&266240,r}function CM(e){return wM(e,void 0)}function wM(e,t){if(Wx(e)&196608){if(t===void 0&&e.widened)return e.widened;let n;if(e.flags&98305)n=Vt;else if(bN(e))n=SM(e,t);else if(e.flags&1048576){let r=t||_M(void 0,void 0,e.types),i=te(e.types,e=>e.flags&98304?e:wM(e,r));n=AC(i,F(i,QD)?2:1)}else e.flags&2097152?n=HC(te(e.types,CM)):_A(e)&&(n=Zb(e.target,te(ex(e),CM)));return n&&t===void 0&&(e.widened=n),n||e}return e}function TM(e){let t=!1;if(Wx(e)&65536){if(e.flags&1048576)if(F(e.types,QD))t=!0;else for(let n of e.types)t||=TM(n);else if(_A(e))for(let n of ex(e))t||=TM(n);else if(bN(e))for(let n of d_(e)){let r=Jf(n);if(Wx(r)&65536&&(t=TM(r),!t)){let i=n.declarations?.find(t=>t.symbol.valueDeclaration?.parent===e.symbol.valueDeclaration);i&&(U(i,G.Object_literal_s_property_0_implicitly_has_an_1_type,Hl(n),Yl(CM(r))),t=!0)}}}return t}function EM(e,t,n){let r=Yl(CM(t));if(ng(e)&&!Cw(Yf(e),A))return;let i;switch(e.kind){case 227:case 173:case 172:i=ye?G.Member_0_implicitly_has_an_1_type:G.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 170:let t=e;if(Y(t.name)){let n=Kc(t.name);if((GO(t.parent)||zO(t.parent)||XO(t.parent))&&t.parent.parameters.includes(t)&&(rt(t,t.name.escapedText,788968,void 0,!0)||n&&Xx(n))){let n=`arg`+t.parent.parameters.indexOf(t),r=lm(t.name)+(t.dotDotDotToken?`[]`:``);to(ye,e,G.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r);return}}i=e.dotDotDotToken?ye?G.Rest_parameter_0_implicitly_has_an_any_type:G.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ye?G.Parameter_0_implicitly_has_an_1_type:G.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 209:if(i=G.Binding_element_0_implicitly_has_an_1_type,!ye)return;break;case 318:U(e,G.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);return;case 324:ye&&Gj(e.parent)&&U(e.parent.tagName,G.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r);return;case 263:case 175:case 174:case 178:case 179:case 219:case 220:if(ye&&!e.name){n===3?U(e,G.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation,r):U(e,G.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);return}i=ye?n===3?G._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:G._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:G._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:ye&&U(e,G.Mapped_object_type_implicitly_has_an_any_template_type);return;default:i=ye?G.Variable_0_implicitly_has_an_1_type:G.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}to(ye,e,i,lm(el(e)),r)}function gte(e,t){let n=mL(e);if(!n)return!0;let r=Uy(n),i=cv(e);switch(t){case 1:return i&1?r=aK(1,r,!!(i&2))??r:i&2&&(r=uW(r)??r),Lw(r);case 3:let e=aK(0,r,!!(i&2));return!!e&&Lw(e);case 2:let t=aK(2,r,!!(i&2));return!!t&&Lw(t)}return!1}function DM(e,t,r){n(()=>{ye&&Wx(t)&65536&&(!r||Nu(e)&>e(e,r))&&(TM(t)||EM(e,t,r))})}function OM(e,t,n){let r=dV(e),i=dV(t),a=hV(e),o=hV(t),s=o?i-1:i,c=a?s:Math.min(r,s),l=Fy(e);if(l){let e=Fy(t);e&&n(l,e)}for(let r=0;re.typeParameter),k(e.inferences,(t,n)=>()=>(t.isFixed||=(UM(e),zM(e.inferences),!0),SN(e,n))))}function FM(e){return IE(k(e.inferences,e=>e.typeParameter),k(e.inferences,(t,n)=>()=>SN(e,n)))}function zM(e){for(let t of e)t.isFixed||(t.inferredType=void 0)}function HM(e,t,n){(e.intraExpressionInferenceSites??=[]).push({node:t,type:n})}function UM(e){if(e.intraExpressionInferenceSites){for(let{node:t,type:n}of e.intraExpressionInferenceSites){let r=t.kind===175?PI(t,2):KI(t,2);r&&yN(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}function WM(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function GM(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function _te(e){let t=E(e.inferences,$H);return t.length?MM(k(t,GM),e.signature,e.flags,e.compareTypes):void 0}function KM(e){return e&&e.mapper}function qM(e){let t=Wx(e);if(t&524288)return!!(t&1048576);let n=!!(e.flags&465829888||e.flags&524288&&!JM(e)&&(t&4&&(e.node||F(ex(e),qM))||t&16&&e.symbol&&e.symbol.flags&14384&&e.symbol.declarations||t&12583968)||e.flags&3145728&&!(e.flags&1024)&&!JM(e)&&F(e.types,qM));return e.flags&3899393&&(e.objectFlags|=524288|(n?1048576:0)),n}function JM(e){if(e.aliasSymbol&&!e.aliasTypeArguments){let t=xf(e.aliasSymbol,266);return!!(t&&K(t.parent,e=>e.kind===308?!0:e.kind===268?!1:`quit`))}return!1}function YM(e,t,n=0){return!!(e===t||e.flags&3145728&&F(e.types,e=>YM(e,t,n))||n<3&&e.flags&16777216&&(YM(UT(e),t,n+1)||YM(KT(e),t,n+1)))}function XM(e,t){let n=Iy(e);return n?!!n.type&&YM(n.type,t):YM(Uy(e),t)}function vte(e){let t=Cf();return SP(e,e=>{if(!(e.flags&128))return;let n=Uc(e.value),r=lo(4,n);r.links.type=Vt,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}),pl(void 0,t,c,c,e.flags&4?[xb(rn,zn,!1)]:c)}function ZM(e,t,n){let r=e.id+`,`+t.id+`,`+n.id;if(_r.has(r))return _r.get(r);let i=$M(e,t,n);return _r.set(r,i),i}function QM(e){return!(Wx(e)&262144)||bN(e)&&F(S_(e),e=>QM(Jf(e)))||Ej(e)&&F(_C(e),QM)}function $M(e,t,n){if(!(ny(e,rn)||S_(e).length!==0&&QM(e)))return;if(hA(e)){let r=nN(ex(e)[0],t,n);return r?PS(r,gA(e)):void 0}if(Ej(e)){let r=k(_C(e),e=>nN(e,t,n));return v(r,e=>!!e)?QS(r,Zg(t)&4?te(e.target.elementFlags,e=>e&2?1:e):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations):void 0}let r=tl(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}function eN(e){let t=wo(e);return t.type||=nN(e.links.propertyType,e.links.mappedType,e.links.constraintType)||Yt,t.type}function tN(e,t,n){let r=sT(n.type,Pg(t)),i=Vg(t),a=WM(r);return yN([a],e,i),lN(a)||Yt}function nN(e,t,n){let r=e.id+`,`+t.id+`,`+n.id;if(gr.has(r))return gr.get(r)||Yt;Ca.push(e),wa.push(t);let i=Ta;Vk(e,Ca,Ca.length,2)&&(Ta|=1),Vk(t,wa,wa.length,2)&&(Ta|=2);let a;return Ta!==3&&(a=tN(e,t,n)),Ca.pop(),wa.pop(),Ta=i,gr.set(r,a),a}function*rN(e,t,n,r){let i=S_(t);for(let t of i)if(!rm(t)&&(n||!(t.flags&16777216||jx(t)&48))){let n=Kv(e,t.escapedName);if(!n)yield t;else if(r){let e=Jf(t);if(e.flags&109472){let r=Jf(n);r.flags&1||pE(r)===pE(e)||(yield t)}}}}function iN(e,t,n,r){return Fe(rN(e,t,n,r))}function aN(e,t){return!(t.target.combinedFlags&8)&&t.target.minLength>e.target.minLength||!(t.target.combinedFlags&12)&&(!!(e.target.combinedFlags&12)||t.target.fixedLengthpw(t,e),e)===e&&mN(e,t)}return!1}function hN(e,t){if(t.flags&2097152)return v(t.types,t=>t===Un||hN(e,t));if(t.flags&4||MD(e,t))return!0;if(e.flags&128){let n=e.value;return!!(t.flags&8&&pN(n,!1)||t.flags&64&&zw(n,!1)||t.flags&98816&&n===t.intrinsicName||t.flags&268435456&&mN(e,t)||t.flags&134217728&&_N(e,t))}if(e.flags&134217728){let n=e.texts;return n.length===2&&n[0]===``&&n[1]===``&&MD(e.types[0],t)}return!1}function gN(e,t){return e.flags&128?vN([e.value],c,t):e.flags&134217728?xe(e.texts,t.texts)?k(e.types,(e,n)=>MD(sv(e),sv(t.types[n]))?e:bte(e)):vN(e.texts,e.types,t):void 0}function _N(e,t){let n=gN(e,t);return!!n&&v(n,(e,n)=>hN(e,t.types[n]))}function bte(e){return e.flags&402653317?e:lw([``,``],[e])}function vN(e,t,n){let r=e.length-1,i=e[0],a=e[r],o=n.texts,s=o.length-1,c=o[0],l=o[s];if(r===0&&i.length0){let t=f,r=p;for(;r=m(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}h(t,r),p+=n.length}else if(p!C(r,e)):e,i?E(t,e=>!C(i,e)):t]}function b(e,t,n){let r=e.length!!w(e));if(!e||t&&e!==t)return;t=e}return t}function D(e,t,n){let i=0;if(n&1048576){let n,a=e.flags&1048576?e.types:[e],o=Array(a.length),c=!1;for(let e of t)if(w(e))n=e,i++;else for(let t=0;to[t]?void 0:e);if(e.length){f(AC(e),n);return}}}else for(let n of t)w(n)?i++:f(e,n);if(n&2097152?i===1:i>0)for(let n of t)w(n)&&p(e,n,1)}function O(e,t,n){if(n.flags&1048576||n.flags&2097152){let r=!1;for(let i of n.types)r=O(e,t,i)||r;return r}if(n.flags&4194304){let r=w(n.type);if(r&&!r.isFixed&&!dN(e)){let i=ZM(e,t,n);i&&p(i,r.typeParameter,Wx(e)&262144?16:8)}return!0}if(n.flags&262144){p(iw(e,e.pattern?2:0),n,32);let r=O_(n);return r&&O(e,t,r)||f(AC(de(k(S_(e),Jf),k(ty(e),e=>e===sr?V:e.type))),Vg(t)),!0}return!1}function ee(e,t){e.flags&16777216?(f(e.checkType,t.checkType),f(e.extendsType,t.extendsType),f(UT(e),UT(t)),f(KT(e),KT(t))):h(e,[UT(t),KT(t)],t.flags,i?64:0)}function te(e,t){let n=gN(e,t),r=t.types;if(n||v(t.texts,e=>e.length===0))for(let e=0;ee|t.flags,0);if(!(r&4)){let n=t.value;r&296&&!pN(n,!0)&&(r&=-297),r&2112&&!zw(n,!0)&&(r&=-2113);let a=Ge(e,(e,i)=>i.flags&r?e.flags&4?e:i.flags&4?t:e.flags&134217728?e:i.flags&134217728&&_N(t,i)?t:e.flags&268435456?e:i.flags&268435456&&n===mw(i.symbol,n)?t:e.flags&128?e:i.flags&128&&i.value===n?i:e.flags&8?e:i.flags&8?gE(+n):e.flags&32?e:i.flags&32?gE(+n):e.flags&256?e:i.flags&256&&i.value===+n?i:e.flags&64?e:i.flags&64?yte(n):e.flags&2048?e:i.flags&2048&&Iw(i.value)===n?i:e.flags&16?e:i.flags&16?n===`true`?un:n===`false`?cn:hn:e.flags&512?e:i.flags&512&&i.intrinsicName===n?i:e.flags&32768?e:i.flags&32768&&i.intrinsicName===n?i:e.flags&65536?e:i.flags&65536&&i.intrinsicName===n?i:e:e,V);if(!(a.flags&131072)){f(a,i);continue}}}}f(t,i)}}function ne(e,t){f(Fg(e),Fg(t)),f(Vg(e),Vg(t));let n=Ig(e),r=Ig(t);n&&r&&f(n,r)}function ie(e,t){if(Wx(e)&4&&Wx(t)&4&&(e.target===t.target||hA(e)&&hA(t))){b(ex(e),ex(t),TO(e.target));return}if(a_(e)&&a_(t)&&ne(e,t),!(Wx(t)&32&&!t.declaration.nameType&&O(e,t,Fg(t)))&&!oN(e,t)){if(_A(e)){if(Ej(t)){let n=tx(e),r=tx(t),i=ex(t),a=t.target.elementFlags;if(Ej(e)&&Vj(e,t)){for(let t=0;t0){let e=Jv(t,n),a=e.length;for(let t=0;t1){let t=E(e,xN);if(t.length){let n=AC(t,2);return de(E(e,e=>!xN(e)),[n])}}return e}function Tte(e){return e.priority&416?HC(e.contraCandidates):mA(e.contraCandidates)}function Ete(e,t){let n=wte(e.candidates),r=Cte(e.typeParameter)||V_(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!XM(t,e.typeParameter)),a=r?te(n,pE):i?te(n,yj):n;return CM(e.priority&416?AC(a,2):fA(a))}function SN(e,t){let n=e.inferences[t];if(!n.inferredType){let r,i;if(e.signature){let a=n.candidates?Ete(n,e.signature):void 0,o=n.contraCandidates?Tte(n):void 0;if(a||o){let t=a&&(!o||!(a.flags&131073)&&F(n.contraCandidates,e=>MD(a,e))&&v(e.inferences,e=>e!==n&&A_(e.typeParameter)!==n.typeParameter||v(e.candidates,e=>MD(e,a))));r=t?a:o,i=t?o:a}else if(e.flags&1)r=Cn;else{let i=Sv(n.typeParameter);i&&(r=dD(i,VE(rte(e,t),e.nonFixingMapper)))}}else r=lN(n);n.inferredType=r||CN(!!(e.flags&2));let a=A_(n.typeParameter);if(a){let t=dD(a,e.nonFixingMapper);(!r||!e.compareTypes(r,Km(t,r)))&&(n.inferredType=i&&e.compareTypes(i,Km(t,i))?i:t)}nL()}return n.inferredType}function CN(e){return e?Vt:Yt}function wN(e){let t=[];for(let n=0;nwA(e)||TA(e)||$O(e)))}function kN(e,t,n,r){switch(e.kind){case 80:if(!Py(e)){let i=DN(e);return i===Ft?void 0:`${r?mB(r):`-1`}|${yC(t)}|${yC(n)}|${hB(i)}`}case 110:return`0|${r?mB(r):`-1`}|${yC(t)}|${yC(n)}`;case 236:case 218:return kN(e.expression,t,n,r);case 167:let i=kN(e.left,t,n,r);return i&&`${i}.${e.right.escapedText}`;case 212:case 213:let a=jN(e);if(a!==void 0){let i=kN(e.expression,t,n,r);return i&&`${i}.${a}`}if(wk(e)&&Y(e.argumentExpression)){let i=DN(e.argumentExpression);if(pF(i)||mF(i)&&!oF(i)){let a=kN(e.expression,t,n,r);return a&&`${a}.@${hB(i)}`}}break;case 207:case 208:case 263:case 219:case 220:case 175:return`${mB(e)}#${yC(t)}`}}function AN(e,t){switch(t.kind){case 218:case 236:return AN(e,t.expression);case 227:return kb(t)&&AN(e,t.left)||Rk(t)&&t.operatorToken.kind===28&&AN(e,t.right)}switch(e.kind){case 237:return t.kind===237&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return Py(e)?t.kind===110:t.kind===80&&DN(e)===DN(t)||(bA(t)||bk(t))&&Rc(DN(e))===wc(t);case 110:return t.kind===110;case 108:return t.kind===108;case 236:case 218:case 239:return AN(e.expression,t);case 212:case 213:let n=jN(e);if(n!==void 0){let r=Zx(t)?jN(t):void 0;if(r!==void 0)return r===n&&AN(e.expression,t.expression)}if(wk(e)&&wk(t)&&Y(e.argumentExpression)&&Y(t.argumentExpression)){let n=DN(e.argumentExpression);if(n===DN(t.argumentExpression)&&(pF(n)||mF(n)&&!oF(n)))return AN(e.expression,t.expression)}break;case 167:return Zx(t)&&e.right.escapedText===jN(t)&&AN(e.left,t.expression);case 227:return Rk(e)&&e.operatorToken.kind===28&&AN(e.right,t)}return!1}function jN(e){if(Ck(e))return e.name.escapedText;if(wk(e))return Dte(e);if(bk(e)){let t=ad(e);return t?Uc(t):void 0}if(FO(e))return``+e.parent.parameters.indexOf(e)}function MN(e){return e.flags&8192?e.escapedName:e.flags&384?Uc(``+e.value):void 0}function Dte(e){return uv(e.argumentExpression)?Uc(e.argumentExpression.text):Mb(e.argumentExpression)?NN(e.argumentExpression):void 0}function NN(e){let t=Js(e,111551,!0);if(!t||!(pF(t)||t.flags&8))return;let n=t.valueDeclaration;if(n===void 0)return;let r=lf(n);if(r){let e=MN(r);if(e!==void 0)return e}if(af(n)&&Oo(n,e)){let e=hg(n);if(e){let t=Xu(n.parent)?pd(n):aU(e);return t&&MN(t)}if(_j(n))return fm(n.name)}}function PN(e,t){for(;Zx(e);)if(e=e.expression,AN(e,t))return!0;return!1}function FN(e,t){for(;Gl(e);)if(e=e.expression,AN(e,t))return!0;return!1}function IN(e,t){if(e&&e.flags&1048576){let n=xee(e,t);if(n&&jx(n)&2)return n.links.isDiscriminantProperty===void 0&&(n.links.isDiscriminantProperty=(n.links.checkFlags&192)==192&&!Lw(Jf(n))),!!n.links.isDiscriminantProperty}return!1}function LN(e,t){let n;for(let r of e)if(IN(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function Ote(e,t){let n=new Map,r=0;for(let i of e)if(i.flags&61603840){let e=Wu(i,t);if(e){if(!ij(e))return;let t=!1;SP(e,e=>{let r=yC(pE(e)),a=n.get(r);a?a!==Yt&&(n.set(r,Yt),t=!0):n.set(r,i)}),t||r++}}return r>=10&&r*2>=e.length?n:void 0}function RN(e){let t=e.types;if(!(t.length<10||Wx(e)&32768||T(t,e=>!!(e.flags&59506688))<10)){if(e.keyPropertyName===void 0){let n=d(t,e=>e.flags&59506688?d(S_(e),e=>YA(Jf(e))?e.escapedName:void 0):void 0),r=n&&Ote(t,n);e.keyPropertyName=r?n:``,e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function zN(e,t){let n=e.constituentMap?.get(yC(pE(t)));return n===Yt?void 0:n}function BN(e,t){let n=RN(e),r=n&&Wu(t,n);return r&&zN(e,r)}function kte(e,t){let n=RN(e),r=n&&y(t.properties,e=>e.symbol&&e.kind===304&&e.symbol.escapedName===n&&BI(e.initializer)),i=r&&sU(r.initializer);return i&&zN(e,i)}function UN(e,t){return AN(e,t)||PN(e,t)}function WN(e,t){if(e.arguments){for(let n of e.arguments)if(UN(t,n)||FN(n,t))return!0}return!!(e.expression.kind===212&&UN(t,e.expression.expression))}function GN(e){return e.id<=0&&(e.id=jne,jne++),e.id}function Ate(e,t){if(!(e.flags&1048576))return MD(e,t);for(let n of e.types)if(MD(n,t))return!0;return!1}function KN(e,t){if(e===t)return e;if(t.flags&131072)return t;let n=`A${yC(e)},${yC(t)}`;return za(n)??Ba(n,Z(e,t))}function Z(e,t){let n=TP(e,e=>Ate(t,e)),r=t.flags&512&&mE(t)?AP(n,fE):n;return MD(t,r)?r:e}function JN(e){if(Wx(e)&256)return!1;let t=u_(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get(`bind`)&&AD(e,wr))}function YN(e,t){return ZN(e,t)&t}function XN(e,t){return YN(e,t)!==0}function ZN(e,t){e.flags&467927040&&(e=ov(e)||Yt);let n=e.flags;if(n&268435460)return fe?16317953:16776705;if(n&134217856){let t=n&128&&e.value===``;return fe?t?12123649:7929345:t?12582401:16776705}if(n&40)return fe?16317698:16776450;if(n&256){let t=e.value===0;return fe?t?12123394:7929090:t?12582146:16776450}if(n&64)return fe?16317188:16775940;if(n&2048){let t=Hj(e);return fe?t?12122884:7928580:t?12581636:16775940}return n&16?fe?16316168:16774920:n&528?fe?e===cn||e===ln?12121864:7927560:e===cn||e===ln?12580616:16774920:n&524288?t&(fe?83427327:83886079)?Wx(e)&16&&QD(e)?fe?83427327:83886079:JN(e)?fe?7880640:16728e3:fe?7888800:16736160:0:n&16384?9830144:n&32768?26607360:n&65536?42917664:n&12288?fe?7925520:16772880:n&67108864?fe?7888800:16736160:n&131072?0:n&1048576?Ge(e.types,(e,n)=>e|ZN(n,t),0):n&2097152?jte(e,t):83886079}function jte(e,t){let n=lH(e,402784252),r=0,i=134217727;for(let a of e.types)if(!(n&&a.flags&524288)){let e=ZN(a,t);r|=e,i&=e}return r&8256|i&134209471}function QN(e,t){return TP(e,e=>XN(e,t))}function $N(e,t){let n=eP(QN(fe&&e.flags&2?Gn:e,t));if(fe)switch(t){case 524288:return Mte(n,65536,131072,33554432,tn);case 1048576:return Mte(n,131072,65536,16777216,Xt);case 2097152:case 4194304:return AP(n,e=>XN(e,262144)?Xj(e):e)}return n}function Mte(e,t,n,r,i){let a=YN(e,50528256);if(!(a&t))return e;let o=AC([zn,i]);return AP(e,e=>XN(e,t)?HC([e,!(a&r)&&XN(e,n)?o:zn]):e)}function eP(e){return e===Gn?Yt:e}function tP(e,t){return t?AC([td(e),aU(t)]):e}function nP(e,t){let n=$C(t);if(!kT(n))return Gt;let r=AT(n);return Wu(e,r)||iP(ly(e,r)?.type)||Gt}function rP(e,t){return wP(e,zA)&&qA(e,t)||iP(FG(65,e,Xt,void 0))||Gt}function iP(e){return e&&(A.noUncheckedIndexedAccess?AC([e,B]):e)}function aP(e){return PS(FG(65,e,Xt,void 0)||Gt)}function Nte(e){return e.parent.kind===210&&oP(e.parent)||e.parent.kind===304&&oP(e.parent.parent)?tP(cP(e),e.right):aU(e.right)}function oP(e){return e.parent.kind===227&&e.parent.left===e||e.parent.kind===251&&e.parent.initializer===e}function Pte(e,t){return rP(cP(e),e.elements.indexOf(t))}function Fte(e){return aP(cP(e.parent))}function sP(e){return nP(cP(e.parent),e.name)}function Ite(e){return tP(sP(e),e.objectAssignmentInitializer)}function cP(e){let{parent:t}=e;switch(t.kind){case 250:return rn;case 251:return PG(t)||Gt;case 227:return Nte(t);case 221:return Xt;case 210:return Pte(t,e);case 231:return Fte(t);case 304:return sP(t);case 305:return Ite(t)}return Gt}function Lte(e){let t=e.parent,n=dP(t.parent);return tP(t.kind===207?nP(n,e.propertyName||e.name):e.dotDotDotToken?aP(n):rP(n,t.elements.indexOf(e)),e.initializer)}function lP(e){return To(e).resolvedType||aU(e)}function uP(e){return e.initializer?lP(e.initializer):e.parent.parent.kind===250?rn:e.parent.parent.kind===251&&PG(e.parent.parent)||Gt}function dP(e){return e.kind===261?uP(e):Lte(e)}function Rte(e){return e.kind===261&&e.initializer&&_d(e.initializer)||e.kind!==209&&e.parent.kind===227&&_d(e.parent.right)}function fP(e){switch(e.kind){case 218:return fP(e.expression);case 227:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return fP(e.left);case 28:return fP(e.right)}}return e}function hP(e){let{parent:t}=e;return t.kind===218||t.kind===227&&t.operatorToken.kind===64&&t.left===e||t.kind===227&&t.operatorToken.kind===28&&t.right===e?hP(t):e}function zte(e){return e.kind===297?pE(aU(e.expression)):V}function gP(e){let t=To(e);if(!t.switchTypes){t.switchTypes=[];for(let n of e.caseBlock.clauses)t.switchTypes.push(zte(n))}return t.switchTypes}function vP(e){if(F(e.caseBlock.clauses,e=>e.kind===297&&!uf(e.expression)))return;let t=[];for(let n of e.caseBlock.clauses){let e=n.kind===297?n.expression.text:void 0;t.push(e&&!C(t,e)?e:void 0)}return t}function bP(e,t){return e.flags&1048576?!d(e.types,e=>!C(t,e)):C(t,e)}function xP(e,t){return!!(e===t||e.flags&131072||t.flags&1048576&&Bte(e,t))}function Bte(e,t){if(e.flags&1048576){for(let n of e.types)if(!bC(t.types,n))return!1;return!0}return e.flags&1056&&Pp(e)===t?!0:bC(t.types,e)}function SP(e,t){return e.flags&1048576?d(e.types,t):t(e)}function CP(e,t){return e.flags&1048576?F(e.types,t):t(e)}function wP(e,t){return e.flags&1048576?v(e.types,t):t(e)}function Vte(e,t){return e.flags&3145728?v(e.types,t):t(e)}function TP(e,t){if(e.flags&1048576){let n=e.types,r=E(n,t);if(r===n)return e;let i=e.origin,a;if(i&&i.flags&1048576){let e=i.types,o=E(e,e=>!!(e.flags&1048576)||t(e));if(e.length-o.length===n.length-r.length){if(o.length===1)return o[0];a=kC(1048576,o)}}return PC(r,e.objectFlags&16809984,void 0,void 0,a)}return e.flags&131072||t(e)?e:V}function EP(e,t){return TP(e,e=>e!==t)}function DP(e){return e.flags&1048576?e.types.length:1}function AP(e,t,n){if(e.flags&131072)return e;if(!(e.flags&1048576))return t(e);let r=e.origin,i=r&&r.flags&1048576?r.types:e.types,a,o=!1;for(let e of i){let r=e.flags&1048576?AP(e,t,n):t(e);o||=e!==r,r&&(a?a.push(r):a=[r])}return o?a&&AC(a,n?0:1):e}function jP(e,t,n,r){return e.flags&1048576&&n?AC(k(e.types,t),1,n,r):AP(e,t)}function MP(e,t){return TP(e,e=>(e.flags&t)!==0)}function NP(e,t){return lH(e,134217804)&&lH(t,402655616)?AP(e,e=>e.flags&4?MP(t,402653316):Mw(e)&&!lH(t,402653188)?MP(t,128):e.flags&8?MP(t,264):e.flags&64?MP(t,2112):e):e}function PP(e){return e.flags===0}function FP(e){return e.flags===0?e.type:e}function IP(e,t){return t?{flags:0,type:e.flags&131072?Cn:e}:e}function Hte(e){let t=tl(256);return t.elementType=e,t}function LP(e){return jt[e.id]||(jt[e.id]=Hte(e))}function RP(e,t){let n=gM(cj(sU(t)));return xP(n,e.elementType)?e:LP(AC([e.elementType,n]))}function zP(e){return e.flags&131072?Ir:PS(e.flags&1048576?AC(e.types,2):e)}function BP(e){return e.finalArrayType||=zP(e.elementType)}function VP(e){return Wx(e)&256?BP(e):e}function HP(e){return Wx(e)&256?e.elementType:V}function UP(e){let t=!1;for(let n of e)if(!(n.flags&131072)){if(!(Wx(n)&256))return!1;t=!0}return t}function WP(e){let t=hP(e),n=t.parent,r=Ck(n)&&(n.name.escapedText===`length`||n.parent.kind===214&&Y(n.name)&&Tv(n.name)),i=n.kind===213&&n.expression===t&&n.parent.kind===227&&n.parent.operatorToken.kind===64&&n.parent.left===n&&!E_(n.parent)&&uH(aU(n.argumentExpression),296);return r||i}function GP(e){return(bA(e)||RO(e)||LO(e)||FO(e))&&!!(Ly(e)||ng(e)&&rf(e)&&e.initializer&&oT(e.initializer)&&zy(e.initializer))}function KP(e,t){if(e=Fs(e),e.flags&8752)return Jf(e);if(e.flags&7){if(jx(e)&262144){let t=e.links.syntheticOrigin;if(t&&KP(t))return Jf(e)}let n=e.valueDeclaration;if(n){if(GP(n))return Jf(e);if(bA(n)&&n.parent.parent.kind===251){let e=n.parent.parent,t=qP(e.expression,void 0);if(t)return FG(e.awaitModifier?15:13,t,Xt,void 0)}t&&Dw(t,mm(n,G._0_needs_an_explicit_type_annotation,Hl(e)))}}}function qP(e,t){if(!(e.flags&67108864))switch(e.kind){case 80:return KP(Rc(DN(e)),t);case 110:return eI(e);case 108:return iI(e);case 212:{let n=qP(e.expression,t);if(n){let r=e.name,i;if(vO(r)){if(!n.symbol)return;i=Kv(n,vv(n.symbol,r.escapedText))}else i=Kv(n,r.escapedText);return i&&KP(i,t)}return}case 218:return qP(e.expression,t)}}function JP(e){let t=To(e),n=t.effectsSignature;if(n===void 0){let r;Rk(e)?r=mH(lR(e.right)):e.parent.kind===245?r=qP(e.expression,void 0):e.expression.kind!==108&&(r=Gl(e)?hR(sM(cU(e.expression),e.expression),e.expression):lR(e.expression));let i=Jv(r&&Fv(r)||Yt,0),a=i.length===1&&!i[0].typeParameters?i[0]:F(i,YP)?OB(e):void 0;n=t.effectsSignature=a&&YP(a)?a:ir}return n===ir?void 0:n}function YP(e){return!!(Iy(e)||e.declaration&&(Wy(e.declaration)||Yt).flags&131072)}function XP(e,t){if(e.kind===1||e.kind===3)return t.arguments[e.parameterIndex];let n=F_(t.expression);return Zx(n)?F_(n.expression):void 0}function ZP(e){let t=K(e,Lu),n=Yf(e),r=Tm(n,t.statements.pos);Ea.add(vS(n,r.start,r.length,G.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function QP(e){let t=eF(e,!1);return Fi=e,Ii=t,t}function $P(e){let t=F_(e,!0);return t.kind===97||t.kind===227&&(t.operatorToken.kind===56&&($P(t.left)||$P(t.right))||t.operatorToken.kind===57&&$P(t.left)&&$P(t.right))}function eF(e,t){for(;;){if(e===Fi)return Ii;let n=e.flags;if(n&4096){if(!t){let t=GN(e),n=ha[t];return n===void 0?ha[t]=eF(e,!0):n}t=!1}if(n&368)e=e.antecedent;else if(n&512){let t=JP(e.node);if(t){let n=Iy(t);if(n&&n.kind===3&&!n.type){let t=e.node.arguments[n.parameterIndex];if(t&&$P(t))return!1}if(Uy(t).flags&131072)return!1}e=e.antecedent}else if(n&4)return F(e.antecedent,e=>eF(e,!1));else if(n&8){let t=e.antecedent;if(t===void 0||t.length===0)return!1;e=t[0]}else if(n&128){let t=e.node;if(t.clauseStart===t.clauseEnd&&GV(t.switchStatement))return!1;e=e.antecedent}else if(n&1024){Fi=void 0;let t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;let r=eF(e.antecedent,!1);return t.antecedent=n,r}else return!(n&1)}}function tF(e,t){for(;;){let n=e.flags;if(n&4096){if(!t){let t=GN(e),n=ga[t];return n===void 0?ga[t]=tF(e,!0):n}t=!1}if(n&496)e=e.antecedent;else if(n&512){if(e.node.expression.kind===108)return!0;e=e.antecedent}else if(n&4)return v(e.antecedent,e=>tF(e,!1));else if(n&8)e=e.antecedent[0];else if(n&1024){let t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;let r=tF(e.antecedent,!1);return t.antecedent=n,r}else return!!(n&1)}}function nF(e){switch(e.kind){case 110:return!0;case 80:if(!Py(e)){let t=DN(e);return pF(t)||mF(t)&&!oF(t)||!!t.valueDeclaration&&Ak(t.valueDeclaration)}break;case 212:case 213:return nF(e.expression)&&$V(To(e).resolvedSymbol||Ft);case 207:case 208:let t=Dv(e.parent);return FO(t)||aT(t)?!cF(t):bA(t)&&pX(t)}return!1}function rF(e,t,n=t,r,i=(t=>(t=vt(e,c_))?.flowNode)()){let a,o=!1,s=0;if(Mi)return Gt;if(!i)return t;Ni++;let c=ji,l=FP(f(i));ji=c;let u=Wx(l)&256&&WP(e)?Ir:VP(l);if(u===Tn||e.parent&&e.parent.kind===236&&!(u.flags&131072)&&QN(u,2097152).flags&131072)return t;return u;function d(){return o?a:(o=!0,a=kN(e,t,n,r))}function f(i){var a;if(s===2e3)return(a=Ar)==null||a.instant(Ar.Phase.CheckTypes,`getTypeAtFlowNode_DepthLimit`,{flowId:i.id}),Mi=!0,ZP(e),Gt;s++;let o;for(;;){let a=i.flags;if(a&4096){for(let e=c;e=0&&n.parameterIndex!(e.flags&163840)):n.kind===222&&FN(n.expression,e)&&(i=le(i,t.node,e=>!(e.flags&131072||e.flags&128&&e.value===`undefined`))));let r=O(n,i);r&&(i=re(i,r,t.node))}return IP(i,PP(r))}function w(e){let r=[],i=!1,a=!1,o;for(let s of e.antecedent){if(!o&&s.flags&128&&s.node.clauseStart===s.node.clauseEnd){o=s;continue}let e=f(s),c=FP(e);if(c===t&&t===n)return c;De(r,c),xP(c,n)||(i=!0),PP(e)&&(a=!0)}if(o){let e=f(o),s=FP(e);if(!(s.flags&131072)&&!C(r,s)&&!GV(o.node.switchStatement)){if(s===t&&t===n)return s;r.push(s),xP(s,n)||(i=!0),PP(e)&&(a=!0)}}return IP(E(r,i?2:1),a)}function T(e){let r=GN(e),i=la[r]||(la[r]=new Map),a=d();if(!a)return t;let o=i.get(a);if(o)return o;for(let t=ki;t{let t=Gu(e,r)||Yt;return!(t.flags&131072)&&!(s.flags&131072)&&FD(s,t)})}function ne(e,t,n,r,i){if((n===37||n===38)&&e.flags&1048576){let a=RN(e);if(a&&a===jN(t)){let t=zN(e,aU(r));if(t)return n===(i?37:38)?t:YA(Wu(t,a)||Yt)?EP(e,t):e}}return ee(e,t,e=>se(e,n,r,i))}function re(e,t,n){if(n.clauseStartzN(e,t)||Yt));if(t!==Yt)return t}return ee(e,t,e=>F(e,n))}function ie(t,n,r){if(AN(e,n))return $N(t,r?4194304:8388608);fe&&r&&FN(n,e)&&(t=$N(t,2097152));let i=O(n,t);return i?ee(t,i,e=>QN(e,r?4194304:8388608)):t}function ae(e,t,n){let r=Kv(e,t);return r?!!(r.flags&16777216||jx(r)&48)||n:!!ly(e,t)||!n}function A(e,t,n){let r=AT(t);if(CP(e,e=>ae(e,r,!0)))return TP(e,e=>ae(e,r,n));if(n){let n=MS();if(n)return HC([e,rx(n,[t,Yt])])}return e}function j(e,t,n,r,i){return i=i!==(n.kind===112)!=(r!==38&&r!==36),I(e,t,i)}function M(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return ie(I(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:let i=n.operatorToken.kind,a=fP(n.left),o=fP(n.right);if(a.kind===222&&uf(o))return ce(t,a,i,o,r);if(o.kind===222&&uf(a))return ce(t,o,i,a,r);if(AN(e,a))return se(t,i,o,r);if(AN(e,o))return se(t,i,a,r);fe&&(FN(a,e)?t=oe(t,i,o,r):FN(o,e)&&(t=oe(t,i,a,r)));let s=O(a,t);if(s)return ne(t,s,i,o,r);let c=O(o,t);if(c)return ne(t,c,i,a,r);if(he(a))return ge(t,i,o,r);if(he(o))return ge(t,i,a,r);if(Pu(o)&&!Zx(a))return j(t,a,o,i,r);if(Pu(a)&&!Zx(o))return j(t,o,a,i,r);break;case 104:return _e(t,n,r);case 103:if(vO(n.left))return N(t,n,r);let l=fP(n.right);if(lM(t)&&Zx(e)&&AN(e.expression,l)){let i=aU(n.left);if(kT(i)&&jN(e)===AT(i))return QN(t,r?524288:65536)}if(AN(e,l)){let e=aU(n.left);if(kT(e))return A(t,e,r)}break;case 28:return I(t,n.right,r);case 56:return r?I(I(t,n.left,!0),n.right,!0):AC([I(t,n.left,!1),I(t,n.right,!1)]);case 57:return r?AC([I(t,n.left,!0),I(t,n.right,!0)]):I(I(t,n.left,!1),n.right,!1)}return t}function N(t,n,r){if(!AN(e,fP(n.right)))return t;H.assertNode(n.left,vO);let i=wR(n.left);if(i===void 0)return t;let a=i.parent;return ye(t,eb(H.checkDefined(i.valueDeclaration,`should always have a declaration`))?Jf(a):Kp(a),r,!0)}function oe(e,t,n,r){let i=t===35||t===37,a=t===35||t===36?98304:32768,o=aU(n);return i!==r&&wP(o,e=>!!(e.flags&a))||i===r&&wP(o,e=>!(e.flags&(3|a)))?$N(e,2097152):e}function se(e,t,n,r){if(e.flags&1)return e;(t===36||t===38)&&(r=!r);let i=aU(n),a=t===35||t===36;if(i.flags&98304)return fe?$N(e,a?r?262144:2097152:i.flags&65536?r?131072:1048576:r?65536:524288):e;if(r){if(!a&&(e.flags&2||CP(e,nO))){if(i.flags&469893116||nO(i))return i;if(i.flags&524288)return En}return NP(TP(e,e=>FD(e,i)||a&&dM(e,i)),i)}return YA(i)?TP(e,e=>!(XA(e)&&FD(e,i))):e}function ce(t,n,r,i,a){(r===36||r===38)&&(a=!a);let o=fP(n.expression);if(!AN(e,o)){fe&&FN(o,e)&&a===(i.text!==`undefined`)&&(t=$N(t,2097152));let n=O(o,t);return n?ee(t,n,e=>P(e,i,a)):t}return P(t,i,a)}function P(e,t,n){return n?ue(e,t.text):$N(e,uB.get(t.text)||32768)}function le(e,{switchStatement:t,clauseStart:n,clauseEnd:r},i){return n!==r&&v(gP(t).slice(n,r),i)?QN(e,2097152):e}function F(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){let i=gP(t);if(!i.length)return e;let a=i.slice(n,r),o=n===r||C(a,V);if(e.flags&2&&!o){let t;for(let n=0;nFD(s,e)),s);if(!o)return c;let l=TP(e,e=>!(XA(e)&&C(i,e.flags&32768?Xt:pE(tj(e)))));return c.flags&131072?l:AC([c,l])}function ue(e,t){switch(t){case`string`:return de(e,rn,1);case`number`:return de(e,on,2);case`bigint`:return de(e,sn,4);case`boolean`:return de(e,hn,8);case`symbol`:return de(e,gn,16);case`object`:return e.flags&1?e:AC([de(e,En,32),de(e,tn,131072)]);case`function`:return e.flags&1?e:de(e,wr,64);case`undefined`:return de(e,Xt,65536)}return de(e,En,128)}function de(e,t,n){return AP(e,e=>lO(e,t,Ma)?XN(e,n)?e:V:AD(t,e)?t:XN(e,n)?HC([e,t]):V)}function pe(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){let i=vP(t);if(!i)return e;let a=x(t.caseBlock.clauses,e=>e.kind===298);if(n===r||a>=n&&aYN(e,t)===t)}return AC(k(i.slice(n,r),t=>t?ue(e,t):V))}function me(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){let i=x(t.caseBlock.clauses,e=>e.kind===298),a=n===r||i>=n&&it.kind===297?I(e,t.expression,!0):V))}function he(t){return(Ck(t)&&Gc(t.name)===`constructor`||wk(t)&&uf(t.argumentExpression)&&t.argumentExpression.text===`constructor`)&&AN(e,t.expression)}function ge(e,t,n,r){if(r?t!==35&&t!==37:t!==36&&t!==38)return e;let i=aU(n);if(!NJ(i)&&!fp(i))return e;let a=Kv(i,`prototype`);if(!a)return e;let o=Jf(a),s=Ku(o)?void 0:o;if(!s||s===Cr||s===wr)return e;if(Ku(e))return s;return TP(e,e=>c(e,s));function c(e,t){return e.flags&524288&&Wx(e)&1||t.flags&524288&&Wx(t)&1?e.symbol===t.symbol:AD(e,t)}}function _e(t,n,r){let i=fP(n.left);if(!AN(e,i))return r&&fe&&FN(i,e)?$N(t,2097152):t;let a=n.right,o=aU(a);if(!ND(o,Cr))return t;let s=JP(n),c=s&&Iy(s);if(c&&c.kind===1&&c.parameterIndex===0)return ye(t,c.type,r,!0);if(!ND(o,wr))return t;let l=AP(o,ve);return Ku(t)&&(l===Cr||l===wr)||!r&&!(l.flags&524288&&!nO(l))?t:ye(t,l,r,!0)}function ve(e){let t=Wu(e,`prototype`);if(t&&!Ku(t))return t;let n=Jv(e,1);return n.length?AC(k(n,e=>Uy(db(e)))):zn}function ye(e,t,n,r){let i=e.flags&1048576?`N${yC(e)},${yC(t)},${(n?1:0)|(r?2:0)}`:void 0;return za(i)??Ba(i,be(e,t,n,r))}function be(e,t,n,r){if(!n){if(e===t)return V;if(r)return TP(e,e=>!ND(e,t));e=e.flags&2?Gn:e;let n=ye(e,t,!0,!1);return eP(TP(e,e=>!xP(e,n)))}if(e.flags&3||e===t)return t;let i=r?ND:AD,a=e.flags&1048576?RN(e):void 0,o=AP(t,t=>{let n=a&&Wu(t,a),o=AP(n&&zN(e,n)||e,r?e=>ND(e,t)?e:ND(t,e)?t:V:e=>jD(e,t)?e:jD(t,e)?t:AD(e,t)?e:AD(t,e)?t:V);return o.flags&131072?AP(e,e=>lH(e,465829888)&&i(t,ov(e)||Yt)?HC([e,t]):V):o});return o.flags&131072?AD(t,e)?t:MD(e,t)?e:MD(t,e)?t:HC([e,t]):o}function Se(t,n,r){if(WN(n,e)){let e=r||!Wl(n)?JP(n):void 0,i=e&&Iy(e);if(i&&(i.kind===0||i.kind===1))return Ce(t,i,n,r)}if(lM(t)&&Zx(e)&&Ck(n.expression)){let i=n.expression;if(AN(e.expression,fP(i.expression))&&Y(i.name)&&i.name.escapedText===`hasOwnProperty`&&n.arguments.length===1){let i=n.arguments[0];if(uf(i)&&jN(e)===Uc(i.text))return QN(t,r?524288:65536)}}return t}function Ce(t,n,r,i){if(n.type&&!(Ku(t)&&(n.type===Cr||n.type===wr))){let a=XP(n,r);if(a){if(AN(e,a))return ye(t,n.type,i,!1);fe&&FN(a,e)&&(i&&!XN(n.type,65536)||!i&&wP(n.type,uR))&&(t=$N(t,2097152));let r=O(a,t);if(r)return ee(t,r,e=>ye(e,n.type,i,!1))}}return t}function I(t,n,r){if(ql(n)||Rk(n.parent)&&(n.parent.operatorToken.kind===61||n.parent.operatorToken.kind===78)&&n.parent.left===n)return we(t,n,r);switch(n.kind){case 80:if(!AN(e,n)&&_<5){let i=DN(n);if(pF(i)){let n=i.valueDeclaration;if(n&&bA(n)&&!n.type&&n.initializer&&nF(e)){_++;let e=I(t,n.initializer,r);return _--,e}}}case 110:case 108:case 212:case 213:return ie(t,n,r);case 214:return Se(t,n,r);case 218:case 236:case 239:return I(t,n.expression,r);case 227:return M(t,n,r);case 225:if(n.operator===54)return I(t,n.operand,!r);break}return t}function we(t,n,r){if(AN(e,n))return $N(t,r?2097152:262144);let i=O(n,t);return i?ee(t,i,e=>QN(e,r?2097152:262144)):t}}function iF(e,t){if(e=Rc(e),(t.kind===80||t.kind===81)&&(Rb(t)&&(t=t.parent),Kh(t)&&(!E_(t)||Ix(t)))){let n=rM(Ix(t)&&t.kind===212?_R(t,void 0,!0):aU(t));if(Rc(To(t).resolvedSymbol)===e)return n}return R_(t)&&$d(t.parent)&&Ef(t.parent)?Af(t.parent.symbol):zb(t)&&Ix(t.parent)?Kf(e):$f(e)}function aF(e){return K(e.parent,e=>ju(e)&&!jh(e)||e.kind===269||e.kind===308||e.kind===173)}function Ute(e){return e.lastAssignmentPos===void 0?oF(e)&&e.lastAssignmentPos!==void 0&&e.lastAssignmentPos<0:e.lastAssignmentPos<0}function oF(e){return!sF(e,void 0)}function sF(e,t){let n=K(e.valueDeclaration,dF);if(!n)return!1;let r=To(n);return r.flags&131072||(r.flags|=131072,uF(n)||fF(n)),!e.lastAssignmentPos||t&&Math.abs(e.lastAssignmentPos)e.kind!==233&&lF(e.name))}function uF(e){return!!K(e.parent,e=>dF(e)&&!!(To(e).flags&131072))}function dF(e){return Nu(e)||vj(e)}function fF(e){switch(e.kind){case 80:let t=T_(e);if(t!==0){let n=DN(e),r=t===1||n.lastAssignmentPos!==void 0&&n.lastAssignmentPos<0;mF(n)&&((n.lastAssignmentPos===void 0||Math.abs(n.lastAssignmentPos)!==Number.MAX_VALUE)&&(n.lastAssignmentPos=K(e,dF)===K(n.valueDeclaration,dF)?Wte(e,n.valueDeclaration):Number.MAX_VALUE),r&&n.lastAssignmentPos>0&&(n.lastAssignmentPos*=-1))}return;case 282:let n=e.parent.parent,r=e.propertyName||e.name;if(!e.isTypeOnly&&!n.isTypeOnly&&!n.moduleSpecifier&&r.kind!==11){let e=Js(r,111551,!0,!0);e&&mF(e)&&(e.lastAssignmentPos=(e.lastAssignmentPos!==void 0&&e.lastAssignmentPos<0?-1:1)*Number.MAX_VALUE)}return;case 265:case 266:case 267:return}Ju(e)||pP(e,fF)}function Wte(e,t){let n=e.pos;for(;e&&e.pos>t.pos;){switch(e.kind){case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 251:case 255:case 256:case 259:case 264:n=e.end}e=e.parent}return n}function pF(e){return e.flags&3&&(nR(e)&6)!=0}function mF(e){let t=e.valueDeclaration&&Dv(e.valueDeclaration);return!!t&&(FO(t)||bA(t)&&(pj(t.parent)||hF(t)))}function hF(e){return!!(e.parent.flags&1)&&!(Pc(e)&32||e.parent.parent.kind===244&&km(e.parent.parent.parent))}function gF(e){let t=To(e);if(t.parameterInitializerContainsUndefined===void 0){if(!Tu(e,8))return Uf(e.symbol),!0;let n=!!XN(BH(e,0),16777216);if(!Fu())return Uf(e.symbol),!0;t.parameterInitializerContainsUndefined??=n}return t.parameterInitializerContainsUndefined}function _F(e,t){return fe&&t.kind===170&&t.initializer&&XN(e,16777216)&&!gF(t)?QN(e,524288):e}function vF(e,t){let n=t.parent;return n.kind===212||n.kind===167||n.kind===214&&n.expression===t||n.kind===215&&n.expression===t||n.kind===213&&n.expression===t&&!(CP(e,bF)&&Hw(aU(n.argumentExpression)))}function yF(e){return e.flags&2097152?F(e.types,yF):!!(e.flags&465829888&&sv(e).flags&1146880)}function bF(e){return e.flags&2097152?F(e.types,bF):!!(e.flags&465829888&&!lH(sv(e),98304))}function xF(e,t){let n=(Y(e)||Ck(e)||wk(e))&&!((ej(e.parent)||$A(e.parent))&&e.parent.tagName===e)&&(t&&t&32?KI(e,8):KI(e,void 0));return n&&!Lw(n)}function SF(e,t,n){return px(e)&&(e=e.baseType),!(n&&n&2)&&CP(e,yF)&&(vF(e,t)||xF(t,n))?AP(e,sv):e}function CF(e){return!!K(e,e=>{let t=e.parent;return t===void 0?`quit`:UA(t)?t.expression===e&&Mb(e):KA(t)?t.name===e||t.propertyName===e:!1})}function wF(e,t,n,r){if(Ye&&!(e.flags&33554432&&!LO(e)&&!RO(e)))switch(t){case 1:return TF(e);case 2:return EF(e,n,r);case 3:return DF(e);case 4:return OF(e);case 5:return kF(e);case 6:return AF(e);case 7:return jF(e);case 8:return MF(e);case 0:if(Y(e)&&(Kh(e)||hj(e.parent)||jA(e.parent)&&e.parent.moduleReference===e)&&UF(e)){if(sd(e.parent)&&(Ck(e.parent)?e.parent.expression:e.parent.left)!==e)return;TF(e);return}if(sd(e)){let t=e;for(;sd(t);){if(eh(t))return;t=t.parent}return EF(e)}return UA(e)?DF(e):Jd(e)||rj(e)?OF(e):jA(e)?$h(e)||oq(e)?AF(e):void 0:KA(e)?jF(e):((Nu(e)||zO(e))&&kF(e),!A.emitDecoratorMetadata||!HN(e)||!ob(e)||!e.modifiers||!Rh(ce,e,e.parent,e.parent.parent)?void 0:MF(e));default:H.assertNever(t,`Unhandled reference hint: ${t}`)}}function TF(e){let t=DN(e);t&&t!==Ke&&t!==Ft&&!Py(e)&&NF(t,e)}function EF(e,t,n){let r=Ck(e)?e.expression:e.left;if(My(r)||!Y(r))return;let i=DN(r);if(!i||i===Ft)return;if(US(A)||XS(A)&&CF(e)){NF(i,e);return}let a=n||RH(r);if(Ku(a)||a===Cn){NF(i,e);return}let o=t;if(!o&&!n){let t=Ck(e)?e.name:e.right,n=vO(t)&&xR(t.escapedText,t),r=Fv(T_(e)!==0||bR(e)?CM(a):a);o=vO(t)?n&&TR(r,n)||void 0:Kv(r,t.escapedText)}o&&(yJ(o)||o.flags&8&&e.parent.kind===307)||NF(i,e)}function DF(e){if(Y(e.expression)){let t=e.expression,n=Rc(Js(t,-1,!0,!0,e));n&&NF(n,t)}}function OF(e){if(!VL(e)){let t=Ea&&A.jsx===2?G.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,n=Va(e),r=Jd(e)?e.tagName:e,i=A.jsx!==1&&A.jsx!==3,a;if(rj(e)&&n===`null`||(a=rt(r,n,i?111551:111167,t,!0)),a&&(a.isReferenced=-1,Ye&&a.flags&2097152&&!Vs(a)&&PF(a)),rj(e)){let n=WJ(Yf(e));if(n){let e=Nb(n).escapedText;rt(r,e,i?111551:111167,t,!0)}}}}function kF(e){j<2&&cv(e)&2&&LF(zy(e))}function AF(e){Qy(e,32)&&FF(e)}function jF(e){if(!e.parent.parent.moduleSpecifier&&!e.isTypeOnly&&!e.parent.parent.isTypeOnly){let t=e.propertyName||e.name;if(t.kind===11)return;let n=rt(t,t.escapedText,2998271,void 0,!0);if(!(n&&(n===He||n===L||n.declarations&&km(Iu(n.declarations[0]))))){let r=n&&(n.flags&2097152?Is(n):n);(!r||Rs(r)&111551)&&(FF(e),TF(t))}return}}function MF(e){if(A.emitDecoratorMetadata){let t=y(e.modifiers,IO);if(!t)return;switch(XJ(t,16),e.kind){case 264:let t=Dy(e);if(t)for(let e of t.parameters)RF(bW(e));break;case 178:case 179:let n=e.kind===178?179:178,r=xf(wc(e),n);RF(Ef(e)||r&&Ef(r));break;case 175:for(let t of e.parameters)RF(bW(t));RF(zy(e));break;case 173:RF(Ly(e));break;case 170:RF(bW(e));let i=e.parent;for(let e of i.parameters)RF(bW(e));RF(zy(i));break}}}function NF(e,t){if(Ye&&Ps(e,111551)&&!Ny(t)){let n=Is(e);Rs(e,!0)&1160127&&(US(A)||XS(A)&&CF(t)||!yJ(Rc(n)))&&PF(e)}}function PF(e){H.assert(Ye);let t=wo(e);if(!t.referenced){t.referenced=!0;let n=Qo(e);if(!n)return H.fail();$h(n)&&Rs(Fs(e))&111551&&TF(Nb(n.moduleReference))}}function FF(e){let t=wc(e),n=Is(t);n&&(n===Ft||Rs(t,!0)&111551&&!yJ(n))&&PF(t)}function IF(e,t){if(!e)return;let n=Nb(e),r=(e.kind===80?788968:1920)|2097152,i=rt(n,n.escapedText,r,void 0,!0);if(i&&i.flags&2097152){if(Ye&&zc(i)&&!yJ(Is(i))&&!Vs(i))PF(i);else if(t&&US(A)&&BS(A)>=5&&!zc(i)&&!F(i.declarations,hu)){let t=U(e,G.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),r=y(i.declarations||c,$o);r&&Dw(t,mm(r,G._0_was_imported_here,Gc(n)))}}}function LF(e){IF(e&&Ih(e),!1)}function RF(e){let t=vW(e);t&&Ou(t)&&IF(t,!0)}function zF(e,t){let n=Jf(e),r=e.valueDeclaration;if(r){if(bk(r)&&!r.initializer&&!r.dotDotDotToken&&r.parent.elements.length>=2){let e=r.parent.parent,n=Dv(e);if(n.kind===261&&fX(n)&6||n.kind===170){let i=To(e);if(!(i.flags&4194304)){i.flags|=4194304;let a=Qu(e,0),o=a&&AP(a,sv);if(i.flags&=-4194305,o&&o.flags&1048576&&!(n.kind===170&&cF(n))){let e=r.parent,n=rF(e,o,o,void 0,t.flowNode);return n.flags&131072?V:md(r,n,!0)}}}}if(FO(r)&&!r.type&&!r.initializer&&!r.dotDotDotToken){let e=r.parent;if(e.parameters.length>=2&&CD(e)){let n=hL(e);if(n&&n.parameters.length===1&&xB(n)){let i=Iv(dD(Jf(n.parameters[0]),$I(e)?.nonFixingMapper));if(i.flags&1048576&&wP(i,Ej)&&!F(e.parameters,cF))return sT(rF(e,i,i,void 0,t.flowNode),gE(e.parameters.indexOf(r)-(Ay(e)?1:0)))}}}}return n}function BF(e,t){if(Py(e))return;if(t===Ke){if(MR(e,!0)){U(e,G.arguments_cannot_be_referenced_in_property_initializers_or_class_static_initialization_blocks);return}let t=bh(e);if(t)for(j<2&&(t.kind===220?U(e,G.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):Qy(t,1024)&&U(e,G.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),To(t).flags|=512;t&&jk(t);)t=bh(t),t&&(To(t).flags|=512);return}let n=Rc(t),r=lq(n,e);ao(r)&&ww(e,r)&&r.declarations&&so(e,r.declarations,e.escapedText);let i=n.valueDeclaration;if(i&&n.flags&32&&zu(i)&&i.name!==e){let t=Eh(e,!1,!1);for(;t.kind!==308&&t.parent!==i;)t=Eh(t,!1,!1);t.kind!==308&&(To(i).flags|=262144,To(t).flags|=262144,To(e).flags|=536870912)}Kte(e,t)}function VF(e,t){if(Py(e))return QF(e);let n=DN(e);if(n===Ft)return Gt;if(BF(e,n),n===Ke)return MR(e)?Gt:Jf(n);UF(e)&&wF(e,1);let r=Rc(n),i=r.valueDeclaration,a=i;if(i&&i.kind===209&&C(Hi,i.parent)&&K(e,e=>e===i.parent))return qt;let o=zF(r,e),s=T_(e);if(s){if(!(r.flags&3)&&!(ng(e)&&r.flags&512))return U(e,r.flags&384?G.Cannot_assign_to_0_because_it_is_an_enum:r.flags&32?G.Cannot_assign_to_0_because_it_is_a_class:r.flags&1536?G.Cannot_assign_to_0_because_it_is_a_namespace:r.flags&16?G.Cannot_assign_to_0_because_it_is_a_function:r.flags&2097152?G.Cannot_assign_to_0_because_it_is_an_import:G.Cannot_assign_to_0_because_it_is_not_a_variable,Hl(n)),Gt;if($V(r))return r.flags&3?U(e,G.Cannot_assign_to_0_because_it_is_a_constant,Hl(n)):U(e,G.Cannot_assign_to_0_because_it_is_a_read_only_property,Hl(n)),Gt}let c=r.flags&2097152;if(r.flags&3){if(s===1)return D_(e)?cj(o):o}else if(c)i=Qo(n);else return o;if(!i)return o;o=SF(o,e,t);let l=Dv(i).kind===170,u=aF(i),d=aF(e),f=d!==u,p=e.parent&&e.parent.parent&&gj(e.parent)&&oP(e.parent.parent),m=n.flags&134217728,h=o===Ht||o===Ir,g=h&&e.parent.kind===236;for(;d!==u&&(d.kind===219||d.kind===220||hh(d))&&(pF(r)&&o!==Ir||mF(r)&&sF(r,e));)d=aF(d);let _=a&&bA(a)&&!a.initializer&&!a.exclamationToken&&hF(a)&&!Ute(n),v=l||c||f&&!_||p||m||HF(e,i)||o!==Ht&&o!==Ir&&(!fe||(o.flags&16387)!=0||Ny(e)||ON(e)||e.parent.kind===282)||e.parent.kind===236||i.kind===261&&i.exclamationToken||i.flags&33554432,y=g?Xt:v?l?_F(o,i):o:h?Xt:Jj(o),b=g?Qj(rF(e,o,y,d)):rF(e,o,y,d);if(!WP(e)&&(o===Ht||o===Ir)){if(b===Ht||b===Ir)return ye&&(U(el(i),G.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Hl(n),Yl(b)),U(e,G.Variable_0_implicitly_has_an_1_type,Hl(n),Yl(b))),mG(b)}else if(!v&&!iO(o)&&iO(b))return U(e,G.Variable_0_is_used_before_being_assigned,Hl(n)),o;return s?cj(b):b}function HF(e,t){if(bk(t)){let n=K(e,bk);return n&&Dv(n)===Dv(t)}}function UF(e){let t=e.parent;if(t){if(Ck(t)&&t.expression===e||KA(t)&&t.isTypeOnly)return!1;let n=t.parent?.parent;if(n&&WA(n)&&n.isTypeOnly)return!1}return!0}function WF(e,t){return!!K(e,e=>e===t?`quit`:ju(e)||e.parent&&RO(e.parent)&&!eb(e.parent)&&e.parent.initializer===e)}function Gte(e,t){return K(e,e=>e===t?`quit`:e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement)}function GF(e){return K(e,e=>!e||Ov(e)?`quit`:bd(e,!1))}function Kte(e,t){if(j>=2||!(t.flags&34)||!t.valueDeclaration||vj(t.valueDeclaration)||t.valueDeclaration.parent.kind===300)return;let n=cm(t.valueDeclaration),r=WF(e,n),i=GF(n);if(i){if(r){let r=!0;if(cA(n)){let i=Q_(t.valueDeclaration,262);if(i&&i.parent===n){let i=Gte(e.parent,n);if(i){let e=To(i);e.flags|=8192,De(e.capturedBlockScopeBindings||=[],t),i===n.initializer&&(r=!1)}}}r&&(To(i).flags|=4096)}if(cA(n)){let r=Q_(t.valueDeclaration,262);r&&r.parent===n&&qF(e,n)&&(To(t.valueDeclaration).flags|=65536)}To(t.valueDeclaration).flags|=32768}r&&(To(t.valueDeclaration).flags|=16384)}function KF(e,t){let n=To(e);return!!n&&C(n.capturedBlockScopeBindings,wc(t))}function qF(e,t){let n=e;for(;n.parent.kind===218;)n=n.parent;let r=!1;if(E_(n))r=!0;else if(n.parent.kind===225||n.parent.kind===226){let e=n.parent;r=e.operator===46||e.operator===47}return r?!!K(n,e=>e===t?`quit`:e===t.statement):!1}function JF(e,t){if(To(e).flags|=2,t.kind===173||t.kind===177){let e=t.parent;To(e).flags|=4}else To(t).flags|=4}function YF(e){return zm(e)?e:ju(e)?void 0:pP(e,YF)}function XF(e){return gp(Kp(wc(e)))===nn}function ZF(e,t,n){let r=t.parent;q_(r)&&!XF(r)&&c_(e)&&e.flowNode&&!tF(e.flowNode,!1)&&U(e,n)}function qte(e,t){RO(t)&&eb(t)&&ce&&t.initializer&&cc(t.initializer,e.pos)&&ob(t.parent)&&U(e,G.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function QF(e){let t=Ny(e),n=Eh(e,!0,!0),r=!1,i=!1;for(n.kind===177&&ZF(e,n,G.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(n.kind===220&&(n=Eh(n,!1,!i),r=!0),n.kind===168){n=Eh(n,!r,!1),i=!0;continue}break}if(qte(e,n),i)U(e,G.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 268:U(e,G.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 267:U(e,G.this_cannot_be_referenced_in_current_location);break}!t&&r&&j<2&&JF(e,n);let a=$F(e,!0,n);if(be){let t=Jf(L);if(a===t&&r)U(e,G.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){let r=U(e,G.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!vj(n)){let e=$F(n);e&&e!==t&&Dw(r,mm(n,G.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Vt}function $F(e,t=!0,n=Eh(e,!1,!1)){let r=ng(e);if(ju(n)&&(!gI(e)||Ay(n))){let t=aee(n)||r&&nI(n);if(!t){let e=tI(n);if(r&&e){let n=cU(e).symbol;n&&n.members&&n.flags&16&&(t=Kp(n).thisType)}else kB(n)&&(t=Kp(Cc(n.symbol)).thisType);t||=cI(n)}if(t)return rF(e,t)}if(zu(n.parent)){let t=wc(n.parent);return rF(e,$y(n)?Jf(t):Kp(t).thisType)}if(vj(n)){if(n.commonJsModuleIndicator){let e=wc(n);return e&&Jf(e)}else if(n.externalModuleIndicator)return Xt;else if(t)return Jf(L)}}function eI(e){let t=Eh(e,!1,!1);if(ju(t)){let e=by(t);if(e.thisParameter)return KP(e.thisParameter)}if(zu(t.parent)){let e=wc(t.parent);return $y(t)?Jf(e):Kp(e).thisType}}function tI(e){if(e.kind===219&&Rk(e.parent)&&Eg(e.parent)===3)return e.parent.left.expression.expression;if(e.kind===175&&e.parent.kind===211&&Rk(e.parent.parent)&&Eg(e.parent.parent)===6)return e.parent.parent.left.expression;if(e.kind===219&&e.parent.kind===304&&e.parent.parent.kind===211&&Rk(e.parent.parent.parent)&&Eg(e.parent.parent.parent)===6)return e.parent.parent.parent.left.expression;if(e.kind===219&&mj(e.parent)&&Y(e.parent.name)&&(e.parent.name.escapedText===`value`||e.parent.name.escapedText===`get`||e.parent.name.escapedText===`set`)&&Sk(e.parent.parent)&&Tk(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&Eg(e.parent.parent.parent)===9)return e.parent.parent.parent.arguments[0].expression;if(BO(e)&&Y(e.name)&&(e.name.escapedText===`value`||e.name.escapedText===`get`||e.name.escapedText===`set`)&&Sk(e.parent)&&Tk(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&Eg(e.parent.parent)===9)return e.parent.parent.arguments[0].expression}function nI(e){let t=wl(e);if(t&&t.typeExpression)return DE(t.typeExpression);let n=Sy(e);if(n)return Fy(n)}function rI(e,t){return!!K(e,e=>Nu(e)?`quit`:e.kind===170&&e.parent===t)}function iI(e){let t=e.parent.kind===214&&e.parent.expression===e,n=Ah(e,!0),r=n,i=!1,a=!1;if(!t){for(;r&&r.kind===220;)Qy(r,1024)&&(a=!0),r=Ah(r,!0),i=j<2;r&&Qy(r,1024)&&(a=!0)}let o=0;if(!r||!u(r)){let n=K(e,e=>e===r?`quit`:e.kind===168);return n&&n.kind===168?U(e,G.super_cannot_be_referenced_in_a_computed_property_name):t?U(e,G.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!r||!r.parent||!(zu(r.parent)||r.parent.kind===211)?U(e,G.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):U(e,G.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Gt}if(!t&&n.kind===177&&ZF(e,r,G.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),$y(r)||t?(o=32,!t&&j>=2&&j<=8&&(RO(r)||VO(r))&&uee(e.parent,e=>{(!vj(e)||Am(e))&&(To(e).flags|=2097152)})):o=16,To(e).flags|=o,r.kind===175&&a&&(Mh(e.parent)&&E_(e.parent)?To(r).flags|=256:To(r).flags|=128),i&&JF(e.parent,r),r.parent.kind===211)return j<2?(U(e,G.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Gt):Vt;let s=r.parent;if(!q_(s))return U(e,G.super_can_only_be_referenced_in_a_derived_class),Gt;if(XF(s))return t?Gt:nn;let c=Kp(wc(s)),l=c&&bp(c)[0];if(!l)return Gt;if(r.kind===177&&rI(e,r))return U(e,G.super_cannot_be_referenced_in_constructor_arguments),Gt;return o===32?gp(c):Km(l,c.thisType);function u(e){return t?e.kind===177:zu(e.parent)||e.parent.kind===211?$y(e)?e.kind===175||e.kind===174||e.kind===178||e.kind===179||e.kind===173||e.kind===176:e.kind===175||e.kind===174||e.kind===178||e.kind===179||e.kind===173||e.kind===172||e.kind===177:!1}}function aI(e){return(e.kind===175||e.kind===178||e.kind===179)&&e.parent.kind===211?e.parent:e.kind===219&&e.parent.kind===304?e.parent.parent:void 0}function oI(e){return Wx(e)&4&&e.target===Pr?ex(e)[0]:void 0}function Jte(e){return AP(e,e=>e.flags&2097152?d(e.types,oI):oI(e))}function sI(e,t){let n=e,r=t;for(;r;){let e=Jte(r);if(e)return e;if(n.parent.kind!==304)break;n=n.parent.parent,r=UI(n,void 0)}}function cI(e){if(e.kind===220)return;if(CD(e)){let t=hL(e);if(t){let e=t.thisParameter;if(e)return Jf(e)}}let t=ng(e);if(be||t){let n=aI(e);if(n){let e=UI(n,void 0),t=sI(n,e);return t?dD(t,KM($I(n))):CM(e?Qj(e):RH(n))}let r=M_(e.parent);if(kb(r)){let e=r.left;if(Zx(e)){let{expression:n}=e;if(t&&Y(n)){let e=Yf(r);if(e.commonJsModuleIndicator&&DN(n)===e.symbol)return}return CM(RH(n))}}}}function lI(e){let t=e.parent;if(!CD(t))return;let n=jh(t);if(n&&n.arguments){let r=Fz(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return Oz(r,i,r.length,Vt,void 0,0);let a=To(n),o=a.resolvedSignature;a.resolvedSignature=rr;let s=i0)return qd(n.name,!0,!1)}}function Yte(e,t){let n=bh(e);if(n){let e=vI(n,t);if(e){let t=cv(n);if(t&1){let n=(t&2)!=0;e.flags&1048576&&(e=TP(e,e=>!!aK(1,e,n)));let r=aK(1,e,(t&2)!=0);if(!r)return;e=r}if(t&2){let t=AP(e,uW);return t&&AC([t,LV(t)])}return e}}}function mI(e,t){let n=KI(e,t);if(n){let e=uW(n);return e&&AC([e,LV(e)])}}function hI(e,t){let n=bh(e);if(n){let r=cv(n),i=vI(n,t);if(i){let n=(r&2)!=0;if(!e.asteriskToken&&i.flags&1048576&&(i=TP(i,e=>!!aK(1,e,n))),e.asteriskToken){let r=oK(i,n),a=r?.yieldType??Cn,o=KI(e,t)??Cn,s=r?.nextType??Yt,c=VV(a,o,s,!1);return n?AC([c,VV(a,o,s,!0)]):c}return aK(0,i,n)}}}function gI(e){let t=!1;for(;e.parent&&!ju(e.parent);){if(FO(e.parent)&&(t||e.parent.initializer===e))return!0;bk(e.parent)&&e.parent.initializer===e&&(t=!0),e=e.parent}return!1}function _I(e,t){let n=!!(cv(t)&2),r=vI(t,void 0);if(r)return aK(e,r,n)||void 0}function vI(e,t){let n=Wy(e);if(n)return n;let r=mL(e);if(r&&!Gy(r)){let t=Uy(r),n=cv(e);return n&1?TP(t,e=>!!(e.flags&58998787)||mU(e,n,void 0)):n&2?TP(t,e=>!!(e.flags&58998787)||!!eW(e)):t}let i=jh(e);if(i)return KI(i,t)}function yI(e,t){let n=Fz(e).indexOf(t);return n===-1?void 0:bI(e,n)}function bI(e,t){if(Bm(e))return t===0?rn:t===1?Vx(!1):Vt;let n=To(e).resolvedSignature===ar?ar:OB(e);if(Jd(e)&&t===0)return aL(n,e);let r=n.parameters.length-1;return xB(n)&&t>=r?sT(Jf(n.parameters[r]),gE(t-r),256):sV(n,t)}function xI(e){let t=FV(e);return t?hb(t):void 0}function SI(e,t){if(e.parent.kind===216)return yI(e.parent,t)}function CI(e,t){let n=e.parent,{left:r,operatorToken:i,right:a}=n;switch(i.kind){case 64:case 77:case 76:case 78:return e===a?TI(n):void 0;case 57:case 61:let i=KI(n,t);return e===a&&(i&&i.pattern||!i&&!yg(n))?aU(r):i;case 56:case 28:return e===a?KI(n,t):void 0;default:return}}function wI(e){if(Md(e)&&e.symbol)return e.symbol;if(Y(e))return DN(e);if(Ck(e)){let n=aU(e.expression);return vO(e.name)?t(n,e.name):Kv(n,e.name.escapedText)}if(wk(e)){let t=RH(e.argumentExpression);return kT(t)?Kv(aU(e.expression),AT(t)):void 0}return;function t(e,t){let n=xR(t.escapedText,t);return n&&TR(e,n)}}function TI(e){let t=Eg(e);switch(t){case 0:case 4:let n=wI(e.left),r=n&&n.valueDeclaration;if(r&&(RO(r)||LO(r))){let t=Ly(r);return t&&dD(DE(t),wo(n).mapper)||(RO(r)?r.initializer&&aU(e.left):void 0)}return t===0?aU(e.left):DI(e);case 5:if(EI(e,t))return DI(e);if(!Md(e.left)||!e.left.symbol)return aU(e.left);{let t=e.left.symbol.valueDeclaration;if(!t)return;let n=yt(e.left,Zx),r=Ly(t);if(r)return DE(r);if(Y(n.expression)){let e=n.expression,t=rt(e,e.escapedText,111551,void 0,!0);if(t){let e=t.valueDeclaration&&Ly(t.valueDeclaration);if(e){let t=Lg(n);if(t!==void 0)return kI(DE(e),t)}return}}return ng(t)||t===e.left?void 0:aU(e.left)}case 1:case 6:case 3:case 2:let i;t!==2&&(i=Md(e.left)?e.left.symbol?.valueDeclaration:void 0),i||=e.symbol?.valueDeclaration;let a=i&&Ly(i);return a?DE(a):void 0;case 7:case 8:case 9:return H.fail(`Does not apply`);default:return H.assertNever(t)}}function EI(e,t=Eg(e)){if(t===4)return!0;if(!ng(e)||t!==5||!Y(e.left.expression))return!1;let n=e.left.expression.escapedText;return Ph(rt(e.left,n,111551,void 0,!0,!0)?.valueDeclaration)}function DI(e){if(!e.symbol)return aU(e.left);if(e.symbol.valueDeclaration){let t=Ly(e.symbol.valueDeclaration);if(t){let e=DE(t);if(e)return e}}let t=yt(e.left,Zx);if(!mh(Eh(t.expression,!1,!1)))return;let n=QF(t.expression),r=Lg(t);return r!==void 0&&kI(n,r)||void 0}function Xte(e){return!!(jx(e)&262144&&!e.links.type&&Eu(e,0)>=0)}function OI(e,t){if(e.flags&16777216){let n=e;return!!(Hv(UT(n)).flags&131072)&&NT(KT(n))===NT(n.checkType)&&MD(t,n.extendsType)}return e.flags&2097152?F(e.types,e=>OI(e,t)):!1}function kI(e,t,n){return AP(e,e=>{if(e.flags&2097152){let r,i,a=!1;for(let o of e.types){if(!(o.flags&524288))continue;if(a_(o)&&s_(o)!==2){let e=jI(o,t,n);r=AI(r,e);continue}let e=MI(o,t);if(!e){a||(i=I(i,o));continue}a=!0,i=void 0,r=AI(r,e)}if(i)for(let e of i){let i=NI(e,t,n);r=AI(r,i)}return r?r.length===1?r[0]:HC(r):void 0}if(e.flags&524288)return a_(e)&&s_(e)!==2?jI(e,t,n):MI(e,t)??NI(e,t,n)},!0)}function AI(e,t){return t?I(e,t.flags&1?Yt:t):e}function jI(e,t,n){let r=n||hE(Wc(t)),i=Fg(e);if(!(e.nameType&&OI(e.nameType,r)||OI(i,r))&&MD(r,ov(i)||i))return tT(e,r)}function MI(e,t){let n=Kv(e,t);if(!(!n||Xte(n)))return cM(Jf(n),!!(n.flags&16777216))}function NI(e,t,n){if(Ej(e)&&cT(t)&&+t>=0){let t=Bj(e,e.target.fixedLength,0,!1,!0);if(t)return t}return Xv(ey(e),n||hE(Wc(t)))?.type}function PI(e,t){if(H.assert(mh(e)),!(e.flags&67108864))return FI(e,t)}function FI(e,t){let n=e.parent,r=mj(e)&&uI(e,t);if(r)return r;let i=UI(n,t);if(i){if(Fm(e)){let t=wc(e);return kI(i,t.escapedName,wo(t).nameType)}if(fv(e)){let t=el(e);if(t&&NO(t)){let e=cU(t.expression),n=kT(e)&&kI(i,AT(e));if(n)return n}}if(e.name){let t=$C(e.name);return AP(i,e=>Xv(ey(e),t)?.type,!0)}}}function II(e){let t,n;for(let r=0;r{if(Ej(e)){if((r===void 0||ti)?n-t:0,o=a>0&&e.target.combinedFlags&12?fC(e.target,3):0;return a>0&&a<=o?ex(e)[tx(e)-a]:Bj(e,r===void 0?e.target.fixedLength:Math.min(e.target.fixedLength,r),n===void 0||i===void 0?o:Math.min(o,n-i),!1,!0)}return(!r||tkA(e)?sT(e,gE(o)):e,!0))}function Qte(e,t){let n=e.parent;return Kd(n)?KI(e,t):QA(n)?Zte(n,e,t):void 0}function zI(e,t){if(aj(e)){let n=UI(e.parent,t);return!n||Ku(n)?void 0:kI(n,CT(e.name))}else return KI(e.parent,t)}function BI(e){switch(e.kind){case 11:case 9:case 10:case 15:case 229:case 112:case 97:case 106:case 80:case 157:return!0;case 212:case 218:return BI(e.expression);case 295:return!e.expression||BI(e.expression)}return!1}function VI(e,t){let n=`D${mB(e)},${yC(t)}`;return za(n)??Ba(n,kte(t,e)??SO(t,de(k(E(e.properties,e=>e.symbol?e.kind===304?BI(e.initializer)&&IN(t,e.symbol.escapedName):e.kind===305?IN(t,e.symbol.escapedName):!1:!1),e=>[()=>sU(e.kind===304?e.initializer:e.name),e.symbol.escapedName]),k(E(S_(t),n=>!!(n.flags&16777216)&&!!e?.symbol?.members&&!e.symbol.members.has(n.escapedName)&&IN(t,n.escapedName)),e=>[()=>Xt,e.escapedName])),MD))}function HI(e,t){let n=`D${mB(e)},${yC(t)}`,r=za(n);if(r)return r;let i=GL(HL(e));return Ba(n,SO(t,de(k(E(e.properties,e=>!!e.symbol&&e.kind===292&&IN(t,e.symbol.escapedName)&&(!e.initializer||BI(e.initializer))),e=>[e.initializer?()=>sU(e.initializer):()=>un,e.symbol.escapedName]),k(E(S_(t),n=>{if(!(n.flags&16777216)||!e?.symbol?.members)return!1;let r=e.parent.parent;return n.escapedName===i&&QA(r)&&Rv(r.children).length?!1:!e.symbol.members.has(n.escapedName)&&IN(t,n.escapedName)}),e=>[()=>Xt,e.escapedName])),MD))}function UI(e,t){let n=WI(mh(e)?PI(e,t):KI(e,t),e,t);if(n&&!(t&&t&2&&n.flags&8650752)){let t=AP(n,e=>Wx(e)&32?e:Fv(e),!0);return t.flags&1048576&&Sk(e)?VI(e,t):t.flags&1048576&&oj(e)?HI(e,t):t}}function WI(e,t,n){if(e&&lH(e,465829888)){let r=$I(t);if(r&&n&1&&F(r.inferences,eU))return GI(e,r.nonFixingMapper);if(r?.returnMapper){let t=GI(e,r.returnMapper);return t.flags&1048576&&bC(t.types,ln)&&bC(t.types,dn)?TP(t,e=>e!==ln&&e!==dn):t}}return e}function GI(e,t){return e.flags&465829888?dD(e,t):e.flags&1048576?AC(k(e.types,e=>GI(e,t)),0):e.flags&2097152?HC(k(e.types,e=>GI(e,t))):e}function KI(e,t){var n;if(e.flags&67108864)return;let r=XI(e,!t);if(r>=0)return zi[r];let{parent:i}=e;switch(i.kind){case 261:case 170:case 173:case 172:case 209:return pI(e,t);case 220:case 254:return Yte(e,t);case 230:return hI(i,t);case 224:return mI(i,t);case 214:case 215:return yI(i,e);case 171:return xI(i);case 217:case 235:return Xl(i.type)?KI(i,t):DE(i.type);case 227:return CI(e,t);case 304:case 305:return FI(i,t);case 306:return KI(i.parent,t);case 210:{let r=i,a=UI(r,t),o=Op(r.elements,e),s=(n=To(r)).spreadIndices??(n.spreadIndices=II(r.elements));return LI(a,o,r.elements.length,s.first,s.last)}case 228:return RI(e,t);case 240:return H.assert(i.parent.kind===229),SI(i.parent,e);case 218:if(ng(i)){if(bT(i))return DE(xT(i));let e=Ol(i);if(e&&!Xl(e.typeExpression.type))return DE(e.typeExpression.type)}return KI(i,t);case 236:return KI(i,t);case 239:return DE(i.type);case 278:return lf(i);case 295:return Qte(i,t);case 292:case 294:return zI(i,t);case 287:case 286:return iL(i,t);case 302:return rL(i)}}function qI(e){JI(e,KI(e,void 0),!0)}function JI(e,t,n){Ri[Vi]=e,zi[Vi]=t,Bi[Vi]=n,Vi++}function YI(){Vi--,Ri[Vi]=void 0,zi[Vi]=void 0,Bi[Vi]=void 0}function XI(e,t){for(let n=Vi-1;n>=0;n--)if(e===Ri[n]&&(t||!Bi[n]))return n;return-1}function ZI(e,t){Ui[Gi]=e,Wi[Gi]=t,Gi++}function QI(){Gi--,Ui[Gi]=void 0,Wi[Gi]=void 0}function $I(e){for(let t=Gi-1;t>=0;t--)if(L_(e,Ui[t]))return Wi[t]}function $te(e){Ki[Yi]=e,qi[Yi]??(qi[Yi]=new Map),Yi++}function eL(){Yi--,Ki[Yi]=void 0,qi[Yi].clear()}function tL(e){for(let t=Yi-1;t>=0;t--)if(e===Ki[t])return t;return-1}function nL(){for(let e=Yi-1;e>=0;e--)qi[e].clear()}function rL(e){return kI(Hx(!1),FT(e))}function iL(e,t){if(ej(e)&&t!==4){let n=XI(e.parent,!t);if(n>=0)return zi[n]}return bI(e,0)}function aL(e,t){return rj(t)||Az(t)!==0?oL(e,t):tne(e,t)}function oL(e,t){let n=vV(e,Yt);n=cL(t,HL(t),n);let r=zL(yB.IntrinsicAttributes,t);return Yu(r)||(n=Vh(r,n)),n}function ene(e,t){if(e.compositeSignatures){let n=[];for(let r of e.compositeSignatures){let e=Uy(r);if(Ku(e))return e;let i=Wu(e,t);if(!i)return;n.push(i)}return HC(n)}let n=Uy(e);return Ku(n)?n:Wu(n,t)}function sL(e){if(rj(e))return vB(e);if(ML(e.tagName))return hb(_B(e,YL(e)));let t=RH(e.tagName);if(t.flags&128){let n=qL(t,e);return n?hb(_B(e,n)):Gt}return t}function cL(e,t,n){let r=WL(t);if(r){let t=sL(e),i=hne(r,ng(e),t,n);if(i)return i}return n}function tne(e,t){let n=HL(t),r=pne(n),i=r===void 0?vV(e,Yt):r===``?Uy(e):ene(e,r);if(!i)return r&&u(t.attributes.properties)&&U(t,G.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Wc(r)),Yt;if(i=cL(t,n,i),Ku(i))return i;{let n=i,r=zL(yB.IntrinsicClassAttributes,t);if(!Yu(r)){let i=lp(r.symbol),a=Uy(e),o;o=i?dD(r,ME(i,vy([a],i,_y(i),ng(t)))):r,n=Vh(o,n)}let a=zL(yB.IntrinsicAttributes,t);return Yu(a)||(n=Vh(a,n)),n}}function nne(e){return sC(A,`noImplicitAny`)?Ge(e,(e,t)=>e===t||!e?e:_h(e.typeParameters,t.typeParameters)?dL(e,t):void 0):void 0}function lL(e,t,n){return!e||!t?e||t:mM(e,AC([Jf(e),dD(Jf(t),n)]))}function uL(e,t,n){let r=dV(e),i=dV(t),a=r>=i?e:t,o=a===e?t:e,s=a===e?r:i,c=mV(e)||mV(t),l=c&&!mV(a),u=Array(s+(l?1:0));for(let d=0;d=fV(a)&&d>=fV(o),_=d>=r?void 0:nV(e,d),v=d>=i?void 0:nV(t,d),y=lo(1|(g&&!h?16777216:0),(_===v?_:_?v?void 0:_:v)||`arg${d}`,h?32768:g?16384:0);y.links.type=h?PS(m):m,u[d]=y}if(l){let e=lo(1,`args`,32768);e.links.type=PS(sV(o,s)),o===t&&(e.links.type=dD(e.links.type,n)),u[s]=e}return u}function dL(e,t){let n=e.typeParameters||t.typeParameters,r;e.typeParameters&&t.typeParameters&&(r=ME(t.typeParameters,e.typeParameters));let i=(e.flags|t.flags)&166,a=e.declaration,o=uL(e,t,r),s=Re(o);s&&jx(s)&32768&&(i|=1);let c=Xm(a,n,lL(e.thisParameter,t.thisParameter,r),o,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return c.compositeKind=2097152,c.compositeSignatures=de(e.compositeKind===2097152&&e.compositeSignatures||[e],[t]),r&&(c.mapper=e.compositeKind===2097152&&e.mapper&&e.compositeSignatures?BE(e.mapper,r):r),c}function fL(e,t){let n=E(Jv(e,0),e=>!pL(e,t));return n.length===1?n[0]:nne(n)}function pL(e,t){let n=0;for(;n{let o=i.getTokenEnd();if(e.category===3&&n&&o===n.start&&r===n.length){let i=hS(t.fileName,t.text,o,r,e,a);Dw(n,i)}else (!n||o!==n.start)&&(n=vS(t,o,r,e,a),Ea.add(n))}),i.setText(t.text,e.pos,e.end-e.pos);try{return i.scan(),H.assert(i.reScanSlashToken(!0)===14,`Expected scanner to rescan RegularExpressionLiteral`),!!n}finally{i.setText(``),i.setOnError(void 0)}}return!1}function rne(e){let t=To(e);return t.flags&1||(t.flags|=1,n(()=>gL(e))),Nr}function _L(e,t){return jzA(e)||a_(e)&&!e.nameType&&!!$E(e.target||e)),d=!1;for(let c=0;co[t]&8?gT(e,on)||Vt:e),2):fe?wn:Zt,c))}function SL(e){if(!(Wx(e)&4))return e;let t=e.literalType;return t||(t=e.literalType=Qb(e),t.objectFlags|=147456),t}function CL(e){switch(e.kind){case 168:return wL(e);case 80:return cT(e.escapedText);case 9:case 11:return cT(e.text);default:return!1}}function wL(e){return uH(TL(e),296)}function TL(e){let t=To(e.expression);if(!t.resolvedType){if(($O(e.parent.parent)||zu(e.parent.parent)||wA(e.parent.parent))&&Rk(e.expression)&&e.expression.operatorToken.kind===103&&e.parent.kind!==178&&e.parent.kind!==179)return t.resolvedType=Gt;if(t.resolvedType=cU(e.expression),RO(e.parent)&&!eb(e.parent)&&Uk(e.parent.parent)){let t=GF(cm(e.parent.parent));t&&(To(t).flags|=4096,To(e).flags|=32768,To(e.parent.parent).flags|=32768)}(t.resolvedType.flags&98304||!uH(t.resolvedType,402665900)&&!MD(t.resolvedType,On))&&U(e,G.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function ine(e){let t=e.declarations?.[0];return cT(e.escapedName)||t&&Qc(t)&&CL(t.name)}function EL(e){let t=e.declarations?.[0];return yv(e)||t&&Qc(t)&&NO(t.name)&&uH(TL(t.name),4096)}function ane(e){let t=e.declarations?.[0];return t&&Qc(t)&&NO(t.name)}function DL(e,t,n,r){let i=[],a;for(let e=t;e0&&(o=sE(o,x(),e.symbol,h,u),a=[],i=Cf(),_=!1,v=!1,y=!1);let n=Hv(cU(c.expression,t&2));if(AL(n)){let t=aE(n,u);if(r&&LL(t,r,c),b=a.length,Yu(o))continue;o=sE(o,t,e.symbol,h,u)}else U(c,G.Spread_types_may_only_be_created_from_object_types),o=Gt;continue}else H.assert(c.kind===178||c.kind===179),Oq(c);S&&!(S.flags&8576)?MD(S,On)&&(MD(S,on)?v=!0:MD(S,gn)?y=!0:_=!0,n&&(g=!0)):i.set(m.escapedName,m),a.push(m)}if(YI(),Yu(o))return Gt;if(o!==zn)return a.length>0&&(o=sE(o,x(),e.symbol,h,u),a=[],i=Cf(),_=!1,v=!1),AP(o,e=>e===zn?x():e);return x();function x(){let t=[],r=qH(e);_&&t.push(DL(r,b,a,rn)),v&&t.push(DL(r,b,a,on)),y&&t.push(DL(r,b,a,gn));let o=pl(e.symbol,i,c,c,t);return o.objectFlags|=h|131200,m&&(o.objectFlags|=4096),g&&(o.objectFlags|=512),n&&(o.pattern=e),o}}function AL(e){let t=Uj(AP(e,sv));return!!(t.flags&126615553||t.flags&3145728&&v(t.types,AL))}function one(e){$L(e)}function sne(e,t){return Oq(e),ZL(e)||Vt}function cne(e){$L(e.openingElement),ML(e.closingElement.tagName)?BL(e.closingElement):cU(e.closingElement.tagName),IL(e)}function lne(e,t){return Oq(e),ZL(e)||Vt}function une(e){$L(e.openingFragment);let t=Yf(e);mC(A)&&(A.jsxFactory||t.pragmas.has(`jsx`))&&!A.jsxFragmentFactory&&!t.pragmas.has(`jsxfrag`)&&U(e,A.jsxFactory?G.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:G.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),IL(e);let n=ZL(e);return Yu(n)?Vt:n}function jL(e){return e.includes(`-`)}function ML(e){return Y(e)&&$v(e.escapedText)||lj(e)}function NL(e,t){return e.initializer?JH(e.initializer,t):un}function PL(e,t=0){let n=fe?Cf():void 0,r=Cf(),i=Bn,a=!1,o,s=!1,l=2048,u=GL(HL(e)),d=rj(e),f,p=e;if(!d){let c=e.attributes;f=c.symbol,p=c;let d=KI(c,0);for(let e of c.properties){let f=e.symbol;if(aj(e)){let i=NL(e,t);l|=Wx(i)&458752;let a=lo(4|f.flags,f.escapedName);if(a.declarations=f.declarations,a.parent=f.parent,f.valueDeclaration&&(a.valueDeclaration=f.valueDeclaration),a.links.type=i,a.links.target=f,r.set(a.escapedName,a),n?.set(a.escapedName,a),CT(e.name)===u&&(s=!0),d){let t=Kv(d,f.escapedName);t&&t.declarations&&ao(t)&&Y(e.name)&&so(e.name,t.declarations,e.name.escapedText)}if(d&&t&2&&!(t&4)&&vD(e)){let t=$I(c);H.assert(t);let n=e.initializer.expression;HM(t,n,i)}}else{H.assert(e.kind===294),r.size>0&&(i=sE(i,h(),c.symbol,l,!1),r=Cf());let s=Hv(cU(e.expression,t&2));Ku(s)&&(a=!0),AL(s)?(i=sE(i,s,c.symbol,l,!1),n&&LL(s,n,e)):(U(e.expression,G.Spread_types_may_only_be_created_from_object_types),o=o?HC([o,s]):s)}}a||r.size>0&&(i=sE(i,h(),c.symbol,l,!1))}let m=e.parent;if((QA(m)&&m.openingElement===e||nj(m)&&m.openingFragment===e)&&Rv(m.children).length>0){let n=IL(m,t);if(!a&&u&&u!==``){s&&U(p,G._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Wc(u));let t=ej(e)?UI(e.attributes,void 0):void 0,r=t&&kI(t,u),a=lo(4,u);a.links.type=n.length===1?n[0]:r&&CP(r,zA)?QS(n):PS(AC(n)),a.valueDeclaration=J.createPropertySignature(void 0,Wc(u),void 0,void 0),Zw(a.valueDeclaration,p),a.valueDeclaration.symbol=a;let o=Cf();o.set(u,a),i=sE(i,pl(f,o,c,c,c),f,l,!1)}}if(a)return Vt;if(o&&i!==Bn)return HC([o,i]);return o||(i===Bn?h():i);function h(){return l|=8192,FL(l,f,r)}}function FL(e,t,n){let r=pl(t,n,c,c,c);return r.objectFlags|=e|139392,r}function IL(e,t){let n=[];for(let r of e.children)if(r.kind===12)r.containsOnlyTriviaWhiteSpaces||n.push(rn);else if(r.kind===295&&!r.expression)continue;else n.push(JH(r,t));return n}function LL(e,t,n){for(let r of S_(e))if(!(r.flags&16777216)){let e=t.get(r.escapedName);e&&Dw(U(e.valueDeclaration,G._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Wc(e.escapedName)),mm(n,G.This_spread_always_overwrites_this_property))}}function RL(e,t){return PL(e.parent,t)}function zL(e,t){let n=HL(t),r=n&&yc(n),i=r&&Eo(r,e,788968);return i?Kp(i):Gt}function BL(e){let t=To(e);if(!t.resolvedSymbol){let n=zL(yB.IntrinsicElements,e);if(Yu(n))return ye&&U(e,G.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Wc(yB.IntrinsicElements)),t.resolvedSymbol=Ft;{if(!Y(e.tagName)&&!lj(e.tagName))return H.fail();let r=lj(e.tagName)?ET(e.tagName):e.tagName.escapedText,i=Kv(n,r);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;let a=Xq(n,hE(Wc(r)));return a?(t.jsxFlags|=2,t.resolvedSymbol=a):Gu(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(U(e,G.Property_0_does_not_exist_on_type_1,OT(e.tagName),`JSX.`+yB.IntrinsicElements),t.resolvedSymbol=Ft)}}return t.resolvedSymbol}function VL(e){let t=e&&Yf(e),n=t&&To(t);if(n&&n.jsxImplicitImportContainer===!1)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;let r=gC(hC(A,t),A);if(!r)return;let i=VS(A)===1?G.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:G.This_JSX_tag_requires_the_module_path_0_to_exist_but_none_could_be_found_Make_sure_you_have_types_for_the_appropriate_package_installed,a=nc(die(t,r)||e,r,i,e),o=a&&a!==Ft?Cc(Fs(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}function HL(e){let t=e&&To(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||t.jsxNamespace!==!1){let n=VL(e);if((!n||n===Ft)&&(n=rt(e,Va(e),1920,void 0,!1)),n){let e=Fs(Eo(yc(Fs(n)),yB.JSX,1920));if(e&&e!==Ft)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}let n=Fs(Ax(yB.JSX,1920,void 0));if(n!==Ft)return n}function dne(e,t){let n=t&&Eo(t.exports,e,788968),r=n&&Kp(n),i=r&&S_(r);if(i){if(i.length===0)return``;if(i.length===1)return i[0].escapedName;i.length>1&&n.declarations&&U(n.declarations[0],G.The_global_type_JSX_0_may_not_have_more_than_one_property,Wc(e))}}function WL(e){return e&&Eo(e.exports,yB.LibraryManagedAttributes,788968)}function fne(e){return e&&Eo(e.exports,yB.ElementType,788968)}function pne(e){return dne(yB.ElementAttributesPropertyNameContainer,e)}function GL(e){return A.jsx===4||A.jsx===5?`children`:dne(yB.ElementChildrenAttributeNameContainer,e)}function KL(e,t){if(e.flags&4)return[rr];if(e.flags&128){let n=qL(e,t);return n?[_B(t,n)]:(U(t,G.Property_0_does_not_exist_on_type_1,e.value,`JSX.`+yB.IntrinsicElements),c)}let n=Fv(e),r=Jv(n,1);return r.length===0&&(r=Jv(n,0)),r.length===0&&n.flags&1048576&&(r=gh(k(n.types,e=>KL(e,t)))),r}function qL(e,t){let n=zL(yB.IntrinsicElements,t);if(!Yu(n)){let t=e.value,r=Kv(n,Uc(t));return r?Jf(r):ay(n,rn)||void 0}return Vt}function JL(e,t,n){if(e===1){let e=QL(n);e&&hO(t,e,Na,n.tagName,G.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(e===0){let e=XL(n);e&&hO(t,e,Na,n.tagName,G.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{let e=QL(n),i=XL(n);if(!e||!i)return;hO(t,AC([e,i]),Na,n.tagName,G.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){let e=Ep(n.tagName);return SS(void 0,G._0_cannot_be_used_as_a_JSX_component,e)}}function YL(e){H.assert(ML(e.tagName));let t=To(e);if(!t.resolvedJsxElementAttributesType){let n=BL(e);if(t.jsxFlags&1)return t.resolvedJsxElementAttributesType=Jf(n)||Gt;if(t.jsxFlags&2){let n=lj(e.tagName)?ET(e.tagName):e.tagName.escapedText;return t.resolvedJsxElementAttributesType=ly(zL(yB.IntrinsicElements,e),n)?.type||Gt}else return t.resolvedJsxElementAttributesType=Gt}return t.resolvedJsxElementAttributesType}function XL(e){let t=zL(yB.ElementClass,e);if(!Yu(t))return t}function ZL(e){return zL(yB.Element,e)}function QL(e){let t=ZL(e);if(t)return AC([t,tn])}function mne(e){let t=HL(e);if(!t)return;let n=fne(t);if(!n)return;let r=hne(n,ng(e));if(!(!r||Yu(r)))return r}function hne(e,t,...n){let r=Kp(e);if(e.flags&524288){let i=wo(e).typeParameters;if(u(i)>=n.length){let a=vy(n,i,n.length,t);return u(a)===0?r:rx(e,a)}}if(u(r.typeParameters)>=n.length)return Zb(r,vy(n,r.typeParameters,n.length,t))}function gne(e){let t=zL(yB.IntrinsicElements,e);return t?S_(t):c}function _ne(e){(A.jsx||0)===0&&U(e,G.Cannot_use_JSX_unless_the_jsx_flag_is_provided),ZL(e)===void 0&&ye&&U(e,G.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function $L(e){let t=Jd(e);t&&EY(e),_ne(e),OF(e);let n=OB(e);if(FB(n,e),t){let t=e,r=mne(t);if(r!==void 0){let e=t.tagName;hO(ML(e)?hE(OT(e)):cU(e),r,Na,e,G.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let t=Ep(e);return SS(void 0,G._0_cannot_be_used_as_a_JSX_component,t)})}else JL(Az(t),Uy(n),t)}}function eR(e,t,n){if(e.flags&524288&&(f_(e,t)||ly(e,t)||Cm(t)&&ny(e,rn)||n&&jL(t)))return!0;if(e.flags&33554432)return eR(e.baseType,t,n);if(e.flags&3145728&&tR(e)){for(let r of e.types)if(eR(r,t,n))return!0}return!1}function tR(e){return!!(e.flags&524288&&!(Wx(e)&512)||e.flags&67108864||e.flags&33554432&&tR(e.baseType)||e.flags&1048576&&F(e.types,tR)||e.flags&2097152&&v(e.types,tR))}function vne(e,t){if(OY(e),e.expression){let n=cU(e.expression,t);return e.dotDotDotToken&&n!==Vt&&!hA(n)&&U(e,G.JSX_spread_child_must_be_an_array_type),n}else return Gt}function nR(e){return e.valueDeclaration?fX(e.valueDeclaration):0}function rR(e){if(e.flags&8192||jx(e)&4)return!0;if(ng(e.valueDeclaration)){let t=e.valueDeclaration.parent;return t&&Rk(t)&&Eg(t)===3}}function iR(e,t,n,r,i,a=!0){return aR(e,t,n,r,i,a?e.kind===167?e.right:e.kind===206?e:e.kind===209&&e.propertyName?e.propertyName:e.name:void 0)}function aR(e,t,n,r,i,a){let o=Mx(i,n);if(t){if(j<2&&cR(i))return a&&U(a,G.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(o&64)return a&&U(a,G.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Hl(i),Yl(Ok(i))),!1;if(!(o&256)&&i.declarations?.some(Hu))return a&&U(a,G.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Hl(i)),!1}if(o&64&&cR(i)&&(Nh(e)||Fh(e)||vk(e.parent)&&Ph(e.parent.parent))){let t=Ux(Ec(i));if(t&&Uq(e))return a&&U(a,G.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Hl(i),gv(t.name)),!1}if(!(o&6))return!0;if(o&2)return Wq(e,Ux(Ec(i)))?!0:(a&&U(a,G.Property_0_is_private_and_only_accessible_within_class_1,Hl(i),Yl(Ok(i))),!1);if(t)return!0;let s=Hq(e,e=>Bk(Kp(wc(e)),i,n));return!s&&(s=oR(e),s&&=Bk(s,i,n),o&256||!s)?(a&&U(a,G.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Hl(i),Yl(Ok(i)||r)),!1):o&256?!0:(r.flags&262144&&(r=r.isThisType?A_(r):ov(r)),!r||!ap(r,s)?(a&&U(a,G.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Hl(i),Yl(s),Yl(r)),!1):!0)}function oR(e){let t=sR(e),n=t?.type&&DE(t.type);if(n)n.flags&262144&&(n=A_(n));else{let t=Eh(e,!1,!1);ju(t)&&(n=cI(t))}if(n&&Wx(n)&7)return np(n)}function sR(e){let t=Eh(e,!1,!1);return t&&ju(t)?Ay(t):void 0}function cR(e){return!!_k(e,e=>!(e.flags&8192))}function lR(e){return hR(cU(e),e)}function uR(e){return XN(e,50331648)}function dR(e){return uR(e)?Qj(e):e}function fR(e,t){let n=Mb(e)?pm(e):void 0;if(e.kind===106){U(e,G.The_value_0_cannot_be_used_here,`null`);return}if(n!==void 0&&n.length<100){if(Y(e)&&n===`undefined`){U(e,G.The_value_0_cannot_be_used_here,`undefined`);return}U(e,t&16777216?t&33554432?G._0_is_possibly_null_or_undefined:G._0_is_possibly_undefined:G._0_is_possibly_null,n)}else U(e,t&16777216?t&33554432?G.Object_is_possibly_null_or_undefined:G.Object_is_possibly_undefined:G.Object_is_possibly_null)}function pR(e,t){U(e,t&16777216?t&33554432?G.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:G.Cannot_invoke_an_object_which_is_possibly_undefined:G.Cannot_invoke_an_object_which_is_possibly_null)}function mR(e,t,n){if(fe&&e.flags&2){if(Mb(t)){let e=pm(t);if(e.length<100)return U(t,G._0_is_of_type_unknown,e),Gt}return U(t,G.Object_is_of_type_unknown),Gt}let r=YN(e,50331648);if(r&50331648){n(t,r);let i=Qj(e);return i.flags&229376?Gt:i}return e}function hR(e,t){return mR(e,t,fR)}function gR(e,t){let n=hR(e,t);if(n.flags&16384){if(Mb(t)){let e=pm(t);if(Y(t)&&e===`undefined`)return U(t,G.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return U(t,G._0_is_possibly_undefined,e),n}U(t,G.Object_is_possibly_undefined)}return n}function _R(e,t,n){return e.flags&64?vR(e,t):OR(e,e.expression,lR(e.expression),e.name,t,n)}function vR(e,t){let n=cU(e.expression),r=sM(n,e.expression);return aM(OR(e,e.expression,hR(r,e.expression),e.name,t),e,r!==n)}function yR(e,t){let n=Jh(e)&&My(e.left)?hR(QF(e.left),e.left):lR(e.left);return OR(e,e.left,n,e.right,t)}function bR(e){for(;e.parent.kind===218;)e=e.parent;return ud(e.parent)&&e.parent.expression===e}function xR(e,t){for(let n=Th(t);n;n=Sh(n)){let{symbol:t}=n,r=vv(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function SR(e){if(!Sh(e))return $(e,G.Private_identifiers_are_not_allowed_outside_class_bodies);if(!lA(e.parent)){if(!Kh(e))return $(e,G.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let t=Rk(e.parent)&&e.parent.operatorToken.kind===103;if(!wR(e)&&!t)return $(e,G.Cannot_find_name_0,Gc(e))}return!1}function CR(e){SR(e);let t=wR(e);return t&&JR(t,void 0,!1),Vt}function wR(e){if(!Kh(e))return;let t=To(e);return t.resolvedSymbol===void 0&&(t.resolvedSymbol=xR(e.escapedText,e)),t.resolvedSymbol}function TR(e,t){return Kv(e,t.escapedName)}function ER(e,t,n){let r,i=S_(e);i&&d(i,e=>{let n=e.valueDeclaration;if(n&&Qc(n)&&vO(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0});let a=Ro(t);if(r){let i=H.checkDefined(r.valueDeclaration),o=H.checkDefined(Sh(i));if(n?.valueDeclaration){let r=n.valueDeclaration,s=Sh(r);if(H.assert(!!s),K(s,e=>o===e))return Dw(U(t,G.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,a,Yl(e)),mm(r,G.The_shadowing_declaration_of_0_is_defined_here,a),mm(i,G.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,a)),!0}return U(t,G.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,a,Ro(o.name||oB)),!0}return!1}function DR(e,t){return(Td(t)||Nh(e)&&Ed(t))&&Eh(e,!0,!1)===Dd(t)}function OR(e,t,n,r,i,a){let o=To(t).resolvedSymbol,s=T_(e),c=Fv(s!==0||bR(e)?CM(n):n),l=Ku(c)||c===Cn,u;if(vO(r)){(j{switch(e.kind){case 173:case 176:return!0;case 187:case 288:return`quit`;case 220:return t?!1:`quit`;case 242:return Nu(e.parent)&&e.parent.kind!==220?`quit`:!1;default:return!1}})}function NR(e){if(!(e.parent.flags&32))return!1;let t=Jf(e.parent);for(;;){if(t=t.symbol&&PR(t),!t)return!1;let n=Kv(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}function PR(e){let t=bp(e);if(t.length!==0)return HC(t)}function FR(e,t,n){let r=To(e),i=r.nonExistentPropCheckCache||=new Set,a=`${yC(t)}|${n}`;if(i.has(a))return;i.add(a);let o,s;if(!vO(e)&&t.flags&1048576&&!(t.flags&402784252)){for(let n of t.types)if(!Kv(n,e.escapedText)&&!ly(n,e.escapedText)){o=SS(o,G.Property_0_does_not_exist_on_type_1,lm(e),Yl(n));break}}if(IR(e.escapedText,t)){let n=lm(e),r=Yl(t);o=SS(o,G.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,r,r+`.`+n)}else{let r=tW(t);if(r&&Kv(r,e.escapedText))o=SS(o,G.Property_0_does_not_exist_on_type_1,lm(e),Yl(t)),s=mm(e,G.Did_you_forget_to_use_await);else{let r=lm(e),i=Yl(t),a=LR(r,t);if(a!==void 0)o=SS(o,G.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,i,a);else{let a=zR(e,t);if(a!==void 0){let e=qc(a),t=n?G.Property_0_may_not_exist_on_type_1_Did_you_mean_2:G.Property_0_does_not_exist_on_type_1_Did_you_mean_2;o=SS(o,t,r,i,e),s=a.valueDeclaration&&mm(a.valueDeclaration,G._0_is_declared_here,e)}else{let e=yne(t)?G.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:G.Property_0_does_not_exist_on_type_1;o=SS(Gv(o,t),e,r,i)}}}}let c=_m(Yf(e),e,o);s&&Dw(c,s),eo(!n||o.code!==G.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,c)}function yne(e){return A.lib&&!A.lib.includes(`lib.dom.d.ts`)&&Vte(e,e=>e.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(Wc(e.symbol.escapedName)))&&QD(e)}function IR(e,t){let n=t.symbol&&Kv(Jf(t.symbol),e);return n!==void 0&&!!n.valueDeclaration&&$y(n.valueDeclaration)}function bne(e){let t=Ro(e),n=jp().get(t);return n&&Le(n.keys())}function LR(e,t){let n=Fv(t).symbol;if(!n)return;let r=qc(n),i=jp().get(r);if(i){for(let[t,n]of i)if(C(n,e))return t}}function RR(e,t){return qR(e,S_(t),106500)}function zR(e,t){let n=S_(t);if(typeof e!=`string`){let r=e.parent;Ck(r)&&(n=E(n,e=>ZR(r,t,e))),e=Gc(e)}return qR(e,n,111551)}function BR(e,t){let n=gt(e)?e:Gc(e),r=S_(t);return(n===`for`?y(r,e=>qc(e)===`htmlFor`):n===`class`?y(r,e=>qc(e)===`className`):void 0)??qR(n,r,111551)}function VR(e,t){let n=zR(e,t);return n&&qc(n)}function HR(e,t,n){let r=Eo(e,t,n);if(r)return r;let i;return i=e===Ve?M([`string`,`number`,`boolean`,`object`,`bigint`,`symbol`],t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?lo(524288,t):void 0).concat($e(e.values())):$e(e.values()),qR(Wc(t),i,n)}function UR(e,t,n){return H.assert(t!==void 0,`outername should always be defined`),ot(e,t,n,void 0,!1,!1)}function WR(e,t){return t.exports&&qR(Gc(e),pc(t),2623475)}function GR(e,t,n){function r(t){let r=f_(e,t);if(r){let e=bz(Jf(r));return!!e&&fV(e)>=1&&MD(n,sV(e,0))}return!1}let i=E_(t)?`set`:`get`;if(!r(i))return;let a=Ib(t.expression);return a===void 0?a=i:a+=`.`+i,a}function KR(e,t){let n=t.types.filter(e=>!!(e.flags&128));return Qt(e.value,n,e=>e.value)}function qR(e,t,n){return Qt(e,t,r);function r(e){let t=qc(e);if(!pn(t,`"`)){if(e.flags&n)return t;if(e.flags&2097152){let r=Ls(e);if(r&&r.flags&n)return t}}}}function JR(e,t,n){let r=e&&e.flags&106500&&e.valueDeclaration;if(!r)return;let i=Zy(r,2),a=e.valueDeclaration&&Qc(e.valueDeclaration)&&vO(e.valueDeclaration.name);if(!(!i&&!a)&&!(t&&Fx(t)&&!(e.flags&65536))){if(n){let n=K(t,Nu);if(n&&n.symbol===e)return}(jx(e)&1?wo(e).target:e).isReferenced=-1}}function YR(e,t){return e.kind===110||!!t&&Mb(e)&&t===DN(Nb(e))}function XR(e,t){switch(e.kind){case 212:return QR(e,e.expression.kind===108,t,CM(cU(e.expression)));case 167:return QR(e,!1,t,CM(cU(e.left)));case 206:return QR(e,!1,t,DE(e))}}function ZR(e,t,n){return $R(e,e.kind===212&&e.expression.kind===108,!1,t,n)}function QR(e,t,n,r){if(Ku(r))return!0;let i=Kv(r,n);return!!i&&$R(e,t,!1,r,i)}function $R(e,t,n,r,i){if(Ku(r))return!0;if(i.valueDeclaration&&Su(i.valueDeclaration)){let t=Sh(i.valueDeclaration);return!Gl(e)&&!!K(e,e=>e===t)}return aR(e,t,n,r,i)}function ez(e){let t=e.initializer;if(t.kind===262){let e=t.declarations[0];if(e&&!Xu(e.name))return wc(e)}else if(t.kind===80)return DN(t)}function tz(e){return ty(e).length===1&&!!ny(e,on)}function nz(e){let t=F_(e);if(t.kind===80){let n=DN(t);if(n.flags&3){let t=e,r=e.parent;for(;r;){if(r.kind===250&&t===r.statement&&ez(r)===n&&tz(aU(r.expression)))return!0;t=r,r=r.parent}}}return!1}function rz(e,t){return e.flags&64?az(e,t):oz(e,lR(e.expression),t)}function az(e,t){let n=cU(e.expression),r=sM(n,e.expression);return aM(oz(e,hR(r,e.expression),t),e,r!==n)}function oz(e,t,n){let r=T_(e)!==0||bR(e)?CM(t):t,i=e.argumentExpression,a=cU(i);if(Yu(r)||r===Cn)return r;if(fH(r)&&!uf(i))return U(i,G.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Gt;let o=nz(i)?on:a,s=T_(e),c;s===0?c=32:(c=4|(Vw(r)&&!uT(r)?2:0),s===2&&(c|=32));let l=gT(r,o,c,e)||Gt;return WU(AR(e,To(e).resolvedSymbol,l,i,n),e)}function sz(e){return ud(e)||Dk(e)||Jd(e)}function cz(e){return sz(e)&&d(e.typeArguments,Sq),e.kind===216?cU(e.template):Jd(e)?cU(e.attributes):Rk(e)?cU(e.left):ud(e)&&d(e.arguments,e=>{cU(e)}),rr}function lz(e){return cz(e),ir}function dz(e,t,n){let r,i,a=0,o,s=-1,c;H.assert(!t.length);for(let l of e){let e=l.declaration&&wc(l.declaration),u=l.declaration&&l.declaration.parent;!i||e===i?r&&u===r?o+=1:(r=u,o=a):(o=a=t.length,r=u),i=e,Rne(l)?(s++,c=s,a++):c=o,t.splice(c,0,n?fee(l,n):l)}}function fz(e){return!!e&&(e.kind===231||e.kind===238&&e.isSpread)}function pz(e){return x(e,fz)}function mz(e){return!!(e.flags&16384)}function xne(e){return!!(e.flags&49155)}function _z(e,t,n,r=!1){if(rj(e))return!0;let i,a=!1,o=dV(n),s=fV(n);if(e.kind===216)if(i=t.length,e.template.kind===229){let t=ze(e.template.templateSpans);a=rp(t.literal)||!!t.literal.isUnterminated}else{let t=e.template;H.assert(t.kind===15),a=!!t.isUnterminated}else if(e.kind===171)i=Lz(e,n);else if(e.kind===227)i=1;else if(Jd(e)){if(a=e.attributes.end===e.end,a)return!0;i=s===0?t.length:1,o=t.length===0?o:1,s=Math.min(s,1)}else if(e.arguments){i=r?t.length+1:t.length,a=e.arguments.end===e.end;let o=pz(t);if(o>=0)return o>=fV(n)&&(mV(n)||oo)return!1;if(a||i>=s)return!0;for(let t=i;t=r&&t.length<=n}function yz(e,t){let n;return!!(e.target&&(n=cV(e.target,t))&&Lw(n))}function bz(e){return Sz(e,0,!1)}function xz(e){return Sz(e,0,!1)||Sz(e,1,!1)}function Sz(e,t,n){if(e.flags&524288){let r=u_(e);if(n||r.properties.length===0&&r.indexInfos.length===0){if(t===0&&r.callSignatures.length===1&&r.constructSignatures.length===0)return r.callSignatures[0];if(t===1&&r.constructSignatures.length===1&&r.callSignatures.length===0)return r.constructSignatures[0]}}}function wz(e,t,n,r){let i=AM(cb(e),e,0,r),a=hV(t),o=n&&(a&&a.flags&262144?n.nonFixingMapper:n.mapper);return OM(o?JE(t,o):t,e,(e,t)=>{yN(i.inferences,e,t)}),n||kM(t,e,(e,t)=>{yN(i.inferences,e,t,128)}),qy(e,wN(i),ng(t.declaration))}function Sne(e,t,n,r){let i=aL(t,e),a=LH(e.attributes,i,r,n);return yN(r.inferences,a,i),wN(r)}function Tz(e){if(!e)return bn;let t=cU(e);return Hb(e)?t:Kl(e.parent)?Qj(t):Gl(e.parent)?rM(t):t}function Ez(e,t,n,r,i){if(Jd(e))return Sne(e,t,r,i);if(e.kind!==171&&e.kind!==227){let n=v(t.typeParameters,e=>!!Sv(e)),r=KI(e,n?8:0);if(r){let a=Uy(t);if(qM(a)){let o=$I(e);if(!(!n&&KI(e,8)!==r)){let e=dD(r,KM(jM(o,1))),t=bz(e),n=t&&t.typeParameters?hb(Jy(t,t.typeParameters)):e;yN(i.inferences,n,a,128)}let s=AM(t.typeParameters,t,i.flags),c=dD(r,o&&ite(o));yN(s.inferences,c,a),i.returnMapper=F(s.inferences,$H)?KM(_te(s)):void 0}}}let a=gV(t),o=a?Math.min(dV(t)-1,n.length):n.length;if(a&&a.flags&262144){let e=y(i.inferences,e=>e.typeParameter===a);e&&(e.impliedArity=x(n,fz,o)<0?n.length-o:void 0)}let s=Fy(t);if(s&&qM(s)){let t=Nz(e);yN(i.inferences,Tz(t),s)}for(let e=0;e=n-1){let t=e[n-1];if(fz(t)){let e=t.kind===238?t.type:LH(t.expression,r,i,a);return kA(e)?Dz(e):PS(FG(33,e,Xt,t.kind===231?t.expression:t),o)}}let s=[],c=[],l=[];for(let u=t;uSS(void 0,G.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||G.Type_0_does_not_satisfy_the_constraint_1;s||=ME(a,o);let u=o[e];if(!ID(u,Km(dD(i,s),u),n?t[e]:void 0,l,c))return}}return o}function Az(e){if(ML(e.tagName))return 2;let t=Fv(cU(e.tagName));return u(Jv(t,1))?0:u(Jv(t,0))?1:2}function Cne(e,t,n,r,i,a,o){let s=aL(t,e),c=rj(e)?PL(e):LH(e.attributes,s,void 0,r),l=r&4?gM(c):c;return d()&&RD(l,s,n,i?rj(e)?e:e.tagName:void 0,rj(e)?void 0:e.attributes,void 0,a,o);function d(){if(VL(e))return!0;let t=(ej(e)||$A(e))&&!(ML(e.tagName)||lj(e.tagName))?cU(e.tagName):void 0;if(!t)return!0;let n=Jv(t,0);if(!u(n))return!0;let r=WJ(e);if(!r)return!0;let a=Js(r,111551,!0,!1,e);if(!a)return!0;let s=Jv(Jf(a),0);if(!u(s))return!0;let c=!1,l=0;for(let e of s){let t=Jv(sV(e,0),0);if(u(t))for(let e of t){if(c=!0,mV(e))return!0;let t=dV(e);t>l&&(l=t)}}if(!c)return!0;let d=1/0;for(let e of n){let t=fV(e);t{n.push(e.expression)}),n}if(e.kind===171)return Iz(e);if(e.kind===227)return[e.left];if(Jd(e))return e.attributes.properties.length>0||ej(e)&&e.parent.children.length>0?[e.attributes]:c;let t=e.arguments||c,n=pz(t);if(n>=0){let e=t.slice(0,n);for(let r=n;r{let a=i.target.elementFlags[r],o=Pz(n,a&4?PS(t):t,!!(a&12),i.target.labeledElementDeclarations?.[r]);e.push(o)}):e.push(n)}return e}return t}function Iz(e){let t=e.expression,n=FV(e);if(n){let e=[];for(let r of n.parameters){let n=Jf(r);e.push(Pz(t,n))}return e}return H.fail()}function Lz(e,t){return A.experimentalDecorators?Tne(e,t):Math.min(Math.max(dV(t),1),2)}function Tne(e,t){switch(e.parent.kind){case 264:case 232:return 1;case 173:return ib(e.parent)?3:2;case 175:case 178:case 179:return t.parameters.length<=2?2:3;case 170:return 3;default:return H.fail()}}function zz(e){let t=Yf(e),{start:n,length:r}=Om(t,Ck(e.expression)?e.expression.name:e.expression);return{start:n,length:r,sourceFile:t}}function Bz(e,t,...n){if(Tk(e)){let{sourceFile:r,start:i,length:a}=zz(e);return`message`in t?vS(r,i,a,t,...n):xm(r,t)}else return`message`in t?mm(e,t,...n):_m(Yf(e),e,t)}function Vz(e){return ud(e)?Ck(e.expression)?e.expression.name:e.expression:Dk(e)?Ck(e.tag)?e.tag.name:e.tag:Jd(e)?e.tagName:e}function Hz(e){if(!Tk(e)||!Y(e.expression))return!1;let t=rt(e.expression,e.expression.escapedText,111551,void 0,!1)?.valueDeclaration;if(!t||!FO(t)||!oT(t.parent)||!Ek(t.parent.parent)||!Y(t.parent.parent.expression))return!1;let n=$x(!1);return n?Qq(t.parent.parent.expression,!0)===n:!1}function Uz(e,t,n,r){let i=pz(n);if(i>-1)return mm(n[i],G.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a=1/0,o=-1/0,s=-1/0,c=1/0,l;for(let e of t){let t=fV(e),r=dV(e);ts&&(s=t),n.lengthi?o=Math.min(o,t):n1&&(_=te(x,ja,w,T)),_||=te(x,Na,w,T);let D=To(e);if(D.resolvedSignature!==ar&&!n)return H.assert(D.resolvedSignature),D.resolvedSignature;if(_)return _;if(_=Dne(e,x,C,!!n,r),D.resolvedSignature=_,p){if(!a&&f&&(a=G.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),m)if(m.length===1||m.length>3){let t=m[m.length-1],n;m.length>3&&(n=SS(n,G.The_last_overload_gave_the_following_error),n=SS(n,G.No_overload_matches_this_call)),a&&(n=SS(n,a));let r=Mz(e,C,t,Na,0,!0,()=>n);if(r)for(let e of r)t.declaration&&m.length>3&&Dw(e,mm(t.declaration,G.The_last_overload_is_declared_here)),O(t,e),Ea.add(e);else H.fail(`No error for last overload signature`)}else{let t=[],n=0,r=Number.MAX_VALUE,i=0,o=0;for(let a of m){let s=Mz(e,C,a,Na,0,!0,()=>SS(void 0,G.Overload_0_of_1_2_gave_the_following_error,o+1,x.length,Ul(a)));s?(s.length<=r&&(r=s.length,i=o),n=Math.max(n,s.length),t.push(s)):H.fail(`No error for 3 or fewer overload signatures`),o++}let s=n>1?t[i]:ne(t);H.assert(s.length>0,`No errors reported for 3 or fewer overload signatures`);let c=SS(k(s,Sm),G.No_overload_matches_this_call);a&&(c=SS(c,a));let l=[...re(s,e=>e.relatedInformation)],u;if(v(s,e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file)){let{file:e,start:t,length:n}=s[0];u={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else u=_m(Yf(e),Vz(e),c,l);O(m[0],u),Ea.add(u)}else if(h)Ea.add(Uz(e,[h],C,a));else if(g)kz(g,e.typeArguments,!0,a);else if(!u){let n=E(t,e=>vz(e,S));n.length===0?Ea.add(Ene(e,t,S,a)):Ea.add(Uz(e,n,C,a))}}return _;function O(e,t){let n=m,r=h,i=g,a=e.declaration?.symbol?.declarations||c,o=a.length>1?y(a,e=>Nu(e)&&ip(e.body)):void 0;if(o){let e=by(o),n=!e.typeParameters;te([e],Na,n)&&Dw(t,mm(o,G.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=n,h=r,g=i}function te(t,n,r,i=!1){if(m=void 0,h=void 0,g=void 0,r){let r=t[0];if(F(S)||!_z(e,C,r,i))return;if(Mz(e,C,r,n,0,!1,void 0)){m=[r];return}return r}for(let r=0;r0),Oq(e),r||t.length===1||t.some(e=>!!e.typeParameters)?One(e,t,n,i):Gz(t)}function Gz(e){let t=M(e,e=>e.thisParameter),n;t.length&&(n=qz(t,t.map($B)));let{min:r,max:i}=Qee(e,Kz),a=[];for(let t=0;txB(e)?tcV(e,t))))}let o=M(e,e=>xB(e)?ze(e.parameters):void 0),s=128;if(o.length!==0){let t=PS(AC(M(e,Ky),2));a.push(Jz(o,t)),s|=1}return e.some(Rne)&&(s|=2),Xm(e[0].declaration,void 0,n,a,HC(e.map(Uy)),void 0,r,s)}function Kz(e){let t=e.parameters.length;return xB(e)?t-1:t}function qz(e,t){return Jz(e,AC(t,2))}function Jz(e,t){return mM(Ie(e),t)}function One(e,t,n,r){let i=Xz(t,Xe===void 0?n.length:Xe),a=t[i],{typeParameters:o}=a;if(!o)return a;let s=sz(e)?e.typeArguments:void 0,c=s?Yy(a,Yz(s,o,ng(e))):kne(e,o,a,n,r);return t[i]=c,c}function Yz(e,t,n){let r=e.map(nJ);for(;r.length>t.length;)r.pop();for(;r.length=t)return i;o>r&&(r=o,n=i)}return n}function Zz(e,t,n){if(e.expression.kind===108){let r=iI(e.expression);if(Ku(r)){for(let t of e.arguments)cU(t);return rr}if(!Yu(r)){let i=K_(Sh(e));if(i)return Wz(e,hp(r,i.typeArguments,i),t,n,0)}return cz(e)}let r,i=cU(e.expression);if(Wl(e)){let t=sM(i,e.expression);r=t===i?0:Jl(e)?16:8,i=t}else r=0;if(i=mR(i,e.expression,pR),i===Cn)return or;let a=Fv(i);if(Yu(a))return lz(e);let o=Jv(a,0),s=Jv(a,1).length;if($z(i,a,o.length,s))return!Yu(i)&&e.typeArguments&&U(e,G.Untyped_function_calls_may_not_accept_type_arguments),cz(e);if(!o.length){if(s)U(e,G.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Yl(i));else{let t;if(e.arguments.length===1){let n=Yf(e).text;ys(n.charCodeAt(Es(n,e.expression.end,!0)-1))&&(t=mm(e.expression,G.Are_you_missing_a_semicolon))}sB(e.expression,a,0,t)}return lz(e)}return n&8&&!e.typeArguments&&o.some(Qz)?(QH(e,n),ar):o.some(e=>ng(e.declaration)&&!!fl(e.declaration))?(U(e,G.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Yl(i)),lz(e)):Wz(e,o,t,n,r)}function Qz(e){return!!(e.typeParameters&&NJ(Uy(e)))}function $z(e,t,n,r){return Ku(e)||Ku(t)&&!!(e.flags&262144)||!n&&!r&&!(t.flags&1048576)&&!(Hv(t).flags&131072)&&MD(e,wr)}function eB(e,t,n){let r=lR(e.expression);if(r===Cn)return or;if(r=Fv(r),Yu(r))return lz(e);if(Ku(r))return e.typeArguments&&U(e,G.Untyped_function_calls_may_not_accept_type_arguments),cz(e);let i=Jv(r,1);if(i.length){if(!rB(e,i[0]))return lz(e);if(tB(i,e=>!!(e.flags&4)))return U(e,G.Cannot_create_an_instance_of_an_abstract_class),lz(e);let a=r.symbol&&Ux(r.symbol);return a&&Qy(a,64)?(U(e,G.Cannot_create_an_instance_of_an_abstract_class),lz(e)):Wz(e,i,t,n,0)}let a=Jv(r,0);if(a.length){let r=Wz(e,a,t,n,0);return ye||(r.declaration&&!kB(r.declaration)&&Uy(r)!==bn&&U(e,G.Only_a_void_function_can_be_called_with_the_new_keyword),Fy(r)===bn&&U(e,G.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return sB(e.expression,r,1),lz(e)}function tB(e,t){return mt(e)?F(e,e=>tB(e,t)):e.compositeKind===1048576?F(e.compositeSignatures,t):t(e)}function nB(e,t){let n=bp(t);if(!u(n))return!1;let r=n[0];if(r.flags&2097152){let t=r.types,n=Wh(t),i=0;for(let t of r.types){if(!n[i]&&Wx(t)&3&&(t.symbol===e||nB(e,t)))return!0;i++}return!1}return r.symbol===e?!0:nB(e,r)}function rB(e,t){if(!t||!t.declaration)return!0;let n=t.declaration,r=sb(n,6);if(!r||n.kind!==177)return!0;let i=Ux(n.parent.symbol),a=Kp(n.parent.symbol);if(!Wq(e,i)){let t=Sh(e);if(t&&r&4){let e=nJ(t);if(nB(n.parent.symbol,e))return!0}return r&2&&U(e,G.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Yl(a)),r&4&&U(e,G.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Yl(a)),!1}return!0}function iB(e,t,n){let r,i=n===0,a=lW(t),o=a&&Jv(a,n).length>0;if(t.flags&1048576){let e=t.types,a=!1;for(let o of e)if(Jv(o,n).length!==0){if(a=!0,r)break}else if(r||=(r=SS(r,i?G.Type_0_has_no_call_signatures:G.Type_0_has_no_construct_signatures,Yl(o)),SS(r,i?G.Not_all_constituents_of_type_0_are_callable:G.Not_all_constituents_of_type_0_are_constructable,Yl(t))),a)break;a||(r=SS(void 0,i?G.No_constituent_of_type_0_is_callable:G.No_constituent_of_type_0_is_constructable,Yl(t))),r||=SS(r,i?G.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:G.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Yl(t))}else r=SS(r,i?G.Type_0_has_no_call_signatures:G.Type_0_has_no_construct_signatures,Yl(t));let s=i?G.This_expression_is_not_callable:G.This_expression_is_not_constructable;if(Tk(e.parent)&&e.parent.arguments.length===0){let{resolvedSymbol:t}=To(e);t&&t.flags&32768&&(s=G.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:SS(r,s),relatedMessage:o?G.Did_you_forget_to_use_await:void 0}}function sB(e,t,n,r){let{messageChain:i,relatedMessage:a}=iB(e,t,n),o=_m(Yf(e),e,i);if(a&&Dw(o,mm(e,a)),Tk(e.parent)){let{start:t,length:n}=zz(e.parent);o.start=t,o.length=n}Ea.add(o),cB(t,n,r?Dw(o,r):o)}function cB(e,t,n){if(!e.symbol)return;let r=wo(e.symbol).originatingImport;if(r&&!Bm(r)){let i=Jv(Jf(wo(e.symbol).target),t);if(!i||!i.length)return;Dw(n,mm(r,G.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 lB(e,t,n){let r=cU(e.tag),i=Fv(r);if(Yu(i))return lz(e);let a=Jv(i,0),o=Jv(i,1).length;if($z(r,i,a.length,o))return cz(e);if(!a.length){if(xk(e.parent)){let t=mm(e.tag,G.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 Ea.add(t),lz(e)}return sB(e.tag,i,0),lz(e)}return Wz(e,a,t,n,0)}function dB(e){switch(e.parent.kind){case 264:case 232:return G.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 170:return G.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 173:return G.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 175:case 178:case 179:return G.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return H.fail()}}function fB(e,t,n){let r=cU(e.expression),i=Fv(r);if(Yu(i))return lz(e);let a=Jv(i,0),o=Jv(i,1).length;if($z(r,i,a.length,o))return cz(e);if(EB(e,a)&&!kk(e.expression)){let t=Ep(e.expression,!1);return U(e,G._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,t),lz(e)}let s=dB(e);if(!a.length){let t=iB(e.expression,i,0),n=SS(t.messageChain,s),r=_m(Yf(e.expression),e.expression,n);return t.relatedMessage&&Dw(r,mm(e.expression,t.relatedMessage)),Ea.add(r),cB(i,0,r),lz(e)}return Wz(e,a,t,n,0,s)}function _B(e,t){let n=HL(e),r=n&&yc(n),i=r&&Eo(r,yB.Element,788968),a=i&&je.symbolToEntityName(i,788968,e),o=J.createFunctionTypeNode(void 0,[J.createParameterDeclaration(void 0,void 0,`props`,void 0,je.typeToTypeNode(t,e))],a?J.createTypeReferenceNode(a,void 0):J.createKeywordTypeNode(133)),s=lo(1,`props`);return s.links.type=t,Xm(o,void 0,void 0,[s],i?Kp(i):Gt,void 0,1,0)}function vB(e){let t=To(Yf(e));if(t.jsxFragmentType!==void 0)return t.jsxFragmentType;let n=Va(e);if(!((A.jsx===2||A.jsxFragmentFactory!==void 0)&&n!==`null`))return t.jsxFragmentType=Vt;let r=A.jsx!==1&&A.jsx!==3,i=Ea?G.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,a=VL(e)??rt(e,n,r?111551:111167,i,!0);if(a===void 0)return t.jsxFragmentType=Gt;if(a.escapedName===bB.Fragment)return t.jsxFragmentType=Jf(a);let o=a.flags&2097152?Is(a):a,s=a&&yc(o),c=s&&Eo(s,bB.Fragment,2),l=c&&Jf(c);return t.jsxFragmentType=l===void 0?Gt:l}function wB(e,t,n){let r=rj(e),i;if(r)i=vB(e);else{if(ML(e.tagName)){let t=YL(e),n=_B(e,t);return LD(LH(e.attributes,aL(n,e),void 0,0),t,e.tagName,e.attributes),u(e.typeArguments)&&(d(e.typeArguments,Sq),Ea.add(hm(Yf(e),e.typeArguments,G.Expected_0_type_arguments_but_got_1,0,u(e.typeArguments)))),n}i=cU(e.tagName)}let a=Fv(i);if(Yu(a))return lz(e);let o=KL(i,e);return $z(i,a,o.length,0)?cz(e):o.length===0?(r?U(e,G.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Ep(e)):U(e.tagName,G.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Ep(e.tagName)),lz(e)):Wz(e,o,t,n,0)}function TB(e,t,n){let r=cU(e.right);if(!Ku(r)){let i=mH(r);if(i){let r=Fv(i);if(Yu(r))return lz(e);let a=Jv(r,0),o=Jv(r,1);if($z(i,r,a.length,o.length))return cz(e);if(a.length)return Wz(e,a,t,n,0)}else if(!(lJ(r)||AD(r,wr)))return U(e.right,G.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),lz(e)}return rr}function EB(e,t){return t.length&&v(t,t=>t.minArgumentCount===0&&!xB(t)&&t.parameters.length1?RH(e.arguments[1]):void 0;for(let t=2;t{PD(o,CM(a))||qD(a,o,r,G.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function Une(e){let t=cU(e.expression),n=sM(t,e.expression);return aM(Qj(n),e,n!==t)}function Wne(e){return e.flags&64?Une(e):Qj(cU(e.expression))}function qB(e){if(vY(e),d(e.typeArguments,Sq),e.kind===234){let t=M_(e.parent);t.kind===227&&t.operatorToken.kind===104&&L_(e,t.right)&&U(e,G.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}return JB(e.kind===234?cU(e.expression):My(e.exprName)?QF(e.exprName):cU(e.exprName),e)}function JB(e,t){let n=t.typeArguments;if(e===Cn||Yu(e)||!F(n))return e;let r=To(t);if(r.instantiationExpressionTypes||=new Map,r.instantiationExpressionTypes.has(e.id))return r.instantiationExpressionTypes.get(e.id);let i=!1,a,o=c(e);r.instantiationExpressionTypes.set(e.id,o);let s=i?a:e;return s&&Ea.add(hm(Yf(t),n,G.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Yl(s))),o;function c(e){let n=!1,r=!1,o=s(e);return i||=r,n&&!r&&(a??=e),o;function s(e){if(e.flags&524288){let i=u_(e),a=l(i.callSignatures),o=l(i.constructSignatures);if(n||=i.callSignatures.length!==0||i.constructSignatures.length!==0,r||=a.length!==0||o.length!==0,a!==i.callSignatures||o!==i.constructSignatures){let e=pl(lo(0,`__instantiationExpression`),i.members,a,o,i.indexInfos);return e.objectFlags|=8388608,e.node=t,e}}else if(e.flags&58982400){let t=ov(e);if(t){let e=s(t);if(e!==t)return e}}else if(e.flags&1048576)return AP(e,c);else if(e.flags&2097152)return HC(te(e.types,s));return e}}function l(e){return te(E(e,e=>!!e.typeParameters&&vz(e,n)),e=>{let t=kz(e,n,!0);return t?qy(e,t,ng(e.declaration)):e})}}function Gne(e){return Sq(e.type),YB(e.expression,e.type)}function YB(e,t,n){let r=cU(e,n),i=DE(t);return Yu(i)?i:(LD(r,i,K(t.parent,e=>e.kind===239||e.kind===351),e,G.Type_0_does_not_satisfy_the_expected_type_1),r)}function Kne(e){return lie(e),e.keywordToken===105?ZB(e):e.keywordToken===102?e.name.escapedText===`defer`?(H.assert(!Tk(e.parent)||e.parent.expression!==e,"Trying to get the type of `import.defer` in `import.defer(...)`"),Gt):QB(e):H.assertNever(e.keywordToken)}function XB(e){switch(e.keywordToken){case 102:return Bx();case 105:let t=ZB(e);return Yu(t)?Gt:zV(t);default:H.assertNever(e.keywordToken)}}function ZB(e){let t=kh(e);return t?t.kind===177?Jf(wc(t.parent)):Jf(wc(t)):(U(e,G.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,`new.target`),Gt)}function QB(e){100<=N&&N<=199?Yf(e).impliedNodeFormat!==99&&U(e,G.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):N<6&&N!==4&&U(e,G.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_node20_or_nodenext);let t=Yf(e);return H.assert(!!(t.flags&8388608),`Containing file is missing import meta node flag.`),e.name.escapedText===`meta`?zx():Gt}function $B(e){let t=e.valueDeclaration;return vd(Jf(e),!1,!!t&&(rf(t)||vT(t)))}function eV(e,t,n){switch(e.name.kind){case 80:{let r=e.name.escapedText;return e.dotDotDotToken?n&12?r:`${r}_${t}`:n&3?r:`${r}_n`}case 208:if(e.dotDotDotToken){let r=e.name.elements,i=vt(Re(r),bk),a=r.length-(i?.dotDotDotToken?1:0);if(t=r-1)return t===r-1?a:PS(sT(a,on));let o=[],s=[],c=[];for(let n=t;n!(e&1)),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(t===void 0){if(!n&&e.flags&32)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0&&!(TP(sV(e,n),mz).flags&131072);n--)t=n;e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function mV(e){if(xB(e)){let t=Jf(e.parameters[e.parameters.length-1]);return!Ej(t)||!!(t.target.combinedFlags&12)}return!1}function hV(e){if(xB(e)){let t=Jf(e.parameters[e.parameters.length-1]);if(!Ej(t))return Ku(t)?Fr:t;if(t.target.combinedFlags&12)return cC(t,t.target.fixedLength)}}function gV(e){let t=hV(e);return t&&!hA(t)&&!Ku(t)?t:void 0}function _V(e){return vV(e,V)}function vV(e,t){return e.parameters.length>0?sV(e,0):t}function yV(e,t,n){let r=e.parameters.length-(xB(e)?1:0);for(let i=0;i=0);let i=HO(e.parent)?Jf(wc(e.parent.parent)):oJ(e.parent),a=HO(e.parent)?Xt:sJ(e.parent),o=gE(r);n.decoratorSignature=mW(void 0,void 0,[uo(`target`,i),uo(`propertyKey`,a),uo(`parameterIndex`,o)],bn);break}case 175:case 178:case 179:case 173:{let e=t;if(!zu(e.parent))break;let r=uo(`target`,oJ(e)),i=uo(`propertyKey`,sJ(e)),a=RO(e)?bn:Wee(nJ(e));!RO(t)||ib(t)?n.decoratorSignature=mW(void 0,void 0,[r,i,uo(`descriptor`,Wee(nJ(e)))],AC([a,bn])):n.decoratorSignature=mW(void 0,void 0,[r,i],AC([a,bn]));break}}return n.decoratorSignature===rr?void 0:n.decoratorSignature}function FV(e){return ce?PV(e):NV(e)}function IV(e){let t=Yx(!0);return t===Kn?Yt:(e=uW(aW(e))||Yt,Zb(t,[e]))}function LV(e){let t=Qx(!0);return t===Kn?Yt:(e=uW(aW(e))||Yt,Zb(t,[e]))}function RV(e,t){let n=IV(t);return n===Yt?(U(e,Bm(e)?G.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:G.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Gt):($x(!0)||U(e,Bm(e)?G.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:G.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function zV(e){let t=lo(0,`NewTargetExpression`),n=lo(4,`target`,8);n.parent=t,n.links.type=e;let r=Cf([n]);return t.members=r,pl(t,r,c,c,c)}function BV(e,t){if(!e.body)return Gt;let n=cv(e),r=(n&2)!=0,i=(n&1)!=0,a,o,s,c=bn;if(e.body.kind!==242)a=RH(e.body,t&&t&-9),r&&(a=aW(nW(a,!1,e,G.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){let n=qV(e,t);n?n.length>0&&(a=AC(n,2)):c=V;let{yieldTypes:r,nextTypes:i}=HV(e,t);o=F(r)?AC(r,2):void 0,s=F(i)?HC(i):void 0}else{let r=qV(e,t);if(!r)return n&2?RV(e,V):V;if(r.length===0){let t=vI(e,void 0),r=t&&(cK(t,n)||bn).flags&32768?Xt:bn;return n&2?RV(e,r):r}a=AC(r,2)}if(a||o||s){if(o&&DM(e,o,3),a&&DM(e,a,1),s&&DM(e,s,2),a&&YA(a)||o&&YA(o)||s&&YA(s)){let t=mL(e),n=t?t===by(e)?i?void 0:a:WI(Uy(t),e,void 0):void 0;i?(o=Tj(o,n,0,r),a=Tj(a,n,1,r),s=Tj(s,n,2,r)):a=hte(a,n,r)}o&&=CM(o),a&&=CM(a),s&&=CM(s)}return i?VV(o||V,a||c,s||_I(2,e)||Yt,r):r?IV(a||c):a||c}function VV(e,t,n,r){let i=r?pr:mr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Yt,t=i.resolveIterationType(t,void 0)||Yt,a===Kn){let r=i.getGlobalIterableIteratorType(!1);return r===Kn?(i.getGlobalIterableIteratorType(!0),zn):NS(r,[e,t,n])}return NS(a,[e,t,n])}function HV(e,t){let n=[],r=[],i=(cv(e)&2)!=0;return rh(e.body,e=>{let a=e.expression?cU(e.expression,t):Zt;De(n,UV(e,a,Vt,i));let o;if(e.asteriskToken){let t=HG(a,i?19:17,e.expression);o=t&&t.nextType}else o=KI(e,void 0);o&&De(r,o)}),{yieldTypes:n,nextTypes:r}}function UV(e,t,n,r){if(t===Cn)return Cn;let i=e.expression||e,a=e.asteriskToken?FG(r?19:17,t,n,i):t;return r?lW(a,i,e.asteriskToken?G.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:G.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a}function WV(e,t,n){let r=0;for(let i=0;i=t?n[i]:void 0;r|=a===void 0?0:uB.get(a)||32768}return r}function GV(e){let t=To(e);if(t.isExhaustive===void 0){t.isExhaustive=0;let n=Zne(e);t.isExhaustive===0&&(t.isExhaustive=n)}else t.isExhaustive===0&&(t.isExhaustive=!1);return t.isExhaustive}function Zne(e){if(e.expression.kind===222){let t=vP(e);if(!t)return!1;let n=sv(RH(e.expression.expression)),r=WV(0,0,t);return n.flags&3?(556800&r)==556800:!CP(n,e=>YN(e,r)===r)}let t=sv(RH(e.expression));if(!ij(t))return!1;let n=gP(e);return!n.length||F(n,JA)?!1:bP(AP(t,pE),n)}function KV(e){return e.endFlowNode&&QP(e.endFlowNode)}function qV(e,t){let n=cv(e),r=[],i=KV(e),a=!1;if(nh(e.body,o=>{let s=o.expression;if(s){if(s=F_(s,!0),n&2&&s.kind===224&&(s=F_(s.expression,!0)),s.kind===214&&s.expression.kind===80&&RH(s.expression).symbol===Cc(e.symbol)&&(!oT(e.symbol.valueDeclaration)||nF(s.expression))){a=!0;return}let i=RH(s,t&&t&-9);n&2&&(i=aW(nW(i,!1,e,G.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),i.flags&131072&&(a=!0),De(r,i)}else i=!0}),!(r.length===0&&!i&&(a||Qne(e))))return fe&&r.length&&i&&!(kB(e)&&r.some(t=>t.symbol===e.symbol))&&De(r,Xt),r}function Qne(e){switch(e.kind){case 219:case 220:return!0;case 175:return e.parent.kind===211;default:return!1}}function $ne(e){switch(e.kind){case 177:case 178:case 179:return}if(cv(e)!==0)return;let t;if(e.body&&e.body.kind!==242)t=e.body;else if(nh(e.body,e=>{if(t||!e.expression)return!0;t=e.expression})||!t||KV(e))return;return ere(e,t)}function ere(e,t){if(t=F_(t,!0),RH(t).flags&16)return d(e.parameters,(n,r)=>{let i=Jf(n.symbol);if(!i||i.flags&16||!Y(n.name)||oF(n.symbol)||pf(n))return;let a=tre(e,t,n,i);if(a)return gy(1,Wc(n.name.escapedText),r,a)})}function tre(e,t,n,r){let i=c_(t)&&t.flowNode||t.parent.kind===254&&t.parent.flowNode||hz(2,void 0,void 0),a=hz(32,t,i),o=rF(n.name,r,r,e,a);if(o===r)return;let s=hz(64,t,i);return Hv(rF(n.name,r,o,e,s)).flags&131072?o:void 0}function JV(e,t){n(r);return;function r(){let n=cv(e),r=t&&cK(t,n);if(r&&(lH(r,16384)||r.flags&32769)||e.kind===174||rp(e.body)||e.body.kind!==242||!KV(e))return;let i=e.flags&1024,a=zy(e)||e;if(r&&r.flags&131072)U(a,G.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)U(a,G.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&fe&&!MD(Xt,r))U(a,G.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(A.noImplicitReturns){if(!r&&(!i||lK(e,Uy(by(e)))))return;U(a,G.Not_all_code_paths_return_a_value)}}}function YV(e,t){if(H.assert(e.kind!==175||mh(e)),Oq(e),Ak(e)&&fG(e,e.name),t&&t&4&&vD(e)){if(!zy(e)&&!rT(e)){let n=hL(e);if(n&&qM(Uy(n))){let n=To(e);if(n.contextFreeType)return n.contextFreeType;let r=Xm(void 0,void 0,void 0,c,BV(e,t),void 0,0,64),i=pl(e.symbol,ie,[r],c,c);return i.objectFlags|=262144,n.contextFreeType=i}}return qn}return!lY(e)&&e.kind===219&&SY(e),nre(e,t),Jf(wc(e))}function nre(e,t){let n=To(e);if(!(n.flags&64)){let r=hL(e);if(!(n.flags&64)){n.flags|=64;let i=Pe(Jv(Jf(wc(e)),0));if(!i)return;if(vD(e))if(r){let n=$I(e),a;if(t&&t&2){yV(i,r,n);let e=hV(r);e&&e.flags&262144&&(a=JE(r,n.nonFixingMapper))}a||=n?JE(r,n.mapper):r,bV(i,a)}else qne(i);else if(r&&!e.typeParameters&&r.parameters.length>e.parameters.length){let n=$I(e);t&&t&2&&yV(i,r,n)}if(r&&!Wy(e)&&!i.resolvedReturnType){let n=BV(e,t);i.resolvedReturnType||=n}pU(e)}}}function XV(e){H.assert(e.kind!==175||mh(e));let t=cv(e),n=Wy(e);if(JV(e,n),e.body)if(zy(e)||Uy(by(e)),e.body.kind===242)Sq(e.body);else{let r=cU(e.body),i=n&&cK(n,t);i&&dK(e,i,e.body,e.body,r)}}function ZV(e,t,n,r=!1){if(!MD(t,kn)){let i=r&&eW(t);return no(e,!!i&&MD(i,kn),n),!1}return!0}function QV(e){if(!Tk(e)||!Dg(e))return!1;let t=RH(e.arguments[2]);if(Wu(t,`value`)){let e=Kv(t,`writable`),n=e&&Jf(e);if(!n||n===cn||n===ln)return!0;if(e&&e.valueDeclaration&&mj(e.valueDeclaration)){let t=e.valueDeclaration.initializer,n=cU(t);if(n===cn||n===ln)return!0}return!1}return!Kv(t,`set`)}function $V(e){return!!(jx(e)&8||e.flags&4&&Mx(e)&8||e.flags&3&&nR(e)&6||e.flags&98304&&!(e.flags&65536)||e.flags&8||F(e.declarations,QV))}function eH(e,t,n){if(n===0)return!1;if($V(t)){if(t.flags&4&&Zx(e)&&e.expression.kind===110){let n=aF(e);if(!(n&&(n.kind===177||kB(n))))return!0;if(t.valueDeclaration){let e=Rk(t.valueDeclaration),r=n.parent===t.valueDeclaration.parent,i=n===t.valueDeclaration.parent,a=e&&t.parent?.valueDeclaration===n.parent,o=e&&t.parent?.valueDeclaration===n;return!(r||i||a||o)}}return!0}if(Zx(e)){let t=F_(e.expression);if(t.kind===80){let e=To(t).resolvedSymbol;if(e.flags&2097152){let t=Qo(e);return!!t&&t.kind===275}}}return!1}function tH(e,t,n){let r=BM(e,39);return r.kind!==80&&!Zx(r)?(U(e,t),!1):r.flags&64?(U(e,n),!1):!0}function nH(e){cU(e.expression);let t=F_(e.expression);if(!Zx(t))return U(t,G.The_operand_of_a_delete_operator_must_be_a_property_reference),hn;Ck(t)&&vO(t.name)&&U(t,G.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let n=Rc(To(t).resolvedSymbol);return n&&($V(n)?U(t,G.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):rH(t,n)),hn}function rH(e,t){let n=Jf(t);fe&&!(n.flags&131075)&&!(we?t.flags&16777216:XN(n,16777216))&&U(e,G.The_operand_of_a_delete_operator_must_be_optional)}function iH(e){return cU(e.expression),Oa}function aH(e){return Oq(e),Zt}function oH(e){let t=!1,n=wh(e);if(n&&VO(n))U(e,Fk(e)?G.await_expression_cannot_be_used_inside_a_class_static_block:G.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0;else if(!(e.flags&65536))if(Oh(e)){let n=Yf(e);if(!VY(n)){let r;if(!Yp(n,A)){r??=Tm(n,e.pos);let i=Fk(e)?G.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:G.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,a=vS(n,r.start,r.length,i);Ea.add(a),t=!0}switch(N){case 100:case 101:case 102:case 199:if(n.impliedNodeFormat===1){r??=Tm(n,e.pos),Ea.add(vS(n,r.start,r.length,G.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 200:case 4:if(j>=4)break;default:r??=Tm(n,e.pos);let i=Fk(e)?G.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:G.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;Ea.add(vS(n,r.start,r.length,i)),t=!0;break}}}else{let r=Yf(e);if(!VY(r)){let i=Tm(r,e.pos),a=Fk(e)?G.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:G.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,o=vS(r,i.start,i.length,a);n&&n.kind!==177&&!(cv(n)&2)&&Dw(o,mm(n,G.Did_you_mean_to_mark_this_function_as_async)),Ea.add(o),t=!0}}return Fk(e)&&gI(e)&&(U(e,G.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function rre(e){n(()=>oH(e));let t=cU(e.expression),r=nW(t,!0,e,G.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return r===t&&!Yu(r)&&!(t.flags&3)&&eo(!1,mm(e,G.await_has_no_effect_on_the_type_of_this_expression)),r}function ire(e){let t=cU(e.operand);if(t===Cn)return Cn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return fE(gE(-e.operand.text));case 40:return fE(gE(+e.operand.text))}break;case 10:if(e.operator===41)return fE(_E({negative:!0,base10Value:Fw(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return hR(t,e.operand),cH(t,12288)&&U(e.operand,G.The_0_operator_cannot_be_applied_to_type_symbol,is(e.operator)),e.operator===40?(cH(t,2112)&&U(e.operand,G.Operator_0_cannot_be_applied_to_type_1,is(e.operator),Yl(cj(t))),on):sH(t);case 54:OG(t,e.operand);let n=YN(t,12582912);return n===4194304?cn:n===8388608?un:hn;case 46:case 47:return ZV(e.operand,hR(t,e.operand),G.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&tH(e.operand,G.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,G.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),sH(t)}return Gt}function are(e){let t=cU(e.operand);return t===Cn?Cn:(ZV(e.operand,hR(t,e.operand),G.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&tH(e.operand,G.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,G.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),sH(t))}function sH(e){return lH(e,2112)?uH(e,3)||lH(e,296)?kn:sn:on}function cH(e,t){if(lH(e,t))return!0;let n=sv(e);return!!n&&lH(n,t)}function lH(e,t){if(e.flags&t)return!0;if(e.flags&3145728){let n=e.types;for(let e of n)if(lH(e,t))return!0}return!1}function uH(e,t,n){return e.flags&t?!0:n&&e.flags&114691?!1:!!(t&296)&&MD(e,on)||!!(t&2112)&&MD(e,sn)||!!(t&402653316)&&MD(e,rn)||!!(t&528)&&MD(e,hn)||!!(t&16384)&&MD(e,bn)||!!(t&131072)&&MD(e,V)||!!(t&65536)&&MD(e,tn)||!!(t&32768)&&MD(e,Xt)||!!(t&4096)&&MD(e,gn)||!!(t&67108864)&&MD(e,En)}function dH(e,t,n){return e.flags&1048576?v(e.types,e=>dH(e,t,n)):uH(e,t,n)}function fH(e){return!!(Wx(e)&16)&&!!e.symbol&&pH(e.symbol)}function pH(e){return(e.flags&128)!=0}function mH(e){let t=qG(`hasInstance`);if(dH(e,67108864)){let n=Kv(e,t);if(n){let e=Jf(n);if(e&&Jv(e,0).length!==0)return e}}}function hH(e,t,n,r,i){if(n===Cn||r===Cn)return Cn;!Ku(n)&&dH(n,402784252)&&U(e,G.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),H.assert(Vb(e.parent));let a=OB(e.parent,void 0,i);return a===ar?Cn:(ID(Uy(a),hn,t,G.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),hn)}function gH(e){return CP(e,e=>e===Wn||!!(e.flags&2097152)&&nO(sv(e)))}function _H(e,t,n,r){return n===Cn||r===Cn?Cn:(vO(e)?((jcC(e,n)):PS(r),i)}}}function xH(e,t,n,r){let i;if(e.kind===305){let r=e;r.objectAssignmentInitializer&&(fe&&!XN(cU(r.objectAssignmentInitializer),16777216)&&(t=QN(t,524288)),AH(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return i.kind===227&&i.operatorToken.kind===64&&(ke(i,n),i=i.left,fe&&(t=QN(t,524288))),i.kind===211?vH(i,t,r):i.kind===210?ore(i,t,n):sre(i,t,n)}function sre(e,t,n){let r=cU(e,n);return tH(e,e.parent.kind===306?G.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:G.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.parent.kind===306?G.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:G.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&LD(t,r,e,e),Cu(e)&&XJ(e.parent,1048576),t}function SH(e){switch(e=F_(e),e.kind){case 80:case 11:case 14:case 216:case 229:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 219:case 232:case 220:case 210:case 211:case 222:case 236:case 286:case 285:return!0;case 228:return SH(e.whenTrue)&&SH(e.whenFalse);case 227:return Eb(e.operatorToken.kind)?!1:SH(e.left)&&SH(e.right);case 225:case 226:switch(e.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}function CH(e,t){return(t.flags&98304)!=0||PD(e,t)}function wH(){let e=EN(t,n,r,i,a,o);return(t,n)=>{let r=e(t,n);return H.assertIsDefined(r),r};function t(e,t,n){return t?(t.stackIndex++,t.skip=!1,l(t,void 0),d(t,void 0)):t={checkMode:n,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},ng(e)&&_g(e)?(t.skip=!0,d(t,cU(e.right,n)),t):(TH(e),e.operatorToken.kind===64&&(e.left.kind===211||e.left.kind===210)?(t.skip=!0,d(t,xH(e.left,cU(e.right,n),n,e.right.kind===110)),t):t)}function n(e,t,n){if(!t.skip)return s(t,e)}function r(e,t,n){if(!t.skip){let r=u(t);H.assertIsDefined(r),l(t,r),d(t,void 0);let i=e.kind;if(wb(i)){let e=n.parent;for(;e.kind===218||Tb(e);)e=e.parent;(i===56||aA(e))&&CG(n.left,r,aA(e)?e.thenStatement:void 0),bb(i)&&OG(r,n.left)}}}function i(e,t,n){if(!t.skip)return s(t,e)}function a(e,t){let n;if(t.skip)n=u(t);else{let r=c(t);H.assertIsDefined(r);let i=u(t);H.assertIsDefined(i),n=jH(e.left,e.operatorToken,e.right,r,i,t.checkMode,e)}return t.skip=!1,l(t,void 0),d(t,void 0),t.stackIndex--,n}function o(e,t,n){return d(e,t),e}function s(e,t){if(Rk(t))return t;d(e,cU(t,e.checkMode))}function c(e){return e.typeStack[e.stackIndex]}function l(e,t){e.typeStack[e.stackIndex]=t}function u(e){return e.typeStack[e.stackIndex+1]}function d(e,t){e.typeStack[e.stackIndex+1]=t}}function TH(e){if(e.operatorToken.kind===61){if(Rk(e.parent)){let{left:t,operatorToken:n}=e.parent;Rk(t)&&n.kind===57&&$(t,G._0_and_1_operations_cannot_be_mixed_without_parentheses,is(61),is(n.kind))}else if(Rk(e.left)){let{operatorToken:t}=e.left;(t.kind===57||t.kind===56)&&$(e.left,G._0_and_1_operations_cannot_be_mixed_without_parentheses,is(t.kind),is(61))}else if(Rk(e.right)){let{operatorToken:t}=e.right;t.kind===56&&$(e.right,G._0_and_1_operations_cannot_be_mixed_without_parentheses,is(61),is(t.kind))}EH(e),DH(e)}}function EH(e){let t=BM(e.left,63),n=kH(t);n!==3&&(n===1?U(t,G.This_expression_is_always_nullish):U(t,G.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}function DH(e){let t=BM(e.right,63),n=kH(t);OH(e)||(n===1?U(t,G.This_expression_is_always_nullish):n===2&&U(t,G.This_expression_is_never_nullish))}function OH(e){return!Rk(e.parent)||e.parent.operatorToken.kind!==61}function kH(e){switch(e=BM(e),e.kind){case 224:case 214:case 216:case 213:case 237:case 215:case 212:case 230:case 110:return 3;case 227:switch(e.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return kH(e.right)}return 2;case 228:return kH(e.whenTrue)|kH(e.whenFalse);case 106:return 1;case 80:return DN(e)===He?1:3}return 2}function AH(e,t,n,r,i){let a=t.kind;if(a===64&&(e.kind===211||e.kind===210))return xH(e,cU(n,r),r,n.kind===110);let o;o=bb(a)?AG(e,r):cU(e,r);let s=cU(n,r);return jH(e,t,n,o,s,r,i)}function jH(e,t,r,i,a,o,s){let c=t.kind;switch(c){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(i===Cn||a===Cn)return Cn;i=hR(i,e),a=hR(a,r);let n;if(i.flags&528&&a.flags&528&&(n=p(t.kind))!==void 0)return U(s||t,G.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,is(t.kind),is(n)),on;{let n=ZV(e,i,G.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),o=ZV(r,a,G.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),u;if(uH(i,3)&&uH(a,3)||!(lH(i,2112)||lH(a,2112)))u=on;else if(l(i,a)){switch(c){case 50:case 73:_();break;case 43:case 68:j<3&&U(s,G.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}u=sn}else _(l),u=Gt;if(n&&o)switch(m(u),c){case 48:case 71:case 49:case 72:case 50:case 73:let n=Be(r);typeof n.value==`number`&&Math.abs(n.value)>=32&&to(_j(M_(r.parent.parent)),s||t,G.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Ep(e),is(c),n.value%32);break}return u}case 40:case 65:if(i===Cn||a===Cn)return Cn;!uH(i,402653316)&&!uH(a,402653316)&&(i=hR(i,e),a=hR(a,r));let v;if(uH(i,296,!0)&&uH(a,296,!0)?v=on:uH(i,2112,!0)&&uH(a,2112,!0)?v=sn:uH(i,402653316,!0)||uH(a,402653316,!0)?v=rn:(Ku(i)||Ku(a))&&(v=Yu(i)||Yu(a)?Gt:Vt),v&&!f(c))return v;if(!v){let e=402655727;return _((t,n)=>uH(t,e)&&uH(n,e)),Vt}return c===65&&m(v),v;case 30:case 32:case 33:case 34:return f(c)&&(i=dj(hR(i,e)),a=dj(hR(a,r)),g((e,t)=>{if(Ku(e)||Ku(t))return!0;let n=MD(e,kn),r=MD(t,kn);return n&&r||!n&&!r&&FD(e,t)})),hn;case 35:case 36:case 37:case 38:if(!(o&&o&64)){if((cu(e)||cu(r))&&(!ng(e)||c===37||c===38)){let e=c===35||c===37;U(s,G.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?`false`:`true`)}y(s,c,e,r),g((e,t)=>CH(e,t)||CH(t,e))}return hn;case 104:return hH(e,r,i,a,o);case 103:return _H(e,r,i,a);case 56:case 77:{let e=XN(i,4194304)?AC([Wj(fe?i:cj(a)),a]):i;return c===77&&m(a),e}case 57:case 76:{let e=XN(i,8388608)?AC([Qj(Uj(i)),a],2):i;return c===76&&m(a),e}case 61:case 78:{let e=XN(i,262144)?AC([Qj(i),a],2):i;return c===78&&m(a),e}case 64:let b=Rk(e.parent)?Eg(e.parent):0;return u(b,a),h(b)?((!(a.flags&524288)||b!==2&&b!==6&&!QD(a)&&!JN(a)&&!(Wx(a)&1))&&m(a),i):(m(a),a);case 28:if(!A.allowUnreachableCode&&SH(e)&&!d(e.parent)){let t=Yf(e),n=t.text,r=Es(n,e.pos);t.parseDiagnostics.some(e=>e.code===G.JSX_expressions_must_have_one_parent_element.code?sc(e,r):!1)||U(e,G.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return a;default:return H.fail()}function l(e,t){return uH(e,2112)&&uH(t,2112)}function u(e,t){if(e===2)for(let e of d_(t)){let t=Jf(e);if(t.symbol&&t.symbol.flags&32){let t=e.escapedName,n=rt(e.valueDeclaration,t,788968,void 0,!1);n?.declarations&&n.declarations.some(eM)&&(vo(n,G.Duplicate_identifier_0,Wc(t),e),vo(e,G.Duplicate_identifier_0,Wc(t),n))}}}function d(e){return e.parent.kind===218&&$D(e.left)&&e.left.text===`0`&&(Tk(e.parent.parent)&&e.parent.parent.expression===e.parent||e.parent.parent.kind===216)&&(Zx(e.right)||Y(e.right)&&e.right.escapedText===`eval`)}function f(t){let n=cH(i,12288)?e:cH(a,12288)?r:void 0;return n?(U(n,G.The_0_operator_cannot_be_applied_to_type_symbol,is(t)),!1):!0}function p(e){switch(e){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function m(a){Eb(c)&&n(o);function o(){let n=i;if(pV(t.kind)&&e.kind===212&&(n=_R(e,void 0,!0)),tH(e,G.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,G.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;we&&Ck(e)&&lH(a,32768)&&yO(a,Wu(aU(e.expression),e.name.escapedText))&&(t=G.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target),LD(a,n,e,r,t)}}}function h(t){switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let t=Tc(e),n=_g(r);return!!n&&Sk(n)&&!!t?.exports?.size;default:return!1}}function g(e){return e(i,a)?!1:(_(e),!0)}function _(e){let n=!1,r=s||t;if(e){let t=uW(i),r=uW(a);n=!(t===i&&r===a)&&!!(t&&r)&&e(t,r)}let o=i,c=a;!n&&e&&([o,c]=MH(i,a,e));let[l,u]=Zl(o,c);v(r,n,l,u)||no(r,n,G.Operator_0_cannot_be_applied_to_types_1_and_2,is(t.kind),l,u)}function v(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return no(e,n,G.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}}function y(e,t,n,r){let i=b(F_(n)),a=b(F_(r));if(i||a){let o=U(e,G.This_condition_will_always_return_0,is(t===37||t===35?97:112));if(i&&a)return;let s=t===38||t===36?is(54):``,c=i?r:n,l=F_(c);Dw(o,mm(c,G.Did_you_mean_0,`${s}Number.isNaN(${Mb(l)?pm(l):`...`})`))}}function b(e){if(Y(e)&&e.escapedText===`NaN`){let t=Uee();return!!t&&t===DN(e)}return!1}}function MH(e,t,n){let r=e,i=t,a=cj(e),o=cj(t);return n(a,o)||(r=a,i=o),[r,i]}function NH(e){n(f);let t=bh(e);if(!t)return Vt;let r=cv(t);if(!(r&1))return Vt;let i=(r&2)!=0;e.asteriskToken&&(i&&jmU(e,r,void 0)));let o=a&&oK(a,i),s=o&&o.yieldType||Vt,c=o&&o.nextType||Vt,l=e.expression?cU(e.expression):Zt,u=UV(e,l,c,i);if(a&&u&&LD(u,s,e.expression||e,e.expression),e.asteriskToken)return LG(i?19:17,1,l,e.expression)||Vt;if(a)return aK(2,a,i)||Vt;let d=_I(2,t);return d||(d=Vt,n(()=>{if(ye&&!eT(e)){let t=KI(e,void 0);(!t||Ku(t))&&U(e,G.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),d;function f(){e.flags&16384||HY(e,G.A_yield_expression_is_only_allowed_in_a_generator_body),gI(e)&&U(e,G.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function cre(e,t){let n=AG(e.condition,t);return CG(e.condition,n,e.whenTrue),AC([cU(e.whenTrue,t),cU(e.whenFalse,t)],2)}function PH(e){let t=e.parent;return kk(t)&&PH(t)||wk(t)&&t.argumentExpression===e}function FH(e){let t=[e.head.text],n=[];for(let r of e.templateSpans){let e=cU(r.expression);cH(e,12288)&&U(r.expression,G.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(r.literal.text),n.push(MD(e,An)?e:rn)}let r=e.parent.kind!==216&&Be(e).value;return r?fE(hE(r)):qH(e)||PH(e)||CP(KI(e,void 0)||Yt,lre)?lw(t,n):rn}function lre(e){return!!(e.flags&134217856||e.flags&58982400&&lH(ov(e)||Yt,402653316))}function IH(e){return oj(e)&&!$A(e.parent)?e.parent.parent:e}function LH(e,t,n,r){let i=IH(e);JI(i,t,!1),ZI(i,n);let a=cU(e,r|1|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);let o=lH(a,2944)&&KH(a,WI(t,e,void 0))?pE(a):a;return QI(),YI(),o}function RH(e,t){if(t)return cU(e,t);let n=To(e);if(!n.resolvedType){let r=ki,i=Li;ki=Ai,Li=void 0,n.resolvedType=cU(e,t),Li=i,ki=r}return n.resolvedType}function zH(e){return e=F_(e,!0),e.kind===217||e.kind===235||LM(e)}function BH(e,t,n){let r=hg(e);if(ng(e)){let n=ST(e);if(n)return YB(r,n,t)}let i=oU(r)||(n?LH(r,n,void 0,t||0):RH(r,t));if(FO(bk(e)?Mc(e):e)){if(e.name.kind===207&&bN(i))return VH(i,e.name);if(e.name.kind===208&&Ej(i))return UH(i,e.name)}return i}function VH(e,t){let n;for(let r of t.elements)if(r.initializer){let t=HH(r);t&&!Kv(e,t)&&(n=I(n,r))}if(!n)return e;let r=Cf();for(let t of d_(e))r.set(t.escapedName,t);for(let e of n){let t=lo(16777220,HH(e));t.links.type=Ud(e,!1,!1),r.set(t.escapedName,t)}let i=pl(e.symbol,r,c,c,ty(e));return i.objectFlags=e.objectFlags,i}function HH(e){let t=$C(e.propertyName||e.name);return kT(t)?AT(t):void 0}function UH(e,t){if(e.target.combinedFlags&12||tx(e)>=t.elements.length)return e;let n=t.elements,r=_C(e).slice(),i=e.target.elementFlags.slice();for(let t=tx(e);tKH(e,t))}if(t.flags&58982400){let n=ov(t)||Yt;return lH(n,4)&&lH(e,128)||lH(n,8)&&lH(e,256)||lH(n,64)&&lH(e,2048)||lH(n,4096)&&lH(e,8192)||KH(e,n)}return!!(t.flags&406847616&&lH(e,128)||t.flags&256&&lH(e,256)||t.flags&2048&&lH(e,2048)||t.flags&512&&lH(e,512)||t.flags&8192&&lH(e,8192))}return!1}function qH(e){let t=e.parent;return yd(t)&&Xl(t.type)||LM(t)&&Xl(RM(t))||UB(e)&&V_(KI(e,0))||(kk(t)||xk(t)||Hk(t))&&qH(t)||(mj(t)||hj(t)||$k(t))&&qH(t.parent)}function JH(e,t,n){let r=cU(e,t,n);return qH(e)||ch(e)?pE(r):zH(e)?r:wj(r,WI(KI(e,void 0),e,void 0))}function YH(e,t){return e.name.kind===168&&TL(e.name),JH(e.initializer,t)}function XH(e,t){return PY(e),e.name.kind===168&&TL(e.name),ZH(e,YV(e,t),t)}function ZH(e,t,n){if(n&&n&10){let r=Sz(t,0,!0),i=Sz(t,1,!0),a=r||i;if(a&&a.typeParameters){let t=UI(e,2);if(t){let i=Sz(Qj(t),r?0:1,!1);if(i&&!i.typeParameters){if(n&8)return QH(e,n),qn;let t=$I(e),r=t.signature&&Uy(t.signature),o=r&&xz(r);if(o&&!o.typeParameters&&!v(t.inferences,$H)){let e=rU(t,a.typeParameters),n=Jy(a,e),r=k(t.inferences,e=>WM(e.typeParameter));if(OM(n,i,(e,t)=>{yN(r,e,t,0,!0)}),F(r,$H)&&(kM(n,i,(e,t)=>{yN(r,e,t)}),!tU(t.inferences,r)))return nU(t.inferences,r),t.inferredTypeParameters=de(t.inferredTypeParameters,e),hb(n)}return hb(wz(a,i,t))}}}}return t}function QH(e,t){if(t&2){let t=$I(e);t.flags|=4}}function $H(e){return!!(e.candidates||e.contraCandidates)}function eU(e){return!!(e.candidates||e.contraCandidates||Av(e.typeParameter))}function tU(e,t){for(let n=0;ne.symbol.escapedName===t)}function ure(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;let r=t.slice(0,n);for(let t=1;;t++){let n=r+t;if(!iU(e,n))return n}}function dre(e){let t=bz(e);if(t&&!t.typeParameters)return Uy(t)}function fre(e){let t=cU(e.expression),n=sM(t,e.expression),r=dre(t);return r&&aM(r,e,n!==t)}function aU(e){let t=oU(e);if(t)return t;if(e.flags&268435456&&Li){let t=Li[mB(e)];if(t)return t}let n=Ni,r=cU(e,64);if(Ni!==n){let t=Li||=[];t[mB(e)]=r,Xw(e,e.flags|268435456)}return r}function oU(e){let t=F_(e,!0);if(LM(t)){let e=RM(t);if(!Xl(e))return DE(e)}if(t=F_(e),Fk(t)){let e=oU(t.expression);return e?lW(e):void 0}if(Tk(t)&&t.expression.kind!==108&&!sg(t,!0)&&!LB(t)&&!Bm(t))return Wl(t)?fre(t):dre(lR(t.expression));if(yd(t)&&!Xl(t.type))return DE(t.type);if(su(e)||Pu(e))return cU(e)}function sU(e){let t=To(e);if(t.contextFreeType)return t.contextFreeType;JI(e,Vt,!1);let n=t.contextFreeType=cU(e,4);return YI(),n}function cU(e,t,n){var r,i;(r=Ar)==null||r.push(Ar.Phase.Check,`checkExpression`,{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});let a=w;w=e,h=0;let o=ZH(e,pre(e,t,n),t);return fH(o)&&lU(e,o),w=a,(i=Ar)==null||i.pop(),o}function lU(t,n){let r=t.parent.kind===212&&t.parent.expression===t||t.parent.kind===213&&t.parent.expression===t||(t.kind===80||t.kind===167)&&Kq(t)||t.parent.kind===187&&t.parent.exprName===t||t.parent.kind===282;if(r||U(t,G.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.isolatedModules||A.verbatimModuleSyntax&&r&&!rt(t,Nb(t),2097152,void 0,!1,!0)){H.assert(!!(n.symbol.flags&128));let r=n.symbol.valueDeclaration,i=e.getRedirectFromOutput(Yf(r).resolvedPath)?.resolvedRef;r.flags&33554432&&!Bw(t)&&(!i||!XS(i.commandLine.options))&&U(t,G.Cannot_access_ambient_const_enums_when_0_is_enabled,Je)}}function uU(e,t){if(tf(e)){if(bT(e))return YB(e.expression,xT(e),t);if(LM(e))return WB(e,t)}return cU(e.expression,t)}function pre(e,t,n){let i=e.kind;if(r)switch(i){case 232:case 219:case 220:r.throwIfCancellationRequested()}switch(i){case 80:return VF(e,t);case 81:return CR(e);case 110:return QF(e);case 108:return iI(e);case 106:return nn;case 15:case 11:return uN(e)?Wt:fE(hE(e.text));case 9:return QY(e),fE(gE(+e.text));case 10:return $Y(e),fE(_E({negative:!1,base10Value:Fw(e.text)}));case 112:return un;case 97:return cn;case 229:return FH(e);case 14:return rne(e);case 210:return xL(e,t,n);case 211:return kL(e,t);case 212:return _R(e,t);case 167:return yR(e,t);case 213:return rz(e,t);case 214:if(Bm(e))return RB(e);case 215:return NB(e,t);case 216:return Vne(e);case 218:return uU(e,t);case 232:return kK(e);case 219:case 220:return YV(e,t);case 222:return iH(e);case 217:case 235:return Hne(e,t);case 236:return Wne(e);case 234:return qB(e);case 239:return Gne(e);case 237:return Kne(e);case 221:return nH(e);case 223:return aH(e);case 224:return rre(e);case 225:return ire(e);case 226:return are(e);case 227:return ke(e,t);case 228:return cre(e,t);case 231:return _L(e,t);case 233:return Zt;case 230:return NH(e);case 238:return vL(e);case 295:return vne(e,t);case 285:return lne(e);case 286:return sne(e);case 289:return une(e);case 293:return RL(e,t);case 287:H.fail(`Shouldn't ever directly check a JsxOpeningElement`)}return Gt}function mre(e){$J(e),e.expression&&HY(e.expression,G.Type_expected),Sq(e.constraint),Sq(e.default);let t=Hp(wc(e));ov(t),wv(t)||U(e.default,G.Type_parameter_0_has_a_circular_default,Yl(t));let r=A_(t),i=Sv(t);r&&i&&ID(i,Km(dD(r,PE(t,i)),i),e.default,G.Type_0_does_not_satisfy_the_constraint_1),Oq(e),n(()=>bK(e.name,G.Type_parameter_name_cannot_be_0))}function hre(e){var t,n;if(wA(e.parent)||zu(e.parent)||TA(e.parent)){let r=Hp(wc(e)),i=ek(r)&24576;if(i){let a=wc(e.parent);if(TA(e.parent)&&!(Wx(Kp(a))&48))U(e,G.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(i===8192||i===16384){(t=Ar)==null||t.push(Ar.Phase.CheckTypes,`checkTypeParameterDeferred`,{parent:yC(Kp(a)),id:yC(r)});let o=kO(a,r,i===16384?tr:er),s=kO(a,r,i===16384?er:tr),c=r;D=r,ID(o,s,e,G.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),D=c,(n=Ar)==null||n.pop()}}}}function dU(e){$J(e),hG(e);let t=bh(e);Qy(e,31)&&(A.erasableSyntaxOnly&&U(e,G.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),t.kind===177&&ip(t.body)||U(e,G.A_parameter_property_is_only_allowed_in_a_constructor_implementation),t.kind===177&&Y(e.name)&&e.name.escapedText===`constructor`&&U(e.name,G.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&vT(e)&&Xu(e.name)&&t.body&&U(e,G.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&Y(e.name)&&(e.name.escapedText===`this`||e.name.escapedText===`new`)&&(t.parameters.indexOf(e)!==0&&U(e,G.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),(t.kind===177||t.kind===181||t.kind===186)&&U(e,G.A_constructor_cannot_have_a_this_parameter),t.kind===220&&U(e,G.An_arrow_function_cannot_have_a_this_parameter),(t.kind===178||t.kind===179)&&U(e,G.get_and_set_accessors_cannot_declare_this_parameters)),e.dotDotDotToken&&!Xu(e.name)&&!MD(Hv(Jf(e.symbol)),Lr)&&U(e,G.A_rest_parameter_must_be_of_an_array_type)}function gre(e){let t=_re(e);if(!t){U(e,G.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let n=by(t),r=Iy(n);if(!r)return;Sq(e.type);let{parameterName:i}=e;if(r.kind!==0&&r.kind!==2){if(r.parameterIndex>=0)xB(n)&&r.parameterIndex===n.parameters.length-1?U(i,G.A_type_predicate_cannot_reference_a_rest_parameter):r.type&&ID(r.type,Jf(n.parameters[r.parameterIndex]),e.type,void 0,()=>SS(void 0,G.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type));else if(i){let n=!1;for(let{name:e}of t.parameters)if(Xu(e)&&fU(e,i,r.parameterName)){n=!0;break}n||U(e.parameterName,G.Cannot_find_parameter_0,r.parameterName)}}}function _re(e){switch(e.parent.kind){case 220:case 180:case 263:case 219:case 185:case 175:case 174:let t=e.parent;if(e===t.type)return t}}function fU(e,t,n){for(let r of e.elements){if(Wk(r))continue;let e=r.name;if(e.kind===80&&e.escapedText===n)return U(t,G.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((e.kind===208||e.kind===207)&&fU(e,t,n))return!0}}function pU(e){e.kind===182?pY(e):(e.kind===185||e.kind===263||e.kind===186||e.kind===180||e.kind===177||e.kind===181)&&lY(e);let t=cv(e);t&4||((t&3)==3&&j0&&t.declarations[0]!==e)return}let t=gb(wc(e));if(t?.declarations){let e=new Map;for(let n of t.declarations)qO(n)&&n.parameters.length===1&&n.parameters[0].type&&SP(DE(n.parameters[0].type),t=>{let r=e.get(yC(t));r?r.declarations.push(n):e.set(yC(t),{type:t,declarations:[n]})});e.forEach(e=>{if(e.declarations.length>1)for(let t of e.declarations)U(t,G.Duplicate_index_signature_for_type_0,Yl(e.type))})}}function vU(e){!$J(e)&&!qY(e)&&xY(e.name),hG(e),bU(e),Qy(e,64)&&e.kind===173&&e.initializer&&U(e,G.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,lm(e.name))}function yre(e){return vO(e.name)&&U(e,G.Private_identifiers_are_not_allowed_outside_class_bodies),vU(e)}function yU(e){PY(e)||xY(e.name),BO(e)&&e.asteriskToken&&Y(e.name)&&Gc(e.name)===`constructor`&&U(e.name,G.Class_constructor_may_not_be_a_generator),zW(e),Qy(e,64)&&e.kind===175&&e.body&&U(e,G.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,lm(e.name)),vO(e.name)&&!Sh(e)&&U(e,G.Private_identifiers_are_not_allowed_outside_class_bodies),bU(e)}function bU(e){if(vO(e.name)&&(jQy(e,31))))if(!SU(i,e.body))U(i,G.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 t;for(let n of e.body.statements){if(iA(n)&&zm(BM(n.expression))){t=n;break}if(CU(n))break}t===void 0&&U(e,G.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 n||U(e,G.Constructors_for_derived_classes_must_contain_a_super_call)}}}function SU(e,t){let n=M_(e.parent);return iA(n)&&n.parent===t}function CU(e){return e.kind===108||e.kind===110?!0:Dh(e)?!1:!!pP(e,CU)}function wU(e){Y(e.name)&&Gc(e.name)===`constructor`&&zu(e.parent)&&U(e.name,G.Class_constructor_may_not_be_an_accessor),n(t),Sq(e.body),bU(e);function t(){if(!lY(e)&&!AY(e)&&xY(e.name),xW(e),pU(e),e.kind===178&&!(e.flags&33554432)&&ip(e.body)&&e.flags&512&&(e.flags&1024||U(e.name,G.A_get_accessor_must_return_a_value)),e.name.kind===168&&TL(e.name),Fm(e)){let t=wc(e),n=xf(t,178),r=xf(t,179);if(n&&r&&!(DJ(n)&1)){To(n).flags|=1;let e=ub(n),t=ub(r);(e&64)!=(t&64)&&(U(n.name,G.Accessors_must_both_be_abstract_or_non_abstract),U(r.name,G.Accessors_must_both_be_abstract_or_non_abstract)),(e&4&&!(t&6)||e&2&&!(t&2))&&(U(n.name,G.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),U(r.name,G.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let t=kf(wc(e));e.kind===178&&JV(e,t)}}function TU(e){xW(e)}function EU(e,t,n){return e.typeArguments&&n{let t=AU(e);t&&OU(e,t)});let t=To(e).resolvedSymbol;t&&F(t.declarations,e=>fT(e)&&!!(e.flags&536870912))&&so(IB(e),t.declarations,t.escapedName)}}function PU(e){let t=vt(e.parent,sf);if(!t)return;let n=AU(t);if(!n)return;let r=A_(n[t.typeArguments.indexOf(e)]);return r&&dD(r,ME(n,DU(t,n)))}function FU(e){Nee(e)}function IU(e){d(e.members,Sq),n(t);function t(){let t=eE(e);_K(t,t.symbol),_U(e),gU(e)}}function LU(e){Sq(e.elementType)}function RU(e){let t=!1,n=!1;for(let r of e.elements){let e=FS(r);if(e&8){let t=DE(r.type);if(!kA(t)){U(r,G.A_rest_element_type_must_be_an_array_type);break}(hA(t)||Ej(t)&&t.target.combinedFlags&4)&&(e|=4)}if(e&4){if(n){$(r,G.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(e&2){if(n){$(r,G.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(e&1&&t){$(r,G.A_required_element_cannot_follow_an_optional_element);break}}d(e.elements,Sq),DE(e)}function zU(e){d(e.types,Sq),DE(e)}function WU(e,t){if(!(e.flags&8388608))return e;let n=e.objectType,r=e.indexType,i=a_(n)&&s_(n)===2?QC(n,0):iw(n,0),a=!!ny(n,on);if(wP(r,e=>MD(e,i)||a&&Qv(e,on)))return t.kind===213&&E_(t)&&Wx(n)&32&&Zg(n)&1&&U(t,G.Index_signature_in_type_0_only_permits_reading,Yl(n)),e;if(Vw(n)){let e=xw(r,t);if(e){let r=SP(Fv(n),t=>Kv(t,e));if(r&&Mx(r)&6)return U(t,G.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Wc(e)),Gt}}return U(t,G.Type_0_cannot_be_used_to_index_type_1,Yl(r),Yl(n)),Gt}function xre(e){Sq(e.objectType),Sq(e.indexType),WU(TT(e),e)}function Sre(e){Cre(e),Sq(e.typeParameter),Sq(e.nameType),Sq(e.type),e.type||EM(e,Vt);let t=DT(e),n=Ig(t);n?ID(n,On,e.nameType):ID(Fg(t),On,zl(e.typeParameter))}function Cre(e){if(e.members?.length)return $(e.members[0],G.A_mapped_type_may_not_declare_properties_or_methods)}function wre(e){CE(e)}function Tre(e){nie(e),Sq(e.type)}function Ere(e){pP(e,Sq)}function Dre(e){K(e,e=>e.parent&&e.parent.kind===195&&e.parent.extendsType===e)||$(e,G.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Sq(e.typeParameter);let t=wc(e.typeParameter);if(t.declarations&&t.declarations.length>1){let e=wo(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;let n=Hp(t),r=Sf(t,169);if(!EK(r,[n],e=>[e])){let e=Hl(t);for(let t of r)U(t.name,G.All_declarations_of_0_must_have_identical_constraints,e)}}}BW(e)}function GU(e){for(let t of e.templateSpans)Sq(t.type),ID(DE(t.type),An,t.type);DE(e)}function KU(e){Sq(e.argument),e.attributes&&PW(e.attributes,$),NU(e)}function qU(e){e.dotDotDotToken&&e.questionToken&&$(e,G.A_tuple_member_cannot_be_both_optional_and_rest),e.type.kind===191&&$(e.type,G.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.type.kind===192&&$(e.type,G.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Sq(e.type),DE(e)}function JU(e){return(Zy(e,2)||Su(e))&&!!(e.flags&33554432)}function YU(e,t){let n=dX(e);if(e.parent.kind!==265&&e.parent.kind!==264&&e.parent.kind!==232&&e.flags&33554432){let t=sm(e);t&&t.flags&128&&!(n&128)&&!(OA(e.parent)&&DA(e.parent.parent)&&Wp(e.parent.parent))&&(n|=32),n|=128}return n&t}function XU(e){n(()=>ZU(e))}function ZU(e){function t(e,t){return t!==void 0&&t.parent===e[0].parent?t:e[0]}function n(e,n,r,i,a){if((i^a)!==0){let i=YU(t(e,n),r);at(e,e=>Yf(e).fileName).forEach(e=>{let a=YU(t(e,n),r);for(let t of e){let e=YU(t,r)^i,n=YU(t,r)^a;n&32?U(el(t),G.Overload_signatures_must_all_be_exported_or_non_exported):n&128?U(el(t),G.Overload_signatures_must_all_be_ambient_or_non_ambient):e&6?U(el(t)||t,G.Overload_signatures_must_all_be_public_private_or_protected):e&64&&U(el(t),G.Overload_signatures_must_all_be_abstract_or_non_abstract)}})}}function r(e,n,r,i){if(r!==i){let r=$g(t(e,n));d(e,e=>{$g(e)!==r&&U(el(e),G.Overload_signatures_must_all_be_optional_or_required)})}}let i=0,a=230,o=!1,s=!0,c=!1,l,f,p,m=e.declarations,h=(e.flags&16384)!=0;function g(e){if(e.name&&rp(e.name))return;let t=!1,n=pP(e.parent,n=>{if(t)return n;t=n===e});if(n&&n.pos===e.end&&n.kind===e.kind){let t=n.name||n,r=n.name;if(e.name&&r&&(vO(e.name)&&vO(r)&&e.name.escapedText===r.escapedText||NO(e.name)&&NO(r)&&ED(TL(e.name),TL(r))||hv(e.name)&&hv(r)&&_v(e.name)===_v(r))){(e.kind===175||e.kind===174)&&$y(e)!==$y(n)&&U(t,$y(e)?G.Function_overload_must_be_static:G.Function_overload_must_not_be_static);return}if(ip(n.body)){U(t,G.Function_implementation_name_must_be_0,lm(e.name));return}}let r=e.name||e;h?U(r,G.Constructor_implementation_is_missing):Qy(e,64)?U(r,G.All_declarations_of_an_abstract_method_must_be_consecutive):U(r,G.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let _=!1,v=!1,y=!1,b=[];if(m)for(let e of m){let t=e,n=t.flags&33554432,r=t.parent&&(t.parent.kind===265||t.parent.kind===188)||n;if(r&&(p=void 0),(t.kind===264||t.kind===232)&&!n&&(y=!0),t.kind===263||t.kind===175||t.kind===174||t.kind===177){b.push(t);let e=YU(t,230);i|=e,a&=e,o||=$g(t),s&&=$g(t);let n=ip(t.body);n&&l?h?v=!0:_=!0:p?.parent===t.parent&&p.end!==t.pos&&g(p),n?l||=t:c=!0,p=t,r||(f=t)}ng(e)&&ju(e)&&e.jsDoc&&(c=u(g_(e))>0)}if(v&&d(b,e=>{U(e,G.Multiple_constructor_implementations_are_not_allowed)}),_&&d(b,e=>{U(el(e)||e,G.Duplicate_function_implementation)}),y&&!h&&e.flags&16&&m){let t=E(m,e=>e.kind===264).map(e=>mm(e,G.Consider_adding_a_declare_modifier_to_this_class));d(m,n=>{let r=n.kind===264?G.Class_declaration_cannot_implement_overload_list_for_0:n.kind===263?G.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&Dw(U(el(n)||n,r,qc(e)),...t)})}if(f&&!f.body&&!Qy(f,64)&&!f.questionToken&&g(f),c&&(m&&(n(m,l,230,i,a),r(m,l,o,s)),l)){let t=Ey(e),n=by(l);for(let e of t)if(!XD(n,e)){Dw(U(e.declaration&&Fj(e.declaration)?e.declaration.parent.tagName:e.declaration,G.This_overload_signature_is_not_compatible_with_its_implementation_signature),mm(l,G.The_implementation_signature_is_declared_here));break}}}function QU(e){n(()=>$U(e))}function $U(e){let t=e.localSymbol;if(!t&&(t=wc(e),!t.exportSymbol)||xf(t,e.kind)!==e)return;let n=0,r=0,i=0;for(let e of t.declarations){let t=c(e),a=YU(e,2080);a&32?a&2048?i|=t:n|=t:r|=t}let a=n|r,o=n&r,s=i&a;if(o||s)for(let e of t.declarations){let t=c(e),n=el(e);t&s?U(n,G.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,lm(n)):t&o&&U(n,G.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,lm(n))}function c(e){let t=e;switch(t.kind){case 265:case 266:case 347:case 339:case 341:return 2;case 268:return zp(t)||uz(t)!==0?5:4;case 264:case 267:case 307:return 3;case 308:return 7;case 278:case 227:let e=t,n=UA(e)?e.expression:e.right;if(!Mb(n))return 1;t=n;case 272:case 275:case 274:let r=0;return d(Is(wc(t)).declarations,e=>{r|=c(e)}),r;case 261:case 209:case 263:case 277:case 80:return 1;case 174:case 172:return 2;default:return H.failBadSyntaxKind(t)}}}function eW(e,t,n,...r){let i=tW(e,t);return i&&lW(i,t,n,...r)}function tW(e,t,n){if(Ku(e))return;let r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(tp(e,Yx(!1)))return r.promisedTypeOfPromise=ex(e)[0];if(dH(sv(e),402915324))return;let i=Wu(e,`then`);if(Ku(i))return;let a=i?Jv(i,0):c;if(a.length===0){t&&U(t,G.A_promise_must_have_a_then_method);return}let o,s;for(let t of a){let n=Fy(t);n&&n!==bn&&!lO(e,n,ja)?o=n:s=I(s,t)}if(!s){H.assertIsDefined(o),n&&(n.value=o),t&&U(t,G.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Yl(e),Yl(o));return}let l=QN(AC(k(s,_V)),2097152);if(Ku(l))return;let u=Jv(l,0);if(u.length===0){t&&U(t,G.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return r.promisedTypeOfPromise=AC(k(u,_V),2)}function nW(e,t,n,r,...i){return(t?lW(e,n,r,...i):uW(e,n,r,...i))||Gt}function rW(e){if(dH(sv(e),402915324))return!1;let t=Wu(e,`then`);return!!t&&Jv(QN(t,2097152),0).length>0}function iW(e){if(e.flags&16777216){let t=wS(!1);return!!t&&e.aliasSymbol===t&&e.aliasTypeArguments?.length===1}return!1}function aW(e){return e.flags&1048576?AP(e,aW):iW(e)?e.aliasTypeArguments[0]:e}function oW(e){if(Ku(e)||iW(e))return!1;if(Vw(e)){let t=ov(e);if(t?t.flags&3||QD(t)||CP(t,rW):lH(e,8650752))return!0}return!1}function sW(e){let t=wS(!0);if(t)return rx(t,[aW(e)])}function cW(e){return oW(e)?sW(e)??e:(H.assert(iW(e)||tW(e)===void 0,`type provided should not be a non-generic 'promise'-like.`),e)}function lW(e,t,n,...r){let i=uW(e,t,n,...r);return i&&cW(i)}function uW(e,t,n,...r){if(Ku(e)||iW(e))return e;let i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(e.flags&1048576){if(Sa.lastIndexOf(e.id)>=0){t&&U(t,G.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let a=t?e=>uW(e,t,n,...r):uW;Sa.push(e.id);let o=AP(e,a);return Sa.pop(),i.awaitedTypeOfType=o}if(oW(e))return i.awaitedTypeOfType=e;let a={value:void 0},o=tW(e,void 0,a);if(o){if(e.id===o.id||Sa.lastIndexOf(o.id)>=0){t&&U(t,G.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Sa.push(e.id);let a=uW(o,t,n,...r);return Sa.pop(),a?i.awaitedTypeOfType=a:void 0}if(rW(e)){if(t){H.assertIsDefined(n);let i;a.value&&(i=SS(i,G.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Yl(e),Yl(a.value))),i=SS(i,n,...r),Ea.add(_m(Yf(t),t,i))}return}return i.awaitedTypeOfType=e}function dW(e,t,n){let r=DE(t);if(j>=2){if(Yu(r))return;let e=Yx(!0);if(e!==Kn&&!tp(r,e)){i(G.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,t,n,Yl(uW(r)||bn));return}}else{if(wF(e,5),Yu(r))return;let a=Ih(t);if(a===void 0){i(G.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Yl(r));return}let o=Js(a,111551,!0),s=o?Jf(o):Gt;if(Yu(s)){a.kind===80&&a.escapedText===`Promise`&&np(r)===Yx(!1)?U(n,G.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):i(G.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,pm(a));return}let c=tS(!0);if(c===zn){i(G.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,pm(a));return}let l=G.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!ID(s,c,n,l,()=>t===n?void 0:SS(void 0,G.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let u=a&&Nb(a),d=Eo(e.locals,u.escapedText,111551);if(d){U(d.valueDeclaration,G.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Gc(u),pm(a));return}}nW(r,!1,e,G.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function i(e,t,n,r){t===n?U(n,e,r):Dw(U(n,G.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),mm(t,e,r))}}function fW(e){if(!VY(Yf(e))){let t=e.expression;if(kk(t))return!1;let n=!0,r;for(;;){if(Gk(t)||Jk(t)){t=t.expression;continue}if(Tk(t)){n||(r=t),t.questionDotToken&&(r=t.questionDotToken),t=t.expression,n=!1;continue}if(Ck(t)){t.questionDotToken&&(r=t.questionDotToken),t=t.expression,n=!1;continue}Y(t)||(r=t);break}if(r)return Dw(U(e.expression,G.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),mm(r,G.Invalid_syntax_in_decorator)),!0}return!1}function pW(e){fW(e);let t=OB(e);FB(t,e);let n=Uy(t);if(n.flags&1)return;let r=FV(e);if(!r?.resolvedReturnType)return;let i,a=r.resolvedReturnType;switch(e.parent.kind){case 264:case 232:i=G.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 173:if(!ce){i=G.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 170:i=G.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 175:case 178:case 179:i=G.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return H.failBadSyntaxKind(e.parent)}ID(n,a,e.expression,i)}function mW(e,t,n,r,i,a=n.length,o=0){return Xm(J.createFunctionTypeNode(void 0,c,J.createKeywordTypeNode(133)),e,t,n,r,i,a,o)}function hW(e,t,n,r,i,a,o){return hb(mW(e,t,n,r,i,a,o))}function gW(e){return hW(void 0,void 0,c,e)}function _W(e){return hW(void 0,void 0,[uo(`value`,e)],bn)}function vW(e){if(e)switch(e.kind){case 194:case 193:return yW(e.types);case 195:return yW([e.trueType,e.falseType]);case 197:case 203:return vW(e.type);case 184:return e.typeName}}function yW(e){let t;for(let n of e){for(;n.kind===197||n.kind===203;)n=n.type;if(n.kind===146||!fe&&(n.kind===202&&n.literal.kind===106||n.kind===157))continue;let e=vW(n);if(!e)return;if(t){if(!Y(t)||!Y(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function bW(e){let t=Ly(e);return pf(e)?ih(t):t}function xW(e){if(!HN(e)||!ob(e)||!e.modifiers||!Rh(ce,e,e.parent,e.parent.parent))return;let t=y(e.modifiers,IO);if(t){ce?(XJ(t,8),e.kind===170&&XJ(t,32)):j1)for(let t=1;t0),n.length>1&&U(n[1],G.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let r=RW(e.class.expression),i=q_(t);if(i){let t=RW(i.expression);t&&r.escapedText!==t.escapedText&&U(r,G.JSDoc_0_1_does_not_match_the_extends_2_clause,Gc(e.tagName),Gc(r),Gc(t))}}function LW(e){let t=y_(e);t&&Su(t)&&U(e,G.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function RW(e){switch(e.kind){case 80:return e;case 212:return e.name;default:return}}function zW(e){xW(e),pU(e);let t=cv(e);if(e.name&&e.name.kind===168&&TL(e.name),Fm(e)){let t=wc(e),n=e.localSymbol||t;e===n.declarations?.find(t=>t.kind===e.kind&&!(t.flags&524288))&&XU(n),t.parent&&XU(t)}let r=e.kind===174?void 0:e.body;if(Sq(r),JV(e,Wy(e)),n(i),ng(e)){let t=Ol(e);t&&t.typeExpression&&!fL(DE(t.typeExpression),e)&&U(t.typeExpression.type,G.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function i(){zy(e)||(rp(r)&&!JU(e)&&EM(e,Vt),t&1&&ip(r)&&Uy(by(e)))}}function BW(e){n(t);function t(){let t=Yf(e),n=Oi.get(t.path);n||(n=[],Oi.set(t.path,n)),n.push(e)}}function VW(e,t){for(let n of e)switch(n.kind){case 264:case 232:WW(n,t),KW(n,t);break;case 308:case 268:case 242:case 270:case 249:case 250:case 251:ZW(n,t);break;case 177:case 219:case 263:case 220:case 175:case 178:case 179:n.body&&ZW(n,t),KW(n,t);break;case 174:case 180:case 181:case 185:case 186:case 266:case 265:KW(n,t);break;case 196:GW(n,t);break;default:H.assertNever(n,`Node should not have been registered for unused identifiers check`)}}function HW(e,t,n){n(e,0,mm(el(e)||e,fT(e)?G._0_is_declared_but_never_used:G._0_is_declared_but_its_value_is_never_read,t))}function UW(e){return Y(e)&&Gc(e).charCodeAt(0)===95}function WW(e,t){for(let n of e.members)switch(n.kind){case 175:case 173:case 178:case 179:if(n.kind===179&&n.symbol.flags&32768)break;let e=wc(n);!e.isReferenced&&(Zy(n,2)||Qc(n)&&vO(n.name))&&!(n.flags&33554432)&&t(n,0,mm(n.name,G._0_is_declared_but_its_value_is_never_read,Hl(e)));break;case 177:for(let e of n.parameters)!e.symbol.isReferenced&&Qy(e,2)&&t(e,0,mm(e.name,G.Property_0_is_declared_but_its_value_is_never_read,qc(e.symbol)));break;case 182:case 241:case 176:break;default:H.fail(`Unexpected class member`)}}function GW(e,t){let{typeParameter:n}=e;qW(n)&&t(e,1,mm(e,G._0_is_declared_but_its_value_is_never_read,Gc(n.name)))}function KW(e,t){let n=wc(e).declarations;if(!n||ze(n)!==e)return;let r=Rl(e),i=new Set;for(let e of r){if(!qW(e))continue;let n=Gc(e.name),{parent:r}=e;if(r.kind!==196&&r.typeParameters.every(qW)){if(se(i,r)){let i=Yf(r),a=$j(r)?Ow(r):kw(i,r.typeParameters),o=r.typeParameters.length===1?[G._0_is_declared_but_its_value_is_never_read,n]:[G.All_type_parameters_are_unused];t(e,1,vS(i,a.pos,a.end-a.pos,...o))}}else t(e,1,mm(e,G._0_is_declared_but_its_value_is_never_read,n))}}function qW(e){return!(Cc(e.symbol).isReferenced&262144)&&!UW(e.name)}function JW(e,t,n,r){let i=String(r(t)),a=e.get(i);a?a[1].push(n):e.set(i,[t,[n]])}function YW(e){return vt(Dv(e),FO)}function XW(e){return bk(e)?vk(e.parent)?!!(e.propertyName&&UW(e.name)):UW(e.name):zp(e)||(bA(e)&&wd(e.parent.parent)||eG(e))&&UW(e.name)}function ZW(e,t){let n=new Map,r=new Map,i=new Map;e.locals.forEach(e=>{if(!(e.flags&262144?!(e.flags&3&&!(e.isReferenced&3)):e.isReferenced||e.exportSymbol)&&e.declarations){for(let a of e.declarations)if(!XW(a))if(eG(a))JW(n,Ore(a),a,mB);else if(bk(a)&&vk(a.parent))(a===ze(a.parent.elements)||!ze(a.parent.elements).dotDotDotToken)&&JW(r,a.parent,a,mB);else if(bA(a)){let e=fX(a)&7,t=el(a);(e!==4&&e!==6||!t||!UW(t))&&JW(i,a.parent,a,mB)}else{let n=e.valueDeclaration&&YW(e.valueDeclaration),i=e.valueDeclaration&&el(e.valueDeclaration);n&&i?!kc(n,n.parent)&&!jy(n)&&!UW(i)&&(bk(a)&&yk(a.parent)?JW(r,a.parent,a,mB):t(n,1,mm(i,G._0_is_declared_but_its_value_is_never_read,qc(e)))):HW(a,qc(e),t)}}}),n.forEach(([e,n])=>{let r=e.parent;if((e.name?1:0)+(e.namedBindings?e.namedBindings.kind===275?1:e.namedBindings.elements.length:0)===n.length)t(r,0,n.length===1?mm(r,G._0_is_declared_but_its_value_is_never_read,Gc(Ie(n).name)):mm(r,G.All_imports_in_import_declaration_are_unused));else for(let e of n)HW(e,Gc(e.name),t)}),r.forEach(([e,n])=>{let r=YW(e.parent)?1:0;if(e.elements.length===n.length)n.length===1&&e.parent.kind===261&&e.parent.parent.kind===262?JW(i,e.parent.parent,e.parent,mB):t(e,r,n.length===1?mm(e,G._0_is_declared_but_its_value_is_never_read,$W(Ie(n).name)):mm(e,G.All_destructured_elements_are_unused));else for(let e of n)t(e,r,mm(e,G._0_is_declared_but_its_value_is_never_read,$W(e.name)))}),i.forEach(([e,n])=>{if(e.declarations.length===n.length)t(e,0,n.length===1?mm(Ie(n).name,G._0_is_declared_but_its_value_is_never_read,$W(Ie(n).name)):mm(e.parent.kind===244?e.parent:e,G.All_variables_are_unused));else for(let e of n)t(e,0,mm(e,G._0_is_declared_but_its_value_is_never_read,$W(e.name)))})}function QW(){for(let e of xa)if(!wc(e)?.isReferenced){let t=Mc(e);H.assert(Ev(t),`Only parameter declaration should be checked here`);let n=mm(e.name,G._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,lm(e.name),lm(e.propertyName));t.type||Dw(n,vS(Yf(t),t.end,0,G.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,lm(e.propertyName))),Ea.add(n)}}function $W(e){switch(e.kind){case 80:return Gc(e);case 208:case 207:return $W(yt(Ie(e.elements),bk).name);default:return H.assertNever(e)}}function eG(e){return e.kind===274||e.kind===277||e.kind===275}function Ore(e){return e.kind===274?e:e.kind===275?e.parent:e.parent.parent}function tG(e){if(e.kind===242&&ZY(e),Lu(e)){let t=Mi;d(e.statements,Sq),Mi=t}else d(e.statements,Sq);e.locals&&BW(e)}function nG(e){j>=2||!ff(e)||e.flags&33554432||rp(e.body)||d(e.parameters,e=>{e.name&&!Xu(e.name)&&e.name.escapedText===Ke.escapedName&&Xa(`noEmit`,e,G.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function rG(e,t,n){if(t?.escapedText!==n||e.kind===173||e.kind===172||e.kind===175||e.kind===174||e.kind===178||e.kind===179||e.kind===304||e.flags&33554432||(NA(e)||jA(e)||HA(e))&&hu(e))return!1;let r=Dv(e);return!(FO(r)&&rp(r.parent.body))}function iG(e){K(e,t=>DJ(t)&4?(e.kind===80?U(e,G.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference):U(el(e),G.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference),!0):!1)}function aG(e){K(e,t=>DJ(t)&8?(e.kind===80?U(e,G.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference):U(el(e),G.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference),!0):!1)}function kre(t,n){if(e.getEmitModuleFormatOfFile(Yf(t))>=5||!n||!rG(t,n,`require`)&&!rG(t,n,`exports`)||DA(t)&&uz(t)!==1)return;let r=Iu(t);r.kind===308&&Am(r)&&Xa(`noEmit`,n,G.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,lm(n),lm(n))}function oG(e,t){if(!t||j>=4||!rG(e,t,`Promise`)||DA(e)&&uz(e)!==1)return;let n=Iu(e);n.kind===308&&Am(n)&&n.flags&4096&&Xa(`noEmit`,t,G.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,lm(t),lm(t))}function sG(e,t){j<=8&&(rG(e,t,`WeakMap`)||rG(e,t,`WeakSet`))&&ya.push(e)}function cG(e){DJ(cm(e))&1048576&&(H.assert(Qc(e)&&Y(e.name)&&typeof e.name.escapedText==`string`,`The target of a WeakMap/WeakSet collision check should be an identifier`),Xa(`noEmit`,e,G.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function lG(e,t){t&&j>=2&&j<=8&&rG(e,t,`Reflect`)&&ba.push(e)}function uG(e){let t=!1;if(Uk(e)){for(let n of e.members)if(DJ(n)&2097152){t=!0;break}}else if(Ak(e))DJ(e)&2097152&&(t=!0);else{let n=cm(e);n&&DJ(n)&2097152&&(t=!0)}t&&(H.assert(Qc(e)&&Y(e.name),`The target of a Reflect collision check should be an identifier`),Xa(`noEmit`,e,G.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,lm(e.name),`Reflect`))}function fG(e,t){t&&(kre(e,t),oG(e,t),sG(e,t),lG(e,t),zu(e)?(bK(t,G.Class_name_cannot_be_0),e.flags&33554432||xK(t)):EA(e)&&bK(t,G.Enum_name_cannot_be_0))}function pG(e){if(fX(e)&7||Ev(e))return;let t=wc(e);if(t.flags&1){if(!Y(e.name))return H.fail();let n=rt(e,e.name.escapedText,3,void 0,!1);if(n&&n!==t&&n.flags&2&&nR(n)&7){let t=Q_(n.valueDeclaration,262),r=t.parent.kind===244&&t.parent.parent?t.parent.parent:void 0;if(!(r&&(r.kind===242&&ju(r.parent)||r.kind===269||r.kind===268||r.kind===308))){let t=Hl(n);U(e,G.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}function mG(e){return e===Ht?Vt:e===Ir?Fr:e}function hG(e){if(xW(e),bk(e)||Sq(e.type),!e.name)return;if(e.name.kind===168&&(TL(e.name),af(e)&&e.initializer&&RH(e.initializer)),bk(e)){if(e.propertyName&&Y(e.name)&&Ev(e)&&rp(bh(e).body)){xa.push(e);return}vk(e.parent)&&e.dotDotDotToken&&j1&&F(t.declarations,t=>t!==e&&oh(t)&&!_G(t,e))&&U(e.name,G.All_declarations_of_0_must_have_identical_modifiers,lm(e.name))}else{let r=mG(Yd(e));!Yu(n)&&!Yu(r)&&!ED(n,r)&&!(t.flags&67108864)&&gG(t.valueDeclaration,n,e,r),af(e)&&e.initializer&&LD(RH(e.initializer),r,e,e.initializer,void 0),t.valueDeclaration&&!_G(e,t.valueDeclaration)&&U(e.name,G.All_declarations_of_0_must_have_identical_modifiers,lm(e.name))}e.kind!==173&&e.kind!==172&&(QU(e),(e.kind===261||e.kind===209)&&pG(e),fG(e,e.name))}function gG(e,t,n,r){let i=el(n),a=n.kind===173||n.kind===172?G.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:G.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,o=lm(i),s=U(i,a,o,Yl(t),Yl(r));e&&Dw(s,mm(e,G._0_was_also_declared_here,o))}function _G(e,t){if(e.kind===170&&t.kind===261||e.kind===261&&t.kind===170)return!0;if($g(e)!==$g(t))return!1;let n=1358;return sb(e,n)===sb(t,n)}function vG(e){var t,n;(t=Ar)==null||t.push(Ar.Phase.Check,`checkVariableDeclaration`,{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath}),sie(e),hG(e),(n=Ar)==null||n.pop()}function yG(e){return FY(e),hG(e)}function bG(e){let t=Ic(e)&7;(t===4||t===6)&&j=2,s=!o&&A.downlevelIteration,c=A.noUncheckedIndexedAccess&&!!(e&128);if(o||s||a){let a=HG(t,e,o?r:void 0);if(i&&a){let t=e&8?G.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:e&32?G.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:e&64?G.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:e&16?G.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;t&&ID(n,a.nextType,r,t)}if(a||o)return c?iP(a&&a.yieldType):a&&a.yieldType}let l=t,u=!1;if(e&4){if(l.flags&1048576){let e=t.types,n=E(e,e=>!(e.flags&402653316));n!==e&&(l=AC(n,2))}else l.flags&402653316&&(l=V);if(u=l!==t,u&&l.flags&131072)return c?iP(rn):rn}if(!kA(l)){if(r){let[t,n]=f(!!(e&4)&&!u,s);no(r,n&&!!eW(l),t,Yl(l))}return u?c?iP(rn):rn:void 0}let d=ay(l,on);if(u&&d)return d.flags&402653316&&!A.noUncheckedIndexedAccess?rn:AC(c?[d,rn,Xt]:[d,rn],2);return e&128?iP(d):d;function f(n,r){return r?n?[G.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[G.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:LG(e,0,t,void 0)?[G.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:jre(t.symbol?.escapedName)?[G.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[G.Type_0_is_not_an_array_type_or_a_string_type,!0]:[G.Type_0_is_not_an_array_type,!0]}}function jre(e){switch(e){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 LG(e,t,n,r){if(Ku(n))return;let i=HG(n,e,r);return i&&i[Lne(t)]}function RG(e=V,t=V,n=Yt){if(e.flags&67359327&&t.flags&180227&&n.flags&180227){let r=Kb([e,t,n]),i=lr.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},lr.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function zG(e){let t,n,r;for(let i of e)if(!(i===void 0||i===ur)){if(i===dr)return dr;t=I(t,i.yieldType),n=I(n,i.returnType),r=I(r,i.nextType)}return t||n||r?RG(t&&AC(t),n&&AC(n),r&&HC(r)):ur}function BG(e,t){return e[t]}function VG(e,t,n){return e[t]=n}function HG(e,t,n){if(e===Cn)return fr;if(Ku(e))return dr;if(!(e.flags&1048576)){let r=n?{errors:void 0,skipLogging:!0}:void 0,i=WG(e,t,n,r);if(i===ur){if(n){let i=YG(n,e,!!(t&2));r?.errors&&Dw(i,...r.errors)}return}else if(r?.errors?.length)for(let e of r.errors)Ea.add(e);return i}let r=t&2?`iterationTypesOfAsyncIterable`:`iterationTypesOfIterable`,i=BG(e,r);if(i)return i===ur?void 0:i;let a;for(let i of e.types){let o=n?{errors:void 0}:void 0,s=WG(i,t,n,o);if(s===ur){if(n){let r=YG(n,e,!!(t&2));o?.errors&&Dw(r,...o.errors)}VG(e,r,ur);return}else if(o?.errors?.length)for(let e of o.errors)Ea.add(e);a=I(a,s)}let o=a?zG(a):ur;return VG(e,r,o),o===ur?void 0:o}function UG(e,t){if(e===ur)return ur;if(e===dr)return dr;let{yieldType:n,returnType:r,nextType:i}=e;return t&&wS(!0),RG(lW(n,t)||Vt,lW(r,t)||Vt,i)}function WG(e,t,n,r){if(Ku(e))return dr;let i=!1;if(t&2){let r=GG(e,pr)||KG(e,pr);if(r)if(r===ur&&n)i=!0;else return t&8?UG(r,n):r}if(t&1){let r=GG(e,mr)||KG(e,mr);if(r)if(r===ur&&n)i=!0;else if(t&2){if(r!==ur)return r=UG(r,n),i?r:VG(e,`iterationTypesOfAsyncIterable`,r)}else return r}if(t&2){let t=JG(e,pr,n,r,i);if(t!==ur)return t}if(t&1){let a=JG(e,mr,n,r,i);if(a!==ur)return t&2?(a=UG(a,n),i?a:VG(e,`iterationTypesOfAsyncIterable`,a)):a}return ur}function GG(e,t){return BG(e,t.iterableCacheKey)}function KG(e,t){if(tp(e,t.getGlobalIterableType(!1))||tp(e,t.getGlobalIteratorObjectType(!1))||tp(e,t.getGlobalIterableIteratorType(!1))||tp(e,t.getGlobalGeneratorType(!1))){let[n,r,i]=ex(e);return VG(e,t.iterableCacheKey,RG(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}if(ep(e,t.getGlobalBuiltinIteratorTypes())){let[n]=ex(e),r=cS(),i=Yt;return VG(e,t.iterableCacheKey,RG(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function qG(e){let t=Kx(!1),n=t&&Wu(Jf(t),Uc(e));return n&&kT(n)?AT(n):`__@${e}`}function JG(e,t,n,r,i){let a=Kv(e,qG(t.iteratorSymbolName)),o=a&&!(a.flags&16777216)?Jf(a):void 0;if(Ku(o))return i?dr:VG(e,t.iterableCacheKey,dr);let s=o?Jv(o,0):void 0,c=E(s,e=>fV(e)===0);if(!F(c))return n&&F(s)&&ID(e,t.getGlobalIterableType(!0),n,void 0,void 0,r),i?ur:VG(e,t.iterableCacheKey,ur);let l=ZG(HC(k(c,Uy)),t,n,r,i)??ur;return i?l:VG(e,t.iterableCacheKey,l)}function YG(e,t,n){let r=n?G.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:G.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return no(e,!!eW(t)||!n&&uA(e.parent)&&e.parent.expression===e&&nS(!1)!==Kn&&MD(t,NS(nS(!1),[Vt,Vt,Vt])),r,Yl(t))}function XG(e,t,n,r){return ZG(e,t,n,r,!1)}function ZG(e,t,n,r,i){if(Ku(e))return dr;let a=QG(e,t)||Mre(e,t);return a===ur&&n&&(a=void 0,i=!0),a??=iK(e,t,n,r,i),a===ur?void 0:a}function QG(e,t){return BG(e,t.iteratorCacheKey)}function Mre(e,t){if(tp(e,t.getGlobalIterableIteratorType(!1))||tp(e,t.getGlobalIteratorType(!1))||tp(e,t.getGlobalIteratorObjectType(!1))||tp(e,t.getGlobalGeneratorType(!1))){let[n,r,i]=ex(e);return VG(e,t.iteratorCacheKey,RG(n,r,i))}if(ep(e,t.getGlobalBuiltinIteratorTypes())){let[n]=ex(e),r=cS(),i=Yt;return VG(e,t.iteratorCacheKey,RG(n,r,i))}}function $G(e,t){let n=Wu(e,`done`)||cn;return MD(t===0?cn:un,n)}function eK(e){return $G(e,0)}function tK(e){return $G(e,1)}function nK(e){if(Ku(e))return dr;let t=BG(e,`iterationTypesOfIteratorResult`);if(t)return t;if(tp(e,fS(!1))){let t=ex(e)[0];return VG(e,`iterationTypesOfIteratorResult`,RG(t,void 0,void 0))}if(tp(e,pS(!1))){let t=ex(e)[0];return VG(e,`iterationTypesOfIteratorResult`,RG(void 0,t,void 0))}let n=TP(e,eK),r=n===V?void 0:Wu(n,`value`),i=TP(e,tK),a=i===V?void 0:Wu(i,`value`);return!r&&!a?VG(e,`iterationTypesOfIteratorResult`,ur):VG(e,`iterationTypesOfIteratorResult`,RG(r,a||bn,void 0))}function rK(e,t,n,r,i){let a=Kv(e,n);if(!a&&n!==`next`)return;let o=a&&!(n===`next`&&a.flags&16777216)?n===`next`?Jf(a):QN(Jf(a),2097152):void 0;if(Ku(o))return dr;let s=o?Jv(o,0):c;if(s.length===0){if(r){let e=n===`next`?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;i?(i.errors??=[],i.errors.push(mm(r,e,n))):U(r,e,n)}return n===`next`?ur:void 0}if(o?.symbol&&s.length===1){let e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(e.symbol?.members)?.get(n)===o.symbol,a=!i&&(r.symbol?.members)?.get(n)===o.symbol;if(i||a){let t=i?e:r,{mapper:a}=o;return RG(NE(t.typeParameters[0],a),NE(t.typeParameters[1],a),n===`next`?NE(t.typeParameters[2],a):void 0)}}let l,u;for(let e of s)n!==`throw`&&F(e.parameters)&&(l=I(l,sV(e,0))),u=I(u,Uy(e));let d,f;if(n!==`throw`){let e=l?AC(l):Yt;if(n===`next`)f=e;else if(n===`return`){let n=t.resolveIterationType(e,r)||Vt;d=I(d,n)}}let p,m=u?HC(u):V,h=nK(t.resolveIterationType(m,r)||Vt);return h===ur?(r&&(i?(i.errors??=[],i.errors.push(mm(r,t.mustHaveAValueDiagnostic,n))):U(r,t.mustHaveAValueDiagnostic,n)),p=Vt,d=I(d,Vt)):(p=h.yieldType,d=I(d,h.returnType)),RG(p,AC(d),f)}function iK(e,t,n,r,i){let a=zG([rK(e,t,`next`,n,r),rK(e,t,`return`,n,r),rK(e,t,`throw`,n,r)]);return i?a:VG(e,t.iteratorCacheKey,a)}function aK(e,t,n){if(Ku(t))return;let r=oK(t,n);return r&&r[Lne(e)]}function oK(e,t){if(Ku(e))return dr;let n=t?2:1,r=t?pr:mr;return HG(e,n,void 0)||XG(e,r,void 0,void 0)}function sK(e){ZY(e)||rie(e)}function cK(e,t){let n=!!(t&1),r=!!(t&2);if(n){let t=aK(1,e,r);return t?r?uW(aW(t)):t:Gt}return r?uW(e)||Gt:e}function lK(e,t){let n=cK(t,cv(e));return!!(n&&(lH(n,16384)||n.flags&32769))}function uK(e){if(ZY(e))return;let t=wh(e);if(t&&VO(t)){HY(e,G.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!t){HY(e,G.A_return_statement_can_only_be_used_within_a_function_body);return}let n=Uy(by(t));if(fe||e.expression||n.flags&131072){let r=e.expression?RH(e.expression):Xt;if(t.kind===179)e.expression&&U(e,G.Setters_cannot_return_a_value);else if(t.kind===177){let t=e.expression?RH(e.expression):Xt;e.expression&&!LD(t,n,e,e.expression)&&U(e,G.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else Wy(t)&&dK(t,cK(n,cv(t))??n,e,e.expression,r)}else t.kind!==177&&A.noImplicitReturns&&!lK(t,n)&&U(e,G.Not_all_code_paths_return_a_value)}function dK(e,t,n,r,i,a=!1){let o=ng(n),s=cv(e);if(r){let i=F_(r,o);if(zk(i)){dK(e,t,n,i.whenTrue,cU(i.whenTrue),!0),dK(e,t,n,i.whenFalse,cU(i.whenFalse),!0);return}}let c=n.kind===254,l=s&2?nW(i,!1,n,G.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,u=r&&jz(r);LD(l,t,c&&!a?n:u,u)}function fK(e){ZY(e)||e.flags&65536&&HY(e,G.with_statements_are_not_allowed_in_an_async_function_block),cU(e.expression);let t=Yf(e);if(!VY(t)){let n=Tm(t,e.pos).start,r=e.statement.pos;UY(t,n,r-n,G.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function pK(e){ZY(e);let t,r=!1,i=cU(e.expression);d(e.caseBlock.clauses,e=>{e.kind===298&&!r&&(t===void 0?t=e:($(e,G.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0)),e.kind===297&&n(a(e)),d(e.statements,Sq),A.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&QP(e.fallthroughFlowNode)&&U(e,G.Fallthrough_case_in_switch);function a(e){return()=>{let t=cU(e.expression);CH(i,t)||qD(t,i,e.expression,void 0)}}}),e.caseBlock.locals&&BW(e.caseBlock)}function mK(e){ZY(e)||K(e.parent,t=>ju(t)?`quit`:t.kind===257&&t.label.escapedText===e.label.escapedText?($(e.label,G.Duplicate_label_0,Ep(e.label)),!0):!1),Sq(e.statement)}function hK(e){ZY(e)||Y(e.expression)&&!e.expression.escapedText&&uie(e,G.Line_break_not_permitted_here),e.expression&&cU(e.expression)}function gK(e){ZY(e),tG(e.tryBlock);let t=e.catchClause;if(t){if(t.variableDeclaration){let e=t.variableDeclaration;hG(e);let n=Ly(e);if(n){let e=DE(n);e&&!(e.flags&3)&&HY(n,G.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)HY(e.initializer,G.Catch_clause_variable_cannot_have_an_initializer);else{let e=t.block.locals;e&&Nf(t.locals,t=>{let n=e.get(t);n?.valueDeclaration&&n.flags&2&&$(n.valueDeclaration,G.Cannot_redeclare_identifier_0_in_catch_clause,Wc(t))})}}tG(t.block)}e.finallyBlock&&tG(e.finallyBlock)}function _K(e,t,n){let r=ty(e);if(r.length===0)return;for(let t of d_(e))n&&t.flags&4194304||vK(e,t,ew(t,8576,!0),$f(t));let i=t.valueDeclaration;if(i&&zu(i)){for(let t of i.members)if((!n&&!$y(t)||n&&$y(t))&&!Fm(t)){let n=wc(t);vK(e,n,aU(t.name.expression),$f(n))}}if(r.length>1)for(let t of r)yK(e,t)}function vK(e,t,n,r){let i=t.valueDeclaration,a=el(i);if(a&&vO(a))return;let o=sy(e,n),s=Wx(e)&2?xf(e.symbol,265):void 0,c=i&&i.kind===227||a&&a.kind===168?i:void 0,l=Ec(t)===e.symbol?i:void 0;for(let n of o){let i=n.declaration&&Ec(wc(n.declaration))===e.symbol?n.declaration:void 0,a=l||i||(s&&!F(bp(e),e=>!!f_(e,t.escapedName)&&!!ay(e,n.keyType))?s:void 0);if(a&&!MD(r,n.type)){let e=Za(a,G.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Hl(t),Yl(r),Yl(n.keyType),Yl(n.type));c&&a!==c&&Dw(e,mm(c,G._0_is_declared_here,Hl(t))),Ea.add(e)}}}function yK(e,t){let n=t.declaration,r=sy(e,t.keyType),i=Wx(e)&2?xf(e.symbol,265):void 0,a=n&&Ec(wc(n))===e.symbol?n:void 0;for(let n of r){if(n===t)continue;let r=n.declaration&&Ec(wc(n.declaration))===e.symbol?n.declaration:void 0,o=a||r||(i&&!F(bp(e),e=>!!ny(e,t.keyType)&&!!ay(e,n.keyType))?i:void 0);o&&!MD(t.type,n.type)&&U(o,G._0_index_type_1_is_not_assignable_to_2_index_type_3,Yl(t.keyType),Yl(t.type),Yl(n.keyType),Yl(n.type))}}function bK(e,t){switch(e.escapedText){case`any`:case`unknown`:case`never`:case`number`:case`bigint`:case`boolean`:case`string`:case`symbol`:case`void`:case`object`:case`undefined`:U(e,t,e.escapedText)}}function xK(t){j>=1&&t.escapedText===`Object`&&e.getEmitModuleFormatOfFile(Yf(t))<5&&U(t,G.Class_name_cannot_be_Object_when_targeting_ES5_and_above_with_module_0,Pi[N])}function SK(e){let t=E(Ml(e),Yj);if(!u(t))return;let n=ng(e),r=new Set,i=new Set;if(d(e.parameters,({name:e},t)=>{Y(e)&&r.add(e.escapedText),Xu(e)&&i.add(t)}),Ty(e)){let e=t.length-1,a=t[e];n&&a&&Y(a.name)&&a.typeExpression&&a.typeExpression.type&&!r.has(a.name.escapedText)&&!i.has(e)&&!hA(DE(a.typeExpression.type))&&U(a.name,G.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Gc(a.name))}else d(t,({name:e,isNameFirst:t},a)=>{i.has(a)||Y(e)&&r.has(e.escapedText)||(MO(e)?n&&U(e,G.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,pm(e),pm(e.left)):t||to(n,e,G.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Gc(e)))})}function CK(e){let t=!1;if(e)for(let t=0;t{n.default?(t=!0,wK(n.default,e,r)):t&&U(n,G.Required_type_parameters_may_not_follow_optional_type_parameters);for(let t=0;tr)return!1;for(let n=0;neb(e)&&Su(e))&&$(t,G.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!e.name&&!Qy(e,2048)&&HY(e,G.A_class_declaration_without_the_default_modifier_must_have_a_name),jK(e),d(e.members,Sq),BW(e)}function jK(e){uY(e),xW(e),fG(e,e.name),CK(Rl(e)),QU(e);let t=wc(e),r=Kp(t),i=Km(r),a=Jf(t);TK(t),XU(t),hU(e),e.flags&33554432||vre(e);let o=K_(e);if(o){d(o.typeArguments,Sq),j{let t=s[0],n=gp(r),c=Fv(n);if(FK(c,o),Sq(o.expression),F(o.typeArguments)){d(o.typeArguments,Sq);for(let e of mp(c,o.typeArguments,o))if(!OU(o,e.typeParameters))break}let l=Km(t,r.thisType);ID(i,l,void 0)?ID(a,wD(c),e.name||e,G.Class_static_side_0_incorrectly_extends_base_class_static_side_1):PK(e,i,l,G.Class_0_incorrectly_extends_base_class_1),n.flags&8650752&&(dp(a)?Jv(n,1).some(e=>e.flags&4)&&!Qy(e,64)&&U(e.name||e,G.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):U(e.name||e,G.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(c.symbol&&c.symbol.flags&32)&&!(n.flags&8650752)&&d(hp(c,o.typeArguments,o),e=>!kB(e.declaration)&&!ED(Uy(e),t))&&U(o.expression,G.Base_constructors_must_all_have_the_same_return_type),RK(r,t)})}Pre(e,r,i,a);let s=J_(e);if(s)for(let e of s)(!Mb(e.expression)||Gl(e.expression))&&U(e.expression,G.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),MU(e),n(c(e));n(()=>{_K(r,t),_K(a,t,!0),_U(e),HK(e)});function c(t){return()=>{let n=Hv(DE(t));if(!Yu(n))if(Dp(n)){let t=n.symbol&&n.symbol.flags&32?G.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:G.Class_0_incorrectly_implements_interface_1,a=Km(n,r.thisType);ID(i,a,void 0)||PK(e,i,a,t)}else U(t,G.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Pre(e,t,n,r){let i=K_(e)&&bp(t),a=i?.length?Km(Ie(i),t.thisType):void 0,o=gp(t);for(let i of e.members)rb(i)||(HO(i)&&d(i.parameters,s=>{kc(s,i)&&MK(e,r,o,a,t,n,s,!0)}),MK(e,r,o,a,t,n,i,!1))}function MK(e,t,n,r,i,a,o,s,c=!0){let l=o.name&&Qq(o.name)||Qq(o);return l?NK(e,t,n,r,i,a,tb(o),nb(o),$y(o),s,l,c?o:void 0):0}function NK(e,t,n,r,i,a,o,s,c,l,u,d){let f=ng(e),p=!!(e.flags&33554432);if(o&&u?.valueDeclaration&&Ru(u.valueDeclaration)&&u.valueDeclaration.name&&Im(u.valueDeclaration.name))return U(d,f?G.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:G.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(r&&(o||A.noImplicitOverride)){let e=c?t:a,i=c?n:r,m=Kv(e,u.escapedName),h=Kv(i,u.escapedName),g=Yl(r);if(m&&!h&&o){if(d){let e=RR(qc(u),i);e?U(d,f?G.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:G.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,g,Hl(e)):U(d,f?G.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:G.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,g)}return 2}else if(m&&h?.declarations&&A.noImplicitOverride&&!p){let e=F(h.declarations,nb);if(o)return 0;if(!e)return d&&U(d,l?f?G.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:G.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:f?G.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:G.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,g),1;if(s&&e)return d&&U(d,G.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,g),1}}else if(o){if(d){let e=Yl(i);U(d,f?G.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:G.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function PK(e,t,n,r){let i=!1;for(let r of e.members){if($y(r))continue;let e=r.name&&Qq(r.name)||Qq(r);if(e){let a=Kv(t,e.escapedName),o=Kv(n,e.escapedName);a&&o&&(ID(Jf(a),Jf(o),r.name||r,void 0,()=>SS(void 0,G.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Hl(e),Yl(t),Yl(n)))||(i=!0))}}i||ID(t,n,e.name||e,r)}function FK(e,t){let n=Jv(e,1);if(n.length){let r=n[0].declaration;r&&Zy(r,2)&&(Wq(t,Ux(e.symbol))||U(t,G.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Us(e.symbol)))}}function Fre(e,t,n){if(!t.name)return 0;let r=wc(e),i=Kp(r),a=Km(i),o=Jf(r),s=K_(e)&&bp(i),c=s?.length?Km(Ie(s),i.thisType):void 0;return NK(e,o,gp(i),c,i,a,t.parent?tb(t):Qy(t,16),nb(t),$y(t),!1,n)}function IK(e){return jx(e)&1?e.links.target:e}function LK(e){return E(e.declarations,e=>e.kind===264||e.kind===265)}function RK(e,t){let n=S_(t),r=new Map;basePropertyCheck:for(let i of n){let n=IK(i);if(n.flags&4194304)continue;let a=f_(e,n.escapedName);if(!a)continue;let o=IK(a),s=Mx(n);if(H.assert(!!o,`derived should point to something, even if it is the base class' declaration.`),o===n){let a=Ux(e.symbol);if(s&64&&(!a||!Qy(a,64))){for(let r of bp(e)){if(r===t)continue;let e=f_(r,n.escapedName),i=e&&IK(e);if(i&&i!==n)continue basePropertyCheck}let o=Yl(t),s=Yl(e),c=Hl(i),l=I(r.get(a)?.missedProperties,c);r.set(a,{baseTypeName:o,typeName:s,missedProperties:l})}}else{let r=Mx(o);if(s&2||r&2)continue;let i,a=n.flags&98308,c=o.flags&98308;if(a&&c){if((jx(n)&6?n.declarations?.some(e=>zK(e,s)):n.declarations?.every(e=>zK(e,s)))||jx(n)&262144||o.valueDeclaration&&Rk(o.valueDeclaration))continue;let i=a!==4&&c===4;if(i||a===4&&c!==4){let r=i?G._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:G._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;U(el(o.valueDeclaration)||o.valueDeclaration,r,Hl(n),Yl(t),Yl(e))}else if(P){let i=o.declarations?.find(e=>e.kind===173&&!e.initializer);if(i&&!(o.flags&33554432)&&!(s&64)&&!(r&64)&&!o.declarations?.some(e=>!!(e.flags&33554432))){let r=BT(Ux(e.symbol)),a=i.name;if(i.exclamationToken||!r||!Y(a)||!fe||!WK(a,e,r)){let e=G.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;U(el(o.valueDeclaration)||o.valueDeclaration,e,Hl(n),Yl(t))}}}continue}else if(rR(n)){if(rR(o)||o.flags&4)continue;H.assert(!!(o.flags&98304)),i=G.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else i=n.flags&98304?G.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:G.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;U(el(o.valueDeclaration)||o.valueDeclaration,i,Yl(t),Hl(n),Yl(e))}}for(let[e,t]of r)if(u(t.missedProperties)===1)Uk(e)?U(e,G.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ie(t.missedProperties),t.baseTypeName):U(e,G.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,t.typeName,Ie(t.missedProperties),t.baseTypeName);else if(u(t.missedProperties)>5){let n=k(t.missedProperties.slice(0,4),e=>`'${e}'`).join(`, `),r=u(t.missedProperties)-4;Uk(e)?U(e,G.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,t.baseTypeName,n,r):U(e,G.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,t.typeName,t.baseTypeName,n,r)}else{let n=k(t.missedProperties,e=>`'${e}'`).join(`, `);Uk(e)?U(e,G.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,t.baseTypeName,n):U(e,G.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,t.typeName,t.baseTypeName,n)}}function zK(e,t){return t&64&&(!RO(e)||!e.initializer)||wA(e.parent)}function BK(e,t,n){if(!u(t))return n;let r=new Map;d(n,e=>{r.set(e.escapedName,e)});for(let n of t){let t=S_(Km(n,e.thisType));for(let e of t){let t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return $e(r.values())}function VK(e,t){let n=bp(e);if(n.length<2)return!0;let r=new Map;d(om(e).declaredProperties,t=>{r.set(t.escapedName,{prop:t,containingType:e})});let i=!0;for(let a of n){let n=S_(Km(a,e.thisType));for(let o of n){let n=r.get(o.escapedName);if(!n)r.set(o.escapedName,{prop:o,containingType:a});else if(n.containingType!==e&&!Zk(n.prop,o)){i=!1;let r=Yl(n.containingType),s=Yl(a),c=SS(void 0,G.Named_property_0_of_types_1_and_2_are_not_identical,Hl(o),r,s);c=SS(c,G.Interface_0_cannot_simultaneously_extend_types_1_and_2,Yl(e),r,s),Ea.add(_m(Yf(t),t,c))}}}return i}function HK(e){if(!fe||!_e||e.flags&33554432)return;let t=BT(e);for(let n of e.members)if(!(ub(n)&128)&&!$y(n)&&UK(n)){let e=n.name;if(Y(e)||vO(e)||NO(e)){let r=Jf(wc(n));r.flags&3||iO(r)||(!t||!WK(e,r,t))&&U(n.name,G.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,lm(e))}}}function UK(e){return e.kind===173&&!nb(e)&&!e.exclamationToken&&!e.initializer}function Ire(e,t,n,r,i){for(let a of n)if(a.pos>=r&&a.pos<=i){let n=J.createPropertyAccessExpression(J.createThis(),e);if(Zw(n.expression,n),Zw(n,a),n.flowNode=a.returnFlowNode,!iO(rF(n,t,Jj(t))))return!0}return!1}function WK(e,t,n){let r=NO(e)?J.createElementAccessExpression(J.createThis(),e.expression):J.createPropertyAccessExpression(J.createThis(),e);return Zw(r.expression,r),Zw(r,n),r.flowNode=n.returnFlowNode,!iO(rF(r,t,Jj(t)))}function Lre(e){$J(e)||bY(e),zY(e.parent)||$(e,G._0_declarations_can_only_be_declared_inside_a_block,`interface`),CK(e.typeParameters),n(()=>{bK(e.name,G.Interface_name_cannot_be_0),QU(e);let t=wc(e);if(TK(t),e===xf(t,265)){let n=Kp(t),r=Km(n);if(VK(n,e.name)){for(let t of bp(n))ID(r,Km(t,n.thisType),e.name,G.Interface_0_incorrectly_extends_interface_1);_K(n,t)}}gU(e)}),d(X_(e),e=>{(!Mb(e.expression)||Gl(e.expression))&&U(e.expression,G.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),MU(e)}),d(e.members,Sq),n(()=>{_U(e),BW(e)})}function GK(e){if($J(e),bK(e.name,G.Type_alias_name_cannot_be_0),zY(e.parent)||$(e,G._0_declarations_can_only_be_declared_inside_a_block,`type`),QU(e),CK(e.typeParameters),e.type.kind===141){let t=u(e.typeParameters);(t===0?e.name.escapedText===`BuiltinIteratorReturn`:t===1&&pB.has(e.name.escapedText))||U(e.type,G.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else Sq(e.type),BW(e)}function KK(e){let t=To(e);if(!(t.flags&1024)){t.flags|=1024;let n=0,r;for(let t of e.members){let e=qK(t,n,r);To(t).enumMemberValue=e,n=typeof e.value==`number`?e.value+1:void 0,r=t}}}function qK(e,t,n){if(um(e.name))U(e.name,G.Computed_property_names_are_not_allowed_in_enums);else if(eO(e.name))U(e.name,G.An_enum_member_cannot_have_a_numeric_name);else{let t=fm(e.name);cT(t)&&!iT(t)&&U(e.name,G.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return JK(e);if(e.parent.flags&33554432&&!Mm(e.parent))return LT(void 0);if(t===void 0)return U(e.name,G.Enum_member_must_have_initializer),LT(void 0);if(US(A)&&n?.initializer){let t=AJ(n);typeof t.value==`number`&&!t.resolvedOtherFiles||U(e.name,G.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return LT(t)}function JK(e){let t=Mm(e.parent),n=e.initializer,r=Be(n,e);return r.value===void 0?t?U(n,G.const_enum_member_initializers_must_be_constant_expressions):e.parent.flags&33554432?U(n,G.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):ID(cU(n),on,n,G.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values):t&&typeof r.value==`number`&&!isFinite(r.value)?U(n,isNaN(r.value)?G.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:G.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):US(A)&&typeof r.value==`string`&&!r.isSyntacticallyString&&U(n,G._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${Gc(e.parent.name)}.${fm(e.name)}`),r}function YK(e,t){let n=Js(e,111551,!0);if(!n)return LT(void 0);if(e.kind===80){let t=e;if(iT(t.escapedText)&&n===Ax(t.escapedText,111551,void 0))return LT(+t.escapedText,!1)}if(n.flags&8)return t?ZK(e,n,t):AJ(n.valueDeclaration);if(pF(n)){let e=n.valueDeclaration;if(e&&bA(e)&&!e.type&&e.initializer&&(!t||e!==t&&Oo(e,t))){let n=Be(e.initializer,e);return t&&Yf(t)!==Yf(e)?LT(n.value,!1,!0,!0):LT(n.value,n.isSyntacticallyString,n.resolvedOtherFiles,!0)}}return LT(void 0)}function XK(e,t){let n=e.expression;if(Mb(n)&&uf(e.argumentExpression)){let r=Js(n,111551,!0);if(r&&r.flags&384){let n=Uc(e.argumentExpression.text),i=r.exports.get(n);if(i)return H.assert(Yf(i.valueDeclaration)===Yf(r.valueDeclaration)),t?ZK(e,i,t):AJ(i.valueDeclaration)}}return LT(void 0)}function ZK(e,t,n){let r=t.valueDeclaration;if(!r||r===n)return U(e,G.Property_0_is_used_before_being_assigned,Hl(t)),LT(void 0);if(!Oo(r,n))return U(e,G.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),LT(0);let i=AJ(r);return n.parent===r.parent?i:LT(i.value,i.isSyntacticallyString,i.resolvedOtherFiles,!0)}function QK(e){n(()=>$K(e))}function $K(e){$J(e),fG(e,e.name),QU(e),e.members.forEach(Sq),A.erasableSyntaxOnly&&!(e.flags&33554432)&&U(e,G.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),KK(e);let t=wc(e);if(e===xf(t,e.kind)){if(t.declarations&&t.declarations.length>1){let n=Mm(e);d(t.declarations,e=>{EA(e)&&Mm(e)!==n&&U(el(e),G.Enum_declarations_must_all_be_const_or_non_const)})}let n=!1;d(t.declarations,e=>{if(e.kind!==267)return!1;let t=e;if(!t.members.length)return!1;let r=t.members[0];r.initializer||(n?U(r.name,G.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)})}}function eq(e){vO(e.name)&&U(e,G.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&cU(e.initializer)}function tq(e){let t=e.declarations;if(t){for(let e of t)if((e.kind===264||e.kind===263&&ip(e.body))&&!(e.flags&33554432))return e}}function nq(e,t){let n=cm(e),r=cm(t);return km(n)?km(r):km(r)?!1:n===r}function rq(t){t.body&&(Sq(t.body),Wp(t)||BW(t)),n(r);function r(){let n=Wp(t),r=t.flags&33554432;n&&!r&&U(t.name,G.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let i=zp(t);if(vq(t,i?G.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:G.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module))return;if($J(t)||!r&&t.name.kind===11&&$(t.name,G.Only_ambient_modules_can_use_quoted_names),Y(t.name)&&(fG(t,t.name),!(t.flags&2080))){let e=Yf(t),n=Tm(e,yp(t));Da.add(vS(e,n.start,n.length,G.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}QU(t);let a=wc(t);if(a.flags&512&&!r&&gB(t,XS(A))){if(A.erasableSyntaxOnly&&U(t.name,G.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),US(A)&&!Yf(t).externalModuleIndicator&&U(t.name,G.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,Je),a.declarations?.length>1){let e=tq(a);e&&(Yf(t)===Yf(e)?t.pose.kind===95);e&&U(e,G.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(i)if(Gp(t)){if((n||wc(t).flags&33554432)&&t.body)for(let e of t.body.statements)iq(e,n)}else km(t.parent)?n?U(t.name,G.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):tc(gv(t.name))&&U(t.name,G.Ambient_module_declaration_cannot_specify_relative_module_name):n?U(t.name,G.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):U(t.name,G.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function iq(e,t){switch(e.kind){case 244:for(let n of e.declarationList.declarations)iq(n,t);break;case 278:case 279:HY(e,G.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 272:if($h(e))break;case 273:HY(e,G.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 209:case 261:let n=e.name;if(Xu(n)){for(let e of n.elements)iq(e,t);break}case 264:case 267:case 263:case 265:case 268:case 266:if(t)return;break}}function aq(e){switch(e.kind){case 80:return e;case 167:do e=e.left;while(e.kind!==80);return e;case 212:do{if(Tg(e.expression)&&!vO(e.name))return e.name;e=e.expression}while(e.kind!==80);return e}}function oq(e){let t=Yg(e);if(!t||rp(t))return!1;if(!tO(t))return U(t,G.String_literal_expected),!1;let n=e.parent.kind===269&&zp(e.parent.parent);if(e.parent.kind!==308&&!n)return U(t,e.kind===279?G.Export_declarations_are_not_permitted_in_a_namespace:G.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&tc(t.text)&&!mu(e))return U(e,G.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!jA(e)&&e.attributes){let t=e.attributes.token===118?G.Import_attribute_values_must_be_string_literal_expressions:G.Import_assertion_values_must_be_string_literal_expressions,n=!1;for(let r of e.attributes.elements)tO(r.value)||(n=!0,U(r.value,t));return!n}return!0}function sq(e,t=!0){e===void 0||e.kind!==11||(t?(N===5||N===6)&&$(e,G.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):$(e,G.Identifier_expected))}function cq(t){let n=wc(t),r=Is(n);if(r!==Ft){if(n=Cc(n.exportSymbol||n),ng(t)&&!(r.flags&111551)&&!hu(t)){let e=fu(t)?t.propertyName||t.name:Qc(t)?t.name:t;if(H.assert(t.kind!==281),t.kind===282){let n=U(e,G.Types_cannot_appear_in_export_declarations_in_JavaScript_files),i=(Yf(t).symbol?.exports)?.get(Cp(t.propertyName||t.name));if(i===r){let e=i.declarations?.find(Xd);e&&Dw(n,mm(e,G._0_is_automatically_exported_here,Wc(i.escapedName)))}}else{H.assert(t.kind!==261);let r=K(t,vn(MA,jA)),i=(r&&Gg(r)?.text)??`...`,a=Wc(Y(e)?e.escapedText:n.escapedName);U(e,G._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,a,`import("${i}").${a}`)}return}let i=Rs(r);if(i&((n.flags&1160127?111551:0)|(n.flags&788968?788968:0)|(n.flags&1920?1920:0))?U(t,t.kind===282?G.Export_declaration_conflicts_with_exported_declaration_of_0:G.Import_declaration_conflicts_with_local_declaration_of_0,Hl(n)):t.kind!==282&&A.isolatedModules&&!K(t,hu)&&n.flags&1160127&&U(t,G.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Hl(n),Je),US(A)&&!hu(t)&&!(t.flags&33554432)){let a=Vs(n),o=!(i&111551);if(o||a)switch(t.kind){case 274:case 277:case 272:if(A.verbatimModuleSyntax){H.assertIsDefined(t.name,`An ImportClause with a symbol should have a name`);let e=A.verbatimModuleSyntax&&$h(t)?G.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:o?G._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:G._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,n=Sp(t.kind===277&&t.propertyName||t.name);Lo(U(t,e,n),o?void 0:a,n)}o&&t.kind===272&&Zy(t,32)&&U(t,G.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Je);break;case 282:if(A.verbatimModuleSyntax||Yf(a)!==Yf(t)){let e=Sp(t.propertyName||t.name);Lo(o?U(t,G.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Je):U(t,G._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,e,Je),o?void 0:a,e);break}}if(A.verbatimModuleSyntax&&t.kind!==272&&!ng(t)&&e.getEmitModuleFormatOfFile(Yf(t))===1?U(t,Qa(t)):N===200&&t.kind!==272&&t.kind!==261&&e.getEmitModuleFormatOfFile(Yf(t))===1&&U(t,G.ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),A.verbatimModuleSyntax&&!hu(t)&&!(t.flags&33554432)&&i&128){let n=r.valueDeclaration,i=e.getRedirectFromOutput(Yf(n).resolvedPath)?.resolvedRef;n.flags&33554432&&(!i||!XS(i.commandLine.options))&&U(t,G.Cannot_access_ambient_const_enums_when_0_is_enabled,Je)}}if(HA(t)){let e=lq(n,t);ao(e)&&e.declarations&&so(t,e.declarations,e.escapedName)}}}function lq(e,t){if(!(e.flags&2097152)||ao(e)||!Qo(e))return e;let n=Is(e);if(n===Ft)return n;for(;e.flags&2097152;){let r=OL(e);if(r){if(r===n)break;if(r.declarations&&u(r.declarations))if(ao(r)){so(t,r.declarations,r.escapedName);break}else{if(e===n)break;e=r}}else break}return n}function uq(t){fG(t,t.name),cq(t),t.kind===277&&(sq(t.propertyName),wp(t.propertyName||t.name)&&WS(A)&&e.getEmitModuleFormatOfFile(Yf(t))<4&&XJ(t,131072))}function dq(e){let t=e.attributes;if(t){let n=Hx(!0);n!==zn&&ID(Zd(t),qj(n,32768),t);let r=AW(e),i=PW(t,r?$:void 0),a=e.attributes.token===118;if(r&&i)return;if(!oC(N))return $(t,a?G.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve:G.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_node20_nodenext_or_preserve);if(102<=N&&N<=199&&!a)return HY(t,G.Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert);if(e.moduleSpecifier&&os(e.moduleSpecifier)===1)return $(t,a?G.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:G.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(oM(e)||(MA(e)?e.importClause?.isTypeOnly:e.isTypeOnly))return $(t,a?G.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:G.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(i)return $(t,G.resolution_mode_can_only_be_set_for_type_only_imports)}}function fq(e){return pE(RH(e.value))}function pq(t){if(!vq(t,ng(t)?G.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:G.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!$J(t)&&t.modifiers&&HY(t,G.An_import_declaration_cannot_have_modifiers),oq(t)){let n,r=t.importClause;r&&!tX(r)?(r.name&&uq(r),r.namedBindings&&(r.namedBindings.kind===275?(uq(r.namedBindings),e.getEmitModuleFormatOfFile(Yf(t))<4&&WS(A)&&XJ(t,65536)):(n=$s(t,t.moduleSpecifier),n&&d(r.namedBindings.elements,uq))),!r.isTypeOnly&&101<=N&&N<=199&&cs(t.moduleSpecifier,n)&&!mq(t)&&U(t.moduleSpecifier,G.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,Pi[N])):Te&&!r&&$s(t,t.moduleSpecifier)}dq(t)}}function mq(e){return!!e.attributes&&e.attributes.elements.some(e=>gv(e.name)===`type`&&vt(e.value,uf)?.text===`json`)}function hq(e){if(!vq(e,ng(e)?G.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:G.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&($J(e),A.erasableSyntaxOnly&&!(e.flags&33554432)&&U(e,G.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled),$h(e)||oq(e)))if(uq(e),wF(e,6),e.moduleReference.kind!==284){let t=Is(wc(e));if(t!==Ft){let n=Rs(t);if(n&111551){let t=Nb(e.moduleReference);Js(t,112575).flags&1920||U(t,G.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,lm(t))}n&788968&&bK(e.name,G.Import_name_cannot_be_0)}e.isTypeOnly&&$(e,G.An_import_alias_cannot_use_import_type)}else 5<=N&&N<=99&&!e.isTypeOnly&&!(e.flags&33554432)&&$(e,G.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 gq(t){if(!vq(t,ng(t)?G.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:G.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!$J(t)&&Aee(t)&&HY(t,G.An_export_declaration_cannot_have_modifiers),_q(t),!t.moduleSpecifier||oq(t))if(t.exportClause&&!BA(t.exportClause)){d(t.exportClause.elements,yq);let e=t.parent.kind===269&&zp(t.parent.parent),n=!e&&t.parent.kind===269&&!t.moduleSpecifier&&t.flags&33554432;t.parent.kind!==308&&!e&&!n&&U(t,G.Export_declarations_are_not_permitted_in_a_namespace)}else{let n=$s(t,t.moduleSpecifier);n&&fc(n)?U(t.moduleSpecifier,G.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Hl(n)):t.exportClause&&(cq(t.exportClause),sq(t.exportClause.name)),e.getEmitModuleFormatOfFile(Yf(t))<4&&(t.exportClause?WS(A)&&XJ(t,65536):XJ(t,32768))}dq(t)}}function _q(e){return e.isTypeOnly&&e.exportClause?.kind===280?nX(e.exportClause):!1}function vq(e,t){let n=e.parent.kind===308||e.parent.kind===269||e.parent.kind===268;return n||HY(e,t),!n}function yq(t){cq(t);let n=t.parent.parent.moduleSpecifier!==void 0;if(sq(t.propertyName,n),sq(t.name),YS(A)&&wu(t.propertyName||t.name,!0),n)WS(A)&&e.getEmitModuleFormatOfFile(Yf(t))<4&&wp(t.propertyName||t.name)&&XJ(t,131072);else{let e=t.propertyName||t.name;if(e.kind===11)return;let n=rt(e,e.escapedText,2998271,void 0,!0);n&&(n===He||n===L||n.declarations&&km(Iu(n.declarations[0])))?U(e,G.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Gc(e)):wF(t,7)}}function Rre(t){if(vq(t,t.isExportEquals?G.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:G.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;A.erasableSyntaxOnly&&t.isExportEquals&&!(t.flags&33554432)&&U(t,G.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);let n=t.parent.kind===308?t.parent:t.parent.parent;if(n.kind===268&&!zp(n)){t.isExportEquals?U(t,G.An_export_assignment_cannot_be_used_in_a_namespace):U(t,G.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!$J(t)&&Xy(t)&&HY(t,G.An_export_assignment_cannot_have_modifiers);let r=Ly(t);r&&ID(RH(t.expression),DE(r),t.expression);let i=!t.isExportEquals&&!(t.flags&33554432)&&A.verbatimModuleSyntax&&e.getEmitModuleFormatOfFile(Yf(t))===1;if(t.expression.kind===80){let e=t.expression,n=Rc(Js(e,-1,!0,!0,t));if(n){wF(t,3);let r=Vs(n,111551);if(Rs(n)&111551?(RH(e),!i&&!(t.flags&33554432)&&A.verbatimModuleSyntax&&r&&U(e,t.isExportEquals?G.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:G.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Gc(e))):!i&&!(t.flags&33554432)&&A.verbatimModuleSyntax&&U(e,t.isExportEquals?G.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:G.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Gc(e)),!i&&!(t.flags&33554432)&&US(A)&&!(n.flags&111551)){let i=Rs(n,!1,!0);n.flags&2097152&&i&788968&&!(i&111551)&&(!r||Yf(r)!==Yf(t))?U(e,t.isExportEquals?G._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:G._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Gc(e),Je):r&&Yf(r)!==Yf(t)&&Lo(U(e,t.isExportEquals?G._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:G._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,Gc(e),Je),r,Gc(e))}}else RH(e);YS(A)&&wu(e,!0)}else RH(t.expression);i&&U(t,Qa(t)),bq(n),t.flags&33554432&&!Mb(t.expression)&&$(t.expression,G.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),t.isExportEquals&&(N>=5&&N!==200&&(t.flags&33554432&&e.getImpliedNodeFormatForEmit(Yf(t))===99||!(t.flags&33554432)&&e.getImpliedNodeFormatForEmit(Yf(t))!==1)?$(t,G.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):N===4&&!(t.flags&33554432)&&$(t,G.Export_assignment_is_not_supported_when_module_flag_is_system))}function zre(e){return Mf(e.exports,(e,t)=>t!==`export=`)}function bq(e){let t=wc(e),n=wo(t);if(!n.exportsChecked){let e=t.exports.get(`export=`);if(e&&zre(t)){let t=Qo(e)||e.valueDeclaration;t&&!mu(t)&&!ng(t)&&U(t,G.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let r=bc(t);r&&r.forEach(({declarations:e,flags:t},n)=>{if(n===`__export`||t&1920)return;let r=T(e,_n(Mne,yn(wA)));if(!(t&524288&&r<=2)&&r>1&&!xq(e))for(let t of e)Fne(t)&&Ea.add(mm(t,G.Cannot_redeclare_exported_variable_0,Wc(n)))}),n.exportsChecked=!0}}function xq(e){return e&&e.length>1&&e.every(e=>ng(e)&&Zx(e)&&(Cg(e.expression)||Tg(e.expression)))}function Sq(e){if(e){let t=w;w=e,h=0,Cq(e),w=t}}function Cq(e){if(DJ(e)&8388608)return;l_(e)&&d(e.jsDoc,({comment:t,tags:n})=>{wq(t),d(n,t=>{wq(t.comment),ng(e)&&Sq(t)})});let t=e.kind;if(r)switch(t){case 268:case 264:case 265:case 263:r.throwIfCancellationRequested()}switch(t>=244&&t<=260&&c_(e)&&e.flowNode&&!QP(e.flowNode)&&to(A.allowUnreachableCode===!1,e,G.Unreachable_code_detected),t){case 169:return mre(e);case 170:return dU(e);case 173:return vU(e);case 172:return yre(e);case 186:case 185:case 180:case 181:case 182:return pU(e);case 175:case 174:return yU(e);case 176:return bre(e);case 177:return xU(e);case 178:case 179:return wU(e);case 184:return MU(e);case 183:return gre(e);case 187:return FU(e);case 188:return IU(e);case 189:return LU(e);case 190:return RU(e);case 193:case 194:return zU(e);case 197:case 191:case 192:return Sq(e.type);case 198:return wre(e);case 199:return Tre(e);case 195:return Ere(e);case 196:return Dre(e);case 204:return GU(e);case 206:return KU(e);case 203:return qU(e);case 329:return IW(e);case 330:return FW(e);case 347:case 339:case 341:return CW(e);case 346:return wW(e);case 345:return TW(e);case 325:case 326:case 327:return DW(e);case 342:return OW(e);case 349:return kW(e);case 318:jW(e);case 316:case 315:case 313:case 314:case 323:Tq(e),pP(e,Sq);return;case 319:Eq(e);return;case 310:return Sq(e.type);case 334:case 336:case 335:return LW(e);case 351:return EW(e);case 344:return MW(e);case 352:return NW(e);case 200:return xre(e);case 201:return Sre(e);case 263:return SW(e);case 242:case 269:return tG(e);case 244:return xG(e);case 245:return SG(e);case 246:return Are(e);case 247:return EG(e);case 248:return DG(e);case 249:return jG(e);case 250:return NG(e);case 251:return MG(e);case 252:case 253:return sK(e);case 254:return uK(e);case 255:return fK(e);case 256:return pK(e);case 257:return mK(e);case 258:return hK(e);case 259:return gK(e);case 261:return vG(e);case 209:return yG(e);case 264:return Nre(e);case 265:return Lre(e);case 266:return GK(e);case 267:return QK(e);case 307:return eq(e);case 268:return rq(e);case 273:return pq(e);case 272:return hq(e);case 279:return gq(e);case 278:return Rre(e);case 243:case 260:ZY(e);return;case 283:return TU(e)}}function wq(e){mt(e)&&d(e,e=>{df(e)&&Sq(e)})}function Tq(e){if(!ng(e))if(Oj(e)||Dj(e)){let t=is(Oj(e)?54:58),n=e.postfix?G._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:G._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=e.type,i=DE(r);$(e,n,t,Yl(Dj(e)&&!(i===V||i===bn)?AC(I([i,Xt],e.postfix?void 0:tn)):i))}else $(e,G.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Eq(e){Tq(e),Sq(e.type);let{parent:t}=e;if(FO(t)&&Aj(t.parent)){ze(t.parent.parameters)!==t&&U(e,G.A_rest_parameter_must_be_last_in_a_parameter_list);return}bj(t)||U(e,G.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let n=e.parent.parent;if(!Yj(n)){U(e,G.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let r=m_(n);if(!r)return;let i=__(n);(!i||ze(i.parameters).symbol!==r)&&U(e,G.A_rest_parameter_must_be_last_in_a_parameter_list)}function Dq(e){let t=DE(e.type),{parent:n}=e,r=e.parent.parent;if(bj(e.parent)&&Yj(r)){let e=__(r),n=zj(r.parent.parent);if(e||n){let i=Re(n?r.parent.parent.typeExpression.parameters:e.parameters),a=m_(r);if(!i||a&&i.symbol===a&&pf(i))return PS(t)}}return FO(n)&&Aj(n.parent)?PS(t):vd(t)}function Oq(e){let t=To(Yf(e));t.flags&1?H.assert(!t.deferredNodes,`A type-checked file should have no deferred nodes.`):(t.deferredNodes||=new Set,t.deferredNodes.add(e))}function kq(e){let t=To(e);t.deferredNodes&&t.deferredNodes.forEach(Aq),t.deferredNodes=void 0}function Aq(e){var t,n;(t=Ar)==null||t.push(Ar.Phase.Check,`checkDeferredNode`,{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});let r=w;switch(w=e,h=0,e.kind){case 214:case 215:case 216:case 171:case 287:cz(e);break;case 219:case 220:case 175:case 174:XV(e);break;case 178:case 179:wU(e);break;case 232:AK(e);break;case 169:hre(e);break;case 286:one(e);break;case 285:cne(e);break;case 217:case 235:case 218:KB(e);break;case 223:cU(e.expression);break;case 227:Vb(e)&&cz(e);break}w=r,(n=Ar)==null||n.pop()}function Bre(e,t){var n,r;(n=Ar)==null||n.push(Ar.Phase.Check,t?`checkSourceFileNodes`:`checkSourceFile`,{path:e.path},!0);let i=t?`beforeCheckNodes`:`beforeCheck`,a=t?`afterCheckNodes`:`afterCheck`;yr(i),t?Vre(e,t):Nq(e),yr(a),br(`Check`,i,a),(r=Ar)==null||r.pop()}function jq(e,t){if(t)return!1;switch(e){case 0:return!!A.noUnusedLocals;case 1:return!!A.noUnusedParameters;default:return H.assertNever(e)}}function Mq(e){return Oi.get(e.path)||c}function Nq(t){let r=To(t);if(!(r.flags&1)){if(Aw(t,A,e))return;XY(t),O(_a),O(va),O(ya),O(ba),O(xa),r.flags&8388608&&(_a=r.potentialThisCollisions,va=r.potentialNewTargetCollisions,ya=r.potentialWeakMapSetCollisions,ba=r.potentialReflectCollisions,xa=r.potentialUnusedRenamedBindingElementsInTypes),d(t.statements,Sq),Sq(t.endOfFileToken),kq(t),Am(t)&&BW(t),n(()=>{!t.isDeclarationFile&&(A.noUnusedLocals||A.noUnusedParameters)&&VW(Mq(t),(e,t,n)=>{!qf(e)&&jq(t,!!(e.flags&33554432))&&Ea.add(n)}),t.isDeclarationFile||QW()}),Am(t)&&bq(t),_a.length&&(d(_a,iG),O(_a)),va.length&&(d(va,aG),O(va)),ya.length&&(d(ya,cG),O(ya)),ba.length&&(d(ba,uG),O(ba)),r.flags|=1}}function Vre(t,n){let r=To(t);if(!(r.flags&1)){if(Aw(t,A,e))return;XY(t),O(_a),O(va),O(ya),O(ba),O(xa),d(n,Sq),kq(t),(r.potentialThisCollisions||=[]).push(..._a),(r.potentialNewTargetCollisions||=[]).push(...va),(r.potentialWeakMapSetCollisions||=[]).push(...ya),(r.potentialReflectCollisions||=[]).push(...ba),(r.potentialUnusedRenamedBindingElementsInTypes||=[]).push(...xa),r.flags|=8388608;for(let e of n){let t=To(e);t.flags|=8388608}}}function Pq(e,t,n){try{return r=t,Lq(e,n)}finally{r=void 0}}function Fq(){for(let e of t)e();t=[]}function Iq(e,t){Fq();let r=n;n=e=>e(),Bre(e,t),n=r}function Lq(t,n){if(t){Fq();let e=Ea.getGlobalDiagnostics(),r=e.length;Iq(t,n);let i=Ea.getDiagnostics(t.fileName);if(n)return i;let a=Ea.getGlobalDiagnostics();return a===e?r===0&&a.length>0?de(a,i):i:de(Ce(e,a,TS),i)}return d(e.getSourceFiles(),e=>Iq(e)),Ea.getDiagnostics()}function Hre(){return Fq(),Ea.getGlobalDiagnostics()}function Rq(e,t){if(e.flags&67108864)return[];let n=Cf(),r=!1;return i(),n.delete(`this`),dy(n);function i(){for(;e;){switch(Nd(e)&&e.locals&&!km(e)&&o(e.locals,t),e.kind){case 308:if(!yP(e))break;case 268:s(wc(e).exports,t&2623475);break;case 267:o(wc(e).exports,t&8);break;case 232:e.name&&a(e.symbol,t);case 264:case 265:r||o(Wm(wc(e)),t&788968);break;case 219:e.name&&a(e.symbol,t);break}dh(e)&&a(Ke,t),r=$y(e),e=e.parent}o(Ve,t)}function a(e,t){if(Px(e)&t){let t=e.escapedName;n.has(t)||n.set(t,e)}}function o(e,t){t&&e.forEach(e=>{a(e,t)})}function s(e,t){t&&e.forEach(e=>{!xf(e,282)&&!xf(e,281)&&e.escapedName!==`default`&&a(e,t)})}}function zq(e){return e.kind===80&&fT(e.parent)&&el(e.parent)===e}function Bq(e){for(;e.parent.kind===167;)e=e.parent;return e.parent.kind===184}function Vq(e){for(;e.parent.kind===212;)e=e.parent;return e.parent.kind===234}function Hq(e,t){let n,r=Sh(e);for(;r&&!(n=t(r));)r=Sh(r);return n}function Uq(e){return!!K(e,e=>HO(e)&&ip(e.body)||RO(e)?!0:zu(e)||Nu(e)?`quit`:!1)}function Wq(e,t){return!!Hq(e,e=>e===t)}function Gq(e){for(;e.parent.kind===167;)e=e.parent;if(e.parent.kind===272)return e.parent.moduleReference===e?e.parent:void 0;if(e.parent.kind===278)return e.parent.expression===e?e.parent:void 0}function Kq(e){return Gq(e)!==void 0}function Ure(e){switch(Eg(e.parent.parent)){case 1:case 3:return Tc(e.parent);case 5:if(Ck(e.parent)&&eS(e.parent)===e)return;case 4:case 2:return wc(e.parent.parent)}}function qq(e){let t=e.parent;for(;MO(t);)e=t,t=t.parent;if(t&&t.kind===206&&t.qualifier===e)return t}function Jq(e){if(e.expression.kind===110){let t=Eh(e,!1,!1);if(ju(t)){let e=aI(t);if(e){let t=sI(e,UI(e,void 0));return t&&!Ku(t)}}}}function Yq(e){if(R_(e))return Tc(e.parent);if(ng(e)&&e.parent.kind===212&&e.parent===e.parent.parent.left&&!vO(e)&&!Sj(e)&&!Jq(e.parent)){let t=Ure(e);if(t)return t}if(e.parent.kind===278&&Mb(e)){let t=Js(e,2998271,!0);if(t&&t!==Ft)return t}else if(Ou(e)&&Kq(e)){let t=Q_(e,272);return H.assert(t!==void 0),Hs(e,!0)}if(Ou(e)){let t=qq(e);if(t){DE(t);let n=To(e).resolvedSymbol;return n===Ft?void 0:n}}for(;Bb(e);)e=e.parent;if(Vq(e)){let t=0;e.parent.kind===234?(t=eh(e)?788968:111551,jb(e.parent)&&(t|=111551)):t=1920,t|=2097152;let n=Mb(e)?Js(e,t,!0):void 0;if(n)return n}if(e.parent.kind===342)return m_(e.parent);if(e.parent.kind===169&&e.parent.parent.kind===346){H.assert(!ng(e));let t=x_(e.parent);return t&&t.symbol}if(Kh(e)){if(rp(e))return;let t=K(e,vn(df,xj,Sj)),n=t?901119:111551;if(e.kind===80){if(Gh(e)&&ML(e)){let t=BL(e.parent);return t===Ft?void 0:t}let r=Js(e,n,!0,!0,__(e));if(!r&&t){let t=K(e,vn(zu,wA));if(t)return Zq(e,!0,wc(t))}if(r&&t){let t=y_(e);if(t&&_j(t)&&t===r.valueDeclaration)return Js(e,n,!0,!0,Yf(t))||r}return r}else if(vO(e))return wR(e);else if(e.kind===212||e.kind===167){let n=To(e);return n.resolvedSymbol?n.resolvedSymbol:(e.kind===212?(_R(e,0),n.resolvedSymbol||=Xq(RH(e.expression),$C(e.name))):yR(e,0),!n.resolvedSymbol&&t&&MO(e)?Zq(e):n.resolvedSymbol)}else if(Sj(e))return Zq(e)}else if(Ou(e)&&Bq(e)){let t=e.parent.kind===184?788968:1920,n=Js(e,t,!0,!0);return n&&n!==Ft?n:sx(e)}if(e.parent.kind===183)return Js(e,1,!0)}function Xq(e,t){let n=sy(e,t);if(n.length&&e.members){let t=_b(u_(e).members);if(n===ty(e))return t;if(t){let r=wo(t),i=k(M(n,e=>e.declaration),mB).join(`,`);if(r.filteredIndexSymbolCache||=new Map,r.filteredIndexSymbolCache.has(i))return r.filteredIndexSymbolCache.get(i);{let t=lo(131072,`__index`);return t.declarations=M(n,e=>e.declaration),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:Qq(t.declarations[0].parent),r.filteredIndexSymbolCache.set(i,t),t}}}}function Zq(e,t,n){if(Ou(e)){let r=901119,i=Js(e,r,t,!0,__(e));if(!i&&Y(e)&&n&&(i=Cc(Eo(yc(n),e.escapedText,r))),i)return i}let r=Y(e)?n:Zq(e.left,t,n),i=Y(e)?e.escapedText:e.right.escapedText;if(r){let e=r.flags&111551&&Kv(Jf(r),`prototype`);return Kv(e?Jf(e):Kp(r),i)}}function Qq(e,t){if(vj(e))return yP(e)?Cc(e.symbol):void 0;let{parent:n}=e,r=n.parent;if(!(e.flags&67108864)){if(Ine(e)){let t=wc(n);return fu(e.parent)&&e.parent.propertyName===e?OL(t):t}else if(B_(e))return wc(n.parent);if(e.kind===80){if(Kq(e))return Yq(e);if(n.kind===209&&r.kind===207&&e===n.propertyName){let t=Kv(nJ(r),e.escapedText);if(t)return t}else if(Yk(n)&&n.name===e)return n.keywordToken===105&&Gc(e)===`target`?ZB(n).symbol:n.keywordToken===102&&Gc(e)===`meta`?Bx().members.get(`meta`):void 0}switch(e.kind){case 80:case 81:case 212:case 167:if(!Py(e))return Yq(e);case 110:let i=Eh(e,!1,!1);if(ju(i)){let e=by(i);if(e.thisParameter)return e.thisParameter}if(qh(e))return cU(e).symbol;case 198:return CE(e).symbol;case 108:return cU(e).symbol;case 137:let a=e.parent;return a&&a.kind===177?a.parent.symbol:void 0;case 11:case 15:if(Xh(e.parent.parent)&&Zh(e.parent.parent)===e||(e.parent.kind===273||e.parent.kind===279)&&e.parent.moduleSpecifier===e||ng(e)&&oM(e.parent)&&e.parent.moduleSpecifier===e||ng(e)&&sg(e.parent,!1)||Bm(e.parent)||mk(e.parent)&&Hm(e.parent.parent)&&e.parent.parent.argument===e.parent)return $s(e,e,t);if(Tk(n)&&Dg(n)&&n.arguments[1]===e)return wc(n);case 9:let o=wk(n)?n.argumentExpression===e?aU(n.expression):void 0:mk(n)&&fk(r)?DE(r.objectType):void 0;return o&&Kv(o,Uc(e.text));case 90:case 100:case 39:case 86:return Tc(e.parent);case 206:return Hm(e)?Qq(e.argument.literal,t):void 0;case 95:return UA(e.parent)?H.checkDefined(e.parent.symbol):void 0;case 102:if(Yk(e.parent)&&e.parent.name.escapedText===`defer`)return;case 105:return Yk(e.parent)?XB(e.parent).symbol:void 0;case 104:if(Rk(e.parent)){let t=aU(e.parent.right);return mH(t)?.symbol??t.symbol}return;case 237:return cU(e).symbol;case 296:if(Gh(e)&&ML(e)){let t=BL(e.parent);return t===Ft?void 0:t}default:return}}}function $q(e){if(Y(e)&&Ck(e.parent)&&e.parent.name===e){let t=$C(e),n=aU(e.parent.expression);return re(n.flags&1048576?n.types:[n],e=>E(ty(e),e=>Qv(t,e.keyType)))}}function eJ(e){if(e&&e.kind===305)return Js(e.name,2208703,!0)}function tJ(e){if(KA(e)){let t=e.propertyName||e.name;return e.parent.parent.moduleSpecifier?xs(e.parent.parent,e):t.kind===11?void 0:Js(t,2998271,!0)}else return Js(e,2998271,!0)}function nJ(e){if(vj(e)&&!yP(e)||e.flags&67108864)return Gt;let t=Ob(e),n=t&&Mp(wc(t.class));if(eh(e)){let t=DE(e);return n?Km(t,n.thisType):t}if(Kh(e))return aJ(e);if(n&&!t.isImplements){let e=Pe(bp(n));return e?Km(e,n.thisType):Gt}if(fT(e))return Kp(wc(e));if(zq(e)){let t=Qq(e);return t?Kp(t):Gt}if(bk(e))return xd(e,!0,0)||Gt;if(Ld(e)){let t=wc(e);return t?Jf(t):Gt}if(Ine(e)){let t=Qq(e);return t?Jf(t):Gt}if(Xu(e))return xd(e.parent,!0,0)||Gt;if(Kq(e)){let t=Qq(e);if(t){let e=Kp(t);return Yu(e)?Jf(t):e}}return Yk(e.parent)&&e.parent.keywordToken===e.kind?XB(e.parent):LA(e)?Hx(!1):Gt}function rJ(e){if(H.assert(e.kind===211||e.kind===210),e.parent.kind===251)return xH(e,PG(e.parent)||Gt);if(e.parent.kind===227)return xH(e,aU(e.parent.right)||Gt);if(e.parent.kind===304){let t=yt(e.parent.parent,Sk);return yH(t,rJ(t)||Gt,Op(t.properties,e.parent))}let t=yt(e.parent,xk),n=rJ(t)||Gt,r=FG(65,n,Xt,e.parent)||Gt;return bH(t,n,t.elements.indexOf(e),r)}function iJ(e){let t=rJ(yt(e.parent.parent,Zu));return t&&Kv(t,e.escapedText)}function aJ(e){return Rb(e)&&(e=e.parent),pE(aU(e))}function oJ(e){let t=Tc(e.parent);return $y(e)?Jf(t):Kp(t)}function sJ(e){let t=e.name;switch(t.kind){case 80:return hE(Gc(t));case 9:case 11:return hE(t.text);case 168:let e=TL(t);return uH(e,12288)?e:rn;default:return H.fail(`Unsupported property name.`)}}function cJ(e){e=Fv(e);let t=Cf(S_(e)),n=Jv(e,0).length?Tr:Jv(e,1).length?Er:void 0;return n&&d(S_(n),e=>{t.has(e.escapedName)||t.set(e.escapedName,e)}),sl(t)}function lJ(e){return Jv(e,0).length!==0||Jv(e,1).length!==0}function uJ(e){let t=Wre(e);return t?re(t,uJ):[e]}function Wre(e){if(jx(e)&6)return M(wo(e).containingType.types,t=>Kv(t,e.escapedName));if(e.flags&33554432){let{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:xn(dJ(e))}}function dJ(e){let t,n=e;for(;n=wo(n).target;)t=n;return t}function Gre(e){if(yu(e))return!1;let t=Hc(e,Y);if(!t)return!1;let n=t.parent;return n?!((Ck(n)||mj(n))&&n.name===t)&&RJ(t)===Ke:!1}function fJ(e){return jd(e.parent)&&e===e.parent.name}function Kre(e,t){let n=Hc(e,Y);if(n){let e=RJ(n,fJ(n));if(e){if(e.flags&1048576){let n=Cc(e.exportSymbol);if(!t&&n.flags&944&&!(n.flags&3))return;e=n}let r=Ec(e);if(r){if(r.flags&512&&r.valueDeclaration?.kind===308){let e=r.valueDeclaration;return e===Yf(n)?e:void 0}return K(n.parent,e=>jd(e)&&wc(e)===r)}}}}function pJ(e){let t=TD(e);if(t)return t;let n=Hc(e,Y);if(n){let e=zJ(n);if(Ps(e,111551)&&!Vs(e,111551))return Qo(e)}}function mJ(e){return e.valueDeclaration&&bk(e.valueDeclaration)&&Mc(e.valueDeclaration).parent.kind===300}function hJ(e){if(e.flags&418&&e.valueDeclaration&&!vj(e.valueDeclaration)){let t=wo(e);if(t.isDeclarationWithCollidingName===void 0){let n=cm(e.valueDeclaration);if(Qf(n)||mJ(e))if(rt(n.parent,e.escapedName,111551,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(OJ(e.valueDeclaration,16384)){let r=OJ(e.valueDeclaration,32768),i=bd(n,!1),a=n.kind===242&&bd(n.parent,!1);t.isDeclarationWithCollidingName=!lee(n)&&(!r||!i&&!a)}else t.isDeclarationWithCollidingName=!1}return t.isDeclarationWithCollidingName}return!1}function qre(e){if(!yu(e)){let t=Hc(e,Y);if(t){let e=RJ(t);if(e&&hJ(e))return e.valueDeclaration}}}function Jre(e){let t=Hc(e,Ld);if(t){let e=wc(t);if(e)return hJ(e)}return!1}function gJ(e){switch(H.assert(Ye),e.kind){case 272:return vJ(wc(e));case 274:case 275:case 277:case 282:let t=wc(e);return!!t&&vJ(t,!0);case 279:let n=e.exportClause;return!!n&&(BA(n)||F(n.elements,gJ));case 278:return e.expression&&e.expression.kind===80?vJ(wc(e),!0):!0}return!1}function _J(e){let t=Hc(e,jA);return t===void 0||t.parent.kind!==308||!$h(t)?!1:vJ(wc(t))&&t.moduleReference&&!rp(t.moduleReference)}function vJ(e,t){if(!e)return!1;let n=Yf(e.valueDeclaration);ic(n&&wc(n));let r=Rc(Is(e));return r===Ft?!t||!Vs(e):!!(Rs(e,t,!0)&111551)&&(XS(A)||!yJ(r))}function yJ(e){return pH(e)||!!e.constEnumOnlyModule}function bJ(e,t){if(H.assert(Ye),$o(e)){let t=wc(e);if((t&&wo(t))?.referenced)return!0;let n=wo(t).aliasTarget;if(n&&ub(e)&32&&Rs(n)&111551&&(XS(A)||!yJ(n)))return!0}return t?!!pP(e,e=>bJ(e,t)):!1}function xJ(e){if(ip(e.body)){if(ef(e)||$d(e))return!1;let t=Ey(wc(e));return t.length>1||t.length===1&&t[0].declaration!==e}return!1}function Yre(e){let t=KJ(e);if(!t)return!1;let n=DE(t);return Yu(n)||iO(n)}function SJ(e,t){return(CJ(e,t)||wJ(e))&&!Yre(e)}function CJ(e,t){return!fe||my(e)||Yj(e)||!e.initializer?!1:Qy(e,31)?!!t&&Nu(t):!0}function wJ(e){return fe&&my(e)&&(Yj(e)||!e.initializer)&&Qy(e,31)}function TJ(e){let t=Hc(e,e=>SA(e)||bA(e));if(!t)return!1;let n;if(bA(t)){if(t.type||!ng(t)&&!pX(t))return!1;let e=gg(t);if(!e||!Md(e))return!1;n=wc(e)}else n=wc(t);return!n||!(n.flags&16|3)?!1:!!Mf(yc(n),e=>e.flags&111551&&jT(e.valueDeclaration))}function EJ(e){let t=Hc(e,SA);if(!t)return c;let n=wc(t);return n&&S_(Jf(n))||c}function DJ(e){let t=e.id||0;return t<0||t>=ca.length?0:ca[t]?.flags||0}function OJ(e,t){return kJ(e,t),!!(DJ(e)&t)}function kJ(e,t){if(!A.noCheck&&Nw(Yf(e),A)||To(e).calculatedFlags&t)return;switch(t){case 16:case 32:return a(e);case 128:case 256:case 2097152:return i(e);case 512:case 8192:case 65536:case 262144:return s(e);case 536870912:return l(e);case 4096:case 32768:case 16384:return d(e);default:return H.assertNever(t,`Unhandled node check flag calculation: ${H.formatNodeCheckFlags(t)}`)}function n(e,t){let n=t(e,e.parent);if(n!==`skip`)return n||mP(e,t)}function r(e){let n=To(e);if(n.calculatedFlags&t)return`skip`;n.calculatedFlags|=2097536,a(e)}function i(e){n(e,r)}function a(e){let t=To(e);t.calculatedFlags|=48,e.kind===108&&iI(e)}function o(e){let n=To(e);if(n.calculatedFlags&t)return`skip`;n.calculatedFlags|=336384,l(e)}function s(e){n(e,o)}function c(e){return Kh(e)||hj(e.parent)&&(e.parent.objectAssignmentInitializer??e.parent.name)===e}function l(e){let t=To(e);if(t.calculatedFlags|=536870912,Y(e)&&(t.calculatedFlags|=49152,c(e)&&!(Ck(e.parent)&&e.parent.name===e))){let t=DN(e);t&&t!==Ft&&BF(e,t)}}function u(e){let n=To(e);if(n.calculatedFlags&t)return`skip`;n.calculatedFlags|=53248,f(e)}function d(e){n(cm(R_(e)?e.parent:e),u)}function f(e){l(e),NO(e)&&TL(e),vO(e)&&Ru(e.parent)&&bU(e.parent)}}function AJ(e){return KK(e.parent),To(e).enumMemberValue??LT(void 0)}function jJ(e){switch(e.kind){case 307:case 212:case 213:return!0}return!1}function MJ(e){if(e.kind===307)return AJ(e).value;To(e).resolvedSymbol||RH(e);let t=To(e).resolvedSymbol||(Mb(e)?Js(e,111551,!0):void 0);if(t&&t.flags&8){let e=t.valueDeclaration;if(Mm(e.parent))return AJ(e).value}}function NJ(e){return!!(e.flags&524288)&&Jv(e,0).length>0}function Xre(e,t){let n=Hc(e,Ou);if(!n||t&&(t=Hc(t),!t))return 0;let r=!1;MO(n)&&(r=!!(Js(Nb(n),111551,!0,!0,t)?.declarations)?.every(hu));let i=Js(n,111551,!0,!0,t),a=i&&i.flags&2097152?Is(i):i;r||=!!(i&&Vs(i,111551));let o=Js(n,788968,!0,!0,t),s=o&&o.flags&2097152?Is(o):o;if(i||(r||=!!(o&&Vs(o,788968))),a&&a===s){let e=$x(!1);if(e&&a===e)return 9;let t=Jf(a);if(t&&fp(t))return r?10:1}if(!s)return r?11:0;let c=Kp(s);return Yu(c)?r?11:0:c.flags&3?11:uH(c,245760)?2:uH(c,528)?6:uH(c,296)?3:uH(c,2112)?4:uH(c,402653316)?5:Ej(c)?7:uH(c,12288)?8:NJ(c)?10:hA(c)?7:11}function Zre(e,t,n,r,i){let a=Hc(e,WT);if(!a)return J.createToken(133);let o=wc(a);return je.serializeTypeForDeclaration(a,o,t,n|1024,r,i)}function PJ(e){e=Hc(e,Vl);let t=e.kind===179?178:179,n=xf(wc(e),t);return{firstAccessor:n&&n.pos{switch(e.kind){case 261:case 170:case 209:case 173:case 304:case 305:case 307:case 211:case 263:case 219:case 220:case 264:case 232:case 267:case 175:case 178:case 179:case 268:return!0}return!1})}}}function Qre(e){return Nm(e)||bA(e)&&pX(e)?mE(Jf(wc(e))):!1}function HJ(e,t,n){let r=e.flags&1056?je.symbolToExpression(e.symbol,111551,t,void 0,void 0,n):e===un?J.createTrue():e===cn&&J.createFalse();if(r)return r;let i=e.value;return typeof i==`object`?J.createBigIntLiteral(i):typeof i==`string`?J.createStringLiteral(i):i<0?J.createPrefixUnaryExpression(41,J.createNumericLiteral(-i)):J.createNumericLiteral(i)}function UJ(e,t){return HJ(Jf(wc(e)),e,t)}function WJ(e){return e?(Va(e),Yf(e).localJsxFactory||Aa):Aa}function GJ(e){if(e){let t=Yf(e);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;let e=t.pragmas.get(`jsxfrag`),n=mt(e)?e[0]:e;if(n)return t.localJsxFragmentFactory=_P(n.arguments.factory,j),t.localJsxFragmentFactory}}if(A.jsxFragmentFactory)return _P(A.jsxFragmentFactory,j)}function KJ(e){let t=Ly(e);if(t)return t;if(e.kind===170&&e.parent.kind===179){let t=PJ(e.parent).getAccessor;if(t)return zy(t)}}function qJ(){return{getReferencedExportContainer:Kre,getReferencedImportDeclaration:pJ,getReferencedDeclarationWithCollidingName:qre,isDeclarationWithCollidingName:Jre,isValueAliasDeclaration:e=>{let t=Hc(e);return t&&Ye?gJ(t):!0},hasGlobalName:LJ,isReferencedAliasDeclaration:(e,t)=>{let n=Hc(e);return n&&Ye?bJ(n,t):!0},hasNodeCheckFlag:(e,t)=>{let n=Hc(e);return n?OJ(n,t):!1},isTopLevelValueImportEqualsWithEntityName:_J,isDeclarationVisible:xu,isImplementationOfOverload:xJ,requiresAddingImplicitUndefined:SJ,isExpandoFunctionDeclaration:TJ,getPropertiesOfContainerFunction:EJ,createTypeOfDeclaration:Zre,createReturnTypeOfSignatureDeclaration:FJ,createTypeOfExpression:IJ,createLiteralConstValue:UJ,isSymbolAccessible:El,isEntityNameVisible:Bl,getConstantValue:e=>{let t=Hc(e,jJ);return t?MJ(t):void 0},getEnumMemberValue:e=>{let t=Hc(e,_j);return t?AJ(t):void 0},collectLinkedAliases:wu,markLinkedReferences:e=>{let t=Hc(e);return t&&wF(t,0)},getReferencedValueDeclaration:BJ,getReferencedValueDeclarations:VJ,getTypeReferenceSerializationKind:Xre,isOptionalParameter:my,isArgumentsLocalBinding:Gre,getExternalModuleFileFromDeclaration:e=>{let t=Hc(e,am);return t&&JJ(t)},isLiteralConstDeclaration:Qre,isLateBound:e=>{let t=Hc(e,Ld),n=t&&wc(t);return!!(n&&jx(n)&4096)},getJsxFactoryEntity:WJ,getJsxFragmentFactoryEntity:GJ,isBindingCapturedByNode:(e,t)=>{let n=Hc(e),r=Hc(t);return!!n&&!!r&&(bA(r)||bk(r))&&KF(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{let i=Hc(e);H.assert(i&&i.kind===308,`Non-sourcefile node passed into getDeclarationsForSourceFile`);let a=wc(e);return a?(ic(a),a.exports?je.symbolTableToDeclarationStatements(a.exports,e,t,n,r):[]):e.locals?je.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:e,isDefinitelyReferenceToGlobalSymbolObject:Ra,createLateBoundIndexSignatures:(e,t,n,r,i)=>{let a=e.symbol,o=ty(Jf(a)),s=gb(a),c=s&&Cb(s,$e(Wm(a).values())),l;for(let e of[o,c])if(u(e)){l||=[];for(let a of e){if(a.declaration||a===cr)continue;if(a.components&&v(a.components,e=>!!(e.name&&NO(e.name)&&Mb(e.name.expression)&&t&&Bl(e.name.expression,t,!1)?.accessibility===0))){let s=E(a.components,e=>!Dm(e));l.push(...k(s,s=>{d(s.name.expression);let c=e===o?[J.createModifier(126)]:void 0;return J.createPropertyDeclaration(I(c,a.isReadonly?J.createModifier(148):void 0),s.name,(LO(s)||RO(s)||zO(s)||BO(s)||ef(s)||$d(s))&&s.questionToken?J.createToken(58):void 0,je.typeToTypeNode(Jf(s.symbol),t,n,r,i),void 0)}));continue}let s=je.indexInfoToIndexSignatureDeclaration(a,t,n,r,i);s&&e===o&&(s.modifiers||=J.createNodeArray()).unshift(J.createModifier(126)),s&&l.push(s)}}return l;function d(e){if(!i.trackSymbol)return;let n=Nb(e),r=rt(n,n.escapedText,1160127,void 0,!0);r&&i.trackSymbol(r,t,111551)}},symbolToDeclarations:(e,t,n,r,i,a)=>je.symbolToDeclarations(e,t,n,r,i,a)};function e(e){let t=Yf(e);if(!t.symbol)return!1;let n=JJ(e);if(!n||n===t)return!1;let r=bc(t.symbol);for(let e of $e(r.values()))if(e.mergeId){let t=Cc(e);if(t.declarations){for(let e of t.declarations)if(Yf(e)===n)return!0}}return!1}}function JJ(e){let t=e.kind===268?vt(e.name,tO):Yg(e),n=ec(t,t,void 0);if(n)return xf(n,308)}function YJ(){for(let t of e.getSourceFiles())gz(t,A);hr=new Map;let t;for(let n of e.getSourceFiles())if(!n.redirectInfo){if(!Am(n)){let e=n.locals.get(`globalThis`);if(e?.declarations)for(let t of e.declarations)Ea.add(mm(t,G.Declaration_name_conflicts_with_built_in_global_identifier_0,`globalThis`));xo(Ve,n.locals)}n.jsGlobalAugmentations&&xo(Ve,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(xr=de(xr,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||=[]).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports&&n.symbol.globalExports.forEach((e,t)=>{Ve.has(t)||Ve.set(t,e)})}if(t)for(let e of t)for(let t of e)Wp(t.parent)&&So(t);if(Co(),wo(He).type=Zt,wo(Ke).type=Nx(`IArguments`,0,!0),wo(Ft).type=Gt,wo(L).type=tl(16,L),Dr=Nx(`Array`,1,!0),Cr=Nx(`Object`,0,!0),wr=Nx(`Function`,0,!0),Tr=he&&Nx(`CallableFunction`,0,!0)||wr,Er=he&&Nx(`NewableFunction`,0,!0)||wr,kr=Nx(`String`,0,!0),jr=Nx(`Number`,0,!0),Mr=Nx(`Boolean`,0,!0),Nr=Nx(`RegExp`,0,!0),Fr=PS(Vt),Ir=PS(Ht),Ir===zn&&(Ir=pl(void 0,ie,c,c,c)),Or=gS(`ReadonlyArray`,1)||Dr,Lr=Or?NS(Or,[Vt]):Fr,Pr=gS(`ThisType`,1),t)for(let e of t)for(let t of e)Wp(t.parent)||So(t);hr.forEach(({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach(({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{let i=e?G.Cannot_redeclare_block_scoped_variable_0:G.Duplicate_identifier_0;for(let e of t)yo(e,i,r,n);for(let e of n)yo(e,i,r,t)});else{let r=$e(n.keys()).join(`, `);Ea.add(Dw(mm(e,G.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),mm(t,G.Conflicts_are_in_this_file))),Ea.add(Dw(mm(t,G.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),mm(e,G.Conflicts_are_in_this_file)))}}),hr=void 0}function XJ(e,t){if(A.importHelpers){let n=Yf(e);if(Yp(n,A)&&!(e.flags&33554432)){let r=QJ(n,e);if(r!==Ft){let n=wo(r);if(n.requestedExternalEmitHelpers??=0,(n.requestedExternalEmitHelpers&t)!==t){let i=t&~n.requestedExternalEmitHelpers;for(let t=1;t<=16777216;t<<=1)if(i&t)for(let n of ZJ(t)){let i=Fs(Eo(bc(r),Uc(n),111551));i?t&524288?F(Ey(i),e=>dV(e)>3)||U(e,G.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,_f,n,4):t&1048576?F(Ey(i),e=>dV(e)>4)||U(e,G.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,_f,n,5):t&1024&&(F(Ey(i),e=>dV(e)>2)||U(e,G.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,_f,n,3)):U(e,G.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,_f,n)}}n.requestedExternalEmitHelpers|=t}}}}function ZJ(e){switch(e){case 1:return[`__extends`];case 2:return[`__assign`];case 4:return[`__rest`];case 8:return ce?[`__decorate`]:[`__esDecorate`,`__runInitializers`];case 16:return[`__metadata`];case 32:return[`__param`];case 64:return[`__awaiter`];case 128:return[`__generator`];case 256:return[`__values`];case 512:return[`__read`];case 1024:return[`__spreadArray`];case 2048:return[`__await`];case 4096:return[`__asyncGenerator`];case 8192:return[`__asyncDelegator`];case 16384:return[`__asyncValues`];case 32768:return[`__exportStar`];case 65536:return[`__importStar`];case 131072:return[`__importDefault`];case 262144:return[`__makeTemplateObject`];case 524288:return[`__classPrivateFieldGet`];case 1048576:return[`__classPrivateFieldSet`];case 2097152:return[`__classPrivateFieldIn`];case 4194304:return[`__setFunctionName`];case 8388608:return[`__propKey`];case 16777216:return[`__addDisposableResource`,`__disposeResources`];case 33554432:return[`__rewriteRelativeImportExtension`];default:return H.fail(`Unrecognized helper`)}}function QJ(e,t){let n=To(e);return n.externalHelpersModule||=nc(mX(e),_f,G.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||Ft,n.externalHelpersModule}function $J(t){let n=rY(t)||eY(t);if(n!==void 0)return n;if(FO(t)&&jy(t))return HY(t,G.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let r=nA(t)?t.declarationList.flags&7:0,i,a,o,s,c,l=0,u=!1,d=!1;for(let n of t.modifiers)if(IO(n)){if(!Rh(ce,t,t.parent,t.parent.parent))return t.kind===175&&!ip(t.body)?HY(t,G.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):HY(t,G.Decorators_are_not_valid_here);if(ce&&(t.kind===178||t.kind===179)){let e=PJ(t);if(ob(e.firstAccessor)&&t===e.secondAccessor)return HY(t,G.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(l&-34849)return $(n,G.Decorators_are_not_valid_here);if(d&&l&98303)return H.assertIsDefined(c),VY(Yf(n))?!1:(Dw(U(n,G.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),mm(c,G.Decorator_used_before_export_here)),!0);l|=32768,l&98303?l&32&&(u=!0):d=!0,c??=n}else{if(n.kind!==148){if(t.kind===172||t.kind===174)return $(n,G._0_modifier_cannot_appear_on_a_type_member,is(n.kind));if(t.kind===182&&(n.kind!==126||!zu(t.parent)))return $(n,G._0_modifier_cannot_appear_on_an_index_signature,is(n.kind))}if(n.kind!==103&&n.kind!==147&&n.kind!==87&&t.kind===169)return $(n,G._0_modifier_cannot_appear_on_a_type_parameter,is(n.kind));switch(n.kind){case 87:{if(t.kind!==267&&t.kind!==169)return $(t,G.A_class_member_cannot_have_the_0_keyword,is(87));let e=$j(t.parent)&&v_(t.parent)||t.parent;if(t.kind===169&&!(Nu(e)||zu(e)||XO(e)||ZO(e)||GO(e)||KO(e)||zO(e)))return $(n,G._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,is(n.kind));break}case 164:if(l&16)return $(n,G._0_modifier_already_seen,`override`);if(l&128)return $(n,G._0_modifier_cannot_be_used_with_1_modifier,`override`,`declare`);if(l&8)return $(n,G._0_modifier_must_precede_1_modifier,`override`,`readonly`);if(l&512)return $(n,G._0_modifier_must_precede_1_modifier,`override`,`accessor`);if(l&1024)return $(n,G._0_modifier_must_precede_1_modifier,`override`,`async`);l|=16,s=n;break;case 125:case 124:case 123:let d=uu(yb(n.kind));if(l&7)return $(n,G.Accessibility_modifier_already_seen);if(l&16)return $(n,G._0_modifier_must_precede_1_modifier,d,`override`);if(l&256)return $(n,G._0_modifier_must_precede_1_modifier,d,`static`);if(l&512)return $(n,G._0_modifier_must_precede_1_modifier,d,`accessor`);if(l&8)return $(n,G._0_modifier_must_precede_1_modifier,d,`readonly`);if(l&1024)return $(n,G._0_modifier_must_precede_1_modifier,d,`async`);if(t.parent.kind===269||t.parent.kind===308)return $(n,G._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(l&64)return n.kind===123?$(n,G._0_modifier_cannot_be_used_with_1_modifier,d,`abstract`):$(n,G._0_modifier_must_precede_1_modifier,d,`abstract`);if(Su(t))return $(n,G.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);l|=yb(n.kind);break;case 126:if(l&256)return $(n,G._0_modifier_already_seen,`static`);if(l&8)return $(n,G._0_modifier_must_precede_1_modifier,`static`,`readonly`);if(l&1024)return $(n,G._0_modifier_must_precede_1_modifier,`static`,`async`);if(l&512)return $(n,G._0_modifier_must_precede_1_modifier,`static`,`accessor`);if(t.parent.kind===269||t.parent.kind===308)return $(n,G._0_modifier_cannot_appear_on_a_module_or_namespace_element,`static`);if(t.kind===170)return $(n,G._0_modifier_cannot_appear_on_a_parameter,`static`);if(l&64)return $(n,G._0_modifier_cannot_be_used_with_1_modifier,`static`,`abstract`);if(l&16)return $(n,G._0_modifier_must_precede_1_modifier,`static`,`override`);l|=256,i=n;break;case 129:if(l&512)return $(n,G._0_modifier_already_seen,`accessor`);if(l&8)return $(n,G._0_modifier_cannot_be_used_with_1_modifier,`accessor`,`readonly`);if(l&128)return $(n,G._0_modifier_cannot_be_used_with_1_modifier,`accessor`,`declare`);if(t.kind!==173)return $(n,G.accessor_modifier_can_only_appear_on_a_property_declaration);l|=512;break;case 148:if(l&8)return $(n,G._0_modifier_already_seen,`readonly`);if(t.kind!==173&&t.kind!==172&&t.kind!==182&&t.kind!==170)return $(n,G.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(l&512)return $(n,G._0_modifier_cannot_be_used_with_1_modifier,`readonly`,`accessor`);l|=8;break;case 95:if(A.verbatimModuleSyntax&&!(t.flags&33554432)&&t.kind!==266&&t.kind!==265&&t.kind!==268&&t.parent.kind===308&&e.getEmitModuleFormatOfFile(Yf(t))===1)return $(n,G.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(l&32)return $(n,G._0_modifier_already_seen,`export`);if(l&128)return $(n,G._0_modifier_must_precede_1_modifier,`export`,`declare`);if(l&64)return $(n,G._0_modifier_must_precede_1_modifier,`export`,`abstract`);if(l&1024)return $(n,G._0_modifier_must_precede_1_modifier,`export`,`async`);if(zu(t.parent))return $(n,G._0_modifier_cannot_appear_on_class_elements_of_this_kind,`export`);if(t.kind===170)return $(n,G._0_modifier_cannot_appear_on_a_parameter,`export`);if(r===4)return $(n,G._0_modifier_cannot_appear_on_a_using_declaration,`export`);if(r===6)return $(n,G._0_modifier_cannot_appear_on_an_await_using_declaration,`export`);l|=32;break;case 90:let f=t.parent.kind===308?t.parent:t.parent.parent;if(f.kind===268&&!zp(f))return $(n,G.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(r===4)return $(n,G._0_modifier_cannot_appear_on_a_using_declaration,`default`);if(r===6)return $(n,G._0_modifier_cannot_appear_on_an_await_using_declaration,`default`);if(!(l&32))return $(n,G._0_modifier_must_precede_1_modifier,`export`,`default`);if(u)return $(c,G.Decorators_are_not_valid_here);l|=2048;break;case 138:if(l&128)return $(n,G._0_modifier_already_seen,`declare`);if(l&1024)return $(n,G._0_modifier_cannot_be_used_in_an_ambient_context,`async`);if(l&16)return $(n,G._0_modifier_cannot_be_used_in_an_ambient_context,`override`);if(zu(t.parent)&&!RO(t))return $(n,G._0_modifier_cannot_appear_on_class_elements_of_this_kind,`declare`);if(t.kind===170)return $(n,G._0_modifier_cannot_appear_on_a_parameter,`declare`);if(r===4)return $(n,G._0_modifier_cannot_appear_on_a_using_declaration,`declare`);if(r===6)return $(n,G._0_modifier_cannot_appear_on_an_await_using_declaration,`declare`);if(t.parent.flags&33554432&&t.parent.kind===269)return $(n,G.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Su(t))return $(n,G._0_modifier_cannot_be_used_with_a_private_identifier,`declare`);if(l&512)return $(n,G._0_modifier_cannot_be_used_with_1_modifier,`declare`,`accessor`);l|=128,a=n;break;case 128:if(l&64)return $(n,G._0_modifier_already_seen,`abstract`);if(t.kind!==264&&t.kind!==186){if(t.kind!==175&&t.kind!==173&&t.kind!==178&&t.kind!==179)return $(n,G.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(t.parent.kind===264&&Qy(t.parent,64)))return $(n,t.kind===173?G.Abstract_properties_can_only_appear_within_an_abstract_class:G.Abstract_methods_can_only_appear_within_an_abstract_class);if(l&256)return $(n,G._0_modifier_cannot_be_used_with_1_modifier,`static`,`abstract`);if(l&2)return $(n,G._0_modifier_cannot_be_used_with_1_modifier,`private`,`abstract`);if(l&1024&&o)return $(o,G._0_modifier_cannot_be_used_with_1_modifier,`async`,`abstract`);if(l&16)return $(n,G._0_modifier_must_precede_1_modifier,`abstract`,`override`);if(l&512)return $(n,G._0_modifier_must_precede_1_modifier,`abstract`,`accessor`)}if(Qc(t)&&t.name.kind===81)return $(n,G._0_modifier_cannot_be_used_with_a_private_identifier,`abstract`);l|=64;break;case 134:if(l&1024)return $(n,G._0_modifier_already_seen,`async`);if(l&128||t.parent.flags&33554432)return $(n,G._0_modifier_cannot_be_used_in_an_ambient_context,`async`);if(t.kind===170)return $(n,G._0_modifier_cannot_appear_on_a_parameter,`async`);if(l&64)return $(n,G._0_modifier_cannot_be_used_with_1_modifier,`async`,`abstract`);l|=1024,o=n;break;case 103:case 147:{let e=n.kind===103?8192:16384,r=n.kind===103?`in`:`out`,i=$j(t.parent)&&(v_(t.parent)||y(b_(t.parent)?.tags,eM))||t.parent;if(t.kind!==169||i&&!(wA(i)||zu(i)||TA(i)||eM(i)))return $(n,G._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,r);if(l&e)return $(n,G._0_modifier_already_seen,r);if(e&8192&&l&16384)return $(n,G._0_modifier_must_precede_1_modifier,`in`,`out`);l|=e;break}}}return t.kind===177?l&256?$(i,G._0_modifier_cannot_appear_on_a_constructor_declaration,`static`):l&16?$(s,G._0_modifier_cannot_appear_on_a_constructor_declaration,`override`):l&1024?$(o,G._0_modifier_cannot_appear_on_a_constructor_declaration,`async`):!1:(t.kind===273||t.kind===272)&&l&128?$(a,G.A_0_modifier_cannot_be_used_with_an_import_declaration,`declare`):t.kind===170&&l&31&&Xu(t.name)?$(t,G.A_parameter_property_may_not_be_declared_using_a_binding_pattern):t.kind===170&&l&31&&t.dotDotDotToken?$(t,G.A_parameter_property_cannot_be_declared_using_a_rest_parameter):l&1024?aY(t,o):!1}function eY(e){if(!e.modifiers)return!1;let t=nY(e);return t&&HY(t,G.Modifiers_cannot_appear_here)}function tY(e,t){let n=y(e.modifiers,Du);return n&&n.kind!==t?n:void 0}function nY(e){switch(e.kind){case 178:case 179:case 177:case 173:case 172:case 175:case 174:case 182:case 268:case 273:case 272:case 279:case 278:case 219:case 220:case 170:case 169:return;case 176:case 304:case 305:case 271:case 283:return y(e.modifiers,Du);default:if(e.parent.kind===269||e.parent.kind===308)return;switch(e.kind){case 263:return tY(e,134);case 264:case 186:return tY(e,128);case 232:case 265:case 266:return y(e.modifiers,Du);case 244:return e.declarationList.flags&4?tY(e,135):y(e.modifiers,Du);case 267:return tY(e,87);default:H.assertNever(e)}}}function rY(e){let t=iY(e);return t&&HY(t,G.Decorators_are_not_valid_here)}function iY(e){return sN(e)?y(e.modifiers,IO):void 0}function aY(e,t){switch(e.kind){case 175:case 263:case 219:case 220:return!1}return $(t,G._0_modifier_cannot_be_used_here,`async`)}function oY(e,t=G.Trailing_comma_not_allowed){return e&&e.hasTrailingComma?UY(e[0],e.end-1,1,t):!1}function sY(e,t){if(e&&e.length===0){let n=e.pos-1;return UY(t,n,Es(t.text,e.end)+1-n,G.Type_parameter_list_cannot_be_empty)}return!1}function $re(e){let t=!1,n=e.length;for(let r=0;r!!e.initializer||Xu(e.name)||pf(e))}function cY(e){if(j>=3){let t=e.body&&tA(e.body)&&NM(e.body.statements);if(t){let n=eie(e.parameters);if(u(n)){d(n,e=>{Dw(U(e,G.This_parameter_is_not_allowed_with_use_strict_directive),mm(t,G.use_strict_directive_used_here))});let e=n.map((e,t)=>t===0?mm(e,G.Non_simple_parameter_declared_here):mm(e,G.and_here));return Dw(U(t,G.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}function lY(e){let t=Yf(e);return $J(e)||sY(e.typeParameters,t)||$re(e.parameters)||dY(e,t)||Nu(e)&&cY(e)}function uY(e){let t=Yf(e);return yY(e)||sY(e.typeParameters,t)}function dY(e,t){if(!jk(e))return!1;e.typeParameters&&!(u(e.typeParameters)>1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&Ja(t.fileName,[`.mts`,`.cts`])&&$(e.typeParameters[0],G.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:n}=e;return gs(t,n.pos).line!==gs(t,n.end).line&&$(n,G.Line_terminator_not_permitted_before_arrow)}function fY(e){let t=e.parameters[0];if(e.parameters.length!==1)return $(t?t.name:e,G.An_index_signature_must_have_exactly_one_parameter);if(oY(e.parameters,G.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return $(t.dotDotDotToken,G.An_index_signature_cannot_have_a_rest_parameter);if(Xy(t))return $(t.name,G.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return $(t.questionToken,G.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return $(t.name,G.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return $(t.name,G.An_index_signature_parameter_must_have_a_type_annotation);let n=DE(t.type);return CP(n,e=>!!(e.flags&8576))||Lw(n)?$(t.name,G.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):wP(n,Db)?e.type?!1:$(e,G.An_index_signature_must_have_a_type_annotation):$(t.name,G.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function pY(e){return $J(e)||fY(e)}function mY(e,t){if(t&&t.length===0){let n=Yf(e),r=t.pos-1;return UY(n,r,Es(n.text,t.end)+1-r,G.Type_argument_list_cannot_be_empty)}return!1}function hY(e,t){return oY(t)||mY(e,t)}function gY(e){return e.questionDotToken||e.flags&64?$(e.template,G.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function _Y(e){let t=e.types;if(oY(t))return!0;if(t&&t.length===0){let n=is(e.token);return UY(e,t.pos,0,G._0_list_cannot_be_empty,n)}return F(t,vY)}function vY(e){return Gk(e)&&AO(e.expression)&&e.typeArguments?$(e,G.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):hY(e,e.typeArguments)}function yY(e){let t=!1,n=!1;if(!$J(e)&&e.heritageClauses)for(let r of e.heritageClauses){if(r.token===96){if(t)return HY(r,G.extends_clause_already_seen);if(n)return HY(r,G.extends_clause_must_precede_implements_clause);if(r.types.length>1)return HY(r.types[1],G.Classes_can_only_extend_a_single_class);t=!0}else{if(H.assert(r.token===119),n)return HY(r,G.implements_clause_already_seen);n=!0}_Y(r)}}function bY(e){let t=!1;if(e.heritageClauses)for(let n of e.heritageClauses){if(n.token===96){if(t)return HY(n,G.extends_clause_already_seen);t=!0}else return H.assert(n.token===119),HY(n,G.Interface_declaration_cannot_have_implements_clause);_Y(n)}return!1}function xY(e){if(e.kind!==168)return!1;let t=e;return t.expression.kind===227&&t.expression.operatorToken.kind===28?$(t.expression,G.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function SY(e){if(e.asteriskToken){if(H.assert(e.kind===263||e.kind===219||e.kind===175),e.flags&33554432)return $(e.asteriskToken,G.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return $(e.asteriskToken,G.An_overload_signature_cannot_be_declared_as_a_generator)}}function CY(e,t){return!!e&&$(e,t)}function wY(e,t){return!!e&&$(e,t)}function TY(e,t){let n=new Map;for(let r of e.properties){if(r.kind===306){if(t){let e=F_(r.expression);if(xk(e)||Sk(e))return $(r.expression,G.A_rest_element_cannot_contain_a_binding_pattern)}continue}let e=r.name;if(e.kind===168&&xY(e),r.kind===305&&!t&&r.objectAssignmentInitializer&&$(r.equalsToken,G.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.kind===81&&$(e,G.Private_identifiers_are_not_allowed_outside_class_bodies),VN(r)&&r.modifiers)for(let e of r.modifiers)Du(e)&&(e.kind!==134||r.kind!==175)&&$(e,G._0_modifier_cannot_be_used_here,Ep(e));else if(cN(r)&&r.modifiers)for(let e of r.modifiers)Du(e)&&$(e,G._0_modifier_cannot_be_used_here,Ep(e));let i;switch(r.kind){case 305:case 304:wY(r.exclamationToken,G.A_definite_assignment_assertion_is_not_permitted_in_this_context),CY(r.questionToken,G.An_object_member_cannot_be_declared_optional),e.kind===9&&QY(e),e.kind===10&&eo(!0,mm(e,G.A_bigint_literal_cannot_be_used_as_a_property_name)),i=4;break;case 175:i=8;break;case 178:i=1;break;case 179:i=2;break;default:H.assertNever(r,`Unexpected syntax kind:`+r.kind)}if(!t){let t=uX(e);if(t===void 0)continue;let r=n.get(t);if(!r)n.set(t,i);else if(i&8&&r&8)$(e,G.Duplicate_identifier_0,Ep(e));else if(i&4&&r&4)$(e,G.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Ep(e));else if(i&3&&r&3)if(r!==3&&i!==r)n.set(t,i|r);else return $(e,G.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return $(e,G.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function EY(e){DY(e.tagName),hY(e,e.typeArguments);let t=new Map;for(let n of e.attributes.properties){if(n.kind===294)continue;let{name:e,initializer:r}=n,i=CT(e);if(!t.get(i))t.set(i,!0);else return $(e,G.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r&&r.kind===295&&!r.expression)return $(r,G.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function DY(e){if(Ck(e)&&lj(e.expression))return $(e.expression,G.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(lj(e)&&mC(A)&&!$v(e.namespace.escapedText))return $(e,G.React_components_cannot_include_JSX_namespace_names)}function OY(e){if(e.expression&&IM(e.expression))return $(e.expression,G.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function kY(e){if(ZY(e))return!0;if(e.kind===251&&e.awaitModifier&&!(e.flags&65536)){let t=Yf(e);if(Oh(e)){if(!VY(t))switch(Yp(t,A)||Ea.add(mm(e.awaitModifier,G.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),N){case 100:case 101:case 102:case 199:if(t.impliedNodeFormat===1){Ea.add(mm(e.awaitModifier,G.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 200:case 4:if(j>=4)break;default:Ea.add(mm(e.awaitModifier,G.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!VY(t)){let t=mm(e.awaitModifier,G.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=bh(e);return n&&n.kind!==177&&(H.assert((cv(n)&2)==0,`Enclosing function should never be an async function.`),Dw(t,mm(n,G.Did_you_mean_to_mark_this_function_as_async))),Ea.add(t),!0}}if(uA(e)&&!(e.flags&65536)&&Y(e.initializer)&&e.initializer.escapedText===`async`)return $(e.initializer,G.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(e.initializer.kind===262){let t=e.initializer;if(!RY(t)){let n=t.declarations;if(!n.length)return!1;if(n.length>1){let n=e.kind===250?G.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:G.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return HY(t.declarations[1],n)}let r=n[0];if(r.initializer){let t=e.kind===250?G.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:G.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return $(r.name,t)}if(r.type)return $(r,e.kind===250?G.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:G.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function AY(e){if(!(e.flags&33554432)&&e.parent.kind!==188&&e.parent.kind!==265){if(j<2&&vO(e.name))return $(e.name,G.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(e.body===void 0&&!Qy(e,64))return UY(e,e.end-1,1,G._0_expected,`{`)}if(e.body){if(Qy(e,64))return $(e,G.An_abstract_accessor_cannot_have_an_implementation);if(e.parent.kind===188||e.parent.kind===265)return $(e.body,G.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return $(e.name,G.An_accessor_cannot_have_type_parameters);if(!jY(e))return $(e.name,e.kind===178?G.A_get_accessor_cannot_have_parameters:G.A_set_accessor_must_have_exactly_one_parameter);if(e.kind===179){if(e.type)return $(e.name,G.A_set_accessor_cannot_have_a_return_type_annotation);let t=H.checkDefined(Oy(e),`Return value does not match parameter count assertion.`);if(t.dotDotDotToken)return $(t.dotDotDotToken,G.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return $(t.questionToken,G.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return $(e.name,G.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function jY(e){return MY(e)||e.parameters.length===(e.kind===178?0:1)}function MY(e){if(e.parameters.length===(e.kind===178?1:2))return Ay(e)}function nie(e){if(e.operator===158){if(e.type.kind!==155)return $(e.type,G._0_expected,is(155));let t=j_(e.parent);if(ng(t)&&bj(t)){let e=y_(t);e&&(t=o_(e)||e)}switch(t.kind){case 261:let n=t;if(n.name.kind!==80)return $(e,G.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!sh(n))return $(e,G.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(n.parent.flags&2))return $(t.name,G.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 173:if(!$y(t)||!ab(t))return $(t.name,G.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 172:if(!Qy(t,8))return $(t.name,G.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return $(e,G.unique_symbol_types_are_not_allowed_here)}}else if(e.operator===148&&e.type.kind!==189&&e.type.kind!==190)return HY(e,G.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,is(155))}function NY(e,t){if(Im(e)&&!Mb(wk(e)?F_(e.argumentExpression):e.expression))return $(e,t)}function PY(e){if(lY(e))return!0;if(e.kind===175){if(e.parent.kind===211){if(e.modifiers&&!(e.modifiers.length===1&&Ie(e.modifiers).kind===134))return HY(e,G.Modifiers_cannot_appear_here);if(CY(e.questionToken,G.An_object_member_cannot_be_declared_optional)||wY(e.exclamationToken,G.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(e.body===void 0)return UY(e,e.end-1,1,G._0_expected,`{`)}if(SY(e))return!0}if(zu(e.parent)){if(j<2&&vO(e.name))return $(e.name,G.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(e.flags&33554432)return NY(e.name,G.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(e.kind===175&&!e.body)return NY(e.name,G.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(e.parent.kind===265)return NY(e.name,G.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);else if(e.parent.kind===188)return NY(e.name,G.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 rie(e){let t=e;for(;t;){if(Mu(t))return $(e,G.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 257:if(e.label&&t.label.escapedText===e.label.escapedText)return e.kind===252&&!bd(t.statement,!0)?$(e,G.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 256:if(e.kind===253&&!e.label)return!1;break;default:if(bd(t,!1)&&!e.label)return!1;break}t=t.parent}return e.label?$(e,e.kind===253?G.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:G.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):$(e,e.kind===253?G.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:G.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}function FY(e){if(e.dotDotDotToken){let t=e.parent.elements;if(e!==ze(t))return $(e,G.A_rest_element_must_be_last_in_a_destructuring_pattern);if(oY(t,G.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return $(e.name,G.A_rest_element_cannot_have_a_property_name)}if(e.dotDotDotToken&&e.initializer)return UY(e,e.initializer.pos-1,1,G.A_rest_element_cannot_have_an_initializer)}function IY(e){return uv(e)||e.kind===225&&e.operator===41&&e.operand.kind===9}function iie(e){return e.kind===10||e.kind===225&&e.operator===41&&e.operand.kind===10}function aie(e){if((Ck(e)||wk(e)&&IY(e.argumentExpression))&&Mb(e.expression))return!!(RH(e).flags&1056)}function oie(e){let t=e.initializer;if(t){let n=!(IY(t)||aie(t)||t.kind===112||t.kind===97||iie(t));if((Nm(e)||bA(e)&&pX(e))&&!e.type){if(n)return $(t,G.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return $(t,G.Initializers_are_not_allowed_in_ambient_contexts)}}function sie(t){let n=fX(t),r=n&7;if(Xu(t.name))switch(r){case 6:return $(t,G._0_declarations_may_not_have_binding_patterns,`await using`);case 4:return $(t,G._0_declarations_may_not_have_binding_patterns,`using`)}if(t.parent.parent.kind!==250&&t.parent.parent.kind!==251){if(n&33554432)oie(t);else if(!t.initializer){if(Xu(t.name)&&!Xu(t.parent))return $(t,G.A_destructuring_declaration_must_have_an_initializer);switch(r){case 6:return $(t,G._0_declarations_must_be_initialized,`await using`);case 4:return $(t,G._0_declarations_must_be_initialized,`using`);case 2:return $(t,G._0_declarations_must_be_initialized,`const`)}}}if(t.exclamationToken&&(t.parent.parent.kind!==244||!t.type||t.initializer||n&33554432)){let e=t.initializer?G.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?G.A_definite_assignment_assertion_is_not_permitted_in_this_context:G.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return $(t.exclamationToken,e)}return e.getEmitModuleFormatOfFile(Yf(t))<4&&!(t.parent.parent.flags&33554432)&&Qy(t.parent.parent,32)&&cie(t.name),!!r&&LY(t.name)}function cie(e){if(e.kind===80){if(Gc(e)===`__esModule`)return WY(`noEmit`,e,G.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let t=e.elements;for(let e of t)if(!Wk(e))return cie(e.name)}return!1}function LY(e){if(e.kind===80){if(e.escapedText===`let`)return $(e,G.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let t=e.elements;for(let e of t)Wk(e)||LY(e.name)}return!1}function RY(e){let t=e.declarations;if(oY(e.declarations))return!0;if(!e.declarations.length)return UY(e,t.pos,t.end-t.pos,G.Variable_declaration_list_cannot_be_empty);let n=e.flags&7;if(n===4||n===6){if(lA(e.parent))return $(e,n===4?G.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:G.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration);if(e.flags&33554432)return $(e,n===4?G.using_declarations_are_not_allowed_in_ambient_contexts:G.await_using_declarations_are_not_allowed_in_ambient_contexts);if(n===6)return oH(e)}return!1}function zY(e){switch(e.kind){case 246:case 247:case 248:case 255:case 249:case 250:case 251:return!1;case 257:return zY(e.parent)}return!0}function BY(e){if(!zY(e.parent)){let t=fX(e.declarationList)&7;if(t){let n=t===1?`let`:t===2?`const`:t===4?`using`:t===6?`await using`:H.fail(`Unknown BlockScope flag`);U(e,G._0_declarations_can_only_be_declared_inside_a_block,n)}}}function lie(e){let t=e.name.escapedText;switch(e.keywordToken){case 105:if(t!==`target`)return $(e.name,G._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Wc(e.name.escapedText),is(e.keywordToken),`target`);break;case 102:if(t!==`meta`){let n=Tk(e.parent)&&e.parent.expression===e;if(t===`defer`){if(!n)return UY(e,e.end,0,G._0_expected,`(`)}else return n?$(e.name,G._0_is_not_a_valid_meta_property_for_keyword_import_Did_you_mean_meta_or_defer,Wc(e.name.escapedText)):$(e.name,G._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Wc(e.name.escapedText),is(e.keywordToken),`meta`)}break}}function VY(e){return e.parseDiagnostics.length>0}function HY(e,t,...n){let r=Yf(e);if(!VY(r)){let i=Tm(r,e.pos);return Ea.add(vS(r,i.start,i.length,t,...n)),!0}return!1}function UY(e,t,n,r,...i){let a=Yf(e);return VY(a)?!1:(Ea.add(vS(a,t,n,r,...i)),!0)}function WY(e,t,n,...r){return VY(Yf(t))?!1:(Xa(e,t,n,...r),!0)}function $(e,t,...n){return VY(Yf(e))?!1:(U(e,t,...n),!0)}function GY(e){let t=ng(e)?By(e):void 0,n=e.typeParameters||t&&Pe(t);if(n){let t=n.pos===n.end?n.pos:Es(Yf(e).text,n.pos);return UY(e,t,n.end-t,G.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function KY(e){let t=e.type||zy(e);if(t)return $(t,G.Type_annotation_cannot_appear_on_a_constructor_declaration)}function qY(e){if(NO(e.name)&&Rk(e.name.expression)&&e.name.expression.operatorToken.kind===103)return $(e.parent.members[0],G.A_mapped_type_may_not_declare_properties_or_methods);if(zu(e.parent)){if(tO(e.name)&&e.name.text===`constructor`)return $(e.name,G.Classes_may_not_have_a_field_named_constructor);if(NY(e.name,G.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(j<2&&vO(e.name))return $(e.name,G.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(j<2&&Vu(e)&&!(e.flags&33554432))return $(e.name,G.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Vu(e)&&CY(e.questionToken,G.An_accessor_property_cannot_be_declared_optional))return!0}else if(e.parent.kind===265){if(NY(e.name,G.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(H.assertNode(e,LO),e.initializer)return $(e.initializer,G.An_interface_property_cannot_have_an_initializer)}else if($O(e.parent)){if(NY(e.name,G.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(H.assertNode(e,LO),e.initializer)return $(e.initializer,G.A_type_literal_property_cannot_have_an_initializer)}if(e.flags&33554432&&oie(e),RO(e)&&e.exclamationToken&&(!zu(e.parent)||!e.type||e.initializer||e.flags&33554432||$y(e)||nb(e))){let t=e.initializer?G.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?G.A_definite_assignment_assertion_is_not_permitted_in_this_context:G.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return $(e.exclamationToken,t)}}function JY(e){return e.kind===265||e.kind===266||e.kind===273||e.kind===272||e.kind===279||e.kind===278||e.kind===271||Qy(e,2208)?!1:HY(e,G.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function YY(e){for(let t of e.statements)if((Ld(t)||t.kind===244)&&JY(t))return!0;return!1}function XY(e){return!!(e.flags&33554432)&&YY(e)}function ZY(e){if(e.flags&33554432){if(!To(e).hasReportedStatementInAmbientContext&&(ju(e.parent)||Bu(e.parent)))return To(e).hasReportedStatementInAmbientContext=HY(e,G.An_implementation_cannot_be_declared_in_ambient_contexts);if(e.parent.kind===242||e.parent.kind===269||e.parent.kind===308){let t=To(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=HY(e,G.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function QY(e){let t=Ep(e).includes(`.`),n=e.numericLiteralFlags&16;t||n||+e.text<=2**53-1||eo(!1,mm(e,G.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function $Y(e){return!!(!(mk(e.parent)||Ik(e.parent)&&mk(e.parent.parent))&&!(e.flags&33554432)&&j<7&&$(e,G.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function uie(e,t,...n){let r=Yf(e);if(!VY(r)){let i=Tm(r,e.pos);return Ea.add(vS(r,ac(i),0,t,...n)),!0}return!1}function eX(){return vr||(vr=[],Ve.forEach((e,t)=>{aB.test(t)&&vr.push(e)})),vr}function tX(e){if(e.phaseModifier===156){if(e.name&&e.namedBindings)return $(e,G.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(e.namedBindings?.kind===276)return nX(e.namedBindings)}else if(e.phaseModifier===166){if(e.name)return $(e,G.Default_imports_are_not_allowed_in_a_deferred_import);if(e.namedBindings?.kind===276)return $(e,G.Named_imports_are_not_allowed_in_a_deferred_import);if(N!==99&&N!==200)return $(e,G.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}return!1}function nX(e){return!!d(e.elements,e=>{if(e.isTypeOnly)return HY(e,e.kind===277?G.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:G.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function rX(e){if(A.verbatimModuleSyntax&&N===1)return $(e,Qa(e));if(e.expression.kind===237){if(N!==99&&N!==200)return $(e,G.Deferred_imports_are_only_supported_when_the_module_flag_is_set_to_esnext_or_preserve)}else if(N===5)return $(e,G.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_node20_or_nodenext);if(e.typeArguments)return $(e,G.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let t=e.arguments;if(!(100<=N&&N<=199)&&N!==99&&N!==200&&(oY(t),t.length>1)){let e=t[1];return $(e,G.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_node20_nodenext_or_preserve)}if(t.length===0||t.length>2)return $(e,G.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let n=y(t,Hk);return n?$(n,G.Argument_of_dynamic_import_cannot_be_spread_element):!1}function iX(e,t){let n=Wx(e);if(n&20&&t.flags&1048576)return y(t.types,t=>{if(t.flags&524288){let r=n&Wx(t);if(r&4)return e.target===t.target;if(r&16)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1})}function aX(e,t){if(Wx(e)&128&&CP(t,kA))return y(t.types,e=>!kA(e))}function oX(e,t){let n=0;if(Jv(e,n).length>0||(n=1,Jv(e,n).length>0))return y(t.types,e=>Jv(e,n).length>0)}function sX(e,t){let n;if(!(e.flags&406978556)){let r=0;for(let i of t.types)if(!(i.flags&406978556)){let t=HC([iw(e),iw(i)]);if(t.flags&4194304)return i;if(YA(t)||t.flags&1048576){let e=t.flags&1048576?T(t.types,YA):1;e>=r&&(n=i,r=e)}}}return n}function cX(e){if(lH(e,67108864)){let t=TP(e,e=>!(e.flags&402784252));if(!(t.flags&131072))return t}return e}function lX(e,t,n){if(t.flags&1048576&&e.flags&2621440){let r=BN(t,e);if(r)return r;let i=S_(e);if(i){let e=LN(i,t);if(e){let r=SO(t,k(e,e=>[()=>Jf(e),e.escapedName]),n);if(r!==t)return r}}}}function uX(e){return mv(e)||(NO(e)?MN(aU(e.expression)):void 0)}function dX(e){return tt===e?nt:(tt=e,nt=Pc(e),nt)}function fX(e){return Ze===e?et:(Ze=e,et=Ic(e),et)}function pX(e){let t=fX(e)&7;return t===2||t===4||t===6}function die(e,t){let n=A.importHelpers?1:0,r=e?.imports[n];return r&&H.assert(kv(r)&&r.text===t,`Expected sourceFile.imports[${n}] to be the synthesized JSX runtime import`),r}function mX(e){H.assert(A.importHelpers,`Expected importHelpers to be enabled`);let t=e.imports[0];return H.assert(t&&kv(t)&&t.text===`tslib`,`Expected sourceFile.imports[0] to be the synthesized tslib import`),t}}function vB(e){return!Bu(e)}function Fne(e){return e.kind!==263&&e.kind!==175||!!e.body}function Ine(e){switch(e.parent.kind){case 277:case 282:return Y(e)||e.kind===11;default:return R_(e)}}var yB;(e=>{e.JSX=`JSX`,e.IntrinsicElements=`IntrinsicElements`,e.ElementClass=`ElementClass`,e.ElementAttributesPropertyNameContainer=`ElementAttributesProperty`,e.ElementChildrenAttributeNameContainer=`ElementChildrenAttribute`,e.Element=`Element`,e.ElementType=`ElementType`,e.IntrinsicAttributes=`IntrinsicAttributes`,e.IntrinsicClassAttributes=`IntrinsicClassAttributes`,e.LibraryManagedAttributes=`LibraryManagedAttributes`})(yB||={});var bB;(e=>{e.Fragment=`Fragment`})(bB||={});function Lne(e){switch(e){case 0:return`yieldType`;case 1:return`returnType`;case 2:return`nextType`}}function xB(e){return!!(e.flags&1)}function Rne(e){return!!(e.flags&2)}function zne(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>``,getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:ut(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>e.getPackageJsonInfoCache?.call(e),useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames(),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0,getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n),getGlobalTypingsCacheLocation:ut(e,e.getGlobalTypingsCacheLocation)}}var SB=class e{constructor(t,n,r){for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;n instanceof e;)n=n.inner;this.inner=n,this.moduleResolverHost=r,this.context=t,this.canTrackSymbol=!!this.inner?.trackSymbol}trackSymbol(e,t,n){var r;if(this.inner?.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,n))return this.onDiagnosticReported(),!0;e.flags&262144||((r=this.context).trackedSymbols??(r.trackedSymbols=[])).push([e,t,n])}return!1}reportInaccessibleThisError(){this.inner?.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){this.inner?.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){this.inner?.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){this.inner?.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){this.inner?.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){this.inner?.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(e,t,n){this.inner?.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){this.inner?.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(e){this.inner?.reportInferenceFallback&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(e))}pushErrorFallbackNode(e){var t;return((t=this.inner)?.pushErrorFallbackNode)?.call(t,e)}popErrorFallbackNode(){var e;return((e=this.inner)?.popErrorFallbackNode)?.call(e)}};function Q(e,t,n,r){if(e===void 0)return e;let i=t(e),a;if(i!==void 0)return a=mt(i)?(r||IB)(i):i,H.assertNode(a,n),a}function CB(e,t,n,r,i){if(e===void 0)return e;let a=e.length;(r===void 0||r<0)&&(r=0),(i===void 0||i>a-r)&&(i=a-r);let o,s=-1,c=-1;r>0||ia-r)&&(i=a-r),TB(e,t,n,r,i)}function TB(e,t,n,r,i){let a,o=e.length;(r>0||i=2&&(i=OB(i,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),i}function OB(e,t){let n;for(let r=0;r{let a=rs,addSource:te,setSourceContent:ne,addName:re,addMapping:A,appendSourceMap:j,toJSON:ce,toString:()=>JSON.stringify(ce())};function te(t){a();let n=Io(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0),i=l.get(n);return i===void 0&&(i=c.length,c.push(n),s.push(t),l.set(n,i)),o(),i}function ne(e,t){if(a(),t!==null){for(u||=[];u.lengtht||T===t&&E>n)}function A(e,t,n,r,i,s){H.assert(e>=S,`generatedLine cannot backtrack`),H.assert(t>=0,`generatedCharacter cannot be negative`),H.assert(n===void 0||n>=0,`sourceIndex cannot be negative`),H.assert(r===void 0||r>=0,`sourceLine cannot be negative`),H.assert(i===void 0||i>=0,`sourceCharacter cannot be negative`),a(),(ie(e,t)||ae(n,r,i))&&(oe(),S=e,C=t,k=!1,ee=!1,O=!0),n!==void 0&&r!==void 0&&i!==void 0&&(w=n,T=r,E=i,k=!0,s!==void 0&&(D=s,ee=!0)),o()}function j(e,t,n,r,i,s){H.assert(e>=S,`generatedLine cannot backtrack`),H.assert(t>=0,`generatedCharacter cannot be negative`),a();let c=[],l,u=WB(n.mappings);for(let a of u){if(s&&(a.generatedLine>s.line||a.generatedLine===s.line&&a.generatedCharacter>s.character))break;if(i&&(a.generatedLine=1024&&se()}function oe(){if(!(!O||!M())){if(a(),h0&&(m+=String.fromCharCode.apply(void 0,p),p.length=0)}function ce(){return oe(),se(),{version:3,file:t,sourceRoot:n,sources:c,names:d,mappings:m,sourcesContent:u}}function P(e){e<0?e=(-e<<1)+1:e<<=1;do{let t=e&31;e>>=5,e>0&&(t|=32),N(Une(t))}while(e>0)}}var RB=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,zB=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,BB=/^\s*(\/\/[@#] .*)?$/;function VB(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function HB(e){for(let t=e.getLineCount()-1;t>=0;t--){let n=e.getLineText(t),r=zB.exec(n);if(r)return r[1].trimEnd();if(!n.match(BB))break}}function Vne(e){return typeof e==`string`||e===null}function Hne(e){return typeof e==`object`&&!!e&&e.version===3&&typeof e.file==`string`&&typeof e.mappings==`string`&&mt(e.sources)&&v(e.sources,gt)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot==`string`)&&(e.sourcesContent===void 0||e.sourcesContent===null||mt(e.sourcesContent)&&v(e.sourcesContent,Vne))&&(e.names===void 0||e.names===null||mt(e.names)&&v(e.names,gt))}function UB(e){try{let t=JSON.parse(e);if(Hne(t))return t}catch{}}function WB(e){let t=!1,n=0,r=0,i=0,a=0,o=0,s=0,c=0,l;return{get pos(){return n},get error(){return l},get state(){return u(!0,!0)},next(){for(;!t&&n=e.length)return f(`Error in decoding base64VLQFormatDecode, past the mapping string`),-1;let a=Wne(e.charCodeAt(n));if(a===-1)return f(`Invalid character in VLQ`),-1;t=(a&32)!=0,i|=(a&31)<>=1,i=-i):i>>=1,i}}function GB(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 KB(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function Une(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:H.fail(`${e}: not a base64 value`)}function Wne(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 qB(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function JB(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function Gne(e,t){return H.assert(e.sourceIndex===t.sourceIndex),It(e.sourcePosition,t.sourcePosition)}function YB(e,t){return It(e.generatedPosition,t.generatedPosition)}function Kne(e){return e.sourcePosition}function XB(e){return e.generatedPosition}function ZB(e,t,n){let r=$a(n),i=t.sourceRoot?po(t.sourceRoot,r):r,a=po(t.file,r),o=e.getSourceFileLike(a),s=t.sources.map(e=>po(e,i)),l=new Map(s.map((t,n)=>[e.getCanonicalFileName(t),n])),u,d,f;return{getSourcePosition:v,getGeneratedPosition:_};function p(n){let r=o===void 0?-1:us(o,n.generatedLine,n.generatedCharacter,!0),i,a;if(KB(n)){let r=e.getSourceFileLike(s[n.sourceIndex]);i=t.sources[n.sourceIndex],a=r===void 0?-1:us(r,n.sourceLine,n.sourceCharacter,!0)}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function m(){if(u===void 0){let n=WB(t.mappings),r=$e(n,p);n.error===void 0?u=r:(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),u=c)}return u}function h(e){if(f===void 0){let e=[];for(let t of m()){if(!qB(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}f=e.map(e=>be(e,Gne,JB))}return f[e]}function g(){if(d===void 0){let e=[];for(let t of m())e.push(t);d=be(e,YB,JB)}return d}function _(t){let n=l.get(e.getCanonicalFileName(t.fileName));if(n===void 0)return t;let r=h(n);if(!F(r))return t;let i=L(r,t.pos,Kne,It);i<0&&(i=~i);let o=r[i];return o===void 0||o.sourceIndex!==n?t:{fileName:a,pos:o.generatedPosition}}function v(e){let t=g();if(!F(t))return e;let n=L(t,e.pos,XB,It);n<0&&(n=~n);let r=t[n];return r===void 0||!qB(r)?e:{fileName:s[r.sourceIndex],pos:r.sourcePosition}}}var QB={getSourcePosition:wt,getGeneratedPosition:wt};function $B(e){return e=Bc(e),e?mB(e):0}function eV(e){return!e||!VA(e)&&!GA(e)?!1:F(e.elements,tV)}function tV(e){return wp(e.propertyName||e.name)}function nV(e,t){return n;function n(e){return e.kind===308?t(e):r(e)}function r(n){return e.factory.createBundle(k(n.sourceFiles,t))}}function rV(e){return!!Xg(e)}function iV(e){if(Xg(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!VA(t))return!1;let n=0;for(let e of t.elements)tV(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&Zg(e)}function aV(e){return!iV(e)&&(Zg(e)||!!e.importClause&&VA(e.importClause.namedBindings)&&eV(e.importClause.namedBindings))}function oV(e,t){let n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],a=new uV,o=[],s=new Map,c=new Set,l,u=!1,d,f=!1,p=!1,m=!1;for(let n of t.statements)switch(n.kind){case 273:i.push(n),!p&&iV(n)&&(p=!0),!m&&aV(n)&&(m=!0);break;case 272:n.moduleReference.kind===284&&i.push(n);break;case 279:if(n.moduleSpecifier)if(!n.exportClause)i.push(n),f=!0;else if(i.push(n),GA(n.exportClause))g(n),m||=eV(n.exportClause);else{let e=n.exportClause.name,t=Sp(e);s.get(t)||(cV(o,$B(n),e),s.set(t,!0),l=I(l,e)),p=!0}else g(n);break;case 278:n.isExportEquals&&!d&&(d=n);break;case 244:if(Qy(n,32))for(let e of n.declarationList.declarations)l=sV(e,s,l,o);break;case 263:Qy(n,32)&&_(n,void 0,Qy(n,2048));break;case 264:if(Qy(n,32))if(Qy(n,2048))u||=(cV(o,$B(n),e.factory.getDeclarationName(n)),!0);else{let e=n.name;e&&!s.get(Gc(e))&&(cV(o,$B(n),e),s.set(Gc(e),!0),l=I(l,e))}break}let h=GM(e.factory,e.getEmitHelperFactory(),t,r,f,p,m);return h&&i.unshift(h),{externalImports:i,exportSpecifiers:a,exportEquals:d,hasExportStarsToExportValues:f,exportedBindings:o,exportedNames:l,exportedFunctions:c,externalHelpersImportDeclaration:h};function g(e){for(let t of yt(e.exportClause,GA).elements){let r=Sp(t.name);if(!s.get(r)){let i=t.propertyName||t.name;if(i.kind!==11){e.moduleSpecifier||a.add(i,t);let r=n.getReferencedImportDeclaration(i)||n.getReferencedValueDeclaration(i);if(r){if(r.kind===263){_(r,t.name,wp(t.name));continue}cV(o,$B(r),t.name)}}s.set(r,!0),l=I(l,t.name)}}}function _(t,n,r){if(c.add(Bc(t,SA)),r)u||=(cV(o,$B(t),n??e.factory.getDeclarationName(t)),!0);else{n??=t.name;let e=Sp(n);s.get(e)||(cV(o,$B(t),n),s.set(e,!0))}}}function sV(e,t,n,r){if(Xu(e.name))for(let i of e.name.elements)Wk(i)||(n=sV(i,t,n,r));else if(!yu(e.name)){let i=Gc(e.name);t.get(i)||(t.set(i,!0),n=I(n,e.name),AM(e.name)&&cV(r,$B(e),e.name))}return n}function cV(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}var lV=class e{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(e.toKey(t))}get(t){return this._map.get(e.toKey(t))}set(t,n){return this._map.set(e.toKey(t),n),this}delete(t){return this._map?.delete(e.toKey(t))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(bu(t)||yu(t)){let n=t.emitNode.autoGenerate;if((n.flags&7)==4){let r=AN(t),i=Bl(r)&&r!==t?e.toKey(r):`(generated@${mB(r)})`;return NN(!1,n.prefix,i,n.suffix,e.toKey)}else{let t=`(auto@${n.id})`;return NN(!1,n.prefix,t,n.suffix,e.toKey)}}return vO(t)?Gc(t).slice(1):Gc(t)}},uV=class extends lV{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){let n=this.get(e);n&&(sn(n,t),n.length||this.delete(e))}};function dV(e){return uf(e)||e.kind===9||$_(e.kind)||Y(e)}function fV(e){return!Y(e)&&dV(e)}function pV(e){return e>=65&&e<=79}function mV(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function hV(e){if(!iA(e))return;let t=F_(e.expression);return zm(t)?t:void 0}function gV(e,t,n){for(let r=t;rqne(e,t,n))}function yV(e){return xV(e)||VO(e)}function bV(e){return E(e.members,yV)}function qne(e,t,n){return RO(e)&&(!!e.initializer||!t)&&eb(e)===n}function xV(e){return RO(e)&&eb(e)}function SV(e){return e.kind===173&&e.initializer!==void 0}function CV(e){return!$y(e)&&(Uu(e)||Vu(e))&&vO(e.name)}function wV(e){let t;if(e){let n=e.parameters,r=n.length>0&&jy(n[0]),i=r?1:0,a=r?n.length-1:n.length;for(let e=0;ekV(e.privateEnv,t))}function MV(e){return!e.initializer&&Y(e.name)}function NV(e){return v(e,MV)}function PV(e,t){if(!e||!tO(e)||!Jg(e.text,t))return e;let n=pw(e.text,xU(e.text,t));return n===e.text?e:zE(X(J.createStringLiteral(n,e.singleQuote),e),e)}var FV=(e=>(e[e.All=0]=`All`,e[e.ObjectRest=1]=`ObjectRest`,e))(FV||{});function IV(e,t,n,r,i,a){let o=e,s;if(Ab(e))for(s=e.right;Wb(e.left)||Ub(e.left);)if(Ab(s))o=e=s,s=e.right;else return H.checkDefined(Q(s,t,q));let c,l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:u,emitBindingOrAssignment:d,createArrayBindingOrAssignmentPattern:e=>$ne(n.factory,e),createObjectBindingOrAssignmentPattern:e=>tre(n.factory,e),createArrayBindingOrAssignmentElement:YV,visitor:t};if(s&&(s=Q(s,t,q),H.assert(s),Y(s)&&LV(e,s.escapedText)||zV(e)?s=qV(l,s,!1,o):i?s=qV(l,s,!0,o):kv(e)&&(o=s)),HV(l,e,s,o,Ab(e)),s&&i){if(!F(c))return s;c.push(s)}return n.factory.inlineExpressions(c)||n.factory.createOmittedExpression();function u(e){c=I(c,e)}function d(e,r,i,o){H.assertNode(e,a?Y:q);let s=a?a(e,r,i):X(n.factory.createAssignment(H.checkDefined(Q(e,t,q)),r),i);s.original=o,u(s)}}function LV(e,t){let n=QM(e);return td(n)?RV(n,t):Y(n)?n.escapedText===t:!1}function RV(e,t){let n=rN(e);for(let e of n)if(LV(e,t))return!0;return!1}function zV(e){let t=tN(e);if(t&&NO(t)&&!su(t.expression))return!0;let n=QM(e);return!!n&&td(n)&&BV(n)}function BV(e){return!!d(rN(e),zV)}function VV(e,t,n,r,i,a=!1,o){let s,c=[],l=[],u={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:a,emitExpression:d,emitBindingOrAssignment:f,createArrayBindingOrAssignmentPattern:e=>Qne(n.factory,e),createObjectBindingOrAssignmentPattern:e=>ere(n.factory,e),createArrayBindingOrAssignmentElement:e=>JV(n.factory,e),visitor:t};if(bA(e)){let t=ZM(e);t&&(Y(t)&&LV(e,t.escapedText)||zV(e))&&(t=qV(u,H.checkDefined(Q(t,u.visitor,q)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(HV(u,e,i,e,o),s){let e=n.factory.createTempVariable(void 0);if(a){let t=n.factory.inlineExpressions(s);s=void 0,f(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);let t=ze(c);t.pendingExpressions=I(t.pendingExpressions,n.factory.createAssignment(e,t.value)),Ee(t.pendingExpressions,s),t.value=e}}for(let{pendingExpressions:e,name:t,value:r,location:i,original:a}of c){let o=n.factory.createVariableDeclaration(t,void 0,void 0,e?n.factory.inlineExpressions(I(e,r)):r);o.original=a,X(o,i),l.push(o)}return l;function d(e){s=I(s,e)}function f(e,t,r,i){H.assertNode(e,Au),s&&=(t=n.factory.inlineExpressions(I(s,t)),void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function HV(e,t,n,r,i){let a=QM(t);if(!i){let i=Q(ZM(t),e.visitor,q);i?n?(n=Zne(e,n,i,r),!fV(i)&&td(a)&&(n=qV(e,n,!0,r))):n=i:n||=e.context.factory.createVoidZero()}nd(a)?UV(e,t,a,n,r):id(a)?WV(e,t,a,n,r):e.emitBindingOrAssignment(a,n,r,t)}function UV(e,t,n,r,i){let a=rN(n),o=a.length;if(o!==1){let n=!$u(t)||o!==0;r=qV(e,r,n,i)}let s,c;for(let t=0;t=1&&!(l.transformFlags&98304)&&!(QM(l).transformFlags&98304)&&!NO(t))s=I(s,Q(l,e.visitor,ed));else{s&&=(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),void 0);let a=KV(e,r,t);NO(t)&&(c=I(c,a.argumentExpression)),HV(e,l,a,l)}}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}function WV(e,t,n,r,i){let a=rN(n),o=a.length;if(e.level<1&&e.downlevelIteration)r=qV(e,X(e.context.getEmitHelperFactory().createReadHelper(r,o>0&&$M(a[o-1])?void 0:o),i),!1,i);else if(o!==1&&(e.level<1||o===0)||v(a,Wk)){let n=!$u(t)||o!==0;r=qV(e,r,n,i)}let s,c;for(let t=0;t=1)if(n.transformFlags&65536||e.hasTransformedPriorElement&&!GV(n)){e.hasTransformedPriorElement=!0;let t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=I(c,[t,n]),s=I(s,e.createArrayBindingOrAssignmentElement(t))}else s=I(s,n);else if(Wk(n))continue;else $M(n)?t===o-1&&HV(e,n,e.context.factory.createArraySliceCall(r,t),n):HV(e,n,e.context.factory.createElementAccessExpression(r,t),n)}if(s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n),c)for(let[t,n]of c)HV(e,n,t,n)}function GV(e){let t=QM(e);if(!t||Wk(t))return!0;let n=tN(e);if(n&&!hv(n))return!1;let r=ZM(e);return r&&!fV(r)?!1:td(t)?v(rN(t),GV):Y(t)}function Zne(e,t,n,r){return t=qV(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,`undefined`),void 0,n,void 0,t)}function KV(e,t,n){let{factory:r}=e.context;if(NO(n)){let r=qV(e,H.checkDefined(Q(n.expression,e.visitor,q)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}else if(uv(n)||eO(n)){let i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}else{let r=e.context.factory.createIdentifier(Gc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function qV(e,t,n,r){if(Y(t)&&n)return t;{let n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(X(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function Qne(e,t){return H.assertEachNode(t,Qu),e.createArrayBindingPattern(t)}function $ne(e,t){return H.assertEachNode(t,ad),e.createArrayLiteralExpression(k(t,e.converters.convertToArrayAssignmentElement))}function ere(e,t){return H.assertEachNode(t,bk),e.createObjectBindingPattern(t)}function tre(e,t){return H.assertEachNode(t,rd),e.createObjectLiteralExpression(k(t,e.converters.convertToObjectAssignmentElement))}function JV(e,t){return e.createBindingElement(void 0,void 0,t)}function YV(e){return e}function nre(e,t,n=e.createThis()){let r=e.createAssignment(t,n),i=e.createExpressionStatement(r),a=e.createBlock([i],!1),o=e.createClassStaticBlockDeclaration(a);return BE(o).classThis=t,o}function XV(e){if(!VO(e)||e.body.statements.length!==1)return!1;let t=e.body.statements[0];return iA(t)&&kb(t.expression,!0)&&Y(t.expression.left)&&e.emitNode?.classThis===t.expression.left&&t.expression.right.kind===110}function ZV(e){return!!e.emitNode?.classThis&&F(e.members,XV)}function QV(e,t,n,r){if(ZV(t))return t;let i=nre(e,n,r);t.name&&JE(i.body.statements[0],t.name);let a=e.createNodeArray([i,...t.members]);X(a,t.members);let o=CA(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,a):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,a);return BE(o).classThis=n,o}function $V(e,t,n){let r=Bc(BM(n));return(CA(r)||SA(r))&&!r.name&&Qy(r,2048)?e.createStringLiteral(`default`):e.createStringLiteralFromNode(t)}function eH(e,t,n){let{factory:r}=e;if(n!==void 0)return{assignedName:r.createStringLiteral(n),name:t};if(hv(t)||vO(t))return{assignedName:r.createStringLiteralFromNode(t),name:t};if(hv(t.expression)&&!Y(t.expression))return{assignedName:r.createStringLiteralFromNode(t.expression),name:t};let i=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(i);let a=e.getEmitHelperFactory().createPropKeyHelper(t.expression),o=r.createAssignment(i,a);return{assignedName:i,name:r.updateComputedPropertyName(t,o)}}function tH(e,t,n=e.factory.createThis()){let{factory:r}=e,i=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),a=r.createExpressionStatement(i),o=r.createBlock([a],!1),s=r.createClassStaticBlockDeclaration(o);return BE(s).assignedName=t,s}function nH(e){if(!VO(e)||e.body.statements.length!==1)return!1;let t=e.body.statements[0];return iA(t)&&QD(t.expression,`___setFunctionName`)&&t.expression.arguments.length>=2&&t.expression.arguments[1]===e.emitNode?.assignedName}function rH(e){return!!e.emitNode?.assignedName&&F(e.members,nH)}function iH(e){return!!e.name||rH(e)}function aH(e,t,n,r){if(rH(t))return t;let{factory:i}=e,a=tH(e,n,r);t.name&&JE(a.body.statements[0],t.name);let o=x(t.members,XV)+1,s=t.members.slice(0,o),c=t.members.slice(o),l=i.createNodeArray([...s,a,...c]);return X(l,t.members),t=CA(t)?i.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l):i.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,l),BE(t).assignedName=n,t}function oH(e,t,n,r){if(r&&tO(n)&&Wh(n))return t;let{factory:i}=e,a=BM(t),o=Uk(a)?yt(aH(e,a,n),Uk):e.getEmitHelperFactory().createSetFunctionNameHelper(a,n);return i.restoreOuterExpressions(t,o)}function rre(e,t,n,r){let{factory:i}=e,{assignedName:a,name:o}=eH(e,t.name,r),s=oH(e,t.initializer,a,n);return i.updatePropertyAssignment(t,o,s)}function ire(e,t,n,r){let{factory:i}=e,a=r===void 0?$V(i,t.name,t.objectAssignmentInitializer):i.createStringLiteral(r),o=oH(e,t.objectAssignmentInitializer,a,n);return i.updateShorthandPropertyAssignment(t,t.name,o)}function are(e,t,n,r){let{factory:i}=e,a=r===void 0?$V(i,t.name,t.initializer):i.createStringLiteral(r),o=oH(e,t.initializer,a,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,o)}function sH(e,t,n,r){let{factory:i}=e,a=r===void 0?$V(i,t.name,t.initializer):i.createStringLiteral(r),o=oH(e,t.initializer,a,n);return i.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,o)}function cH(e,t,n,r){let{factory:i}=e,a=r===void 0?$V(i,t.name,t.initializer):i.createStringLiteral(r),o=oH(e,t.initializer,a,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,o)}function lH(e,t,n,r){let{factory:i}=e,{assignedName:a,name:o}=eH(e,t.name,r),s=oH(e,t.initializer,a,n);return i.updatePropertyDeclaration(t,t.modifiers,o,t.questionToken??t.exclamationToken,t.type,s)}function uH(e,t,n,r){let{factory:i}=e,a=r===void 0?$V(i,t.left,t.right):i.createStringLiteral(r),o=oH(e,t.right,a,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,o)}function dH(e,t,n,r){let{factory:i}=e,a=r===void 0?i.createStringLiteral(t.isExportEquals?``:`default`):i.createStringLiteral(r),o=oH(e,t.expression,a,n);return i.updateExportAssignment(t,t.modifiers,o)}function fH(e,t,n,r){switch(t.kind){case 304:return rre(e,t,n,r);case 305:return ire(e,t,n,r);case 261:return are(e,t,n,r);case 170:return sH(e,t,n,r);case 209:return cH(e,t,n,r);case 173:return lH(e,t,n,r);case 227:return uH(e,t,n,r);case 278:return dH(e,t,n,r)}}var pH=(e=>(e[e.LiftRestriction=0]=`LiftRestriction`,e[e.All=1]=`All`,e))(pH||{});function mH(e,t,n,r,i,a){let o=Q(t.tag,n,q);H.assert(o);let s=[void 0],c=[],l=[],u=t.template;if(a===0&&!Hv(u))return PB(t,n,e);let{factory:d}=e;if(iO(u))c.push(hH(d,u)),l.push(gH(d,u,r));else{c.push(hH(d,u.head)),l.push(gH(d,u.head,r));for(let e of u.templateSpans)c.push(hH(d,e.literal)),l.push(gH(d,e.literal,r)),s.push(H.checkDefined(Q(e.expression,n,q)))}let f=e.getEmitHelperFactory().createTemplateObjectHelper(d.createArrayLiteralExpression(c),d.createArrayLiteralExpression(l));if(yP(r)){let e=d.createUniqueName(`templateObject`);i(e),s[0]=d.createLogicalOr(e,d.createAssignment(e,f))}else s[0]=f;return d.createCallExpression(o,void 0,s)}function hH(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function gH(e,t,n){let r=t.rawText;if(r===void 0){H.assertIsDefined(n,`Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform.`),r=bp(n,t);let e=t.kind===15||t.kind===18;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,` `),X(e.createStringLiteral(r),t)}function _H(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:a,hoistVariableDeclaration:o}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=zS(c),u=BS(c),d=!!c.experimentalDecorators,f=c.emitDecoratorMetadata?wH(e):void 0,p=e.onEmitNode,m=e.onSubstituteNode;e.onEmitNode=Ht,e.onSubstituteNode=Ut,e.enableSubstitution(212),e.enableSubstitution(213);let h,g,_,v,y,b=0,x;return S;function S(e){return e.kind===309?C(e):w(e)}function C(e){return t.createBundle(e.sourceFiles.map(w))}function w(t){if(t.isDeclarationFile)return t;h=t;let n=T(t,fe);return dD(n,e.readEmitHelpers()),h=void 0,n}function T(e,t){let n=v,r=y;D(e);let i=t(e);return v!==n&&(y=r),v=n,i}function D(e){switch(e.kind){case 308:case 270:case 269:case 242:v=e,y=void 0;break;case 264:case 263:if(Qy(e,128))break;e.name?lt(e):H.assert(e.kind===264||Qy(e,2048));break}}function O(e){return T(e,ee)}function ee(e){return e.transformFlags&1?ue(e):e}function te(e){return T(e,ne)}function ne(e){switch(e.kind){case 273:case 272:case 278:case 279:return ie(e);default:return ee(e)}}function re(e){let t=Hc(e);if(t===e||UA(e))return!1;if(!t||t.kind!==e.kind)return!0;switch(e.kind){case 273:if(H.assertNode(t,MA),e.importClause!==t.importClause||e.attributes!==t.attributes)return!0;break;case 272:if(H.assertNode(t,jA),e.name!==t.name||e.isTypeOnly!==t.isTypeOnly||e.moduleReference!==t.moduleReference&&(Ou(e.moduleReference)||Ou(t.moduleReference)))return!0;break;case 279:if(H.assertNode(t,WA),e.exportClause!==t.exportClause||e.attributes!==t.attributes)return!0;break}return!1}function ie(t){if(re(t))return t.transformFlags&1?PB(t,O,e):t;switch(t.kind){case 273:return ht(t);case 272:return Et(t);case 278:return yt(t);case 279:return bt(t);default:H.fail(`Unhandled ellided statement`)}}function ae(e){return T(e,A)}function A(e){if(!(e.kind===279||e.kind===273||e.kind===274||e.kind===272&&e.moduleReference.kind===284))return e.transformFlags&1||Qy(e,32)?ue(e):e}function j(e){return t=>T(t,t=>N(t,e))}function N(t,n){switch(t.kind){case 177:return Pe(t);case 173:return Ne(t,n);case 178:return Be(t,n);case 179:return Ve(t,n);case 175:return Re(t,n);case 176:return PB(t,O,e);case 241:return t;case 182:return;default:return H.failBadSyntaxKind(t)}}function oe(e){return t=>T(t,t=>se(t,e))}function se(e,t){switch(e.kind){case 304:case 305:case 306:return O(e);case 178:return Be(e,t);case 179:return Ve(e,t);case 175:return Re(e,t);default:return H.failBadSyntaxKind(e)}}function ce(e){return IO(e)?void 0:O(e)}function P(e){return Du(e)?void 0:O(e)}function le(e){if(!IO(e)&&!(yb(e.kind)&28895)&&!(g&&e.kind===95))return e}function ue(n){if(Bd(n)&&Qy(n,128))return t.createNotEmittedStatement(n);switch(n.kind){case 95:case 90:return g?void 0:n;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 189:case 190:case 191:case 192:case 188:case 183:case 169:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 186:case 185:case 187:case 184:case 193:case 194:case 195:case 197:case 198:case 199:case 200:case 201:case 202:case 182:return;case 266:return t.createNotEmittedStatement(n);case 271:return;case 265:return t.createNotEmittedStatement(n);case 264:return _e(n);case 232:return ve(n);case 299:return Ae(n);case 234:return je(n);case 211:return pe(n);case 177:case 173:case 175:case 178:case 179:case 176:return H.fail(`Class and object literal elements must be visited with their respective visitors`);case 263:return He(n);case 219:return Ue(n);case 220:return We(n);case 170:return L(n);case 218:return Je(n);case 217:case 235:return Ye(n);case 239:return Ze(n);case 214:return Qe(n);case 215:return $e(n);case 216:return et(n);case 236:return Xe(n);case 267:return it(n);case 244:return Ge(n);case 261:return qe(n);case 268:return z(n);case 272:return Et(n);case 286:return tt(n);case 287:return nt(n);default:return PB(n,O,e)}}function fe(n){let r=sC(c,`alwaysStrict`)&&!(yP(n)&&u>=5)&&!jm(n);return t.updateSourceFile(n,EB(n.statements,te,e,0,r))}function pe(e){return t.updateObjectLiteralExpression(e,CB(e.properties,oe(e),qu))}function me(e){let t=0;F(vV(e,!0,!0))&&(t|=1);let n=K_(e);return n&&BM(n.expression).kind!==106&&(t|=64),Hh(d,e)&&(t|=2),Vh(d,e)&&(t|=4),Dt(e)?t|=8:At(e)?t|=32:kt(e)&&(t|=16),t}function he(e){return!!(e.transformFlags&8192)}function ge(e){return ob(e)||F(e.typeParameters)||F(e.heritageClauses,he)||F(e.members,he)}function _e(n){let r=me(n),i=l<=1&&!!(r&7);if(!ge(n)&&!Hh(d,n)&&!Dt(n))return t.updateClassDeclaration(n,CB(n.modifiers,le,Du),n.name,void 0,CB(n.heritageClauses,O,fj),CB(n.members,j(n),Ru));i&&e.startLexicalEnvironment();let a=i||r&8,o=a?CB(n.modifiers,P,Wu):CB(n.modifiers,O,Wu);r&2&&(o=be(o,n));let s=a&&!n.name||r&4||r&1?n.name??t.getGeneratedNameForNode(n):n.name,c=t.updateClassDeclaration(n,o,s,void 0,CB(n.heritageClauses,O,fj),ye(n)),u=kp(n);r&1&&(u|=64),UE(c,u);let f;if(i){let r=[c],i=dx(Es(h.text,n.members.end),20),a=t.getInternalName(n),o=t.createPartiallyEmittedExpression(a);qw(o,i.end),UE(o,3072);let s=t.createReturnStatement(o);Kw(s,i.pos),UE(s,3840),r.push(s),up(r,e.endLexicalEnvironment());let l=t.createImmediatelyInvokedArrowFunction(r);GE(l,1);let u=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,l);zE(u,n);let d=t.createVariableStatement(void 0,t.createVariableDeclarationList([u],1));zE(d,n),eD(d,n),JE(d,lx(n)),HM(d),f=d}else f=c;if(a){if(r&8)return[f,jt(n)];if(r&32)return[f,t.createExportDefault(t.getLocalName(n,!1,!0))];if(r&16)return[f,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return f}function ve(e){let n=CB(e.modifiers,P,Wu);return Hh(d,e)&&(n=be(n,e)),t.updateClassExpression(e,n,e.name,void 0,CB(e.heritageClauses,O,fj),ye(e))}function ye(e){let n=CB(e.members,j(e),Ru),r,i=Dy(e),a=i&&E(i.parameters,e=>kc(e,i));if(a)for(let e of a){let n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);zE(n,e),r=I(r,n)}return r?(r=Ee(r,n),X(t.createNodeArray(r),e.members)):n}function be(e,n){let r=Se(n,n);if(F(r)){let n=[];Ee(n,wn(e,ON)),Ee(n,E(e,IO)),Ee(n,r),Ee(n,E(Tn(e,ON),Du)),e=X(t.createNodeArray(n),e)}return e}function xe(e,n,r){if(zu(r)&&Uh(d,n,r)){let i=Se(n,r);if(F(i)){let n=[];Ee(n,E(e,IO)),Ee(n,i),Ee(n,E(e,Du)),e=X(t.createNodeArray(n),e)}}return e}function Se(e,t){if(d)return Ce(e,t)}function Ce(e,r){if(f){let i;if(we(e)){let a=n().createMetadataHelper(`design:type`,f.serializeTypeOfNode({currentLexicalScope:v,currentNameScope:r},e,r));i=I(i,t.createDecorator(a))}if(De(e)){let a=n().createMetadataHelper(`design:paramtypes`,f.serializeParameterTypesOfNode({currentLexicalScope:v,currentNameScope:r},e,r));i=I(i,t.createDecorator(a))}if(Te(e)){let a=n().createMetadataHelper(`design:returntype`,f.serializeReturnTypeOfNode({currentLexicalScope:v,currentNameScope:r},e));i=I(i,t.createDecorator(a))}return i}}function we(e){let t=e.kind;return t===175||t===178||t===179||t===173}function Te(e){return e.kind===175}function De(e){switch(e.kind){case 264:case 232:return Dy(e)!==void 0;case 175:case 178:case 179:return!0}return!1}function Oe(e,n){let r=e.name;return vO(r)?t.createIdentifier(``):NO(r)?r.expression:Y(r)?t.createStringLiteral(Gc(r)):t.cloneNode(r)}function ke(e){let n=e.name;if(d&&NO(n)&&ob(e)){let e=Q(n.expression,O,q);if(H.assert(e),!fV(Zl(e))){let r=t.getGeneratedNameForNode(n);return o(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return H.checkDefined(Q(n,O,ku))}function Ae(t){if(t.token!==119)return PB(t,O,e)}function je(e){return t.updateExpressionWithTypeArguments(e,H.checkDefined(Q(e.expression,O,fd)),void 0)}function Me(e){return!rp(e.body)}function Ne(e,n){let r=e.flags&33554432||Qy(e,64);if(r&&!(d&&ob(e)))return;let i=zu(n)?r?CB(e.modifiers,P,Wu):CB(e.modifiers,O,Wu):CB(e.modifiers,ce,Wu);return i=xe(i,e,n),r?t.updatePropertyDeclaration(e,de(i,t.createModifiersFromModifierFlags(128)),H.checkDefined(Q(e.name,O,ku)),void 0,void 0,void 0):t.updatePropertyDeclaration(e,i,ke(e),void 0,void 0,Q(e.initializer,O,q))}function Pe(n){if(Me(n))return t.updateConstructorDeclaration(n,void 0,DB(n.parameters,O,e),Ie(n.body,n))}function Fe(e,n,r,i,a,o){let s=i[a],c=n[s];if(Ee(e,CB(n,O,Bd,r,s-r)),vA(c)){let n=[];Fe(n,c.tryBlock.statements,0,i,a+1,o),X(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),Q(c.catchClause,O,pj),Q(c.finallyBlock,O,tA)))}else Ee(e,CB(n,O,Bd,s,1)),Ee(e,o);Ee(e,CB(n,O,Bd,s+1))}function Ie(n,r){let o=r&&E(r.parameters,e=>kc(e,r));if(!F(o))return jB(n,O,e);let s=[];i();let c=t.copyPrologue(n.statements,s,!1,O),l=_V(n.statements,c),u=M(o,Le);l.length?Fe(s,n.statements,c,l,0,u):(Ee(s,u),Ee(s,CB(n.statements,O,Bd,c))),s=t.mergeLexicalEnvironment(s,a());let d=t.createBlock(X(t.createNodeArray(s),n.statements),!0);return X(d,n),zE(d,n),d}function Le(e){let n=e.name;if(!Y(n))return;let r=Zw(X(t.cloneNode(n),n),n.parent);UE(r,3168);let i=Zw(X(t.cloneNode(n),n),n.parent);return UE(i,3072),HM(HE(X(zE(t.createExpressionStatement(t.createAssignment(X(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),cx(e,-1))))}function Re(n,r){if(!(n.transformFlags&1))return n;if(!Me(n))return;let i=zu(r)?CB(n.modifiers,O,Wu):CB(n.modifiers,ce,Wu);return i=xe(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,ke(n),void 0,void 0,DB(n.parameters,O,e),void 0,jB(n.body,O,e))}function ze(e){return!(rp(e.body)&&Qy(e,64))}function Be(n,r){if(!(n.transformFlags&1))return n;if(!ze(n))return;let i=zu(r)?CB(n.modifiers,O,Wu):CB(n.modifiers,ce,Wu);return i=xe(i,n,r),t.updateGetAccessorDeclaration(n,i,ke(n),DB(n.parameters,O,e),void 0,jB(n.body,O,e)||t.createBlock([]))}function Ve(n,r){if(!(n.transformFlags&1))return n;if(!ze(n))return;let i=zu(r)?CB(n.modifiers,O,Wu):CB(n.modifiers,ce,Wu);return i=xe(i,n,r),t.updateSetAccessorDeclaration(n,i,ke(n),DB(n.parameters,O,e),jB(n.body,O,e)||t.createBlock([]))}function He(n){if(!Me(n))return t.createNotEmittedStatement(n);let r=t.updateFunctionDeclaration(n,CB(n.modifiers,le,Du),n.asteriskToken,n.name,void 0,DB(n.parameters,O,e),void 0,jB(n.body,O,e)||t.createBlock([]));if(Dt(n)){let e=[r];return Mt(e,n),e}return r}function Ue(n){return Me(n)?t.updateFunctionExpression(n,CB(n.modifiers,le,Du),n.asteriskToken,n.name,void 0,DB(n.parameters,O,e),void 0,jB(n.body,O,e)||t.createBlock([])):t.createOmittedExpression()}function We(n){return t.updateArrowFunction(n,CB(n.modifiers,le,Du),void 0,DB(n.parameters,O,e),void 0,n.equalsGreaterThanToken,jB(n.body,O,e))}function L(e){if(jy(e))return;let n=t.updateParameterDeclaration(e,CB(e.modifiers,e=>IO(e)?O(e):void 0,Wu),e.dotDotDotToken,H.checkDefined(Q(e.name,O,Au)),void 0,void 0,Q(e.initializer,O,q));return n!==e&&(eD(n,e),X(n,ux(e)),JE(n,ux(e)),UE(n.name,64)),n}function Ge(n){if(Dt(n)){let e=Dx(n.declarationList);return e.length===0?void 0:X(t.createExpressionStatement(t.inlineExpressions(k(e,Ke))),n)}else return PB(n,O,e)}function Ke(n){let r=n.name;return Xu(r)?IV(n,O,e,0,!1,Pt):X(t.createAssignment(Ft(r),H.checkDefined(Q(n.initializer,O,q))),n)}function qe(e){let n=t.updateVariableDeclaration(e,H.checkDefined(Q(e.name,O,Au)),void 0,void 0,Q(e.initializer,O,q));return e.type&&vD(n.name,e.type),n}function Je(n){let r=BM(n.expression,-55);if(yd(r)||qk(r)){let e=Q(n.expression,O,q);return H.assert(e),t.createPartiallyEmittedExpression(e,n)}return PB(n,O,e)}function Ye(e){let n=Q(e.expression,O,q);return H.assert(n),t.createPartiallyEmittedExpression(n,e)}function Xe(e){let n=Q(e.expression,O,fd);return H.assert(n),t.createPartiallyEmittedExpression(n,e)}function Ze(e){let n=Q(e.expression,O,q);return H.assert(n),t.createPartiallyEmittedExpression(n,e)}function Qe(e){return t.updateCallExpression(e,H.checkDefined(Q(e.expression,O,q)),void 0,CB(e.arguments,O,q))}function $e(e){return t.updateNewExpression(e,H.checkDefined(Q(e.expression,O,q)),void 0,CB(e.arguments,O,q))}function et(e){return t.updateTaggedTemplateExpression(e,H.checkDefined(Q(e.tag,O,q)),void 0,H.checkDefined(Q(e.template,O,dd)))}function tt(e){return t.updateJsxSelfClosingElement(e,H.checkDefined(Q(e.tagName,O,Wd)),void 0,H.checkDefined(Q(e.attributes,O,oj)))}function nt(e){return t.updateJsxOpeningElement(e,H.checkDefined(Q(e.tagName,O,Wd)),void 0,H.checkDefined(Q(e.attributes,O,oj)))}function rt(e){return!Mm(e)||XS(c)}function it(e){if(!rt(e))return t.createNotEmittedStatement(e);let n=[],r=4,i=dt(n,e);i&&(u!==4||v!==h)&&(r|=1024);let a=It(e),o=Lt(e),s=Dt(e)?t.getExternalModuleOrNamespaceExportName(_,e,!1,!0):t.getDeclarationName(e,!1,!0),c=t.createLogicalOr(s,t.createAssignment(s,t.createObjectLiteralExpression()));if(Dt(e)){let n=t.getLocalName(e,!1,!0);c=t.createAssignment(n,c)}let l=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,a)],void 0,at(e,o)),void 0,[c]));return zE(l,e),i&&(nD(l,void 0),aD(l,void 0)),X(l,e),WE(l,r),n.push(l),n}function at(e,n){let i=_;_=n;let o=[];r();let s=k(e.members,ot);return up(o,a()),Ee(o,s),_=i,t.createBlock(X(t.createNodeArray(o),e.members),!0)}function ot(e){let n=Oe(e),r=s.getEnumMemberValue(e),i=st(e,r?.value),a=t.createAssignment(t.createElementAccessExpression(_,n),i),o=typeof r?.value==`string`||r?.isSyntacticallyString?a:t.createAssignment(t.createElementAccessExpression(_,a),n);return X(t.createExpressionStatement(X(o,e)),e)}function st(e,n){return n===void 0?(Rt(),e.initializer?H.checkDefined(Q(e.initializer,O,q)):t.createVoidZero()):typeof n==`string`?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-n)):t.createNumericLiteral(n)}function ct(e){let t=Hc(e,DA);return t?gB(t,XS(c)):!0}function lt(e){y||=new Map;let t=R(e);y.has(t)||y.set(t,e)}function ut(e){if(y){let t=R(e);return y.get(t)===e}return!0}function R(e){return H.assertNode(e.name,Y),e.name.escapedText}function dt(e,n){let r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=v.kind===308?0:1,a=t.createVariableStatement(CB(n.modifiers,le,Du),t.createVariableDeclarationList([r],i));return zE(r,n),nD(r,void 0),aD(r,void 0),zE(a,n),lt(n),ut(n)?(n.kind===267?JE(a.declarationList,n):JE(a,n),eD(a,n),WE(a,2048),e.push(a),!0):!1}function z(e){if(!ct(e))return t.createNotEmittedStatement(e);H.assertNode(e.name,Y,`A TypeScript namespace should have an Identifier name.`),zt();let n=[],r=4,i=dt(n,e);i&&(u!==4||v!==h)&&(r|=1024);let a=It(e),o=Lt(e),s=Dt(e)?t.getExternalModuleOrNamespaceExportName(_,e,!1,!0):t.getDeclarationName(e,!1,!0),c=t.createLogicalOr(s,t.createAssignment(s,t.createObjectLiteralExpression()));if(Dt(e)){let n=t.getLocalName(e,!1,!0);c=t.createAssignment(n,c)}let l=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,a)],void 0,ft(e,o)),void 0,[c]));return zE(l,e),i&&(nD(l,void 0),aD(l,void 0)),X(l,e),WE(l,r),n.push(l),n}function ft(e,n){let i=_,o=g,s=y;_=n,g=e,y=void 0;let c=[];r();let l,u;if(e.body)if(e.body.kind===269)T(e.body,e=>Ee(c,CB(e.statements,ae,Bd))),l=e.body.statements,u=e.body;else{let t=z(e.body);t&&(mt(t)?Ee(c,t):c.push(t));let n=pt(e).body;l=cx(n.statements,-1)}up(c,a()),_=i,g=o,y=s;let d=t.createBlock(X(t.createNodeArray(c),l),!0);return X(d,u),(!e.body||e.body.kind!==269)&&UE(d,kp(d)|3072),d}function pt(e){if(e.body.kind===268)return pt(e.body)||e.body}function ht(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;let n=Q(e.importClause,gt,NA);return n?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}function gt(e){H.assert(e.phaseModifier!==156);let n=B(e)?e.name:void 0,r=Q(e.namedBindings,_t,Ad);return n||r?t.updateImportClause(e,e.phaseModifier,n,r):void 0}function _t(e){if(e.kind===275)return B(e)?e:void 0;{let n=c.verbatimModuleSyntax,r=CB(e.elements,vt,HA);return n||F(r)?t.updateNamedImports(e,r):void 0}}function vt(e){return!e.isTypeOnly&&B(e)?e:void 0}function yt(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?PB(t,O,e):void 0}function bt(e){if(e.isTypeOnly)return;if(!e.exportClause||BA(e.exportClause))return t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes);let n=!!c.verbatimModuleSyntax,r=Q(e.exportClause,e=>Ct(e,n),eu);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}function xt(e,n){let r=CB(e.elements,wt,KA);return n||F(r)?t.updateNamedExports(e,r):void 0}function St(e){return t.updateNamespaceExport(e,H.checkDefined(Q(e.name,O,Y)))}function Ct(e,t){return BA(e)?St(e):xt(e,t)}function wt(e){return!e.isTypeOnly&&(c.verbatimModuleSyntax||s.isValueAliasDeclaration(e))?e:void 0}function Tt(e){return B(e)||!yP(h)&&s.isTopLevelValueImportEqualsWithEntityName(e)}function Et(n){if(n.isTypeOnly)return;if(Xh(n))return B(n)?PB(n,O,e):void 0;if(!Tt(n))return;let r=SM(t,n.moduleReference);return UE(r,7168),kt(n)||!Dt(n)?zE(X(t.createVariableStatement(CB(n.modifiers,le,Du),t.createVariableDeclarationList([zE(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):zE(Nt(n.name,r,n),n)}function Dt(e){return g!==void 0&&Qy(e,32)}function Ot(e){return g===void 0&&Qy(e,32)}function kt(e){return Ot(e)&&!Qy(e,2048)}function At(e){return Ot(e)&&Qy(e,2048)}function jt(e){let n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(_,e,!1,!0),t.getLocalName(e));JE(n,ox(e.name?e.name.pos:e.pos,e.end));let r=t.createExpressionStatement(n);return JE(r,ox(-1,e.end)),r}function Mt(e,t){e.push(jt(t))}function Nt(e,n,r){return X(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(_,e,!1,!0),n)),r)}function Pt(e,n,r){return X(t.createAssignment(Ft(e),n),r)}function Ft(e){return t.getNamespaceMemberName(_,e,!1,!0)}function It(e){let n=t.getGeneratedNameForNode(e);return JE(n,e.name),n}function Lt(e){return t.getGeneratedNameForNode(e)}function Rt(){b&8||(b|=8,e.enableSubstitution(80))}function zt(){b&2||(b|=2,e.enableSubstitution(80),e.enableSubstitution(305),e.enableEmitNotification(268))}function Bt(e){return Bc(e).kind===268}function Vt(e){return Bc(e).kind===267}function Ht(e,t,n){let r=x,i=h;vj(t)&&(h=t),b&2&&Bt(t)&&(x|=2),b&8&&Vt(t)&&(x|=8),p(e,t,n),x=r,h=i}function Ut(e,t){return t=m(e,t),e===1?Gt(t):hj(t)?Wt(t):t}function Wt(e){if(b&2){let n=e.name,r=qt(n);if(r){if(e.objectAssignmentInitializer){let i=t.createAssignment(r,e.objectAssignmentInitializer);return X(t.createPropertyAssignment(n,i),e)}return X(t.createPropertyAssignment(n,r),e)}}return e}function Gt(e){switch(e.kind){case 80:return Kt(e);case 212:return Jt(e);case 213:return Yt(e)}return e}function Kt(e){return qt(e)||e}function qt(e){if(b&x&&!yu(e)&&!AM(e)){let n=s.getReferencedExportContainer(e,!1);if(n&&n.kind!==308&&(x&2&&n.kind===268||x&8&&n.kind===267))return X(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}function Jt(e){return Zt(e)}function Yt(e){return Zt(e)}function Xt(e){return e.replace(/\*\//g,`*_/`)}function Zt(e){let n=Qt(e);if(n!==void 0){lD(e,n);let r=typeof n==`string`?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-n)):t.createNumericLiteral(n);return c.removeComments||oD(r,3,` ${Xt(Ep(Bc(e,Zx)))} `),r}return e}function Qt(e){if(!US(c))return Ck(e)||wk(e)?s.getConstantValue(e):void 0}function B(e){return c.verbatimModuleSyntax||ng(e)||s.isReferencedAliasDeclaration(e)}}function vH(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:a,resumeLexicalEnvironment:o,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),u=zS(l),d=eC(l),f=!!l.experimentalDecorators,p=!d,m=d&&u<9,h=p||m,g=u<9,_=u<99?-1:d?0:3,v=u<9,b=v&&u>=2,x=h||g||_===-1,S=e.onSubstituteNode;e.onSubstituteNode=Xt;let C=e.onEmitNode;e.onEmitNode=Yt;let w=!1,T=0,D,O,ee,te,ne=new Map,re=new Set,ie,ae,A=!1,j=!1;return nV(e,M);function M(t){if(t.isDeclarationFile||(te=void 0,w=!!(Ap(t)&32),!x&&!w))return t;let n=PB(t,oe,e);return dD(n,e.readEmitHelpers()),n}function N(e){switch(e.kind){case 129:return Fe()?void 0:e;default:return vt(e,Du)}}function oe(e){if(!(e.transformFlags&16777216)&&!(e.transformFlags&134234112))return e;switch(e.kind){case 264:return it(e);case 232:return ot(e);case 176:case 173:return H.fail("Use `classElementVisitor` instead.");case 304:return he(e);case 244:return ge(e);case 261:return _e(e);case 170:return ve(e);case 209:return ye(e);case 278:return be(e);case 81:return pe(e);case 212:return Ve(e);case 213:return He(e);case 225:case 226:return Ue(e,!1);case 227:return Xe(e,!1);case 218:return Qe(e,!1);case 214:return Ke(e);case 245:return L(e);case 216:return qe(e);case 249:return We(e);case 110:return lt(e);case 263:case 219:return Oe(void 0,se,e);case 177:case 175:case 178:case 179:return Oe(e,se,e);default:return se(e)}}function se(t){return PB(t,oe,e)}function ce(e){switch(e.kind){case 225:case 226:return Ue(e,!0);case 227:return Xe(e,!0);case 357:return Ze(e);case 218:return Qe(e,!0);default:return oe(e)}}function P(t){switch(t.kind){case 299:return PB(t,P,e);case 234:return nt(t);default:return oe(t)}}function le(e){switch(e.kind){case 211:case 210:return Jt(e);default:return oe(e)}}function ue(e){switch(e.kind){case 177:return Oe(e,we,e);case 178:case 179:case 175:return Oe(e,De,e);case 173:return Oe(e,Ie,e);case 176:return Oe(e,ct,e);case 168:return Ce(e);case 241:return e;default:return Wu(e)?N(e):oe(e)}}function de(e){switch(e.kind){case 168:return Ce(e);default:return oe(e)}}function fe(e){switch(e.kind){case 173:return Pe(e);case 178:case 179:return ue(e);default:H.assertMissingNode(e,`Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration`);break}}function pe(e){return!g||Bd(e.parent)?e:zE(t.createIdentifier(``),e)}function me(t){let r=Rt(t.left);if(r){let e=Q(t.right,oe,q);return zE(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return PB(t,oe,e)}function he(t){return wv(t,Ye)&&(t=fH(e,t)),PB(t,oe,e)}function ge(t){let n=ee;ee=[];let r=PB(t,oe,e),i=F(ee)?[r,...ee]:r;return ee=n,i}function _e(t){return wv(t,Ye)&&(t=fH(e,t)),PB(t,oe,e)}function ve(t){return wv(t,Ye)&&(t=fH(e,t)),PB(t,oe,e)}function ye(t){return wv(t,Ye)&&(t=fH(e,t)),PB(t,oe,e)}function be(t){return wv(t,Ye)&&(t=fH(e,t,!0,t.isExportEquals?``:`default`)),PB(t,oe,e)}function xe(e){return F(O)&&(kk(e)?(O.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(O))):(O.push(e),e=t.inlineExpressions(O)),O=void 0),e}function Ce(e){let n=Q(e.expression,oe,q);return t.updateComputedPropertyName(e,xe(n))}function we(e){return ie?dt(e,ie):se(e)}function Te(e){return!!(g||eb(e)&&Ap(e)&32)}function De(n){if(H.assert(!ob(n)),!Su(n)||!Te(n))return PB(n,ue,e);let r=Rt(n.name);if(H.assert(r,`Undeclared private name for property declaration.`),!r.isValid)return n;let i=ke(n);i&&Ot().push(t.createAssignment(i,t.createFunctionExpression(E(n.modifiers,e=>Du(e)&&!TO(e)&&!OO(e)),n.asteriskToken,i,void 0,DB(n.parameters,oe,e),void 0,jB(n.body,oe,e))))}function Oe(e,t,n){if(e!==ae){let r=ae;ae=e;let i=t(n);return ae=r,i}return t(n)}function ke(e){H.assert(vO(e.name));let t=Rt(e.name);if(H.assert(t,`Undeclared private name for property declaration.`),t.kind===`m`)return t.methodName;if(t.kind===`a`){if(ef(e))return t.getterName;if($d(e))return t.setterName}}function Ae(){let e=Et();return e.classThis??e.classConstructor??ie?.name}function je(e){let n=$E(e),i=qE(e),a=e.name,o=a,s=a;if(NO(a)&&!fV(a.expression)){let e=LN(a);if(e)o=t.updateComputedPropertyName(a,Q(a.expression,oe,q)),s=t.updateComputedPropertyName(a,e.left);else{let e=t.createTempVariable(r);JE(e,a.expression);let n=Q(a.expression,oe,q),i=t.createAssignment(e,n);JE(i,a.expression),o=t.updateComputedPropertyName(a,i),s=t.updateComputedPropertyName(a,e)}}let c=CB(e.modifiers,N,Du),l=PN(t,e,c,e.initializer);zE(l,e),UE(l,3072),JE(l,i);let u=$y(e)?Ae()??t.createThis():t.createThis(),d=FN(t,e,c,o,u);zE(d,e),eD(d,n),JE(d,i);let f=IN(t,e,t.createModifiersFromModifierFlags(vb(c)),s,u);return zE(f,e),UE(f,3072),JE(f,i),wB([l,d,f],fe,Ru)}function Me(n){if(Te(n)){let e=Rt(n.name);if(H.assert(e,`Undeclared private name for property declaration.`),!e.isValid)return n;if(e.isStatic&&!g){let e=mt(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}return}return p&&!$y(n)&&te?.data&&te.data.facts&16?t.updatePropertyDeclaration(n,CB(n.modifiers,oe,Wu),n.name,void 0,void 0,void 0):(wv(n,Ye)&&(n=fH(e,n)),t.updatePropertyDeclaration(n,CB(n.modifiers,N,Du),Q(n.name,de,ku),void 0,void 0,Q(n.initializer,oe,q)))}function Ne(e){if(h&&!Vu(e)){let n=Ct(e.name,!!e.initializer||d);if(n&&Ot().push(...zN(n)),$y(e)&&!g){let n=mt(e,t.createThis());if(n){let r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return zE(r,e),eD(r,e),eD(n,{pos:-1,end:-1}),nD(n,void 0),aD(n,void 0),r}}return}return t.updatePropertyDeclaration(e,CB(e.modifiers,N,Du),Q(e.name,de,ku),void 0,void 0,Q(e.initializer,oe,q))}function Pe(e){return H.assert(!ob(e),`Decorators should already have been transformed and elided.`),Su(e)?Me(e):Ne(e)}function Fe(){return _===-1||_===3&&!!te?.data&&!!(te.data.facts&16)}function Ie(e){return Vu(e)&&(Fe()||eb(e)&&Ap(e)&32)?je(e):Pe(e)}function Le(){return!!ae&&eb(ae)&&Bu(ae)&&Vu(Bc(ae))}function Re(e){if(Le()){let t=BM(e);t.kind===110&&re.add(t)}}function ze(e,t){return t=Q(t,oe,q),Re(t),Be(e,t)}function Be(e,t){switch(eD(t,cx(t,-1)),e.kind){case`a`:return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.getterName);case`m`:return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.methodName);case`f`:return n().createClassPrivateFieldGetHelper(t,e.brandCheckIdentifier,e.kind,e.isStatic?e.variableName:void 0);case`untransformed`:return H.fail(`Access helpers should not be created for untransformed private elements`);default:H.assertNever(e,`Unknown private element type`)}}function Ve(n){if(vO(n.name)){let e=Rt(n.name);if(e)return X(zE(ze(e,n.expression),n),n)}if(b&&ae&&Mh(n)&&Y(n.name)&&CH(ae)&&te?.data){let{classConstructor:e,superClassReference:r,facts:i}=te.data;if(i&1)return St(n);if(e&&r){let i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return zE(i,n.expression),X(i,n.expression),i}}return PB(n,oe,e)}function He(n){if(b&&ae&&Mh(n)&&CH(ae)&&te?.data){let{classConstructor:e,superClassReference:r,facts:i}=te.data;if(i&1)return St(n);if(e&&r){let i=t.createReflectGetCall(r,Q(n.argumentExpression,oe,q),e);return zE(i,n.expression),X(i,n.expression),i}}return PB(n,oe,e)}function Ue(n,i){if(n.operator===46||n.operator===47){let e=F_(n.operand);if(Cu(e)){let a;if(a=Rt(e.name)){let o=Q(e.expression,oe,q);Re(o);let{readExpression:s,initializeExpression:c}=Ge(o),l=ze(a,s),u=Ik(n)||i?void 0:t.createTempVariable(r);return l=OM(t,n,l,r,u),l=$e(a,c||s,l,64),zE(l,n),X(l,n),u&&(l=t.createComma(l,u),X(l,n)),l}}else if(b&&ae&&Mh(e)&&CH(ae)&&te?.data){let{classConstructor:a,superClassReference:o,facts:s}=te.data;if(s&1){let r=St(e);return Ik(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(a&&o){let s,c;if(Ck(e)?Y(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):fV(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,Q(e.argumentExpression,oe,q))),s&&c){let l=t.createReflectGetCall(o,c,a);X(l,e);let u=i?void 0:t.createTempVariable(r);return l=OM(t,n,l,r,u),l=t.createReflectSetCall(o,s,l,a),zE(l,n),X(l,n),u&&(l=t.createComma(l,u),X(l,n)),l}}}}return PB(n,oe,e)}function We(n){return t.updateForStatement(n,Q(n.initializer,ce,Dd),Q(n.condition,oe,q),Q(n.incrementor,ce,q),MB(n.statement,oe,e))}function L(e){return t.updateExpressionStatement(e,Q(e.expression,ce,q))}function Ge(e){let n=kv(e)?e:t.cloneNode(e);if(e.kind===110&&re.has(e)&&re.add(n),fV(e))return{readExpression:n,initializeExpression:void 0};let i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function Ke(n){if(Cu(n.expression)&&Rt(n.expression.name)){let{thisArg:e,target:i}=t.createCallBinding(n.expression,r,u);return Wl(n)?t.updateCallChain(n,t.createPropertyAccessChain(Q(i,oe,q),n.questionDotToken,`call`),void 0,void 0,[Q(e,oe,q),...CB(n.arguments,oe,q)]):t.updateCallExpression(n,t.createPropertyAccessExpression(Q(i,oe,q),`call`),void 0,[Q(e,oe,q),...CB(n.arguments,oe,q)])}if(b&&ae&&Mh(n.expression)&&CH(ae)&&te?.data?.classConstructor){let e=t.createFunctionCallCall(Q(n.expression,oe,q),te.data.classConstructor,CB(n.arguments,oe,q));return zE(e,n),X(e,n),e}return PB(n,oe,e)}function qe(n){if(Cu(n.tag)&&Rt(n.tag.name)){let{thisArg:e,target:i}=t.createCallBinding(n.tag,r,u);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(Q(i,oe,q),`bind`),void 0,[Q(e,oe,q)]),void 0,Q(n.template,oe,dd))}if(b&&ae&&Mh(n.tag)&&CH(ae)&&te?.data?.classConstructor){let e=t.createFunctionBindCall(Q(n.tag,oe,q),te.data.classConstructor,[]);return zE(e,n),X(e,n),t.updateTaggedTemplateExpression(n,e,void 0,Q(n.template,oe,dd))}return PB(n,oe,e)}function Je(e){if(te&&ne.set(Bc(e),te),g){if(XV(e)){let t=Q(e.body.statements[0].expression,oe,q);return kb(t,!0)&&t.left===t.right?void 0:t}if(nH(e))return Q(e.body.statements[0].expression,oe,q);a();let n=Oe(e,e=>CB(e,oe,Bd),e.body.statements);n=t.mergeLexicalEnvironment(n,i());let r=t.createImmediatelyInvokedArrowFunction(n);return zE(F_(r.expression),e),WE(F_(r.expression),4),zE(r,e),X(r,e),r}}function Ye(e){if(Uk(e)&&!e.name){let t=bV(e);return F(t,nH)?!1:(g||!!Ap(e))&&F(t,e=>VO(e)||Su(e)||h&&SV(e))}return!1}function Xe(n,i){if(Ab(n)){let e=O;O=void 0,n=t.updateBinaryExpression(n,Q(n.left,le,q),n.operatorToken,Q(n.right,oe,q));let r=F(O)?t.inlineExpressions(Se([...O,n])):n;return O=e,r}if(kb(n)){wv(n,Ye)&&(n=fH(e,n),H.assertNode(n,kb));let a=BM(n.left,9);if(Cu(a)){let e=Rt(a.name);if(e)return X(zE($e(e,a.expression,n.right,n.operatorToken.kind),n),n)}else if(b&&ae&&Mh(n.left)&&CH(ae)&&te?.data){let{classConstructor:e,superClassReference:a,facts:o}=te.data;if(o&1)return t.updateBinaryExpression(n,St(n.left),n.operatorToken,Q(n.right,oe,q));if(e&&a){let o=wk(n.left)?Q(n.left.argumentExpression,oe,q):Y(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(o){let s=Q(n.right,oe,q);if(pV(n.operatorToken.kind)){let i=o;fV(o)||(i=t.createTempVariable(r),o=t.createAssignment(i,o));let c=t.createReflectGetCall(a,i,e);zE(c,n.left),X(c,n.left),s=t.createBinaryExpression(c,mV(n.operatorToken.kind),s),X(s,n)}let c=i?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),X(c,n)),s=t.createReflectSetCall(a,o,s,e),zE(s,n),X(s,n),c&&(s=t.createComma(s,c),X(s,n)),s}}}}return sre(n)?me(n):PB(n,oe,e)}function Ze(e,n){let r=NB(e.elements,ce);return t.updateCommaListExpression(e,r)}function Qe(e,n){let r=n?ce:oe,i=Q(e.expression,r,q);return t.updateParenthesizedExpression(e,i)}function $e(e,r,i,a){if(r=Q(r,oe,q),i=Q(i,oe,q),Re(r),pV(a)){let{readExpression:n,initializeExpression:o}=Ge(r);r=o||n,i=t.createBinaryExpression(Be(e,n),mV(a),i)}switch(eD(r,cx(r,-1)),e.kind){case`a`:return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.setterName);case`m`:return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,void 0);case`f`:return n().createClassPrivateFieldSetHelper(r,e.brandCheckIdentifier,i,e.kind,e.isStatic?e.variableName:void 0);case`untransformed`:return H.fail(`Access helpers should not be created for untransformed private elements`);default:H.assertNever(e,`Unknown private element type`)}}function et(e){return E(e.members,CV)}function tt(e){let t=0,n=Bc(e);zu(n)&&Hh(f,n)&&(t|=1),g&&(ZV(e)||rH(e))&&(t|=2);let r=!1,i=!1,a=!1,o=!1;for(let n of e.members)$y(n)?((n.name&&(vO(n.name)||Vu(n))&&g||Vu(n)&&_===-1&&!e.name&&!e.emitNode?.classThis)&&(t|=2),(RO(n)||VO(n))&&(v&&n.transformFlags&16384&&(t|=8,t&1||(t|=2)),b&&n.transformFlags&134217728&&(t&1||(t|=6)))):nb(Bc(n))||(Vu(n)?(o=!0,a||=Su(n)):Su(n)?(a=!0,c.hasNodeCheckFlag(n,262144)&&(t|=2)):RO(n)&&(r=!0,i||=!!n.initializer));return(m&&r||p&&i||g&&a||g&&o&&_===-1)&&(t|=16),t}function nt(n){if((te?.data?.facts||0)&4){let e=t.createTempVariable(r,!0);return Et().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,Q(n.expression,oe,q)),void 0)}return PB(n,oe,e)}function rt(e,n){let r=ie,i=O,a=te;ie=e,O=void 0,wt();let o=Ap(e)&32;if(g||o){let n=el(e);if(n&&Y(n))Dt().data.className=n;else if(e.emitNode?.assignedName&&tO(e.emitNode.assignedName)){if(e.emitNode.assignedName.textSourceNode&&Y(e.emitNode.assignedName.textSourceNode))Dt().data.className=e.emitNode.assignedName.textSourceNode;else if(Ws(e.emitNode.assignedName.text,u)){let n=t.createIdentifier(e.emitNode.assignedName.text);Dt().data.className=n}}}if(g){let t=et(e);F(t)&&(Dt().data.weakSetName=It(`instances`,t[0].name))}let s=tt(e);s&&(Et().facts=s),s&8&&bt();let c=n(e,s);return Tt(),H.assert(te===a),ie=r,O=i,c}function it(e){return rt(e,at)}function at(e,n){let i;if(n&2)if(g&&e.emitNode?.classThis)Et().classConstructor=e.emitNode.classThis,i=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{let n=t.createTempVariable(r,!0);Et().classConstructor=t.cloneNode(n),i=t.createAssignment(n,t.getInternalName(e))}e.emitNode?.classThis&&(Et().classThis=e.emitNode.classThis);let a=c.hasNodeCheckFlag(e,262144),o=Qy(e,32),s=Qy(e,2048),l=CB(e.modifiers,N,Du),u=CB(e.heritageClauses,P,fj),{members:d,prologue:f}=ut(e),m=[];if(i&&Ot().unshift(i),F(O)&&m.push(t.createExpressionStatement(t.inlineExpressions(O))),p||g||Ap(e)&32){let n=bV(e);F(n)&&pt(m,n,t.getInternalName(e))}m.length>0&&o&&s&&(l=CB(l,e=>ON(e)?void 0:e,Du),m.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));let h=Et().classConstructor;a&&h&&(yt(),D[$B(e)]=h);let _=t.updateClassDeclaration(e,l,e.name,void 0,u,d);return m.unshift(_),f&&m.unshift(t.createExpressionStatement(f)),m}function ot(e){return rt(e,st)}function st(e,n){let i=!!(n&1),a=bV(e),o=c.hasNodeCheckFlag(e,262144),l=c.hasNodeCheckFlag(e,32768),u;function d(){if(g&&e.emitNode?.classThis)return Et().classConstructor=e.emitNode.classThis;let n=t.createTempVariable(l?s:r,!0);return Et().classConstructor=t.cloneNode(n),n}e.emitNode?.classThis&&(Et().classThis=e.emitNode.classThis),n&2&&(u??=d());let f=CB(e.modifiers,N,Du),p=CB(e.heritageClauses,P,fj),{members:m,prologue:_}=ut(e),v=t.updateClassExpression(e,f,e.name,void 0,p,m),y=[];if(_&&y.push(_),(g||Ap(e)&32)&&F(a,e=>VO(e)||Su(e)||h&&SV(e))||F(O))if(i)H.assertIsDefined(ee,`Decorated classes transformed by TypeScript are expected to be within a variable declaration.`),F(O)&&Ee(ee,k(O,t.createExpressionStatement)),F(a)&&pt(ee,a,e.emitNode?.classThis??t.getInternalName(e)),u?y.push(t.createAssignment(u,v)):g&&e.emitNode?.classThis?y.push(t.createAssignment(e.emitNode.classThis,v)):y.push(v);else{if(u??=d(),o){yt();let n=t.cloneNode(u);n.emitNode.autoGenerate.flags&=-9,D[$B(e)]=n}y.push(t.createAssignment(u,v)),Ee(y,O),Ee(y,ht(a,u)),y.push(t.cloneNode(u))}else y.push(v);return y.length>1&&(WE(v,131072),y.forEach(HM)),t.inlineExpressions(y)}function ct(t){if(!g)return PB(t,oe,e)}function lt(e){if(v&&ae&&VO(ae)&&te?.data){let{classThis:t,classConstructor:n}=te.data;return t??n??e}return e}function ut(e){let n=!!(Ap(e)&32);if(g||w){for(let t of e.members)Su(t)&&(Te(t)?Ft(t,t.name,kt):AV(Dt(),t.name,{kind:`untransformed`}));if(g&&F(et(e))&&R(),Fe()){for(let r of e.members)if(Vu(r)){let e=t.getGeneratedPrivateNameForNode(r.name,void 0,`_accessor_storage`);g||n&&eb(r)?Ft(r,e,At):AV(Dt(),e,{kind:`untransformed`})}}}let i=CB(e.members,ue,Ru),a;F(i,HO)||(a=dt(void 0,e));let o,s;if(!g&&F(O)){let e=t.createExpressionStatement(t.inlineExpressions(O));if(e.transformFlags&134234112){let n=t.createTempVariable(r),i=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([e]));o=t.createAssignment(n,i),e=t.createExpressionStatement(t.createCallExpression(n,void 0,[]))}let n=t.createBlock([e]);s=t.createClassStaticBlockDeclaration(n),O=void 0}if(a||s){let n,r=y(i,XV),o=y(i,nH);n=I(n,r),n=I(n,o),n=I(n,a),n=I(n,s);let c=r||o?E(i,e=>e!==r&&e!==o):i;n=Ee(n,c),i=X(t.createNodeArray(n),e.members)}return{members:i,prologue:o}}function R(){let{weakSetName:e}=Dt().data;H.assert(e,`weakSetName should be set in private identifier environment`),Ot().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier(`WeakSet`),void 0,[])))}function dt(n,r){if(n=Q(n,oe,HO),!te?.data||!(te.data.facts&16))return n;let i=K_(r),a=!!(i&&BM(i.expression).kind!==106),o=DB(n?n.parameters:void 0,oe,e),s=ft(r,n,a);return s?n?(H.assert(o),t.updateConstructorDeclaration(n,void 0,o,s)):HM(zE(X(t.createConstructorDeclaration(void 0,o??[],s),n||r),n)):n}function z(e,n,r,i,a,o,s){let c=i[a],l=n[c];if(Ee(e,CB(n,oe,Bd,r,c-r)),r=c+1,vA(l)){let n=[];z(n,l.tryBlock.statements,0,i,a+1,o,s),X(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),Q(l.catchClause,oe,pj),Q(l.finallyBlock,oe,tA)))}else{for(Ee(e,CB(n,oe,Bd,c,1));r!!e.initializer||vO(e.name)||ib(e)));let l=et(n),u=F(c)||F(l);if(!r&&!u)return jB(void 0,oe,e);o();let f=!r&&a,p=0,m=[],h=[],g=t.createThis();if(xt(h,l,g),r){let e=E(s,e=>kc(Bc(e),r)),t=E(c,e=>!kc(Bc(e),r));pt(h,e,g),pt(h,t,g)}else pt(h,c,g);if(r?.body){p=t.copyPrologue(r.body.statements,m,!1,oe);let e=_V(r.body.statements,p);if(e.length)z(m,r.body.statements,p,e,0,h,r);else{for(;p=m.length?r.body.multiLine??m.length>0:m.length>0;return X(t.createBlock(X(t.createNodeArray(m),r?.body?.statements??n.members),_),r?.body)}function pt(e,t,n){for(let r of t){if($y(r)&&!g)continue;let t=mt(r,n);t&&e.push(t)}}function mt(e,n){let r=VO(e)?Oe(e,Je,e):gt(e,n);if(!r)return;let i=t.createExpressionStatement(r);zE(i,e),WE(i,kp(e)&3072),eD(i,e);let a=Bc(e);return FO(a)?(JE(i,a),HE(i)):JE(i,ux(e)),nD(r,void 0),aD(r,void 0),ib(a)&&WE(i,3072),i}function ht(e,t){let n=[];for(let r of e){let e=VO(r)?Oe(r,Je,r):Oe(r,()=>gt(r,t),void 0);e&&(HM(e),zE(e,r),WE(e,kp(r)&3072),JE(e,ux(r)),eD(e,r),n.push(e))}return n}function gt(e,t){let n=ae,r=_t(e,t);return r&&eb(e)&&te?.data?.facts&&(zE(r,e),WE(r,4),JE(r,qE(e.name)),ne.set(Bc(e),te)),ae=n,r}function _t(n,r){let i=!d;wv(n,Ye)&&(n=fH(e,n));let a=ib(n)?t.getGeneratedPrivateNameForNode(n.name):NO(n.name)&&!fV(n.name.expression)?t.updateComputedPropertyName(n.name,t.getGeneratedNameForNode(n.name)):n.name;if(eb(n)&&(ae=n),vO(a)&&Te(n)){let e=Rt(a);if(e)return e.kind===`f`?e.isStatic?yH(t,e.variableName,Q(n.initializer,oe,q)):ore(t,r,Q(n.initializer,oe,q),e.brandCheckIdentifier):void 0;H.fail(`Undeclared private name for property declaration.`)}if((vO(a)||eb(n))&&!n.initializer)return;let o=Bc(n);if(Qy(o,64))return;let s=Q(n.initializer,oe,q);if(kc(o,o.parent)&&Y(a)){let e=t.cloneNode(a);s?(kk(s)&&FM(s.expression)&&QD(s.expression.left,`___runInitializers`)&&Pk(s.expression.right)&&$D(s.expression.right.expression)&&(s=s.expression.left),s=t.inlineExpressions([s,e])):s=e,UE(a,3168),JE(e,o.name),UE(e,3072)}else s??=t.createVoidZero();if(i||vO(a)){let e=mM(t,r,a,a);return WE(e,1024),t.createAssignment(e,s)}else{let e=NO(a)?a.expression:Y(a)?t.createStringLiteral(Wc(a.escapedText)):a,n=t.createPropertyDescriptor({value:s,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(r,e,n)}}function yt(){T&1||(T|=1,e.enableSubstitution(80),D=[])}function bt(){T&2||(T|=2,e.enableSubstitution(110),e.enableEmitNotification(263),e.enableEmitNotification(219),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(175),e.enableEmitNotification(173),e.enableEmitNotification(168))}function xt(e,n,r){if(!g||!F(n))return;let{weakSetName:i}=Dt().data;H.assert(i,`weakSetName should be set in private identifier environment`),e.push(t.createExpressionStatement(bH(t,r,i)))}function St(e){return Ck(e)?t.updatePropertyAccessExpression(e,t.createVoidZero(),e.name):t.updateElementAccessExpression(e,t.createVoidZero(),Q(e.argumentExpression,oe,q))}function Ct(e,n){if(NO(e)){let i=LN(e),a=Q(e.expression,oe,q),o=Zl(a),l=fV(o);if(!(i||kb(o)&&yu(o.left))&&!l&&n){let n=t.getGeneratedNameForNode(e);return c.hasNodeCheckFlag(e,32768)?s(n):r(n),t.createAssignment(n,a)}return l||Y(o)?void 0:a}}function wt(){te={previous:te,data:void 0}}function Tt(){te=te?.previous}function Et(){return H.assert(te),te.data??={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0}}function Dt(){return H.assert(te),te.privateEnv??=OV({className:void 0,weakSetName:void 0})}function Ot(){return O??=[]}function kt(e,t,n,r,i,a,o){Vu(e)?Pt(e,t,n,r,i,a):RO(e)?At(e,t,n,r,i,a):BO(e)?jt(e,t,n,r,i,a):UO(e)?Mt(e,t,n,r,i,a,o):WO(e)&&Nt(e,t,n,r,i,a,o)}function At(e,n,r,i,a,o,s){if(a)AV(i,n,{kind:`f`,isStatic:!0,brandCheckIdentifier:H.checkDefined(r.classThis??r.classConstructor,`classConstructor should be set in private identifier environment`),variableName:Lt(n),isValid:o});else{let e=Lt(n);AV(i,n,{kind:`f`,isStatic:!1,brandCheckIdentifier:e,isValid:o}),Ot().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier(`WeakMap`),void 0,[])))}}function jt(e,t,n,r,i,a,o){AV(r,t,{kind:`m`,methodName:Lt(t),brandCheckIdentifier:i?H.checkDefined(n.classThis??n.classConstructor,`classConstructor should be set in private identifier environment`):H.checkDefined(r.data.weakSetName,`weakSetName should be set in private identifier environment`),isStatic:i,isValid:a})}function Mt(e,t,n,r,i,a,o){let s=Lt(t,`_get`),c=i?H.checkDefined(n.classThis??n.classConstructor,`classConstructor should be set in private identifier environment`):H.checkDefined(r.data.weakSetName,`weakSetName should be set in private identifier environment`);o?.kind===`a`&&o.isStatic===i&&!o.getterName?o.getterName=s:AV(r,t,{kind:`a`,getterName:s,setterName:void 0,brandCheckIdentifier:c,isStatic:i,isValid:a})}function Nt(e,t,n,r,i,a,o){let s=Lt(t,`_set`),c=i?H.checkDefined(n.classThis??n.classConstructor,`classConstructor should be set in private identifier environment`):H.checkDefined(r.data.weakSetName,`weakSetName should be set in private identifier environment`);o?.kind===`a`&&o.isStatic===i&&!o.setterName?o.setterName=s:AV(r,t,{kind:`a`,getterName:void 0,setterName:s,brandCheckIdentifier:c,isStatic:i,isValid:a})}function Pt(e,t,n,r,i,a,o){AV(r,t,{kind:`a`,getterName:Lt(t,`_get`),setterName:Lt(t,`_set`),brandCheckIdentifier:i?H.checkDefined(n.classThis??n.classConstructor,`classConstructor should be set in private identifier environment`):H.checkDefined(r.data.weakSetName,`weakSetName should be set in private identifier environment`),isStatic:i,isValid:a})}function Ft(e,t,n){let r=Et(),i=Dt(),a=kV(i,t);n(e,t,r,i,eb(e),!xH(t)&&a===void 0,a)}function It(e,n,i){let{className:a}=Dt().data,o=a?{prefix:`_`,node:a,suffix:`_`}:`_`,l=typeof e==`object`?t.getGeneratedNameForNode(e,24,o,i):typeof e==`string`?t.createUniqueName(e,16,o,i):t.createTempVariable(void 0,!0,o,i);return c.hasNodeCheckFlag(n,32768)?s(l):r(l),l}function Lt(e,t){return It(dm(e)?.substring(1)??e,e,t)}function Rt(e){let t=jV(te,e);return t?.kind===`untransformed`?void 0:t}function zt(n){let i=t.getGeneratedNameForNode(n),a=Rt(n.name);if(!a)return PB(n,oe,e);let o=n.expression;return(Nh(n)||Mh(n)||!dV(n.expression))&&(o=t.createTempVariable(r,!0),Ot().push(t.createBinaryExpression(o,64,Q(n.expression,oe,q)))),t.createAssignmentTargetWrapper(i,$e(a,o,i,64))}function Bt(n){if(Sk(n)||xk(n))return Jt(n);if(Cu(n))return zt(n);if(b&&ae&&Mh(n)&&CH(ae)&&te?.data){let{classConstructor:e,superClassReference:r,facts:i}=te.data;if(i&1)return St(n);if(e&&r){let i=wk(n)?Q(n.argumentExpression,oe,q):Y(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(i){let n=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(n,t.createReflectSetCall(r,i,n,e))}}}return PB(n,oe,e)}function Vt(n){if(wv(n,Ye)&&(n=fH(e,n)),kb(n,!0)){let e=Bt(n.left),r=Q(n.right,oe,q);return t.updateBinaryExpression(n,e,n.operatorToken,r)}return Bt(n)}function Ht(n){if(fd(n.expression)){let e=Bt(n.expression);return t.updateSpreadElement(n,e)}return PB(n,oe,e)}function Ut(t){if(ad(t)){if(Hk(t))return Ht(t);if(!Wk(t))return Vt(t)}return PB(t,oe,e)}function Wt(n){let r=Q(n.name,oe,ku);if(kb(n.initializer,!0)){let e=Vt(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(fd(n.initializer)){let e=Bt(n.initializer);return t.updatePropertyAssignment(n,r,e)}return PB(n,oe,e)}function Gt(t){return wv(t,Ye)&&(t=fH(e,t)),PB(t,oe,e)}function Kt(n){if(fd(n.expression)){let e=Bt(n.expression);return t.updateSpreadAssignment(n,e)}return PB(n,oe,e)}function qt(t){return H.assertNode(t,rd),gj(t)?Kt(t):hj(t)?Gt(t):mj(t)?Wt(t):PB(t,oe,e)}function Jt(e){return xk(e)?t.updateArrayLiteralExpression(e,CB(e.elements,Ut,q)):t.updateObjectLiteralExpression(e,CB(e.properties,qt,qu))}function Yt(e,t,n){let r=Bc(t),i=ne.get(r);if(i){let a=te,o=j;te=i,j=A,A=!VO(r)||!(Ap(r)&32),C(e,t,n),A=j,j=o,te=a;return}switch(t.kind){case 219:if(jk(r)||kp(t)&524288)break;case 263:case 177:case 178:case 179:case 175:case 173:{let r=te,i=j;te=void 0,j=A,A=!1,C(e,t,n),A=j,j=i,te=r;return}case 168:{let r=te,i=A;te=te?.previous,A=j,C(e,t,n),A=i,te=r;return}}C(e,t,n)}function Xt(e,t){return t=S(e,t),e===1?Zt(t):t}function Zt(e){switch(e.kind){case 80:return B(e);case 110:return Qt(e)}return e}function Qt(e){if(T&2&&te?.data&&!re.has(e)){let{facts:n,classConstructor:r,classThis:i}=te.data,a=A?i??r:r;if(a)return X(zE(t.cloneNode(a),e),e);if(n&1&&f)return t.createParenthesizedExpression(t.createVoidZero())}return e}function B(e){return $t(e)||e}function $t(e){if(T&1&&c.hasNodeCheckFlag(e,536870912)){let n=c.getReferencedValueDeclaration(e);if(n){let r=D[n.id];if(r){let n=t.cloneNode(r);return JE(n,e),eD(n,e),n}}}}}function yH(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment(`value`,n||e.createVoidZero())]))}function ore(e,t,n,r){return e.createCallExpression(e.createPropertyAccessExpression(r,`set`),void 0,[t,n||e.createVoidZero()])}function bH(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,`add`),void 0,[t])}function xH(e){return!bu(e)&&e.escapedText===`#constructor`}function sre(e){return vO(e.left)&&e.operatorToken.kind===103}function SH(e){return RO(e)&&eb(e)}function CH(e){return VO(e)||SH(e)}function wH(e){let{factory:t,hoistVariableDeclaration:n}=e,r=e.getEmitResolver(),i=e.getCompilerOptions(),a=zS(i),o=sC(i,`strictNullChecks`),s,c;return{serializeTypeNode:(e,t)=>l(e,h,t),serializeTypeOfNode:(e,t,n)=>l(e,d,t,n),serializeParameterTypesOfNode:(e,t,n)=>l(e,f,t,n),serializeReturnTypeOfNode:(e,t)=>l(e,m,t)};function l(e,t,n,r){let i=s,a=c;s=e.currentLexicalScope,c=e.currentNameScope;let o=r===void 0?t(n):t(n,r);return s=i,c=a,o}function u(e,t){let n=Iy(t.members,e);return n.setAccessor&&ky(n.setAccessor)||n.getAccessor&&zy(n.getAccessor)}function d(e,n){switch(e.kind){case 173:case 170:return h(e.type);case 179:case 178:return h(u(e,n));case 264:case 232:case 175:return t.createIdentifier(`Function`);default:return t.createVoidZero()}}function f(e,n){let r=zu(e)?Dy(e):ju(e)&&ip(e.body)?e:void 0,i=[];if(r){let e=p(r,n),t=e.length;for(let r=0;re.parent&&sk(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e)))return t.createIdentifier(`Object`);let r=x(e.typeName),a=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(a,r),`function`),void 0,a,void 0,t.createIdentifier(`Object`));case 1:return S(e.typeName);case 2:return t.createVoidZero();case 4:return T(`BigInt`,7);case 6:return t.createIdentifier(`Boolean`);case 3:return t.createIdentifier(`Number`);case 5:return t.createIdentifier(`String`);case 7:return t.createIdentifier(`Array`);case 8:return T(`Symbol`,2);case 10:return t.createIdentifier(`Function`);case 9:return t.createIdentifier(`Promise`);case 11:return t.createIdentifier(`Object`);default:return H.assertNever(i)}}function b(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral(`undefined`)),n)}function x(e){if(e.kind===80){let t=S(e);return b(t,t)}if(e.left.kind===80)return b(S(e.left),S(e));let r=x(e.left),i=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(r.left,t.createStrictInequality(t.createAssignment(i,r.right),t.createVoidZero())),t.createPropertyAccessExpression(i,e.right))}function S(e){switch(e.kind){case 80:let t=Zw(X(qN.cloneNode(e),e),e.parent);return t.original=void 0,Zw(t,Hc(s)),t;case 167:return C(e)}}function C(e){return t.createPropertyAccessExpression(S(e.left),e.right)}function w(e){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(e),`function`),void 0,t.createIdentifier(e),void 0,t.createIdentifier(`Object`))}function T(e,n){return aON(e)||IO(e)?void 0:e,Wu),s=ux(e),c=ce(e),l=a<2?t.getInternalName(e,!1,!0):t.getLocalName(e,!1,!0),d=CB(e.heritageClauses,u,fj),f=CB(e.members,u,Ru),p=[];({members:f,decorationStatements:p}=h(e,f));let m=a>=9&&!!c&&F(f,e=>RO(e)&&Qy(e,256)||VO(e));m&&(f=X(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(c,t.createThis()))])),...f]),f));let g=t.createClassExpression(o,n&&yu(n)?void 0:n,void 0,d,f);zE(g,e),X(g,s);let _=c&&!m?t.createAssignment(c,g):g,v=t.createVariableDeclaration(l,void 0,void 0,_);zE(v,e);let y=t.createVariableDeclarationList([v],1),b=t.createVariableStatement(void 0,y);zE(b,e),X(b,s),eD(b,e);let x=[b];if(Ee(x,p),A(x,e),r)if(i){let e=t.createExportDefault(l);x.push(e)}else{let n=t.createExternalModuleExport(t.getDeclarationName(e));x.push(n)}return x}function v(e){return t.updateClassExpression(e,CB(e.modifiers,l,Du),e.name,void 0,CB(e.heritageClauses,u,fj),CB(e.members,u,Ru))}function y(e){return t.updateConstructorDeclaration(e,CB(e.modifiers,l,Du),CB(e.parameters,u,FO),Q(e.body,u,tA))}function b(e,t){return e!==t&&(eD(e,t),JE(e,ux(t))),e}function x(e){return b(t.updateMethodDeclaration(e,CB(e.modifiers,l,Du),e.asteriskToken,H.checkDefined(Q(e.name,u,ku)),void 0,void 0,CB(e.parameters,u,FO),void 0,Q(e.body,u,tA)),e)}function S(e){return b(t.updateGetAccessorDeclaration(e,CB(e.modifiers,l,Du),H.checkDefined(Q(e.name,u,ku)),CB(e.parameters,u,FO),void 0,Q(e.body,u,tA)),e)}function C(e){return b(t.updateSetAccessorDeclaration(e,CB(e.modifiers,l,Du),H.checkDefined(Q(e.name,u,ku)),CB(e.parameters,u,FO),Q(e.body,u,tA)),e)}function w(e){if(!(e.flags&33554432||Qy(e,128)))return b(t.updatePropertyDeclaration(e,CB(e.modifiers,l,Du),H.checkDefined(Q(e.name,u,ku)),void 0,void 0,Q(e.initializer,u,q)),e)}function T(e){let n=t.updateParameterDeclaration(e,kN(t,e.modifiers),e.dotDotDotToken,H.checkDefined(Q(e.name,u,Au)),void 0,void 0,Q(e.initializer,u,q));return n!==e&&(eD(n,e),X(n,ux(e)),JE(n,ux(e)),UE(n.name,64)),n}function D(e){return QD(e.expression,`___metadata`)}function O(e){if(!e)return;let{false:t,true:n}=ot(e.decorators,D),r=[];return Ee(r,k(t,M)),Ee(r,re(e.parameters,N)),Ee(r,k(n,M)),r}function ee(e,n,r){Ee(e,k(ie(n,r),e=>t.createExpressionStatement(e)))}function te(e,t,n){return Bh(!0,e,n)&&t===$y(e)}function ne(e,t){return E(e.members,n=>te(n,t,e))}function ie(e,t){let n=ne(e,t),r;for(let t of n)r=I(r,ae(e,t));return r}function ae(e,r){let i=O(EV(r,e,!0));if(!i)return;let a=le(e,r),o=oe(r,!Qy(r,128)),s=RO(r)&&!ib(r)?t.createVoidZero():t.createNull(),c=n().createDecorateHelper(i,a,o,s);return UE(c,3072),JE(c,ux(r)),c}function A(e,n){let r=j(n);r&&e.push(zE(t.createExpressionStatement(r),n))}function j(e){let r=O(TV(e,!0));if(!r)return;let i=s&&s[$B(e)],o=a<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),c=n().createDecorateHelper(r,o),l=t.createAssignment(o,i?t.createAssignment(i,c):c);return UE(l,3072),JE(l,ux(e)),l}function M(e){return H.checkDefined(Q(e.expression,u,q))}function N(e,t){let r;if(e){r=[];for(let i of e){let e=n().createParamHelper(M(i),t);X(e,i.expression),UE(e,3072),r.push(e)}}return r}function oe(e,n){let r=e.name;return vO(r)?t.createIdentifier(``):NO(r)?n&&!fV(r.expression)?t.getGeneratedNameForNode(r):r.expression:Y(r)?t.createStringLiteral(Gc(r)):t.cloneNode(r)}function se(){s||=(e.enableSubstitution(80),[])}function ce(e){if(i.hasNodeCheckFlag(e,262144)){se();let n=t.createUniqueName(e.name&&!yu(e.name)?Gc(e.name):`default`);return s[$B(e)]=n,r(n),n}}function P(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),`prototype`)}function le(e,n){return $y(n)?t.getDeclarationName(e):P(e)}function ue(e,t){return t=o(e,t),e===1?de(t):t}function de(e){switch(e.kind){case 80:return fe(e)}return e}function fe(e){return pe(e)??e}function pe(e){if(s&&i.hasNodeCheckFlag(e,536870912)){let n=i.getReferencedValueDeclaration(e);if(n){let r=s[n.id];if(r){let n=t.cloneNode(r);return JE(n,e),eD(n,e),n}}}}}function EH(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,o=zS(e.getCompilerOptions()),s,c,l,u,d,f;return nV(e,p);function p(t){s=void 0,f=!1;let n=PB(t,w,e);return dD(n,e.readEmitHelpers()),f&&=(KE(n,32),!1),n}function m(){switch(c=void 0,l=void 0,u=void 0,s?.kind){case`class`:c=s.classInfo;break;case`class-element`:c=s.next.classInfo,l=s.classThis,u=s.classSuper;break;case`name`:let e=s.next.next.next;e?.kind===`class-element`&&(c=e.next.classInfo,l=e.classThis,u=e.classSuper);break}}function h(e){s={kind:`class`,next:s,classInfo:e,savedPendingExpressions:d},d=void 0,m()}function g(){H.assert(s?.kind===`class`,`Incorrect value for top.kind.`,()=>`Expected top.kind to be 'class' but got '${s?.kind}' instead.`),d=s.savedPendingExpressions,s=s.next,m()}function _(e){H.assert(s?.kind===`class`,`Incorrect value for top.kind.`,()=>`Expected top.kind to be 'class' but got '${s?.kind}' instead.`),s={kind:`class-element`,next:s},(VO(e)||RO(e)&&eb(e))&&(s.classThis=s.next.classInfo?.classThis,s.classSuper=s.next.classInfo?.classSuper),m()}function v(){H.assert(s?.kind===`class-element`,`Incorrect value for top.kind.`,()=>`Expected top.kind to be 'class-element' but got '${s?.kind}' instead.`),H.assert(s.next?.kind===`class`,`Incorrect value for top.next.kind.`,()=>`Expected top.next.kind to be 'class' but got '${s.next?.kind}' instead.`),s=s.next,m()}function y(){H.assert(s?.kind===`class-element`,`Incorrect value for top.kind.`,()=>`Expected top.kind to be 'class-element' but got '${s?.kind}' instead.`),s={kind:`name`,next:s},m()}function b(){H.assert(s?.kind===`name`,`Incorrect value for top.kind.`,()=>`Expected top.kind to be 'name' but got '${s?.kind}' instead.`),s=s.next,m()}function x(){s?.kind===`other`?(H.assert(!d),s.depth++):(s={kind:`other`,next:s,depth:0,savedPendingExpressions:d},d=void 0,m())}function S(){H.assert(s?.kind===`other`,`Incorrect value for top.kind.`,()=>`Expected top.kind to be 'other' but got '${s?.kind}' instead.`),s.depth>0?(H.assert(!d),s.depth--):(d=s.savedPendingExpressions,s=s.next,m())}function C(e){return!!(e.transformFlags&33554432)||!!l&&!!(e.transformFlags&16384)||!!l&&!!u&&!!(e.transformFlags&134217728)}function w(t){if(!C(t))return t;switch(t.kind){case 171:return H.fail("Use `modifierVisitor` instead.");case 264:return A(t);case 232:return j(t);case 177:case 173:case 176:return H.fail(`Not supported outside of a class. Use 'classElementVisitor' instead.`);case 170:return ve(t);case 227:return Ce(t,!1);case 304:return Ae(t);case 261:return je(t);case 209:return Me(t);case 278:return We(t);case 110:return pe(t);case 249:return xe(t);case 245:return Se(t);case 357:return Te(t,!1);case 218:return L(t,!1);case 356:return Ge(t);case 214:return me(t);case 216:return he(t);case 225:case 226:return we(t,!1);case 212:return ge(t);case 213:return _e(t);case 168:return ke(t);case 175:case 179:case 178:case 219:case 263:{x();let n=PB(t,T,e);return S(),n}default:return PB(t,T,e)}}function T(e){switch(e.kind){case 171:return;default:return w(e)}}function E(e){switch(e.kind){case 171:return;default:return e}}function D(e){switch(e.kind){case 177:return oe(e);case 175:return P(e);case 178:return le(e);case 179:return ue(e);case 173:return fe(e);case 176:return de(e);default:return w(e)}}function O(e){switch(e.kind){case 225:case 226:return we(e,!0);case 227:return Ce(e,!0);case 357:return Te(e,!0);case 218:return L(e,!0);default:return w(e)}}function ee(e){let t=e.name&&Y(e.name)&&!yu(e.name)?Gc(e.name):e.name&&vO(e.name)&&!yu(e.name)?Gc(e.name).slice(1):e.name&&tO(e.name)&&Ws(e.name.text,99)?e.name.text:zu(e)?`class`:`member`;return ef(e)&&(t=`get_${t}`),$d(e)&&(t=`set_${t}`),e.name&&vO(e.name)&&(t=`private_${t}`),$y(e)&&(t=`static_${t}`),`_`+t}function te(e,n){return t.createUniqueName(`${ee(e)}_${n}`,24)}function ne(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function re(e){let r=t.createUniqueName(`_metadata`,48),i,a,o=!1,s=!1,c=!1,l,u,d;if(zh(!1,e)){let n=F(e.members,e=>(Su(e)||Vu(e))&&eb(e));l=t.createUniqueName(`_classThis`,n?24:48)}for(let r of e.members){if(Uu(r)&&Bh(!1,r,e))if(eb(r)){if(!a){a=t.createUniqueName(`_staticExtraInitializers`,48);let r=n().createRunInitializersHelper(l??t.createThis(),a);JE(r,e.name??lx(e)),u??=[],u.push(r)}}else{if(!i){i=t.createUniqueName(`_instanceExtraInitializers`,48);let r=n().createRunInitializersHelper(t.createThis(),i);JE(r,e.name??lx(e)),d??=[],d.push(r)}i??=t.createUniqueName(`_instanceExtraInitializers`,48)}if(VO(r)?nH(r)||(o=!0):RO(r)&&(eb(r)?o||=!!r.initializer||ob(r):s||=!Zp(r)),(Su(r)||Vu(r))&&eb(r)&&(c=!0),a&&i&&o&&s&&c)break}return{class:e,classThis:l,metadataReference:r,instanceMethodExtraInitializersName:i,staticMethodExtraInitializersName:a,hasStaticInitializers:o,hasNonAmbientInstanceFields:s,hasStaticPrivateClassElements:c,pendingStaticInitializers:u,pendingInstanceInitializers:d}}function ie(a){r(),!iH(a)&&Hh(!1,a)&&(a=aH(e,a,t.createStringLiteral(``)));let o=t.getLocalName(a,!1,!1,!0),s=re(a),c=[],l,u,p,m,_=!1,v=Ye(TV(a,!1));v&&(s.classDecoratorsName=t.createUniqueName(`_classDecorators`,48),s.classDescriptorName=t.createUniqueName(`_classDescriptor`,48),s.classExtraInitializersName=t.createUniqueName(`_classExtraInitializers`,48),H.assertIsDefined(s.classThis),c.push(ne(s.classDecoratorsName,t.createArrayLiteralExpression(v)),ne(s.classDescriptorName),ne(s.classExtraInitializersName,t.createArrayLiteralExpression()),ne(s.classThis)),s.hasStaticPrivateClassElements&&(_=!0,f=!0));let y=Z_(a.heritageClauses,96),b=y&&Pe(y.types),x=b&&Q(b.expression,w,q);if(x){s.classSuper=t.createUniqueName(`_classSuper`,48);let e=BM(x),n=Uk(e)&&!e.name||Ak(e)&&!e.name||jk(e)?t.createComma(t.createNumericLiteral(0),x):x;c.push(ne(s.classSuper,n));let r=t.updateExpressionWithTypeArguments(b,s.classSuper,void 0),i=t.updateHeritageClause(y,[r]);m=t.createNodeArray([i])}let S=s.classThis??t.createThis();h(s),l=I(l,at(s.metadataReference,s.classSuper));let C=a.members;if(C=CB(C,e=>HO(e)?e:D(e),Ru),C=CB(C,e=>HO(e)?D(e):e,Ru),d){let n;for(let r of d){r=Q(r,function r(i){if(!(i.transformFlags&16384))return i;switch(i.kind){case 110:return n||(n=t.createUniqueName(`_outerThis`,16),c.unshift(ne(n,t.createThis()))),n;default:return PB(i,r,e)}},q);let i=t.createExpressionStatement(r);l=I(l,i)}d=void 0}if(g(),F(s.pendingInstanceInitializers)&&!Dy(a)){let e=M(a,s);if(e){let n=K_(a),r=!!(n&&BM(n.expression).kind!==106),i=[];if(r){let e=t.createSpreadElement(t.createIdentifier(`arguments`)),n=t.createCallExpression(t.createSuper(),void 0,[e]);i.push(t.createExpressionStatement(n))}Ee(i,e);let o=t.createBlock(i,!0);p=t.createConstructorDeclaration(void 0,[],o)}}if(s.staticMethodExtraInitializersName&&c.push(ne(s.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),s.instanceMethodExtraInitializersName&&c.push(ne(s.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),s.memberInfos&&Mf(s.memberInfos,(e,n)=>{$y(n)&&(c.push(ne(e.memberDecoratorsName)),e.memberInitializersName&&c.push(ne(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(ne(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(ne(e.memberDescriptorName)))}),s.memberInfos&&Mf(s.memberInfos,(e,n)=>{$y(n)||(c.push(ne(e.memberDecoratorsName)),e.memberInitializersName&&c.push(ne(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberExtraInitializersName&&c.push(ne(e.memberExtraInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(ne(e.memberDescriptorName)))}),l=Ee(l,s.staticNonFieldDecorationStatements),l=Ee(l,s.nonStaticNonFieldDecorationStatements),l=Ee(l,s.staticFieldDecorationStatements),l=Ee(l,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){l??=[];let e=t.createPropertyAssignment(`value`,S),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(s.classDescriptorName,r),c=t.createPropertyAccessExpression(S,`name`),u=n().createESDecorateHelper(t.createNull(),i,s.classDecoratorsName,{kind:`class`,name:c,metadata:s.metadataReference},t.createNull(),s.classExtraInitializersName),d=t.createExpressionStatement(u);JE(d,lx(a)),l.push(d);let f=t.createPropertyAccessExpression(s.classDescriptorName,`value`),p=t.createAssignment(s.classThis,f),m=t.createAssignment(o,p);l.push(t.createExpressionStatement(m))}if(l.push(ot(S,s.metadataReference)),F(s.pendingStaticInitializers)){for(let e of s.pendingStaticInitializers){let n=t.createExpressionStatement(e);JE(n,qE(e)),u=I(u,n)}s.pendingStaticInitializers=void 0}if(s.classExtraInitializersName){let e=n().createRunInitializersHelper(S,s.classExtraInitializersName),r=t.createExpressionStatement(e);JE(r,a.name??lx(a)),u=I(u,r)}l&&u&&!s.hasStaticInitializers&&(Ee(l,u),u=void 0);let T=l&&t.createClassStaticBlockDeclaration(t.createBlock(l,!0));T&&_&&GE(T,32);let E=u&&t.createClassStaticBlockDeclaration(t.createBlock(u,!0));if(T||p||E){let e=[],n=C.findIndex(nH);T?(Ee(e,C,0,n+1),e.push(T),Ee(e,C,n+1)):Ee(e,C),p&&e.push(p),E&&e.push(E),C=X(t.createNodeArray(e),C)}let O=i(),k;if(v){k=t.createClassExpression(void 0,void 0,void 0,m,C),s.classThis&&(k=QV(t,k,s.classThis));let e=t.createVariableDeclaration(o,void 0,void 0,k),n=t.createVariableDeclarationList([e]),r=s.classThis?t.createAssignment(o,s.classThis):o;c.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else k=t.createClassExpression(void 0,a.name,void 0,m,C),c.push(t.createReturnStatement(k));if(_){KE(k,32);for(let e of k.members)(Su(e)||Vu(e))&&eb(e)&&KE(e,32)}return zE(k,a),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(c,O))}function ae(e){return Hh(!1,e)||Vh(!1,e)}function A(n){if(ae(n)){let r=[],i=Bc(n,zu)??n,a=i.name?t.createStringLiteralFromNode(i.name):t.createStringLiteral(`default`),o=Qy(n,32),s=Qy(n,2048);if(n.name||(n=aH(e,n,a)),o&&s){let e=ie(n);if(n.name){let i=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);zE(i,n);let a=t.createVariableDeclarationList([i],1),o=t.createVariableStatement(void 0,a);r.push(o);let s=t.createExportDefault(t.getDeclarationName(n));zE(s,n),eD(s,$E(n)),JE(s,lx(n)),r.push(s)}else{let i=t.createExportDefault(e);zE(i,n),eD(i,$E(n)),JE(i,lx(n)),r.push(i)}}else{H.assertIsDefined(n.name,`A class declaration that is not a default export must have a name.`);let e=ie(n),i=o?e=>yO(e)?void 0:E(e):E,a=CB(n.modifiers,i,Du),s=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(s,void 0,void 0,e);zE(c,n);let l=t.createVariableDeclarationList([c],1),u=t.createVariableStatement(a,l);if(zE(u,n),eD(u,$E(n)),r.push(u),o){let e=t.createExternalModuleExport(s);zE(e,n),r.push(e)}}return He(r)}else{let e=CB(n.modifiers,E,Du),r=CB(n.heritageClauses,w,fj);h(void 0);let i=CB(n.members,D,Ru);return g(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}function j(e){if(ae(e)){let t=ie(e);return zE(t,e),t}else{let n=CB(e.modifiers,E,Du),r=CB(e.heritageClauses,w,fj);h(void 0);let i=CB(e.members,D,Ru);return g(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}function M(e,n){if(F(n.pendingInstanceInitializers)){let e=[];return e.push(t.createExpressionStatement(t.inlineExpressions(n.pendingInstanceInitializers))),n.pendingInstanceInitializers=void 0,e}}function N(e,n,r,i,a,o){let s=i[a],c=n[s];if(Ee(e,CB(n,w,Bd,r,s-r)),vA(c)){let n=[];N(n,c.tryBlock.statements,0,i,a+1,o),X(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),Q(c.catchClause,w,pj),Q(c.finallyBlock,w,tA)))}else Ee(e,CB(n,w,Bd,s,1)),Ee(e,o);Ee(e,CB(n,w,Bd,s+1))}function oe(e){_(e);let n=CB(e.modifiers,E,Du),r=CB(e.parameters,w,FO),i;if(e.body&&c){let n=M(c.class,c);if(n){let r=[],a=t.copyPrologue(e.body.statements,r,!1,w),o=_V(e.body.statements,a);o.length>0?N(r,e.body.statements,a,o,0,n):(Ee(r,n),Ee(r,CB(e.body.statements,w,Bd))),i=t.createBlock(r,!0),zE(i,e.body),X(i,e.body)}}return i??=Q(e.body,w,tA),v(),t.updateConstructorDeclaration(e,n,r,i)}function se(e,t){return e!==t&&(eD(e,t),JE(e,lx(t))),e}function ce(e,r,i){let a,o,s,c,l,u;if(!r){let t=CB(e.modifiers,E,Du);return y(),o=Oe(e.name),b(),{modifiers:t,referencedName:a,name:o,initializersName:s,descriptorName:u,thisArg:l}}let f=Ye(EV(e,r.class,!1)),p=CB(e.modifiers,E,Du);if(f){let m=te(e,`decorators`),h=t.createArrayLiteralExpression(f),g=t.createAssignment(m,h),_={memberDecoratorsName:m};r.memberInfos??=new Map,r.memberInfos.set(e,_),d??=[],d.push(g);let v=Uu(e)||Vu(e)?$y(e)?r.staticNonFieldDecorationStatements??=[]:r.nonStaticNonFieldDecorationStatements??=[]:RO(e)&&!Vu(e)?$y(e)?r.staticFieldDecorationStatements??=[]:r.nonStaticFieldDecorationStatements??=[]:H.fail(),x=UO(e)?`getter`:WO(e)?`setter`:BO(e)?`method`:Vu(e)?`accessor`:RO(e)?`field`:H.fail(),S;if(Y(e.name)||vO(e.name))S={computed:!1,name:e.name};else if(hv(e.name))S={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{let n=e.name.expression;hv(n)&&!Y(n)?S={computed:!0,name:t.createStringLiteralFromNode(n)}:(y(),{referencedName:a,name:o}=De(e.name),S={computed:!0,name:a},b())}let C={kind:x,name:S,static:$y(e),private:vO(e.name),access:{get:RO(e)||UO(e)||BO(e),set:RO(e)||WO(e)},metadata:r.metadataReference};if(Uu(e)){let a=$y(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;H.assertIsDefined(a);let o;Su(e)&&i&&(o=i(e,CB(p,e=>vt(e,xO),Du)),_.memberDescriptorName=u=te(e,`descriptor`),o=t.createAssignment(u,o));let s=n().createESDecorateHelper(t.createThis(),o??t.createNull(),m,C,t.createNull(),a),c=t.createExpressionStatement(s);JE(c,lx(e)),v.push(c)}else if(RO(e)){s=_.memberInitializersName??=te(e,`initializers`),c=_.memberExtraInitializersName??=te(e,`extraInitializers`),$y(e)&&(l=r.classThis);let a;Su(e)&&ib(e)&&i&&(a=i(e,void 0),_.memberDescriptorName=u=te(e,`descriptor`),a=t.createAssignment(u,a));let o=n().createESDecorateHelper(Vu(e)?t.createThis():t.createNull(),a??t.createNull(),m,C,s,c),d=t.createExpressionStatement(o);JE(d,lx(e)),v.push(d)}}return o===void 0&&(y(),o=Oe(e.name),b()),!F(p)&&(BO(e)||RO(e))&&UE(o,1024),{modifiers:p,referencedName:a,name:o,initializersName:s,extraInitializersName:c,descriptorName:u,thisArg:l}}function P(e){_(e);let{modifiers:n,name:r,descriptorName:i}=ce(e,c,Qe);if(i)return v(),se(nt(n,r,i),e);{let i=CB(e.parameters,w,FO),a=Q(e.body,w,tA);return v(),se(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,a),e)}}function le(e){_(e);let{modifiers:n,name:r,descriptorName:i}=ce(e,c,$e);if(i)return v(),se(rt(n,r,i),e);{let i=CB(e.parameters,w,FO),a=Q(e.body,w,tA);return v(),se(t.updateGetAccessorDeclaration(e,n,r,i,void 0,a),e)}}function ue(e){_(e);let{modifiers:n,name:r,descriptorName:i}=ce(e,c,et);if(i)return v(),se(it(n,r,i),e);{let i=CB(e.parameters,w,FO),a=Q(e.body,w,tA);return v(),se(t.updateSetAccessorDeclaration(e,n,r,i,a),e)}}function de(n){_(n);let r;if(nH(n))r=PB(n,w,e);else if(XV(n)){let t=l;l=void 0,r=PB(n,w,e),l=t}else if(n=PB(n,w,e),r=n,c&&(c.hasStaticInitializers=!0,F(c.pendingStaticInitializers))){let e=[];for(let n of c.pendingStaticInitializers){let r=t.createExpressionStatement(n);JE(r,qE(n)),e.push(r)}let n=t.createBlock(e,!0);r=[t.createClassStaticBlockDeclaration(n),r],c.pendingStaticInitializers=void 0}return v(),r}function fe(o){wv(o,ye)&&(o=fH(e,o,be(o.initializer))),_(o),H.assert(!Zp(o),`Not yet implemented.`);let{modifiers:s,name:l,initializersName:u,extraInitializersName:d,descriptorName:f,thisArg:p}=ce(o,c,ib(o)?tt:void 0);r();let m=Q(o.initializer,w,q);u&&(m=n().createRunInitializersHelper(p??t.createThis(),u,m??t.createVoidZero())),$y(o)&&c&&m&&(c.hasStaticInitializers=!0);let h=i();if(F(h)&&(m=t.createImmediatelyInvokedArrowFunction([...h,t.createReturnStatement(m)])),c&&($y(o)?(m=Je(c,!0,m),d&&(c.pendingStaticInitializers??=[],c.pendingStaticInitializers.push(n().createRunInitializersHelper(c.classThis??t.createThis(),d)))):(m=Je(c,!1,m),d&&(c.pendingInstanceInitializers??=[],c.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),d))))),v(),ib(o)&&f){let e=$E(o),n=qE(o),r=o.name,i=r,c=r;if(NO(r)&&!fV(r.expression)){let e=LN(r);if(e)i=t.updateComputedPropertyName(r,Q(r.expression,w,q)),c=t.updateComputedPropertyName(r,e.left);else{let e=t.createTempVariable(a);JE(e,r.expression);let n=Q(r.expression,w,q),o=t.createAssignment(e,n);JE(o,r.expression),i=t.updateComputedPropertyName(r,o),c=t.updateComputedPropertyName(r,e)}}let l=CB(s,e=>e.kind===129?void 0:e,Du),u=PN(t,o,l,m);zE(u,o),UE(u,3072),JE(u,n),JE(u.name,o.name);let d=rt(l,i,f);zE(d,o),eD(d,e),JE(d,n);let p=it(l,c,f);return zE(p,o),UE(p,3072),JE(p,n),[u,d,p]}return se(t.updatePropertyDeclaration(o,s,l,void 0,void 0,m),o)}function pe(e){return l??e}function me(n){if(Mh(n.expression)&&l){let e=Q(n.expression,w,q),r=CB(n.arguments,w,q),i=t.createFunctionCallCall(e,l,r);return zE(i,n),X(i,n),i}return PB(n,w,e)}function he(n){if(Mh(n.tag)&&l){let e=Q(n.tag,w,q),r=t.createFunctionBindCall(e,l,[]);zE(r,n),X(r,n);let i=Q(n.template,w,dd);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return PB(n,w,e)}function ge(n){if(Mh(n)&&Y(n.name)&&l&&u){let e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(u,e,l);return zE(r,n.expression),X(r,n.expression),r}return PB(n,w,e)}function _e(n){if(Mh(n)&&l&&u){let e=Q(n.argumentExpression,w,q),r=t.createReflectGetCall(u,e,l);return zE(r,n.expression),X(r,n.expression),r}return PB(n,w,e)}function ve(n){wv(n,ye)&&(n=fH(e,n,be(n.initializer)));let r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,Q(n.name,w,Au),void 0,void 0,Q(n.initializer,w,q));return r!==n&&(eD(r,n),X(r,ux(n)),JE(r,ux(n)),UE(r.name,64)),r}function ye(e){return Uk(e)&&!e.name&&ae(e)}function be(e){let t=BM(e);return Uk(t)&&!t.name&&!Hh(!1,t)}function xe(n){return t.updateForStatement(n,Q(n.initializer,O,Dd),Q(n.condition,w,q),Q(n.incrementor,O,q),MB(n.statement,w,e))}function Se(t){return PB(t,O,e)}function Ce(n,r){if(Ab(n)){let e=Ue(n.left),r=Q(n.right,w,q);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(kb(n)){if(wv(n,ye))return n=fH(e,n,be(n.right)),PB(n,w,e);if(Mh(n.left)&&l&&u){let e=wk(n.left)?Q(n.left.argumentExpression,w,q):Y(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=Q(n.right,w,q);if(pV(n.operatorToken.kind)){let r=e;fV(e)||(r=t.createTempVariable(a),e=t.createAssignment(r,e));let o=t.createReflectGetCall(u,r,l);zE(o,n.left),X(o,n.left),i=t.createBinaryExpression(o,mV(n.operatorToken.kind),i),X(i,n)}let o=r?void 0:t.createTempVariable(a);return o&&(i=t.createAssignment(o,i),X(o,n)),i=t.createReflectSetCall(u,e,i,l),zE(i,n),X(i,n),o&&(i=t.createComma(i,o),X(i,n)),i}}}if(n.operatorToken.kind===28){let e=Q(n.left,O,q),i=Q(n.right,r?O:w,q);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return PB(n,w,e)}function we(n,r){if(n.operator===46||n.operator===47){let e=F_(n.operand);if(Mh(e)&&l&&u){let i=wk(e)?Q(e.argumentExpression,w,q):Y(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;fV(i)||(e=t.createTempVariable(a),i=t.createAssignment(e,i));let o=t.createReflectGetCall(u,e,l);zE(o,n),X(o,n);let s=r?void 0:t.createTempVariable(a);return o=OM(t,n,o,a,s),o=t.createReflectSetCall(u,i,o,l),zE(o,n),X(o,n),s&&(o=t.createComma(o,s),X(o,n)),o}}}return PB(n,w,e)}function Te(e,n){let r=n?NB(e.elements,O):NB(e.elements,w,O);return t.updateCommaListExpression(e,r)}function De(e){if(hv(e)||vO(e))return{referencedName:t.createStringLiteralFromNode(e),name:Q(e,w,ku)};if(hv(e.expression)&&!Y(e.expression))return{referencedName:t.createStringLiteralFromNode(e.expression),name:Q(e,w,ku)};let r=t.getGeneratedNameForNode(e);a(r);let i=n().createPropKeyHelper(Q(e.expression,w,q)),o=t.createAssignment(r,i);return{referencedName:r,name:t.updateComputedPropertyName(e,qe(o))}}function Oe(e){return NO(e)?ke(e):Q(e,w,ku)}function ke(e){let n=Q(e.expression,w,q);return fV(n)||(n=qe(n)),t.updateComputedPropertyName(e,n)}function Ae(t){return wv(t,ye)&&(t=fH(e,t,be(t.initializer))),PB(t,w,e)}function je(t){return wv(t,ye)&&(t=fH(e,t,be(t.initializer))),PB(t,w,e)}function Me(t){return wv(t,ye)&&(t=fH(e,t,be(t.initializer))),PB(t,w,e)}function Ne(n){if(Sk(n)||xk(n))return Ue(n);if(Mh(n)&&l&&u){let e=wk(n)?Q(n.argumentExpression,w,q):Y(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){let r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(u,e,r,l));return zE(i,n),X(i,n),i}}return PB(n,w,e)}function Fe(n){if(kb(n,!0)){wv(n,ye)&&(n=fH(e,n,be(n.right)));let r=Ne(n.left),i=Q(n.right,w,q);return t.updateBinaryExpression(n,r,n.operatorToken,i)}else return Ne(n)}function Ie(n){if(fd(n.expression)){let e=Ne(n.expression);return t.updateSpreadElement(n,e)}return PB(n,w,e)}function Le(t){return H.assertNode(t,ad),Hk(t)?Ie(t):Wk(t)?PB(t,w,e):Fe(t)}function Re(n){let r=Q(n.name,w,ku);if(kb(n.initializer,!0)){let e=Fe(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(fd(n.initializer)){let e=Ne(n.initializer);return t.updatePropertyAssignment(n,r,e)}return PB(n,w,e)}function ze(t){return wv(t,ye)&&(t=fH(e,t,be(t.objectAssignmentInitializer))),PB(t,w,e)}function Be(n){if(fd(n.expression)){let e=Ne(n.expression);return t.updateSpreadAssignment(n,e)}return PB(n,w,e)}function Ve(t){return H.assertNode(t,rd),gj(t)?Be(t):hj(t)?ze(t):mj(t)?Re(t):PB(t,w,e)}function Ue(e){if(xk(e)){let n=CB(e.elements,Le,q);return t.updateArrayLiteralExpression(e,n)}else{let n=CB(e.properties,Ve,qu);return t.updateObjectLiteralExpression(e,n)}}function We(t){return wv(t,ye)&&(t=fH(e,t,be(t.expression))),PB(t,w,e)}function L(e,n){let r=n?O:w,i=Q(e.expression,r,q);return t.updateParenthesizedExpression(e,i)}function Ge(e,n){let r=w,i=Q(e.expression,r,q);return t.updatePartiallyEmittedExpression(e,i)}function Ke(e,n){return F(e)&&(n?kk(n)?(e.push(n.expression),n=t.updateParenthesizedExpression(n,t.inlineExpressions(e))):(e.push(n),n=t.inlineExpressions(e)):n=t.inlineExpressions(e)),n}function qe(e){let t=Ke(d,e);return H.assertIsDefined(t),t!==e&&(d=void 0),t}function Je(e,t,n){let r=Ke(t?e.pendingStaticInitializers:e.pendingInstanceInitializers,n);return r!==n&&(t?e.pendingStaticInitializers=void 0:e.pendingInstanceInitializers=void 0),r}function Ye(e){if(!e)return;let t=[];return Ee(t,k(e.decorators,Xe)),t}function Xe(e){let n=Q(e.expression,w,q);if(UE(n,3072),Zx(BM(n))){let{target:e,thisArg:r}=t.createCallBinding(n,a,o,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function Ze(e,r,i,a,o,s,c){let l=t.createFunctionExpression(i,a,void 0,void 0,s,void 0,c??t.createBlock([]));zE(l,e),JE(l,lx(e)),UE(l,3072);let u=o===`get`||o===`set`?o:void 0,d=t.createStringLiteralFromNode(r,void 0),f=n().createSetFunctionNameHelper(l,d,u),p=t.createPropertyAssignment(t.createIdentifier(o),f);return zE(p,e),JE(p,lx(e)),UE(p,3072),p}function Qe(e,n){return t.createObjectLiteralExpression([Ze(e,e.name,n,e.asteriskToken,`value`,CB(e.parameters,w,FO),Q(e.body,w,tA))])}function $e(e,n){return t.createObjectLiteralExpression([Ze(e,e.name,n,void 0,`get`,[],Q(e.body,w,tA))])}function et(e,n){return t.createObjectLiteralExpression([Ze(e,e.name,n,void 0,`set`,CB(e.parameters,w,FO),Q(e.body,w,tA))])}function tt(e,n){return t.createObjectLiteralExpression([Ze(e,e.name,n,void 0,`get`,[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),Ze(e,e.name,n,void 0,`set`,[t.createParameterDeclaration(void 0,void 0,`value`)],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)),t.createIdentifier(`value`)))]))])}function nt(e,n,r){return e=CB(e,e=>TO(e)?e:void 0,Du),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier(`value`)))]))}function rt(e,n,r){return e=CB(e,e=>TO(e)?e:void 0,Du),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier(`get`)),t.createThis(),[]))]))}function it(e,n,r){return e=CB(e,e=>TO(e)?e:void 0,Du),t.createSetAccessorDeclaration(e,n,[t.createParameterDeclaration(void 0,void 0,`value`)],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier(`set`)),t.createThis(),[t.createIdentifier(`value`)]))]))}function at(e,n){let r=t.createVariableDeclaration(e,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier(`Symbol`),`function`),t.createPropertyAccessExpression(t.createIdentifier(`Symbol`),`metadata`)),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier(`Object`),`create`),void 0,[n?st(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}function ot(e,n){let r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier(`Symbol`),`metadata`),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return UE(t.createIfStatement(n,t.createExpressionStatement(r)),1)}function st(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier(`Symbol`),`metadata`)),61,t.createNull())}}function DH(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),c=zS(s),l=0,u=0,f,p,m,h,g=[],_=0,v=e.onEmitNode,y=e.onSubstituteNode;return e.onEmitNode=Se,e.onSubstituteNode=Ce,nV(e,b);function b(t){if(t.isDeclarationFile)return t;x(1,!1),x(2,!Xp(t,s));let n=PB(t,O,e);return dD(n,e.readEmitHelpers()),n}function x(e,t){_=t?_|e:_&~e}function S(e){return(_&e)!==0}function C(){return!S(1)}function w(){return S(2)}function T(e,t,n){let r=e&~_;if(r){x(r,!0);let e=t(n);return x(r,!1),e}return t(n)}function E(t){return PB(t,O,e)}function D(t){switch(t.kind){case 219:case 263:case 175:case 178:case 179:case 177:return t;case 170:case 209:case 261:break;case 80:if(h&&o.isArgumentsLocalBinding(t))return h;break}return PB(t,D,e)}function O(t){if(!(t.transformFlags&256))return h?D(t):t;switch(t.kind){case 134:return;case 224:return A(t);case 175:return T(3,M,t);case 263:return T(3,se,t);case 219:return T(3,ce,t);case 220:return T(1,P,t);case 212:return p&&Ck(t)&&t.expression.kind===108&&p.add(t.name.escapedText),PB(t,O,e);case 213:return p&&t.expression.kind===108&&(m=!0),PB(t,O,e);case 178:return T(3,N,t);case 179:return T(3,oe,t);case 177:return T(3,j,t);case 264:case 232:return T(3,E,t);default:return PB(t,O,e)}}function ee(t){if(O_(t))switch(t.kind){case 244:return ne(t);case 249:return ae(t);case 250:return re(t);case 251:return ie(t);case 300:return te(t);case 242:case 256:case 270:case 297:case 298:case 259:case 247:case 248:case 246:case 255:case 257:return PB(t,ee,e);default:return H.assertNever(t,`Unhandled node.`)}return O(t)}function te(t){let n=new Set;le(t.variableDeclaration,n);let r;if(n.forEach((e,t)=>{f.has(t)&&(r||=new Set(f),r.delete(t))}),r){let n=f;f=r;let i=PB(t,ee,e);return f=n,i}else return PB(t,ee,e)}function ne(n){if(F(n.declarationList)){let e=ue(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return PB(n,O,e)}function re(n){return t.updateForInStatement(n,F(n.initializer)?ue(n.initializer,!0):H.checkDefined(Q(n.initializer,O,Dd)),H.checkDefined(Q(n.expression,O,q)),MB(n.statement,ee,e))}function ie(n){return t.updateForOfStatement(n,Q(n.awaitModifier,O,CO),F(n.initializer)?ue(n.initializer,!0):H.checkDefined(Q(n.initializer,O,Dd)),H.checkDefined(Q(n.expression,O,q)),MB(n.statement,ee,e))}function ae(n){let r=n.initializer;return t.updateForStatement(n,F(r)?ue(r,!1):Q(n.initializer,O,Dd),Q(n.condition,O,q),Q(n.incrementor,O,q),MB(n.statement,ee,e))}function A(n){return C()?PB(n,O,e):zE(X(t.createYieldExpression(void 0,Q(n.expression,O,q)),n),n)}function j(n){let r=h;h=void 0;let i=t.updateConstructorDeclaration(n,CB(n.modifiers,O,Du),DB(n.parameters,O,e),he(n));return h=r,i}function M(n){let r,i=cv(n),a=h;h=void 0;let o=t.updateMethodDeclaration(n,CB(n.modifiers,O,Wu),n.asteriskToken,n.name,void 0,void 0,r=i&2?_e(n):DB(n.parameters,O,e),void 0,i&2?ve(n,r):he(n));return h=a,o}function N(n){let r=h;h=void 0;let i=t.updateGetAccessorDeclaration(n,CB(n.modifiers,O,Wu),n.name,DB(n.parameters,O,e),void 0,he(n));return h=r,i}function oe(n){let r=h;h=void 0;let i=t.updateSetAccessorDeclaration(n,CB(n.modifiers,O,Wu),n.name,DB(n.parameters,O,e),he(n));return h=r,i}function se(n){let r,i=h;h=void 0;let a=cv(n),o=t.updateFunctionDeclaration(n,CB(n.modifiers,O,Wu),n.asteriskToken,n.name,void 0,r=a&2?_e(n):DB(n.parameters,O,e),void 0,a&2?ve(n,r):jB(n.body,O,e));return h=i,o}function ce(n){let r,i=h;h=void 0;let a=cv(n),o=t.updateFunctionExpression(n,CB(n.modifiers,O,Du),n.asteriskToken,n.name,void 0,r=a&2?_e(n):DB(n.parameters,O,e),void 0,a&2?ve(n,r):jB(n.body,O,e));return h=i,o}function P(n){let r,i=cv(n);return t.updateArrowFunction(n,CB(n.modifiers,O,Du),void 0,r=i&2?_e(n):DB(n.parameters,O,e),void 0,n.equalsGreaterThanToken,i&2?ve(n,r):jB(n.body,O,e))}function le({name:e},t){if(Y(e))t.add(e.escapedText);else for(let n of e.elements)Wk(n)||le(n,t)}function F(e){return!!e&&xA(e)&&!(e.flags&7)&&e.declarations.some(me)}function ue(e,n){de(e);let r=Dx(e);return r.length===0?n?Q(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),O,q):void 0:t.inlineExpressions(k(r,pe))}function de(e){d(e.declarations,fe)}function fe({name:e}){if(Y(e))a(e);else for(let t of e.elements)Wk(t)||fe(t)}function pe(e){let n=JE(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return H.checkDefined(Q(n,O,q))}function me({name:e}){if(Y(e))return f.has(e.escapedText);for(let t of e.elements)if(!Wk(t)&&me(t))return!0;return!1}function he(n){H.assertIsDefined(n.body);let r=p,i=m;p=new Set,m=!1;let a=jB(n.body,O,e),s=Bc(n,Nu);if(c>=2&&(o.hasNodeCheckFlag(n,256)||o.hasNodeCheckFlag(n,128))&&(cv(s)&3)!=3){if(xe(),p.size){let e=OH(t,o,n,p);g[mB(e)]=!0;let r=a.statements.slice();up(r,[e]),a=t.updateBlock(a,r)}m&&(o.hasNodeCheckFlag(n,256)?uD(a,ZD):o.hasNodeCheckFlag(n,128)&&uD(a,XD))}return p=r,m=i,a}function ge(){H.assert(h);let e=t.createVariableDeclaration(h,void 0,void 0,t.createIdentifier(`arguments`)),n=t.createVariableStatement(void 0,[e]);return HM(n),WE(n,2097152),n}function _e(n){if(NV(n.parameters))return DB(n.parameters,O,e);let r=[];for(let e of n.parameters){if(e.initializer||e.dotDotDotToken){if(n.kind===220){let e=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName(`args`,8));r.push(e)}break}let i=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(i)}let i=t.createNodeArray(r);return X(i,n.parameters),i}function ve(a,s){let l=NV(a.parameters)?void 0:DB(a.parameters,O,e);r();let u=Bc(a,ju).type,d=c<2?be(u):void 0,_=a.kind===220,v=h,y=o.hasNodeCheckFlag(a,512)&&!h;y&&(h=t.createUniqueName(`arguments`));let b;if(l)if(_){let e=[];H.assert(s.length<=a.parameters.length);for(let n=0;n=2&&(o.hasNodeCheckFlag(a,256)||o.hasNodeCheckFlag(a,128));if(r&&(xe(),p.size)){let n=OH(t,o,a,p);g[mB(n)]=!0,up(e,[n])}y&&up(e,[ge()]);let i=t.createBlock(e,!0);X(i,a.body),r&&m&&(o.hasNodeCheckFlag(a,256)?uD(i,ZD):o.hasNodeCheckFlag(a,128)&&uD(i,XD)),D=i}else if(D=n().createAwaiterHelper(T,b,d,l,E),y){let e=t.converters.convertToFunctionBlock(D);D=t.updateBlock(e,t.mergeLexicalEnvironment(e.statements,[ge()]))}return f=x,_||(p=S,m=C,h=v),D}function ye(e,n){return tA(e)?t.updateBlock(e,CB(e.statements,ee,Bd,n)):t.converters.convertToFunctionBlock(H.checkDefined(Q(e,ee,Td)))}function be(e){let t=e&&Ih(e);if(t&&Ou(t)){let e=o.getTypeReferenceSerializationKind(t);if(e===1||e===0)return t}}function xe(){l&1||(l|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function Se(e,t,n){if(l&1&&De(t)){let r=(o.hasNodeCheckFlag(t,128)?128:0)|(o.hasNodeCheckFlag(t,256)?256:0);if(r!==u){let i=u;u=r,v(e,t,n),u=i;return}}else if(l&&g[mB(t)]){let r=u;u=0,v(e,t,n),u=r;return}v(e,t,n)}function Ce(e,t){return t=y(e,t),e===1&&u?I(t):t}function I(e){switch(e.kind){case 212:return we(e);case 213:return Te(e);case 214:return Ee(e)}return e}function we(e){return e.expression.kind===108?X(t.createPropertyAccessExpression(t.createUniqueName(`_super`,48),e.name),e):e}function Te(e){return e.expression.kind===108?Oe(e.argumentExpression,e):e}function Ee(e){let n=e.expression;if(Mh(n)){let r=Ck(n)?we(n):Te(n);return t.createCallExpression(t.createPropertyAccessExpression(r,`call`),void 0,[t.createThis(),...e.arguments])}return e}function De(e){let t=e.kind;return t===264||t===177||t===175||t===178||t===179}function Oe(e,n){return u&256?X(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName(`_superIndex`,48),void 0,[e]),`value`),n):X(t.createCallExpression(t.createUniqueName(`_superIndex`,48),void 0,[e]),n)}}function OH(e,t,n,r){let i=t.hasNodeCheckFlag(n,256),a=[];return r.forEach((t,n)=>{let r=Wc(n),o=[];o.push(e.createPropertyAssignment(`get`,e.createArrowFunction(void 0,void 0,[],void 0,void 0,UE(e.createPropertyAccessExpression(UE(e.createSuper(),8),r),8)))),i&&o.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(UE(e.createPropertyAccessExpression(UE(e.createSuper(),8),r),8),e.createIdentifier(`v`))))),a.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(o)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName(`_super`,48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier(`Object`),`create`),void 0,[e.createNull(),e.createObjectLiteralExpression(a,!0)]))],2))}function kH(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:a}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),c=zS(s),l=e.onEmitNode;e.onEmitNode=Re;let u=e.onSubstituteNode;e.onSubstituteNode=ze;let d=!1,f=0,p,m,h=0,g=0,_,v,y,b,x=[];return nV(e,E);function S(e,t){return g!==(g&~e|t)}function C(e,t){let n=g;return g=(g&~e|t)&3,n}function w(e){g=e}function T(e){v=I(v,t.createVariableDeclaration(e))}function E(t){if(t.isDeclarationFile)return t;_=t;let n=se(t);return dD(n,e.readEmitHelpers()),_=void 0,v=void 0,n}function D(e){return ne(e,!1)}function O(e){return ne(e,!0)}function k(e){if(e.kind!==134)return e}function ee(e,t,n,r){if(S(n,r)){let i=C(n,r),a=e(t);return w(i),a}return e(t)}function te(t){return PB(t,D,e)}function ne(t,n){if(!(t.transformFlags&128))return t;switch(t.kind){case 224:return re(t);case 230:return ie(t);case 254:return ae(t);case 257:return A(t);case 211:return M(t);case 227:return P(t,n);case 357:return le(t,n);case 300:return ue(t);case 244:return fe(t);case 261:return pe(t);case 247:case 248:case 250:return ee(te,t,0,2);case 251:return _e(t,void 0);case 249:return ee(he,t,0,2);case 223:return ge(t);case 177:return ee(Te,t,2,1);case 175:return ee(ke,t,2,1);case 178:return ee(De,t,2,1);case 179:return ee(Oe,t,2,1);case 263:return ee(Ae,t,2,1);case 219:return ee(Me,t,2,1);case 220:return ee(je,t,2,0);case 170:return Ce(t);case 245:return N(t);case 218:return oe(t,n);case 216:return ce(t);case 212:return y&&Ck(t)&&t.expression.kind===108&&y.add(t.name.escapedText),PB(t,D,e);case 213:return y&&t.expression.kind===108&&(b=!0),PB(t,D,e);case 264:case 232:return ee(te,t,2,1);default:return PB(t,D,e)}}function re(r){return p&2&&p&1?zE(X(t.createYieldExpression(void 0,n().createAwaitHelper(Q(r.expression,D,q))),r),r):PB(r,D,e)}function ie(r){if(p&2&&p&1){if(r.asteriskToken){let e=Q(H.checkDefined(r.expression),D,q);return zE(X(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,X(n().createAsyncDelegatorHelper(X(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return zE(X(t.createYieldExpression(void 0,be(r.expression?Q(r.expression,D,q):t.createVoidZero())),r),r)}return PB(r,D,e)}function ae(n){return p&2&&p&1?t.updateReturnStatement(n,be(n.expression?Q(n.expression,D,q):t.createVoidZero())):PB(n,D,e)}function A(n){if(p&2){let e=fh(n);return e.kind===251&&e.awaitModifier?_e(e,n):t.restoreEnclosingLabel(Q(e,D,Bd,t.liftToBlock),n)}return PB(n,D,e)}function j(e){let n,r=[];for(let i of e)if(i.kind===306){n&&=(r.push(t.createObjectLiteralExpression(n)),void 0);let e=i.expression;r.push(Q(e,D,q))}else n=I(n,i.kind===304?t.createPropertyAssignment(i.name,Q(i.initializer,D,q)):Q(i,D,qu));return n&&r.push(t.createObjectLiteralExpression(n)),r}function M(r){if(r.transformFlags&65536){let e=j(r.properties);e.length&&e[0].kind!==211&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t=2&&(o.hasNodeCheckFlag(a,256)||o.hasNodeCheckFlag(a,128));if(m){Le();let e=OH(t,o,a,y);x[mB(e)]=!0,up(d,[e])}d.push(p);let h=t.updateBlock(a.body,d);return m&&b&&(o.hasNodeCheckFlag(a,256)?uD(h,ZD):o.hasNodeCheckFlag(a,128)&&uD(h,XD)),y=l,b=u,h}function Fe(e){r();let n=0,a=[],o=Q(e.body,D,Td)??t.createBlock([]);tA(o)&&(n=t.copyPrologue(o.statements,a,!1,D)),Ee(a,Ie(void 0,e));let s=i();if(n>0||F(a)||F(s)){let e=t.converters.convertToFunctionBlock(o,!0);return up(a,s),Ee(a,e.statements.slice(n)),t.updateBlock(e,X(t.createNodeArray(a),e.statements))}return o}function Ie(n,r){let i=!1;for(let a of r.parameters)if(i){if(Xu(a.name)){if(a.name.elements.length>0){let r=VV(a,D,e,0,t.getGeneratedNameForNode(a));if(F(r)){let e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);UE(i,2097152),n=I(n,i)}}else if(a.initializer){let e=t.getGeneratedNameForNode(a),r=Q(a.initializer,D,q),i=t.createAssignment(e,r),o=t.createExpressionStatement(i);UE(o,2097152),n=I(n,o)}}else if(a.initializer){let e=t.cloneNode(a.name);X(e,a.name),UE(e,96);let r=Q(a.initializer,D,q);WE(r,3168);let i=t.createAssignment(e,r);X(i,a),UE(i,3072);let o=t.createBlock([t.createExpressionStatement(i)]);X(o,a),UE(o,3905);let s=t.createTypeCheck(t.cloneNode(a.name),`undefined`),c=t.createIfStatement(s,o);HM(c),X(c,a),UE(c,2101056),n=I(n,c)}}else if(a.transformFlags&65536){i=!0;let r=VV(a,D,e,1,t.getGeneratedNameForNode(a),!1,!0);if(F(r)){let e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);UE(i,2097152),n=I(n,i)}}return n}function Le(){f&1||(f|=1,e.enableSubstitution(214),e.enableSubstitution(212),e.enableSubstitution(213),e.enableEmitNotification(264),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(177),e.enableEmitNotification(244))}function Re(e,t,n){if(f&1&&We(t)){let r=(o.hasNodeCheckFlag(t,128)?128:0)|(o.hasNodeCheckFlag(t,256)?256:0);if(r!==h){let i=h;h=r,l(e,t,n),h=i;return}}else if(f&&x[mB(t)]){let r=h;h=0,l(e,t,n),h=r;return}l(e,t,n)}function ze(e,t){return t=u(e,t),e===1&&h?Be(t):t}function Be(e){switch(e.kind){case 212:return Ve(e);case 213:return He(e);case 214:return Ue(e)}return e}function Ve(e){return e.expression.kind===108?X(t.createPropertyAccessExpression(t.createUniqueName(`_super`,48),e.name),e):e}function He(e){return e.expression.kind===108?L(e.argumentExpression,e):e}function Ue(e){let n=e.expression;if(Mh(n)){let r=Ck(n)?Ve(n):He(n);return t.createCallExpression(t.createPropertyAccessExpression(r,`call`),void 0,[t.createThis(),...e.arguments])}return e}function We(e){let t=e.kind;return t===264||t===177||t===175||t===178||t===179}function L(e,n){return h&256?X(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier(`_superIndex`),void 0,[e]),`value`),n):X(t.createCallExpression(t.createIdentifier(`_superIndex`),void 0,[e]),n)}}function AH(e){let t=e.factory;return nV(e,n);function n(t){return t.isDeclarationFile?t:PB(t,r,e)}function r(t){if(!(t.transformFlags&64))return t;switch(t.kind){case 300:return i(t);default:return PB(t,r,e)}}function i(n){return n.variableDeclaration?PB(n,r,e):t.updateCatchClause(n,t.createVariableDeclaration(t.createTempVariable(void 0)),Q(n.block,r,tA))}}function jH(e){let{factory:t,hoistVariableDeclaration:n}=e;return nV(e,r);function r(t){return t.isDeclarationFile?t:PB(t,i,e)}function i(t){if(!(t.transformFlags&32))return t;switch(t.kind){case 214:{let e=c(t,!1);return H.assertNotNode(e,XA),e}case 212:case 213:if(Gl(t)){let e=u(t,!1,!1);return H.assertNotNode(e,XA),e}return PB(t,i,e);case 227:return t.operatorToken.kind===61?f(t):PB(t,i,e);case 221:return p(t);default:return PB(t,i,e)}}function a(e){H.assertNotNode(e,Ql);let t=[e];for(;!e.questionDotToken&&!Dk(e);)e=yt(Zl(e.expression),Gl),H.assertNotNode(e,Ql),t.unshift(e);return{expression:e.expression,chain:t}}function o(e,n,r){let i=l(e.expression,n,r);return XA(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function s(e,r,a){if(Gl(e))return u(e,r,a);let o=Q(e.expression,i,q);H.assertNotNode(o,XA);let s;return r&&(dV(o)?s=o:(s=t.createTempVariable(n),o=t.createAssignment(s,o))),o=e.kind===212?t.updatePropertyAccessExpression(e,o,Q(e.name,i,Y)):t.updateElementAccessExpression(e,o,Q(e.argumentExpression,i,q)),s?t.createSyntheticReferenceExpression(o,s):o}function c(n,r){if(Gl(n))return u(n,r,!1);if(kk(n.expression)&&Gl(F_(n.expression))){let e=o(n.expression,!0,!1),r=CB(n.arguments,i,q);return XA(e)?X(t.createFunctionCallCall(e.expression,e.thisArg,r),n):t.updateCallExpression(n,e,void 0,r)}return PB(n,i,e)}function l(e,t,n){switch(e.kind){case 218:return o(e,t,n);case 212:case 213:return s(e,t,n);case 214:return c(e,t);default:return Q(e,i,q)}}function u(e,r,o){let{expression:s,chain:c}=a(e),u=l(Zl(s),Wl(c[0]),!1),f=XA(u)?u.thisArg:void 0,p=XA(u)?u.expression:u,m=t.restoreOuterExpressions(s,p,8);dV(p)||(p=t.createTempVariable(n),m=t.createAssignment(p,m));let h=p,g;for(let e=0;ee&&Ee(c,CB(n.statements,d,Bd,e,u-e));break}u++}H.assert(ug(t,e))))],e,r===2)}return PB(n,d,e)}function v(r,i,a,o,s){let c=[];for(let s=i;st&&(t=e)}return t}function RH(e){let t=0;for(let n of e){let e=LH(n.statements);if(e===2)return 2;e>t&&(t=e)}return t}function zH(e){let{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions(),i,a;return nV(e,p);function o(){if(a.filenameDeclaration)return a.filenameDeclaration.name;let e=t.createVariableDeclaration(t.createUniqueName(`_jsxFileName`,48),void 0,void 0,t.createStringLiteral(i.fileName));return a.filenameDeclaration=e,a.filenameDeclaration.name}function s(e){return r.jsx===5?`jsxDEV`:e?`jsxs`:`jsx`}function l(e){return f(s(e))}function d(){return f(`Fragment`)}function f(e){let n=e===`createElement`?a.importSpecifier:gC(a.importSpecifier,r),i=(a.utilizedImplicitRuntimeImports?.get(n))?.get(e);if(i)return i.name;a.utilizedImplicitRuntimeImports||=new Map;let o=a.utilizedImplicitRuntimeImports.get(n);o||(o=new Map,a.utilizedImplicitRuntimeImports.set(n,o));let s=t.createUniqueName(`_${e}`,112),c=t.createImportSpecifier(!1,t.createIdentifier(e),s);return wD(s,c),o.set(e,c),s}function p(n){if(n.isDeclarationFile)return n;i=n,a={},a.importSpecifier=hC(r,n);let o=PB(n,m,e);dD(o,e.readEmitHelpers());let s=o.statements;if(a.filenameDeclaration&&(s=pp(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([a.filenameDeclaration],2)))),a.utilizedImplicitRuntimeImports){for(let[e,r]of $e(a.utilizedImplicitRuntimeImports.entries()))if(yP(n)){let n=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports($e(r.values()))),t.createStringLiteral(e),void 0);Qw(n,!1),s=pp(s.slice(),n)}else if(Am(n)){let n=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern($e(r.values(),e=>t.createBindingElement(void 0,e.propertyName,e.name))),void 0,void 0,t.createCallExpression(t.createIdentifier(`require`),void 0,[t.createStringLiteral(e)]))],2));Qw(n,!1),s=pp(s.slice(),n)}}return s!==o.statements&&(o=t.updateSourceFile(o,s)),a=void 0,o}function m(e){return e.transformFlags&2?h(e):e}function h(t){switch(t.kind){case 285:return x(t,!1);case 286:return S(t,!1);case 289:return C(t,!1);case 295:return me(t);default:return PB(t,m,e)}}function g(e){switch(e.kind){case 12:return ce(e);case 295:return me(e);case 285:return x(e,!0);case 286:return S(e,!0);case 289:return C(e,!0);default:return H.failBadSyntaxKind(e)}}function _(e){return e.properties.some(e=>mj(e)&&(Y(e.name)&&Gc(e.name)===`__proto__`||tO(e.name)&&e.name.text===`__proto__`))}function v(e){let t=!1;for(let n of e.attributes.properties)if(sj(n)&&(!Sk(n.expression)||n.expression.properties.some(gj)))t=!0;else if(t&&aj(n)&&Y(n.name)&&n.name.escapedText===`key`)return!0;return!1}function b(e){return a.importSpecifier===void 0||v(e)}function x(e,t){return(b(e.openingElement)?ee:D)(e.openingElement,e.children,t,e)}function S(e,t){return(b(e)?ee:D)(e,void 0,t,e)}function C(e,t){return(a.importSpecifier===void 0?ie:re)(e.openingFragment,e.children,t,e)}function w(e){let n=T(e);return n&&t.createObjectLiteralExpression([n])}function T(e){let n=Rv(e);if(u(n)===1&&!n[0].dotDotDotToken){let e=g(n[0]);return e&&t.createPropertyAssignment(`children`,e)}let r=M(e,g);return u(r)?t.createPropertyAssignment(`children`,t.createArrayLiteralExpression(r)):void 0}function D(e,n,r,i){let a=fe(e),o=n&&n.length?T(n):void 0,s=y(e.attributes.properties,e=>!!e.name&&Y(e.name)&&e.name.escapedText===`key`),l=s?E(e.attributes.properties,e=>e!==s):e.attributes.properties;return O(a,u(l)?A(l,o):t.createObjectLiteralExpression(o?[o]:c),s,n||c,r,i)}function O(e,n,a,s,c,d){let f=Rv(s),p=u(f)>1||!!f[0]?.dotDotDotToken,m=[e,n];if(a&&m.push(se(a.initializer)),r.jsx===5){let e=Bc(i);if(e&&vj(e)){a===void 0&&m.push(t.createVoidZero()),m.push(p?t.createTrue():t.createFalse());let n=gs(e,d.pos);m.push(t.createObjectLiteralExpression([t.createPropertyAssignment(`fileName`,o()),t.createPropertyAssignment(`lineNumber`,t.createNumericLiteral(n.line+1)),t.createPropertyAssignment(`columnNumber`,t.createNumericLiteral(n.character+1))])),m.push(t.createThis())}}let h=X(t.createCallExpression(l(p),void 0,m),d);return c&&HM(h),h}function ee(n,o,s,c){let l=fe(n),d=n.attributes.properties,p=u(d)?A(d):t.createNull(),m=yM(t,a.importSpecifier===void 0?_M(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):f(`createElement`),l,p,M(o,g),c);return s&&HM(m),m}function re(e,n,r,i){let a;if(n&&n.length){let e=w(n);e&&(a=e)}return O(d(),a||t.createObjectLiteralExpression([]),void 0,n,r,i)}function ie(n,a,o,s){let c=bM(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,M(a,g),n,s);return o&&HM(c),c}function ae(e){return Sk(e.expression)&&!_(e.expression)?te(e.expression.properties,e=>H.checkDefined(Q(e,m,qu))):t.createSpreadAssignment(H.checkDefined(Q(e.expression,m,q)))}function A(e,n){let i=zS(r);return i&&i>=5?t.createObjectLiteralExpression(j(e,n)):N(e,n)}function j(e,t){let n=ne(P(e,sj,(e,t)=>ne(k(e,e=>t?ae(e):oe(e)))));return t&&n.push(t),n}function N(e,r){let i=[],a=[];for(let t of e){if(sj(t)){if(Sk(t.expression)&&!_(t.expression)){for(let e of t.expression.properties){if(gj(e)){o(),i.push(H.checkDefined(Q(e.expression,m,q)));continue}a.push(H.checkDefined(Q(e,m)))}continue}o(),i.push(H.checkDefined(Q(t.expression,m,q)));continue}a.push(oe(t))}return r&&a.push(r),o(),i.length&&!Sk(i[0])&&i.unshift(t.createObjectLiteralExpression()),Be(i)||n().createAssignHelper(i);function o(){a.length&&(i.push(t.createObjectLiteralExpression(a)),a=[])}}function oe(e){let n=pe(e),r=se(e.initializer);return t.createPropertyAssignment(n,r)}function se(e){if(e===void 0)return t.createTrue();if(e.kind===11){let n=e.singleQuote===void 0?!pg(e,i):e.singleQuote;return X(t.createStringLiteral(de(e.text)||e.text,n),e)}return e.kind===295?e.expression===void 0?t.createTrue():H.checkDefined(Q(e.expression,m,q)):QA(e)?x(e,!1):$A(e)?S(e,!1):nj(e)?C(e,!1):H.failBadSyntaxKind(e)}function ce(e){let n=le(e.text);return n===void 0?void 0:t.createStringLiteral(n)}function le(e){let t,n=0,r=-1;for(let i=0;i{if(i)return Xs(parseInt(i,10));if(a)return Xs(parseInt(a,16));{let t=BH.get(o);return t?Xs(t):e}})}function de(e){let t=ue(e);return t===e?void 0:t}function fe(e){if(e.kind===285)return fe(e.openingElement);{let n=e.tagName;return Y(n)&&$v(n.escapedText)?t.createStringLiteral(Gc(n)):lj(n)?t.createStringLiteral(Gc(n.namespace)+`:`+Gc(n.name)):SM(t,n)}}function pe(e){let n=e.name;if(Y(n)){let e=Gc(n);return/^[A-Z_]\w*$/i.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(Gc(n.namespace)+`:`+Gc(n.name))}function me(e){let n=Q(e.expression,m,q);return e.dotDotDotToken?t.createSpreadElement(n):n}}var BH=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 VH(e){let{factory:t,hoistVariableDeclaration:n}=e;return nV(e,r);function r(t){return t.isDeclarationFile?t:PB(t,i,e)}function i(t){if(!(t.transformFlags&512))return t;switch(t.kind){case 227:return a(t);default:return PB(t,i,e)}}function a(t){switch(t.operatorToken.kind){case 68:return o(t);case 43:return s(t);default:return PB(t,i,e)}}function o(e){let r,a,o=Q(e.left,i,q),s=Q(e.right,i,q);if(wk(o)){let e=t.createTempVariable(n),i=t.createTempVariable(n);r=X(t.createElementAccessExpression(X(t.createAssignment(e,o.expression),o.expression),X(t.createAssignment(i,o.argumentExpression),o.argumentExpression)),o),a=X(t.createElementAccessExpression(e,i),o)}else if(Ck(o)){let e=t.createTempVariable(n);r=X(t.createPropertyAccessExpression(X(t.createAssignment(e,o.expression),o.expression),o.name),o),a=X(t.createPropertyAccessExpression(e,o.name),o)}else r=o,a=o;return X(t.createAssignment(r,X(t.createGlobalMethodCall(`Math`,`pow`,[a,s]),e)),e)}function s(e){let n=Q(e.left,i,q),r=Q(e.right,i,q);return X(t.createGlobalMethodCall(`Math`,`pow`,[n,r]),e)}}function HH(e,t){return{kind:e,expression:t}}function UH(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:a,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.onSubstituteNode,u=e.onEmitNode;e.onEmitNode=Gn,e.onSubstituteNode=Jn;let d,f,p,m;function h(e){m=I(m,t.createVariableDeclaration(e))}let g,_=0;return nV(e,y);function y(t){if(t.isDeclarationFile)return t;d=t,f=t.text;let n=re(t);return dD(n,e.readEmitHelpers()),d=void 0,f=void 0,m=void 0,p=0,n}function b(e,t){let n=p;return p=(p&~e|t)&32767,n}function x(e,t,n){p=(p&~t|n)&-32768|e}function S(e){return(p&8192)!=0&&e.kind===254&&!e.expression}function C(e){return e.transformFlags&4194304&&(pA(e)||aA(e)||mA(e)||hA(e)||kA(e)||uj(e)||dj(e)||vA(e)||pj(e)||gA(e)||bd(e,!1)||tA(e))}function w(e){return(e.transformFlags&1024)!=0||g!==void 0||p&8192&&C(e)||bd(e,!1)&&Jt(e)||(Ap(e)&1)!=0}function T(e){return w(e)?te(e,!1):e}function D(e){return w(e)?te(e,!0):e}function O(e){if(w(e)){let t=Bc(e);if(RO(t)&&eb(t)){let t=b(32670,16449),n=te(e,!1);return x(t,229376,0),n}return te(e,!1)}return e}function ee(e){return e.kind===108?Un(e,!0):T(e)}function te(t,n){switch(t.kind){case 126:return;case 264:return le(t);case 232:return ue(t);case 170:return Ze(t);case 263:return ft(t);case 220:return dt(t);case 219:return z(t);case 261:return Ot(t);case 80:return se(t);case 262:return wt(t);case 256:return ie(t);case 270:return ae(t);case 242:return ht(t);case 253:case 252:return ce(t);case 257:return jt(t);case 247:case 248:return Pt(t,void 0);case 249:return Ft(t,void 0);case 250:return Lt(t,void 0);case 251:return Rt(t,void 0);case 245:return gt(t);case 211:return Ut(t);case 300:return bn(t);case 305:return Cn(t);case 168:return wn(t);case 210:return En(t);case 214:return Dn(t);case 215:return An(t);case 218:return _t(t,n);case 227:return bt(t,n);case 357:return xt(t,n);case 15:case 16:case 17:case 18:return Ln(t);case 11:return Rn(t);case 9:return zn(t);case 216:return Bn(t);case 229:return Vn(t);case 230:return Tn(t);case 231:return In(t);case 108:return Un(t,!1);case 110:return N(t);case 237:return Wn(t);case 175:return V(t);case 178:case 179:return Sn(t);case 244:return Ct(t);case 254:return M(t);case 223:return oe(t);default:return PB(t,T,e)}}function re(e){let n=b(8064,64),i=[],o=[];r();let s=t.copyPrologue(e.statements,i,!1,T);return Ee(o,CB(e.statements,T,Bd,s)),m&&o.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(m))),t.mergeLexicalEnvironment(i,a()),it(i,e),x(n,0,0),t.updateSourceFile(e,X(t.createNodeArray(de(i,o)),e.statements))}function ie(t){if(g!==void 0){let n=g.allowedNonLabeledJumps;g.allowedNonLabeledJumps|=2;let r=PB(t,T,e);return g.allowedNonLabeledJumps=n,r}return PB(t,T,e)}function ae(t){let n=b(7104,0),r=PB(t,T,e);return x(n,0,0),r}function A(e){return zE(t.createReturnStatement(j()),e)}function j(){return t.createUniqueName(`_this`,48)}function M(n){return g?(g.nonLocalJumps|=8,S(n)&&(n=A(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier(`value`),n.expression?H.checkDefined(Q(n.expression,T,q)):t.createVoidZero())]))):S(n)?A(n):PB(n,T,e)}function N(e){return p|=65536,p&2&&!(p&16384)&&(p|=131072),g?p&2?(g.containsLexicalThis=!0,e):g.thisName||=t.createUniqueName(`this`):e}function oe(t){return PB(t,D,e)}function se(e){return g&&c.isArgumentsLocalBinding(e)?g.argumentsName||=t.createUniqueName(`arguments`):e.flags&256?zE(X(t.createIdentifier(Wc(e.escapedText)),e),e):e}function ce(n){if(g){let e=n.kind===253?2:4;if(!(n.label&&g.labels&&g.labels.get(Gc(n.label))||!n.label&&g.allowedNonLabeledJumps&e)){let e,r=n.label;r?n.kind===253?(e=`break-${r.escapedText}`,pn(g,!0,Gc(r),e)):(e=`continue-${r.escapedText}`,pn(g,!1,Gc(r),e)):n.kind===253?(g.nonLocalJumps|=2,e=`break`):(g.nonLocalJumps|=4,e=`continue`);let i=t.createStringLiteral(e);if(g.loopOutParameters.length){let e=g.loopOutParameters,n;for(let r=0;rY(e.name)&&!e.initializer)}function ye(e){if(zm(e))return!0;if(!(e.transformFlags&134217728))return!1;switch(e.kind){case 220:case 219:case 263:case 177:case 176:return!1;case 178:case 179:case 175:case 173:{let t=e;return NO(t.name)?!!pP(t.name,ye):!1}}return!!pP(e,ye)}function be(e,n,r,o){let s=!!r&&BM(r.expression).kind!==106;if(!e)return _e(n,s);let c=[],l=[];i();let u=t.copyStandardPrologue(e.body.statements,c,0);(o||ye(e.body))&&(p|=8192),Ee(l,CB(e.body.statements,T,Bd,u));let d=s||p&8192;$e(c,e),rt(c,e,o),ot(c,e),d?at(c,e,Ye()):it(c,e),t.mergeLexicalEnvironment(c,a()),d&&!Je(e.body)&&l.push(t.createReturnStatement(j()));let f=t.createBlock(X(t.createNodeArray([...c,...l]),e.body.statements),!0);return X(f,e.body),qe(f,e.body,o)}function Se(e){return yu(e)&&Gc(e)===`_this`}function Ce(e){return yu(e)&&Gc(e)===`_super`}function we(e){return nA(e)&&e.declarationList.declarations.length===1&&Te(e.declarationList.declarations[0])}function Te(e){return bA(e)&&Se(e.name)&&!!e.initializer}function De(e){return kb(e,!0)&&Se(e.left)}function Oe(e){return Tk(e)&&Ck(e.expression)&&Ce(e.expression.expression)&&Y(e.expression.name)&&(Gc(e.expression.name)===`call`||Gc(e.expression.name)===`apply`)&&e.arguments.length>=1&&e.arguments[0].kind===110}function ke(e){return Rk(e)&&e.operatorToken.kind===57&&e.right.kind===110&&Oe(e.left)}function Ae(e){return Rk(e)&&e.operatorToken.kind===56&&Rk(e.left)&&e.left.operatorToken.kind===38&&Ce(e.left.left)&&e.left.right.kind===106&&Oe(e.right)&&Gc(e.right.expression.name)===`apply`}function je(e){return Rk(e)&&e.operatorToken.kind===57&&e.right.kind===110&&Ae(e.left)}function Me(e){return De(e)&&ke(e.right)}function Fe(e){return De(e)&&je(e.right)}function Le(e){return Oe(e)||ke(e)||Me(e)||Ae(e)||je(e)||Fe(e)}function Ve(e){for(let n=0;n0;n--){let i=e.statements[n];if(pA(i)&&i.expression&&Se(i.expression)){let i=e.statements[n-1],a;if(iA(i)&&Me(BM(i.expression)))a=i.expression;else if(r&&we(i)){let e=i.declarationList.declarations[0];Le(BM(e.initializer))&&(a=t.createAssignment(j(),e.initializer))}if(!a)break;let o=t.createReturnStatement(a);zE(o,i),X(o,i);let s=t.createNodeArray([...e.statements.slice(0,n-1),o,...e.statements.slice(n+1)]);return X(s,e.statements),t.updateBlock(e,s)}}return e}function We(e){if(we(e)){if(e.declarationList.declarations[0].initializer.kind===110)return}else if(De(e))return t.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 220:case 219:case 263:case 177:case 176:return e;case 178:case 179:case 175:case 173:{let n=e;return NO(n.name)?t.replacePropertyName(n,PB(n.name,We,void 0)):e}}return PB(e,We,void 0)}function L(e,n){if(n.transformFlags&16384||p&65536||p&131072)return e;for(let t of n.statements)if(t.transformFlags&134217728&&!hV(t))return e;return t.updateBlock(e,CB(e.statements,We,Bd))}function Ge(e){if(Oe(e)&&e.arguments.length===2&&Y(e.arguments[1])&&Gc(e.arguments[1])===`arguments`)return t.createLogicalAnd(t.createStrictInequality(Hn(),t.createNull()),e);switch(e.kind){case 220:case 219:case 263:case 177:case 176:return e;case 178:case 179:case 175:case 173:{let n=e;return NO(n.name)?t.replacePropertyName(n,PB(n.name,Ge,void 0)):e}}return PB(e,Ge,void 0)}function Ke(e){return t.updateBlock(e,CB(e.statements,Ge,Bd))}function qe(e,t,n){let r=e;return e=Ve(e),e=Ue(e,t),e!==r&&(e=L(e,t)),n&&(e=Ke(e)),e}function Je(e){if(e.kind===254)return!0;if(e.kind===246){let t=e;if(t.elseStatement)return Je(t.thenStatement)&&Je(t.elseStatement)}else if(e.kind===242){let t=Re(e.statements);if(t&&Je(t))return!0}return!1}function Ye(){return UE(t.createThis(),8)}function Xe(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Hn(),t.createNull()),t.createFunctionApplyCall(Hn(),Ye(),t.createIdentifier(`arguments`))),Ye())}function Ze(e){if(!e.dotDotDotToken)return Xu(e.name)?zE(X(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?zE(X(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}function Qe(e){return e.initializer!==void 0||Xu(e.name)}function $e(e,t){if(!F(t.parameters,Qe))return!1;let n=!1;for(let r of t.parameters){let{name:t,initializer:i,dotDotDotToken:a}=r;a||(Xu(t)?n=et(e,r,t,i)||n:i&&(tt(e,r,t,i),n=!0))}return n}function et(n,r,i,a){return i.elements.length>0?(pp(n,UE(t.createVariableStatement(void 0,t.createVariableDeclarationList(VV(r,T,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):a?(pp(n,UE(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),H.checkDefined(Q(a,T,q)))),2097152)),!0):!1}function tt(e,n,r,i){i=H.checkDefined(Q(i,T,q));let a=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),`undefined`),UE(X(t.createBlock([t.createExpressionStatement(UE(X(t.createAssignment(UE(Zw(X(t.cloneNode(r),r),r.parent),96),UE(i,kp(i)|3168)),n),3072))]),n),3905));HM(a),X(a,n),UE(a,2101056),pp(e,a)}function nt(e,t){return!!(e&&e.dotDotDotToken&&!t)}function rt(n,r,i){let a=[],o=Re(r.parameters);if(!nt(o,i))return!1;let s=o.name.kind===80?Zw(X(t.cloneNode(o.name),o.name),o.name.parent):t.createTempVariable(void 0);UE(s,96);let c=o.name.kind===80?t.cloneNode(o.name):s,l=r.parameters.length-1,u=t.createLoopVariable();a.push(UE(X(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),o),2097152));let d=t.createForStatement(X(t.createVariableDeclarationList([t.createVariableDeclaration(u,void 0,void 0,t.createNumericLiteral(l))]),o),X(t.createLessThan(u,t.createPropertyAccessExpression(t.createIdentifier(`arguments`),`length`)),o),X(t.createPostfixIncrement(u),o),t.createBlock([HM(X(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,l===0?u:t.createSubtract(u,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier(`arguments`),u))),o))]));return UE(d,2097152),HM(d),a.push(d),o.name.kind!==80&&a.push(UE(X(t.createVariableStatement(void 0,t.createVariableDeclarationList(VV(o,T,e,0,c))),o),2097152)),dp(n,a),!0}function it(e,n){return p&131072&&n.kind!==220?(at(e,n,t.createThis()),!0):!1}function at(e,n,r){qn();let i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(j(),void 0,void 0,r)]));UE(i,2100224),JE(i,n),pp(e,i)}function ot(e,n){if(p&32768){let r;switch(n.kind){case 220:return e;case 175:case 178:case 179:r=t.createVoidZero();break;case 177:r=t.createPropertyAccessExpression(UE(t.createThis(),8),`constructor`);break;case 263:case 219:r=t.createConditionalExpression(t.createLogicalAnd(UE(t.createThis(),8),t.createBinaryExpression(UE(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(UE(t.createThis(),8),`constructor`),void 0,t.createVoidZero());break;default:return H.failBadSyntaxKind(n)}let i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName(`_newTarget`,48),void 0,void 0,r)]));UE(i,2100224),pp(e,i)}return e}function st(e,t){for(let n of t.members)switch(n.kind){case 241:e.push(ct(n));break;case 175:e.push(lt(tr(t,n),n,t));break;case 178:case 179:let r=Iy(t.members,n);n===r.firstAccessor&&e.push(ut(tr(t,n),r,t));break;case 177:case 176:break;default:H.failBadSyntaxKind(n,d&&d.fileName);break}}function ct(e){return X(t.createEmptyStatement(),e)}function lt(n,r,i){let a=$E(r),o=qE(r),s=pt(r,r,void 0,i),c=Q(r.name,T,ku);H.assert(c);let l;if(!vO(c)&&eC(e.getCompilerOptions())){let e=NO(c)?c.expression:Y(c)?t.createStringLiteral(Wc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{let e=mM(t,n,c,r.name);l=t.createAssignment(e,s)}UE(s,3072),JE(s,o);let u=X(t.createExpressionStatement(l),r);return zE(u,r),eD(u,a),UE(u,96),u}function ut(e,n,r){let i=t.createExpressionStatement(R(e,n,r,!1));return UE(i,3072),JE(i,qE(n.firstAccessor)),i}function R(e,{firstAccessor:n,getAccessor:r,setAccessor:i},a,o){let s=Zw(X(t.cloneNode(e),e),e.parent);UE(s,3136),JE(s,n.name);let c=Q(n.name,T,ku);if(H.assert(c),vO(c))return H.failBadSyntaxKind(c,`Encountered unhandled private identifier while transforming ES2015.`);let l=CM(t,c);UE(l,3104),JE(l,n.name);let u=[];if(r){let e=pt(r,void 0,void 0,a);JE(e,qE(r)),UE(e,1024);let n=t.createPropertyAssignment(`get`,e);eD(n,$E(r)),u.push(n)}if(i){let e=pt(i,void 0,void 0,a);JE(e,qE(i)),UE(e,1024);let n=t.createPropertyAssignment(`set`,e);eD(n,$E(i)),u.push(n)}u.push(t.createPropertyAssignment(`enumerable`,r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment(`configurable`,t.createTrue()));let d=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier(`Object`),`defineProperty`),void 0,[s,l,t.createObjectLiteralExpression(u,!0)]);return o&&HM(d),d}function dt(n){n.transformFlags&16384&&!(p&16384)&&(p|=131072);let r=g;g=void 0;let i=b(15232,66),a=t.createFunctionExpression(void 0,void 0,void 0,void 0,DB(n.parameters,T,e),void 0,mt(n));return X(a,n),zE(a,n),UE(a,16),x(i,0,0),g=r,a}function z(n){let r=kp(n)&524288?b(32662,69):b(32670,65),i=g;g=void 0;let a=DB(n.parameters,T,e),o=mt(n),s=p&32768?t.getLocalName(n):n.name;return x(r,229376,0),g=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,a,void 0,o)}function ft(n){let r=g;g=void 0;let i=b(32670,65),a=DB(n.parameters,T,e),o=mt(n),s=p&32768?t.getLocalName(n):n.name;return x(i,229376,0),g=r,t.updateFunctionDeclaration(n,CB(n.modifiers,T,Du),n.asteriskToken,s,void 0,a,void 0,o)}function pt(n,r,i,a){let o=g;g=void 0;let s=a&&zu(a)&&!$y(n)?b(32670,73):b(32670,65),c=DB(n.parameters,T,e),l=mt(n);return p&32768&&!i&&(n.kind===263||n.kind===219)&&(i=t.getGeneratedNameForNode(n)),x(s,229376,0),g=o,zE(X(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,l),r),n)}function mt(e){let n=!1,r=!1,o,s,c=[],l=[],u=e.body,f;if(i(),tA(u)&&(f=t.copyStandardPrologue(u.statements,c,0,!1),f=t.copyCustomPrologue(u.statements,l,f,T,Gm),f=t.copyCustomPrologue(u.statements,l,f,T,qm)),n=$e(l,e)||n,n=rt(l,e,!1)||n,tA(u))f=t.copyCustomPrologue(u.statements,l,f,T),o=u.statements,Ee(l,CB(u.statements,T,Bd,f)),!n&&u.multiLine&&(n=!0);else{H.assert(e.kind===220),o=sx(u,-1);let i=e.equalsGreaterThanToken;!kv(i)&&!kv(u)&&(gx(i,u,d)?r=!0:n=!0);let a=Q(u,T,q),c=t.createReturnStatement(a);X(c,u),sD(c,u),UE(c,2880),l.push(c),s=u}if(t.mergeLexicalEnvironment(c,a()),ot(c,e),it(c,e),F(c)&&(n=!0),l.unshift(...c),tA(u)&&xe(l,u.statements))return u;let p=t.createBlock(X(t.createNodeArray(l),o),n);return X(p,e.body),!n&&r&&UE(p,1),s&&XE(p,20,s),zE(p,e.body),p}function ht(t,n){let r=p&256?b(7104,512):b(6976,128),i=PB(t,T,e);return x(r,0,0),i}function gt(t){return PB(t,D,e)}function _t(t,n){return PB(t,n?D:T,e)}function bt(n,r){return Ab(n)?IV(n,T,e,0,!r):n.operatorToken.kind===28?t.updateBinaryExpression(n,H.checkDefined(Q(n.left,D,q)),n.operatorToken,H.checkDefined(Q(n.right,r?D:T,q))):PB(n,T,e)}function xt(n,r){if(r)return PB(n,D,e);let i;for(let e=0;ee.name)),c=i?t.createYieldExpression(t.createToken(42),UE(s,8388608)):s;if(o)a.push(t.createExpressionStatement(c)),un(n.loopOutParameters,1,0,a);else{let e=t.createUniqueName(`state`),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(a.push(i),un(n.loopOutParameters,1,0,a),n.nonLocalJumps&8){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,`value`)),a.push(t.createIfStatement(t.createTypeCheck(e,`object`),n))}if(n.nonLocalJumps&2&&a.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral(`break`)),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){let i=[];mn(n.labeledNonLocalBreaks,!0,e,r,i),mn(n.labeledNonLocalContinues,!1,e,r,i),a.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return a}function pn(e,t,n,r){t?(e.labeledNonLocalBreaks||=new Map,e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||=new Map,e.labeledNonLocalContinues.set(n,r))}function mn(e,n,r,i,a){e&&e.forEach((e,o)=>{let s=[];if(!i||i.labels&&i.labels.get(o)){let e=t.createIdentifier(o);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else pn(i,n,o,e),s.push(t.createReturnStatement(r));a.push(t.createCaseClause(t.createStringLiteral(e),s))})}function hn(e,n,r,i,a){let o=n.name;if(Xu(o))for(let t of o.elements)Wk(t)||hn(e,t,r,i,a);else{r.push(t.createParameterDeclaration(void 0,void 0,o));let s=c.hasNodeCheckFlag(n,65536);if(s||a){let r=t.createUniqueName(`out_`+Gc(o)),a=0;s&&(a|=1),cA(e)&&(e.initializer&&c.isBindingCapturedByNode(e.initializer,n)&&(a|=2),(e.condition&&c.isBindingCapturedByNode(e.condition,n)||e.incrementor&&c.isBindingCapturedByNode(e.incrementor,n))&&(a|=1)),i.push({flags:a,originalName:o,outParamName:r})}}}function gn(e,t,n,r){let i=t.properties,a=i.length;for(let o=r;onA(e)&&!!Ie(e.declarationList.declarations).initializer,i=g;g=void 0;let a=CB(n.statements,O,Bd);g=i;let o=E(a,r),s=E(a,e=>!r(e)),c=yt(Ie(o),nA).declarationList.declarations[0],l=BM(c.initializer),u=vt(l,kb);!u&&Rk(l)&&l.operatorToken.kind===28&&(u=vt(l.left,kb));let d=yt(u?BM(u.right):l,Tk),f=yt(BM(d.expression),Ak),p=f.body.statements,m=0,h=-1,_=[];if(u){let e=vt(p[m],iA);e&&(_.push(e),m++),_.push(p[m]),m++,_.push(t.createExpressionStatement(t.createAssignment(u.left,yt(c.name,Y))))}for(;!pA(Ne(p,h));)h--;Ee(_,p,m,h),h<-1&&Ee(_,p,h+1);let v=vt(Ne(p,h),pA);for(let e of s)pA(e)&&v?.expression&&!Y(v.expression)?_.push(v):_.push(e);return Ee(_,o,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(c.initializer,t.restoreOuterExpressions(u&&u.right,t.updateCallExpression(d,t.restoreOuterExpressions(d.expression,t.updateFunctionExpression(f,void 0,void 0,void 0,void 0,f.parameters,void 0,t.updateBlock(f.body,_))),void 0,d.arguments))))}function kn(n,r){if(n.transformFlags&32768||n.expression.kind===108||Mh(BM(n.expression))){let{target:e,thisArg:r}=t.createCallBinding(n.expression,o);n.expression.kind===108&&UE(r,8);let i;if(i=n.transformFlags&32768?t.createFunctionApplyCall(H.checkDefined(Q(e,ee,q)),n.expression.kind===108?r:H.checkDefined(Q(r,T,q)),jn(n.arguments,!0,!1,!1)):X(t.createFunctionCallCall(H.checkDefined(Q(e,ee,q)),n.expression.kind===108?r:H.checkDefined(Q(r,T,q)),CB(n.arguments,T,q)),n),n.expression.kind===108){let e=t.createLogicalOr(i,Ye());i=t.createAssignment(j(),e)}return zE(i,n)}return zm(n)&&(p|=131072),PB(n,T,e)}function An(n){if(F(n.arguments,Hk)){let{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,`bind`),o);return t.createNewExpression(t.createFunctionApplyCall(H.checkDefined(Q(e,T,q)),r,jn(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return PB(n,T,e)}function jn(e,r,i,a){let o=e.length,c=ne(P(e,Mn,(e,t,n,r)=>t(e,i,a&&r===o)));if(c.length===1){let e=c[0];if(r&&!s.downlevelIteration||$w(e.expression)||QD(e.expression,`___spreadArray`))return e.expression}let l=n(),u=c[0].kind!==0,d=u?t.createArrayLiteralExpression():c[0].expression;for(let e=u?0:1;e0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,`concat`),void 0,e)}return X(n,e)}function Hn(){return t.createUniqueName(`_super`,48)}function Un(e,n){let r=p&8&&!n?t.createPropertyAccessExpression(zE(Hn(),e),`prototype`):Hn();return zE(r,e),eD(r,e),JE(r,e),r}function Wn(e){return e.keywordToken===105&&e.name.escapedText===`target`?(p|=32768,t.createUniqueName(`_newTarget`,48)):e}function Gn(e,t,n){if(_&1&&ju(t)){let r=b(32670,kp(t)&16?81:65);u(e,t,n),x(r,0,0);return}u(e,t,n)}function Kn(){_&2||(_|=2,e.enableSubstitution(80))}function qn(){_&1||(_|=1,e.enableSubstitution(110),e.enableEmitNotification(177),e.enableEmitNotification(175),e.enableEmitNotification(178),e.enableEmitNotification(179),e.enableEmitNotification(220),e.enableEmitNotification(219),e.enableEmitNotification(263))}function Jn(e,t){return t=l(e,t),e===1?Zn(t):Y(t)?Yn(t):t}function Yn(e){if(_&2&&!kM(e)){let n=Hc(e,Y);if(n&&Xn(n))return X(t.getGeneratedNameForNode(n),e)}return e}function Xn(e){switch(e.parent.kind){case 209:case 264:case 267:case 261:return e.parent.name===e&&c.isDeclarationWithCollidingName(e.parent)}return!1}function Zn(e){switch(e.kind){case 80:return Qn(e);case 110:return er(e)}return e}function Qn(e){if(_&2&&!kM(e)){let n=c.getReferencedDeclarationWithCollidingName(e);if(n&&!(zu(n)&&$n(n,e)))return X(t.getGeneratedNameForNode(el(n)),e)}return e}function $n(e,t){let n=Hc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;let r=cm(e);for(;n;){if(n===r||n===e)return!1;if(Ru(n)&&n.parent===e)return!0;n=n.parent}return!1}function er(e){return _&1&&p&16?X(j(),e):e}function tr(e,n){return $y(n)?t.getInternalName(e):t.createPropertyAccessExpression(t.getInternalName(e),`prototype`)}function nr(e,t){if(!e||!t||F(e.parameters))return!1;let n=Pe(e.body.statements);if(!n||!kv(n)||n.kind!==245)return!1;let r=n.expression;if(!kv(r)||r.kind!==214)return!1;let i=r.expression;if(!kv(i)||i.kind!==108)return!1;let a=Be(r.arguments);if(!a||!kv(a)||a.kind!==231)return!1;let o=a.expression;return Y(o)&&o.escapedText===`arguments`}}function WH(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 GH(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistFunctionDeclaration:a,hoistVariableDeclaration:o}=e,s=zS(e.getCompilerOptions()),c=e.getEmitResolver(),l=e.onSubstituteNode;e.onSubstituteNode=it;let u,f,p,m,h,g,_,v,y,b,x=1,S,C,w,T,E=0,D=0,O,ee,te,ne,re,ie,ae,A;return nV(e,j);function j(t){if(t.isDeclarationFile||!(t.transformFlags&2048))return t;let n=PB(t,M,e);return dD(n,e.readEmitHelpers()),n}function M(t){let n=t.transformFlags;return m?N(t):p?oe(t):Nu(t)&&t.asteriskToken?ce(t):n&2048?PB(t,M,e):t}function N(e){switch(e.kind){case 247:return Fe(e);case 248:return Le(e);case 256:return Ze(e);case 257:return $e(e);default:return oe(e)}}function oe(t){switch(t.kind){case 263:return P(t);case 219:return le(t);case 178:case 179:return F(t);case 244:return de(t);case 249:return Be(t);case 250:return He(t);case 253:return Ke(t);case 252:return We(t);case 254:return Je(t);default:return t.transformFlags&1048576?se(t):t.transformFlags&4196352?PB(t,M,e):t}}function se(t){switch(t.kind){case 227:return fe(t);case 357:return ge(t);case 228:return ve(t);case 230:return ye(t);case 210:return be(t);case 211:return Se(t);case 213:return Ce(t);case 214:return I(t);case 215:return we(t);default:return PB(t,M,e)}}function ce(e){switch(e.kind){case 263:return P(e);case 219:return le(e);default:return H.failBadSyntaxKind(e)}}function P(n){if(n.asteriskToken)n=zE(X(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,DB(n.parameters,M,e),void 0,ue(n.body)),n),n);else{let t=p,r=m;p=!1,m=!1,n=PB(n,M,e),p=t,m=r}if(p){a(n);return}else return n}function le(n){if(n.asteriskToken)n=zE(X(t.createFunctionExpression(void 0,void 0,n.name,void 0,DB(n.parameters,M,e),void 0,ue(n.body)),n),n);else{let t=p,r=m;p=!1,m=!1,n=PB(n,M,e),p=t,m=r}return n}function F(t){let n=p,r=m;return p=!1,m=!1,t=PB(t,M,e),p=n,m=r,t}function ue(e){let n=[],a=p,o=m,s=h,c=g,l=_,u=v,d=y,f=b,E=x,D=S,O=C,k=w,ee=T;p=!0,m=!1,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=1,S=void 0,C=void 0,w=void 0,T=t.createTempVariable(void 0),r();let te=t.copyPrologue(e.statements,n,!1,M);Te(e.statements,te);let ne=Zt();return up(n,i()),n.push(t.createReturnStatement(ne)),p=a,m=o,h=s,g=c,_=l,v=u,y=d,b=f,x=E,S=D,C=O,w=k,T=ee,X(t.createBlock(n,e.multiLine),e)}function de(e){if(e.transformFlags&1048576){je(e.declarationList);return}else{if(kp(e)&2097152)return e;for(let t of e.declarationList.declarations)o(t.name);let n=Dx(e.declarationList);return n.length===0?void 0:JE(t.createExpressionStatement(t.inlineExpressions(k(n,Me))),e)}}function fe(e){let t=jv(e);switch(t){case 0:return me(e);case 1:return pe(e);default:return H.assertNever(t)}}function pe(n){let{left:r,right:i}=n;if(nt(i)){let e;switch(r.kind){case 212:e=t.updatePropertyAccessExpression(r,st(H.checkDefined(Q(r.expression,M,fd))),r.name);break;case 213:e=t.updateElementAccessExpression(r,st(H.checkDefined(Q(r.expression,M,fd))),st(H.checkDefined(Q(r.argumentExpression,M,q))));break;default:e=H.checkDefined(Q(r,M,q));break}let a=n.operatorToken.kind;return pV(a)?X(t.createAssignment(e,X(t.createBinaryExpression(st(e),mV(a),H.checkDefined(Q(i,M,q))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,H.checkDefined(Q(i,M,q)))}return PB(n,M,e)}function me(n){return nt(n.right)?xb(n.operatorToken.kind)?_e(n):n.operatorToken.kind===28?he(n):t.updateBinaryExpression(n,st(H.checkDefined(Q(n.left,M,q))),n.operatorToken,H.checkDefined(Q(n.right,M,q))):PB(n,M,e)}function he(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){Rk(e)&&e.operatorToken.kind===28?(r(e.left),r(e.right)):(nt(e)&&n.length>0&&(Xt(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(H.checkDefined(Q(e,M,q))))}}function ge(e){let n=[];for(let r of e.elements)Rk(r)&&r.operatorToken.kind===28?n.push(he(r)):(nt(r)&&n.length>0&&(Xt(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(H.checkDefined(Q(r,M,q))));return t.inlineExpressions(n)}function _e(e){let t=lt(),n=ct();return Vt(n,H.checkDefined(Q(e.left,M,q)),e.left),e.operatorToken.kind===56?Wt(t,n,e.left):Ut(t,n,e.left),Vt(n,H.checkDefined(Q(e.right,M,q)),e.right),ut(t),n}function ve(t){if(nt(t.whenTrue)||nt(t.whenFalse)){let e=lt(),n=lt(),r=ct();return Wt(e,H.checkDefined(Q(t.condition,M,q)),t.condition),Vt(r,H.checkDefined(Q(t.whenTrue,M,q)),t.whenTrue),Ht(n),ut(e),Vt(r,H.checkDefined(Q(t.whenFalse,M,q)),t.whenFalse),ut(n),r}return PB(t,M,e)}function ye(e){let t=lt(),r=Q(e.expression,M,q);return e.asteriskToken?Gt(kp(e.expression)&8388608?r:X(n().createValuesHelper(r),e),e):Kt(r,e),ut(t),Rt(e)}function be(e){return xe(e.elements,void 0,void 0,e.multiLine)}function xe(e,n,r,i){let a=rt(e),o;if(a>0){o=ct();let r=CB(e,M,q,0,a);Vt(o,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}let s=Ge(e,c,[],a);return o?t.createArrayConcatCall(o,[t.createArrayLiteralExpression(s,i)]):X(t.createArrayLiteralExpression(n?[n,...s]:s,i),r);function c(e,r){if(nt(r)&&e.length>0){let r=o!==void 0;o||=ct(),Vt(o,r?t.createArrayConcatCall(o,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(H.checkDefined(Q(r,M,q))),e}}function Se(e){let n=e.properties,r=e.multiLine,i=rt(n),a=ct();Vt(a,t.createObjectLiteralExpression(CB(n,M,qu,0,i),r));let o=Ge(n,s,[],i);return o.push(r?HM(Zw(X(t.cloneNode(a),a),a.parent)):a),t.inlineExpressions(o);function s(n,i){nt(i)&&n.length>0&&(Bt(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);let o=Q(DM(t,e,i,a),M,q);return o&&(r&&HM(o),n.push(o)),n}}function Ce(n){return nt(n.argumentExpression)?t.updateElementAccessExpression(n,st(H.checkDefined(Q(n.expression,M,fd))),H.checkDefined(Q(n.argumentExpression,M,q))):PB(n,M,e)}function I(n){if(!Bm(n)&&d(n.arguments,nt)){let{target:e,thisArg:r}=t.createCallBinding(n.expression,o,s,!0);return zE(X(t.createFunctionApplyCall(st(H.checkDefined(Q(e,M,fd))),r,xe(n.arguments)),n),n)}return PB(n,M,e)}function we(n){if(d(n.arguments,nt)){let{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,`bind`),o);return zE(X(t.createNewExpression(t.createFunctionApplyCall(st(H.checkDefined(Q(e,M,q))),r,xe(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return PB(n,M,e)}function Te(e,t=0){let n=e.length;for(let r=t;r0)break;a.push(Me(t))}a.length&&(Bt(t.createExpressionStatement(t.inlineExpressions(a))),i+=a.length,a=[])}}function Me(e){return JE(t.createAssignment(JE(t.cloneNode(e.name),e.name),H.checkDefined(Q(e.initializer,M,q))),e)}function Ne(e){if(nt(e))if(nt(e.thenStatement)||nt(e.elseStatement)){let t=lt(),n=e.elseStatement?lt():void 0;Wt(e.elseStatement?n:t,H.checkDefined(Q(e.expression,M,q)),e.expression),Ee(e.thenStatement),e.elseStatement&&(Ht(t),ut(n),Ee(e.elseStatement)),ut(t)}else Bt(Q(e,M,Bd));else Bt(Q(e,M,Bd))}function Pe(e){if(nt(e)){let t=lt(),n=lt();bt(t),ut(n),Ee(e.statement),ut(t),Ut(n,H.checkDefined(Q(e.expression,M,q))),xt()}else Bt(Q(e,M,Bd))}function Fe(t){return m?(yt(),t=PB(t,M,e),xt(),t):PB(t,M,e)}function Ie(e){if(nt(e)){let t=lt(),n=bt(t);ut(t),Wt(n,H.checkDefined(Q(e.expression,M,q))),Ee(e.statement),Ht(t),xt()}else Bt(Q(e,M,Bd))}function Le(t){return m?(yt(),t=PB(t,M,e),xt(),t):PB(t,M,e)}function ze(e){if(nt(e)){let n=lt(),r=lt(),i=bt(r);if(e.initializer){let n=e.initializer;xA(n)?je(n):Bt(X(t.createExpressionStatement(H.checkDefined(Q(n,M,q))),n))}ut(n),e.condition&&Wt(i,H.checkDefined(Q(e.condition,M,q))),Ee(e.statement),ut(r),e.incrementor&&Bt(X(t.createExpressionStatement(H.checkDefined(Q(e.incrementor,M,q))),e.incrementor)),Ht(n),xt()}else Bt(Q(e,M,Bd))}function Be(n){m&&yt();let r=n.initializer;if(r&&xA(r)){for(let e of r.declarations)o(e.name);let i=Dx(r);n=t.updateForStatement(n,i.length>0?t.inlineExpressions(k(i,Me)):void 0,Q(n.condition,M,q),Q(n.incrementor,M,q),MB(n.statement,M,e))}else n=PB(n,M,e);return m&&xt(),n}function Ve(e){if(nt(e)){let n=ct(),r=ct(),i=ct(),a=t.createLoopVariable(),s=e.initializer;o(a),Vt(n,H.checkDefined(Q(e.expression,M,q))),Vt(r,t.createArrayLiteralExpression()),Bt(t.createForInStatement(i,n,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(r,`push`),void 0,[i])))),Vt(a,t.createNumericLiteral(0));let c=lt(),l=lt(),u=bt(l);ut(c),Wt(u,t.createLessThan(a,t.createPropertyAccessExpression(r,`length`))),Vt(i,t.createElementAccessExpression(r,a)),Wt(l,t.createBinaryExpression(i,103,n));let d;if(xA(s)){for(let e of s.declarations)o(e.name);d=t.cloneNode(s.declarations[0].name)}else d=H.checkDefined(Q(s,M,q)),H.assert(fd(d));Vt(d,i),Ee(e.statement),ut(l),Bt(t.createExpressionStatement(t.createPostfixIncrement(a))),Ht(c),xt()}else Bt(Q(e,M,Bd))}function He(n){m&&yt();let r=n.initializer;if(xA(r)){for(let e of r.declarations)o(e.name);n=t.updateForInStatement(n,r.declarations[0].name,H.checkDefined(Q(n.expression,M,q)),H.checkDefined(Q(n.statement,M,Bd,t.liftToBlock)))}else n=PB(n,M,e);return m&&xt(),n}function Ue(e){let t=Nt(e.label?Gc(e.label):void 0);t>0?Ht(t,e):Bt(e)}function We(t){if(m){let e=Nt(t.label&&Gc(t.label));if(e>0)return It(e,t)}return PB(t,M,e)}function L(e){let t=Mt(e.label?Gc(e.label):void 0);t>0?Ht(t,e):Bt(e)}function Ke(t){if(m){let e=Mt(t.label&&Gc(t.label));if(e>0)return It(e,t)}return PB(t,M,e)}function qe(e){qt(Q(e.expression,M,q),e)}function Je(e){return Lt(Q(e.expression,M,q),e)}function Ye(e){nt(e)?(pt(st(H.checkDefined(Q(e.expression,M,q)))),Ee(e.statement),mt()):Bt(Q(e,M,Bd))}function Xe(e){if(nt(e.caseBlock)){let n=e.caseBlock,r=n.clauses.length,i=Ct(),a=st(H.checkDefined(Q(e.expression,M,q))),o=[],s=-1;for(let e=0;e0)break;l.push(t.createCaseClause(H.checkDefined(Q(r.expression,M,q)),[It(o[i],r.expression)]))}else e++}l.length&&(Bt(t.createSwitchStatement(a,t.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}Ht(s>=0?o[s]:i);for(let e=0;e=0;n--){let t=v[n];if(kt(t)){if(t.labelText===e)return!0}else break}return!1}function Mt(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){let n=v[t];if(kt(n)&&n.labelText===e||Ot(n)&&jt(e,t-1))return n.breakLabel}else for(let e=v.length-1;e>=0;e--){let t=v[e];if(Ot(t))return t.breakLabel}return 0}function Nt(e){if(v)if(e)for(let t=v.length-1;t>=0;t--){let n=v[t];if(At(n)&&jt(e,t-1))return n.continueLabel}else for(let e=v.length-1;e>=0;e--){let t=v[e];if(At(t))return t.continueLabel}return 0}function Pt(e){if(e!==void 0&&e>0){b===void 0&&(b=[]);let n=t.createNumericLiteral(2**53-1);return b[e]===void 0?b[e]=[n]:b[e].push(n),n}return t.createOmittedExpression()}function Ft(e){let n=t.createNumericLiteral(e);return oD(n,3,WH(e)),n}function It(e,n){return H.assertLessThan(0,e,`Invalid label`),X(t.createReturnStatement(t.createArrayLiteralExpression([Ft(3),Pt(e)])),n)}function Lt(e,n){return X(t.createReturnStatement(t.createArrayLiteralExpression(e?[Ft(2),e]:[Ft(2)])),n)}function Rt(e){return X(t.createCallExpression(t.createPropertyAccessExpression(T,`sent`),void 0,[]),e)}function zt(){Xt(0)}function Bt(e){e?Xt(1,[e]):zt()}function Vt(e,t,n){Xt(2,[e,t],n)}function Ht(e,t){Xt(3,[e],t)}function Ut(e,t,n){Xt(4,[e,t],n)}function Wt(e,t,n){Xt(5,[e,t],n)}function Gt(e,t){Xt(7,[e],t)}function Kt(e,t){Xt(6,[e],t)}function qt(e,t){Xt(8,[e],t)}function Jt(e,t){Xt(9,[e],t)}function Yt(){Xt(10)}function Xt(e,t,n){S===void 0&&(S=[],C=[],w=[]),y===void 0&&ut(lt());let r=S.length;S[r]=e,C[r]=t,w[r]=n}function Zt(){E=0,D=0,O=void 0,ee=!1,te=!1,ne=void 0,re=void 0,ie=void 0,ae=void 0,A=void 0;let e=Qt();return n().createGeneratorHelper(UE(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,T)],void 0,t.createBlock(e,e.length>0)),1048576))}function Qt(){if(S){for(let e=0;e=0;e--){let n=A[e];re=[t.createWithStatement(n.expression,t.createBlock(re))]}if(ae){let{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=ae;re.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(T,`trys`),`push`),void 0,[t.createArrayLiteralExpression([Pt(e),Pt(n),Pt(r),Pt(i)])]))),ae=void 0}e&&re.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(T,`label`),t.createNumericLiteral(D+1))))}ne.push(t.createCaseClause(t.createNumericLiteral(D),re||[])),re=void 0}function nn(e){if(y)for(let t=0;t{(!uf(e.arguments[0])||Jg(e.arguments[0].text,s))&&(y=I(y,e))});let r=t(p)(n);return _=void 0,v=void 0,x=!1,r}function C(){return $C(_.fileName)&&_.commonJsModuleIndicator&&(!_.externalModuleIndicator||_.externalModuleIndicator===!0)?!1:!!(!v.exportEquals&&yP(_))}function w(t){i();let r=[],o=sC(s,`alwaysStrict`)||yP(_),c=n.copyPrologue(t.statements,r,o&&!jm(t),te);if(C()&&I(r,Ze()),F(v.exportedNames))for(let e=0;et.kind===11?n.createAssignment(n.createElementAccessExpression(n.createIdentifier(`exports`),n.createStringLiteral(t.text)),e):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier(`exports`),n.createIdentifier(Gc(t))),e),n.createVoidZero())));for(let e of v.exportedFunctions)Je(r,e);I(r,Q(v.externalHelpersImportDeclaration,te,Bd)),Ee(r,CB(t.statements,te,Bd,c)),ee(r,!1),up(r,a());let l=n.updateSourceFile(t,X(n.createNodeArray(r),t.statements));return dD(l,e.readEmitHelpers()),l}function T(t){let r=n.createIdentifier(`define`),i=XM(n,t,d,s),a=jm(t)&&t,{aliasedModuleNames:o,unaliasedModuleNames:l,importAliasNames:u}=D(t,!0),f=n.updateSourceFile(t,X(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(r,void 0,[...i?[i]:[],n.createArrayLiteralExpression(a?c:[n.createStringLiteral(`require`),n.createStringLiteral(`exports`),...o,...l]),a?a.statements.length?a.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,`require`),n.createParameterDeclaration(void 0,void 0,`exports`),...u],void 0,k(t))]))]),t.statements));return dD(f,e.readEmitHelpers()),f}function E(t){let{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:a}=D(t,!1),o=XM(n,t,d,s),c=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,`factory`)],void 0,X(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier(`module`),`object`),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier(`module`),`exports`),`object`)),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration(`v`,void 0,void 0,n.createCallExpression(n.createIdentifier(`factory`),void 0,[n.createIdentifier(`require`),n.createIdentifier(`exports`)]))]),UE(n.createIfStatement(n.createStrictInequality(n.createIdentifier(`v`),n.createIdentifier(`undefined`)),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier(`module`),`exports`),n.createIdentifier(`v`)))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier(`define`),`function`),n.createPropertyAccessExpression(n.createIdentifier(`define`),`amd`)),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier(`define`),void 0,[...o?[o]:[],n.createArrayLiteralExpression([n.createStringLiteral(`require`),n.createStringLiteral(`exports`),...r,...i]),n.createIdentifier(`factory`)]))])))],!0),void 0)),l=n.updateSourceFile(t,X(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(c,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,`require`),n.createParameterDeclaration(void 0,void 0,`exports`),...a],void 0,k(t))]))]),t.statements));return dD(l,e.readEmitHelpers()),l}function D(e,t){let r=[],i=[],a=[];for(let t of e.amdDependencies)t.name?(r.push(n.createStringLiteral(t.path)),a.push(n.createParameterDeclaration(void 0,void 0,t.name))):i.push(n.createStringLiteral(t.path));for(let e of v.externalImports){let o=JM(n,e,_,d,l,s),c=qM(n,e,_);o&&(t&&c?(UE(c,8),r.push(o),a.push(n.createParameterDeclaration(void 0,void 0,c))):i.push(o))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:a}}function O(e){if(jA(e)||WA(e)||!JM(n,e,_,d,l,s))return;let t=qM(n,e,_),r=Ae(e,t);if(r!==t)return n.createExpressionStatement(n.createAssignment(t,r))}function k(e){i();let t=[],r=n.copyPrologue(e.statements,t,!0,te);C()&&I(t,Ze()),F(v.exportedNames)&&I(t,n.createExpressionStatement(Ge(v.exportedNames,(e,t)=>t.kind===11?n.createAssignment(n.createElementAccessExpression(n.createIdentifier(`exports`),n.createStringLiteral(t.text)),e):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier(`exports`),n.createIdentifier(Gc(t))),e),n.createVoidZero())));for(let e of v.exportedFunctions)Je(t,e);I(t,Q(v.externalHelpersImportDeclaration,te,Bd)),p===2&&Ee(t,M(v.externalImports,O)),Ee(t,CB(e.statements,te,Bd,r)),ee(t,!0),up(t,a());let o=n.createBlock(t,!0);return x&&uD(o,qH),o}function ee(e,t){if(v.exportEquals){let r=Q(v.exportEquals.expression,ie,q);if(r)if(t){let t=n.createReturnStatement(r);X(t,v.exportEquals),UE(t,3840),e.push(t)}else{let t=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier(`module`),`exports`),r));X(t,v.exportEquals),UE(t,3072),e.push(t)}}}function te(e){switch(e.kind){case 273:return je(e);case 272:return Ne(e);case 279:return Fe(e);case 278:return Ie(e);default:return ne(e)}}function ne(e){switch(e.kind){case 244:return ze(e);case 263:return Le(e);case 264:return Re(e);case 249:return N(e,!0);case 250:return oe(e);case 251:return se(e);case 247:return ce(e);case 248:return P(e);case 257:return le(e);case 255:return ue(e);case 246:return de(e);case 256:return fe(e);case 270:return pe(e);case 297:return me(e);case 298:return he(e);case 259:return ge(e);case 300:return _e(e);case 242:return ve(e);default:return ie(e)}}function re(t,n){if(!(t.transformFlags&276828160)&&!y?.length)return t;switch(t.kind){case 249:return N(t,!1);case 245:return ye(t);case 218:return be(t,n);case 356:return xe(t,n);case 214:let e=t===Pe(y);if(e&&y.shift(),Bm(t)&&d.shouldTransformImportCall(_))return we(t,e);if(e)return Ce(t);break;case 227:if(Ab(t))return j(t,n);break;case 225:case 226:return Se(t,n)}return PB(t,ie,e)}function ie(e){return re(e,!1)}function ae(e){return re(e,!0)}function A(e){if(Sk(e))for(let t of e.properties)switch(t.kind){case 304:if(A(t.initializer))return!0;break;case 305:if(A(t.name))return!0;break;case 306:if(A(t.expression))return!0;break;case 175:case 178:case 179:return!1;default:H.assertNever(t,`Unhandled object member kind`)}else if(xk(e)){for(let t of e.elements)if(Hk(t)){if(A(t.expression))return!0}else if(A(t))return!0}else if(Y(e))return u(ut(e))>(jM(e)?1:0);return!1}function j(t,n){return A(t.left)?IV(t,ie,e,0,!n,Be):PB(t,ie,e)}function N(t,r){if(r&&t.initializer&&xA(t.initializer)&&!(t.initializer.flags&7)){let i=Ke(void 0,t.initializer,!1);if(i){let a=[],o=Q(t.initializer,ae,xA),s=n.createVariableStatement(void 0,o);a.push(s),Ee(a,i);let c=Q(t.condition,ie,q),l=Q(t.incrementor,ae,q),u=MB(t.statement,r?ne:ie,e);return a.push(n.updateForStatement(t,void 0,c,l,u)),a}}return n.updateForStatement(t,Q(t.initializer,ae,Dd),Q(t.condition,ie,q),Q(t.incrementor,ae,q),MB(t.statement,r?ne:ie,e))}function oe(t){if(xA(t.initializer)&&!(t.initializer.flags&7)){let r=Ke(void 0,t.initializer,!0);if(F(r)){let i=Q(t.initializer,ae,Dd),a=Q(t.expression,ie,q),o=MB(t.statement,ne,e),s=tA(o)?n.updateBlock(o,[...r,...o.statements]):n.createBlock([...r,o],!0);return n.updateForInStatement(t,i,a,s)}}return n.updateForInStatement(t,Q(t.initializer,ae,Dd),Q(t.expression,ie,q),MB(t.statement,ne,e))}function se(t){if(xA(t.initializer)&&!(t.initializer.flags&7)){let r=Ke(void 0,t.initializer,!0),i=Q(t.initializer,ae,Dd),a=Q(t.expression,ie,q),o=MB(t.statement,ne,e);return F(r)&&(o=tA(o)?n.updateBlock(o,[...r,...o.statements]):n.createBlock([...r,o],!0)),n.updateForOfStatement(t,t.awaitModifier,i,a,o)}return n.updateForOfStatement(t,t.awaitModifier,Q(t.initializer,ae,Dd),Q(t.expression,ie,q),MB(t.statement,ne,e))}function ce(t){return n.updateDoStatement(t,MB(t.statement,ne,e),Q(t.expression,ie,q))}function P(t){return n.updateWhileStatement(t,Q(t.expression,ie,q),MB(t.statement,ne,e))}function le(e){return n.updateLabeledStatement(e,e.label,Q(e.statement,ne,Bd,n.liftToBlock)??X(n.createEmptyStatement(),e.statement))}function ue(e){return n.updateWithStatement(e,Q(e.expression,ie,q),H.checkDefined(Q(e.statement,ne,Bd,n.liftToBlock)))}function de(e){return n.updateIfStatement(e,Q(e.expression,ie,q),Q(e.thenStatement,ne,Bd,n.liftToBlock)??n.createBlock([]),Q(e.elseStatement,ne,Bd,n.liftToBlock))}function fe(e){return n.updateSwitchStatement(e,Q(e.expression,ie,q),H.checkDefined(Q(e.caseBlock,ne,kA)))}function pe(e){return n.updateCaseBlock(e,CB(e.clauses,ne,Yd))}function me(e){return n.updateCaseClause(e,Q(e.expression,ie,q),CB(e.statements,ne,Bd))}function he(t){return PB(t,ne,e)}function ge(t){return PB(t,ne,e)}function _e(e){return n.updateCatchClause(e,e.variableDeclaration,H.checkDefined(Q(e.block,ne,tA)))}function ve(t){return t=PB(t,ne,e),t}function ye(e){return n.updateExpressionStatement(e,Q(e.expression,ae,q))}function be(e,t){return n.updateParenthesizedExpression(e,Q(e.expression,t?ae:ie,q))}function xe(e,t){return n.updatePartiallyEmittedExpression(e,Q(e.expression,t?ae:ie,q))}function Se(t,r){if((t.operator===46||t.operator===47)&&Y(t.operand)&&!yu(t.operand)&&!AM(t.operand)&&!Ex(t.operand)){let e=ut(t.operand);if(e){let i,a=Q(t.operand,ie,q);Ik(t)?a=n.updatePrefixUnaryExpression(t,a):(a=n.updatePostfixUnaryExpression(t,a),r||(i=n.createTempVariable(o),a=n.createAssignment(i,a),X(a,t)),a=n.createComma(a,n.cloneNode(t.operand)),X(a,t));for(let n of e)b[mB(a)]=!0,a=et(n,a),X(a,t);return i&&(b[mB(a)]=!0,a=n.createComma(a,i),X(a,t)),a}}return PB(t,ie,e)}function Ce(e){return n.updateCallExpression(e,e.expression,void 0,CB(e.arguments,t=>t===e.arguments[0]?uf(t)?PV(t,s):r().createRewriteRelativeImportExtensionsHelper(t):ie(t),q))}function we(t,i){if(p===0&&f>=7)return PB(t,ie,e);let a=JM(n,t,_,d,l,s),o=Q(Pe(t.arguments),ie,q),c=a&&(!o||!tO(o)||o.text!==a.text)?a:o&&i?tO(o)?PV(o,s):r().createRewriteRelativeImportExtensionsHelper(o):o,u=!!(t.transformFlags&16384);switch(s.module){case 2:return De(c,u);case 3:return Te(c??n.createVoidZero(),u);default:return Oe(c)}}function Te(e,t){if(x=!0,dV(e)){let r=yu(e)?e:tO(e)?n.createStringLiteralFromNode(e):UE(X(n.cloneNode(e),e),3072);return n.createConditionalExpression(n.createIdentifier(`__syncRequire`),void 0,Oe(e),void 0,De(r,t))}else{let r=n.createTempVariable(o);return n.createComma(n.createAssignment(r,e),n.createConditionalExpression(n.createIdentifier(`__syncRequire`),void 0,Oe(r,!0),void 0,De(r,t)))}}function De(e,t){let i=n.createUniqueName(`resolve`),a=n.createUniqueName(`reject`),o=[n.createParameterDeclaration(void 0,void 0,i),n.createParameterDeclaration(void 0,void 0,a)],c=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier(`require`),void 0,[n.createArrayLiteralExpression([e||n.createOmittedExpression()]),i,a]))]),l;f>=2?l=n.createArrowFunction(void 0,void 0,o,void 0,void 0,c):(l=n.createFunctionExpression(void 0,void 0,void 0,void 0,o,void 0,c),t&&UE(l,16));let u=n.createNewExpression(n.createIdentifier(`Promise`),void 0,[l]);return WS(s)?n.createCallExpression(n.createPropertyAccessExpression(u,n.createIdentifier(`then`)),void 0,[r().createImportStarCallbackHelper()]):u}function Oe(e,t){let i=e&&!fV(e)&&!t,a=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier(`Promise`),`resolve`),void 0,i?f>=2?[n.createTemplateExpression(n.createTemplateHead(``),[n.createTemplateSpan(e,n.createTemplateTail(``))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(``),`concat`),void 0,[e])]:[]),o=n.createCallExpression(n.createIdentifier(`require`),void 0,i?[n.createIdentifier(`s`)]:e?[e]:[]);WS(s)&&(o=r().createImportStarHelper(o));let c=i?[n.createParameterDeclaration(void 0,void 0,`s`)]:[],l;return l=f>=2?n.createArrowFunction(void 0,void 0,c,void 0,void 0,o):n.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,n.createBlock([n.createReturnStatement(o)])),n.createCallExpression(n.createPropertyAccessExpression(a,`then`),void 0,[l])}function ke(e,t){return!WS(s)||Ap(e)&2?t:rV(e)?r().createImportStarHelper(t):t}function Ae(e,t){return!WS(s)||Ap(e)&2?t:iV(e)?r().createImportStarHelper(t):aV(e)?r().createImportDefaultHelper(t):t}function je(e){let t,r=Xg(e);if(p!==2)if(e.importClause){let i=[];r&&!Zg(e)?i.push(n.createVariableDeclaration(n.cloneNode(r.name),void 0,void 0,Ae(e,Me(e)))):(i.push(n.createVariableDeclaration(n.getGeneratedNameForNode(e),void 0,void 0,Ae(e,Me(e)))),r&&Zg(e)&&i.push(n.createVariableDeclaration(n.cloneNode(r.name),void 0,void 0,n.getGeneratedNameForNode(e)))),t=I(t,zE(X(n.createVariableStatement(void 0,n.createVariableDeclarationList(i,f>=2?2:0)),e),e))}else return zE(X(n.createExpressionStatement(Me(e)),e),e);else r&&Zg(e)&&(t=I(t,n.createVariableStatement(void 0,n.createVariableDeclarationList([zE(X(n.createVariableDeclaration(n.cloneNode(r.name),void 0,void 0,n.getGeneratedNameForNode(e)),e),e)],f>=2?2:0))));return t=Ue(t,e),He(t)}function Me(e){let t=JM(n,e,_,d,l,s),r=[];return t&&r.push(PV(t,s)),n.createCallExpression(n.createIdentifier(`require`),void 0,r)}function Ne(e){H.assert(Xh(e),`import= for internal module references should be handled in an earlier transformer.`);let t;return p===2?Qy(e,32)&&(t=I(t,zE(X(n.createExpressionStatement(et(n.getExportName(e),n.getLocalName(e))),e),e))):t=Qy(e,32)?I(t,zE(X(n.createExpressionStatement(et(e.name,Me(e))),e),e)):I(t,zE(X(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(e.name),void 0,void 0,Me(e))],f>=2?2:0)),e),e)),t=We(t,e),He(t)}function Fe(e){if(!e.moduleSpecifier)return;let t=n.getGeneratedNameForNode(e);if(e.exportClause&&GA(e.exportClause)){let i=[];p!==2&&i.push(zE(X(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(t,void 0,void 0,Me(e))])),e),e));for(let a of e.exportClause.elements){let o=a.propertyName||a.name,c=WS(s)&&!(Ap(e)&2)&&wp(o)?r().createImportDefaultHelper(t):t,l=o.kind===11?n.createElementAccessExpression(c,o):n.createPropertyAccessExpression(c,o);i.push(zE(X(n.createExpressionStatement(et(a.name.kind===11?n.cloneNode(a.name):n.getExportName(a),l,void 0,!0)),a),a))}return He(i)}else if(e.exportClause){let r=[];return r.push(zE(X(n.createExpressionStatement(et(n.cloneNode(e.exportClause.name),ke(e,p===2?xp(e)||e.exportClause.name.kind===11?t:n.createIdentifier(Gc(e.exportClause.name)):Me(e)))),e),e)),He(r)}else return zE(X(n.createExpressionStatement(r().createExportStarHelper(p===2?t:Me(e))),e),e)}function Ie(e){if(!e.isExportEquals)return Qe(n.createIdentifier(`default`),Q(e.expression,ie,q),e,!0)}function Le(t){let r;return r=Qy(t,32)?I(r,zE(X(n.createFunctionDeclaration(CB(t.modifiers,tt,Du),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,CB(t.parameters,ie,FO),void 0,PB(t.body,ie,e)),t),t)):I(r,PB(t,ie,e)),He(r)}function Re(t){let r;return r=Qy(t,32)?I(r,zE(X(n.createClassDeclaration(CB(t.modifiers,tt,Wu),n.getDeclarationName(t,!0,!0),void 0,CB(t.heritageClauses,ie,fj),CB(t.members,ie,Ru)),t),t)):I(r,PB(t,ie,e)),r=Je(r,t),He(r)}function ze(t){let r,i,a;if(Qy(t,32)){let e,o=!1;for(let r of t.declarationList.declarations)if(Y(r.name)&&AM(r.name))if(e||=CB(t.modifiers,tt,Du),r.initializer){let e=n.updateVariableDeclaration(r,r.name,void 0,void 0,et(r.name,Q(r.initializer,ie,q)));i=I(i,e)}else i=I(i,r);else if(r.initializer)if(!Xu(r.name)&&(jk(r.initializer)||Ak(r.initializer)||Uk(r.initializer))){let e=n.createAssignment(X(n.createPropertyAccessExpression(n.createIdentifier(`exports`),r.name),r.name),n.createIdentifier(gv(r.name))),t=n.createVariableDeclaration(r.name,r.exclamationToken,r.type,Q(r.initializer,ie,q));i=I(i,t),a=I(a,e),o=!0}else a=I(a,Ve(r));if(i&&(r=I(r,n.updateVariableStatement(t,e,n.updateVariableDeclarationList(t.declarationList,i)))),a){let e=zE(X(n.createExpressionStatement(n.inlineExpressions(a)),t),t);o&&HE(e),r=I(r,e)}}else r=I(r,PB(t,ie,e));return r=L(r,t),He(r)}function Be(e,t,r){let i=ut(e);if(i){let a=jM(e)?t:n.createAssignment(e,t);for(let e of i)UE(a,8),a=et(e,a,r);return a}return n.createAssignment(e,t)}function Ve(t){return Xu(t.name)?IV(Q(t,ie,Ox),ie,e,0,!1,Be):n.createAssignment(X(n.createPropertyAccessExpression(n.createIdentifier(`exports`),t.name),t.name),t.initializer?Q(t.initializer,ie,q):n.createVoidZero())}function Ue(e,t){if(v.exportEquals)return e;let n=t.importClause;if(!n)return e;let r=new lV;n.name&&(e=Ye(e,r,n));let i=n.namedBindings;if(i)switch(i.kind){case 275:e=Ye(e,r,i);break;case 276:for(let t of i.elements)e=Ye(e,r,t,!0);break}return e}function We(e,t){return v.exportEquals?e:Ye(e,new lV,t)}function L(e,t){return Ke(e,t.declarationList,!1)}function Ke(e,t,n){if(v.exportEquals)return e;for(let r of t.declarations)e=qe(e,r,n);return e}function qe(e,t,n){if(v.exportEquals)return e;if(Xu(t.name))for(let r of t.name.elements)Wk(r)||(e=qe(e,r,n));else !yu(t.name)&&(!bA(t)||t.initializer||n)&&(e=Ye(e,new lV,t));return e}function Je(e,t){if(v.exportEquals)return e;let r=new lV;if(Qy(t,32)){let i=Qy(t,2048)?n.createIdentifier(`default`):n.getDeclarationName(t);e=Xe(e,r,i,n.getLocalName(t),t)}return t.name&&(e=Ye(e,r,t)),e}function Ye(e,t,r,i){let a=n.getDeclarationName(r),o=v.exportSpecifiers.get(a);if(o)for(let n of o)e=Xe(e,t,n.name,a,n.name,void 0,i);return e}function Xe(e,t,n,r,i,a,o){if(n.kind!==11){if(t.has(n))return e;t.set(n,!0)}return e=I(e,Qe(n,r,i,a,o)),e}function Ze(){let e=n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier(`Object`),`defineProperty`),void 0,[n.createIdentifier(`exports`),n.createStringLiteral(`__esModule`),n.createObjectLiteralExpression([n.createPropertyAssignment(`value`,n.createTrue())])]));return UE(e,2097152),e}function Qe(e,t,r,i,a){let o=X(n.createExpressionStatement(et(e,t,void 0,a)),r);return HM(o),i||UE(o,3072),o}function et(e,t,r,i){return X(i?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier(`Object`),`defineProperty`),void 0,[n.createIdentifier(`exports`),n.createStringLiteralFromNode(e),n.createObjectLiteralExpression([n.createPropertyAssignment(`enumerable`,n.createTrue()),n.createPropertyAssignment(`get`,n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(t)])))])]):n.createAssignment(e.kind===11?n.createElementAccessExpression(n.createIdentifier(`exports`),n.cloneNode(e)):n.createPropertyAccessExpression(n.createIdentifier(`exports`),n.cloneNode(e)),t),r)}function tt(e){switch(e.kind){case 95:case 90:return}return e}function nt(e,t,n){t.kind===308?(_=t,v=g[$B(_)],h(e,t,n),_=void 0,v=void 0):h(e,t,n)}function rt(e,t){return t=m(e,t),t.id&&b[t.id]?t:e===1?at(t):hj(t)?it(t):t}function it(e){let t=e.name,r=ct(t);if(r!==t){if(e.objectAssignmentInitializer){let i=n.createAssignment(r,e.objectAssignmentInitializer);return X(n.createPropertyAssignment(t,i),e)}return X(n.createPropertyAssignment(t,r),e)}return e}function at(e){switch(e.kind){case 80:return ct(e);case 214:return ot(e);case 216:return st(e);case 227:return lt(e)}return e}function ot(e){if(Y(e.expression)){let t=ct(e.expression);if(b[mB(t)]=!0,!Y(t)&&!(kp(e.expression)&8192))return KE(n.updateCallExpression(e,t,void 0,e.arguments),16)}return e}function st(e){if(Y(e.tag)){let t=ct(e.tag);if(b[mB(t)]=!0,!Y(t)&&!(kp(e.tag)&8192))return KE(n.updateTaggedTemplateExpression(e,t,void 0,e.template),16)}return e}function ct(e){if(kp(e)&8192){let t=UM(_);return t?n.createPropertyAccessExpression(t,e):e}else if(!(yu(e)&&!(e.emitNode.autoGenerate.flags&64))&&!AM(e)){let t=l.getReferencedExportContainer(e,jM(e));if(t&&t.kind===308)return X(n.createPropertyAccessExpression(n.createIdentifier(`exports`),n.cloneNode(e)),e);let r=l.getReferencedImportDeclaration(e);if(r){if(NA(r))return X(n.createPropertyAccessExpression(n.getGeneratedNameForNode(r.parent),n.createIdentifier(`default`)),e);if(HA(r)){let t=r.propertyName||r.name,i=n.getGeneratedNameForNode(r.parent?.parent?.parent||r);return X(t.kind===11?n.createElementAccessExpression(i,n.cloneNode(t)):n.createPropertyAccessExpression(i,n.cloneNode(t)),e)}}}return e}function lt(e){if(Eb(e.operatorToken.kind)&&Y(e.left)&&(!yu(e.left)||xu(e.left))&&!AM(e.left)){let t=ut(e.left);if(t){let n=e;for(let r of t)b[mB(n)]=!0,n=et(r,n,e);return n}}return e}function ut(e){if(!yu(e)){let t=l.getReferencedImportDeclaration(e);if(t)return v?.exportedBindings[$B(t)];let n=new Set,r=l.getReferencedValueDeclarations(e);if(r){for(let e of r){let t=v?.exportedBindings[$B(e)];if(t)for(let e of t)n.add(e)}if(n.size)return $e(n)}}else if(xu(e)){let t=v?.exportSpecifiers.get(e);if(t){let e=[];for(let n of t)e.push(n.name);return e}}}}var qH={name:`typescript:dynamicimport-sync-require`,scoped:!0,text:` var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function JH(e){let{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,a=e.getCompilerOptions(),o=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=Ye,e.onEmitNode=Je,e.enableSubstitution(80),e.enableSubstitution(305),e.enableSubstitution(227),e.enableSubstitution(237),e.enableEmitNotification(308);let u=[],f=[],p=[],m=[],h,g,_,v,y,b,x;return nV(e,S);function S(n){if(n.isDeclarationFile||!(Yp(n,a)||n.transformFlags&8388608))return n;let r=$B(n);h=n,b=n,g=u[r]=oV(e,n),_=t.createUniqueName(`exports`),f[r]=_,v=m[r]=t.createUniqueName(`context`);let i=C(g.externalImports),o=w(n,i),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,_),t.createParameterDeclaration(void 0,void 0,v)],void 0,o),l=XM(t,n,s,a),d=t.createArrayLiteralExpression(k(i,e=>e.name)),S=UE(t.updateSourceFile(n,X(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier(`System`),`register`),void 0,l?[l,d,c]:[d,c]))]),n.statements)),2048);return a.outFile||mD(S,o,e=>!e.scoped),x&&=(p[r]=x,void 0),h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,S}function C(e){let n=new Map,r=[];for(let i of e){let e=JM(t,i,h,s,o,a);if(e){let t=e.text,a=n.get(t);a===void 0?(n.set(t,r.length),r.push({name:e,externalImports:[i]})):r[a].externalImports.push(i)}}return r}function w(e,i){let o=[];n();let s=sC(a,`alwaysStrict`)||yP(h),c=t.copyPrologue(e.statements,o,s,O);o.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(`__moduleName`,void 0,void 0,t.createLogicalAnd(v,t.createPropertyAccessExpression(v,`id`)))]))),Q(g.externalHelpersImportDeclaration,O,Bd);let l=CB(e.statements,O,Bd,c);Ee(o,y),up(o,r());let u=T(o),d=e.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,f=t.createObjectLiteralExpression([t.createPropertyAssignment(`setters`,D(u,i)),t.createPropertyAssignment(`execute`,t.createFunctionExpression(d,void 0,void 0,void 0,[],void 0,t.createBlock(l,!0)))],!0);return o.push(t.createReturnStatement(f)),t.createBlock(o,!0)}function T(e){if(!g.hasExportStarsToExportValues)return;if(!F(g.exportedNames)&&g.exportedFunctions.size===0&&g.exportSpecifiers.size===0){let t=!1;for(let e of g.externalImports)if(e.kind===279&&e.exportClause){t=!0;break}if(!t){let t=E(void 0);return e.push(t),t.name}}let n=[];if(g.exportedNames)for(let e of g.exportedNames)wp(e)||n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));for(let e of g.exportedFunctions)Qy(e,2048)||(H.assert(!!e.name),n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e.name),t.createTrue())));let r=t.createUniqueName(`exportedNames`);e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));let i=E(r);return e.push(i),i.name}function E(e){let n=t.createUniqueName(`exportStar`),r=t.createIdentifier(`m`),i=t.createIdentifier(`n`),a=t.createIdentifier(`exports`),o=t.createStrictInequality(i,t.createStringLiteral(`default`));return e&&(o=t.createLogicalAnd(o,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(e,`hasOwnProperty`),void 0,[i])))),t.createFunctionDeclaration(void 0,void 0,n,void 0,[t.createParameterDeclaration(void 0,void 0,r)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([UE(t.createIfStatement(o,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(a,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(_,void 0,[a]))],!0))}function D(e,n){let r=[];for(let i of n){let n=d(i.externalImports,e=>qM(t,e,h)),a=n?t.getGeneratedNameForNode(n):t.createUniqueName(``),o=[];for(let n of i.externalImports){let r=qM(t,n,h);switch(n.kind){case 273:if(!n.importClause)break;case 272:H.assert(r!==void 0),o.push(t.createExpressionStatement(t.createAssignment(r,a))),Qy(n,32)&&o.push(t.createExpressionStatement(t.createCallExpression(_,void 0,[t.createStringLiteral(Gc(r)),a])));break;case 279:if(H.assert(r!==void 0),n.exportClause)if(GA(n.exportClause)){let e=[];for(let r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral(Sp(r.name)),t.createElementAccessExpression(a,t.createStringLiteral(Sp(r.propertyName||r.name)))));o.push(t.createExpressionStatement(t.createCallExpression(_,void 0,[t.createObjectLiteralExpression(e,!0)])))}else o.push(t.createExpressionStatement(t.createCallExpression(_,void 0,[t.createStringLiteral(Sp(n.exportClause.name)),a])));else o.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[a])));break}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,a)],void 0,t.createBlock(o,!0)))}return t.createArrayLiteralExpression(r,!0)}function O(e){switch(e.kind){case 273:return ee(e);case 272:return ne(e);case 279:return te(e);case 278:return re(e);default:return _e(e)}}function ee(e){return e.importClause&&i(qM(t,e,h)),He(P(void 0,e))}function te(e){H.assertIsDefined(e)}function ne(e){return H.assert(Xh(e),`import= for internal module references should be handled in an earlier transformer.`),i(qM(t,e,h)),He(le(void 0,e))}function re(e){if(e.isExportEquals)return;let n=Q(e.expression,Re,q);return he(t.createIdentifier(`default`),n,!0)}function ie(n){y=Qy(n,32)?I(y,t.updateFunctionDeclaration(n,CB(n.modifiers,qe,Wu),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,CB(n.parameters,Re,FO),void 0,Q(n.body,Re,tA))):I(y,PB(n,Re,e)),y=fe(y,n)}function ae(e){let n,r=t.getLocalName(e);return i(r),n=I(n,X(t.createExpressionStatement(t.createAssignment(r,X(t.createClassExpression(CB(e.modifiers,qe,Wu),e.name,void 0,CB(e.heritageClauses,Re,fj),CB(e.members,Re,Ru)),e))),e)),n=fe(n,e),He(n)}function A(e){if(!M(e.declarationList))return Q(e,Re,Bd);let n;if(Fm(e.declarationList)||Pm(e.declarationList)){let r=CB(e.modifiers,qe,Wu),i=[];for(let n of e.declarationList.declarations)i.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,N(n,!1)));let a=t.updateVariableDeclarationList(e.declarationList,i);n=I(n,t.updateVariableStatement(e,r,a))}else{let r,i=Qy(e,32);for(let t of e.declarationList.declarations)t.initializer?r=I(r,N(t,i)):j(t);r&&(n=I(n,X(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=ue(n,e,!1),He(n)}function j(e){if(Xu(e.name))for(let t of e.name.elements)Wk(t)||j(t);else i(t.cloneNode(e.name))}function M(e){return(kp(e)&4194304)==0&&(b.kind===308||(Bc(e).flags&7)==0)}function N(t,n){let r=n?oe:se;return Xu(t.name)?IV(t,Re,e,0,!1,r):t.initializer?r(t.name,Q(t.initializer,Re,q)):t.name}function oe(e,t,n){return ce(e,t,n,!0)}function se(e,t,n){return ce(e,t,n,!1)}function ce(e,n,r,a){return i(t.cloneNode(e)),a?ge(e,it(X(t.createAssignment(e,n),r))):it(X(t.createAssignment(e,n),r))}function P(e,t){if(g.exportEquals)return e;let n=t.importClause;if(!n)return e;n.name&&(e=pe(e,n));let r=n.namedBindings;if(r)switch(r.kind){case 275:e=pe(e,r);break;case 276:for(let t of r.elements)e=pe(e,t);break}return e}function le(e,t){return g.exportEquals?e:pe(e,t)}function ue(e,t,n){if(g.exportEquals)return e;for(let r of t.declarationList.declarations)(r.initializer||n)&&(e=de(e,r));return e}function de(e,t,n){if(g.exportEquals)return e;if(Xu(t.name))for(let n of t.name.elements)Wk(n)||(e=de(e,n));else yu(t.name)||(e=pe(e,t,void 0));return e}function fe(e,n){if(g.exportEquals)return e;let r;if(Qy(n,32)){let i=Qy(n,2048)?t.createStringLiteral(`default`):n.name;e=me(e,i,t.getLocalName(n)),r=gv(i)}return n.name&&(e=pe(e,n,r)),e}function pe(e,n,r){if(g.exportEquals)return e;let i=t.getDeclarationName(n),a=g.exportSpecifiers.get(i);if(a)for(let t of a)Sp(t.name)!==r&&(e=me(e,t.name,i));return e}function me(e,t,n,r){return e=I(e,he(t,n,r)),e}function he(e,n,r){let i=t.createExpressionStatement(ge(e,n));return HM(i),r||UE(i,3072),i}function ge(e,n){let r=Y(e)?t.createStringLiteralFromNode(e):e;return UE(n,kp(n)|3072),eD(t.createCallExpression(_,void 0,[r,n]),n)}function _e(e){switch(e.kind){case 244:return A(e);case 263:return ie(e);case 264:return ae(e);case 249:return ve(e,!0);case 250:return ye(e);case 251:return be(e);case 247:return Ce(e);case 248:return we(e);case 257:return Te(e);case 255:return De(e);case 246:return Oe(e);case 256:return ke(e);case 270:return Ae(e);case 297:return je(e);case 298:return Me(e);case 259:return Ne(e);case 300:return Fe(e);case 242:return Ie(e);default:return Re(e)}}function ve(n,r){let i=b;return b=n,n=t.updateForStatement(n,Q(n.initializer,r?Se:ze,Dd),Q(n.condition,Re,q),Q(n.incrementor,ze,q),MB(n.statement,r?_e:Re,e)),b=i,n}function ye(n){let r=b;return b=n,n=t.updateForInStatement(n,Se(n.initializer),Q(n.expression,Re,q),MB(n.statement,_e,e)),b=r,n}function be(n){let r=b;return b=n,n=t.updateForOfStatement(n,n.awaitModifier,Se(n.initializer),Q(n.expression,Re,q),MB(n.statement,_e,e)),b=r,n}function xe(e){return xA(e)&&M(e)}function Se(e){if(xe(e)){let n;for(let t of e.declarations)n=I(n,N(t,!1)),t.initializer||j(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}else return Q(e,ze,Dd)}function Ce(n){return t.updateDoStatement(n,MB(n.statement,_e,e),Q(n.expression,Re,q))}function we(n){return t.updateWhileStatement(n,Q(n.expression,Re,q),MB(n.statement,_e,e))}function Te(e){return t.updateLabeledStatement(e,e.label,Q(e.statement,_e,Bd,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier(``)))}function De(e){return t.updateWithStatement(e,Q(e.expression,Re,q),H.checkDefined(Q(e.statement,_e,Bd,t.liftToBlock)))}function Oe(e){return t.updateIfStatement(e,Q(e.expression,Re,q),Q(e.thenStatement,_e,Bd,t.liftToBlock)??t.createBlock([]),Q(e.elseStatement,_e,Bd,t.liftToBlock))}function ke(e){return t.updateSwitchStatement(e,Q(e.expression,Re,q),H.checkDefined(Q(e.caseBlock,_e,kA)))}function Ae(e){let n=b;return b=e,e=t.updateCaseBlock(e,CB(e.clauses,_e,Yd)),b=n,e}function je(e){return t.updateCaseClause(e,Q(e.expression,Re,q),CB(e.statements,_e,Bd))}function Me(t){return PB(t,_e,e)}function Ne(t){return PB(t,_e,e)}function Fe(e){let n=b;return b=e,e=t.updateCatchClause(e,e.variableDeclaration,H.checkDefined(Q(e.block,_e,tA))),b=n,e}function Ie(t){let n=b;return b=t,t=PB(t,_e,e),b=n,t}function Le(t,n){if(!(t.transformFlags&276828160))return t;switch(t.kind){case 249:return ve(t,!1);case 245:return Be(t);case 218:return Ve(t,n);case 356:return Ue(t,n);case 227:if(Ab(t))return L(t,n);break;case 214:if(Bm(t))return We(t);break;case 225:case 226:return Ke(t,n)}return PB(t,Re,e)}function Re(e){return Le(e,!1)}function ze(e){return Le(e,!0)}function Be(e){return t.updateExpressionStatement(e,Q(e.expression,ze,q))}function Ve(e,n){return t.updateParenthesizedExpression(e,Q(e.expression,n?ze:Re,q))}function Ue(e,n){return t.updatePartiallyEmittedExpression(e,Q(e.expression,n?ze:Re,q))}function We(e){let n=JM(t,e,h,s,o,a),r=Q(Pe(e.arguments),Re,q),i=n&&(!r||!tO(r)||r.text!==n.text)?n:r;return t.createCallExpression(t.createPropertyAccessExpression(v,t.createIdentifier(`import`)),void 0,i?[i]:[])}function L(t,n){return Ge(t.left)?IV(t,Re,e,0,!n):PB(t,Re,e)}function Ge(e){if(kb(e,!0))return Ge(e.left);if(Hk(e))return Ge(e.expression);if(Sk(e))return F(e.properties,Ge);if(xk(e))return F(e.elements,Ge);if(hj(e))return Ge(e.name);if(mj(e))return Ge(e.initializer);if(Y(e)){let t=o.getReferencedExportContainer(e);return t!==void 0&&t.kind===308}else return!1}function Ke(n,r){if((n.operator===46||n.operator===47)&&Y(n.operand)&&!yu(n.operand)&&!AM(n.operand)&&!Ex(n.operand)){let e=nt(n.operand);if(e){let a,o=Q(n.operand,Re,q);Ik(n)?o=t.updatePrefixUnaryExpression(n,o):(o=t.updatePostfixUnaryExpression(n,o),r||(a=t.createTempVariable(i),o=t.createAssignment(a,o),X(o,n)),o=t.createComma(o,t.cloneNode(n.operand)),X(o,n));for(let t of e)o=ge(t,it(o));return a&&(o=t.createComma(o,a),X(o,n)),o}}return PB(n,Re,e)}function qe(e){switch(e.kind){case 95:case 90:return}return e}function Je(e,t,n){if(t.kind===308){let r=$B(t);h=t,g=u[r],_=f[r],x=p[r],v=m[r],x&&delete p[r],l(e,t,n),h=void 0,g=void 0,_=void 0,v=void 0,x=void 0}else l(e,t,n)}function Ye(e,t){return t=c(e,t),at(t)?t:e===1?Qe(t):e===4?Xe(t):t}function Xe(e){switch(e.kind){case 305:return Ze(e)}return e}function Ze(e){let n=e.name;if(!yu(n)&&!AM(n)){let r=o.getReferencedImportDeclaration(n);if(r){if(NA(r))return X(t.createPropertyAssignment(t.cloneNode(n),t.createPropertyAccessExpression(t.getGeneratedNameForNode(r.parent),t.createIdentifier(`default`))),e);if(HA(r)){let i=r.propertyName||r.name,a=t.getGeneratedNameForNode(r.parent?.parent?.parent||r);return X(t.createPropertyAssignment(t.cloneNode(n),i.kind===11?t.createElementAccessExpression(a,t.cloneNode(i)):t.createPropertyAccessExpression(a,t.cloneNode(i))),e)}}}return e}function Qe(e){switch(e.kind){case 80:return $e(e);case 227:return et(e);case 237:return tt(e)}return e}function $e(e){if(kp(e)&8192){let n=UM(h);return n?t.createPropertyAccessExpression(n,e):e}if(!yu(e)&&!AM(e)){let n=o.getReferencedImportDeclaration(e);if(n){if(NA(n))return X(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n.parent),t.createIdentifier(`default`)),e);if(HA(n)){let r=n.propertyName||n.name,i=t.getGeneratedNameForNode(n.parent?.parent?.parent||n);return X(r.kind===11?t.createElementAccessExpression(i,t.cloneNode(r)):t.createPropertyAccessExpression(i,t.cloneNode(r)),e)}}}return e}function et(e){if(Eb(e.operatorToken.kind)&&Y(e.left)&&(!yu(e.left)||xu(e.left))&&!AM(e.left)){let t=nt(e.left);if(t){let n=e;for(let e of t)n=ge(e,it(n));return n}}return e}function tt(e){return Vm(e)?t.createPropertyAccessExpression(v,t.createIdentifier(`meta`)):e}function nt(e){let n,r=rt(e);if(r){let i=o.getReferencedExportContainer(e,!1);i&&i.kind===308&&(n=I(n,t.getDeclarationName(r))),n=Ee(n,g?.exportedBindings[$B(r)])}else if(yu(e)&&xu(e)){let t=g?.exportSpecifiers.get(e);if(t){let e=[];for(let n of t)e.push(n.name);return e}}return n}function rt(e){if(!yu(e)){let t=o.getReferencedImportDeclaration(e);if(t)return t;let n=o.getReferencedValueDeclaration(e);if(n&&g?.exportedBindings[$B(n)])return n;let r=o.getReferencedValueDeclarations(e);if(r){for(let e of r)if(e!==n&&g?.exportedBindings[$B(e)])return e}return n}}function it(e){return x===void 0&&(x=[]),x[mB(e)]=!0,e}function at(e){return x&&e.id&&x[e.id]}}function YH(e){let{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),a=e.getCompilerOptions(),o=zS(a),s=e.onEmitNode,c=e.onSubstituteNode;e.onEmitNode=w,e.onSubstituteNode=T,e.enableEmitNotification(308),e.enableSubstitution(80);let l=new Set,u,d,f,p;return nV(e,m);function m(n){if(n.isDeclarationFile)return n;if(yP(n)||US(a)){f=n,p=void 0,a.rewriteRelativeImportExtensions&&(f.flags&4194304||ng(n))&&XT(n,!1,!1,e=>{(!uf(e.arguments[0])||Jg(e.arguments[0].text,a))&&(u=I(u,e))});let r=h(n);return dD(r,e.readEmitHelpers()),f=void 0,p&&(r=t.updateSourceFile(r,X(t.createNodeArray(dp(r.statements.slice(),p)),r.statements))),!yP(n)||BS(a)===200||F(r.statements,Cd)?r:t.updateSourceFile(r,X(t.createNodeArray([...r.statements,pM(t)]),r.statements))}return n}function h(r){let i=GM(t,n(),r,a);if(i){let e=[],n=t.copyPrologue(r.statements,e);return Ee(e,wB([i],g,Bd)),Ee(e,CB(r.statements,g,Bd,n)),t.updateSourceFile(r,X(t.createNodeArray(e),r.statements))}else return PB(r,g,e)}function g(t){switch(t.kind){case 272:return BS(a)>=100?b(t):void 0;case 278:return S(t);case 279:return C(t);case 273:return _(t);case 214:if(t===u?.[0])return v(u.shift());default:if(u?.length&&wx(t,u[0]))return PB(t,g,e)}return t}function _(e){if(!a.rewriteRelativeImportExtensions)return e;let n=PV(e.moduleSpecifier,a);return n===e.moduleSpecifier?e:t.updateImportDeclaration(e,e.modifiers,e.importClause,n,e.attributes)}function v(e){return t.updateCallExpression(e,e.expression,e.typeArguments,[uf(e.arguments[0])?PV(e.arguments[0],a):n().createRewriteRelativeImportExtensionsHelper(e.arguments[0]),...e.arguments.slice(1)])}function y(e){let n=JM(t,e,H.checkDefined(f),r,i,a),s=[];if(n&&s.push(PV(n,a)),BS(a)===200)return t.createCallExpression(t.createIdentifier(`require`),void 0,s);if(!p){let e=t.createUniqueName(`_createRequire`,48),n=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier(`createRequire`),e)])),t.createStringLiteral(`module`),void 0),r=t.createUniqueName(`__require`,48);p=[n,t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createCallExpression(t.cloneNode(e),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier(`meta`)),t.createIdentifier(`url`))]))],o>=2?2:0))]}let c=p[1].declarationList.declarations[0].name;return H.assertNode(c,Y),t.createCallExpression(t.cloneNode(c),void 0,s)}function b(e){H.assert(Xh(e),`import= for internal module references should be handled in an earlier transformer.`);let n;return n=I(n,zE(X(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,y(e))],o>=2?2:0)),e),e)),n=x(n,e),He(n)}function x(e,n){return Qy(n,32)&&(e=I(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Gc(n.name))])))),e}function S(e){return e.isExportEquals?BS(a)===200?zE(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier(`module`),`exports`),e.expression)),e):void 0:e}function C(e){let n=PV(e.moduleSpecifier,a);if(a.module!==void 0&&a.module>5||!e.exportClause||!BA(e.exportClause)||!e.moduleSpecifier)return!e.moduleSpecifier||n===e.moduleSpecifier?e:t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,n,e.attributes);let r=e.exportClause.name,i=t.getGeneratedNameForNode(r),o=t.createImportDeclaration(void 0,t.createImportClause(void 0,void 0,t.createNamespaceImport(i)),n,e.attributes);zE(o,e.exportClause);let s=xp(e)?t.createExportDefault(i):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,i,r)]));return zE(s,e),[o,s]}function w(e,t,n){vj(t)?((yP(t)||US(a))&&a.importHelpers&&(d=new Map),f=t,s(e,t,n),f=void 0,d=void 0):s(e,t,n)}function T(e,t){return t=c(e,t),t.id&&l.has(t.id)?t:Y(t)&&kp(t)&8192?E(t):t}function E(e){let n=f&&UM(f);if(n)return l.add(mB(e)),t.createPropertyAccessExpression(n,e);if(d){let n=Gc(e),r=d.get(n);return r||d.set(n,r=t.createUniqueName(n,48)),r}return e}}function XH(e){let t=e.onSubstituteNode,n=e.onEmitNode,r=YH(e),i=e.onSubstituteNode,a=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;let o=KH(e),s=e.onSubstituteNode,c=e.onEmitNode,l=t=>e.getEmitHost().getEmitModuleFormatOfFile(t);e.onSubstituteNode=d,e.onEmitNode=f,e.enableSubstitution(308),e.enableEmitNotification(308);let u;return h;function d(e,n){return vj(n)?(u=n,t(e,n)):u?l(u)>=5?i(e,n):s(e,n):t(e,n)}function f(e,t,r){return vj(t)&&(u=t),u?l(u)>=5?a(e,t,r):c(e,t,r):n(e,t,r)}function p(e){return l(e)>=5?r:o}function m(e){if(e.isDeclarationFile)return e;u=e;let t=p(e)(e);return u=void 0,H.assert(vj(t)),t}function h(e){return e.kind===308?m(e):g(e)}function g(t){return e.factory.createBundle(k(t.sourceFiles,m))}}function ZH(e){return bA(e)||RO(e)||LO(e)||bk(e)||$d(e)||ef(e)||KO(e)||GO(e)||BO(e)||zO(e)||SA(e)||FO(e)||PO(e)||Gk(e)||jA(e)||TA(e)||HO(e)||qO(e)||Ck(e)||wk(e)||Rk(e)||t_(e)}function QH(e){if($d(e)||ef(e))return t;if(zO(e)||BO(e))return r;return $H(e);function t(t){let r=n(t);return r===void 0?void 0:{diagnosticMessage:r,errorNode:e,typeName:e.name}}function n(t){return $y(e)?t.errorModuleName?t.accessibility===2?G.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:G.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264?t.errorModuleName?t.accessibility===2?G.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:G.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?G.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:G.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(t){let n=i(t);return n===void 0?void 0:{diagnosticMessage:n,errorNode:e,typeName:e.name}}function i(t){return $y(e)?t.errorModuleName?t.accessibility===2?G.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:G.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264?t.errorModuleName?t.accessibility===2?G.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:G.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?G.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:G.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function $H(e){if(bA(e)||RO(e)||LO(e)||Ck(e)||wk(e)||Rk(e)||bk(e)||HO(e))return n;if($d(e)||ef(e))return r;if(KO(e)||GO(e)||BO(e)||zO(e)||SA(e)||qO(e))return i;if(FO(e))return kc(e,e.parent)&&Qy(e.parent,2)?n:a;if(PO(e))return s;if(Gk(e))return c;if(jA(e))return l;if(TA(e)||t_(e))return u;return H.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${H.formatSyntaxKind(e.kind)}`);function t(t){if(e.kind===261||e.kind===209)return t.errorModuleName?t.accessibility===2?G.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:G.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===173||e.kind===212||e.kind===213||e.kind===227||e.kind===172||e.kind===170&&Qy(e.parent,2))return $y(e)?t.errorModuleName?t.accessibility===2?G.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:G.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===264||e.kind===170?t.errorModuleName?t.accessibility===2?G.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:G.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?G.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:G.Property_0_of_exported_interface_has_or_is_using_private_name_1}function n(n){let r=t(n);return r===void 0?void 0:{diagnosticMessage:r,errorNode:e,typeName:e.name}}function r(t){let n;return n=e.kind===179?$y(e)?t.errorModuleName?G.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:G.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?G.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:G.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:$y(e)?t.errorModuleName?t.accessibility===2?G.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:G.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?t.accessibility===2?G.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:G.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}function i(t){let n;switch(e.kind){case 181:n=t.errorModuleName?G.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:G.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 180:n=t.errorModuleName?G.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:G.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 182:n=t.errorModuleName?G.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:G.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:case 174:n=$y(e)?t.errorModuleName?t.accessibility===2?G.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:G.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:G.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===264?t.errorModuleName?t.accessibility===2?G.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:G.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:G.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?G.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:G.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 263:n=t.errorModuleName?t.accessibility===2?G.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:G.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:G.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return H.fail(`This is unknown kind for signature: `+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}function a(t){let n=o(t);return n===void 0?void 0:{diagnosticMessage:n,errorNode:e,typeName:e.name}}function o(t){switch(e.parent.kind){case 177:return t.errorModuleName?t.accessibility===2?G.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:G.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 181:case 186:return t.errorModuleName?G.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:G.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 180:return t.errorModuleName?G.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:G.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 182:return t.errorModuleName?G.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:G.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:case 174:return $y(e.parent)?t.errorModuleName?t.accessibility===2?G.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:G.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===264?t.errorModuleName?t.accessibility===2?G.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:G.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?G.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:G.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 263:case 185:return t.errorModuleName?t.accessibility===2?G.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:G.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 179:case 178:return t.errorModuleName?t.accessibility===2?G.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:G.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:G.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return H.fail(`Unknown parent for parameter: ${H.formatSyntaxKind(e.parent.kind)}`)}}function s(){let t;switch(e.parent.kind){case 264:t=G.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 265:t=G.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 201:t=G.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 186:case 181:t=G.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 180:t=G.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 174:t=$y(e.parent)?G.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===264?G.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:G.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 185:case 263:t=G.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 196:t=G.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 266:t=G.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return H.fail(`This is unknown parent for type parameter: `+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}function c(){let t;return t=CA(e.parent.parent)?fj(e.parent)&&e.parent.token===119?G.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?G.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:G.extends_clause_of_exported_class_has_or_is_using_private_name_0:G.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:t,errorNode:e,typeName:el(e.parent.parent)}}function l(){return{diagnosticMessage:G.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function u(t){return{diagnosticMessage:t.errorModuleName?G.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:G.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t_(e)?H.checkDefined(e.typeExpression):e.type,typeName:t_(e)?el(e):e.name}}}function eU(e){let t={220:G.Add_a_return_type_to_the_function_expression,219:G.Add_a_return_type_to_the_function_expression,175:G.Add_a_return_type_to_the_method,178:G.Add_a_return_type_to_the_get_accessor_declaration,179:G.Add_a_type_to_parameter_of_the_set_accessor_declaration,263:G.Add_a_return_type_to_the_function_declaration,181:G.Add_a_return_type_to_the_function_declaration,170:G.Add_a_type_annotation_to_the_parameter_0,261:G.Add_a_type_annotation_to_the_variable_0,173:G.Add_a_type_annotation_to_the_property_0,172:G.Add_a_type_annotation_to_the_property_0,278:G.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={219:G.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,263:G.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,220:G.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,175:G.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,181:G.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:G.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,179:G.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,170:G.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,261:G.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,173:G.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:G.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,168:G.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,306:G.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,305:G.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,210:G.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,278:G.Default_exports_can_t_be_inferred_with_isolatedDeclarations,231:G.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return r;function r(e){if(K(e,fj))return mm(e,G.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((eh(e)||QO(e.parent))&&(Ou(e)||Mb(e)))return m(e);switch(H.type(e),e.kind){case 178:case 179:return a(e);case 168:case 305:case 306:return s(e);case 210:case 231:return c(e);case 175:case 181:case 219:case 220:case 263:return l(e);case 209:return u(e);case 173:case 261:return d(e);case 170:return f(e);case 304:return h(e.initializer);case 232:return p(e);default:return h(e)}}function i(e){let t=K(e,e=>UA(e)||Bd(e)||bA(e)||RO(e)||FO(e));if(t)return UA(t)?t:pA(t)?K(t,e=>Nu(e)&&!HO(e)):Bd(t)?void 0:t}function a(e){let{getAccessor:r,setAccessor:i}=Iy(e.symbol.declarations,e),a=mm(($d(e)?e.parameters[0]:e)??e,n[e.kind]);return i&&Dw(a,mm(i,t[i.kind])),r&&Dw(a,mm(r,t[r.kind])),a}function o(e,n){let r=i(e);if(r){let e=UA(r)||!r.name?``:Ep(r.name,!1);Dw(n,mm(r,t[r.kind],e))}return n}function s(e){let t=mm(e,n[e.kind]);return o(e,t),t}function c(e){let t=mm(e,n[e.kind]);return o(e,t),t}function l(e){let r=mm(e,n[e.kind]);return o(e,r),Dw(r,mm(e,t[e.kind])),r}function u(e){return mm(e,G.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function d(e){let r=mm(e,n[e.kind]),i=Ep(e.name,!1);return Dw(r,mm(e,t[e.kind],i)),r}function f(r){if($d(r.parent))return a(r.parent);let i=e.requiresAddingImplicitUndefined(r,r.parent);if(!i&&r.initializer)return h(r.initializer);let o=mm(r,i?G.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[r.kind]),s=Ep(r.name,!1);return Dw(o,mm(r,t[r.kind],s)),o}function p(e){return h(e,G.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function m(e){let t=mm(e,G.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Ep(e,!1));return o(e,t),t}function h(e,r){let a=i(e),o;if(a){let i=UA(a)||!a.name?``:Ep(a.name,!1);a===K(e.parent,e=>UA(e)||(Bd(e)?`quit`:!kk(e)&&!Ok(e)&&!Kk(e)))?(o=mm(e,r??n[a.kind]),Dw(o,mm(a,t[a.kind],i))):(o=mm(e,r??G.Expression_type_can_t_be_inferred_with_isolatedDeclarations),Dw(o,mm(a,t[a.kind],i)),Dw(o,mm(e,G.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else o=mm(e,r??G.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return o}}function tU(e,t,n){let r=e.getCompilerOptions();return C(E(vy(e,n),ig),n)?mU(t,e,J,r,[n],[iU],!1).diagnostics:void 0}var nU=531469,rU=8;function iU(e){let t=()=>H.fail(`Diagnostic emitted without context`),n=t,r=!0,i=!1,a=!1,o=!1,s=!1,l,f,p,m,{factory:h}=e,g=e.getEmitHost(),_=()=>void 0,v={trackSymbol:N,reportInaccessibleThisError:le,reportInaccessibleUniqueSymbolError:ce,reportCyclicStructureError:P,reportPrivateInBaseOfClassExpression:oe,reportLikelyUnsafeImportRequiredError:ue,reportTruncationError:fe,moduleResolverHost:g,reportNonlocalAugmentation:pe,reportNonSerializableProperty:me,reportInferenceFallback:A,pushErrorFallbackNode(e){let t=b,n=_;_=()=>{_=n,b=t},b=e},popErrorFallbackNode(){_()}},y,b,x,S,w,T,D=e.getEmitResolver(),O=e.getCompilerOptions(),ee=eU(D),{stripInternal:te,isolatedDeclarations:ie}=O;return ge;function ae(t){D.getPropertiesOfContainerFunction(t).forEach(t=>{if(jT(t.valueDeclaration)){let n=Rk(t.valueDeclaration)?t.valueDeclaration.left:t.valueDeclaration;e.addDiagnostic(mm(n,G.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function A(t){!ie||tg(x)||Yf(t)===x&&(bA(t)&&D.isExpandoFunctionDeclaration(t)?ae(t):e.addDiagnostic(ee(t)))}function j(t){if(t.accessibility===0){if(t.aliasesToMakeVisible)if(!f)f=t.aliasesToMakeVisible;else for(let e of t.aliasesToMakeVisible)De(f,e)}else if(t.accessibility!==3){let r=n(t);if(r)return r.typeName?e.addDiagnostic(mm(t.errorNode||r.errorNode,r.diagnosticMessage,Ep(r.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(mm(t.errorNode||r.errorNode,r.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function N(e,t,n){return e.flags&262144?!1:j(D.isSymbolAccessible(e,t,n,!0))}function oe(t){(y||b)&&e.addDiagnostic(Dw(mm(y||b,G.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,t),...bA((y||b).parent)?[mm(y||b,G.Add_a_type_annotation_to_the_variable_0,se())]:[]))}function se(){return y?lm(y):b&&el(b)?lm(el(b)):b&&UA(b)?b.isExportEquals?`export=`:`default`:`(Missing)`}function ce(){(y||b)&&e.addDiagnostic(mm(y||b,G.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,se(),`unique symbol`))}function P(){(y||b)&&e.addDiagnostic(mm(y||b,G.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,se()))}function le(){(y||b)&&e.addDiagnostic(mm(y||b,G.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,se(),`this`))}function ue(t){(y||b)&&e.addDiagnostic(mm(y||b,G.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,se(),t))}function fe(){(y||b)&&e.addDiagnostic(mm(y||b,G.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function pe(t,n,r){let i=n.declarations?.find(e=>Yf(e)===t),a=E(r.declarations,e=>Yf(e)!==t);if(i&&a)for(let t of a)e.addDiagnostic(Dw(mm(t,G.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),mm(i,G.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function me(t){(y||b)&&e.addDiagnostic(mm(y||b,G.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))}function he(e){let t=n;n=t=>t.errorNode&&ZH(t.errorNode)?$H(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?G.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:G.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};let r=D.getDeclarationStatementsForSourceFile(e,nU,rU,v);return n=t,r}function ge(c){if(c.kind===308&&c.isDeclarationFile)return c;if(c.kind===309){i=!0,S=[],w=[],T=[];let u=!1,d=h.createBundle(k(c.sourceFiles,i=>{if(i.isDeclarationFile)return;if(u||=i.hasNoDefaultLib,x=i,l=i,f=void 0,m=!1,p=new Map,n=t,o=!1,s=!1,_(i),Am(i)||jm(i)){a=!1,r=!1;let t=tg(i)?h.createNodeArray(he(i)):CB(i.statements,Be,Bd);return h.updateSourceFile(i,[h.createModuleDeclaration([h.createModifier(138)],h.createStringLiteral(sy(e.getEmitHost(),i)),h.createModuleBlock(X(h.createNodeArray(Le(t)),i.statements)))],!0,[],[],!1,[])}r=!0;let c=tg(i)?h.createNodeArray(he(i)):CB(i.statements,Be,Bd);return h.updateSourceFile(i,Le(c),!0,[],[],!1,[])}));return d.syntheticFileReferences=E($a(so(bU(c,g,!0).declarationFilePath))),d.syntheticTypeReferences=y(),d.syntheticLibReferences=b(),d.hasNoDefaultLib=u,d}r=!0,o=!1,s=!1,l=c,x=c,n=t,i=!1,a=!1,m=!1,f=void 0,p=new Map,S=[],w=[],T=[],_(x);let u;if(tg(x))u=h.createNodeArray(he(c));else{let e=CB(c.statements,Be,Bd);u=X(h.createNodeArray(Le(e)),c.statements),yP(c)&&(!a||o&&!s)&&(u=X(h.createNodeArray([...u,pM(h)]),u))}let d=$a(so(bU(c,g,!0).declarationFilePath));return h.updateSourceFile(c,u,!0,E(d),y(),c.hasNoDefaultLib,b());function _(e){S=de(S,k(e.referencedFiles,t=>[e,t])),w=de(w,e.typeReferenceDirectives),T=de(T,e.libReferenceDirectives)}function v(e){let t={...e};return t.pos=-1,t.end=-1,t}function y(){return M(w,e=>{if(e.preserve)return v(e)})}function b(){return M(T,e=>{if(e.preserve)return v(e)})}function E(e){return M(S,([t,n])=>{if(!n.preserve)return;let r=g.getSourceFileFromReference(t,n);if(!r)return;let a;if(r.isDeclarationFile)a=r.fileName;else{if(i&&C(c.sourceFiles,r))return;let e=bU(r,g,!0);a=e.declarationFilePath||e.jsFilePath||r.fileName}if(!a)return;let o=Io(e,a,g.getCurrentDirectory(),g.getCanonicalFileName,!1),s=v(n);return s.fileName=o,s})}}function _e(e){if(e.kind===80)return e;if(e.kind===208)return h.updateArrayBindingPattern(e,CB(e.elements,t,Qu));return h.updateObjectBindingPattern(e,CB(e.elements,t,bk));function t(e){return e.kind===233?e:(e.propertyName&&NO(e.propertyName)&&Mb(e.propertyName.expression)&&je(e.propertyName.expression,l),h.updateBindingElement(e,e.dotDotDotToken,e.propertyName,_e(e.name),void 0))}}function ve(e,t){let r;m||(r=n,n=$H(e));let i=h.updateParameterDeclaration(e,dre(h,e,t),e.dotDotDotToken,_e(e.name),D.isOptionalParameter(e)?e.questionToken||h.createToken(58):void 0,xe(e,!0),be(e));return m||(n=r),i}function ye(e){return aU(e)&&!!e.initializer&&D.isLiteralConstDeclaration(Hc(e))}function be(e){if(ye(e))return HT(UT(e.initializer))||A(e),D.createLiteralConstValue(Hc(e,aU),v)}function xe(e,t){if(!t&&Zy(e,2)||ye(e))return;if(!UA(e)&&!bk(e)&&e.type&&(!FO(e)||!D.requiresAddingImplicitUndefined(e,l)))return Q(e.type,Re,Ju);let r=y;y=e.name;let i;m||(i=n,ZH(e)&&(n=$H(e)));let a;return WT(e)?a=D.createTypeOfDeclaration(e,l,nU,rU,v):ju(e)?a=D.createReturnTypeOfSignatureDeclaration(e,l,nU,rU,v):H.assertNever(e),y=r,m||(n=i),a??h.createKeywordTypeNode(133)}function Ce(e){switch(e=Hc(e),e.kind){case 263:case 268:case 265:case 264:case 266:case 267:return!D.isDeclarationVisible(e);case 261:return!Te(e);case 272:case 273:case 279:case 278:return!1;case 176:return!0}return!1}function we(e){if(e.body)return!0;let t=e.symbol.declarations?.filter(e=>SA(e)&&!e.body);return!t||t.indexOf(e)===t.length-1}function Te(e){return Wk(e)?!1:Xu(e.name)?F(e.name.elements,Te):D.isDeclarationVisible(e)}function Ee(e,t,n){if(Zy(e,2))return h.createNodeArray();let r=k(t,e=>ve(e,n));return r?h.createNodeArray(r,t.hasTrailingComma):h.createNodeArray()}function Oe(e,t){let n;if(!t){let t=Ay(e);t&&(n=[ve(t)])}if(WO(e)){let r;if(!t){let t=Oy(e);t&&(r=ve(t))}r||=h.createParameterDeclaration(void 0,void 0,`value`),n=I(n,r)}return h.createNodeArray(n||c)}function ke(e,t){return Zy(e,2)?void 0:CB(t,Re,PO)}function Ae(e){return vj(e)||TA(e)||DA(e)||CA(e)||wA(e)||ju(e)||qO(e)||pk(e)}function je(e,t){j(D.isEntityNameVisible(e,t))}function Me(e,t){return tf(e)&&tf(t)&&(e.jsDoc=t.jsDoc),eD(e,$E(t))}function Ne(t,n){if(n){if(a||=t.kind!==268&&t.kind!==206,uf(n)&&i){let n=ly(e.getEmitHost(),D,t);if(n)return h.createStringLiteral(n)}return n}}function Pe(e){if(D.isDeclarationVisible(e))if(e.moduleReference.kind===284){let t=Zh(e);return h.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,h.updateExternalModuleReference(e.moduleReference,Ne(e,t)))}else{let t=n;return n=$H(e),je(e.moduleReference,l),n=t,e}}function Fe(t){if(!t.importClause)return h.updateImportDeclaration(t,t.modifiers,t.importClause,Ne(t,t.moduleSpecifier),Ie(t.attributes));let n=t.importClause.phaseModifier===166?void 0:t.importClause.phaseModifier,r=t.importClause&&t.importClause.name&&D.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&h.updateImportDeclaration(t,t.modifiers,h.updateImportClause(t.importClause,n,r,void 0),Ne(t,t.moduleSpecifier),Ie(t.attributes));if(t.importClause.namedBindings.kind===275){let e=D.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||e?h.updateImportDeclaration(t,t.modifiers,h.updateImportClause(t.importClause,n,r,e),Ne(t,t.moduleSpecifier),Ie(t.attributes)):void 0}let i=M(t.importClause.namedBindings.elements,e=>D.isDeclarationVisible(e)?e:void 0);if(i&&i.length||r)return h.updateImportDeclaration(t,t.modifiers,h.updateImportClause(t.importClause,n,r,i&&i.length?h.updateNamedImports(t.importClause.namedBindings,i):void 0),Ne(t,t.moduleSpecifier),Ie(t.attributes));if(D.isImportRequiredByAugmentation(t))return ie&&e.addDiagnostic(mm(t,G.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),h.updateImportDeclaration(t,t.modifiers,void 0,Ne(t,t.moduleSpecifier),Ie(t.attributes))}function Ie(e){let t=PW(e);return e&&t!==void 0?e:void 0}function Le(e){for(;u(f);){let e=f.shift();if(!im(e))return H.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${H.formatSyntaxKind(e.kind)}`);let t=r;r=e.parent&&vj(e.parent)&&!(yP(e.parent)&&i);let n=Ue(e);r=t,p.set($B(e),n)}return CB(e,t,Bd);function t(e){if(im(e)){let t=$B(e);if(p.has(t)){let n=p.get(t);return p.delete(t),n&&((mt(n)?F(n,Sd):Sd(n))&&(o=!0),vj(e.parent)&&(mt(n)?F(n,Cd):Cd(n))&&(a=!0)),n}}return e}}function Re(t){if(qe(t))return;if(Ld(t)){if(Ce(t))return;if(fv(t)){if(ie){if(!D.isDefinitelyReferenceToGlobalSymbolObject(t.name.expression)){if(CA(t.parent)||Sk(t.parent)){e.addDiagnostic(mm(t,G.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((wA(t.parent)||$O(t.parent))&&!Mb(t.name.expression)){e.addDiagnostic(mm(t,G.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!D.isLateBound(Hc(t))||!Mb(t.name.expression))return}}if(ju(t)&&D.isImplementationOfOverload(t)||eA(t))return;let r;Ae(t)&&(r=l,l=t);let i=n,a=ZH(t),o=m,s=(t.kind===188||t.kind===201)&&t.parent.kind!==266;if((BO(t)||zO(t))&&Zy(t,2))return t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t?void 0:c(h.createPropertyDeclaration(Xe(t),t.name,void 0,void 0,void 0));if(a&&!m&&(n=$H(t)),QO(t)&&je(t.exprName,l),s&&(m=!0),sU(t))switch(t.kind){case 234:{(Ou(t.expression)||Mb(t.expression))&&je(t.expression,l);let n=PB(t,Re,e);return c(h.updateExpressionWithTypeArguments(n,n.expression,n.typeArguments))}case 184:{je(t.typeName,l);let n=PB(t,Re,e);return c(h.updateTypeReferenceNode(n,n.typeName,n.typeArguments))}case 181:return c(h.updateConstructSignature(t,ke(t,t.typeParameters),Ee(t,t.parameters),xe(t)));case 177:return c(h.createConstructorDeclaration(Xe(t),Ee(t,t.parameters,0),void 0));case 175:return vO(t.name)?c(void 0):c(h.createMethodDeclaration(Xe(t),void 0,t.name,t.questionToken,ke(t,t.typeParameters),Ee(t,t.parameters),xe(t),void 0));case 178:return vO(t.name)?c(void 0):c(h.updateGetAccessorDeclaration(t,Xe(t),t.name,Oe(t,Zy(t,2)),xe(t),void 0));case 179:return vO(t.name)?c(void 0):c(h.updateSetAccessorDeclaration(t,Xe(t),t.name,Oe(t,Zy(t,2)),void 0));case 173:return vO(t.name)?c(void 0):c(h.updatePropertyDeclaration(t,Xe(t),t.name,t.questionToken,xe(t),be(t)));case 172:return vO(t.name)?c(void 0):c(h.updatePropertySignature(t,Xe(t),t.name,t.questionToken,xe(t)));case 174:return vO(t.name)?c(void 0):c(h.updateMethodSignature(t,Xe(t),t.name,t.questionToken,ke(t,t.typeParameters),Ee(t,t.parameters),xe(t)));case 180:return c(h.updateCallSignature(t,ke(t,t.typeParameters),Ee(t,t.parameters),xe(t)));case 182:return c(h.updateIndexSignature(t,Xe(t),Ee(t,t.parameters),Q(t.type,Re,Ju)||h.createKeywordTypeNode(133)));case 261:return Xu(t.name)?L(t.name):(s=!0,m=!0,c(h.updateVariableDeclaration(t,t.name,void 0,xe(t),be(t))));case 169:return ze(t)&&(t.default||t.constraint)?c(h.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):c(PB(t,Re,e));case 195:{let e=Q(t.checkType,Re,Ju),n=Q(t.extendsType,Re,Ju),r=l;l=t.trueType;let i=Q(t.trueType,Re,Ju);l=r;let a=Q(t.falseType,Re,Ju);return H.assert(e),H.assert(n),H.assert(i),H.assert(a),c(h.updateConditionalTypeNode(t,e,n,i,a))}case 185:return c(h.updateFunctionTypeNode(t,CB(t.typeParameters,Re,PO),Ee(t,t.parameters),H.checkDefined(Q(t.type,Re,Ju))));case 186:return c(h.updateConstructorTypeNode(t,Xe(t),CB(t.typeParameters,Re,PO),Ee(t,t.parameters),H.checkDefined(Q(t.type,Re,Ju))));case 206:return Hm(t)?c(h.updateImportTypeNode(t,h.updateLiteralTypeNode(t.argument,Ne(t,t.argument.literal)),t.attributes,t.qualifier,CB(t.typeArguments,Re,Ju),t.isTypeOf)):c(t);default:H.assertNever(t,`Attempted to process unhandled node kind: ${H.formatSyntaxKind(t.kind)}`)}return tk(t)&&gs(x,t.pos).line===gs(x,t.end).line&&UE(t,1),c(PB(t,Re,e));function c(e){return e&&a&&fv(t)&&Ke(t),Ae(t)&&(l=r),a&&!m&&(n=i),s&&(m=o),e===t?e:e&&zE(Me(e,t),t)}}function ze(e){return e.parent.kind===175&&Zy(e.parent,2)}function Be(e){if(!oU(e)||qe(e))return;switch(e.kind){case 279:return vj(e.parent)&&(a=!0),s=!0,h.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,Ne(e,e.moduleSpecifier),Ie(e.attributes));case 278:if(vj(e.parent)&&(a=!0),s=!0,e.expression.kind===80)return e;{let t=h.createUniqueName(`_default`,16);n=()=>({diagnosticMessage:G.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),b=e;let i=xe(e),a=h.createVariableDeclaration(t,void 0,i,void 0);b=void 0;let o=h.createVariableStatement(r?[h.createModifier(138)]:[],h.createVariableDeclarationList([a],2));return Me(o,e),HE(e),[o,h.updateExportAssignment(e,e.modifiers,t)]}}let t=Ue(e);return p.set($B(e),t),e}function Ve(e){if(jA(e)||Zy(e,2048)||!VN(e))return e;let t=h.createModifiersFromModifierFlags(ub(e)&131039);return h.replaceModifiers(e,t)}function He(e,t,n,r){let i=h.updateModuleDeclaration(e,t,n,r);if(zp(i)||i.flags&32)return i;let a=h.createModuleDeclaration(i.modifiers,i.name,i.body,i.flags|32);return zE(a,i),X(a,i),a}function Ue(t){if(f)for(;rn(f,t););if(qe(t))return;switch(t.kind){case 272:return Pe(t);case 273:return Fe(t)}if(Ld(t)&&Ce(t)||oM(t)||ju(t)&&D.isImplementationOfOverload(t))return;let i;Ae(t)&&(i=l,l=t);let c=ZH(t),u=n;c&&(n=$H(t));let d=r;switch(t.kind){case 266:{r=!1;let e=m(h.updateTypeAliasDeclaration(t,Xe(t),t.name,CB(t.typeParameters,Re,PO),H.checkDefined(Q(t.type,Re,Ju))));return r=d,e}case 265:return m(h.updateInterfaceDeclaration(t,Xe(t),t.name,ke(t,t.typeParameters),Qe(t.heritageClauses),CB(t.members,Re,Gu)));case 263:{let e=m(h.updateFunctionDeclaration(t,Xe(t),void 0,t.name,ke(t,t.typeParameters),Ee(t,t.parameters),xe(t),void 0));if(e&&D.isExpandoFunctionDeclaration(t)&&we(t)){let r=D.getPropertiesOfContainerFunction(t);ie&&ae(t);let i=qN.createModuleDeclaration(void 0,e.name||h.createIdentifier(`_default`),h.createModuleBlock([]),32);Zw(i,l),i.locals=Cf(r),i.symbol=r[0].parent;let o=[],c=M(r,e=>{if(!jT(e.valueDeclaration))return;let t=Wc(e.escapedName);if(!Ws(t,99))return;n=$H(e.valueDeclaration);let r=D.createTypeOfDeclaration(e.valueDeclaration,i,nU,rU|2,v);n=u;let a=iv(t),s=a?h.getGeneratedNameForNode(e.valueDeclaration):h.createIdentifier(t);a&&o.push([s,t]);let c=h.createVariableDeclaration(s,void 0,r,void 0);return h.createVariableStatement(a?void 0:[h.createToken(95)],h.createVariableDeclarationList([c]))});o.length?c.push(h.createExportDeclaration(void 0,!1,h.createNamedExports(k(o,([e,t])=>h.createExportSpecifier(!1,e,t))))):c=M(c,e=>h.replaceModifiers(e,0));let d=h.createModuleDeclaration(Xe(t),t.name,h.createModuleBlock(c),32);if(!Zy(e,2048))return[e,d];let f=h.createModifiersFromModifierFlags(ub(e)&-2081|128),p=h.updateFunctionDeclaration(e,f,void 0,e.name,e.typeParameters,e.parameters,e.type,void 0),m=h.updateModuleDeclaration(d,f,d.name,d.body),g=h.createExportAssignment(void 0,!1,d.name);return vj(t.parent)&&(a=!0),s=!0,[p,m,g]}else return e}case 268:{r=!1;let e=t.body;if(e&&e.kind===269){let n=o,i=s;s=!1,o=!1;let a=Le(CB(e.statements,Be,Bd));t.flags&33554432&&(o=!1),!Wp(t)&&!Ye(a)&&!s&&(a=o?h.createNodeArray([...a,pM(h)]):CB(a,Ve,Bd));let c=h.updateModuleBlock(e,a);return r=d,o=n,s=i,m(He(t,Xe(t),Gp(t)?Ne(t,t.name):t.name,c))}else{r=d;let n=Xe(t);r=!1,Q(e,Be);let i=$B(e),a=p.get(i);return p.delete(i),m(He(t,n,t.name,a))}}case 264:{y=t.name,b=t;let e=h.createNodeArray(Xe(t)),i=ke(t,t.typeParameters),a=Dy(t),o;if(a){let e=n;o=Se(re(a.parameters,e=>{if(!Qy(e,31)||qe(e))return;if(n=$H(e),e.name.kind===80)return Me(h.createPropertyDeclaration(Xe(e),e.name,e.questionToken,xe(e),be(e)),e);return t(e.name);function t(n){let r;for(let i of n.elements)Wk(i)||(Xu(i.name)&&(r=de(r,t(i.name))),r||=[],r.push(h.createPropertyDeclaration(Xe(e),i.name,void 0,xe(i),void 0)));return r}})),n=e}let s=de(de(de(F(t.members,e=>!!e.name&&vO(e.name))?[h.createPropertyDeclaration(void 0,h.createPrivateIdentifier(`#private`),void 0,void 0,void 0)]:void 0,D.createLateBoundIndexSignatures(t,l,nU,rU,v)),o),CB(t.members,Re,Ru)),c=h.createNodeArray(s),u=K_(t);if(u&&!Mb(u.expression)&&u.expression.kind!==106){let a=t.name?Wc(t.name.escapedText):`default`,o=h.createUniqueName(`${a}_base`,16);n=()=>({diagnosticMessage:G.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:u,typeName:t.name});let s=h.createVariableDeclaration(o,void 0,D.createTypeOfExpression(u.expression,t,nU,rU,v),void 0),l=h.createVariableStatement(r?[h.createModifier(138)]:[],h.createVariableDeclarationList([s],2)),d=h.createNodeArray(k(t.heritageClauses,e=>{if(e.token===96){let t=n;n=$H(e.types[0]);let r=h.updateHeritageClause(e,k(e.types,e=>h.updateExpressionWithTypeArguments(e,o,CB(e.typeArguments,Re,Ju))));return n=t,r}return h.updateHeritageClause(e,CB(h.createNodeArray(E(e.types,e=>Mb(e.expression)||e.expression.kind===106)),Re,Gk))}));return[l,m(h.updateClassDeclaration(t,e,t.name,i,d,c))]}else{let n=Qe(t.heritageClauses);return m(h.updateClassDeclaration(t,e,t.name,i,n,c))}}case 244:return m(We(t));case 267:return m(h.updateEnumDeclaration(t,h.createNodeArray(Xe(t)),t.name,h.createNodeArray(M(t.members,t=>{if(qe(t))return;let n=D.getEnumMemberValue(t),r=n?.value;ie&&t.initializer&&n?.hasExternalReferences&&!NO(t.name)&&e.addDiagnostic(mm(t,G.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));let i=r===void 0?void 0:typeof r==`string`?h.createStringLiteral(r):r<0?h.createPrefixUnaryExpression(41,h.createNumericLiteral(-r)):h.createNumericLiteral(r);return Me(h.updateEnumMember(t,t.name,i),t)}))))}return H.assertNever(t,`Unhandled top-level node in declaration emit: ${H.formatSyntaxKind(t.kind)}`);function m(e){return Ae(t)&&(l=i),c&&(n=u),t.kind===268&&(r=d),e===t?e:(b=void 0,y=void 0,e&&zE(Me(e,t),t))}}function We(e){if(!d(e.declarationList.declarations,Te))return;let t=CB(e.declarationList.declarations,Re,bA);if(!u(t))return;let n=h.createNodeArray(Xe(e)),r;return Fm(e.declarationList)||Pm(e.declarationList)?(r=h.createVariableDeclarationList(t,2),zE(r,e.declarationList),X(r,e.declarationList),eD(r,e.declarationList)):r=h.updateVariableDeclarationList(e.declarationList,t),h.updateVariableStatement(e,n,r)}function L(e){return ne(M(e.elements,e=>Ge(e)))}function Ge(e){if(e.kind!==233&&e.name)return Te(e)?Xu(e.name)?L(e.name):h.createVariableDeclaration(e.name,void 0,xe(e),void 0):void 0}function Ke(e){let t;m||(t=n,n=QH(e)),y=e.name,H.assert(fv(e));let r=e.name.expression;je(r,l),m||(n=t),y=void 0}function qe(e){return!!te&&!!e&&hf(e,x)}function Je(e){return UA(e)||WA(e)}function Ye(e){return F(e,Je)}function Xe(e){let t=ub(e),n=Ze(e);return t===n?wB(e.modifiers,e=>vt(e,Du),Du):h.createModifiersFromModifierFlags(n)}function Ze(e){let t=130030,n=r&&!ure(e)?128:0,a=e.parent.kind===308;return(!a||i&&a&&yP(e.parent))&&(t^=128,n=0),fre(e,t,n)}function Qe(e){return h.createNodeArray(E(k(e,e=>h.updateHeritageClause(e,CB(h.createNodeArray(E(e.types,t=>Mb(t.expression)||e.token===96&&t.expression.kind===106)),Re,Gk))),e=>e.types&&!!e.types.length))}}function ure(e){return e.kind===265}function dre(e,t,n,r){return e.createModifiersFromModifierFlags(fre(t,n,r))}function fre(e,t=131070,n=0){let r=ub(e)&t|n;return r&2048&&!(r&32)&&(r^=32),r&2048&&r&128&&(r^=128),r}function aU(e){switch(e.kind){case 173:case 172:return!Zy(e,2);case 170:case 261:return!0}return!1}function oU(e){switch(e.kind){case 263:case 268:case 272:case 265:case 264:case 266:case 267:case 244:case 273:case 279:case 278:return!0}return!1}function sU(e){switch(e.kind){case 181:case 177:case 175:case 178:case 179:case 173:case 172:case 174:case 180:case 182:case 261:case 169:case 234:case 184:case 195:case 185:case 186:case 206:return!0}return!1}function cU(e){switch(e){case 200:return YH;case 99:case 7:case 6:case 5:case 100:case 101:case 102:case 199:case 1:return XH;case 4:return JH;default:return KH}}var lU={scriptTransformers:c,declarationTransformers:c};function uU(e,t,n){return{scriptTransformers:pre(e,t,n),declarationTransformers:mre(t)}}function pre(e,t,n){if(n)return c;let r=zS(e),i=BS(e),a=eC(e),o=[];return Ee(o,t&&k(t.before,gre)),o.push(_H),e.experimentalDecorators&&o.push(TH),mC(e)&&o.push(zH),r<99&&o.push(NH),!e.experimentalDecorators&&(r<99||!a)&&o.push(EH),o.push(vH),r<8&&o.push(MH),r<7&&o.push(jH),r<6&&o.push(AH),r<5&&o.push(kH),r<4&&o.push(DH),r<3&&o.push(VH),r<2&&(o.push(UH),o.push(GH)),o.push(cU(i)),Ee(o,t&&k(t.after,gre)),o}function mre(e){let t=[];return t.push(iU),Ee(t,e&&k(e.afterDeclarations,_re)),t}function hre(e){return t=>yj(t)?e.transformBundle(t):e.transformSourceFile(t)}function dU(e,t){return n=>{let r=e(n);return typeof r==`function`?t(n,r):hre(r)}}function gre(e){return dU(e,nV)}function _re(e){return dU(e,(e,t)=>t)}function fU(e,t){return t}function pU(e,t,n){n(e,t)}function mU(e,t,n,r,i,a,o){var s,c;let l=Array(359),u,d,f,p=0,m=[],h=[],g=[],_=[],v=0,y=!1,b=[],x=0,S,C,w=fU,T=pU,E=0,D=[],O={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:kt(()=>DD(O)),startLexicalEnvironment:ce,suspendLexicalEnvironment:P,resumeLexicalEnvironment:le,endLexicalEnvironment:ue,setLexicalEnvironmentFlags:de,getLexicalEnvironmentFlags:fe,hoistVariableDeclaration:N,hoistFunctionDeclaration:oe,addInitializationStatement:se,startBlockScope:pe,endBlockScope:me,addBlockScopedVariable:he,requestEmitHelper:ge,readEmitHelpers:_e,enableSubstitution:re,enableEmitNotification:A,isSubstitutionEnabled:ie,isEmitNotificationEnabled:j,get onSubstituteNode(){return w},set onSubstituteNode(e){H.assert(E<1,`Cannot modify transformation hooks after initialization has completed.`),H.assert(e!==void 0,`Value must not be 'undefined'`),w=e},get onEmitNode(){return T},set onEmitNode(e){H.assert(E<1,`Cannot modify transformation hooks after initialization has completed.`),H.assert(e!==void 0,`Value must not be 'undefined'`),T=e},addDiagnostic(e){D.push(e)}};for(let e of i)VE(Yf(Hc(e)));yr(`beforeTransform`);let k=a.map(e=>e(O)),ee=e=>{for(let t of k)e=t(e);return e};E=1;let te=[];for(let e of i)(s=Ar)==null||s.push(Ar.Phase.Emit,`transformNodes`,e.kind===308?{path:e.path}:{kind:e.kind,pos:e.pos,end:e.end}),te.push((o?ee:ne)(e)),(c=Ar)==null||c.pop();return E=2,yr(`afterTransform`),br(`transformTime`,`beforeTransform`,`afterTransform`),{transformed:te,substituteNode:ae,emitNodeWithNotification:M,isEmitNotificationEnabled:j,dispose:ve,diagnostics:D};function ne(e){return e&&(!vj(e)||!e.isDeclarationFile)?ee(e):e}function re(e){H.assert(E<2,`Cannot modify the transformation context after transformation has completed.`),l[e]|=1}function ie(e){return(l[e.kind]&1)!=0&&(kp(e)&8)==0}function ae(e,t){return H.assert(E<3,`Cannot substitute a node after the result is disposed.`),t&&ie(t)&&w(e,t)||t}function A(e){H.assert(E<2,`Cannot modify the transformation context after transformation has completed.`),l[e]|=2}function j(e){return(l[e.kind]&2)!=0||(kp(e)&4)!=0}function M(e,t,n){H.assert(E<3,`Cannot invoke TransformationResult callbacks after the result is disposed.`),t&&(j(t)?T(e,t,n):n(e,t))}function N(e){H.assert(E>0,`Cannot modify the lexical environment during initialization.`),H.assert(E<2,`Cannot modify the lexical environment after transformation has completed.`);let t=UE(n.createVariableDeclaration(e),128);u?u.push(t):u=[t],p&1&&(p|=2)}function oe(e){H.assert(E>0,`Cannot modify the lexical environment during initialization.`),H.assert(E<2,`Cannot modify the lexical environment after transformation has completed.`),UE(e,2097152),d?d.push(e):d=[e]}function se(e){H.assert(E>0,`Cannot modify the lexical environment during initialization.`),H.assert(E<2,`Cannot modify the lexical environment after transformation has completed.`),UE(e,2097152),f?f.push(e):f=[e]}function ce(){H.assert(E>0,`Cannot modify the lexical environment during initialization.`),H.assert(E<2,`Cannot modify the lexical environment after transformation has completed.`),H.assert(!y,`Lexical environment is suspended.`),m[v]=u,h[v]=d,g[v]=f,_[v]=p,v++,u=void 0,d=void 0,f=void 0,p=0}function P(){H.assert(E>0,`Cannot modify the lexical environment during initialization.`),H.assert(E<2,`Cannot modify the lexical environment after transformation has completed.`),H.assert(!y,`Lexical environment is already suspended.`),y=!0}function le(){H.assert(E>0,`Cannot modify the lexical environment during initialization.`),H.assert(E<2,`Cannot modify the lexical environment after transformation has completed.`),H.assert(y,`Lexical environment is not suspended.`),y=!1}function ue(){H.assert(E>0,`Cannot modify the lexical environment during initialization.`),H.assert(E<2,`Cannot modify the lexical environment after transformation has completed.`),H.assert(!y,`Lexical environment is suspended.`);let e;if(u||d||f){if(d&&(e=[...d]),u){let t=n.createVariableStatement(void 0,n.createVariableDeclarationList(u));UE(t,2097152),e?e.push(t):e=[t]}f&&(e=e?[...e,...f]:[...f])}return v--,u=m[v],d=h[v],f=g[v],p=_[v],v===0&&(m=[],h=[],g=[],_=[]),e}function de(e,t){p=t?p|e:p&~e}function fe(){return p}function pe(){H.assert(E>0,`Cannot start a block scope during initialization.`),H.assert(E<2,`Cannot start a block scope after transformation has completed.`),b[x]=S,x++,S=void 0}function me(){H.assert(E>0,`Cannot end a block scope during initialization.`),H.assert(E<2,`Cannot end a block scope after transformation has completed.`);let e=F(S)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(S.map(e=>n.createVariableDeclaration(e)),1))]:void 0;return x--,S=b[x],x===0&&(b=[]),e}function he(e){H.assert(x>0,`Cannot add a block scoped variable outside of an iteration body.`),(S||=[]).push(e)}function ge(e){if(H.assert(E>0,`Cannot modify the transformation context during initialization.`),H.assert(E<2,`Cannot modify the transformation context after transformation has completed.`),H.assert(!e.scoped,`Cannot request a scoped emit helper.`),e.dependencies)for(let t of e.dependencies)ge(t);C=I(C,e)}function _e(){H.assert(E>0,`Cannot modify the transformation context during initialization.`),H.assert(E<2,`Cannot modify the transformation context after transformation has completed.`);let e=C;return C=void 0,e}function ve(){if(E<3){for(let e of i)VE(Yf(Hc(e)));u=void 0,m=void 0,d=void 0,h=void 0,w=void 0,T=void 0,C=void 0,E=3}}}var hU={factory:J,getCompilerOptions:()=>({}),getEmitResolver:Ot,getEmitHost:Ot,getEmitHelperFactory:Ot,startLexicalEnvironment:bt,resumeLexicalEnvironment:bt,suspendLexicalEnvironment:bt,endLexicalEnvironment:Ct,setLexicalEnvironmentFlags:bt,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:bt,hoistFunctionDeclaration:bt,addInitializationStatement:bt,startBlockScope:bt,endBlockScope:Ct,addBlockScopedVariable:bt,requestEmitHelper:bt,readEmitHelpers:Ot,enableSubstitution:bt,enableEmitNotification:bt,isSubstitutionEnabled:Ot,isEmitNotificationEnabled:Ot,onSubstituteNode:fU,onEmitNode:pU,addDiagnostic:bt},vre=xre();function gU(e){return qa(e,`.tsbuildinfo`)}function _U(e,t,n,r=!1,i,a){let o=mt(n)?n:vy(e,n,r),s=e.getCompilerOptions();if(!i)if(s.outFile){if(o.length){let n=J.createBundle(o),i=t(bU(n,e,r),n);if(i)return i}}else for(let n of o){let i=t(bU(n,e,r),n);if(i)return i}if(a){let e=vU(s);if(e)return t({buildInfoPath:e},void 0)}}function vU(e){let t=e.configFilePath;if(!yre(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let n=e.outFile,r;if(n)r=uw(n);else{if(!t)return;let n=uw(t);r=e.outDir?e.rootDir?uo(e.outDir,No(e.rootDir,n,!0)):lo(e.outDir,eo(n)):n}return r+`.tsbuildinfo`}function yre(e){return ZS(e)||!!e.tscBuild}function yU(e,t){let n=e.outFile,r=e.emitDeclarationOnly?void 0:n,i=r&&bre(r,e),a=t||YS(e)?uw(n)+`.d.ts`:void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:a,declarationMapPath:a&&QS(e)?a+`.map`:void 0}}function bU(e,t,n){let r=t.getCompilerOptions();if(e.kind===309)return yU(r,n);{let i=dy(e.fileName,t,xU(e.fileName,r)),a=jm(e),o=a&&ko(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,s=r.emitDeclarationOnly||o?void 0:i,c=!s||jm(e)?void 0:bre(s,r),l=n||YS(r)&&!a?fy(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&QS(r)?l+`.map`:void 0}}}function bre(e,t){return t.sourceMap&&!t.inlineSourceMap?e+`.map`:void 0}function xU(e,t){return qa(e,`.json`)?`.json`:t.jsx===1&&Ja(e,[`.jsx`,`.tsx`])?`.jsx`:Ja(e,[`.mts`,`.mjs`])?`.mjs`:Ja(e,[`.cts`,`.cjs`])?`.cjs`:`.js`}function SU(e,t,n,r){return n?uo(n,No(r(),e,t)):e}function CU(e,t,n,r=()=>jU(t,n)){return wU(e,t.options,n,r)}function wU(e,t,n,r){return pw(SU(e,n,t.declarationDir||t.outDir,r),my(e))}function TU(e,t,n,r=()=>jU(t,n)){if(t.options.emitDeclarationOnly)return;let i=qa(e,`.json`),a=EU(e,t.options,n,r);return!i||ko(e,a,H.checkDefined(t.options.configFilePath),n)!==0?a:void 0}function EU(e,t,n,r){return pw(SU(e,n,t.outDir,r),xU(e,t))}function DU(){let e;return{addOutput:t,getOutputs:n};function t(t){t&&(e||=[]).push(t)}function n(){return e||c}}function OU(e,t){let{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:a}=yU(e.options,!1);t(n),t(r),t(i),t(a)}function kU(e,t,n,r,i){if(OP(t))return;let a=TU(t,e,n,i);if(r(a),!qa(t,`.json`)&&(a&&e.options.sourceMap&&r(`${a}.map`),YS(e.options))){let a=CU(t,e,n,i);r(a),e.options.declarationMap&&r(`${a}.map`)}}function AU(e,t,n,r,i){let a;return e.rootDir?(a=po(e.rootDir,n),i?.(e.rootDir)):e.composite&&e.configFilePath?(a=$a(so(e.configFilePath)),i?.(a)):a=oW(t(),n,r),a&&a[a.length-1]!==Fa&&(a+=Fa),a}function jU({options:e,fileNames:t},n){return AU(e,()=>E(t,t=>!(e.noEmitForJsFiles&&Ja(t,GC))&&!OP(t)),$a(so(H.checkDefined(e.configFilePath))),ln(!n))}function MU(e,t){let{addOutput:n,getOutputs:r}=DU();if(e.options.outFile)OU(e,n);else{let r=kt(()=>jU(e,t));for(let i of e.fileNames)kU(e,i,t,n,r)}return n(vU(e.options)),r()}function NU(e,t,n){t=mo(t),H.assert(C(e.fileNames,t),`Expected fileName to be present in command line`);let{addOutput:r,getOutputs:i}=DU();return e.options.outFile?OU(e,r):kU(e,t,n,r),i()}function PU(e,t){if(e.options.outFile){let{jsFilePath:t,declarationFilePath:n}=yU(e.options,!1);return H.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}let n=kt(()=>jU(e,t));for(let r of e.fileNames){if(OP(r))continue;let i=TU(r,e,t,n);if(i)return i;if(!qa(r,`.json`)&&YS(e.options))return CU(r,e,t,n)}return vU(e.options)||H.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function FU(e,t){return!!t&&!!e}function IU(e,t,n,{scriptTransformers:r,declarationTransformers:i},a,s,c,l){var d=t.getCompilerOptions(),f=d.sourceMap||d.inlineSourceMap||QS(d)?[]:void 0,p=d.listEmittedFiles?[]:void 0,m=zv(),h=ax(d),g=ry(h),{enter:_,exit:v}=fr(`printTime`,`beforePrint`,`afterPrint`),y=!1;return _(),_U(t,b,vy(t,n,c),c,s,!n&&!l),v(),{emitSkipped:y,diagnostics:m.getDiagnostics(),emittedFiles:p,sourceMaps:f};function b({jsFilePath:e,sourceMapFilePath:t,declarationFilePath:n,declarationMapPath:r,buildInfoPath:i},a){var o,s,c,l,u,d;(o=Ar)==null||o.push(Ar.Phase.Emit,`emitJsFileOrBundle`,{jsFilePath:e}),S(a,e,t),(s=Ar)==null||s.pop(),(c=Ar)==null||c.push(Ar.Phase.Emit,`emitDeclarationFileOrBundle`,{declarationFilePath:n}),C(a,n,r),(l=Ar)==null||l.pop(),(u=Ar)==null||u.push(Ar.Phase.Emit,`emitBuildInfo`,{buildInfoPath:i}),x(i),(d=Ar)==null||d.pop()}function x(e){if(!e||n)return;if(t.isEmitBlocked(e)){y=!0;return}let r=t.getBuildInfo()||{version:o};Sy(t,m,e,LU(r),!1,void 0,{buildInfo:r}),p?.push(e)}function S(n,i,o){if(!n||a||!i)return;if(t.isEmitBlocked(i)||d.noEmit){y=!0;return}(vj(n)?[n]:E(n.sourceFiles,ig)).forEach(e=>{(d.noCheck||!Nw(e,d))&&T(e)});let s=mU(e,t,J,d,[n],r,!1),c=WU({removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:d.noEmitHelpers,module:BS(d),moduleResolution:VS(d),target:zS(d),sourceMap:d.sourceMap,inlineSourceMap:d.inlineSourceMap,inlineSources:d.inlineSources,extendedDiagnostics:d.extendedDiagnostics},{hasGlobalName:e.hasGlobalName,onEmitNode:s.emitNodeWithNotification,isEmitNotificationEnabled:s.isEmitNotificationEnabled,substituteNode:s.substituteNode});H.assert(s.transformed.length===1,`Should only see one output from the transform`),D(i,o,s,c,d),s.dispose(),p&&(p.push(i),o&&p.push(o))}function C(n,r,o){if(!n||a===0)return;if(!r){(a||d.emitDeclarationOnly)&&(y=!0);return}let s=vj(n)?[n]:n.sourceFiles,l=c?s:E(s,ig),f=d.outFile?[J.createBundle(l)]:l;l.forEach(e=>{(a&&!YS(d)||d.noCheck||FU(a,c)||!Nw(e,d))&&w(e)});let h=mU(e,t,J,d,f,i,!1);if(u(h.diagnostics))for(let e of h.diagnostics)m.add(e);let g=!!h.diagnostics&&!!h.diagnostics.length||!!t.isEmitBlocked(r)||!!d.noEmit;if(y||=g,!g||c){H.assert(h.transformed.length===1,`Should only see one output from the decl transform`);let t={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:!0,module:d.module,moduleResolution:d.moduleResolution,target:d.target,sourceMap:a!==2&&d.declarationMap,inlineSourceMap:d.inlineSourceMap,extendedDiagnostics:d.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},n=D(r,o,h,WU(t,{hasGlobalName:e.hasGlobalName,onEmitNode:h.emitNodeWithNotification,isEmitNotificationEnabled:h.isEmitNotificationEnabled,substituteNode:h.substituteNode}),{sourceMap:t.sourceMap,sourceRoot:d.sourceRoot,mapRoot:d.mapRoot,extendedDiagnostics:d.extendedDiagnostics});p&&(n&&p.push(r),o&&p.push(o))}h.dispose()}function w(t){if(UA(t)){t.expression.kind===80&&e.collectLinkedAliases(t.expression,!0);return}else if(KA(t)){e.collectLinkedAliases(t.propertyName||t.name,!0);return}pP(t,w)}function T(t){tg(t)||mP(t,t=>{if(jA(t)&&!(fb(t)&32)||MA(t))return`skip`;e.markLinkedReferences(t)})}function D(e,n,r,i,a){let o=r.transformed[0],s=o.kind===309?o:void 0,c=o.kind===308?o:void 0,l=s?s.sourceFiles:[c],u;O(a,o)&&(u=LB(t,eo(so(e)),k(a),ee(a,e,c),a)),s?i.writeBundle(s,g,u):i.writeFile(c,g,u);let p;if(u){f&&f.push({inputSourceFileNames:u.getSources(),sourceMap:u.toJSON()});let r=te(a,u,e,n,c);r&&(g.isAtStartOfLine()||g.rawWrite(h),p=g.getTextPos(),g.writeComment(`//# sourceMappingURL=${r}`)),n&&Sy(t,m,n,u.toString(),!1,l)}else g.writeLine();let _=g.getText(),v={sourceMapUrlPos:p,diagnostics:r.diagnostics};return Sy(t,m,e,_,!!d.emitBOM,l,v),g.clear(),!v.skippedDtsWrite}function O(e,t){return(e.sourceMap||e.inlineSourceMap)&&(t.kind!==308||!qa(t.fileName,`.json`))}function k(e){let t=so(e.sourceRoot||``);return t&&xo(t)}function ee(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=so(e.mapRoot);return r&&(n=$a(by(r.fileName,t,n))),Qa(n)===0&&(n=lo(t.getCommonSourceDirectory(),n)),n}return $a(mo(n))}function te(e,n,r,i,a){if(e.inlineSourceMap){let e=n.toString();return`data:application/json;base64,${Qb(Na,e)}`}let o=eo(so(H.checkDefined(i)));if(e.mapRoot){let n=so(e.mapRoot);return a&&(n=$a(by(a.fileName,t,n))),Qa(n)===0?(n=lo(t.getCommonSourceDirectory(),n),encodeURI(Io($a(mo(r)),lo(n,o),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(lo(n,o))}return encodeURI(o)}}function LU(e){return JSON.stringify(e)}function RU(e,t){return ex(e,t)}var zU={hasGlobalName:Ot,getReferencedExportContainer:Ot,getReferencedImportDeclaration:Ot,getReferencedDeclarationWithCollidingName:Ot,isDeclarationWithCollidingName:Ot,isValueAliasDeclaration:Ot,isReferencedAliasDeclaration:Ot,isTopLevelValueImportEqualsWithEntityName:Ot,hasNodeCheckFlag:Ot,isDeclarationVisible:Ot,isLateBound:e=>!1,collectLinkedAliases:Ot,markLinkedReferences:Ot,isImplementationOfOverload:Ot,requiresAddingImplicitUndefined:Ot,isExpandoFunctionDeclaration:Ot,getPropertiesOfContainerFunction:Ot,createTypeOfDeclaration:Ot,createReturnTypeOfSignatureDeclaration:Ot,createTypeOfExpression:Ot,createLiteralConstValue:Ot,isSymbolAccessible:Ot,isEntityNameVisible:Ot,getConstantValue:Ot,getEnumMemberValue:Ot,getReferencedValueDeclaration:Ot,getReferencedValueDeclarations:Ot,getTypeReferenceSerializationKind:Ot,isOptionalParameter:Ot,isArgumentsLocalBinding:Ot,getExternalModuleFileFromDeclaration:Ot,isLiteralConstDeclaration:Ot,getJsxFactoryEntity:Ot,getJsxFragmentFactoryEntity:Ot,isBindingCapturedByNode:Ot,getDeclarationStatementsForSourceFile:Ot,isImportRequiredByAugmentation:Ot,isDefinitelyReferenceToGlobalSymbolObject:Ot,createLateBoundIndexSignatures:Ot,symbolToDeclarations:Ot},BU=kt(()=>WU({})),VU=kt(()=>WU({removeComments:!0})),HU=kt(()=>WU({removeComments:!0,neverAsciiEscape:!0})),UU=kt(()=>WU({removeComments:!0,omitTrailingSemicolon:!0}));function WU(e={},t={}){var{hasGlobalName:n,onEmitNode:r=pU,isEmitNotificationEnabled:i,substituteNode:a=fU,onBeforeEmitNode:o,onAfterEmitNode:s,onBeforeEmitNodeArray:c,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:f}=t,p=!!e.extendedDiagnostics,m=!!e.omitBraceSourceMapPositions,h=ax(e),g=BS(e),_=new Map,y,b,S,C,w,T,E,D,O,k,ee,te,ne,re,ie,ae=e.preserveSourceNewlines,A,j,M,N=wa,oe,se=!0,ce,P,le=-1,ue,de=-1,fe=-1,pe=-1,me=-1,he,ge,_e=!1,ve=!!e.removeComments,ye,be,{enter:xe,exit:Se}=dr(p,`commentTime`,`beforeComment`,`afterComment`),Ce=J.parenthesizer,I={select:e=>e===0?Ce.parenthesizeLeadingTypeArgument:void 0},we=jn();return Ue(),{printNode:Te,printList:Ee,printFile:Oe,printBundle:De,writeNode:ke,writeList:je,writeFile:Ne,writeBundle:Me};function Te(e,t,n){switch(e){case 0:H.assert(vj(t),`Expected a SourceFile node.`);break;case 2:H.assert(Y(t),`Expected an Identifier node.`);break;case 1:H.assert(q(t),`Expected an Expression node.`);break}switch(t.kind){case 308:return Oe(t);case 309:return De(t)}return ke(e,t,n,Fe()),Ie()}function Ee(e,t,n){return je(e,t,n,Fe()),Ie()}function De(e){return Me(e,Fe(),void 0),Ie()}function Oe(e){return Ne(e,Fe(),void 0),Ie()}function ke(e,t,n,r){let i=j;He(r,void 0),Le(e,t,n),Ue(),j=i}function je(e,t,n,r){let i=j;He(r,void 0),n&&Ve(n),va(void 0,t,e),Ue(),j=i}function Me(e,t,n){oe=!1;let r=j;He(t,n),$i(e),Qi(e),ot(e),Gi(e);for(let t of e.sourceFiles)Le(0,t,t);Ue(),j=r}function Ne(e,t,n){oe=!0;let r=j;He(t,n),$i(e),Qi(e),Le(0,e,e),Ue(),j=r}function Fe(){return M||=ry(h)}function Ie(){let e=M.getText();return M.clear(),e}function Le(e,t,n){n&&Ve(n),Xe(e,t,void 0)}function Ve(e){y=e,he=void 0,ge=void 0,e&&ps(e)}function He(t,n){t&&e.omitTrailingSemicolon&&(t=iy(t)),j=t,ce=n,se=!j||!ce}function Ue(){b=[],S=[],C=[],w=new Set,T=[],E=new Map,D=[],O=0,k=[],ee=0,te=[],ne=void 0,re=[],ie=void 0,y=void 0,he=void 0,ge=void 0,He(void 0,void 0)}function We(){return he||=fs(H.checkDefined(y))}function L(e,t){e!==void 0&&Xe(4,e,t)}function Ge(e){e!==void 0&&Xe(2,e,void 0)}function Ke(e,t){e!==void 0&&Xe(1,e,t)}function qe(e){Xe(tO(e)?6:4,e)}function Je(e){ae&&Ap(e)&4&&(ae=!1)}function Ye(e){ae=e}function Xe(e,t,n){be=n,$e(0,e,t)(e,t),be=void 0}function Ze(e){return!ve&&!vj(e)}function Qe(e){return!se&&!vj(e)&&!rg(e)}function $e(e,t,n){switch(e){case 0:if(r!==pU&&(!i||i(n)))return tt;case 1:if(a!==fU&&(ye=a(t,n)||n)!==n)return be&&(ye=be(ye)),at;case 2:if(Ze(n))return ko;case 3:if(Qe(n))return rs;case 4:return nt;default:return H.assertNever(e)}}function et(e,t,n){return $e(e+1,t,n)}function tt(e,t){r(e,t,et(0,e,t))}function nt(e,t){if(o?.(t),ae){let n=ae;Je(t),rt(e,t),Ye(n)}else rt(e,t);s?.(t),be=void 0}function rt(e,t,n=!0){if(n){let n=hD(t);if(n)return ut(e,t,n)}if(e===0)return Wi(yt(t,vj));if(e===2)return z(yt(t,Y));if(e===6)return lt(yt(t,tO),!0);if(e===3)return it(yt(t,PO));if(e===7)return qr(yt(t,LA));if(e===5)return H.assertNode(t,rA),Kn(!0);if(e===4){switch(t.kind){case 16:case 17:case 18:return lt(t,!1);case 80:return z(t);case 81:return ft(t);case 167:return pt(t);case 168:return ht(t);case 169:return gt(t);case 170:return _t(t);case 171:return bt(t);case 172:return xt(t);case 173:return St(t);case 174:return Ct(t);case 175:return wt(t);case 176:return Tt(t);case 177:return Et(t);case 178:case 179:return Dt(t);case 180:return Ot(t);case 181:return kt(t);case 182:return At(t);case 183:return Nt(t);case 184:return Pt(t);case 185:return Ft(t);case 186:return Ht(t);case 187:return Ut(t);case 188:return Wt(t);case 189:return Gt(t);case 190:return qt(t);case 191:return Yt(t);case 193:return Xt(t);case 194:return Zt(t);case 195:return Qt(t);case 196:return B(t);case 197:return $t(t);case 234:return Ln(t);case 198:return en();case 199:return tn(t);case 200:return nn(t);case 201:return rn(t);case 202:return an(t);case 203:return Jt(t);case 204:return on(t);case 205:return jt(t);case 206:return sn(t);case 207:return cn(t);case 208:return ln(t);case 209:return un(t);case 240:return Hn(t);case 241:return Mt();case 242:return Un(t);case 244:return Gn(t);case 243:return Kn(!1);case 245:return qn(t);case 246:return Jn(t);case 247:return Xn(t);case 248:return Zn(t);case 249:return Qn(t);case 250:return $n(t);case 251:return er(t);case 252:return nr(t);case 253:return rr(t);case 254:return lr(t);case 255:return ur(t);case 256:return fr(t);case 257:return pr(t);case 258:return mr(t);case 259:return hr(t);case 260:return gr(t);case 261:return _r(t);case 262:return vr(t);case 263:return yr(t);case 264:return kr(t);case 265:return jr(t);case 266:return Mr(t);case 267:return Nr(t);case 268:return Pr(t);case 269:return Fr(t);case 270:return Ir(t);case 271:return Xr(t);case 272:return Lr(t);case 273:return zr(t);case 274:return Vr(t);case 275:return Hr(t);case 281:return Zr(t);case 276:return Ur(t);case 277:return Wr(t);case 278:return Gr(t);case 279:return Kr(t);case 280:return Qr(t);case 282:return $r(t);case 301:return Jr(t);case 302:return Yr(t);case 283:return;case 284:return ni(t);case 12:return si(t);case 287:case 290:return oi(t);case 288:case 291:return ci(t);case 292:return ui(t);case 293:return li(t);case 294:return di(t);case 295:return hi(t);case 296:return gi(t);case 297:return vi(t);case 298:return yi(t);case 299:return xi(t);case 300:return Si(t);case 304:return Ci(t);case 305:return wi(t);case 306:return Ti(t);case 307:return Ei(t);case 308:return Wi(t);case 309:return H.fail(`Bundles should be printed using printBundle`);case 310:return Ui(t);case 311:return ji(t);case 313:return Ea(`*`);case 314:return Ea(`?`);case 315:return zt(t);case 316:return Bt(t);case 317:return Vt(t);case 318:return Rt(t);case 192:case 319:return Kt(t);case 320:return;case 321:return Di(t);case 323:return Ri(t);case 324:return zi(t);case 328:case 333:case 338:return Li(t);case 329:case 330:return Mi(t);case 331:case 332:return;case 334:case 335:case 336:case 337:return;case 339:return Fi(t);case 340:return Ii(t);case 342:case 349:return Bi(t);case 341:case 343:case 344:case 345:case 350:case 351:return Oi(t);case 346:return Ni(t);case 347:return Pi(t);case 348:return ki(t);case 352:return Ai(t);case 354:case 355:return}if(q(t)&&(e=1,a!==fU)){let n=a(e,t)||t;n!==t&&(t=n,be&&(t=be(t)))}}if(e===1)switch(t.kind){case 9:case 10:return ct(t);case 11:case 14:case 15:return lt(t,!1);case 80:return z(t);case 81:return ft(t);case 210:return dn(t);case 211:return fn(t);case 212:return pn(t);case 213:return hn(t);case 214:return gn(t);case 215:return _n(t);case 216:return vn(t);case 217:return yn(t);case 218:return bn(t);case 219:return xn(t);case 220:return V(t);case 221:return wn(t);case 222:return Tn(t);case 223:return En(t);case 224:return Dn(t);case 225:return On(t);case 226:return An(t);case 227:return we(t);case 228:return Mn(t);case 229:return Nn(t);case 230:return Pn(t);case 231:return Fn(t);case 232:return In(t);case 233:return;case 235:return Rn(t);case 236:return zn(t);case 234:return Ln(t);case 239:return Bn(t);case 237:return Vn(t);case 238:return H.fail(`SyntheticExpression should never be printed.`);case 283:return;case 285:return ri(t);case 286:return ii(t);case 289:return ai(t);case 353:return H.fail(`SyntaxList should not be printed`);case 354:return;case 356:return Yi(t);case 357:return Xi(t);case 358:return H.fail(`SyntheticReferenceExpression should not be printed`)}if($_(t.kind))return za(t,Oa);if(ru(t.kind))return za(t,Ea);H.fail(`Unhandled SyntaxKind: ${H.formatSyntaxKind(t.kind)}.`)}function it(e){L(e.name),Ma(),Oa(`in`),Ma(),L(e.constraint)}function at(e,t){let n=et(1,e,t);H.assertIsDefined(ye),t=ye,ye=void 0,n(e,t)}function ot(t){let n=!1,r=t.kind===309?t:void 0;if(r&&g===0)return;let i=r?r.sourceFiles.length:1;for(let a=0;a`)}function Lt(e){Ma(),L(e.type)}function Rt(e){Oa(`function`),pa(e,e.parameters),Ea(`:`),L(e.type)}function zt(e){Ea(`?`),L(e.type)}function Bt(e){Ea(`!`),L(e.type)}function Vt(e){L(e.type),Ea(`=`)}function Ht(e){na(e,e.modifiers),Oa(`new`),Ma(),xr(e,It,Lt)}function Ut(e){Oa(`typeof`),Ma(),L(e.exprName),da(e,e.typeArguments)}function Wt(e){ro(e),d(e.members,co),Ea(`{`);let t=kp(e)&1?768:32897;va(e,e.members,t|524288),Ea(`}`),io(e)}function Gt(e){L(e.elementType,Ce.parenthesizeNonArrayTypeOfPostfixType),Ea(`[`),Ea(`]`)}function Kt(e){Ea(`...`),L(e.type)}function qt(e){ir(23,e.pos,Ea,e);let t=kp(e)&1?528:657;va(e,e.elements,t|524288,Ce.parenthesizeElementTypeOfTupleType),ir(24,e.elements.end,Ea,e)}function Jt(e){L(e.dotDotDotToken),L(e.name),L(e.questionToken),ir(59,e.name.end,Ea,e),Ma(),L(e.type)}function Yt(e){L(e.type,Ce.parenthesizeTypeOfOptionalType),Ea(`?`)}function Xt(e){va(e,e.types,516,Ce.parenthesizeConstituentTypeOfUnionType)}function Zt(e){va(e,e.types,520,Ce.parenthesizeConstituentTypeOfIntersectionType)}function Qt(e){L(e.checkType,Ce.parenthesizeCheckTypeOfConditionalType),Ma(),Oa(`extends`),Ma(),L(e.extendsType,Ce.parenthesizeExtendsTypeOfConditionalType),Ma(),Ea(`?`),Ma(),L(e.trueType),Ma(),Ea(`:`),Ma(),L(e.falseType)}function B(e){Oa(`infer`),Ma(),L(e.typeParameter)}function $t(e){Ea(`(`),L(e.type),Ea(`)`)}function en(){Oa(`this`)}function tn(e){Ba(e.operator,Oa),Ma();let t=e.operator===148?Ce.parenthesizeOperandOfReadonlyTypeOperator:Ce.parenthesizeOperandOfTypeOperator;L(e.type,t)}function nn(e){L(e.objectType,Ce.parenthesizeNonArrayTypeOfPostfixType),Ea(`[`),L(e.indexType),Ea(`]`)}function rn(e){let t=kp(e);Ea(`{`),t&1?Ma():(Fa(),Ia()),e.readonlyToken&&(L(e.readonlyToken),e.readonlyToken.kind!==148&&Oa(`readonly`),Ma()),Ea(`[`),Xe(3,e.typeParameter),e.nameType&&(Ma(),Oa(`as`),Ma(),L(e.nameType)),Ea(`]`),e.questionToken&&(L(e.questionToken),e.questionToken.kind!==58&&Ea(`?`)),Ea(`:`),Ma(),L(e.type),Da(),t&1?Ma():(Fa(),La()),va(e,e.members,2),Ea(`}`)}function an(e){Ke(e.literal)}function on(e){L(e.head),va(e,e.templateSpans,262144)}function sn(e){e.isTypeOf&&(Oa(`typeof`),Ma()),Oa(`import`),Ea(`(`),L(e.argument),e.attributes&&(Ea(`,`),Ma(),Xe(7,e.attributes)),Ea(`)`),e.qualifier&&(Ea(`.`),L(e.qualifier)),da(e,e.typeArguments)}function cn(e){Ea(`{`),va(e,e.elements,525136),Ea(`}`)}function ln(e){Ea(`[`),va(e,e.elements,524880),Ea(`]`)}function un(e){L(e.dotDotDotToken),e.propertyName&&(L(e.propertyName),Ea(`:`),Ma()),L(e.name),ia(e.initializer,e.name.end,e,Ce.parenthesizeExpressionForDisallowedComma)}function dn(e){let t=e.elements;ya(e,t,8914|(e.multiLine?65536:0),Ce.parenthesizeExpressionForDisallowedComma)}function fn(e){ro(e),d(e.properties,co);let t=kp(e)&131072;t&&Ia();let n=e.multiLine?65536:0,r=y&&y.languageVersion>=1&&!jm(y)?64:0;va(e,e.properties,526226|r|n),t&&La(),io(e)}function pn(e){Ke(e.expression,Ce.parenthesizeLeftSideOfAccess);let t=e.questionDotToken||Jw(J.createToken(25),e.expression.end,e.name.pos),n=Qa(e,e.expression,t),r=Qa(e,t,e.name);Ua(n,!1),t.kind!==29&&mn(e.expression)&&!j.hasTrailingComment()&&!j.hasTrailingWhitespace()&&Ea(`.`),e.questionDotToken?L(t):ir(t.kind,e.expression.end,Ea,e),Ua(r,!1),L(e.name),Wa(n,r)}function mn(e){if(e=Zl(e),$D(e)){let t=no(e,void 0,!0,!1);return!(e.numericLiteralFlags&448)&&!t.includes(is(25))&&!t.includes(`E`)&&!t.includes(`e`)}else if(Zx(e)){let t=cD(e);return typeof t==`number`&&isFinite(t)&&t>=0&&Math.floor(t)===t}}function hn(e){Ke(e.expression,Ce.parenthesizeLeftSideOfAccess),L(e.questionDotToken),ir(23,e.expression.end,Ea,e),Ke(e.argumentExpression),ir(24,e.argumentExpression.end,Ea,e)}function gn(e){let t=Ap(e)&16;t&&(Ea(`(`),Sa(`0`),Ea(`,`),Ma()),Ke(e.expression,Ce.parenthesizeLeftSideOfAccess),t&&Ea(`)`),L(e.questionDotToken),da(e,e.typeArguments),ya(e,e.arguments,2576,Ce.parenthesizeExpressionForDisallowedComma)}function _n(e){ir(105,e.pos,Oa,e),Ma(),Ke(e.expression,Ce.parenthesizeExpressionOfNew),da(e,e.typeArguments),ya(e,e.arguments,18960,Ce.parenthesizeExpressionForDisallowedComma)}function vn(e){let t=Ap(e)&16;t&&(Ea(`(`),Sa(`0`),Ea(`,`),Ma()),Ke(e.tag,Ce.parenthesizeLeftSideOfAccess),t&&Ea(`)`),da(e,e.typeArguments),Ma(),Ke(e.template)}function yn(e){Ea(`<`),L(e.type),Ea(`>`),Ke(e.expression,Ce.parenthesizeOperandOfPrefixUnary)}function bn(e){let t=ir(21,e.pos,Ea,e),n=Xa(e.expression,e);Ke(e.expression,void 0),Za(e.expression,e),Wa(n),ir(22,e.expression?e.expression.end:t,Ea,e)}function xn(e){lo(e.name),br(e)}function V(e){na(e,e.modifiers),xr(e,Sn,Cn)}function Sn(e){fa(e,e.typeParameters),ha(e,e.parameters),ra(e.type),Ma(),L(e.equalsGreaterThanToken)}function Cn(e){tA(e.body)?Er(e.body):(Ma(),Ke(e.body,Ce.parenthesizeConciseBodyOfArrowFunction))}function wn(e){ir(91,e.pos,Oa,e),Ma(),Ke(e.expression,Ce.parenthesizeOperandOfPrefixUnary)}function Tn(e){ir(114,e.pos,Oa,e),Ma(),Ke(e.expression,Ce.parenthesizeOperandOfPrefixUnary)}function En(e){ir(116,e.pos,Oa,e),Ma(),Ke(e.expression,Ce.parenthesizeOperandOfPrefixUnary)}function Dn(e){ir(135,e.pos,Oa,e),Ma(),Ke(e.expression,Ce.parenthesizeOperandOfPrefixUnary)}function On(e){Ba(e.operator,ka),kn(e)&&Ma(),Ke(e.operand,Ce.parenthesizeOperandOfPrefixUnary)}function kn(e){let t=e.operand;return t.kind===225&&(e.operator===40&&(t.operator===40||t.operator===46)||e.operator===41&&(t.operator===41||t.operator===47))}function An(e){Ke(e.operand,Ce.parenthesizeOperandOfPostfixUnary),Ba(e.operator,ka)}function jn(){return EN(e,t,n,r,i,void 0);function e(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=ae,t.containerPosStack[t.stackIndex]=fe,t.containerEndStack[t.stackIndex]=pe,t.declarationListContainerEndStack[t.stackIndex]=me;let n=t.shouldEmitCommentsStack[t.stackIndex]=Ze(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Qe(e);o?.(e),n&&Ao(e),r&&as(e),Je(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}function t(e,t,n){return a(e,n,`left`)}function n(e,t,n){let r=e.kind!==28,i=Qa(n,n.left,e),a=Qa(n,e,n.right);Ua(i,r),Wo(e.pos),za(e,e.kind===103?Oa:ka),qo(e.end,!0),Ua(a,!0)}function r(e,t,n){return a(e,n,`right`)}function i(e,t){if(Wa(Qa(e,e.left,e.operatorToken),Qa(e,e.operatorToken,e.right)),t.stackIndex>0){let n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],a=t.declarationListContainerEndStack[t.stackIndex],o=t.shouldEmitCommentsStack[t.stackIndex],c=t.shouldEmitSourceMapsStack[t.stackIndex];Ye(n),c&&os(e),o&&jo(e,r,i,a),s?.(e),t.stackIndex--}}function a(e,t,n){let r=n===`left`?Ce.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):Ce.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind),i=$e(0,1,e);if(i===at&&(H.assertIsDefined(ye),e=r(yt(ye,q)),i=et(1,1,e),ye=void 0),(i===ko||i===rs||i===nt)&&Rk(e))return e;be=r,i(1,e)}}function Mn(e){let t=Qa(e,e.condition,e.questionToken),n=Qa(e,e.questionToken,e.whenTrue),r=Qa(e,e.whenTrue,e.colonToken),i=Qa(e,e.colonToken,e.whenFalse);Ke(e.condition,Ce.parenthesizeConditionOfConditionalExpression),Ua(t,!0),L(e.questionToken),Ua(n,!0),Ke(e.whenTrue,Ce.parenthesizeBranchOfConditionalExpression),Wa(t,n),Ua(r,!0),L(e.colonToken),Ua(i,!0),Ke(e.whenFalse,Ce.parenthesizeBranchOfConditionalExpression),Wa(r,i)}function Nn(e){L(e.head),va(e,e.templateSpans,262144)}function Pn(e){ir(127,e.pos,Oa,e),L(e.asteriskToken),sa(e.expression&&sr(e.expression),cr)}function Fn(e){ir(26,e.pos,Ea,e),Ke(e.expression,Ce.parenthesizeExpressionForDisallowedComma)}function In(e){lo(e.name),Ar(e)}function Ln(e){Ke(e.expression,Ce.parenthesizeLeftSideOfAccess),da(e,e.typeArguments)}function Rn(e){Ke(e.expression,void 0),e.type&&(Ma(),Oa(`as`),Ma(),L(e.type))}function zn(e){Ke(e.expression,Ce.parenthesizeLeftSideOfAccess),ka(`!`)}function Bn(e){Ke(e.expression,void 0),e.type&&(Ma(),Oa(`satisfies`),Ma(),L(e.type))}function Vn(e){Ra(e.keywordToken,e.pos,Ea),Ea(`.`),L(e.name)}function Hn(e){Ke(e.expression),L(e.literal)}function Un(e){Wn(e,!e.multiLine&&$a(e))}function Wn(e,t){ir(19,e.pos,Ea,e);let n=t||kp(e)&1?768:129;va(e,e.statements,n),ir(20,e.statements.end,Ea,e,!!(n&1))}function Gn(e){ta(e,e.modifiers,!1),L(e.declarationList),Da()}function Kn(e){e?Ea(`;`):Da()}function qn(e){Ke(e.expression,Ce.parenthesizeExpressionOfExpressionStatement),(!y||!jm(y)||kv(e.expression))&&Da()}function Jn(e){let t=ir(101,e.pos,Oa,e);Ma(),ir(21,t,Ea,e),Ke(e.expression),ir(22,e.expression.end,Ea,e),la(e,e.thenStatement),e.elseStatement&&(Va(e,e.thenStatement,e.elseStatement),ir(93,e.thenStatement.end,Oa,e),e.elseStatement.kind===246?(Ma(),L(e.elseStatement)):la(e,e.elseStatement))}function Yn(e,t){let n=ir(117,t,Oa,e);Ma(),ir(21,n,Ea,e),Ke(e.expression),ir(22,e.expression.end,Ea,e)}function Xn(e){ir(92,e.pos,Oa,e),la(e,e.statement),tA(e.statement)&&!ae?Ma():Va(e,e.statement,e.expression),Yn(e,e.statement.end),Da()}function Zn(e){Yn(e,e.pos),la(e,e.statement)}function Qn(e){let t=ir(99,e.pos,Oa,e);Ma();let n=ir(21,t,Ea,e);tr(e.initializer),n=ir(27,e.initializer?e.initializer.end:n,Ea,e),sa(e.condition),n=ir(27,e.condition?e.condition.end:n,Ea,e),sa(e.incrementor),ir(22,e.incrementor?e.incrementor.end:n,Ea,e),la(e,e.statement)}function $n(e){let t=ir(99,e.pos,Oa,e);Ma(),ir(21,t,Ea,e),tr(e.initializer),Ma(),ir(103,e.initializer.end,Oa,e),Ma(),Ke(e.expression),ir(22,e.expression.end,Ea,e),la(e,e.statement)}function er(e){let t=ir(99,e.pos,Oa,e);Ma(),ca(e.awaitModifier),ir(21,t,Ea,e),tr(e.initializer),Ma(),ir(165,e.initializer.end,Oa,e),Ma(),Ke(e.expression),ir(22,e.expression.end,Ea,e),la(e,e.statement)}function tr(e){e!==void 0&&(e.kind===262?L(e):Ke(e))}function nr(e){ir(88,e.pos,Oa,e),oa(e.label),Da()}function rr(e){ir(83,e.pos,Oa,e),oa(e.label),Da()}function ir(e,t,n,r,i){let a=Hc(r),o=a&&a.kind===r.kind,s=t;if(o&&y&&(t=Es(y.text,t)),o&&r.pos!==s){let e=i&&y&&!bx(s,t,y);e&&Ia(),Wo(s),e&&La()}if(t=!m&&(e===19||e===20)?Ra(e,t,n,r):Ba(e,n,t),o&&r.end!==t){let e=r.kind===295;qo(t,!e,e)}return t}function ar(e){return e.kind===2||!!e.hasTrailingNewLine}function or(e){if(!y)return!1;let t=zs(y.text,e.pos);if(t){let t=Hc(e);if(t&&kk(t.parent))return!0}return F(t,ar)||F(tD(e),ar)?!0:Zk(e)?e.pos!==e.expression.pos&&F(Bs(y.text,e.expression.pos),ar)?!0:or(e.expression):!1}function sr(e){if(!ve)switch(e.kind){case 356:if(or(e)){let t=Hc(e);if(t&&kk(t)){let n=J.createParenthesizedExpression(e.expression);return zE(n,e),X(n,t),n}return J.createParenthesizedExpression(e)}return J.updatePartiallyEmittedExpression(e,sr(e.expression));case 212:return J.updatePropertyAccessExpression(e,sr(e.expression),e.name);case 213:return J.updateElementAccessExpression(e,sr(e.expression),e.argumentExpression);case 214:return J.updateCallExpression(e,sr(e.expression),e.typeArguments,e.arguments);case 216:return J.updateTaggedTemplateExpression(e,sr(e.tag),e.typeArguments,e.template);case 226:return J.updatePostfixUnaryExpression(e,sr(e.operand));case 227:return J.updateBinaryExpression(e,sr(e.left),e.operatorToken,e.right);case 228:return J.updateConditionalExpression(e,sr(e.condition),e.questionToken,e.whenTrue,e.colonToken,e.whenFalse);case 235:return J.updateAsExpression(e,sr(e.expression),e.type);case 239:return J.updateSatisfiesExpression(e,sr(e.expression),e.type);case 236:return J.updateNonNullExpression(e,sr(e.expression))}return e}function cr(e){return sr(Ce.parenthesizeExpressionForDisallowedComma(e))}function lr(e){ir(107,e.pos,Oa,e),sa(e.expression&&sr(e.expression),sr),Da()}function ur(e){let t=ir(118,e.pos,Oa,e);Ma(),ir(21,t,Ea,e),Ke(e.expression),ir(22,e.expression.end,Ea,e),la(e,e.statement)}function fr(e){let t=ir(109,e.pos,Oa,e);Ma(),ir(21,t,Ea,e),Ke(e.expression),ir(22,e.expression.end,Ea,e),Ma(),L(e.caseBlock)}function pr(e){L(e.label),ir(59,e.label.end,Ea,e),Ma(),L(e.statement)}function mr(e){ir(111,e.pos,Oa,e),sa(sr(e.expression),sr),Da()}function hr(e){ir(113,e.pos,Oa,e),Ma(),L(e.tryBlock),e.catchClause&&(Va(e,e.tryBlock,e.catchClause),L(e.catchClause)),e.finallyBlock&&(Va(e,e.catchClause||e.tryBlock,e.finallyBlock),ir(98,(e.catchClause||e.tryBlock).end,Oa,e),Ma(),L(e.finallyBlock))}function gr(e){Ra(89,e.pos,Oa),Da()}function _r(e){L(e.name),L(e.exclamationToken),ra(e.type),ia(e.initializer,e.type?.end??e.name.emitNode?.typeNode?.end??e.name.end,e,Ce.parenthesizeExpressionForDisallowedComma)}function vr(e){Pm(e)?(Oa(`await`),Ma(),Oa(`using`)):Oa(Rm(e)?`let`:Im(e)?`const`:Fm(e)?`using`:`var`),Ma(),va(e,e.declarations,528)}function yr(e){br(e)}function br(e){ta(e,e.modifiers,!1),Oa(`function`),L(e.asteriskToken),Ma(),Ge(e.name),xr(e,wr,Sr)}function xr(e,t,n){let r=kp(e)&131072;r&&Ia(),ro(e),d(e.parameters,so),t(e),n(e),io(e),r&&La()}function Sr(e){let t=e.body;t?Er(t):Da()}function Cr(e){Da()}function wr(e){fa(e,e.typeParameters),pa(e,e.parameters),ra(e.type)}function Tr(e){if(kp(e)&1)return!0;if(e.multiLine||!kv(e)&&y&&!fx(e,y)||Ga(e,Pe(e.statements),2)||Ja(e,Re(e.statements),2,e.statements))return!1;let t;for(let n of e.statements){if(Ka(t,n,2)>0)return!1;t=n}return!0}function Er(e){so(e),o?.(e),Ma(),Ea(`{`),Ia();let t=Tr(e)?Dr:Or;Ro(e,e.statements,t),La(),Ra(20,e.statements.end,Ea,e),s?.(e)}function Dr(e){Or(e,!0)}function Or(e,t){let n=Zi(e.statements),r=j.getTextPos();ot(e),n===0&&r===j.getTextPos()&&t?(La(),va(e,e.statements,768),Ia()):va(e,e.statements,1,void 0,n)}function kr(e){Ar(e)}function Ar(e){ta(e,e.modifiers,!0),ir(86,ux(e).pos,Oa,e),e.name&&(Ma(),Ge(e.name));let t=kp(e)&131072;t&&Ia(),fa(e,e.typeParameters),va(e,e.heritageClauses,0),Ma(),Ea(`{`),ro(e),d(e.members,co),va(e,e.members,129),io(e),Ea(`}`),t&&La()}function jr(e){ta(e,e.modifiers,!1),Oa(`interface`),Ma(),L(e.name),fa(e,e.typeParameters),va(e,e.heritageClauses,512),Ma(),Ea(`{`),ro(e),d(e.members,co),va(e,e.members,129),io(e),Ea(`}`)}function Mr(e){ta(e,e.modifiers,!1),Oa(`type`),Ma(),L(e.name),fa(e,e.typeParameters),Ma(),Ea(`=`),Ma(),L(e.type),Da()}function Nr(e){ta(e,e.modifiers,!1),Oa(`enum`),Ma(),L(e.name),Ma(),Ea(`{`),va(e,e.members,145),Ea(`}`)}function Pr(e){ta(e,e.modifiers,!1),~e.flags&2048&&(Oa(e.flags&32?`namespace`:`module`),Ma()),L(e.name);let t=e.body;if(!t)return Da();for(;t&&DA(t);)Ea(`.`),L(t.name),t=t.body;Ma(),L(t)}function Fr(e){ro(e),d(e.statements,so),Wn(e,$a(e)),io(e)}function Ir(e){ir(19,e.pos,Ea,e),va(e,e.clauses,129),ir(20,e.clauses.end,Ea,e,!0)}function Lr(e){ta(e,e.modifiers,!1),ir(102,e.modifiers?e.modifiers.end:e.pos,Oa,e),Ma(),e.isTypeOnly&&(ir(156,e.pos,Oa,e),Ma()),L(e.name),Ma(),ir(64,e.name.end,Ea,e),Ma(),Rr(e.moduleReference),Da()}function Rr(e){e.kind===80?Ke(e):L(e)}function zr(e){ta(e,e.modifiers,!1),ir(102,e.modifiers?e.modifiers.end:e.pos,Oa,e),Ma(),e.importClause&&(L(e.importClause),Ma(),ir(161,e.importClause.end,Oa,e),Ma()),Ke(e.moduleSpecifier),e.attributes&&oa(e.attributes),Da()}function Vr(e){e.phaseModifier!==void 0&&(ir(e.phaseModifier,e.pos,Oa,e),Ma()),L(e.name),e.name&&e.namedBindings&&(ir(28,e.name.end,Ea,e),Ma()),L(e.namedBindings)}function Hr(e){let t=ir(42,e.pos,Ea,e);Ma(),ir(130,t,Oa,e),Ma(),L(e.name)}function Ur(e){ei(e)}function Wr(e){ti(e)}function Gr(e){let t=ir(95,e.pos,Oa,e);Ma(),e.isExportEquals?ir(64,t,ka,e):ir(90,t,Oa,e),Ma(),Ke(e.expression,e.isExportEquals?Ce.getParenthesizeRightSideOfBinaryForOperator(64):Ce.parenthesizeExpressionOfExportDefault),Da()}function Kr(e){ta(e,e.modifiers,!1);let t=ir(95,e.pos,Oa,e);Ma(),e.isTypeOnly&&(t=ir(156,t,Oa,e),Ma()),e.exportClause?L(e.exportClause):t=ir(42,t,Ea,e),e.moduleSpecifier&&(Ma(),ir(161,e.exportClause?e.exportClause.end:t,Oa,e),Ma(),Ke(e.moduleSpecifier)),e.attributes&&oa(e.attributes),Da()}function qr(e){Ea(`{`),Ma(),Oa(e.token===132?`assert`:`with`),Ea(`:`),Ma();let t=e.elements;va(e,t,526226),Ma(),Ea(`}`)}function Jr(e){ir(e.token,e.pos,Oa,e),Ma();let t=e.elements;va(e,t,526226)}function Yr(e){L(e.name),Ea(`:`),Ma();let t=e.value;kp(t)&1024||qo($E(t).pos),L(t)}function Xr(e){let t=ir(95,e.pos,Oa,e);Ma(),t=ir(130,t,Oa,e),Ma(),t=ir(145,t,Oa,e),Ma(),L(e.name),Da()}function Zr(e){let t=ir(42,e.pos,Ea,e);Ma(),ir(130,t,Oa,e),Ma(),L(e.name)}function Qr(e){ei(e)}function $r(e){ti(e)}function ei(e){Ea(`{`),va(e,e.elements,525136),Ea(`}`)}function ti(e){e.isTypeOnly&&(Oa(`type`),Ma()),e.propertyName&&(L(e.propertyName),Ma(),ir(130,e.propertyName.end,Oa,e),Ma()),L(e.name)}function ni(e){Oa(`require`),Ea(`(`),Ke(e.expression),Ea(`)`)}function ri(e){L(e.openingElement),va(e,e.children,262144),L(e.closingElement)}function ii(e){Ea(`<`),_i(e.tagName),da(e,e.typeArguments),Ma(),L(e.attributes),Ea(`/>`)}function ai(e){L(e.openingFragment),va(e,e.children,262144),L(e.closingFragment)}function oi(e){if(Ea(`<`),ej(e)){let t=Xa(e.tagName,e);_i(e.tagName),da(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&Ma(),L(e.attributes),Za(e.attributes,e),Wa(t)}Ea(`>`)}function si(e){j.writeLiteral(e.text)}function ci(e){Ea(``)}function li(e){va(e,e.properties,262656)}function ui(e){L(e.name),aa(`=`,Ea,e.initializer,qe)}function di(e){Ea(`{...`),Ke(e.expression),Ea(`}`)}function fi(e){let t=!1;return Fs(y?.text||``,e+1,()=>t=!0),t}function pi(e){let t=!1;return Ps(y?.text||``,e+1,()=>t=!0),t}function mi(e){return fi(e)||pi(e)}function hi(e){if(e.expression||!ve&&!kv(e)&&mi(e.pos)){let t=y&&!kv(e)&&gs(y,e.pos).line!==gs(y,e.end).line;t&&j.increaseIndent();let n=ir(19,e.pos,Ea,e);L(e.dotDotDotToken),Ke(e.expression),ir(20,e.expression?.end||n,Ea,e),t&&j.decreaseIndent()}}function gi(e){Ge(e.namespace),Ea(`:`),Ge(e.name)}function _i(e){e.kind===80?Ke(e):L(e)}function vi(e){ir(84,e.pos,Oa,e),Ma(),Ke(e.expression,Ce.parenthesizeExpressionForDisallowedComma),bi(e,e.statements,e.expression.end)}function yi(e){let t=ir(90,e.pos,Oa,e);bi(e,e.statements,t)}function bi(e,t,n){let r=t.length===1&&(!y||kv(e)||kv(t[0])||px(e,t[0],y)),i=163969;r?(Ra(59,n,Ea,e),Ma(),i&=-130):ir(59,n,Ea,e),va(e,t,i)}function xi(e){Ma(),Ba(e.token,Oa),Ma(),va(e,e.types,528)}function Si(e){let t=ir(85,e.pos,Oa,e);Ma(),e.variableDeclaration&&(ir(21,t,Ea,e),L(e.variableDeclaration),ir(22,e.variableDeclaration.end,Ea,e),Ma()),L(e.block)}function Ci(e){L(e.name),Ea(`:`),Ma();let t=e.initializer;kp(t)&1024||qo($E(t).pos),Ke(t,Ce.parenthesizeExpressionForDisallowedComma)}function wi(e){L(e.name),e.objectAssignmentInitializer&&(Ma(),Ea(`=`),Ma(),Ke(e.objectAssignmentInitializer,Ce.parenthesizeExpressionForDisallowedComma))}function Ti(e){e.expression&&(ir(26,e.pos,Ea,e),Ke(e.expression,Ce.parenthesizeExpressionForDisallowedComma))}function Ei(e){L(e.name),ia(e.initializer,e.name.end,e,Ce.parenthesizeExpressionForDisallowedComma)}function Di(e){if(N(`/**`),e.comment){let t=Il(e.comment);if(t){let e=t.split(/\r\n?|\n/);for(let t of e)Fa(),Ma(),Ea(`*`),Ma(),N(t)}}e.tags&&(e.tags.length===1&&e.tags[0].kind===345&&!e.comment?(Ma(),L(e.tags[0])):va(e,e.tags,33)),Ma(),N(`*/`)}function Oi(e){Vi(e.tagName),Ui(e.typeExpression),Hi(e.comment)}function ki(e){Vi(e.tagName),L(e.name),Hi(e.comment)}function Ai(e){Vi(e.tagName),Ma(),e.importClause&&(L(e.importClause),Ma(),ir(161,e.importClause.end,Oa,e),Ma()),Ke(e.moduleSpecifier),e.attributes&&oa(e.attributes),Hi(e.comment)}function ji(e){Ma(),Ea(`{`),L(e.name),Ea(`}`)}function Mi(e){Vi(e.tagName),Ma(),Ea(`{`),L(e.class),Ea(`}`),Hi(e.comment)}function Ni(e){Vi(e.tagName),Ui(e.constraint),Ma(),va(e,e.typeParameters,528),Hi(e.comment)}function Pi(e){Vi(e.tagName),e.typeExpression&&(e.typeExpression.kind===310?Ui(e.typeExpression):(Ma(),Ea(`{`),N(`Object`),e.typeExpression.isArrayType&&(Ea(`[`),Ea(`]`)),Ea(`}`))),e.fullName&&(Ma(),L(e.fullName)),Hi(e.comment),e.typeExpression&&e.typeExpression.kind===323&&Ri(e.typeExpression)}function Fi(e){Vi(e.tagName),e.name&&(Ma(),L(e.name)),Hi(e.comment),zi(e.typeExpression)}function Ii(e){Hi(e.comment),zi(e.typeExpression)}function Li(e){Vi(e.tagName),Hi(e.comment)}function Ri(e){va(e,J.createNodeArray(e.jsDocPropertyTags),33)}function zi(e){e.typeParameters&&va(e,J.createNodeArray(e.typeParameters),33),e.parameters&&va(e,J.createNodeArray(e.parameters),33),e.type&&(Fa(),Ma(),Ea(`*`),Ma(),L(e.type))}function Bi(e){Vi(e.tagName),Ui(e.typeExpression),Ma(),e.isBracketed&&Ea(`[`),L(e.name),e.isBracketed&&Ea(`]`),Hi(e.comment)}function Vi(e){Ea(`@`),L(e)}function Hi(e){let t=Il(e);t&&(Ma(),N(t))}function Ui(e){e&&(Ma(),Ea(`{`),L(e.type),Ea(`}`))}function Wi(e){Fa();let t=e.statements;if(t.length===0||!Um(t[0])||kv(t[0])){Ro(e,t,Ji);return}Ji(e)}function Gi(e){qi(!!e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[],e.syntheticLibReferences||[])}function Ki(e){e.isDeclarationFile&&qi(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}function qi(e,t,n,r){if(e&&(ja(`/// `),Fa()),y&&y.moduleName&&(ja(`/// `),Fa()),y&&y.amdDependencies)for(let e of y.amdDependencies)e.name?ja(`/// `):ja(`/// `),Fa();function i(e,t){for(let n of t){let t=n.resolutionMode?`resolution-mode="${n.resolutionMode===99?`import`:`require`}" `:``,r=n.preserve?`preserve="true" `:``;ja(`/// `),Fa()}}i(`path`,t),i(`types`,n),i(`lib`,r)}function Ji(e){let t=e.statements;ro(e),d(e.statements,so),ot(e);let n=x(t,e=>!Um(e));Ki(e),va(e,t,1,void 0,n===-1?t.length:n),io(e)}function Yi(e){let t=kp(e);!(t&1024)&&e.pos!==e.expression.pos&&qo(e.expression.pos),Ke(e.expression),!(t&2048)&&e.end!==e.expression.end&&Wo(e.expression.end)}function Xi(e){ya(e,e.elements,528,void 0)}function Zi(e,t,n){let r=!!t;for(let i=0;i=n.length||o===0;if(s&&r&32768){c?.(n),l?.(n);return}r&15360&&(Ea(Sre(r)),s&&n&&qo(n.pos,!0)),c?.(n),s?r&1&&!(ae&&(!t||y&&fx(t,y)))?Fa():r&256&&!(r&524288)&&Ma():xa(e,t,n,r,i,a,o,n.hasTrailingComma,n),l?.(n),r&15360&&(s&&n&&Wo(n.end),Ea(Cre(r)))}function xa(e,t,n,r,i,a,o,s,c){let l=(r&262144)==0,u=l,d=Ga(t,n[a],r);d?(Fa(d),u=!1):r&256&&Ma(),r&128&&Ia();let f=Dre(e,i),p,m=!1;for(let s=0;s0?(r&131||(Ia(),m=!0),u&&r&60&&!_w(o.pos)&&qo($E(o).pos,!!(r&512),!0),Fa(e),u=!1):p&&r&512&&Ma()}u?qo($E(o).pos):u=l,A=o.pos,f(o,e,i,s),m&&=(La(),!1),p=o}let h=p?kp(p):0,g=ve||!!(h&2048),_=s&&r&64&&r&16;_&&(p&&!g?ir(28,p.end,Ea,p):Ea(`,`)),p&&(t?t.end:-1)!==p.end&&r&60&&!g&&Wo(_&&c?.end?c.end:p.end),r&128&&La();let v=Ja(t,n[a+o-1],r,c);v?Fa(v):r&2097408&&Ma()}function Sa(e){j.writeLiteral(e)}function Ca(e){j.writeStringLiteral(e)}function wa(e){j.write(e)}function Ta(e,t){j.writeSymbol(e,t)}function Ea(e){j.writePunctuation(e)}function Da(){j.writeTrailingSemicolon(`;`)}function Oa(e){j.writeKeyword(e)}function ka(e){j.writeOperator(e)}function Aa(e){j.writeParameter(e)}function ja(e){j.writeComment(e)}function Ma(){j.writeSpace(` `)}function Na(e){j.writeProperty(e)}function Pa(e){j.nonEscapingWrite?j.nonEscapingWrite(e):j.write(e)}function Fa(e=1){for(let t=0;t0)}function Ia(){j.increaseIndent()}function La(){j.decreaseIndent()}function Ra(e,t,n,r){return se?Ba(e,n,t):ds(r,e,n,t,Ba)}function za(e,t){u&&u(e),t(is(e.kind)),f&&f(e)}function Ba(e,t,n){let r=is(e);return t(r),n<0?n:n+r.length}function Va(e,t,n){if(kp(e)&1)Ma();else if(ae){let r=Qa(e,t,n);r?Fa(r):Ma()}else Fa()}function Ha(e){let t=e.split(/\r\n?|\n/),n=lf(t);for(let e of t){let t=n?e.slice(n):e;t.length&&(Fa(),N(t))}}function Ua(e,t){e?(Ia(),Fa(e)):t&&Ma()}function Wa(e,t){e&&La(),t&&La()}function Ga(e,t,n){if(n&2||ae){if(n&65536)return 1;if(t===void 0)return!e||y&&fx(e,y)?0:1;if(t.pos===A||t.kind===12)return 0;if(y&&e&&!_w(e.pos)&&!kv(t)&&(!t.parent||Bc(t.parent)===Bc(e)))return ae?Ya(n=>Sx(t.pos,e.pos,y,n)):px(e,t,y)?0:1;if(U(t,n))return 1}return n&1?1:0}function Ka(e,t,n){if(n&2||ae){if(e===void 0||t===void 0||t.kind===12)return 0;if(y&&!kv(e)&&!kv(t))return ae&&G(e,t)?Ya(n=>_x(e,t,y,n)):!ae&&W(e,t)?gx(e,t,y)?0:1:n&65536?1:0;if(U(e,n)||U(t,n))return 1}else if(ZE(t))return 1;return n&1?1:0}function Ja(e,t,n,r){if(n&2||ae){if(n&65536)return 1;if(t===void 0)return!e||y&&fx(e,y)?0:1;if(y&&e&&!_w(e.pos)&&!kv(t)&&(!t.parent||t.parent===e)){if(ae){let n=r&&!_w(r.end)?r.end:t.end;return Ya(t=>Cx(n,e.end,y,t))}return mx(e,t,y)?0:1}if(U(t,n))return 1}return n&1&&!(n&131072)?1:0}function Ya(e){H.assert(!!ae);let t=e(!0);return t===0?e(!1):t}function Xa(e,t){let n=ae&&Ga(t,e,0);return n&&Ua(n,!1),!!n}function Za(e,t){let n=ae&&Ja(t,e,0,void 0);n&&Fa(n)}function U(e,t){if(kv(e)){let n=ZE(e);return n===void 0?(t&65536)!=0:n}return(t&65536)!=0}function Qa(e,t,n){return kp(e)&262144?0:(e=eo(e),t=eo(t),n=eo(n),ZE(n)?1:y&&!kv(e)&&!kv(t)&&!kv(n)?ae?Ya(e=>_x(t,n,y,e)):gx(t,n,y)?0:1:0)}function $a(e){return e.statements.length===0&&(!y||gx(e,e,y))}function eo(e){for(;e.kind===218&&kv(e);)e=e.expression;return e}function to(e,t){if(yu(e)||bu(e))return uo(e);if(tO(e)&&e.textSourceNode)return to(e.textSourceNode,t);let n=y,r=!!n&&!!e.parent&&!kv(e);if(Bl(e)){if(!r||Yf(e)!==Bc(n))return Gc(e)}else if(lj(e)){if(!r||Yf(e)!==Bc(n))return DT(e)}else if(H.assertNode(e,su),!r)return e.text;return bp(n,e,t)}function no(t,n=y,r,i){if(t.kind===11&&t.textSourceNode){let e=t.textSourceNode;if(Y(e)||vO(e)||$D(e)||lj(e)){let n=$D(e)?e.text:to(e);return i?`"${Xv(n)}"`:r||kp(t)&16777216?`"${Wv(n)}"`:`"${Kv(n)}"`}else return no(e,Yf(e),r,i)}return Np(t,n,(r?1:0)|(i?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0))}function ro(e){D.push(O),O=0,re.push(ie),!(e&&kp(e)&1048576)&&(k.push(ee),ee=0,T.push(E),E=void 0,te.push(ne))}function io(e){O=D.pop(),ie=re.pop(),!(e&&kp(e)&1048576)&&(ee=k.pop(),E=T.pop(),ne=te.pop())}function ao(e){(!ne||ne===Re(te))&&(ne=new Set),ne.add(e)}function oo(e){(!ie||ie===Re(re))&&(ie=new Set),ie.add(e)}function so(e){if(e)switch(e.kind){case 242:d(e.statements,so);break;case 257:case 255:case 247:case 248:so(e.statement);break;case 246:so(e.thenStatement),so(e.elseStatement);break;case 249:case 251:case 250:so(e.initializer),so(e.statement);break;case 256:so(e.caseBlock);break;case 270:d(e.clauses,so);break;case 297:case 298:d(e.statements,so);break;case 259:so(e.tryBlock),so(e.catchClause),so(e.finallyBlock);break;case 300:so(e.variableDeclaration),so(e.block);break;case 244:so(e.declarationList);break;case 262:d(e.declarations,so);break;case 261:case 170:case 209:case 264:lo(e.name);break;case 263:lo(e.name),kp(e)&1048576&&(d(e.parameters,so),so(e.body));break;case 207:case 208:d(e.elements,so);break;case 273:so(e.importClause);break;case 274:lo(e.name),so(e.namedBindings);break;case 275:lo(e.name);break;case 281:lo(e.name);break;case 276:d(e.elements,so);break;case 277:lo(e.propertyName||e.name);break}}function co(e){if(e)switch(e.kind){case 304:case 305:case 173:case 172:case 175:case 174:case 178:case 179:lo(e.name);break}}function lo(e){e&&(yu(e)||bu(e)?uo(e):Xu(e)&&so(e))}function uo(e){let t=e.emitNode.autoGenerate;if((t.flags&7)==4)return fo(AN(e),vO(e),t.flags,t.prefix,t.suffix);{let n=t.id;return C[n]||(C[n]=Oo(e))}}function fo(e,t,n,r,i){let a=mB(e),o=t?S:b;return o[a]||(o[a]=Do(e,t,n??0,jN(r,uo),jN(i)))}function po(e,t){return ho(e)&&!mo(e,t)&&!w.has(e)}function mo(e,t){let n,r;if(t?(n=ie,r=re):(n=ne,r=te),n?.has(e))return!0;for(let t=r.length-1;t>=0;t--)if(n!==r[t]&&(n=r[t],n?.has(e)))return!0;return!1}function ho(e,t){return y?np(y,e,n):!0}function go(e,t){for(let n=t;n&&L_(n,t);n=n.nextContainer)if(Nd(n)&&n.locals){let t=n.locals.get(Uc(e));if(t&&t.flags&3257279)return!1}return!0}function _o(e){switch(e){case``:return ee;case`#`:return O;default:return E?.get(e)??0}}function vo(e,t){switch(e){case``:ee=t;break;case`#`:O=t;break;default:E??=new Map,E.set(e,t);break}}function yo(e,t,n,r,i){r.length>0&&r.charCodeAt(0)===35&&(r=r.slice(1));let a=NN(n,r,``,i),o=_o(a);if(e&&!(o&e)){let s=NN(n,r,e===268435456?`_i`:`_n`,i);if(po(s,n))return o|=e,n?oo(s):t&&ao(s),vo(a,o),s}for(;;){let e=o&268435455;if(o++,e!==8&&e!==13){let s=e<26?`_`+String.fromCharCode(97+e):`_`+(e-26),c=NN(n,r,s,i);if(po(c,n))return n?oo(c):t&&ao(c),vo(a,o),c}}}function bo(e,t=po,n,r,i,a,o){if(e.length>0&&e.charCodeAt(0)===35&&(e=e.slice(1)),a.length>0&&a.charCodeAt(0)===35&&(a=a.slice(1)),n){let n=NN(i,a,e,o);if(t(n,i))return i?oo(n):r?ao(n):w.add(n),n}e.charCodeAt(e.length-1)!==95&&(e+=`_`);let s=1;for(;;){let n=NN(i,a,e+s,o);if(t(n,i))return i?oo(n):r?ao(n):w.add(n),n;s++}}function xo(e){return bo(e,ho,!0,!1,!1,``,``)}function So(e){let t=to(e.name);return go(t,vt(e,Nd))?t:bo(t,po,!1,!1,!1,``,``)}function Co(e){let t=Yg(e);return bo(tO(t)?Ip(t.text):`module`,po,!1,!1,!1,``,``)}function wo(){return bo(`default`,po,!1,!1,!1,``,``)}function To(){return bo(`class`,po,!1,!1,!1,``,``)}function Eo(e,t,n,r){return Y(e.name)?fo(e.name,t):yo(0,!1,t,n,r)}function Do(e,t,n,r,i){switch(e.kind){case 80:case 81:return bo(to(e),po,!!(n&16),!!(n&8),t,r,i);case 268:case 267:return H.assert(!r&&!i&&!t),So(e);case 273:case 279:return H.assert(!r&&!i&&!t),Co(e);case 263:case 264:{H.assert(!r&&!i&&!t);let a=e.name;return a&&!yu(a)?Do(a,!1,n,r,i):wo()}case 278:return H.assert(!r&&!i&&!t),wo();case 232:return H.assert(!r&&!i&&!t),To();case 175:case 178:case 179:return Eo(e,t,r,i);case 168:return yo(0,!0,t,r,i);default:return yo(0,!1,t,r,i)}}function Oo(e){let t=e.emitNode.autoGenerate,n=jN(t.prefix,uo),r=jN(t.suffix);switch(t.flags&7){case 1:return yo(0,!!(t.flags&8),vO(e),n,r);case 2:return H.assertNode(e,Y),yo(268435456,!!(t.flags&8),!1,n,r);case 3:return bo(Gc(e),t.flags&32?ho:po,!!(t.flags&16),!!(t.flags&8),vO(e),n,r)}return H.fail(`Unsupported GeneratedIdentifierKind: ${H.formatEnum(t.flags&7,Br,!0)}.`)}function ko(e,t){let n=et(2,e,t),r=fe,i=pe,a=me;Ao(t),n(e,t),jo(t,r,i,a)}function Ao(e){let t=kp(e),n=$E(e);Mo(e,t,n.pos,n.end),t&4096&&(ve=!0)}function jo(e,t,n,r){let i=kp(e),a=$E(e);i&4096&&(ve=!1),No(e,i,a.pos,a.end,t,n,r);let o=yD(e);o&&No(e,i,o.pos,o.end,t,n,r)}function Mo(e,t,n,r){xe(),_e=!1;let i=n<0||(t&1024)!=0||e.kind===12,a=r<0||(t&2048)!=0||e.kind===12;(n>0||r>0)&&n!==r&&(i||zo(n,e.kind!==354),(!i||n>=0&&t&1024)&&(fe=n),(!a||r>=0&&t&2048)&&(pe=r,e.kind===262&&(me=r))),d(tD(e),Po),Se()}function No(e,t,n,r,i,a,o){xe();let s=r<0||(t&2048)!=0||e.kind===12;d(iD(e),Fo),(n>0||r>0)&&n!==r&&(fe=i,pe=a,me=o,!s&&e.kind!==354&&Go(r)),Se()}function Po(e){(e.hasLeadingNewline||e.kind===2)&&j.writeLine(),Io(e),e.hasTrailingNewLine||e.kind===2?j.writeLine():j.writeSpace(` `)}function Fo(e){j.isAtStartOfLine()||j.writeSpace(` `),Io(e),e.hasTrailingNewLine&&j.writeLine()}function Io(e){let t=Lo(e);qy(t,e.kind===3?ls(t):void 0,j,0,t.length,h)}function Lo(e){return e.kind===3?`/*${e.text}*/`:`//${e.text}`}function Ro(e,t,n){xe();let{pos:r,end:i}=t,a=kp(e),o=r<0||(a&1024)!=0,s=ve||i<0||(a&2048)!=0;o||es(t),Se(),a&4096&&!ve?(ve=!0,n(e),ve=!1):n(e),xe(),s||(zo(t.end,!0),_e&&!j.isAtStartOfLine()&&j.writeLine()),Se()}function W(e,t){return e=Bc(e),e.parent&&e.parent===Bc(t).parent}function G(e,t){if(t.pos-1&&r.indexOf(t)===i+1}function zo(e,t){_e=!1,t?e===0&&y?.isDeclarationFile?Xo(e,Vo):Xo(e,Uo):e===0&&Xo(e,Bo)}function Bo(e,t,n,r,i){ns(e,t)&&Uo(e,t,n,r,i)}function Vo(e,t,n,r,i){ns(e,t)||Uo(e,t,n,r,i)}function Ho(t,n){return e.onlyPrintJsDocStyle?YN(t,n)||hp(t,n):!0}function Uo(e,t,n,r,i){!y||!Ho(y.text,e)||(_e||=(Gy(We(),j,i,e),!0),cs(e),qy(y.text,We(),j,e,t,h),cs(t),r?j.writeLine():n===3&&j.writeSpace(` `))}function Wo(e){ve||e===-1||zo(e,!0)}function Go(e){Zo(e,Ko)}function Ko(e,t,n,r){!y||!Ho(y.text,e)||(j.isAtStartOfLine()||j.writeSpace(` `),cs(e),qy(y.text,We(),j,e,t,h),cs(t),r&&j.writeLine())}function qo(e,t,n){ve||(xe(),Zo(e,t?Ko:n?Jo:Yo),Se())}function Jo(e,t,n){y&&(cs(e),qy(y.text,We(),j,e,t,h),cs(t),n===2&&j.writeLine())}function Yo(e,t,n,r){y&&(cs(e),qy(y.text,We(),j,e,t,h),cs(t),r?j.writeLine():j.writeSpace(` `))}function Xo(e,t){y&&(fe===-1||e!==fe)&&(Qo(e)?$o(t):Ps(y.text,e,t,e))}function Zo(e,t){y&&(pe===-1||e!==pe&&e!==me)&&Fs(y.text,e,t)}function Qo(e){return ge!==void 0&&ze(ge).nodePos===e}function $o(e){if(!y)return;let t=ze(ge).detachedCommentEndPos;ge.length-1?ge.pop():ge=void 0,Ps(y.text,t,e,t)}function es(e){let t=y&&Ky(y.text,We(),j,ts,e,h,ve);t&&(ge?ge.push(t):ge=[t])}function ts(e,t,n,r,i,a){!y||!Ho(y.text,r)||(cs(r),qy(e,t,n,r,i,a),cs(i))}function ns(e,t){return!!y&&mp(y.text,e,t)}function rs(e,t){let n=et(3,e,t);as(t),n(e,t),os(t)}function as(e){let t=kp(e),n=qE(e),r=n.source||P;e.kind!==354&&!(t&32)&&n.pos>=0&&us(n.source||P,ss(r,n.pos)),t&128&&(se=!0)}function os(e){let t=kp(e),n=qE(e);t&128&&(se=!1),e.kind!==354&&!(t&64)&&n.end>=0&&us(n.source||P,n.end)}function ss(e,t){return e.skipTrivia?e.skipTrivia(t):Es(e.text,t)}function cs(e){if(se||_w(e)||hs(P))return;let{line:t,character:n}=gs(P,e);ce.addMapping(j.getLine(),j.getColumn(),le,t,n,void 0)}function us(e,t){if(e!==P){let n=P,r=le;ps(e),cs(t),ms(n,r)}else cs(t)}function ds(e,t,n,r,i){if(se||e&&rg(e))return i(t,n,r);let a=e&&e.emitNode,o=a&&a.flags||0,s=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t],c=s&&s.source||P;return r=ss(c,s?s.pos:r),!(o&256)&&r>=0&&us(c,r),r=i(t,n,r),s&&(r=s.end),!(o&512)&&r>=0&&us(c,r),r}function ps(t){if(!se){if(P=t,t===ue){le=de;return}hs(t)||(le=ce.addSource(t.fileName),e.inlineSources&&ce.setSourceContent(le,t.text),ue=t,de=le)}}function ms(e,t){P=e,le=t}function hs(e){return qa(e.fileName,`.json`)}}function xre(){let e=[];return e[1024]=[`{`,`}`],e[2048]=[`(`,`)`],e[4096]=[`<`,`>`],e[8192]=[`[`,`]`],e}function Sre(e){return vre[e&15360][0]}function Cre(e){return vre[e&15360][1]}function wre(e,t,n,r){t(e)}function Tre(e,t,n,r){t(e,n.select(r))}function Ere(e,t,n,r){t(e,n)}function Dre(e,t){return e.length===1?wre:typeof t==`object`?Tre:Ere}function GU(e,t,n){if(!e.getDirectories||!e.readDirectory)return;let r=new Map,i=ln(n);return{useCaseSensitiveFileNames:n,fileExists:m,readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&h,getDirectories:_,readDirectory:v,createDirectory:e.createDirectory&&g,writeFile:e.writeFile&&p,addOrDeleteFileOrDirectory:x,addOrDeleteFile:S,clearCache:w,realpath:e.realpath&&y};function a(e){return yo(e,t,i)}function o(e){return r.get(xo(e))}function s(e){let t=o($a(e));return t&&(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(i).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(i).sort()),t)}function l(e){return eo(mo(e))}function u(t,n){if(!e.realpath||xo(a(e.realpath(t)))===n){let i={files:k(e.readDirectory(t,void 0,void 0,[`*.*`]),l)||[],directories:e.getDirectories(t)||[]};return r.set(xo(n),i),i}if(e.directoryExists?.call(e,t))return r.set(n,!1),!1}function d(e,t){t=xo(t);let n=o(t);if(n)return n;try{return u(e,t)}catch{H.assert(!r.has(xo(t)));return}}function f(e,t){return We(e,t,wt,Ht)>=0}function p(t,n,r){let i=s(a(t));return i&&C(i,l(t),!0),e.writeFile(t,n,r)}function m(t){let n=s(a(t));return n&&f(n.sortedAndCanonicalizedFiles,i(l(t)))||e.fileExists(t)}function h(t){let n=a(t);return r.has(xo(n))||e.directoryExists(t)}function g(t){let n=s(a(t));if(n){let e=l(t),r=i(e),a=n.sortedAndCanonicalizedDirectories;ye(a,r,Ht)&&n.directories.push(e)}e.createDirectory(t)}function _(t){let n=d(t,a(t));return n?n.directories.slice():e.getDirectories(t)}function v(r,i,o,s,u){let f=a(r),p=d(r,f),m;if(p!==void 0)return RC(r,i,o,s,n,t,u,h,y);return e.readDirectory(r,i,o,s,u);function h(e){let t=a(e);if(t===f)return p||g(e,t);let n=d(e,t);return n===void 0?ww:n||g(e,t)}function g(t,n){if(m&&n===f)return m;let r={files:k(e.readDirectory(t,void 0,void 0,[`*.*`]),l)||c,directories:e.getDirectories(t)||c};return n===f&&(m=r),r}}function y(t){return e.realpath?e.realpath(t):t}function b(e){Lo($a(e),e=>r.delete(xo(e))?!0:void 0)}function x(t,n){if(o(n)!==void 0){w();return}let r=s(n);if(!r){b(n);return}if(!e.directoryExists){w();return}let a=l(t),c={fileExists:e.fileExists(t),directoryExists:e.directoryExists(t)};return c.directoryExists||f(r.sortedAndCanonicalizedDirectories,i(a))?w():C(r,a,c.fileExists),c}function S(e,t,n){if(n===1)return;let r=s(t);r?C(r,l(e),n===0):b(t)}function C(e,t,n){let r=e.sortedAndCanonicalizedFiles,a=i(t);if(n)ye(r,a,Ht)&&e.files.push(t);else{let t=We(r,a,wt,Ht);if(t>=0){r.splice(t,1);let n=e.files.findIndex(e=>i(e)===a);e.files.splice(n,1)}}}function w(){r.clear()}}var KU=(e=>(e[e.Update=0]=`Update`,e[e.RootNamesAndUpdate=1]=`RootNamesAndUpdate`,e[e.Full=2]=`Full`,e))(KU||{});function qU(e,t,n,r,i){let a=nt(t?.configFile?.extendedSourceFiles||c,i);n.forEach((t,n)=>{a.has(n)||(t.projects.delete(e),t.close())}),a.forEach((t,i)=>{let a=n.get(i);a?a.projects.add(e):n.set(i,{projects:new Set([e]),watcher:r(t,i),close:()=>{let e=n.get(i);!e||e.projects.size!==0||(e.watcher.close(),n.delete(i))}})})}function JU(e,t){t.forEach(t=>{t.projects.delete(e)&&t.close()})}function YU(e,t,n){e.delete(t)&&e.forEach(({extendedResult:r},i)=>{r.extendedSourceFiles?.some(e=>n(e)===t)&&YU(e,i,n)})}function XU(e,t,n){Vx(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:Ax})}function ZU(e,t,n){t?Vx(e,new Map(Object.entries(t)),{createNewValue:r,onDeleteValue:rW,onExistingValue:i}):zx(e,rW);function r(e,t){return{watcher:n(e,t),flags:t}}function i(t,n,i){t.flags!==n&&(t.watcher.close(),e.set(i,r(i,n)))}}function QU({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:a,extraFileExtensions:o,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:u,getScriptKind:d}){let f=gK(n);if(!f)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if(n=f,n===e)return!1;if(Ka(n)&&!(ow(t,i,o)||_()))return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(tL(t,i.configFile.configFileSpecs,po($a(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${t}`),!0;if(!a||i.outFile||i.outDir)return!1;if(OP(n)){if(i.declarationDir)return!1}else if(!Ja(n,GC))return!1;let p=uw(n),m=mt(a)?void 0:WK(a)?a.getProgramOrUndefined():a,h=!m&&!mt(a)?a:void 0;if(g(p+`.ts`)||g(p+`.tsx`))return l(`Project: ${r} Detected output file: ${t}`),!0;return!1;function g(e){return m?!!m.getSourceFileByPath(e):h?h.state.fileInfos.has(e):!!y(a,t=>u(t)===e)}function _(){if(!d)return!1;switch(d(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return $S(i);case 6:return JS(i);case 0:return!1}}}function $U(e,t){return e?e.isEmittedFile(t):!1}var eW=(e=>(e[e.None=0]=`None`,e[e.TriggerOnly=1]=`TriggerOnly`,e[e.Verbose=2]=`Verbose`,e))(eW||{});function tW(e,t,n,r){wa(t===2?n:bt);let i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,(r&1)!=0,i)},a=t===0?void 0:{watchFile:p(`watchFile`),watchDirectory:p(`watchDirectory`)},o=t===2?{watchFile:d,watchDirectory:f}:a||i,s=t===2?u:eq;return{watchFile:c(`watchFile`),watchDirectory:c(`watchDirectory`)};function c(t){return(n,r,i,a,c,u)=>rL(n,t===`watchFile`?a?.excludeFiles:a?.excludeDirectories,l(),e.getCurrentDirectory?.call(e)||``)?s(n,i,a,c,u):o[t].call(void 0,n,r,i,a,c,u)}function l(){return typeof e.useCaseSensitiveFileNames==`boolean`?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function u(e,t,i,a,o){return n(`ExcludeWatcher:: Added:: ${m(e,t,i,a,o,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${m(e,t,i,a,o,r)}`)}}function d(e,t,i,o,s,c){n(`FileWatcher:: Added:: ${m(e,i,o,s,c,r)}`);let l=a.watchFile(e,t,i,o,s,c);return{close:()=>{n(`FileWatcher:: Close:: ${m(e,i,o,s,c,r)}`),l.close()}}}function f(e,t,i,o,s,c){let l=`DirectoryWatcher:: Added:: ${m(e,i,o,s,c,r)}`;n(l);let u=sr(),d=a.watchDirectory(e,t,i,o,s,c);return n(`Elapsed:: ${sr()-u}ms ${l}`),{close:()=>{let t=`DirectoryWatcher:: Close:: ${m(e,i,o,s,c,r)}`;n(t);let a=sr();d.close(),n(`Elapsed:: ${sr()-a}ms ${t}`)}}}function p(e){return(t,a,o,s,c,l)=>i[e].call(void 0,t,(...i)=>{let u=`${e===`watchFile`?`FileWatcher`:`DirectoryWatcher`}:: Triggered with ${i[0]} ${i[1]===void 0?``:i[1]}:: ${m(t,o,s,c,l,r)}`;n(u);let d=sr();a.call(void 0,...i),n(`Elapsed:: ${sr()-d}ms ${u}`)},o,s,c,l)}function m(e,t,n,r,i,a){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${a?a(r,i):i===void 0?r:`${r} ${i}`}`}}function nW(e){let t=e?.fallbackPolling;return{watchFile:t===void 0?1:t}}function rW(e){e.watcher.close()}function iW(e,t,n=`tsconfig.json`){return Lo(e,e=>{let r=lo(e,n);return t(r)?r:void 0})}function aW(e,t){let n=$a(t);return mo(Va(e)?e:lo(n,e))}function oW(e,t,n){let r;return d(e,e=>{let i=fo(e,t);if(i.pop(),!r){r=i;return}let a=Math.min(r.length,i.length);for(let e=0;e{let a;try{yr(`beforeIORead`),a=e(n),yr(`afterIORead`),br(`I/O Read`,`beforeIORead`,`afterIORead`)}catch(e){i&&i(e.message),a=``}return a===void 0?void 0:gP(n,a,r,t)}}function lW(e,t,n){return(r,i,a,o)=>{try{yr(`beforeIOWrite`),wy(r,i,a,e,t,n),yr(`afterIOWrite`),br(`I/O Write`,`beforeIOWrite`,`afterIOWrite`)}catch(e){o&&o(e.message)}}}function uW(e,t,n=Na){let r=new Map,i=ln(n.useCaseSensitiveFileNames);function a(e){return r.has(e)?!0:(l.directoryExists||n.directoryExists)(e)?(r.set(e,!0),!0):!1}function o(){return $a(mo(n.getExecutingFilePath()))}let s=ax(e),c=n.realpath&&(e=>n.realpath(e)),l={getSourceFile:cW(e=>l.readFile(e),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>lo(o(),ic(e)),writeFile:lW((e,t,r)=>n.writeFile(e,t,r),e=>(l.createDirectory||n.createDirectory)(e),e=>a(e)),getCurrentDirectory:kt(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>s,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+s),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):``,getDirectories:e=>n.getDirectories(e),realpath:c,readDirectory:(e,t,r,i,a)=>n.readDirectory(e,t,r,i,a),createDirectory:e=>n.createDirectory(e),createHash:ut(n,n.createHash)};return l}function dW(e,t,n){let r=e.readFile,i=e.fileExists,a=e.directoryExists,o=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,u=new Map,d=new Map,f=e=>{let n=t(e),r=c.get(n);return r===void 0?p(n,e):r===!1?void 0:r},p=(t,n)=>{let i=r.call(e,n);return c.set(t,i===void 0?!1:i),i};e.readFile=n=>{let i=t(n),a=c.get(i);return a===void 0?!qa(n,`.json`)&&!gU(n)?r.call(e,n):p(i,n):a===!1?void 0:a};let m=n?(e,r,i,a)=>{let o=t(e),s=typeof r==`object`?r.impliedNodeFormat:void 0,c=d.get(s),l=c?.get(o);if(l)return l;let u=n(e,r,i,a);return u&&(OP(e)||qa(e,`.json`))&&d.set(s,(c||new Map).set(o,u)),u}:void 0;return e.fileExists=n=>{let r=t(n),a=l.get(r);if(a!==void 0)return a;let o=i.call(e,n);return l.set(r,!!o),o},s&&(e.writeFile=(n,r,...i)=>{let a=t(n);l.delete(a);let o=c.get(a);o!==void 0&&o!==r?(c.delete(a),d.forEach(e=>e.delete(a))):m&&d.forEach(e=>{let t=e.get(a);t&&t.text!==r&&e.delete(a)}),s.call(e,n,r,...i)}),a&&(e.directoryExists=n=>{let r=t(n),i=u.get(r);if(i!==void 0)return i;let o=a.call(e,n);return u.set(r,!!o),o},o&&(e.createDirectory=n=>{let r=t(n);u.delete(r),o.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:a,originalCreateDirectory:o,originalWriteFile:s,getSourceFileWithCache:m,readFileWithCache:f}}function fW(e,t,n){let r;return r=Ee(r,e.getConfigFileParsingDiagnostics()),r=Ee(r,e.getOptionsDiagnostics(n)),r=Ee(r,e.getSyntacticDiagnostics(t,n)),r=Ee(r,e.getGlobalDiagnostics(n)),r=Ee(r,e.getSemanticDiagnostics(t,n)),YS(e.getCompilerOptions())&&(r=Ee(r,e.getDeclarationDiagnostics(t,n))),nc(r||c)}function pW(e,t){let n=``;for(let r of e)n+=mW(r,t);return n}function mW(e,t){let n=`${Oi(e)} TS${e.code}: ${DW(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:r,character:i}=gs(e.file,e.start),a=e.file.fileName;return`${Po(a,t.getCurrentDirectory(),e=>t.getCanonicalFileName(e))}(${r+1},${i+1}): `+n}return n}var hW=(e=>(e.Grey=`\x1B[90m`,e.Red=`\x1B[91m`,e.Yellow=`\x1B[93m`,e.Blue=`\x1B[94m`,e.Cyan=`\x1B[96m`,e))(hW||{}),gW=`\x1B[7m`,_W=` `,vW=`\x1B[0m`,yW=`...`,bW=` `,xW=` `;function SW(e){switch(e){case 1:return`\x1B[91m`;case 0:return`\x1B[93m`;case 2:return H.fail(`Should never get an Info diagnostic on the command line.`);case 3:return`\x1B[94m`}}function CW(e,t){return t+e+vW}function wW(e,t,n,r,i,a){let{line:o,character:s}=gs(e,t),{line:c,character:l}=gs(e,t+n),u=gs(e,e.text.length).line,d=c-o>=4,f=(c+1+``).length;d&&(f=Math.max(yW.length,f));let p=``;for(let t=o;t<=c;t++){p+=a.getNewLine(),d&&o+1n.getCanonicalFileName(e)):e.fileName,s=``;return s+=r(o,`\x1B[96m`),s+=`:`,s+=r(`${i+1}`,`\x1B[93m`),s+=`:`,s+=r(`${a+1}`,`\x1B[93m`),s}function EW(e,t){let n=``;for(let r of e){if(r.file){let{file:e,start:i}=r;n+=TW(e,i,t),n+=` - `}if(n+=CW(Oi(r),SW(r.category)),n+=CW(` TS${r.code}: `,`\x1B[90m`),n+=DW(r.messageText,t.getNewLine()),r.file&&r.code!==G.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=wW(r.file,r.start,r.length,``,SW(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(let{file:e,start:i,length:a,messageText:o}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=bW+TW(e,i,t),n+=wW(e,i,a,xW,`\x1B[96m`,t)),n+=t.getNewLine(),n+=xW+DW(o,t.getNewLine())}n+=t.getNewLine()}return n}function DW(e,t,n=0){if(gt(e))return e;if(e===void 0)return``;let r=``;if(n){r+=t;for(let e=0;ejW(t,e,n)};function RW(e,t,n,r,i){return{nameAndMode:LW,resolve:(a,o)=>QL(a,e,n,r,i,t,o)}}function zW(e){return gt(e)?e:e.fileName}var BW={getName:zW,getMode:(e,t,n)=>OW(e,t&&aG(t,n))};function VW(e,t,n,r,i){return{nameAndMode:BW,resolve:(a,o)=>jL(a,e,n,r,t,i,o)}}function HW(e,t,n,r,i,a,o,s){if(e.length===0)return c;let l=[],u=new Map,d=s(t,n,r,a,o);for(let t of e){let e=d.nameAndMode.getName(t),a=d.nameAndMode.getMode(t,i,n?.commandLine.options||r),o=UL(e,a),s=u.get(o);s||u.set(o,s=d.resolve(e,a)),l.push(s)}return l}var UW=`__inferred type names__.ts`;function WW(e,t,n){return lo(e.configFilePath?$a(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function GW(e){let t=e.split(`.`),n=t[1],r=2;for(;t[r]&&t[r]!==`d`;)n+=(r===2?`/`:`-`)+t[r],r++;return`@typescript/lib-`+n}function KW(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function qW(e){return e.pos!==void 0}function JW(e,t){let n=H.checkDefined(e.getSourceFileByPath(t.file)),{kind:r,index:i}=t,a,o,s;switch(r){case 3:let t=pG(n,i);if(s=e.getResolvedModuleFromModuleSpecifier(t,n)?.resolvedModule?.packageId,t.pos===-1)return{file:n,packageId:s,text:t.text};a=Es(n.text,t.pos),o=t.end;break;case 4:({pos:a,end:o}=n.referencedFiles[i]);break;case 5:({pos:a,end:o}=n.typeReferenceDirectives[i]),s=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(n.typeReferenceDirectives[i],n)?.resolvedTypeReferenceDirective?.packageId;break;case 7:({pos:a,end:o}=n.libReferenceDirectives[i]);break;default:return H.assertNever(r)}return{file:n,pos:a,end:o,packageId:s}}function YW(e,t,n,r,i,a,o,s,c,l){if(!e||s?.()||!xe(e.getRootFileNames(),t))return!1;let u;if(!xe(e.getProjectReferences(),l,g)||e.getSourceFiles().some(m))return!1;let f=e.getMissingFilePaths();if(f&&Mf(f,i))return!1;let p=e.getCompilerOptions();if(!Rx(p,n)||e.resolvedLibReferences&&Mf(e.resolvedLibReferences,(e,t)=>o(t)))return!1;if(p.configFile&&n.configFile)return p.configFile.text===n.configFile.text;return!0;function m(e){return!h(e)||a(e.path)}function h(e){return e.version===r(e.resolvedPath,e.fileName)}function g(t,n,r){return Lf(t,n)&&_(e.getResolvedProjectReferences()[r],t)}function _(e,t){if(e){if(C(u,e))return!0;let n=c(uG(t));return!n||e.commandLine.options.configFile!==n.options.configFile||!xe(e.commandLine.fileNames,n.fileNames)?!1:((u||=[]).push(e),!d(e.references,(t,n)=>!_(t,e.commandLine.projectReferences[n])))}return!c(uG(t))}}function XW(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function ZW(e,t,n,r){let i=QW(e,t,n,r);return typeof i==`object`?i.impliedNodeFormat:i}function QW(e,t,n,r){let i=VS(r),a=3<=i&&i<=99||fR(e);return Ja(e,[`.d.mts`,`.mts`,`.mjs`])?99:Ja(e,[`.d.cts`,`.cts`,`.cjs`])?1:a&&Ja(e,[`.d.ts`,`.ts`,`.tsx`,`.js`,`.jsx`])?o():void 0;function o(){let i=TR(t,n,r),a=[];i.failedLookupLocations=a,i.affectingLocations=a;let o=ER($a(e),i);return{impliedNodeFormat:o?.contents.packageJsonContent.type===`module`?99:1,packageJsonLocations:a,packageJsonScope:o}}}var $W=new Set([G.Cannot_redeclare_block_scoped_variable_0.code,G.A_module_cannot_have_multiple_default_exports.code,G.Another_export_default_is_here.code,G.The_first_export_default_is_here.code,G.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,G.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,G.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,G.constructor_is_a_reserved_word.code,G.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,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.code,G.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,G.Invalid_use_of_0_in_strict_mode.code,G.A_label_is_not_allowed_here.code,G.with_statements_are_not_allowed_in_strict_mode.code,G.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,G.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,G.A_class_declaration_without_the_default_modifier_must_have_a_name.code,G.A_class_member_cannot_have_the_0_keyword.code,G.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,G.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,G.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,G.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,G.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,G.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,G.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,G.A_destructuring_declaration_must_have_an_initializer.code,G.A_get_accessor_cannot_have_parameters.code,G.A_rest_element_cannot_contain_a_binding_pattern.code,G.A_rest_element_cannot_have_a_property_name.code,G.A_rest_element_cannot_have_an_initializer.code,G.A_rest_element_must_be_last_in_a_destructuring_pattern.code,G.A_rest_parameter_cannot_have_an_initializer.code,G.A_rest_parameter_must_be_last_in_a_parameter_list.code,G.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,G.A_return_statement_cannot_be_used_inside_a_class_static_block.code,G.A_set_accessor_cannot_have_rest_parameter.code,G.A_set_accessor_must_have_exactly_one_parameter.code,G.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,G.An_export_declaration_cannot_have_modifiers.code,G.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,G.An_import_declaration_cannot_have_modifiers.code,G.An_object_member_cannot_be_declared_optional.code,G.Argument_of_dynamic_import_cannot_be_spread_element.code,G.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,G.Cannot_redeclare_identifier_0_in_catch_clause.code,G.Catch_clause_variable_cannot_have_an_initializer.code,G.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,G.Classes_can_only_extend_a_single_class.code,G.Classes_may_not_have_a_field_named_constructor.code,G.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,G.Duplicate_label_0.code,G.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,G.for_await_loops_cannot_be_used_inside_a_class_static_block.code,G.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,G.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,G.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,G.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,G.Jump_target_cannot_cross_function_boundary.code,G.Line_terminator_not_permitted_before_arrow.code,G.Modifiers_cannot_appear_here.code,G.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,G.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,G.Private_identifiers_are_not_allowed_outside_class_bodies.code,G.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,G.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,G.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,G.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,G.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,G.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,G.Trailing_comma_not_allowed.code,G.Variable_declaration_list_cannot_be_empty.code,G._0_and_1_operations_cannot_be_mixed_without_parentheses.code,G._0_expected.code,G._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,G._0_list_cannot_be_empty.code,G._0_modifier_already_seen.code,G._0_modifier_cannot_appear_on_a_constructor_declaration.code,G._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,G._0_modifier_cannot_appear_on_a_parameter.code,G._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,G._0_modifier_cannot_be_used_here.code,G._0_modifier_must_precede_1_modifier.code,G._0_declarations_can_only_be_declared_inside_a_block.code,G._0_declarations_must_be_initialized.code,G.extends_clause_already_seen.code,G.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,G.Class_constructor_may_not_be_a_generator.code,G.Class_constructor_may_not_be_an_accessor.code,G.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,G.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,G.Private_field_0_must_be_declared_in_an_enclosing_class.code,G.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function eG(e,t){return e?Af(e.getCompilerOptions(),t,nF):!1}function Ore(e,t,n,r,i,a){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:a}}function tG(e,t,n,r,i){var o,s,l,u,f,p,m,h,g,_;let v=mt(e)?Ore(e,t,n,r,i):e,{rootNames:b,options:S,configFileParsingDiagnostics:w,projectReferences:T,typeScriptVersion:D,host:O}=v,{oldProgram:k}=v;v=void 0,e=void 0;for(let e of oF)if(qe(S,e.name)&&typeof S[e.name]==`string`)throw Error(`${e.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);let ee=kt(()=>wr(`ignoreDeprecations`,G.Invalid_value_for_ignoreDeprecations)),te,ie,ae,A,j,N,oe,se,ce,P=mG(Or),le,ue,fe,pe,me,he,ge,_e,ve,ye=typeof S.maxNodeModuleJsDepth==`number`?S.maxNodeModuleJsDepth:0,be=0,Se=new Map,Ce=new Map;(o=Ar)==null||o.push(Ar.Phase.Program,`createProgram`,{configFilePath:S.configFilePath,rootDir:S.rootDir},!0),yr(`beforeProgram`);let we=O||sW(S),Te=lG(we),Ee=S.noLib,De=kt(()=>we.getDefaultLibFileName(S)),Oe=we.getDefaultLibLocation?we.getDefaultLibLocation():$a(De()),ke=!1,je=we.getCurrentDirectory(),Me=ZC(S),Ne=QC(S,Me),Pe=new Map,Fe,Ie,Le,Re,ze=we.hasInvalidatedResolutions||xt;we.resolveModuleNameLiterals?(Re=we.resolveModuleNameLiterals.bind(we),Le=we.getModuleResolutionCache?.call(we)):we.resolveModuleNames?(Re=(e,t,n,r,i,a)=>we.resolveModuleNames(e.map(IW),t,a?.map(IW),n,r,i).map(e=>e?e.extension===void 0?{resolvedModule:{...e,extension:bw(e.resolvedFileName)}}:{resolvedModule:e}:FW),Le=we.getModuleResolutionCache?.call(we)):(Le=qL(je,sr,S),Re=(e,t,n,r,i)=>HW(e,t,n,r,i,we,Le,RW));let Be;if(we.resolveTypeReferenceDirectiveReferences)Be=we.resolveTypeReferenceDirectiveReferences.bind(we);else if(we.resolveTypeReferenceDirectives)Be=(e,t,n,r,i)=>we.resolveTypeReferenceDirectives(e.map(zW),t,n,r,i?.impliedNodeFormat).map(e=>({resolvedTypeReferenceDirective:e}));else{let e=JL(je,sr,void 0,Le?.getPackageJsonInfoCache(),Le?.optionsToRedirectsKey);Be=(t,n,r,i,a)=>HW(t,n,r,i,a,we,e,VW)}let Ve=we.hasInvalidatedLibResolutions||xt,He;if(we.resolveLibrary)He=we.resolveLibrary.bind(we);else{let e=qL(je,sr,S,Le?.getPackageJsonInfoCache());He=(t,n,r)=>XL(t,n,r,we,e)}let Ue=new Map,We=new Map,L=R(),Ge,Ke=new Map,Je=new Map,Ye=we.useCaseSensitiveFileNames()?new Map:void 0,Xe,Ze,Qe,$e,et=!!we.useSourceOfProjectReferenceRedirect?.call(we)&&!S.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:tt,fileExists:nt,directoryExists:rt}=kre({compilerHost:we,getSymlinkCache:Fr,useSourceOfProjectReferenceRedirect:et,toPath:Ft,getResolvedProjectReferences:qt,getRedirectFromOutput:Xn,forEachResolvedProjectReference:Yn}),it=we.readFile.bind(we);(s=Ar)==null||s.push(Ar.Phase.Program,`shouldProgramCreateNewSourceFiles`,{hasOldProgram:!!k});let at=eG(k,S);(l=Ar)==null||l.pop();let ot;if((u=Ar)==null||u.push(Ar.Phase.Program,`tryReuseStructureFromOldProgram`,{}),ot=Ut(),(f=Ar)==null||f.pop(),ot!==2){if(te=[],ie=[],T&&(Xe||=T.map(ur),b.length&&Xe?.forEach((e,t)=>{if(!e)return;let n=e.commandLine.options.outFile;if(et){if(n||BS(e.commandLine.options)===0)for(let n of e.commandLine.fileNames)zn(n,{kind:1,index:t})}else if(n)zn(pw(n,`.d.ts`),{kind:2,index:t});else if(BS(e.commandLine.options)===0){let n=kt(()=>jU(e.commandLine,!we.useCaseSensitiveFileNames()));for(let r of e.commandLine.fileNames)!OP(r)&&!qa(r,`.json`)&&zn(CU(r,e.commandLine,!we.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})),(p=Ar)==null||p.push(Ar.Phase.Program,`processRootFiles`,{count:b.length}),d(b,(e,t)=>kn(e,!1,!1,{kind:0,index:t})),(m=Ar)==null||m.pop(),le??=b.length?FL(S,we):c,ue=WL(),le.length){(h=Ar)==null||h.push(Ar.Phase.Program,`processTypeReferences`,{count:le.length});let e=lo(S.configFilePath?$a(S.configFilePath):je,UW),t=Bt(le,e);for(let e=0;e{kn(ir(e),!0,!1,{kind:6,index:t})})}ae=Ae(te,jt).concat(ie),te=void 0,ie=void 0,oe=void 0}if(k&&we.onReleaseOldSourceFile){let e=k.getSourceFiles();for(let t of e){let e=nn(t.resolvedPath);(at||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&we.onReleaseOldSourceFile(t,k.getCompilerOptions(),!!nn(t.path),e)}we.getParsedCommandLine||k.forEachResolvedProjectReference(e=>{Qn(e.sourceFile.path)||we.onReleaseOldSourceFile(e.sourceFile,k.getCompilerOptions(),!1,void 0)})}k&&we.onReleaseParsedCommandLine&&tE(k.getProjectReferences(),k.getResolvedProjectReferences(),(e,t,n)=>{let r=uG(t?.commandLine.projectReferences[n]||k.getProjectReferences()[n]);Ze?.has(Ft(r))||we.onReleaseParsedCommandLine(r,e,k.getCompilerOptions())}),k=void 0,pe=void 0,he=void 0,_e=void 0;let st={getRootFileNames:()=>b,getSourceFile:tn,getSourceFileByPath:nn,getSourceFiles:()=>ae,getMissingFilePaths:()=>Je,getModuleResolutionCache:()=>Le,getFilesByNameMap:()=>Ke,getCompilerOptions:()=>S,getSyntacticDiagnostics:an,getOptionsDiagnostics:Tn,getGlobalDiagnostics:Dn,getSemanticDiagnostics:on,getCachedSemanticDiagnostics:sn,getSuggestionDiagnostics:bn,getDeclarationDiagnostics:un,getBindAndCheckDiagnostics:cn,getProgramDiagnostics:ln,getTypeChecker:Zt,getClassifiableNames:Rt,getCommonSourceDirectory:Lt,emit:Qt,getCurrentDirectory:()=>je,getNodeCount:()=>Zt().getNodeCount(),getIdentifierCount:()=>Zt().getIdentifierCount(),getSymbolCount:()=>Zt().getSymbolCount(),getTypeCount:()=>Zt().getTypeCount(),getInstantiationCount:()=>Zt().getInstantiationCount(),getRelationCacheSizes:()=>Zt().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>P.getFileProcessingDiagnostics(),getAutomaticTypeDirectiveNames:()=>le,getAutomaticTypeDirectiveResolutions:()=>ue,isSourceFileFromExternalLibrary:Yt,isSourceFileDefaultLibrary:Xt,getModeForUsageLocation:Ir,getEmitSyntaxForUsageLocation:Lr,getModeForResolutionAtIndex:Rr,getSourceFileFromReference:In,getLibFileFromReference:Pn,sourceFileToPackageName:We,redirectTargetsMap:L,usesUriStyleNodeCoreModules:Ge,resolvedModules:me,resolvedTypeReferenceDirectiveNames:ge,resolvedLibReferences:fe,getProgramDiagnosticsContainer:()=>P,getResolvedModule:ct,getResolvedModuleFromModuleSpecifier:lt,getResolvedTypeReferenceDirective:dt,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:z,forEachResolvedModule:ft,forEachResolvedTypeReferenceDirective:pt,getCurrentPackagesMap:()=>ve,typesPackageExists:yt,packageBundlesTypes:St,isEmittedFile:Nr,getConfigFileParsingDiagnostics:On,getProjectReferences:Jt,getResolvedProjectReferences:qt,getRedirectFromSourceFile:Jn,getResolvedProjectReferenceByPath:Qn,forEachResolvedProjectReference:Yn,isSourceOfProjectReferenceRedirect:Zn,getRedirectFromOutput:Xn,getCompilerOptionsForFile:tr,getDefaultResolutionModeForFile:zr,getEmitModuleFormatOfFile:Vr,getImpliedNodeFormatForEmit:Br,shouldTransformImportCall:Hr,emitBuildInfo:Kt,fileExists:nt,readFile:it,directoryExists:rt,getSymlinkCache:Fr,realpath:we.realpath?.bind(we),useCaseSensitiveFileNames:()=>we.useCaseSensitiveFileNames(),getCanonicalFileName:sr,getFileIncludeReasons:()=>P.getFileReasons(),structureIsReused:ot,writeFile:Gt,getGlobalTypingsCacheLocation:ut(we,we.getGlobalTypingsCacheLocation)};return tt(),ke||dr(),yr(`afterProgram`),br(`Program`,`beforeProgram`,`afterProgram`),(_=Ar)==null||_.pop(),st;function ct(e,t,n){return(me?.get(e.path))?.get(t,n)}function lt(e,t){return t??=Yf(e),H.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),ct(t,e.text,Ir(t,e))}function dt(e,t,n){return(ge?.get(e.path))?.get(t,n)}function z(e,t){return dt(t,e.fileName,Ur(e,t))}function ft(e,t){ht(me,e,t)}function pt(e,t){ht(ge,e,t)}function ht(e,t,n){var r;n?(r=e?.get(n.path))==null||r.forEach((e,r,i)=>t(e,r,i,n.path)):e?.forEach((e,n)=>e.forEach((e,r,i)=>t(e,r,i,n)))}function _t(){return ve||(ve=new Map,ft(({resolvedModule:e})=>{e?.packageId&&ve.set(e.packageId.name,e.extension===`.d.ts`||!!ve.get(e.packageId.name))}),ve)}function yt(e){return _t().has(ZR(e))}function St(e){return!!_t().get(e)}function Ct(e){e.resolutionDiagnostics?.length&&P.addFileProcessingDiagnostic({kind:2,diagnostics:e.resolutionDiagnostics})}function Tt(e,t,n,r){if(we.resolveModuleNameLiterals||!we.resolveModuleNames)return Ct(n);if(!Le||tc(t))return;let i=$a(po(e.originalFileName,je)),a=At(e),o=Le.getFromNonRelativeNameCache(t,r,i,a);o&&Ct(o)}function Et(e,t,n){var r,i;let a=po(t.originalFileName,je),o=At(t);(r=Ar)==null||r.push(Ar.Phase.Program,`resolveModuleNamesWorker`,{containingFileName:a}),yr(`beforeResolveModule`);let s=Re(e,a,o,S,t,n);return yr(`afterResolveModule`),br(`ResolveModule`,`beforeResolveModule`,`afterResolveModule`),(i=Ar)==null||i.pop(),s}function Ot(e,t,n){var r,i;let a=gt(t)?void 0:t,o=gt(t)?t:po(t.originalFileName,je),s=a&&At(a);(r=Ar)==null||r.push(Ar.Phase.Program,`resolveTypeReferenceDirectiveNamesWorker`,{containingFileName:o}),yr(`beforeResolveTypeReference`);let c=Be(e,o,s,S,a,n);return yr(`afterResolveTypeReference`),br(`ResolveTypeReference`,`beforeResolveTypeReference`,`afterResolveTypeReference`),(i=Ar)==null||i.pop(),c}function At(e){let t=Jn(e.originalFileName);if(t||!OP(e.originalFileName))return t?.resolvedRef;let n=Xn(e.path)?.resolvedRef;if(n)return n;if(!we.realpath||!S.preserveSymlinks||!e.originalFileName.includes(dR))return;let r=Ft(we.realpath(e.originalFileName));return r===e.path?void 0:Xn(r)?.resolvedRef}function jt(e,t){return It(Mt(e),Mt(t))}function Mt(e){if(Ao(Oe,e.fileName,!1)){let t=eo(e.fileName);if(t===`lib.d.ts`||t===`lib.es6.d.ts`)return 0;let n=en(mn(t,`lib.`),`.d.ts`),r=WP.indexOf(n);if(r!==-1)return r+1}return WP.length+2}function Ft(e){return yo(e,je,sr)}function Lt(){let e=P.getCommonSourceDirectory();if(e!==void 0)return e;let t=E(ae,e=>yy(e,st));return e=AU(S,()=>M(t,e=>e.isDeclarationFile?void 0:e.fileName),je,sr,e=>lr(t,e)),P.setCommonSourceDirectory(e),e}function Rt(){var e;if(!N){Zt(),N=new Set;for(let t of ae)(e=t.classifiableNames)==null||e.forEach(e=>N.add(e))}return N}function zt(e,t){return Vt({entries:e,containingFile:t,containingSourceFile:t,redirectedReference:At(t),nameAndModeGetter:LW,resolutionWorker:Et,getResolutionFromOldProgram:(e,n)=>k?.getResolvedModule(t,e,n),getResolved:zf,canReuseResolutionsInFile:()=>t===k?.getSourceFile(t.fileName)&&!ze(t.path),resolveToOwnAmbientModule:!0})}function Bt(e,t){let n=gt(t)?void 0:t;return Vt({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:n&&At(n),nameAndModeGetter:BW,resolutionWorker:Ot,getResolutionFromOldProgram:(e,t)=>n?k?.getResolvedTypeReferenceDirective(n,e,t):(k?.getAutomaticTypeDirectiveResolutions())?.get(e,t),getResolved:Bf,canReuseResolutionsInFile:()=>n?n===k?.getSourceFile(n.fileName)&&!ze(n.path):!ze(Ft(t))})}function Vt({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:r,nameAndModeGetter:i,resolutionWorker:a,getResolutionFromOldProgram:o,getResolved:s,canReuseResolutionsInFile:l,resolveToOwnAmbientModule:u}){if(!e.length)return c;if(ot===0&&(!u||!n.ambientModuleNames.length))return a(e,t,void 0);let d,f,p,m,h=l();for(let c=0;cp[f[t]]=e),p):g}function Ht(){return!tE(k.getProjectReferences(),k.getResolvedProjectReferences(),(e,t,n)=>{let r=(t?t.commandLine.projectReferences:T)[n],i=ur(r);return e?!i||i.sourceFile!==e.sourceFile||!xe(e.commandLine.fileNames,i.commandLine.fileNames):i!==void 0},(e,t)=>!xe(e,t?Qn(t.sourceFile.path).commandLine.projectReferences:T,Lf))}function Ut(){if(!k)return 0;let e=k.getCompilerOptions();if(Of(e,S)||!xe(k.getRootFileNames(),b)||!Ht())return 0;T&&(Xe=T.map(ur));let t=[],n=[];if(ot=2,Mf(k.getMissingFilePaths(),e=>we.fileExists(e)))return 0;let r=k.getSourceFiles(),i;(e=>{e[e.Exists=0]=`Exists`,e[e.Modified=1]=`Modified`})(i||={});let a=new Map;for(let e of r){let r=Un(e.fileName,Le,we,S),i=we.getSourceFileByPath?we.getSourceFileByPath(e.fileName,e.resolvedPath,r,void 0,at):we.getSourceFile(e.fileName,r,void 0,at);if(!i)return 0;i.packageJsonLocations=r.packageJsonLocations?.length?r.packageJsonLocations:void 0,i.packageJsonScope=r.packageJsonScope,H.assert(!i.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let o;if(e.redirectInfo){if(i!==e.redirectInfo.unredirected)return 0;o=!1,i=e}else if(k.redirectTargetsMap.has(e.path)){if(i!==e)return 0;o=!1}else o=i!==e;i.path=e.path,i.originalFileName=e.originalFileName,i.resolvedPath=e.resolvedPath,i.fileName=e.fileName;let s=k.sourceFileToPackageName.get(e.path);if(s!==void 0){let e=a.get(s),t=o?1:0;if(e!==void 0&&t===1||e===1)return 0;a.set(s,t)}o?(e.impliedNodeFormat===i.impliedNodeFormat&&xe(e.libReferenceDirectives,i.libReferenceDirectives,An)&&e.hasNoDefaultLib===i.hasNoDefaultLib&&xe(e.referencedFiles,i.referencedFiles,An)?(Nn(i),xe(e.imports,i.imports,jn)&&xe(e.moduleAugmentations,i.moduleAugmentations,jn)&&(e.flags&12582912)==(i.flags&12582912)&&xe(e.typeReferenceDirectives,i.typeReferenceDirectives,An)||(ot=1)):ot=1,n.push(i)):ze(e.path)&&(ot=1,n.push(i)),t.push(i)}if(ot!==2)return ot;for(let e of n){let t=fG(e),n=zt(t,e);(he??=new Map).set(e.path,n);let r=tr(e);Kf(t,n,t=>k.getResolvedModule(e,t.text,MW(e,t,r)),Rf)&&(ot=1);let i=e.typeReferenceDirectives,a=Bt(i,e);(_e??=new Map).set(e.path,a),Kf(i,a,t=>k.getResolvedTypeReferenceDirective(e,zW(t),Ur(t,e)),Gf)&&(ot=1)}if(ot!==2)return ot;if(kf(e,S)||k.resolvedLibReferences&&Mf(k.resolvedLibReferences,(e,t)=>ar(t).actual!==e.actual))return 1;if(we.hasChangedAutomaticTypeDirectiveNames){if(we.hasChangedAutomaticTypeDirectiveNames())return 1}else if(le=FL(S,we),!xe(k.getAutomaticTypeDirectiveNames(),le))return 1;Je=k.getMissingFilePaths(),H.assert(t.length===k.getSourceFiles().length);for(let e of t)Ke.set(e.path,e);k.getFilesByNameMap().forEach((e,t)=>{if(!e){Ke.set(t,e);return}if(e.path===t){k.isSourceFileFromExternalLibrary(e)&&Ce.set(e.path,!0);return}Ke.set(t,Ke.get(e.path))});let o=e.configFile&&e.configFile===S.configFile||!e.configFile&&!S.configFile&&!Af(e,S,ZP);return P.reuseStateFromOldProgram(k.getProgramDiagnosticsContainer(),o),ke=o,ae=t,le=k.getAutomaticTypeDirectiveNames(),ue=k.getAutomaticTypeDirectiveResolutions(),We=k.sourceFileToPackageName,L=k.redirectTargetsMap,Ge=k.usesUriStyleNodeCoreModules,me=k.resolvedModules,ge=k.resolvedTypeReferenceDirectiveNames,fe=k.resolvedLibReferences,ve=k.getCurrentPackagesMap(),2}function Wt(e){return{getCanonicalFileName:sr,getCommonSourceDirectory:st.getCommonSourceDirectory,getCompilerOptions:st.getCompilerOptions,getCurrentDirectory:()=>je,getSourceFile:st.getSourceFile,getSourceFileByPath:st.getSourceFileByPath,getSourceFiles:st.getSourceFiles,isSourceFileFromExternalLibrary:Yt,getRedirectFromSourceFile:Jn,isSourceOfProjectReferenceRedirect:Zn,getSymlinkCache:Fr,writeFile:e||Gt,isEmitBlocked:B,shouldTransformImportCall:Hr,getEmitModuleFormatOfFile:Vr,getDefaultResolutionModeForFile:zr,getModeForResolutionAtIndex:Rr,readFile:e=>we.readFile(e),fileExists:e=>{let t=Ft(e);return nn(t)?!0:Je.has(t)?!1:we.fileExists(e)},realpath:ut(we,we.realpath),useCaseSensitiveFileNames:()=>we.useCaseSensitiveFileNames(),getBuildInfo:()=>st.getBuildInfo?.call(st),getSourceFileFromReference:(e,t)=>st.getSourceFileFromReference(e,t),redirectTargetsMap:L,getFileIncludeReasons:st.getFileIncludeReasons,createHash:ut(we,we.createHash),getModuleResolutionCache:()=>st.getModuleResolutionCache(),trace:ut(we,we.trace),getGlobalTypingsCacheLocation:st.getGlobalTypingsCacheLocation}}function Gt(e,t,n,r,i,a){we.writeFile(e,t,n,r,i,a)}function Kt(e){var t,n;(t=Ar)==null||t.push(Ar.Phase.Emit,`emitBuildInfo`,{},!0),yr(`beforeEmit`);let r=IU(zU,Wt(e),void 0,lU,!1,!0);return yr(`afterEmit`),br(`Emit`,`beforeEmit`,`afterEmit`),(n=Ar)==null||n.pop(),r}function qt(){return Xe}function Jt(){return T}function Yt(e){return!!Ce.get(e.path)}function Xt(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(S.noLib)return!1;let t=we.useCaseSensitiveFileNames()?Pt:Nt;return S.lib?F(S.lib,n=>{let r=fe.get(n);return!!r&&t(e.fileName,r.actual)}):t(e.fileName,De())}function Zt(){return j||=_B(st)}function Qt(e,t,n,r,i,a,o){var s,c;(s=Ar)==null||s.push(Ar.Phase.Emit,`emit`,{path:e?.path},!0);let l=fn(()=>$t(st,e,t,n,r,i,a,o));return(c=Ar)==null||c.pop(),l}function B(e){return Pe.has(Ft(e))}function $t(e,t,n,r,i,a,o,s){if(!o){let i=sG(e,t,n,r);if(i)return i}let c=Zt(),l=c.getEmitResolver(S.outFile?void 0:t,r,FU(i,o));yr(`beforeEmit`);let u=c.runWithCancellationToken(r,()=>IU(l,Wt(n),t,uU(S,a,i),i,!1,o,s));return yr(`afterEmit`),br(`Emit`,`beforeEmit`,`afterEmit`),u}function tn(e){return nn(Ft(e))}function nn(e){return Ke.get(e)||void 0}function rn(e,t,n){return nc(e?t(e,n):re(st.getSourceFiles(),e=>(n&&n.throwIfCancellationRequested(),t(e,n))))}function an(e,t){return rn(e,dn,t)}function on(e,t,n){return rn(e,(e,t)=>hn(e,t,n),t)}function sn(e){return se?.get(e.path)}function cn(e,t){return gn(e,t,void 0)}function ln(e){if(Aw(e,S,st))return c;let t=P.getCombinedDiagnostics(st).getDiagnostics(e.fileName);return e.commentDirectives?.length?yn(e,e.commentDirectives,t).diagnostics:t}function un(e,t){return rn(e,wn,t)}function dn(e){return tg(e)?(e.additionalSyntacticDiagnostics||=V(e),de(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function fn(e){try{return e()}catch(e){throw e instanceof Gr&&(j=void 0),e}}function hn(e,t,n){return de(cG(gn(e,t,n),S),ln(e))}function gn(e,t,n){if(n)return _n(e,t,n);let r=se?.get(e.path);return r||(se??=new Map).set(e.path,r=_n(e,t)),r}function _n(e,t,n){return fn(()=>{if(Aw(e,S,st))return c;let r=Zt();H.assert(!!e.bindDiagnostics);let i=e.scriptKind===1||e.scriptKind===2,a=Zf(e,S.checkJs),o=i&&Cw(e,S),s=e.bindDiagnostics,l=r.getDiagnostics(e,t,n);return a&&(s=E(s,e=>$W.has(e.code)),l=E(l,e=>$W.has(e.code))),vn(e,!a,!!n,s,l,o?e.jsDocDiagnostics:void 0)})}function vn(e,t,n,...r){let i=ne(r);if(!t||!e.commentDirectives?.length)return i;let{diagnostics:a,directives:o}=yn(e,e.commentDirectives,i);if(n)return a;for(let t of o.getUnusedExpectations())a.push(Cm(e,t.range,G.Unused_ts_expect_error_directive));return a}function yn(e,t,n){let r=gp(e,t);return{diagnostics:n.filter(e=>xn(e,r)===-1),directives:r}}function bn(e,t){return fn(()=>Zt().getSuggestionDiagnostics(e,t))}function xn(e,t){let{file:n,start:r}=e;if(!n)return-1;let i=fs(n),a=ps(i,r).line-1;for(;a>=0;){if(t.markUsed(a))return a;let e=n.text.slice(i[a],i[a+1]).trim();if(e!==``&&!/^\s*\/\/.*$/.test(e))return-1;a--}return-1}function V(e){return fn(()=>{let t=[];return n(e,e),mP(e,n,r),t;function n(e,n){switch(n.kind){case 170:case 173:case 175:if(n.questionToken===e)return t.push(o(e,G.The_0_modifier_can_only_be_used_in_TypeScript_files,`?`)),`skip`;case 174:case 177:case 178:case 179:case 219:case 263:case 220:case 261:if(n.type===e)return t.push(o(e,G.Type_annotations_can_only_be_used_in_TypeScript_files)),`skip`}switch(e.kind){case 274:if(e.isTypeOnly)return t.push(o(n,G._0_declarations_can_only_be_used_in_TypeScript_files,`import type`)),`skip`;break;case 279:if(e.isTypeOnly)return t.push(o(e,G._0_declarations_can_only_be_used_in_TypeScript_files,`export type`)),`skip`;break;case 277:case 282:if(e.isTypeOnly)return t.push(o(e,G._0_declarations_can_only_be_used_in_TypeScript_files,HA(e)?`import...type`:`export...type`)),`skip`;break;case 272:return t.push(o(e,G.import_can_only_be_used_in_TypeScript_files)),`skip`;case 278:if(e.isExportEquals)return t.push(o(e,G.export_can_only_be_used_in_TypeScript_files)),`skip`;break;case 299:if(e.token===119)return t.push(o(e,G.implements_clauses_can_only_be_used_in_TypeScript_files)),`skip`;break;case 265:let r=is(120);return H.assertIsDefined(r),t.push(o(e,G._0_declarations_can_only_be_used_in_TypeScript_files,r)),`skip`;case 268:let i=e.flags&32?is(145):is(144);return H.assertIsDefined(i),t.push(o(e,G._0_declarations_can_only_be_used_in_TypeScript_files,i)),`skip`;case 266:return t.push(o(e,G.Type_aliases_can_only_be_used_in_TypeScript_files)),`skip`;case 177:case 175:case 263:return e.body?void 0:(t.push(o(e,G.Signature_declarations_can_only_be_used_in_TypeScript_files)),`skip`);case 267:let a=H.checkDefined(is(94));return t.push(o(e,G._0_declarations_can_only_be_used_in_TypeScript_files,a)),`skip`;case 236:return t.push(o(e,G.Non_null_assertions_can_only_be_used_in_TypeScript_files)),`skip`;case 235:return t.push(o(e.type,G.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),`skip`;case 239:return t.push(o(e.type,G.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),`skip`;case 217:H.fail()}}function r(e,n){if(sN(n)){let e=y(n.modifiers,IO);e&&t.push(o(e,G.Decorators_are_not_valid_here))}else if(HN(n)&&n.modifiers){let e=x(n.modifiers,IO);if(e>=0){if(FO(n)&&!S.experimentalDecorators)t.push(o(n.modifiers[e],G.Decorators_are_not_valid_here));else if(CA(n)){let r=x(n.modifiers,yO);if(r>=0){let i=x(n.modifiers,bO);if(e>r&&i>=0&&e=0&&e=0&&t.push(Dw(o(n.modifiers[i],G.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),o(n.modifiers[e],G.Decorator_used_before_export_here)))}}}}}switch(n.kind){case 264:case 232:case 175:case 177:case 178:case 179:case 219:case 263:case 220:if(e===n.typeParameters)return t.push(a(e,G.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),`skip`;case 244:if(e===n.modifiers)return i(n.modifiers,n.kind===244),`skip`;break;case 173:if(e===n.modifiers){for(let n of e)Du(n)&&n.kind!==126&&n.kind!==129&&t.push(o(n,G.The_0_modifier_can_only_be_used_in_TypeScript_files,is(n.kind)));return`skip`}break;case 170:if(e===n.modifiers&&F(e,Du))return t.push(a(e,G.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),`skip`;break;case 214:case 215:case 234:case 286:case 287:case 216:if(e===n.typeArguments)return t.push(a(e,G.Type_arguments_can_only_be_used_in_TypeScript_files)),`skip`;break}}function i(e,n){for(let r of e)switch(r.kind){case 87:if(n)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:t.push(o(r,G.The_0_modifier_can_only_be_used_in_TypeScript_files,is(r.kind)));break;case 126:case 95:case 90:case 129:}}function a(t,n,...r){let i=t.pos;return vS(e,i,t.end-i,n,...r)}function o(t,n,...r){return gm(e,t,n,...r)}})}function Sn(e,t){let n=ce?.get(e.path);return n||(ce??=new Map).set(e.path,n=Cn(e,t)),n}function Cn(e,t){return fn(()=>{let n=Zt().getEmitResolver(e,t);return tU(Wt(bt),n,e)||c})}function wn(e,t){return e.isDeclarationFile?c:Sn(e,t)}function Tn(){return nc(de(P.getCombinedDiagnostics(st).getGlobalDiagnostics(),En()))}function En(){if(!S.configFile)return c;let e=P.getCombinedDiagnostics(st).getDiagnostics(S.configFile.fileName);return Yn(t=>{e=de(e,P.getCombinedDiagnostics(st).getDiagnostics(t.sourceFile.fileName))}),e}function Dn(){return b.length?nc(Zt().getGlobalDiagnostics().slice()):c}function On(){return w||c}function kn(e,t,n,r){Rn(mo(e),t,n,void 0,r)}function An(e,t){return e.fileName===t.fileName}function jn(e,t){return e.kind===80?t.kind===80&&e.escapedText===t.escapedText:t.kind===11&&e.text===t.text}function Mn(e,t){let n=J.createStringLiteral(e),r=J.createImportDeclaration(void 0,void 0,n);return KE(r,2),Zw(n,r),Zw(r,t),n.flags&=-17,r.flags&=-17,n}function Nn(e){if(e.imports)return;let t=tg(e),n=yP(e),r,i,a;if(t||!e.isDeclarationFile&&(US(S)||yP(e))){S.importHelpers&&(r=[Mn(_f,e)]);let t=gC(hC(S,e),S);t&&(r||=[]).push(Mn(t,e))}for(let t of e.statements)o(t,!1);(e.flags&4194304||t)&&XT(e,!0,!0,(e,t)=>{Qw(e,!1),r=I(r,t)}),e.imports=r||c,e.moduleAugmentations=i||c,e.ambientModuleNames=a||c;return;function o(t,s){if(om(t)){let n=Yg(t);n&&tO(n)&&n.text&&(!s||!tc(n.text))&&(Qw(t,!1),r=I(r,n),!Ge&&be===0&&!e.isDeclarationFile&&(pn(n.text,`node:`)&&!JT.has(n.text)?Ge=!0:Ge===void 0&&qT.has(n.text)&&(Ge=!1)))}else if(DA(t)&&zp(t)&&(s||Qy(t,128)||e.isDeclarationFile)){t.name.parent=t;let r=gv(t.name);if(n||s&&!tc(r))(i||=[]).push(t.name);else if(!s){e.isDeclarationFile&&(a||=[]).push(r);let n=t.body;if(n)for(let e of n.statements)o(e,!0)}}}}function Pn(e){let t=$T(e),n=t&&fe?.get(t)?.actual;return n===void 0?void 0:tn(n)}function In(e,t){return Ln(aW(t.fileName,e.fileName),tn)}function Ln(e,t,n,r){if(Ka(e)){let i=we.getCanonicalFileName(e);if(!S.allowNonTsExtensions&&!d(ne(Ne),e=>qa(i,e))){n&&($C(i)?n(G.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(G.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,`'`+ne(Me).join(`', '`)+`'`));return}let a=t(e);if(n)if(a)KW(r)&&i===we.getCanonicalFileName(nn(r.file).fileName)&&n(G.A_file_cannot_have_a_reference_to_itself);else{let t=Jn(e);t?.outputDts?n(G.Output_file_0_has_not_been_built_from_source_file_1,t.outputDts,e):n(G.File_0_not_found,e)}return a}else{let r=S.allowNonTsExtensions&&t(e);if(r)return r;if(n&&S.allowNonTsExtensions){n(G.File_0_not_found,e);return}let i=d(Me[0],n=>t(e+n));return n&&!i&&n(G.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,`'`+ne(Me).join(`', '`)+`'`),i}}function Rn(e,t,n,r,i){Ln(e,e=>Hn(e,t,n,i,r),(e,...t)=>gr(void 0,i,e,t),i)}function zn(e,t){return Rn(e,!1,!1,void 0,t)}function Bn(e,t,n){!KW(n)&&F(P.getFileReasons().get(t.path),KW)?gr(t,n,G.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):gr(t,n,G.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function Vn(e,t,n,r,i,a,o){let s=qN.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return s.fileName=n,s.path=r,s.resolvedPath=i,s.originalFileName=a,s.packageJsonLocations=o.packageJsonLocations?.length?o.packageJsonLocations:void 0,s.packageJsonScope=o.packageJsonScope,Ce.set(r,be>0),s}function Hn(e,t,n,r,i){var a,o;(a=Ar)==null||a.push(Ar.Phase.Program,`findSourceFile`,{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:Kr[r.kind]});let s=Wn(e,t,n,r,i);return(o=Ar)==null||o.pop(),s}function Un(e,t,n,r){let i=QW(po(e,je),t?.getPackageJsonInfoCache(),n,r),a=zS(r),o=PS(r);return typeof i==`object`?{...i,languageVersion:a,setExternalModuleIndicator:o,jsDocParsingMode:n.jsDocParsingMode}:{languageVersion:a,impliedNodeFormat:i,setExternalModuleIndicator:o,jsDocParsingMode:n.jsDocParsingMode}}function Wn(e,t,n,r,i){let a=Ft(e);if(et){let o=Xn(a);if(!o&&we.realpath&&S.preserveSymlinks&&OP(e)&&e.includes(dR)){let t=Ft(we.realpath(e));t!==a&&(o=Xn(t))}if(o?.source){let s=Hn(o.source,t,n,r,i);return s&&Kn(s,a,e,void 0),s}}let o=e;if(Ke.has(a)){let n=Ke.get(a),i=Gn(n||void 0,r,!0);if(n&&i&&S.forceConsistentCasingInFileNames!==!1){let t=n.fileName;Ft(t)!==Ft(e)&&(e=Jn(e)?.outputDts||e),_o(t,je)!==_o(e,je)&&Bn(e,n,r)}return n&&Ce.get(n.path)&&be===0?(Ce.set(n.path,!1),S.noResolve||($n(n,t),er(n)),S.noLib||or(n),Se.set(n.path,!1),cr(n)):n&&Se.get(n.path)&&begr(void 0,r,G.Cannot_read_file_0_Colon_1,[e,t]),at);if(i){let t=Wf(i),n=Ue.get(t);if(n){let t=Vn(n,l,e,a,Ft(e),o,c);return L.add(n.path,e),Kn(t,a,e,s),Gn(t,r,!1),We.set(a,Uf(i)),ie.push(t),t}else l&&(Ue.set(t,l),We.set(a,Uf(i)))}if(Kn(l,a,e,s),l){if(Ce.set(a,be>0),l.fileName=e,l.path=a,l.resolvedPath=Ft(e),l.originalFileName=o,l.packageJsonLocations=c.packageJsonLocations?.length?c.packageJsonLocations:void 0,l.packageJsonScope=c.packageJsonScope,Gn(l,r,!1),we.useCaseSensitiveFileNames()){let t=Dt(a),n=Ye.get(t);n?Bn(e,n,r):Ye.set(t,l)}Ee||=l.hasNoDefaultLib&&!n,S.noResolve||($n(l,t),er(l)),S.noLib||or(l),cr(l),t?te.push(l):ie.push(l),(oe??=new Set).add(l.path)}return l}function Gn(e,t,n){return e&&(!n||!KW(t)||!oe?.has(t.file))?(P.getFileReasons().add(e.path,t),!0):!1}function Kn(e,t,n,r){r?(qn(n,r,e),qn(n,t,e||!1)):qn(n,t,e)}function qn(e,t,n){Ke.set(t,n),n===void 0?Je.set(t,e):Je.delete(t)}function Jn(e){return Qe?.get(Ft(e))}function Yn(e){return eE(Xe,e)}function Xn(e){return $e?.get(e)}function Zn(e){return et&&!!Jn(e)}function Qn(e){if(Ze)return Ze.get(e)||void 0}function $n(e,t){d(e.referencedFiles,(n,r)=>{Rn(aW(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})})}function er(e){let t=e.typeReferenceDirectives;if(!t.length)return;let n=_e?.get(e.path)||Bt(t,e),r=WL();(ge??=new Map).set(e.path,r);for(let i=0;i{let r=$T(t);r?kn(ir(r),!0,!0,{kind:7,file:e.path,index:n}):P.addFileProcessingDiagnostic({kind:0,reason:{kind:7,file:e.path,index:n}})})}function sr(e){return we.getCanonicalFileName(e)}function cr(e){if(Nn(e),e.imports.length||e.moduleAugmentations.length){let t=fG(e),n=he?.get(e.path)||zt(t,e);H.assert(n.length===t.length);let r=tr(e),i=WL();(me??=new Map).set(e.path,i);for(let a=0;aye,m=f&&!dG(r,o,e)&&!r.noResolve&&ajU(o.commandLine,!we.useCaseSensitiveFileNames()));i.fileNames.forEach(n=>{let r=Ft(n),a;!OP(n)&&!qa(n,`.json`)&&(i.options.outFile?a=e:(a=CU(n,o.commandLine,!we.useCaseSensitiveFileNames(),t),$e.set(Ft(a),{resolvedRef:o,source:n}))),Qe.set(r,{resolvedRef:o,outputDts:a})})}return i.projectReferences&&(o.references=i.projectReferences.map(ur)),o}function dr(){S.strictPropertyInitialization&&!sC(S,`strictNullChecks`)&&Cr(G.Option_0_cannot_be_specified_without_specifying_option_1,`strictPropertyInitialization`,`strictNullChecks`),S.exactOptionalPropertyTypes&&!sC(S,`strictNullChecks`)&&Cr(G.Option_0_cannot_be_specified_without_specifying_option_1,`exactOptionalPropertyTypes`,`strictNullChecks`),(S.isolatedModules||S.verbatimModuleSyntax)&&S.outFile&&Cr(G.Option_0_cannot_be_specified_with_option_1,`outFile`,S.verbatimModuleSyntax?`verbatimModuleSyntax`:`isolatedModules`),S.isolatedDeclarations&&($S(S)&&Cr(G.Option_0_cannot_be_specified_with_option_1,`allowJs`,`isolatedDeclarations`),YS(S)||Cr(G.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,`isolatedDeclarations`,`declaration`,`composite`)),S.inlineSourceMap&&(S.sourceMap&&Cr(G.Option_0_cannot_be_specified_with_option_1,`sourceMap`,`inlineSourceMap`),S.mapRoot&&Cr(G.Option_0_cannot_be_specified_with_option_1,`mapRoot`,`inlineSourceMap`)),S.composite&&(S.declaration===!1&&Cr(G.Composite_projects_may_not_disable_declaration_emit,`declaration`),S.incremental===!1&&Cr(G.Composite_projects_may_not_disable_incremental_compilation,`declaration`));let e=S.outFile;if(!S.tsBuildInfoFile&&S.incremental&&!e&&!S.configFilePath&&P.addConfigDiagnostic(bS(G.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),mr(),_r(),S.composite){let e=new Set(b.map(Ft));for(let t of ae)yy(t,st)&&!e.has(t.path)&&P.addLazyConfigDiagnostic(t,G.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,t.fileName,S.configFilePath||``)}if(S.paths){for(let e in S.paths)if(qe(S.paths,e))if(_C(e)||xr(!0,e,G.Pattern_0_can_have_at_most_one_Asterisk_character,e),mt(S.paths[e])){let t=S.paths[e].length;t===0&&xr(!1,e,G.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;nyP(e)&&!e.isDeclarationFile);if(S.isolatedModules||S.verbatimModuleSyntax)S.module===0&&t<2&&S.isolatedModules&&Cr(G.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,`isolatedModules`,`target`),S.preserveConstEnums===!1&&Cr(G.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,S.verbatimModuleSyntax?`verbatimModuleSyntax`:`isolatedModules`,`preserveConstEnums`);else if(n&&t<2&&S.module===0){let e=Om(n,typeof n.externalModuleIndicator==`boolean`?n:n.externalModuleIndicator);P.addConfigDiagnostic(vS(n,e.start,e.length,G.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!S.emitDeclarationOnly){if(S.module&&!(S.module===2||S.module===4))Cr(G.Only_amd_and_system_modules_are_supported_alongside_0,`outFile`,`module`);else if(S.module===void 0&&n){let e=Om(n,typeof n.externalModuleIndicator==`boolean`?n:n.externalModuleIndicator);P.addConfigDiagnostic(vS(n,e.start,e.length,G.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,`outFile`))}}if(JS(S)&&(VS(S)===1?Cr(G.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,`resolveJsonModule`):nC(S)||Cr(G.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,`resolveJsonModule`,`module`)),S.outDir||S.rootDir||S.sourceRoot||S.mapRoot||YS(S)&&S.declarationDir){let e=Lt();S.outDir&&e===``&&ae.some(e=>Qa(e.fileName)>1)&&Cr(G.Cannot_find_the_common_subdirectory_path_for_the_input_files,`outDir`)}S.checkJs&&!$S(S)&&Cr(G.Option_0_cannot_be_specified_without_specifying_option_1,`checkJs`,`allowJs`),S.emitDeclarationOnly&&(YS(S)||Cr(G.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,`emitDeclarationOnly`,`declaration`,`composite`)),S.emitDecoratorMetadata&&!S.experimentalDecorators&&Cr(G.Option_0_cannot_be_specified_without_specifying_option_1,`emitDecoratorMetadata`,`experimentalDecorators`),S.jsxFactory?(S.reactNamespace&&Cr(G.Option_0_cannot_be_specified_with_option_1,`reactNamespace`,`jsxFactory`),(S.jsx===4||S.jsx===5)&&Cr(G.Option_0_cannot_be_specified_when_option_jsx_is_1,`jsxFactory`,HP.get(``+S.jsx)),_P(S.jsxFactory,t)||wr(`jsxFactory`,G.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,S.jsxFactory)):S.reactNamespace&&!Ws(S.reactNamespace,t)&&wr(`reactNamespace`,G.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,S.reactNamespace),S.jsxFragmentFactory&&(S.jsxFactory||Cr(G.Option_0_cannot_be_specified_without_specifying_option_1,`jsxFragmentFactory`,`jsxFactory`),(S.jsx===4||S.jsx===5)&&Cr(G.Option_0_cannot_be_specified_when_option_jsx_is_1,`jsxFragmentFactory`,HP.get(``+S.jsx)),_P(S.jsxFragmentFactory,t)||wr(`jsxFragmentFactory`,G.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,S.jsxFragmentFactory)),S.reactNamespace&&(S.jsx===4||S.jsx===5)&&Cr(G.Option_0_cannot_be_specified_when_option_jsx_is_1,`reactNamespace`,HP.get(``+S.jsx)),S.jsxImportSource&&S.jsx===2&&Cr(G.Option_0_cannot_be_specified_when_option_jsx_is_1,`jsxImportSource`,HP.get(``+S.jsx));let r=BS(S);S.verbatimModuleSyntax&&(r===2||r===3||r===4)&&Cr(G.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,`verbatimModuleSyntax`),S.allowImportingTsExtensions&&!(S.noEmit||S.emitDeclarationOnly||S.rewriteRelativeImportExtensions)&&wr(`allowImportingTsExtensions`,G.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let i=VS(S);if(S.resolvePackageJsonExports&&!aC(i)&&Cr(G.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,`resolvePackageJsonExports`),S.resolvePackageJsonImports&&!aC(i)&&Cr(G.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,`resolvePackageJsonImports`),S.customConditions&&!aC(i)&&Cr(G.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,`customConditions`),i===100&&!tC(r)&&r!==200&&wr(`moduleResolution`,G.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,`bundler`),Pi[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){let e=Pi[r],t=ki[e]?e:`Node16`;wr(`moduleResolution`,G.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,t,e)}else if(ki[i]&&3<=i&&i<=99&&!(100<=r&&r<=199)){let e=ki[i];wr(`module`,G.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!S.noEmit&&!S.suppressOutputPathCheck){let e=Wt(),t=new Set;_U(e,e=>{S.emitDeclarationOnly||a(e.jsFilePath,t),a(e.declarationFilePath,t)})}function a(e,t){if(e){let n=Ft(e);if(Ke.has(n)){let t;S.configFilePath||(t=SS(void 0,G.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)),t=SS(t,G.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Mr(e,xS(t))}let r=we.useCaseSensitiveFileNames()?n:Dt(n);t.has(r)?Mr(e,bS(G.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}function fr(){let e=S.ignoreDeprecations;if(e){if(e===`5.0`)return new Fn(e);ee()}return Fn.zero}function pr(e,t,n,r){let i=new Fn(e),o=new Fn(t),s=new Fn(D||a),c=fr(),l=o.compareTo(s)!==1,u=!l&&c.compareTo(i)===-1;(l||u)&&r((r,i,a)=>{l?i===void 0?n(r,i,a,G.Option_0_has_been_removed_Please_remove_it_from_your_configuration,r):n(r,i,a,G.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,r,i):i===void 0?n(r,i,a,G.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,r,t,e):n(r,i,a,G.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,r,i,t,e)})}function mr(){function e(e,t,n,r,...i){if(n){let a=SS(SS(void 0,G.Use_0_instead,n),r,...i);Er(!t,e,void 0,a)}else Er(!t,e,void 0,r,...i)}pr(`5.0`,`5.5`,e,e=>{S.target===0&&e(`target`,`ES3`),S.noImplicitUseStrict&&e(`noImplicitUseStrict`),S.keyofStringsOnly&&e(`keyofStringsOnly`),S.suppressExcessPropertyErrors&&e(`suppressExcessPropertyErrors`),S.suppressImplicitAnyIndexErrors&&e(`suppressImplicitAnyIndexErrors`),S.noStrictGenericChecks&&e(`noStrictGenericChecks`),S.charset&&e(`charset`),S.out&&e(`out`,void 0,`outFile`),S.importsNotUsedAsValues&&e(`importsNotUsedAsValues`,void 0,`verbatimModuleSyntax`),S.preserveValueImports&&e(`preserveValueImports`,void 0,`verbatimModuleSyntax`)})}function hr(e,t,n){function r(e,r,i,a,...o){Tr(t,n,a,...o)}pr(`5.0`,`5.5`,r,t=>{e.prepend&&t(`prepend`)})}function gr(e,t,n,r){P.addFileProcessingDiagnostic({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function _r(){let e=S.suppressOutputPathCheck?void 0:vU(S);tE(T,Xe,(t,n,r)=>{let i=(n?n.commandLine.projectReferences:T)[r],a=n&&n.sourceFile;if(hr(i,a,r),!t){Tr(a,r,G.File_0_not_found,i.path);return}let o=t.commandLine.options;(!o.composite||o.noEmit)&&(n?n.commandLine.fileNames:b).length&&(o.composite||Tr(a,r,G.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),o.noEmit&&Tr(a,r,G.Referenced_project_0_may_not_disable_emit,i.path)),!n&&e&&e===vU(o)&&(Tr(a,r,G.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),Pe.set(Ft(e),!0))})}function vr(e,t,n,...r){let i=!0;Sr(a=>{Sk(a.initializer)&&gh(a.initializer,e,e=>{let a=e.initializer;xk(a)&&a.elements.length>t&&(P.addConfigDiagnostic(gm(S.configFile,a.elements[t],n,...r)),i=!1)})}),i&&Dr(n,...r)}function xr(e,t,n,...r){let i=!0;Sr(a=>{Sk(a.initializer)&&jr(a.initializer,e,t,void 0,n,...r)&&(i=!1)}),i&&Dr(n,...r)}function Sr(e){return aE(Or(),`paths`,e)}function Cr(e,t,n,r){Er(!0,t,n,e,t,n,r)}function wr(e,t,...n){Er(!1,e,void 0,t,...n)}function Tr(e,t,n,...r){let i=yh(e||S.configFile,`references`,e=>xk(e.initializer)?e.initializer:void 0);i&&i.elements.length>t?P.addConfigDiagnostic(gm(e||S.configFile,i.elements[t],n,...r)):P.addConfigDiagnostic(bS(n,...r))}function Er(e,t,n,r,...i){let a=Or();(!a||!jr(a,e,t,n,r,...i))&&Dr(r,...i)}function Dr(e,...t){let n=kr();n?`messageText`in e?P.addConfigDiagnostic(_m(S.configFile,n.name,e)):P.addConfigDiagnostic(gm(S.configFile,n.name,e,...t)):`messageText`in e?P.addConfigDiagnostic(xS(e)):P.addConfigDiagnostic(bS(e,...t))}function Or(){if(Fe===void 0){let e=kr();Fe=e&&vt(e.initializer,Sk)||!1}return Fe||void 0}function kr(){return Ie===void 0&&(Ie=gh(_h(S.configFile),`compilerOptions`,wt)||!1),Ie||void 0}function jr(e,t,n,r,i,...a){let o=!1;return gh(e,n,e=>{`messageText`in i?P.addConfigDiagnostic(_m(S.configFile,t?e.name:e.initializer,i)):P.addConfigDiagnostic(gm(S.configFile,t?e.name:e.initializer,i,...a)),o=!0},r),o}function Mr(e,t){Pe.set(Ft(e),!0),P.addConfigDiagnostic(t)}function Nr(e){if(S.noEmit)return!1;let t=Ft(e);if(nn(t))return!1;let n=S.outFile;if(n)return Pr(t,n)||Pr(t,uw(n)+`.d.ts`);if(S.declarationDir&&Ao(S.declarationDir,t,je,!we.useCaseSensitiveFileNames()))return!0;if(S.outDir)return Ao(S.outDir,t,je,!we.useCaseSensitiveFileNames());if(Ja(t,GC)||OP(t)){let e=uw(t);return!!nn(e+`.ts`)||!!nn(e+`.tsx`)}return!1}function Pr(e,t){return ko(e,t,je,!we.useCaseSensitiveFileNames())===0}function Fr(){return we.getSymlinkCache?we.getSymlinkCache():(A||=vC(je,sr),ae&&!A.hasProcessedResolutions()&&A.setSymlinksFromResolutions(ft,pt,ue),A)}function Ir(e,t){return MW(e,t,tr(e))}function Lr(e,t){return NW(e,t,tr(e))}function Rr(e,t){return Ir(e,pG(e,t))}function zr(e){return aG(e,tr(e))}function Br(e){return iG(e,tr(e))}function Vr(e){return rG(e,tr(e))}function Hr(e){return nG(e,tr(e))}function Ur(e,t){return e.resolutionMode||zr(t)}}function nG(e,t){let n=BS(t);return 100<=n&&n<=199||n===200?!1:rG(e,t)<5}function rG(e,t){return iG(e,t)??BS(t)}function iG(e,t){let n=BS(t);if(100<=n&&n<=199)return e.impliedNodeFormat;if(e.impliedNodeFormat===1&&(e.packageJsonScope?.contents.packageJsonContent.type===`commonjs`||Ja(e.fileName,[`.cjs`,`.cts`])))return 1;if(e.impliedNodeFormat===99&&(e.packageJsonScope?.contents.packageJsonContent.type===`module`||Ja(e.fileName,[`.mjs`,`.mts`])))return 99}function aG(e,t){return FS(t)?iG(e,t):void 0}function kre(e){let t,n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,a=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:bt,fileExists:c};e.compilerHost.fileExists=c;let o;return r&&(o=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(d(n),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(n=>{let r=n.commandLine.options.outFile;if(r)t.add($a(e.toPath(r)));else{let r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}})),f(n,!1)):!1),i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.call(e.compilerHost,t):[]),a&&(e.compilerHost.realpath=t=>e.getSymlinkCache().getSymlinkedFiles()?.get(e.toPath(t))||a.call(e.compilerHost,t)),{onProgramCreateComplete:s,fileExists:c,directoryExists:o};function s(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i}function c(t){return n.call(e.compilerHost,t)?!0:!e.getResolvedProjectReferences()||!OP(t)?!1:f(t,!0)}function l(t){let r=e.getRedirectFromOutput(e.toPath(t));return r===void 0?void 0:gt(r.source)?n.call(e.compilerHost,r.source):!0}function u(n){let r=e.toPath(n),i=`${r}${Fa}`;return Nf(t,e=>r===e||pn(e,i)||pn(r,`${e}/`))}function d(t){if(!e.getResolvedProjectReferences()||tT(t)||!a||!t.includes(dR))return;let n=e.getSymlinkCache(),r=xo(e.toPath(t));if(n.getSymlinkedDirectories()?.has(r))return;let i=mo(a.call(e.compilerHost,t)),o;if(i===t||(o=xo(e.toPath(i)))===r){n.setSymlinkedDirectory(r,!1);return}n.setSymlinkedDirectory(t,{real:xo(i),realPath:o})}function f(t,n){let r=n?l:u,i=r(t);if(i!==void 0)return i;let a=e.getSymlinkCache(),o=a.getSymlinkedDirectories();if(!o)return!1;let s=e.toPath(t);return s.includes(dR)?n&&a.getSymlinkedFiles()?.has(s)?!0:m(o.entries(),([i,o])=>{if(!o||!pn(s,i))return;let c=r(s.replace(i,o.realPath));if(n&&c){let n=po(t,e.compilerHost.getCurrentDirectory());a.setSymlinkedFile(s,`${o.real}${n.replace(new RegExp(i,`i`),``)}`)}return c})||!1:!1}}var oG={diagnostics:c,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function sG(e,t,n,r){let i=e.getCompilerOptions();if(i.noEmit)return t?oG:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(a.length===0&&YS(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),!a.length)return;let o;if(!t){let t=e.emitBuildInfo(n,r);t.diagnostics&&(a=[...a,...t.diagnostics]),o=t.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:o,emitSkipped:!0}}function cG(e,t){return E(e,e=>!e.skippedOn||!t[e.skippedOn])}function lG(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory(e,n,r,i,a){return H.assertIsDefined(t.readDirectory,`'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'`),t.readDirectory(e,n,r,i,a)},readFile:e=>t.readFile(e),directoryExists:ut(t,t.directoryExists),getDirectories:ut(t,t.getDirectories),realpath:ut(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Ct,trace:e.trace?t=>e.trace(t):void 0}}function uG(e){return yq(e.path)}function dG(e,{extension:t},{isDeclarationFile:n}){switch(t){case`.ts`:case`.d.ts`:case`.mts`:case`.d.mts`:case`.cts`:case`.d.cts`:return;case`.tsx`:return r();case`.jsx`:return r()||i();case`.js`:case`.mjs`:case`.cjs`:return i();case`.json`:return a();default:return o()}function r(){return e.jsx?void 0:G.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return $S(e)||!sC(e,`noImplicitAny`)?void 0:G.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function a(){return JS(e)?void 0:G.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function o(){return n||e.allowArbitraryExtensions?void 0:G.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function fG({imports:e,moduleAugmentations:t}){let n=e.map(e=>e);for(let e of t)e.kind===11&&n.push(e);return n}function pG({imports:e,moduleAugmentations:t},n){if(nt.add(e)),r?.forEach(n=>{switch(n.kind){case 1:return t.add(d(e,n.file&&e.getSourceFileByPath(n.file),n.fileProcessingReason,n.diagnostic,n.args||c));case 0:return t.add(u(e,n));case 2:return n.diagnostics.forEach(e=>t.add(e));default:H.assertNever(n)}}),o?.forEach(({file:n,diagnostic:r,args:i})=>t.add(d(e,n,void 0,r,i))),s=void 0,l=void 0,t)}};function u(e,{reason:t}){let{file:n,pos:r,end:i}=JW(e,t),a=n.libReferenceDirectives[t.index],o=QT(a),s=Qt(en(mn(o,`lib.`),`.d.ts`),WP,wt);return vS(n,H.checkDefined(r),H.checkDefined(i)-r,s?G.Cannot_find_lib_definition_for_0_Did_you_mean_1:G.Cannot_find_lib_definition_for_0,o,s)}function d(e,t,r,i,a){let o,l,u,d,p,m,h=t&&n.get(t.path),g=KW(r)?r:void 0,_=t&&s?.get(t.path);_?(_.fileIncludeReasonDetails?(o=new Set(h),h?.forEach(x)):h?.forEach(b),p=_.redirectInfo):(h?.forEach(b),p=t&&KK(t,e.getCompilerOptionsForFile(t))),r&&b(r);let v=o?.size!==h?.length;g&&o?.size===1&&(o=void 0),o&&_&&(_.details&&!v?m=SS(_.details,i,...a??c):_.fileIncludeReasonDetails&&(v?l=S()?I(_.fileIncludeReasonDetails.next.slice(0,h.length),l[0]):[..._.fileIncludeReasonDetails.next,l[0]]:S()?l=_.fileIncludeReasonDetails.next.slice(0,h.length):d=_.fileIncludeReasonDetails)),m||=(d||=o&&SS(l,G.The_file_is_in_the_program_because_Colon),SS(p?d?[d,...p]:p:d,i,...a||c)),t&&(_?(!_.fileIncludeReasonDetails||!v&&d)&&(_.fileIncludeReasonDetails=d):(s??=new Map).set(t.path,_={fileIncludeReasonDetails:d,redirectInfo:p}),!_.details&&!v&&(_.details=m.next));let y=g&&JW(e,g);return y&&qW(y)?bm(y.file,y.pos,y.end-y.pos,m,u):xS(m,u);function b(t){o?.has(t)||((o??=new Set).add(t),(l??=[]).push(YK(e,t)),x(t))}function x(t){!g&&KW(t)?g=t:g!==t&&(u=I(u,f(e,t)))}function S(){return _.fileIncludeReasonDetails.next?.length!==h?.length}}function f(e,t){let n=l?.get(t);return n===void 0&&(l??=new Map).set(t,n=p(e,t)??!1),n||void 0}function p(t,n){if(KW(n)){let e=JW(t,n),r;switch(n.kind){case 3:r=G.File_is_included_via_import_here;break;case 4:r=G.File_is_included_via_reference_here;break;case 5:r=G.File_is_included_via_type_library_reference_here;break;case 7:r=G.File_is_included_via_library_reference_here;break;default:H.assertNever(n)}return qW(e)?vS(e.file,e.pos,e.end-e.pos,r):void 0}let r=t.getCurrentDirectory(),i=t.getRootFileNames(),a=t.getCompilerOptions();if(!a.configFile)return;let o,s;switch(n.kind){case 0:if(!a.configFile.configFileSpecs)return;let c=po(i[n.index],r),l=qK(t,c);if(l){o=vh(a.configFile,`files`,l),s=G.File_is_matched_by_files_list_specified_here;break}let u=JK(t,c);if(!u||!gt(u))return;o=vh(a.configFile,`include`,u),s=G.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let d=t.getResolvedProjectReferences(),f=t.getProjectReferences(),p=H.checkDefined(d?.[n.index]),m=tE(f,d,(e,t,n)=>e===p?{sourceFile:t?.sourceFile||a.configFile,index:n}:void 0);if(!m)return;let{sourceFile:h,index:g}=m,_=yh(h,`references`,e=>xk(e.initializer)?e.initializer:void 0);return _&&_.elements.length>g?gm(h,_.elements[g],n.kind===2?G.File_is_output_from_referenced_project_specified_here:G.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!a.types)return;o=nE(e(),`types`,n.typeReference),s=G.File_is_entry_point_of_type_library_specified_here;break;case 6:if(n.index!==void 0){o=nE(e(),`lib`,a.lib[n.index]),s=G.File_is_library_specified_here;break}let v=cC(zS(a));o=v?iE(e(),`target`,v):void 0,s=G.File_is_default_library_for_target_specified_here;break;default:H.assertNever(n)}return o&&gm(a.configFile,o,s)}}function hG(e,t,n,r,i,a){let o=[],{emitSkipped:s,diagnostics:c}=e.emit(t,l,r,n,i,a);return{outputFiles:o,emitSkipped:s,diagnostics:c};function l(e,t,n){o.push({name:e,writeByteOrderMark:n,text:t})}}var gG=(e=>(e[e.ComputedDts=0]=`ComputedDts`,e[e.StoredSignatureAtEmit=1]=`StoredSignatureAtEmit`,e[e.UsedVersion=2]=`UsedVersion`,e))(gG||{}),_G;(e=>{function t(){function e(e,t,i){let a={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),size:()=>e.size,deleteKey:n=>{(i||=new Set).add(n);let a=e.get(n);return a?(a.forEach(e=>r(t,e,n)),e.delete(n),!0):!1},set:(o,s)=>{i?.delete(o);let c=e.get(o);return e.set(o,s),c?.forEach(e=>{s.has(e)||r(t,e,o)}),s.forEach(e=>{c?.has(e)||n(t,e,o)}),a}};return a}return e(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function n(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}function r(e,t,n){let r=e.get(t);return r?.delete(n)?(r.size||e.delete(t),!0):!1}function i(e){return M(e.declarations,e=>Yf(e)?.resolvedPath)}function a(e,t){let n=e.getSymbolAtLocation(t);return n&&i(n)}function o(e,t,n,r){return yo(e.getRedirectFromSourceFile(t)?.outputDts||t,n,r)}function s(e,t,n){let r;if(t.imports&&t.imports.length>0){let n=e.getTypeChecker();for(let e of t.imports)a(n,e)?.forEach(c)}let i=$a(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(let r of t.referencedFiles)c(o(e,r.fileName,i,n));if(e.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:t})=>{if(!t)return;let r=t.resolvedFileName;c(o(e,r,i,n))},t),t.moduleAugmentations.length){let n=e.getTypeChecker();for(let e of t.moduleAugmentations){if(!tO(e))continue;let t=n.getSymbolAtLocation(e);t&&s(t)}}for(let t of e.getTypeChecker().getAmbientModules())t.declarations&&t.declarations.length>1&&s(t);return r;function s(e){if(e.declarations)for(let n of e.declarations){let e=Yf(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(r||=new Set).add(e)}}function l(e,t){return t&&!t.referencedMap==!e}e.canReuseOldState=l;function u(e){return e.module!==0&&!e.outFile?t():void 0}e.createReferencedMap=u;function d(e,t,n){let r=new Map,i=e.getCompilerOptions(),a=u(i),o=l(a,t);e.getTypeChecker();for(let n of e.getSourceFiles()){let c=H.checkDefined(n.version,`Program intended to be used with Builder should have source files with versions set`),l=o?t.oldSignatures?.get(n.resolvedPath):void 0,u=l===void 0?o?t.fileInfos.get(n.resolvedPath)?.signature:void 0:l||void 0;if(a){let t=s(e,n,e.getCanonicalFileName);t&&a.set(n.resolvedPath,t)}r.set(n.resolvedPath,{version:c,signature:u,affectsGlobalScope:i.outFile?void 0:C(n)||void 0,impliedFormat:n.impliedNodeFormat})}return{fileInfos:r,referencedMap:a,useFileVersionAsSignature:!n&&!o}}e.create=d;function f(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0}e.releaseCache=f;function p(e,t,n,r,i){var a;let o=m(e,t,n,r,i);return(a=e.oldSignatures)==null||a.clear(),o}e.getFilesAffectedBy=p;function m(e,t,n,r,i){let a=t.getSourceFileByPath(n);return a?_(e,t,a,r,i)?(e.referencedMap?E:T)(e,t,a,r,i):[a]:c}e.getFilesAffectedByWithOldState=m;function h(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||=new Set).add(n)}e.updateSignatureOfFile=h;function g(e,t,n,r,i){e.emit(t,(n,a,o,s,c,l)=>{H.assert(OP(n),`File extension for signature expected to be dts: Got:: ${n}`),i(nK(e,t,a,r,l),c)},n,2,void 0,!0)}e.computeDtsSignature=g;function _(e,t,n,r,i,a=e.useFileVersionAsSignature){if(e.hasCalledUpdateShapeSignature?.has(n.resolvedPath))return!1;let o=e.fileInfos.get(n.resolvedPath),s=o.signature,c;return!n.isDeclarationFile&&!a&&g(t,n,r,i,t=>{c=t,i.storeSignatureInfo&&(e.signatureInfo??=new Map).set(n.resolvedPath,0)}),c===void 0&&(c=n.version,i.storeSignatureInfo&&(e.signatureInfo??=new Map).set(n.resolvedPath,2)),(e.oldSignatures||=new Map).set(n.resolvedPath,s||!1),(e.hasCalledUpdateShapeSignature||=new Set).add(n.resolvedPath),o.signature=c,c!==s}e.updateShapeSignature=_;function v(e,t,n){if(t.getCompilerOptions().outFile||!e.referencedMap||C(n))return y(e,t);let r=new Set,i=[n.resolvedPath];for(;i.length;){let t=i.pop();if(!r.has(t)){r.add(t);let n=e.referencedMap.getValues(t);if(n)for(let e of n.keys())i.push(e)}}return $e(N(r.keys(),e=>t.getSourceFileByPath(e)?.fileName??e))}e.getAllDependencies=v;function y(e,t){if(!e.allFileNames){let n=t.getSourceFiles();e.allFileNames=n===c?c:n.map(e=>e.fileName)}return e.allFileNames}function b(e,t){let n=e.referencedMap.getKeys(t);return n?$e(n.keys()):[]}e.getReferencedByPaths=b;function x(e){for(let t of e.statements)if(!Bp(t))return!1;return!0}function S(e){return F(e.moduleAugmentations,e=>Wp(e.parent))}function C(e){return S(e)||!Am(e)&&!jm(e)&&!x(e)}function w(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let r;n&&i(n);for(let e of t.getSourceFiles())e!==n&&i(e);return e.allFilesExcludingDefaultLibraryFile=r||c,e.allFilesExcludingDefaultLibraryFile;function i(e){t.isSourceFileDefaultLibrary(e)||(r||=[]).push(e)}}e.getAllFilesExcludingDefaultLibraryFile=w;function T(e,t,n){let r=t.getCompilerOptions();return r&&r.outFile?[n]:w(e,t,n)}function E(e,t,n,r,i){if(C(n))return w(e,t,n);let a=t.getCompilerOptions();if(a&&(US(a)||a.outFile))return[n];let o=new Map;o.set(n.resolvedPath,n);let s=b(e,n.resolvedPath);for(;s.length>0;){let n=s.pop();if(!o.has(n)){let a=t.getSourceFileByPath(n);o.set(n,a),a&&_(e,t,a,r,i)&&s.push(...b(e,a.resolvedPath))}}return $e(N(o.values(),e=>e))}})(_G||={});var vG=(e=>(e[e.None=0]=`None`,e[e.Js=1]=`Js`,e[e.JsMap=2]=`JsMap`,e[e.JsInlineMap=4]=`JsInlineMap`,e[e.DtsErrors=8]=`DtsErrors`,e[e.DtsEmit=16]=`DtsEmit`,e[e.DtsMap=32]=`DtsMap`,e[e.Dts=24]=`Dts`,e[e.AllJs=7]=`AllJs`,e[e.AllDtsEmit=48]=`AllDtsEmit`,e[e.AllDts=56]=`AllDts`,e[e.All=63]=`All`,e))(vG||{});function yG(e){return e.program!==void 0}function bG(e){return H.assert(yG(e)),e}function xG(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),YS(e)&&(t|=24),e.declarationMap&&(t|=32),e.emitDeclarationOnly&&(t&=56),t}function SG(e,t){let n=t&&(_t(t)?t:xG(t)),r=_t(e)?e:xG(e);if(n===r)return 0;if(!n||!r)return r;let i=n^r,a=0;return i&7&&(a=r&7),i&8&&(a|=r&8),i&48&&(a|=r&48),a}function Are(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!Nf(e,e=>!t.has(e))}function CG(e,t){var n;let r=_G.create(e,t,!1);r.program=e;let i=e.getCompilerOptions();r.compilerOptions=i;let a=i.outFile;r.semanticDiagnosticsPerFile=new Map,a&&i.composite&&t?.outSignature&&a===t.compilerOptions.outFile&&(r.outSignature=t.outSignature&&wG(i,t.compilerOptions,t.outSignature)),r.changedFilesSet=new Set,r.latestChangedDtsFile=i.composite?t?.latestChangedDtsFile:void 0,r.checkPending=r.compilerOptions.noCheck?!0:void 0;let o=_G.canReuseOldState(r.referencedMap,t),s=o?t.compilerOptions:void 0,c=o&&!uC(i,s),l=i.composite&&t?.emitSignatures&&!a&&!fC(i,t.compilerOptions),u=!0;o?((n=t.changedFilesSet)==null||n.forEach(e=>r.changedFilesSet.add(e)),!a&&t.affectedFilesPendingEmit?.size&&(r.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),r.seenAffectedFiles=new Set),r.programEmitPending=t.programEmitPending,a&&r.changedFilesSet.size&&(c=!1,u=!1),r.hasErrorsFromOldState=t.hasErrors):r.buildInfoEmitPending=ZS(i);let d=r.referencedMap,f=o?t.referencedMap:void 0,p=c&&!i.skipLibCheck==!s.skipLibCheck,m=p&&!i.skipDefaultLibCheck==!s.skipDefaultLibCheck;if(r.fileInfos.forEach((n,a)=>{let s,g;if(!o||!(s=t.fileInfos.get(a))||s.version!==n.version||s.impliedFormat!==n.impliedFormat||!Are(g=d&&d.getValues(a),f&&f.getValues(a))||g&&Nf(g,e=>!r.fileInfos.has(e)&&t.fileInfos.has(e)))h(a);else{let n=e.getSourceFileByPath(a),i=u?t.emitDiagnosticsPerFile?.get(a):void 0;if(i&&(r.emitDiagnosticsPerFile??=new Map).set(a,t.hasReusableDiagnostic?OG(i,a,e):TG(i,e)),c){if(n.isDeclarationFile&&!p||n.hasNoDefaultLib&&!m)return;let i=t.semanticDiagnosticsPerFile.get(a);i&&(r.semanticDiagnosticsPerFile.set(a,t.hasReusableDiagnostic?OG(i,a,e):TG(i,e)),(r.semanticDiagnosticsFromOldState??=new Set).add(a))}}if(l){let e=t.emitSignatures.get(a);e&&(r.emitSignatures??=new Map).set(a,wG(i,t.compilerOptions,e))}}),o&&Mf(t.fileInfos,(e,t)=>r.fileInfos.has(t)?!1:e.affectsGlobalScope?!0:(r.buildInfoEmitPending=!0,!!a)))_G.getAllFilesExcludingDefaultLibraryFile(r,e,void 0).forEach(e=>h(e.resolvedPath));else if(s){let t=dC(i,s)?xG(i):SG(i,s);t!==0&&(a?r.changedFilesSet.size||(r.programEmitPending=r.programEmitPending?r.programEmitPending|t:t):(e.getSourceFiles().forEach(e=>{r.changedFilesSet.has(e.resolvedPath)||aK(r,e.resolvedPath,t)}),H.assert(!r.seenAffectedFiles||!r.seenAffectedFiles.size),r.seenAffectedFiles=r.seenAffectedFiles||new Set),r.buildInfoEmitPending=!0)}return o&&r.semanticDiagnosticsPerFile.size!==r.fileInfos.size&&t.checkPending!==r.checkPending&&(r.buildInfoEmitPending=!0),r;function h(e){r.changedFilesSet.add(e),a&&(c=!1,u=!1,r.semanticDiagnosticsFromOldState=void 0,r.semanticDiagnosticsPerFile.clear(),r.emitDiagnosticsPerFile=void 0),r.buildInfoEmitPending=!0,r.programEmitPending=void 0}}function wG(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:gt(n)?[n]:n[0]}function TG(e,t){return e.length?te(e,e=>{if(gt(e.messageText))return e;let n=EG(e.messageText,e.file,t,e=>e.repopulateInfo?.call(e));return n===e.messageText?e:{...e,messageText:n}}):e}function EG(e,t,n,r){let i=r(e);if(i===!0)return{...Hf(t),next:DG(e.next,t,n,r)};if(i)return{...Vf(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:DG(e.next,t,n,r)};let a=DG(e.next,t,n,r);return a===e.next?e:{...e,next:a}}function DG(e,t,n,r){return te(e,e=>EG(e,t,n,r))}function OG(e,t,n){if(!e.length)return c;let r;return e.map(e=>{let r=kG(e,t,n,i);r.reportsUnnecessary=e.reportsUnnecessary,r.reportsDeprecated=e.reportDeprecated,r.source=e.source,r.skippedOn=e.skippedOn;let{relatedInformation:a}=e;return r.relatedInformation=a?a.length?a.map(e=>kG(e,t,n,i)):[]:void 0,r});function i(e){return r??=$a(po(vU(n.getCompilerOptions()),n.getCurrentDirectory())),yo(e,r,n.getCanonicalFileName)}}function kG(e,t,n,r){let{file:i}=e,a=i===!1?void 0:n.getSourceFileByPath(i?r(i):t);return{...e,file:a,messageText:gt(e.messageText)?e.messageText:EG(e.messageText,a,n,e=>e.info)}}function AG(e){_G.releaseCache(e),e.program=void 0}function jG(e,t){H.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function MG(e,t,n){for(var r;;){let{affectedFiles:i}=e;if(i){let a=e.seenAffectedFiles,o=e.affectedFilesIndex;for(;o{let i=n?t&55:t&7;i?e.affectedFilesPendingEmit.set(r,i):e.affectedFilesPendingEmit.delete(r)}),e.programEmitPending)){let t=n?e.programEmitPending&55:e.programEmitPending&7;t?e.programEmitPending=t:e.programEmitPending=void 0}}function PG(e,t,n,r){let i=SG(e,t);return n&&(i&=56),r&&(i&=8),i}function FG(e){return e?8:56}function IG(e,t,n){if(e.affectedFilesPendingEmit?.size)return Mf(e.affectedFilesPendingEmit,(r,i)=>{let a=e.program.getSourceFileByPath(i);if(!a||!yy(a,e.program)){e.affectedFilesPendingEmit.delete(i);return}let o=PG(r,e.seenEmittedFiles?.get(a.resolvedPath),t,n);if(o)return{affectedFile:a,emitKind:o}})}function jre(e,t){if(e.emitDiagnosticsPerFile?.size)return Mf(e.emitDiagnosticsPerFile,(n,r)=>{let i=e.program.getSourceFileByPath(r);if(!i||!yy(i,e.program)){e.emitDiagnosticsPerFile.delete(r);return}let a=e.seenEmittedFiles?.get(i.resolvedPath)||0;if(!(a&FG(t)))return{affectedFile:i,diagnostics:n,seenKind:a}})}function LG(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=e.program.getCompilerOptions();d(e.program.getSourceFiles(),n=>e.program.isSourceFileDefaultLibrary(n)&&!jw(n,t,e.program)&&BG(e,n.resolvedPath))}}function RG(e,t,n,r){if(BG(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){LG(e),_G.updateShapeSignature(e,e.program,t,n,r);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||UG(e,t,n,r)}function zG(e,t,n,r,i){if(BG(e,t),!e.changedFilesSet.has(t)){let a=e.program.getSourceFileByPath(t);a&&(_G.updateShapeSignature(e,e.program,a,r,i,!0),n?aK(e,t,xG(e.compilerOptions)):YS(e.compilerOptions)&&aK(e,t,e.compilerOptions.declarationMap?56:24))}}function BG(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function VG(e,t){let n=H.checkDefined(e.oldSignatures).get(t)||void 0;return H.checkDefined(e.fileInfos.get(t)).signature!==n}function HG(e,t,n,r,i){return e.fileInfos.get(t)?.affectsGlobalScope?(_G.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(t=>zG(e,t.resolvedPath,n,r,i)),LG(e),!0):!1}function UG(e,t,n,r){var i;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath)||!VG(e,t.resolvedPath))return;if(US(e.compilerOptions)){let i=new Map;i.set(t.resolvedPath,!0);let a=_G.getReferencedByPaths(e,t.resolvedPath);for(;a.length>0;){let t=a.pop();if(!i.has(t)){if(i.set(t,!0),HG(e,t,!1,n,r))return;if(zG(e,t,!1,n,r),VG(e,t)){let n=e.program.getSourceFileByPath(t);a.push(..._G.getReferencedByPaths(e,n.resolvedPath))}}}}let a=new Set,o=!!t.symbol?.exports&&!!Mf(t.symbol.exports,n=>{if(n.flags&128)return!0;let r=Nx(n,e.program.getTypeChecker());return r===n?!1:(r.flags&128)!=0&&F(r.declarations,e=>Yf(e)===t)});(i=e.referencedMap.getKeys(t.resolvedPath))==null||i.forEach(t=>{if(HG(e,t,o,n,r))return!0;let i=e.referencedMap.getKeys(t);return i&&Nf(i,t=>WG(e,t,o,a,n,r))})}function WG(e,t,n,r,i,a){var o;if(se(r,t)){if(HG(e,t,n,i,a))return!0;zG(e,t,n,i,a),(o=e.referencedMap.getKeys(t))==null||o.forEach(t=>WG(e,t,n,r,i,a))}}function GG(e,t,n,r){return e.compilerOptions.noCheck?c:de(KG(e,t,n,r),e.program.getProgramDiagnostics(t))}function KG(e,t,n,r){r??=e.semanticDiagnosticsPerFile;let i=t.resolvedPath,a=r.get(i);if(a)return cG(a,e.compilerOptions);let o=e.program.getBindAndCheckDiagnostics(t,n);return r.set(i,o),e.buildInfoEmitPending=!0,cG(o,e.compilerOptions)}function qG(e){return!!e.options?.outFile}function JG(e){return!!e.fileNames}function YG(e){return!JG(e)&&!!e.root}function XG(e){e.hasErrors===void 0&&(ZS(e.compilerOptions)?e.hasErrors=!F(e.program.getSourceFiles(),t=>{let n=e.semanticDiagnosticsPerFile.get(t.resolvedPath);return n===void 0||!!n.length||!!e.emitDiagnosticsPerFile?.get(t.resolvedPath)?.length})&&(ZG(e)||F(e.program.getSourceFiles(),t=>!!e.program.getProgramDiagnostics(t).length)):e.hasErrors=F(e.program.getSourceFiles(),t=>!!e.semanticDiagnosticsPerFile.get(t.resolvedPath)?.length||!!e.emitDiagnosticsPerFile?.get(t.resolvedPath)?.length)||ZG(e))}function ZG(e){return!!e.program.getConfigFileParsingDiagnostics().length||!!e.program.getSyntacticDiagnostics().length||!!e.program.getOptionsDiagnostics().length||!!e.program.getGlobalDiagnostics().length}function QG(e){return XG(e),e.buildInfoEmitPending??=!!e.hasErrorsFromOldState!=!!e.hasErrors}function Mre(e){let t=e.program.getCurrentDirectory(),n=$a(po(vU(e.compilerOptions),t)),r=e.latestChangedDtsFile?v(e.latestChangedDtsFile):void 0,i=[],a=new Map,s=new Set(e.program.getRootFileNames().map(n=>yo(n,t,e.program.getCanonicalFileName)));if(XG(e),!ZS(e.compilerOptions))return{root:$e(s,e=>y(e)),errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:o};let l=[];if(e.compilerOptions.outFile)return{fileNames:i,fileInfos:$e(e.fileInfos.entries(),([e,t])=>(S(e,b(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version)),root:l,resolvedRoot:C(),options:w(e.compilerOptions),semanticDiagnosticsPerFile:e.changedFilesSet.size?void 0:E(),emitDiagnosticsPerFile:D(),changeFileSet:ne(),outSignature:e.outSignature,latestChangedDtsFile:r,pendingEmit:e.programEmitPending?e.programEmitPending===xG(e.compilerOptions)?!1:e.programEmitPending:void 0,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:o};let u,f,p,m=$e(e.fileInfos.entries(),([t,n])=>{let r=b(t);S(t,r),H.assert(i[r-1]===y(t));let a=e.oldSignatures?.get(t),o=a===void 0?n.signature:a||void 0;if(e.compilerOptions.composite){let n=e.program.getSourceFileByPath(t);if(!jm(n)&&yy(n,e.program)){let n=e.emitSignatures?.get(t);n!==o&&(p=I(p,n===void 0?r:[r,!gt(n)&&n[0]===o?c:n]))}}return n.version===o?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:o===void 0?{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:a===void 0?n:{version:n.version,signature:o,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}),h;e.referencedMap?.size()&&(h=$e(e.referencedMap.keys()).sort(Ht).map(t=>[b(t),x(e.referencedMap.getValues(t))]));let g=E(),_;if(e.affectedFilesPendingEmit?.size){let t=xG(e.compilerOptions),n=new Set;for(let r of $e(e.affectedFilesPendingEmit.keys()).sort(Ht))if(se(n,r)){let n=e.program.getSourceFileByPath(r);if(!n||!yy(n,e.program))continue;let i=b(r),a=e.affectedFilesPendingEmit.get(r);_=I(_,a===t?i:a===24?[i]:[i,a])}}return{fileNames:i,fileIdsList:u,fileInfos:m,root:l,resolvedRoot:C(),options:w(e.compilerOptions),referencedMap:h,semanticDiagnosticsPerFile:g,emitDiagnosticsPerFile:D(),changeFileSet:ne(),affectedFilesPendingEmit:_,emitSignatures:p,latestChangedDtsFile:r,errors:e.hasErrors?!0:void 0,checkPending:e.checkPending,version:o};function v(e){return y(po(e,t))}function y(t){return So(No(n,t,e.program.getCanonicalFileName))}function b(e){let t=a.get(e);return t===void 0&&(i.push(y(e)),a.set(e,t=i.length)),t}function x(e){let t=$e(e.keys(),b).sort(It),n=t.join(),r=f?.get(n);return r===void 0&&(u=I(u,t),(f??=new Map).set(n,r=u.length)),r}function S(t,n){let r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some(e=>e.kind===0))return;if(!l.length)return l.push(n);let i=l[l.length-1],a=mt(i);if(a&&i[1]===n-1)return i[1]=n;if(a||l.length===1||i!==n-1)return l.push(n);let o=l[l.length-2];return!_t(o)||o!==i-1?l.push(n):(l[l.length-2]=[o,n],--l.length)}function C(){let t;return s.forEach(n=>{let r=e.program.getSourceFileByPath(n);r&&n!==r.resolvedPath&&(t=I(t,[b(r.resolvedPath),b(n)]))}),t}function w(e){let t,{optionsNameMap:n}=pF();for(let r of Ye(e).sort(Ht)){let i=n.get(r.toLowerCase());i?.affectsBuildInfo&&((t||={})[r]=T(i,e[r]))}return t}function T(e,t){if(e){if(H.assert(e.type!==`listOrElement`),e.type===`list`){let n=t;if(e.element.isFilePath&&n.length)return n.map(v)}else if(e.isFilePath)return v(t)}return t}function E(){let t;return e.fileInfos.forEach((n,r)=>{let i=e.semanticDiagnosticsPerFile.get(r);i?i.length&&(t=I(t,[b(r),O(i,r)])):e.changedFilesSet.has(r)||(t=I(t,b(r)))}),t}function D(){let t;if(!e.emitDiagnosticsPerFile?.size)return t;for(let n of $e(e.emitDiagnosticsPerFile.keys()).sort(Ht)){let r=e.emitDiagnosticsPerFile.get(n);t=I(t,[b(n),O(r,n)])}return t}function O(e,t){return H.assert(!!e.length),e.map(e=>{let n=k(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;let{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map(e=>k(e,t)):[]:void 0,n})}function k(e,t){let{file:n}=e;return{...e,file:n?n.resolvedPath===t?void 0:y(n.resolvedPath):!1,messageText:gt(e.messageText)?e.messageText:ee(e.messageText)}}function ee(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:te(e.next)};let t=te(e.next);return t===e.next?e:{...e,next:t}}function te(e){return e&&(d(e,(t,n)=>{let r=ee(t);if(t===r)return;let i=n>0?e.slice(0,n-1):[];i.push(r);for(let t=n+1;t(e[e.SemanticDiagnosticsBuilderProgram=0]=`SemanticDiagnosticsBuilderProgram`,e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]=`EmitAndSemanticDiagnosticsBuilderProgram`,e))($G||{});function eK(e,t,n,r,i,a){let o,s,l;return e===void 0?(H.assert(t===void 0),o=n,l=r,H.assert(!!l),s=l.getProgram()):mt(e)?(l=r,s=tG({rootNames:e,options:t,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:a}),o=n):(s=e,o=t,l=n,i=r),{host:o,newProgram:s,oldProgram:l,configFileParsingDiagnostics:i||c}}function tK(e,t){return t?.sourceMapUrlPos===void 0?e:e.substring(0,t.sourceMapUrlPos)}function nK(e,t,n,r,i){n=tK(n,i);let a;return i?.diagnostics?.length&&(n+=i.diagnostics.map(e=>`${s(e)}${Di[e.category]}${e.code}: ${o(e.messageText)}`).join(` `)),(r.createHash??ra)(n);function o(e){return gt(e)?e:e===void 0?``:e.next?e.messageText+e.next.map(o).join(` `):e.messageText}function s(n){return n.file.resolvedPath===t.resolvedPath?`(${n.start},${n.length})`:(a===void 0&&(a=$a(t.resolvedPath)),`${So(No(a,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`)}}function rK(e,t,n){return(t.createHash??ra)(tK(e,n))}function iK(e,{newProgram:t,host:n,oldProgram:r,configFileParsingDiagnostics:i}){let a=r&&r.state;if(a&&t===a.program&&i===t.getConfigFileParsingDiagnostics())return t=void 0,a=void 0,r;let o=CG(t,a);t.getBuildInfo=()=>Mre(bG(o)),t=void 0,r=void 0,a=void 0;let s=fK(o,i);return s.state=o,s.hasChangedEmitSignature=()=>!!o.hasChangedEmitSignature,s.getAllDependencies=e=>_G.getAllDependencies(o,H.checkDefined(o.program),e),s.getSemanticDiagnostics=v,s.getDeclarationDiagnostics=g,s.emit=m,s.releaseProgram=()=>AG(o),e===0?s.getSemanticDiagnosticsOfNextAffectedFile=_:e===1?(s.getSemanticDiagnosticsOfNextAffectedFile=_,s.emitNextAffectedFile=f,s.emitBuildInfo=l):Ot(),s;function l(e,t){if(H.assert(yG(o)),QG(o)){let r=o.program.emitBuildInfo(e||ut(n,n.writeFile),t);return o.buildInfoEmitPending=!1,r}return oG}function u(e,t,r,i,a){var s;H.assert(yG(o));let c=MG(o,t,n),l=xG(o.compilerOptions),u=a?8:r?l&56:l;if(!c){if(!o.compilerOptions.outFile){let e=IG(o,r,a);if(e)({affectedFile:c,emitKind:u}=e);else{let e=jre(o,a);if(e)return(o.seenEmittedFiles??=new Map).set(e.affectedFile.resolvedPath,e.seenKind|FG(a)),{result:{emitSkipped:!0,diagnostics:e.diagnostics},affected:e.affectedFile}}}else if(o.programEmitPending&&(u=PG(o.programEmitPending,o.seenProgramEmit,r,a),u&&(c=o.program)),!c&&o.emitDiagnosticsPerFile?.size){let e=o.seenProgramEmit||0;if(!(e&FG(a))){o.seenProgramEmit=FG(a)|e;let t=[];return o.emitDiagnosticsPerFile.forEach(e=>Ee(t,e)),{result:{emitSkipped:!0,diagnostics:t},affected:o.program}}}if(!c){if(a||!QG(o))return;let r=o.program,i=r.emitBuildInfo(e||ut(n,n.writeFile),t);return o.buildInfoEmitPending=!1,{result:i,affected:r}}}let f;u&7&&(f=0),u&56&&(f=f===void 0?1:void 0);let m=a?{emitSkipped:!0,diagnostics:o.program.getDeclarationDiagnostics(c===o.program?void 0:c,t)}:o.program.emit(c===o.program?void 0:c,p(e,i),t,f,i,void 0,!0);if(c!==o.program){let e=c;o.seenAffectedFiles.add(e.resolvedPath),o.affectedFilesIndex!==void 0&&o.affectedFilesIndex++,o.buildInfoEmitPending=!0;let t=o.seenEmittedFiles?.get(e.resolvedPath)||0;(o.seenEmittedFiles??=new Map).set(e.resolvedPath,u|t);let n=SG(o.affectedFilesPendingEmit?.get(e.resolvedPath)||l,u|t);n?(o.affectedFilesPendingEmit??=new Map).set(e.resolvedPath,n):(s=o.affectedFilesPendingEmit)==null||s.delete(e.resolvedPath),m.diagnostics.length&&(o.emitDiagnosticsPerFile??=new Map).set(e.resolvedPath,m.diagnostics)}else o.changedFilesSet.clear(),o.programEmitPending=o.changedFilesSet.size?SG(l,u):o.programEmitPending?SG(o.programEmitPending,u):void 0,o.seenProgramEmit=u|(o.seenProgramEmit||0),d(m.diagnostics),o.buildInfoEmitPending=!0;return{result:m,affected:c}}function d(e){let t;e.forEach(e=>{if(!e.file)return;let n=t?.get(e.file.resolvedPath);n||(t??=new Map).set(e.file.resolvedPath,n=[]),n.push(e)}),t&&(o.emitDiagnosticsPerFile=t)}function f(e,t,n,r){return u(e,t,n,r,!1)}function p(e,t){return H.assert(yG(o)),YS(o.compilerOptions)?(r,i,a,s,c,l)=>{if(OP(r)){if(!o.compilerOptions.outFile){H.assert(c?.length===1);let e;if(!t){let t=c[0],r=o.fileInfos.get(t.resolvedPath);if(r.signature===t.version){let a=nK(o.program,t,i,n,l);l?.diagnostics?.length||(e=a),a!==t.version&&(n.storeSignatureInfo&&(o.signatureInfo??=new Map).set(t.resolvedPath,1),o.affectedFiles&&o.oldSignatures?.get(t.resolvedPath)===void 0&&(o.oldSignatures??=new Map).set(t.resolvedPath,r.signature||!1),r.signature=a)}}if(o.compilerOptions.composite){let t=c[0].resolvedPath;if(e=u(o.emitSignatures?.get(t),e),!e)return l.skippedDtsWrite=!0;(o.emitSignatures??=new Map).set(t,e)}}else if(o.compilerOptions.composite){let e=u(o.outSignature,void 0);if(!e)return l.skippedDtsWrite=!0;o.outSignature=e}}e?e(r,i,a,s,c,l):n.writeFile?n.writeFile(r,i,a,s,c,l):o.program.writeFile(r,i,a,s,c,l);function u(e,t){let a=!e||gt(e)?e:e[0];if(t??=rK(i,n,l),t===a){if(e===a)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else o.hasChangedEmitSignature=!0,o.latestChangedDtsFile=r;return t}}:e||ut(n,n.writeFile)}function m(t,n,r,i,a){H.assert(yG(o)),e===1&&jG(o,t);let l=sG(s,t,n,r);if(l)return l;if(!t)if(e===1){let e=[],t=!1,o,s=[],l;for(;l=f(n,r,i,a);)t||=l.result.emitSkipped,o=Ee(o,l.result.diagnostics),s=Ee(s,l.result.emittedFiles),e=Ee(e,l.result.sourceMaps);return{emitSkipped:t,diagnostics:o||c,emittedFiles:s,sourceMaps:e}}else NG(o,i,!1);let u=o.program.emit(t,p(n,a),r,i,a);return h(t,i,!1,u.diagnostics),u}function h(t,n,r,i){!t&&e!==1&&(NG(o,n,r),d(i))}function g(t,n){if(H.assert(yG(o)),e===1){jG(o,t);let e,r;for(;e=u(void 0,n,void 0,void 0,!0);)t||(r=Ee(r,e.result.diagnostics));return(t?o.emitDiagnosticsPerFile?.get(t.resolvedPath):r)||c}else{let e=o.program.getDeclarationDiagnostics(t,n);return h(t,void 0,!0,e),e}}function _(e,t){for(H.assert(yG(o));;){let r=MG(o,e,n),i;if(!r){o.checkPending&&!o.compilerOptions.noCheck&&(o.checkPending=void 0,o.buildInfoEmitPending=!0);return}else if(r!==o.program){let n=r;if((!t||!t(n))&&(i=GG(o,n,e)),o.seenAffectedFiles.add(n.resolvedPath),o.affectedFilesIndex++,o.buildInfoEmitPending=!0,!i)continue}else{let t,n=new Map;o.program.getSourceFiles().forEach(r=>t=Ee(t,GG(o,r,e,n))),o.semanticDiagnosticsPerFile=n,i=t||c,o.changedFilesSet.clear(),o.programEmitPending=xG(o.compilerOptions),o.compilerOptions.noCheck||(o.checkPending=void 0),o.buildInfoEmitPending=!0}return{result:i,affected:r}}}function v(e,t){if(H.assert(yG(o)),jG(o,e),e)return GG(o,e,t);for(;;){let e=_(t);if(!e)break;if(e.affected===o.program)return e.result}let n;for(let e of o.program.getSourceFiles())n=Ee(n,GG(o,e,t));return o.checkPending&&!o.compilerOptions.noCheck&&(o.checkPending=void 0,o.buildInfoEmitPending=!0),n||c}}function aK(e,t,n){var r;let i=e.affectedFilesPendingEmit?.get(t)||0;(e.affectedFilesPendingEmit??=new Map).set(t,i|n),(r=e.emitDiagnosticsPerFile)==null||r.delete(t)}function oK(e){return gt(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:gt(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function sK(e,t){return _t(e)?t:e[1]||24}function cK(e,t){return e||xG(t||{})}function lK(e,t,n){var r;let i=$a(po(t,n.getCurrentDirectory())),a=ln(n.useCaseSensitiveFileNames()),o,s=e.fileNames?.map(p),l,u=e.latestChangedDtsFile?m(e.latestChangedDtsFile):void 0,d=new Map,f=new Set(k(e.changeFileSet,h));if(qG(e))e.fileInfos.forEach((e,t)=>{let n=h(t+1);d.set(n,gt(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)}),o={fileInfos:d,compilerOptions:e.options?pI(e.options,m):{},semanticDiagnosticsPerFile:v(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:y(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:f,latestChangedDtsFile:u,outSignature:e.outSignature,programEmitPending:e.pendingEmit===void 0?void 0:cK(e.pendingEmit,e.options),hasErrors:e.errors,checkPending:e.checkPending};else{l=e.fileIdsList?.map(e=>new Set(e.map(h)));let t=e.options?.composite&&!e.options.outFile?new Map:void 0;e.fileInfos.forEach((e,n)=>{let r=h(n+1),i=oK(e);d.set(r,i),t&&i.signature&&t.set(r,i.signature)}),(r=e.emitSignatures)==null||r.forEach(e=>{if(_t(e))t.delete(h(e));else{let n=h(e[0]);t.set(n,!gt(e[1])&&!e[1].length?[t.get(n)]:e[1])}});let n=e.affectedFilesPendingEmit?xG(e.options||{}):void 0;o={fileInfos:d,compilerOptions:e.options?pI(e.options,m):{},referencedMap:_(e.referencedMap,e.options??{}),semanticDiagnosticsPerFile:v(e.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:y(e.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,changedFilesSet:f,affectedFilesPendingEmit:e.affectedFilesPendingEmit&&nt(e.affectedFilesPendingEmit,e=>h(_t(e)?e:e[0]),e=>sK(e,n)),latestChangedDtsFile:u,emitSignatures:t?.size?t:void 0,hasErrors:e.errors,checkPending:e.checkPending}}return{state:o,getProgram:Ot,getProgramOrUndefined:Ct,releaseProgram:bt,getCompilerOptions:()=>o.compilerOptions,getSourceFile:Ot,getSourceFiles:Ot,getOptionsDiagnostics:Ot,getGlobalDiagnostics:Ot,getConfigFileParsingDiagnostics:Ot,getSyntacticDiagnostics:Ot,getDeclarationDiagnostics:Ot,getSemanticDiagnostics:Ot,emit:Ot,getAllDependencies:Ot,getCurrentDirectory:Ot,emitNextAffectedFile:Ot,getSemanticDiagnosticsOfNextAffectedFile:Ot,emitBuildInfo:Ot,close:bt,hasChangedEmitSignature:xt};function p(e){return yo(e,i,a)}function m(e){return po(e,i)}function h(e){return s[e-1]}function g(e){return l[e-1]}function _(e,t){let n=_G.createReferencedMap(t);return!n||!e||e.forEach(([e,t])=>n.set(h(e),g(t))),n}function v(e){let t=new Map(N(d.keys(),e=>f.has(e)?void 0:[e,c]));return e?.forEach(e=>{_t(e)?t.delete(h(e)):t.set(h(e[0]),e[1])}),t}function y(e){return e&&nt(e,e=>h(e[0]),e=>e[1])}}function uK(e,t,n){let r=$a(po(t,n.getCurrentDirectory())),i=ln(n.useCaseSensitiveFileNames()),a=new Map,o=0,s=new Map,c=new Map(e.resolvedRoot);return e.fileInfos.forEach((t,n)=>{let s=yo(e.fileNames[n],r,i),c=gt(t)?t:t.version;if(a.set(s,c),oyo(e,r,i))}function fK(e,t){return{state:void 0,getProgram:n,getProgramOrUndefined:()=>e.program,releaseProgram:()=>e.program=void 0,getCompilerOptions:()=>e.compilerOptions,getSourceFile:e=>n().getSourceFile(e),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:e=>n().getOptionsDiagnostics(e),getGlobalDiagnostics:e=>n().getGlobalDiagnostics(e),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(e,t)=>n().getSyntacticDiagnostics(e,t),getDeclarationDiagnostics:(e,t)=>n().getDeclarationDiagnostics(e,t),getSemanticDiagnostics:(e,t)=>n().getSemanticDiagnostics(e,t),emit:(e,t,r,i,a)=>n().emit(e,t,r,i,a),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:Ot,getCurrentDirectory:()=>n().getCurrentDirectory(),close:bt};function n(){return H.checkDefined(e.program)}}function pK(e,t,n,r,i,a){return iK(0,eK(e,t,n,r,i,a))}function mK(e,t,n,r,i,a){return iK(1,eK(e,t,n,r,i,a))}function hK(e,t,n,r,i,a){let{newProgram:o,configFileParsingDiagnostics:s}=eK(e,t,n,r,i,a);return fK({program:o,compilerOptions:o.getCompilerOptions()},s)}function gK(e){return $t(e,`/node_modules/.staging`)?en(e,`/.staging`):F(xa,t=>e.includes(t))?void 0:e}function _K(e,t){if(t<=1)return 1;let n=1,r=e[0].search(/[a-z]:/i)===0;if(e[0]!==Fa&&!r&&e[1].search(/[a-z]\$$/i)===0){if(t===2)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function vK(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let n=_K(e,t);return t>n+1}function yK(e){return vK(ao(e))}function bK(e){return SK($a(e))}function xK(e,t){if(t.lengthi.length+1?EK(l,c,Math.max(i.length+1,u+1),f):{dir:n,dirPath:r,nonRecursive:!0}:TK(l,c,c.length-1,u,d,i,f,s)}function TK(e,t,n,r,i,a,o,s){if(i!==-1)return EK(e,t,i+1,o);let c=!0,l=n;if(!s){for(let e=0;e=n&&r+2Nre(r,i,a,e,n,t,o)}}function Nre(e,t,n,r,i,a,o){let s=kK(e),c=QL(n,r,i,s,t,a,o);if(!e.getGlobalTypingsCacheLocation)return c;let l=e.getGlobalTypingsCacheLocation();if(l!==void 0&&!tc(n)&&!(c.resolvedModule&&vw(c.resolvedModule.extension))){let{resolvedModule:r,failedLookupLocations:a,affectingLocations:o,resolutionDiagnostics:u}=az(H.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,i,s,l,t);if(r)return c.resolvedModule=r,c.failedLookupLocations=xL(c.failedLookupLocations,a),c.affectingLocations=xL(c.affectingLocations,o),c.resolutionDiagnostics=xL(c.resolutionDiagnostics,u),c}return c}function jK(e,t,n){let r,i,a,o=new Set,s=new Set,l=new Set,u=new Map,d=new Map,f=!1,p,h,g,_,v,y=!1,b=kt(()=>e.getCurrentDirectory()),x=e.getCachedDirectoryStructureHost(),S=new Map,C=qL(b(),e.getCanonicalFileName,e.getCompilationSettings()),w=new Map,T=JL(b(),e.getCanonicalFileName,e.getCompilationSettings(),C.getPackageJsonInfoCache(),C.optionsToRedirectsKey),E=new Map,D=qL(b(),e.getCanonicalFileName,YL(e.getCompilationSettings()),C.getPackageJsonInfoCache()),O=new Map,k=new Map,ee=OK(t,b),te=e.toPath(ee),ne=ao(te),re=vK(ne),ie=new Map,ae=new Map,A=new Map,j=new Map;return{rootDirForResolution:t,resolvedModuleNames:S,resolvedTypeReferenceDirectives:w,resolvedLibraries:E,resolvedFileToResolution:u,resolutionsWithFailedLookups:s,resolutionsWithOnlyAffectingLocations:l,directoryWatchesOfFailedLookups:O,fileWatchesOfAffectingLocations:k,packageDirWatchers:ae,dirPathToSymlinkPackageRefCount:A,watchFailedLookupLocationsOfExternalModuleResolutions:xe,getModuleResolutionCache:()=>C,startRecordingFilesWithChangedResolutions:oe,finishRecordingFilesWithChangedResolutions:se,startCachingPerDirectoryResolution:le,finishCachingPerDirectoryResolution:de,resolveModuleNameLiterals:_e,resolveTypeReferenceDirectiveReferences:ge,resolveLibrary:ve,resolveSingleModuleNameWithoutWatching:ye,removeResolutionsFromProjectReferenceRedirects:Fe,removeResolutionsOfFile:Ie,hasChangedAutomaticTypeDirectiveNames:()=>f,invalidateResolutionOfFile:Re,invalidateResolutionsOfFailedLookupLocations:He,setFilesWithInvalidatedNonRelativeUnresolvedImports:ze,createHasInvalidatedResolutions:P,isFileWithInvalidatedNonRelativeUnresolvedImports:ce,updateTypeRootsWatch:qe,closeTypeRootsWatch:Ge,clear:M,onChangesAffectModuleResolution:N};function M(){zx(O,rW),zx(k,rW),ie.clear(),ae.clear(),A.clear(),o.clear(),Ge(),S.clear(),w.clear(),u.clear(),s.clear(),l.clear(),g=void 0,_=void 0,v=void 0,h=void 0,p=void 0,y=!1,C.clear(),T.clear(),C.update(e.getCompilationSettings()),T.update(e.getCompilationSettings()),D.clear(),d.clear(),E.clear(),f=!1}function N(){y=!0,C.clearAllExceptPackageJsonInfoCache(),T.clearAllExceptPackageJsonInfoCache(),C.update(e.getCompilationSettings()),T.update(e.getCompilationSettings())}function oe(){r=[]}function se(){let e=r;return r=void 0,e}function ce(e){if(!a)return!1;let t=a.get(e);return!!t&&!!t.length}function P(e,t){He();let n=i;return i=void 0,{hasInvalidatedResolutions:t=>e(t)||y||!!n?.has(t)||ce(t),hasInvalidatedLibResolutions:e=>t(e)||!!E?.get(e)?.isInvalidated}}function le(){C.isReadonly=void 0,T.isReadonly=void 0,D.isReadonly=void 0,C.getPackageJsonInfoCache().isReadonly=void 0,C.clearAllExceptPackageJsonInfoCache(),T.clearAllExceptPackageJsonInfoCache(),D.clearAllExceptPackageJsonInfoCache(),Ee(),ie.clear()}function ue(t){E.forEach((n,r)=>{(t?.resolvedLibReferences)?.has(r)||(je(n,e.toPath(WW(e.getCompilationSettings(),b(),r)),zf),E.delete(r))})}function de(e,t){a=void 0,y=!1,Ee(),e!==t&&(ue(e),e?.getSourceFiles().forEach(e=>{let t=e.packageJsonLocations?.length??0,n=d.get(e.resolvedPath)??c;for(let r=n.length;rt)for(let e=t;e{let r=e?.getSourceFileByPath(n);(!r||r.resolvedPath!==n)&&(t.forEach(e=>k.get(e).files--),d.delete(n))})),O.forEach(pe),k.forEach(me),ae.forEach(fe),f=!1,C.isReadonly=!0,T.isReadonly=!0,D.isReadonly=!0,C.getPackageJsonInfoCache().isReadonly=!0,ie.clear()}function fe(e,t){e.dirPathToWatcher.size===0&&ae.delete(t)}function pe(e,t){e.refCount===0&&(O.delete(t),e.watcher.close())}function me(e,t){e.files===0&&e.resolutions===0&&!e.symlinks?.size&&(k.delete(t),e.watcher.close())}function he({entries:t,containingFile:n,containingSourceFile:i,redirectedReference:a,options:o,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:u,deferWatchingNonRelativeResolution:d,shouldRetryResolution:f,logChanges:p}){let m=e.toPath(n),h=s.get(m)||s.set(m,WL()).get(m),g=[],_=p&&ce(m),v=e.getCurrentProgram(),b=v&&v.getRedirectFromSourceFile(n)?.resolvedRef,x=b?!a||a.sourceFile.path!==b.sourceFile.path:!!a,C=WL();for(let c of t){let t=l.nameAndMode.getName(c),v=l.nameAndMode.getMode(c,i,a?.commandLine.options||o),b=h.get(t,v);if(!C.has(t,v)&&(y||x||!b||b.isInvalidated||_&&!tc(t)&&f(b))){let n=b;b=l.resolve(t,v),e.onDiscoveredSymlink&&Pre(b)&&e.onDiscoveredSymlink(),h.set(t,v,b),b!==n&&(xe(t,b,m,u,d),n&&je(n,m,u)),p&&r&&!w(n,b)&&(r.push(m),p=!1)}else{let r=kK(e);if(fL(o,r)&&!C.has(t,v)){let e=u(b);dL(r,s===S?e?.resolvedFileName?e.packageId?G.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:G.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:G.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:e?.resolvedFileName?e.packageId?G.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:G.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:G.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,e?.resolvedFileName,e?.packageId&&Wf(e.packageId))}}H.assert(b!==void 0&&!b.isInvalidated),C.set(t,v,!0),g.push(b)}return c?.forEach(e=>C.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i,a?.commandLine.options||o),!0)),h.size()!==C.size()&&h.forEach((e,t,n)=>{C.has(t,n)||(je(e,m,u),h.delete(t,n))}),g;function w(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=u(e),r=u(t);return n===r?!0:!n||!r?!1:n.resolvedFileName===r.resolvedFileName}}function ge(t,n,r,i,a,o){return he({entries:t,containingFile:n,containingSourceFile:a,redirectedReference:r,options:i,reusedNames:o,perFileCache:w,loader:VW(n,r,i,kK(e),T),getResolutionWithResolvedFileName:Bf,shouldRetryResolution:e=>e.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function _e(t,r,i,a,o,s){return he({entries:t,containingFile:r,containingSourceFile:o,redirectedReference:i,options:a,reusedNames:s,perFileCache:S,loader:AK(r,i,a,e,C),getResolutionWithResolvedFileName:zf,shouldRetryResolution:e=>!e.resolvedModule||!yw(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})}function ve(t,n,r,i){let a=kK(e),o=E?.get(i);if(!o||o.isInvalidated){let s=o;o=XL(t,n,r,a,D);let c=e.toPath(n);xe(t,o,c,zf,!1),E.set(i,o),s&&je(s,c,zf)}else if(fL(r,a)){let e=zf(o);dL(a,e?.resolvedFileName?e.packageId?G.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:G.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:G.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,e?.resolvedFileName,e?.packageId&&Wf(e.packageId))}return o}function ye(t,n){var r;let i=e.toPath(n),a=S.get(i)?.get(t,void 0);if(a&&!a.isInvalidated)return a;let o=e.beforeResolveSingleModuleNameWithoutWatching?.call(e,C),s=kK(e),c=QL(t,n,e.getCompilationSettings(),s,C);return(r=e.afterResolveSingleModuleNameWithoutWatching)==null||r.call(e,C,t,n,c,o),c}function be(e){return $t(e,`/node_modules/@types`)}function xe(t,n,r,i,a){if((n.files??=new Set).add(r),n.files.size!==1)return;!a||tc(t)?Ce(n):o.add(n);let s=i(n);if(s&&s.resolvedFileName){let t=e.toPath(s.resolvedFileName),r=u.get(t);r||u.set(t,r=new Set),r.add(n)}}function Se(t,n){let r=wK(t,e.toPath(t),ee,te,ne,re,b,e.preferNonRecursiveWatch);if(r){let{dir:e,dirPath:t,nonRecursive:i,packageDir:a,packageDirPath:o}=r;t===te?(H.assert(i),H.assert(!a),n=!0):Oe(e,t,a,o,i)}return n}function Ce(e){H.assert(!!e.files?.size);let{failedLookupLocations:t,affectingLocations:n,alternateResult:r}=e;if(!t?.length&&!n?.length&&!r)return;(t?.length||r)&&s.add(e);let i=!1;if(t)for(let e of t)i=Se(e,i);r&&(i=Se(r,i)),i&&Oe(ee,te,void 0,void 0,!0),I(e,!t?.length&&!r)}function I(e,t){H.assert(!!e.files?.size);let{affectingLocations:n}=e;if(n?.length){t&&l.add(e);for(let e of n)we(e,!0)}}function we(t,n){let r=k.get(t);if(r){n?r.resolutions++:r.files++;return}let i=t,a=!1,o;e.realpath&&(i=e.realpath(t),t!==i&&(a=!0,o=k.get(i)));let s=n?1:0,c=n?0:1;if(!a||!o){let t={watcher:CK(e.toPath(i))?e.watchAffectingFileLocation(i,(t,n)=>{x?.addOrDeleteFile(t,e.toPath(i),n),Te(i,C.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):$K,resolutions:a?0:s,files:a?0:c,symlinks:void 0};k.set(i,t),a&&(o=t)}if(a){H.assert(!!o);let e={watcher:{close:()=>{let e=k.get(i);(e?.symlinks)?.delete(t)&&!e.symlinks.size&&!e.resolutions&&!e.files&&(k.delete(i),e.watcher.close())}},resolutions:s,files:c,symlinks:void 0};k.set(t,e),(o.symlinks??=new Set).add(t)}}function Te(t,n){var r;let i=k.get(t);i?.resolutions&&(h??=new Set).add(t),i?.files&&(p??=new Set).add(t),(r=i?.symlinks)==null||r.forEach(e=>Te(e,n)),n?.delete(e.toPath(t))}function Ee(){o.forEach(Ce),o.clear()}function De(t,n,r,i,a){H.assert(!a);let o=ie.get(i),s=ae.get(i);if(o===void 0){let t=e.realpath(r);o=t!==r&&e.toPath(t)!==i,ie.set(i,o),s?s.isSymlink!==o&&(s.dirPathToWatcher.forEach(e=>{Me(s.isSymlink?i:n),e.watcher=l()}),s.isSymlink=o):ae.set(i,s={dirPathToWatcher:new Map,isSymlink:o})}else H.assertIsDefined(s),H.assert(o===s.isSymlink);let c=s.dirPathToWatcher.get(n);c?c.refCount++:(s.dirPathToWatcher.set(n,{watcher:l(),refCount:1}),o&&A.set(n,(A.get(n)??0)+1));function l(){return o?ke(r,i,a):ke(t,n,a)}}function Oe(t,n,r,i,a){!i||!e.realpath?ke(t,n,a):De(t,n,r,i,a)}function ke(e,t,n){let r=O.get(t);return r?(H.assert(!!n==!!r.nonRecursive),r.refCount++):O.set(t,r={watcher:Ne(e,t,n),refCount:1,nonRecursive:n}),r}function Ae(t,n){let r=wK(t,e.toPath(t),ee,te,ne,re,b,e.preferNonRecursiveWatch);if(r){let{dirPath:t,packageDirPath:i}=r;if(t===te)n=!0;else if(i&&e.realpath){let e=ae.get(i),n=e.dirPathToWatcher.get(t);if(n.refCount--,n.refCount===0&&(Me(e.isSymlink?i:t),e.dirPathToWatcher.delete(t),e.isSymlink)){let e=A.get(t)-1;e===0?A.delete(t):A.set(t,e)}}else Me(t)}return n}function je(t,n,r){if(H.checkDefined(t.files).delete(n),t.files.size)return;t.files=void 0;let i=r(t);if(i&&i.resolvedFileName){let n=e.toPath(i.resolvedFileName),r=u.get(n);r?.delete(t)&&!r.size&&u.delete(n)}let{failedLookupLocations:a,affectingLocations:o,alternateResult:c}=t;if(s.delete(t)){let e=!1;if(a)for(let t of a)e=Ae(t,e);c&&(e=Ae(c,e)),e&&Me(te)}else o?.length&&l.delete(t);if(o)for(let e of o){let t=k.get(e);t.resolutions--}}function Me(e){let t=O.get(e);t.refCount--}function Ne(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,t=>{let r=e.toPath(t);x&&x.addOrDeleteFileOrDirectory(t,r),Be(r,n===r)},r?0:1)}function Pe(e,t,n){let r=e.get(t);r&&(r.forEach(e=>je(e,t,n)),e.delete(t))}function Fe(t){if(!qa(t,`.json`))return;let n=e.getCurrentProgram();if(!n)return;let r=n.getResolvedProjectReferenceByPath(t);r&&r.commandLine.fileNames.forEach(t=>Ie(e.toPath(t)))}function Ie(e){Pe(S,e,zf),Pe(w,e,Bf)}function Le(e,t){if(!e)return!1;let n=!1;return e.forEach(e=>{if(!(e.isInvalidated||!t(e))){e.isInvalidated=n=!0;for(let t of H.checkDefined(e.files))(i??=new Set).add(t),f||=$t(t,UW)}}),n}function Re(t){Ie(t);let n=f;Le(u.get(t),St)&&f&&!n&&e.onChangedAutomaticTypeDirectiveNames()}function ze(e){H.assert(a===e||a===void 0),a=e}function Be(t,n){if(n)(v||=new Set).add(t);else{let n=gK(t);if(!n||(t=n,e.fileIsOpen(t)))return!1;let r=$a(t);if(be(t)||Ro(t)||be(r)||Ro(r))(g||=new Set).add(t),(_||=new Set).add(t);else{if($U(e.getCurrentProgram(),t)||qa(t,`.map`))return!1;(g||=new Set).add(t),(_||=new Set).add(t);let n=pR(t,!0);n&&(_||=new Set).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ve(){let e=C.getPackageJsonInfoCache().getInternalMap();e&&(g||_||v)&&e.forEach((t,n)=>We(n)?e.delete(n):void 0)}function He(){var t;if(y)return p=void 0,Ve(),(g||_||v||h)&&Le(E,Ue),g=void 0,_=void 0,v=void 0,h=void 0,!0;let n=!1;return p&&=((t=e.getCurrentProgram())==null||t.getSourceFiles().forEach(e=>{F(e.packageJsonLocations,e=>p.has(e))&&((i??=new Set).add(e.path),n=!0)}),void 0),!g&&!_&&!v&&!h?n:(n=Le(s,Ue)||n,Ve(),g=void 0,_=void 0,v=void 0,n=Le(l,L)||n,h=void 0,n)}function Ue(t){return L(t)?!0:!g&&!_&&!v?!1:t.failedLookupLocations?.some(t=>We(e.toPath(t)))||!!t.alternateResult&&We(e.toPath(t.alternateResult))}function We(e){return g?.has(e)||m(_?.keys()||[],t=>pn(e,t)?!0:void 0)||m(v?.keys()||[],t=>e.length>t.length&&pn(e,t)&&(Ha(t)||e[t.length]===Fa)?!0:void 0)}function L(e){return!!h&&e.affectingLocations?.some(e=>h.has(e))}function Ge(){zx(j,Ax)}function Ke(t){return Je(t)?e.watchTypeRootsDirectory(t,n=>{let r=e.toPath(n);x&&x.addOrDeleteFileOrDirectory(n,r),f=!0,e.onChangedAutomaticTypeDirectiveNames();let i=DK(t,e.toPath(t),te,ne,re,b,e.preferNonRecursiveWatch,e=>O.has(e)||A.has(e));i&&Be(r,i===r)},1):$K}function qe(){let t=e.getCompilationSettings();if(t.types){Ge();return}let n=AL(t,{getCurrentDirectory:b});n?Vx(j,new Set(n),{createNewValue:Ke,onDeleteValue:Ax}):Ge()}function Je(t){return e.getCompilationSettings().typeRoots?!0:bK(e.toPath(t))}}function Pre(e){return!!(e.resolvedModule?.originalPath||e.resolvedTypeReferenceDirective?.originalPath)}var MK=Na?{getCurrentDirectory:()=>Na.getCurrentDirectory(),getNewLine:()=>Na.newLine,getCanonicalFileName:ln(Na.useCaseSensitiveFileNames)}:void 0;function NK(e,t){let n=e===Na&&MK?MK:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:ln(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(mW(t,n));let r=[,];return t=>{r[0]=t,e.write(EW(r,n)+n.getNewLine()),r[0]=void 0}}function PK(e,t,n){return e.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&C(FK,t.code)?(e.clearScreen(),!0):!1}var FK=[G.Starting_compilation_in_watch_mode.code,G.File_change_detected_Starting_incremental_compilation.code];function Fre(e,t){return C(FK,e.code)?t+t:t}function IK(e){return e.now?e.now().toLocaleTimeString(`en-US`,{timeZone:`UTC`}).replace(` `,` `):new Date().toLocaleTimeString()}function LK(e,t){return t?(t,n,r)=>{PK(e,t,r);let i=`[${CW(IK(e),`\x1B[90m`)}] `;i+=`${DW(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i=``;PK(e,t,r)||(i+=n),i+=`${IK(e)} - `,i+=`${DW(t.messageText,e.newLine)}${Fre(t,n)}`,e.write(i)}}function RK(e,t,n,r,i,a){let o=i;o.onUnRecoverableConfigFileDiagnostic=e=>lq(i,a,e);let s=NF(e,t,o,n,r);return o.onUnRecoverableConfigFileDiagnostic=void 0,s}function zK(e){return T(e,e=>e.category===1)}function BK(e){return E(e,e=>e.category===1).map(e=>{if(e.file!==void 0)return`${e.file.fileName}`}).map(t=>{if(t===void 0)return;let n=y(e,e=>e.file!==void 0&&e.file.fileName===t);if(n!==void 0){let{line:e}=gs(n.file,n.start);return{fileName:t,line:e+1}}})}function VK(e){return e===1?G.Found_1_error_Watching_for_file_changes:G.Found_0_errors_Watching_for_file_changes}function HK(e,t){let n=CW(`:`+e.line,`\x1B[90m`);return Ua(e.fileName)&&Ua(t)?No(t,e.fileName,!1)+n:e.fileName+n}function UK(e,t,n,r){if(e===0)return``;let i=t.filter(e=>e!==void 0),a=i.map(e=>`${e.fileName}:${e.line}`).filter((e,t,n)=>n.indexOf(e)===t),o=i[0]&&HK(i[0],r.getCurrentDirectory()),s;s=e===1?t[0]===void 0?[G.Found_1_error]:[G.Found_1_error_in_0,o]:a.length===0?[G.Found_0_errors,e]:a.length===1?[G.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,o]:[G.Found_0_errors_in_1_files,e,a.length];let c=bS(...s),l=a.length>1?Ire(i,r):``;return`${n}${DW(c.messageText,n)}${n}${n}${l}`}function Ire(e,t){let n=e.filter((e,t,n)=>t===n.findIndex(t=>t?.fileName===e?.fileName));if(n.length===0)return``;let r=e=>Math.log(e)*Math.LOG10E+1,i=n.map(t=>[t,T(e,e=>e.fileName===t.fileName)]),a=Rt(i,0,e=>e[1]),o=G.Errors_Files.message,s=o.split(` `)[0].length,c=Math.max(s,r(a)),l=Math.max(r(a)-s,0),u=``;return u+=` `.repeat(l)+o+` `,i.forEach(e=>{let[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,a=i{t(e.fileName)})}function GK(e,t){var n,r;let i=e.getFileIncludeReasons(),a=t=>Po(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(let o of e.getSourceFiles())t(`${XK(o,a)}`),(n=i.get(o.path))==null||n.forEach(n=>t(` ${YK(e,n,a).messageText}`)),(r=KK(o,e.getCompilerOptionsForFile(o),a))==null||r.forEach(e=>t(` ${e.messageText}`))}function KK(e,t,n){let r;if(e.path!==e.resolvedPath&&(r??=[]).push(SS(void 0,G.File_is_output_of_project_reference_source_0,XK(e.originalFileName,n))),e.redirectInfo&&(r??=[]).push(SS(void 0,G.File_redirects_to_file_0,XK(e.redirectInfo.redirectTarget,n))),Am(e))switch(iG(e,t)){case 99:e.packageJsonScope&&(r??=[]).push(SS(void 0,G.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,XK(ze(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(r??=[]).push(SS(void 0,e.packageJsonScope.contents.packageJsonContent.type?G.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:G.File_is_CommonJS_module_because_0_does_not_have_field_type,XK(ze(e.packageJsonLocations),n))):e.packageJsonLocations?.length&&(r??=[]).push(SS(void 0,G.File_is_CommonJS_module_because_package_json_was_not_found));break}return r}function qK(e,t){let n=e.getCompilerOptions().configFile;if(!n?.configFileSpecs?.validatedFilesSpec)return;let r=e.getCanonicalFileName(t),i=$a(po(n.fileName,e.getCurrentDirectory())),a=x(n.configFileSpecs.validatedFilesSpec,t=>e.getCanonicalFileName(po(t,i))===r);return a===-1?void 0:n.configFileSpecs.validatedFilesSpecBeforeSubstitution[a]}function JK(e,t){let n=e.getCompilerOptions().configFile;if(!n?.configFileSpecs?.validatedIncludeSpecs)return;if(n.configFileSpecs.isDefaultIncludeSpec)return!0;let r=qa(t,`.json`),i=$a(po(n.fileName,e.getCurrentDirectory())),a=e.useCaseSensitiveFileNames(),o=x(n?.configFileSpecs?.validatedIncludeSpecs,e=>{if(r&&!$t(e,`.json`))return!1;let n=NC(e,i,`files`);return!!n&&LC(`(?:${n})$`,a).test(t)});return o===-1?void 0:n.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[o]}function YK(e,t,n){let r=e.getCompilerOptions();if(KW(t)){let r=JW(e,t),i=qW(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`,a;switch(H.assert(qW(r)||t.kind===3,`Only synthetic references are imports`),t.kind){case 3:a=qW(r)?r.packageId?G.Imported_via_0_from_file_1_with_packageId_2:G.Imported_via_0_from_file_1:r.text===_f?r.packageId?G.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:G.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?G.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:G.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:H.assert(!r.packageId),a=G.Referenced_via_0_from_file_1;break;case 5:a=r.packageId?G.Type_library_referenced_via_0_from_file_1_with_packageId_2:G.Type_library_referenced_via_0_from_file_1;break;case 7:H.assert(!r.packageId),a=G.Library_referenced_via_0_from_file_1;break;default:H.assertNever(t)}return SS(void 0,a,i,XK(r.file,n),r.packageId&&Wf(r.packageId))}switch(t.kind){case 0:if(!r.configFile?.configFileSpecs)return SS(void 0,G.Root_file_specified_for_compilation);let i=po(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(qK(e,i))return SS(void 0,G.Part_of_files_list_in_tsconfig_json);let a=JK(e,i);return gt(a)?SS(void 0,G.Matched_by_include_pattern_0_in_1,a,XK(r.configFile,n)):SS(void 0,a?G.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:G.Root_file_specified_for_compilation);case 1:case 2:let o=t.kind===2,s=H.checkDefined(e.getResolvedProjectReferences()?.[t.index]);return SS(void 0,r.outFile?o?G.Output_from_referenced_project_0_included_because_1_specified:G.Source_from_referenced_project_0_included_because_1_specified:o?G.Output_from_referenced_project_0_included_because_module_is_specified_as_none:G.Source_from_referenced_project_0_included_because_module_is_specified_as_none,XK(s.sourceFile.fileName,n),r.outFile?`--outFile`:`--out`);case 8:return SS(void 0,...r.types?t.packageId?[G.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Wf(t.packageId)]:[G.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[G.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Wf(t.packageId)]:[G.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(t.index!==void 0)return SS(void 0,G.Library_0_specified_in_compilerOptions,r.lib[t.index]);let e=cC(zS(r));return SS(void 0,...e?[G.Default_library_for_target_0,e]:[G.Default_library])}default:H.assertNever(t)}}function XK(e,t){let n=gt(e)?e:e.fileName;return t?t(n):n}function ZK(e,t,n,r,i,a,o,s){let l=e.getCompilerOptions(),u=e.getConfigFileParsingDiagnostics().slice(),f=u.length;Ee(u,e.getSyntacticDiagnostics(void 0,a)),u.length===f&&(Ee(u,e.getOptionsDiagnostics(a)),l.listFilesOnly||(Ee(u,e.getGlobalDiagnostics(a)),u.length===f&&Ee(u,e.getSemanticDiagnostics(void 0,a)),l.noEmit&&YS(l)&&u.length===f&&Ee(u,e.getDeclarationDiagnostics(void 0,a))));let p=l.listFilesOnly?{emitSkipped:!0,diagnostics:c}:e.emit(void 0,i,a,o,s);Ee(u,p.diagnostics);let m=nc(u);if(m.forEach(t),n){let t=e.getCurrentDirectory();d(p.emittedFiles,e=>{n(`TSFILE: ${po(e,t)}`)}),Lre(e,n)}return r&&r(zK(m),BK(m)),{emitResult:p,diagnostics:m}}function QK(e,t,n,r,i,a,o,s){let{emitResult:c,diagnostics:l}=ZK(e,t,n,r,i,a,o,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}var $K={close:bt},eq=()=>$K;function tq(e=Na,t){return{onWatchStatusChange:t||LK(e),watchFile:ut(e,e.watchFile)||eq,watchDirectory:ut(e,e.watchDirectory)||eq,setTimeout:ut(e,e.setTimeout)||bt,clearTimeout:ut(e,e.clearTimeout)||bt,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var nq={ConfigFile:`Config file`,ExtendedConfigFile:`Extended config file`,SourceFile:`Source file`,MissingFile:`Missing file`,WildcardDirectory:`Wild card directory`,FailedLookupLocations:`Failed Lookup Locations`,AffectingFileLocation:`File location affecting resolution`,TypeRoots:`Type roots`,ConfigFileOfReferencedProject:`Config file of referened project`,ExtendedConfigOfReferencedProject:`Extended config file of referenced project`,WildcardDirectoryOfReferencedProject:`Wild card directory of referenced project`,PackageJson:`package.json file`,ClosedScriptInfo:`Closed Script info`,ConfigFileForInferredRoot:`Config file for the inferred project root`,NodeModules:`node_modules for closed script infos and package.jsons affecting module specifier cache`,MissingSourceMapFile:`Missing source map file`,NoopConfigFileForInferredRoot:`Noop Config file for the inferred project root`,MissingGeneratedFile:`Missing generated file`,NodeModulesForModuleSpecifierCache:`node_modules for module specifier cache invalidation`,TypingInstallerLocationFile:`File location for typing installer`,TypingInstallerLocationDirectory:`Directory location for typing installer`};function rq(e,t){let n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=n===0?bt:t=>e.trace(t),i=tW(e,n,r);return i.writeLog=r,i}function iq(e,t,n=e){let r=e.useCaseSensitiveFileNames(),i={getSourceFile:cW((t,n)=>n?e.readFile(t,n):i.readFile(t),void 0),getDefaultLibLocation:ut(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:lW((t,n,r)=>e.writeFile(t,n,r),t=>e.createDirectory(t),t=>e.directoryExists(t)),getCurrentDirectory:kt(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:ln(r),getNewLine:()=>ax(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:ut(e,e.trace),directoryExists:ut(n,n.directoryExists),getDirectories:ut(n,n.getDirectories),realpath:ut(e,e.realpath),getEnvironmentVariable:ut(e,e.getEnvironmentVariable)||(()=>``),createHash:ut(e,e.createHash),readDirectory:ut(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return i}function aq(e,t){if(t.match(RB)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){let i=t.charCodeAt(r);switch(i){case 10:r&&t.charCodeAt(r-1)===13&&r--;case 13:break;default:if(i<127||!ys(i)){n=r;continue}break}let a=t.substring(n,e);if(a.match(zB)){t=t.substring(0,n);break}else if(!a.match(BB))break;e=n}}return(e.createHash||ra)(t)}function oq(e){let t=e.getSourceFile;e.getSourceFile=(...n)=>{let r=t.call(e,...n);return r&&(r.version=aq(e,r.text)),r}}function sq(e,t){let n=kt(()=>$a(mo(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:kt(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:e=>lo(n(),ic(e)),fileExists:t=>e.fileExists(t),readFile:(t,n)=>e.readFile(t,n),directoryExists:t=>e.directoryExists(t),getDirectories:t=>e.getDirectories(t),readDirectory:(t,n,r,i,a)=>e.readDirectory(t,n,r,i,a),realpath:ut(e,e.realpath),getEnvironmentVariable:ut(e,e.getEnvironmentVariable),trace:t=>e.write(t+e.newLine),createDirectory:t=>e.createDirectory(t),writeFile:(t,n,r)=>e.writeFile(t,n,r),createHash:ut(e,e.createHash),createProgram:t||mK,storeSignatureInfo:e.storeSignatureInfo,now:ut(e,e.now)}}function cq(e=Na,t,n,r){let i=t=>e.write(t+e.newLine),a=sq(e,t);return lt(a,tq(e,r)),a.afterProgramCreate=e=>{let t=e.getCompilerOptions(),r=ax(t);ZK(e,n,i,e=>a.onWatchStatusChange(bS(VK(e),e),r,t,e))},a}function lq(e,t,n){t(n),e.exit(1)}function uq({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:a,reportDiagnostic:o,reportWatchStatus:s}){let c=o||NK(i),l=cq(i,a,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>lq(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}function dq({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:a,reportDiagnostic:o,reportWatchStatus:s}){let c=cq(i,a,o||NK(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function fq(e){let t=e.system||Na,n=e.host||=mq(e.options,t),r=hq(e),i=QK(r,e.reportDiagnostic||NK(t),e=>n.trace&&n.trace(e),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(UK(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}function pq(e,t){let n=vU(e);if(!n)return;let r;if(t.getBuildInfo)r=t.getBuildInfo(n,e.configFilePath);else{let e=t.readFile(n);if(!e)return;r=RU(n,e)}if(!(!r||r.version!==o||!JG(r)))return lK(r,n,t)}function mq(e,t=Na){let n=uW(e,void 0,t);return n.createHash=ut(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,oq(n),dW(n,e=>yo(e,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function hq({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:a}){i||=mq(t),a||=mK;let o=pq(t,i);return a(e,t,i,o,n,r)}function gq(e,t,n,r,i,a,o,s){return mt(e)?dq({rootFiles:e,options:t,watchOptions:s,projectReferences:o,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:a}):uq({configFileName:e,optionsToExtend:t,watchOptionsToExtend:o,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:a})}function _q(e){let t,n,r,i,a=new Map([[void 0,void 0]]),o,s,c,l,u=e.extendedConfigCache,d=!1,f=new Map,p,m=!1,h=e.useCaseSensitiveFileNames(),g=e.getCurrentDirectory(),{configFileName:_,optionsToExtend:v={},watchOptionsToExtend:y,extraFileExtensions:b,createProgram:x}=e,{rootFiles:S,options:C,watchOptions:w,projectReferences:T}=e,E,D,O=!1,k=!1,ee=_===void 0?void 0:GU(e,g,h),te=ee||e,ne=lG(e,te),re=he();_&&e.configFileParsingResult&&(Fe(e.configFileParsingResult),re=he()),I(G.Starting_compilation_in_watch_mode),_&&!e.configFileParsingResult&&(re=ax(v),H.assert(!S),Pe(),re=he()),H.assert(C),H.assert(S);let{watchFile:ie,watchDirectory:ae,writeLog:A}=rq(e,C),j=ln(h);A(`Current directory: ${g} CaseSensitiveFileNames: ${h}`);let M;_&&(M=ie(_,ke,2e3,w,nq.ConfigFile));let N=iq(e,()=>C,te);oq(N);let oe=N.getSourceFile;N.getSourceFile=(e,...t)=>be(e,ge(e),...t),N.getSourceFileByPath=be,N.getNewLine=()=>re,N.fileExists=ye,N.onReleaseOldSourceFile=Ce,N.onReleaseParsedCommandLine=Re,N.toPath=ge,N.getCompilationSettings=()=>C,N.useSourceOfProjectReferenceRedirect=ut(e,e.useSourceOfProjectReferenceRedirect),N.preferNonRecursiveWatch=e.preferNonRecursiveWatch,N.watchDirectoryOfFailedLookupLocation=(e,t,n)=>ae(e,t,n,w,nq.FailedLookupLocations),N.watchAffectingFileLocation=(e,t)=>ie(e,t,2e3,w,nq.AffectingFileLocation),N.watchTypeRootsDirectory=(e,t,n)=>ae(e,t,n,w,nq.TypeRoots),N.getCachedDirectoryStructureHost=()=>ee,N.scheduleInvalidateResolutionsOfFailedLookupLocations=Ee,N.onInvalidatedResolution=Oe,N.onChangedAutomaticTypeDirectiveNames=Oe,N.fileIsOpen=xt,N.getCurrentProgram=de,N.writeLog=A,N.getParsedCommandLine=Ie;let se=jK(N,_?$a(po(_,g)):g,!1);N.resolveModuleNameLiterals=ut(e,e.resolveModuleNameLiterals),N.resolveModuleNames=ut(e,e.resolveModuleNames),!N.resolveModuleNameLiterals&&!N.resolveModuleNames&&(N.resolveModuleNameLiterals=se.resolveModuleNameLiterals.bind(se)),N.resolveTypeReferenceDirectiveReferences=ut(e,e.resolveTypeReferenceDirectiveReferences),N.resolveTypeReferenceDirectives=ut(e,e.resolveTypeReferenceDirectives),!N.resolveTypeReferenceDirectiveReferences&&!N.resolveTypeReferenceDirectives&&(N.resolveTypeReferenceDirectiveReferences=se.resolveTypeReferenceDirectiveReferences.bind(se)),N.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):se.resolveLibrary.bind(se),N.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?ut(e,e.getModuleResolutionCache):()=>se.getModuleResolutionCache();let ce=e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives?ut(e,e.hasInvalidatedResolutions)||St:xt,P=e.resolveLibrary?ut(e,e.hasInvalidatedLibResolutions)||St:xt;return t=pq(C,N),fe(),_?{getCurrentProgram:ue,getProgram:je,close:le,getResolutionCache:F}:{getCurrentProgram:ue,getProgram:je,updateRootFileNames:me,close:le,getResolutionCache:F};function le(){Te(),se.clear(),zx(f,e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}),M&&=(M.close(),void 0),u?.clear(),u=void 0,l&&=(zx(l,rW),void 0),i&&=(zx(i,rW),void 0),r&&=(zx(r,Ax),void 0),c&&=(zx(c,e=>{var t;(t=e.watcher)==null||t.close(),e.watcher=void 0,e.watchedDirectories&&zx(e.watchedDirectories,rW),e.watchedDirectories=void 0}),void 0),t=void 0}function F(){return se}function ue(){return t}function de(){return t&&t.getProgramOrUndefined()}function fe(){A(`Synchronizing program`),H.assert(C),H.assert(S),Te();let n=ue();m&&(re=he(),n&&Of(n.getCompilerOptions(),C)&&se.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:r,hasInvalidatedLibResolutions:i}=se.createHasInvalidatedResolutions(ce,P),{originalReadFile:o,originalFileExists:s,originalDirectoryExists:l,originalCreateDirectory:u,originalWriteFile:f,readFileWithCache:p}=dW(N,ge);return YW(de(),S,C,e=>Se(e,p),e=>N.fileExists(e),r,i,we,Ie,T)?k&&=(d&&I(G.File_change_detected_Starting_incremental_compilation),t=x(void 0,void 0,N,t,D,T),!1):(d&&I(G.File_change_detected_Starting_incremental_compilation),pe(r,i)),d=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),N.readFile=o,N.fileExists=s,N.directoryExists=l,N.createDirectory=u,N.writeFile=f,a?.forEach((e,t)=>{if(!t)We(),_&&Ge(ge(_),C,w,nq.ExtendedConfigFile);else{let n=c?.get(t);n&&Ke(e,t,n)}}),a=void 0,t}function pe(e,n){A(`CreatingProgramWith::`),A(` roots: ${JSON.stringify(S)}`),A(` options: ${JSON.stringify(C)}`),T&&A(` projectReferences: ${JSON.stringify(T)}`);let i=m||!de();m=!1,k=!1,se.startCachingPerDirectoryResolution(),N.hasInvalidatedResolutions=e,N.hasInvalidatedLibResolutions=n,N.hasChangedAutomaticTypeDirectiveNames=we;let a=de();if(t=x(S,C,N,t,D,T),se.finishCachingPerDirectoryResolution(t.getProgram(),a),XU(t.getProgram(),r||=new Map,He),i&&se.updateTypeRootsWatch(),p){for(let e of p)r.has(e)||f.delete(e);p=void 0}}function me(e){H.assert(!_,`Cannot update root file names with config file watch mode`),S=e,Oe()}function he(){return ax(C||v)}function ge(e){return yo(e,g,j)}function _e(e){return typeof e==`boolean`}function ve(e){return typeof e.version==`boolean`}function ye(e){let t=ge(e);return _e(f.get(t))?!1:te.fileExists(e)}function be(e,t,n,r,i){let a=f.get(t);if(_e(a))return;let o=typeof n==`object`?n.impliedNodeFormat:void 0;if(a===void 0||i||ve(a)||a.sourceFile.impliedNodeFormat!==o){let i=oe(e,n,r);if(a)i?(a.sourceFile=i,a.version=i.version,a.fileWatcher||=ze(t,e,Be,250,w,nq.SourceFile)):(a.fileWatcher&&a.fileWatcher.close(),f.set(t,!1));else if(i){let n=ze(t,e,Be,250,w,nq.SourceFile);f.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else f.set(t,!1);return i}return a.sourceFile}function xe(e){let t=f.get(e);t!==void 0&&(_e(t)?f.set(e,{version:!1}):t.version=!1)}function Se(e,t){let n=f.get(e);if(!n)return;if(n.version)return n.version;let r=t(e);return r===void 0?void 0:aq(N,r)}function Ce(e,t,n){let r=f.get(e.resolvedPath);r!==void 0&&(_e(r)?(p||=[]).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),f.delete(e.resolvedPath),n||se.removeResolutionsOfFile(e.path)))}function I(t){e.onWatchStatusChange&&e.onWatchStatusChange(bS(t),re,C||v)}function we(){return se.hasChangedAutomaticTypeDirectiveNames()}function Te(){return s?(e.clearTimeout(s),s=void 0,!0):!1}function Ee(){if(!e.setTimeout||!e.clearTimeout)return se.invalidateResolutionsOfFailedLookupLocations();A(`Scheduling invalidateFailedLookup${Te()?`, Cancelled earlier one`:``}`),s=e.setTimeout(De,250,`timerToInvalidateFailedLookupResolutions`)}function De(){s=void 0,se.invalidateResolutionsOfFailedLookupLocations()&&Oe()}function Oe(){!e.setTimeout||!e.clearTimeout||(o&&e.clearTimeout(o),A(`Scheduling update`),o=e.setTimeout(Ae,250,`timerToUpdateProgram`))}function ke(){H.assert(!!_),n=2,Oe()}function Ae(){o=void 0,d=!0,je()}function je(){switch(n){case 1:Me();break;case 2:Ne();break;default:fe();break}return ue()}function Me(){A(`Reloading new file names and options`),H.assert(C),H.assert(_),n=0,S=eL(C.configFile.configFileSpecs,po($a(_),g),C,ne,b),MI(S,po(_,g),C.configFile.configFileSpecs,D,O)&&(k=!0),fe()}function Ne(){H.assert(_),A(`Reloading config file: ${_}`),n=0,ee&&ee.clearCache(),Pe(),m=!0,(a??=new Map).set(void 0,void 0),fe()}function Pe(){H.assert(_),Fe(NF(_,v,ne,u||=new Map,y,b))}function Fe(e){S=e.fileNames,C=e.options,w=e.watchOptions,T=e.projectReferences,E=e.wildcardDirectories,D=XW(e).slice(),O=jI(e.raw),k=!0}function Ie(t){let n=ge(t),r=c?.get(n);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&r.updateLevel===1&&!e.getParsedCommandLine){A(`Reloading new file names and options`),H.assert(C);let e=eL(r.parsedCommandLine.options.configFile.configFileSpecs,po($a(t),g),C,ne);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.updateLevel=void 0,r.parsedCommandLine}}A(`Loading config file: ${t}`);let i=e.getParsedCommandLine?e.getParsedCommandLine(t):Le(t);return r?(r.parsedCommandLine=i,r.updateLevel=void 0):(c||=new Map).set(n,r={parsedCommandLine:i}),(a??=new Map).set(n,t),i}function Le(e){let t=ne.onUnRecoverableConfigFileDiagnostic;ne.onUnRecoverableConfigFileDiagnostic=bt;let n=NF(e,void 0,ne,u||=new Map,y);return ne.onUnRecoverableConfigFileDiagnostic=t,n}function Re(e){var t;let n=ge(e),r=c?.get(n);r&&(c.delete(n),r.watchedDirectories&&zx(r.watchedDirectories,rW),(t=r.watcher)==null||t.close(),JU(n,l))}function ze(e,t,n,r,i,a){return ie(t,(t,r)=>n(t,r,e),r,i,a)}function Be(e,t,n){Ve(e,n,t),t===2&&f.has(n)&&se.invalidateResolutionOfFile(n),xe(n),Oe()}function Ve(e,t,n){ee&&ee.addOrDeleteFile(e,t,n)}function He(e,t){return c?.has(e)?$K:ze(e,t,Ue,500,w,nq.MissingFile)}function Ue(e,t,n){Ve(e,n,t),t===0&&r.has(n)&&(r.get(n).close(),r.delete(n),xe(n),Oe())}function We(){ZU(i||=new Map,E,L)}function L(e,t){return ae(e,t=>{H.assert(_),H.assert(C);let r=ge(t);ee&&ee.addOrDeleteFileOrDirectory(t,r),xe(r),!QU({watchedDirPath:ge(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:_,extraFileExtensions:b,options:C,program:ue()||S,currentDirectory:g,useCaseSensitiveFileNames:h,writeLog:A,toPath:ge})&&n!==2&&(n=1,Oe())},t,w,nq.WildcardDirectory)}function Ge(e,t,r,i){qU(e,t,l||=new Map,(e,t)=>ie(e,(r,i)=>{Ve(e,t,i),u&&YU(u,t,ge);let a=l.get(t)?.projects;a?.size&&a.forEach(e=>{if(_&&ge(_)===e)n=2;else{let t=c?.get(e);t&&(t.updateLevel=2),se.removeResolutionsFromProjectReferenceRedirects(e)}Oe()})},2e3,r,i),ge)}function Ke(e,t,n){n.watcher||=ie(e,(n,r)=>{Ve(e,t,r);let i=c?.get(t);i&&(i.updateLevel=2),se.removeResolutionsFromProjectReferenceRedirects(t),Oe()},2e3,n.parsedCommandLine?.watchOptions||w,nq.ConfigFileOfReferencedProject),ZU(n.watchedDirectories||=new Map,n.parsedCommandLine?.wildcardDirectories,(r,i)=>ae(r,n=>{let i=ge(n);ee&&ee.addOrDeleteFileOrDirectory(n,i),xe(i);let a=c?.get(t);a?.parsedCommandLine&&(QU({watchedDirPath:ge(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:a.parsedCommandLine.options,program:a.parsedCommandLine.fileNames,currentDirectory:g,useCaseSensitiveFileNames:h,writeLog:A,toPath:ge})||a.updateLevel!==2&&(a.updateLevel=1,Oe()))},i,n.parsedCommandLine?.watchOptions||w,nq.WildcardDirectoryOfReferencedProject)),Ge(t,n.parsedCommandLine?.options,n.parsedCommandLine?.watchOptions||w,nq.ExtendedConfigOfReferencedProject)}}var vq=(e=>(e[e.Unbuildable=0]=`Unbuildable`,e[e.UpToDate=1]=`UpToDate`,e[e.UpToDateWithUpstreamTypes=2]=`UpToDateWithUpstreamTypes`,e[e.OutputMissing=3]=`OutputMissing`,e[e.ErrorReadingFile=4]=`ErrorReadingFile`,e[e.OutOfDateWithSelf=5]=`OutOfDateWithSelf`,e[e.OutOfDateWithUpstream=6]=`OutOfDateWithUpstream`,e[e.OutOfDateBuildInfoWithPendingEmit=7]=`OutOfDateBuildInfoWithPendingEmit`,e[e.OutOfDateBuildInfoWithErrors=8]=`OutOfDateBuildInfoWithErrors`,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))(vq||{});function yq(e){return qa(e,`.json`)?e:lo(e,`tsconfig.json`)}var Rre=new Date(-864e13);function zre(e,t,n){let r=e.get(t),i;return r||(i=n(),e.set(t,i)),r||i}function bq(e,t){return zre(e,t,()=>new Map)}function xq(e){return e.now?e.now():new Date}function Sq(e){return!!e&&!!e.buildOrder}function Cq(e){return Sq(e)?e.buildOrder:e}function wq(e,t){return n=>{let r=t?`[${CW(IK(e),`\x1B[90m`)}] `:`${IK(e)} - `;r+=`${DW(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function Tq(e,t,n,r){let i=sq(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):Ct,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):bt,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):bt,i.reportDiagnostic=n||NK(e),i.reportSolutionBuilderStatus=r||wq(e),i.now=ut(e,e.now),i}function Eq(e=Na,t,n,r,i){let a=Tq(e,t,n,r);return a.reportErrorSummary=i,a}function Dq(e=Na,t,n,r,i){let a=Tq(e,t,n,r);return lt(a,tq(e,i)),a}function Oq(e){let t={};return qP.forEach(n=>{qe(e,n.name)&&(t[n.name]=e[n.name])}),t.tscBuild=!0,t}function kq(e,t,n){return SJ(!1,e,t,n)}function Aq(e,t,n,r){return SJ(!0,e,t,n,r)}function Bre(e,t,n,r,i){let a=t,o=t,s=Oq(r),c=iq(a,()=>h.projectCompilerOptions);oq(c),c.getParsedCommandLine=e=>Pq(h,e,Mq(h,e)),c.resolveModuleNameLiterals=ut(a,a.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=ut(a,a.resolveTypeReferenceDirectiveReferences),c.resolveLibrary=ut(a,a.resolveLibrary),c.resolveModuleNames=ut(a,a.resolveModuleNames),c.resolveTypeReferenceDirectives=ut(a,a.resolveTypeReferenceDirectives),c.getModuleResolutionCache=ut(a,a.getModuleResolutionCache);let l,u;!c.resolveModuleNameLiterals&&!c.resolveModuleNames&&(l=qL(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>HW(e,t,n,r,i,a,l,RW),c.getModuleResolutionCache=()=>l),!c.resolveTypeReferenceDirectiveReferences&&!c.resolveTypeReferenceDirectives&&(u=JL(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,l?.getPackageJsonInfoCache(),l?.optionsToRedirectsKey),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>HW(e,t,n,r,i,a,u,VW));let d;c.resolveLibrary||=(d=qL(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,l?.getPackageJsonInfoCache()),(e,t,n)=>XL(e,t,n,a,d)),c.getBuildInfo=(e,t)=>rJ(h,e,Mq(h,t),void 0);let{watchFile:f,watchDirectory:p,writeLog:m}=rq(o,r),h={host:a,hostWithWatch:o,parseConfigFileHost:lG(a),write:ut(a,a.trace),options:r,baseCompilerOptions:s,rootNames:n,baseWatchOptions:i,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:c,moduleResolutionCache:l,typeReferenceDirectiveResolutionCache:u,libraryResolutionCache:d,buildOrder:void 0,readFileWithCache:e=>a.readFile(e),projectCompilerOptions:s,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:f,watchDirectory:p,writeLog:m};return h}function jq(e,t){return yo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Mq(e,t){let{resolvedConfigFilePaths:n}=e,r=n.get(t);if(r!==void 0)return r;let i=jq(e,t);return n.set(t,i),i}function Nq(e){return!!e.options}function Vre(e,t){let n=e.configFileCache.get(t);return n&&Nq(n)?n:void 0}function Pq(e,t,n){let{configFileCache:r}=e,i=r.get(n);if(i)return Nq(i)?i:void 0;yr(`SolutionBuilder::beforeConfigFileParsing`);let a,{parseConfigFileHost:o,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:u}=e,d;return u.getParsedCommandLine?(d=u.getParsedCommandLine(t),d||(a=bS(G.File_0_not_found,t))):(o.onUnRecoverableConfigFileDiagnostic=e=>a=e,d=NF(t,s,o,l,c),o.onUnRecoverableConfigFileDiagnostic=bt),r.set(n,d||a),yr(`SolutionBuilder::afterConfigFileParsing`),br(`SolutionBuilder::Config file parsing`,`SolutionBuilder::beforeConfigFileParsing`,`SolutionBuilder::afterConfigFileParsing`),d}function Fq(e,t){return yq(uo(e.compilerHost.getCurrentDirectory(),t))}function Iq(e,t){let n=new Map,r=new Map,i=[],a,o;for(let e of t)s(e);return o?{buildOrder:a||c,circularDiagnostics:o}:a||c;function s(t,c){let l=Mq(e,t);if(r.has(l))return;if(n.has(l)){c||(o||=[]).push(bS(G.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join(`\r `)));return}n.set(l,!0),i.push(t);let u=Pq(e,t,l);if(u&&u.projectReferences)for(let t of u.projectReferences)s(Fq(e,t.path),c||t.circular);i.pop(),r.set(l,!0),(a||=[]).push(t)}}function Lq(e){return e.buildOrder||Hre(e)}function Hre(e){let t=Iq(e,e.rootNames.map(t=>Fq(e,t)));e.resolvedConfigFilePaths.clear();let n=new Set(Cq(t).map(t=>Mq(e,t))),r={onDeleteValue:bt};return Bx(e.configFileCache,n,r),Bx(e.projectStatus,n,r),Bx(e.builderPrograms,n,r),Bx(e.diagnostics,n,r),Bx(e.projectPendingBuild,n,r),Bx(e.projectErrorsReported,n,r),Bx(e.buildInfoCache,n,r),Bx(e.outputTimeStamps,n,r),Bx(e.lastCachedPackageJsonLookups,n,r),e.watch&&(Bx(e.allWatchedConfigFiles,n,{onDeleteValue:Ax}),e.allWatchedExtendedConfigFiles.forEach(e=>{e.projects.forEach(t=>{n.has(t)||e.projects.delete(t)}),e.close()}),Bx(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(rW)}),Bx(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(Ax)}),Bx(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(Ax)})),e.buildOrder=t}function Rq(e,t,n){let r=t&&Fq(e,t),i=Lq(e);if(Sq(i))return i;if(r){let t=Mq(e,r);if(x(i,n=>Mq(e,n)===t)===-1)return}let a=r?Iq(e,[r]):i;return H.assert(!Sq(a)),H.assert(!n||r!==void 0),H.assert(!n||a[a.length-1]===r),n?a.slice(0,a.length-1):a}function zq(e){e.cache&&Bq(e);let{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:a,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:u,readFileWithCache:d}=dW(n,t=>jq(e,t),(...e)=>i.call(t,...e));e.readFileWithCache=d,t.getSourceFile=u,e.cache={originalReadFile:a,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function Bq(e){if(!e.cache)return;let{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:a,typeReferenceDirectiveResolutionCache:o,libraryResolutionCache:s}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,r.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),a?.clear(),o?.clear(),s?.clear(),e.cache=void 0}function Vq(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function Hq({projectPendingBuild:e},t,n){let r=e.get(t);(r===void 0||re.projectPendingBuild.set(Mq(e,t),0)),t&&t.throwIfCancellationRequested())}var Wq=(e=>(e[e.Build=0]=`Build`,e[e.UpdateOutputFileStamps=1]=`UpdateOutputFileStamps`,e))(Wq||{});function Gq(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function Kq(e,t,n,r,i){let a=!0;return{kind:1,project:t,projectPath:n,buildOrder:i,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{uJ(e,r,n),a=!1},done:()=>(a&&uJ(e,r,n),yr(`SolutionBuilder::Timestamps only updates`),Gq(e,n))}}function Ure(e,t,n,r,i,a,o){let s=0,l,u;return{kind:0,project:t,projectPath:n,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>f(wt),getProgram:()=>f(e=>e.getProgramOrUndefined()),getSourceFile:e=>f(t=>t.getSourceFile(e)),getSourceFiles:()=>p(e=>e.getSourceFiles()),getOptionsDiagnostics:e=>p(t=>t.getOptionsDiagnostics(e)),getGlobalDiagnostics:e=>p(t=>t.getGlobalDiagnostics(e)),getConfigFileParsingDiagnostics:()=>p(e=>e.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(e,t)=>p(n=>n.getSyntacticDiagnostics(e,t)),getAllDependencies:e=>p(t=>t.getAllDependencies(e)),getSemanticDiagnostics:(e,t)=>p(n=>n.getSemanticDiagnostics(e,t)),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>f(n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t)),emit:(n,r,i,a,o)=>n||a?f(s=>{var c;return s.emit(n,r,i,a,o||(c=e.host).getCustomTransformers?.call(c,t))}):(g(0,i),h(r,i,o)),done:d};function d(t,r,i){return g(3,t,r,i),yr(`SolutionBuilder::Projects built`),Gq(e,n)}function f(e){return g(0),l&&e(l)}function p(e){return f(e)||c}function m(){var r,a;if(H.assert(l===void 0),e.options.dry){wJ(e,G.A_non_dry_build_would_build_project_0,t),u=1,s=2;return}if(e.options.verbose&&wJ(e,G.Building_project_0,t),i.fileNames.length===0){DJ(e,n,XW(i)),u=0,s=2;return}let{host:o,compilerHost:c}=e;if(e.projectCompilerOptions=i.options,(r=e.moduleResolutionCache)==null||r.update(i.options),(a=e.typeReferenceDirectiveResolutionCache)==null||a.update(i.options),l=o.createProgram(i.fileNames,i.options,c,Xq(e,n,i),XW(i),i.projectReferences),e.watch){let t=e.moduleResolutionCache?.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,t&&new Set($e(t.values(),t=>e.host.realpath&&(IL(t)||t.directoryExists)?e.host.realpath(lo(t.packageDirectory,`package.json`)):lo(t.packageDirectory,`package.json`)))),e.builderPrograms.set(n,l)}s++}function h(r,o,c){var d;H.assertIsDefined(l),H.assert(s===1);let{host:f,compilerHost:p}=e,m=new Map,h=l.getCompilerOptions(),g=ZS(h),_,v,{emitResult:y,diagnostics:b}=ZK(l,e=>f.reportDiagnostic(e),e.write,void 0,(t,i,a,o,s,c)=>{let u=jq(e,t);if(m.set(jq(e,t),t),c?.buildInfo){v||=xq(e.host);let r=l.hasChangedEmitSignature?.call(l),i=nJ(e,t,n);i?(i.buildInfo=c.buildInfo,i.modifiedTime=v,r&&(i.latestChangedDtsTime=v)):e.buildInfoCache.set(n,{path:jq(e,t),buildInfo:c.buildInfo,modifiedTime:v,latestChangedDtsTime:r?v:void 0})}let d=c?.differsOnlyInMap?ca(e.host,t):void 0;(r||p.writeFile)(t,i,a,o,s,c),c?.differsOnlyInMap?e.host.setModifiedTime(t,d):!g&&e.watch&&(_||=tJ(e,n)).set(u,v||=xq(e.host))},o,void 0,c||(d=e.host).getCustomTransformers?.call(d,t));return(!h.noEmitOnError||!b.length)&&(m.size||a.type!==8)&&cJ(e,i,n,G.Updating_unchanged_output_timestamps_of_project_0,m),e.projectErrorsReported.set(n,!0),u=l.hasChangedEmitSignature?.call(l)?0:2,b.length?(e.diagnostics.set(n,b),e.projectStatus.set(n,{type:0,reason:`it had errors`}),u|=4):(e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:Fe(m.values())??PU(i,!f.useCaseSensitiveFileNames())})),Zq(e,l),s=2,y}function g(a,c,l,d){for(;s<=a&&s<3;){let a=s;switch(s){case 0:m();break;case 1:h(l,c,d);break;case 2:Wre(e,t,n,r,i,o,H.checkDefined(u)),s++;break}H.assert(s>a)}}}function qq(e,t,n){if(!e.projectPendingBuild.size||Sq(t))return;let{options:r,projectPendingBuild:i}=e;for(let a=0;a{let i=H.checkDefined(e.filesWatched.get(s));H.assert(Qq(i)),i.modifiedTime=r,i.callbacks.forEach(e=>e(t,n,r))},r,i,a,o);e.filesWatched.set(s,{callbacks:[n],watcher:l,modifiedTime:c})}return{close:()=>{let t=H.checkDefined(e.filesWatched.get(s));H.assert(Qq(t)),t.callbacks.length===1?(e.filesWatched.delete(s),rW(t)):sn(t.callbacks,n)}}}function tJ(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function nJ(e,t,n){let r=jq(e,t),i=e.buildInfoCache.get(n);return i?.path===r?i:void 0}function rJ(e,t,n,r){let i=jq(e,t),a=e.buildInfoCache.get(n);if(a!==void 0&&a.path===i)return a.buildInfo||void 0;let o=e.readFileWithCache(t),s=o?RU(t,o):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||sa}),s}function iJ(e,t,n,r){if(n<$q(e,t))return{type:5,outOfDateOutputFileName:r,newerInputFileName:t}}function aJ(e,t,n){if(AI(t))return{type:16};let r,i=!!e.options.force;if(t.projectReferences){e.projectStatus.set(n,{type:13});for(let n of t.projectReferences){let t=uG(n),a=Mq(e,t),o=Pq(e,t,a),s=sJ(e,o,a);if(!(s.type===13||s.type===16)){if(e.options.stopBuildOnErrors&&(s.type===0||s.type===12))return{type:12,upstreamProjectName:n.path,upstreamProjectBlocked:s.type===12};i||(r||=[]).push({ref:n,refStatus:s,resolvedRefPath:a,resolvedConfig:o})}}}if(i)return{type:17};let{host:a}=e,s=vU(t.options),l=ZS(t.options),u=nJ(e,s,n),f=u?.modifiedTime||ca(a,s);if(f===sa)return u||e.buildInfoCache.set(n,{path:jq(e,s),buildInfo:!1,modifiedTime:f}),{type:3,missingOutputFileName:s};let p=rJ(e,s,n,f);if(!p)return{type:4,fileName:s};let m=l&&JG(p)?p:void 0;if((m||!l)&&p.version!==o)return{type:14,version:p.version};if(!t.options.noCheck&&(p.errors||p.checkPending))return{type:8,buildInfoFile:s};if(m){if(!t.options.noCheck&&(m.changeFileSet?.length||m.semanticDiagnosticsPerFile?.length||YS(t.options)&&m.emitDiagnosticsPerFile?.length))return{type:8,buildInfoFile:s};if(!t.options.noEmit&&(m.changeFileSet?.length||m.affectedFilesPendingEmit?.length||m.pendingEmit!==void 0))return{type:7,buildInfoFile:s};if((!t.options.noEmit||t.options.noEmit&&YS(t.options))&&PG(t.options,m.options||{},void 0,!!t.options.noEmit))return{type:9,buildInfoFile:s}}let h=f,g=s,_,v=Rre,y=!1,b=new Set,x;for(let n of t.fileNames){let t=$q(e,n);if(t===sa)return{type:0,reason:`${n} does not exist`};let r=jq(e,n);if(fv&&(_=n,v=t),b.add(r)}let S;if(m?(x||=uK(m,s,a),S=Mf(x.roots,(e,t)=>b.has(t)?void 0:t)):S=d(dK(p,s,a),e=>b.has(e)?void 0:e),S)return{type:10,buildInfoFile:s,inputFile:S};if(!l){let r=MU(t,!a.useCaseSensitiveFileNames()),i=tJ(e,n);for(let t of r){if(t===s)continue;let n=jq(e,t),r=i?.get(n);if(r||(r=ca(e.host,t),i?.set(n,r)),r===sa)return{type:3,missingOutputFileName:t};if(riJ(e,t,h,g));if(T)return T;let E=e.lastCachedPackageJsonLookups.get(n);return E&&Nf(E,t=>iJ(e,t,h,g))||{type:C?2:y?15:1,newestInputFileTime:v,newestInputFileName:_,oldestOutputFileName:g}}function oJ(e,t,n){return e.buildInfoCache.get(n).path===t.path}function sJ(e,t,n){if(t===void 0)return{type:0,reason:`config file deleted mid-build`};let r=e.projectStatus.get(n);if(r!==void 0)return r;yr(`SolutionBuilder::beforeUpToDateCheck`);let i=aJ(e,t,n);return yr(`SolutionBuilder::afterUpToDateCheck`),br(`SolutionBuilder::Up-to-date check`,`SolutionBuilder::beforeUpToDateCheck`,`SolutionBuilder::afterUpToDateCheck`),e.projectStatus.set(n,i),i}function cJ(e,t,n,r,i){if(t.options.noEmit)return;let a,o=vU(t.options),s=ZS(t.options);if(o&&s){i?.has(jq(e,o))||(e.options.verbose&&wJ(e,r,t.options.configFilePath),e.host.setModifiedTime(o,a=xq(e.host)),nJ(e,o,n).modifiedTime=a),e.outputTimeStamps.delete(n);return}let{host:c}=e,l=MU(t,!c.useCaseSensitiveFileNames()),u=tJ(e,n),d=u?new Set:void 0;if(!i||l.length!==i.size){let s=!!e.options.verbose;for(let f of l){let l=jq(e,f);i?.has(l)||(s&&(s=!1,wJ(e,r,t.options.configFilePath)),c.setModifiedTime(f,a||=xq(e.host)),f===o?nJ(e,o,n).modifiedTime=a:u&&(u.set(l,a),d.add(l)))}}u?.forEach((e,t)=>{!i?.has(t)&&!d.has(t)&&u.delete(t)})}function lJ(e,t,n){if(!t.composite)return;let r=H.checkDefined(e.buildInfoCache.get(n));if(r.latestChangedDtsTime!==void 0)return r.latestChangedDtsTime||void 0;let i=r.buildInfo&&JG(r.buildInfo)&&r.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(po(r.buildInfo.latestChangedDtsFile,$a(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function uJ(e,t,n){if(e.options.dry)return wJ(e,G.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);cJ(e,t,n,G.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:PU(t,!e.host.useCaseSensitiveFileNames())})}function Wre(e,t,n,r,i,a,o){if(!(e.options.stopBuildOnErrors&&o&4)&&i.options.composite)for(let i=r+1;ie.diagnostics.has(Mq(e,t)))?c?2:1:0}function fJ(e,t,n){yr(`SolutionBuilder::beforeClean`);let r=Kre(e,t,n);return yr(`SolutionBuilder::afterClean`),br(`SolutionBuilder::Clean`,`SolutionBuilder::beforeClean`,`SolutionBuilder::afterClean`),r}function Kre(e,t,n){let r=Rq(e,t,n);if(!r)return 3;if(Sq(r))return EJ(e,r.circularDiagnostics),4;let{options:i,host:a}=e,o=i.dry?[]:void 0;for(let t of r){let n=Mq(e,t),r=Pq(e,t,n);if(r===void 0){OJ(e,n);continue}let i=MU(r,!a.useCaseSensitiveFileNames());if(!i.length)continue;let s=new Set(r.fileNames.map(t=>jq(e,t)));for(let t of i)s.has(jq(e,t))||a.fileExists(t)&&(o?o.push(t):(a.deleteFile(t),pJ(e,n,0)))}return o&&wJ(e,G.A_non_dry_build_would_delete_the_following_files_Colon_0,o.map(e=>`\r * ${e}`).join(``)),0}function pJ(e,t,n){e.host.getParsedCommandLine&&n===1&&(n=2),n===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,Vq(e,t),Hq(e,t,n),zq(e)}function mJ(e,t,n){e.reportFileChangeDetected=!0,pJ(e,t,n),hJ(e,250,!0)}function hJ(e,t,n){let{hostWithWatch:r}=e;!r.setTimeout||!r.clearTimeout||(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(qre,t,`timerToBuildInvalidatedProject`,e,n))}function qre(e,t,n){yr(`SolutionBuilder::beforeBuild`);let r=Jre(t,n);yr(`SolutionBuilder::afterBuild`),br(`SolutionBuilder::Build`,`SolutionBuilder::beforeBuild`,`SolutionBuilder::afterBuild`),r&&kJ(t,r)}function Jre(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),TJ(e,G.File_change_detected_Starting_incremental_compilation));let n=0,r=Lq(e),i=Yq(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let i=qq(e,r,!1);if(!i)break;if(i.kind!==1&&(t||n===5)){hJ(e,100,!1);return}Jq(e,i,r).done(),i.kind!==1&&n++}return Bq(e),r}function gJ(e,t,n,r){!e.watch||e.allWatchedConfigFiles.has(n)||e.allWatchedConfigFiles.set(n,eJ(e,t,()=>mJ(e,n,2),2e3,r?.watchOptions,nq.ConfigFile,t))}function _J(e,t,n){qU(t,n?.options,e.allWatchedExtendedConfigFiles,(t,r)=>eJ(e,t,()=>e.allWatchedExtendedConfigFiles.get(r)?.projects.forEach(t=>mJ(e,t,2)),2e3,n?.watchOptions,nq.ExtendedConfigFile),t=>jq(e,t))}function vJ(e,t,n,r){e.watch&&ZU(bq(e.allWatchedWildcardDirectories,n),r.wildcardDirectories,(i,a)=>e.watchDirectory(i,a=>{QU({watchedDirPath:jq(e,i),fileOrDirectory:a,fileOrDirectoryPath:jq(e,a),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||Vre(e,n)?.fileNames,useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>jq(e,t)})||mJ(e,n,1)},a,r?.watchOptions,nq.WildcardDirectory,t))}function yJ(e,t,n,r){e.watch&&Vx(bq(e.allWatchedInputFiles,n),new Set(r.fileNames),{createNewValue:i=>eJ(e,i,()=>mJ(e,n,0),250,r?.watchOptions,nq.SourceFile,t),onDeleteValue:Ax})}function bJ(e,t,n,r){!e.watch||!e.lastCachedPackageJsonLookups||Vx(bq(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:i=>eJ(e,i,()=>mJ(e,n,0),2e3,r?.watchOptions,nq.PackageJson,t),onDeleteValue:Ax})}function xJ(e,t){if(e.watchAllProjectsPending){yr(`SolutionBuilder::beforeWatcherCreation`),e.watchAllProjectsPending=!1;for(let n of Cq(t)){let t=Mq(e,n),r=Pq(e,n,t);gJ(e,n,t,r),_J(e,t,r),r&&(vJ(e,n,t,r),yJ(e,n,t,r),bJ(e,n,t,r))}yr(`SolutionBuilder::afterWatcherCreation`),br(`SolutionBuilder::Watcher creation`,`SolutionBuilder::beforeWatcherCreation`,`SolutionBuilder::afterWatcherCreation`)}}function Yre(e){zx(e.allWatchedConfigFiles,Ax),zx(e.allWatchedExtendedConfigFiles,rW),zx(e.allWatchedWildcardDirectories,e=>zx(e,rW)),zx(e.allWatchedInputFiles,e=>zx(e,Ax)),zx(e.allWatchedPackageJsonFiles,e=>zx(e,Ax))}function SJ(e,t,n,r,i){let a=Bre(e,t,n,r,i);return{build:(e,t,n,r)=>dJ(a,e,t,n,r),clean:e=>fJ(a,e),buildReferences:(e,t,n,r)=>dJ(a,e,t,n,r,!0),cleanReferences:e=>fJ(a,e,!0),getNextInvalidatedProject:e=>(Uq(a,e),Yq(a,Lq(a),!1)),getBuildOrder:()=>Lq(a),getUpToDateStatusOfProject:e=>{let t=Fq(a,e),n=Mq(a,t);return sJ(a,Pq(a,t,n),n)},invalidateProject:(e,t)=>pJ(a,e,t||0),close:()=>Yre(a)}}function CJ(e,t){return Po(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function wJ(e,t,...n){e.host.reportSolutionBuilderStatus(bS(t,...n))}function TJ(e,t,...n){var r,i;(i=(r=e.hostWithWatch).onWatchStatusChange)==null||i.call(r,bS(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function EJ({host:e},t){t.forEach(t=>e.reportDiagnostic(t))}function DJ(e,t,n){EJ(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function OJ(e,t){DJ(e,t,[e.configFileCache.get(t)])}function kJ(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e,i=0,a=[];Sq(t)?(AJ(e,t.buildOrder),EJ(e,t.circularDiagnostics),n&&(i+=zK(t.circularDiagnostics)),n&&(a=[...a,...BK(t.circularDiagnostics)])):(t.forEach(t=>{let n=Mq(e,t);e.projectErrorsReported.has(n)||EJ(e,r.get(n)||c)}),n&&r.forEach(e=>i+=zK(e)),n&&r.forEach(e=>[...a,...BK(e)])),e.watch?TJ(e,VK(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,a)}function AJ(e,t){e.options.verbose&&wJ(e,G.Projects_in_this_build_Colon_0,t.map(t=>`\r * `+CJ(e,t)).join(``))}function jJ(e,t,n){switch(n.type){case 5:return wJ(e,G.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,CJ(e,t),CJ(e,n.outOfDateOutputFileName),CJ(e,n.newerInputFileName));case 6:return wJ(e,G.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,CJ(e,t),CJ(e,n.outOfDateOutputFileName),CJ(e,n.newerProjectName));case 3:return wJ(e,G.Project_0_is_out_of_date_because_output_file_1_does_not_exist,CJ(e,t),CJ(e,n.missingOutputFileName));case 4:return wJ(e,G.Project_0_is_out_of_date_because_there_was_error_reading_file_1,CJ(e,t),CJ(e,n.fileName));case 7:return wJ(e,G.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,CJ(e,t),CJ(e,n.buildInfoFile));case 8:return wJ(e,G.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,CJ(e,t),CJ(e,n.buildInfoFile));case 9:return wJ(e,G.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,CJ(e,t),CJ(e,n.buildInfoFile));case 10:return wJ(e,G.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,CJ(e,t),CJ(e,n.buildInfoFile),CJ(e,n.inputFile));case 1:if(n.newestInputFileTime!==void 0)return wJ(e,G.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,CJ(e,t),CJ(e,n.newestInputFileName||``),CJ(e,n.oldestOutputFileName||``));break;case 2:return wJ(e,G.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,CJ(e,t));case 15:return wJ(e,G.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,CJ(e,t));case 11:return wJ(e,G.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,CJ(e,t),CJ(e,n.upstreamProjectName));case 12:return wJ(e,n.upstreamProjectBlocked?G.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:G.Project_0_can_t_be_built_because_its_dependency_1_has_errors,CJ(e,t),CJ(e,n.upstreamProjectName));case 0:return wJ(e,G.Project_0_is_out_of_date_because_1,CJ(e,t),n.reason);case 14:return wJ(e,G.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,CJ(e,t),n.version,o);case 17:return wJ(e,G.Project_0_is_being_forcibly_rebuilt,CJ(e,t))}}function MJ(e,t,n){e.options.verbose&&jJ(e,t,n)}var NJ=(e=>(e[e.time=0]=`time`,e[e.count=1]=`count`,e[e.memory=2]=`memory`,e))(NJ||{});function Xre(e){let t=Zre();return d(e.getSourceFiles(),n=>{let r=PJ(e,n),i=fs(n).length;t.set(r,t.get(r)+i)}),t}function Zre(){let e=new Map;return e.set(`Library`,0),e.set(`Definitions`,0),e.set(`TypeScript`,0),e.set(`JavaScript`,0),e.set(`JSON`,0),e.set(`Other`,0),e}function PJ(e,t){if(e.isSourceFileDefaultLibrary(t))return`Library`;if(t.isDeclarationFile)return`Definitions`;let n=t.path;return Ja(n,HC)?`TypeScript`:Ja(n,GC)?`JavaScript`:qa(n,`.json`)?`JSON`:`Other`}function FJ(e,t,n){return LJ(e,n)?NK(e,!0):t}function IJ(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable(`NO_COLOR`)}function LJ(e,t){return!t||t.pretty===void 0?IJ(e):t.pretty}function RJ(e){return e.options.all?Ae(ZP.concat(cF),(e,t)=>Bt(e.name,t.name)):E(ZP.concat(cF),e=>!!e.showInSimplifiedHelpView)}function zJ(e){e.write(MF(G.Version_0,o)+e.newLine)}function BJ(e){if(!IJ(e))return{bold:e=>e,blue:e=>e,blueBackground:e=>e,brightWhite:e=>e};function t(e){return`\x1B[1m${e}\x1B[22m`}let n=e.getEnvironmentVariable(`OS`)&&e.getEnvironmentVariable(`OS`).toLowerCase().includes(`windows`),r=e.getEnvironmentVariable(`WT_SESSION`),i=e.getEnvironmentVariable(`TERM_PROGRAM`)&&e.getEnvironmentVariable(`TERM_PROGRAM`)===`vscode`;function a(e){return n&&!r&&!i?c(e):`\x1B[94m${e}\x1B[39m`}let o=e.getEnvironmentVariable(`COLORTERM`)===`truecolor`||e.getEnvironmentVariable(`TERM`)===`xterm-256color`;function s(e){return o?`\x1B[48;5;68m${e}\x1B[39;49m`:`\x1B[44m${e}\x1B[39;49m`}function c(e){return`\x1B[97m${e}\x1B[39m`}return{bold:t,blue:a,brightWhite:c,blueBackground:s}}function VJ(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:``}`}function Qre(e,t,n,r){let i=[],a=BJ(e),o=VJ(t),s=p(t),c=typeof t.defaultValueDescription==`object`?MF(t.defaultValueDescription):u(t.defaultValueDescription,t.type===`list`||t.type===`listOrElement`?t.element.type:t.type),l=e.getWidthOfTerminal?.call(e)??0;if(l>=80){let a=``;t.description&&(a=MF(t.description)),i.push(...f(o,a,n,r,l,!0),e.newLine),d(s,t)&&(s&&i.push(...f(s.valueType,s.possibleValues,n,r,l,!1),e.newLine),c&&i.push(...f(MF(G.default_Colon),c,n,r,l,!1),e.newLine)),i.push(e.newLine)}else{if(i.push(a.blue(o),e.newLine),t.description){let e=MF(t.description);i.push(e)}if(i.push(e.newLine),d(s,t)){if(s&&i.push(`${s.valueType} ${s.possibleValues}`),c){s&&i.push(e.newLine);let t=MF(G.default_Colon);i.push(`${t} ${c}`)}i.push(e.newLine)}i.push(e.newLine)}return i;function u(e,t){return e!==void 0&&typeof t==`object`?$e(t.entries()).filter(([,t])=>t===e).map(([e])=>e).join(`/`):String(e)}function d(e,t){let n=[`string`],r=[void 0,`false`,`n/a`],i=t.defaultValueDescription;return!(t.category===G.Command_line_Options||C(n,e?.possibleValues)&&C(r,i))}function f(e,t,n,r,i,o){let s=[],c=!0,l=t,u=i-r;for(;l.length>0;){let t=``;c?(t=e.padStart(n),t=t.padEnd(r),t=o?a.blue(t):t):t=``.padStart(r);let i=l.substr(0,u);l=l.slice(u),s.push(`${t}${i}`),c=!1}return s}function p(e){if(e.type===`object`)return;return{valueType:t(e),possibleValues:n(e)};function t(e){switch(H.assert(e.type!==`listOrElement`),e.type){case`string`:case`number`:case`boolean`:return MF(G.type_Colon);case`list`:return MF(G.one_or_more_Colon);default:return MF(G.one_of_Colon)}}function n(e){let t;switch(e.type){case`string`:case`number`:case`boolean`:t=e.type;break;case`list`:case`listOrElement`:t=n(e.element);break;case`object`:t=``;break;default:let r={};return e.type.forEach((t,n)=>{e.deprecatedKeys?.has(n)||(r[t]||(r[t]=[])).push(n)}),Object.entries(r).map(([,e])=>e.join(`/`)).join(`, `)}return t}}}function HJ(e,t){let n=0;for(let e of t){let t=VJ(e).length;n=n>t?n:t}let r=n+2,i=r+2,a=[];for(let n of t){let t=Qre(e,n,r,i);a=[...a,...t]}return a[a.length-2]!==e.newLine&&a.push(e.newLine),a}function UJ(e,t,n,r,i,a){let o=[];if(o.push(BJ(e).bold(t)+e.newLine+e.newLine),i&&o.push(i+e.newLine+e.newLine),!r)return o=[...o,...HJ(e,n)],a&&o.push(a+e.newLine+e.newLine),o;let s=new Map;for(let e of n){if(!e.category)continue;let t=MF(e.category),n=s.get(t)??[];n.push(e),s.set(t,n)}return s.forEach((t,n)=>{o.push(`### ${n}${e.newLine}${e.newLine}`),o=[...o,...HJ(e,t)]}),a&&o.push(a+e.newLine+e.newLine),o}function WJ(e,t){let n=BJ(e),r=[...qJ(e,`${MF(G.tsc_Colon_The_TypeScript_Compiler)} - ${MF(G.Version_0,o)}`)];r.push(n.bold(MF(G.COMMON_COMMANDS))+e.newLine+e.newLine),s(`tsc`,G.Compiles_the_current_project_tsconfig_json_in_the_working_directory),s(`tsc app.ts util.ts`,G.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),s(`tsc -b`,G.Build_a_composite_project_in_the_working_directory),s(`tsc --init`,G.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),s(`tsc -p ./path/to/tsconfig.json`,G.Compiles_the_TypeScript_project_located_at_the_specified_path),s(`tsc --help --all`,G.An_expanded_version_of_this_information_showing_all_possible_compiler_options),s([`tsc --noEmit`,`tsc --target esnext`],G.Compiles_the_current_project_with_additional_settings);let i=t.filter(e=>e.isCommandLineOnly||e.category===G.Command_line_Options),a=t.filter(e=>!C(i,e));r=[...r,...UJ(e,MF(G.COMMAND_LINE_FLAGS),i,!1,void 0,void 0),...UJ(e,MF(G.COMMON_COMPILER_OPTIONS),a,!1,void 0,yS(G.You_can_learn_about_all_of_the_compiler_options_at_0,`https://aka.ms/tsc`))];for(let t of r)e.write(t);function s(t,i){let a=typeof t==`string`?[t]:t;for(let t of a)r.push(` `+n.blue(t)+e.newLine);r.push(` `+MF(i)+e.newLine+e.newLine)}}function GJ(e,t,n,r){let i=[...qJ(e,`${MF(G.tsc_Colon_The_TypeScript_Compiler)} - ${MF(G.Version_0,o)}`)];i=[...i,...UJ(e,MF(G.ALL_COMPILER_OPTIONS),t,!0,void 0,yS(G.You_can_learn_about_all_of_the_compiler_options_at_0,`https://aka.ms/tsc`))],i=[...i,...UJ(e,MF(G.WATCH_OPTIONS),r,!1,MF(G.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],i=[...i,...UJ(e,MF(G.BUILD_OPTIONS),E(n,e=>e!==cF),!1,yS(G.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,`https://aka.ms/tsc-composite-builds`))];for(let t of i)e.write(t)}function KJ(e,t){let n=[...qJ(e,`${MF(G.tsc_Colon_The_TypeScript_Compiler)} - ${MF(G.Version_0,o)}`)];n=[...n,...UJ(e,MF(G.BUILD_OPTIONS),E(t,e=>e!==cF),!1,yS(G.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,`https://aka.ms/tsc-composite-builds`))];for(let t of n)e.write(t)}function qJ(e,t){let n=BJ(e),r=[],i=e.getWidthOfTerminal?.call(e)??0,a=n.blueBackground(``.padStart(5)),o=n.blueBackground(n.brightWhite(`TS `.padStart(5)));if(i>=t.length+5){let n=(i>120?120:i)-5;r.push(t.padEnd(n)+a+e.newLine),r.push(``.padStart(n)+o+e.newLine)}else r.push(t+e.newLine),r.push(e.newLine);return r}function JJ(e,t){t.options.all?GJ(e,RJ(t),lF,KP):WJ(e,RJ(t))}function YJ(e,t,n){let r=NK(e),i;if(n.options.locale&&zc(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(r),e.exit(1);if(n.options.init)return vY(e,r,n.options),e.exit(0);if(n.options.version)return zJ(e),e.exit(0);if(n.options.help||n.options.all)return JJ(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return r(bS(G.Options_0_and_1_cannot_be_combined,`watch`,`listFilesOnly`)),e.exit(1);if(n.options.project){if(n.fileNames.length!==0)return r(bS(G.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);let t=mo(n.options.project);if(!t||e.directoryExists(t)){if(i=lo(t,`tsconfig.json`),!e.fileExists(i))return r(bS(G.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(i=t,!e.fileExists(i))return r(bS(G.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else n.fileNames.length===0&&(i=iW(mo(e.getCurrentDirectory()),t=>e.fileExists(t)));if(n.fileNames.length===0&&!i)return n.options.showConfig?r(bS(G.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,mo(e.getCurrentDirectory()))):(zJ(e),JJ(e,n)),e.exit(1);let a=e.getCurrentDirectory(),o=pI(n.options,e=>po(e,a));if(i){let a=new Map,s=RK(i,o,a,n.watchOptions,e,r);if(o.showConfig)return s.errors.length===0?(e.write(JSON.stringify(rI(s,i,e),null,4)+e.newLine),e.exit(0)):(r=FJ(e,r,s.options),s.errors.forEach(r),e.exit(1));if(r=FJ(e,r,s.options),kx(s.options))return QJ(e,r)?void 0:$re(e,t,r,s,o,n.watchOptions,a);ZS(s.options)?rY(e,t,r,s):nY(e,t,r,s)}else{if(o.showConfig)return e.write(JSON.stringify(rI(n,lo(a,`tsconfig.json`),e),null,4)+e.newLine),e.exit(0);if(r=FJ(e,r,o),kx(o))return QJ(e,r)?void 0:eie(e,t,r,n.fileNames,o,n.watchOptions);ZS(o)?rY(e,t,r,{...n,options:o}):nY(e,t,r,{...n,options:o})}}function XJ(e){if(e.length>0&&e[0].charCodeAt(0)===45){let t=e[0].slice(e[0].charCodeAt(1)===45?2:1).toLowerCase();return t===cF.name||t===cF.shortName}return!1}function ZJ(e,t,n){if(XJ(n)){let{buildOptions:r,watchOptions:i,projects:a,errors:o}=jF(n);if(r.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(r.generateCpuProfile,()=>eY(e,t,r,i,a,o));else return eY(e,t,r,i,a,o)}let r=TF(n,t=>e.readFile(t));if(r.options.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(r.options.generateCpuProfile,()=>YJ(e,t,r));else return YJ(e,t,r)}function QJ(e,t){return!e.watchFile||!e.watchDirectory?(t(bS(G.The_current_host_does_not_support_the_0_option,`--watch`)),e.exit(1),!0):!1}var $J=2;function eY(e,t,n,r,i,a){let o=FJ(e,NK(e),n);if(n.locale&&zc(n.locale,e,a),a.length>0)return a.forEach(o),e.exit(1);if(n.help||i.length===0)return zJ(e),KJ(e,uF),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return o(bS(G.The_current_host_does_not_support_the_0_option,`--build`)),e.exit(1);if(n.watch){if(QJ(e,o))return;let a=Dq(e,void 0,o,wq(e,LJ(e,n)),sY(e,n));a.jsDocParsingMode=$J;let s=cY(e,n);iY(e,t,a,s);let c=a.onWatchStatusChange,l=!1;a.onWatchStatusChange=(e,t,n,r)=>{c?.(e,t,n,r),l&&(e.code===G.Found_0_errors_Watching_for_file_changes.code||e.code===G.Found_1_error_Watching_for_file_changes.code)&&uY(u,s)};let u=Aq(a,i,n,r);return u.build(),uY(u,s),l=!0,u}let s=Eq(e,void 0,o,wq(e,LJ(e,n)),tY(e,n));s.jsDocParsingMode=$J;let c=cY(e,n);iY(e,t,s,c);let l=kq(s,i,n),u=n.clean?l.clean():l.build();return uY(l,c),Nr(),e.exit(u)}function tY(e,t){return LJ(e,t)?(t,n)=>e.write(UK(t,n,e.newLine,e)):void 0}function nY(e,t,n,r){let{fileNames:i,options:a,projectReferences:o}=r,s=uW(a,void 0,e);s.jsDocParsingMode=$J;let c=s.getCurrentDirectory(),l=ln(s.useCaseSensitiveFileNames());dW(s,e=>yo(e,c,l)),pY(e,a,!1);let u=tG({rootNames:i,options:a,projectReferences:o,host:s,configFileParsingDiagnostics:XW(r)}),d=QK(u,n,t=>e.write(t+e.newLine),tY(e,a));return hY(e,u,void 0),t(u),e.exit(d)}function rY(e,t,n,r){let{options:i,fileNames:a,projectReferences:o}=r;pY(e,i,!1);let s=mq(i,e);s.jsDocParsingMode=$J;let c=fq({host:s,system:e,rootNames:a,options:i,configFileParsingDiagnostics:XW(r),projectReferences:o,reportDiagnostic:n,reportErrorSummary:tY(e,i),afterProgramEmitAndDiagnostics:n=>{hY(e,n.getProgram(),void 0),t(n)}});return e.exit(c)}function iY(e,t,n,r){aY(e,n,!0),n.afterProgramEmitAndDiagnostics=n=>{hY(e,n.getProgram(),r),t(n)}}function aY(e,t,n){let r=t.createProgram;t.createProgram=(t,i,a,o,s,c)=>(H.assert(t!==void 0||i===void 0&&!!o),i!==void 0&&pY(e,i,n),r(t,i,a,o,s,c))}function oY(e,t,n){n.jsDocParsingMode=$J,aY(e,n,!1);let r=n.afterProgramCreate;n.afterProgramCreate=n=>{r(n),hY(e,n.getProgram(),void 0),t(n)}}function sY(e,t){return LK(e,LJ(e,t))}function $re(e,t,n,r,i,a,o){let s=uq({configFileName:r.options.configFilePath,optionsToExtend:i,watchOptionsToExtend:a,system:e,reportDiagnostic:n,reportWatchStatus:sY(e,r.options)});return oY(e,t,s),s.configFileParsingResult=r,s.extendedConfigCache=o,_q(s)}function eie(e,t,n,r,i,a){let o=dq({rootFiles:r,options:i,watchOptions:a,system:e,reportDiagnostic:n,reportWatchStatus:sY(e,i)});return oY(e,t,o),_q(o)}function cY(e,t){if(e===Na&&t.extendedDiagnostics)return Or(),lY()}function lY(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:n,clear:r};function t(t){let n=e?.get(t.name);n?n.type===2?n.value=Math.max(n.value,t.value):n.value+=t.value:(e??=new Map).set(t.name,t)}function n(t){e?.forEach(t)}function r(){e=void 0}}function uY(e,t){if(!t)return;if(!Dr()){Na.write(G.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` `);return}let n=[];n.push({name:`Projects in scope`,value:Cq(e.getBuildOrder()).length,type:1}),r(`SolutionBuilder::Projects built`),r(`SolutionBuilder::Timestamps only updates`),r(`SolutionBuilder::Bundles updated`),t.forEachAggregateStatistics(e=>{e.name=`Aggregate ${e.name}`,n.push(e)}),Cr((e,t)=>{mY(e)&&n.push({name:`${i(e)} time`,value:t,type:0})}),kr(),Or(),t.clear(),gY(Na,n);function r(e){let t=xr(e);t&&n.push({name:i(e),value:t,type:1})}function i(e){return e.replace(`SolutionBuilder::`,``)}}function dY(e,t){return e===Na&&(t.diagnostics||t.extendedDiagnostics)}function fY(e,t){return e===Na&&t.generateTrace}function pY(e,t,n){dY(e,t)&&Or(e),fY(e,t)&&Mr(n?`build`:`project`,t.generateTrace,t.configFilePath)}function mY(e){return pn(e,`SolutionBuilder::`)}function hY(e,t,n){var r;let i=t.getCompilerOptions();fY(e,i)&&((r=Ar)==null||r.stopTracing());let a;if(dY(e,i)){a=[];let r=e.getMemoryUsage?e.getMemoryUsage():-1;s(`Files`,t.getSourceFiles().length);let l=Xre(t);if(i.extendedDiagnostics)for(let[e,t]of l.entries())s(`Lines of `+e,t);else s(`Lines`,h(l.values(),(e,t)=>e+t,0));s(`Identifiers`,t.getIdentifierCount()),s(`Symbols`,t.getSymbolCount()),s(`Types`,t.getTypeCount()),s(`Instantiations`,t.getInstantiationCount()),r>=0&&o({name:`Memory used`,value:r,type:2},!0);let u=Dr(),d=u?Sr(`Program`):0,f=u?Sr(`Bind`):0,p=u?Sr(`Check`):0,m=u?Sr(`Emit`):0;if(i.extendedDiagnostics){let e=t.getRelationCacheSizes();s(`Assignability cache size`,e.assignable),s(`Identity cache size`,e.identity),s(`Subtype cache size`,e.subtype),s(`Strict subtype cache size`,e.strictSubtype),u&&Cr((e,t)=>{mY(e)||c(`${e} time`,t,!0)})}else u&&(c(`I/O read`,Sr(`I/O Read`),!0),c(`I/O write`,Sr(`I/O Write`),!0),c(`Parse time`,d,!0),c(`Bind time`,f,!0),c(`Check time`,p,!0),c(`Emit time`,m,!0));u&&c(`Total time`,d+f+p+m,!1),gY(e,a),u?n?(Cr(e=>{mY(e)||Tr(e)}),wr(e=>{mY(e)||Er(e)})):kr():e.write(G.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+` `)}function o(e,t){a.push(e),t&&n?.addAggregateStatistic(e)}function s(e,t){o({name:e,value:t,type:1},!0)}function c(e,t,n){o({name:e,value:t,type:0},n)}}function gY(e,t){let n=0,r=0;for(let e of t){e.name.length>n&&(n=e.name.length);let t=_Y(e);t.length>r&&(r=t.length)}for(let i of t)e.write(`${i.name}:`.padEnd(n+2)+_Y(i).toString().padStart(r)+e.newLine)}function _Y(e){switch(e.type){case 1:return``+e.value;case 0:return(e.value/1e3).toFixed(2)+`s`;case 2:return Math.round(e.value/1e3)+`K`;default:H.assertNever(e.type)}}function vY(e,t,n){let r=mo(lo(e.getCurrentDirectory(),`tsconfig.json`));if(e.fileExists(r))t(bS(G.A_tsconfig_json_file_is_already_defined_at_Colon_0,r));else{e.writeFile(r,fI(n,e.newLine));let t=[e.newLine,...qJ(e,`Created a new tsconfig.json`)];t.push(`You can learn more at https://aka.ms/tsconfig`+e.newLine);for(let n of t)e.write(n)}}function yY(e,t=!0){return{type:e,reportFallback:t}}var bY=yY(void 0,!1),xY=yY(void 0,!1),SY=yY(void 0,!0);function tie(e,t){let n=sC(e,`strictNullChecks`);return{serializeTypeOfDeclaration:u,serializeReturnTypeForSignature:f,serializeTypeOfExpression:l,serializeTypeOfAccessor:c,tryReuseExistingTypeNode(e,n){if(t.canReuseTypeNode(e,n))return i(e,n)}};function r(e,n,r=n){return n===void 0?void 0:t.markNodeReuse(e,n.flags&16?n:J.cloneNode(n),r??n)}function i(n,i){let{finalizeBoundary:a,startRecoveryScope:o,hadError:s,markError:c}=t.createRecoveryBoundary(n),l=Q(i,u,Ju);if(!a())return;return n.approximateLength+=i.end-i.pos,l;function u(e){if(s())return e;let r=o(),i=ZT(e)?t.enterNewScope(n,e):void 0,a=g(e);return i?.(),s()?Ju(e)&&!JO(e)?(r(),t.serializeExistingTypeNode(n,e)):e:a?t.markNodeReuse(n,a,e):void 0}function d(e){let t=P_(e);switch(t.kind){case 184:return h(t);case 187:return m(t);case 200:return f(t);case 199:let e=t;if(e.operator===143)return p(e)}return Q(e,u,Ju)}function f(e){let t=d(e.objectType);if(t!==void 0)return J.updateIndexedAccessTypeNode(e,t,Q(e.indexType,u,Ju))}function p(e){H.assertEqual(e.operator,143);let t=d(e.type);if(t!==void 0)return J.updateTypeOperatorNode(e,t)}function m(e){let{introducesError:r,node:i}=t.trackExistingEntityName(n,e.exprName);if(!r)return J.updateTypeQueryNode(e,i,CB(e.typeArguments,u,Ju));let a=t.serializeTypeName(n,e.exprName,!0);if(a)return t.markNodeReuse(n,a,e.exprName)}function h(e){if(t.canReuseTypeNode(n,e)){let{introducesError:r,node:i}=t.trackExistingEntityName(n,e.typeName),a=CB(e.typeArguments,u,Ju);if(r){let r=t.serializeTypeName(n,e.typeName,!1,a);if(r)return t.markNodeReuse(n,r,e.typeName)}else{let r=J.updateTypeReferenceNode(e,i,a);return t.markNodeReuse(n,r,e)}}}function g(i){if(bj(i))return Q(i.type,u,Ju);if(Tj(i)||i.kind===320)return J.createKeywordTypeNode(133);if(Ej(i))return J.createKeywordTypeNode(159);if(Dj(i))return J.createUnionTypeNode([Q(i.type,u,Ju),J.createLiteralTypeNode(J.createNull())]);if(kj(i))return J.createUnionTypeNode([Q(i.type,u,Ju),J.createKeywordTypeNode(157)]);if(Oj(i))return Q(i.type,u);if(jj(i))return J.createArrayTypeNode(Q(i.type,u,Ju));if(Pj(i))return J.createTypeLiteralNode(k(i.jsDocPropertyTags,e=>{let r=Q(Y(e.name)?e.name:e.name.right,u,Y),a=t.getJsDocPropertyOverride(n,i,e);return J.createPropertySignature(void 0,r,e.isBracketed||e.typeExpression&&kj(e.typeExpression.type)?J.createToken(58):void 0,a||e.typeExpression&&Q(e.typeExpression.type,u,Ju)||J.createKeywordTypeNode(133))}));if(YO(i)&&Y(i.typeName)&&i.typeName.escapedText===``)return zE(J.createKeywordTypeNode(133),i);if((Gk(i)||YO(i))&&og(i))return J.createTypeLiteralNode([J.createIndexSignature(void 0,[J.createParameterDeclaration(void 0,void 0,`x`,void 0,Q(i.typeArguments[0],u,Ju))],Q(i.typeArguments[1],u,Ju))]);if(Aj(i))if(e_(i)){let e;return J.createConstructorTypeNode(void 0,CB(i.typeParameters,u,PO),M(i.parameters,(r,i)=>r.name&&Y(r.name)&&r.name.escapedText===`new`?(e=r.type,void 0):J.createParameterDeclaration(void 0,s(r),t.markNodeReuse(n,J.createIdentifier(l(r,i)),r),J.cloneNode(r.questionToken),Q(r.type,u,Ju),void 0)),Q(e||i.type,u,Ju)||J.createKeywordTypeNode(133))}else return J.createFunctionTypeNode(CB(i.typeParameters,u,PO),k(i.parameters,(e,r)=>J.createParameterDeclaration(void 0,s(e),t.markNodeReuse(n,J.createIdentifier(l(e,r)),e),J.cloneNode(e.questionToken),Q(e.type,u,Ju),void 0)),Q(i.type,u,Ju)||J.createKeywordTypeNode(133));if(uk(i))return t.canReuseTypeNode(n,i)||c(),i;if(PO(i)){let{node:e}=t.trackExistingEntityName(n,i.name);return J.updateTypeParameterDeclaration(i,CB(i.modifiers,u,Du),e,Q(i.constraint,u,Ju),Q(i.default,u,Ju))}if(fk(i))return f(i)||(c(),i);if(YO(i))return h(i)||(c(),i);if(Hm(i)){if(i.attributes?.token===132)return c(),i;if(!t.canReuseTypeNode(n,i))return t.serializeExistingTypeNode(n,i);let e=d(i,i.argument.literal),a=e===i.argument.literal?r(n,i.argument.literal):e;return J.updateImportTypeNode(i,a===i.argument.literal?r(n,i.argument):J.createLiteralTypeNode(a),Q(i.attributes,u,LA),Q(i.qualifier,u,Ou),CB(i.typeArguments,u,Ju),i.isTypeOf)}if(Qc(i)&&i.name.kind===168&&!t.hasLateBindableName(i)){if(!fv(i))return a(i,u);if(t.shouldRemoveDeclaration(n,i))return}if(ju(i)&&!i.type||RO(i)&&!i.type&&!i.initializer||LO(i)&&!i.type&&!i.initializer||FO(i)&&!i.type&&!i.initializer){let e=a(i,u);return e===i&&(e=t.markNodeReuse(n,J.cloneNode(i),i)),e.type=J.createKeywordTypeNode(133),FO(i)&&(e.modifiers=void 0),e}if(QO(i))return m(i)||(c(),i);if(NO(i)&&Mb(i.expression)){let{node:r,introducesError:a}=t.trackExistingEntityName(n,i.expression);if(a){let r=t.serializeTypeOfExpression(n,i.expression),a;if(mk(r))a=r.literal;else{let e=t.evaluateEntityNameExpression(i.expression),o=typeof e.value==`string`?J.createStringLiteral(e.value,void 0):typeof e.value==`number`?J.createNumericLiteral(e.value,0):void 0;if(!o)return hk(r)&&t.trackComputedName(n,i.expression),i;a=o}return a.kind===11&&Ws(a.text,zS(e))?J.createIdentifier(a.text):a.kind===9&&!a.text.startsWith(`-`)?a:J.updateComputedPropertyName(i,a)}else return J.updateComputedPropertyName(i,r)}if(JO(i)){let e;if(Y(i.parameterName)){let{node:r,introducesError:a}=t.trackExistingEntityName(n,i.parameterName);a&&c(),e=r}else e=J.cloneNode(i.parameterName);return J.updateTypePredicateNode(i,J.cloneNode(i.assertsModifier),e,Q(i.type,u,Ju))}if(tk(i)||$O(i)||pk(i)){let e=a(i,u),r=t.markNodeReuse(n,e===i?J.cloneNode(i):e,i);return UE(r,kp(r)|(n.flags&1024&&$O(i)?0:1)),r}if(tO(i)&&n.flags&268435456&&!i.singleQuote){let e=J.cloneNode(i);return e.singleQuote=!0,e}if(sk(i)){let e=Q(i.checkType,u,Ju),r=t.enterNewScope(n,i),a=Q(i.extendsType,u,Ju),o=Q(i.trueType,u,Ju);r();let s=Q(i.falseType,u,Ju);return J.updateConditionalTypeNode(i,e,a,o,s)}if(dk(i)){if(i.operator===158&&i.type.kind===155){if(!t.canReuseTypeNode(n,i))return c(),i}else if(i.operator===143)return p(i)||(c(),i)}return a(i,u);function a(e,t){return PB(e,t,void 0,!n.enclosingFile||n.enclosingFile!==Yf(e)?o:void 0)}function o(e,t,n,r,i){let a=CB(e,t,n,r,i);return a&&(a.pos!==-1||a.end!==-1)&&(a===e&&(a=J.createNodeArray(e.slice(),e.hasTrailingComma)),Jw(a,-1,-1)),a}function s(e){return e.dotDotDotToken||(e.type&&jj(e.type)?J.createToken(26):void 0)}function l(e,t){return e.name&&Y(e.name)&&e.name.escapedText===`this`?`this`:s(e)?`args`:`arg${t}`}function d(e,r){let i=t.getModuleSpecifierOverride(n,e,r);return i?zE(J.createStringLiteral(i),r):r}}}function a(e,n,r){if(!e)return;let a;return(!r||P(e))&&t.canReuseTypeNode(n,e)&&(a=i(n,e),a!==void 0&&(a=ce(a,r,void 0,n))),a}function o(e,n,r,i,o,s=o!==void 0){if(!e||!t.canReuseTypeNodeAnnotation(n,r,e,i,o)&&(!o||!t.canReuseTypeNodeAnnotation(n,r,e,i,!1)))return;let c;return(!o||P(e))&&(c=a(e,n,o)),c!==void 0||!s?c:(n.tracker.reportInferenceFallback(r),t.serializeExistingTypeNode(n,e,o)??J.createKeywordTypeNode(133))}function s(e,n,r,i){if(!e)return;let o=a(e,n,r);return o===void 0?(n.tracker.reportInferenceFallback(e),t.serializeExistingTypeNode(n,e,r)??J.createKeywordTypeNode(133)):o}function c(e,n,r){return h(e,n,r)??C(e,t.getAllAccessorDeclarations(e),r,n)}function l(e,t,n,r){let i=D(e,t,!1,n,r);return i.type===void 0?x(e,t,i.reportFallback):i.type}function u(e,t,n){switch(e.kind){case 170:case 342:return _(e,t,n);case 261:return g(e,t,n);case 172:case 349:case 173:return y(e,t,n);case 209:return b(e,t,n);case 278:return l(e.expression,n,void 0,!0);case 212:case 213:case 227:return v(e,t,n);case 304:case 305:return d(e,t,n);default:H.assertNever(e,`Node needs to be an inferrable node, found ${H.formatSyntaxKind(e.kind)}`)}}function d(e,n,r){let i=Ly(e),o;if(i&&t.canReuseTypeNodeAnnotation(r,e,i,n)&&(o=a(i,r)),!o&&e.kind===304){let i=e.initializer,s=LM(i)?RM(i):i.kind===235||i.kind===217?i.type:void 0;s&&!Xl(s)&&t.canReuseTypeNodeAnnotation(r,e,s,n)&&(o=a(s,r))}return o??b(e,n,r,!1)}function f(e,t,n){switch(e.kind){case 178:return c(e,t,n);case 175:case 263:case 181:case 174:case 180:case 177:case 179:case 182:case 185:case 186:case 219:case 220:case 318:case 324:return le(e,t,n);default:H.assertNever(e,`Node needs to be an inferrable node, found ${H.formatSyntaxKind(e.kind)}`)}}function p(e){if(e)return e.kind===178?ng(e)&&kl(e)||zy(e):Hy(e)}function m(e,t){let n=p(e);return!n&&e!==t.firstAccessor&&(n=p(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=p(t.secondAccessor)),n}function h(e,n,r){let i=t.getAllAccessorDeclarations(e),a=m(e,i);if(a&&!JO(a))return w(r,e,()=>o(a,r,e,n)??b(e,n,r));if(i.getAccessor)return w(r,i.getAccessor,()=>le(i.getAccessor,n,r))}function g(e,n,r){let i=Ly(e),a=SY;return i?a=yY(o(i,r,e,n)):e.initializer&&(n.declarations?.length===1||T(n.declarations,bA)===1)&&!t.isExpandoFunctionDeclaration(e)&&!ue(e)&&(a=D(e.initializer,r,void 0,void 0,Lm(e))),a.type===void 0?b(e,n,r,a.reportFallback):a.type}function _(e,n,r){let i=e.parent;if(i.kind===179)return c(i,void 0,r);let a=Ly(e),s=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration),l=SY;return a?l=yY(o(a,r,e,n,s)):FO(e)&&e.initializer&&Y(e.name)&&!ue(e)&&(l=D(e.initializer,r,void 0,s)),l.type===void 0?b(e,n,r,l.reportFallback):l.type}function v(e,t,n){let r=Ly(e),i;r&&(i=o(r,n,e,t));let a=n.suppressReportInferenceFallback;n.suppressReportInferenceFallback=!0;let s=i??b(e,t,n,!1);return n.suppressReportInferenceFallback=a,s}function y(e,n,r){let i=Ly(e),a=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration),s=SY;if(i)s=yY(o(i,r,e,n,a));else{let t=RO(e)?e.initializer:void 0;t&&!ue(e)&&(s=D(t,r,void 0,a,Nm(e)))}return s.type===void 0?b(e,n,r,s.reportFallback):s.type}function b(e,n,r,i=!0){return i&&r.tracker.reportInferenceFallback(e),r.noInferenceFallback===!0?J.createKeywordTypeNode(133):t.serializeTypeOfDeclaration(r,e,n)}function x(e,n,r=!0,i){return H.assert(!i),r&&n.tracker.reportInferenceFallback(e),n.noInferenceFallback===!0?J.createKeywordTypeNode(133):t.serializeTypeOfExpression(n,e)??J.createKeywordTypeNode(133)}function S(e,n,r,i){return i&&n.tracker.reportInferenceFallback(e),n.noInferenceFallback===!0?J.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(n,e,r)??J.createKeywordTypeNode(133)}function C(e,n,r,i,a=!0){return e.kind===178?le(e,i,r,a):(a&&r.tracker.reportInferenceFallback(e),(n.getAccessor&&le(n.getAccessor,i,r,a))??t.serializeTypeOfDeclaration(r,e,i)??J.createKeywordTypeNode(133))}function w(e,n,r){let i=t.enterNewScope(e,n),a=r();return i(),a}function E(e,t,n,r){return Xl(t)?D(e,n,!0,r):yY(s(t,n,r))}function D(e,r,i=!1,a=!1,o=!1){switch(e.kind){case 218:return LM(e)?E(e.expression,RM(e),r,a):D(e.expression,r,i,a);case 80:if(t.isUndefinedIdentifierExpression(e))return yY(oe());break;case 106:return yY(n?ce(J.createLiteralTypeNode(J.createNull()),a,e,r):J.createKeywordTypeNode(133));case 220:case 219:return H.type(e),w(r,e,()=>O(e,r));case 217:case 235:let s=e;return E(s.expression,s.type,r,a);case 225:let c=e;if(HT(c))return se(c.operator===40?c.operand:c,c.operand.kind===10?163:150,r,i||o,a);break;case 210:return te(e,r,i,a);case 211:return re(e,r,i,a);case 232:return yY(x(e,r,!0,a));case 229:if(!i&&!o)return yY(J.createKeywordTypeNode(154));break;default:let l,u=e;switch(e.kind){case 9:l=150;break;case 15:u=J.createStringLiteral(e.text),l=154;break;case 11:l=154;break;case 10:l=163;break;case 112:case 97:l=136;break}if(l)return se(u,l,r,i||o,a)}return SY}function O(e,t){let n=le(e,void 0,t),r=A(e.typeParameters,t),i=e.parameters.map(e=>ae(e,t));return yY(J.createFunctionTypeNode(r,i,n))}function ee(e,t,n){if(!n)return t.tracker.reportInferenceFallback(e),!1;for(let n of e.elements)if(n.kind===231)return t.tracker.reportInferenceFallback(n),!1;return!0}function te(e,t,n,r){if(!ee(e,t,n))return r||Ld(M_(e).parent)?xY:yY(x(e,t,!1,r));let i=t.noInferenceFallback;t.noInferenceFallback=!0;let a=[];for(let r of e.elements)if(H.assert(r.kind!==231),r.kind===233)a.push(oe());else{let e=D(r,t,n),i=e.type===void 0?x(r,t,e.reportFallback):e.type;a.push(i)}let o=J.createTupleTypeNode(a);return o.emitNode={flags:1,autoGenerate:void 0,internalFlags:0},t.noInferenceFallback=i,bY}function ne(e,n){let r=!0;for(let i of e.properties){if(i.flags&262144){r=!1;break}if(i.kind===305||i.kind===306)n.tracker.reportInferenceFallback(i),r=!1;else if(i.name.flags&262144){r=!1;break}else if(i.name.kind===81)r=!1;else if(i.name.kind===168){let e=i.name.expression;!HT(e,!1)&&!t.isDefinitelyReferenceToGlobalSymbolObject(e)&&(n.tracker.reportInferenceFallback(i.name),r=!1)}}return r}function re(e,t,n,r){if(!ne(e,t))return r||Ld(M_(e).parent)?xY:yY(x(e,t,!1,r));let i=t.noInferenceFallback;t.noInferenceFallback=!0;let a=[],o=t.flags;t.flags|=4194304;for(let r of e.properties){H.assert(!hj(r)&&!gj(r));let e=r.name,i;switch(r.kind){case 175:i=w(t,r,()=>j(r,e,t,n));break;case 304:i=ie(r,e,t,n);break;case 179:case 178:i=N(r,e,t);break}i&&(eD(i,r),a.push(i))}t.flags=o;let s=J.createTypeLiteralNode(a);return t.flags&1024||UE(s,1),t.noInferenceFallback=i,bY}function ie(e,t,n,i){let a=i?[J.createModifier(148)]:[],o=D(e.initializer,n,i),s=o.type===void 0?b(e,void 0,n,o.reportFallback):o.type;return J.createPropertySignature(a,r(n,t),void 0,s)}function ae(e,n){return J.updateParameterDeclaration(e,void 0,r(n,e.dotDotDotToken),t.serializeNameOfParameter(n,e),t.isOptionalParameter(e)?J.createToken(58):void 0,_(e,void 0,n),void 0)}function A(e,n){return e?.map(e=>{let{node:i}=t.trackExistingEntityName(n,e.name);return J.updateTypeParameterDeclaration(e,e.modifiers?.map(e=>r(n,e)),i,s(e.constraint,n),s(e.default,n))})}function j(e,t,n,i){let a=le(e,void 0,n),o=A(e.typeParameters,n),s=e.parameters.map(e=>ae(e,n));return i?J.createPropertySignature([J.createModifier(148)],r(n,t),r(n,e.questionToken),J.createFunctionTypeNode(o,s,a)):(Y(t)&&t.escapedText===`new`&&(t=J.createStringLiteral(`new`)),J.createMethodSignature([],r(n,t),r(n,e.questionToken),o,s,a))}function N(e,n,i){let a=t.getAllAccessorDeclarations(e),o=a.getAccessor&&p(a.getAccessor),c=a.setAccessor&&p(a.setAccessor);if(o!==void 0&&c!==void 0)return w(i,e,()=>{let t=e.parameters.map(e=>ae(e,i));return ef(e)?J.updateGetAccessorDeclaration(e,[],r(i,n),t,s(o,i),void 0):J.updateSetAccessorDeclaration(e,[],r(i,n),t,void 0)});if(a.firstAccessor===e){let t=(o?w(i,a.getAccessor,()=>s(o,i)):c?w(i,a.setAccessor,()=>s(c,i)):void 0)??C(e,a,i,void 0);return J.createPropertySignature(a.setAccessor===void 0?[J.createModifier(148)]:[],r(i,n),void 0,t)}}function oe(){return n?J.createKeywordTypeNode(157):J.createKeywordTypeNode(133)}function se(e,t,n,i,a){let o;return i?(e.kind===225&&e.operator===40&&(o=J.createLiteralTypeNode(r(n,e.operand))),o=J.createLiteralTypeNode(r(n,e))):o=J.createKeywordTypeNode(t),yY(ce(o,a,e,n))}function ce(e,t,r,i){let a=r&&M_(r).parent,o=a&&Ld(a)&&vT(a);return!n||!(t||o)?e:(P(e)||i.tracker.reportInferenceFallback(e),ak(e)?J.createUnionTypeNode([...e.types,J.createKeywordTypeNode(157)]):J.createUnionTypeNode([e,J.createKeywordTypeNode(157)]))}function P(e){return!n||$_(e.kind)||e.kind===202||e.kind===185||e.kind===186||e.kind===189||e.kind===190||e.kind===188||e.kind===204||e.kind===198?!0:e.kind===197?P(e.type):e.kind===193||e.kind===194?e.types.every(P):!1}function le(e,t,n,r=!0){let i=SY,a=e_(e)?Ly(e.parameters[0]):zy(e);return a?i=yY(o(a,n,e,t)):k_(e)&&(i=F(e,n)),i.type===void 0?S(e,n,t,r&&i.reportFallback&&!a):i.type}function F(e,t){let n;if(e&&!rp(e.body)){if(cv(e)&3)return SY;let t=e.body;t&&tA(t)?nh(t,e=>{if(e.parent!==t)return n=void 0,!0;if(!n)n=e.expression;else return n=void 0,!0}):n=t}if(n)if(ue(n)){let e=LM(n)?RM(n):Kk(n)||Ok(n)?n.type:void 0;if(e&&!Xl(e))return yY(a(e,t))}else return D(n,t);return SY}function ue(e){return K(e.parent,e=>Tk(e)||!Nu(e)&&!!Ly(e)||QA(e)||cj(e))}}var CY={};n(CY,{NameValidationResult:()=>LY,discoverTypings:()=>cie,isTypingUpToDate:()=>iie,loadSafeList:()=>oie,loadTypesMap:()=>sie,nonRelativeModuleNameForTypingCache:()=>aie,renderPackageNameValidationFailure:()=>lie,validatePackageName:()=>zY});var wY=`action::set`,TY=`action::invalidate`,EY=`action::packageInstalled`,DY=`event::typesRegistry`,OY=`event::beginInstallTypes`,kY=`event::endInstallTypes`,AY=`event::initializationFailed`,jY=`action::watchTypingLocations`,MY;(e=>{e.GlobalCacheLocation=`--globalTypingsCacheLocation`,e.LogFile=`--logFile`,e.EnableTelemetry=`--enableTelemetry`,e.TypingSafeListLocation=`--typingSafeListLocation`,e.TypesMapLocation=`--typesMapLocation`,e.NpmLocation=`--npmLocation`,e.ValidateDefaultNpmLocation=`--validateDefaultNpmLocation`})(MY||={});function nie(e){return Na.args.includes(e)}function NY(e){let t=Na.args.indexOf(e);return t>=0&&te.readFile(t));return new Map(Object.entries(n.config))}function sie(e,t){let n=PF(t,t=>e.readFile(t));if(n.config?.simpleMap)return new Map(Object.entries(n.config.simpleMap))}function cie(e,t,n,r,i,a,o,s,c,l){if(!o||!o.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let u=new Map;n=M(n,e=>{let t=mo(e);if($C(t))return t});let f=[];o.include&&v(o.include,`Explicitly included types`);let p=o.exclude||[];if(!l.types){let e=new Set(n.map($a));e.add(r),e.forEach(e=>{y(e,`bower.json`,`bower_components`,f),y(e,`package.json`,`node_modules`,f)})}o.disableFilenameBasedTypeAcquisition||b(n),s&&v(ge(s.map(aie),Pt,Ht),`Inferred typings from unresolved imports`);for(let e of p)u.delete(e)&&t&&t(`Typing for ${e} is in exclude list, will be ignored.`);a.forEach((e,t)=>{let n=c.get(t);u.get(t)===!1&&n!==void 0&&iie(e,n)&&u.set(t,e.typingLocation)});let m=[],h=[];u.forEach((e,t)=>{e?h.push(e):m.push(t)});let g={cachedTypingPaths:h,newTypingNames:m,filesToWatch:f};return t&&t(`Finished typings discovery:${IY(g)}`),g;function _(e){u.has(e)||u.set(e,!1)}function v(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),d(e,_)}function y(n,r,i,a){let o=lo(n,r),s,c;e.fileExists(o)&&(a.push(o),s=PF(o,t=>e.readFile(t)).config,c=re([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Ye),v(c,`Typing names in '${o}' dependencies`));let l=lo(n,i);if(a.push(l),!e.directoryExists(l))return;let d=[],f=c?c.map(e=>lo(l,e,r)):e.readDirectory(l,[`.json`],void 0,void 0,3).filter(e=>{if(eo(e)!==r)return!1;let t=ao(mo(e)),n=t[t.length-3][0]===`@`;return n&&Dt(t[t.length-4])===i||!n&&Dt(t[t.length-3])===i});t&&t(`Searching for typing names in ${l}; all files: ${JSON.stringify(f)}`);for(let n of f){let r=mo(n),i=PF(r,t=>e.readFile(t)).config;if(!i.name)continue;let a=i.types||i.typings;if(a){let n=po(a,$a(r));e.fileExists(n)?(t&&t(` Package '${i.name}' provides its own types.`),u.set(i.name,n)):t&&t(` Package '${i.name}' provides its own types but they are missing.`)}else d.push(i.name)}v(d,` Found package names`)}function b(e){let n=M(e,e=>{if(!$C(e))return;let t=nn(uw(Dt(eo(e))));return i.get(t)});n.length&&v(n,`Inferred typings from file names`),F(e,e=>qa(e,`.jsx`))&&(t&&t(`Inferred 'react' typings due to presence of '.jsx' extension`),_(`react`))}}var LY=(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))(LY||{}),RY=214;function zY(e){return BY(e,!0)}function BY(e,t){if(!e)return 1;if(e.length>RY)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){let e=BY(t[1],!1);if(e!==0)return{name:t[1],isScopeName:!0,result:e};let n=BY(t[2],!1);return n===0?0:{name:t[2],isScopeName:!1,result:n}}}return encodeURIComponent(e)===e?0:5}function lie(e,t){return typeof e==`object`?VY(t,e.result,e.name,e.isScopeName):VY(t,e,t,!1)}function VY(e,t,n,r){let i=r?`Scope`:`Package`;switch(t){case 1:return`'${e}':: ${i} name '${n}' cannot be empty`;case 2:return`'${e}':: ${i} name '${n}' should be less than ${RY} characters`;case 3:return`'${e}':: ${i} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${i} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${i} name '${n}' contains non URI safe characters`;case 0:return H.fail();default:H.assertNever(t)}}var HY;(e=>{class t{constructor(e){this.text=e}getText(e,t){return e===0&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}function n(e){return new t(e)}e.fromString=n})(HY||={});var UY=(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))(UY||{}),WY=(e=>(e[e.Off=0]=`Off`,e[e.On=1]=`On`,e[e.Auto=2]=`Auto`,e))(WY||{}),$=(e=>(e[e.Semantic=0]=`Semantic`,e[e.PartialSemantic=1]=`PartialSemantic`,e[e.Syntactic=2]=`Syntactic`,e))($||{}),GY={},KY=(e=>(e.Original=`original`,e.TwentyTwenty=`2020`,e))(KY||{}),qY=(e=>(e.All=`All`,e.SortAndCombine=`SortAndCombine`,e.RemoveUnused=`RemoveUnused`,e))(qY||{}),JY=(e=>(e[e.Invoked=1]=`Invoked`,e[e.TriggerCharacter=2]=`TriggerCharacter`,e[e.TriggerForIncompleteCompletions=3]=`TriggerForIncompleteCompletions`,e))(JY||{}),YY=(e=>(e.Type=`Type`,e.Parameter=`Parameter`,e.Enum=`Enum`,e))(YY||{}),XY=(e=>(e.none=`none`,e.definition=`definition`,e.reference=`reference`,e.writtenReference=`writtenReference`,e))(XY||{}),ZY=(e=>(e[e.None=0]=`None`,e[e.Block=1]=`Block`,e[e.Smart=2]=`Smart`,e))(ZY||{}),QY=(e=>(e.Ignore=`ignore`,e.Insert=`insert`,e.Remove=`remove`,e))(QY||{});function $Y(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` `,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:`ignore`,trimTrailingWhitespace:!0,indentSwitchCase:!0}}var uie=$Y(` `),eX=(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))(eX||{}),tX=(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))(tX||{}),nX=(e=>(e.Comment=`comment`,e.Region=`region`,e.Code=`code`,e.Imports=`imports`,e))(nX||{}),rX=(e=>(e[e.JavaScript=0]=`JavaScript`,e[e.SourceMap=1]=`SourceMap`,e[e.Declaration=2]=`Declaration`,e))(rX||{}),iX=(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))(iX||{}),aX=(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))(aX||{}),oX=(e=>(e.unknown=``,e.warning=`warning`,e.keyword=`keyword`,e.scriptElement=`script`,e.moduleElement=`module`,e.classElement=`class`,e.localClassElement=`local class`,e.interfaceElement=`interface`,e.typeElement=`type`,e.enumElement=`enum`,e.enumMemberElement=`enum member`,e.variableElement=`var`,e.localVariableElement=`local var`,e.variableUsingElement=`using`,e.variableAwaitUsingElement=`await using`,e.functionElement=`function`,e.localFunctionElement=`local function`,e.memberFunctionElement=`method`,e.memberGetAccessorElement=`getter`,e.memberSetAccessorElement=`setter`,e.memberVariableElement=`property`,e.memberAccessorVariableElement=`accessor`,e.constructorImplementationElement=`constructor`,e.callSignatureElement=`call`,e.indexSignatureElement=`index`,e.constructSignatureElement=`construct`,e.parameterElement=`parameter`,e.typeParameterElement=`type parameter`,e.primitiveType=`primitive type`,e.label=`label`,e.alias=`alias`,e.constElement=`const`,e.letElement=`let`,e.directory=`directory`,e.externalModuleName=`external module name`,e.jsxAttribute=`JSX attribute`,e.string=`string`,e.link=`link`,e.linkName=`link name`,e.linkText=`link text`,e))(oX||{}),sX=(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))(sX||{}),cX=(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))(cX||{}),lX=(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))(lX||{}),uX=Gs(99,!0),dX=(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))(dX||{});function fX(e){switch(e.kind){case 261:return ng(e)&&Cl(e)?7:1;case 170:case 209:case 173:case 172:case 304:case 305:case 175:case 174:case 177:case 178:case 179:case 263:case 219:case 220:case 300:case 292:return 1;case 169:case 265:case 266:case 188:return 2;case 347:return e.name===void 0?3:2;case 307:case 264:return 3;case 268:return zp(e)||uz(e)===1?5:4;case 267:case 276:case 277:case 272:case 273:case 278:case 279:return 7;case 308:return 5}return 7}function pX(e){e=QX(e);let t=e.parent;return e.kind===308?1:UA(t)||KA(t)||ZA(t)||HA(t)||NA(t)||jA(t)&&e===t.name?7:mX(e)?die(e):R_(e)?fX(t):Ou(e)&&K(e,vn(xj,df,Sj))?7:hie(e)?2:fie(e)?4:PO(t)?(H.assert($j(t.parent)),2):mk(t)?3:1}function die(e){let t=e.kind===167?e:MO(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===272?7:4}function mX(e){if(!e.parent)return!1;for(;e.parent.kind===167;)e=e.parent;return $h(e.parent)&&e.parent.moduleReference===e}function fie(e){return pie(e)||mie(e)}function pie(e){let t=e,n=!0;if(t.parent.kind===167){for(;t.parent&&t.parent.kind===167;)t=t.parent;n=t.right===e}return t.parent.kind===184&&!n}function mie(e){let t=e,n=!0;if(t.parent.kind===212){for(;t.parent&&t.parent.kind===212;)t=t.parent;n=t.name===e}if(!n&&t.parent.kind===234&&t.parent.parent.kind===299){let e=t.parent.parent.parent;return e.kind===264&&t.parent.parent.token===119||e.kind===265&&t.parent.parent.token===96}return!1}function hie(e){switch(Rb(e)&&(e=e.parent),e.kind){case 110:return!Kh(e);case 198:return!0}switch(e.parent.kind){case 184:return!0;case 206:return!e.parent.isTypeOf;case 234:return eh(e.parent)}return!1}function hX(e,t=!1,n=!1){return bX(e,Tk,yX,t,n)}function gX(e,t=!1,n=!1){return bX(e,Ek,yX,t,n)}function _X(e,t=!1,n=!1){return bX(e,ud,yX,t,n)}function vX(e,t=!1,n=!1){return bX(e,Dk,vie,t,n)}function gie(e,t=!1,n=!1){return bX(e,IO,yX,t,n)}function _ie(e,t=!1,n=!1){return bX(e,Jd,yie,t,n)}function yX(e){return e.expression}function vie(e){return e.tag}function yie(e){return e.tagName}function bX(e,t,n,r,i){let a=r?bie(e):xX(e);return i&&(a=BM(a)),!!a&&!!a.parent&&t(a.parent)&&n(a.parent)===a}function xX(e){return OX(e)?e.parent:e}function bie(e){return OX(e)||kX(e)?e.parent:e}function SX(e,t){for(;e;){if(e.kind===257&&e.label.escapedText===t)return e.label;e=e.parent}}function CX(e,t){return Ck(e.expression)?e.expression.name.text===t:!1}function wX(e){return Y(e)&&vt(e.parent,$l)?.label===e}function TX(e){return Y(e)&&vt(e.parent,gA)?.label===e}function EX(e){return TX(e)||wX(e)}function DX(e){return vt(e.parent,Qd)?.tagName===e}function xie(e){return vt(e.parent,MO)?.right===e}function OX(e){return vt(e.parent,Ck)?.name===e}function kX(e){return vt(e.parent,wk)?.argumentExpression===e}function AX(e){return vt(e.parent,DA)?.name===e}function jX(e){return Y(e)&&vt(e.parent,ju)?.name===e}function MX(e){switch(e.parent.kind){case 173:case 172:case 304:case 307:case 175:case 174:case 178:case 179:case 268:return el(e.parent)===e;case 213:return e.parent.argumentExpression===e;case 168:return!0;case 202:return e.parent.parent.kind===200;default:return!1}}function Sie(e){return Xh(e.parent.parent)&&Zh(e.parent.parent)===e}function NX(e){for(t_(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 308:case 175:case 174:case 263:case 219:case 178:case 179:case 264:case 265:case 267:case 268:return e}}}function PX(e){switch(e.kind){case 308:return yP(e)?`module`:`script`;case 268:return`module`;case 264:case 232:return`class`;case 265:return`interface`;case 266:case 339:case 347:return`type`;case 267:return`enum`;case 261:return t(e);case 209:return t(Dv(e));case 220:case 263:case 219:return`function`;case 178:return`getter`;case 179:return`setter`;case 175:case 174:return`method`;case 304:let{initializer:n}=e;return ju(n)?`method`:`property`;case 173:case 172:case 305:case 306:return`property`;case 182:return`index`;case 181:return`construct`;case 180:return`call`;case 177:case 176:return`constructor`;case 169:return`type parameter`;case 307:return`enum member`;case 170:return Qy(e,31)?`property`:`parameter`;case 272:case 277:case 282:case 275:case 281:return`alias`;case 227:let r=Eg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:return``;case 1:case 2:let e=PX(i);return e===``?`const`:e;case 3:return Ak(i)?`method`:`property`;case 4:return`property`;case 5:return Ak(i)?`method`:`property`;case 6:return`local class`;default:return``}case 80:return NA(e.parent)?`alias`:``;case 278:let a=PX(e.expression);return a===``?`const`:a;default:return``}function t(e){return Im(e)?`const`:Rm(e)?`let`:`var`}}function FX(e){switch(e.kind){case 110:return!0;case 80:return Fy(e)&&e.parent.kind===170;default:return!1}}var Cie=/^\/\/\/\s*=n}function VX(e,t,n){return UX(e.pos,e.end,t,n)}function HX(e,t,n,r){return UX(e.getStart(t),e.end,n,r)}function UX(e,t,n,r){return Math.max(e,n)e.kind===t)}function XX(e){let t=y(e.parent.getChildren(),t=>sM(t)&&wx(t,e));return H.assert(!t||C(t.getChildren(),e)),t}function wie(e){return e.kind===90}function Tie(e){return e.kind===86}function Eie(e){return e.kind===100}function Die(e){if(Qc(e))return e.name;if(CA(e)){let t=e.modifiers&&y(e.modifiers,wie);if(t)return t}if(Uk(e)){let t=y(e.getChildren(),Tie);if(t)return t}}function Oie(e){if(Qc(e))return e.name;if(SA(e)){let t=y(e.modifiers,wie);if(t)return t}if(Ak(e)){let t=y(e.getChildren(),Eie);if(t)return t}}function kie(e){let t;return K(e,e=>(Ju(e)&&(t=e),!MO(e.parent)&&!Ju(e.parent)&&!Gu(e.parent))),t}function ZX(e,t){if(e.flags&16777216)return;let n=a$(e,t);if(n)return n;let r=kie(e);return r&&t.getTypeAtLocation(r)}function Aie(e,t){if(!t)switch(e.kind){case 264:case 232:return Die(e);case 263:case 219:return Oie(e);case 177:return e}if(Qc(e))return e.name}function jie(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(VA(e.importClause.namedBindings)){let t=Be(e.importClause.namedBindings.elements);return t?t.name:void 0}else if(zA(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function Mie(e,t){if(e.exportClause){if(GA(e.exportClause))return Be(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(BA(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function Nie(e){if(e.types.length===1)return e.types[0].expression}function Pie(e,t){let{parent:n}=e;if(Du(e)&&(t||e.kind!==90)?VN(n)&&C(n.modifiers,e):e.kind===86?CA(n)||Uk(e):e.kind===100?SA(n)||Ak(e):e.kind===120?wA(n):e.kind===94?EA(n):e.kind===156?TA(n):e.kind===145||e.kind===144?DA(n):e.kind===102?jA(n):e.kind===139?UO(n):e.kind===153&&WO(n)){let e=Aie(n,t);if(e)return e}if((e.kind===115||e.kind===87||e.kind===121)&&xA(n)&&n.declarations.length===1){let e=n.declarations[0];if(Y(e.name))return e.name}if(e.kind===156){if(NA(n)&&n.isTypeOnly){let e=jie(n.parent,t);if(e)return e}if(WA(n)&&n.isTypeOnly){let e=Mie(n,t);if(e)return e}}if(e.kind===130){if(HA(n)&&n.propertyName||KA(n)&&n.propertyName||zA(n)||BA(n))return n.name;if(WA(n)&&n.exportClause&&BA(n.exportClause))return n.exportClause.name}if(e.kind===102&&MA(n)){let e=jie(n,t);if(e)return e}if(e.kind===95){if(WA(n)){let e=Mie(n,t);if(e)return e}if(UA(n))return BM(n.expression)}if(e.kind===149&&ZA(n))return n.expression;if(e.kind===161&&(MA(n)||WA(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((e.kind===96||e.kind===119)&&fj(n)&&n.token===e.kind){let e=Nie(n);if(e)return e}if(e.kind===96){if(PO(n)&&n.constraint&&YO(n.constraint))return n.constraint.typeName;if(sk(n)&&YO(n.extendsType))return n.extendsType.typeName}if(e.kind===140&&ck(n))return n.typeParameter.name;if(e.kind===103&&PO(n)&&pk(n.parent))return n.name;if(e.kind===143&&dk(n)&&n.operator===143&&YO(n.type))return n.type.typeName;if(e.kind===148&&dk(n)&&n.operator===148&&ek(n.type)&&YO(n.type.elementType))return n.type.elementType.typeName;if(!t){if((e.kind===105&&Ek(n)||e.kind===116&&Pk(n)||e.kind===114&&Nk(n)||e.kind===135&&Fk(n)||e.kind===127&&Vk(n)||e.kind===91&&Mk(n))&&n.expression)return BM(n.expression);if((e.kind===103||e.kind===104)&&Rk(n)&&n.operatorToken===e)return BM(n.right);if(e.kind===130&&Kk(n)&&YO(n.type))return n.type.typeName;if(e.kind===103&&lA(n)||e.kind===165&&uA(n))return BM(n.expression)}return e}function QX(e){return Pie(e,!1)}function $X(e){return Pie(e,!0)}function eZ(e,t){return tZ(e,t,e=>hv(e)||$_(e.kind)||vO(e))}function tZ(e,t,n){return Fie(e,t,!1,n,!1)}function nZ(e,t){return Fie(e,t,!0,void 0,!1)}function Fie(e,t,n,r,i){let a=e,o;outer:for(;;){let i=a.getChildren(e),c=L(i,t,(e,t)=>t,(a,o)=>{let c=i[a].getEnd();if(ct?1:s(i[a],l,c)?i[a-1]&&s(i[a-1])?1:0:r&&l===t&&i[a-1]&&i[a-1].getEnd()===t&&s(i[a-1])?1:-1});if(o)return o;if(c>=0&&i[c]){a=i[c];continue outer}return a}function s(a,s,c){if(c??=a.getEnd(),ct))return!1;if(tn.getStart(e)&&t(t.pos<=e.pos&&t.end>e.end||t.pos===e.end)&&xZ(t,n)?r(t):void 0)}}function oZ(e,t,n,r){let i=a(n||t);return H.assert(!(i&&dZ(i))),i;function a(i){if(Iie(i)&&i.kind!==1)return i;let o=i.getChildren(t),s=L(o,e,(e,t)=>t,(t,n)=>e=o[t-1].end?0:1:-1);if(s>=0&&o[s]){let n=o[s];if(e=e||!xZ(n,t)||dZ(n)){let e=cZ(o,s,t,i.kind);return e?!r&&Zd(e)&&e.getChildren(t).length?a(e):sZ(e,t):void 0}else return a(n)}H.assert(n!==void 0||i.kind===308||i.kind===1||Zd(i));let c=cZ(o,o.length,t,i.kind);return c&&sZ(c,t)}}function Iie(e){return iu(e)&&!dZ(e)}function sZ(e,t){if(Iie(e))return e;let n=e.getChildren(t);if(n.length===0)return e;let r=cZ(n,n.length,t,e.kind);return r&&sZ(r,t)}function cZ(e,t,n,r){for(let i=t-1;i>=0;i--){let t=e[i];if(dZ(t))i===0&&(r===12||r===286)&&H.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(xZ(e[i],n))return e[i]}}function lZ(e,t,n=oZ(t,e)){if(n&&_u(n)){let r=n.getStart(e),i=n.getEnd();if(rn.getStart(e)}function pZ(e,t){let n=nZ(e,t);return!!(nO(n)||n.kind===19&&cj(n.parent)&&QA(n.parent.parent)||n.kind===30&&Jd(n.parent)&&QA(n.parent.parent))}function mZ(e,t){function n(n){for(;n;)if(n.kind>=286&&n.kind<=295||n.kind===12||n.kind===30||n.kind===32||n.kind===80||n.kind===20||n.kind===19||n.kind===44)n=n.parent;else if(n.kind===285){if(t>n.getStart(e))return!0;n=n.parent}else return!1;return!1}return n(nZ(e,t))}function hZ(e,t,n){let r=is(e.kind),i=is(t),a=e.getFullStart(),o=n.text.lastIndexOf(i,a);if(o===-1)return;if(n.text.lastIndexOf(r,a-1)!!e.typeParameters&&e.typeParameters.length>=t)}function vZ(e,t){if(t.text.lastIndexOf(`<`,e?e.pos:t.text.length)===-1)return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 30:if(n=oZ(n.getFullStart(),t),n&&n.kind===29&&(n=oZ(n.getFullStart(),t)),!n||!Y(n))return;if(!r)return R_(n)?void 0:{called:n,nTypeArguments:i};r--;break;case 50:r=3;break;case 49:r=2;break;case 32:r++;break;case 20:if(n=hZ(n,19,t),!n)return;break;case 22:if(n=hZ(n,21,t),!n)return;break;case 24:if(n=hZ(n,23,t),!n)return;break;case 28:i++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Ju(n))break;return}n=oZ(n.getFullStart(),t)}}function yZ(e,t,n){return k7.getRangeOfEnclosingComment(e,t,void 0,n)}function bZ(e,t){return!!K(nZ(e,t),Nj)}function xZ(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function SZ(e,t=0){let n=[],r=Ld(e)?Fc(e)&~t:0;return r&2&&n.push(`private`),r&4&&n.push(`protected`),r&1&&n.push(`public`),(r&256||VO(e))&&n.push(`static`),r&64&&n.push(`abstract`),r&32&&n.push(`export`),r&65536&&n.push(`deprecated`),e.flags&33554432&&n.push(`declare`),e.kind===278&&n.push(`export`),n.length>0?n.join(`,`):``}function CZ(e){if(e.kind===184||e.kind===214)return e.typeArguments;if(ju(e)||e.kind===264||e.kind===265)return e.typeParameters}function wZ(e){return e===2||e===3}function TZ(e){return!!(e===11||e===14||lu(e))}function Rie(e,t,n){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(n)}function EZ(e){if(!e.isIntersection())return!1;let{types:t,checker:n}=e;return t.length===2&&(Rie(n,t[0],t[1])||Rie(n,t[1],t[0]))}function DZ(e,t,n){return lu(e.kind)&&e.getStart(n){let n=mB(t);return!e[n]&&(e[n]=!0)}}function GZ(e){return e.getText(0,e.getLength())}function KZ(e,t){let n=``;for(let r=0;r!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function XZ(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function ZZ(e){return!!e.module||zS(e)>=2||!!e.noEmit}function QZ(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:ut(t,t.readFile),useCaseSensitiveFileNames:ut(t,t.useCaseSensitiveFileNames)||e.useCaseSensitiveFileNames,getSymlinkCache:ut(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:ut(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>e.getModuleResolutionCache()?.getPackageJsonInfoCache(),getGlobalTypingsCacheLocation:ut(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getRedirectFromSourceFile:t=>e.getRedirectFromSourceFile(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:ut(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory(),getDefaultResolutionModeForFile:t=>e.getDefaultResolutionModeForFile(t),getModeForResolutionAtIndex:(t,n)=>e.getModeForResolutionAtIndex(t,n)}}function $Z(e,t){return{...QZ(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function eQ(e){return e===2||e>=3&&e<=99||e===100}function tQ(e,t,n,r,i){return J.createImportDeclaration(void 0,e||t?J.createImportClause(i?156:void 0,e,t&&t.length?J.createNamedImports(t):void 0):void 0,typeof n==`string`?nQ(n,r):n,void 0)}function nQ(e,t){return J.createStringLiteral(e,t===0)}var rQ=(e=>(e[e.Single=0]=`Single`,e[e.Double=1]=`Double`,e))(rQ||{});function iQ(e,t){return pg(e,t)?1:0}function aQ(e,t){if(t.quotePreference&&t.quotePreference!==`auto`)return t.quotePreference===`single`?0:1;{let t=eg(e)&&e.imports&&y(e.imports,e=>tO(e)&&!kv(e.parent));return t?iQ(t,e):1}}function oQ(e){switch(e){case 0:return`'`;case 1:return`"`;default:return H.assertNever(e)}}function sQ(e){let t=cQ(e);return t===void 0?void 0:Wc(t)}function cQ(e){return e.escapedName===`default`?p(e.declarations,e=>{let t=el(e);return t&&t.kind===80?t.escapedText:void 0}):e.escapedName}function lQ(e){return uf(e)&&(ZA(e.parent)||MA(e.parent)||oM(e.parent)||sg(e.parent,!1)&&e.parent.arguments[0]===e||Bm(e.parent)&&e.parent.arguments[0]===e)}function uQ(e){return bk(e)&&vk(e.parent)&&Y(e.name)&&!e.propertyName}function dQ(e,t){let n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function fQ(e,t,n){if(e)for(;e.parent;){if(vj(e.parent)||!Vie(n,e.parent,t))return e;e=e.parent}}function Vie(e,t,n){return sc(e,t.getStart(n))&&t.getEnd()<=ac(e)}function pQ(e,t){return VN(e)?y(e.modifiers,e=>e.kind===t):void 0}function mQ(e,t,n,r,i){let a=(mt(n)?n[0]:n).kind===244?dg:tm,o=E(t.statements,a),{comparer:s,isSorted:c}=U5.getOrganizeImportsStringComparerWithDetection(o,i),l=mt(n)?Ae(n,(e,t)=>U5.compareImportsOrRequireStatements(e,t,s)):[n];if(!o?.length){if(eg(t))e.insertNodesAtTopOfFile(t,l,r);else for(let n of l)e.insertStatementsInNewFile(t.fileName,[n],Bc(n)?.getSourceFile());return}if(H.assert(eg(t)),o&&c)for(let n of l){let r=U5.getImportDeclarationInsertionIndex(o,n,s);if(r===0){let r=o[0]===t.statements[0]?{leadingTriviaOption:y7.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,o[0],n,!1,r)}else{let i=o[r-1];e.insertNodeAfter(t,i,n)}}else{let n=Re(o);n?e.insertNodesAfter(t,n,l):e.insertNodesAtTopOfFile(t,l,r)}}function hQ(e,t){return H.assert(e.isTypeOnly),yt(e.getChildAt(0,t),Bie)}function gQ(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function _Q(e,t,n){return(n?Pt:Nt)(e.fileName,t.fileName)&&gQ(e.textSpan,t.textSpan)}function vQ(e){return(t,n)=>_Q(t,n,e)}function yQ(e,t){if(e){for(let n=0;nFO(e)?!0:bk(e)||vk(e)||yk(e)?!1:`quit`)}var TQ=new Map;function Hie(e){return e||=vf,TQ.has(e)||TQ.set(e,Uie(e)),TQ.get(e)}function Uie(e){let t=e*10,n,r,i,a;d();let o=e=>c(e,17);return{displayParts:()=>{let e=n.length&&n[n.length-1].text;return a>t&&e&&e!==`...`&&(_s(e.charCodeAt(e.length-1))||n.push(EQ(` `,16)),n.push(EQ(`...`,15))),n},writeKeyword:e=>c(e,5),writeOperator:e=>c(e,12),writePunctuation:e=>c(e,15),writeTrailingSemicolon:e=>c(e,15),writeSpace:e=>c(e,16),writeStringLiteral:e=>c(e,8),writeParameter:e=>c(e,13),writeProperty:e=>c(e,14),writeLiteral:e=>c(e,8),writeSymbol:l,writeLine:u,write:o,writeComment:o,getText:()=>``,getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ot,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:d};function s(){if(!(a>t)&&r){let e=ty(i);e&&(a+=e.length,n.push(EQ(e,16))),r=!1}}function c(e,r){a>t||(s(),a+=e.length,n.push(EQ(e,r)))}function l(e,r){a>t||(s(),a+=e.length,n.push(Wie(e,r)))}function u(){a>t||(a+=1,n.push(BQ()),r=!0)}function d(){n=[],r=!0,i=0,a=0}}function Wie(e,t){return EQ(e,n(t));function n(e){let t=e.flags;return t&3?wQ(e)?13:9:t&4||t&32768||t&65536?14:t&8?19:t&16?20:t&32?1:t&64?4:t&384?2:t&1536?11:t&8192?10:t&262144?18:t&524288||t&2097152?0:17}}function EQ(e,t){return{text:e,kind:eX[t]}}function DQ(){return EQ(` `,16)}function OQ(e){return EQ(is(e),5)}function kQ(e){return EQ(is(e),15)}function AQ(e){return EQ(is(e),12)}function jQ(e){return EQ(e,13)}function MQ(e){return EQ(e,14)}function NQ(e){let t=as(e);return t===void 0?PQ(e):OQ(t)}function PQ(e){return EQ(e,17)}function FQ(e){return EQ(e,0)}function IQ(e){return EQ(e,18)}function LQ(e){return EQ(e,24)}function Gie(e,t){return{text:e,kind:eX[23],target:{fileName:Yf(t).fileName,textSpan:PZ(t)}}}function Kie(e){return EQ(e,22)}function RQ(e,t){let n=[Kie(`{@${Cj(e)?`link`:wj(e)?`linkcode`:`linkplain`} `)];if(!e.name)e.text&&n.push(LQ(e.text));else{let r=t?.getSymbolAtLocation(e.name),i=r&&t?qQ(r,t):void 0,a=Jie(e.text),o=Ep(e.name)+e.text.slice(0,a),s=qie(e.text.slice(a)),c=i?.valueDeclaration||i?.declarations?.[0];if(c)n.push(Gie(o,c)),s&&n.push(LQ(s));else{let t=a===0||e.text.charCodeAt(a)===124&&o.charCodeAt(o.length-1)!==32?` `:``;n.push(LQ(o+t+s))}}return n.push(Kie(`}`)),n}function qie(e){let t=0;if(e.charCodeAt(t++)===124){for(;t`&&t--,n++,!t)return n}return 0}var Yie=` `;function zQ(e,t){return t?.newLineCharacter||e.getNewLine?.call(e)||Yie}function BQ(){return EQ(` `,6)}function VQ(e,t){let n=Hie(t);try{return e(n),n.displayParts()}finally{n.clear()}}function HQ(e,t,n,r=0,i,a,o){return VQ(s=>{e.writeType(t,n,r|17408,s,i,a,o)},i)}function UQ(e,t,n,r,i=0){return VQ(a=>{e.writeSymbol(t,n,r,i|8,a)})}function WQ(e,t,n,r=0,i,a,o){return r|=25632,VQ(s=>{e.writeSignature(t,n,r,void 0,s,i,a,o)},i)}function GQ(e){return!!e.parent&&fu(e.parent)&&e.parent.propertyName===e}function KQ(e,t){return zC(e,t.getScriptKind&&t.getScriptKind(e))}function qQ(e,t){let n=e;for(;Xie(n)||wf(n)&&n.links.target;)n=wf(n)&&n.links.target?n.links.target:Nx(n,t);return n}function Xie(e){return(e.flags&2097152)!=0}function JQ(e,t){return hB(Nx(e,t))}function YQ(e,t){for(;_s(e.charCodeAt(t));)t+=1;return t}function XQ(e,t){for(;t>-1&&vs(e.charCodeAt(t));)--t;return t+1}function ZQ(e,t){let n=e.getSourceFile(),r=n.text;Zie(e,r)?e$(e,t,n):n$(e,t,n),t$(e,t,n)}function Zie(e,t){let n=e.getFullStart(),r=e.getStart();for(let e=n;e=0),a}function e$(e,t,n,r,i){Ps(n.text,e.pos,r$(t,n,r,i,rD))}function t$(e,t,n,r,i){Fs(n.text,e.end,r$(t,n,r,i,oD))}function n$(e,t,n,r,i){Fs(n.text,e.pos,r$(t,n,r,i,rD))}function r$(e,t,n,r,i){return(a,o,s,c)=>{s===3?(a+=2,o-=2):a+=2,i(e,n||s,t.text.slice(a,o),r===void 0?c:r)}}function Qie(e,t){if(pn(e,t))return 0;let n=e.indexOf(` `+t);return n===-1&&(n=e.indexOf(`.`+t)),n===-1&&(n=e.indexOf(`"`+t)),n===-1?-1:n+1}function i$(e){return Rk(e)&&e.operatorToken.kind===28||Sk(e)||(Kk(e)||qk(e))&&Sk(e.expression)}function a$(e,t,n){let r=M_(e.parent);switch(r.kind){case 215:return t.getContextualType(r,n);case 227:{let{left:i,operatorToken:a,right:o}=r;return s$(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e,n)}case 297:return u$(r,t);default:return t.getContextualType(e,n)}}function o$(e,t,n){let r=aQ(e,t),i=JSON.stringify(n);return r===0?`'${Zv(i).replace(/'/g,()=>`\\'`).replace(/\\"/g,`"`)}'`:i}function s$(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function c$(e){switch(e.kind){case 11:case 15:case 229:case 216:return!0;default:return!1}}function l$(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function u$(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var d$=`anonymous function`;function f$(e,t,n,r){let i=n.getTypeChecker(),a=!0,o=()=>a=!1,s=i.typeToTypeNode(e,t,1,8,{trackSymbol:(e,t,n)=>(a&&=i.isSymbolAccessible(e,t,n,!1).accessibility===0,!a),reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:$Z(n,r)});return a?s:void 0}function p$(e){return e===180||e===181||e===182||e===172||e===174}function $ie(e){return e===263||e===177||e===175||e===178||e===179}function eae(e){return e===268}function m$(e){return e===244||e===245||e===247||e===252||e===253||e===254||e===258||e===260||e===173||e===266||e===273||e===272||e===279||e===271||e===278}var tae=vn(p$,$ie,eae,m$);function nae(e,t){let n=e.getLastToken(t);if(n&&n.kind===27)return!1;if(p$(e.kind)){if(n&&n.kind===28)return!1}else if(eae(e.kind)){let n=ze(e.getChildren(t));if(n&&OA(n))return!1}else if($ie(e.kind)){let n=ze(e.getChildren(t));if(n&&ph(n))return!1}else if(!m$(e.kind))return!1;if(e.kind===247)return!0;let r=aZ(e,K(e,e=>!e.parent),t);return!r||r.kind===20?!0:t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}function h$(e,t,n){let r=K(t,t=>t.end===e?tae(t.kind):`quit`);return!!r&&nae(r,n)}function g$(e){let t=0,n=0;return pP(e,function r(i){if(m$(i.kind))i.getLastToken(e)?.kind===27?t++:n++;else if(p$(i.kind)){let r=i.getLastToken(e);r?.kind===27?t++:r&&r.kind!==28&&gs(e,r.getStart(e)).line!==gs(e,Tm(e,r.end).start).line&&n++}return t+n>=5?!0:pP(i,r)}),t===0&&n<=1?!0:t/n>1/5}function _$(e,t){return S$(e,e.getDirectories,t)||[]}function v$(e,t,n,r,i){return S$(e,e.readDirectory,t,n,r,i)||c}function y$(e,t){return S$(e,e.fileExists,t)}function b$(e,t){return x$(()=>rx(t,e))||!1}function x$(e){try{return e()}catch{return}}function S$(e,t,...n){return x$(()=>t&&t.apply(e,n))}function C$(e,t){let n=[];return GR(t,e,e=>{let r=lo(e,`package.json`);y$(t,r)&&n.push(r)}),n}function w$(e,t){let n;return GR(t,e,e=>{if(e===`node_modules`||(n=iW(e,e=>y$(t,e),`package.json`),n))return!0}),n}function rae(e,t){if(!t.fileExists)return[];let n=[];return GR(t,$a(e),e=>{let r=lo(e,`package.json`);if(t.fileExists(r)){let e=T$(r,t);e&&n.push(e)}}),n}function T$(e,t){if(!t.readFile)return;let n=[`dependencies`,`devDependencies`,`optionalDependencies`,`peerDependencies`],r=nx(t.readFile(e)||``),i={};if(r)for(let e of n){let t=r[e];if(!t)continue;let n=new Map;for(let e in t)n.set(e,t[e]);i[e]=n}let a=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:o,has(e,t){return!!o(e,t)}};function o(e,t=15){for(let[n,r]of a)if(r&&t&n){let t=r.get(e);if(t!==void 0)return t}}}function E$(e,t,n){let r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||rae(e.fileName,n)).filter(e=>e.parseable),i,a,o;return{allowsImportingAmbientModule:c,getSourceFileInfo:l,allowsImportingSpecifier:u};function s(e){let t=p(e);for(let e of r)if(e.has(t)||e.has(ZR(t)))return!0;return!1}function c(e,t){if(!r.length||!e.valueDeclaration)return!0;if(!a)a=new Map;else{let t=a.get(e);if(t!==void 0)return t}let n=Zv(e.getName());if(d(n))return a.set(e,!0),!0;let i=f(e.valueDeclaration.getSourceFile().fileName,t);if(i===void 0)return a.set(e,!0),!0;let o=s(i)||s(n);return a.set(e,o),o}function l(e,t){if(!r.length)return{importable:!0,packageName:void 0};if(!o)o=new Map;else{let t=o.get(e);if(t!==void 0)return t}let n=f(e.fileName,t);if(!n){let t={importable:!0,packageName:n};return o.set(e,t),t}let i={importable:s(n),packageName:n};return o.set(e,i),i}function u(e){return!r.length||d(e)||Wa(e)||Va(e)?!0:s(e)}function d(t){return!!(eg(e)&&tg(e)&&YT.has(t)&&(i===void 0&&(i=D$(e)),i))}function f(r,i){if(!r.includes(`node_modules`))return;let a=wz.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);if(a&&!Wa(a)&&!Va(a))return p(a)}function p(e){let t=ao($R(e)).slice(1);return pn(t[0],`@`)?`${t[0]}/${t[1]}`:t[0]}}function D$(e){return F(e.imports,({text:e})=>YT.has(e))}function O$(e){return C(ao(e),`node_modules`)}function iae(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function k$(e,t){let n=L(t,PZ(e),wt,Lt);if(n>=0){let r=t[n];return H.assertEqual(r.file,e.getSourceFile(),`Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile`),yt(r,iae)}}function A$(e,t){let n=L(t,e.start,e=>e.start,It);for(n<0&&(n=~n);t[n-1]?.start===e.start;)n--;let r=[],i=ac(e);for(;;){let a=vt(t[n],iae);if(!a||a.start>i)break;lc(e,a)&&r.push(a),n++}return r}function j$({startPosition:e,endPosition:t}){return Sc(e,t===void 0?e:t)}function M$(e,t){return K(nZ(e,t.start),n=>n.getStart(e)ac(t)?`quit`:q(n)&&gQ(t,PZ(n,e)))}function N$(e,t,n=wt){return e?mt(e)?n(k(e,t)):t(e,0):void 0}function P$(e){return mt(e)?Ie(e):e}function F$(e,t,n){return e.escapedName===`export=`||e.escapedName===`default`?I$(e)||L$(aae(e),t,!!n):e.name}function I$(e){return p(e.declarations,t=>{if(UA(t))return vt(BM(t.expression),Y)?.text;if(KA(t)&&t.symbol.flags===2097152)return vt(t.propertyName,Y)?.text;let n=vt(el(t),Y)?.text;if(n)return n;if(e.parent&&!Tf(e.parent))return e.parent.getName()})}function aae(e){return H.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${H.formatSymbolFlags(e.flags)}. Declarations: ${e.declarations?.map(e=>{let t=H.formatSyntaxKind(e.kind),n=ng(e),{expression:r}=e;return(n?`[JS]`:``)+t+(r?` (expression: ${H.formatSyntaxKind(r.kind)})`:``)}).join(`, `)}.`)}function L$(e,t,n){return R$(uw(Zv(e.name)),t,n)}function R$(e,t,n){let r=eo(en(uw(e),`/index`)),i=``,a=!0,o=r.charCodeAt(0);Hs(o,t)?(i+=String.fromCharCode(o),n&&(i=i.toUpperCase())):a=!1;for(let e=1;ee.length)return!1;for(let i=0;i(e[e.Named=0]=`Named`,e[e.Default=1]=`Default`,e[e.Namespace=2]=`Namespace`,e[e.CommonJS=3]=`CommonJS`,e))(Q$||{}),$$=(e=>(e[e.Named=0]=`Named`,e[e.Default=1]=`Default`,e[e.ExportEquals=2]=`ExportEquals`,e[e.UMD=3]=`UMD`,e[e.Module=4]=`Module`,e))($$||{});function e1(e){let t=1,n=R(),r=new Map,i=new Map,a,o={isUsableByFile:e=>e===a,isEmpty:()=>!n.size,clear:()=>{n.clear(),r.clear(),a=void 0},add:(e,s,c,u,d,f,p,m)=>{e!==a&&(o.clear(),a=e);let h;if(d){let t=dT(d.fileName);if(t){let{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:a}=t;if(h=ez($R(d.fileName.substring(r+1,a))),pn(e,d.path.substring(0,n))){let e=i.get(h),t=d.fileName.substring(0,r+1);e?n>e.indexOf(dR)&&i.set(h,t):i.set(h,t)}}}let g=f===1&&Gb(s)||s,_=f===0||Tf(g)?Wc(c):dae(g,m,void 0),v=typeof _==`string`?_:_[0],y=typeof _==`string`?void 0:_[1],b=Zv(u.name),x=t++,S=Nx(s,m),C=s.flags&33554432?void 0:s,w=u.flags&33554432?void 0:u;(!C||!w)&&r.set(x,[s,u]),n.add(l(v,s,tc(b)?void 0:b,m),{id:x,symbolTableKey:c,symbolName:v,capitalizedSymbolName:y,moduleName:b,moduleFile:d,moduleFileName:d?.fileName,packageName:h,exportKind:f,targetFlags:S.flags,isFromPackageJson:p,symbol:C,moduleSymbol:w})},get:(e,t)=>e===a?n.get(t)?.map(s):void 0,search:(e,t,r,i)=>{if(e===a)return Mf(n,(e,n)=>{let{symbolName:a,ambientModuleName:o}=u(n),c=t&&e[0].capitalizedSymbolName||a;if(r(c,e[0].targetFlags)){let t=e.map(s).filter((t,n)=>p(t,e[n].packageName));if(t.length){let e=i(t,c,!!o,n);if(e!==void 0)return e}}})},releaseSymbols:()=>{r.clear()},onFileChanged:(e,t,n)=>d(e)&&d(t)?!1:a&&a!==t.path||n&&D$(e)!==D$(t)||!xe(e.moduleAugmentations,t.moduleAugmentations)||!f(e,t)?(o.clear(),!0):(a=t.path,!1)};return H.isDebugging&&Object.defineProperty(o,`__cache`,{value:n}),o;function s(t){if(t.symbol&&t.moduleSymbol)return t;let{id:n,exportKind:i,targetFlags:a,isFromPackageJson:o,moduleFileName:s}=t,[l,u]=r.get(n)||c;if(l&&u)return{symbol:l,moduleSymbol:u,moduleFileName:s,exportKind:i,targetFlags:a,isFromPackageJson:o};let d=(o?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),f=t.moduleSymbol||u||H.checkDefined(t.moduleFile?d.getMergedSymbol(t.moduleFile.symbol):d.tryFindAmbientModule(t.moduleName)),p=t.symbol||l||H.checkDefined(i===2?d.resolveExternalModuleSymbol(f):d.tryGetMemberInModuleExportsAndProperties(Wc(t.symbolTableKey),f),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${f.name}`);return r.set(n,[p,f]),{symbol:p,moduleSymbol:f,moduleFileName:s,exportKind:i,targetFlags:a,isFromPackageJson:o}}function l(e,t,n,r){let i=n||``;return`${e.length} ${hB(Nx(t,r))} ${e} ${i}`}function u(e){let t=e.indexOf(` `),n=e.indexOf(` `,t+1),r=parseInt(e.substring(0,t),10),i=e.substring(n+1),a=i.substring(0,r),o=i.substring(r+1);return{symbolName:a,ambientModuleName:o===``?void 0:o}}function d(e){return!e.commonJsModuleIndicator&&!e.externalModuleIndicator&&!e.moduleAugmentations&&!e.ambientModuleNames}function f(e,t){if(!xe(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(let i of t.ambientModuleNames){let a=e=>Vp(e)&&e.name.text===i;if(n=x(e.statements,a,n+1),r=x(t.statements,a,r+1),e.statements[n]!==t.statements[r])return!1}return!0}function p(t,n){if(!n||!t.moduleFileName)return!0;let r=e.getGlobalTypingsCacheLocation();if(r&&pn(t.moduleFileName,r))return!0;let a=i.get(n);return!a||pn(t.moduleFileName,a)}}function t1(e,t,n,r,i,a,o,s){if(!n){let n,i=Zv(r.name);return YT.has(i)&&(n=H$(t,e))!==void 0?n===pn(i,`node:`):!a||a.allowsImportingAmbientModule(r,o)||n1(t,i)}if(H.assertIsDefined(n),t===n)return!1;let c=s?.get(t.path,n.path,i,{});if(c?.isBlockedByPackageJsonDependencies!==void 0)return!c.isBlockedByPackageJsonDependencies||!!c.packageName&&n1(t,c.packageName);let l=oy(o),u=o.getGlobalTypingsCacheLocation?.call(o),d=!!wz.forEachFileNameOfModule(t.fileName,n.fileName,o,!1,r=>{let i=e.getSourceFile(r);return(i===n||!i)&&oae(t.fileName,r,l,u,o)});if(a){let e=d?a.getSourceFileInfo(n,o):void 0;return s?.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},e?.packageName,!e?.importable),!!e?.importable||d&&!!e?.packageName&&n1(t,e.packageName)}return d}function n1(e,t){return e.imports&&e.imports.some(e=>e.text===t||e.text.startsWith(t+`/`))}function oae(e,t,n,r,i){let a=GR(i,t,e=>eo(e)===`node_modules`?e:void 0),o=a&&$a(n(a));return o===void 0||pn(n(e),o)||!!r&&pn(n(r),o)}function r1(e,t,n,r,i){var a;let o=ay(t),s=n.autoImportFileExcludePatterns&&sae(n,o);cae(e.getTypeChecker(),e.getSourceFiles(),s,t,(t,n)=>i(t,n,e,!1));let c=r&&t.getPackageJsonAutoImportProvider?.call(t);if(c){let n=sr(),r=e.getTypeChecker();cae(c.getTypeChecker(),c.getSourceFiles(),s,t,(t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,c,!0)}),(a=t.log)==null||a.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${sr()-n}`)}}function sae(e,t){return M(e.autoImportFileExcludePatterns,e=>{let n=PC(e,``,`exclude`);return n?LC(n,t):void 0})}function cae(e,t,n,r,i){let a=n&&lae(n,r);for(let t of e.getAmbientModules())!t.name.includes(`*`)&&!(n&&t.declarations?.every(e=>a(e.getSourceFile())))&&i(t,void 0);for(let n of t)Am(n)&&!a?.(n)&&i(e.getMergedSymbol(n.symbol),n)}function lae(e,t){let n=t.getSymlinkCache?.call(t).getSymlinkedDirectoriesByRealpath();return({fileName:r,path:i})=>{if(e.some(e=>e.test(r)))return!0;if(n?.size&&fR(r)){let a=$a(r);return GR(t,$a(i),t=>{let i=n.get(xo(t));if(i)return i.some(t=>e.some(e=>e.test(r.replace(a,t))));a=$a(a)})??!1}return!1}}function i1(e,t){return t.autoImportFileExcludePatterns?lae(sae(t,ay(e)),e):()=>!1}function a1(e,t,n,r,i){var a,o,s,c;let l=sr();(a=t.getPackageJsonAutoImportProvider)==null||a.call(t);let u=t.getCachedExportInfoMap?.call(t)||e1({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>t.getPackageJsonAutoImportProvider?.call(t),getGlobalTypingsCacheLocation:()=>t.getGlobalTypingsCacheLocation?.call(t)});if(u.isUsableByFile(e.path))return(o=t.log)==null||o.call(t,`getExportInfoMap: cache hit`),u;(s=t.log)==null||s.call(t,`getExportInfoMap: cache miss or empty; calculating new results`);let d=0;try{r1(n,t,r,!0,(t,n,r,a)=>{++d%100==0&&i?.throwIfCancellationRequested();let o=new Set,s=r.getTypeChecker(),c=o1(t,s);c&&uae(c.symbol,s)&&u.add(e.path,c.symbol,c.exportKind===1?`default`:`export=`,t,n,c.exportKind,a,s),s.forEachExportAndPropertyOfModule(t,(r,i)=>{r!==c?.symbol&&uae(r,s)&&Jx(o,i)&&u.add(e.path,r,i,t,n,0,a,s)})})}catch(e){throw u.clear(),e}return(c=t.log)==null||c.call(t,`getExportInfoMap: done in ${sr()-l} ms`),u}function o1(e,t){let n=t.resolveExternalModuleSymbol(e);if(n!==e){let e=t.tryGetMemberInModuleExports(`default`,n);return e?{symbol:e,exportKind:1}:{symbol:n,exportKind:2}}let r=t.tryGetMemberInModuleExports(`default`,e);if(r)return{symbol:r,exportKind:1}}function uae(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!yv(e)&&!bv(e)}function dae(e,t,n){let r;return s1(e,t,n,(e,t)=>(r=t?[e,t]:e,!0)),H.checkDefined(r)}function s1(e,t,n,r){let i,a=e,o=new Set;for(;a;){let e=I$(a);if(e){let t=r(e);if(t)return t}if(a.escapedName!==`default`&&a.escapedName!==`export=`){let e=r(a.name);if(e)return e}if(i=I(i,a),!Jx(o,a))break;a=a.flags&2097152?t.getImmediateAliasedSymbol(a):void 0}for(let e of i??c)if(e.parent&&Tf(e.parent)){let t=r(L$(e.parent,n,!1),L$(e.parent,n,!0));if(t)return t}}function fae(){let e=Gs(99,!1);function t(e,t,r){return gae(n(e,t,r),e)}function n(t,n,r){let i=0,a=0,o=[],{prefix:s,pushTemplate:c}=yae(n);t=s+t;let l=s.length;c&&o.push(16),e.setText(t);let u=0,d=[],f=0;do{i=e.scan(),ov(i)||(p(),a=i);let n=e.getTokenEnd();if(hae(e.getTokenStart(),n,l,Sae(i),d),n>=t.length){let t=mae(e,i,Re(o));t!==void 0&&(u=t)}}while(i!==1);function p(){switch(i){case 44:case 69:!pae[a]&&e.reScanSlashToken()===14&&(i=14);break;case 30:a===80&&f++;break;case 32:f>0&&f--;break;case 133:case 154:case 150:case 136:case 155:f>0&&!r&&(i=80);break;case 16:o.push(i);break;case 19:o.length>0&&o.push(i);break;case 20:if(o.length>0){let t=Re(o);t===16?(i=e.reScanTemplateToken(!1),i===18?o.pop():H.assertEqual(i,17,`Should have been a template middle.`)):(H.assertEqual(t,19,`Should have been an open brace`),o.pop())}break;default:if(!$_(i))break;(a===25||$_(a)&&$_(i)&&!vae(a,i))&&(i=80)}}return{endOfLineState:u,spans:d}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:n}}var pae=rt([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function mae(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;let t=e.getTokenText(),n=t.length-1,r=0;for(;t.charCodeAt(n-r)===92;)r++;return r&1?t.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(lu(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return H.fail(`Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #`+t)}}return n===16?6:void 0}}function hae(e,t,n,r,i){if(r===8)return;e===0&&n>0&&(e+=n);let a=t-e;a>0&&i.push(e-n,a,r)}function gae(e,t){let n=[],r=e.spans,i=0;for(let e=0;e=0){let e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:a,classification:_ae(o)}),i=t+a}let a=t.length-i;return a>0&&n.push({length:a,classification:4}),{entries:n,finalLexState:e.endOfLineState}}function _ae(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 vae(e,t){if(!OZ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function yae(e){switch(e){case 3:return{prefix:`"\\ `};case 2:return{prefix:`'\\ `};case 1:return{prefix:`/* `};case 4:return{prefix:`\` `};case 5:return{prefix:`} `,pushTemplate:!0};case 6:return{prefix:``,pushTemplate:!0};case 0:return{prefix:``};default:return H.assertNever(e)}}function bae(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function xae(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function Sae(e){if($_(e))return 3;if(bae(e)||xae(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return lu(e)?6:2}}function c1(e,t,n,r,i){return Dae(l1(e,t,n,r,i))}function Cae(e,t){switch(t){case 268:case 264:case 265:case 263:case 232:case 219:case 220:e.throwIfCancellationRequested()}}function l1(e,t,n,r,i){let a=[];return n.forEachChild(function a(s){if(!(!s||!hc(i,s.pos,s.getFullWidth()))){if(Cae(t,s.kind),Y(s)&&!rp(s)&&r.has(s.escapedText)){let t=e.getSymbolAtLocation(s),r=t&&wae(t,pX(s),e);r&&o(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}}),{spans:a,endOfLineState:0};function o(e,t,n){let r=t-e;H.assert(r>0,`Classification had non-positive length of ${r}`),a.push(e),a.push(r),a.push(n)}}function wae(e,t,n){let r=e.getFlags();if(r&2885600){if(r&32)return 11;if(r&384)return 12;if(r&524288)return 16;if(r&1536)return t&4||t&1&&Tae(e)?14:void 0;if(r&2097152)return wae(n.getAliasedSymbol(e),t,n);if(t&2)return r&64?13:r&262144?15:void 0}}function Tae(e){return F(e.declarations,e=>DA(e)&&uz(e)===1)}function Eae(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 Dae(e){H.assert(e.spans.length%3==0);let t=e.spans,n=[];for(let e=0;e])*)(\/>)?)?/m,i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/g,a=t.text.substr(e,n),o=r.exec(a);if(!o||!o[3]||!(o[3]in ta))return!1;let s=e;d(s,o[1].length),s+=o[1].length,c(s,o[2].length,10),s+=o[2].length,c(s,o[3].length,21),s+=o[3].length;let l=o[4],u=s;for(;;){let e=i.exec(l);if(!e)break;let t=s+e.index+e[1].length;t>u&&(d(u,t-u),u=t),c(u,e[2].length,22),u+=e[2].length,e[3].length&&(d(u,e[3].length),u+=e[3].length),c(u,e[4].length,5),u+=e[4].length,e[5].length&&(d(u,e[5].length),u+=e[5].length),c(u,e[6].length,24),u+=e[6].length}s+=o[4].length,s>u&&d(u,s-u),o[5]&&(c(s,o[5].length,10),s+=o[5].length);let f=e+n;return s=0),r>0){let i=t||y(e.kind,e);i&&c(n,r,i)}return!0}function v(e){switch(e.parent&&e.parent.kind){case 287:if(e.parent.tagName===e)return 19;break;case 288:if(e.parent.tagName===e)return 20;break;case 286:if(e.parent.tagName===e)return 21;break;case 292:if(e.parent.name===e)return 22;break}}function y(e,t){if($_(e))return 3;if((e===30||e===32)&&t&&CZ(t.parent))return 10;if(ev(e)){if(t){let n=t.parent;if(e===64&&(n.kind===261||n.kind===173||n.kind===170||n.kind===292)||n.kind===227||n.kind===225||n.kind===226||n.kind===228)return 5}return 10}else if(e===9)return 4;else if(e===10)return 25;else if(e===11)return t&&t.parent.kind===292?24:6;else if(e===14)return 6;else if(lu(e))return 6;else if(e===12)return 23;else if(e===80){if(t){switch(t.parent.kind){case 264:return t.parent.name===t?11:void 0;case 169:return t.parent.name===t?15:void 0;case 265:return t.parent.name===t?13:void 0;case 267:return t.parent.name===t?12:void 0;case 268:return t.parent.name===t?14:void 0;case 170:return t.parent.name===t?My(t)?3:17:void 0}if(Xl(t.parent))return 3}return 2}}function b(n){if(n&&gc(r,i,n.pos,n.getFullWidth())){Cae(e,n.kind);for(let e of n.getChildren(t))_(e)||b(e)}}}var f1;(e=>{function t(e,t,a,o,s){let c=eZ(a,o);if(c.parent&&(ej(c.parent)&&c.parent.tagName===c||tj(c.parent))){let{openingElement:e,closingElement:t}=c.parent.parent,r=[e,t].map(({tagName:e})=>n(e,a));return[{fileName:a.fileName,highlightSpans:r}]}return r(o,c,e,t,s)||i(c,a)}e.getDocumentHighlights=t;function n(e,t){return{fileName:t.fileName,textSpan:PZ(e,t),kind:`none`}}function r(e,t,n,r,i){let a=new Set(i.map(e=>e.fileName)),o=u5.getReferenceEntriesForNode(e,t,n,i,r,void 0,a);if(!o)return;let s=it(o.map(u5.toHighlightSpan),e=>e.fileName,e=>e.span),c=ln(n.useCaseSensitiveFileNames());return $e(N(s.entries(),([e,t])=>{if(!a.has(e)){if(!n.redirectTargetsMap.has(yo(e,n.getCurrentDirectory(),c)))return;let t=n.getSourceFile(e);e=y(i,e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t).fileName,H.assert(a.has(e))}return{fileName:e,highlightSpans:t}}))}function i(e,t){let n=a(e,t);return n&&[{fileName:t.fileName,highlightSpans:n}]}function a(e,t){switch(e.kind){case 101:case 93:return aA(e.parent)?D(e.parent,t):void 0;case 107:return i(e.parent,pA,S);case 111:return i(e.parent,_A,x);case 113:case 85:case 98:return i(e.kind===85?e.parent.parent:e.parent,vA,b);case 109:return i(e.parent,hA,v);case 84:case 90:return dj(e.parent)||uj(e.parent)?i(e.parent.parent.parent,hA,v):void 0;case 83:case 88:return i(e.parent,$l,_);case 99:case 117:case 92:return i(e.parent,e=>bd(e,!0),g);case 137:return r(HO,[137]);case 139:case 153:return r(Bu,[139,153]);case 135:return i(e.parent,Fk,w);case 134:return a(w(e));case 127:return a(T(e));case 103:case 147:return;default:return wu(e.kind)&&(Ld(e.parent)||nA(e.parent))?a(p(e.kind,e.parent)):void 0}function r(n,r){return i(e.parent,n,e=>M(vt(e,Md)?.symbol.declarations,e=>n(e)?y(e.getChildren(t),e=>C(r,e.kind)):void 0))}function i(e,n,r){return n(e)?a(r(e,t)):void 0}function a(e){return e&&e.map(e=>n(e,t))}}function o(e){return _A(e)?[e]:vA(e)?de(e.catchClause?o(e.catchClause):e.tryBlock&&o(e.tryBlock),e.finallyBlock&&o(e.finallyBlock)):ju(e)?void 0:l(e,o)}function s(e){let t=e;for(;t.parent;){let e=t.parent;if(ph(e)||e.kind===308)return e;if(vA(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}function c(e){return $l(e)?[e]:ju(e)?void 0:l(e,c)}function l(e,t){let n=[];return e.forEachChild(e=>{let r=t(e);r!==void 0&&n.push(...ht(r))}),n}function u(e,t){let n=f(t);return!!n&&n===e}function f(e){return K(e,t=>{switch(t.kind){case 256:if(e.kind===252)return!1;case 249:case 250:case 251:case 248:case 247:return!e.label||k(t,e.label.escapedText);default:return ju(t)&&`quit`}})}function p(e,t){return M(m(t,yb(e)),t=>pQ(t,e))}function m(e,t){let n=e.parent;switch(n.kind){case 269:case 308:case 242:case 297:case 298:return t&64&&CA(e)?[...e.members,e]:n.statements;case 177:case 175:case 263:return[...n.parameters,...zu(n.parent)?n.parent.members:[]];case 264:case 232:case 265:case 188:let r=n.members;if(t&15){let e=y(n.members,HO);if(e)return[...r,...e.parameters]}else if(t&64)return[...r,n];return r;default:return}}function h(e,t,...n){return t&&C(n,t.kind)?(e.push(t),!0):!1}function g(e){let t=[];if(h(t,e.getFirstToken(),99,117,92)&&e.kind===247){let n=e.getChildren();for(let e=n.length-1;e>=0&&!h(t,n[e],117);e--);}return d(c(e.statement),n=>{u(e,n)&&h(t,n.getFirstToken(),83,88)}),t}function _(e){let t=f(e);if(t)switch(t.kind){case 249:case 250:case 251:case 247:case 248:return g(t);case 256:return v(t)}}function v(e){let t=[];return h(t,e.getFirstToken(),109),d(e.caseBlock.clauses,n=>{h(t,n.getFirstToken(),84,90),d(c(n),n=>{u(e,n)&&h(t,n.getFirstToken(),83)})}),t}function b(e,t){let n=[];return h(n,e.getFirstToken(),113),e.catchClause&&h(n,e.catchClause.getFirstToken(),85),e.finallyBlock&&h(n,YX(e,98,t),98),n}function x(e,t){let n=s(e);if(!n)return;let r=[];return d(o(n),e=>{r.push(YX(e,111,t))}),ph(n)&&nh(n,e=>{r.push(YX(e,107,t))}),r}function S(e,t){let n=bh(e);if(!n)return;let r=[];return nh(yt(n.body,tA),e=>{r.push(YX(e,107,t))}),d(o(n.body),e=>{r.push(YX(e,111,t))}),r}function w(e){let t=bh(e);if(!t)return;let n=[];return t.modifiers&&t.modifiers.forEach(e=>{h(n,e,134)}),pP(t,e=>{E(e,e=>{Fk(e)&&h(n,e.getFirstToken(),135)})}),n}function T(e){let t=bh(e);if(!t)return;let n=[];return pP(t,e=>{E(e,e=>{Vk(e)&&h(n,e.getFirstToken(),127)})}),n}function E(e,t){t(e),!ju(e)&&!zu(e)&&!wA(e)&&!DA(e)&&!TA(e)&&!Ju(e)&&pP(e,e=>E(e,t))}function D(e,t){let r=O(e,t),i=[];for(let e=0;e=n.end;e--)if(!vs(t.text.charCodeAt(e))){o=!1;break}if(o){i.push({fileName:t.fileName,textSpan:Sc(n.getStart(),a.end),kind:`reference`}),e++;continue}}i.push(n(r[e],t))}return i}function O(e,t){let n=[];for(;aA(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){let r=e.getChildren(t);h(n,r[0],101);for(let e=r.length-1;e>=0&&!h(n,r[e],93);e--);if(!e.elseStatement||!aA(e.elseStatement))break;e=e.elseStatement}return n}function k(e,t){return!!K(e.parent,e=>gA(e)?e.label.escapedText===t:`quit`)}})(f1||={});function p1(e){return!!e.sourceFile}function m1(e,t,n){return h1(e,t,n)}function h1(e,t=``,n,r){let i=new Map,a=ln(!!e);function o(){let e=$e(i.keys()).filter(e=>e&&e.charAt(0)===`_`).map(e=>{let t=i.get(e),n=[];return t.forEach((e,t)=>{p1(e)?n.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((e,r)=>n.push({name:t,scriptKind:r,refCount:e.languageServiceRefCount}))}),n.sort((e,t)=>t.refCount-e.refCount),{bucket:e,sourceFiles:n}});return JSON.stringify(e,void 0,2)}function s(e){return typeof e.getCompilationSettings==`function`?e.getCompilationSettings():e}function c(e,n,r,i,o,c){return l(e,yo(e,t,a),n,g1(s(n)),r,i,o,c)}function l(e,t,n,r,i,a,o,s){return p(e,t,n,r,i,a,!0,o,s)}function u(e,n,r,i,o,c){return d(e,yo(e,t,a),n,g1(s(n)),r,i,o,c)}function d(e,t,n,r,i,a,o,c){return p(e,t,s(n),r,i,a,!1,o,c)}function f(e,t){let n=p1(e)?e:e.get(H.checkDefined(t,`If there are more than one scriptKind's for same document the scriptKind should be provided`));return H.assert(t===void 0||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${n?.sourceFile.scriptKind}, !entry: ${!n}`),n}function p(e,t,a,o,c,l,u,d,p){var m;d=zC(e,d);let h=s(a),g=a===h?void 0:a,_=d===6?100:zS(h),v=typeof p==`object`?p:{languageVersion:_,impliedNodeFormat:g&&ZW(t,(((m=g.getCompilerHost?.call(g))?.getModuleResolutionCache)?.call(m))?.getPackageJsonInfoCache(),g,h),setExternalModuleIndicator:PS(h),jsDocParsingMode:n};v.languageVersion=_,H.assertEqual(n,v.jsDocParsingMode);let y=i.size,b=_1(o,v.impliedNodeFormat),x=oe(i,b,()=>new Map);if(Ar){i.size>y&&Ar.instant(Ar.Phase.Session,`createdDocumentRegistryBucket`,{configFilePath:h.configFilePath,key:b});let e=!OP(t)&&Mf(i,(e,n)=>n!==b&&e.has(t)&&n);e&&Ar.instant(Ar.Phase.Session,`documentRegistryBucketOverlap`,{path:t,key1:e,key2:b})}let S=x.get(t),C=S&&f(S,d);if(!C&&r){let e=r.getDocument(b,t);e&&e.scriptKind===d&&e.text===GZ(c)&&(H.assert(u),C={sourceFile:e,languageServiceRefCount:0},w())}if(C)C.sourceFile.version!==l&&(C.sourceFile=l4(C.sourceFile,c,l,c.getChangeRange(C.sourceFile.scriptSnapshot)),r&&r.setDocument(b,t,C.sourceFile)),u&&C.languageServiceRefCount++;else{let n=c4(e,c,v,l,!1,d);r&&r.setDocument(b,t,n),C={sourceFile:n,languageServiceRefCount:1},w()}return H.assert(C.languageServiceRefCount!==0),C.sourceFile;function w(){if(!S)x.set(t,C);else if(p1(S)){let e=new Map;e.set(S.sourceFile.scriptKind,S),e.set(d,C),x.set(t,e)}else S.set(d,C)}}function h(e,n,r,i){return g(yo(e,t,a),g1(n),r,i)}function g(e,t,n,r){let a=H.checkDefined(i.get(_1(t,r))),o=a.get(e),s=f(o,n);s.languageServiceRefCount--,H.assert(s.languageServiceRefCount>=0),s.languageServiceRefCount===0&&(p1(o)?a.delete(e):(o.delete(n),o.size===1&&a.set(e,m(o.values(),wt))))}return{acquireDocument:c,acquireDocumentWithKey:l,updateDocument:u,updateDocumentWithKey:d,releaseDocument:h,releaseDocumentWithKey:g,getKeyForCompilationSettings:g1,getDocumentRegistryBucketKeyWithMode:_1,reportStats:o,getBuckets:()=>i}}function g1(e){return zL(e,nF)}function _1(e,t){return t?`${e}|${t}`:e}function v1(e,t,n,r,i,a,o){let s=ay(r),c=ln(s),l=y1(t,n,c,o),u=y1(n,t,c,o);return y7.ChangeTracker.with({host:r,formatContext:i,preferences:a},i=>{kae(e,i,l,t,n,r.getCurrentDirectory(),s),Aae(e,i,l,u,r,c)})}function y1(e,t,n,r){let i=n(e);return e=>{let t=r&&r.tryGetSourcePosition({fileName:e,pos:0}),i=a(t?t.fileName:e);return t?i===void 0?void 0:Oae(t.fileName,i,e,n):i};function a(e){if(n(e)===i)return t;let r=SC(e,i,n);return r===void 0?void 0:t+`/`+r}}function Oae(e,t,n,r){let i=Fo(e,t,r);return b1($a(n),i)}function kae(e,t,n,r,i,a,o){let{configFile:s}=e.getCompilerOptions();if(!s)return;let c=$a(s.fileName),l=_h(s);if(!l)return;x1(l,(e,n)=>{switch(n){case`files`:case`include`:case`exclude`:{if(u(e)||n!==`include`||!xk(e.initializer))return;let l=M(e.initializer.elements,e=>tO(e)?e.text:void 0);if(l.length===0)return;let d=IC(c,[],l,o,a);LC(H.checkDefined(d.includeFilePattern),o).test(r)&&!LC(H.checkDefined(d.includeFilePattern),o).test(i)&&t.insertNodeAfter(s,ze(e.initializer.elements),J.createStringLiteral(f(i)));return}case`compilerOptions`:x1(e.initializer,(e,t)=>{let n=EF(t);H.assert(n?.type!==`listOrElement`),n&&(n.isFilePath||n.type===`list`&&n.element.isFilePath)?u(e):t===`paths`&&x1(e.initializer,e=>{if(xk(e.initializer))for(let t of e.initializer.elements)d(t)})});return}});function u(e){let t=xk(e.initializer)?e.initializer.elements:[e.initializer],n=!1;for(let e of t)n=d(e)||n;return n}function d(e){if(!tO(e))return!1;let r=n(b1(c,e.text));return r===void 0?!1:(t.replaceRangeWithText(s,Fae(e,s),f(r)),!0)}function f(e){return No(c,e,!o)}}function Aae(e,t,n,r,i,a){let o=e.getSourceFiles();for(let s of o){let c=n(s.fileName),l=c??s.fileName,u=$a(l),d=r(s.fileName),f=d||s.fileName,p=$a(f),m=c!==void 0||d!==void 0;Pae(s,t,e=>{if(!Wa(e))return;let t=n(b1(p,e));return t===void 0?void 0:So(No(u,t,a))},t=>{let r=e.getTypeChecker().getSymbolAtLocation(t);if(r?.declarations&&r.declarations.some(e=>zp(e)))return;let a=d===void 0?Mae(r,t,s,e,i,n):Nae(t,QL(t.text,f,e.getCompilerOptions(),i),n,o);return a!==void 0&&(a.updated||m&&Wa(t.text))?wz.updateModuleSpecifier(e.getCompilerOptions(),s,l,a.newFileName,QZ(e,i),t.text):void 0})}}function jae(e,t){return mo(lo(e,t))}function b1(e,t){return So(jae(e,t))}function Mae(e,t,n,r,i,a){if(e){let t=y(e.declarations,vj).fileName,n=a(t);return n===void 0?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}else{let e=r.getModeForUsageLocation(n,t);return Nae(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(t,n):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),a,r.getSourceFiles())}}function Nae(e,t,n,r){if(!t)return;if(t.resolvedModule){let e=s(t.resolvedModule.resolvedFileName);if(e)return e}let i=d(t.failedLookupLocations,a)||Wa(e.text)&&d(t.failedLookupLocations,o);if(i)return i;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function a(e){let t=n(e);return t&&y(r,e=>e.fileName===t)?o(e):void 0}function o(e){return $t(e,`/package.json`)?void 0:s(e)}function s(e){let t=n(e);return t&&{newFileName:t,updated:!0}}}function Pae(e,t,n,r){for(let r of e.referencedFiles||c){let i=n(r.fileName);i!==void 0&&i!==e.text.slice(r.pos,r.end)&&t.replaceRangeWithText(e,r,i)}for(let n of e.imports){let i=r(n);i!==void 0&&i!==n.text&&t.replaceRangeWithText(e,Fae(n,e),i)}}function Fae(e,t){return ox(e.getStart(t)+1,e.end-1)}function x1(e,t){if(Sk(e))for(let n of e.properties)mj(n)&&tO(n.name)&&t(n,n.name.text)}var S1=(e=>(e[e.exact=0]=`exact`,e[e.prefix=1]=`prefix`,e[e.substring=2]=`substring`,e[e.camelCase=3]=`camelCase`,e))(S1||{});function C1(e,t){return{kind:e,isCaseSensitive:t}}function w1(e){let t=new Map,n=e.trim().split(`.`).map(e=>Uae(e.trim()));if(n.length===1&&n[0].totalTextChunk.text===``)return{getMatchForLastSegmentOfPattern:()=>C1(2,!0),getFullMatch:()=>C1(2,!0),patternContainsDots:!1};if(!n.some(e=>!e.subWordTextChunks.length))return{getFullMatch:(e,r)=>Iae(e,r,n,t),getMatchForLastSegmentOfPattern:e=>T1(e,ze(n),t),patternContainsDots:n.length>1}}function Iae(e,t,n,r){if(!T1(t,ze(n),r)||n.length-1>e.length)return;let i;for(let t=n.length-2,a=e.length-1;t>=0;--t,--a)i=zae(i,T1(e[a],n[t],r));return i}function Lae(e,t){let n=t.get(e);return n||t.set(e,n=M1(e)),n}function Rae(e,t,n){let r=Gae(e,t.textLowerCase);if(r===0)return C1(t.text.length===e.length?0:1,pn(e,t.text));if(t.isLowerCase){if(r===-1)return;let i=Lae(e,n);for(let n of i)if(E1(e,n,t.text,!0))return C1(2,E1(e,n,t.text,!1));if(t.text.length0)return C1(2,!0);if(t.characterSpans.length>0){let r=Lae(e,n),i=Hae(e,r,t,!1)?!0:Hae(e,r,t,!0)?!1:void 0;if(i!==void 0)return C1(3,i)}}}function T1(e,t,n){if(P1(t.totalTextChunk.text,e=>e!==32&&e!==42)){let r=Rae(e,t.totalTextChunk,n);if(r)return r}let r=t.subWordTextChunks,i;for(let t of r)i=zae(i,Rae(e,t,n));return i}function zae(e,t){return zt([e,t],Bae)}function Bae(e,t){return e===void 0?1:t===void 0?-1:It(e.kind,t.kind)||Zt(!e.isCaseSensitive,!t.isCaseSensitive)}function E1(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&Qae(0,i.length,a=>Vae(n.charCodeAt(i.start+a),e.charCodeAt(t.start+a),r))}function Vae(e,t,n){return n?O1(e)===O1(t):e===t}function Hae(e,t,n,r){let i=n.characterSpans,a=0,o=0;for(;;){if(o===i.length)return!0;if(a===t.length)return!1;let s=t[a],c=!1;for(;o=65&&e<=90)return!0;if(e<127||!es(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function Wae(e){if(e>=97&&e<=122)return!0;if(e<127||!es(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function Gae(e,t){let n=e.length-t.length;for(let r=0;r<=n;r++)if(P1(t,(t,n)=>O1(e.charCodeAt(n+r))===t))return r;return-1}function O1(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function k1(e){return e>=48&&e<=57}function Kae(e){return D1(e)||Wae(e)||k1(e)||e===95||e===36}function qae(e){let t=[],n=0,r=0;for(let i=0;i0&&(t.push(A1(e.substr(n,r))),r=0);return r>0&&t.push(A1(e.substr(n,r))),t}function A1(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:j1(e)}}function j1(e){return Jae(e,!1)}function M1(e){return Jae(e,!0)}function Jae(e,t){let n=[],r=0;for(let i=1;iN1(e)&&e!==95,t,n)}function Xae(e,t,n){return t!==n&&t+1t(e.charCodeAt(n),n))}function $ae(e,t=!0,n=!1){let r={pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[],a,o,s,c=0,l=!1;function d(){return o=s,s=uX.scan(),s===19?c++:s===20&&c--,s}function f(){let e=uX.getTokenValue(),t=uX.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function p(){a||=[],a.push({ref:f(),depth:c})}function m(){i.push(f()),h()}function h(){c===0&&(l=!0)}function g(){let e=uX.getToken();return e===138?(e=d(),e===144&&(e=d(),e===11&&p()),!0):!1}function _(){if(o===25)return!1;let e=uX.getToken();if(e===102){if(e=d(),e===21){if(e=d(),e===11||e===15)return m(),!0}else if(e===11)return m(),!0;else{if(e===156&&uX.lookAhead(()=>{let e=uX.scan();return e!==161&&(e===42||e===19||e===80||$_(e))})&&(e=d()),e===80||$_(e))if(e=d(),e===161){if(e=d(),e===11)return m(),!0}else if(e===64){if(y(!0))return!0}else if(e===28)e=d();else return!0;if(e===19){for(e=d();e!==20&&e!==1;)e=d();e===20&&(e=d(),e===161&&(e=d(),e===11&&m()))}else e===42&&(e=d(),e===130&&(e=d(),(e===80||$_(e))&&(e=d(),e===161&&(e=d(),e===11&&m()))))}return!0}return!1}function v(){let e=uX.getToken();if(e===95){if(h(),e=d(),e===156&&uX.lookAhead(()=>{let e=uX.scan();return e===42||e===19})&&(e=d()),e===19){for(e=d();e!==20&&e!==1;)e=d();e===20&&(e=d(),e===161&&(e=d(),e===11&&m()))}else if(e===42)e=d(),e===161&&(e=d(),e===11&&m());else if(e===102&&(e=d(),e===156&&uX.lookAhead(()=>{let e=uX.scan();return e===80||$_(e)})&&(e=d()),(e===80||$_(e))&&(e=d(),e===64&&y(!0))))return!0;return!0}return!1}function y(e,t=!1){let n=e?d():uX.getToken();return n===149?(n=d(),n===21&&(n=d(),(n===11||t&&n===15)&&m()),!0):!1}function b(){let e=uX.getToken();if(e===80&&uX.getTokenValue()===`define`){if(e=d(),e!==21)return!0;if(e=d(),e===11||e===15)if(e=d(),e===28)e=d();else return!0;if(e!==23)return!0;for(e=d();e!==24&&e!==1;)(e===11||e===15)&&m(),e=d();return!0}return!1}function x(){for(uX.setText(e),d();uX.getToken()!==1;){if(uX.getToken()===16){let e=[uX.getToken()];loop:for(;u(e);){let t=uX.scan();switch(t){case 1:break loop;case 102:_();break;case 16:e.push(t);break;case 19:u(e)&&e.push(t);break;case 20:u(e)&&(Re(e)===16?uX.reScanTemplateToken(!1)===18&&e.pop():e.pop());break}}d()}g()||_()||v()||n&&(y(!1,!0)||b())||d()}uX.setText(void 0)}if(t&&x(),jP(r,e),MP(r,bt),l){if(a)for(let e of a)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}else{let e;if(a)for(let t of a)t.depth===0?(e||=[],e.push(t.ref.fileName)):i.push(t.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var eoe=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function F1(e){let t=ln(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:s,tryGetGeneratedPosition:c,toLineColumnOffset:f,clearCache:p,documentPositionMappers:i};function a(e){return yo(e,n,t)}function o(n,r){let o=a(n),s=i.get(o);if(s)return s;let c;if(e.getDocumentPositionMapper)c=e.getDocumentPositionMapper(n,r);else if(e.readFile){let r=d(n);c=r&&I1({getSourceFileLike:d,getCanonicalFileName:t,log:t=>e.log(t)},n,VB(r.text,fs(r)),t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0)}return i.set(o,c||QB),c||QB}function s(e){if(!OP(e.fileName)||!l(e.fileName))return;let t=o(e.fileName).getSourcePosition(e);return!t||t===e?void 0:s(t)||t}function c(t){if(OP(t.fileName))return;let n=l(t.fileName);if(!n)return;let r=e.getProgram();if(r.isSourceOfProjectReferenceRedirect(n.fileName))return;let i=r.getCompilerOptions().outFile,a=i?uw(i)+`.d.ts`:py(t.fileName,r.getCompilerOptions(),r);if(a===void 0)return;let s=o(a,t.fileName).getGeneratedPosition(t);return s===t?void 0:s}function l(t){let n=e.getProgram();if(!n)return;let r=a(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function u(t){let n=a(t),i=r.get(n);if(i!==void 0)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(t)){r.set(n,!1);return}let o=e.readFile(t),s=o?noe(o):!1;return r.set(n,s),s||void 0}function d(t){return e.getSourceFileLike?e.getSourceFileLike(t):l(t)||u(t)}function f(e,t){return d(e).getLineAndCharacterOfPosition(t)}function p(){r.clear(),i.clear()}}function I1(e,t,n,r){let i=HB(n);if(i){let n=eoe.exec(i);if(n){if(n[1]){let r=n[1];return toe(e,$b(Na,r),t)}i=void 0}}let a=[];i&&a.push(i),a.push(t+`.map`);let o=i&&po(i,$a(t));for(let n of a){let i=po(n,$a(t)),a=r(i,o);if(gt(a))return toe(e,a,i);if(a!==void 0)return a||void 0}}function toe(e,t,n){let r=UB(t);if(!(!r||!r.sources||!r.file||!r.mappings)&&!(r.sourcesContent&&r.sourcesContent.some(gt)))return ZB(e,r,n)}function noe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(e){return ps(fs(this),e)}}}var L1=new Map;function R1(e,t,n){t.getSemanticDiagnostics(e,n);let r=[],i=t.getTypeChecker();!(t.getImpliedNodeFormatForEmit(e)===1||Ja(e.fileName,[`.cts`,`.cjs`]))&&e.commonJsModuleIndicator&&(XZ(t)||ZZ(t.getCompilerOptions()))&&roe(e)&&r.push(mm(coe(e.commonJsModuleIndicator),G.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let a=tg(e);if(L1.clear(),o(e),GS(t.getCompilerOptions()))for(let n of e.imports){let i=Kg(n);if(jA(i)&&Qy(i,32))continue;let a=aoe(i);if(!a)continue;let o=t.getResolvedModuleFromModuleSpecifier(n,e)?.resolvedModule,s=o&&t.getSourceFile(o.resolvedFileName);s&&s.externalModuleIndicator&&s.externalModuleIndicator!==!0&&UA(s.externalModuleIndicator)&&s.externalModuleIndicator.isExportEquals&&r.push(mm(a,G.Import_may_be_converted_to_a_default_import))}return Ee(r,e.bindSuggestionDiagnostics),Ee(r,t.getSuggestionDiagnostics(e,n)),r.sort((e,t)=>e.start-t.start),r;function o(t){if(a)moe(t,i)&&r.push(mm(bA(t.parent)?t.parent.name:t,G.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(nA(t)&&t.parent===e&&t.declarationList.flags&2&&t.declarationList.declarations.length===1){let e=t.declarationList.declarations[0].initializer;e&&sg(e,!0)&&r.push(mm(e,G.require_call_may_be_converted_to_an_import))}let n=C4.getJSDocTypedefNodes(t);for(let e of n)r.push(mm(e,G.JSDoc_typedef_may_be_converted_to_TypeScript_type));C4.parameterShouldGetTypeFromJSDoc(t)&&r.push(mm(t.name||t,G.JSDoc_types_may_be_moved_to_TypeScript_types))}H1(t)&&ooe(t,i,r),t.forEachChild(o)}}function roe(e){return e.statements.some(e=>{switch(e.kind){case 244:return e.declarationList.declarations.some(e=>!!e.initializer&&sg(ioe(e.initializer),!0));case 245:{let{expression:t}=e;if(!Rk(t))return sg(t,!0);let n=Eg(t);return n===1||n===2}default:return!1}})}function ioe(e){return Ck(e)?ioe(e.expression):e}function aoe(e){switch(e.kind){case 273:let{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===275&&tO(n)?t.namedBindings.name:void 0;case 272:return e.name;default:return}}function ooe(e,t,n){soe(e,t)&&!L1.has(poe(e))&&n.push(mm(!e.name&&bA(e.parent)&&Y(e.parent.name)?e.parent.name:e,G.This_may_be_converted_to_an_async_function))}function soe(e,t){return!lv(e)&&e.body&&tA(e.body)&&loe(e.body,t)&&z1(e,t)}function z1(e,t){let n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function coe(e){return Rk(e)?e.left:e}function loe(e,t){return!!nh(e,e=>B1(e,t))}function B1(e,t){return pA(e)&&!!e.expression&&V1(e.expression,t)}function V1(e,t){if(!uoe(e)||!doe(e)||!e.arguments.every(e=>foe(e,t)))return!1;let n=e.expression.expression;for(;uoe(n)||Ck(n);)if(Tk(n)){if(!doe(n)||!n.arguments.every(e=>foe(e,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function uoe(e){return Tk(e)&&(CX(e,`then`)||CX(e,`catch`)||CX(e,`finally`))}function doe(e){let t=e.expression.name.text,n=t===`then`?2:t===`catch`||t===`finally`?1:0;return e.arguments.length>n?!1:e.arguments.lengthe.kind===106||Y(e)&&e.text===`undefined`)}function foe(e,t){switch(e.kind){case 263:case 219:if(cv(e)&1)return!1;case 220:L1.set(poe(e),!0);case 106:return!0;case 80:case 212:{let n=t.getSymbolAtLocation(e);return n?t.isUndefinedSymbol(n)||F(Nx(n,t).declarations,e=>ju(e)||rf(e)&&!!e.initializer&&ju(e.initializer)):!1}default:return!1}}function poe(e){return`${e.pos.toString()}:${e.end.toString()}`}function moe(e,t){if(Ak(e)){if(bA(e.parent)&&e.symbol.members?.size)return!0;let n=t.getSymbolOfExpando(e,!1);return!!(n&&(n.exports?.size||n.members?.size))}return SA(e)?!!e.symbol.members?.size:!1}function H1(e){switch(e.kind){case 263:case 175:case 219:case 220:return!0;default:return!1}}var hoe=new Set([`isolatedModules`]);function U1(e,t){return yoe(e,t,!1)}function goe(e,t){return yoe(e,t,!0)}var _oe=`/// interface Boolean {} interface Function {} interface CallableFunction {} interface NewableFunction {} interface IArguments {} interface Number {} interface Object {} interface RegExp {} interface String {} interface Array { length: number; [n: number]: T; } interface SymbolConstructor { (desc?: string | number): symbol; for(name: string): symbol; readonly toStringTag: symbol; } declare var Symbol: SymbolConstructor; interface Symbol { readonly [Symbol.toStringTag]: string; }`,W1=`lib.d.ts`,voe;function yoe(e,t,n){voe??=gP(W1,_oe,{languageVersion:99});let r=[],i=t.compilerOptions?G1(t.compilerOptions,r):{},a=o4();for(let e in a)qe(a,e)&&i[e]===void 0&&(i[e]=a[e]);for(let e of iF)i.verbatimModuleSyntax&&hoe.has(e.name)||(i[e.name]=e.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,n?(i.declaration=!0,i.emitDeclarationOnly=!0,i.isolatedDeclarations=!0):(i.declaration=!1,i.declarationMap=!1);let o=ax(i),s={getSourceFile:e=>e===mo(c)?l:e===mo(W1)?voe:void 0,writeFile:(e,t)=>{qa(e,`.map`)?(H.assertEqual(d,void 0,`Unexpected multiple source map outputs, file:`,e),d=t):(H.assertEqual(u,void 0,`Unexpected multiple outputs, file:`,e),u=t)},getDefaultLibFileName:()=>W1,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>``,getNewLine:()=>o,fileExists:e=>e===c||!!n&&e===W1,readFile:()=>``,directoryExists:()=>!0,getDirectories:()=>[]},c=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?`module.tsx`:`module.ts`),l=gP(c,e,{languageVersion:zS(i),impliedNodeFormat:ZW(yo(c,``,s.getCanonicalFileName),void 0,s,i),setExternalModuleIndicator:PS(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(l.moduleName=t.moduleName),t.renamedDependencies&&(l.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let u,d,f=tG(n?[c,W1]:[c],i,s);return t.reportDiagnostics&&(Ee(r,f.getSyntacticDiagnostics(l)),Ee(r,f.getOptionsDiagnostics())),Ee(r,f.emit(void 0,void 0,void 0,n,t.transformers,n).diagnostics),u===void 0?H.fail(`Output generation failed`):{outputText:u,diagnostics:r,sourceMapText:d}}function boe(e,t,n,r,i){let a=U1(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return Ee(r,a.diagnostics),a.outputText}var xoe;function G1(e,t){xoe||=E(ZP,e=>typeof e.type==`object`&&!Mf(e.type,e=>typeof e!=`number`)),e=kZ(e);for(let n of xoe){if(!qe(e,n.name))continue;let r=e[n.name];gt(r)?e[n.name]=vF(n,r,t):Mf(n.type,e=>e===r)||t.push(gF(n))}return e}var K1={};n(K1,{getNavigateToItems:()=>Soe});function Soe(e,t,n,r,i,a,o){let s=w1(r);if(!s)return c;let l=[],u=e.length===1?e[0]:void 0;for(let r of e)n.throwIfCancellationRequested(),!(a&&r.isDeclarationFile)&&(Coe(r,!!o,u)||r.getNamedDeclarations().forEach((e,n)=>{woe(s,n,e,t,r.fileName,!!o,u,l)}));return l.sort(koe),(i===void 0?l:l.slice(0,i)).map(Aoe)}function Coe(e,t,n){return e!==n&&t&&(O$(e.path)||e.hasNoDefaultLib)}function woe(e,t,n,r,i,a,o,s){let c=e.getMatchForLastSegmentOfPattern(t);if(c){for(let l of n)if(Toe(l,r,a,o))if(e.patternContainsDots){let n=e.getFullMatch(Ooe(l),t);n&&s.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:l})}else s.push({name:t,fileName:i,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:l})}}function Toe(e,t,n,r){switch(e.kind){case 274:case 277:case 272:let i=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(i);return i.escapedName!==a.escapedName&&!a.declarations?.every(e=>Coe(e.getSourceFile(),n,r));default:return!0}}function Eoe(e,t){let n=el(e);return!!n&&(Doe(n,t)||n.kind===168&&q1(n.expression,t))}function q1(e,t){return Doe(e,t)||Ck(e)&&(t.push(e.name.text),!0)&&q1(e.expression,t)}function Doe(e,t){return hv(e)&&(t.push(gv(e)),!0)}function Ooe(e){let t=[],n=el(e);if(n&&n.kind===168&&!q1(n.expression,t))return c;t.shift();let r=NX(e);for(;r;){if(!Eoe(r,t))return c;r=NX(r)}return t.reverse(),t}function koe(e,t){return It(e.matchKind,t.matchKind)||Yt(e.name,t.name)}function Aoe(e){let t=e.declaration,n=NX(t),r=n&&el(n);return{name:e.name,kind:PX(t),kindModifiers:SZ(t),matchKind:S1[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:PZ(t),containerName:r?r.text:``,containerKind:r?PX(n):``}}var J1={};n(J1,{getNavigationBarItems:()=>Noe,getNavigationTree:()=>Poe});var joe=/\s+/g,Y1=150,X1,Z1,Q1=[],$1,Moe=[],e0,t0=[];function Noe(e,t){X1=t,Z1=e;try{return k(Xoe(Loe(e)),Qoe)}finally{Foe()}}function Poe(e,t){X1=t,Z1=e;try{return Zoe(Loe(e))}finally{Foe()}}function Foe(){Z1=void 0,X1=void 0,Q1=[],$1=void 0,t0=[]}function n0(e){return y0(e.getText(Z1))}function r0(e){return e.node.kind}function Ioe(e,t){e.children?e.children.push(t):e.children=[t]}function Loe(e){H.assert(!Q1.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};$1=t;for(let t of e.statements)u0(t);return s0(),H.assert(!$1&&!Q1.length),t}function i0(e,t){Ioe($1,a0(e,t))}function a0(e,t){return{node:e,name:t||(Ld(e)||q(e)?el(e):void 0),additionalNodes:void 0,parent:$1,children:void 0,indent:$1.indent+1}}function Roe(e){e0||=new Map,e0.set(e,!0)}function zoe(e){for(let t=0;t0;t--){let r=n[t];o0(e,r)}return[n.length-1,n[0]]}function o0(e,t){let n=a0(e,t);Ioe($1,n),Q1.push($1),Moe.push(e0),e0=void 0,$1=n}function s0(){$1.children&&(d0($1.children,$1),m0($1.children)),$1=Q1.pop(),e0=Moe.pop()}function c0(e,t,n){o0(e,n),u0(t),s0()}function Voe(e){e.initializer&&ase(e.initializer)?(o0(e),pP(e.initializer,u0),s0()):c0(e,e.initializer)}function l0(e){let t=el(e);if(t===void 0)return!1;if(NO(t)){let e=t.expression;return Mb(e)||$D(e)||uv(e)}return!!t}function u0(e){if(X1.throwIfCancellationRequested(),!(!e||iu(e)))switch(e.kind){case 177:let t=e;c0(t,t.body);for(let e of t.parameters)kc(e,t)&&i0(e);break;case 175:case 178:case 179:case 174:l0(e)&&c0(e,e.body);break;case 173:l0(e)&&Voe(e);break;case 172:l0(e)&&i0(e);break;case 274:let n=e;n.name&&i0(n.name);let{namedBindings:r}=n;if(r)if(r.kind===275)i0(r);else for(let e of r.elements)i0(e);break;case 305:c0(e,e.name);break;case 306:let{expression:i}=e;Y(i)?i0(e,i):i0(e);break;case 209:case 304:case 261:{let t=e;Xu(t.name)?u0(t.name):Voe(t);break}case 263:let a=e.name;a&&Y(a)&&Roe(a.text),c0(e,e.body);break;case 220:case 219:c0(e,e.body);break;case 267:o0(e);for(let t of e.members)tse(t)||i0(t);s0();break;case 264:case 232:case 265:o0(e);for(let t of e.members)u0(t);s0();break;case 268:c0(e,ese(e).body);break;case 278:{let t=e.expression,n=Sk(t)||Tk(t)?t:jk(t)||Ak(t)?t.body:void 0;n?(o0(e),u0(n),s0()):i0(e);break}case 282:case 272:case 182:case 180:case 181:case 266:i0(e);break;case 214:case 227:{let t=Eg(e);switch(t){case 1:case 2:c0(e,e.right);return;case 6:case 3:{let n=e,r=n.left,i=t===3?r.expression:r,a=0,o;Y(i.expression)?(Roe(i.expression.text),o=i.expression):[a,o]=Boe(n,i.expression),t===6?Sk(n.right)&&n.right.properties.length>0&&(o0(n,o),pP(n.right,u0),s0()):Ak(n.right)||jk(n.right)?c0(e,n.right,o):(o0(n,o),c0(e,n.right,r.name),s0()),zoe(a);return}case 7:case 9:{let n=e,r=t===7?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[a,o]=Boe(e,r);o0(e,o),o0(e,X(J.createIdentifier(i.text),i)),u0(e.arguments[2]),s0(),s0(),zoe(a);return}case 5:{let t=e,n=t.left,r=n.expression;if(Y(r)&&Lg(n)!==`prototype`&&e0&&e0.has(r.text)){Ak(t.right)||jk(t.right)?c0(e,t.right,r):Ag(n)&&(o0(t,r),c0(t.left,t.right,Ng(n)),s0());return}break}case 4:case 0:case 8:break;default:H.assertNever(t)}}default:tf(e)&&d(e.jsDoc,e=>{d(e.tags,e=>{t_(e)&&i0(e)})}),pP(e,u0)}}function d0(e,t){let n=new Map;D(e,(e,r)=>{let i=e.name||el(e.node),a=i&&n0(i);if(!a)return!0;let o=n.get(a);if(!o)return n.set(a,e),!0;if(o instanceof Array){for(let n of o)if(Uoe(n,e,r,t))return!1;return o.push(e),!0}else{let i=o;return Uoe(i,e,r,t)?!1:(n.set(a,[i,e]),!0)}})}var f0={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function Hoe(e,t,n,r){function i(e){return Ak(e)||SA(e)||bA(e)}let a=Rk(t.node)||Tk(t.node)?Eg(t.node):0,o=Rk(e.node)||Tk(e.node)?Eg(e.node):0;if(f0[a]&&f0[o]||i(e.node)&&f0[a]||i(t.node)&&f0[o]||CA(e.node)&&p0(e.node)&&f0[a]||CA(t.node)&&f0[o]||CA(e.node)&&p0(e.node)&&i(t.node)||CA(t.node)&&i(e.node)&&p0(e.node)){let a=e.additionalNodes&&Re(e.additionalNodes)||e.node;if(!CA(e.node)&&!CA(t.node)||i(e.node)||i(t.node)){let n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(n!==void 0){let r=a0(X(J.createConstructorDeclaration(void 0,[],void 0),n));r.indent=e.indent+1,r.children=e.node===n?e.children:t.children,e.children=e.node===n?de([r],t.children||[t]):de(e.children||[{...e}],[r])}else (e.children||t.children)&&(e.children=de(e.children||[{...e}],t.children||[t]),e.children&&(d0(e.children,e),m0(e.children)));a=e.node=X(J.createClassDeclaration(void 0,e.name||J.createIdentifier(`__class__`),void 0,void 0,[]),e.node)}else e.children=de(e.children,t.children),e.children&&d0(e.children,e);let o=t.node;return r.children[n-1].node.end===a.end?X(a,{pos:a.pos,end:o.end}):(e.additionalNodes||=[],e.additionalNodes.push(X(J.createClassDeclaration(void 0,e.name||J.createIdentifier(`__class__`),void 0,void 0,[]),t.node))),!0}return a!==0}function Uoe(e,t,n,r){return Hoe(e,t,n,r)?!0:Woe(e.node,t.node,r)?(qoe(e,t),!0):!1}function Woe(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&!(Goe(e,n)&&Goe(t,n)))return!1;switch(e.kind){case 173:case 175:case 178:case 179:return $y(e)===$y(t);case 268:return Koe(e,t)&&_0(e)===_0(t);default:return!0}}function p0(e){return!!(e.flags&16)}function Goe(e,t){if(e.parent===void 0)return!1;let n=OA(e.parent)?e.parent.parent:e.parent;return n===t.node||C(t.additionalNodes,n)}function Koe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==268||Koe(e.body,t.body))}function qoe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=de(e.children,t.children),e.children&&(d0(e.children,e),m0(e.children))}function m0(e){e.sort(Joe)}function Joe(e,t){return Yt(Yoe(e.node),Yoe(t.node))||It(r0(e),r0(t))}function Yoe(e){if(e.kind===268)return $oe(e);let t=el(e);if(t&&ku(t)){let e=mv(t);return e&&Wc(e)}switch(e.kind){case 219:case 220:case 232:return rse(e);default:return}}function h0(e,t){if(e.kind===268)return y0($oe(e));if(t){let e=Y(t)?t.text:wk(t)?`[${n0(t.argumentExpression)}]`:n0(t);if(e.length>0)return y0(e)}switch(e.kind){case 308:let t=e;return yP(t)?`"${Wv(eo(uw(mo(t.fileName))))}"`:``;case 278:return UA(e)&&e.isExportEquals?`export=`:`default`;case 220:case 263:case 219:case 264:case 232:return fb(e)&2048?`default`:rse(e);case 177:return`constructor`;case 181:return`new()`;case 180:return`()`;case 182:return`[]`;default:return``}}function Xoe(e){let t=[];function n(e){if(r(e)&&(t.push(e),e.children))for(let t of e.children)n(t)}return n(e),t;function r(e){if(e.children)return!0;switch(r0(e)){case 264:case 232:case 267:case 265:case 268:case 308:case 266:case 347:case 339:return!0;case 220:case 263:case 219:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(r0(e.parent)){case 269:case 308:case 175:case 177:return!0;default:return!1}}}}function Zoe(e){return{text:h0(e.node,e.name),kind:PX(e.node),kindModifiers:nse(e.node),spans:g0(e),nameSpan:e.name&&v0(e.name),childItems:k(e.children,Zoe)}}function Qoe(e){return{text:h0(e.node,e.name),kind:PX(e.node),kindModifiers:nse(e.node),spans:g0(e),childItems:k(e.children,t)||t0,indent:e.indent,bolded:!1,grayed:!1};function t(e){return{text:h0(e.node,e.name),kind:PX(e.node),kindModifiers:SZ(e.node),spans:g0(e),childItems:t0,indent:0,bolded:!1,grayed:!1}}}function g0(e){let t=[v0(e.node)];if(e.additionalNodes)for(let n of e.additionalNodes)t.push(v0(n));return t}function $oe(e){return zp(e)?Ep(e.name):_0(e)}function _0(e){let t=[gv(e.name)];for(;e.body&&e.body.kind===268;)e=e.body,t.push(gv(e.name));return t.join(`.`)}function ese(e){return e.body&&DA(e.body)?ese(e.body):e}function tse(e){return!e.name||e.name.kind===168}function v0(e){return e.kind===308?LZ(e):PZ(e,Z1)}function nse(e){return e.parent&&e.parent.kind===261&&(e=e.parent),SZ(e)}function rse(e){let{parent:t}=e;if(e.name&&If(e.name)>0)return y0(lm(e.name));if(bA(t))return y0(lm(t.name));if(Rk(t)&&t.operatorToken.kind===64)return n0(t.left).replace(joe,``);if(mj(t))return n0(t.name);if(fb(e)&2048)return`default`;if(zu(e))return``;if(Tk(t)){let e=ise(t.expression);if(e!==void 0){if(e=y0(e),e.length>Y1)return`${e} callback`;let n=y0(M(t.arguments,e=>uf(e)||dd(e)?e.getText(Z1):void 0).join(`, `));return`${e}(${n}) callback`}}return``}function ise(e){if(Y(e))return e.text;if(Ck(e)){let t=ise(e.expression),n=e.name.text;return t===void 0?n:`${t}.${n}`}else return}function ase(e){switch(e.kind){case 220:case 219:case 232:return!0;default:return!1}}function y0(e){return e=e.length>Y1?e.substring(0,Y1)+`...`:e,e.replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,``)}var b0={};n(b0,{addExportsInOldFile:()=>V0,addImportsForMovedSymbols:()=>H0,addNewFileToTsconfig:()=>B0,addOrRemoveBracesToArrowFunction:()=>wce,addTargetFileImports:()=>n2,containsJsx:()=>K0,convertArrowFunctionOrFunctionExpression:()=>Fce,convertParamsToDestructuredObject:()=>Zce,convertStringOrTemplateLiteral:()=>wle,convertToOptionalChainExpression:()=>Rle,createNewFileName:()=>W0,doChangeNamedToNamespaceOrDefault:()=>Sse,extractSymbol:()=>Qle,generateGetAccessorAndSetAccessor:()=>kue,getApplicableRefactors:()=>ose,getEditsForRefactor:()=>sse,getExistingLocals:()=>Q0,getIdentifierForNode:()=>t2,getNewStatementsAndRemoveFromOldFile:()=>z0,getStatementsToMove:()=>G0,getUsageInfo:()=>q0,inferFunctionReturnType:()=>Aue,isInImport:()=>X0,isRefactorErrorInfo:()=>$0,refactorKindBeginsWith:()=>e2,registerRefactor:()=>S0});var x0=new Map;function S0(e,t){x0.set(e,t)}function ose(e,t){return $e(ae(x0.values(),n=>e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!n.kinds?.some(t=>e2(t,e.kind))?void 0:n.getAvailableActions(e,t)))}function sse(e,t,n,r){let i=x0.get(t);return i&&i.getEditsForAction(e,n,r)}var C0=`Convert export`,w0={name:`Convert default export to named export`,description:mS(G.Convert_default_export_to_named_export),kind:`refactor.rewrite.export.named`},T0={name:`Convert named export to default export`,description:mS(G.Convert_named_export_to_default_export),kind:`refactor.rewrite.export.default`};S0(C0,{kinds:[w0.kind,T0.kind],getAvailableActions:function(e){let t=cse(e,e.triggerReason===`invoked`);if(!t)return c;if(!$0(t)){let e=t.wasDefault?w0:T0;return[{name:C0,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:C0,description:mS(G.Convert_default_export_to_named_export),actions:[{...w0,notApplicableReason:t.error},{...T0,notApplicableReason:t.error}]}]:c},getEditsForAction:function(e,t){H.assert(t===w0.name||t===T0.name,`Unexpected action name`);let n=cse(e);return H.assert(n&&!$0(n),`Expected applicable refactor info`),{edits:y7.ChangeTracker.with(e,t=>lse(e.file,e.program,n,t,e.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function cse(e,t=!0){let{file:n,program:r}=e,i=j$(e),a=nZ(n,i.start),o=a.parent&&fb(a.parent)&32&&t?a.parent:fQ(a,n,i);if(!o||!vj(o.parent)&&!(OA(o.parent)&&zp(o.parent.parent)))return{error:mS(G.Could_not_find_export_statement)};let s=r.getTypeChecker(),c=hse(o.parent,s),l=fb(o)||(UA(o)&&!o.isExportEquals?2080:0),u=!!(l&2048);if(!(l&32)||!u&&c.exports.has(`default`))return{error:mS(G.This_file_already_has_a_default_export)};let d=e=>Y(e)&&s.getSymbolAtLocation(e)?void 0:{error:mS(G.Can_only_convert_named_export)};switch(o.kind){case 263:case 264:case 265:case 267:case 266:case 268:{let e=o;return e.name?d(e.name)||{exportNode:e,exportName:e.name,wasDefault:u,exportingModuleSymbol:c}:void 0}case 244:{let e=o;if(!(e.declarationList.flags&2)||e.declarationList.declarations.length!==1)return;let t=Ie(e.declarationList.declarations);return t.initializer?(H.assert(!u,`Can't have a default flag here`),d(t.name)||{exportNode:e,exportName:t.name,wasDefault:u,exportingModuleSymbol:c}):void 0}case 278:{let e=o;return e.isExportEquals?void 0:d(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:u,exportingModuleSymbol:c}}default:return}}function lse(e,t,n,r,i){use(e,n,r,t.getTypeChecker()),dse(t,n,r,i)}function use(e,{wasDefault:t,exportNode:n,exportName:r},i,a){if(t)if(UA(n)&&!n.isExportEquals){let t=n.expression,r=mse(t.text,t.text);i.replaceNode(e,n,J.createExportDeclaration(void 0,!1,J.createNamedExports([r])))}else i.delete(e,H.checkDefined(pQ(n,90),`Should find a default keyword in modifier list`));else{let t=H.checkDefined(pQ(n,95),`Should find an export keyword in modifier list`);switch(n.kind){case 263:case 264:case 265:i.insertNodeAfter(e,t,J.createToken(90));break;case 244:let o=Ie(n.declarationList.declarations);if(!u5.Core.isSymbolReferencedInFile(r,a,e)&&!o.type){i.replaceNode(e,n,J.createExportDefault(H.checkDefined(o.initializer,`Initializer was previously known to be present`)));break}case 267:case 266:case 268:i.deleteModifier(e,t),i.insertNodeAfter(e,n,J.createExportDefault(J.createIdentifier(r.text)));break;default:H.fail(`Unexpected exportNode kind ${n.kind}`)}}}function dse(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,a){let o=e.getTypeChecker(),s=H.checkDefined(o.getSymbolAtLocation(n),`Export name should resolve to a symbol`);u5.Core.eachExportReference(e.getSourceFiles(),o,a,s,r,n.text,t,e=>{if(n===e)return;let r=e.getSourceFile();t?fse(r,e,i,n.text):pse(r,e,i)})}function fse(e,t,n,r){let{parent:i}=t;switch(i.kind){case 212:n.replaceNode(e,t,J.createIdentifier(r));break;case 277:case 282:{let t=i;n.replaceNode(e,t,E0(r,t.name.text));break}case 274:{let a=i;H.assert(a.name===t,`Import clause name should match provided ref`);let o=E0(r,t.text),{namedBindings:s}=a;if(!s)n.replaceNode(e,t,J.createNamedImports([o]));else if(s.kind===275){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});let i=tO(a.parent.moduleSpecifier)?iQ(a.parent.moduleSpecifier,e):1,o=tQ(void 0,[E0(r,t.text)],a.parent.moduleSpecifier,i);n.insertNodeAfter(e,a.parent,o)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,o);break}case 206:let a=i;n.replaceNode(e,i,J.createImportTypeNode(a.argument,a.attributes,J.createIdentifier(r),a.typeArguments,a.isTypeOf));break;default:H.failBadSyntaxKind(i)}}function pse(e,t,n){let r=t.parent;switch(r.kind){case 212:n.replaceNode(e,t,J.createIdentifier(`default`));break;case 277:{let t=J.createIdentifier(r.name.text);r.parent.elements.length===1?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 282:n.replaceNode(e,r,mse(`default`,r.name.text));break;default:H.assertNever(r,`Unexpected parent kind ${r.kind}`)}}function E0(e,t){return J.createImportSpecifier(!1,e===t?void 0:J.createIdentifier(e),J.createIdentifier(t))}function mse(e,t){return J.createExportSpecifier(!1,e===t?void 0:J.createIdentifier(e),J.createIdentifier(t))}function hse(e,t){if(vj(e))return e.symbol;let n=e.parent.symbol;return n.valueDeclaration&&Gp(n.valueDeclaration)?t.getMergedSymbol(n):n}var D0=`Convert import`,O0={0:{name:`Convert namespace import to named imports`,description:mS(G.Convert_namespace_import_to_named_imports),kind:`refactor.rewrite.import.named`},2:{name:`Convert named imports to namespace import`,description:mS(G.Convert_named_imports_to_namespace_import),kind:`refactor.rewrite.import.namespace`},1:{name:`Convert named imports to default import`,description:mS(G.Convert_named_imports_to_default_import),kind:`refactor.rewrite.import.default`}};S0(D0,{kinds:Ze(O0).map(e=>e.kind),getAvailableActions:function(e){let t=gse(e,e.triggerReason===`invoked`);if(!t)return c;if(!$0(t)){let e=O0[t.convertTo];return[{name:D0,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Ze(O0).map(e=>({name:D0,description:e.description,actions:[{...e,notApplicableReason:t.error}]})):c},getEditsForAction:function(e,t){H.assert(F(Ze(O0),e=>e.name===t),`Unexpected action name`);let n=gse(e);return H.assert(n&&!$0(n),`Expected applicable refactor info`),{edits:y7.ChangeTracker.with(e,t=>vse(e.file,e.program,t,n)),renameFilename:void 0,renameLocation:void 0}}});function gse(e,t=!0){let{file:n}=e,r=j$(e),i=nZ(n,r.start),a=t?K(i,vn(MA,oM)):fQ(i,n,r);if(a===void 0||!(MA(a)||oM(a)))return{error:`Selection is not an import declaration.`};let o=r.start+r.length,s=aZ(a,a.parent,n);if(s&&o>s.getStart())return;let{importClause:c}=a;return c?c.namedBindings?c.namedBindings.kind===275?{convertTo:0,import:c.namedBindings}:_se(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}:{error:mS(G.Could_not_find_namespace_import_or_named_imports)}:{error:mS(G.Could_not_find_import_clause)}}function _se(e,t){return GS(e.getCompilerOptions())&&Cse(t.parent.moduleSpecifier,e.getTypeChecker())}function vse(e,t,n,r){let i=t.getTypeChecker();r.convertTo===0?yse(e,i,n,r.import,GS(t.getCompilerOptions())):Sse(e,t,n,r.import,r.convertTo===1)}function yse(e,t,n,r,i){let a=!1,o=[],s=new Map;u5.Core.eachSymbolReferenceInFile(r.name,t,e,e=>{if(!sd(e.parent))a=!0;else{let n=bse(e.parent).text;t.resolveName(n,e,-1,!0)&&s.set(n,!0),H.assert(xse(e.parent)===e,`Parent expression should match id`),o.push(e.parent)}});let c=new Map;for(let t of o){let r=bse(t).text,i=c.get(r);i===void 0&&c.set(r,i=s.has(r)?QQ(r,e):r),n.replaceNode(e,t,J.createIdentifier(i))}let l=[];c.forEach((e,t)=>{l.push(J.createImportSpecifier(!1,e===t?void 0:J.createIdentifier(t),J.createIdentifier(e)))});let u=r.parent.parent;if(a&&!i&&MA(u))n.insertNodeAfter(e,u,wse(u,void 0,l));else{let t=a?J.createIdentifier(r.name.text):void 0;n.replaceNode(e,r.parent,Tse(t,l))}}function bse(e){return Ck(e)?e.name:e.right}function xse(e){return Ck(e)?e.expression:e.left}function Sse(e,t,n,r,i=_se(t,r.parent)){let a=t.getTypeChecker(),o=r.parent.parent,{moduleSpecifier:s}=o,c=new Set;r.elements.forEach(e=>{let t=a.getSymbolAtLocation(e.name);t&&c.add(t)});let l=s&&tO(s)?R$(s.text,99):`module`;function u(t){return!!u5.Core.eachSymbolReferenceInFile(t.name,a,e,e=>{let t=a.resolveName(l,e,-1,!0);return t?c.has(t)?KA(e.parent):!0:!1})}let d=r.elements.some(u)?QQ(l,e):l,f=new Set;for(let t of r.elements){let r=t.propertyName||t.name;u5.Core.eachSymbolReferenceInFile(t.name,a,e,i=>{let a=r.kind===11?J.createElementAccessExpression(J.createIdentifier(d),J.cloneNode(r)):J.createPropertyAccessExpression(J.createIdentifier(d),J.cloneNode(r));hj(i.parent)?n.replaceNode(e,i.parent,J.createPropertyAssignment(i.text,a)):KA(i.parent)?f.add(t):n.replaceNode(e,i,a)})}if(n.replaceNode(e,r,i?J.createIdentifier(d):J.createNamespaceImport(J.createIdentifier(d))),f.size&&MA(o)){let t=$e(f.values(),e=>J.createImportSpecifier(e.isTypeOnly,e.propertyName&&J.cloneNode(e.propertyName),J.cloneNode(e.name)));n.insertNodeAfter(e,r.parent.parent,wse(o,void 0,t))}}function Cse(e,t){let n=t.resolveExternalModuleName(e);return n?n!==t.resolveExternalModuleSymbol(n):!1}function wse(e,t,n){return J.createImportDeclaration(void 0,Tse(t,n),e.moduleSpecifier,void 0)}function Tse(e,t){return J.createImportClause(void 0,e,t&&t.length?J.createNamedImports(t):void 0)}var k0=`Extract type`,A0={name:`Extract to type alias`,description:mS(G.Extract_to_type_alias),kind:`refactor.extract.type`},j0={name:`Extract to interface`,description:mS(G.Extract_to_interface),kind:`refactor.extract.interface`},M0={name:`Extract to typedef`,description:mS(G.Extract_to_typedef),kind:`refactor.extract.typedef`};S0(k0,{kinds:[A0.kind,j0.kind,M0.kind],getAvailableActions:function(e){let{info:t,affectedTextRange:n}=Ese(e,e.triggerReason===`invoked`);return t?$0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:k0,description:mS(G.Extract_type),actions:[{...M0,notApplicableReason:t.error},{...A0,notApplicableReason:t.error},{...j0,notApplicableReason:t.error}]}]:c:[{name:k0,description:mS(G.Extract_type),actions:t.isJS?[M0]:I([A0],t.typeElements&&j0)}].map(t=>({...t,actions:t.actions.map(t=>({...t,range:n?{start:{line:gs(e.file,n.pos).line,offset:gs(e.file,n.pos).character},end:{line:gs(e.file,n.end).line,offset:gs(e.file,n.end).character}}:void 0}))})):c},getEditsForAction:function(e,t){let{file:n}=e,{info:r}=Ese(e);H.assert(r&&!$0(r),`Expected to find a range to extract`);let i=QQ(`NewType`,n),a=y7.ChangeTracker.with(e,a=>{switch(t){case A0.name:return H.assert(!r.isJS,`Invalid actionName/JS combo`),kse(a,n,i,r);case M0.name:return H.assert(r.isJS,`Invalid actionName/JS combo`),jse(a,e,n,i,r);case j0.name:return H.assert(!r.isJS&&!!r.typeElements,`Invalid actionName/JS combo`),Ase(a,n,i,r);default:H.fail(`Unexpected action name`)}}),o=n.fileName;return{edits:a,renameFilename:o,renameLocation:$Q(a,o,i,!1)}}});function Ese(e,t=!0){let{file:n,startPosition:r}=e,i=tg(n),a=RZ(j$(e)),o=Dse(n,r,a,a.pos===a.end&&t);if(!o||!Ju(o))return{info:{error:mS(G.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let s=e.program.getTypeChecker(),c=Mse(o,i);if(c===void 0)return{info:{error:mS(G.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let l=Nse(o,c);if(!Ju(l))return{info:{error:mS(G.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let u=[];(ak(l.parent)||ok(l.parent))&&a.end>o.end&&Ee(u,l.parent.types.filter(e=>HX(e,n,a.pos,a.end)));let d=u.length>1?u:l,{typeParameters:f,affectedTextRange:p}=Ose(s,d,c,n);return f?{info:{isJS:i,selection:d,enclosingNode:c,typeParameters:f,typeElements:N0(s,d)},affectedTextRange:p}:{info:{error:mS(G.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0}}function Dse(e,t,n,r){let i=[()=>nZ(e,t),()=>tZ(e,t,()=>!0)];for(let t of i){let i=t(),a=HX(i,e,n.pos,n.end),o=K(i,t=>t.parent&&Ju(t)&&!P0(n,t.parent,e)&&(r||a));if(o)return o}}function N0(e,t){if(t){if(mt(t)){let n=[];for(let r of t){let t=N0(e,r);if(!t)return;Ee(n,t)}return n}if(ok(t)){let n=[],r=new Set;for(let i of t.types){let t=N0(e,i);if(!t||!t.every(e=>e.name&&Jx(r,JZ(e.name))))return;Ee(n,t)}return n}else if(lk(t))return N0(e,t.type);else if($O(t))return t.members}}function P0(e,t,n){return BX(e,Es(n.text,t.pos),t.end)}function Ose(e,t,n,r){let i=[],a=ht(t),o={pos:a[0].getStart(r),end:a[a.length-1].end};for(let e of a)if(s(e))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:i,affectedTextRange:o};function s(t){if(YO(t)){if(Y(t.typeName)){let a=t.typeName,s=e.resolveName(a.text,a,262144,!0);for(let e of s?.declarations||c)if(PO(e)&&e.getSourceFile()===r){if(e.name.escapedText===a.escapedText&&P0(e,o,r))return!0;if(P0(n,e,r)&&!P0(o,e,r)){De(i,e);break}}}}else if(ck(t)){let e=K(t,e=>sk(e)&&P0(e.extendsType,t,r));if(!e||!P0(o,e,r))return!0}else if(JO(t)||uk(t)){let e=K(t.parent,ju);if(e&&e.type&&P0(e.type,t,r)&&!P0(o,e,r))return!0}else if(QO(t)){if(Y(t.exprName)){let i=e.resolveName(t.exprName.text,t.exprName,111551,!1);if(i?.valueDeclaration&&P0(n,i.valueDeclaration,r)&&!P0(o,i.valueDeclaration,r))return!0}else if(My(t.exprName.left)&&!P0(o,t.parent,r))return!0}return r&&tk(t)&&gs(r,t.pos).line===gs(r,t.end).line&&UE(t,1),pP(t,s)}}function kse(e,t,n,r){let{enclosingNode:i,typeParameters:a}=r,{firstTypeNode:o,lastTypeNode:s,newTypeNode:c}=F0(r),l=J.createTypeAliasDeclaration(void 0,n,a.map(e=>J.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0)),c);e.insertNodeBefore(t,i,_D(l),!0),e.replaceNodeRange(t,o,s,J.createTypeReferenceNode(n,a.map(e=>J.createTypeReferenceNode(e.name,void 0))),{leadingTriviaOption:y7.LeadingTriviaOption.Exclude,trailingTriviaOption:y7.TrailingTriviaOption.ExcludeWhitespace})}function Ase(e,t,n,r){let{enclosingNode:i,typeParameters:a,typeElements:o}=r,s=J.createInterfaceDeclaration(void 0,n,a,void 0,o);X(s,o[0]?.parent),e.insertNodeBefore(t,i,_D(s),!0);let{firstTypeNode:c,lastTypeNode:l}=F0(r);e.replaceNodeRange(t,c,l,J.createTypeReferenceNode(n,a.map(e=>J.createTypeReferenceNode(e.name,void 0))),{leadingTriviaOption:y7.LeadingTriviaOption.Exclude,trailingTriviaOption:y7.TrailingTriviaOption.ExcludeWhitespace})}function jse(e,t,n,r,i){ht(i.selection).forEach(e=>{UE(e,7168)});let{enclosingNode:a,typeParameters:o}=i,{firstTypeNode:s,lastTypeNode:c,newTypeNode:l}=F0(i),u=J.createJSDocTypedefTag(J.createIdentifier(`typedef`),J.createJSDocTypeExpression(l),J.createIdentifier(r)),f=[];d(o,e=>{let t=zl(e),n=J.createTypeParameterDeclaration(void 0,e.name),r=J.createJSDocTemplateTag(J.createIdentifier(`template`),t&&yt(t,bj),[n]);f.push(r)});let p=J.createJSDocComment(void 0,J.createNodeArray(de(f,[u])));if(Nj(a)){let r=a.getStart(n),i=zQ(t.host,t.formatContext?.options);e.insertNodeAt(n,a.getStart(n),p,{suffix:i+i+n.text.slice(XQ(n.text,r-1),r)})}else e.insertNodeBefore(n,a,p,!0);e.replaceNodeRange(n,s,c,J.createTypeReferenceNode(r,o.map(e=>J.createTypeReferenceNode(e.name,void 0))))}function F0(e){return mt(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:ak(e.selection[0].parent)?J.createUnionTypeNode(e.selection):J.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function Mse(e,t){return K(e,Bd)||(t?K(e,Nj):void 0)}function Nse(e,t){return K(e,e=>e===t?`quit`:!!(ak(e.parent)||ok(e.parent)))??e}var I0=`Move to file`,L0=mS(G.Move_to_file),R0={name:`Move to file`,description:L0,kind:`refactor.move.file`};S0(I0,{kinds:[R0.kind],getAvailableActions:function(e,t){let n=e.file,r=G0(e);if(!t)return c;if(e.triggerReason===`implicit`&&e.endPosition!==void 0){let t=K(nZ(n,e.startPosition),X$),r=K(nZ(n,e.endPosition),X$);if(t&&!vj(t)&&r&&!vj(r))return c}if(e.preferences.allowTextChangesInNewFiles&&r){let e={start:{line:gs(n,r.all[0].getStart(n)).line,offset:gs(n,r.all[0].getStart(n)).character},end:{line:gs(n,ze(r.all).end).line,offset:gs(n,ze(r.all).end).character}};return[{name:I0,description:L0,actions:[{...R0,range:e}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:I0,description:L0,actions:[{...R0,notApplicableReason:mS(G.Selection_is_not_a_valid_statement_or_statements)}]}]:c},getEditsForAction:function(e,t,n){H.assert(t===I0,`Wrong refactor invoked`);let r=H.checkDefined(G0(e)),{host:i,program:a}=e;H.assert(n,`No interactive refactor arguments available`);let o=n.targetFile;return $C(o)||ew(o)?i.fileExists(o)&&a.getSourceFile(o)===void 0?Pse(mS(G.Cannot_move_statements_to_the_selected_file)):{edits:y7.ChangeTracker.with(e,t=>Fse(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences)),renameFilename:void 0,renameLocation:void 0}:Pse(mS(G.Cannot_move_to_file_selected_file_is_invalid))}});function Pse(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function Fse(e,t,n,r,i,a,o,s){let c=r.getTypeChecker(),l=!o.fileExists(n),u=l?Z$(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,r,o):H.checkDefined(r.getSourceFile(n)),d=C4.createImportAdder(t,e.program,e.preferences,e.host),f=C4.createImportAdder(u,e.program,e.preferences,e.host);z0(t,u,q0(t,i.all,c,l?void 0:Q0(u,i.all,c)),a,i,r,o,s,f,d),l&&B0(r,a,t.fileName,n,oy(o))}function z0(e,t,n,r,i,a,o,s,c,l){let u=a.getTypeChecker(),d=wn(e.statements,Um),f=!Y$(t.fileName,a,o,!!e.commonJsModuleIndicator),p=aQ(e,s);H0(n.oldFileImportsFromTargetFile,t.fileName,l,a),Lse(e,i.all,n.unusedImportsFromOldFile,l),l.writeFixes(r,p),Ise(e,i.ranges,r),Rse(r,a,o,e,n.movedSymbols,t.fileName,p),V0(e,n.targetFileImportsFromOldFile,r,f),n2(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,u,a,c),!eg(t)&&d.length&&r.insertStatementsInNewFile(t.fileName,d,e),c.writeFixes(r,p);let m=qse(e,i.all,$e(n.oldFileImportsFromTargetFile.keys()),f);eg(t)&&t.statements.length>0?gce(r,a,m,t,i):eg(t)?r.insertNodesAtEndOfFile(t,m,!1):r.insertStatementsInNewFile(t.fileName,c.hasFixes()?[4,...m]:m,e)}function B0(e,t,n,r,i){let a=e.getCompilerOptions().configFile;if(!a)return;let o=mo(lo(n,`..`,r)),s=Fo(a.fileName,o,i),c=a.statements[0]&&vt(a.statements[0].expression,Sk),l=c&&y(c.properties,e=>mj(e)&&tO(e.name)&&e.name.text===`files`);l&&xk(l.initializer)&&t.insertNodeInListAfter(a,ze(l.initializer.elements),J.createStringLiteral(s),l.initializer.elements)}function Ise(e,t,n){for(let{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}function Lse(e,t,n,r){for(let i of e.statements)C(t,i)||Wse(i,e=>{Gse(e,e=>{n.has(e.symbol)&&r.removeExistingImport(e)})})}function V0(e,t,n,r){let i=WZ();t.forEach((t,a)=>{if(a.declarations)for(let t of a.declarations){if(!Z0(t))continue;let a=ice(t);if(!a)continue;let o=ace(t);i(o)&&oce(e,o,a,n,r)}})}function Rse(e,t,n,r,i,a,o){let s=t.getTypeChecker();for(let c of t.getSourceFiles())if(c!==r)for(let l of c.statements)Wse(l,u=>{if(s.getSymbolAtLocation(Use(u))!==r.symbol)return;let d=e=>{let t=bk(e.parent)?dQ(s,e.parent):Nx(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};Yse(c,u,e,d);let f=uo($a(po(r.fileName,t.getCurrentDirectory())),a);if(Ut(!t.useCaseSensitiveFileNames())(f,c.fileName)===0)return;let p=wz.getModuleSpecifier(t.getCompilerOptions(),c,c.fileName,f,QZ(t,n)),m=tce(u,nQ(p,o),d);m&&e.insertNodeAfter(c,l,m);let h=zse(u);h&&Bse(e,c,s,i,p,h,u,o)})}function zse(e){switch(e.kind){case 273:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===275?e.importClause.namedBindings.name:void 0;case 272:return e.name;case 261:return vt(e.name,Y);default:return H.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Bse(e,t,n,r,i,a,o,s){let c=R$(i,99),l=!1,u=[];if(u5.Core.eachSymbolReferenceInFile(a,n,t,e=>{Ck(e.parent)&&(l||=!!n.resolveName(c,e,-1,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&u.push(e))}),u.length){let n=l?QQ(c,t):c;for(let r of u)e.replaceNode(t,r,J.createIdentifier(n));e.insertNodeAfter(t,o,Vse(o,c,i,s))}}function Vse(e,t,n,r){let i=J.createIdentifier(t),a=nQ(n,r);switch(e.kind){case 273:return J.createImportDeclaration(void 0,J.createImportClause(void 0,void 0,J.createNamespaceImport(i)),a,void 0);case 272:return J.createImportEqualsDeclaration(void 0,!1,i,J.createExternalModuleReference(a));case 261:return J.createVariableDeclaration(i,void 0,void 0,Hse(a));default:return H.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Hse(e){return J.createCallExpression(J.createIdentifier(`require`),void 0,[e])}function Use(e){return e.kind===273?e.moduleSpecifier:e.kind===272?e.moduleReference.expression:e.initializer.arguments[0]}function Wse(e,t){if(MA(e))tO(e.moduleSpecifier)&&t(e);else if(jA(e))ZA(e.moduleReference)&&uf(e.moduleReference.expression)&&t(e);else if(nA(e))for(let n of e.declarationList.declarations)n.initializer&&sg(n.initializer,!0)&&t(n)}function Gse(e,t){if(e.kind===273){if(e.importClause?.name&&t(e.importClause),e.importClause?.namedBindings?.kind===275&&t(e.importClause.namedBindings),e.importClause?.namedBindings?.kind===276)for(let n of e.importClause.namedBindings.elements)t(n)}else if(e.kind===272)t(e);else if(e.kind===261){if(e.name.kind===80)t(e);else if(e.name.kind===207)for(let n of e.name.elements)Y(n.name)&&t(n)}}function H0(e,t,n,r){for(let[i,a]of e){let e=F$(i,zS(r.getCompilerOptions())),o=i.name===`default`&&i.parent?1:0;n.addImportForNonExistentExport(e,t,o,i.flags,a)}}function Kse(e,t,n,r=2){return J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(e,void 0,t,n)],r))}function qse(e,t,n,r){return re(t,t=>{if(Xse(t)&&!Jse(e,t,r)&&Y0(t,e=>n.includes(H.checkDefined(vt(e,Md)?.symbol)))){let e=Zse(oE(t),r);if(e)return e}return oE(t)})}function Jse(e,t,n,r){return n?!iA(t)&&Qy(t,32)||!!(r&&e.symbol&&e.symbol.exports?.has(r.escapedText)):!!e.symbol&&!!e.symbol.exports&&U0(t).some(t=>e.symbol.exports.has(Uc(t)))}function Yse(e,t,n,r){if(t.kind===273&&t.importClause){let{name:i,namedBindings:a}=t.importClause;if((!i||r(i))&&(!a||a.kind===276&&a.elements.length!==0&&a.elements.every(e=>r(e.name))))return n.delete(e,t)}Gse(t,t=>{t.name&&Y(t.name)&&r(t.name)&&n.delete(e,t)})}function Xse(e){return H.assert(vj(e.parent),`Node parent should be a SourceFile`),hce(e)||nA(e)}function Zse(e,t){return t?[Qse(e)]:$se(e)}function Qse(e){let t=VN(e)?de([J.createModifier(95)],rl(e)):void 0;switch(e.kind){case 263:return J.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 264:let n=HN(e)?nl(e):void 0;return J.updateClassDeclaration(e,de(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 244:return J.updateVariableStatement(e,t,e.declarationList);case 268:return J.updateModuleDeclaration(e,t,e.name,e.body);case 267:return J.updateEnumDeclaration(e,t,e.name,e.members);case 266:return J.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 265:return J.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 272:return J.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 245:return H.fail();default:return H.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function $se(e){return[e,...U0(e).map(ece)]}function ece(e){return J.createExpressionStatement(J.createBinaryExpression(J.createPropertyAccessExpression(J.createIdentifier(`exports`),J.createIdentifier(e)),64,J.createIdentifier(e)))}function U0(e){switch(e.kind){case 263:case 264:return[e.name.text];case 244:return M(e.declarationList.declarations,e=>Y(e.name)?e.name.text:void 0);case 268:case 267:case 266:case 265:case 272:return c;case 245:return H.fail(`Can't export an ExpressionStatement`);default:return H.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function tce(e,t,n){switch(e.kind){case 273:{let r=e.importClause;if(!r)return;let i=r.name&&n(r.name)?r.name:void 0,a=r.namedBindings&&nce(r.namedBindings,n);return i||a?J.createImportDeclaration(void 0,J.createImportClause(r.phaseModifier,i,a),oE(t),void 0):void 0}case 272:return n(e.name)?e:void 0;case 261:{let r=rce(e.name,n);return r?Kse(r,e.type,Hse(t),e.parent.flags):void 0}default:return H.assertNever(e,`Unexpected import kind ${e.kind}`)}}function nce(e,t){if(e.kind===275)return t(e.name)?e:void 0;{let n=e.elements.filter(e=>t(e.name));return n.length?J.createNamedImports(n):void 0}}function rce(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 208:return e;case 207:{let n=e.elements.filter(e=>e.propertyName||!Y(e.name)||t(e.name));return n.length?J.createObjectBindingPattern(n):void 0}}}function ice(e){return iA(e)?vt(e.expression.left.name,Y):vt(e.name,Y)}function ace(e){switch(e.kind){case 261:return e.parent.parent;case 209:return ace(yt(e.parent.parent,e=>bA(e)||bk(e)));default:return e}}function oce(e,t,n,r,i){if(!Jse(e,t,i,n))if(i)iA(t)||r.insertExportModifier(e,t);else{let n=U0(t);n.length!==0&&r.insertNodesAfter(e,t,n.map(ece))}}function W0(e,t,n,r){let i=t.getTypeChecker();if(r){let t=q0(e,r.all,i),a=$a(e.fileName),o=bw(e.fileName);return lo(a,uce(dce(t.oldFileImportsFromTargetFile,t.movedSymbols),o,a,n))+o}return``}function sce(e){let{file:t}=e,n=RZ(j$(e)),{statements:r}=t,i=x(r,e=>e.end>n.pos);if(i===-1)return;let a=r[i],o=_ce(t,a);o&&(i=o.start);let s=x(r,e=>e.end>=n.end,i);s!==-1&&n.end<=r[s].getStart()&&s--;let c=_ce(t,r[s]);return c&&(s=c.end),{toMove:r.slice(i,s===-1?r.length:s+1),afterLast:s===-1?void 0:r[s+1]}}function G0(e){let t=sce(e);if(t===void 0)return;let n=[],r=[],{toMove:i,afterLast:a}=t;return ue(i,cce,(e,t)=>{for(let r=e;r!!(e.transformFlags&2))}function cce(e){return!lce(e)&&!Um(e)}function lce(e){switch(e.kind){case 273:return!0;case 272:return!Qy(e,32);case 244:return e.declarationList.declarations.every(e=>!!e.initializer&&sg(e.initializer,!0));default:return!1}}function q0(e,t,n,r=new Set,i){let a=new Set,o=new Map,s=new Map,c=d(K0(t));c&&o.set(c,[!1,vt(c.declarations?.[0],e=>HA(e)||NA(e)||zA(e)||jA(e)||bk(e)||bA(e))]);for(let e of t)Y0(e,e=>{a.add(H.checkDefined(iA(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,`Need a symbol here`))});let l=new Set;for(let c of t)J0(c,n,i,(t,i)=>{if(!F(t.declarations))return;if(r.has(Nx(t,n))){l.add(t);return}let c=y(t.declarations,X0);if(c){let e=o.get(t);o.set(t,[(e===void 0||e)&&i,vt(c,e=>HA(e)||NA(e)||zA(e)||jA(e)||bk(e)||bA(e))])}else !a.has(t)&&v(t.declarations,t=>Z0(t)&&pce(t)===e)&&s.set(t,i)});for(let e of o.keys())l.add(e);let u=new Map;for(let r of e.statements)C(t,r)||(c&&r.transformFlags&2&&l.delete(c),J0(r,n,i,(e,t)=>{a.has(e)&&u.set(e,t),l.delete(e)}));return{movedSymbols:a,targetFileImportsFromOldFile:s,oldFileImportsFromTargetFile:u,oldImportsNeededByTargetFile:o,unusedImportsFromOldFile:l};function d(e){if(e===void 0)return;let t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&F(r.declarations,X0)?r:void 0}}function uce(e,t,n,r){let i=e;for(let a=1;;a++){let o=lo(n,i+t);if(!r.fileExists(o))return i;i=`${e}.${a}`}}function dce(e,t){return Nf(e,sQ)||Nf(t,sQ)||`newFile`}function J0(e,t,n,r){e.forEachChild(function e(i){if(Y(i)&&!R_(i)){if(n&&!wx(n,i))return;let e=t.getSymbolAtLocation(i);e&&r(e,Bw(i))}else i.forEachChild(e)})}function Y0(e,t){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return t(e);case 244:return p(e.declarationList.declarations,e=>mce(e.name,t));case 245:{let{expression:n}=e;return Rk(n)&&Eg(n)===1?t(e):void 0}}}function X0(e){switch(e.kind){case 272:case 277:case 274:case 275:return!0;case 261:return fce(e);case 209:return bA(e.parent.parent)&&fce(e.parent.parent);default:return!1}}function fce(e){return vj(e.parent.parent.parent)&&!!e.initializer&&sg(e.initializer,!0)}function Z0(e){return hce(e)&&vj(e.parent)||bA(e)&&vj(e.parent.parent.parent)}function pce(e){return bA(e)?e.parent.parent.parent:e.parent}function mce(e,t){switch(e.kind){case 80:return t(yt(e.parent,e=>bA(e)||bk(e)));case 208:case 207:return p(e.elements,e=>Wk(e)?void 0:mce(e.name,t));default:return H.assertNever(e,`Unexpected name kind ${e.kind}`)}}function hce(e){switch(e.kind){case 263:case 264:case 268:case 267:case 266:case 265:case 272:return!0;default:return!1}}function gce(e,t,n,r,i){let a=new Set,o=r.symbol?.exports;if(o){let n=t.getTypeChecker(),s=new Map;for(let e of i.all)Xse(e)&&Qy(e,32)&&Y0(e,e=>{let t=p(Md(e)?o.get(e.symbol.escapedName)?.declarations:void 0,e=>WA(e)?e:KA(e)?vt(e.parent.parent,WA):void 0);t&&t.moduleSpecifier&&s.set(t,(s.get(t)||new Set).add(e))});for(let[t,i]of $e(s))if(t.exportClause&&GA(t.exportClause)&&u(t.exportClause.elements)){let o=t.exportClause.elements,s=E(o,e=>y(Nx(e.symbol,n).declarations,e=>Z0(e)&&i.has(e))===void 0);if(u(s)===0){e.deleteNode(r,t),a.add(t);continue}u(s)WA(e)&&!!e.moduleSpecifier&&!a.has(e));s?e.insertNodesBefore(r,s,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}function _ce(e,t){if(Nu(t)){let n=t.symbol.declarations;if(n===void 0||u(n)<=1||!C(n,t))return;let r=n[0],i=n[u(n)-1],a=M(n,t=>Yf(t)===e&&Bd(t)?t:void 0),o=x(e.statements,e=>e.end>=i.end);return{toMove:a,start:x(e.statements,e=>e.end>=r.end),end:o}}}function Q0(e,t,n){let r=new Set;for(let t of e.imports){let e=Kg(t);if(MA(e)&&e.importClause&&e.importClause.namedBindings&&VA(e.importClause.namedBindings))for(let t of e.importClause.namedBindings.elements){let e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(Nx(e,n))}if(cg(e.parent)&&vk(e.parent.name))for(let t of e.parent.name.elements){let e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(Nx(e,n))}}for(let i of t)J0(i,n,void 0,t=>{let i=Nx(t,n);i.valueDeclaration&&Yf(i.valueDeclaration).path===e.path&&r.add(i)});return r}function $0(e){return e.error!==void 0}function e2(e,t){return t?e.substr(0,t.length)===t:!0}function t2(e,t,n,r){return Ck(e)&&!zu(t)&&!n.resolveName(e.name.text,e,111551,!1)&&!vO(e.name)&&!Kc(e.name)?e.name.text:QQ(zu(t)?`newProperty`:`newLocal`,r)}function n2(e,t,n,r,i,a){t.forEach(([e,t],n)=>{let i=Nx(n,r);r.isUnknownSymbol(i)?a.addVerbatimImport(H.checkDefined(t??K(n.declarations?.[0],rm))):i.parent===void 0?(H.assert(t!==void 0,`expected module symbol to have a declaration`),a.addImportForModuleSymbol(n,e,t)):a.addImportFromExportedSymbol(i,e,t)}),H0(n,e.fileName,a,i)}var r2=`Inline variable`,i2=mS(G.Inline_variable),a2={name:r2,description:i2,kind:`refactor.inline.variable`};S0(r2,{kinds:[a2.kind],getAvailableActions(e){let{file:t,program:n,preferences:r,startPosition:i,triggerReason:a}=e,o=vce(t,i,a===`invoked`,n);return o?b0.isRefactorErrorInfo(o)?r.provideRefactorNotApplicableReason?[{name:r2,description:i2,actions:[{...a2,notApplicableReason:o.error}]}]:c:[{name:r2,description:i2,actions:[a2]}]:c},getEditsForAction(e,t){H.assert(t===r2,`Unexpected refactor invoked`);let{file:n,program:r,startPosition:i}=e,a=vce(n,i,!0,r);if(!a||b0.isRefactorErrorInfo(a))return;let{references:o,declaration:s,replacement:c}=a;return{edits:y7.ChangeTracker.with(e,e=>{for(let t of o){let r=tO(c)&&Y(t)&&M_(t.parent);r&&$k(r)&&!Dk(r.parent.parent)?Sce(e,n,r,c):e.replaceNode(n,t,xce(t,c))}e.delete(n,s)})}}});function vce(e,t,n,r){let i=r.getTypeChecker(),a=eZ(e,t),o=a.parent;if(Y(a)){if(Ox(o)&&sh(o)&&Y(o.name)){if(i.getMergedSymbol(o.symbol).declarations?.length!==1)return{error:mS(G.Variables_with_multiple_declarations_cannot_be_inlined)};if(yce(o))return;let t=bce(o,i,e);return t&&{references:t,declaration:o,replacement:o.initializer}}if(n){let t=i.resolveName(a.text,a,111551,!1);if(t&&=i.getMergedSymbol(t),t?.declarations?.length!==1)return{error:mS(G.Variables_with_multiple_declarations_cannot_be_inlined)};let n=t.declarations[0];if(!Ox(n)||!sh(n)||!Y(n.name)||yce(n))return;let r=bce(n,i,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:mS(G.Could_not_find_variable_to_inline)}}}function yce(e){return F(yt(e.parent.parent,nA).modifiers,yO)}function bce(e,t,n){let r=[],i=u5.Core.eachSymbolReferenceInFile(e.name,t,n,t=>{if(u5.isWriteAccessForReference(t)&&!hj(t.parent)||KA(t.parent)||UA(t.parent)||QO(t.parent)||cc(e,t.pos))return!0;r.push(t)});return r.length===0||i?void 0:r}function xce(e,t){t=oE(t);let{parent:n}=e;return q(n)&&(Nv(t)Cce(e.file,e.program,n,t,e.host,e,e.preferences)),renameFilename:void 0,renameLocation:void 0}}});function Cce(e,t,n,r,i,a,o){let s=t.getTypeChecker(),c=q0(e,n.all,s),l=W0(e,t,i,n),u=Z$(l,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,i),d=C4.createImportAdder(e,a.program,a.preferences,a.host);z0(e,u,c,r,n,t,i,o,C4.createImportAdder(u,a.program,a.preferences,a.host),d),B0(t,r,e.fileName,l,oy(i))}var wce={},l2=`Convert overload list to single signature`,Tce=mS(G.Convert_overload_list_to_single_signature),Ece={name:l2,description:Tce,kind:`refactor.rewrite.function.overloadList`};S0(l2,{kinds:[Ece.kind],getEditsForAction:Oce,getAvailableActions:Dce});function Dce(e){let{file:t,startPosition:n,program:r}=e;return Ace(t,n,r)?[{name:l2,description:Tce,actions:[Ece]}]:c}function Oce(e){let{file:t,startPosition:n,program:r}=e,i=Ace(t,n,r);if(!i)return;let a=r.getTypeChecker(),o=i[i.length-1],s=o;switch(o.kind){case 174:s=J.updateMethodSignature(o,o.modifiers,o.name,o.questionToken,o.typeParameters,c(i),o.type);break;case 175:s=J.updateMethodDeclaration(o,o.modifiers,o.asteriskToken,o.name,o.questionToken,o.typeParameters,c(i),o.type,o.body);break;case 180:s=J.updateCallSignature(o,o.typeParameters,c(i),o.type);break;case 177:s=J.updateConstructorDeclaration(o,o.modifiers,c(i),o.body);break;case 181:s=J.updateConstructSignature(o,o.typeParameters,c(i),o.type);break;case 263:s=J.updateFunctionDeclaration(o,o.modifiers,o.asteriskToken,o.name,o.typeParameters,c(i),o.type,o.body);break;default:return H.failBadSyntaxKind(o,`Unhandled signature kind in overload list conversion refactoring`)}if(s===o)return;return{renameFilename:void 0,renameLocation:void 0,edits:y7.ChangeTracker.with(e,e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)})};function c(e){let t=e[e.length-1];return Nu(t)&&t.body&&(e=e.slice(0,e.length-1)),J.createNodeArray([J.createParameterDeclaration(void 0,J.createToken(26),`args`,void 0,J.createUnionTypeNode(k(e,l)))])}function l(e){let t=k(e.parameters,d);return UE(J.createTupleTypeNode(t),F(t,e=>!!u(tD(e)))?0:1)}function d(e){H.assert(Y(e.name));let t=X(J.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||J.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(a);if(n){let e=a4(n);e.length&&nD(t,[{text:`* ${e.split(` `).map(e=>` * ${e}`).join(` `)} `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}}function kce(e){switch(e.kind){case 174:case 175:case 180:case 177:case 181:case 263:return!0}return!1}function Ace(e,t,n){let r=K(nZ(e,t),kce);if(!r||Nu(r)&&r.body&&RX(r.body,t))return;let i=n.getTypeChecker(),a=r.symbol;if(!a)return;let o=a.declarations;if(u(o)<=1||!v(o,t=>Yf(t)===e)||!kce(o[0]))return;let s=o[0].kind;if(!v(o,e=>e.kind===s))return;let c=o;if(F(c,e=>!!e.typeParameters||F(e.parameters,e=>!!e.modifiers||!Y(e.name))))return;let l=M(c,e=>i.getSignatureFromDeclaration(e));if(u(l)!==u(o))return;let d=i.getReturnTypeOfSignature(l[0]);if(v(l,e=>i.getReturnTypeOfSignature(e)===d))return c}var u2=`Add or remove braces in an arrow function`,jce=mS(G.Add_or_remove_braces_in_an_arrow_function),d2={name:`Add braces to arrow function`,description:mS(G.Add_braces_to_arrow_function),kind:`refactor.rewrite.arrow.braces.add`},f2={name:`Remove braces from arrow function`,description:mS(G.Remove_braces_from_arrow_function),kind:`refactor.rewrite.arrow.braces.remove`};S0(u2,{kinds:[f2.kind],getEditsForAction:Nce,getAvailableActions:Mce});function Mce(e){let{file:t,startPosition:n,triggerReason:r}=e,i=Pce(t,n,r===`invoked`);return i?$0(i)?e.preferences.provideRefactorNotApplicableReason?[{name:u2,description:jce,actions:[{...d2,notApplicableReason:i.error},{...f2,notApplicableReason:i.error}]}]:c:[{name:u2,description:jce,actions:[i.addBraces?d2:f2]}]:c}function Nce(e,t){let{file:n,startPosition:r}=e,i=Pce(n,r);H.assert(i&&!$0(i),`Expected applicable refactor info`);let{expression:a,returnStatement:o,func:s}=i,c;if(t===d2.name){let e=J.createReturnStatement(a);c=J.createBlock([e],!0),e$(a,e,n,3,!0)}else if(t===f2.name&&o){let e=a||J.createVoidZero();c=i$(e)?J.createParenthesizedExpression(e):e,n$(o,c,n,3,!1),e$(o,c,n,3,!1),t$(o,c,n,3,!1)}else H.fail(`invalid action`);return{renameFilename:void 0,renameLocation:void 0,edits:y7.ChangeTracker.with(e,e=>{e.replaceNode(n,s.body,c)})}}function Pce(e,t,n=!0,r){let i=nZ(e,t),a=bh(i);if(!a)return{error:mS(G.Could_not_find_a_containing_arrow_function)};if(!jk(a))return{error:mS(G.Containing_function_is_not_an_arrow_function)};if(!(!wx(a,i)||wx(a.body,i)&&!n)){if(e2(d2.kind,r)&&q(a.body))return{func:a,addBraces:!0,expression:a.body};if(e2(f2.kind,r)&&tA(a.body)&&a.body.statements.length===1){let e=Ie(a.body.statements);if(pA(e))return{func:a,addBraces:!1,expression:e.expression&&Sk(nS(e.expression,!1))?J.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}var Fce={},Ice=`Convert arrow function or function expression`,Lce=mS(G.Convert_arrow_function_or_function_expression),p2={name:`Convert to anonymous function`,description:mS(G.Convert_to_anonymous_function),kind:`refactor.rewrite.function.anonymous`},m2={name:`Convert to named function`,description:mS(G.Convert_to_named_function),kind:`refactor.rewrite.function.named`},h2={name:`Convert to arrow function`,description:mS(G.Convert_to_arrow_function),kind:`refactor.rewrite.function.arrow`};S0(Ice,{kinds:[p2.kind,m2.kind,h2.kind],getEditsForAction:zce,getAvailableActions:Rce});function Rce(e){let{file:t,startPosition:n,program:r,kind:i}=e,a=Vce(t,n,r);if(!a)return c;let{selectedVariableDeclaration:o,func:s}=a,l=[],u=[];if(e2(m2.kind,i)){let e=o||jk(s)&&bA(s.parent)?void 0:mS(G.Could_not_convert_to_named_function);e?u.push({...m2,notApplicableReason:e}):l.push(m2)}if(e2(p2.kind,i)){let e=!o&&jk(s)?void 0:mS(G.Could_not_convert_to_anonymous_function);e?u.push({...p2,notApplicableReason:e}):l.push(p2)}if(e2(h2.kind,i)){let e=Ak(s)?void 0:mS(G.Could_not_convert_to_arrow_function);e?u.push({...h2,notApplicableReason:e}):l.push(h2)}return[{name:Ice,description:Lce,actions:l.length===0&&e.preferences.provideRefactorNotApplicableReason?u:l}]}function zce(e,t){let{file:n,startPosition:r,program:i}=e,a=Vce(n,r,i);if(!a)return;let{func:o}=a,s=[];switch(t){case p2.name:s.push(...Kce(e,o));break;case m2.name:let t=Gce(o);if(!t)return;s.push(...qce(e,o,t));break;case h2.name:if(!Ak(o))return;s.push(...Jce(e,o));break;default:return H.fail(`invalid action`)}return{renameFilename:void 0,renameLocation:void 0,edits:s}}function Bce(e){let t=!1;return e.forEachChild(function e(n){if(FX(n)){t=!0;return}!zu(n)&&!SA(n)&&!Ak(n)&&pP(n,e)}),t}function Vce(e,t,n){let r=nZ(e,t),i=n.getTypeChecker(),a=Uce(e,i,r.parent);if(a&&!Bce(a.body)&&!i.containsArgumentsReference(a))return{selectedVariableDeclaration:!0,func:a};let o=bh(r);if(o&&(Ak(o)||jk(o))&&!wx(o.body,r)&&!Bce(o.body)&&!i.containsArgumentsReference(o))return Ak(o)&&Xce(e,i,o)?void 0:{selectedVariableDeclaration:!1,func:o}}function Hce(e){return bA(e)||xA(e)&&e.declarations.length===1}function Uce(e,t,n){if(!Hce(n))return;let r=(bA(n)?n:Ie(n.declarations)).initializer;if(r&&(jk(r)||Ak(r)&&!Xce(e,t,r)))return r}function Wce(e){if(q(e)){let t=J.createReturnStatement(e),n=e.getSourceFile();return X(t,e),dE(t),n$(e,t,n,void 0,!0),J.createBlock([t],!0)}else return e}function Gce(e){let t=e.parent;if(!bA(t)||!sh(t))return;let n=t.parent,r=n.parent;if(!(!xA(n)||!nA(r)||!Y(t.name)))return{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}}function Kce(e,t){let{file:n}=e,r=Wce(t.body),i=J.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return y7.ChangeTracker.with(e,e=>e.replaceNode(n,t,i))}function qce(e,t,n){let{file:r}=e,i=Wce(t.body),{variableDeclaration:a,variableDeclarationList:o,statement:s,name:c}=n;fE(s);let l=Pc(a)&32|ub(t),d=J.createModifiersFromModifierFlags(l),f=J.createFunctionDeclaration(u(d)?d:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return o.declarations.length===1?y7.ChangeTracker.with(e,e=>e.replaceNode(r,s,f)):y7.ChangeTracker.with(e,e=>{e.delete(r,a),e.insertNodeAfter(r,s,f)})}function Jce(e,t){let{file:n}=e,r=t.body.statements[0],i;Yce(t.body,r)?(i=r.expression,dE(i),ZQ(r,i)):i=t.body;let a=J.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,J.createToken(39),i);return y7.ChangeTracker.with(e,e=>e.replaceNode(n,t,a))}function Yce(e,t){return e.statements.length===1&&pA(t)&&!!t.expression}function Xce(e,t,n){return!!n.name&&u5.Core.isSymbolReferencedInFile(n.name,t,e)}var Zce={},g2=`Convert parameters to destructured object`,Qce=1,$ce=mS(G.Convert_parameters_to_destructured_object),ele={name:g2,description:$ce,kind:`refactor.rewrite.parameters.toDestructured`};S0(g2,{kinds:[ele.kind],getEditsForAction:nle,getAvailableActions:tle});function tle(e){let{file:t,startPosition:n}=e;return tg(t)||!lle(t,n,e.program.getTypeChecker())?c:[{name:g2,description:$ce,actions:[ele]}]}function nle(e,t){H.assert(t===g2,`Unexpected action name`);let{file:n,startPosition:r,program:i,cancellationToken:a,host:o}=e,s=lle(n,r,i.getTypeChecker());if(!s||!a)return;let c=ile(s,i,a);return c.valid?{renameFilename:void 0,renameLocation:void 0,edits:y7.ChangeTracker.with(e,e=>rle(n,i,o,e,s,c))}:{edits:[]}}function rle(e,t,n,r,i,a){let o=a.signature,s=k(xle(i,t,n),e=>oE(e));o&&l(o,k(xle(o,t,n),e=>oE(e))),l(i,s);let c=be(a.functionCalls,(e,t)=>It(e.pos,t.pos));for(let e of c)if(e.arguments&&e.arguments.length){let t=oE(ble(i,e.arguments),!0);r.replaceNodeRange(Yf(e),Ie(e.arguments),ze(e.arguments),t,{leadingTriviaOption:y7.LeadingTriviaOption.IncludeAll,trailingTriviaOption:y7.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,Ie(t.parameters),ze(t.parameters),n,{joiner:`, `,indentation:0,leadingTriviaOption:y7.LeadingTriviaOption.IncludeAll,trailingTriviaOption:y7.TrailingTriviaOption.Include})}}function ile(e,t,n){let r=Cle(e),i=HO(e)?Sle(e):[],a=ge([...r,...i],Mt),o=t.getTypeChecker(),s=c(re(a,e=>u5.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n)));return v(s.declarations,e=>C(a,e))||(s.valid=!1),s;function c(t){let n={accessExpressions:[],typeUsages:[]},a={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=k(r,l),c=k(i,l),u=HO(e),d=k(r,e=>_2(e,o));for(let r of t){if(r.kind===u5.EntryKind.Span){a.valid=!1;continue}if(C(d,l(r.node))){if(dle(r.node.parent)){a.signature=r.node.parent;continue}let e=ole(r);if(e){a.functionCalls.push(e);continue}}let t=_2(r.node,o);if(t&&C(d,t)){let e=v2(r);if(e){a.declarations.push(e);continue}}if(C(s,l(r.node))||gX(r.node)){if(ale(r))continue;let e=v2(r);if(e){a.declarations.push(e);continue}let t=ole(r);if(t){a.functionCalls.push(t);continue}}if(u&&C(c,l(r.node))){if(ale(r))continue;let t=v2(r);if(t){a.declarations.push(t);continue}let i=sle(r);if(i){n.accessExpressions.push(i);continue}if(CA(e.parent)){let e=cle(r);if(e){n.typeUsages.push(e);continue}}}a.valid=!1}return a}function l(e){let t=o.getSymbolAtLocation(e);return t&&qQ(t,o)}}function _2(e,t){let n=p4(e);if(n){let e=t.getContextualTypeForObjectLiteralElement(n)?.getSymbol();if(e&&!(jx(e)&6))return e}}function ale(e){let t=e.node;if(HA(t.parent)||NA(t.parent)||jA(t.parent)||zA(t.parent)||KA(t.parent)||UA(t.parent))return t}function v2(e){if(Ld(e.node.parent))return e.node}function ole(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 214:case 215:let e=vt(n,ud);if(e&&e.expression===t)return e;break;case 212:let r=vt(n,Ck);if(r&&r.parent&&r.name===t){let e=vt(r.parent,ud);if(e&&e.expression===r)return e}break;case 213:let i=vt(n,wk);if(i&&i.parent&&i.argumentExpression===t){let e=vt(i.parent,ud);if(e&&e.expression===i)return e}break}}}function sle(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 212:let e=vt(n,Ck);if(e&&e.expression===t)return e;break;case 213:let r=vt(n,wk);if(r&&r.expression===t)return r;break}}}function cle(e){let t=e.node;if(pX(t)===2||jb(t.parent))return t}function lle(e,t,n){let r=tZ(e,t),i=xh(r);if(!ule(r)&&i&&fle(i,n)&&wx(i,r)&&!(i.body&&wx(i.body,r)))return i}function ule(e){let t=K(e,Xd);if(t){let e=K(t,e=>!Xd(e));return!!e&&Nu(e)}return!1}function dle(e){return zO(e)&&(wA(e.parent)||$O(e.parent))}function fle(e,t){if(!mle(e.parameters,t))return!1;switch(e.kind){case 263:return ple(e)&&y2(e,t);case 175:return Sk(e.parent)?_2(e.name,t)?.declarations?.length===1&&y2(e,t):y2(e,t);case 177:return CA(e.parent)?ple(e.parent)&&y2(e,t):gle(e.parent.parent)&&y2(e,t);case 219:case 220:return gle(e.parent)}return!1}function y2(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function ple(e){return e.name?!0:!!pQ(e,90)}function mle(e,t){return _le(e)>=Qce&&v(e,e=>hle(e,t))}function hle(e,t){if(pf(e)){let n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&Y(e.name)}function gle(e){return bA(e)&&Im(e)&&Y(e.name)&&!e.type}function b2(e){return e.length>0&&FX(e[0].name)}function _le(e){return b2(e)?e.length-1:e.length}function vle(e){return b2(e)&&(e=J.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function yle(e,t){return Y(t)&&gv(t)===e?J.createShorthandPropertyAssignment(e):J.createPropertyAssignment(e,t)}function ble(e,t){let n=vle(e.parameters),r=pf(ze(n)),i=k(r?t.slice(0,n.length-1):t,(e,t)=>{let r=yle(x2(n[t]),e);return dE(r.name),mj(r)&&dE(r.initializer),ZQ(e,r),r});if(r&&t.length>=n.length){let e=t.slice(n.length-1),r=J.createPropertyAssignment(x2(ze(n)),J.createArrayLiteralExpression(e));i.push(r)}return J.createObjectLiteralExpression(i,!1)}function xle(e,t,n){let r=t.getTypeChecker(),i=vle(e.parameters),a=k(i,u),o=J.createObjectBindingPattern(a),s=d(i),c;v(i,m)&&(c=J.createObjectLiteralExpression());let l=J.createParameterDeclaration(void 0,void 0,o,void 0,s,c);if(b2(e.parameters)){let t=e.parameters[0],n=J.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return dE(n.name),ZQ(t.name,n.name),t.type&&(dE(n.type),ZQ(t.type,n.type)),J.createNodeArray([n,l])}return J.createNodeArray([l]);function u(e){let t=J.createBindingElement(void 0,void 0,x2(e),pf(e)&&m(e)?J.createArrayLiteralExpression():e.initializer);return dE(t),e.initializer&&t.initializer&&ZQ(e.initializer,t.initializer),t}function d(e){let t=k(e,f);return WE(J.createTypeLiteralNode(t),1)}function f(e){let t=e.type;!t&&(e.initializer||pf(e))&&(t=p(e));let n=J.createPropertySignature(void 0,x2(e),m(e)?J.createToken(58):e.questionToken,t);return dE(n),ZQ(e.name,n.name),e.type&&n.type&&ZQ(e.type,n.type),n}function p(e){return f$(r.getTypeAtLocation(e),e,t,n)}function m(e){if(pf(e)){let t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function x2(e){return gv(e.name)}function Sle(e){switch(e.parent.kind){case 264:let t=e.parent;return t.name?[t.name]:[H.checkDefined(pQ(t,90),`Nameless class declaration should be a default export`)];case 232:let n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}function Cle(e){switch(e.kind){case 263:return e.name?[e.name]:[H.checkDefined(pQ(e,90),`Nameless function declaration should be a default export`)];case 175:return[e.name];case 177:let t=H.checkDefined(YX(e,137,e.getSourceFile()),`Constructor declaration should have constructor keyword`);return e.parent.kind===232?[e.parent.parent.name,t]:[t];case 220:return[e.parent.name];case 219:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return H.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var wle={},S2=`Convert to template string`,C2=mS(G.Convert_to_template_string),w2={name:S2,description:C2,kind:`refactor.rewrite.string`};S0(S2,{kinds:[w2.kind],getEditsForAction:Dle,getAvailableActions:Tle});function Tle(e){let{file:t,startPosition:n}=e,r=T2(Ele(t,n)),i=tO(r),a={name:S2,description:C2,actions:[]};return i&&e.triggerReason!==`invoked`?c:Kh(r)&&(i||Rk(r)&&E2(r).isValidConcatenation)?(a.actions.push(w2),[a]):e.preferences.provideRefactorNotApplicableReason?(a.actions.push({...w2,notApplicableReason:mS(G.Can_only_convert_string_concatenations_and_string_literals)}),[a]):c}function Ele(e,t){let n=nZ(e,t),r=T2(n);return!E2(r).isValidConcatenation&&kk(r.parent)&&Rk(r.parent.parent)?r.parent.parent:n}function Dle(e,t){let{file:n,startPosition:r}=e,i=Ele(n,r);switch(t){case C2:return{edits:Ole(e,i)};default:return H.fail(`invalid action`)}}function Ole(e,t){let n=T2(t),r=e.file,i=Fle(E2(n),r),a=Bs(r.text,n.end);if(a){let t=a[a.length-1],o={pos:a[0].pos,end:t.end};return y7.ChangeTracker.with(e,e=>{e.deleteRange(r,o),e.replaceNode(r,n,i)})}else return y7.ChangeTracker.with(e,e=>e.replaceNode(r,n,i))}function kle(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function T2(e){return K(e.parent,e=>{switch(e.kind){case 212:case 213:return!1;case 229:case 227:return!(Rk(e.parent)&&kle(e.parent));default:return`quit`}})||e}function E2(e){let t=e=>{if(!Rk(e))return{nodes:[e],operators:[],validOperators:!0,hasString:tO(e)||iO(e)};let{nodes:n,operators:r,hasString:i,validOperators:a}=t(e.left);if(!(i||tO(e.right)||Bk(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};let o=e.operatorToken.kind===40,s=a&&o;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:a}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&a}}var Ale=(e,t)=>(n,r)=>{n(r,i)=>{for(;r.length>0;){let a=r.shift();t$(e[a],i,t,3,!1),n(a,i)}};function Mle(e){return e.replace(/\\.|[$`]/g,e=>e[0]===`\\`?e:`\\`+e)}function Nle(e){let t=aO(e)||oO(e)?-2:-1;return Ep(e).slice(1,t)}function Ple(e,t){let n=[],r=``,i=``;for(;e{Ile(e);let r=t===n.templateSpans.length-1,i=e.literal.text+(r?o:``),a=Nle(e.literal)+(r?s:``);return J.createTemplateSpan(e.expression,u&&r?J.createTemplateTail(i,a):J.createTemplateMiddle(i,a))});l.push(...e)}else{let e=u?J.createTemplateTail(o,s):J.createTemplateMiddle(o,s);i(c,e),l.push(J.createTemplateSpan(n,e))}}return J.createTemplateExpression(u,l)}function Ile(e){let t=e.getSourceFile();t$(e,e.expression,t,3,!1),n$(e.expression,e.expression,t,3,!1)}function Lle(e){return kk(e)&&(Ile(e),e=e.expression),e}var Rle={},D2=`Convert to optional chain expression`,O2=mS(G.Convert_to_optional_chain_expression),k2={name:D2,description:O2,kind:`refactor.rewrite.expression.optionalChain`};S0(D2,{kinds:[k2.kind],getEditsForAction:Ble,getAvailableActions:zle});function zle(e){let t=Hle(e,e.triggerReason===`invoked`);return t?$0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:D2,description:O2,actions:[{...k2,notApplicableReason:t.error}]}]:c:[{name:D2,description:O2,actions:[k2]}]:c}function Ble(e,t){let n=Hle(e);return H.assert(n&&!$0(n),`Expected applicable refactor info`),{edits:y7.ChangeTracker.with(e,t=>Zle(e.file,e.program.getTypeChecker(),t,n)),renameFilename:void 0,renameLocation:void 0}}function A2(e){return Rk(e)||zk(e)}function Vle(e){return iA(e)||pA(e)||nA(e)}function j2(e){return A2(e)||Vle(e)}function Hle(e,t=!0){let{file:n,program:r}=e,i=j$(e),a=i.length===0;if(a&&!t)return;let o=nZ(n,i.start),s=iZ(n,i.start+i.length),c=Sc(o.pos,s&&s.end>=o.pos?s.getEnd():o.getEnd()),l=a?Jle(o):qle(o,c),u=l&&j2(l)?Yle(l):void 0;if(!u)return{error:mS(G.Could_not_find_convertible_access_expression)};let d=r.getTypeChecker();return zk(u)?Ule(u,d):Wle(u)}function Ule(e,t){let n=e.condition,r=P2(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:mS(G.Could_not_find_convertible_access_expression)};if((Ck(n)||Y(n))&&M2(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(Rk(n)){let t=Gle(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:mS(G.Could_not_find_matching_access_expressions)}}}function Wle(e){if(e.operatorToken.kind!==56)return{error:mS(G.Can_only_convert_logical_AND_access_chains)};let t=P2(e.right);if(!t)return{error:mS(G.Could_not_find_convertible_access_expression)};let n=Gle(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:mS(G.Could_not_find_matching_access_expressions)}}function Gle(e,t){let n=[];for(;Rk(t)&&t.operatorToken.kind===56;){let r=M2(F_(e),F_(t.right));if(!r)break;n.push(r),e=r,t=t.left}let r=M2(e,t);return r&&n.push(r),n.length>0?n:void 0}function M2(e,t){if(!(!Y(t)&&!Ck(t)&&!wk(t)))return Kle(e,t)?t:void 0}function Kle(e,t){for(;(Tk(e)||Ck(e)||wk(e))&&N2(e)!==N2(t);)e=e.expression;for(;Ck(e)&&Ck(t)||wk(e)&&wk(t);){if(N2(e)!==N2(t))return!1;e=e.expression,t=t.expression}return Y(e)&&Y(t)&&e.getText()===t.getText()}function N2(e){if(Y(e)||uv(e))return e.getText();if(Ck(e))return N2(e.name);if(wk(e))return N2(e.argumentExpression)}function qle(e,t){for(;e.parent;){if(j2(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function Jle(e){for(;e.parent;){if(j2(e)&&!j2(e.parent))return e;e=e.parent}}function Yle(e){if(A2(e))return e;if(nA(e)){let t=o_(e)?.initializer;return t&&A2(t)?t:void 0}return e.expression&&A2(e.expression)?e.expression:void 0}function P2(e){if(e=F_(e),Rk(e))return P2(e.left);if((Ck(e)||wk(e)||Tk(e))&&!Gl(e))return e}function Xle(e,t,n){if(Ck(t)||wk(t)||Tk(t)){let r=Xle(e,t.expression,n),i=(n.length>0?n[n.length-1]:void 0)?.getText()===t.expression.getText();if(i&&n.pop(),Tk(t))return i?J.createCallChain(r,J.createToken(29),t.typeArguments,t.arguments):J.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(Ck(t))return i?J.createPropertyAccessChain(r,J.createToken(29),t.name):J.createPropertyAccessChain(r,t.questionDotToken,t.name);if(wk(t))return i?J.createElementAccessChain(r,J.createToken(29),t.argumentExpression):J.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}function Zle(e,t,n,r,i){let{finalExpression:a,occurrences:o,expression:s}=r,c=o[o.length-1],l=Xle(t,a,o);l&&(Ck(l)||wk(l)||Tk(l))&&(Rk(s)?n.replaceNodeRange(e,c,a,l):zk(s)&&n.replaceNode(e,s,J.createBinaryExpression(l,J.createToken(61),s.whenFalse)))}var Qle={};n(Qle,{Messages:()=>R2,RangeFacts:()=>tue,getRangeToExtract:()=>z2,getRefactorActionsToExtractSymbol:()=>$le,getRefactorEditsToExtractSymbol:()=>eue});var F2=`Extract Symbol`,I2={name:`Extract Constant`,description:mS(G.Extract_constant),kind:`refactor.extract.constant`},L2={name:`Extract Function`,description:mS(G.Extract_function),kind:`refactor.extract.function`};S0(F2,{kinds:[I2.kind,L2.kind],getEditsForAction:eue,getAvailableActions:$le});function $le(e){let t=e.kind,n=z2(e.file,j$(e),e.triggerReason===`invoked`),r=n.targetRange;if(r===void 0){if(!n.errors||n.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return c;let r=[];return e2(L2.kind,t)&&r.push({name:F2,description:L2.description,actions:[{...L2,notApplicableReason:h(n.errors)}]}),e2(I2.kind,t)&&r.push({name:F2,description:I2.description,actions:[{...I2,notApplicableReason:h(n.errors)}]}),r}let{affectedTextRange:i,extractions:a}=sue(r,e);if(a===void 0)return c;let o=[],s=new Map,l,u=[],d=new Map,f,p=0;for(let{functionExtraction:n,constantExtraction:r}of a){if(e2(L2.kind,t)){let t=n.description;n.errors.length===0?s.has(t)||(s.set(t,!0),o.push({description:t,name:`function_scope_${p}`,kind:L2.kind,range:{start:{line:gs(e.file,i.pos).line,offset:gs(e.file,i.pos).character},end:{line:gs(e.file,i.end).line,offset:gs(e.file,i.end).character}}})):l||={description:t,name:`function_scope_${p}`,notApplicableReason:h(n.errors),kind:L2.kind}}if(e2(I2.kind,t)){let t=r.description;r.errors.length===0?d.has(t)||(d.set(t,!0),u.push({description:t,name:`constant_scope_${p}`,kind:I2.kind,range:{start:{line:gs(e.file,i.pos).line,offset:gs(e.file,i.pos).character},end:{line:gs(e.file,i.end).line,offset:gs(e.file,i.end).character}}})):f||={description:t,name:`constant_scope_${p}`,notApplicableReason:h(r.errors),kind:I2.kind}}p++}let m=[];return o.length?m.push({name:F2,description:mS(G.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&l&&m.push({name:F2,description:mS(G.Extract_function),actions:[l]}),u.length?m.push({name:F2,description:mS(G.Extract_constant),actions:u}):e.preferences.provideRefactorNotApplicableReason&&f&&m.push({name:F2,description:mS(G.Extract_constant),actions:[f]}),m.length?m:c;function h(e){let t=e[0].messageText;return typeof t!=`string`&&(t=t.messageText),t}}function eue(e,t){let n=z2(e.file,j$(e)).targetRange,r=/^function_scope_(\d+)$/.exec(t);if(r){let t=+r[1];return H.assert(isFinite(t),`Expected to parse a finite number from the function scope index`),aue(n,e,t)}let i=/^constant_scope_(\d+)$/.exec(t);if(i){let t=+i[1];return H.assert(isFinite(t),`Expected to parse a finite number from the constant scope index`),oue(n,e,t)}H.fail(`Unrecognized action name`)}var R2;(e=>{function t(e){return{message:e,code:0,category:3,key:e}}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`)})(R2||={});var tue=(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))(tue||{});function z2(e,t,n=!0){let{length:r}=t;if(r===0&&!n)return{errors:[vS(e,t.start,r,R2.cannotExtractEmpty)]};let i=r===0&&n,a=rZ(e,t.start),o=iZ(e,ac(t)),s=a&&o&&n?nue(a,o,e):t,c=i?Due(a):fQ(a,e,s),l=i?c:fQ(o,e,s),u=0,d;if(!c||!l)return{errors:[vS(e,t.start,r,R2.cannotExtractRange)]};if(c.flags&16777216)return{errors:[vS(e,t.start,r,R2.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[vS(e,t.start,r,R2.cannotExtractRange)]};if(c!==l){if(!X$(c.parent))return{errors:[vS(e,t.start,r,R2.cannotExtractRange)]};let n=[];for(let e of c.parent.statements){if(e===c||n.length){let t=_(e);if(t)return{errors:t};n.push(e)}if(e===l)break}return n.length?{targetRange:{range:n,facts:u,thisNode:d}}:{errors:[vS(e,t.start,r,R2.cannotExtractRange)]}}if(pA(c)&&!c.expression)return{errors:[vS(e,t.start,r,R2.cannotExtractRange)]};let f=m(c),p=h(f)||_(f);if(p)return{errors:p};return{targetRange:{range:rue(f),facts:u,thisNode:d}};function m(e){if(pA(e)){if(e.expression)return e.expression}else if(nA(e)||xA(e)){let t=nA(e)?e.declarationList.declarations:e.declarations,n=0,r;for(let e of t)e.initializer&&(n++,r=e.initializer);if(n===1)return r}else if(bA(e)&&e.initializer)return e.initializer;return e}function h(e){if(Y(iA(e)?e.expression:e))return[mm(e,R2.cannotExtractIdentifier)]}function g(e,t){let n=e;for(;n!==t;){if(n.kind===173){$y(n)&&(u|=32);break}else if(n.kind===170){bh(n).kind===177&&(u|=32);break}else n.kind===175&&$y(n)&&(u|=32);n=n.parent}}function _(e){let n;if((e=>{e[e.None=0]=`None`,e[e.Break=1]=`Break`,e[e.Continue=2]=`Continue`,e[e.Return=4]=`Return`})(n||={}),H.assert(e.pos<=e.end,`This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)`),H.assert(!_w(e.pos),`This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)`),!Bd(e)&&!(Kh(e)&&Oue(e))&&!G2(e))return[mm(e,R2.statementOrExpressionExpected)];if(e.flags&33554432)return[mm(e,R2.cannotExtractAmbientBlock)];let r=Sh(e);r&&g(e,r);let i,a=4,o;if(s(e),u&8){let t=Eh(e,!1,!1);(t.kind===263||t.kind===175&&t.parent.kind===211||t.kind===219)&&(u|=16)}return i;function s(e){if(i)return!0;if(Ld(e)&&Qy(e.kind===261?e.parent.parent:e,32))return(i||=[]).push(mm(e,R2.cannotExtractExportedEntity)),!0;switch(e.kind){case 273:return(i||=[]).push(mm(e,R2.cannotExtractImport)),!0;case 278:return(i||=[]).push(mm(e,R2.cannotExtractExportedEntity)),!0;case 108:if(e.parent.kind===214){let n=Sh(e);if(n===void 0||n.pos=t.start+t.length)return(i||=[]).push(mm(e,R2.cannotExtractSuper)),!0}else u|=8,d=e;break;case 220:pP(e,function t(n){if(FX(n))u|=8,d=e;else if(zu(n)||ju(n)&&!jk(n))return!1;else pP(n,t)});case 264:case 263:vj(e.parent)&&e.parent.externalModuleIndicator===void 0&&(i||=[]).push(mm(e,R2.functionWillNotBeVisibleInTheNewScope));case 232:case 219:case 175:case 177:case 178:case 179:return!1}let n=a;switch(e.kind){case 246:a&=-5;break;case 259:a=0;break;case 242:e.parent&&e.parent.kind===259&&e.parent.finallyBlock===e&&(a=4);break;case 298:case 297:a|=1;break;default:bd(e,!1)&&(a|=3);break}switch(e.kind){case 198:case 110:u|=8,d=e;break;case 257:{let t=e.label;(o||=[]).push(t.escapedText),pP(e,s),o.pop();break}case 253:case 252:{let t=e.label;t?C(o,t.escapedText)||(i||=[]).push(mm(e,R2.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):a&(e.kind===253?1:2)||(i||=[]).push(mm(e,R2.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 224:u|=4;break;case 230:u|=2;break;case 254:a&4?u|=1:(i||=[]).push(mm(e,R2.cannotExtractRangeContainingConditionalReturnStatement));break;default:pP(e,s);break}a=n}}}function nue(e,t,n){let r=e.getStart(n),i=t.getEnd();return n.text.charCodeAt(i)===59&&i++,{start:r,length:i-r}}function rue(e){if(Bd(e))return[e];if(Kh(e))return iA(e.parent)?[e.parent]:e;if(G2(e))return e}function B2(e){return jk(e)?Ed(e.body):Nu(e)||vj(e)||OA(e)||zu(e)}function iue(e){let t=U2(e.range)?Ie(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let e=Sh(t);if(e){let n=K(t,Nu);return n?[n,e]:[e]}}let n=[];for(;;)if(t=t.parent,t.kind===170&&(t=K(t,e=>Nu(e)).parent),B2(t)&&(n.push(t),t.kind===308))return n}function aue(e,t,n){let{scopes:r,readsAndWrites:{target:i,usagesPerScope:a,functionErrorsPerScope:o,exposedVariableDeclarations:s}}=V2(e,t);return H.assert(!o[n].length,`The extraction went missing? How?`),t.cancellationToken.throwIfCancellationRequested(),pue(i,r[n],a[n],s,e,t)}function oue(e,t,n){let{scopes:r,readsAndWrites:{target:i,usagesPerScope:a,constantErrorsPerScope:o,exposedVariableDeclarations:s}}=V2(e,t);return H.assert(!o[n].length,`The extraction went missing? How?`),H.assert(s.length===0,`Extract constant accepted a range containing a variable declaration?`),t.cancellationToken.throwIfCancellationRequested(),mue(q(i)?i:i.statements[0].expression,r[n],a[n],e.facts,t)}function sue(e,t){let{scopes:n,affectedTextRange:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:a}}=V2(e,t);return{affectedTextRange:r,extractions:n.map((e,t)=>{let n=cue(e),r=lue(e),o=Nu(e)?uue(e):zu(e)?due(e):fue(e),s,c;return o===1?(s=uS(mS(G.Extract_to_0_in_1_scope),[n,`global`]),c=uS(mS(G.Extract_to_0_in_1_scope),[r,`global`])):o===0?(s=uS(mS(G.Extract_to_0_in_1_scope),[n,`module`]),c=uS(mS(G.Extract_to_0_in_1_scope),[r,`module`])):(s=uS(mS(G.Extract_to_0_in_1),[n,o]),c=uS(mS(G.Extract_to_0_in_1),[r,o])),t===0&&!zu(e)&&(c=uS(mS(G.Extract_to_0_in_enclosing_scope),[r])),{functionExtraction:{description:s,errors:i[t]},constantExtraction:{description:c,errors:a[t]}}})}}function V2(e,t){let{file:n}=t,r=iue(e),i=Tue(e,n);return{scopes:r,affectedTextRange:i,readsAndWrites:Eue(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken)}}function cue(e){return Nu(e)?`inner function`:zu(e)?`method`:`function`}function lue(e){return zu(e)?`readonly field`:`constant`}function uue(e){switch(e.kind){case 177:return`constructor`;case 219:case 263:return e.name?`function '${e.name.text}'`:d$;case 220:return`arrow function`;case 175:return`method '${e.name.getText()}'`;case 178:return`'get ${e.name.getText()}'`;case 179:return`'set ${e.name.getText()}'`;default:H.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function due(e){return e.kind===264?e.name?`class '${e.name.text}'`:`anonymous class declaration`:e.name?`class expression '${e.name.text}'`:`anonymous class expression`}function fue(e){return e.kind===269?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function pue(e,t,{usages:n,typeParameterUsages:r,substitutions:i},a,o,s){let c=s.program.getTypeChecker(),l=zS(s.program.getCompilerOptions()),u=C4.createImportAdder(s.file,s.program,s.preferences,s.host),d=t.getSourceFile(),f=QQ(zu(t)?`newMethod`:`newFunction`,d),p=ng(t),m=J.createIdentifier(f),h,g=[],_=[],v;n.forEach((e,n)=>{let r;if(!p){let n=c.getTypeOfSymbolAtLocation(e.symbol,e.node);n=c.getBaseTypeOfLiteralType(n),r=C4.typeToAutoImportableTypeNode(c,u,n,t,l,1,8)}let i=J.createParameterDeclaration(void 0,void 0,n,void 0,r);g.push(i),e.usage===2&&(v||=[]).push(e),_.push(J.createIdentifier(n))});let b=$e(r.values(),e=>({type:e,declaration:gue(e,s.startPosition)}));b.sort(_ue);let x=b.length===0?void 0:M(b,({declaration:e})=>e),S=x===void 0?void 0:x.map(e=>J.createTypeReferenceNode(e.name,void 0));if(q(e)&&!p){let n=c.getContextualType(e);h=c.typeToTypeNode(n,t,1,8)}let{body:C,returnValueProperty:w}=yue(e,a,v,i,!!(o.facts&1));dE(C);let T,E=!!(o.facts&16);if(zu(t)){let e=p?[]:[J.createModifier(123)];o.facts&32&&e.push(J.createModifier(126)),o.facts&4&&e.push(J.createModifier(134)),T=J.createMethodDeclaration(e.length?e:void 0,o.facts&2?J.createToken(42):void 0,m,void 0,x,g,h,C)}else E&&g.unshift(J.createParameterDeclaration(void 0,void 0,`this`,void 0,c.typeToTypeNode(c.getTypeAtLocation(o.thisNode),t,1,8),void 0)),T=J.createFunctionDeclaration(o.facts&4?[J.createToken(134)]:void 0,o.facts&2?J.createToken(42):void 0,m,x,g,h,C);let D=y7.ChangeTracker.fromContext(s),O=(U2(o.range)?ze(o.range):o.range).end,k=Sue(O,t);k?D.insertNodeBefore(s.file,k,T,!0):D.insertNodeAtEndOfScope(s.file,t,T),u.writeFixes(D);let ee=[],te=vue(t,o,f);E&&_.unshift(J.createIdentifier(`this`));let ne=J.createCallExpression(E?J.createPropertyAccessExpression(te,`call`):te,S,_);if(o.facts&2&&(ne=J.createYieldExpression(J.createToken(42),ne)),o.facts&4&&(ne=J.createAwaitExpression(ne)),W2(e)&&(ne=J.createJsxExpression(void 0,ne)),a.length&&!v)if(H.assert(!w,`Expected no returnValueProperty`),H.assert(!(o.facts&1),`Expected RangeFacts.HasReturn flag to be unset`),a.length===1){let e=a[0];ee.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(oE(e.name),void 0,oE(e.type),ne)],e.parent.flags)))}else{let e=[],n=[],r=a[0].parent.flags,i=!1;for(let o of a){e.push(J.createBindingElement(void 0,void 0,oE(o.name)));let a=c.typeToTypeNode(c.getBaseTypeOfLiteralType(c.getTypeAtLocation(o)),t,1,8);n.push(J.createPropertySignature(void 0,o.symbol.name,void 0,a)),i||=o.type!==void 0,r&=o.parent.flags}let o=i?J.createTypeLiteralNode(n):void 0;o&&UE(o,1),ee.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(J.createObjectBindingPattern(e),void 0,o,ne)],r)))}else if(a.length||v){if(a.length)for(let e of a){let t=e.parent.flags;t&2&&(t=t&-3|1),ee.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(e.symbol.name,void 0,ae(e.type))],t)))}w&&ee.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(w,void 0,ae(h))],1)));let e=H2(a,v);w&&e.unshift(J.createShorthandPropertyAssignment(w)),e.length===1?(H.assert(!w,`Shouldn't have returnValueProperty here`),ee.push(J.createExpressionStatement(J.createAssignment(e[0].name,ne))),o.facts&1&&ee.push(J.createReturnStatement())):(ee.push(J.createExpressionStatement(J.createAssignment(J.createObjectLiteralExpression(e),ne))),w&&ee.push(J.createReturnStatement(J.createIdentifier(w))))}else o.facts&1?ee.push(J.createReturnStatement(ne)):U2(o.range)?ee.push(J.createExpressionStatement(ne)):ee.push(ne);U2(o.range)?D.replaceNodeRangeWithNodes(s.file,Ie(o.range),ze(o.range),ee):D.replaceNodeWithNodes(s.file,o.range,ee);let re=D.getChanges(),ie=(U2(o.range)?Ie(o.range):o.range).getSourceFile().fileName;return{renameFilename:ie,renameLocation:$Q(re,ie,f,!1),edits:re};function ae(e){if(e===void 0)return;let t=oE(e),n=t;for(;lk(n);)n=n.type;return ak(n)&&y(n.types,e=>e.kind===157)?t:J.createUnionTypeNode([t,J.createKeywordTypeNode(157)])}}function mue(e,t,{substitutions:n},r,i){let a=i.program.getTypeChecker(),o=t2(e,t,a,t.getSourceFile()),s=ng(t),c=s||!a.isContextSensitive(e)?void 0:a.typeToTypeNode(a.getContextualType(e),t,1,8),l=bue(F_(e),n);({variableType:c,initializer:l}=p(c,l)),dE(l);let u=y7.ChangeTracker.fromContext(i);if(zu(t)){H.assert(!s,`Cannot extract to a JS class`);let n=[];n.push(J.createModifier(123)),r&32&&n.push(J.createModifier(126)),n.push(J.createModifier(148));let a=J.createPropertyDeclaration(n,o,void 0,c,l),d=J.createPropertyAccessExpression(r&32?J.createIdentifier(t.name.getText()):J.createThis(),J.createIdentifier(o));W2(e)&&(d=J.createJsxExpression(void 0,d));let f=e.pos,p=Cue(f,t);u.insertNodeBefore(i.file,p,a,!0),u.replaceNode(i.file,e,d)}else{let n=J.createVariableDeclaration(o,void 0,c,l),r=hue(e,t);if(r){u.insertNodeBefore(i.file,r,n);let t=J.createIdentifier(o);u.replaceNode(i.file,e,t)}else if(e.parent.kind===245&&t===K(e,B2)){let t=J.createVariableStatement(void 0,J.createVariableDeclarationList([n],2));u.replaceNode(i.file,e.parent,t)}else{let r=J.createVariableStatement(void 0,J.createVariableDeclarationList([n],2)),a=wue(e,t);if(a.pos===0?u.insertNodeAtTopOfFile(i.file,r,!1):u.insertNodeBefore(i.file,a,r,!1),e.parent.kind===245)u.delete(i.file,e.parent);else{let t=J.createIdentifier(o);W2(e)&&(t=J.createJsxExpression(void 0,t)),u.replaceNode(i.file,e,t)}}}let d=u.getChanges(),f=e.getSourceFile().fileName;return{renameFilename:f,renameLocation:$Q(d,f,o,!0),edits:d};function p(n,r){if(n===void 0||!Ak(r)&&!jk(r)||r.typeParameters)return{variableType:n,initializer:r};let i=a.getTypeAtLocation(e),o=Be(a.getSignaturesOfType(i,0));if(!o||o.getTypeParameters())return{variableType:n,initializer:r};let s=[],c=!1;for(let e of r.parameters)if(e.type)s.push(e);else{let n=a.getTypeAtLocation(e);n===a.getAnyType()&&(c=!0),s.push(J.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||a.typeToTypeNode(n,t,1,8),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,jk(r))r=J.updateArrowFunction(r,VN(e)?rl(e):void 0,r.typeParameters,s,r.type||a.typeToTypeNode(o.getReturnType(),t,1,8),r.equalsGreaterThanToken,r.body);else{if(o&&o.thisParameter){let n=Pe(s);if(!n||Y(n.name)&&n.name.escapedText!==`this`){let n=a.getTypeOfSymbolAtLocation(o.thisParameter,e);s.splice(0,0,J.createParameterDeclaration(void 0,void 0,`this`,void 0,a.typeToTypeNode(n,t,1,8)))}}r=J.updateFunctionExpression(r,VN(e)?rl(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||a.typeToTypeNode(o.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}}function hue(e,t){let n;for(;e!==void 0&&e!==t;){if(bA(e)&&e.initializer===n&&xA(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}function gue(e,t){let n,r=e.symbol;if(r&&r.declarations)for(let e of r.declarations)(n===void 0||e.pos0;if(tA(e)&&!a&&r.size===0)return{body:J.createBlock(e.statements,!0),returnValueProperty:void 0};let o,s=!1,c=J.createNodeArray(tA(e)?e.statements.slice(0):[Bd(e)?e:J.createReturnStatement(F_(e))]);if(a||r.size){let r=CB(c,l,Bd).slice();if(a&&!i&&Bd(e)){let e=H2(t,n);e.length===1?r.push(J.createReturnStatement(e[0].name)):r.push(J.createReturnStatement(J.createObjectLiteralExpression(e)))}return{body:J.createBlock(r,!0),returnValueProperty:o}}else return{body:J.createBlock(c,!0),returnValueProperty:void 0};function l(e){if(!s&&pA(e)&&a){let r=H2(t,n);return e.expression&&(o||=`__return`,r.unshift(J.createPropertyAssignment(o,Q(e.expression,l,q)))),r.length===1?J.createReturnStatement(r[0].name):J.createReturnStatement(J.createObjectLiteralExpression(r))}else{let t=s;s=s||Nu(e)||zu(e);let n=r.get(mB(e).toString()),i=n?oE(n):PB(e,l,void 0);return s=t,i}}}function bue(e,t){return t.size?n(e):e;function n(e){let r=t.get(mB(e).toString());return r?oE(r):PB(e,n,void 0)}}function xue(e){if(Nu(e)){let t=e.body;if(tA(t))return t.statements}else if(OA(e)||vj(e))return e.statements;else if(zu(e))return e.members;return c}function Sue(e,t){return y(xue(t),t=>t.pos>=e&&Nu(t)&&!HO(t))}function Cue(e,t){let n=t.members;H.assert(n.length>0,`Found no members`);let r,i=!0;for(let t of n){if(t.pos>e)return r||n[0];if(i&&!RO(t)){if(r!==void 0)return t;i=!1}r=t}return r===void 0?H.fail():r}function wue(e,t){H.assert(!zu(t));let n;for(let r=e;r!==t;r=r.parent)B2(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(X$(r)){let t;for(let n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&uj(r)?(H.assert(hA(r.parent.parent),`Grandparent isn't a switch statement`),r.parent.parent):H.checkDefined(t,`prevStatement failed to get set`)}H.assert(r!==t,`Didn't encounter a block-like before encountering scope`)}}function H2(e,t){let n=k(e,e=>J.createShorthandPropertyAssignment(e.symbol.name)),r=k(t,e=>J.createShorthandPropertyAssignment(e.symbol.name));return n===void 0?r:r===void 0?n:n.concat(r)}function U2(e){return mt(e)}function Tue(e,t){return U2(e.range)?{pos:Ie(e.range).getStart(t),end:ze(e.range).getEnd()}:e.range}function Eue(e,t,n,r,i,a){let o=new Map,s=[],c=[],l=[],u=[],d=[],f=new Map,p=[],m,h=U2(e.range)?e.range.length===1&&iA(e.range[0])?e.range[0].expression:void 0:e.range,g;if(h===void 0){let t=e.range,n=Ie(t).getStart(),i=ze(t).end;g=vS(r,n,i-n,R2.expressionExpected)}else i.getTypeAtLocation(h).flags&147456&&(g=mm(h,R2.uselessConstantType));for(let e of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);let t=[];g&&t.push(g),zu(e)&&ng(e)&&t.push(mm(e,R2.cannotExtractToJSClass)),jk(e)&&!tA(e.body)&&t.push(mm(e,R2.cannotExtractToExpressionArrowFunction)),u.push(t)}let _=new Map,v=U2(e.range)?J.createBlock(e.range):e.range,b=U2(e.range)?Ie(e.range):e.range,x=S(b);if(w(v),x&&!U2(e.range)&&!aj(e.range)&&C(i.getContextualType(e.range)),o.size>0){let e=new Map,n=0;for(let r=b;r!==void 0&&n{s[n].typeParameterUsages.set(t,e)}),n++),$p(r))for(let t of Rl(r)){let n=i.getTypeAtLocation(t);o.has(n.id.toString())&&e.set(n.id.toString(),n)}H.assert(n===t.length,`Should have iterated all scopes`)}d.length&&pP(Qp(t[0],t[0].parent)?t[0]:cm(t[0]),D);for(let n=0;n0&&(r.usages.size>0||r.typeParameterUsages.size>0)){let t=U2(e.range)?e.range[0]:e.range;u[n].push(mm(t,R2.cannotAccessVariablesFromNestedScopes))}e.facts&16&&zu(t[n])&&l[n].push(mm(e.thisNode,R2.cannotExtractFunctionsContainingThisToMethod));let i=!1,a;if(s[n].usages.forEach(e=>{e.usage===2&&(i=!0,e.symbol.flags&106500&&e.symbol.valueDeclaration&&Zy(e.symbol.valueDeclaration,8)&&(a=e.symbol.valueDeclaration))}),H.assert(U2(e.range)||p.length===0,`No variable declarations expected if something was extracted`),i&&!U2(e.range)){let t=mm(e.range,R2.cannotWriteInExpression);l[n].push(t),u[n].push(t)}else if(a&&n>0){let e=mm(a,R2.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[n].push(e),u[n].push(e)}else if(m){let e=mm(m,R2.cannotExtractExportedEntity);l[n].push(e),u[n].push(e)}}return{target:v,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:u,exposedVariableDeclarations:p};function S(e){return!!K(e,e=>$p(e)&&Rl(e).length!==0)}function C(e){let{visitedTypes:t}=i.getSymbolWalker(()=>(a.throwIfCancellationRequested(),!0)).walkType(e);for(let e of t)e.isTypeParameter()&&o.set(e.id.toString(),e)}function w(e,t=1){if(x&&C(i.getTypeAtLocation(e)),Ld(e)&&e.symbol&&d.push(e),kb(e))w(e.left,2),w(e.right);else if(gd(e))w(e.operand,2);else if(Ck(e)||wk(e))pP(e,w);else if(Y(e)){if(!e.parent||MO(e.parent)&&e!==e.parent.left||Ck(e.parent)&&e!==e.parent.expression)return;T(e,t,eh(e))}else pP(e,w)}function T(e,n,r){let i=E(e,n,r);if(i)for(let n=0;n=o)return p;if(_.set(p,o),m){for(let e of s)e.usages.get(a.text)&&e.usages.set(a.text,{usage:o,symbol:f,node:a});return p}let h=f.getDeclarations(),g=h&&y(h,e=>e.getSourceFile()===r);if(g&&!BX(n,g.getStart(),g.end)){if(e.facts&2&&o===2){let e=mm(a,R2.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let t of l)t.push(e);for(let t of u)t.push(e)}for(let e=0;ee.symbol===n);if(e)if(bA(e)){let t=e.symbol.id.toString();f.has(t)||(p.push(e),f.set(t,!0))}else m||=e}pP(t,D)}function O(e){return e.parent&&hj(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function k(e,t,n){if(!e)return;let r=e.getDeclarations();if(r&&r.some(e=>e.parent===t))return J.createIdentifier(e.name);let i=k(e.parent,t,n);if(i!==void 0)return n?J.createQualifiedName(i,J.createIdentifier(e.name)):J.createPropertyAccessExpression(i,e.name)}}function Due(e){return K(e,e=>e.parent&&Oue(e)&&!Rk(e.parent))}function Oue(e){let{parent:t}=e;switch(t.kind){case 307:return!1}switch(e.kind){case 11:return t.kind!==273&&t.kind!==277;case 231:case 207:case 209:return!1;case 80:return t.kind!==209&&t.kind!==277&&t.kind!==282}return!0}function W2(e){return G2(e)||(QA(e)||$A(e)||nj(e))&&(QA(e.parent)||nj(e.parent))}function G2(e){return tO(e)&&e.parent&&aj(e.parent)}var kue={},K2=`Generate 'get' and 'set' accessors`,q2=mS(G.Generate_get_and_set_accessors),J2={name:K2,description:q2,kind:`refactor.rewrite.property.generateAccessors`};S0(K2,{kinds:[J2.kind],getEditsForAction:function(e,t){if(!e.endPosition)return;let n=C4.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);H.assert(n&&!$0(n),`Expected applicable refactor info`);let r=C4.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;let i=e.file.fileName,a=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(Y(a)?0:-1)+$Q(r,i,a.text,FO(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return c;let t=C4.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason===`invoked`);return t?$0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:K2,description:q2,actions:[{...J2,notApplicableReason:t.error}]}]:c:[{name:K2,description:q2,actions:[J2]}]:c}});var Aue={},Y2=`Infer function return type`,X2=mS(G.Infer_function_return_type),Z2={name:Y2,description:X2,kind:`refactor.rewrite.function.returnType`};S0(Y2,{kinds:[Z2.kind],getEditsForAction:jue,getAvailableActions:Mue});function jue(e){let t=Pue(e);if(t&&!$0(t))return{renameFilename:void 0,renameLocation:void 0,edits:y7.ChangeTracker.with(e,n=>Nue(e.file,n,t.declaration,t.returnTypeNode))}}function Mue(e){let t=Pue(e);return t?$0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:Y2,description:X2,actions:[{...Z2,notApplicableReason:t.error}]}]:c:[{name:Y2,description:X2,actions:[Z2]}]:c}function Nue(e,t,n,r){let i=YX(n,22,e),a=jk(n)&&i===void 0,o=a?Ie(n.parameters):i;o&&(a&&(t.insertNodeBefore(e,o,J.createToken(21)),t.insertNodeAfter(e,o,J.createToken(22))),t.insertNodeAt(e,o.end,r,{prefix:`: `}))}function Pue(e){if(ng(e.file)||!e2(Z2.kind,e.kind))return;let t=K(eZ(e.file,e.startPosition),e=>tA(e)||e.parent&&jk(e.parent)&&(e.kind===39||e.parent.body===e)?`quit`:Fue(e));if(!t||!t.body||t.type)return{error:mS(G.Return_type_must_be_inferred_from_a_function)};let n=e.program.getTypeChecker(),r;if(n.isImplementationOfOverload(t)){let e=n.getTypeAtLocation(t).getCallSignatures();e.length>1&&(r=n.getUnionType(M(e,e=>e.getReturnType())))}if(!r){let e=n.getSignatureFromDeclaration(t);if(e){let i=n.getTypePredicateOfSignature(e);if(i&&i.type){let e=n.typePredicateToTypePredicateNode(i,t,1,8);if(e)return{declaration:t,returnTypeNode:e}}else r=n.getReturnTypeOfSignature(e)}}if(!r)return{error:mS(G.Could_not_determine_function_return_type)};let i=n.typeToTypeNode(r,t,1,8);if(i)return{declaration:t,returnTypeNode:i}}function Fue(e){switch(e.kind){case 263:case 219:case 220:case 175:return!0;default:return!1}}var Iue=(e=>(e[e.typeOffset=8]=`typeOffset`,e[e.modifierMask=255]=`modifierMask`,e))(Iue||{}),Lue=(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))(Lue||{}),Rue=(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))(Rue||{});function zue(e,t,n,r){let i=Q2(e,t,n,r);H.assert(i.spans.length%3==0);let a=i.spans,o=[];for(let e=0;e{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)},r),i}function Vue(e,t,n,r,i){let a=e.getTypeChecker(),o=!1;function s(c){switch(c.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 220:i.throwIfCancellationRequested()}if(!c||!hc(n,c.pos,c.getFullWidth())||c.getFullWidth()===0)return;let l=o;if((QA(c)||$A(c))&&(o=!0),cj(c)&&(o=!1),Y(c)&&!o&&!Kue(c)&&!iT(c.escapedText)){let n=a.getSymbolAtLocation(c);if(n){n.flags&2097152&&(n=a.getAliasedSymbol(n));let i=Hue(n,pX(c));if(i!==void 0){let o=0;c.parent&&(bk(c.parent)||Yue.get(c.parent.kind)===i)&&c.parent.name===c&&(o=1),i===6&&Jue(c)&&(i=9),i=Uue(a,c,i);let s=n.valueDeclaration;if(s){let r=Pc(s),a=Ic(s);r&256&&(o|=2),r&1024&&(o|=4),i!==0&&i!==2&&(r&8||a&2||n.getFlags()&8)&&(o|=8),(i===7||i===10)&&Wue(s,t)&&(o|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(o|=16)}else n.declarations&&n.declarations.some(t=>e.isSourceFileDefaultLibrary(t.getSourceFile()))&&(o|=16);r(c,i,o)}}}pP(c,s),o=l}s(t)}function Hue(e,t){let n=e.getFlags();if(n&32)return 0;if(n&384)return 1;if(n&524288)return 5;if(n&64){if(t&2)return 2}else if(n&262144)return 4;let r=e.valueDeclaration||e.declarations&&e.declarations[0];return r&&bk(r)&&(r=Gue(r)),r&&Yue.get(r.kind)}function Uue(e,t,n){if(n===7||n===9||n===6){let r=e.getTypeAtLocation(t);if(r){let e=e=>e(r)||r.isUnion()&&r.types.some(e);if(n!==6&&e(e=>e.getConstructSignatures().length>0))return 0;if(e(e=>e.getCallSignatures().length>0)&&!e(e=>e.getProperties().length>0)||que(t))return n===9?11:10}}return n}function Wue(e,t){return bk(e)&&(e=Gue(e)),bA(e)?(!vj(e.parent.parent.parent)||pj(e.parent))&&e.getSourceFile()===t:SA(e)?!vj(e.parent)&&e.getSourceFile()===t:!1}function Gue(e){for(;;)if(bk(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function Kue(e){let t=e.parent;return t&&(NA(t)||HA(t)||zA(t))}function que(e){for(;Jue(e);)e=e.parent;return Tk(e.parent)&&e.parent.expression===e}function Jue(e){return MO(e.parent)&&e.parent.right===e||Ck(e.parent)&&e.parent.name===e}var Yue=new Map([[261,7],[170,6],[173,9],[268,3],[267,1],[307,8],[264,0],[175,11],[263,10],[219,10],[174,11],[178,9],[179,9],[172,9],[265,2],[266,5],[169,4],[304,9],[305,9]]),Xue=`0.8`;function Zue(e,t,n,r){let i=nu(e)?new $2(e,t,n):e===80?new nde(80,t,n):e===81?new rde(81,t,n):new tde(e,t,n);return i.parent=r,i.flags=r.flags&101441536,i}var $2=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){H.assert(!_w(this.pos)&&!_w(this.end),e||`Node must have a real position for this operation`)}getSourceFile(){return Yf(this)}getStart(e,t){return this.assertHasRealPosition(),_p(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||=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=Yf(this)){return this.assertHasRealPosition(`Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine`),lM(this,e)??uM(this,e,Que(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let n=y(t,e=>e.kind<310||e.kind>352);return n.kind<167?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=Re(this.getChildren(e));if(t)return t.kind<167?t:t.getLastToken(e)}forEachChild(e,t){return pP(this,e,t)}};function Que(e,t){let n=[];if(Zd(e))return e.forEachChild(e=>{n.push(e)}),n;uX.setText((t||e.getSourceFile()).text);let r=e.pos,i=t=>{e4(n,r,t.pos,e),n.push(t),r=t.end};return d(e.jsDoc,i),r=e.pos,e.forEachChild(i,t=>{e4(n,r,t.pos,e),n.push($ue(t,e)),r=t.end}),e4(n,r,e.end,e),uX.setText(void 0),n}function e4(e,t,n,r){for(uX.resetTokenState(t);te.tagName.text===`inheritDoc`||e.tagName.text===`inheritdoc`)}function n4(e,t){if(!e)return c;let n=I5.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(ode))){let r=new Set;for(let i of e){let e=sde(t,i,e=>{if(!r.has(e))return r.add(e),i.kind===178||i.kind===179?e.getContextualJsDocTags(i,t):e.declarations?.length===1?e.getJsDocTags(t):void 0});e&&(n=[...e,...n])}}return n}function r4(e,t){if(!e)return c;let n=I5.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(ode))){let r=new Set;for(let i of e){let e=sde(t,i,e=>{if(!r.has(e))return r.add(e),i.kind===178||i.kind===179?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)});e&&(n=n.length===0?e.slice():e.concat(BQ(),n))}}return n}function sde(e,t,n){let r=t.parent?.kind===177?t.parent.parent:t.parent;if(!r)return;let i=eb(t);return p(Y_(r),r=>{let a=e.getTypeAtLocation(r),o=i&&a.symbol?e.getTypeOfSymbol(a.symbol):a,s=e.getPropertyOfType(o,t.symbol.name);return s?n(s):void 0})}var cde=class extends $2{constructor(e,t,n){super(e,t,n)}update(e,t){return bP(this,e,t)}getLineAndCharacterOfPosition(e){return gs(this,e)}getLineStarts(){return fs(this)}getPositionOfLineAndCharacter(e,t,n){return ds(fs(this),e,t,this.text,n)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts(),r;t+1>=n.length&&(r=this.getEnd()),r||=n[t+1]-1;let i=this.getFullText();return i[r]===` `&&i[r-1]===`\r`?r-1:r}getNamedDeclarations(){return this.namedDeclarations||=this.computeNamedDeclarations(),this.namedDeclarations}computeNamedDeclarations(){let e=R();return this.forEachChild(i),e;function t(t){let n=r(t);n&&e.add(n,t)}function n(t){let n=e.get(t);return n||e.set(t,n=[]),n}function r(e){let t=$c(e);return t&&(NO(t)&&Ck(t.expression)?t.expression.name.text:ku(t)?JZ(t):void 0)}function i(e){switch(e.kind){case 263:case 219:case 175:case 174:let a=e,o=r(a);if(o){let e=n(o),t=Re(e);t&&a.parent===t.parent&&a.symbol===t.symbol?a.body&&!t.body&&(e[e.length-1]=a):e.push(a)}pP(e,i);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(e),pP(e,i);break;case 170:if(!Qy(e,31))break;case 261:case 209:{let t=e;if(Xu(t.name)){pP(t.name,i);break}t.initializer&&i(t.initializer)}case 307:case 173:case 172:t(e);break;case 279:let s=e;s.exportClause&&(GA(s.exportClause)?d(s.exportClause.elements,i):i(s.exportClause.name));break;case 273:let c=e.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(c.namedBindings.kind===275?t(c.namedBindings):d(c.namedBindings.elements,i)));break;case 227:Eg(e)!==0&&t(e);default:pP(e,i)}}}},lde=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}getLineAndCharacterOfPosition(e){return gs(this,e)}};function ude(){return{getNodeConstructor:()=>$2,getTokenConstructor:()=>tde,getIdentifierConstructor:()=>nde,getPrivateIdentifierConstructor:()=>rde,getSourceFileConstructor:()=>cde,getSymbolConstructor:()=>ede,getTypeConstructor:()=>ide,getSignatureConstructor:()=>ade,getSourceMapSourceConstructor:()=>lde}}function i4(e){let t=!0;for(let n in e)if(qe(e,n)&&!dde(n)){t=!1;break}if(t)return e;let n={};for(let t in e)if(qe(e,t)){let r=dde(t)?t:t.charAt(0).toLowerCase()+t.substr(1);n[r]=e[t]}return n}function dde(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function a4(e){return e?k(e,e=>e.text).join(``):``}function o4(){return{target:1,jsx:1}}function s4(){return C4.getSupportedErrorCodes()}var fde=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r;let i=this.host.getScriptSnapshot(e);if(!i)throw Error(`Could not find file: '`+e+`'.`);let a=KQ(e,this.host),o=this.host.getScriptVersion(e),s;if(this.currentFileName!==e)s=c4(e,i,{languageVersion:99,impliedNodeFormat:ZW(yo(e,this.host.getCurrentDirectory(),(t=this.host).getCompilerHost?.call(t)?.getCanonicalFileName||oy(this.host)),(((r=(n=this.host).getCompilerHost?.call(n))?.getModuleResolutionCache)?.call(r))?.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:PS(this.host.getCompilationSettings()),jsDocParsingMode:0},o,!0,a);else if(this.currentFileVersion!==o){let e=i.getChangeRange(this.currentFileScriptSnapshot);s=l4(this.currentSourceFile,i,o,e)}return s&&(this.currentFileVersion=o,this.currentFileName=e,this.currentFileScriptSnapshot=i,this.currentSourceFile=s),this.currentSourceFile}};function pde(e,t,n){e.version=n,e.scriptSnapshot=t}function c4(e,t,n,r,i,a){let o=gP(e,GZ(t),n,i,a);return pde(o,t,r),o}function l4(e,t,n,r,i){if(r&&n!==e.version){let a,o=r.span.start===0?``:e.text.substr(0,r.span.start),s=ac(r.span)===e.text.length?``:e.text.substr(ac(r.span));if(r.newLength===0)a=o&&s?o+s:o||s;else{let e=t.getText(r.span.start,r.span.start+r.newLength);a=o&&s?o+e+s:o?o+e:e+s}let c=bP(e,a,r,i);return pde(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}let a={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return c4(e.fileName,t,a,n,!0,e.scriptKind)}var mde={isCancellationRequested:xt,throwIfCancellationRequested:bt},hde=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Ar)==null||e.instant(Ar.Phase.Session,`cancellationThrown`,{kind:`CancellationTokenObject`}),new Gr}},u4=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=sr();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Ar)==null||e.instant(Ar.Phase.Session,`cancellationThrown`,{kind:`ThrottledCancellationToken`}),new Gr}},gde=[`getSemanticDiagnostics`,`getSuggestionDiagnostics`,`getCompilerOptionsDiagnostics`,`getSemanticClassifications`,`getEncodedSemanticClassifications`,`getCodeFixesAtPosition`,`getCombinedCodeFix`,`applyCodeActionCommand`,`organizeImports`,`getEditsForFileRename`,`getEmitOutput`,`getApplicableRefactors`,`getEditsForRefactor`,`prepareCallHierarchy`,`provideCallHierarchyIncomingCalls`,`provideCallHierarchyOutgoingCalls`,`provideInlayHints`,`getSupportedCodeFixes`,`getPasteEdits`],_de=[...gde,`getCompletionsAtPosition`,`getCompletionEntryDetails`,`getCompletionEntrySymbol`,`getSignatureHelpItems`,`getQuickInfoAtPosition`,`getDefinitionAtPosition`,`getDefinitionAndBoundSpan`,`getImplementationAtPosition`,`getTypeDefinitionAtPosition`,`getReferencesAtPosition`,`findReferences`,`getDocumentHighlights`,`getNavigateToItems`,`getRenameInfo`,`findRenameLocations`,`getApplicableRefactors`,`preparePasteEditsForFile`];function d4(e,t=m1(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){let r;r=n===void 0?0:typeof n==`boolean`?n?2:0:n;let i=new fde(e),a,o,s=0,l=e.getCancellationToken?new hde(e.getCancellationToken()):mde,u=e.getCurrentDirectory();pS(e.getLocalizedDiagnosticMessages?.bind(e));function f(t){e.log&&e.log(t)}let p=ay(e),m=ln(p),h=F1({useCaseSensitiveFileNames:()=>p,getCurrentDirectory:()=>u,getProgram:y,fileExists:ut(e,e.fileExists),readFile:ut(e,e.readFile),getDocumentPositionMapper:ut(e,e.getDocumentPositionMapper),getSourceFileLike:ut(e,e.getSourceFileLike),log:f});function g(e){let t=a.getSourceFile(e);if(!t){let t=Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=a.getSourceFiles().map(e=>e.fileName),t}return t}function _(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():v()}function v(){var n;if(H.assert(r!==2),e.getProjectVersion){let t=e.getProjectVersion();if(t){if(o===t&&!e.hasChangedAutomaticTypeDirectiveNames?.call(e))return;o=t}}let i=e.getTypeRootsVersion?e.getTypeRootsVersion():0;s!==i&&(f(`TypeRoots version has changed; provide new program`),a=void 0,s=i);let c=e.getScriptFileNames().slice(),d=e.getCompilationSettings()||o4(),g=e.hasInvalidatedResolutions||xt,_=ut(e,e.hasInvalidatedLibResolutions)||xt,v=ut(e,e.hasChangedAutomaticTypeDirectiveNames),y=e.getProjectReferences?.call(e),b,x={getSourceFile:ne,getSourceFileByPath:re,getCancellationToken:()=>l,getCanonicalFileName:m,useCaseSensitiveFileNames:()=>p,getNewLine:()=>ax(d),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:bt,getCurrentDirectory:()=>u,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:ut(e,e.getSymlinkCache),realpath:ut(e,e.realpath),directoryExists:t=>rx(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,a)=>(H.checkDefined(e.readDirectory,`'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'`),e.readDirectory(t,n,r,i,a)),onReleaseOldSourceFile:te,onReleaseParsedCommandLine:k,hasInvalidatedResolutions:g,hasInvalidatedLibResolutions:_,hasChangedAutomaticTypeDirectiveNames:v,trace:ut(e,e.trace),resolveModuleNames:ut(e,e.resolveModuleNames),getModuleResolutionCache:ut(e,e.getModuleResolutionCache),createHash:ut(e,e.createHash),resolveTypeReferenceDirectives:ut(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:ut(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:ut(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:ut(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:ut(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:D,jsDocParsingMode:e.jsDocParsingMode,getGlobalTypingsCacheLocation:ut(e,e.getGlobalTypingsCacheLocation)},S=x.getSourceFile,{getSourceFileWithCache:C}=dW(x,e=>yo(e,u,m),(...e)=>S.call(x,...e));x.getSourceFile=C,(n=e.setCompilerHost)==null||n.call(e,x);let w={useCaseSensitiveFileNames:p,fileExists:e=>x.fileExists(e),readFile:e=>x.readFile(e),directoryExists:e=>x.directoryExists(e),getDirectories:e=>x.getDirectories(e),realpath:x.realpath,readDirectory:(...e)=>x.readDirectory(...e),trace:x.trace,getCurrentDirectory:x.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:bt},T=t.getKeyForCompilationSettings(d),E=new Set;if(YW(a,c,d,(t,n)=>e.getScriptVersion(n),e=>x.fileExists(e),g,_,v,D,y)){x=void 0,b=void 0,E=void 0;return}a=tG({rootNames:c,options:d,host:x,oldProgram:a,projectReferences:y}),x=void 0,b=void 0,E=void 0,h.clearCache(),a.getTypeChecker();return;function D(t){let n=yo(t,u,m),r=b?.get(n);if(r!==void 0)return r||void 0;let i=e.getParsedCommandLine?e.getParsedCommandLine(t):O(t);return(b||=new Map).set(n,i||!1),i}function O(e){let t=ne(e,100);if(t)return t.path=yo(e,u,m),t.resolvedPath=t.path,t.originalFileName=t.fileName,hI(t,w,po($a(e),u),void 0,po(e,u))}function k(t,n,r){var i;e.getParsedCommandLine?(i=e.onReleaseParsedCommandLine)==null||i.call(e,t,n,r):n&&ee(n.sourceFile,r)}function ee(e,n){let r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function te(t,n,r,i){var a;ee(t,n),(a=e.onReleaseOldSourceFile)==null||a.call(e,t,n,r,i)}function ne(e,t,n,r){return re(e,yo(e,u,m),t,n,r)}function re(n,r,i,o,s){H.assert(x,`getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.`);let c=e.getScriptSnapshot(n);if(!c)return;let l=KQ(n,e),u=e.getScriptVersion(n);if(!s){let o=a&&a.getSourceFileByPath(r);if(o){if(l===o.scriptKind||E.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,T,c,u,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(a.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),E.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,T,c,u,l,i)}}function y(){if(r===2){H.assert(a===void 0);return}return _(),a}function b(){return e.getPackageJsonAutoImportProvider?.call(e)}function x(t,n){let r=a.getTypeChecker(),i=o();if(!i)return!1;for(let r of t)for(let t of r.references){let r=s(t);if(H.assertIsDefined(r),n.has(t)||u5.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;let r=SQ(t,h,ut(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(){for(let i of t)for(let t of i.references){if(n.has(t)){let e=s(t);return H.assertIsDefined(e),r.getSymbolAtLocation(e)}let i=SQ(t,h,ut(e,e.fileExists));if(i&&n.has(i)){let e=s(i);if(e)return r.getSymbolAtLocation(e)}}}function s(e){let t=a.getSourceFile(e.fileName);if(!t)return;let n=eZ(t,e.textSpan.start);return u5.Core.getAdjustedNode(n,{use:u5.FindReferencesUse.References})}}function S(){if(a){let e=t.getKeyForCompilationSettings(a.getCompilerOptions());d(a.getSourceFiles(),n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat)),a=void 0}}function C(){S(),e=void 0}function w(e){return _(),a.getSyntacticDiagnostics(g(e),l).slice()}function T(e){_();let t=g(e),n=a.getSemanticDiagnostics(t,l);if(!YS(a.getCompilerOptions()))return n.slice();let r=a.getDeclarationDiagnostics(t,l);return[...n,...r]}function E(e,t){_();let n=g(e),r=a.getCompilerOptions();if(Aw(n,r,a)||!Nw(n,r)||a.getCachedSemanticDiagnostics(n))return;let i=D(n,t);if(!i)return;let o=bc(i.map(e=>Sc(e.getFullStart(),e.getEnd())));return{diagnostics:a.getSemanticDiagnostics(n,l,i).slice(),spans:o}}function D(e,t){let n=[],r=bc(t.map(e=>LZ(e)));for(let t of r){let r=O(e,t);if(!r)return;n.push(...r)}if(n.length)return n}function O(e,t){if(uc(t,e))return;let n=K(iZ(e,ac(t))||e,e=>dc(e,t)),r=[];if(ee(t,n,r),e.end===t.start+t.length&&r.push(e.endOfFileToken),!F(r,vj))return r}function ee(e,t,n){return te(t,e)?uc(e,t)?(ne(t,n),!0):X$(t)?ie(e,t,n):zu(t)?ae(e,t,n):(ne(t,n),!0):!1}function te(e,t){let n=t.start+t.length;return e.post.start}function ne(e,t){for(;e.parent&&!IT(e);)e=e.parent;t.push(e)}function ie(e,t,n){let r=[];return t.statements.filter(t=>ee(e,t,r)).length===t.statements.length?(ne(t,n),!0):(n.push(...r),!1)}function ae(e,t,n){let r=t=>vc(t,e);if(t.modifiers?.some(r)||t.name&&r(t.name)||t.typeParameters?.some(r)||t.heritageClauses?.some(r))return ne(t,n),!0;let i=[];return t.members.filter(t=>ee(e,t,i)).length===t.members.length?(ne(t,n),!0):(n.push(...i),!1)}function A(e){return _(),R1(g(e),a,l)}function j(){return _(),[...a.getOptionsDiagnostics(l),...a.getGlobalDiagnostics(l)]}function N(t,n,r=GY,i){let o={...wt(r),includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return _(),S8.getCompletionsAtPosition(e,a,f,g(t),n,o,r.triggerCharacter,r.triggerKind,l,i&&k7.getFormatContext(i,e),r.includeSymbol)}function oe(t,n,r,i,o,s=GY,c){return _(),S8.getCompletionEntryDetails(a,f,g(t),n,{name:r,source:o,data:c},e,i&&k7.getFormatContext(i,e),s,l)}function se(t,n,r,i,o=GY){return _(),S8.getCompletionEntrySymbol(a,f,g(t),n,{name:r,source:i},e,o)}function ce(e,t,n,r){_();let i=g(e),o=eZ(i,t);if(o===i)return;let s=a.getTypeChecker(),c=ue(o),u=xde(c,s);if(!u||s.isUnknownSymbol(u)){let e=de(i,c,t)?s.getTypeAtLocation(c):void 0;return e&&{kind:``,kindModifiers:``,textSpan:PZ(c,i),displayParts:s.runWithCancellationToken(l,t=>HQ(t,e,NX(c),void 0,r)),documentation:e.symbol?e.symbol.getDocumentationComment(s):void 0,tags:e.symbol?e.symbol.getJsDocTags(s):void 0}}let{symbolKind:d,displayParts:f,documentation:p,tags:m,canIncreaseVerbosityLevel:h}=s.runWithCancellationToken(l,e=>v7.getSymbolDisplayPartsDocumentationAndSymbolKind(e,u,i,NX(c),c,void 0,void 0,n??bf,r));return{kind:d,kindModifiers:v7.getSymbolModifiers(s,u),textSpan:PZ(c,i),displayParts:f,documentation:p,tags:m,canIncreaseVerbosityLevel:h}}function P(e,t){return _(),Q7.preparePasteEdits(g(e),t,a.getTypeChecker())}function le(t,n){return _(),$7.pasteEditsProvider(g(t.targetFile),t.pastedText,t.pasteLocations,t.copiedFrom?{file:g(t.copiedFrom.file),range:t.copiedFrom.range}:void 0,e,t.preferences,k7.getFormatContext(n,e),l)}function ue(e){return Ek(e.parent)&&e.pos===e.parent.pos?e.parent.expression:nk(e.parent)&&e.pos===e.parent.pos||Vm(e.parent)&&e.parent.name===e||lj(e.parent)?e.parent:e}function de(e,t,n){switch(t.kind){case 80:return t.flags&16777216&&!ng(t)&&(t.parent.kind===172&&t.parent.name===t||K(t,e=>e.kind===170))?!1:!EX(t)&&!DX(t)&&!Xl(t.parent);case 212:case 167:return!yZ(e,n);case 110:case 198:case 108:case 203:return!0;case 237:return Vm(t);default:return!1}}function fe(e,t,n,r){return _(),T5.getDefinitionAtPosition(a,g(e),t,n,r)}function pe(e,t){return _(),T5.getDefinitionAndBoundSpan(a,g(e),t)}function me(e,t){return _(),T5.getTypeDefinitionAtPosition(a.getTypeChecker(),g(e),t)}function he(e,t){return _(),u5.getImplementationsAtPosition(a,l,a.getSourceFiles(),g(e),t)}function _e(e,t,n){let r=mo(e);H.assert(n.some(e=>mo(e)===r)),_();let i=M(n,e=>a.getSourceFile(e)),o=g(e);return f1.getDocumentHighlights(a,l,o,t,i)}function ve(e,t,n,r,i){_();let a=g(e),o=$X(eZ(a,t));if(s7.nodeIsEligibleForRename(o))if(Y(o)&&(ej(o.parent)||tj(o.parent))&&$v(o.escapedText)){let{openingElement:e,closingElement:t}=o.parent.parent;return[e,t].map(e=>{let t=PZ(e.tagName,a);return{fileName:a.fileName,textSpan:t,...u5.toContextSpan(t,a,e.parent)}})}else{let e=aQ(a,i??GY),s=typeof i==`boolean`?i:i?.providePrefixAndSuffixTextForRename;return xe(o,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:u5.FindReferencesUse.Rename},(t,n,r)=>u5.toRenameLocation(t,n,r,s||!1,e))}}function be(e,t){return _(),xe(eZ(g(e),t),t,{use:u5.FindReferencesUse.References},u5.toReferenceEntry)}function xe(e,t,n,r){_();let i=n&&n.use===u5.FindReferencesUse.Rename?a.getSourceFiles().filter(e=>!a.isSourceFileDefaultLibrary(e)):a.getSourceFiles();return u5.findReferenceOrRenameEntries(a,l,i,e,t,n,r)}function Se(e,t){return _(),u5.findReferencedSymbols(a,l,a.getSourceFiles(),g(e),t)}function Ce(e){return _(),u5.Core.getReferencesForFileName(e,a,a.getSourceFiles()).map(u5.toReferenceEntry)}function I(e,t,n,r=!1,i=!1){return _(),Soe(n?[g(n)]:a.getSourceFiles(),a.getTypeChecker(),l,e,t,r,i)}function we(t,n,r){_();let i=g(t),o=e.getCustomTransformers&&e.getCustomTransformers();return hG(a,i,!!n,l,o,r)}function Te(e,t,{triggerReason:n}=GY){_();let r=g(e);return u7.getSignatureHelpItems(a,r,t,n,l)}function Ee(e){return i.getCurrentSourceFile(e)}function De(e,t,n){let r=i.getCurrentSourceFile(e),a=eZ(r,t);if(a===r)return;switch(a.kind){case 212:case 167:case 11:case 97:case 112:case 106:case 108:case 110:case 198:case 80:break;default:return}let o=a;for(;;)if(OX(o)||xie(o))o=o.parent;else if(AX(o))if(o.parent.parent.kind===268&&o.parent.parent.body===o.parent)o=o.parent.parent.name;else break;else break;return Sc(o.getStart(),a.getEnd())}function Oe(e,t){let n=i.getCurrentSourceFile(e);return g4.spanInSourceFileAtLocation(n,t)}function ke(e){return Noe(i.getCurrentSourceFile(e),l)}function Ae(e){return Poe(i.getCurrentSourceFile(e),l)}function je(e,t,n){return _(),(n||`original`)===`2020`?zue(a,l,g(e),t):c1(a.getTypeChecker(),l,g(e),a.getClassifiableNames(),t)}function Me(e,t,n){return _(),(n||`original`)===`original`?l1(a.getTypeChecker(),l,g(e),a.getClassifiableNames(),t):Q2(a,l,g(e),t)}function Ne(e,t){return u1(l,i.getCurrentSourceFile(e),t)}function Pe(e,t){return d1(l,i.getCurrentSourceFile(e),t)}function Fe(e){let t=i.getCurrentSourceFile(e);return n7.collectElements(t,l)}let Ie=new Map(Object.entries({19:20,21:22,23:24,32:30}));Ie.forEach((e,t)=>Ie.set(e.toString(),Number(t)));function Le(e,t){let n=i.getCurrentSourceFile(e),r=tZ(n,t),a=r.getStart(n)===t?Ie.get(r.kind.toString()):void 0,o=a&&YX(r.parent,a,n);return o?[PZ(r,n),PZ(o,n)].sort((e,t)=>e.start-t.start):c}function Re(e,t,n){let r=sr(),a=i4(n),o=i.getCurrentSourceFile(e);f(`getIndentationAtPosition: getCurrentSourceFile: `+(sr()-r)),r=sr();let s=k7.SmartIndenter.getIndentation(t,o,a);return f(`getIndentationAtPosition: computeIndentation : `+(sr()-r)),s}function ze(t,n,r,a){let o=i.getCurrentSourceFile(t);return k7.formatSelection(n,r,o,k7.getFormatContext(i4(a),e))}function Be(t,n){return k7.formatDocument(i.getCurrentSourceFile(t),k7.getFormatContext(i4(n),e))}function Ve(t,n,r,a){let o=i.getCurrentSourceFile(t),s=k7.getFormatContext(i4(a),e);if(!yZ(o,n))switch(r){case`{`:return k7.formatOnOpeningCurly(n,o,s);case`}`:return k7.formatOnClosingCurly(n,o,s);case`;`:return k7.formatOnSemicolon(n,o,s);case` `:return k7.formatOnEnter(n,o,s)}return[]}function He(t,n,r,i,o,s=GY){_();let c=g(t),u=Sc(n,r),d=k7.getFormatContext(o,e);return re(ge(i,Mt,It),t=>(l.throwIfCancellationRequested(),C4.getFixes({errorCode:t,sourceFile:c,span:u,program:a,host:e,cancellationToken:l,formatContext:d,preferences:s})))}function Ue(t,n,r,i=GY){_(),H.assert(t.type===`file`);let o=g(t.fileName),s=k7.getFormatContext(r,e);return C4.getAllFixes({fixId:n,sourceFile:o,program:a,host:e,cancellationToken:l,formatContext:s,preferences:i})}function We(t,n,r=GY){_(),H.assert(t.type===`file`);let i=g(t.fileName);if(qf(i))return c;let o=k7.getFormatContext(n,e),s=t.mode??(t.skipDestructiveCodeActions?`SortAndCombine`:`All`);return U5.organizeImports(i,o,e,a,r,s)}function L(t,n,r,i=GY){return v1(y(),t,n,e,k7.getFormatContext(r,e),i,h)}function Ge(e,t){let n=typeof e==`string`?t:e;return mt(n)?Promise.all(n.map(e=>Ke(e))):Ke(n)}function Ke(t){return H.assertEqual(t.type,`install package`),e.installPackage?e.installPackage({fileName:(e=>yo(e,u,m))(t.file),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`")}function qe(t,n,r,a){let o=a?k7.getFormatContext(a,e).options:void 0;return I5.getDocCommentTemplateAtPosition(zQ(e,o),i.getCurrentSourceFile(t),n,r)}function Je(e,t,n){if(n===60)return!1;let r=i.getCurrentSourceFile(e);if(lZ(r,t))return!1;if(uZ(r,t))return n===123;if(fZ(r,t))return!1;switch(n){case 39:case 34:case 96:return!yZ(r,t)}return!0}function Ye(e,t){let n=i.getCurrentSourceFile(e),r=oZ(t,n);if(!r)return;let a=r.kind===32&&ej(r.parent)?r.parent.parent:nO(r)&&QA(r.parent)?r.parent:void 0;if(a&&nt(a))return{newText:``};let o=r.kind===32&&rj(r.parent)?r.parent.parent:nO(r)&&nj(r.parent)?r.parent:void 0;if(o&&rt(o))return{newText:``}}function Xe(e,t){let n=i.getCurrentSourceFile(e),r=oZ(t,n);if(!r||r.parent.kind===308)return;let a=`[a-zA-Z0-9:\\-\\._$]*`;if(nj(r.parent.parent)){let e=r.parent.parent.openingFragment,i=r.parent.parent.closingFragment;if(qf(e)||qf(i))return;let o=e.getStart(n)+1,s=i.getStart(n)+2;return t!==o&&t!==s?void 0:{ranges:[{start:o,length:0},{start:s,length:0}],wordPattern:a}}else{let e=K(r.parent,e=>!!(ej(e)||tj(e)));if(!e)return;H.assert(ej(e)||tj(e),`tag should be opening or closing element`);let i=e.parent.openingElement,o=e.parent.closingElement,s=i.tagName.getStart(n),c=i.tagName.end,l=o.tagName.getStart(n),u=o.tagName.end;return s===i.getStart(n)||l===o.getStart(n)||c===i.getEnd()||u===o.getEnd()||!(s<=t&&t<=c||l<=t&&t<=u)||i.tagName.getText(n)!==o.tagName.getText(n)?void 0:{ranges:[{start:s,length:c-s},{start:l,length:u-l}],wordPattern:a}}}function Ze(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function Qe(e,t,n){let r=i.getCurrentSourceFile(e),a=[],{lineStarts:o,firstLine:s,lastLine:c}=Ze(r,t),l=n||!1,u=Number.MAX_VALUE,d=new Map,f=new RegExp(/\S/),p=mZ(r,o[s]),m=p?`{/*`:`//`;for(let e=s;e<=c;e++){let t=r.text.substring(o[e],r.getLineEndOfPosition(o[e])),i=f.exec(t);i&&(u=Math.min(u,i.index),d.set(e.toString(),i.index),t.substr(i.index,m.length)!==m&&(l=n===void 0||n))}for(let n=s;n<=c;n++){if(s!==c&&o[n]===t.end)continue;let i=d.get(n.toString());i!==void 0&&(p?a.push(...$e(e,{pos:o[n]+u,end:r.getLineEndOfPosition(o[n])},l,p)):l?a.push({newText:m,span:{length:0,start:o[n]+u}}):r.text.substr(o[n]+i,m.length)===m&&a.push({newText:``,span:{length:m.length,start:o[n]+i}}))}return a}function $e(e,t,n,r){let a=i.getCurrentSourceFile(e),o=[],{text:s}=a,c=!1,l=n||!1,u=[],{pos:d}=t,f=r===void 0?mZ(a,d):r,p=f?`{/*`:`/*`,m=f?`*/}`:`*/`,h=f?`\\{\\/\\*`:`\\/\\*`,g=f?`\\*\\/\\}`:`\\*\\/`;for(;d<=t.end;){let e=s.substr(d,p.length)===p?p.length:0,r=yZ(a,d+e);if(r)f&&(r.pos--,r.end++),u.push(r.pos),r.kind===3&&u.push(r.end),c=!0,d=r.end+1;else{let e=s.substring(d,t.end).search(`(${h})|(${g})`);l=n===void 0?l||!bQ(s,d,e===-1?t.end:d+e):n,d=e===-1?t.end+1:d+e+m.length}}if(l||!c){yZ(a,t.pos)?.kind!==2&&ye(u,t.pos,It),ye(u,t.end,It);let e=u[0];s.substr(e,p.length)!==p&&o.push({newText:p,span:{length:0,start:e}});for(let e=1;e0?e-m.length:0,n=s.substr(t,m.length)===m?m.length:0;o.push({newText:``,span:{length:p.length,start:e-n}})}return o}function et(e,t){let{firstLine:n,lastLine:r}=Ze(i.getCurrentSourceFile(e),t);return n===r&&t.pos!==t.end?$e(e,t,!0):Qe(e,t,!0)}function tt(e,t){let n=i.getCurrentSourceFile(e),r=[],{pos:a}=t,{end:o}=t;a===o&&(o+=mZ(n,a)?2:1);for(let t=a;t<=o;t++){let i=yZ(n,t);if(i){switch(i.kind){case 2:r.push(...Qe(e,{end:i.end,pos:i.pos+1},!1));break;case 3:r.push(...$e(e,{end:i.end,pos:i.pos+1},!1))}t=i.end+1}}return r}function nt({openingElement:e,closingElement:t,parent:n}){return!zP(e.tagName,t.tagName)||QA(n)&&zP(e.tagName,n.openingElement.tagName)&&nt(n)}function rt({closingFragment:e,parent:t}){return!!(e.flags&262144)||nj(t)&&rt(t)}function it(e,t,n){let r=i.getCurrentSourceFile(e),a=k7.getRangeOfEnclosingComment(r,t);return a&&(!n||a.kind===3)?LZ(a):void 0}function at(e,t){_();let n=g(e);l.throwIfCancellationRequested();let r=n.text,i=[];if(t.length>0&&!c(n.fileName)){let e=o(),a;for(;a=e.exec(r);){l.throwIfCancellationRequested(),H.assert(a.length===t.length+3);let e=a[1],o=a.index+e.length;if(!yZ(n,o))continue;let c;for(let e=0;e`(`+a(e.text)+`)`).join(`|`)+`)`)+`(?:.*?))`)+`(?:$|\\*\\/)`;return new RegExp(e,`gim`)}function s(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function c(e){return e.includes(`/node_modules/`)}}function ot(e,t,n){return _(),s7.getRenameInfo(a,g(e),t,n||{})}function st(t,n,r,i,a,o){let[s,c]=typeof n==`number`?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:y(),host:e,formatContext:k7.getFormatContext(i,e),cancellationToken:l,preferences:r,triggerReason:a,kind:o}}function ct(t,n,r){return{file:t,program:y(),host:e,span:n,preferences:r,cancellationToken:l}}function lt(e,t){return m7.getSmartSelectionRange(t,i.getCurrentSourceFile(e))}function R(e,t,n=GY,r,i,a){_();let o=g(e);return b0.getApplicableRefactors(st(o,t,n,GY,r,i),a)}function dt(t,n,r=GY){_();let i=g(t),o=H.checkDefined(a.getSourceFiles()),s=bw(t),c=G0(st(i,n,r,GY)),l=K0(c?.all),u=M(o,e=>{let t=bw(e.fileName);return!a?.isSourceFileFromExternalLibrary(i)&&!(i===g(e.fileName)||s===`.ts`&&t===`.d.ts`||s===`.d.ts`&&pn(eo(e.fileName),`lib.`)&&t===`.d.ts`)&&(s===t||(s===`.tsx`&&t===`.ts`||s===`.jsx`&&t===`.js`)&&!l)?e.fileName:void 0});return{newFileName:W0(i,a,e,c),files:u}}function z(e,t,n,r,i,a=GY,o){_();let s=g(e);return b0.getEditsForRefactor(st(s,n,a,t),r,i,o)}function ft(e,t){return t===0?{line:0,character:0}:h.toLineColumnOffset(e,t)}function pt(e,t){_();let n=_4.resolveCallHierarchyDeclaration(a,eZ(g(e),t));return n&&N$(n,e=>_4.createCallHierarchyItem(a,e))}function ht(e,t){_();let n=g(e),r=P$(_4.resolveCallHierarchyDeclaration(a,t===0?n:eZ(n,t)));return r?_4.getIncomingCalls(a,r,l):[]}function gt(e,t){_();let n=g(e),r=P$(_4.resolveCallHierarchyDeclaration(a,t===0?n:eZ(n,t)));return r?_4.getOutgoingCalls(a,r):[]}function _t(e,t,n=GY){_();let r=g(e);return P5.provideInlayHints(ct(r,t,n))}function vt(t,n,r,a,o){return B5.mapCode(i.getCurrentSourceFile(t),n,r,e,k7.getFormatContext(a,e),o)}let yt={dispose:C,cleanupSemanticCache:S,getSyntacticDiagnostics:w,getSemanticDiagnostics:T,getRegionSemanticDiagnostics:E,getSuggestionDiagnostics:A,getCompilerOptionsDiagnostics:j,getSyntacticClassifications:Ne,getSemanticClassifications:je,getEncodedSyntacticClassifications:Pe,getEncodedSemanticClassifications:Me,getCompletionsAtPosition:N,getCompletionEntryDetails:oe,getCompletionEntrySymbol:se,getSignatureHelpItems:Te,getQuickInfoAtPosition:ce,getDefinitionAtPosition:fe,getDefinitionAndBoundSpan:pe,getImplementationAtPosition:he,getTypeDefinitionAtPosition:me,getReferencesAtPosition:be,findReferences:Se,getFileReferences:Ce,getDocumentHighlights:_e,getNameOrDottedNameSpan:De,getBreakpointStatementAtPosition:Oe,getNavigateToItems:I,getRenameInfo:ot,getSmartSelectionRange:lt,findRenameLocations:ve,getNavigationBarItems:ke,getNavigationTree:Ae,getOutliningSpans:Fe,getTodoComments:at,getBraceMatchingAtPosition:Le,getIndentationAtPosition:Re,getFormattingEditsForRange:ze,getFormattingEditsForDocument:Be,getFormattingEditsAfterKeystroke:Ve,getDocCommentTemplateAtPosition:qe,isValidBraceCompletionAtPosition:Je,getJsxClosingTagAtPosition:Ye,getLinkedEditingRangeAtPosition:Xe,getSpanOfEnclosingComment:it,getCodeFixesAtPosition:He,getCombinedCodeFix:Ue,applyCodeActionCommand:Ge,organizeImports:We,getEditsForFileRename:L,getEmitOutput:we,getNonBoundSourceFile:Ee,getProgram:y,getCurrentProgram:()=>a,getAutoImportProvider:b,updateIsDefinitionOfReferencedSymbols:x,getApplicableRefactors:R,getEditsForRefactor:z,getMoveToRefactoringFileSuggestions:dt,toLineColumnOffset:ft,getSourceMapper:()=>h,clearSourceMapperCache:()=>h.clearCache(),prepareCallHierarchy:pt,provideCallHierarchyIncomingCalls:ht,provideCallHierarchyOutgoingCalls:gt,toggleLineComment:Qe,toggleMultilineComment:$e,commentSelection:et,uncommentSelection:tt,provideInlayHints:_t,getSupportedCodeFixes:s4,preparePasteEditsForFile:P,getPasteEdits:le,mapCode:vt};switch(r){case 0:break;case 1:gde.forEach(e=>yt[e]=()=>{throw Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:_de.forEach(e=>yt[e]=()=>{throw Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)});break;default:H.assertNever(r)}return yt}function f4(e){return e.nameTable||vde(e),e.nameTable}function vde(e){let t=e.nameTable=new Map;e.forEachChild(function e(n){if(Y(n)&&!DX(n)&&n.escapedText||uv(n)&&yde(n)){let e=_v(n);t.set(e,t.get(e)===void 0?n.pos:-1)}else if(vO(n)){let e=n.escapedText;t.set(e,t.get(e)===void 0?n.pos:-1)}if(pP(n,e),tf(n))for(let t of n.jsDoc)pP(t,e)})}function yde(e){return R_(e)||e.parent.kind===284||Sde(e)||B_(e)}function p4(e){let t=bde(e);return t&&(Sk(t.parent)||oj(t.parent))?t:void 0}function bde(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===168)return of(e.parent.parent)?e.parent.parent:void 0;case 80:case 296:return of(e.parent)&&(e.parent.parent.kind===211||e.parent.parent.kind===293)&&e.parent.name===e?e.parent:void 0}}function xde(e,t){let n=p4(e);if(n){let e=t.getContextualType(n.parent),r=e&&m4(n,t,e,!1);if(r&&r.length===1)return Ie(r)}return t.getSymbolAtLocation(e)}function m4(e,t,n,r){let i=JZ(e.name);if(!i)return c;if(!n.isUnion()){let e=n.getProperty(i);return e?[e]:c}let a=Sk(e.parent)||oj(e.parent)?E(n.types,n=>!t.isTypeInvalidDueToUnionDiscriminant(n,e.parent)):n.types,o=M(a,e=>e.getProperty(i));if(r&&(o.length===0||o.length===n.types.length)){let e=n.getProperty(i);if(e)return[e]}return!a.length&&!o.length?M(n.types,e=>e.getProperty(i)):ge(o,Mt)}function Sde(e){return e&&e.parent&&e.parent.kind===213&&e.parent.argumentExpression===e}function h4(e){if(Na)return lo($a(mo(Na.getExecutingFilePath())),ic(e));throw Error(`getDefaultLibFilePath is only supported when consumed as a node module. `)}lS(ude());function Cde(e,t,n){let r=[];n=G1(n,r);let i=mt(e)?e:[e],a=mU(void 0,void 0,J,n,i,t,!0);return a.diagnostics=de(a.diagnostics,r),a}var g4={};n(g4,{spanInSourceFileAtLocation:()=>wde});function wde(e,t){if(e.isDeclarationFile)return;let n=nZ(e,t),r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){let t=oZ(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(n.flags&33554432)return;return u(n);function i(t,n){let r=HN(t)?b(t.modifiers,IO):void 0;return Sc(r?Es(e.text,r.end):t.getStart(e),(n||t).getEnd())}function a(t,n){return i(t,aZ(n,n.parent,e))}function o(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?u(t):u(n)}function s(t,n,r){if(t){let i=t.indexOf(n);if(i>=0){let n=i,a=i+1;for(;n>0&&r(t[n-1]);)n--;for(;a0)return u(t.declarations[0])}else return u(e.initializer)}function y(e){if(e.initializer)return v(e);if(e.condition)return i(e.condition);if(e.incrementor)return i(e.incrementor)}function b(e){let t=d(e.elements,e=>e.kind===233?void 0:e);return t?u(t):e.parent.kind===209?i(e.parent):n(e.parent)}function x(e){H.assert(e.kind!==208&&e.kind!==207);let t=d(e.kind===210?e.elements:e.properties,e=>e.kind===233?void 0:e);return t?u(t):i(e.parent.kind===227?e.parent:e)}function S(t){switch(t.parent.kind){case 267:let n=t.parent;return o(oZ(t.pos,e,t.parent),n.members.length?n.members[0]:n.getLastToken(e));case 264:let r=t.parent;return o(oZ(t.pos,e,t.parent),r.members.length?r.members[0]:r.getLastToken(e));case 270:return o(t.parent.parent,t.parent.clauses[0])}return u(t.parent)}function C(e){switch(e.parent.kind){case 269:if(uz(e.parent.parent)!==1)return;case 267:case 264:return i(e);case 242:if(ph(e.parent))return i(e);case 300:return u(Re(e.parent.statements));case 270:let t=e.parent,n=Re(t.clauses);return n?u(Re(n.statements)):void 0;case 207:let r=e.parent;return u(Re(r.elements)||r);default:if(AZ(e.parent)){let t=e.parent;return i(Re(t.properties)||t)}return u(e.parent)}}function w(e){switch(e.parent.kind){case 208:let t=e.parent;return i(Re(t.elements)||t);default:if(AZ(e.parent)){let t=e.parent;return i(Re(t.elements)||t)}return u(e.parent)}}function T(e){return e.parent.kind===247||e.parent.kind===214||e.parent.kind===215?c(e):e.parent.kind===218?l(e):u(e.parent)}function E(e){switch(e.parent.kind){case 219:case 263:case 220:case 175:case 174:case 178:case 179:case 177:case 248:case 247:case 249:case 251:case 214:case 215:case 218:return c(e);default:return u(e.parent)}}function D(e){return ju(e.parent)||e.parent.kind===304||e.parent.kind===170?c(e):u(e.parent)}function O(e){return e.parent.kind===217?l(e):u(e.parent)}function k(e){return e.parent.kind===247?a(e,e.parent.expression):u(e.parent)}function ee(e){return e.parent.kind===251?l(e):u(e.parent)}}}var _4={};n(_4,{createCallHierarchyItem:()=>x4,getIncomingCalls:()=>Vde,getOutgoingCalls:()=>Zde,resolveCallHierarchyDeclaration:()=>Fde});function Tde(e){return(Ak(e)||Uk(e))&&Qc(e)}function Ede(e){return RO(e)||bA(e)}function v4(e){return(Ak(e)||jk(e)||Uk(e))&&Ede(e.parent)&&e===e.parent.initializer&&Y(e.parent.name)&&(!!(Ic(e.parent)&2)||RO(e.parent))}function Dde(e){return vj(e)||DA(e)||SA(e)||Ak(e)||CA(e)||Uk(e)||VO(e)||BO(e)||zO(e)||UO(e)||WO(e)}function y4(e){return vj(e)||DA(e)&&Y(e.name)||SA(e)||CA(e)||VO(e)||BO(e)||zO(e)||UO(e)||WO(e)||Tde(e)||v4(e)}function Ode(e){return vj(e)?e:Qc(e)?e.name:v4(e)?e.parent.name:H.checkDefined(e.modifiers&&y(e.modifiers,kde))}function kde(e){return e.kind===90}function Ade(e,t){let n=Ode(t);return n&&e.getSymbolAtLocation(n)}function jde(e,t){if(vj(t))return{text:t.fileName,pos:0,end:0};if((SA(t)||CA(t))&&!Qc(t)){let e=t.modifiers&&y(t.modifiers,kde);if(e)return{text:`default`,pos:e.getStart(),end:e.getEnd()}}if(VO(t)){let n=Es(t.getSourceFile().text,ux(t).pos),r=n+6,i=e.getTypeChecker(),a=i.getSymbolAtLocation(t.parent);return{text:`${a?`${i.symbolToString(a,t.parent)} `:``}static {}`,pos:n,end:r}}let n=v4(t)?t.parent.name:H.checkDefined(el(t),`Expected call hierarchy item to have a name`),r=Y(n)?Gc(n):uv(n)?n.text:NO(n)&&uv(n.expression)?n.expression.text:void 0;if(r===void 0){let i=e.getTypeChecker(),a=i.getSymbolAtLocation(n);a&&(r=i.symbolToString(a,t))}if(r===void 0){let e=UU();r=Ff(n=>e.writeNode(4,t,t.getSourceFile(),n))}return{text:r,pos:n.getStart(),end:n.getEnd()}}function Mde(e){if(v4(e))return RO(e.parent)&&zu(e.parent.parent)?Uk(e.parent.parent)?tl(e.parent.parent)?.getText():e.parent.parent.name?.getText():OA(e.parent.parent.parent.parent)&&Y(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 178:case 179:case 175:return e.parent.kind===211?tl(e.parent)?.getText():el(e.parent)?.getText();case 263:case 264:case 268:if(OA(e.parent)&&Y(e.parent.parent.name))return e.parent.parent.name.getText()}}function Nde(e,t){if(t.body)return t;if(HO(t))return Dy(t.parent);if(SA(t)||BO(t)){let n=Ade(e,t);return n&&n.valueDeclaration&&Nu(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function Pde(e,t){let n=Ade(e,t),r;if(n&&n.declarations){let e=pe(n.declarations),t=k(n.declarations,e=>({file:e.getSourceFile().fileName,pos:e.pos}));e.sort((e,n)=>Ht(t[e].file,t[n].file)||t[e].pos-t[n].pos);let i=k(e,e=>n.declarations[e]),a;for(let e of i)y4(e)&&((!a||a.parent!==e.parent||a.end!==e.pos)&&(r=I(r,e)),a=e)}return r}function b4(e,t){return VO(t)?t:Nu(t)?Nde(e,t)??Pde(e,t)??t:Pde(e,t)??t}function Fde(e,t){let n=e.getTypeChecker(),r=!1;for(;;){if(y4(t))return b4(n,t);if(Dde(t)){let e=K(t,y4);return e&&b4(n,e)}if(R_(t)){if(y4(t.parent))return b4(n,t.parent);if(Dde(t.parent)){let e=K(t.parent,y4);return e&&b4(n,e)}return Ede(t.parent)&&t.parent.initializer&&v4(t.parent.initializer)?t.parent.initializer:void 0}if(HO(t))return y4(t.parent)?t.parent:void 0;if(t.kind===126&&VO(t.parent)){t=t.parent;continue}if(bA(t)&&t.initializer&&v4(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(e.flags&2097152&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}}function x4(e,t){let n=t.getSourceFile(),r=jde(e,t),i=Mde(t),a=PX(t),o=SZ(t),s=Sc(Es(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=Sc(r.pos,r.end);return{file:n.fileName,kind:a,kindModifiers:o,name:r.text,containerName:i,span:s,selectionSpan:c}}function Ide(e){return e!==void 0}function Lde(e){if(e.kind===u5.EntryKind.Node){let{node:t}=e;if(_X(t,!0,!0)||vX(t,!0,!0)||gie(t,!0,!0)||_ie(t,!0,!0)||OX(t)||kX(t)){let e=t.getSourceFile();return{declaration:K(t,y4)||e,range:IZ(t,e)}}}}function Rde(e){return mB(e.declaration)}function zde(e,t){return{from:e,fromSpans:t}}function Bde(e,t){return zde(x4(e,t[0].declaration),k(t,e=>LZ(e.range)))}function Vde(e,t,n){if(vj(t)||DA(t)||VO(t))return[];let r=Ode(t),i=E(u5.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:u5.FindReferencesUse.References},Lde),Ide);return i?at(i,Rde,t=>Bde(e,t)):[]}function Hde(e,t){function n(n){let r=Dk(n)?n.tag:Jd(n)?n.tagName:Zx(n)||VO(n)?n:n.expression,i=Fde(e,r);if(i){let e=IZ(r,n.getSourceFile());if(mt(i))for(let n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}function r(e){if(e&&!(e.flags&33554432)){if(y4(e)){if(zu(e))for(let t of e.members)t.name&&NO(t.name)&&r(t.name.expression);return}switch(e.kind){case 80:case 272:case 273:case 279:case 265:case 266:return;case 176:n(e);return;case 217:case 235:r(e.expression);return;case 261:case 170:r(e.name),r(e.initializer);return;case 214:n(e),r(e.expression),d(e.arguments,r);return;case 215:n(e),r(e.expression),d(e.arguments,r);return;case 216:n(e),r(e.tag),r(e.template);return;case 287:case 286:n(e),r(e.tagName),r(e.attributes);return;case 171:n(e),r(e.expression);return;case 212:case 213:n(e),pP(e,r);break;case 239:r(e.expression);return}eh(e)||pP(e,r)}}return r}function Ude(e,t){d(e.statements,t)}function Wde(e,t){!Qy(e,128)&&e.body&&OA(e.body)&&d(e.body.statements,t)}function Gde(e,t,n){let r=Nde(e,t);r&&(d(r.parameters,n),n(r.body))}function Kde(e,t){t(e.body)}function qde(e,t){d(e.modifiers,t);let n=q_(e);n&&t(n.expression);for(let n of e.members)VN(n)&&d(n.modifiers,t),RO(n)?t(n.initializer):HO(n)&&n.body?(d(n.parameters,t),t(n.body)):VO(n)&&t(n)}function Jde(e,t){let n=[],r=Hde(e,n);switch(t.kind){case 308:Ude(t,r);break;case 268:Wde(t,r);break;case 263:case 219:case 220:case 175:case 178:case 179:Gde(e.getTypeChecker(),t,r);break;case 264:case 232:qde(t,r);break;case 176:Kde(t,r);break;default:H.assertNever(t)}return n}function Yde(e,t){return{to:e,fromSpans:t}}function Xde(e,t){return Yde(x4(e,t[0].declaration),k(t,e=>LZ(e.range)))}function Zde(e,t){return t.flags&33554432||zO(t)?[]:at(Jde(e,t),Rde,t=>Xde(e,t))}var S4={};n(S4,{v2020:()=>Qde});var Qde={};n(Qde,{TokenEncodingConsts:()=>Iue,TokenModifier:()=>Rue,TokenType:()=>Lue,getEncodedSemanticClassifications:()=>Q2,getSemanticClassifications:()=>zue});var C4={};n(C4,{PreserveOptionalFlags:()=>Xve,addNewNodeForMemberSymbol:()=>Zve,codeFixAll:()=>M4,createCodeFixAction:()=>D4,createCodeFixActionMaybeFixAll:()=>O4,createCodeFixActionWithoutFixAll:()=>E4,createCombinedCodeActions:()=>j4,createFileTextChanges:()=>ife,createImportAdder:()=>D3,createImportSpecifierResolver:()=>Nme,createMissingMemberNodes:()=>K6,createSignatureDeclarationFromCallExpression:()=>Y6,createSignatureDeclarationFromSignature:()=>J6,createStubbedBody:()=>e8,eachDiagnostic:()=>N4,findAncestorMatchingSpan:()=>o8,generateAccessorFromProperty:()=>fye,getAccessorConvertiblePropertyAtPosition:()=>yye,getAllFixes:()=>rfe,getFixes:()=>nfe,getImportCompletionAction:()=>Pme,getImportKind:()=>M3,getJSDocTypedefNodes:()=>bme,getNoopSymbolTrackerWithResolver:()=>q6,getPromoteTypeOnlyCompletionAction:()=>Fme,getSupportedErrorCodes:()=>efe,importFixName:()=>kme,importSymbols:()=>a8,parameterShouldGetTypeFromJSDoc:()=>qfe,registerCodeFix:()=>A4,setJsonCompilerOptionValue:()=>n8,setJsonCompilerOptionValues:()=>t8,tryGetAutoImportableReferenceFromTypeNode:()=>i8,typeNodeToAutoImportableTypeNode:()=>Z6,typePredicateToAutoImportableTypeNode:()=>nye,typeToAutoImportableTypeNode:()=>X6,typeToMinimizedReferenceType:()=>tye});var w4=R(),T4=new Map;function E4(e,t,n){return k4(e,W$(n),t,void 0,void 0)}function D4(e,t,n,r,i,a){return k4(e,W$(n),t,r,W$(i),a)}function O4(e,t,n,r,i,a){return k4(e,W$(n),t,r,i&&W$(i),a)}function k4(e,t,n,r,i,a){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:a?[a]:void 0}}function A4(e){for(let t of e.errorCodes)$de=void 0,w4.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)H.assert(!T4.has(t)),T4.set(t,e)}var $de;function efe(){return $de??=$e(w4.keys())}function tfe(e,t){let{errorCodes:n}=e,r=0;for(let e of t)if(C(n,e.code)&&r++,r>1)break;let i=r<2;return({fixId:e,fixAllDescription:t,...n})=>i?n:{...n,fixId:e,fixAllDescription:t}}function nfe(e){let t=afe(e);return re(w4.get(String(e.errorCode)),n=>k(n.getCodeActions(e),tfe(n,t)))}function rfe(e){return T4.get(yt(e.fixId,gt)).getAllCodeActions(e)}function j4(e,t){return{changes:e,commands:t}}function ife(e,t){return{fileName:e,textChanges:t}}function M4(e,t,n){let r=[];return j4(y7.ChangeTracker.with(e,i=>N4(e,t,e=>n(i,e,r))),r.length===0?void 0:r)}function N4(e,t,n){for(let r of afe(e))C(t,r.code)&&n(r)}function afe({program:e,sourceFile:t,cancellationToken:n}){let r=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...R1(t,e,n)];return YS(e.getCompilerOptions())&&r.push(...e.getDeclarationDiagnostics(t,n)),r}var P4=`addConvertToUnknownForNonOverlappingTypes`,ofe=[G.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];A4({errorCodes:ofe,getCodeActions:function(e){let t=cfe(e.sourceFile,e.span.start);if(t!==void 0)return[D4(P4,y7.ChangeTracker.with(e,n=>sfe(n,e.sourceFile,t)),G.Add_unknown_conversion_for_non_overlapping_types,P4,G.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[P4],getAllCodeActions:e=>M4(e,ofe,(e,t)=>{let n=cfe(t.file,t.start);n&&sfe(e,t.file,n)})});function sfe(e,t,n){let r=Kk(n)?J.createAsExpression(n.expression,J.createKeywordTypeNode(159)):J.createTypeAssertion(J.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function cfe(e,t){if(!ng(e))return K(nZ(e,t),e=>Kk(e)||Ok(e))}A4({errorCodes:[G.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,G.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,G.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(e){let{sourceFile:t}=e;return[E4(`addEmptyExportDeclaration`,y7.ChangeTracker.with(e,e=>{let n=J.createExportDeclaration(void 0,!1,J.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)}),G.Add_export_to_make_this_file_into_a_module)]}});var F4=`addMissingAsync`,lfe=[G.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,G.Type_0_is_not_assignable_to_type_1.code,G.Type_0_is_not_comparable_to_type_1.code];A4({fixIds:[F4],errorCodes:lfe,getCodeActions:function(e){let{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:a}=e,o=y(i.getTypeChecker().getDiagnostics(t,r),pfe(a,n)),s=ffe(t,o&&o.relatedInformation&&y(o.relatedInformation,e=>e.code===G.Did_you_mean_to_mark_this_function_as_async.code));return s?[ufe(e,s,t=>y7.ChangeTracker.with(e,t))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,n=new Set;return M4(e,lfe,(r,i)=>{let a=ffe(t,i.relatedInformation&&y(i.relatedInformation,e=>e.code===G.Did_you_mean_to_mark_this_function_as_async.code));return a?ufe(e,a,e=>(e(r),[]),n):void 0})}});function ufe(e,t,n,r){return D4(F4,n(n=>dfe(n,e.sourceFile,t,r)),G.Add_async_modifier_to_containing_function,F4,G.Add_all_missing_async_modifiers)}function dfe(e,t,n,r){if(r&&r.has(mB(n)))return;r?.add(mB(n));let i=J.replaceModifiers(oE(n,!0),J.createNodeArray(J.createModifiersFromModifierFlags(fb(n)|1024)));e.replaceNode(t,n,i)}function ffe(e,t){if(t)return K(nZ(e,t.start),n=>n.getStart(e)ac(t)?`quit`:(jk(n)||BO(n)||Ak(n)||SA(n))&&gQ(t,PZ(n,e)))}function pfe(e,t){return({start:n,length:r,relatedInformation:i,code:a})=>_t(n)&&_t(r)&&gQ({start:n,length:r},e)&&a===t&&!!i&&F(i,e=>e.code===G.Did_you_mean_to_mark_this_function_as_async.code)}var I4=`addMissingAwait`,mfe=G.Property_0_does_not_exist_on_type_1.code,hfe=[G.This_expression_is_not_callable.code,G.This_expression_is_not_constructable.code],L4=[G.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,G.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,G.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,G.Operator_0_cannot_be_applied_to_type_1.code,G.Operator_0_cannot_be_applied_to_types_1_and_2.code,G.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,G.This_condition_will_always_return_true_since_this_0_is_always_defined.code,G.Type_0_is_not_an_array_type.code,G.Type_0_is_not_an_array_type_or_a_string_type.code,G.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,G.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,G.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,G.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,G.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,G.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,mfe,...hfe];A4({fixIds:[I4],errorCodes:L4,getCodeActions:function(e){let{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:a}=e,o=gfe(t,n,r,i,a);if(!o)return;let s=e.program.getTypeChecker(),c=t=>y7.ChangeTracker.with(e,t);return Se([_fe(e,o,n,s,c),vfe(e,o,n,s,c)])},getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),a=new Set;return M4(e,L4,(o,s)=>{let c=gfe(t,s.code,s,r,n);if(!c)return;let l=e=>(e(o),[]);return _fe(e,c,s.code,i,l,a)||vfe(e,c,s.code,i,l,a)})}});function gfe(e,t,n,r,i){let a=M$(e,n);return a&&yfe(e,t,n,r,i)&&Cfe(a)?a:void 0}function _fe(e,t,n,r,i,a){let{sourceFile:o,program:s,cancellationToken:c}=e,l=bfe(t,o,c,s,r);if(l)return E4(`addMissingAwaitToInitializer`,i(e=>{d(l.initializers,({expression:t})=>R4(e,n,o,r,t,a)),a&&l.needsSecondPassForFixAll&&R4(e,n,o,r,t,a)}),l.initializers.length===1?[G.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:G.Add_await_to_initializers)}function vfe(e,t,n,r,i,a){return D4(I4,i(i=>R4(i,n,e.sourceFile,r,t,a)),G.Add_await,I4,G.Fix_all_expressions_possibly_missing_await)}function yfe(e,t,n,r,i){return F(i.getTypeChecker().getDiagnostics(e,r),({start:e,length:r,relatedInformation:i,code:a})=>_t(e)&&_t(r)&&gQ({start:e,length:r},n)&&a===t&&!!i&&F(i,e=>e.code===G.Did_you_forget_to_use_await.code))}function bfe(e,t,n,r,i){let a=xfe(e,i);if(!a)return;let o=a.isCompleteFix,s;for(let e of a.identifiers){let a=i.getSymbolAtLocation(e);if(!a)continue;let c=vt(a.valueDeclaration,bA),l=c&&vt(c.name,Y),u=Q_(c,244);if(!c||!u||c.type||!c.initializer||u.getSourceFile()!==t||Qy(u,32)||!l||!Cfe(c.initializer)){o=!1;continue}let d=r.getSemanticDiagnostics(t,n);if(u5.Core.eachSymbolReferenceInFile(l,i,t,n=>e!==n&&!Sfe(n,d,t,i))){o=!1;continue}(s||=[]).push({expression:c.initializer,declarationSymbol:a})}return s&&{initializers:s,needsSecondPassForFixAll:!o}}function xfe(e,t){if(Ck(e.parent)&&Y(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Y(e))return{identifiers:[e],isCompleteFix:!0};if(Rk(e)){let n,r=!0;for(let i of[e.left,e.right]){let e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!Y(i)){r=!1;continue}(n||=[]).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}function Sfe(e,t,n,r){let i=Ck(e.parent)?e.parent.name:Rk(e.parent)?e.parent:e,a=y(t,e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd());return a&&C(L4,a.code)||r.getTypeAtLocation(i).flags&1}function Cfe(e){return e.flags&65536||!!K(e,e=>e.parent&&jk(e.parent)&&e.parent.body===e||tA(e)&&(e.parent.kind===263||e.parent.kind===219||e.parent.kind===220||e.parent.kind===175))}function R4(e,t,n,r,i,a){if(uA(i.parent)&&!i.parent.awaitModifier){let t=r.getTypeAtLocation(i),a=r.getAnyAsyncIterableType();if(a&&r.isTypeAssignableTo(t,a)){let t=i.parent;e.replaceNode(n,t,J.updateForOfStatement(t,J.createToken(135),t.initializer,t.expression,t.statement));return}}if(Rk(i))for(let t of[i.left,i.right]){if(a&&Y(t)){let e=r.getSymbolAtLocation(t);if(e&&a.has(hB(e)))continue}let i=r.getTypeAtLocation(t),o=r.getPromisedTypeOfPromise(i)?J.createAwaitExpression(t):t;e.replaceNode(n,t,o)}else if(t===mfe&&Ck(i.parent)){if(a&&Y(i.parent.expression)){let e=r.getSymbolAtLocation(i.parent.expression);if(e&&a.has(hB(e)))return}e.replaceNode(n,i.parent.expression,J.createParenthesizedExpression(J.createAwaitExpression(i.parent.expression))),wfe(e,i.parent.expression,n)}else if(C(hfe,t)&&ud(i.parent)){if(a&&Y(i)){let e=r.getSymbolAtLocation(i);if(e&&a.has(hB(e)))return}e.replaceNode(n,i,J.createParenthesizedExpression(J.createAwaitExpression(i))),wfe(e,i,n)}else{if(a&&bA(i.parent)&&Y(i.parent.name)){let e=r.getSymbolAtLocation(i.parent.name);if(e&&!se(a,hB(e)))return}e.replaceNode(n,i,J.createAwaitExpression(i))}}function wfe(e,t,n){let r=oZ(t.pos,n);r&&h$(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),`;`)}var z4=`addMissingConst`,Tfe=[G.Cannot_find_name_0.code,G.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];A4({errorCodes:Tfe,getCodeActions:function(e){let t=y7.ChangeTracker.with(e,t=>Efe(t,e.sourceFile,e.span.start,e.program));if(t.length>0)return[D4(z4,t,G.Add_const_to_unresolved_variable,z4,G.Add_const_to_all_unresolved_variables)]},fixIds:[z4],getAllCodeActions:e=>{let t=new Set;return M4(e,Tfe,(n,r)=>Efe(n,r.file,r.start,e.program,t))}});function Efe(e,t,n,r,i){let a=nZ(t,n),o=K(a,e=>wd(e.parent)?e.parent.initializer===e:Dfe(e)?!1:`quit`);if(o)return B4(e,o,t,i);let s=a.parent;if(Rk(s)&&s.operatorToken.kind===64&&iA(s.parent))return B4(e,a,t,i);if(xk(s)){let n=r.getTypeChecker();return v(s.elements,e=>Ofe(e,n))?B4(e,s,t,i):void 0}let c=K(a,e=>iA(e.parent)?!0:kfe(e)?!1:`quit`);if(c)return Afe(c,r.getTypeChecker())?B4(e,c,t,i):void 0}function B4(e,t,n,r){(!r||se(r,t))&&e.insertModifierBefore(n,87,t)}function Dfe(e){switch(e.kind){case 80:case 210:case 211:case 304:case 305:return!0;default:return!1}}function Ofe(e,t){let n=Y(e)?e:kb(e,!0)&&Y(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}function kfe(e){switch(e.kind){case 80:case 227:case 28:return!0;default:return!1}}function Afe(e,t){return Rk(e)?e.operatorToken.kind===28?v([e.left,e.right],e=>Afe(e,t)):e.operatorToken.kind===64&&Y(e.left)&&!t.getSymbolAtLocation(e.left):!1}var V4=`addMissingDeclareProperty`,jfe=[G.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];A4({errorCodes:jfe,getCodeActions:function(e){let t=y7.ChangeTracker.with(e,t=>Mfe(t,e.sourceFile,e.span.start));if(t.length>0)return[D4(V4,t,G.Prefix_with_declare,V4,G.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[V4],getAllCodeActions:e=>{let t=new Set;return M4(e,jfe,(e,n)=>Mfe(e,n.file,n.start,t))}});function Mfe(e,t,n,r){let i=nZ(t,n);if(!Y(i))return;let a=i.parent;a.kind===173&&(!r||se(r,a))&&e.insertModifierBefore(t,138,a)}var H4=`addMissingInvocationForDecorator`,Nfe=[G._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];A4({errorCodes:Nfe,getCodeActions:function(e){return[D4(H4,y7.ChangeTracker.with(e,t=>Pfe(t,e.sourceFile,e.span.start)),G.Call_decorator_expression,H4,G.Add_to_all_uncalled_decorators)]},fixIds:[H4],getAllCodeActions:e=>M4(e,Nfe,(e,t)=>Pfe(e,t.file,t.start))});function Pfe(e,t,n){let r=K(nZ(t,n),IO);H.assert(!!r,`Expected position to be owned by a decorator.`);let i=J.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}var U4=`addMissingResolutionModeImportAttribute`,Ffe=[G.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,G.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];A4({errorCodes:Ffe,getCodeActions:function(e){return[D4(U4,y7.ChangeTracker.with(e,t=>Ife(t,e.sourceFile,e.span.start,e.program,e.host,e.preferences)),G.Add_resolution_mode_import_attribute,U4,G.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[U4],getAllCodeActions:e=>M4(e,Ffe,(t,n)=>Ife(t,n.file,n.start,e.program,e.host,e.preferences))});function Ife(e,t,n,r,i,a){let o=K(nZ(t,n),vn(MA,hk));H.assert(!!o,`Expected position to be owned by an ImportDeclaration or ImportType.`);let s=aQ(t,a)===0,c=Gg(o),l=!c||QL(c.text,t.fileName,r.getCompilerOptions(),i,r.getModuleResolutionCache(),void 0,99).resolvedModule?.resolvedFileName===r.getResolvedModuleFromModuleSpecifier(c,t)?.resolvedModule?.resolvedFileName,u=o.attributes?J.updateImportAttributes(o.attributes,J.createNodeArray([...o.attributes.elements,J.createImportAttribute(J.createStringLiteral(`resolution-mode`,s),J.createStringLiteral(l?`import`:`require`,s))],o.attributes.elements.hasTrailingComma),o.attributes.multiLine):J.createImportAttributes(J.createNodeArray([J.createImportAttribute(J.createStringLiteral(`resolution-mode`,s),J.createStringLiteral(l?`import`:`require`,s))]));o.kind===273?e.replaceNode(t,o,J.updateImportDeclaration(o,o.modifiers,o.importClause,o.moduleSpecifier,u)):e.replaceNode(t,o,J.updateImportTypeNode(o,o.argument,u,o.qualifier,o.typeArguments))}var W4=`addNameToNamelessParameter`,Lfe=[G.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];A4({errorCodes:Lfe,getCodeActions:function(e){return[D4(W4,y7.ChangeTracker.with(e,t=>Rfe(t,e.sourceFile,e.span.start)),G.Add_parameter_name,W4,G.Add_names_to_all_parameters_without_names)]},fixIds:[W4],getAllCodeActions:e=>M4(e,Lfe,(e,t)=>Rfe(e,t.file,t.start))});function Rfe(e,t,n){let r=nZ(t,n),i=r.parent;if(!FO(i))return H.fail(`Tried to add a parameter name to a non-parameter: `+H.formatSyntaxKind(r.kind));let a=i.parent.parameters.indexOf(i);H.assert(!i.type,`Tried to add a parameter name to a parameter that already had one.`),H.assert(a>-1,`Parameter not found in parent parameter list.`);let o=i.name.getEnd(),s=J.createTypeReferenceNode(i.name,void 0),c=zfe(t,i);for(;c;)s=J.createArrayTypeNode(s),o=c.getEnd(),c=zfe(t,c);let l=J.createParameterDeclaration(i.modifiers,i.dotDotDotToken,`arg`+a,i.questionToken,i.dotDotDotToken&&!ek(s)?J.createArrayTypeNode(s):s,i.initializer);e.replaceRange(t,ox(i.getStart(t),o),l)}function zfe(e,t){let n=aZ(t.name,t.parent,e);if(n&&n.kind===23&&yk(n.parent)&&FO(n.parent.parent))return n.parent.parent}var Bfe=`addOptionalPropertyUndefined`;A4({errorCodes:[G.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,G.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,G.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],getCodeActions(e){let t=e.program.getTypeChecker(),n=Vfe(e.sourceFile,e.span,t);if(n.length)return[E4(Bfe,y7.ChangeTracker.with(e,e=>Wfe(e,n)),G.Add_undefined_to_optional_property_type)]},fixIds:[Bfe]});function Vfe(e,t,n){let r=Ufe(M$(e,t),n);if(!r)return c;let{source:i,target:a}=r,o=Hfe(i,a,n)?n.getTypeAtLocation(a.expression):n.getTypeAtLocation(a);return(o.symbol?.declarations)?.some(e=>Yf(e).fileName.match(/\.d\.ts$/))?c:n.getExactOptionalProperties(o)}function Hfe(e,t,n){return Ck(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}function Ufe(e,t){if(e){if(Rk(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(bA(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Tk(e.parent)){let n=t.getSymbolAtLocation(e.parent.expression);if(!n?.valueDeclaration||!Iu(n.valueDeclaration.kind)||!q(e))return;let r=e.parent.arguments.indexOf(e);if(r===-1)return;let i=n.valueDeclaration.parameters[r].name;if(Y(i))return{source:e,target:i}}else if(mj(e.parent)&&Y(e.parent.name)||hj(e.parent)){let n=Ufe(e.parent.parent,t);if(!n)return;let r=t.getPropertyOfType(t.getTypeAtLocation(n.target),e.parent.name.text)?.declarations?.[0];return r?{source:mj(e.parent)?e.parent.initializer:e.parent.name,target:r}:void 0}}}function Wfe(e,t){for(let n of t){let t=n.valueDeclaration;if(t&&(LO(t)||RO(t))&&t.type){let n=J.createUnionTypeNode([...t.type.kind===193?t.type.types:[t.type],J.createTypeReferenceNode(`undefined`)]);e.replaceNode(t.getSourceFile(),t.type,n)}}}var G4=`annotateWithTypeFromJSDoc`,Gfe=[G.JSDoc_types_may_be_moved_to_TypeScript_types.code];A4({errorCodes:Gfe,getCodeActions(e){let t=Kfe(e.sourceFile,e.span.start);if(t)return[D4(G4,y7.ChangeTracker.with(e,n=>Yfe(n,e.sourceFile,t)),G.Annotate_with_type_from_JSDoc,G4,G.Annotate_everything_with_types_from_JSDoc)]},fixIds:[G4],getAllCodeActions:e=>M4(e,Gfe,(e,t)=>{let n=Kfe(t.file,t.start);n&&Yfe(e,t.file,n)})});function Kfe(e,t){let n=nZ(e,t);return vt(FO(n.parent)?n.parent.parent:n.parent,qfe)}function qfe(e){return Xfe(e)&&Jfe(e)}function Jfe(e){return Nu(e)?e.parameters.some(Jfe)||!e.type&&!!Al(e):!e.type&&!!kl(e)}function Yfe(e,t,n){if(Nu(n)&&(Al(n)||n.parameters.some(e=>!!kl(e)))){if(!n.typeParameters){let r=By(n);r.length&&e.insertTypeParameters(t,n,r)}let r=jk(n)&&!YX(n,21,t);r&&e.insertNodeBefore(t,Ie(n.parameters),J.createToken(21));for(let r of n.parameters)if(!r.type){let n=kl(r);n&&e.tryInsertTypeAnnotation(t,r,Q(n,K4,Ju))}if(r&&e.insertNodeAfter(t,ze(n.parameters),J.createToken(22)),!n.type){let r=Al(n);r&&e.tryInsertTypeAnnotation(t,n,Q(r,K4,Ju))}}else{let r=H.checkDefined(kl(n),`A JSDocType for this declaration should exist`);H.assert(!n.type,`The JSDocType decl should have a type`),e.tryInsertTypeAnnotation(t,n,Q(r,K4,Ju))}}function Xfe(e){return Nu(e)||e.kind===261||e.kind===172||e.kind===173}function K4(e){switch(e.kind){case 313:case 314:return J.createTypeReferenceNode(`any`,c);case 317:return Qfe(e);case 316:return K4(e.type);case 315:return $fe(e);case 319:return epe(e);case 318:return tpe(e);case 184:return rpe(e);case 323:return Zfe(e);default:let t=PB(e,K4,void 0);return UE(t,1),t}}function Zfe(e){let t=J.createTypeLiteralNode(k(e.jsDocPropertyTags,e=>J.createPropertySignature(void 0,Y(e.name)?e.name:e.name.right,mT(e)?J.createToken(58):void 0,e.typeExpression&&Q(e.typeExpression.type,K4,Ju)||J.createKeywordTypeNode(133))));return UE(t,1),t}function Qfe(e){return J.createUnionTypeNode([Q(e.type,K4,Ju),J.createTypeReferenceNode(`undefined`,c)])}function $fe(e){return J.createUnionTypeNode([Q(e.type,K4,Ju),J.createTypeReferenceNode(`null`,c)])}function epe(e){return J.createArrayTypeNode(Q(e.type,K4,Ju))}function tpe(e){return J.createFunctionTypeNode(c,e.parameters.map(npe),e.type??J.createKeywordTypeNode(133))}function npe(e){let t=e.parent.parameters.indexOf(e),n=e.type.kind===319&&t===e.parent.parameters.length-1,r=e.name||(n?`rest`:`arg`+t),i=n?J.createToken(26):e.dotDotDotToken;return J.createParameterDeclaration(e.modifiers,i,r,e.questionToken,Q(e.type,K4,Ju),e.initializer)}function rpe(e){let t=e.typeName,n=e.typeArguments;if(Y(e.typeName)){if(og(e))return ipe(e);let r=e.typeName.text;switch(e.typeName.text){case`String`:case`Boolean`:case`Object`:case`Number`:r=r.toLowerCase();break;case`array`:case`date`:case`promise`:r=r[0].toUpperCase()+r.slice(1);break}t=J.createIdentifier(r),n=(r===`Array`||r===`Promise`)&&!e.typeArguments?J.createNodeArray([J.createTypeReferenceNode(`any`,c)]):CB(e.typeArguments,K4,Ju)}return J.createTypeReferenceNode(t,n)}function ipe(e){let t=J.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?`n`:`s`,void 0,J.createTypeReferenceNode(e.typeArguments[0].kind===150?`number`:`string`,[]),void 0),n=J.createTypeLiteralNode([J.createIndexSignature(void 0,[t],e.typeArguments[1])]);return UE(n,1),n}var q4=`convertFunctionToEs6Class`,ape=[G.This_constructor_function_may_be_converted_to_a_class_declaration.code];A4({errorCodes:ape,getCodeActions(e){return[D4(q4,y7.ChangeTracker.with(e,t=>ope(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())),G.Convert_function_to_an_ES2015_class,q4,G.Convert_all_constructor_functions_to_classes)]},fixIds:[q4],getAllCodeActions:e=>M4(e,ape,(t,n)=>ope(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});function ope(e,t,n,r,i,a){let o=r.getSymbolAtLocation(nZ(t,n));if(!o||!o.valueDeclaration||!(o.flags&19))return;let s=o.valueDeclaration;if(SA(s)||Ak(s))e.replaceNode(t,s,u(s));else if(bA(s)){let n=l(s);if(!n)return;let r=s.parent.parent;xA(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){let r=[];return n.exports&&n.exports.forEach(e=>{if(e.name===`prototype`&&e.declarations){let t=e.declarations[0];if(e.declarations.length===1&&Ck(t)&&Rk(t.parent)&&t.parent.operatorToken.kind===64&&Sk(t.parent.right)){let e=t.parent.right;s(e.symbol,void 0,r)}}else s(e,[J.createToken(126)],r)}),n.members&&n.members.forEach((i,a)=>{if(a===`constructor`&&i.valueDeclaration){let r=n.exports?.get(`prototype`)?.declarations?.[0]?.parent;r&&Rk(r)&&Sk(r.right)&&F(r.right.properties,Y4)||e.delete(t,i.valueDeclaration.parent);return}s(i,void 0,r)}),r;function o(e,t){return Zx(e)?Ck(e)&&Y4(e)?!0:ju(t):v(e.properties,e=>!!(BO(e)||Vl(e)||mj(e)&&Ak(e.initializer)&&e.name||Y4(e)))}function s(n,r,s){if(!(n.flags&8192)&&!(n.flags&4096))return;let c=n.valueDeclaration,l=c.parent,u=l.right;if(!o(c,u)||F(s,e=>{let t=el(e);return!!(t&&Y(t)&&Gc(t)===qc(n))}))return;let f=l.parent&&l.parent.kind===245?l.parent:l;if(e.delete(t,f),!u){s.push(J.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));return}if(Zx(c)&&(Ak(u)||jk(u))){let e=spe(c,a,aQ(t,i));e&&p(s,u,e);return}else if(Sk(u)){d(u.properties,e=>{(BO(e)||Vl(e))&&s.push(e),mj(e)&&Ak(e.initializer)&&p(s,e.initializer,e.name),Y4(e)});return}else{if(tg(t)||!Ck(c))return;let e=J.createPropertyDeclaration(r,c.name,void 0,void 0,u);e$(l.parent,e,t),s.push(e);return}function p(e,t,n){return Ak(t)?m(e,t,n):h(e,t,n)}function m(e,n,i){let a=de(r,J4(n,134)),o=J.createMethodDeclaration(a,void 0,i,void 0,void 0,n.parameters,void 0,n.body);e$(l,o,t),e.push(o)}function h(e,n,i){let a=n.body,o;o=a.kind===242?a:J.createBlock([J.createReturnStatement(a)]);let s=de(r,J4(n,134)),c=J.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,o);e$(l,c,t),e.push(c)}}}function l(e){let t=e.initializer;if(!t||!Ak(t)||!Y(e.name))return;let n=c(e.symbol);t.body&&n.unshift(J.createConstructorDeclaration(void 0,t.parameters,t.body));let r=J4(e.parent.parent,95);return J.createClassDeclaration(r,e.name,void 0,void 0,n)}function u(e){let t=c(o);e.body&&t.unshift(J.createConstructorDeclaration(void 0,e.parameters,e.body));let n=J4(e,95);return J.createClassDeclaration(n,e.name,void 0,void 0,t)}}function J4(e,t){return VN(e)?E(e.modifiers,e=>e.kind===t):void 0}function Y4(e){return e.name?!!(Y(e.name)&&e.name.text===`constructor`):!1}function spe(e,t,n){if(Ck(e))return e.name;let r=e.argumentExpression;if($D(r))return r;if(uf(r))return Ws(r.text,zS(t))?J.createIdentifier(r.text):iO(r)?J.createStringLiteral(r.text,n===0):r}var X4=`convertToAsyncFunction`,cpe=[G.This_may_be_converted_to_an_async_function.code],Z4=!0;A4({errorCodes:cpe,getCodeActions(e){Z4=!0;let t=y7.ChangeTracker.with(e,t=>lpe(t,e.sourceFile,e.span.start,e.program.getTypeChecker()));return Z4?[D4(X4,t,G.Convert_to_async_function,X4,G.Convert_all_to_async_functions)]:[]},fixIds:[X4],getAllCodeActions:e=>M4(e,cpe,(t,n)=>lpe(t,n.file,n.start,e.program.getTypeChecker()))});function lpe(e,t,n,r){let i=nZ(t,n),a;if(a=Y(i)&&bA(i.parent)&&i.parent.initializer&&Nu(i.parent.initializer)?i.parent.initializer:vt(bh(nZ(t,n)),H1),!a)return;let o=new Map,s=ng(a),l=dpe(a,r),u=mpe(a,r,o);if(!z1(u,r))return;let d=u.body&&tA(u.body)?upe(u.body,r):c,f={checker:r,synthNamesMap:o,setOfExpressionsToReturn:l,isInJSFile:s};if(!d.length)return;let p=Es(t.text,ux(a).pos);e.insertModifierAt(t,p,134,{suffix:` `});for(let n of d)if(pP(n,function r(i){if(Tk(i)){let r=n3(i,i,f,!1);if(e3())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!ju(i)&&(pP(i,r),e3()))return!0}),e3())return}function upe(e,t){let n=[];return nh(e,e=>{B1(e,t)&&n.push(e)}),n}function dpe(e,t){if(!e.body)return new Set;let n=new Set;return pP(e.body,function e(r){Q4(r,t,`then`)?(n.add(mB(r)),d(r.arguments,e)):Q4(r,t,`catch`)||Q4(r,t,`finally`)?(n.add(mB(r)),pP(r,e)):ppe(r,t)?n.add(mB(r)):pP(r,e)}),n}function Q4(e,t,n){if(!Tk(e))return!1;let r=CX(e,n)&&t.getTypeAtLocation(e);return!!(r&&t.getPromisedTypeOfPromise(r))}function fpe(e,t){return(Wx(e)&4)!=0&&e.target===t}function $4(e,t,n){if(e.expression.name.escapedText===`finally`)return;let r=n.getTypeAtLocation(e.expression.expression);if(fpe(r,n.getPromiseType())||fpe(r,n.getPromiseLikeType()))if(e.expression.name.escapedText===`then`){if(t===Ne(e.arguments,0))return Ne(e.typeArguments,0);if(t===Ne(e.arguments,1))return Ne(e.typeArguments,1)}else return Ne(e.typeArguments,0)}function ppe(e,t){return q(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function mpe(e,t,n){let r=new Map,i=R();return pP(e,function e(a){if(!Y(a)){pP(a,e);return}let o=t.getSymbolAtLocation(a);if(o){let e=wpe(t.getTypeAtLocation(a),t),s=hB(o).toString();if(e&&!FO(a.parent)&&!Nu(a.parent)&&!n.has(s)){let t=Pe(e.parameters),r=t?.valueDeclaration&&FO(t.valueDeclaration)&&vt(t.valueDeclaration.name,Y)||J.createUniqueName(`result`,16),a=hpe(r,i);n.set(s,a),i.add(r.text,o)}else if(a.parent&&(FO(a.parent)||bA(a.parent)||bk(a.parent))){let e=a.text,t=i.get(e);if(t&&t.some(e=>e!==o)){let t=hpe(a,i);r.set(s,t.identifier),n.set(s,t),i.add(e,o)}else{let t=oE(a);n.set(s,s3(t)),i.add(e,o)}}}}),sE(e,!0,e=>{if(bk(e)&&Y(e.name)&&vk(e.parent)){let n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(hB(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return J.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(Y(e)){let n=t.getSymbolAtLocation(e),i=n&&r.get(String(hB(n)));if(i)return J.createIdentifier(i.text)}})}function hpe(e,t){let n=(t.get(e.text)||c).length;return s3(n===0?e:J.createIdentifier(e.text+`_`+n))}function e3(){return!Z4}function t3(){return Z4=!1,c}function n3(e,t,n,r,i){if(Q4(t,n.checker,`then`))return xpe(t,Ne(t.arguments,0),Ne(t.arguments,1),n,r,i);if(Q4(t,n.checker,`catch`))return bpe(t,Ne(t.arguments,0),n,r,i);if(Q4(t,n.checker,`finally`))return ype(t,Ne(t.arguments,0),n,r,i);if(Ck(t))return n3(e,t.expression,n,r,i);let a=n.checker.getTypeAtLocation(t);return a&&n.checker.getPromisedTypeOfPromise(a)?(H.assertNode(Bc(t).parent,Ck),Spe(e,t,n,r,i)):t3()}function r3({checker:e},t){if(t.kind===106)return!0;if(Y(t)&&!yu(t)&&Gc(t)===`undefined`){let n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function gpe(e){return s3(J.createUniqueName(e.identifier.text,16))}function _pe(e,t,n){let r;return n&&!f3(e,t)&&(d3(n)?(r=n,t.synthNamesMap.forEach((e,r)=>{if(e.identifier.text===n.identifier.text){let e=gpe(n);t.synthNamesMap.set(r,e)}})):r=s3(J.createUniqueName(`result`,16),n.types),u3(r)),r}function vpe(e,t,n,r,i){let a=[],o;if(r&&!f3(e,t)){o=oE(u3(r));let e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[J.createVariableDeclaration(o,void 0,i)],c=J.createVariableStatement(void 0,J.createVariableDeclarationList(s,1));a.push(c)}return a.push(n),i&&o&&jpe(i)&&a.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(oE(Ape(i)),void 0,void 0,o)],2))),a}function ype(e,t,n,r,i){if(!t||r3(n,t))return n3(e,e.expression.expression,n,r,i);let a=_pe(e,n,i),o=n3(e,e.expression.expression,n,!0,a);if(e3())return t3();let s=o3(t,r,void 0,void 0,e,n);if(e3())return t3();let c=J.createBlock(o),l=J.createBlock(s);return vpe(e,n,J.createTryStatement(c,void 0,l),a,i)}function bpe(e,t,n,r,i){if(!t||r3(n,t))return n3(e,e.expression.expression,n,r,i);let a=Dpe(t,n),o=_pe(e,n,i),s=n3(e,e.expression.expression,n,!0,o);if(e3())return t3();let c=o3(t,r,o,a,e,n);if(e3())return t3();let l=J.createBlock(s),u=J.createCatchClause(a&&oE(l3(a)),J.createBlock(c));return vpe(e,n,J.createTryStatement(l,u,void 0),o,i)}function xpe(e,t,n,r,i,a){if(!t||r3(r,t))return bpe(e,n,r,i,a);if(n&&!r3(r,n))return t3();let o=Dpe(t,r),s=n3(e.expression.expression,e.expression.expression,r,!0,o);if(e3())return t3();let c=o3(t,i,a,o,e,r);return e3()?t3():de(s,c)}function Spe(e,t,n,r,i){if(f3(e,n)){let e=oE(t);return r&&(e=J.createAwaitExpression(e)),[J.createReturnStatement(e)]}return i3(i,J.createAwaitExpression(t),void 0)}function i3(e,t,n){return!e||Ope(e)?[J.createExpressionStatement(t)]:d3(e)&&e.hasBeenDeclared?[J.createExpressionStatement(J.createAssignment(oE(c3(e)),t))]:[J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(oE(l3(e)),void 0,n,t)],2))]}function a3(e,t){if(t&&e){let n=J.createUniqueName(`result`,16);return[...i3(s3(n),e,t),J.createReturnStatement(n)]}return[J.createReturnStatement(e)]}function o3(e,t,n,r,i,a){switch(e.kind){case 106:break;case 212:case 80:if(!r)break;let o=J.createCallExpression(oE(e),void 0,d3(r)?[c3(r)]:[]);if(f3(i,a))return a3(o,$4(i,e,a.checker));let s=a.checker.getTypeAtLocation(e),l=a.checker.getSignaturesOfType(s,0);if(!l.length)return t3();let u=l[0].getReturnType(),d=i3(n,J.createAwaitExpression(o),$4(i,e,a.checker));return n&&n.types.push(a.checker.getAwaitedType(u)||u),d;case 219:case 220:{let r=e.body,o=wpe(a.checker.getTypeAtLocation(e),a.checker)?.getReturnType();if(tA(r)){let s=[],c=!1;for(let l of r.statements)if(pA(l))if(c=!0,B1(l,a.checker))s=s.concat(Epe(a,l,t,n));else{let t=o&&l.expression?Cpe(a.checker,o,l.expression):l.expression;s.push(...a3(t,$4(i,e,a.checker)))}else if(t&&nh(l,St))return t3();else s.push(l);return f3(i,a)?s.map(e=>oE(e)):Tpe(s,n,a,c)}else{let s=V1(r,a.checker)?Epe(a,J.createReturnStatement(r),t,n):c;if(s.length>0)return s;if(o){let t=Cpe(a.checker,o,r);if(f3(i,a))return a3(t,$4(i,e,a.checker));{let e=i3(n,t,void 0);return n&&n.types.push(a.checker.getAwaitedType(o)||o),e}}else return t3()}}default:return t3()}return c}function Cpe(e,t,n){let r=oE(n);return e.getPromisedTypeOfPromise(t)?J.createAwaitExpression(r):r}function wpe(e,t){return Re(t.getSignaturesOfType(e,0))}function Tpe(e,t,n,r){let i=[];for(let r of e)if(pA(r)){if(r.expression){let e=ppe(r.expression,n.checker)?J.createAwaitExpression(r.expression):r.expression;t===void 0?i.push(J.createExpressionStatement(e)):d3(t)&&t.hasBeenDeclared?i.push(J.createExpressionStatement(J.createAssignment(c3(t),e))):i.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(l3(t),void 0,void 0,e)],2)))}}else i.push(oE(r));return!r&&t!==void 0&&i.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(l3(t),void 0,void 0,J.createIdentifier(`undefined`))],2))),i}function Epe(e,t,n,r){let i=[];return pP(t,function t(a){if(Tk(a)){let t=n3(a,a,e,n,r);if(i=i.concat(t),i.length>0)return}else ju(a)||pP(a,t)}),i}function Dpe(e,t){let n=[],r;if(Nu(e)){if(e.parameters.length>0){let t=e.parameters[0].name;r=i(t)}}else Y(e)?r=a(e):Ck(e)&&Y(e.name)&&(r=a(e.name));if(!r||`identifier`in r&&r.identifier.text===`undefined`)return;return r;function i(e){return Y(e)?a(e):kpe(e,re(e.elements,e=>Wk(e)?[]:[i(e.name)]))}function a(e){let r=o(s(e));return r&&t.synthNamesMap.get(hB(r).toString())||s3(e,n)}function o(e){return vt(e,Md)?.symbol??t.checker.getSymbolAtLocation(e)}function s(e){return e.original?e.original:e}}function Ope(e){return e?d3(e)?!e.identifier.text:v(e.elements,Ope):!0}function s3(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function kpe(e,t=c,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}function c3(e){return e.hasBeenReferenced=!0,e.identifier}function l3(e){return d3(e)?u3(e):Ape(e)}function Ape(e){for(let t of e.elements)l3(t);return e.bindingPattern}function u3(e){return e.hasBeenDeclared=!0,e.identifier}function d3(e){return e.kind===0}function jpe(e){return e.kind===1}function f3(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(mB(e.original))}A4({errorCodes:[G.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:n,preferences:r}=e;return[E4(`convertToEsModule`,y7.ChangeTracker.with(e,e=>{if(Npe(t,n.getTypeChecker(),e,zS(n.getCompilerOptions()),aQ(t,r)))for(let i of n.getSourceFiles())Mpe(i,t,n,e,aQ(i,r))}),G.Convert_to_ES_module)]}});function Mpe(e,t,n,r,i){for(let a of e.imports){let o=n.getResolvedModuleFromModuleSpecifier(a,e)?.resolvedModule;if(!o||o.resolvedFileName!==t.fileName)continue;let s=Kg(a);switch(s.kind){case 272:r.replaceNode(e,s,tQ(s.name,void 0,a,i));break;case 214:sg(s,!1)&&r.replaceNode(e,s,J.createPropertyAccessExpression(oE(s),`default`));break}}}function Npe(e,t,n,r,i){let a={original:Ype(e),additional:new Set},o=Ppe(e,t,a);Fpe(e,o,n);let s=!1,c;for(let o of E(e.statements,nA)){let s=Rpe(e,o,n,t,a,r,i);s&&Pf(s,c??=new Map)}for(let l of E(e.statements,e=>!nA(e))){let u=Lpe(e,l,t,n,a,r,o,c,i);s||=u}return c?.forEach((t,r)=>{n.replaceNode(e,r,t)}),s}function Ppe(e,t,n){let r=new Map;return Ipe(e,e=>{let{text:i}=e.name;!r.has(i)&&(av(e.name)||t.resolveName(i,e,111551,!0))&&r.set(i,h3(`_${i}`,n))}),r}function Fpe(e,t,n){Ipe(e,(r,i)=>{if(i)return;let{text:a}=r.name;n.replaceNode(e,r,J.createIdentifier(t.get(a)||a))})}function Ipe(e,t){e.forEachChild(function n(r){if(Ck(r)&&bz(e,r.expression)&&Y(r.name)){let{parent:e}=r;t(r,Rk(e)&&e.left===r&&e.operatorToken.kind===64)}r.forEachChild(n)})}function Lpe(e,t,n,r,i,a,o,s,c){switch(t.kind){case 244:return Rpe(e,t,r,n,i,a,c),!1;case 245:{let{expression:i}=t;switch(i.kind){case 214:return sg(i,!0)&&r.replaceNode(e,t,tQ(void 0,void 0,i.arguments[0],c)),!1;case 227:{let{operatorToken:t}=i;return t.kind===64&&Bpe(e,n,i,r,o,s)}}}default:return!1}}function Rpe(e,t,n,r,i,a,o){let{declarationList:s}=t,c=!1,l=k(s.declarations,t=>{let{name:n,initializer:l}=t;if(l){if(bz(e,l))return c=!0,v3([]);if(sg(l,!0))return c=!0,qpe(n,l.arguments[0],r,i,a,o);if(Ck(l)&&sg(l.expression,!0))return c=!0,zpe(n,l.name.text,l.expression.arguments[0],i,o)}return v3([J.createVariableStatement(void 0,J.createVariableDeclarationList([t],s.flags))])});if(c){n.replaceNodeWithNodes(e,t,re(l,e=>e.newImports));let r;return d(l,e=>{e.useSitesToUnqualify&&Pf(e.useSitesToUnqualify,r??=new Map)}),r}}function zpe(e,t,n,r,i){switch(e.kind){case 207:case 208:{let a=h3(t,r);return v3([eme(a,t,n,i),g3(void 0,e,J.createIdentifier(a))])}case 80:return v3([eme(e.text,t,n,i)]);default:return H.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function Bpe(e,t,n,r,i,a){let{left:o,right:s}=n;if(!Ck(o))return!1;if(bz(e,o))if(bz(e,s))r.delete(e,n.parent);else{let i=Sk(s)?Vpe(s,a):sg(s,!0)?Upe(s.arguments[0],t):void 0;return i?(r.replaceNodeWithNodes(e,n.parent,i[0]),i[1]):(r.replaceRangeWithText(e,ox(o.getStart(e),s.pos),`export default`),!0)}else bz(e,o.expression)&&Hpe(e,n,r,i);return!1}function Vpe(e,t){let n=j(e.properties,e=>{switch(e.kind){case 178:case 179:case 305:case 306:return;case 304:return Y(e.name)?Kpe(e.name.text,e.initializer,t):void 0;case 175:return Y(e.name)?Qpe(e.name.text,[J.createToken(95)],e,t):void 0;default:H.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}});return n&&[n,!1]}function Hpe(e,t,n,r){let{text:i}=t.left.name,a=r.get(i);if(a!==void 0){let r=[g3(void 0,a,t.right),_3([J.createExportSpecifier(!1,a,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else Gpe(t,e,n)}function Upe(e,t){let n=e.text,r=t.getSymbolAtLocation(e),i=r?r.exports:l;return i.has(`export=`)?[[p3(n)],!0]:i.has(`default`)?i.size>1?[[Wpe(n),p3(n)],!0]:[[p3(n)],!0]:[[Wpe(n)],!1]}function Wpe(e){return _3(void 0,e)}function p3(e){return _3([J.createExportSpecifier(!1,void 0,`default`)],e)}function Gpe({left:e,right:t,parent:n},r,i){let a=e.name.text;if((Ak(t)||jk(t)||Uk(t))&&(!t.name||t.name.text===a)){i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},J.createToken(95),{suffix:` `}),t.name||i.insertName(r,t,a);let o=YX(n,27,r);o&&i.delete(r,o)}else i.replaceNodeRangeWithNodes(r,e.expression,YX(e,25,r),[J.createToken(95),J.createToken(87)],{joiner:` `,suffix:` `})}function Kpe(e,t,n){let r=[J.createToken(95)];switch(t.kind){case 219:{let{name:n}=t;if(n&&n.text!==e)return i()}case 220:return Qpe(e,r,t,n);case 232:return $pe(e,r,t,n);default:return i()}function i(){return g3(r,J.createIdentifier(e),m3(t,n))}}function m3(e,t){if(!t||!F($e(t.keys()),t=>wx(e,t)))return e;return mt(e)?uE(e,!0,n):sE(e,!0,n);function n(e){if(e.kind===212){let n=t.get(e);return t.delete(e),n}}}function qpe(e,t,n,r,i,a){switch(e.kind){case 207:{let n=j(e.elements,e=>e.dotDotDotToken||e.initializer||e.propertyName&&!Y(e.propertyName)||!Y(e.name)?void 0:tme(e.propertyName&&e.propertyName.text,e.name.text));if(n)return v3([tQ(void 0,n,t,a)])}case 208:{let n=h3(R$(t.text,i),r);return v3([tQ(J.createIdentifier(n),void 0,t,a),g3(void 0,oE(e),J.createIdentifier(n))])}case 80:return Jpe(e,t,n,r,a);default:return H.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function Jpe(e,t,n,r,i){let a=n.getSymbolAtLocation(e),o=new Map,s=!1,c;for(let t of r.original.get(e.text)){if(n.getSymbolAtLocation(t)!==a||t===e)continue;let{parent:i}=t;if(Ck(i)){let{name:{text:e}}=i;if(e===`default`){s=!0;let e=t.getText();(c??=new Map).set(i,J.createIdentifier(e))}else{H.assert(i.expression===t,`Didn't expect expression === use`);let n=o.get(e);n===void 0&&(n=h3(e,r),o.set(e,n)),(c??=new Map).set(i,J.createIdentifier(n))}}else s=!0}let l=o.size===0?void 0:$e(ee(o.entries(),([e,t])=>J.createImportSpecifier(!1,e===t?void 0:J.createIdentifier(e),J.createIdentifier(t))));return l||(s=!0),v3([tQ(s?oE(e):void 0,l,t,i)],c)}function h3(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function Ype(e){let t=R();return Xpe(e,e=>t.add(e.text,e)),t}function Xpe(e,t){Y(e)&&Zpe(e)&&t(e),e.forEachChild(e=>Xpe(e,t))}function Zpe(e){let{parent:t}=e;switch(t.kind){case 212:return t.name!==e;case 209:return t.propertyName!==e;case 277:return t.propertyName!==e;default:return!0}}function Qpe(e,t,n,r){return J.createFunctionDeclaration(de(t,lE(n.modifiers)),oE(n.asteriskToken),e,lE(n.typeParameters),lE(n.parameters),oE(n.type),J.converters.convertToFunctionBlock(m3(n.body,r)))}function $pe(e,t,n,r){return J.createClassDeclaration(de(t,lE(n.modifiers)),e,lE(n.typeParameters),lE(n.heritageClauses),m3(n.members,r))}function eme(e,t,n,r){return t===`default`?tQ(J.createIdentifier(e),void 0,n,r):tQ(void 0,[tme(t,e)],n,r)}function tme(e,t){return J.createImportSpecifier(!1,e!==void 0&&e!==t?J.createIdentifier(e):void 0,J.createIdentifier(t))}function g3(e,t,n){return J.createVariableStatement(e,J.createVariableDeclarationList([J.createVariableDeclaration(t,void 0,void 0,n)],2))}function _3(e,t){return J.createExportDeclaration(void 0,!1,e&&J.createNamedExports(e),t===void 0?void 0:J.createStringLiteral(t))}function v3(e,t){return{newImports:e,useSitesToUnqualify:t}}var y3=`correctQualifiedNameToIndexedAccessType`,nme=[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.code];A4({errorCodes:nme,getCodeActions(e){let t=rme(e.sourceFile,e.span.start);if(!t)return;let n=y7.ChangeTracker.with(e,n=>ime(n,e.sourceFile,t)),r=`${t.left.text}["${t.right.text}"]`;return[D4(y3,n,[G.Rewrite_as_the_indexed_access_type_0,r],y3,G.Rewrite_all_as_indexed_access_types)]},fixIds:[y3],getAllCodeActions:e=>M4(e,nme,(e,t)=>{let n=rme(t.file,t.start);n&&ime(e,t.file,n)})});function rme(e,t){let n=K(nZ(e,t),MO);return H.assert(!!n,`Expected position to be owned by a qualified name.`),Y(n.left)?n:void 0}function ime(e,t,n){let r=n.right.text,i=J.createIndexedAccessTypeNode(J.createTypeReferenceNode(n.left,void 0),J.createLiteralTypeNode(J.createStringLiteral(r)));e.replaceNode(t,n,i)}var b3=[G.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],x3=`convertToTypeOnlyExport`;A4({errorCodes:b3,getCodeActions:function(e){let t=y7.ChangeTracker.with(e,t=>ome(t,ame(e.span,e.sourceFile),e));if(t.length)return[D4(x3,t,G.Convert_to_type_only_export,x3,G.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[x3],getAllCodeActions:function(e){let t=new Set;return M4(e,b3,(n,r)=>{let i=ame(r,e.sourceFile);i&&Jx(t,mB(i.parent.parent))&&ome(n,i,e)})}});function ame(e,t){return vt(nZ(t,e.start).parent,KA)}function ome(e,t,n){if(!t)return;let r=t.parent,i=r.parent,a=sme(t,n);if(a.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{let t=J.updateExportDeclaration(i,i.modifiers,!1,J.updateNamedExports(r,E(r.elements,e=>!C(a,e))),i.moduleSpecifier,void 0),o=J.createExportDeclaration(void 0,!0,J.createNamedExports(a),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:y7.LeadingTriviaOption.IncludeAll,trailingTriviaOption:y7.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,o)}}function sme(e,t){let n=e.parent;if(n.elements.length===1)return n.elements;let r=A$(PZ(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return E(n.elements,t=>t===e||k$(t,r)?.code===b3[0])}var cme=[G._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,G._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],S3=`convertToTypeOnlyImport`;A4({errorCodes:cme,getCodeActions:function(e){let t=lme(e.sourceFile,e.span.start);if(t){let n=y7.ChangeTracker.with(e,n=>C3(n,e.sourceFile,t)),r=t.kind===277&&MA(t.parent.parent.parent)&&ume(t,e.sourceFile,e.program)?y7.ChangeTracker.with(e,n=>C3(n,e.sourceFile,t.parent.parent.parent)):void 0,i=D4(S3,n,t.kind===277?[G.Use_type_0,t.propertyName?.text??t.name.text]:G.Use_import_type,S3,G.Fix_all_with_type_only_imports);return F(r)?[E4(S3,r,G.Use_import_type),i]:[i]}},fixIds:[S3],getAllCodeActions:function(e){let t=new Set;return M4(e,cme,(n,r)=>{let i=lme(r.file,r.start);i?.kind===273&&!t.has(i)?(C3(n,r.file,i),t.add(i)):i?.kind===277&&MA(i.parent.parent.parent)&&!t.has(i.parent.parent.parent)&&ume(i,r.file,e.program)?(C3(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):i?.kind===277&&C3(n,r.file,i)})}});function lme(e,t){let{parent:n}=nZ(e,t);return HA(n)||MA(n)&&n.importClause?n:void 0}function ume(e,t,n){if(e.parent.parent.name)return!1;let r=e.parent.elements.filter(e=>!e.isTypeOnly);if(r.length===1)return!0;let i=n.getTypeChecker();for(let e of r)if(u5.Core.eachSymbolReferenceInFile(e.name,i,t,e=>{let t=i.getSymbolAtLocation(e);return!!t&&i.symbolIsValue(t)||!Bw(e)}))return!1;return!0}function C3(e,t,n){if(HA(n))e.replaceNode(t,n,J.updateImportSpecifier(n,!0,n.propertyName,n.name));else{let r=n.importClause;if(r.name&&r.namedBindings)e.replaceNodeWithNodes(t,n,[J.createImportDeclaration(lE(n.modifiers,!0),J.createImportClause(156,oE(r.name,!0),void 0),oE(n.moduleSpecifier,!0),oE(n.attributes,!0)),J.createImportDeclaration(lE(n.modifiers,!0),J.createImportClause(156,void 0,oE(r.namedBindings,!0)),oE(n.moduleSpecifier,!0),oE(n.attributes,!0))]);else{let i=r.namedBindings?.kind===276?J.updateNamedImports(r.namedBindings,te(r.namedBindings.elements,e=>J.updateImportSpecifier(e,!1,e.propertyName,e.name))):r.namedBindings,a=J.updateImportDeclaration(n,n.modifiers,J.updateImportClause(r,156,r.name,i),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}var w3=`convertTypedefToType`,dme=[G.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];A4({fixIds:[w3],errorCodes:dme,getCodeActions(e){let t=zQ(e.host,e.formatContext.options),n=nZ(e.sourceFile,e.span.start);if(!n)return;let r=y7.ChangeTracker.with(e,r=>fme(r,n,e.sourceFile,t));if(r.length>0)return[D4(w3,r,G.Convert_typedef_to_TypeScript_type,w3,G.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>M4(e,dme,(t,n)=>{let r=zQ(e.host,e.formatContext.options),i=nZ(n.file,n.start);i&&fme(t,i,n.file,r,!0)})});function fme(e,t,n,r,i=!1){if(!eM(t))return;let a=hme(t);if(!a)return;let o=t.parent,{leftSibling:s,rightSibling:c}=pme(t),l=o.getStart(),u=``;!s&&o.comment&&(l=mme(o,o.getStart(),t.getStart()),u=`${r} */${r}`),s&&(i&&eM(s)?(l=t.getStart(),u=``):(l=mme(o,s.getStart(),t.getStart()),u=`${r} */${r}`));let d=o.getEnd(),f=``;c&&(i&&eM(c)?(d=c.getStart(),f=`${r}${r}`):(d=c.getStart(),f=`${r}/**${r} * `)),e.replaceRange(n,{pos:l,end:d},a,{prefix:u,suffix:f})}function pme(e){let t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex(t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd());return{leftSibling:r>0?t.getChildAt(r-1):void 0,rightSibling:r0;e--)if(!/[*/\s]/.test(r.substring(e-1,e)))return t+e;return n}function hme(e){let{typeExpression:t}=e;if(!t)return;let n=e.name?.getText();if(n){if(t.kind===323)return gme(n,t);if(t.kind===310)return _me(n,t)}}function gme(e,t){let n=vme(t);if(F(n))return J.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}function _me(e,t){let n=oE(t.type);if(n)return J.createTypeAliasDeclaration(void 0,J.createIdentifier(e),void 0,n)}function vme(e){let t=e.jsDocPropertyTags;return F(t)?M(t,e=>{let t=yme(e),n=e.typeExpression?.type,r=e.isBracketed,i;if(n&&Pj(n)){let e=vme(n);i=J.createTypeLiteralNode(e)}else n&&(i=oE(n));if(i&&t){let e=r?J.createToken(58):void 0;return J.createPropertySignature(void 0,t,e,i)}}):void 0}function yme(e){return e.name.kind===80?e.name.text:e.name.right.text}function bme(e){return tf(e)?re(e.jsDoc,e=>e.tags?.filter(e=>eM(e))):[]}var T3=`convertLiteralTypeToMappedType`,xme=[G._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];A4({errorCodes:xme,getCodeActions:function(e){let{sourceFile:t,span:n}=e,r=Sme(t,n.start);if(!r)return;let{name:i,constraint:a}=r;return[D4(T3,y7.ChangeTracker.with(e,e=>Cme(e,t,r)),[G.Convert_0_to_1_in_0,a,i],T3,G.Convert_all_type_literals_to_mapped_type)]},fixIds:[T3],getAllCodeActions:e=>M4(e,xme,(e,t)=>{let n=Sme(t.file,t.start);n&&Cme(e,t.file,n)})});function Sme(e,t){let n=nZ(e,t);if(Y(n)){let t=yt(n.parent.parent,LO),r=n.getText(e);return{container:yt(t.parent,$O),typeNode:t.type,constraint:r,name:r===`K`?`P`:`K`}}}function Cme(e,t,{container:n,typeNode:r,constraint:i,name:a}){e.replaceNode(t,n,J.createMappedTypeNode(void 0,J.createTypeParameterDeclaration(void 0,a,J.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}var wme=[G.Class_0_incorrectly_implements_interface_1.code,G.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],E3=`fixClassIncorrectlyImplementsInterface`;A4({errorCodes:wme,getCodeActions(e){let{sourceFile:t,span:n}=e,r=Tme(t,n.start);return M(J_(r),n=>{let i=y7.ChangeTracker.with(e,i=>Dme(e,n,t,r,i,e.preferences));return i.length===0?void 0:D4(E3,i,[G.Implement_interface_0,n.getText(t)],E3,G.Implement_all_unimplemented_interfaces)})},fixIds:[E3],getAllCodeActions(e){let t=new Set;return M4(e,wme,(n,r)=>{let i=Tme(r.file,r.start);if(Jx(t,mB(i)))for(let t of J_(i))Dme(e,t,r.file,i,n,e.preferences)})}});function Tme(e,t){return H.checkDefined(Sh(nZ(e,t)),`There should be a containing class`)}function Eme(e){return!e.valueDeclaration||!(ub(e.valueDeclaration)&2)}function Dme(e,t,n,r,i,a){let o=e.program.getTypeChecker(),s=Ome(r,o),c=o.getTypeAtLocation(t),l=o.getPropertiesOfType(c).filter(_n(Eme,e=>!s.has(e.escapedName))),u=o.getTypeAtLocation(r),d=y(r.members,e=>HO(e));u.getNumberIndexType()||p(c,1),u.getStringIndexType()||p(c,0);let f=D3(n,e.program,a,e.host);K6(r,l,n,e,a,f,e=>m(n,r,e)),f.writeFixes(i);function p(t,i){let a=o.getIndexInfoOfType(t,i);a&&m(n,r,o.indexInfoToIndexSignatureDeclaration(a,r,void 0,void 0,q6(e)))}function m(e,t,n){d?i.insertNodeAfter(e,d,n):i.insertMemberAtStart(e,t,n)}}function Ome(e,t){let n=K_(e);if(!n)return Cf();let r=t.getTypeAtLocation(n);return Cf(t.getPropertiesOfType(r).filter(Eme))}var kme=`import`,Ame=`fixMissingImport`,jme=[G.Cannot_find_name_0.code,G.Cannot_find_name_0_Did_you_mean_1.code,G.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,G.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,G.Cannot_find_namespace_0.code,G._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,G._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,G.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,G._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,G.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,G.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,G.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,G.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,G.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,G.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,G.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,G.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,G.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,G.Cannot_find_namespace_0_Did_you_mean_1.code,G.Cannot_extend_an_interface_0_Did_you_mean_implements.code,G.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];A4({errorCodes:jme,getCodeActions(e){let{errorCode:t,preferences:n,sourceFile:r,span:i,program:a}=e,o=qme(e,t,i.start,!0);if(o)return o.map(({fix:t,symbolName:i,errorIdentifierText:o})=>P3(e,r,i,t,i!==o,a,n))},fixIds:[Ame],getAllCodeActions:e=>{let{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:a}=e,o=Mme(t,n,!0,r,i,a);return N4(e,jme,t=>o.addImportFromDiagnostic(t,e)),j4(y7.ChangeTracker.with(e,o.writeFixes))}});function D3(e,t,n,r,i){return Mme(e,t,!1,n,r,i)}function Mme(e,t,n,r,i,a){let o=t.getCompilerOptions(),s=[],c=[],l=new Map,u=new Set,d=new Set,f=new Map;return{addImportFromDiagnostic:h,addImportFromExportedSymbol:g,addImportForModuleSymbol:_,writeFixes:S,hasFixes:w,addImportForUnresolvedIdentifier:m,addImportForNonExistentExport:y,removeExistingImport:b,addVerbatimImport:p};function p(e){d.add(e)}function m(e,t,n){let r=Yme(e,t,n);!r||!r.length||x(Ie(r))}function h(e,t){let r=qme(t,e.code,e.start,n);!r||!r.length||x(Ie(r))}function g(n,s,c){let l=H.checkDefined(n.parent,`Expected exported symbol to have module symbol as parent`),u=F$(n,zS(o)),d=t.getTypeChecker(),f=Lme(e,d.getMergedSymbol(Nx(n,d)),u,l,!1,t,i,r,a);if(!f){H.assert(r.autoImportFileExcludePatterns?.length);return}let p=j3(e,t),m=O3(e,f,t,void 0,!!s,p,i,r);if(m){let e=vt(c?.name,Y)?.text??u,t,r;c&&pu(c)&&(m.kind===3||m.kind===2)&&m.addAsTypeOnly===1&&(t=2),n.name!==e&&(r=n.name),m={...m,...t===void 0?{}:{addAsTypeOnly:t},...r===void 0?{}:{propertyName:r}},x({fix:m,symbolName:e??u})}}function _(n,a,s){let c=t.getTypeChecker(),l=c.getAliasedSymbol(n);H.assert(l.flags&1536,`Expected symbol to be a module`);let u=QZ(t,i),d=wz.getModuleSpecifiersWithCacheInfo(l,c,o,e,u,r,void 0,!0),f=j3(e,t),p=A3(a,!0,void 0,n.flags,t.getTypeChecker(),o);p=p===1&&pu(s)?2:1;let m=MA(s)?Zg(s)?1:2:HA(s)?0:NA(s)&&s.name?1:2,h=O3(e,[{symbol:n,moduleSymbol:l,moduleFileName:(l.declarations?.[0])?.getSourceFile()?.fileName,exportKind:4,targetFlags:n.flags,isFromPackageJson:!1}],t,void 0,!!a,f,i,r),g;g=h&&m!==2&&h.kind!==0&&h.kind!==1?{...h,addAsTypeOnly:p,importKind:m}:{kind:3,moduleSpecifierKind:h===void 0?d.kind:h.moduleSpecifierKind,moduleSpecifier:h===void 0?Ie(d.moduleSpecifiers):h.moduleSpecifier,importKind:m,addAsTypeOnly:p,useRequire:f},x({fix:g,symbolName:n.name})}function y(n,a,s,c,l){let u=t.getSourceFile(a),d=j3(e,t);if(u&&u.symbol){let{fixes:o}=k3([{exportKind:s,isFromPackageJson:!1,moduleFileName:a,moduleSymbol:u.symbol,targetFlags:c}],void 0,l,d,t,e,i,r);o.length&&x({fix:o[0],symbolName:n})}else{let u=Z$(a,99,t,i);x({fix:{kind:3,moduleSpecifierKind:`relative`,moduleSpecifier:wz.getLocalModuleSpecifierBetweenFileNames(e,a,o,QZ(t,i),r),importKind:M3(u,s,t),addAsTypeOnly:A3(l,!0,void 0,c,t.getTypeChecker(),o),useRequire:d},symbolName:n})}}function b(e){e.kind===274&&H.assertIsDefined(e.name,`ImportClause should have a name if it's being removed`),u.add(e)}function x(e){let{fix:t,symbolName:n}=e;switch(t.kind){case 0:s.push(t);break;case 1:c.push(t);break;case 2:{let{importClauseOrBindingPattern:e,importKind:i,addAsTypeOnly:a,propertyName:o}=t,s=l.get(e);if(s||l.set(e,s={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),i===0){let e=s?.namedImports.get(n)?.addAsTypeOnly;s.namedImports.set(n,{addAsTypeOnly:r(e,a),propertyName:o})}else H.assert(s.defaultImport===void 0||s.defaultImport.name===n,`(Add to Existing) Default import should be missing or match symbolName`),s.defaultImport={name:n,addAsTypeOnly:r(s.defaultImport?.addAsTypeOnly,a)};break}case 3:{let{moduleSpecifier:e,importKind:a,useRequire:s,addAsTypeOnly:c,propertyName:l}=t,u=i(e,a,s,c);switch(H.assert(u.useRequire===s,"(Add new) Tried to add an `import` and a `require` for the same module"),a){case 1:H.assert(u.defaultImport===void 0||u.defaultImport.name===n,`(Add new) Default import should be missing or match symbolName`),u.defaultImport={name:n,addAsTypeOnly:r(u.defaultImport?.addAsTypeOnly,c)};break;case 0:let e=(u.namedImports||=new Map).get(n);u.namedImports.set(n,[r(e,c),l]);break;case 3:if(o.verbatimModuleSyntax){let e=(u.namedImports||=new Map).get(n);u.namedImports.set(n,[r(e,c),l])}else H.assert(u.namespaceLikeImport===void 0||u.namespaceLikeImport.name===n,`Namespacelike import shoudl be missing or match symbolName`),u.namespaceLikeImport={importKind:a,name:n,addAsTypeOnly:c};break;case 2:H.assert(u.namespaceLikeImport===void 0||u.namespaceLikeImport.name===n,`Namespacelike import shoudl be missing or match symbolName`),u.namespaceLikeImport={importKind:a,name:n,addAsTypeOnly:c};break}break}case 4:break;default:H.assertNever(t,`fix wasn't never - got kind ${t.kind}`)}function r(e,t){return Math.max(e??0,t)}function i(e,t,n,r){let i=a(e,!0),o=a(e,!1),s=f.get(i),c=f.get(o),l={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};return t===1&&r===2?s||(f.set(i,l),l):r===1&&(s||c)?s||c:c||(f.set(o,l),l)}function a(e,t){return`${t?1:0}|${e}`}}function S(t,n){let i;i=e.imports!==void 0&&e.imports.length===0&&n!==void 0?n:aQ(e,r);for(let n of s)F3(t,e,n);for(let n of c)mhe(t,e,n,i);let a;if(u.size){H.assert(eg(e),`Cannot remove imports from a future source file`);let n=new Set(M([...u],e=>K(e,MA))),r=new Set(M([...u],e=>K(e,cg))),i=[...n].filter(e=>!l.has(e.importClause)&&(!e.importClause?.name||u.has(e.importClause))&&(!vt(e.importClause?.namedBindings,zA)||u.has(e.importClause.namedBindings))&&(!vt(e.importClause?.namedBindings,VA)||v(e.importClause.namedBindings.elements,e=>u.has(e)))),o=[...r].filter(e=>(e.name.kind!==207||!l.has(e.name))&&(e.name.kind!==207||v(e.name.elements,e=>u.has(e)))),s=[...n].filter(e=>e.importClause?.namedBindings&&i.indexOf(e)===-1&&!l.get(e.importClause)?.namedImports&&(e.importClause.namedBindings.kind===275||v(e.importClause.namedBindings.elements,e=>u.has(e))));for(let n of[...i,...o])t.delete(e,n);for(let n of s)t.replaceNode(e,n.importClause,J.updateImportClause(n.importClause,n.importClause.phaseModifier,n.importClause.name,void 0));for(let n of u){let r=K(n,MA);r&&i.indexOf(r)===-1&&s.indexOf(r)===-1?n.kind===274?t.delete(e,n.name):(H.assert(n.kind===277,`NamespaceImport should have been handled earlier`),l.get(r.importClause)?.namedImports?(a??=new Set).add(n):t.delete(e,n)):n.kind===209?l.get(n.parent)?.namedImports?(a??=new Set).add(n):t.delete(e,n):n.kind===272&&t.delete(e,n)}}l.forEach(({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{phe(t,e,n,i,$e(o.entries(),([e,{addAsTypeOnly:t,propertyName:n}])=>({addAsTypeOnly:t,propertyName:n,name:e})),a,r)});let d;f.forEach(({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:a},s)=>{let c=s.slice(2),l=(e?_he:ghe)(c,i,t,n&&$e(n.entries(),([e,[t,n]])=>({addAsTypeOnly:t,propertyName:n,name:e})),a,o,r);d=we(d,l)}),d=we(d,C()),d&&mQ(t,e,d,!0,r)}function C(){if(!d.size)return;let e=new Set(M([...d],e=>K(e,MA))),t=new Set(M([...d],e=>K(e,dg)));return[...M([...d],e=>e.kind===272?oE(e,!0):void 0),...[...e].map(e=>d.has(e)?oE(e,!0):oE(J.updateImportDeclaration(e,e.modifiers,e.importClause&&J.updateImportClause(e.importClause,e.importClause.phaseModifier,d.has(e.importClause)?e.importClause.name:void 0,d.has(e.importClause.namedBindings)?e.importClause.namedBindings:vt(e.importClause.namedBindings,VA)?.elements.some(e=>d.has(e))?J.updateNamedImports(e.importClause.namedBindings,e.importClause.namedBindings.elements.filter(e=>d.has(e))):void 0),e.moduleSpecifier,e.attributes),!0)),...[...t].map(e=>d.has(e)?oE(e,!0):oE(J.updateVariableStatement(e,e.modifiers,J.updateVariableDeclarationList(e.declarationList,M(e.declarationList.declarations,e=>d.has(e)?e:J.updateVariableDeclaration(e,e.name.kind===207?J.updateObjectBindingPattern(e.name,e.name.elements.filter(e=>d.has(e))):e.name,e.exclamationToken,e.type,e.initializer)))),!0))]}function w(){return s.length>0||c.length>0||l.size>0||f.size>0||d.size>0||u.size>0}}function Nme(e,t,n,r){let i=E$(e,r,n),a=Hme(e,t);return{getModuleSpecifierForBestExportInfo:o};function o(o,s,c,l){let{fixes:u,computedWithoutCacheCount:d}=k3(o,s,c,!1,t,e,n,r,a,l),f=Xme(u,e,t,i,n,r);return f&&{...f,computedWithoutCacheCount:d}}}function Pme(e,t,n,r,i,a,o,s,c,l,u,d){let f;n?(f=a1(r,o,s,u,d).get(r.path,n),H.assertIsDefined(f,`Some exportInfo should match the specified exportMapKey`)):(f=Ga(Zv(t.name))?[Rme(e,i,t,s,o)]:Lme(r,e,i,t,a,s,o,u,d),H.assertIsDefined(f,`Some exportInfo should match the specified symbol / moduleSymbol`));let p=j3(r,s),m=Bw(nZ(r,l)),h=H.checkDefined(O3(r,f,s,l,m,p,o,u));return{moduleSpecifier:h.moduleSpecifier,codeAction:Ime(P3({host:o,formatContext:c,preferences:u},r,i,h,!1,s,u))}}function Fme(e,t,n,r,i,a){let o=n.getCompilerOptions(),s=Ve(N3(e,n.getTypeChecker(),t,o)),c=ohe(e,t,s,n),l=s!==t.text;return c&&Ime(P3({host:r,formatContext:i,preferences:a},e,s,c,l,n,a))}function O3(e,t,n,r,i,a,o,s){let c=E$(e,s,o);return Xme(k3(t,r,i,a,n,e,o,s).fixes,e,n,c,o,s)}function Ime({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function Lme(e,t,n,r,i,a,o,s,c){let l=Ume(a,o),u=s.autoImportFileExcludePatterns&&i1(o,s),d=a.getTypeChecker().getMergedSymbol(r),f=u&&d.declarations&&xf(d,308),p=f&&u(f);return a1(e,o,a,s,c).search(e.path,i,e=>e===n,e=>{let n=l(e[0].isFromPackageJson);if(n.getMergedSymbol(Nx(e[0].symbol,n))===t&&(p||e.some(e=>n.getMergedSymbol(e.moduleSymbol)===r||e.symbol.parent===r)))return e})}function Rme(e,t,n,r,i){let a=s(r.getTypeChecker(),!1);if(a)return a;let o=(i.getPackageJsonAutoImportProvider?.call(i))?.getTypeChecker();return H.checkDefined(o&&s(o,!0),`Could not find symbol in specified module for code actions`);function s(r,i){let a=o1(n,r);if(a&&Nx(a.symbol,r)===e)return{symbol:a.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:Nx(e,r).flags,isFromPackageJson:i};let o=r.tryGetMemberInModuleExportsAndProperties(t,n);if(o&&Nx(o,r)===e)return{symbol:o,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:Nx(e,r).flags,isFromPackageJson:i}}}function k3(e,t,n,r,i,a,o,s,l=eg(a)?Hme(a,i):void 0,u){let d=i.getTypeChecker(),f=l?re(e,l.getImportsForExportInfo):c,p=t!==void 0&&zme(f,t),m=Vme(f,n,d,i.getCompilerOptions());if(m)return{computedWithoutCacheCount:0,fixes:[...p?[p]:c,m]};let{fixes:h,computedWithoutCacheCount:g=0}=Gme(e,f,i,a,t,n,r,o,s,u);return{computedWithoutCacheCount:g,fixes:[...p?[p]:c,...h]}}function zme(e,t){return p(e,({declaration:e,importKind:n})=>{if(n!==0)return;let r=Bme(e),i=r&&Gg(e)?.text;if(i)return{kind:0,namespacePrefix:r,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:i}})}function Bme(e){switch(e.kind){case 261:return vt(e.name,Y)?.text;case 272:return e.name.text;case 352:case 273:return vt(e.importClause?.namedBindings,zA)?.name.text;default:return H.assertNever(e)}}function A3(e,t,n,r,i,a){return e?n&&a.verbatimModuleSyntax&&(!(r&111551)||i.getTypeOnlyAliasDeclaration(n))?2:1:4}function Vme(e,t,n,r){let i;for(let t of e){let e=a(t);if(!e)continue;let n=pu(e.importClauseOrBindingPattern);if(e.addAsTypeOnly!==4&&n||e.addAsTypeOnly===4&&!n)return e;i??=e}return i;function a({declaration:e,importKind:i,symbol:a,targetFlags:o}){if(i===3||i===2||e.kind===272)return;if(e.kind===261)return(i===0||i===1)&&e.name.kind===207?{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:s}=e;if(!s||!uf(e.moduleSpecifier))return;let{name:c,namedBindings:l}=s;if(s.isTypeOnly&&!(i===0&&l))return;let u=A3(t,!1,a,o,n,r);if(!(i===1&&(c||u===2&&l))&&!(i===0&&l?.kind===275))return{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifierKind:void 0,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:u}}}function Hme(e,t){let n=t.getTypeChecker(),r;for(let t of e.imports){let e=Kg(t);if(cg(e.parent)){let i=n.resolveExternalModuleName(t);i&&(r||=R()).add(hB(i),e.parent)}else if(e.kind===273||e.kind===272||e.kind===352){let i=n.getSymbolAtLocation(t);i&&(r||=R()).add(hB(i),e)}}return{getImportsForExportInfo:({moduleSymbol:n,exportKind:i,targetFlags:a,symbol:o})=>{let s=r?.get(hB(n));if(!s||tg(e)&&!(a&111551)&&!v(s,oM))return c;let l=M3(e,i,t);return s.map(e=>({declaration:e,importKind:l,symbol:o,targetFlags:a}))}}}function j3(e,t){if(!$C(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let n=t.getCompilerOptions();if(n.configFile)return BS(n)<5;if(R3(e,t)===1)return!0;if(R3(e,t)===99)return!1;for(let n of t.getSourceFiles())if(!(n===e||!tg(n)||t.isSourceFileFromExternalLibrary(n))){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}return!0}function Ume(e,t){return At(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function Wme(e,t,n,r,i,a,o,s,c){let l=$C(t.fileName),u=e.getCompilerOptions(),d=QZ(e,o),f=Ume(e,o),p=eQ(VS(u)),m=c?e=>wz.tryGetModuleSpecifiersFromCache(e.moduleSymbol,t,d,s):(e,n)=>wz.getModuleSpecifiersWithCacheInfo(e.moduleSymbol,n,u,t,d,s,void 0,!0),h=0,g=re(a,(a,o)=>{let s=f(a.isFromPackageJson),{computedWithoutCache:c,moduleSpecifiers:d,kind:g}=m(a,s)??{},_=!!(a.targetFlags&111551),v=A3(r,!0,a.symbol,a.targetFlags,s,u);return h+=c?1:0,M(d,r=>{if(p&&fR(r))return;if(!_&&l&&n!==void 0)return{kind:1,moduleSpecifierKind:g,moduleSpecifier:r,usagePosition:n,exportInfo:a,isReExport:o>0};let c=M3(t,a.exportKind,e),d;if(n!==void 0&&c===3&&a.exportKind===0){let e=s.resolveExternalModuleSymbol(a.moduleSymbol),t;e!==a.moduleSymbol&&(t=s1(e,s,zS(u),wt)),t||=L$(a.moduleSymbol,zS(u),!1),d={namespacePrefix:t,usagePosition:n}}return{kind:3,moduleSpecifierKind:g,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:v,exportInfo:a,isReExport:o>0,qualification:d}})});return{computedWithoutCacheCount:h,fixes:g}}function Gme(e,t,n,r,i,a,o,s,c,l){let u=p(t,e=>Kme(e,a,o,n.getTypeChecker(),n.getCompilerOptions()));return u?{fixes:[u]}:Wme(n,r,i,a,o,e,s,c,l)}function Kme({declaration:e,importKind:t,symbol:n,targetFlags:r},i,a,o,s){let c=Gg(e)?.text;if(c)return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:c,importKind:t,addAsTypeOnly:a?4:A3(i,!0,n,r,o,s),useRequire:a}}function qme(e,t,n,r){let i=nZ(e.sourceFile,n),a;if(t===G._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)a=nhe(e,i);else if(!Y(i))return;else if(t===G._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let t=Ve(N3(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=ohe(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}else a=ahe(e,i,r);let o=E$(e.sourceFile,e.preferences,e.host);return a&&Jme(a,e.sourceFile,e.program,o,e.host,e.preferences)}function Jme(e,t,n,r,i,a){let o=e=>yo(e,i.getCurrentDirectory(),oy(i));return Ae(e,(e,i)=>Zt(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||It(e.fix.kind,i.fix.kind)||Zme(e.fix,i.fix,t,n,a,r.allowsImportingSpecifier,o))}function Yme(e,t,n){let r=ahe(e,t,n),i=E$(e.sourceFile,e.preferences,e.host);return r&&Jme(r,e.sourceFile,e.program,i,e.host,e.preferences)}function Xme(e,t,n,r,i,a){if(F(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((e,o)=>Zme(o,e,t,n,a,r.allowsImportingSpecifier,e=>yo(e,i.getCurrentDirectory(),oy(i)))===-1?o:e)}function Zme(e,t,n,r,i,a,o){return e.kind!==0&&t.kind!==0?Zt(t.moduleSpecifierKind!==`node_modules`||a(t.moduleSpecifier),e.moduleSpecifierKind!==`node_modules`||a(e.moduleSpecifier))||Qme(e,t,i)||the(e.moduleSpecifier,t.moduleSpecifier,n,r)||Zt($me(e,n.path,o),$me(t,n.path,o))||cw(e.moduleSpecifier,t.moduleSpecifier):0}function Qme(e,t,n){return n.importModuleSpecifierPreference===`non-relative`||n.importModuleSpecifierPreference===`project-relative`?Zt(e.moduleSpecifierKind===`relative`,t.moduleSpecifierKind===`relative`):0}function $me(e,t,n){return e.isReExport&&e.exportInfo?.moduleFileName&&ehe(e.exportInfo.moduleFileName)?pn(t,n($a(e.exportInfo.moduleFileName))):!1}function ehe(e){return eo(e,[`.js`,`.jsx`,`.d.ts`,`.ts`,`.tsx`],!0)===`index`}function the(e,t,n,r){return pn(e,`node:`)&&!pn(t,`node:`)?H$(n,r)?-1:1:pn(t,`node:`)&&!pn(e,`node:`)?H$(n,r)?1:-1:0}function nhe({sourceFile:e,program:t,host:n,preferences:r},i){let a=t.getTypeChecker(),o=rhe(i,a);if(!o)return;let s=a.getAliasedSymbol(o),c=o.name;return k3([{symbol:o,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],void 0,!1,j3(e,t),t,e,n,r).fixes.map(e=>({fix:e,symbolName:c,errorIdentifierText:vt(i,Y)?.text}))}function rhe(e,t){let n=Y(e)?t.getSymbolAtLocation(e):void 0;if(Gx(n))return n;let{parent:r}=e;if(Jd(r)&&r.tagName===e||rj(r)){let n=t.resolveName(t.getJsxNamespace(r),Jd(r)?e:r,111551,!1);if(Gx(n))return n}}function M3(e,t,n,r){if(n.getCompilerOptions().verbatimModuleSyntax&&bhe(e,n)===1)return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return lhe(e,n.getCompilerOptions(),!!r);case 3:return ihe(e,n,!!r);case 4:return 2;default:return H.assertNever(t)}}function ihe(e,t,n){if(GS(t.getCompilerOptions()))return 1;let r=BS(t.getCompilerOptions());switch(r){case 2:case 1:case 3:return $C(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 101:case 102:case 199:return R3(e,t)===99?2:3;default:return H.assertNever(r,`Unexpected moduleKind ${r}`)}}function ahe({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},a,o){return re(N3(e,t.getTypeChecker(),a,t.getCompilerOptions()),s=>{if(s===`default`)return;let c=Bw(a),l=j3(e,t);return $e(ae(che(s,Gh(a),pX(a),n,e,t,o,r,i).values(),n=>k3(n,a.getStart(e),c,l,t,e,r,i).fixes),e=>({fix:e,symbolName:s,errorIdentifierText:a.text,isJsxNamespaceFix:s!==a.text}))})}function ohe(e,t,n,r){let i=r.getTypeChecker(),a=i.resolveName(n,t,111551,!0);if(!a)return;let o=i.getTypeOnlyAliasDeclaration(a);if(!(!o||Yf(o)!==e))return{kind:4,typeOnlyAliasDeclaration:o}}function N3(e,t,n,r){let i=n.parent;if((Jd(i)||tj(i))&&i.tagName===n&&K$(r.jsx)){let r=t.getJsxNamespace(e);if(she(r,n,t))return!$v(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,r]:[r]}return[n.text]}function she(e,t,n){if($v(t.text))return!0;let r=n.resolveName(e,t,111551,!0);return!r||F(r.declarations,hu)&&!(r.flags&111551)}function che(e,t,n,r,i,a,o,s,c){let l=R(),u=E$(i,c,s),d=s.getModuleSpecifierCache?.call(s),f=At(e=>QZ(e?s.getPackageJsonAutoImportProvider():a,s));function p(e,t,n,r,a,o){if(t1(a,i,t,e,c,u,f(o),d)){let i=a.getTypeChecker();l.add(JQ(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:t?.fileName,exportKind:r,targetFlags:Nx(n,i).flags,isFromPackageJson:o})}}return r1(a,s,c,o,(i,a,o,s)=>{let c=o.getTypeChecker();r.throwIfCancellationRequested();let l=o.getCompilerOptions(),u=o1(i,c);u&&yhe(c.getSymbolFlags(u.symbol),n)&&s1(u.symbol,c,zS(l),(n,r)=>(t?r??n:n)===e)&&p(i,a,u.symbol,u.exportKind,o,s);let d=c.tryGetMemberInModuleExportsAndProperties(e,i);d&&yhe(c.getSymbolFlags(d),n)&&p(i,a,d,0,o,s)}),l}function lhe(e,t,n){let r=GS(t),i=$C(e.fileName);if(!i&&BS(t)>=5)return r?1:2;if(i)return e.externalModuleIndicator||n?r?1:2:3;for(let t of e.statements??c)if(jA(t)&&!rp(t.moduleReference))return 3;return r?1:3}function P3(e,t,n,r,i,a,o){let s;return D4(kme,y7.ChangeTracker.with(e,e=>{s=uhe(e,t,n,r,i,a,o)}),s,Ame,G.Add_all_missing_imports)}function uhe(e,t,n,r,i,a,o){let s=aQ(t,o);switch(r.kind){case 0:return F3(e,t,r),[G.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return mhe(e,t,r,s),[G.Change_0_to_1,n,hhe(r.moduleSpecifier,s)+n];case 2:{let{importClauseOrBindingPattern:a,importKind:s,addAsTypeOnly:l,moduleSpecifier:u}=r;phe(e,t,a,s===1?{name:n,addAsTypeOnly:l}:void 0,s===0?[{name:n,addAsTypeOnly:l}]:c,void 0,o);let d=Zv(u);return i?[G.Import_0_from_1,n,d]:[G.Update_import_from_0,d]}case 3:{let{importKind:c,moduleSpecifier:l,addAsTypeOnly:u,useRequire:d,qualification:f}=r;return mQ(e,t,(d?_he:ghe)(l,s,c===1?{name:n,addAsTypeOnly:u}:void 0,c===0?[{name:n,addAsTypeOnly:u}]:void 0,c===2||c===3?{importKind:c,name:f?.namespacePrefix||n,addAsTypeOnly:u}:void 0,a.getCompilerOptions(),o),!0,o),f&&F3(e,t,f),i?[G.Import_0_from_1,n,l]:[G.Add_import_from_0,l]}case 4:{let{typeOnlyAliasDeclaration:i}=r,s=fhe(e,i,a,t,o);return s.kind===277?[G.Remove_type_from_import_of_0_from_1,n,dhe(s.parent.parent)]:[G.Remove_type_from_import_declaration_from_0,dhe(s)]}default:return H.assertNever(r,`Unexpected fix kind ${r.kind}`)}}function dhe(e){return e.kind===272?vt(vt(e.moduleReference,ZA)?.expression,uf)?.text||e.moduleReference.getText():yt(e.parent.moduleSpecifier,tO).text}function fhe(e,t,n,r,i){let a=n.getCompilerOptions(),o=a.verbatimModuleSyntax;switch(t.kind){case 277:if(t.isTypeOnly){if(t.parent.elements.length>1){let n=J.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:a}=U5.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,i,r),o=U5.getImportSpecifierInsertionIndex(t.parent.elements,n,a);if(o!==t.parent.elements.indexOf(t))return e.delete(r,t),e.insertImportSpecifierAtIndex(r,n,t.parent,o),t}return e.deleteRange(r,{pos:_p(t.getFirstToken()),end:_p(t.propertyName??t.name)}),t}else return H.assert(t.parent.parent.isTypeOnly),s(t.parent.parent),t.parent.parent;case 274:return s(t),t;case 275:return s(t.parent),t.parent;case 272:return e.deleteRange(r,t.getChildAt(1)),t;default:H.failBadSyntaxKind(t)}function s(s){if(e.delete(r,hQ(s,r)),!a.allowImportingTsExtensions){let t=Gg(s.parent);if((t&&n.getResolvedModuleFromModuleSpecifier(t,r)?.resolvedModule)?.resolvedUsingTsExtension){let n=Co(t.text,xU(t.text,a));e.replaceNode(r,t,J.createStringLiteral(n))}}if(o){let n=vt(s.namedBindings,VA);if(n&&n.elements.length>1){U5.getNamedImportSpecifierComparerWithDetection(s.parent,i,r).isSorted!==!1&&t.kind===277&&n.elements.indexOf(t)!==0&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(let i of n.elements)i!==t&&!i.isTypeOnly&&e.insertModifierBefore(r,156,i)}}}}function phe(e,t,n,r,i,a,o){if(n.kind===207){if(a&&n.elements.some(e=>a.has(e))){e.replaceNode(t,n,J.createObjectBindingPattern([...n.elements.filter(e=>!a.has(e)),...r?[J.createBindingElement(void 0,`default`,r.name)]:c,...i.map(e=>J.createBindingElement(void 0,e.propertyName,e.name))]));return}r&&u(n,r.name,`default`);for(let e of i)u(n,e.name,e.propertyName);return}let s=n.isTypeOnly&&F([r,...i],e=>e?.addAsTypeOnly===4),l=n.namedBindings&&vt(n.namedBindings,VA)?.elements;if(r&&(H.assert(!n.name,`Cannot add a default import to an import clause that already has one`),e.insertNodeAt(t,n.getStart(t),J.createIdentifier(r.name),{suffix:`, `})),i.length){let{specifierComparer:r,isSorted:c}=U5.getNamedImportSpecifierComparerWithDetection(n.parent,o,t),u=Ae(i.map(e=>J.createImportSpecifier((!n.isTypeOnly||s)&&L3(e,o),e.propertyName===void 0?void 0:J.createIdentifier(e.propertyName),J.createIdentifier(e.name))),r);if(a)e.replaceNode(t,n.namedBindings,J.updateNamedImports(n.namedBindings,Ae([...l.filter(e=>!a.has(e)),...u],r)));else if(l?.length&&c!==!1){let i=s&&l?J.updateNamedImports(n.namedBindings,te(l,e=>J.updateImportSpecifier(e,!0,e.propertyName,e.name))).elements:l;for(let a of u){let o=U5.getImportSpecifierInsertionIndex(i,a,r);e.insertImportSpecifierAtIndex(t,a,n.namedBindings,o)}}else if(l?.length)for(let n of u)e.insertNodeInListAfter(t,ze(l),n,l);else if(u.length){let r=J.createNamedImports(u);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,H.checkDefined(n.name,`Import clause must have either named imports or a default import`),r)}}if(s&&(e.delete(t,hQ(n,t)),l))for(let n of l)e.insertModifierBefore(t,156,n);function u(n,r,i){let a=J.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,ze(n.elements),a):e.replaceNode(t,n,J.createObjectBindingPattern([a]))}}function F3(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+`.`)}function mhe(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,hhe(n,i))}function hhe(e,t){let n=oQ(t);return`import(${n}${e}${n}).`}function I3({addAsTypeOnly:e}){return e===2}function L3(e,t){return I3(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function ghe(e,t,n,r,i,a,o){let s=nQ(e,t),c;if(n!==void 0||r?.length){let i=(!n||I3(n))&&v(r,I3)||(a.verbatimModuleSyntax||o.preferTypeOnlyAutoImports)&&n?.addAsTypeOnly!==4&&!F(r,e=>e.addAsTypeOnly===4);c=we(c,tQ(n&&J.createIdentifier(n.name),r?.map(e=>J.createImportSpecifier(!i&&L3(e,o),e.propertyName===void 0?void 0:J.createIdentifier(e.propertyName),J.createIdentifier(e.name))),e,t,i))}if(i){let e=i.importKind===3?J.createImportEqualsDeclaration(void 0,L3(i,o),J.createIdentifier(i.name),J.createExternalModuleReference(s)):J.createImportDeclaration(void 0,J.createImportClause(L3(i,o)?156:void 0,void 0,J.createNamespaceImport(J.createIdentifier(i.name))),s,void 0);c=we(c,e)}return H.checkDefined(c)}function _he(e,t,n,r,i){let a=nQ(e,t),o;if(n||r?.length){let e=r?.map(({name:e,propertyName:t})=>J.createBindingElement(void 0,t,e))||[];n&&e.unshift(J.createBindingElement(void 0,`default`,n.name));let t=vhe(J.createObjectBindingPattern(e),a);o=we(o,t)}if(i){let e=vhe(i.name,a);o=we(o,e)}return H.checkDefined(o)}function vhe(e,t){return J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(typeof e==`string`?J.createIdentifier(e):e,void 0,void 0,J.createCallExpression(J.createIdentifier(`require`),void 0,[t]))],2))}function yhe(e,t){return t===7?!0:t&1?!!(e&111551):t&2?!!(e&788968):t&4?!!(e&1920):!1}function R3(e,t){return eg(e)?t.getImpliedNodeFormatForEmit(e):iG(e,t.getCompilerOptions())}function bhe(e,t){return eg(e)?t.getEmitModuleFormatOfFile(e):rG(e,t.getCompilerOptions())}var z3=`addMissingConstraint`,xhe=[G.Type_0_is_not_comparable_to_type_1.code,G.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,G.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,G.Type_0_is_not_assignable_to_type_1.code,G.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,G.Property_0_is_incompatible_with_index_signature.code,G.Property_0_in_type_1_is_not_assignable_to_type_2.code,G.Type_0_does_not_satisfy_the_constraint_1.code];A4({errorCodes:xhe,getCodeActions(e){let{sourceFile:t,span:n,program:r,preferences:i,host:a}=e,o=She(r,t,n);if(o!==void 0)return[D4(z3,y7.ChangeTracker.with(e,e=>Che(e,r,i,a,t,o)),G.Add_extends_constraint,z3,G.Add_extends_constraint_to_all_type_parameters)]},fixIds:[z3],getAllCodeActions:e=>{let{program:t,preferences:n,host:r}=e,i=new Set;return j4(y7.ChangeTracker.with(e,a=>{N4(e,xhe,e=>{let o=She(t,e.file,xc(e.start,e.length));if(o&&Jx(i,mB(o.declaration)))return Che(a,t,n,r,e.file,o)})}))}});function She(e,t,n){let r=y(e.getSemanticDiagnostics(t),e=>e.start===n.start&&e.length===n.length);if(r===void 0||r.relatedInformation===void 0)return;let i=y(r.relatedInformation,e=>e.code===G.This_type_parameter_might_need_an_extends_0_constraint.code);if(i===void 0||i.file===void 0||i.start===void 0||i.length===void 0)return;let a=o8(i.file,xc(i.start,i.length));if(a!==void 0&&(Y(a)&&PO(a.parent)&&(a=a.parent),PO(a))){if(pk(a.parent))return;let r=nZ(t,n.start);return{constraint:The(e.getTypeChecker(),r)||whe(i.messageText),declaration:a,token:r}}}function Che(e,t,n,r,i,a){let{declaration:o,constraint:s}=a,c=t.getTypeChecker();if(gt(s))e.insertText(i,o.name.end,` extends ${s}`);else{let a=zS(t.getCompilerOptions()),l=q6({program:t,host:r}),u=D3(i,t,n,r),d=X6(c,u,s,void 0,a,void 0,void 0,l);d&&(e.replaceNode(i,o,J.updateTypeParameterDeclaration(o,void 0,o.name,d,o.default)),u.writeFixes(e))}}function whe(e){let[,t]=DW(e,` `,0).match(/`extends (.*)`/)||[];return t}function The(e,t){return Ju(t.parent)?e.getTypeArgumentConstraint(t.parent):(q(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var Ehe=`fixOverrideModifier`,B3=`fixAddOverrideModifier`,V3=`fixRemoveOverrideModifier`,Dhe=[G.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,G.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,G.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,G.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,G.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,G.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,G.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,G.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,G.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Ohe={[G.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:G.Add_override_modifier,fixId:B3,fixAllDescriptions:G.Add_all_missing_override_modifiers},[G.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:G.Add_override_modifier,fixId:B3,fixAllDescriptions:G.Add_all_missing_override_modifiers},[G.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:G.Remove_override_modifier,fixId:V3,fixAllDescriptions:G.Remove_all_unnecessary_override_modifiers},[G.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:G.Remove_override_modifier,fixId:V3,fixAllDescriptions:G.Remove_override_modifier},[G.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:G.Add_override_modifier,fixId:B3,fixAllDescriptions:G.Add_all_missing_override_modifiers},[G.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:G.Add_override_modifier,fixId:B3,fixAllDescriptions:G.Add_all_missing_override_modifiers},[G.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:G.Add_override_modifier,fixId:B3,fixAllDescriptions:G.Remove_all_unnecessary_override_modifiers},[G.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:G.Remove_override_modifier,fixId:V3,fixAllDescriptions:G.Remove_all_unnecessary_override_modifiers},[G.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:G.Remove_override_modifier,fixId:V3,fixAllDescriptions:G.Remove_all_unnecessary_override_modifiers}};A4({errorCodes:Dhe,getCodeActions:function(e){let{errorCode:t,span:n}=e,r=Ohe[t];if(!r)return c;let{descriptions:i,fixId:a,fixAllDescriptions:o}=r;return[O4(Ehe,y7.ChangeTracker.with(e,r=>khe(r,e,t,n.start)),i,a,o)]},fixIds:[Ehe,B3,V3],getAllCodeActions:e=>M4(e,Dhe,(t,n)=>{let{code:r,start:i}=n,a=Ohe[r];!a||a.fixId!==e.fixId||khe(t,e,r,i)})});function khe(e,t,n,r){switch(n){case G.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case G.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case G.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case G.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case G.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return Ahe(e,t.sourceFile,r);case G.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case G.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case G.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case G.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return jhe(e,t.sourceFile,r);default:H.fail(`Unexpected error code: `+n)}}function Ahe(e,t,n){let r=Nhe(t,n);if(tg(t)){e.addJSDocTags(t,r,[J.createJSDocOverrideTag(J.createIdentifier(`override`))]);return}let i=r.modifiers||c,a=y(i,TO),o=y(i,EO),s=y(i,e=>OZ(e.kind)),l=b(i,IO),u=o?o.end:a?a.end:s?s.end:l?Es(t.text,l.end):r.getStart(t),d=s||a||o?{prefix:` `}:{suffix:` `};e.insertModifierAt(t,u,164,d)}function jhe(e,t,n){let r=Nhe(t,n);if(tg(t)){e.filterJSDocTags(t,r,yn(Wj));return}let i=y(r.modifiers,DO);H.assertIsDefined(i),e.deleteModifier(t,i)}function Mhe(e){switch(e.kind){case 177:case 173:case 175:case 178:case 179:return!0;case 170:return kc(e,e.parent);default:return!1}}function Nhe(e,t){let n=K(nZ(e,t),e=>zu(e)?`quit`:Mhe(e));return H.assert(n&&Mhe(n)),n}var H3=`fixNoPropertyAccessFromIndexSignature`,Phe=[G.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];A4({errorCodes:Phe,fixIds:[H3],getCodeActions(e){let{sourceFile:t,span:n,preferences:r}=e,i=Ihe(t,n.start);return[D4(H3,y7.ChangeTracker.with(e,t=>Fhe(t,e.sourceFile,i,r)),[G.Use_element_access_for_0,i.name.text],H3,G.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>M4(e,Phe,(t,n)=>Fhe(t,n.file,Ihe(n.file,n.start),e.preferences))});function Fhe(e,t,n,r){let i=aQ(t,r),a=J.createStringLiteral(n.name.text,i===0);e.replaceNode(t,n,Hl(n)?J.createElementAccessChain(n.expression,n.questionDotToken,a):J.createElementAccessExpression(n.expression,a))}function Ihe(e,t){return yt(nZ(e,t).parent,Ck)}var U3=`fixImplicitThis`,Lhe=[G.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];A4({errorCodes:Lhe,getCodeActions:function(e){let{sourceFile:t,program:n,span:r}=e,i,a=y7.ChangeTracker.with(e,e=>{i=Rhe(e,t,r.start,n.getTypeChecker())});return i?[D4(U3,a,i,U3,G.Fix_all_implicit_this_errors)]:c},fixIds:[U3],getAllCodeActions:e=>M4(e,Lhe,(t,n)=>{Rhe(t,n.file,n.start,e.program.getTypeChecker())})});function Rhe(e,t,n,r){let i=nZ(t,n);if(!FX(i))return;let a=Eh(i,!1,!1);if(!(!SA(a)&&!Ak(a))&&!vj(Eh(a,!1,!1))){let n=H.checkDefined(YX(a,100,t)),{name:i}=a,o=H.checkDefined(a.body);return Ak(a)?i&&u5.Core.isSymbolReferencedInFile(i,r,t,o)?void 0:(e.delete(t,n),i&&e.delete(t,i),e.insertText(t,o.pos,` =>`),[G.Convert_function_expression_0_to_arrow_function,i?i.text:d$]):(e.replaceNode(t,n,J.createToken(87)),e.insertText(t,i.end,` = `),e.insertText(t,o.pos,` =>`),[G.Convert_function_declaration_0_to_arrow_function,i.text])}}var W3=`fixImportNonExportedMember`,zhe=[G.Module_0_declares_1_locally_but_it_is_not_exported.code];A4({errorCodes:zhe,fixIds:[W3],getCodeActions(e){let{sourceFile:t,span:n,program:r}=e,i=Bhe(t,n.start,r);if(i!==void 0)return[D4(W3,y7.ChangeTracker.with(e,e=>Vhe(e,r,i)),[G.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],W3,G.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return j4(y7.ChangeTracker.with(e,n=>{let r=new Map;N4(e,zhe,e=>{let i=Bhe(e.file,e.start,t);if(i===void 0)return;let{exportName:a,node:o,moduleSourceFile:s}=i;if(K3(s,a.isTypeOnly)===void 0&&pT(o))n.insertExportModifier(s,o);else{let e=r.get(s)||{typeOnlyExports:[],exports:[]};a.isTypeOnly?e.typeOnlyExports.push(a):e.exports.push(a),r.set(s,e)}}),r.forEach((e,r)=>{let i=K3(r,!0);i&&i.isTypeOnly?(G3(n,t,r,e.typeOnlyExports,i),G3(n,t,r,e.exports,K3(r,!1))):G3(n,t,r,[...e.exports,...e.typeOnlyExports],i)})}))}});function Bhe(e,t,n){let r=nZ(e,t);if(Y(r)){let t=K(r,MA);if(t===void 0)return;let i=tO(t.moduleSpecifier)?t.moduleSpecifier:void 0;if(i===void 0)return;let a=n.getResolvedModuleFromModuleSpecifier(i,e)?.resolvedModule;if(a===void 0)return;let o=n.getSourceFile(a.resolvedFileName);if(o===void 0||q$(n,o))return;let s=o.symbol,c=vt(s.valueDeclaration,Nd)?.locals;if(c===void 0)return;let l=c.get(r.escapedText);if(l===void 0)return;let u=Ghe(l);return u===void 0?void 0:{exportName:{node:r,isTypeOnly:fT(u)},node:u,moduleSourceFile:o,moduleSpecifier:i.text}}}function Vhe(e,t,{exportName:n,node:r,moduleSourceFile:i}){let a=K3(i,n.isTypeOnly);a?Hhe(e,t,i,a,[n]):pT(r)?e.insertExportModifier(i,r):Uhe(e,t,i,[n])}function G3(e,t,n,r,i){u(r)&&(i?Hhe(e,t,n,i,r):Uhe(e,t,n,r))}function K3(e,t){return b(e.statements,e=>WA(e)&&(t&&e.isTypeOnly||!e.isTypeOnly))}function Hhe(e,t,n,r,i){let a=r.exportClause&&GA(r.exportClause)?r.exportClause.elements:J.createNodeArray([]),o=!r.isTypeOnly&&!!(US(t.getCompilerOptions())||y(a,e=>e.isTypeOnly));e.replaceNode(n,r,J.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,J.createNamedExports(J.createNodeArray([...a,...Whe(i,o)],a.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function Uhe(e,t,n,r){e.insertNodeAtEndOfScope(n,n,J.createExportDeclaration(void 0,!1,J.createNamedExports(Whe(r,US(t.getCompilerOptions()))),void 0,void 0))}function Whe(e,t){return J.createNodeArray(k(e,e=>J.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node)))}function Ghe(e){if(e.valueDeclaration===void 0)return Pe(e.declarations);let t=e.valueDeclaration,n=bA(t)?vt(t.parent.parent,nA):void 0;return n&&u(n.declarationList.declarations)===1?n:t}var q3=`fixIncorrectNamedTupleSyntax`;A4({errorCodes:[G.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,G.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){let{sourceFile:t,span:n}=e,r=Khe(t,n.start);return[D4(q3,y7.ChangeTracker.with(e,e=>qhe(e,t,r)),G.Move_labeled_tuple_element_modifiers_to_labels,q3,G.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[q3]});function Khe(e,t){return K(nZ(e,t),e=>e.kind===203)}function qhe(e,t,n){if(!n)return;let r=n.type,i=!1,a=!1;for(;r.kind===191||r.kind===192||r.kind===197;)r.kind===191?i=!0:r.kind===192&&(a=!0),r=r.type;let o=J.updateNamedTupleMember(n,n.dotDotDotToken||(a?J.createToken(26):void 0),n.name,n.questionToken||(i?J.createToken(58):void 0),r);o!==n&&e.replaceNode(t,n,o)}var Jhe=`fixSpelling`,Yhe=[G.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,G.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,G.Cannot_find_name_0_Did_you_mean_1.code,G.Could_not_find_name_0_Did_you_mean_1.code,G.Cannot_find_namespace_0_Did_you_mean_1.code,G.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,G.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,G._0_has_no_exported_member_named_1_Did_you_mean_2.code,G.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,G.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,G.No_overload_matches_this_call.code,G.Type_0_is_not_assignable_to_type_1.code];A4({errorCodes:Yhe,getCodeActions(e){let{sourceFile:t,errorCode:n}=e,r=Xhe(t,e.span.start,e,n);if(!r)return;let{node:i,suggestedSymbol:a}=r,o=zS(e.host.getCompilationSettings());return[D4(`spelling`,y7.ChangeTracker.with(e,e=>Zhe(e,t,i,a,o)),[G.Change_spelling_to_0,qc(a)],Jhe,G.Fix_all_detected_spelling_errors)]},fixIds:[Jhe],getAllCodeActions:e=>M4(e,Yhe,(t,n)=>{let r=Xhe(n.file,n.start,e,n.code),i=zS(e.host.getCompilationSettings());r&&Zhe(t,e.sourceFile,r.node,r.suggestedSymbol,i)})});function Xhe(e,t,n,r){let i=nZ(e,t),a=i.parent;if((r===G.No_overload_matches_this_call.code||r===G.Type_0_is_not_assignable_to_type_1.code)&&!aj(a))return;let o=n.program.getTypeChecker(),s;if(Ck(a)&&a.name===i){H.assert(Bl(i),`Expected an identifier for spelling (property access)`);let e=o.getTypeAtLocation(a.expression);a.flags&64&&(e=o.getNonNullableType(e)),s=o.getSuggestedSymbolForNonexistentProperty(i,e)}else if(Rk(a)&&a.operatorToken.kind===103&&a.left===i&&vO(i)){let e=o.getTypeAtLocation(a.right);s=o.getSuggestedSymbolForNonexistentProperty(i,e)}else if(MO(a)&&a.right===i){let e=o.getSymbolAtLocation(a.left);e&&e.flags&1536&&(s=o.getSuggestedSymbolForNonexistentModule(a.right,e))}else if(HA(a)&&a.name===i){H.assertNode(i,Y,`Expected an identifier for spelling (import)`);let t=$he(n,K(i,MA),e);t&&t.symbol&&(s=o.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(aj(a)&&a.name===i){H.assertNode(i,Y,`Expected an identifier for JSX attribute`);let e=K(i,Jd),t=o.getContextualTypeForArgumentAtIndex(e,0);s=o.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(tb(a)&&Ru(a)&&a.name===i){let e=K(i,zu),t=e?K_(e):void 0,n=t?o.getTypeAtLocation(t):void 0;n&&(s=o.getSuggestedSymbolForNonexistentClassMember(Ep(i),n))}else{let e=pX(i),t=Ep(i);H.assert(t!==void 0,`name should be defined`),s=o.getSuggestedSymbolForNonexistentSymbol(i,t,Qhe(e))}return s===void 0?void 0:{node:i,suggestedSymbol:s}}function Zhe(e,t,n,r,i){let a=qc(r);if(!Ws(a,i)&&Ck(n.parent)){let i=r.valueDeclaration;i&&Qc(i)&&vO(i.name)?e.replaceNode(t,n,J.createIdentifier(a)):e.replaceNode(t,n.parent,J.createElementAccessExpression(n.parent.expression,J.createStringLiteral(a)))}else e.replaceNode(t,n,J.createIdentifier(a))}function Qhe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function $he(e,t,n){if(!t||!uf(t.moduleSpecifier))return;let r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n)?.resolvedModule;if(r)return e.program.getSourceFile(r.resolvedFileName)}var J3=`returnValueCorrect`,Y3=`fixAddReturnStatement`,X3=`fixRemoveBracesFromArrowFunctionBody`,Z3=`fixWrapTheBlockWithParen`,ege=[G.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,G.Type_0_is_not_assignable_to_type_1.code,G.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];A4({errorCodes:ege,fixIds:[Y3,X3,Z3],getCodeActions:function(e){let{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,a=nge(t.getTypeChecker(),n,r,i);if(a)return a.kind===0?I([sge(e,a.expression,a.statement)],jk(a.declaration)?cge(e,a.declaration,a.expression,a.commentSource):void 0):[lge(e,a.declaration,a.expression)]},getAllCodeActions:e=>M4(e,ege,(t,n)=>{let r=nge(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case Y3:ige(t,n.file,r.expression,r.statement);break;case X3:if(!jk(r.declaration))return;age(t,n.file,r.declaration,r.expression,r.commentSource);break;case Z3:if(!jk(r.declaration))return;oge(t,n.file,r.declaration,r.expression);break;default:H.fail(JSON.stringify(e.fixId))}})});function tge(e,t,n){let r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);let i=Cf([r]);return e.createAnonymousType(void 0,i,[],[],[])}function Q3(e,t,n,r){if(!t.body||!tA(t.body)||u(t.body.statements)!==1)return;let i=Ie(t.body.statements);if(iA(i)&&$3(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(gA(i)&&iA(i.statement)){let a=J.createObjectLiteralExpression([J.createPropertyAssignment(i.label,i.statement.expression)]);if($3(e,t,tge(e,i.label,i.statement.expression),n,r))return jk(t)?{declaration:t,kind:1,expression:a,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:a,statement:i,commentSource:i.statement.expression}}else if(tA(i)&&u(i.statements)===1){let a=Ie(i.statements);if(gA(a)&&iA(a.statement)){let o=J.createObjectLiteralExpression([J.createPropertyAssignment(a.label,a.statement.expression)]);if($3(e,t,tge(e,a.label,a.statement.expression),n,r))return{declaration:t,kind:0,expression:o,statement:i,commentSource:a}}}}function $3(e,t,n,r,i){if(i){let r=e.getSignatureFromDeclaration(t);if(r){Qy(t,1024)&&(n=e.createPromiseType(n));let i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,Cf(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function nge(e,t,n,r){let i=nZ(t,n);if(!i.parent)return;let a=K(i.parent,Nu);switch(r){case G.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!a||!a.body||!a.type||!wx(a.type,i)?void 0:Q3(e,a,e.getTypeFromTypeNode(a.type),!1);case G.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!a||!Tk(a.parent)||!a.body)return;let t=a.parent.arguments.indexOf(a);if(t===-1)return;let n=e.getContextualTypeForArgumentAtIndex(a.parent,t);return n?Q3(e,a,n,!0):void 0;case G.Type_0_is_not_assignable_to_type_1.code:if(!R_(i)||!oh(i.parent)&&!aj(i.parent))return;let r=rge(i.parent);return!r||!Nu(r)||!r.body?void 0:Q3(e,r,e.getTypeAtLocation(i.parent),!0)}}function rge(e){switch(e.kind){case 261:case 170:case 209:case 173:case 304:return e.initializer;case 292:return e.initializer&&(cj(e.initializer)?e.initializer.expression:void 0);case 305:case 172:case 307:case 349:case 342:return}}function ige(e,t,n,r){dE(n);let i=g$(t);e.replaceNode(t,r,J.createReturnStatement(n),{leadingTriviaOption:y7.LeadingTriviaOption.Exclude,trailingTriviaOption:y7.TrailingTriviaOption.Exclude,suffix:i?`;`:void 0})}function age(e,t,n,r,i,a){let o=i$(r)?J.createParenthesizedExpression(r):r;dE(i),ZQ(i,o),e.replaceNode(t,n.body,o)}function oge(e,t,n,r){e.replaceNode(t,n.body,J.createParenthesizedExpression(r))}function sge(e,t,n){return D4(J3,y7.ChangeTracker.with(e,r=>ige(r,e.sourceFile,t,n)),G.Add_a_return_statement,Y3,G.Add_all_missing_return_statement)}function cge(e,t,n,r){return D4(J3,y7.ChangeTracker.with(e,i=>age(i,e.sourceFile,t,n,r)),G.Remove_braces_from_arrow_function_body,X3,G.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function lge(e,t,n){return D4(J3,y7.ChangeTracker.with(e,r=>oge(r,e.sourceFile,t,n)),G.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Z3,G.Wrap_all_object_literal_with_parentheses)}var e6=`fixMissingMember`,t6=`fixMissingProperties`,n6=`fixMissingAttributes`,r6=`fixMissingFunctionDeclaration`,uge=[G.Property_0_does_not_exist_on_type_1.code,G.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,G.Property_0_is_missing_in_type_1_but_required_in_type_2.code,G.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,G.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,G.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,G.Cannot_find_name_0.code,G.Type_0_does_not_satisfy_the_expected_type_1.code];A4({errorCodes:uge,getCodeActions(e){let t=e.program.getTypeChecker(),n=dge(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n)return n.kind===3?[D4(t6,y7.ChangeTracker.with(e,t=>Ege(t,e,n)),G.Add_missing_properties,t6,G.Add_all_missing_properties)]:n.kind===4?[D4(n6,y7.ChangeTracker.with(e,t=>Tge(t,e,n)),G.Add_missing_attributes,n6,G.Add_all_missing_attributes)]:n.kind===2||n.kind===5?[D4(r6,y7.ChangeTracker.with(e,t=>wge(t,e,n)),[G.Add_missing_function_declaration_0,n.token.text],r6,G.Add_all_missing_function_declarations)]:n.kind===1?[D4(e6,y7.ChangeTracker.with(e,t=>Cge(t,e.program.getTypeChecker(),n)),[G.Add_missing_enum_member_0,n.token.text],e6,G.Add_all_missing_members)]:de(xge(e,n),fge(e,n))},fixIds:[e6,r6,t6,n6],getAllCodeActions:e=>{let{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Set,a=new Map;return j4(y7.ChangeTracker.with(e,t=>{N4(e,uge,o=>{let s=dge(o.file,o.start,o.code,r,e.program);if(s!==void 0&&Jx(i,mB(s.parentDeclaration)+`#`+(s.kind===3?s.identifier||mB(s.token):s.token.text))){if(n===r6&&(s.kind===2||s.kind===5))wge(t,e,s);else if(n===t6&&s.kind===3)Ege(t,e,s);else if(n===n6&&s.kind===4)Tge(t,e,s);else if(s.kind===1&&Cge(t,r,s),s.kind===0){let{parentDeclaration:e,token:t}=s,n=oe(a,e,()=>[]);n.some(e=>e.token.text===t.text)||n.push(s)}}}),a.forEach((n,i)=>{let o=$O(i)?void 0:Mge(i,r);for(let i of n){if(o?.some(e=>{let t=a.get(e);return!!t&&t.some(({token:e})=>e.text===i.token.text)}))continue;let{parentDeclaration:n,declSourceFile:s,modifierFlags:c,token:l,call:u,isJSFile:d}=i;if(u&&!vO(l))Sge(e,t,u,l,c&256,n,s);else if(d&&!wA(n)&&!$O(n))mge(t,s,n,l,!!(c&256));else{let e=_ge(r,n,l);vge(t,s,n,l.text,e,c&256)}}})}))}});function dge(e,t,n,r,i){let a=nZ(e,t),o=a.parent;if(n===G.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(a.kind===19&&Sk(o)&&Tk(o.parent)))return;let e=x(o.parent.arguments,e=>e===o);if(e<0)return;let t=r.getResolvedSignature(o.parent);if(!(t&&t.declaration&&t.parameters[e]))return;let n=t.parameters[e].valueDeclaration;if(!(n&&FO(n)&&Y(n.name)))return;let i=$e(r.getUnmatchedProperties(r.getTypeAtLocation(o),r.getParameterType(t,e).getNonNullableType(),!1,!1));return u(i)?{kind:3,token:n.name,identifier:n.name.text,properties:i,parentDeclaration:o}:void 0}if(a.kind===19||qk(o)||pA(o)){let e=(qk(o)||pA(o))&&o.expression?o.expression:o;if(Sk(e)){let t=qk(o)?r.getTypeFromTypeNode(o.type):r.getContextualType(e)||r.getTypeAtLocation(e),n=$e(r.getUnmatchedProperties(r.getTypeAtLocation(o),t.getNonNullableType(),!1,!1));return u(n)?{kind:3,token:o,identifier:void 0,properties:n,parentDeclaration:e,indentation:pA(e.parent)||Vk(e.parent)?0:void 0}:void 0}}if(!Bl(a))return;if(Y(a)&&rf(o)&&o.initializer&&Sk(o.initializer)){let e=(r.getContextualType(a)||r.getTypeAtLocation(a))?.getNonNullableType(),t=$e(r.getUnmatchedProperties(r.getTypeAtLocation(o.initializer),e,!1,!1));return u(t)?{kind:3,token:a,identifier:a.text,properties:t,parentDeclaration:o.initializer}:void 0}if(Y(a)&&Jd(a.parent)){let e=Oge(r,zS(i.getCompilerOptions()),a.parent);return u(e)?{kind:4,token:a,attributes:e,parentDeclaration:a.parent}:void 0}if(Y(a)){let t=r.getContextualType(a)?.getNonNullableType();if(t&&Wx(t)&16){let n=Pe(r.getSignaturesOfType(t,0));return n===void 0?void 0:{kind:5,token:a,signature:n,sourceFile:e,parentDeclaration:jge(a)}}if(Tk(o)&&o.expression===a)return{kind:2,token:a,call:o,sourceFile:e,modifierFlags:0,parentDeclaration:jge(a)}}if(!Ck(o))return;let s=qZ(r.getTypeAtLocation(o.expression)),c=s.symbol;if(!c||!c.declarations)return;if(Y(a)&&Tk(o.parent)){let t=y(c.declarations,DA),n=t?.getSourceFile();if(t&&n&&!q$(i,n))return{kind:2,token:a,call:o.parent,sourceFile:n,modifierFlags:32,parentDeclaration:t};let r=y(c.declarations,vj);if(e.commonJsModuleIndicator)return;if(r&&!q$(i,r))return{kind:2,token:a,call:o.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}let l=y(c.declarations,zu);if(!l&&vO(a))return;let d=l||y(c.declarations,e=>wA(e)||$O(e));if(d&&!q$(i,d.getSourceFile())){let e=!$O(d)&&(s.target||s)!==r.getDeclaredTypeOfSymbol(c);if(e&&(vO(a)||wA(d)))return;let t=d.getSourceFile(),n=$O(d)?0:(e?256:0)|(B$(a.text)?2:0),i=tg(t);return{kind:0,token:a,call:vt(o.parent,Tk),modifierFlags:n,parentDeclaration:d,declSourceFile:t,isJSFile:i}}let f=y(c.declarations,EA);if(f&&!(s.flags&1056)&&!vO(a)&&!q$(i,f.getSourceFile()))return{kind:1,token:a,parentDeclaration:f}}function fge(e,t){return t.isJSFile?xn(pge(e,t)):gge(e,t)}function pge(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(wA(t)||$O(t))return;let a=y7.ChangeTracker.with(e,e=>mge(e,n,t,i,!!(r&256)));if(a.length!==0)return D4(e6,a,[r&256?G.Initialize_static_property_0:vO(i)?G.Declare_a_private_field_named_0:G.Initialize_property_0_in_the_constructor,i.text],e6,G.Add_all_missing_members)}function mge(e,t,n,r,i){let a=r.text;if(i){if(n.kind===232)return;let r=n.name.getText(),i=hge(J.createIdentifier(r),a);e.insertNodeAfter(t,n,i)}else if(vO(r)){let r=J.createPropertyDeclaration(void 0,a,void 0,void 0,void 0),i=yge(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{let r=Dy(n);if(!r)return;let i=hge(J.createThis(),a);e.insertNodeAtConstructorEnd(t,r,i)}}function hge(e,t){return J.createExpressionStatement(J.createAssignment(J.createPropertyAccessExpression(e,t),a6()))}function gge(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){let a=i.text,o=r&256,s=_ge(e.program.getTypeChecker(),t,i),c=r=>y7.ChangeTracker.with(e,e=>vge(e,n,t,a,s,r)),l=[D4(e6,c(r&256),[o?G.Declare_static_property_0:G.Declare_property_0,a],e6,G.Add_all_missing_members)];return o||vO(i)?l:(r&2&&l.unshift(E4(e6,c(2),[G.Declare_private_property_0,a])),l.push(bge(e,n,t,i.text,s)),l)}function _ge(e,t,n){let r;if(n.parent.parent.kind===227){let i=n.parent.parent,a=n.parent===i.left?i.right:i.left,o=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(a)));r=e.typeToTypeNode(o,t,1,8)}else{let t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1,8):void 0}return r||J.createKeywordTypeNode(133)}function vge(e,t,n,r,i,a){let o=a?J.createNodeArray(J.createModifiersFromModifierFlags(a)):void 0,s=zu(n)?J.createPropertyDeclaration(o,r,void 0,i,void 0):J.createPropertySignature(void 0,r,void 0,i),c=yge(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function yge(e){let t;for(let n of e.members){if(!RO(n))break;t=n}return t}function bge(e,t,n,r,i){let a=J.createKeywordTypeNode(154),o=J.createParameterDeclaration(void 0,void 0,`x`,void 0,a,void 0),s=J.createIndexSignature(void 0,[o],i);return E4(e6,y7.ChangeTracker.with(e,e=>e.insertMemberAtStart(t,n,s)),[G.Add_index_signature_for_property_0,r])}function xge(e,t){let{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:a,call:o}=t;if(o===void 0)return;let s=a.text,c=t=>y7.ChangeTracker.with(e,i=>Sge(e,i,o,a,t,n,r)),l=[D4(e6,c(i&256),[i&256?G.Declare_static_method_0:G.Declare_method_0,s],e6,G.Add_all_missing_members)];return i&2&&l.unshift(E4(e6,c(2),[G.Declare_private_method_0,s])),l}function Sge(e,t,n,r,i,a,o){let s=D3(o,e.program,e.preferences,e.host),c=Y6(zu(a)?175:174,e,s,n,r,i,a),l=kge(a,n);l?t.insertNodeAfter(o,l,c):t.insertMemberAtStart(o,a,c),s.writeFixes(t)}function Cge(e,t,{token:n,parentDeclaration:r}){let i=F(r.members,e=>{let n=t.getTypeAtLocation(e);return!!(n&&n.flags&402653316)}),a=r.getSourceFile(),o=J.createEnumMember(n,i?J.createStringLiteral(n.text):void 0),s=Re(r.members);s?e.insertNodeInListAfter(a,s,o,r.members):e.insertMemberAtStart(a,r,o)}function wge(e,t,n){let r=aQ(t.sourceFile,t.preferences),i=D3(t.sourceFile,t.program,t.preferences,t.host),a=n.kind===2?Y6(263,t,i,n.call,Gc(n.token),n.modifierFlags,n.parentDeclaration):J6(263,t,r,n.signature,e8(G.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);a===void 0&&H.fail(`fixMissingFunctionDeclaration codefix got unexpected error.`),pA(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,a,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,a),i.writeFixes(e)}function Tge(e,t,n){let r=D3(t.sourceFile,t.program,t.preferences,t.host),i=aQ(t.sourceFile,t.preferences),a=t.program.getTypeChecker(),o=n.parentDeclaration.attributes,s=F(o.properties,sj),c=k(n.attributes,e=>{let o=i6(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration),s=J.createIdentifier(e.name),c=J.createJsxAttribute(s,J.createJsxExpression(void 0,o));return Zw(s,c),c}),l=J.createJsxAttributes(s?[...c,...o.properties]:[...o.properties,...c]),u={prefix:o.pos===o.end?` `:void 0};e.replaceNode(t.sourceFile,o,l,u),r.writeFixes(e)}function Ege(e,t,n){let r=D3(t.sourceFile,t.program,t.preferences,t.host),i=aQ(t.sourceFile,t.preferences),a=zS(t.program.getCompilerOptions()),o=t.program.getTypeChecker(),s=k(n.properties,e=>{let s=i6(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration);return J.createPropertyAssignment(Age(e,a,i,o),s)}),c={leadingTriviaOption:y7.LeadingTriviaOption.Exclude,trailingTriviaOption:y7.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,J.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function i6(e,t,n,r,i,a){if(i.flags&3)return a6();if(i.flags&134217732)return J.createStringLiteral(``,r===0);if(i.flags&8)return J.createNumericLiteral(0);if(i.flags&64)return J.createBigIntLiteral(`0n`);if(i.flags&16)return J.createFalse();if(i.flags&1056){let e=i.symbol.exports?Fe(i.symbol.exports.values()):i.symbol,n=i.symbol.parent&&i.symbol.parent.flags&256?i.symbol.parent:i.symbol,r=t.symbolToExpression(n,111551,void 0,64);return e===void 0||r===void 0?J.createNumericLiteral(0):J.createPropertyAccessExpression(r,t.symbolToString(e))}if(i.flags&256)return J.createNumericLiteral(i.value);if(i.flags&2048)return J.createBigIntLiteral(i.value);if(i.flags&128)return J.createStringLiteral(i.value,r===0);if(i.flags&512)return i===t.getFalseType()||i===t.getFalseType(!0)?J.createFalse():J.createTrue();if(i.flags&65536)return J.createNull();if(i.flags&1048576)return p(i.types,i=>i6(e,t,n,r,i,a))??a6();if(t.isArrayLikeType(i))return J.createArrayLiteralExpression();if(Dge(i)){let o=k(t.getPropertiesOfType(i),i=>{let o=i6(e,t,n,r,t.getTypeOfSymbol(i),a);return J.createPropertyAssignment(i.name,o)});return J.createObjectLiteralExpression(o,!0)}if(Wx(i)&16){if(y(i.symbol.declarations||c,vn(XO,zO,BO))===void 0)return a6();let o=t.getSignaturesOfType(i,0);return o===void 0?a6():J6(219,e,r,o[0],e8(G.Function_not_implemented.message,r),void 0,void 0,void 0,a,n)??a6()}if(Wx(i)&1){let e=Ux(i.symbol);if(e===void 0||nb(e))return a6();let t=Dy(e);return t&&u(t.parameters)?a6():J.createNewExpression(J.createIdentifier(i.symbol.name),void 0,void 0)}return a6()}function a6(){return J.createIdentifier(`undefined`)}function Dge(e){return e.flags&524288&&(Wx(e)&128||e.symbol&&vt(Be(e.symbol.declarations),$O))}function Oge(e,t,n){let r=e.getContextualType(n.attributes);if(r===void 0)return c;let i=r.getProperties();if(!u(i))return c;let a=new Set;for(let t of n.attributes.properties)if(aj(t)&&a.add(CT(t.name)),sj(t)){let n=e.getTypeAtLocation(t.expression);for(let e of n.getProperties())a.add(e.escapedName)}return E(i,e=>Ws(e.name,t,1)&&!(e.flags&16777216||jx(e)&48||a.has(e.escapedName)))}function kge(e,t){if($O(e))return;let n=K(t,e=>BO(e)||HO(e));return n&&n.parent===e?n:void 0}function Age(e,t,n,r){if(wf(e)){let t=r.symbolToNode(e,111551,void 0,void 0,1);if(t&&NO(t))return t}return lT(e.name,t,n===0,!1,!1)}function jge(e){if(K(e,cj)){let t=K(e.parent,pA);if(t)return t}return Yf(e)}function Mge(e,t){let n=[];for(;e;){let r=q_(e),i=r&&t.getSymbolAtLocation(r.expression);if(!i)break;let a=i.flags&2097152?t.getAliasedSymbol(i):i,o=a.declarations&&y(a.declarations,zu);if(!o)break;n.push(o),e=o}return n}var o6=`addMissingNewOperator`,Nge=[G.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];A4({errorCodes:Nge,getCodeActions(e){let{sourceFile:t,span:n}=e;return[D4(o6,y7.ChangeTracker.with(e,e=>Pge(e,t,n)),G.Add_missing_new_operator_to_call,o6,G.Add_missing_new_operator_to_all_calls)]},fixIds:[o6],getAllCodeActions:e=>M4(e,Nge,(t,n)=>Pge(t,e.sourceFile,n))});function Pge(e,t,n){let r=yt(Fge(t,n),Tk),i=J.createNewExpression(r.expression,r.typeArguments,r.arguments);e.replaceNode(t,r,i)}function Fge(e,t){let n=nZ(e,t.start),r=ac(t);for(;n.endl6(t,e.program,e.preferences,e.host,r,i)),[u(i)>1?G.Add_missing_parameters_to_0:G.Add_missing_parameter_to_0,n],s6,G.Add_all_missing_parameters)),u(a)&&I(o,D4(c6,y7.ChangeTracker.with(e,t=>l6(t,e.program,e.preferences,e.host,r,a)),[u(a)>1?G.Add_optional_parameters_to_0:G.Add_optional_parameter_to_0,n],c6,G.Add_all_optional_parameters)),o},getAllCodeActions:e=>M4(e,Ige,(t,n)=>{let r=Lge(e.sourceFile,e.program,n.start);if(r){let{declarations:n,newParameters:i,newOptionalParameters:a}=r;e.fixId===s6&&l6(t,e.program,e.preferences,e.host,n,i),e.fixId===c6&&l6(t,e.program,e.preferences,e.host,n,a)}})});function Lge(e,t,n){let r=K(nZ(e,n),Tk);if(r===void 0||u(r.arguments)===0)return;let i=t.getTypeChecker(),a=E(i.getTypeAtLocation(r.expression).symbol.declarations,Bge);if(a===void 0)return;let o=Re(a);if(o===void 0||o.body===void 0||q$(t,o.getSourceFile()))return;let s=Rge(o);if(s===void 0)return;let c=[],l=[],d=u(o.parameters),f=u(r.arguments);if(d>f)return;let p=[o,...Hge(o,a)];for(let e=0,t=0,n=0;e{let s=Yf(i),c=D3(s,t,n,r);u(i.parameters)?e.replaceNodeRangeWithNodes(s,Ie(i.parameters),ze(i.parameters),Vge(c,o,i,a),{joiner:`, `,indentation:0,leadingTriviaOption:y7.LeadingTriviaOption.IncludeAll,trailingTriviaOption:y7.TrailingTriviaOption.Include}):d(Vge(c,o,i,a),(t,n)=>{u(i.parameters)===0&&n===0?e.insertNodeAt(s,i.parameters.end,t):e.insertNodeAtEndOfList(s,i.parameters,t)}),c.writeFixes(e)})}function Bge(e){switch(e.kind){case 263:case 219:case 175:case 220:return!0;default:return!1}}function Vge(e,t,n,r){let i=k(n.parameters,e=>J.createParameterDeclaration(e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer));for(let{pos:n,declaration:a}of r){let r=n>0?i[n-1]:void 0;i.splice(n,0,J.updateParameterDeclaration(a,a.modifiers,a.dotDotDotToken,a.name,r&&r.questionToken?J.createToken(58):a.questionToken,Kge(e,a.type,t),a.initializer))}return i}function Hge(e,t){let n=[];for(let r of t)if(Uge(r)){if(u(r.parameters)===u(e.parameters)){n.push(r);continue}if(u(r.parameters)>u(e.parameters))return[]}return n}function Uge(e){return Bge(e)&&e.body===void 0}function Wge(e,t,n){return J.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function Gge(e,t){return u(e)&&F(e,e=>tM4(e,Xge,(t,n,r)=>{let i=Qge(n.file,n.start);if(i!==void 0)switch(e.fixId){case u6:{let t=$ge(i,e.host,n.code);t&&r.push(Zge(n.file.fileName,t));break}default:H.fail(`Bad fixId: ${e.fixId}`)}})});function Zge(e,t){return{type:`install package`,file:e,packageName:t}}function Qge(e,t){let n=vt(nZ(e,t),tO);if(!n)return;let r=n.text,{packageName:i}=NR(r);return tc(i)?void 0:i}function $ge(e,t,n){return n===Jge?YT.has(e)?`@types/node`:void 0:t.isKnownTypesPackageName?.call(t,e)?ZR(e):void 0}var e_e=[G.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,G.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,G.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,G.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,G.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,G.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],d6=`fixClassDoesntImplementInheritedAbstractMember`;A4({errorCodes:e_e,getCodeActions:function(e){let{sourceFile:t,span:n}=e,r=y7.ChangeTracker.with(e,r=>n_e(t_e(t,n.start),t,e,r,e.preferences));return r.length===0?void 0:[D4(d6,r,G.Implement_inherited_abstract_class,d6,G.Implement_all_inherited_abstract_classes)]},fixIds:[d6],getAllCodeActions:function(e){let t=new Set;return M4(e,e_e,(n,r)=>{let i=t_e(r.file,r.start);Jx(t,mB(i))&&n_e(i,e.sourceFile,e,n,e.preferences)})}});function t_e(e,t){return yt(nZ(e,t).parent,zu)}function n_e(e,t,n,r,i){let a=K_(e),o=n.program.getTypeChecker(),s=o.getTypeAtLocation(a),c=o.getPropertiesOfType(s).filter(r_e),l=D3(t,n.program,i,n.host);K6(e,c,t,n,i,l,n=>r.insertMemberAtStart(t,e,n)),l.writeFixes(r)}function r_e(e){let t=fb(Ie(e.getDeclarations()));return!(t&2)&&!!(t&64)}var f6=`classSuperMustPrecedeThisAccess`,i_e=[G.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];A4({errorCodes:i_e,getCodeActions(e){let{sourceFile:t,span:n}=e,r=o_e(t,n.start);if(!r)return;let{constructor:i,superCall:a}=r;return[D4(f6,y7.ChangeTracker.with(e,e=>a_e(e,t,i,a)),G.Make_super_call_the_first_statement_in_the_constructor,f6,G.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[f6],getAllCodeActions(e){let{sourceFile:t}=e,n=new Set;return M4(e,i_e,(e,r)=>{let i=o_e(r.file,r.start);if(!i)return;let{constructor:a,superCall:o}=i;Jx(n,mB(a.parent))&&a_e(e,t,a,o)})}});function a_e(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function o_e(e,t){let n=nZ(e,t);if(n.kind!==110)return;let r=bh(n),i=s_e(r.body);return i&&!i.expression.arguments.some(e=>Ck(e)&&e.expression===n)?{constructor:r,superCall:i}:void 0}function s_e(e){return iA(e)&&zm(e.expression)?e:ju(e)?void 0:pP(e,s_e)}var p6=`constructorForDerivedNeedSuperCall`,c_e=[G.Constructors_for_derived_classes_must_contain_a_super_call.code];A4({errorCodes:c_e,getCodeActions(e){let{sourceFile:t,span:n}=e,r=l_e(t,n.start);return[D4(p6,y7.ChangeTracker.with(e,e=>u_e(e,t,r)),G.Add_missing_super_call,p6,G.Add_all_missing_super_calls)]},fixIds:[p6],getAllCodeActions:e=>M4(e,c_e,(t,n)=>u_e(t,e.sourceFile,l_e(n.file,n.start)))});function l_e(e,t){let n=nZ(e,t);return H.assert(HO(n.parent),`token should be at the constructor declaration`),n.parent}function u_e(e,t,n){let r=J.createExpressionStatement(J.createCallExpression(J.createSuper(),void 0,c));e.insertNodeAtConstructorStart(t,n,r)}var d_e=`fixEnableJsxFlag`,f_e=[G.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];A4({errorCodes:f_e,getCodeActions:function(e){let{configFile:t}=e.program.getCompilerOptions();if(t!==void 0)return[E4(d_e,y7.ChangeTracker.with(e,e=>p_e(e,t)),G.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[d_e],getAllCodeActions:e=>M4(e,f_e,t=>{let{configFile:n}=e.program.getCompilerOptions();n!==void 0&&p_e(t,n)})});function p_e(e,t){n8(e,t,`jsx`,J.createStringLiteral(`react`))}var m6=`fixNaNEquality`,m_e=[G.This_condition_will_always_return_0.code];A4({errorCodes:m_e,getCodeActions(e){let{sourceFile:t,span:n,program:r}=e,i=h_e(r,t,n);if(i===void 0)return;let{suggestion:a,expression:o,arg:s}=i;return[D4(m6,y7.ChangeTracker.with(e,e=>g_e(e,t,s,o)),[G.Use_0,a],m6,G.Use_Number_isNaN_in_all_conditions)]},fixIds:[m6],getAllCodeActions:e=>M4(e,m_e,(t,n)=>{let r=h_e(e.program,n.file,xc(n.start,n.length));r&&g_e(t,n.file,r.arg,r.expression)})});function h_e(e,t,n){let r=y(e.getSemanticDiagnostics(t),e=>e.start===n.start&&e.length===n.length);if(r===void 0||r.relatedInformation===void 0)return;let i=y(r.relatedInformation,e=>e.code===G.Did_you_mean_0.code);if(i===void 0||i.file===void 0||i.start===void 0||i.length===void 0)return;let a=o8(i.file,xc(i.start,i.length));if(a!==void 0&&q(a)&&Rk(a.parent))return{suggestion:__e(i.messageText),expression:a.parent,arg:a}}function g_e(e,t,n,r){let i=J.createCallExpression(J.createPropertyAccessExpression(J.createIdentifier(`Number`),J.createIdentifier(`isNaN`)),void 0,[n]),a=r.operatorToken.kind;e.replaceNode(t,r,a===38||a===36?J.createPrefixUnaryExpression(54,i):i)}function __e(e){let[,t]=DW(e,` `,0).match(/'(.*)'/)||[];return t}A4({errorCodes:[G.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,G.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,G.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_node20_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){let t=e.program.getCompilerOptions(),{configFile:n}=t;if(n===void 0)return;let r=[],i=BS(t);if(i>=5&&i<99){let t=y7.ChangeTracker.with(e,e=>{n8(e,n,`module`,J.createStringLiteral(`esnext`))});r.push(E4(`fixModuleOption`,t,[G.Set_the_module_option_in_your_configuration_file_to_0,`esnext`]))}let a=zS(t);if(a<4||a>99){let t=y7.ChangeTracker.with(e,e=>{if(!_h(n))return;let t=[[`target`,J.createStringLiteral(`es2017`)]];i===1&&t.push([`module`,J.createStringLiteral(`commonjs`)]),t8(e,n,t)});r.push(E4(`fixTargetOption`,t,[G.Set_the_target_option_in_your_configuration_file_to_0,`es2017`]))}return r.length?r:void 0}});var h6=`fixPropertyAssignment`,v_e=[G.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];A4({errorCodes:v_e,fixIds:[h6],getCodeActions(e){let{sourceFile:t,span:n}=e,r=b_e(t,n.start);return[D4(h6,y7.ChangeTracker.with(e,t=>y_e(t,e.sourceFile,r)),[G.Change_0_to_1,`=`,`:`],h6,[G.Switch_each_misused_0_to_1,`=`,`:`])]},getAllCodeActions:e=>M4(e,v_e,(e,t)=>y_e(e,t.file,b_e(t.file,t.start)))});function y_e(e,t,n){e.replaceNode(t,n,J.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function b_e(e,t){return yt(nZ(e,t).parent,hj)}var g6=`extendsInterfaceBecomesImplements`,x_e=[G.Cannot_extend_an_interface_0_Did_you_mean_implements.code];A4({errorCodes:x_e,getCodeActions(e){let{sourceFile:t}=e,n=S_e(t,e.span.start);if(!n)return;let{extendsToken:r,heritageClauses:i}=n;return[D4(g6,y7.ChangeTracker.with(e,e=>C_e(e,t,r,i)),G.Change_extends_to_implements,g6,G.Change_all_extended_interfaces_to_implements)]},fixIds:[g6],getAllCodeActions:e=>M4(e,x_e,(e,t)=>{let n=S_e(t.file,t.start);n&&C_e(e,t.file,n.extendsToken,n.heritageClauses)})});function S_e(e,t){let n=Sh(nZ(e,t)).heritageClauses,r=n[0].getFirstToken();return r.kind===96?{extendsToken:r,heritageClauses:n}:void 0}function C_e(e,t,n,r){if(e.replaceNode(t,n,J.createToken(119)),r.length===2&&r[0].token===96&&r[1].token===119){let n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},J.createToken(28));let a=t.text,o=n.end;for(;oD_e(e,t,n)),[G.Add_0_to_unresolved_variable,n.className||`this`],_6,G.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[_6],getAllCodeActions:e=>M4(e,T_e,(t,n)=>{let r=E_e(n.file,n.start,n.code);r&&D_e(t,e.sourceFile,r)})});function E_e(e,t,n){let r=nZ(e,t);if(Y(r)||vO(r))return{node:r,className:n===w_e?Sh(r).name.text:void 0}}function D_e(e,t,{node:n,className:r}){dE(n),e.replaceNode(t,n,J.createPropertyAccessExpression(r?J.createIdentifier(r):J.createThis(),n))}var v6=`fixInvalidJsxCharacters_expression`,y6=`fixInvalidJsxCharacters_htmlEntity`,O_e=[G.Unexpected_token_Did_you_mean_or_gt.code,G.Unexpected_token_Did_you_mean_or_rbrace.code];A4({errorCodes:O_e,fixIds:[v6,y6],getCodeActions(e){let{sourceFile:t,preferences:n,span:r}=e,i=y7.ChangeTracker.with(e,e=>b6(e,n,t,r.start,!1)),a=y7.ChangeTracker.with(e,e=>b6(e,n,t,r.start,!0));return[D4(v6,i,G.Wrap_invalid_character_in_an_expression_container,v6,G.Wrap_all_invalid_characters_in_an_expression_container),D4(y6,a,G.Convert_invalid_character_to_its_html_entity_code,y6,G.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return M4(e,O_e,(t,n)=>b6(t,e.preferences,n.file,n.start,e.fixId===y6))}});var k_e={">":`>`,"}":`}`};function A_e(e){return qe(k_e,e)}function b6(e,t,n,r,i){let a=n.getText()[r];if(!A_e(a))return;let o=i?k_e[a]:`{${o$(n,t,a)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},o)}var x6=`deleteUnmatchedParameter`,j_e=`renameUnmatchedParameter`,M_e=[G.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];A4({fixIds:[x6,j_e],errorCodes:M_e,getCodeActions:function(e){let{sourceFile:t,span:n}=e,r=[],i=F_e(t,n.start);if(i)return I(r,N_e(e,i)),I(r,P_e(e,i)),r},getAllCodeActions:function(e){let t=new Map;return j4(y7.ChangeTracker.with(e,n=>{N4(e,M_e,({file:e,start:n})=>{let r=F_e(e,n);r&&t.set(r.signature,I(t.get(r.signature),r.jsDocParameterTag))}),t.forEach((t,r)=>{if(e.fixId===x6){let e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,t=>!e.has(t))}})}))}});function N_e(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){return D4(x6,y7.ChangeTracker.with(e,t=>t.filterJSDocTags(e.sourceFile,n,e=>e!==r)),[G.Delete_unused_param_tag_0,t.getText(e.sourceFile)],x6,G.Delete_all_unused_param_tags)}function P_e(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!u(r.parameters))return;let a=e.sourceFile,o=Ml(r),s=new Set;for(let e of o)Yj(e)&&Y(e.name)&&s.add(e.name.escapedText);let c=p(r.parameters,e=>Y(e.name)&&!s.has(e.name.escapedText)?e.name.getText(a):void 0);if(c===void 0)return;let l=J.updateJSDocParameterTag(i,i.tagName,J.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment);return E4(j_e,y7.ChangeTracker.with(e,e=>e.replaceJSDocComment(a,n,k(o,e=>e===i?l:e))),[G.Rename_param_tag_name_0_to_1,t.getText(a),c])}function F_e(e,t){let n=nZ(e,t);if(n.parent&&Yj(n.parent)&&Y(n.parent.name)){let e=n.parent,t=y_(e),r=__(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}var S6=`fixUnreferenceableDecoratorMetadata`;A4({errorCodes:[G.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],getCodeActions:e=>{let t=I_e(e.sourceFile,e.program,e.span.start);if(!t)return;let n=y7.ChangeTracker.with(e,n=>t.kind===277&&R_e(n,e.sourceFile,t,e.program)),r=y7.ChangeTracker.with(e,n=>L_e(n,e.sourceFile,t,e.program)),i;return n.length&&(i=I(i,E4(S6,n,G.Convert_named_imports_to_namespace_import))),r.length&&(i=I(i,E4(S6,r,G.Use_import_type))),i},fixIds:[S6]});function I_e(e,t,n){let r=vt(nZ(e,n),Y);return!r||r.parent.kind!==184?void 0:y(t.getTypeChecker().getSymbolAtLocation(r)?.declarations||c,vn(NA,HA,jA))}function L_e(e,t,n,r){if(n.kind===272){e.insertModifierBefore(t,156,n.name);return}let i=n.kind===274?n:n.parent.parent;if(i.name&&i.namedBindings)return;let a=r.getTypeChecker();Qg(i,e=>{if(Nx(e.symbol,a).flags&111551)return!0})||e.insertModifierBefore(t,156,i)}function R_e(e,t,n,r){b0.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}var C6=`unusedIdentifier`,w6=`unusedIdentifier_prefix`,T6=`unusedIdentifier_delete`,E6=`unusedIdentifier_deleteImports`,D6=`unusedIdentifier_infer`,z_e=[G._0_is_declared_but_its_value_is_never_read.code,G._0_is_declared_but_never_used.code,G.Property_0_is_declared_but_its_value_is_never_read.code,G.All_imports_in_import_declaration_are_unused.code,G.All_destructured_elements_are_unused.code,G.All_variables_are_unused.code,G.All_type_parameters_are_unused.code];A4({errorCodes:z_e,getCodeActions(e){let{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,a=r.getTypeChecker(),o=r.getSourceFiles(),s=nZ(n,e.span.start);if($j(s))return[O6(y7.ChangeTracker.with(e,e=>e.delete(n,s)),G.Remove_template_tag)];if(s.kind===30)return[O6(y7.ChangeTracker.with(e,e=>V_e(e,n,s)),G.Remove_type_parameters)];let c=H_e(s);if(c)return[D4(C6,y7.ChangeTracker.with(e,e=>e.delete(n,c)),[G.Remove_import_from_0,Kx(c)],E6,G.Delete_all_unused_imports)];if(k6(s)){let t=y7.ChangeTracker.with(e,e=>A6(n,s,e,a,o,r,i,!1));if(t.length)return[D4(C6,t,[G.Remove_unused_declaration_for_Colon_0,s.getText(n)],E6,G.Delete_all_unused_imports)]}if(vk(s.parent)||yk(s.parent)){if(FO(s.parent.parent)){let t=s.parent.elements,r=[t.length>1?G.Remove_unused_declarations_for_Colon_0:G.Remove_unused_declaration_for_Colon_0,k(t,e=>e.getText(n)).join(`, `)];return[O6(y7.ChangeTracker.with(e,e=>G_e(e,n,s.parent)),r)]}return[O6(y7.ChangeTracker.with(e,t=>K_e(e,t,n,s.parent)),G.Remove_unused_destructuring_declaration)]}if(U_e(n,s))return[O6(y7.ChangeTracker.with(e,e=>W_e(e,n,s.parent)),G.Remove_variable_statement)];if(Y(s)&&SA(s.parent))return[O6(y7.ChangeTracker.with(e,e=>nve(e,n,s.parent)),[G.Remove_unused_declaration_for_Colon_0,s.getText(n)])];let l=[];if(s.kind===140){let t=y7.ChangeTracker.with(e,e=>B_e(e,n,s)),r=yt(s.parent,ck).typeParameter.name.text;l.push(D4(C6,t,[G.Replace_infer_0_with_unknown,r],D6,G.Replace_all_unused_infer_with_unknown))}else{let t=y7.ChangeTracker.with(e,e=>A6(n,s,e,a,o,r,i,!1));if(t.length){let e=NO(s.parent)?s.parent:s;l.push(O6(t,[G.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}let u=y7.ChangeTracker.with(e,e=>q_e(e,t,n,s));return u.length&&l.push(D4(C6,u,[G.Prefix_0_with_an_underscore,s.getText(n)],w6,G.Prefix_all_unused_declarations_with_where_possible)),l},fixIds:[w6,T6,E6,D6],getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),a=n.getSourceFiles();return M4(e,z_e,(o,s)=>{let c=nZ(t,s.start);switch(e.fixId){case w6:q_e(o,s.code,t,c);break;case E6:{let e=H_e(c);e?o.delete(t,e):k6(c)&&A6(t,c,o,i,a,n,r,!0);break}case T6:if(c.kind===140||k6(c))break;if($j(c))o.delete(t,c);else if(c.kind===30)V_e(o,t,c);else if(vk(c.parent)){if(c.parent.parent.initializer)break;(!FO(c.parent.parent)||Z_e(c.parent.parent,i,a))&&o.delete(t,c.parent.parent)}else if(yk(c.parent.parent)&&c.parent.parent.parent.initializer)break;else U_e(t,c)?W_e(o,t,c.parent):Y(c)&&SA(c.parent)?nve(o,t,c.parent):A6(t,c,o,i,a,n,r,!0);break;case D6:c.kind===140&&B_e(o,t,c);break;default:H.fail(JSON.stringify(e.fixId))}})}});function B_e(e,t,n){e.replaceNode(t,n.parent,J.createKeywordTypeNode(159))}function O6(e,t){return D4(C6,e,t,T6,G.Delete_all_unused_declarations)}function V_e(e,t,n){e.delete(t,H.checkDefined(yt(n.parent,em).typeParameters,`The type parameter to delete should exist`))}function k6(e){return e.kind===102||e.kind===80&&(e.parent.kind===277||e.parent.kind===274)}function H_e(e){return e.kind===102?vt(e.parent,MA):void 0}function U_e(e,t){return xA(t.parent)&&Ie(t.parent.getChildren(e))===t}function W_e(e,t,n){e.delete(t,n.parent.kind===244?n.parent:n)}function G_e(e,t,n){d(n.elements,n=>e.delete(t,n))}function K_e(e,t,n,{parent:r}){if(bA(r)&&r.initializer&&ld(r.initializer))if(xA(r.parent)&&u(r.parent.declarations)>1){let i=r.parent.parent,a=i.getStart(n),o=i.end;t.delete(n,r),t.insertNodeAt(n,o,r.initializer,{prefix:zQ(e.host,e.formatContext.options)+n.text.slice(XQ(n.text,a-1),a),suffix:g$(n)?`;`:``})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}function q_e(e,t,n,r){t!==G.Property_0_is_declared_but_its_value_is_never_read.code&&(r.kind===140&&(r=yt(r.parent,ck).typeParameter.name),Y(r)&&J_e(r)&&(e.replaceNode(n,r,J.createIdentifier(`_${r.text}`)),FO(r.parent)&&il(r.parent).forEach(t=>{Y(t.name)&&e.replaceNode(n,t.name,J.createIdentifier(`_${t.name.text}`))})))}function J_e(e){switch(e.parent.kind){case 170:case 169:return!0;case 261:switch(e.parent.parent.parent.kind){case 251:case 250:return!0}}return!1}function A6(e,t,n,r,i,a,o,s){Y_e(t,n,e,r,i,a,o,s),Y(t)&&u5.Core.eachSymbolReferenceInFile(t,r,e,t=>{Ck(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&tve(t)&&n.delete(e,t.parent.parent)})}function Y_e(e,t,n,r,i,a,o,s){let{parent:c}=e;if(FO(c))X_e(t,n,c,r,i,a,o,s);else if(!(s&&Y(e)&&u5.Core.isSymbolReferencedInFile(e,r,n))){let r=NA(c)?e:NO(c)?c.parent:c;H.assert(r!==n,`should not delete whole source file`),t.delete(n,r)}}function X_e(e,t,n,r,i,a,o,s=!1){if(Q_e(r,t,n,i,a,o,s))if(n.modifiers&&n.modifiers.length>0&&(!Y(n.name)||u5.Core.isSymbolReferencedInFile(n.name,r,t)))for(let r of n.modifiers)Du(r)&&e.deleteModifier(t,r);else !n.initializer&&Z_e(n,r,i)&&e.delete(t,n)}function Z_e(e,t,n){let r=e.parent.parameters.indexOf(e);return!u5.Core.someSignatureUsage(e.parent,n,t,(e,t)=>!t||t.arguments.length>r)}function Q_e(e,t,n,r,i,a,o){let{parent:s}=n;switch(s.kind){case 175:case 177:let c=s.parameters.indexOf(n),l=BO(s)?s.name:s,u=u5.Core.getReferencedSymbolsForNode(s.pos,l,i,r,a);if(u){for(let e of u)for(let t of e.references)if(t.kind===u5.EntryKind.Node){let e=kO(t.node)&&Tk(t.node.parent)&&t.node.parent.arguments.length>c,r=Ck(t.node.parent)&&kO(t.node.parent.expression)&&Tk(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(BO(t.node.parent)||zO(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}}return!0;case 263:return s.name&&$_e(e,t,s.name)?eve(s,n,o):!0;case 219:case 220:return eve(s,n,o);case 179:return!1;case 178:return!0;default:return H.failBadSyntaxKind(s)}}function $_e(e,t,n){return!!u5.Core.eachSymbolReferenceInFile(n,e,t,e=>Y(e)&&Tk(e.parent)&&e.parent.arguments.includes(e))}function eve(e,t,n){let r=e.parameters,i=r.indexOf(t);return H.assert(i!==-1,`The parameter should already be in the list`),n?r.slice(i+1).every(e=>Y(e.name)&&!e.symbol.isReferenced):i===r.length-1}function tve(e){return(Rk(e.parent)&&e.parent.left===e||(Lk(e.parent)||Ik(e.parent))&&e.parent.operand===e)&&iA(e.parent.parent)}function nve(e,t,n){let r=n.symbol.declarations;if(r)for(let n of r)e.delete(t,n)}var j6=`fixUnreachableCode`,rve=[G.Unreachable_code_detected.code];A4({errorCodes:rve,getCodeActions(e){if(!e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return[D4(j6,y7.ChangeTracker.with(e,t=>ive(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)),G.Remove_unreachable_code,j6,G.Remove_all_unreachable_code)]},fixIds:[j6],getAllCodeActions:e=>M4(e,rve,(e,t)=>ive(e,t.file,t.start,t.length,t.code))});function ive(e,t,n,r,i){let a=nZ(t,n),o=K(a,Bd);if(o.getStart(t)!==a.getStart(t)){let e=JSON.stringify({statementKind:H.formatSyntaxKind(o.kind),tokenKind:H.formatSyntaxKind(a.kind),errorCode:i,start:n,length:r});H.fail(`Token and statement should start at the same point. `+e)}let s=(tA(o.parent)?o.parent:o).parent;if(!tA(o.parent)||o===Ie(o.parent.statements))switch(s.kind){case 246:if(s.elseStatement){if(tA(o.parent))break;e.replaceNode(t,o,J.createBlock(c));return}case 248:case 249:e.delete(t,s);return}if(tA(o.parent)){let i=n+r,a=H.checkDefined(ave(Ew(o.parent.statements,o),e=>e.possve(t,e.sourceFile,e.span.start)),G.Remove_unused_label,M6,G.Remove_all_unused_labels)]},fixIds:[M6],getAllCodeActions:e=>M4(e,ove,(e,t)=>sve(e,t.file,t.start))});function sve(e,t,n){let r=nZ(t,n),i=yt(r.parent,gA),a=r.getStart(t),o=i.statement.getStart(t),s=bx(a,o,t)?o:Es(t.text,YX(i,59,t).end,!0);e.deleteRange(t,{pos:a,end:s})}var cve=`fixJSDocTypes_plain`,N6=`fixJSDocTypes_nullable`,lve=[G.JSDoc_types_can_only_be_used_inside_documentation_comments.code,G._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,G._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];A4({errorCodes:lve,getCodeActions(e){let{sourceFile:t}=e,n=e.program.getTypeChecker(),r=dve(t,e.span.start,n);if(!r)return;let{typeNode:i,type:a}=r,o=i.getText(t),s=[c(a,cve,G.Change_all_jsdoc_style_types_to_TypeScript)];return i.kind===315&&s.push(c(a,N6,G.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,a,s){return D4(`jdocTypes`,y7.ChangeTracker.with(e,e=>uve(e,t,i,r,n)),[G.Change_0_to_1,o,n.typeToString(r)],a,s)}},fixIds:[cve,N6],getAllCodeActions(e){let{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return M4(e,lve,(e,n)=>{let a=dve(n.file,n.start,i);if(!a)return;let{typeNode:o,type:s}=a;uve(e,r,o,o.kind===315&&t===N6?i.getNullableType(s,32768):s,i)})}});function uve(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function dve(e,t,n){let r=K(nZ(e,t),fve),i=r&&r.type;return i&&{typeNode:i,type:pve(n,i)}}function fve(e){switch(e.kind){case 235:case 180:case 181:case 263:case 178:case 182:case 201:case 175:case 174:case 170:case 173:case 172:case 179:case 266:case 217:case 261:return!0;default:return!1}}function pve(e,t){if(Dj(t)){let n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(I([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var P6=`fixMissingCallParentheses`,mve=[G.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];A4({errorCodes:mve,fixIds:[P6],getCodeActions(e){let{sourceFile:t,span:n}=e,r=gve(t,n.start);if(r)return[D4(P6,y7.ChangeTracker.with(e,t=>hve(t,e.sourceFile,r)),G.Add_missing_call_parentheses,P6,G.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>M4(e,mve,(e,t)=>{let n=gve(t.file,t.start);n&&hve(e,t.file,n)})});function hve(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function gve(e,t){let n=nZ(e,t);if(Ck(n.parent)){let e=n.parent;for(;Ck(e.parent);)e=e.parent;return e.name}if(Y(n))return n}var _ve=`fixMissingTypeAnnotationOnExports`,F6=`add-annotation`,I6=`add-type-assertion`,vve=`extract-expression`,yve=[G.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,G.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,G.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,G.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,G.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,G.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,G.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,G.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,G.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,G.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,G.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,G.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,G.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,G.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,G.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,G.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,G.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,G.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,G.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,G.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,G.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],bve=new Set([178,175,173,263,219,220,261,170,278,264,207,208]),xve=531469,Sve=1;A4({errorCodes:yve,fixIds:[_ve],getCodeActions(e){let t=[];return L6(F6,t,e,0,t=>t.addTypeAnnotation(e.span)),L6(F6,t,e,1,t=>t.addTypeAnnotation(e.span)),L6(F6,t,e,2,t=>t.addTypeAnnotation(e.span)),L6(I6,t,e,0,t=>t.addInlineAssertion(e.span)),L6(I6,t,e,1,t=>t.addInlineAssertion(e.span)),L6(I6,t,e,2,t=>t.addInlineAssertion(e.span)),L6(vve,t,e,0,t=>t.extractAsVariable(e.span)),t},getAllCodeActions:e=>j4(Cve(e,0,t=>{N4(e,yve,e=>{t.addTypeAnnotation(e)})}).textChanges)});function L6(e,t,n,r,i){let a=Cve(n,r,i);a.result&&a.textChanges.length&&t.push(D4(e,a.textChanges,a.result,_ve,G.Add_all_missing_type_annotations))}function Cve(e,t,n){let r={typeNode:void 0,mutatedTarget:!1},i=y7.ChangeTracker.fromContext(e),a=e.sourceFile,o=e.program,s=o.getTypeChecker(),c=zS(o.getCompilerOptions()),l=D3(e.sourceFile,e.program,e.preferences,e.host),u=new Set,d=new Set,f=WU({preserveSourceNewlines:!1}),p=n({addTypeAnnotation:m,addInlineAssertion:y,extractAsVariable:b});return l.writeFixes(i),{result:p,textChanges:i.getChanges()};function m(t){e.cancellationToken.throwIfCancellationRequested();let n=nZ(a,t.start),r=x(n);if(r)return SA(r)?h(r):S(r);let i=se(n);if(i)return S(i)}function h(e){if(d?.has(e))return;d?.add(e);let t=s.getTypeAtLocation(e),n=s.getPropertiesOfType(t);if(!e.name||n.length===0)return;let r=[];for(let t of n)Ws(t.name,zS(o.getCompilerOptions()))&&(t.valueDeclaration&&bA(t.valueDeclaration)||r.push(J.createVariableStatement([J.createModifier(95)],J.createVariableDeclarationList([J.createVariableDeclaration(t.name,void 0,j(s.getTypeOfSymbol(t),e),void 0)]))));if(r.length===0)return;let c=[];e.modifiers?.some(e=>e.kind===95)&&c.push(J.createModifier(95)),c.push(J.createModifier(138));let l=J.createModuleDeclaration(c,e.name,J.createModuleBlock(r),101441696);return i.insertNodeAfter(a,e,l),[G.Annotate_types_of_properties_expando_function_in_a_namespace]}function g(e){return!Mb(e)&&!Tk(e)&&!Sk(e)&&!xk(e)}function _(e,t){return g(e)&&(e=J.createParenthesizedExpression(e)),J.createAsExpression(e,t)}function v(e,t){return g(e)&&(e=J.createParenthesizedExpression(e)),J.createAsExpression(J.createSatisfiesExpression(e,oE(t)),t)}function y(t){e.cancellationToken.throwIfCancellationRequested();let n=nZ(a,t.start);if(x(n))return;let r=ce(n,t);if(!r||k_(r)||k_(r.parent))return;let o=q(r),c=hj(r);if(!c&&Ld(r)||K(r,Xu)||K(r,_j)||o&&(K(r,fj)||K(r,Ju))||Hk(r))return;let l=K(r,bA),u=l&&s.getTypeAtLocation(l);if(u&&u.flags&8192||!(o||c))return;let{typeNode:d,mutatedTarget:f}=ee(r,u);if(!(!d||f))return c?i.insertNodeAt(a,r.end,_(oE(r.name),d),{prefix:`: `}):o?i.replaceNode(a,r,v(oE(r),d)):H.assertNever(r),[G.Add_satisfies_and_an_inline_type_assertion_with_0,oe(d)]}function b(t){e.cancellationToken.throwIfCancellationRequested();let n=ce(nZ(a,t.start),t);if(!n||k_(n)||k_(n.parent)||!q(n))return;if(xk(n))return i.replaceNode(a,n,_(n,J.createTypeReferenceNode(`const`))),[G.Mark_array_literal_as_const];let r=K(n,mj);if(r){if(r===n.parent&&Mb(n))return;let e=J.createUniqueName(t2(n,a,s,a),16),t=n,o=n;if(Hk(t)&&(t=M_(t.parent),o=ae(t.parent)?t=t.parent:_(t,J.createTypeReferenceNode(`const`))),Mb(t))return;let c=J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(e,void 0,void 0,o)],2)),l=K(n,Bd);return i.insertNodeBefore(a,l,c),i.replaceNode(a,t,J.createAsExpression(J.cloneNode(e),J.createTypeQueryNode(J.cloneNode(e)))),[G.Extract_to_variable_and_replace_with_0_as_typeof_0,oe(e)]}}function x(e){let t=K(e,e=>Bd(e)?`quit`:jT(e));if(t&&jT(t)){let e=t;if(Rk(e)&&(e=e.left,!jT(e)))return;let n=s.getTypeAtLocation(e.expression);if(!n)return;if(F(s.getPropertiesOfType(n),e=>e.valueDeclaration===t||e.valueDeclaration===t.parent)){let e=n.symbol.valueDeclaration;if(e){if(oT(e)&&bA(e.parent))return e.parent;if(SA(e))return e}}}}function S(e){if(!u?.has(e))switch(u?.add(e),e.kind){case 170:case 173:case 261:return N(e);case 220:case 219:case 263:case 175:case 178:return C(e,a);case 278:return w(e);case 264:return T(e);case 207:case 208:return E(e);default:throw Error(`Cannot find a fix for the given node ${e.kind}`)}}function C(e,t){if(e.type)return;let{typeNode:n}=ee(e);if(n)return i.tryInsertTypeAnnotation(t,e,n),[G.Add_return_type_0,oe(n)]}function w(e){if(e.isExportEquals)return;let{typeNode:t}=ee(e.expression);if(!t)return;let n=J.createUniqueName(`_default`);return i.replaceNodeWithNodes(a,e,[J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(n,void 0,t,e.expression)],2)),J.updateExportAssignment(e,e?.modifiers,n)]),[G.Extract_default_export_to_variable]}function T(e){let t=(e.heritageClauses?.find(e=>e.token===96))?.types[0];if(!t)return;let{typeNode:n}=ee(t.expression);if(!n)return;let r=J.createUniqueName(e.name?e.name.text+`Base`:`Anonymous`,16),o=J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(r,void 0,n,t.expression)],2));i.insertNodeBefore(a,e,o);let s=Bs(a.text,t.end),c=s?.[s.length-1]?.end??t.end;return i.replaceRange(a,{pos:t.getFullStart(),end:c},r,{prefix:` `}),[G.Extract_base_class_to_variable]}function E(e){let t=e.parent,n=e.parent.parent.parent;if(!t.initializer)return;let r,o=[];if(Y(t.initializer))r={expression:{kind:3,identifier:t.initializer}};else{let e=J.createUniqueName(`dest`,16);r={expression:{kind:3,identifier:e}},o.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(e,void 0,void 0,t.initializer)],2)))}let s=[];yk(e)?D(e,s,r):O(e,s,r);let c=new Map;for(let e of s){if(e.element.propertyName&&NO(e.element.propertyName)){let t=e.element.propertyName.expression,n=J.getGeneratedNameForNode(t),r=J.createVariableDeclaration(n,void 0,void 0,t),i=J.createVariableDeclarationList([r],2),a=J.createVariableStatement(void 0,i);o.push(a),c.set(t,n)}let t=e.element.name;if(yk(t))D(t,s,e);else if(vk(t))O(t,s,e);else{let{typeNode:r}=ee(t),i=k(e,c);if(e.element.initializer){let t=e.element?.propertyName,n=J.createUniqueName(t&&Y(t)?t.text:`temp`,16);o.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(n,void 0,void 0,i)],2))),i=J.createConditionalExpression(J.createBinaryExpression(n,J.createToken(37),J.createIdentifier(`undefined`)),J.createToken(58),e.element.initializer,J.createToken(59),i)}let a=Qy(n,32)?[J.createToken(95)]:void 0;o.push(J.createVariableStatement(a,J.createVariableDeclarationList([J.createVariableDeclaration(t,void 0,r,i)],2)))}}return n.declarationList.declarations.length>1&&o.push(J.updateVariableStatement(n,n.modifiers,J.updateVariableDeclarationList(n.declarationList,n.declarationList.declarations.filter(t=>t!==e.parent)))),i.replaceNodeWithNodes(a,n,o),[G.Extract_binding_expressions_to_variable]}function D(e,t,n){for(let r=0;r=0;--e){let i=n[e].expression;i.kind===0?r=J.createPropertyAccessChain(r,void 0,J.createIdentifier(i.text)):i.kind===1?r=J.createElementAccessExpression(r,t.get(i.computed)):i.kind===2&&(r=J.createElementAccessExpression(r,i.arrayIndex))}return r}function ee(e,n){if(t===1)return A(e);let i;if(k_(e)){let t=s.getSignatureFromDeclaration(e);if(t){let n=s.getTypePredicateOfSignature(t);if(n)return n.type?{typeNode:M(n,K(e,Ld)??a,c(n.type)),mutatedTarget:!1}:r;i=s.getReturnTypeOfSignature(t)}}else i=s.getTypeAtLocation(e);if(!i)return r;if(t===2){n&&(i=n);let e=s.getWidenedLiteralType(i);if(s.isTypeAssignableTo(e,i))return r;i=e}let o=K(e,Ld)??a;return FO(e)&&s.requiresAddingImplicitUndefined(e,o)&&(i=s.getUnionType([s.getUndefinedType(),i],0)),{typeNode:j(i,o,c(i)),mutatedTarget:!1};function c(t){return(bA(e)||RO(e)&&Qy(e,264))&&t.flags&8192?1048576:0}}function te(e){return J.createTypeQueryNode(oE(e))}function ne(e,t=`temp`){let n=!!K(e,ae);return n?ie(e,t,n,e=>e.elements,Hk,J.createSpreadElement,e=>J.createArrayLiteralExpression(e,!0),e=>J.createTupleTypeNode(e.map(J.createRestTypeNode))):r}function re(e,t=`temp`){return ie(e,t,!!K(e,ae),e=>e.properties,gj,J.createSpreadAssignment,e=>J.createObjectLiteralExpression(e,!0),J.createIntersectionTypeNode)}function ie(e,t,n,o,s,c,l,u){let d=[],f=[],p,m=K(e,Bd);for(let t of o(e))s(t)?(g(),Mb(t.expression)?(d.push(te(t.expression)),f.push(t)):h(t.expression)):(p??=[]).push(t);if(f.length===0)return r;return g(),i.replaceNode(a,e,l(f)),{typeNode:u(d),mutatedTarget:!0};function h(e){let r=J.createUniqueName(t+`_Part`+(f.length+1),16),o=n?J.createAsExpression(e,J.createTypeReferenceNode(`const`)):e,s=J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(r,void 0,void 0,o)],2));i.insertNodeBefore(a,m,s),d.push(te(r)),f.push(c(r))}function g(){p&&=(h(l(p)),void 0)}}function ae(e){return yd(e)&&Xl(e.type)}function A(e){if(FO(e))return r;if(hj(e))return{typeNode:te(e.name),mutatedTarget:!1};if(Mb(e))return{typeNode:te(e),mutatedTarget:!1};if(ae(e))return A(e.expression);if(xk(e)){let t=K(e,bA);return ne(e,t&&Y(t.name)?t.name.text:void 0)}if(Sk(e)){let t=K(e,bA);return re(e,t&&Y(t.name)?t.name.text:void 0)}if(bA(e)&&e.initializer)return A(e.initializer);if(zk(e)){let{typeNode:t,mutatedTarget:n}=A(e.whenTrue);if(!t)return r;let{typeNode:i,mutatedTarget:a}=A(e.whenFalse);return i?{typeNode:J.createUnionTypeNode([t,i]),mutatedTarget:n||a}:r}return r}function j(e,t,n=0){let r=!1,i=tye(s,e,t,xve|n,Sve,{moduleResolverHost:o,trackSymbol(){return!0},reportTruncationError(){r=!0}});if(!i)return;let a=Z6(i,l,c);return r?J.createKeywordTypeNode(133):a}function M(e,t,n=0){let r=!1,i=nye(s,l,e,t,c,xve|n,Sve,{moduleResolverHost:o,trackSymbol(){return!0},reportTruncationError(){r=!0}});return r?J.createKeywordTypeNode(133):i}function N(e){let{typeNode:t}=ee(e);if(t)return e.type?i.replaceNode(Yf(e),e.type,t):i.tryInsertTypeAnnotation(Yf(e),e,t),[G.Add_annotation_of_type_0,oe(t)]}function oe(e){UE(e,1);let t=f.printNode(4,e,a);return t.length>vf?t.substring(0,vf-3)+`...`:(UE(e,0),t)}function se(e){return K(e,e=>bve.has(e.kind)&&(!vk(e)&&!yk(e)||bA(e.parent)))}function ce(e,t){for(;e&&e.endDve(e,t,r)),G.Add_async_modifier_to_containing_function,R6,G.Add_all_missing_async_modifiers)]},fixIds:[R6],getAllCodeActions:function(e){let t=new Set;return M4(e,wve,(n,r)=>{let i=Eve(r.file,r.start);!i||!Jx(t,mB(i.insertBefore))||Dve(n,e.sourceFile,i)})}});function Tve(e){if(e.type)return e.type;if(bA(e.parent)&&e.parent.type&&XO(e.parent.type))return e.parent.type.type}function Eve(e,t){let n=bh(nZ(e,t));if(!n)return;let r;switch(n.kind){case 175:r=n.name;break;case 263:case 219:r=YX(n,100,e);break;case 220:r=YX(n,n.typeParameters?30:21,e)||Ie(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:Tve(n)}}function Dve(e,t,{insertBefore:n,returnType:r}){if(r){let n=Ih(r);(!n||n.kind!==80||n.text!==`Promise`)&&e.replaceNode(t,r,J.createTypeReferenceNode(`Promise`,J.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}var Ove=[G._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,G._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],z6=`fixPropertyOverrideAccessor`;A4({errorCodes:Ove,getCodeActions(e){let t=kve(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[D4(z6,t,G.Generate_get_and_set_accessors,z6,G.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[z6],getAllCodeActions:e=>M4(e,Ove,(t,n)=>{let r=kve(n.file,n.start,n.length,n.code,e);if(r)for(let n of r)t.pushRaw(e.sourceFile,n)})});function kve(e,t,n,r,i){let a,o;if(r===G._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)a=t,o=t+n;else if(r===G._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let n=i.program.getTypeChecker(),r=nZ(e,t).parent;if(NO(r))return;H.assert(Bu(r),`error span of fixPropertyOverrideAccessor should only be on an accessor`);let s=r.parent;H.assert(zu(s),`erroneous accessors should only be inside classes`);let c=K_(s);if(!c)return;let l=F_(c.expression),u=Uk(l)?l.symbol:n.getSymbolAtLocation(l);if(!u)return;let d=n.getDeclaredTypeOfSymbol(u),f=n.getPropertyOfType(d,Wc(fm(r.name)));if(!f||!f.valueDeclaration)return;a=f.valueDeclaration.pos,o=f.valueDeclaration.end,e=Yf(f.valueDeclaration)}else H.fail(`fixPropertyOverrideAccessor codefix got unexpected error code `+r);return fye(e,i.program,a,o,i,G.Generate_get_and_set_accessors.message)}var B6=`inferFromUsage`,Ave=[G.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,G.Variable_0_implicitly_has_an_1_type.code,G.Parameter_0_implicitly_has_an_1_type.code,G.Rest_parameter_0_implicitly_has_an_any_type.code,G.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,G._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,G.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,G.Member_0_implicitly_has_an_1_type.code,G.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,G.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,G.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,G.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,G.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,G._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,G.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,G.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,G.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];A4({errorCodes:Ave,getCodeActions(e){let{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:a,host:o,preferences:s}=e,c=nZ(t,r),l,u=y7.ChangeTracker.with(e,e=>{l=Nve(e,t,c,i,n,a,St,o,s)}),d=l&&el(l);return!d||u.length===0?void 0:[D4(B6,u,[jve(i,c),Ep(d)],B6,G.Infer_all_types_from_usage)]},fixIds:[B6],getAllCodeActions(e){let{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:a}=e,o=WZ();return M4(e,Ave,(e,s)=>{Nve(e,t,nZ(s.file,s.start),s.code,n,r,o,i,a)})}});function jve(e,t){switch(e){case G.Parameter_0_implicitly_has_an_1_type.code:case G.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return WO(bh(t))?G.Infer_type_of_0_from_usage:G.Infer_parameter_types_from_usage;case G.Rest_parameter_0_implicitly_has_an_any_type.code:case G.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return G.Infer_parameter_types_from_usage;case G.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return G.Infer_this_type_of_0_from_usage;default:return G.Infer_type_of_0_from_usage}}function Mve(e){switch(e){case G.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return G.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case G.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return G.Variable_0_implicitly_has_an_1_type.code;case G.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return G.Parameter_0_implicitly_has_an_1_type.code;case G.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return G.Rest_parameter_0_implicitly_has_an_any_type.code;case G.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return G.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case G._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return G._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case G.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return G.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case G.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return G.Member_0_implicitly_has_an_1_type.code}return e}function Nve(e,t,n,r,i,a,o,s,c){if(!Tu(n.kind)&&n.kind!==80&&n.kind!==26&&n.kind!==110)return;let{parent:l}=n,u=D3(t,i,c,s);switch(r=Mve(r),r){case G.Member_0_implicitly_has_an_1_type.code:case G.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(bA(l)&&o(l)||RO(l)||LO(l))return Pve(e,u,t,l,i,s,a),u.writeFixes(e),l;if(Ck(l)){let n=f$(U6(l.name,i,a),l,i,s);if(n){let r=J.createJSDocTypeTag(void 0,J.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,yt(l.parent.parent,iA),[r])}return u.writeFixes(e),l}return;case G.Variable_0_implicitly_has_an_1_type.code:{let t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&bA(t.valueDeclaration)&&o(t.valueDeclaration)?(Pve(e,u,Yf(t.valueDeclaration),t.valueDeclaration,i,s,a),u.writeFixes(e),t.valueDeclaration):void 0}}let d=bh(n);if(d===void 0)return;let f;switch(r){case G.Parameter_0_implicitly_has_an_1_type.code:if(WO(d)){Rve(e,u,t,d,i,s,a),f=d;break}case G.Rest_parameter_0_implicitly_has_an_any_type.code:if(o(d)){let n=yt(l,FO);Fve(e,u,t,n,d,i,s,a),f=n}break;case G.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case G._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:UO(d)&&Y(d.name)&&(V6(e,u,t,d,U6(d.name,i,a),i,s),f=d);break;case G.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:WO(d)&&(Rve(e,u,t,d,i,s,a),f=d);break;case G.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:y7.isThisTypeAnnotatable(d)&&o(d)&&(Ive(e,t,d,i,s,a),f=d);break;default:return H.fail(String(r))}return u.writeFixes(e),f}function Pve(e,t,n,r,i,a,o){Y(r.name)&&V6(e,t,n,r,U6(r.name,i,o),i,a)}function Fve(e,t,n,r,i,a,o,s){if(!Y(r.name))return;let c=Vve(i,n,a,s);if(H.assert(i.parameters.length===c.length,`Parameter count and inference count should match`),ng(i))Bve(e,n,c,a,o);else{let r=jk(i)&&!YX(i,21,n);r&&e.insertNodeBefore(n,Ie(i.parameters),J.createToken(21));for(let{declaration:r,type:i}of c)r&&!r.type&&!r.initializer&&V6(e,t,n,r,i,a,o);r&&e.insertNodeAfter(n,ze(i.parameters),J.createToken(22))}}function Ive(e,t,n,r,i,a){let o=Hve(n,t,r,a);if(!o||!o.length)return;let s=f$(W6(r,o,a).thisParameter(),n,r,i);s&&(ng(n)?Lve(e,t,n,s):e.tryInsertThisTypeAnnotation(t,n,s))}function Lve(e,t,n,r){e.addJSDocTags(t,n,[J.createJSDocThisTag(void 0,J.createJSDocTypeExpression(r))])}function Rve(e,t,n,r,i,a,o){let s=Pe(r.parameters);if(s&&Y(r.name)&&Y(s.name)){let c=U6(r.name,i,o);c===i.getTypeChecker().getAnyType()&&(c=U6(s.name,i,o)),ng(r)?Bve(e,n,[{declaration:s,type:c}],i,a):V6(e,t,n,s,c,i,a)}}function V6(e,t,n,r,i,a,o){let s=f$(i,r,a,o);if(s)if(ng(n)&&r.kind!==172){let t=bA(r)?vt(r.parent.parent,nA):r;if(!t)return;let i=J.createJSDocTypeExpression(s),a=UO(r)?J.createJSDocReturnTag(void 0,i,void 0):J.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[a])}else zve(s,r,n,e,t,zS(a.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function zve(e,t,n,r,i,a){let o=i8(e,a);return o&&r.tryInsertTypeAnnotation(n,t,o.typeNode)?(d(o.symbols,e=>i.addImportFromExportedSymbol(e,!0)),!0):!1}function Bve(e,t,n,r,i){let a=n.length&&n[0].declaration.parent;if(!a)return;let o=M(n,e=>{let t=e.declaration;if(t.initializer||kl(t)||!Y(t.name))return;let n=e.type&&f$(e.type,t,r,i);if(n)return UE(J.cloneNode(t.name),7168),{name:J.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}});if(o.length)if(jk(a)||Ak(a)){let n=jk(a)&&!YX(a,21,t);n&&e.insertNodeBefore(t,Ie(a.parameters),J.createToken(21)),d(o,({typeNode:n,param:r})=>{let i=J.createJSDocTypeTag(void 0,J.createJSDocTypeExpression(n)),a=J.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),a,{suffix:` `})}),n&&e.insertNodeAfter(t,ze(a.parameters),J.createToken(22))}else{let n=k(o,({name:e,typeNode:t,isOptional:n})=>J.createJSDocParameterTag(void 0,e,!!n,J.createJSDocTypeExpression(t),!1,void 0));e.addJSDocTags(t,a,n)}}function H6(e,t,n){return M(u5.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),e=>e.kind===u5.EntryKind.Span?void 0:vt(e.node,Y))}function U6(e,t,n){return W6(t,H6(e,t,n),n).single()}function Vve(e,t,n,r){let i=Hve(e,t,n,r);return i&&W6(n,i,r).parameters(e)||e.parameters.map(e=>({declaration:e,type:Y(e.name)?U6(e.name,n,r):n.getTypeChecker().getAnyType()}))}function Hve(e,t,n,r){let i;switch(e.kind){case 177:i=YX(e,137,t);break;case 220:case 219:let n=e.parent;i=(bA(n)||RO(n))&&Y(n.name)?n.name:e.name;break;case 263:case 175:case 174:i=e.name;break}if(i)return H6(i,n,r)}function W6(e,t,n){let r=e.getTypeChecker(),i={string:()=>r.getStringType(),number:()=>r.getNumberType(),Array:e=>r.createArrayType(e),Promise:e=>r.createPromiseType(e)},a=[r.getStringType(),r.getNumberType(),r.createArrayType(r.getAnyType()),r.createPromiseType(r.getAnyType())];return{single:l,parameters:f,thisParameter:p};function o(){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 s(e){let t=new Map;for(let n of e)n.properties&&n.properties.forEach((e,n)=>{t.has(n)||t.set(n,[]),t.get(n).push(e)});let n=new Map;return t.forEach((e,t)=>{n.set(t,s(e))}),{isNumber:e.some(e=>e.isNumber),isString:e.some(e=>e.isString),isNumberOrString:e.some(e=>e.isNumberOrString),candidateTypes:re(e,e=>e.candidateTypes),properties:n,calls:re(e,e=>e.calls),constructs:re(e,e=>e.constructs),numberIndex:d(e,e=>e.numberIndex),stringIndex:d(e,e=>e.stringIndex),candidateThisTypes:re(e,e=>e.candidateThisTypes),inferredTypes:void 0}}function l(){return O(m(t))}function f(i){if(t.length===0||!i.parameters)return;let a=o();for(let e of t)n.throwIfCancellationRequested(),h(e,a);let s=[...a.constructs||[],...a.calls||[]];return i.parameters.map((t,a)=>{let o=[],c=pf(t),l=!1;for(let e of s)if(e.argumentTypes.length<=a)l=ng(i),o.push(r.getUndefinedType());else if(c)for(let t=a;tn.every(t=>!t(e)))}function D(e){return O(ee(e))}function O(e){if(!e.length)return r.getAnyType();let t=r.getUnionType([r.getStringType(),r.getNumberType()]),n=E(e,[{high:e=>e===r.getStringType()||e===r.getNumberType(),low:e=>e===t},{high:e=>!(e.flags&16385),low:e=>!!(e.flags&16385)},{high:e=>!(e.flags&114689)&&!(Wx(e)&16),low:e=>!!(Wx(e)&16)}]),i=n.filter(e=>Wx(e)&16);return i.length&&(n=n.filter(e=>!(Wx(e)&16)),n.push(k(i))),r.getWidenedType(r.getUnionType(n.map(r.getBaseTypeOfLiteralType),2))}function k(e){if(e.length===1)return e[0];let t=[],n=[],i=[],a=[],o=!1,s=!1,c=R();for(let l of e){for(let e of r.getPropertiesOfType(l))c.add(e.escapedName,e.valueDeclaration?r.getTypeOfSymbolAtLocation(e,e.valueDeclaration):r.getAnyType());t.push(...r.getSignaturesOfType(l,0)),n.push(...r.getSignaturesOfType(l,1));let e=r.getIndexInfoOfType(l,0);e&&(i.push(e.type),o||=e.isReadonly);let u=r.getIndexInfoOfType(l,1);u&&(a.push(u.type),s||=u.isReadonly)}let l=le(c,(t,n)=>{let i=n.lengthr.getBaseTypeOfLiteralType(e)),i=e.calls?.length?te(e):void 0;return i&&n?t.push(r.getUnionType([i,...n],2)):(i&&t.push(i),u(n)&&t.push(...n)),t.push(...ne(e)),t}function te(e){let t=new Map;e.properties&&e.properties.forEach((e,n)=>{let i=r.createSymbol(4,n);i.links.type=D(e),t.set(n,i)});let n=e.calls?[oe(e.calls)]:[],i=e.constructs?[oe(e.constructs)]:[],a=e.stringIndex?[r.createIndexInfo(r.getStringType(),D(e.stringIndex),!1)]:[];return r.createAnonymousType(void 0,t,n,i,a)}function ne(e){if(!e.properties||!e.properties.size)return[];let t=a.filter(t=>ie(t,e));return 0ae(t,e)):[]}function ie(e,t){return t.properties?!Mf(t.properties,(t,n)=>{let i=r.getTypeOfPropertyOfType(e,n);return i?t.calls?!r.getSignaturesOfType(i,0).length||!r.isTypeAssignableTo(i,N(t.calls)):!r.isTypeAssignableTo(i,D(t)):!0}):!1}function ae(e,t){if(!(Wx(e)&4)||!t.properties)return e;let n=e.target,a=Be(n.typeParameters);if(!a)return e;let o=[];return t.properties.forEach((e,t)=>{let i=r.getTypeOfPropertyOfType(n,t);H.assert(!!i,`generic should have all the properties of its reference.`),o.push(...A(i,D(e),a))}),i[e.symbol.escapedName](O(o))}function A(e,t,n){if(e===n)return[t];if(e.flags&3145728)return re(e.types,e=>A(e,t,n));if(Wx(e)&4&&Wx(t)&4){let i=r.getTypeArguments(e),a=r.getTypeArguments(t),o=[];if(i&&a)for(let e=0;ee.argumentTypes.length));for(let i=0;ie.argumentTypes[i]||r.getUndefinedType())),e.some(e=>e.argumentTypes[i]===void 0)&&(n.flags|=16777216),t.push(n)}let i=D(s(e.map(e=>e.return_)));return r.createSignature(void 0,void 0,void 0,t,i,void 0,n,0)}function se(e,t){t&&!(t.flags&1)&&!(t.flags&131072)&&(e.candidateTypes||=[]).push(t)}function ce(e,t){t&&!(t.flags&1)&&!(t.flags&131072)&&(e.candidateThisTypes||=[]).push(t)}}var G6=`fixReturnTypeInAsyncFunction`,Uve=[G.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];A4({errorCodes:Uve,fixIds:[G6],getCodeActions:function(e){let{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),a=Wve(t,n.getTypeChecker(),r.start);if(!a)return;let{returnTypeNode:o,returnType:s,promisedTypeNode:c,promisedType:l}=a;return[D4(G6,y7.ChangeTracker.with(e,e=>Gve(e,t,o,c)),[G.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],G6,G.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>M4(e,Uve,(t,n)=>{let r=Wve(n.file,e.program.getTypeChecker(),n.start);r&&Gve(t,n.file,r.returnTypeNode,r.promisedTypeNode)})});function Wve(e,t,n){if(ng(e))return;let r=K(nZ(e,n),Nu)?.type;if(!r)return;let i=t.getTypeFromTypeNode(r),a=t.getAwaitedType(i)||t.getVoidType(),o=t.typeToTypeNode(a,r,void 0);if(o)return{returnTypeNode:r,returnType:i,promisedTypeNode:o,promisedType:a}}function Gve(e,t,n,r){e.replaceNode(t,n,J.createTypeReferenceNode(`Promise`,[r]))}var Kve=`disableJsDiagnostics`,qve=`disableJsDiagnostics`,Jve=M(Object.keys(G),e=>{let t=G[e];return t.category===1?t.code:void 0});A4({errorCodes:Jve,getCodeActions:function(e){let{sourceFile:t,program:n,span:r,host:i,formatContext:a}=e;if(!ng(t)||!Cw(t,n.getCompilerOptions()))return;let o=t.checkJsDirective?``:zQ(i,a.options),s=[E4(Kve,[ife(t.fileName,[BZ(t.checkJsDirective?Sc(t.checkJsDirective.pos,t.checkJsDirective.end):xc(0,0),`// @ts-nocheck${o}`)])],G.Disable_checking_for_this_file)];return y7.isValidLocationToAddComment(t,r.start)&&s.unshift(D4(Kve,y7.ChangeTracker.with(e,e=>Yve(e,t,r.start)),G.Ignore_this_error_message,qve,G.Add_ts_ignore_to_all_error_messages)),s},fixIds:[qve],getAllCodeActions:e=>{let t=new Set;return M4(e,Jve,(e,n)=>{y7.isValidLocationToAddComment(n.file,n.start)&&Yve(e,n.file,n.start,t)})}});function Yve(e,t,n,r){let{line:i}=gs(t,n);(!r||se(r,i))&&e.insertCommentBeforeLine(t,i,n,` @ts-ignore`)}function K6(e,t,n,r,i,a,o){let s=e.symbol.members;for(let c of t)s.has(c.escapedName)||Zve(c,e,n,r,i,a,o,void 0)}function q6(e){return{trackSymbol:()=>!1,moduleResolverHost:$Z(e.program,e.host)}}var Xve=(e=>(e[e.Method=1]=`Method`,e[e.Property=2]=`Property`,e[e.All=3]=`All`,e))(Xve||{});function Zve(e,t,n,r,i,a,o,s,l=3,u=!1){let d=e.getDeclarations(),f=Pe(d),p=r.program.getTypeChecker(),m=zS(r.program.getCompilerOptions()),h=f?.kind??172,g=te(e,f),_=f?ub(f):0,v=_&256;v|=_&1?1:_&4?4:0,f&&Vu(f)&&(v|=512);let y=E(),b=p.getWidenedType(p.getTypeOfSymbolAtLocation(e,t)),x=!!(e.flags&16777216),S=!!(t.flags&33554432)||u,C=aQ(n,i),w=1|(C===0?268435456:0);switch(h){case 172:case 173:let n=p.typeToTypeNode(b,t,w,8,q6(r));if(a){let e=i8(n,m);e&&(n=e.typeNode,a8(a,e.symbols))}o(J.createPropertyDeclaration(y,f?O(g):e.getName(),x&&l&2?J.createToken(58):void 0,n,void 0));break;case 178:case 179:{H.assertIsDefined(d);let e=p.typeToTypeNode(b,t,w,void 0,q6(r)),n=Iy(d,f),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(a){let t=i8(e,m);t&&(e=t.typeNode,a8(a,t.symbols))}for(let t of i)if(UO(t))o(J.createGetAccessorDeclaration(y,O(g),c,ee(e),k(s,C,S)));else{H.assertNode(t,WO,`The counterpart to a getter should be a setter`);let n=Oy(t),r=n&&Y(n.name)?Gc(n.name):void 0;o(J.createSetAccessorDeclaration(y,O(g),Q6(1,[r],[ee(e)],1,!1),k(s,C,S)))}break}case 174:case 175:H.assertIsDefined(d);let i=b.isUnion()?re(b.types,e=>e.getCallSignatures()):b.getCallSignatures();if(!F(i))break;if(d.length===1){H.assert(i.length===1,`One declaration implies one signature`);let e=i[0];T(C,e,y,O(g),k(s,C,S));break}for(let e of i)e.declaration&&e.declaration.flags&33554432||T(C,e,y,O(g));S||(d.length>i.length?T(C,p.getSignatureFromDeclaration(d[d.length-1]),y,O(g),k(s,C)):(H.assert(d.length===i.length,`Declarations and signatures should match count`),o(sye(p,r,t,i,O(g),x&&!!(l&1),y,C,s))));break}function T(e,n,i,s,c){let u=J6(175,r,e,n,c,s,i,x&&!!(l&1),t,a);u&&o(u)}function E(){let e;return v&&(e=we(e,J.createModifiersFromModifierFlags(v))),D()&&(e=I(e,J.createToken(164))),e&&J.createNodeArray(e)}function D(){return!!(r.program.getCompilerOptions().noImplicitOverride&&f&&nb(f))}function O(e){return Y(e)&&e.escapedText===`constructor`?J.createComputedPropertyName(J.createStringLiteral(Gc(e),C===0)):oE(e,!1)}function k(e,t,n){return n?void 0:oE(e,!1)||$6(t)}function ee(e){return oE(e,!1)}function te(e,t){if(jx(e)&262144){let t=e.links.nameType;if(t&&kT(t))return J.createIdentifier(Wc(AT(t)))}return oE(el(t),!1)}}function J6(e,t,n,r,i,a,o,s,c,l){let u=t.program,d=u.getTypeChecker(),f=zS(u.getCompilerOptions()),p=ng(c),m=524545|(n===0?268435456:0),h=d.signatureToSignatureDeclaration(r,e,c,m,8,q6(t));if(!h)return;let g=p?void 0:h.typeParameters,_=h.parameters,v=p?void 0:oE(h.type);if(l){if(g){let e=te(g,e=>{let t=e.constraint,n=e.default;if(t){let e=i8(t,f);e&&(t=e.typeNode,a8(l,e.symbols))}if(n){let e=i8(n,f);e&&(n=e.typeNode,a8(l,e.symbols))}return J.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)});g!==e&&(g=X(J.createNodeArray(e,g.hasTrailingComma),g))}let e=te(_,e=>{let t=p?void 0:e.type;if(t){let e=i8(t,f);e&&(t=e.typeNode,a8(l,e.symbols))}return J.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)});if(_!==e&&(_=X(J.createNodeArray(e,_.hasTrailingComma),_)),v){let e=i8(v,f);e&&(v=e.typeNode,a8(l,e.symbols))}}let y=s?J.createToken(58):void 0,b=h.asteriskToken;if(Ak(h))return J.updateFunctionExpression(h,o,h.asteriskToken,vt(a,Y),g,_,v,i??h.body);if(jk(h))return J.updateArrowFunction(h,o,g,_,v,h.equalsGreaterThanToken,i??h.body);if(BO(h))return J.updateMethodDeclaration(h,o,b,a??J.createIdentifier(``),y,g,_,v,i);if(SA(h))return J.updateFunctionDeclaration(h,o,h.asteriskToken,vt(a,Y),g,_,v,i??h.body)}function Y6(e,t,n,r,i,a,o){let s=aQ(t.sourceFile,t.preferences),c=zS(t.program.getCompilerOptions()),l=q6(t),u=t.program.getTypeChecker(),d=ng(o),{typeArguments:f,arguments:p,parent:m}=r,h=d?void 0:u.getContextualType(r),g=k(p,e=>Y(e)?e.text:Ck(e)&&Y(e.name)?e.name.text:void 0),{argumentTypeNodes:_,argumentTypeParameters:v}=iye(u,n,d?[]:k(p,e=>u.getTypeAtLocation(e)),o,c,1,8,l),y=a?J.createNodeArray(J.createModifiersFromModifierFlags(a)):void 0,b=Vk(m)?J.createToken(42):void 0,x=d?void 0:Qve(u,v,f),S=Q6(p.length,g,_,void 0,d),C=d||h===void 0?void 0:u.typeToTypeNode(h,o,void 0,void 0,l);switch(e){case 175:return J.createMethodDeclaration(y,b,i,void 0,x,S,C,$6(s));case 174:return J.createMethodSignature(y,i,void 0,x,S,C===void 0?J.createKeywordTypeNode(159):C);case 263:return H.assert(typeof i==`string`||Y(i),`Unexpected name`),J.createFunctionDeclaration(y,b,i,x,S,C,e8(G.Function_not_implemented.message,s));default:H.fail(`Unexpected kind`)}}function Qve(e,t,n){let r=new Set(t.map(e=>e[0])),i=new Map(t);if(n){let i=n.filter(n=>!t.some(t=>e.getTypeAtLocation(n)===t[1]?.argumentType)),a=r.size+i.length;for(let e=0;r.sizeJ.createTypeParameterDeclaration(void 0,e,i.get(e)?.constraint))}function $ve(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function X6(e,t,n,r,i,a,o,s){let c=e.typeToTypeNode(n,r,a,o,s);if(c)return Z6(c,t,i)}function Z6(e,t,n){let r=i8(e,n);return r&&(a8(t,r.symbols),e=r.typeNode),oE(e)}function eye(e,t){H.assert(t.typeArguments);let n=t.typeArguments,r=t.target;for(let t=0;te===n[t]))return t}return n.length}function tye(e,t,n,r,i,a){let o=e.typeToTypeNode(t,n,r,i,a);if(o){if(YO(o)){let n=t;if(n.typeArguments&&o.typeArguments){let t=eye(e,n);if(t=r?J.createToken(58):void 0,i?void 0:n?.[s]||J.createKeywordTypeNode(159),void 0);a.push(l)}return a}function sye(e,t,n,r,i,a,o,s,c){let l=r[0],u=r[0].minArgumentCount,d=!1;for(let e of r)u=Math.min(e.minArgumentCount,u),xB(e)&&(d=!0),e.parameters.length>=l.parameters.length&&(!xB(e)||xB(l))&&(l=e);let f=l.parameters.length-(xB(l)?1:0),p=l.parameters.map(e=>e.name),m=Q6(f,p,void 0,u,!1);if(d){let e=J.createParameterDeclaration(void 0,J.createToken(26),p[f]||`rest`,f>=u?J.createToken(58):void 0,J.createArrayTypeNode(J.createKeywordTypeNode(159)),void 0);m.push(e)}return lye(o,i,a,void 0,m,cye(r,e,t,n),s,c)}function cye(e,t,n,r){if(u(e)){let i=t.getUnionType(k(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,8,q6(n))}}function lye(e,t,n,r,i,a,o,s){return J.createMethodDeclaration(e,void 0,t,n?J.createToken(58):void 0,r,i,a,s||$6(o))}function $6(e){return e8(G.Method_not_implemented.message,e)}function e8(e,t){return J.createBlock([J.createThrowStatement(J.createNewExpression(J.createIdentifier(`Error`),void 0,[J.createStringLiteral(e,t===0)]))],!0)}function t8(e,t,n){let r=_h(t);if(!r)return;let i=uye(r,`compilerOptions`);if(i===void 0){e.insertNodeAtObjectStart(t,r,r8(`compilerOptions`,J.createObjectLiteralExpression(n.map(([e,t])=>r8(e,t)),!0)));return}let a=i.initializer;if(Sk(a))for(let[r,i]of n){let n=uye(a,r);n===void 0?e.insertNodeAtObjectStart(t,a,r8(r,i)):e.replaceNode(t,n.initializer,i)}}function n8(e,t,n,r){t8(e,t,[[n,r]])}function r8(e,t){return J.createPropertyAssignment(J.createStringLiteral(e),t)}function uye(e,t){return y(e.properties,e=>mj(e)&&!!e.name&&tO(e.name)&&e.name.text===t)}function i8(e,t){let n,r=Q(e,i,Ju);if(n&&r)return{typeNode:r,symbols:n};function i(e){if(Hm(e)&&e.qualifier){let r=Nb(e.qualifier);if(!r.symbol)return PB(e,i,void 0);let a=F$(r.symbol,t),o=a===r.text?e.qualifier:dye(e.qualifier,J.createIdentifier(a));n=I(n,r.symbol);let s=CB(e.typeArguments,i,Ju);return J.createTypeReferenceNode(o,s)}return PB(e,i,void 0)}}function dye(e,t){return e.kind===80?t:J.createQualifiedName(dye(e.left,t),e.right)}function a8(e,t){t.forEach(t=>e.addImportFromExportedSymbol(t,!0))}function o8(e,t){let n=ac(t),r=nZ(e,t.start);for(;r.ende.replaceNode(t,n,r));return E4(Oye,i,[G.Replace_import_with_0,i[0].textChanges[0].newText])}A4({errorCodes:[G.This_expression_is_not_callable.code,G.This_expression_is_not_constructable.code],getCodeActions:jye});function jye(e){let t=e.sourceFile,n=G.This_expression_is_not_callable.code===e.errorCode?214:215,r=K(nZ(t,e.span.start),e=>e.kind===n);if(!r)return[];let i=r.expression;return Nye(e,i)}A4({errorCodes:[G.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,G.Type_0_does_not_satisfy_the_constraint_1.code,G.Type_0_is_not_assignable_to_type_1.code,G.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,G.Type_predicate_0_is_not_assignable_to_1.code,G.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,G._0_index_type_1_is_not_assignable_to_2_index_type_3.code,G.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,G.Property_0_in_type_1_is_not_assignable_to_type_2.code,G.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,G.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:Mye});function Mye(e){let t=e.sourceFile,n=K(nZ(t,e.span.start),t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length);return n?Nye(e,n):[]}function Nye(e,t){let n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&wf(n.symbol)&&n.symbol.links.originatingImport))return[];let r=[],i=n.symbol.links.originatingImport;if(Bm(i)||Ee(r,kye(e,i)),q(t)&&!(Qc(t.parent)&&t.parent.name===t)){let n=e.sourceFile,i=y7.ChangeTracker.with(e,e=>e.replaceNode(n,t,J.createPropertyAccessExpression(t,`default`),{}));r.push(E4(Oye,i,G.Use_synthetic_default_member))}return r}var s8=`strictClassInitialization`,c8=`addMissingPropertyDefiniteAssignmentAssertions`,l8=`addMissingPropertyUndefinedType`,u8=`addMissingPropertyInitializer`,Pye=[G.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];A4({errorCodes:Pye,getCodeActions:function(e){let t=Fye(e.sourceFile,e.span.start);if(!t)return;let n=[];return I(n,Rye(e,t)),I(n,Iye(e,t)),I(n,Bye(e,t)),n},fixIds:[c8,l8,u8],getAllCodeActions:e=>M4(e,Pye,(t,n)=>{let r=Fye(n.file,n.start);if(r)switch(e.fixId){case c8:Lye(t,n.file,r.prop);break;case l8:zye(t,n.file,r);break;case u8:let i=Hye(e.program.getTypeChecker(),r.prop);if(!i)return;Vye(t,n.file,r.prop,i);break;default:H.fail(JSON.stringify(e.fixId))}})});function Fye(e,t){let n=nZ(e,t);if(Y(n)&&RO(n.parent)){let e=Ly(n.parent);if(e)return{type:e,prop:n.parent,isJs:ng(n.parent)}}}function Iye(e,t){if(!t.isJs)return D4(s8,y7.ChangeTracker.with(e,n=>Lye(n,e.sourceFile,t.prop)),[G.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],c8,G.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Lye(e,t,n){dE(n);let r=J.updatePropertyDeclaration(n,n.modifiers,n.name,J.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function Rye(e,t){return D4(s8,y7.ChangeTracker.with(e,n=>zye(n,e.sourceFile,t)),[G.Add_undefined_type_to_property_0,t.prop.name.getText()],l8,G.Add_undefined_type_to_all_uninitialized_properties)}function zye(e,t,n){let r=J.createKeywordTypeNode(157),i=ak(n.type)?n.type.types.concat(r):[n.type,r],a=J.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[J.createJSDocTypeTag(void 0,J.createJSDocTypeExpression(a))]):e.replaceNode(t,n.type,a)}function Bye(e,t){if(t.isJs)return;let n=Hye(e.program.getTypeChecker(),t.prop);if(n)return D4(s8,y7.ChangeTracker.with(e,r=>Vye(r,e.sourceFile,t.prop,n)),[G.Add_initializer_to_property_0,t.prop.name.getText()],u8,G.Add_initializers_to_all_uninitialized_properties)}function Vye(e,t,n,r){dE(n);let i=J.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function Hye(e,t){return Uye(e,e.getTypeFromTypeNode(t.type))}function Uye(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?J.createFalse():J.createTrue();if(t.isStringLiteral())return J.createStringLiteral(t.value);if(t.isNumberLiteral())return J.createNumericLiteral(t.value);if(t.flags&2048)return J.createBigIntLiteral(t.value);if(t.isUnion())return p(t.types,t=>Uye(e,t));if(t.isClass()){let e=Ux(t.symbol);if(!e||Qy(e,64))return;let n=Dy(e);return n&&n.parameters.length?void 0:J.createNewExpression(J.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return J.createArrayLiteralExpression()}var d8=`requireInTs`,Wye=[G.require_call_may_be_converted_to_an_import.code];A4({errorCodes:Wye,getCodeActions(e){let t=Kye(e.sourceFile,e.program,e.span.start,e.preferences);if(t)return[D4(d8,y7.ChangeTracker.with(e,n=>Gye(n,e.sourceFile,t)),G.Convert_require_to_import,d8,G.Convert_all_require_to_import)]},fixIds:[d8],getAllCodeActions:e=>M4(e,Wye,(t,n)=>{let r=Kye(n.file,e.program,n.start,e.preferences);r&&Gye(t,e.sourceFile,r)})});function Gye(e,t,n){let{allowSyntheticDefaults:r,defaultImportName:i,namedImports:a,statement:o,moduleSpecifier:s}=n;e.replaceNode(t,o,i&&!r?J.createImportEqualsDeclaration(void 0,!1,i,J.createExternalModuleReference(s)):J.createImportDeclaration(void 0,J.createImportClause(void 0,i,a),s,void 0))}function Kye(e,t,n,r){let{parent:i}=nZ(e,n);sg(i,!0)||H.failBadSyntaxKind(i);let a=yt(i.parent,bA),o=aQ(e,r),s=vt(a.name,Y),c=vk(a.name)?qye(a.name):void 0;if(s||c){let e=Ie(i.arguments);return{allowSyntheticDefaults:GS(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:yt(a.parent.parent,nA),moduleSpecifier:iO(e)?J.createStringLiteral(e.text,o===0):e}}}function qye(e){let t=[];for(let n of e.elements){if(!Y(n.name)||n.initializer)return;t.push(J.createImportSpecifier(!1,vt(n.propertyName,Y),n.name))}if(t.length)return J.createNamedImports(t)}var f8=`useDefaultImport`,Jye=[G.Import_may_be_converted_to_a_default_import.code];A4({errorCodes:Jye,getCodeActions(e){let{sourceFile:t,span:{start:n}}=e,r=Yye(t,n);if(r)return[D4(f8,y7.ChangeTracker.with(e,n=>Xye(n,t,r,e.preferences)),G.Convert_to_default_import,f8,G.Convert_all_to_default_imports)]},fixIds:[f8],getAllCodeActions:e=>M4(e,Jye,(t,n)=>{let r=Yye(n.file,n.start);r&&Xye(t,n.file,r,e.preferences)})});function Yye(e,t){let n=nZ(e,t);if(!Y(n))return;let{parent:r}=n;if(jA(r)&&ZA(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(zA(r)&&MA(r.parent.parent)){let e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function Xye(e,t,n,r){e.replaceNode(t,n.importNode,tQ(n.name,void 0,n.moduleSpecifier,aQ(t,r)))}var p8=`useBigintLiteral`,Zye=[G.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];A4({errorCodes:Zye,getCodeActions:function(e){let t=y7.ChangeTracker.with(e,t=>Qye(t,e.sourceFile,e.span));if(t.length>0)return[D4(p8,t,G.Convert_to_a_bigint_numeric_literal,p8,G.Convert_all_to_bigint_numeric_literals)]},fixIds:[p8],getAllCodeActions:e=>M4(e,Zye,(e,t)=>Qye(e,t.file,t))});function Qye(e,t,n){let r=vt(nZ(t,n.start),$D);if(!r)return;let i=r.getText(t)+`n`;e.replaceNode(t,r,J.createBigIntLiteral(i))}var m8=`fixAddModuleReferTypeMissingTypeof`,$ye=[G.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];A4({errorCodes:$ye,getCodeActions:function(e){let{sourceFile:t,span:n}=e,r=ebe(t,n.start);return[D4(m8,y7.ChangeTracker.with(e,e=>tbe(e,t,r)),G.Add_missing_typeof,m8,G.Add_missing_typeof)]},fixIds:[m8],getAllCodeActions:e=>M4(e,$ye,(t,n)=>tbe(t,e.sourceFile,ebe(n.file,n.start)))});function ebe(e,t){let n=nZ(e,t);return H.assert(n.kind===102,`This token should be an ImportKeyword`),H.assert(n.parent.kind===206,`Token parent should be an ImportType`),n.parent}function tbe(e,t,n){let r=J.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}var h8=`wrapJsxInFragment`,nbe=[G.JSX_expressions_must_have_one_parent_element.code];A4({errorCodes:nbe,getCodeActions:function(e){let{sourceFile:t,span:n}=e,r=rbe(t,n.start);if(r)return[D4(h8,y7.ChangeTracker.with(e,e=>ibe(e,t,r)),G.Wrap_in_JSX_fragment,h8,G.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[h8],getAllCodeActions:e=>M4(e,nbe,(t,n)=>{let r=rbe(e.sourceFile,n.start);r&&ibe(t,e.sourceFile,r)})});function rbe(e,t){let n=nZ(e,t).parent.parent;if(!(!Rk(n)&&(n=n.parent,!Rk(n)))&&rp(n.operatorToken))return n}function ibe(e,t,n){let r=abe(n);r&&e.replaceNode(t,n,J.createJsxFragment(J.createJsxOpeningFragment(),r,J.createJsxJsxClosingFragment()))}function abe(e){let t=[],n=e;for(;;)if(Rk(n)&&rp(n.operatorToken)&&n.operatorToken.kind===28){if(t.push(n.left),Gd(n.right))return t.push(n.right),t;if(Rk(n.right)){n=n.right;continue}else return}else return}var g8=`wrapDecoratorInParentheses`,obe=[G.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];A4({errorCodes:obe,getCodeActions:function(e){return[D4(g8,y7.ChangeTracker.with(e,t=>sbe(t,e.sourceFile,e.span.start)),G.Wrap_in_parentheses,g8,G.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[g8],getAllCodeActions:e=>M4(e,obe,(e,t)=>sbe(e,t.file,t.start))});function sbe(e,t,n){let r=K(nZ(t,n),IO);H.assert(!!r,`Expected position to be owned by a decorator.`);let i=J.createParenthesizedExpression(r.expression);e.replaceNode(t,r.expression,i)}var _8=`fixConvertToMappedObjectType`,cbe=[G.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];A4({errorCodes:cbe,getCodeActions:function(e){let{sourceFile:t,span:n}=e,r=lbe(t,n.start);if(!r)return;let i=y7.ChangeTracker.with(e,e=>dbe(e,t,r)),a=Gc(r.container.name);return[D4(_8,i,[G.Convert_0_to_mapped_object_type,a],_8,[G.Convert_0_to_mapped_object_type,a])]},fixIds:[_8],getAllCodeActions:e=>M4(e,cbe,(e,t)=>{let n=lbe(t.file,t.start);n&&dbe(e,t.file,n)})});function lbe(e,t){let n=vt(nZ(e,t).parent.parent,qO);if(!n)return;let r=wA(n.parent)?n.parent:vt(n.parent.parent,TA);if(r)return{indexSignature:n,container:r}}function ube(e,t){return J.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function dbe(e,t,{indexSignature:n,container:r}){let i=(wA(r)?r.members:r.type.members).filter(e=>!qO(e)),a=Ie(n.parameters),o=J.createTypeParameterDeclaration(void 0,yt(a.name,Y),a.type),s=J.createMappedTypeNode(ab(n)?J.createModifier(148):void 0,o,void 0,n.questionToken,n.type,void 0),l=J.createIntersectionTypeNode([...Y_(r),s,...i.length?[J.createTypeLiteralNode(i)]:c]);e.replaceNode(t,r,ube(r,l))}var fbe=`removeAccidentalCallParentheses`;A4({errorCodes:[G.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){let t=K(nZ(e.sourceFile,e.span.start),Tk);if(t)return[E4(fbe,y7.ChangeTracker.with(e,n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}),G.Remove_parentheses)]},fixIds:[fbe]});var v8=`removeUnnecessaryAwait`,pbe=[G.await_has_no_effect_on_the_type_of_this_expression.code];A4({errorCodes:pbe,getCodeActions:function(e){let t=y7.ChangeTracker.with(e,t=>mbe(t,e.sourceFile,e.span));if(t.length>0)return[D4(v8,t,G.Remove_unnecessary_await,v8,G.Remove_all_unnecessary_uses_of_await)]},fixIds:[v8],getAllCodeActions:e=>M4(e,pbe,(e,t)=>mbe(e,t.file,t))});function mbe(e,t,n){let r=vt(nZ(t,n.start),e=>e.kind===135),i=r&&vt(r.parent,Fk);if(!i)return;let a=i;if(kk(i.parent)&&Y(nS(i.expression,!1))){let e=oZ(i.parent.pos,t);e&&e.kind!==105&&(a=i.parent)}e.replaceNode(t,a,i.expression)}var hbe=[G.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],y8=`splitTypeOnlyImport`;A4({errorCodes:hbe,fixIds:[y8],getCodeActions:function(e){let t=y7.ChangeTracker.with(e,t=>_be(t,gbe(e.sourceFile,e.span),e));if(t.length)return[D4(y8,t,G.Split_into_two_separate_import_declarations,y8,G.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>M4(e,hbe,(t,n)=>{_be(t,gbe(e.sourceFile,n),e)})});function gbe(e,t){return K(nZ(e,t.start),MA)}function _be(e,t,n){if(!t)return;let r=H.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,J.updateImportDeclaration(t,t.modifiers,J.updateImportClause(r,r.phaseModifier,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,J.createImportDeclaration(void 0,J.updateImportClause(r,r.phaseModifier,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}var b8=`fixConvertConstToLet`,vbe=[G.Cannot_assign_to_0_because_it_is_a_constant.code];A4({errorCodes:vbe,getCodeActions:function(e){let{sourceFile:t,span:n,program:r}=e,i=ybe(t,n.start,r);if(i!==void 0)return[O4(b8,y7.ChangeTracker.with(e,e=>bbe(e,t,i.token)),G.Convert_const_to_let,b8,G.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,n=new Set;return j4(y7.ChangeTracker.with(e,r=>{N4(e,vbe,e=>{let i=ybe(e.file,e.start,t);if(i&&Jx(n,hB(i.symbol)))return bbe(r,e.file,i.token)})}))},fixIds:[b8]});function ybe(e,t,n){let r=n.getTypeChecker().getSymbolAtLocation(nZ(e,t));if(r===void 0)return;let i=vt(r?.valueDeclaration?.parent,xA);if(i===void 0)return;let a=YX(i,87,e);if(a!==void 0)return{symbol:r,token:a}}function bbe(e,t,n){e.replaceNode(t,n,J.createToken(121))}var x8=`fixExpectedComma`,xbe=[G._0_expected.code];A4({errorCodes:xbe,getCodeActions(e){let{sourceFile:t}=e,n=Sbe(t,e.span.start,e.errorCode);if(n)return[D4(x8,y7.ChangeTracker.with(e,e=>Cbe(e,t,n)),[G.Change_0_to_1,`;`,`,`],x8,[G.Change_0_to_1,`;`,`,`])]},fixIds:[x8],getAllCodeActions:e=>M4(e,xbe,(t,n)=>{let r=Sbe(n.file,n.start,n.code);r&&Cbe(t,e.sourceFile,r)})});function Sbe(e,t,n){let r=nZ(e,t);return r.kind===27&&r.parent&&(Sk(r.parent)||xk(r.parent))?{node:r}:void 0}function Cbe(e,t,{node:n}){let r=J.createToken(28);e.replaceNode(t,n,r)}var wbe=`addVoidToPromise`,Tbe=`addVoidToPromise`,Ebe=[G.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,G.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];A4({errorCodes:Ebe,fixIds:[Tbe],getCodeActions(e){let t=y7.ChangeTracker.with(e,t=>Dbe(t,e.sourceFile,e.span,e.program));if(t.length>0)return[D4(wbe,t,G.Add_void_to_Promise_resolved_without_a_value,Tbe,G.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return M4(e,Ebe,(t,n)=>Dbe(t,n.file,n,e.program,new Set))}});function Dbe(e,t,n,r,i){let a=nZ(t,n.start);if(!Y(a)||!Tk(a.parent)||a.parent.expression!==a||a.parent.arguments.length!==0)return;let o=r.getTypeChecker(),s=o.getSymbolAtLocation(a)?.valueDeclaration;if(!s||!FO(s)||!Ek(s.parent.parent)||i?.has(s))return;i?.add(s);let c=Obe(s.parent.parent);if(F(c)){let n=c[0],r=!ak(n)&&!lk(n)&&lk(J.createUnionTypeNode([n,J.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,`(`),e.insertText(t,n.end,r?`) | void`:` | void`)}else{let n=o.getResolvedSignature(a.parent)?.parameters[0],r=n&&o.getTypeOfSymbolAtLocation(n,s.parent.parent);ng(s)?(!r||r.flags&3)&&(e.insertText(t,s.parent.parent.end,`)`),e.insertText(t,Es(t.text,s.parent.parent.pos),`/** @type {Promise} */(`)):(!r||r.flags&2)&&e.insertText(t,s.parent.parent.expression.end,``)}}function Obe(e){if(ng(e)){if(kk(e.parent)){let t=Ol(e.parent)?.typeExpression.type;if(t&&YO(t)&&Y(t.typeName)&&Gc(t.typeName)===`Promise`)return t.typeArguments}}else return e.typeArguments}var S8={};n(S8,{CompletionKind:()=>wxe,CompletionSource:()=>Abe,SortText:()=>w8,StringCompletions:()=>t5,SymbolOriginInfoKind:()=>jbe,createCompletionDetails:()=>U8,createCompletionDetailsForSymbol:()=>H8,getCompletionEntriesFromSymbols:()=>B8,getCompletionEntryDetails:()=>xxe,getCompletionEntrySymbol:()=>Cxe,getCompletionsAtPosition:()=>Hbe,getDefaultCommitCharacters:()=>A8,getPropertiesForObjectExpression:()=>X8,moduleSpecifierResolutionCacheAttemptLimit:()=>kbe,moduleSpecifierResolutionLimit:()=>C8});var C8=100,kbe=1e3,w8={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`}},T8=[`.`,`,`,`;`],E8=[`.`,`;`],Abe=(e=>(e.ThisProperty=`ThisProperty/`,e.ClassMemberSnippet=`ClassMemberSnippet/`,e.TypeOnlyAlias=`TypeOnlyAlias/`,e.ObjectLiteralMethodSnippet=`ObjectLiteralMethodSnippet/`,e.SwitchCases=`SwitchCases/`,e.ObjectLiteralMemberWithComma=`ObjectLiteralMemberWithComma/`,e))(Abe||{}),jbe=(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))(jbe||{});function Mbe(e){return!!(e.kind&1)}function Nbe(e){return!!(e.kind&2)}function D8(e){return!!(e&&e.kind&4)}function O8(e){return!!(e&&e.kind===32)}function Pbe(e){return D8(e)||O8(e)||k8(e)}function Fbe(e){return(D8(e)||O8(e))&&!!e.isFromPackageJson}function Ibe(e){return!!(e.kind&8)}function Lbe(e){return!!(e.kind&16)}function Rbe(e){return!!(e&&e.kind&64)}function zbe(e){return!!(e&&e.kind&128)}function Bbe(e){return!!(e&&e.kind&256)}function k8(e){return!!(e&&e.kind&512)}function Vbe(e,t,n,r,i,a,o,s,c){var l,u,d;let f=sr(),p=o||KS(r.getCompilerOptions())||a.autoImportSpecifierExcludeRegexes?.length,m=!1,h=0,g=0,_=0,v=0,y=c({tryResolve:x,skippedAny:()=>m,resolvedAny:()=>g>0,resolvedBeyondLimit:()=>g>C8}),b=v?` (${(_/v*100).toFixed(1)}% hit rate)`:``;return(l=t.log)==null||l.call(t,`${e}: resolved ${g} module specifiers, plus ${h} ambient and ${_} from cache${b}`),(u=t.log)==null||u.call(t,`${e}: response is ${m?`incomplete`:`complete`}`),(d=t.log)==null||d.call(t,`${e}: ${sr()-f}`),y;function x(e,t){if(t){let t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&h++,t||`failed`}let r=p||a.allowIncompleteCompletions&&g{let n=M(c.entries,n=>{var a;if(!n.hasAction||!n.source||!n.data||Ube(n.data))return n;if(!iSe(n.name,u))return;let{origin:o}=H.checkDefined(Axe(n.name,n.data,r,i)),s=d.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!tc(Zv(o.moduleSymbol.name)));if(c===`skipped`)return n;if(!c||c===`failed`){(a=i.log)==null||a.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`);return}let l={...o,kind:32,moduleSpecifier:c.moduleSpecifier};return n.data=mxe(l),n.source=z8(l),n.sourceDisplay=[PQ(l.moduleSpecifier)],n});return e.skippedAny()||(c.isIncomplete=void 0),n}),c.flags=(c.flags||0)|4,c.optionalReplacementSpan=Qbe(l),c}function M8(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:A8(!1)}}function Gbe(e,t,n,r,i,a){let o=nZ(e,t);if(!Qd(o)&&!Nj(o))return[];let s=Nj(o)?o:o.parent;if(!Nj(s))return[];let c=s.parent;if(!ju(c))return[];let l=tg(e),u=i.includeCompletionsWithSnippetText||void 0,d=T(s.tags,e=>Yj(e)&&e.getEnd()<=t);return M(c.parameters,e=>{if(!il(e).length){if(Y(e.name)){let t={tabstop:1},o=e.name.text,s=N8(o,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=u?N8(o,e.initializer,e.dotDotDotToken,l,!1,!0,n,r,i,t):void 0;return a&&(s=s.slice(1),c&&=c.slice(1)),{name:s,kind:`parameter`,sortText:w8.LocationPriority,insertText:u?c:void 0,isSnippet:u}}else if(e.parent.parameters.indexOf(e)===d){let t=`param${d}`,o=Kbe(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=u?Kbe(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0,c=o.join(ax(r)+`* `),f=s?.join(ax(r)+`* `);return a&&(c=c.slice(1),f&&=f.slice(1)),{name:c,kind:`parameter`,sortText:w8.LocationPriority,insertText:u?f:void 0,isSnippet:u}}}})}function Kbe(e,t,n,r,i,a,o,s,c){if(!i)return[N8(e,n,r,i,!1,a,o,s,c,{tabstop:1})];return l(e,t,n,r,{tabstop:1});function l(e,t,n,r,l){if(vk(t)&&!r){let d={tabstop:l.tabstop},f=N8(e,n,r,i,!0,a,o,s,c,d),p=[];for(let n of t.elements){let t=u(e,n,d);if(t)p.push(...t);else{p=void 0;break}}if(p)return l.tabstop=d.tabstop,[f,...p]}return[N8(e,n,r,i,!1,a,o,s,c,l)]}function u(e,t,n){if(!t.propertyName&&Y(t.name)||Y(t.name)){let r=t.propertyName?dm(t.propertyName):t.name.text;return r?[N8(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,a,o,s,c,n)]:void 0}else if(t.propertyName){let r=dm(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function N8(e,t,n,r,i,a,o,s,c,l){if(a&&H.assertIsDefined(l),t&&(e=qbe(e,t)),a&&(e=sT(e)),r){let r=`*`;if(i)H.assert(!n,`Cannot annotate a rest parameter with type 'Object'.`),r=`Object`;else{if(t){let e=o.getTypeAtLocation(t.parent);if(!(e.flags&16385)){let n=t.getSourceFile(),i=aQ(n,c)===0?268435456:0,l=o.typeToTypeNode(e,K(t,ju),i);if(l){let e=a?L8({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target}):WU({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target});UE(l,1),r=e.printNode(4,l,n)}}}a&&r===`*`&&(r=`\${${l.tabstop++}:${r}}`)}let u=!i&&n?`...`:``,d=a?`\${${l.tabstop++}}`:``;return`@param {${u}${r}} ${e} ${d}`}else{let t=a?`\${${l.tabstop++}}`:``;return`@param ${e} ${t}`}}function qbe(e,t){let n=t.getText().trim();return n.includes(` `)||n.length>80?`[${e}]`:`[${e}=${n}]`}function Jbe(e){return{name:is(e),kind:`keyword`,kindModifiers:``,sortText:w8.GlobalsOrKeywords}}function Ybe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice(),defaultCommitCharacters:A8(t)}}function Xbe(e,t,n){return{kind:4,keywordCompletions:Mxe(e,t),isNewIdentifierLocation:n}}function Zbe(e){switch(e){case 156:return 8;default:H.fail(`Unknown mapping from SyntaxKind to KeywordCompletionFilters`)}}function Qbe(e){return e?.kind===80?PZ(e):void 0}function $be(e,t,n,r,i,a,o,s,c,l){let{symbols:u,contextToken:d,completionKind:f,isInSnippetScope:p,isNewIdentifierLocation:m,location:h,propertyAccessToConvert:g,keywordFilters:_,symbolToOriginInfoMap:v,recommendedCompletion:y,isJsxInitializer:b,isTypeOnlyLocation:x,isJsxIdentifierExpected:S,isRightOfOpenTag:C,isRightOfDotOrQuestionDot:w,importStatementCompletion:T,insideJsDocTagTypeExpression:E,symbolToSortTextMap:D,hasUnresolvedAutoImports:O,defaultCommitCharacters:k}=a,ee=a.literals,te=n.getTypeChecker();if(MS(e.scriptKind)===1){let t=rxe(h,e);if(t)return t}let ne=K(d,uj);if(ne&&(jO(d)||L_(d,ne.expression))){let e=J$(te,ne.parent.clauses);ee=ee.filter(t=>!e.hasValue(t)),u.forEach((t,n)=>{if(t.valueDeclaration&&_j(t.valueDeclaration)){let r=te.getConstantValue(t.valueDeclaration);r!==void 0&&e.hasValue(r)&&(v[n]={kind:256})}})}let re=ve(),ie=exe(e,r);if(ie&&!m&&(!u||u.length===0)&&_===0)return;let ae=B8(u,re,void 0,d,h,c,e,t,n,zS(r),i,f,o,r,s,x,g,S,b,T,y,v,D,S,C,l);if(_!==0)for(let t of Mxe(_,!E&&tg(e)))(x&&HZ(as(t.name))||!x&&oSe(t.name)||!ae.has(t.name))&&(ae.add(t.name),ye(re,t,j8,void 0,!0));for(let e of Lxe(d,c))ae.has(e.name)||(ae.add(e.name),ye(re,e,j8,void 0,!0));for(let t of ee){let n=axe(e,o,t);ae.add(n.name),ye(re,n,j8,void 0,!0)}ie||ixe(e,h.pos,ae,zS(r),re);let A;if(o.includeCompletionsWithInsertText&&d&&!C&&!w&&(A=K(d,kA))){let i=txe(A,e,o,r,t,n,s);i&&re.push(i.entry)}return{flags:a.flags,isGlobalCompletion:p,isIncomplete:o.allowIncompleteCompletions&&O?!0:void 0,isMemberCompletion:nxe(f),isNewIdentifierLocation:m,optionalReplacementSpan:Qbe(h),entries:re,defaultCommitCharacters:k??A8(m)}}function exe(e,t){return!tg(e)||!!Cw(e,t)}function txe(e,t,n,r,i,a,o){let s=e.clauses,c=a.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&v(l.types,e=>e.isLiteral())){let u=J$(c,s),d=zS(r),f=aQ(t,n),p=C4.createImportAdder(t,a,n,i),m=[];for(let t of l.types)if(t.flags&1024){H.assert(t.symbol,`An enum member type should have a symbol`),H.assert(t.symbol.parent,`An enum member type should have a parent symbol (the enum symbol)`);let n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(n!==void 0){if(u.hasValue(n))continue;u.addValue(n)}let r=C4.typeToAutoImportableTypeNode(c,p,t,e,d);if(!r)return;let i=P8(r,d,f);if(!i)return;m.push(i)}else if(!u.hasValue(t.value))switch(typeof t.value){case`object`:m.push(t.value.negative?J.createPrefixUnaryExpression(41,J.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):J.createBigIntLiteral(t.value));break;case`number`:m.push(t.value<0?J.createPrefixUnaryExpression(41,J.createNumericLiteral(-t.value)):J.createNumericLiteral(t.value));break;case`string`:m.push(J.createStringLiteral(t.value,f===0));break}if(m.length===0)return;let h=k(m,e=>J.createCaseClause(e,[])),g=zQ(i,o?.options),_=L8({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,newLine:U$(g)}),v=o?e=>_.printAndFormatNode(4,e,t,o):e=>_.printNode(4,e,t),y=k(h,(e,t)=>n.includeCompletionsWithSnippetText?`${v(e)}$${t+1}`:`${v(e)}`).join(g);return{entry:{name:`${_.printNode(4,h[0],t)} ...`,kind:``,sortText:w8.GlobalsOrKeywords,insertText:y,hasAction:p.hasFixes()||void 0,source:`SwitchCases/`,isSnippet:n.includeCompletionsWithSnippetText?!0:void 0},importAdder:p}}}function P8(e,t,n){switch(e.kind){case 184:let r=e.typeName;return F8(r,t,n);case 200:let i=P8(e.objectType,t,n),a=P8(e.indexType,t,n);return i&&a&&J.createElementAccessExpression(i,a);case 202:let o=e.literal;switch(o.kind){case 11:return J.createStringLiteral(o.text,n===0);case 9:return J.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 197:let s=P8(e.type,t,n);return s&&(Y(s)?s:J.createParenthesizedExpression(s));case 187:return F8(e.exprName,t,n);case 206:H.fail(`We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.`)}}function F8(e,t,n){if(Y(e))return e;let r=Wc(e.right.escapedText);return hT(r,t)?J.createPropertyAccessExpression(F8(e.left,t,n),r):J.createElementAccessExpression(F8(e.left,t,n),J.createStringLiteral(r,n===0))}function nxe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function rxe(e,t){let n=K(e,e=>{switch(e.kind){case 288:return!0;case 44:case 32:case 80:case 212:return!1;default:return`quit`}});if(n){let e=!!YX(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?``:`>`);return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:PZ(n.tagName),entries:[{name:r,kind:`class`,kindModifiers:void 0,sortText:w8.LocationPriority}],defaultCommitCharacters:A8(!1)}}}function ixe(e,t,n,r,i){f4(e).forEach((e,a)=>{if(e===t)return;let o=Wc(a);!n.has(o)&&Ws(o,r)&&(n.add(o),ye(i,{name:o,kind:`warning`,kindModifiers:``,sortText:w8.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},j8))})}function I8(e,t,n){return typeof n==`object`?Iw(n)+`n`:gt(n)?o$(e,t,n):JSON.stringify(n)}function axe(e,t,n){return{name:I8(e,t,n),kind:`string`,kindModifiers:``,sortText:w8.LocationPriority,commitCharacters:[]}}function oxe(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,b,x,S,C,w,T){let E,D,O=NZ(n,a),k,ee,te=z8(d),ne,re,ie,ae=c.getTypeChecker(),A=d&&Lbe(d),j=d&&Nbe(d)||u;if(d&&Mbe(d))E=u?`this${A?`?.`:``}[${R8(o,b,l)}]`:`this${A?`?.`:`.`}${l}`;else if((j||A)&&p){E=j?u?`[${R8(o,b,l)}]`:`[${l}]`:l,(A||p.questionDotToken)&&(E=`?.${E}`);let e=YX(p,25,o)||YX(p,29,o);if(!e)return;let t=pn(l,p.name.text)?p.name.end:e.end;O=Sc(e.getStart(o),t)}if(m&&(E===void 0&&(E=l),E=`{${E}}`,typeof m!=`boolean`&&(O=PZ(m,o))),d&&Ibe(d)&&p){E===void 0&&(E=l);let e=oZ(p.pos,o),t=``;e&&h$(e.end,e.parent,o)&&(t=`;`),t+=`(await ${p.expression.getText()})`,E=u?`${t}${E}`:`${t}${A?`?.`:`.`}${E}`,O=Sc((vt(p.parent,Fk)?p.parent:p.expression).getStart(o),p.end)}if(O8(d)&&(ne=[PQ(d.moduleSpecifier)],h&&({insertText:E,replacementSpan:O}=gxe(l,h,d,g,o,c,b),ee=b.includeCompletionsWithSnippetText?!0:void 0)),d?.kind===64&&(re=!0),x===0&&r&&oZ(r.pos,o,r)?.kind!==28&&(BO(r.parent.parent)||UO(r.parent.parent)||WO(r.parent.parent)||gj(r.parent)||K(r.parent,mj)?.getLastToken(o)===r||hj(r.parent)&&gs(o,r.getEnd()).line!==gs(o,a).line)&&(te=`ObjectLiteralMemberWithComma/`,re=!0),b.includeCompletionsWithClassMemberSnippets&&b.includeCompletionsWithInsertText&&x===3&&cxe(e,i,o)){let t,n=lxe(s,c,_,b,l,e,i,a,r,S);if(n)({insertText:E,filterText:D,isSnippet:ee,importAdder:t}=n),(t?.hasFixes()||n.eraseRange)&&(re=!0,te=`ClassMemberSnippet/`);else return}if(d&&zbe(d)&&({insertText:E,isSnippet:ee,labelDetails:ie}=d,b.useLabelDetailsInCompletionEntries||(l+=ie.detail,ie=void 0),te=`ObjectLiteralMethodSnippet/`,t=w8.SortBelow(t)),C&&!w&&b.includeCompletionsWithSnippetText&&b.jsxAttributeCompletionStyle&&b.jsxAttributeCompletionStyle!==`none`&&!(aj(i.parent)&&i.parent.initializer)){let t=b.jsxAttributeCompletionStyle===`braces`,n=ae.getTypeOfSymbolAtLocation(e,i);b.jsxAttributeCompletionStyle===`auto`&&!(n.flags&528)&&!(n.flags&1048576&&y(n.types,e=>!!(e.flags&528)))&&(n.flags&402653316||n.flags&1048576&&v(n.types,e=>!!(e.flags&402686084||EZ(e)))?(E=`${sT(l)}=${o$(o,b,`$1`)}`,ee=!0):t=!0),t&&(E=`${sT(l)}={$1}`,ee=!0)}if(E!==void 0&&!b.includeCompletionsWithInsertText)return;(D8(d)||O8(d))&&(k=mxe(d),re=!h);let M=K(i,$x);if(M){let e=zS(s.getCompilationSettings());if(!Ws(l,e))E=R8(o,b,l),M.kind===276&&(uX.setText(o.text),uX.resetTokenState(a),uX.scan()===130&&uX.scan()===80||(E+=` as `+sxe(l,e)));else if(M.kind===276){let e=as(l);e&&(e===135||rv(e))&&(E=`${l} as ${l}_`)}}let N=v7.getSymbolKind(ae,e,i),oe=N===`warning`||N===`string`?[]:void 0;return{name:l,kind:N,kindModifiers:v7.getSymbolModifiers(ae,e),sortText:t,source:te,hasAction:re?!0:void 0,isRecommended:_xe(e,f,ae)||void 0,insertText:E,filterText:D,replacementSpan:O,sourceDisplay:ne,labelDetails:ie,isSnippet:ee,isPackageJsonImport:Fbe(d)||void 0,isImportStatementCompletion:!!h||void 0,data:k,commitCharacters:oe,...T?{symbol:e}:void 0}}function sxe(e,t){let n=!1,r=``,i;for(let a=0;a=65536?2:1)i=e.codePointAt(a),i!==void 0&&(a===0?Hs(i,t):Us(i,t))?(n&&(r+=`_`),r+=String.fromCodePoint(i),n=!1):n=!0;return n&&(r+=`_`),r||`_`}function cxe(e,t,n){return ng(t)?!1:!!(e.flags&106500)&&(zu(t)||t.parent&&t.parent.parent&&Ru(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&zu(t.parent.parent)||t.parent&&sM(t)&&zu(t.parent))}function lxe(e,t,n,r,i,a,o,s,c,l){let u=K(o,zu);if(!u)return;let d,f=i,p=i,m=t.getTypeChecker(),h=o.getSourceFile(),g=L8({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:U$(zQ(e,l?.options))}),_=C4.createImportAdder(h,t,r,e),v;if(r.includeCompletionsWithSnippetText){d=!0;let e=J.createEmptyStatement();v=J.createBlock([e],!0),gD(e,{kind:0,order:0})}else v=J.createBlock([],!0);let y=0,{modifiers:b,range:x,decorators:S}=uxe(c,h,s),C=b&64&&u.modifierFlagsCache&64,w=[];if(C4.addNewNodeForMemberSymbol(a,u,h,{program:t,host:e},r,_,e=>{let t=0;C&&(t|=64),Ru(e)&&m.getMemberOverrideModifierStatus(u,e,a)===1&&(t|=16),w.length||(y=e.modifierFlagsCache|t),e=J.replaceModifiers(e,y),w.push(e)},v,C4.PreserveOptionalFlags.Property,!!C),w.length){let e=a.flags&8192,t=y|17;e?t|=1024:t|=136;let n=b&t;if(b&~t)return;if(y&4&&n&1&&(y&=-5),n!==0&&!(n&1)&&(y&=-2),y|=n,w=w.map(e=>J.replaceModifiers(e,y)),S?.length){let e=w[w.length-1];HN(e)&&(w[w.length-1]=J.replaceDecoratorsAndModifiers(e,S.concat(rl(e)||[])))}let r=131073;f=l?g.printAndFormatSnippetList(r,J.createNodeArray(w),h,l):g.printSnippetList(r,J.createNodeArray(w),h)}return{insertText:f,filterText:p,isSnippet:d,importAdder:_,eraseRange:x}}function uxe(e,t,n){if(!e||gs(t,n).line>gs(t,e.getEnd()).line)return{modifiers:0};let r=0,i,a,o={pos:n,end:n};if(RO(e.parent)&&(a=dxe(e))){e.parent.modifiers&&(r|=vb(e.parent.modifiers)&98303,i=e.parent.modifiers.filter(IO)||[],o.pos=Math.min(...e.parent.modifiers.map(e=>e.getStart(t))));let n=yb(a);r&n||(r|=n,o.pos=Math.min(o.pos,e.getStart(t))),e.parent.name!==e&&(o.end=e.parent.name.getStart(t))}return{modifiers:r,decorators:i,range:o.poss.getSignaturesOfType(e,0).length>0);if(t.length===1)e=t[0];else return}if(s.getSignaturesOfType(e,0).length!==1)return;let n=s.typeToTypeNode(e,t,d,void 0,C4.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!XO(n))return;let o;if(a.includeCompletionsWithSnippetText){let e=J.createEmptyStatement();o=J.createBlock([e],!0),gD(e,{kind:0,order:0})}else o=J.createBlock([],!0);let c=n.parameters.map(e=>J.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer));return J.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,o)}default:return}}function L8(e){let t,n=y7.createWriter(ax(e)),r=WU(e,n),i={...n,write:e=>a(e,()=>n.write(e)),nonEscapingWrite:n.write,writeLiteral:e=>a(e,()=>n.writeLiteral(e)),writeStringLiteral:e=>a(e,()=>n.writeStringLiteral(e)),writeSymbol:(e,t)=>a(e,()=>n.writeSymbol(e,t)),writeParameter:e=>a(e,()=>n.writeParameter(e)),writeComment:e=>a(e,()=>n.writeComment(e)),writeProperty:e=>a(e,()=>n.writeProperty(e))};return{printSnippetList:o,printAndFormatSnippetList:c,printNode:l,printAndFormatNode:d};function a(e,r){let i=sT(e);if(i!==e){let e=n.getTextPos();r();let a=n.getTextPos();t=I(t||=[],{newText:i,span:{start:e,length:a-e}})}else r()}function o(e,n,r){let i=s(e,n,r);return t?y7.applyChanges(i,t):i}function s(e,n,a){return t=void 0,i.clear(),r.writeList(e,n,a,i),i.getText()}function c(e,n,r,i){let a={text:s(e,n,r),getLineAndCharacterOfPosition(e){return gs(this,e)}},o=G$(i,r),c=re(n,e=>{let t=y7.assignPositionsToNode(e);return k7.formatNodeGivenIndentation(t,a,r.languageVariant,0,0,{...i,options:o})}),l=t?Ae(de(c,t),(e,t)=>Lt(e.span,t.span)):c;return y7.applyChanges(a.text,l)}function l(e,n,r){let i=u(e,n,r);return t?y7.applyChanges(i,t):i}function u(e,n,a){return t=void 0,i.clear(),r.writeNode(e,n,a,i),i.getText()}function d(e,n,r,i){let a={text:u(e,n,r),getLineAndCharacterOfPosition(e){return gs(this,e)}},o=G$(i,r),s=y7.assignPositionsToNode(n),c=k7.formatNodeGivenIndentation(s,a,r.languageVariant,0,0,{...i,options:o}),l=t?Ae(de(c,t),(e,t)=>Lt(e.span,t.span)):c;return y7.applyChanges(a.text,l)}}function mxe(e){let t=e.fileName?void 0:Zv(e.moduleSymbol.name),n=e.isFromPackageJson?!0:void 0;return O8(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Zv(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function hxe(e,t,n){let r=e.exportName===`default`,i=!!e.isPackageJsonImport;return Ube(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function gxe(e,t,n,r,i,a,o){let s=t.replacementSpan,c=sT(o$(i,o,n.moduleSpecifier)),l=n.isDefaultExport?1:n.exportName===`export=`?2:0,u=o.includeCompletionsWithSnippetText?`$1`:``,d=C4.getImportKind(i,l,a,!0),f=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${is(156)} `:` `,m=f?`${is(156)} `:``,h=r?`;`:``;switch(d){case 3:return{replacementSpan:s,insertText:`import${p}${sT(e)}${u} = require(${c})${h}`};case 1:return{replacementSpan:s,insertText:`import${p}${sT(e)}${u} from ${c}${h}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${sT(e)} from ${c}${h}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${m}${sT(e)}${u} } from ${c}${h}`}}}function R8(e,t,n){return/^\d+$/.test(n)?n:o$(e,t,n)}function _xe(e,t,n){return e===t||!!(e.flags&1048576)&&n.getExportSymbolOfSymbol(e)===t}function z8(e){if(D8(e))return Zv(e.moduleSymbol.name);if(O8(e))return e.moduleSpecifier;if(e?.kind===1)return`ThisProperty/`;if(e?.kind===64)return`TypeOnlyAlias/`}function B8(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=!1){let E=sr(),D=eSe(r,i),O=g$(o),k=c.getTypeChecker(),ee=new Map;for(let u=0;ue.getSourceFile()===i.getSourceFile()));ee.set(ie,M),ye(t,j,j8,void 0,!0)}return u(`getCompletionsAtPosition: getCompletionEntriesFromSymbols: `+(sr()-E)),{has:e=>ee.has(e),add:e=>ee.set(e,!0)};function te(e,t){let n=e.flags;if(i.parent&&UA(i.parent))return!0;if(D&&vt(D,bA)&&(e.valueDeclaration===D||Xu(D.name)&&D.name.elements.some(t=>t===e.valueDeclaration)))return!1;let a=e.valueDeclaration??e.declarations?.[0];if(D&&a){if(FO(D)&&FO(a)){let e=D.parent.parameters;if(a.pos>=D.pos&&a.pos=D.pos&&a.posI8(n,o,e)===i.name);return b===void 0?p(l,(e,t)=>{let n=m[t],r=K8(e,zS(s),n,f,c.isJsxIdentifierExpected);return r&&r.name===i.name&&(i.source===`ClassMemberSnippet/`&&e.flags&106500||i.source===`ObjectLiteralMethodSnippet/`&&e.flags&8196||z8(n)===i.source||i.source===`ObjectLiteralMemberWithComma/`)?{type:`symbol`,symbol:e,location:d,origin:n,contextToken:h,previousToken:g,isJsxInitializer:_,isTypeOnlyLocation:v}:void 0})||{type:`none`}:{type:`literal`,literal:b}}function xxe(e,t,n,r,i,a,o,s,c){let l=e.getTypeChecker(),u=e.getCompilerOptions(),{name:d,source:f,data:p}=i,{previousToken:m,contextToken:h}=G8(r,n);if(lZ(n,r,m))return t5.getStringLiteralCompletionDetails(d,n,r,m,e,a,c,s);let g=bxe(e,t,n,r,i,a,s);switch(g.type){case`request`:{let{request:e}=g;switch(e.kind){case 1:return I5.getJSDocTagNameCompletionDetails(d);case 2:return I5.getJSDocTagCompletionDetails(d);case 3:return I5.getJSDocParameterNameCompletionDetails(d);case 4:return F(e.keywordCompletions,e=>e.name===d)?V8(d,`keyword`,5):void 0;default:return H.assertNever(e)}}case`symbol`:{let{symbol:t,location:i,contextToken:m,origin:h,previousToken:_}=g,{codeActions:v,sourceDisplay:y}=Sxe(d,i,m,h,t,e,a,u,n,r,_,o,s,p,f,c);return H8(t,k8(h)?h.symbolName:t.name,l,n,i,c,v,y)}case`literal`:{let{literal:e}=g;return V8(I8(n,s,e),`string`,typeof e==`string`?8:7)}case`cases`:{let t=txe(h.parent,n,s,e.getCompilerOptions(),a,e,void 0);if(t?.importAdder.hasFixes()){let{entry:e,importAdder:n}=t,r=y7.ChangeTracker.with({host:a,formatContext:o,preferences:s},n.writeFixes);return{name:e.name,kind:``,kindModifiers:``,displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:W$([G.Includes_imports_of_types_referenced_by_0,d])}]}}return{name:d,kind:``,kindModifiers:``,displayParts:[],sourceDisplay:void 0}}case`none`:return jxe().some(e=>e.name===d)?V8(d,`keyword`,5):void 0;default:H.assertNever(g)}}function V8(e,t,n){return U8(e,``,t,[EQ(e,n)])}function H8(e,t,n,r,i,a,o,s){let{displayParts:c,documentation:l,symbolKind:u,tags:d}=n.runWithCancellationToken(a,t=>v7.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7));return U8(t,v7.getSymbolModifiers(n,e),u,c,l,d,o,s)}function U8(e,t,n,r,i,a,o,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:a,codeActions:o,source:s,sourceDisplay:s}}function Sxe(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){if(p?.moduleSpecifier&&u&&Yxe(n||u,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[PQ(p.moduleSpecifier)]};if(m===`ClassMemberSnippet/`){let{importAdder:r,eraseRange:u}=lxe(o,a,s,f,e,i,t,l,n,d);if(r?.hasFixes()||u)return{sourceDisplay:void 0,codeActions:[{changes:y7.ChangeTracker.with({host:o,formatContext:d,preferences:f},e=>{r&&r.writeFixes(e),u&&e.deleteRange(c,u)}),description:r?.hasFixes()?W$([G.Includes_imports_of_types_referenced_by_0,e]):W$([G.Update_modifiers_of_0,e])}]}}if(Rbe(r)){let e=C4.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,a,o,d,f);return H.assertIsDefined(e,`Expected to have a code action for promoting type-only alias`),{codeActions:[e],sourceDisplay:void 0}}if(m===`ObjectLiteralMemberWithComma/`&&n){let t=y7.ChangeTracker.with({host:o,formatContext:d,preferences:f},e=>e.insertText(c,n.end,`,`));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:W$([G.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!(D8(r)||O8(r)))return{codeActions:void 0,sourceDisplay:void 0};let g=r.isFromPackageJson?o.getPackageJsonAutoImportProvider().getTypeChecker():a.getTypeChecker(),{moduleSymbol:_}=r,v=g.getMergedSymbol(Nx(i.exportSymbol||i,g)),y=n?.kind===30&&Jd(n.parent),{moduleSpecifier:b,codeAction:x}=C4.getImportCompletionAction(v,_,p?.exportMapKey,c,e,y,o,a,d,u&&Y(u)?u.getStart(c):l,f,h);return H.assert(!p?.moduleSpecifier||b===p.moduleSpecifier),{sourceDisplay:[PQ(b)],codeActions:[x]}}function Cxe(e,t,n,r,i,a,o){let s=bxe(e,t,n,r,i,a,o);return s.type===`symbol`?s.symbol:void 0}var wxe=(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))(wxe||{});function Txe(e,t,n){return p(t&&(t.isUnion()?t.types:[t]),t=>{let r=t&&t.symbol;return r&&r.flags&424&&!Hx(r)?W8(r,e,n):void 0})}function Exe(e,t,n,r){let{parent:i}=e;switch(e.kind){case 80:return a$(e,r);case 64:switch(i.kind){case 261:return r.getContextualType(i.initializer);case 227:return r.getTypeAtLocation(i.left);case 292:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:let a=vt(i,uj);return a?u$(a,r):void 0;case 19:return cj(i)&&!QA(i.parent)&&!nj(i.parent)?r.getContextualTypeForJsxAttribute(i.parent):void 0;default:let o=u7.getArgumentInfoForCompletions(e,t,n,r);return o?r.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex):s$(e.kind)&&Rk(i)&&s$(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}function W8(e,t,n){let r=n.getAccessibleSymbolChain(e,t,-1,!1);return r?Ie(r):e.parent&&(Dxe(e.parent)?e:W8(e.parent,t,n))}function Dxe(e){return!!e.declarations?.some(e=>e.kind===308)}function Oxe(e,t,n,r,i,a,o,s,c,l){let u=e.getTypeChecker(),f=exe(n,r),m=sr(),h=nZ(n,i);t(`getCompletionData: Get current token: `+(sr()-m)),m=sr();let g=yZ(n,i,h);t(`getCompletionData: Is inside comment: `+(sr()-m));let _=!1,v=!1,b=!1;if(g){if(bZ(n,i)){if(n.text.charCodeAt(i-1)===64)return{kind:1};{let e=IX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}let e=Rxe(h,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};if(oM(e))v=!0;else{let t=Se(e);if(t&&(h=nZ(n,i),(!h||!R_(h)&&(h.parent.kind!==349||h.parent.name!==h))&&(_=ft(t))),!_&&Yj(e)&&(rp(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}}if(!_&&!v){t(`Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.`);return}}m=sr();let x=!_&&!v&&tg(n),S=G8(i,n),C=S.previousToken,w=S.contextToken;t(`getCompletionData: Get previous token: `+(sr()-m));let T=h,D,O=!1,k=!1,ee=!1,te=!1,ne=!1,ie=!1,ae,A=eZ(n,i),j=0,N=!1,oe=0,se;if(w){let e=Yxe(w,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[Jbe(e.keywordCompletion)],isNewIdentifierLocation:e.isNewIdentifierLocation};j=Zbe(e.keywordCompletion)}if(e.replacementSpan&&a.includeCompletionsForImportStatements&&a.includeCompletionsWithInsertText&&(oe|=2,ae=e,N=e.isNewIdentifierLocation),!e.replacementSpan&&He(w))return t(`Returning an empty list because completion was requested in an invalid position.`),j?Xbe(j,x,We().isNewIdentifierLocation):void 0;let r=w.parent;if(w.kind===25||w.kind===29)switch(O=w.kind===25,k=w.kind===29,r.kind){case 212:if(D=r,T=D.expression,rp(eS(D))||(Tk(T)||ju(T))&&T.end===w.pos&&T.getChildCount(n)&&ze(T.getChildren(n)).kind!==22)return;break;case 167:T=r.left;break;case 268:T=r.name;break;case 206:T=r;break;case 237:T=r.getFirstToken(n),H.assert(T.kind===102||T.kind===105);break;default:return}else if(!ae){if(r&&r.kind===212&&(w=r,r=r.parent),h.parent===A)switch(h.kind){case 32:(h.parent.kind===285||h.parent.kind===287)&&(A=h);break;case 44:h.parent.kind===286&&(A=h);break}switch(r.kind){case 288:w.kind===44&&(te=!0,A=w);break;case 227:if(!Gxe(r))break;case 286:case 285:case 287:ie=!0,w.kind===30&&(ee=!0,A=w);break;case 295:case 294:(C.kind===20||C.kind===80&&C.parent.kind===292)&&(ie=!0);break;case 292:if(r.initializer===C&&C.endQZ(t?s.getPackageJsonAutoImportProvider():e,s));if(O||k)Ce();else if(ee)ue=u.getJsxIntrinsicTagNamesAt(A),H.assertEachIsDefined(ue,`getJsxIntrinsicTagNames() should all be defined`),Ee(),P=1,j=0;else if(te){let e=w.parent.parent.openingElement.tagName,t=u.getSymbolAtLocation(e);t&&(ue=[t]),P=1,j=0}else if(!Ee())return j?Xbe(j,x,N):void 0;t(`getCompletionData: Semantic work: `+(sr()-ce));let ve=C&&Exe(C,i,n,u),ye=!vt(C,uf)&&!ie?M(ve&&(ve.isUnion()?ve.types:[ve]),e=>e.isLiteral()&&!(e.flags&1024)?e.value:void 0):[],be=C&&ve&&Txe(C,ve,u);return{kind:0,symbols:ue,completionKind:P,isInSnippetScope:b,propertyAccessToConvert:D,isNewIdentifierLocation:N,location:A,keywordFilters:j,literals:ye,symbolToOriginInfoMap:pe,recommendedCompletion:be,previousToken:C,contextToken:w,isJsxInitializer:ne,insideJsDocTagTypeExpression:_,symbolToSortTextMap:me,isTypeOnlyLocation:ge,isJsxIdentifierExpected:ie,isRightOfOpenTag:ee,isRightOfDotOrQuestionDot:O||k,importStatementCompletion:ae,hasUnresolvedAutoImports:le,flags:oe,defaultCommitCharacters:se};function xe(e){switch(e.kind){case 342:case 349:case 343:case 345:case 347:case 350:case 351:return!0;case 346:return!!e.constraint;default:return!1}}function Se(e){if(xe(e)){let t=$j(e)?e.constraint:e.typeExpression;return t&&t.kind===310?t:void 0}if(Ij(e)||rM(e))return e.class}function Ce(){P=2;let e=Hm(T),t=e&&!T.isTypeOf||eh(T.parent)||gZ(w,n,u),r=mX(T);if(Ou(T)||e||Ck(T)){let n=DA(T.parent);n&&(N=!0,se=[]);let i=u.getSymbolAtLocation(T);if(i&&(i=Nx(i,u),i.flags&1920)){let o=u.getExportsOfModule(i);H.assertEachIsDefined(o,`getExportsOfModule() should all be defined`);let s=t=>u.isValidPropertyAccess(e?T:T.parent,t.name),c=e=>e5(e,u),l=n?e=>!!(e.flags&1920)&&!e.declarations?.every(e=>e.parent===T.parent):r?(e=>c(e)||s(e)):t||_?c:s;for(let e of o)l(e)&&ue.push(e);if(!t&&!_&&i.declarations&&i.declarations.some(e=>e.kind!==308&&e.kind!==268&&e.kind!==267)){let e=u.getTypeOfSymbolAtLocation(i,T).getNonOptionalType(),t=!1;if(e.isNullableType()){let n=O&&!k&&a.includeAutomaticOptionalChainCompletions!==!1;(n||k)&&(e=e.getNonNullableType(),n&&(t=!0))}I(e,!!(T.flags&65536),t)}return}}if(!t||Ny(T)){u.tryGetThisTypeAt(T,!1);let e=u.getTypeAtLocation(T).getNonOptionalType();if(t)I(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){let n=O&&!k&&a.includeAutomaticOptionalChainCompletions!==!1;(n||k)&&(e=e.getNonNullableType(),n&&(t=!0))}I(e,!!(T.flags&65536),t)}}}function I(e,t,n){e.getStringIndexType()&&(N=!0,se=[]),k&&F(e.getCallSignatures())&&(N=!0,se??=T8);let r=T.kind===206?T:T.parent;if(f)for(let t of e.getApparentProperties())u.isValidPropertyAccessForCompletions(r,e,t)&&we(t,!1,n);else ue.push(...E(Z8(e,u),t=>u.isValidPropertyAccessForCompletions(r,e,t)));if(t&&a.includeCompletionsWithInsertText){let t=u.getPromisedTypeOfPromise(e);if(t)for(let e of t.getApparentProperties())u.isValidPropertyAccessForCompletions(r,t,e)&&we(e,!0,n)}}function we(t,r,o){let c=p(t.declarations,e=>vt(el(e),NO));if(c){let r=Te(c.expression),o=r&&u.getSymbolAtLocation(r),p=o&&W8(o,w,u),m=p&&hB(p);if(m&&Jx(he,m)){let t=ue.length;ue.push(p),me[hB(p)]=w8.GlobalsOrKeywords;let r=p.parent;if(!r||!Tf(r)||u.tryGetMemberInModuleExportsAndProperties(p.name,r)!==p)pe[t]={kind:f(2)};else{let o=tc(Zv(r.name))?Xf(r)?.fileName:void 0,{moduleSpecifier:c}=(fe||=C4.createImportSpecifierResolver(n,e,s,a)).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:o,isFromPackageJson:!1,moduleSymbol:r,symbol:p,targetFlags:Nx(p,u).flags}],i,Bw(A))||{};c&&(pe[t]={kind:f(6),moduleSymbol:r,isDefaultExport:!1,symbolName:p.name,exportName:p.name,fileName:o,moduleSpecifier:c})}}else if(a.includeCompletionsWithInsertText){if(m&&he.has(m))return;d(t),l(t),ue.push(t)}}else d(t),l(t),ue.push(t);function l(e){qxe(e)&&(me[hB(e)]=w8.LocalDeclarationPriority)}function d(e){a.includeCompletionsWithInsertText&&(r&&Jx(he,hB(e))?pe[ue.length]={kind:f(8)}:o&&(pe[ue.length]={kind:16}))}function f(e){return o?e|16:e}}function Te(e){return Y(e)?e:Ck(e)?Te(e.expression):void 0}function Ee(){return(Ge()||Ke()||ke()||qe()||Je()||Ye()||De()||Xe()||Oe()||(Ae(),1))===1}function De(){return Qe(w)?(P=5,N=!0,j=4,1):0}function Oe(){let e=et(w),t=e&&u.getContextualType(e.attributes);if(!t)return 0;let n=e&&u.getContextualType(e.attributes,4);return ue=de(ue,z(X8(t,n,e.attributes,u),e.attributes.properties)),lt(),P=3,N=!1,1}function ke(){return ae?(N=!0,Ie(),1):0}function Ae(){j=$e(w)?5:1,P=1,{isNewIdentifierLocation:N,defaultCommitCharacters:se}=We(),C!==w&&H.assert(!!C,`Expected 'contextToken' to be defined when different from 'previousToken'.`);let e=C===w?i:C.getStart(),t=Ve(w,e,n)||n;b=Me(t);let r=(ge?0:111551)|2887656,o=C&&!Bw(C);ue=de(ue,u.getSymbolsInScope(t,r)),H.assertEachIsDefined(ue,`getSymbolsInScope() should all be defined`);for(let e=0;ee.getSourceFile()===n)&&(me[hB(t)]=w8.GlobalsOrKeywords),o&&!(t.flags&111551)){let n=t.declarations&&y(t.declarations,pu);n&&(pe[e]={kind:64,declaration:n})}}if(a.includeCompletionsWithInsertText&&t.kind!==308){let e=u.tryGetThisTypeAt(t,!1,zu(t.parent)?t:void 0);if(e&&!Kxe(e,n,u))for(let t of Z8(e,u))pe[ue.length]={kind:1},ue.push(t),me[hB(t)]=w8.SuggestedClassMembers}Ie(),ge&&(j=w&&yd(w.parent)?6:7)}function je(){return ae?!0:a.includeCompletionsForModuleExports?n.externalModuleIndicator||n.commonJsModuleIndicator||ZZ(e.getCompilerOptions())?!0:e.getSymlinkCache?.call(e).hasAnySymlinks()||!!e.getCompilerOptions().paths||YZ(e):!1}function Me(e){switch(e.kind){case 308:case 229:case 295:case 242:return!0;default:return Bd(e)}}function Ne(){return _||v||!!ae&&hu(A.parent)||!Pe(w)&&(gZ(w,n,u)||eh(A)||Fe(w))}function Pe(e){return e&&(e.kind===114&&(e.parent.kind===187||Nk(e.parent))||e.kind===131&&e.parent.kind===183)}function Fe(e){if(e){let t=e.parent.kind;switch(e.kind){case 59:return t===173||t===172||t===170||t===261||Iu(t);case 64:return t===266||t===169;case 130:return t===235;case 30:return t===184||t===217;case 96:return t===169;case 152:return t===239}}return!1}function Ie(){if(!je()||(H.assert(!o?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),o&&!o.source))return;oe|=1;let t=C===w&&ae?``:C&&Y(C)?C.text.toLowerCase():``,r=s.getModuleSpecifierCache?.call(s),c=a1(n,s,e,a,l),u=s.getPackageJsonAutoImportProvider?.call(s),d=o?void 0:E$(n,a,s);Vbe(`collectAutoImports`,s,fe||=C4.createImportSpecifierResolver(n,e,s,a),e,i,a,!!ae,Bw(A),e=>{c.search(n.path,ee,(e,n)=>{if(!Ws(e,zS(s.getCompilationSettings()))||!o&&iv(e)||!ge&&!ae&&!(n&111551)||ge&&!(n&790504))return!1;let r=e.charCodeAt(0);return ee&&(r<65||r>90)?!1:o?!0:iSe(e,t)},(t,n,r,i)=>{if(o&&!F(t,e=>o.source===Zv(e.moduleSymbol.name))||(t=E(t,f),!t.length))return;let a=e.tryResolve(t,r)||{};if(a===`failed`)return;let s=t[0],c;a!==`skipped`&&({exportInfo:s=t[0],moduleSpecifier:c}=a);let l=s.exportKind===1;Le(l&&Gb(H.checkDefined(s.symbol))||H.checkDefined(s.symbol),{kind:c?32:4,moduleSpecifier:c,symbolName:n,exportMapKey:i,exportName:s.exportKind===2?`export=`:H.checkDefined(s.symbol).name,fileName:s.moduleFileName,isDefaultExport:l,moduleSymbol:s.moduleSymbol,isFromPackageJson:s.isFromPackageJson})}),le=e.skippedAny(),oe|=e.resolvedAny()?8:0,oe|=e.resolvedBeyondLimit()?16:0});function f(t){return t1(t.isFromPackageJson?u:e,n,vt(t.moduleSymbol.valueDeclaration,vj),t.moduleSymbol,a,d,_e(t.isFromPackageJson),r)}}function Le(e,t){let n=hB(e);me[n]!==w8.GlobalsOrKeywords&&(pe[ue.length]=t,me[n]=ae?w8.LocationPriority:w8.AutoImportSuggestions,ue.push(e))}function Re(t,n){ng(A)||t.forEach(t=>{if(!Be(t))return;let i=K8(t,zS(r),void 0,0,!1);if(!i)return;let{name:o}=i,l=fxe(t,o,n,e,s,r,a,c);if(!l)return;let u={kind:128,...l};oe|=32,pe[ue.length]=u,ue.push(t)})}function Be(e){return!!(e.flags&8196)}function Ve(e,t,n){let r=e;for(;r&&!WX(r,t,n);)r=r.parent;return r}function He(e){let n=sr(),r=L(e)||nt(e)||at(e)||Ue(e)||eO(e);return t(`getCompletionsAtPosition: isCompletionListBlocker: `+(sr()-n)),r}function Ue(e){if(e.kind===12)return!0;if(e.kind===32&&e.parent){if(A===e.parent&&(A.kind===287||A.kind===286))return!1;if(e.parent.kind===287)return A.parent.kind!==287;if(e.parent.kind===288||e.parent.kind===286)return!!e.parent.parent&&e.parent.parent.kind===285}return!1}function We(){if(w){let e=w.parent.kind,t=Y8(w);switch(t){case 28:switch(e){case 214:case 215:{let e=w.parent.expression;return gs(n,e.end).line===gs(n,i).line?{defaultCommitCharacters:T8,isNewIdentifierLocation:!0}:{defaultCommitCharacters:E8,isNewIdentifierLocation:!0}}case 227:return{defaultCommitCharacters:E8,isNewIdentifierLocation:!0};case 177:case 185:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 210:return{defaultCommitCharacters:T8,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:T8,isNewIdentifierLocation:!1}}case 21:switch(e){case 214:case 215:{let e=w.parent.expression;return gs(n,e.end).line===gs(n,i).line?{defaultCommitCharacters:T8,isNewIdentifierLocation:!0}:{defaultCommitCharacters:E8,isNewIdentifierLocation:!0}}case 218:return{defaultCommitCharacters:E8,isNewIdentifierLocation:!0};case 177:case 197:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:T8,isNewIdentifierLocation:!1}}case 23:switch(e){case 210:case 182:case 190:case 168:return{defaultCommitCharacters:T8,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:T8,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:switch(e){case 268:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:T8,isNewIdentifierLocation:!1}}case 19:switch(e){case 264:case 211:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:T8,isNewIdentifierLocation:!1}}case 64:switch(e){case 261:case 227:return{defaultCommitCharacters:T8,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:T8,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:T8,isNewIdentifierLocation:e===229};case 17:return{defaultCommitCharacters:T8,isNewIdentifierLocation:e===240};case 134:return e===175||e===305?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:T8,isNewIdentifierLocation:!1};case 42:return e===175?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:T8,isNewIdentifierLocation:!1}}if(J8(t))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:T8,isNewIdentifierLocation:!1}}function L(e){return(rO(e)||_u(e))&&(zX(e,i)||i===e.end&&(!!e.isUnterminated||rO(e)))}function Ge(){let e=Hxe(w);if(!e)return 0;let t=(ok(e.parent)?e.parent:void 0)||e,n=Uxe(t,u);if(!n)return 0;let r=u.getTypeFromTypeNode(t),i=Z8(n,u),a=Z8(r,u),o=new Set;return a.forEach(e=>o.add(e.escapedName)),ue=de(ue,E(i,e=>!o.has(e.escapedName))),P=0,N=!0,1}function Ke(){if(w?.kind===26)return 0;let e=ue.length,t=kxe(w,i,n);if(!t)return 0;P=0;let r,o;if(t.kind===211){let e=Jxe(t,u);if(e===void 0)return t.flags&67108864?2:0;let n=u.getContextualType(t,4),i=(n||e).getStringIndexType(),a=(n||e).getNumberIndexType();if(N=!!i||!!a,r=X8(e,n,t,u),o=t.properties,r.length===0&&!a)return 0}else{H.assert(t.kind===207),N=!1;let e=Dv(t.parent);if(!oh(e))return H.fail(`Root declaration is not variable-like.`);let n=rf(e)||!!Ly(e)||e.parent.parent.kind===251;if(!n&&e.kind===170&&(q(e.parent)?n=!!u.getContextualType(e.parent):(e.parent.kind===175||e.parent.kind===179)&&(n=q(e.parent.parent)&&!!u.getContextualType(e.parent.parent))),n){let e=u.getTypeAtLocation(t);if(!e)return 2;r=u.getPropertiesOfType(e).filter(n=>u.isPropertyAccessible(t,!1,!1,e,n)),o=t.elements}}if(r&&r.length>0){let n=st(r,H.checkDefined(o));ue=de(ue,n),lt(),t.kind===211&&a.includeCompletionsWithObjectLiteralMethodSnippets&&a.includeCompletionsWithInsertText&&(R(e),Re(n,t))}return 1}function qe(){if(!w)return 0;let e=w.kind===19||w.kind===28?vt(w.parent,$x):UZ(w)?vt(w.parent.parent,$x):void 0;if(!e)return 0;UZ(w)||(j=8);let{moduleSpecifier:t}=e.kind===276?e.parent.parent:e.parent;if(!t)return N=!0,e.kind===276?2:0;let n=u.getSymbolAtLocation(t);if(!n)return N=!0,2;P=3,N=!1;let r=u.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter(e=>!ft(e)).map(e=>Cp(e.propertyName||e.name))),a=r.filter(e=>e.escapedName!==`default`&&!i.has(e.escapedName));return ue=de(ue,a),a.length||(j=0),1}function Je(){if(w===void 0)return 0;let e=w.kind===19||w.kind===28?vt(w.parent,LA):w.kind===59?vt(w.parent.parent,LA):void 0;if(e===void 0)return 0;let t=new Set(e.elements.map(FT));return ue=E(u.getTypeAtLocation(e).getApparentProperties(),e=>!t.has(e.escapedName)),1}function Ye(){var e;let t=w&&(w.kind===19||w.kind===28)?vt(w.parent,GA):void 0;if(!t)return 0;let n=K(t,vn(vj,DA));return P=5,N=!1,(e=n.locals)==null||e.forEach((e,t)=>{ue.push(e),(n.symbol?.exports)?.has(t)&&(me[hB(e)]=w8.OptionalMember)}),1}function Xe(){let e=Vxe(n,w,A,i);if(!e)return 0;if(P=3,N=!0,j=w.kind===42?0:zu(e)?2:3,!zu(e))return 1;let t=w.kind===27?w.parent.parent:w.parent,r=Ru(t)?ub(t):0;if(w.kind===80&&!ft(w))switch(w.getText()){case`private`:r|=2;break;case`static`:r|=256;break;case`override`:r|=16;break}if(VO(t)&&(r|=256),!(r&2)){let t=re(zu(e)&&r&16?xn(K_(e)):Y_(e),t=>{let n=u.getTypeAtLocation(t);return r&256?n?.symbol&&u.getPropertiesOfType(u.getTypeOfSymbolAtLocation(n.symbol,e)):n&&u.getPropertiesOfType(n)});ue=de(ue,dt(t,e.members,r)),d(ue,(e,t)=>{let n=e?.valueDeclaration;n&&Ru(n)&&n.name&&NO(n.name)&&(pe[t]={kind:512,symbolName:u.symbolToString(e)})})}return 1}function Ze(e){return!!e.parent&&FO(e.parent)&&HO(e.parent.parent)&&(Tu(e.kind)||R_(e))}function Qe(e){if(e){let t=e.parent;switch(e.kind){case 21:case 28:return HO(e.parent)?e.parent:void 0;default:if(Ze(e))return t.parent}}}function $e(e){if(e){let t,n=K(e.parent,e=>zu(e)?`quit`:Nu(e)&&t===e.body?!0:(t=e,!1));return n&&n}}function et(e){if(e){let t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 212:case 293:case 292:case 294:if(t&&(t.kind===286||t.kind===287)){if(e.kind===32){let r=oZ(e.pos,n,void 0);if(!t.typeArguments||r&&r.kind===44)break}return t}else if(t.kind===292)return t.parent.parent;break;case 11:if(t&&(t.kind===292||t.kind===294))return t.parent.parent;break;case 20:if(t&&t.kind===295&&t.parent&&t.parent.kind===292)return t.parent.parent.parent;if(t&&t.kind===294)return t.parent.parent;break}}}function tt(e,t){return n.getLineEndOfPosition(e.getEnd())=e.pos;case 25:return n===208;case 59:return n===209;case 23:return n===208;case 21:return n===300||it(n);case 19:return n===267;case 30:return n===264||n===232||n===265||n===266||Iu(n);case 126:return n===173&&!zu(t.parent);case 26:return n===170||!!t.parent&&t.parent.kind===208;case 125:case 123:case 124:return n===170&&!HO(t.parent);case 130:return n===277||n===282||n===275;case 139:case 153:return!Q8(e);case 80:if((n===277||n===282)&&e===t.name&&e.text===`type`||K(e.parent,bA)&&tt(e,i))return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return n!==277;case 42:return ju(e.parent)&&!BO(e.parent)}if(J8(Y8(e))&&Q8(e)||Ze(e)&&(!Y(e)||Tu(Y8(e))||ft(e)))return!1;switch(Y8(e)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return RO(e.parent)}if(K(e.parent,zu)&&e===C&&rt(e,i))return!1;let r=Q_(e.parent,173);if(r&&e!==C&&zu(C.parent.parent)&&i<=C.end){if(rt(e,C.end))return!1;if(e.kind!==64&&(SV(r)||nf(r)))return!0}return R_(e)&&!hj(e.parent)&&!aj(e.parent)&&!((zu(e.parent)||wA(e.parent)||PO(e.parent))&&(e!==C||i>C.end))}function rt(e,t){return e.kind!==64&&(e.kind===27||!bx(e.end,t,n))}function it(e){return Iu(e)&&e!==177}function at(e){if(e.kind===9){let t=e.getFullText();return t.charAt(t.length-1)===`.`}return!1}function ot(e){return e.parent.kind===262&&!gZ(e,n,u)}function st(e,t){if(t.length===0)return e;let n=new Set,r=new Set;for(let e of t){if(e.kind!==304&&e.kind!==305&&e.kind!==209&&e.kind!==175&&e.kind!==178&&e.kind!==179&&e.kind!==306||ft(e))continue;let t;if(gj(e))ct(e,n);else if(bk(e)&&e.propertyName)e.propertyName.kind===80&&(t=e.propertyName.escapedText);else{let n=el(e);t=n&&hv(n)?_v(n):void 0}t!==void 0&&r.add(t)}let i=e.filter(e=>!r.has(e.escapedName));return ut(n,i),i}function ct(e,t){let n=e.expression,r=u.getSymbolAtLocation(n),i=r&&u.getTypeOfSymbolAtLocation(r,n),a=i&&i.properties;a&&a.forEach(e=>{t.add(e.name)})}function lt(){ue.forEach(e=>{if(e.flags&16777216){let t=hB(e);me[t]=me[t]??w8.OptionalMember}})}function ut(e,t){if(e.size!==0)for(let n of t)e.has(n.name)&&(me[hB(n)]=w8.MemberDeclaredBySpreadAssignment)}function R(e){for(let t=e;t!r.has(e.escapedName)&&!!e.declarations&&!(Mx(e)&2)&&!(e.valueDeclaration&&Su(e.valueDeclaration)))}function z(e,t){let n=new Set,r=new Set;for(let e of t)ft(e)||(e.kind===292?n.add(CT(e.name)):sj(e)&&ct(e,r));let i=e.filter(e=>!n.has(e.escapedName));return ut(r,i),i}function ft(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function kxe(e,t,n){if(e){let{parent:r}=e;switch(e.kind){case 19:case 28:if(Sk(r)||vk(r))return r;break;case 42:return BO(r)?vt(r.parent,Sk):void 0;case 134:return vt(r.parent,Sk);case 80:if(e.text===`async`&&hj(e.parent))return e.parent.parent;{if(Sk(e.parent.parent)&&(gj(e.parent)||hj(e.parent)&&gs(n,e.getEnd()).line!==gs(n,t).line))return e.parent.parent;let i=K(r,mj);if(i?.getLastToken(n)===e&&Sk(i.parent))return i.parent}break;default:if(r.parent?.parent&&(BO(r.parent)||UO(r.parent)||WO(r.parent))&&Sk(r.parent.parent))return r.parent.parent;if(gj(r)&&Sk(r.parent))return r.parent;let i=K(r,mj);if(e.kind!==59&&i?.getLastToken(n)===e&&Sk(i.parent))return i.parent}}}function G8(e,t){let n=oZ(e,t);return n&&e<=n.end&&(Bl(n)||$_(n.kind))?{contextToken:oZ(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function Axe(e,t,n,r){let i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,a=i.getTypeChecker(),o=t.ambientModuleName?a.tryFindAmbientModule(t.ambientModuleName):t.fileName?a.getMergedSymbol(H.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!o)return;let s=t.exportName===`export=`?a.resolveExternalModuleSymbol(o):a.tryGetMemberInModuleExportsAndProperties(t.exportName,o);if(s)return s=t.exportName===`default`&&Gb(s)||s,{symbol:s,origin:hxe(t,e,o)}}function K8(e,t,n,r,i){if(Bbe(n))return;let a=Pbe(n)?n.symbolName:e.name;if(a===void 0||e.flags&1536&&fg(a.charCodeAt(0))||yv(e))return;let o={name:a,needsConvertPropertyAccess:!1};if(Ws(a,t,i?1:0)||e.valueDeclaration&&Su(e.valueDeclaration))return o;if(e.flags&2097152)return{name:a,needsConvertPropertyAccess:!0};switch(r){case 3:return k8(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:!1};case 2:case 1:return a.charCodeAt(0)===32?void 0:{name:a,needsConvertPropertyAccess:!0};case 5:case 4:return o;default:H.assertNever(r)}}var q8=[],jxe=kt(()=>{let e=[];for(let t=83;t<=166;t++)e.push({name:is(t),kind:`keyword`,kindModifiers:``,sortText:w8.GlobalsOrKeywords});return e});function Mxe(e,t){if(!t)return Nxe(e);let n=e+8+1;return q8[n]||(q8[n]=Nxe(e).filter(e=>!Pxe(as(e.name))))}function Nxe(e){return q8[e]||(q8[e]=jxe().filter(t=>{let n=as(t.name);switch(e){case 0:return!1;case 1:return Ixe(n)||n===138||n===144||n===156||n===145||n===128||HZ(n)&&n!==157;case 5:return Ixe(n);case 2:return J8(n);case 3:return Fxe(n);case 4:return Tu(n);case 6:return HZ(n)||n===87;case 7:return HZ(n);case 8:return n===156;default:return H.assertNever(e)}}))}function Pxe(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function Fxe(e){return e===148}function J8(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Eu(e)}}function Ixe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!nv(e)&&!J8(e)}function Y8(e){return Y(e)?Kc(e)??0:e.kind}function Lxe(e,t){let n=[];if(e){let r=e.getSourceFile(),i=e.parent,a=r.getLineAndCharacterOfPosition(e.end).line,o=r.getLineAndCharacterOfPosition(t).line;(MA(i)||WA(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&a===o&&n.push({name:is(132),kind:`keyword`,kindModifiers:``,sortText:w8.GlobalsOrKeywords})}return n}function Rxe(e,t){return K(e,e=>Qd(e)&&RX(e,t)?!0:Nj(e)?`quit`:!1)}function X8(e,t,n,r){let i=t&&t!==e,a=r.getUnionType(E(e.flags&1048576?e.types:[e],e=>!r.getPromisedTypeOfPromise(e))),o=i&&!(t.flags&3)?r.getUnionType([a,t]):a,s=zxe(o,n,r);return o.isClass()&&Bxe(s)?[]:i?E(s,c):s;function c(e){return u(e.declarations)?F(e.declarations,e=>e.parent!==n):!0}}function zxe(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(E(e.types,e=>!(e.flags&402784252||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&Bxe(e.getApparentProperties())))):e.getApparentProperties()}function Bxe(e){return F(e,e=>!!(Mx(e)&6))}function Z8(e,t){return e.isUnion()?H.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),`getAllPossiblePropertiesOfTypes() should all be defined`):H.checkEachDefined(e.getApparentProperties(),`getApparentProperties() should all be defined`)}function Vxe(e,t,n,r){switch(n.kind){case 353:return vt(n.parent,Yx);case 1:let t=vt(Re(yt(n.parent,vj).statements),Yx);if(t&&!YX(t,20,e))return t;break;case 81:if(vt(n.parent,RO))return K(n,zu);break;case 80:if(Kc(n)||RO(n.parent)&&n.parent.initializer===n)return;if(Q8(n))return K(n,Yx)}if(t){if(n.kind===137||Y(t)&&RO(t.parent)&&zu(n))return K(t,zu);switch(t.kind){case 64:return;case 27:case 20:return Q8(n)&&n.parent.name===n?n.parent.parent:vt(n,Yx);case 19:case 28:return vt(t.parent,Yx);default:if(Yx(n)){if(gs(e,t.getEnd()).line!==gs(e,r).line)return n;let i=zu(t.parent.parent)?J8:Fxe;return i(t.kind)||t.kind===42||Y(t)&&i(Kc(t)??0)?t.parent.parent:void 0}return}}}function Hxe(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if($O(t))return t;break;case 27:case 28:case 80:if(t.kind===172&&$O(t.parent))return t.parent;break}}function Uxe(e,t){if(!e)return;if(Ju(e)&&sf(e.parent))return t.getTypeArgumentConstraint(e);let n=Uxe(e.parent,t);if(n)switch(e.kind){case 172:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 194:case 188:case 193:return n}}function Q8(e){return e.parent&&Ku(e.parent)&&Yx(e.parent.parent)}function Wxe(e,t,n,r){switch(t){case`.`:case`@`:return!0;case`"`:case`'`:case"`":return!!n&&c$(n)&&r===n.getStart(e)+1;case`#`:return!!n&&vO(n)&&!!Sh(n);case`<`:return!!n&&n.kind===30&&(!Rk(n.parent)||Gxe(n.parent));case`/`:return!!n&&(uf(n)?!!qg(n):n.kind===44&&tj(n.parent));case` `:return!!n&&AO(n)&&n.parent.kind===308;default:return H.assertNever(t)}}function Gxe({left:e}){return rp(e)}function Kxe(e,t,n){let r=n.resolveName(`self`,void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;let i=n.resolveName(`global`,void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;let a=n.resolveName(`globalThis`,void 0,111551,!1);return!!(a&&n.getTypeOfSymbolAtLocation(a,t)===e)}function qxe(e){return!!(e.valueDeclaration&&ub(e.valueDeclaration)&256&&zu(e.valueDeclaration.parent))}function Jxe(e,t){let n=t.getContextualType(e);if(n)return n;let r=M_(e.parent);if(Rk(r)&&r.operatorToken.kind===64&&e===r.left)return t.getTypeAtLocation(r);if(q(r))return t.getContextualType(r)}function Yxe(e,t){let n,r=!1,i=a();return{isKeywordOnlyCompletion:r,keywordCompletion:n,isNewIdentifierLocation:!!(i||n===156),isTopLevelTypeOnly:!!vt(i,MA)?.importClause?.isTypeOnly||!!vt(i,jA)?.isTypeOnly,couldBeTypeOnlyImportSpecifier:!!i&&Qxe(i,e),replacementSpan:Xxe(i)};function a(){let i=e.parent;if(jA(i)){let a=i.getLastToken(t);if(Y(e)&&a!==e){n=161,r=!0;return}return n=e.kind===156?void 0:156,$8(i.moduleReference)?i:void 0}if(Qxe(i,e)&&$xe(i.parent))return i;if(VA(i)||zA(i)){if(!i.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(n=156),$xe(i))if(e.kind===20||e.kind===80)r=!0,n=161;else return i.parent.parent;return}if(WA(i)&&e.kind===42||GA(i)&&e.kind===20){r=!0,n=161;return}if(AO(e)&&vj(i))return n=156,e;if(AO(e)&&MA(i))return n=156,$8(i.moduleSpecifier)?i:void 0}}function Xxe(e){if(!e)return;let t=K(e,vn(MA,jA,oM))??e,n=t.getSourceFile();if(fx(t,n))return PZ(t,n);H.assert(t.kind!==102&&t.kind!==277);let r=t.kind===273||t.kind===352?Zxe(t.importClause?.namedBindings)??t.moduleSpecifier:t.moduleReference,i={pos:t.getFirstToken().getStart(),end:r.pos};if(fx(i,n))return LZ(i)}function Zxe(e){return y(vt(e,VA)?.elements,t=>!t.propertyName&&iv(t.name.text)&&oZ(t.name.pos,e.getSourceFile(),e)?.kind!==28)}function Qxe(e,t){return HA(e)&&(e.isTypeOnly||t===e.name&&UZ(t))}function $xe(e){if(!$8(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(VA(e)){let t=Zxe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function $8(e){return rp(e)?!0:!vt(ZA(e)?e.expression:e,uf)?.text}function eSe(e,t){if(!e)return;let n=K(e,e=>ph(e)||nSe(e)||Xu(e)?`quit`:(FO(e)||PO(e))&&!qO(e.parent));return n||=K(t,e=>ph(e)||nSe(e)||Xu(e)?`quit`:bA(e)),n}function tSe(e){if(!e)return!1;let t=e,n=e.parent;for(;n;){if(PO(n))return n.default===t||t.kind===64;t=n,n=n.parent}return!1}function nSe(e){return e.parent&&jk(e.parent)&&(e.parent.body===e||e.kind===39)}function e5(e,t,n=new Set){return r(e)||r(Nx(e.exportSymbol||e,t));function r(e){return!!(e.flags&788968)||t.isUnknownSymbol(e)||!!(e.flags&1536)&&Jx(n,e)&&t.getExportsOfModule(e).some(e=>e5(e,t,n))}}function rSe(e,t){let n=Nx(e,t).declarations;return!!u(n)&&v(n,V$)}function iSe(e,t){if(t.length===0)return!0;let n=!1,r,i=0,a=e.length;for(let o=0;ouSe,getStringLiteralCompletions:()=>cSe});var sSe={directory:0,script:1,"external module name":2};function n5(){let e=new Map;function t(t){let n=e.get(t.name);(!n||sSe[n.kind]({name:Wv(e.value,n),kindModifiers:``,kind:`string`,sortText:w8.LocationPriority,replacementSpan:NZ(t,c),commitCharacters:[]}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:u,entries:r,defaultCommitCharacters:A8(e.isNewIdentifier)}}default:return H.assertNever(e)}}function uSe(e,t,n,r,i,a,o,s){if(!r||!uf(r))return;let c=mSe(t,r,n,i,a,s);return c&&dSe(e,r,c,t,i.getTypeChecker(),o)}function dSe(e,t,n,r,i,a){switch(n.kind){case 0:{let t=y(n.paths,t=>t.name===e);return t&&U8(e,pSe(t.extension),t.kind,[PQ(e)])}case 1:{let o=y(n.symbols,t=>t.name===e);return o&&H8(o,o.name,i,r,t,a)}case 2:return y(n.types,t=>t.value===e)?U8(e,``,`string`,[PQ(e)]):void 0;default:return H.assertNever(n)}}function fSe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:pSe(r),sortText:w8.LocationPriority,replacementSpan:n})),defaultCommitCharacters:A8(!0)}}function pSe(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 H.fail(`Extension .tsbuildinfo is unsupported.`);case void 0:return``;default:return H.assertNever(e)}}function mSe(e,t,n,r,i,a){let o=r.getTypeChecker(),s=r5(t.parent);switch(s.kind){case 202:{let n=r5(s.parent);return n.kind===206?{kind:0,paths:bSe(e,t,r,i,a)}:c(n)}case 304:return Sk(s.parent)&&s.name===t?vSe(o,s.parent):l()||l(0);case 213:{let{expression:e,argumentExpression:n}=s;return t===F_(n)?_Se(o.getTypeAtLocation(e)):void 0}case 214:case 215:case 292:if(!WSe(t)&&!Bm(s)){let r=u7.getArgumentInfoForCompletions(s.kind===292?s.parent:t,n,e,o);return r&&gSe(r.invocation,t,r,o)||l(0)}case 273:case 279:case 284:case 352:return{kind:0,paths:bSe(e,t,r,i,a)};case 297:let u=J$(o,s.parent.clauses),d=l();return d?{kind:2,types:d.types.filter(e=>!u.hasValue(e.value)),isNewIdentifier:!1}:void 0;case 277:case 282:let f=s;if(f.propertyName&&t!==f.propertyName)return;let p=f.parent,{moduleSpecifier:m}=p.kind===276?p.parent.parent:p.parent;if(!m)return;let h=o.getSymbolAtLocation(m);if(!h)return;let g=o.getExportsAndPropertiesOfModule(h),_=new Set(p.elements.map(e=>Cp(e.propertyName||e.name)));return{kind:1,symbols:g.filter(e=>e.escapedName!==`default`&&!_.has(e.escapedName)),hasIndexSignature:!1};case 227:if(s.operatorToken.kind===103){let e=o.getTypeAtLocation(s.right);return{kind:1,symbols:(e.isUnion()?o.getAllPossiblePropertiesOfTypes(e.types):e.getApparentProperties()).filter(e=>!e.valueDeclaration||!Su(e.valueDeclaration)),hasIndexSignature:!1}}return l(0);default:return l()||l(0)}function c(e){switch(e.kind){case 234:case 184:{let t=K(s,t=>t.parent===e);return t?{kind:2,types:i5(o.getTypeArgumentConstraint(t)),isNewIdentifier:!1}:void 0}case 200:let{indexType:t,objectType:r}=e;return RX(t,n)?_Se(o.getTypeFromTypeNode(r)):void 0;case 193:{let t=c(r5(e.parent));if(!t)return;let n=hSe(e,s);return t.kind===1?{kind:1,symbols:t.symbols.filter(e=>!C(n,e.name)),hasIndexSignature:t.hasIndexSignature}:{kind:2,types:t.types.filter(e=>!C(n,e.value)),isNewIdentifier:!1}}default:return}}function l(e=4){let n=i5(a$(t,o,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function r5(e){switch(e.kind){case 197:return j_(e);case 218:return M_(e);default:return e}}function hSe(e,t){return M(e.types,e=>e!==t&&mk(e)&&tO(e.literal)?e.literal.text:void 0)}function gSe(e,t,n,r){let i=!1,a=new Set,o=Jd(e)?H.checkDefined(K(t.parent,aj)):t,s=re(r.getCandidateSignaturesForStringLiteralCompletions(e,o),t=>{if(!xB(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(Jd(e)){let e=r.getTypeOfPropertyOfType(s,wT(o.name));e&&(s=e)}return i||=!!(s.flags&4),i5(s,a)});return u(s)?{kind:2,types:s,isNewIdentifier:i}:void 0}function _Se(e){return e&&{kind:1,symbols:E(e.getApparentProperties(),e=>!(e.valueDeclaration&&Su(e.valueDeclaration))),hasIndexSignature:l$(e)}}function vSe(e,t){let n=e.getContextualType(t);if(n)return{kind:1,symbols:X8(n,e.getContextualType(t,4),t,e),hasIndexSignature:l$(n)}}function i5(e,t=new Set){return e?(e=qZ(e),e.isUnion()?re(e.types,e=>i5(e,t)):e.isStringLiteral()&&!(e.flags&1024)&&Jx(t,e.value)?[e]:c):c}function a5(e,t,n){return{name:e,kind:t,extension:n}}function o5(e){return a5(e,`directory`,void 0)}function ySe(e,t,n){let r=BSe(e,t),i=e.length===0?void 0:xc(t,e.length);return n.map(({name:e,kind:t,extension:n})=>e.includes(Fa)||e.includes(Ia)?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r})}function bSe(e,t,n,r,i){return ySe(t.text,t.getStart(e)+1,xSe(e,t,n,r,i))}function xSe(e,t,n,r,i){let a=so(t.text),o=uf(t)?n.getModeForUsageLocation(e,t):void 0,s=e.path,c=$a(s),l=n.getCompilerOptions(),u=n.getTypeChecker(),d=QZ(n,r),f=s5(l,1,e,u,i,o);return VSe(a)||!l.baseUrl&&!l.paths&&(Va(a)||Ba(a))?SSe(a,c,n,r,d,s,f):kSe(a,c,o,n,r,d,f)}function s5(e,t,n,r,i,a){return{extensionsToSearch:ne(CSe(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:i?.importModuleSpecifierEnding,resolutionMode:a}}function SSe(e,t,n,r,i,a,o){let s=n.getCompilerOptions();return s.rootDirs?TSe(s.rootDirs,e,t,o,n,r,i,a):$e(c5(e,t,o,n,r,i,!0,a).values())}function CSe(e,t){let n=t?M(t.getAmbientModules(),e=>{let t=e.name.slice(1,-1);if(!(!t.startsWith(`*.`)||t.includes(`/`)))return t.slice(1)}):[],r=[...ZC(e),n];return eQ(VS(e))?QC(e,r):r}function wSe(e,t,n,r){e=e.map(e=>xo(mo(Va(e)?e:lo(t,e))));let i=p(e,e=>Ao(e,n,t,r)?n.substr(e.length):void 0);return ge([...e.map(e=>lo(e,i)),n].map(e=>bo(e)),Pt,Ht)}function TSe(e,t,n,r,i,a,o,s){return ge(re(wSe(e,i.getCompilerOptions().project||a.getCurrentDirectory(),n,!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames())),e=>$e(c5(t,e,r,i,a,o,!0,s).values())),(e,t)=>e.name===t.name&&e.kind===t.kind&&e.extension===t.extension)}function c5(e,t,n,r,i,a,o,s,c=n5()){e===void 0&&(e=``),e=so(e),Ya(e)||(e=$a(e)),e===``&&(e=`.`+Fa),e=xo(e);let l=uo(t,e),u=Ya(l)?l:$a(l);if(!o){let e=w$(u,i);if(e){let t=tx(e,i).typesVersions;if(typeof t==`object`){let o=kL(t)?.paths;if(o){let t=$a(e);if(DSe(c,l.slice(xo(t).length),t,n,r,i,a,o))return c}}}}let d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!b$(i,u))return c;let f=v$(i,u,n.extensionsToSearch,void 0,[`./*`]);if(f)for(let e of f){if(e=mo(e),s&&ko(e,s,t,d)===0)continue;let{name:i,extension:a}=ESe(eo(e),r,n,!1);c.add(a5(i,`script`,a))}let p=_$(i,u);if(p)for(let e of p){let t=eo(mo(e));t!==`@types`&&c.add(o5(t))}return c}function ESe(e,t,n,r){let i=wz.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:Sw(i)};if(n.referenceKind===0)return{name:e,extension:Sw(e)};let a=wz.getModuleSpecifierPreferences({importModuleSpecifierEnding:n.endingPreference},t,t.getCompilerOptions(),n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(r&&(a=a.filter(e=>e!==0&&e!==1)),a[0]===3){if(Ja(e,YC))return{name:e,extension:Sw(e)};let n=wz.tryGetJSExtensionForFile(e,t.getCompilerOptions());return n?{name:pw(e,n),extension:n}:{name:e,extension:Sw(e)}}if(!r&&(a[0]===0||a[0]===1)&&Ja(e,[`.js`,`.jsx`,`.ts`,`.tsx`,`.d.ts`]))return{name:uw(e),extension:Sw(e)};let o=wz.tryGetJSExtensionForFile(e,t.getCompilerOptions());return o?{name:pw(e,o),extension:o}:{name:e,extension:Sw(e)}}function DSe(e,t,n,r,i,a,o,s){return OSe(e,!1,!1,t,n,r,i,a,o,Ye(s),e=>s[e],(e,t)=>{let n=mw(e),r=mw(t),i=typeof n==`object`?n.prefix.length:e.length;return It(typeof r==`object`?r.prefix.length:t.length,i)})}function OSe(e,t,n,r,i,a,o,s,c,l,u,d){let f=[],p;for(let e of l){if(e===`.`)continue;let l=e.replace(/^\.\//,``)+((t||n)&&$t(e,`/`)?`*`:``),m=u(e);if(m){let e=mw(l);if(!e)continue;let u=typeof e==`object`&&gn(e,r);u&&(p===void 0||d(l,p)===-1)&&(p=l,f=f.filter(e=>!e.matchedPattern)),(typeof e==`string`||p===void 0||d(l,p)!==1)&&f.push({matchedPattern:u,results:MSe(l,m,r,i,a,t,n,o,s,c).map(({name:e,kind:t,extension:n})=>a5(e,t,n))})}}return f.forEach(t=>t.results.forEach(t=>e.add(t))),p!==void 0}function kSe(e,t,n,r,i,a,o){let s=r.getTypeChecker(),c=r.getCompilerOptions(),{baseUrl:l,paths:u}=c,d=n5(),f=VS(c);l&&c5(e,mo(lo(i.getCurrentDirectory(),l)),o,r,i,a,!1,void 0,d),u&&DSe(d,e,_y(c,i),o,r,i,a,u);let p=jSe(e);for(let t of ISe(e,p,s))d.add(a5(t,`external module name`,void 0));if(RSe(r,i,a,t,p,o,d),eQ(f)){let n=!1;if(p===void 0)for(let e of zSe(i,t)){let t=a5(e,`external module name`,void 0);d.has(t.name)||(n=!0,d.add(t))}if(!n){let n=KS(c),s=qS(c),l=!1,u=t=>{if(s&&!l){let n=lo(t,`package.json`);(l=y$(i,n))&&m(tx(n,i).imports,e,t,!1,!0)}},f=t=>{let n=lo(t,`node_modules`);b$(i,n)&&c5(e,n,o,r,i,a,!1,void 0,d),u(t)};if(p&&n){let t=f;f=n=>{let r=ao(e);r.shift();let a=r.shift();if(!a)return t(n);if(pn(a,`@`)){let e=r.shift();if(!e)return t(n);a=lo(a,e)}if(s&&pn(a,`#`))return u(n);let o=lo(n,`node_modules`,a),c=lo(o,`package.json`);if(y$(i,c)){let t=tx(c,i),n=r.join(`/`)+(r.length&&Ya(e)?`/`:``);m(t.exports,n,o,!0,!1);return}return t(n)}}GR(i,t,f)}}return $e(d.values());function m(e,t,s,l,u){if(typeof e!=`object`||!e)return;let f=Ye(e),p=NL(c,n);OSe(d,l,u,t,s,o,r,i,a,f,t=>{let n=ASe(e[t],p);if(n!==void 0)return xn($t(t,`/`)&&$t(n,`/`)?n+`*`:n)},LR)}}function ASe(e,t){if(typeof e==`string`)return e;if(e&&typeof e==`object`&&!mt(e)){for(let n in e)if(n===`default`||t.includes(n)||VR(t,n)){let r=e[n];return ASe(r,t)}}}function jSe(e){return l5(e)?Ya(e)?e:$a(e):void 0}function MSe(e,t,n,r,i,a,o,s,l,u){let d=mw(e);if(!d)return c;if(typeof d==`string`)return p(e,`script`);let f=hn(n,d.prefix);if(f===void 0)return $t(e,`/*`)?p(d.prefix,`directory`):re(t,e=>NSe(``,r,e,i,a,o,s,l,u)?.map(({name:e,...t})=>({name:d.prefix+e+d.suffix,...t})));return re(t,e=>NSe(f,r,e,i,a,o,s,l,u));function p(e,t){return pn(e,n)?[{name:bo(e),kind:t,extension:void 0}]:c}}function NSe(e,t,n,r,i,a,o,s,c){if(!s.readDirectory)return;let l=mw(n);if(l===void 0||gt(l))return;let u=uo(l.prefix),d=Ya(l.prefix)?u:$a(u),f=Ya(l.prefix)?``:eo(u),m=l5(e),h=m?Ya(e)?e:$a(e):void 0,g=()=>c.getCommonSourceDirectory(),_=!ay(c),v=o.getCompilerOptions().outDir,y=o.getCompilerOptions().declarationDir,b=mo(lo(t,m?lo(d,f+h):d)),x=a&&v&&gy(b,_,v,g),S=a&&y&&gy(b,_,y,g),C=mo(l.suffix),w=C&&my(`_`+C),T=C?hy(`_`+C):void 0,E=[w&&pw(C,w),...T?T.map(e=>pw(C,e)):[],C].filter(gt),D=C?E.map(e=>`**/*`+e):[`./*`],O=(i||a)&&$t(n,`/*`),k=ee(b);return x&&(k=de(k,ee(x))),S&&(k=de(k,ee(S))),C||(k=de(k,te(b)),x&&(k=de(k,te(x))),S&&(k=de(k,te(S)))),k;function ee(e){let t=m?e:xo(e)+f;return M(v$(s,e,r.extensionsToSearch,void 0,D),e=>{let n=ne(e,t);if(n){if(l5(n))return o5(ao(FSe(n))[1]);let{name:e,extension:t}=ESe(n,o,r,O);return a5(e,`script`,t)}})}function te(e){return M(_$(s,e),e=>e===`node_modules`?void 0:o5(e))}function ne(e,t){return p(E,n=>{let r=PSe(mo(e),t,n);return r===void 0?void 0:FSe(r)})}}function PSe(e,t,n){return pn(e,t)&&$t(e,n)?e.slice(t.length,e.length-n.length):void 0}function FSe(e){return e[0]===Fa?e.slice(1):e}function ISe(e,t,n){let r=n.getAmbientModules().map(e=>Zv(e.name)).filter(t=>pn(t,e)&&!t.includes(`*`));if(t!==void 0){let e=xo(t);return r.map(t=>mn(t,e))}return r}function LSe(e,t,n,r,i){let a=n.getCompilerOptions(),o=nZ(e,t),s=zs(e.text,o.pos),c=s&&y(s,e=>t>=e.pos&&t<=e.end);if(!c)return;let l=e.text.slice(c.pos,t),u=HSe.exec(l);if(!u)return;let[,d,f,p]=u,m=$a(e.path),h=f===`path`?c5(p,m,s5(a,0,e),n,r,i,!0,e.path):f===`types`?RSe(n,r,i,m,jSe(p),s5(a,1,e)):H.fail();return ySe(p,c.pos+d.length,$e(h.values()))}function RSe(e,t,n,r,i,a,o=n5()){let s=e.getCompilerOptions(),l=new Map,u=x$(()=>AL(s,t))||c;for(let e of u)d(e);for(let e of C$(r,t))d(lo($a(e),`node_modules/@types`));return o;function d(r){if(b$(t,r))for(let c of _$(t,r)){let u=ez(c);if(!(s.types&&!C(s.types,u)))if(i===void 0)l.has(u)||(o.add(a5(u,`external module name`,void 0)),l.set(u,!0));else{let s=lo(r,c),l=SC(i,u,oy(t));l!==void 0&&c5(l,s,a,e,t,n,!1,void 0,o)}}}}function zSe(e,t){if(!e.readFile||!e.fileExists)return c;let n=[];for(let r of C$(t,e)){let t=tx(r,e);for(let e of USe){let r=t[e];if(r)for(let e in r)qe(r,e)&&!pn(e,`@types/`)&&n.push(e)}}return n}function BSe(e,t){let n=Math.max(e.lastIndexOf(Fa),e.lastIndexOf(Ia)),r=n===-1?0:n+1,i=e.length-r;return i===0||Ws(e.substr(r,i),99)?void 0:xc(t+r,i)}function VSe(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,n=e.charCodeAt(t);return n===47||n===92}return!1}var HSe=/^(\/\/\/\s*w5,DefinitionKind:()=>oCe,EntryKind:()=>sCe,ExportKind:()=>GSe,FindReferencesUse:()=>lCe,ImportExport:()=>KSe,createImportTracker:()=>d5,findModuleReferences:()=>XSe,findReferenceOrRenameEntries:()=>mCe,findReferencedSymbols:()=>uCe,getContextNode:()=>v5,getExportInfo:()=>f5,getImplementationsAtPosition:()=>fCe,getImportOrExportSymbol:()=>eCe,getReferenceEntriesForNode:()=>hCe,isContextWithStartAndEndNode:()=>_5,isDeclarationOfSymbol:()=>DCe,isWriteAccessForReference:()=>C5,toContextSpan:()=>y5,toHighlightSpan:()=>TCe,toReferenceEntry:()=>xCe,toRenameLocation:()=>yCe});function d5(e,t,n,r){let i=ZSe(e,n,r);return(a,o,s)=>{let{directImports:c,indirectUsers:l}=qSe(e,t,i,o,n,r);return{indirectUsers:l,...JSe(c,a,o.exportKind,n,s)}}}var GSe=(e=>(e[e.Named=0]=`Named`,e[e.Default=1]=`Default`,e[e.ExportEquals=2]=`ExportEquals`,e))(GSe||{}),KSe=(e=>(e[e.Import=0]=`Import`,e[e.Export=1]=`Export`,e))(KSe||{});function qSe(e,t,n,{exportingModuleSymbol:r,exportKind:i},a,o){let s=WZ(),c=WZ(),l=[],u=!!r.globalExports,d=u?void 0:[];return p(r),{directImports:l,indirectUsers:f()};function f(){if(u)return e;if(r.declarations)for(let e of r.declarations)Gp(e)&&t.has(e.getSourceFile().fileName)&&_(e);return d.map(Yf)}function p(e){let t=v(e);if(t){for(let e of t)if(s(e))switch(o&&o.throwIfCancellationRequested(),e.kind){case 214:if(Bm(e)){m(e);break}if(!u){let t=e.parent;if(i===2&&t.kind===261){let{name:e}=t;if(e.kind===80){l.push(e);break}}}break;case 80:break;case 272:g(e,e.name,Qy(e,32),!1);break;case 273:case 352:l.push(e);let t=e.importClause&&e.importClause.namedBindings;t&&t.kind===275?g(e,t.name,!1,!0):!u&&Zg(e)&&_(p5(e));break;case 279:e.exportClause?e.exportClause.kind===281?_(p5(e),!0):l.push(e):p(aCe(e,a));break;case 206:!u&&e.isTypeOf&&!e.qualifier&&h(e)&&_(e.getSourceFile(),!0),l.push(e);break;default:H.failBadSyntaxKind(e,`Unexpected import kind.`)}}}function m(e){_(K(e,m5)||e.getSourceFile(),!!h(e,!0))}function h(e,t=!1){return K(e,e=>t&&m5(e)?`quit`:VN(e)&&F(e.modifiers,yO))}function g(e,t,n,r){if(i===2)r||l.push(e);else if(!u){let r=p5(e);H.assert(r.kind===308||r.kind===268),n||YSe(r,t,a)?_(r,!0):_(r)}}function _(e,t=!1){if(H.assert(!u),!c(e)||(d.push(e),!t))return;let n=a.getMergedSymbol(e.symbol);if(!n)return;H.assert(!!(n.flags&1536));let r=v(n);if(r)for(let e of r)hk(e)||_(p5(e),!0)}function v(e){return n.get(hB(e).toString())}}function JSe(e,t,n,r,i){let a=[],o=[];function s(e,t){a.push([e,t])}if(e)for(let t of e)c(t);return{importSearches:a,singleReferences:o};function c(e){if(e.kind===272){h5(e)&&l(e.name);return}if(e.kind===80){l(e);return}if(e.kind===206){if(e.qualifier){let n=Nb(e.qualifier);n.escapedText===qc(t)&&o.push(n)}else n===2&&o.push(e.argument.literal);return}if(e.moduleSpecifier.kind!==11)return;if(e.kind===279){e.exportClause&&GA(e.exportClause)&&u(e.exportClause);return}let{name:a,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 275:l(c.name);break;case 276:(n===0||n===1)&&u(c);break;default:H.assertNever(c)}a&&(n===1||n===2)&&(!i||a.escapedText===cQ(t))&&s(a,r.getSymbolAtLocation(a))}function l(e){n===2&&(!i||d(e.escapedText))&&s(e,r.getSymbolAtLocation(e))}function u(e){if(e)for(let n of e.elements){let{name:e,propertyName:a}=n;d(Cp(a||e))&&(a?(o.push(a),(!i||Cp(e)===t.escapedName)&&s(e,r.getSymbolAtLocation(e))):s(e,n.kind===282&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e)))}}function d(e){return e===t.escapedName||n!==0&&e===`default`}}function YSe(e,t,n){let r=n.getSymbolAtLocation(t);return!!QSe(e,e=>{if(!WA(e))return;let{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&GA(t)&&t.elements.some(e=>n.getExportSpecifierLocalTargetSymbol(e)===r)})}function XSe(e,t,n){let r=[],i=e.getTypeChecker();for(let a of t){let t=n.valueDeclaration;if(t?.kind===308){for(let n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&r.push({kind:`reference`,referencingFile:a,ref:n});for(let n of a.typeReferenceDirectives){let i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(n,a)?.resolvedTypeReferenceDirective;i!==void 0&&i.resolvedFileName===t.fileName&&r.push({kind:`reference`,referencingFile:a,ref:n})}}$Se(a,(e,t)=>{i.getSymbolAtLocation(t)===n&&r.push(kv(e)?{kind:`implicit`,literal:t,referencingFile:a}:{kind:`import`,literal:t})})}return r}function ZSe(e,t,n){let r=new Map;for(let i of e)n&&n.throwIfCancellationRequested(),$Se(i,(e,n)=>{let i=t.getSymbolAtLocation(n);if(i){let t=hB(i).toString(),n=r.get(t);n||r.set(t,n=[]),n.push(e)}});return r}function QSe(e,t){return d(e.kind===308?e.statements:e.body.statements,e=>t(e)||m5(e)&&d(e.body&&e.body.statements,t))}function $Se(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let n of e.imports)t(Kg(n),n);else QSe(e,e=>{switch(e.kind){case 279:case 273:{let n=e;n.moduleSpecifier&&tO(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 272:{let n=e;h5(n)&&t(n,n.moduleReference.expression);break}}})}function eCe(e,t,n,r){return r?i():i()||a();function i(){let{parent:i}=e,a=i.parent;if(t.exportSymbol)return i.kind===212?t.declarations?.some(e=>e===i)&&Rk(a)?l(a,!1):void 0:o(t.exportSymbol,s(i));{let u=nCe(i,e);if(u&&Qy(u,32))return jA(u)&&u.moduleReference===e?r?void 0:{kind:0,symbol:n.getSymbolAtLocation(u.name)}:o(t,s(u));if(BA(i))return o(t,0);if(UA(i))return c(i);if(UA(a))return c(a);if(Rk(i))return l(i,!0);if(Rk(a))return l(a,!0);if(eM(i)||zj(i))return o(t,0)}function c(e){if(!e.symbol.parent)return;let n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function l(e,r){let i;switch(Eg(e)){case 1:i=0;break;case 2:i=2;break;default:return}let a=r?n.getSymbolAtLocation(Qx(yt(e.left,Zx))):t;return a&&o(a,i)}}function a(){if(!rCe(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r||(r=iCe(r,n),r.escapedName===`export=`&&(r=tCe(r,n),r===void 0)))return;let i=cQ(r);if(i===void 0||i===`default`||i===t.escapedName)return{kind:0,symbol:r}}function o(e,t){let r=f5(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function s(e){return Qy(e,2048)?1:0}}function tCe(e,t){if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let n=H.checkDefined(e.valueDeclaration);if(UA(n))return vt(n.expression,Md)?.symbol;if(Rk(n))return vt(n.right,Md)?.symbol;if(vj(n))return n.symbol}function nCe(e,t){let n=bA(e)?e:bk(e)?Mc(e):void 0;return n?e.name===t?pj(n.parent)?void 0:nA(n.parent.parent)?n.parent.parent:void 0:void 0:e}function rCe(e){let{parent:t}=e;switch(t.kind){case 272:return t.name===e&&h5(t);case 277:return!t.propertyName;case 274:case 275:return H.assert(t.name===e),!0;case 209:return ng(e)&&lg(t.parent.parent);default:return!1}}function f5(e,t,n){let r=e.parent;if(!r)return;let i=n.getMergedSymbol(r);return Tf(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function iCe(e,t){if(e.declarations){for(let n of e.declarations)if(KA(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;else if(Ck(n)&&Tg(n.expression)&&!vO(n.name))return t.getSymbolAtLocation(n);else if(hj(n)&&Rk(n.parent.parent)&&Eg(n.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}function aCe(e,t){return t.getMergedSymbol(p5(e).symbol)}function p5(e){if(e.kind===214||e.kind===352)return e.getSourceFile();let{parent:t}=e;return t.kind===308?t:(H.assert(t.kind===269),yt(t.parent,m5))}function m5(e){return e.kind===268&&e.name.kind===11}function h5(e){return e.moduleReference.kind===284&&e.moduleReference.expression.kind===11}var oCe=(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))(oCe||{}),sCe=(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))(sCe||{});function g5(e,t=1){return{kind:t,node:e.name||e,context:cCe(e)}}function _5(e){return e&&e.kind===void 0}function cCe(e){if(Ld(e))return v5(e);if(e.parent){if(!Ld(e.parent)&&!UA(e.parent)){if(ng(e)){let t=Rk(e.parent)?e.parent:Zx(e.parent)&&Rk(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&Eg(t)!==0)return v5(t)}if(ej(e.parent)||tj(e.parent))return e.parent.parent;if($A(e.parent)||gA(e.parent)||$l(e.parent))return e.parent;if(uf(e)){let t=qg(e);if(t){let e=K(t,e=>Ld(e)||Bd(e)||Qd(e));return Ld(e)?v5(e):e}}let t=K(e,NO);return t?v5(t.parent):void 0}if(e.parent.name===e||HO(e.parent)||UA(e.parent)||(fu(e.parent)||bk(e.parent))&&e.parent.propertyName===e||e.kind===90&&Qy(e.parent,2080))return v5(e.parent)}}function v5(e){if(e)switch(e.kind){case 261:return!xA(e.parent)||e.parent.declarations.length!==1?e:nA(e.parent.parent)?e.parent.parent:wd(e.parent.parent)?v5(e.parent.parent):e.parent;case 209:return v5(e.parent.parent);case 277:return e.parent.parent.parent;case 282:case 275:return e.parent.parent;case 274:case 281:return e.parent;case 227:return iA(e.parent)?e.parent:e;case 251:case 250:return{start:e.initializer,end:e.expression};case 304:case 305:return AZ(e.parent)?v5(K(e.parent,e=>Rk(e)||wd(e))):e;case 256:return{start:y(e.getChildren(e.getSourceFile()),e=>e.kind===109),end:e.caseBlock};default:return e}}function y5(e,t,n){if(!n)return;let r=_5(n)?S5(n.start,t,n.end):S5(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}var lCe=(e=>(e[e.Other=0]=`Other`,e[e.References=1]=`References`,e[e.Rename=2]=`Rename`,e))(lCe||{});function uCe(e,t,n,r,i){let a=eZ(r,i),o={use:1},s=w5.getReferencedSymbolsForNode(i,a,e,n,t,o),c=e.getTypeChecker(),l=w5.getAdjustedNode(a,o),u=dCe(l)?c.getSymbolAtLocation(l):void 0;return!s||!s.length?void 0:M(s,({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,t=>_Ce(e,t,a)),references:n.map(e=>bCe(e,u))})}function dCe(e){return e.kind===90||!!z_(e)||B_(e)||e.kind===137&&HO(e.parent)}function fCe(e,t,n,r,i){let a=eZ(r,i),o,s=pCe(e,t,n,a,i);if(a.parent.kind===212||a.parent.kind===209||a.parent.kind===213||a.kind===108)o=s&&[...s];else if(s){let r=ft(s),i=new Set;for(;!r.isEmpty();){let a=r.dequeue();if(!Jx(i,mB(a.node)))continue;o=I(o,a);let s=pCe(e,t,n,a.node,a.node.pos);s&&r.enqueue(...s)}}let c=e.getTypeChecker();return k(o,e=>CCe(e,c))}function pCe(e,t,n,r,i){if(r.kind===308)return;let a=e.getTypeChecker();if(r.parent.kind===305){let e=[];return w5.getReferenceEntriesForShorthandPropertyAssignment(r,a,t=>e.push(g5(t))),e}else if(r.kind===108||Mh(r.parent)){let e=a.getSymbolAtLocation(r);return e.valueDeclaration&&[g5(e.valueDeclaration)]}else return hCe(i,r,e,n,t,{implementations:!0,use:1})}function mCe(e,t,n,r,i,a,o){return k(gCe(w5.getReferencedSymbolsForNode(i,r,e,n,t,a)),t=>o(t,r,e.getTypeChecker()))}function hCe(e,t,n,r,i,a={},o=new Set(r.map(e=>e.fileName))){return gCe(w5.getReferencedSymbolsForNode(e,t,n,r,i,a,o))}function gCe(e){return e&&re(e,e=>e.references)}function _Ce(e,t,n){let{sourceFile:r,textSpan:i,name:a,kind:o,displayParts:s,context:c}=(()=>{switch(e.type){case 0:{let{symbol:r}=e,{displayParts:i,kind:a}=vCe(r,t,n),o=i.map(e=>e.text).join(``),s=r.declarations&&Pe(r.declarations);return{...b5(s?el(s)||s:n),name:o,kind:a,displayParts:i,context:v5(s)}}case 1:{let{node:t}=e;return{...b5(t),name:t.text,kind:`label`,displayParts:[EQ(t.text,17)]}}case 2:{let{node:t}=e,n=is(t.kind);return{...b5(t),name:n,kind:`keyword`,displayParts:[{text:n,kind:`keyword`}]}}case 3:{let{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&v7.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),NX(n),n).displayParts||[PQ(`this`)];return{...b5(n),name:`this`,kind:`var`,displayParts:i}}case 4:{let{node:t}=e;return{...b5(t),name:t.text,kind:`var`,displayParts:[EQ(Ep(t),8)]}}case 5:return{textSpan:LZ(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:`string`,displayParts:[EQ(`"${e.reference.fileName}"`,8)]};default:return H.assertNever(e)}})();return{containerKind:``,containerName:``,fileName:r.fileName,kind:o,name:a,textSpan:i,displayParts:s,...y5(i,r,c)}}function b5(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:S5(NO(e)?e.expression:e,t)}}function vCe(e,t,n){let r=w5.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&Pe(e.declarations)||n,{displayParts:a,symbolKind:o}=v7.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:a,kind:o}}function yCe(e,t,n,r,i){return{...x5(e),...r&&SCe(e,t,n,i)}}function bCe(e,t){let n=xCe(e);return t?{...n,isDefinition:e.kind!==0&&DCe(e.node,t)}:n}function xCe(e){let t=x5(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:n,node:r}=e;return{...t,isWriteAccess:C5(r),isInString:n===2?!0:void 0}}function x5(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),n=S5(e.node,t);return{textSpan:n,fileName:t.fileName,...y5(n,t,e.context)}}}function SCe(e,t,n,r){if(e.kind!==0&&(Y(t)||uf(t))){let{node:r,kind:i}=e,a=r.parent,o=t.text,s=hj(a);if(s||uQ(a)&&a.name===r&&a.dotDotDotToken===void 0){let e={prefixText:o+`: `},t={suffixText:`: `+o};if(i===3)return e;if(i===4)return t;if(s){let n=a.parent;return Sk(n)&&Rk(n.parent)&&Tg(n.parent.left)?e:t}else return e}else if(HA(a)&&!a.propertyName)return C((KA(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,a)?{prefixText:o+` as `}:GY;else if(KA(a)&&!a.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:o+` as `}:{suffixText:` as `+o}}if(e.kind!==0&&$D(e.node)&&Zx(e.node.parent)){let e=oQ(r);return{prefixText:e,suffixText:e}}return GY}function CCe(e,t){let n=x5(e);if(e.kind!==0){let{node:r}=e;return{...n,...wCe(r,t)}}else return{...n,kind:``,displayParts:[]}}function wCe(e,t){let n=t.getSymbolAtLocation(Ld(e)&&e.name?e.name:e);return n?vCe(n,t,e):e.kind===211?{kind:`interface`,displayParts:[kQ(21),PQ(`object literal`),kQ(22)]}:e.kind===232?{kind:`local class`,displayParts:[kQ(21),PQ(`anonymous local class`),kQ(22)]}:{kind:PX(e),displayParts:[]}}function TCe(e){let t=x5(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:`reference`}};let n=C5(e.node),r={textSpan:t.textSpan,kind:n?`writtenReference`:`reference`,isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function S5(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return uf(e)&&i-r>2&&(H.assert(n===void 0),r+=1,--i),n?.kind===270&&(i=n.getFullStart()),Sc(r,i)}function ECe(e){return e.kind===0?e.textSpan:S5(e.node,e.node.getSourceFile())}function C5(e){let t=z_(e);return!!t&&OCe(t)||e.kind===90||Ix(e)}function DCe(e,t){if(!t)return!1;let n=z_(e)||(e.kind===90?e.parent:B_(e)||e.kind===137&&HO(e.parent)?e.parent.parent:void 0),r=n&&Rk(n)?n.left:void 0;return!!(n&&t.declarations?.some(e=>e===n||e===r))}function OCe(e){if(e.flags&33554432)return!0;switch(e.kind){case 227:case 209:case 264:case 232:case 90:case 267:case 307:case 282:case 274:case 272:case 277:case 265:case 339:case 347:case 292:case 268:case 271:case 275:case 281:case 170:case 305:case 266:case 169:return!0;case 304:return!AZ(e.parent);case 263:case 219:case 177:case 175:case 178:case 179:return!!e.body;case 261:case 173:return!!e.initializer||pj(e.parent);case 174:case 172:case 349:case 342:return!1;default:return H.failBadSyntaxKind(e)}}var w5;(e=>{function t(e,t,r,l,u,d={},p=new Set(l.map(e=>e.fileName))){if(t=n(t,d),vj(t)){let n=T5.getReferenceAtPosition(t,e,r);if(!n?.file)return;let a=r.getTypeChecker().getMergedSymbol(n.file.symbol);if(a)return f(r,a,!1,l,p);let o=r.getFileIncludeReasons();return o?[{definition:{type:5,reference:n.reference,file:t},references:i(n.file,o,r)||c}]:void 0}if(!d.implementations){let e=h(t,l,u);if(e)return e}let m=r.getTypeChecker(),_=m.getSymbolAtLocation(HO(t)&&t.parent.name||t);if(!_){if(!d.implementations&&uf(t)){if(lQ(t)){let e=r.getFileIncludeReasons(),n=r.getResolvedModuleFromModuleSpecifier(t)?.resolvedModule?.resolvedFileName,a=n?r.getSourceFile(n):void 0;if(a)return[{definition:{type:4,node:t},references:i(a,e,r)||c}]}return Re(t,l,m,u)}return}if(_.escapedName===`export=`)return f(r,_.parent,!1,l,p);let v=o(_,r,l,u,d,p);if(v&&!(_.flags&33554432))return v;let y=a(t,_,m),b=y&&o(y,r,l,u,d,p);return s(r,v,g(_,t,l,p,m,u,d),b)}e.getReferencedSymbolsForNode=t;function n(e,t){return t.use===1?e=QX(e):t.use===2&&(e=$X(e)),e}e.getAdjustedNode=n;function r(e,t,n,r=new Set(n.map(e=>e.fileName))){let a=t.getSourceFile(e)?.symbol;if(a)return f(t,a,!1,n,r)[0]?.references||c;let o=t.getFileIncludeReasons(),s=t.getSourceFile(e);return s&&o&&i(s,o,t)||c}e.getReferencesForFileName=r;function i(e,t,n){let r,i=t.get(e.path)||c;for(let e of i)if(KW(e)){let t=n.getSourceFileByPath(e.file),i=JW(n,e);qW(i)&&(r=I(r,{kind:0,fileName:t.fileName,textSpan:LZ(i)}))}return r}function a(e,t,n){if(e.parent&&AA(e.parent)){let e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function o(e,t,n,r,i,a){let o=e.flags&1536&&e.declarations&&y(e.declarations,vj);if(!o)return;let c=e.exports.get(`export=`),l=f(t,e,!!c,n,a);if(!c||!a.has(o.fileName))return l;let u=t.getTypeChecker();return e=Nx(c,u),s(t,l,g(e,void 0,n,a,u,r,i))}function s(e,...t){let n;for(let r of t)if(!(!r||!r.length)){if(!n){n=r;continue}for(let t of r){if(!t.definition||t.definition.type!==0){n.push(t);continue}let r=t.definition.symbol,i=x(n,e=>!!e.definition&&e.definition.type===0&&e.definition.symbol===r);if(i===-1){n.push(t);continue}let a=n[i];n[i]={definition:a.definition,references:a.references.concat(t.references).sort((t,n)=>{let r=l(e,t),i=l(e,n);if(r!==i)return It(r,i);let a=ECe(t),o=ECe(n);return a.start===o.start?It(a.length,o.length):It(a.start,o.start)})}}}return n}function l(e,t){let n=t.kind===0?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function f(e,t,n,r,i){H.assert(!!t.valueDeclaration);let a=M(XSe(e,r,t),e=>{if(e.kind===`import`){let t=e.literal.parent;if(mk(t)){let e=yt(t.parent,hk);if(n&&!e.qualifier)return}return g5(e.literal)}else if(e.kind===`implicit`)return g5(e.literal.text!==_f&&mP(e.referencingFile,e=>e.transformFlags&2?QA(e)||$A(e)||nj(e)?e:void 0:`skip`)||e.referencingFile.statements[0]||e.referencingFile);else return{kind:0,fileName:e.referencingFile.fileName,textSpan:LZ(e.ref)}});if(t.declarations)for(let e of t.declarations)switch(e.kind){case 308:break;case 268:i.has(e.getSourceFile().fileName)&&a.push(g5(e.name));break;default:H.assert(!!(t.flags&33554432),`Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.`)}let o=t.exports.get(`export=`);if(o?.declarations)for(let e of o.declarations){let t=e.getSourceFile();if(i.has(t.fileName)){let n=Rk(e)&&Ck(e.left)?e.left.expression:UA(e)?H.checkDefined(YX(e,95,t)):el(e)||e;a.push(g5(n))}}return a.length?[{definition:{type:0,symbol:t},references:a}]:c}function m(e){return e.kind===148&&dk(e.parent)&&e.parent.operator===148}function h(e,t,n){if(HZ(e.kind))return e.kind===116&&Pk(e.parent)||e.kind===148&&!m(e)?void 0:de(t,e.kind,n,e.kind===148?m:void 0);if(Vm(e.parent)&&e.parent.name===e)return ue(t,n);if(TO(e)&&VO(e.parent))return[{definition:{type:2,node:e},references:[g5(e)]}];if(wX(e)){let t=SX(e.parent,e.text);return t&&P(t.parent,t)}else if(TX(e))return P(e.parent,e);if(FX(e))return Le(e,t,n);if(e.kind===108)return Pe(e)}function g(e,t,n,r,i,a,o){let s=t&&b(e,t,i,!Xe(o))||e,c=t&&o.use!==2?L(t,s):7,l=[],u=new T(n,r,t?v(t):0,i,a,c,o,l),d=!Xe(o)||!s.declarations?void 0:y(s.declarations,KA);return d?_e(d.name,s,d,u.createSearch(t,e,void 0),u,!0,!0):t&&t.kind===90&&s.escapedName===`default`&&s.parent?(Se(t,s,u),D(t,s,{exportingModuleSymbol:s.parent,exportKind:1},u)):_(s,u,u.createSearch(t,s,void 0,{allSearchSymbols:t?Be(s,t,i,o.use===2,!!o.providePrefixAndSuffixTextForRename,!!o.implementations):[s]})),l}function _(e,t,n){let r=ie(e);if(r)pe(r,r.getSourceFile(),n,t,!(vj(r)&&!C(t.sourceFiles,r)));else for(let e of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),te(e,n,t)}function v(e){switch(e.kind){case 177:case 137:return 1;case 80:if(zu(e.parent))return H.assert(e.parent.name===e),2;default:return 0}}function b(e,t,n,r){let{parent:i}=t;return KA(i)&&r?ve(t,e,i,n):p(e.declarations,r=>{if(!r.parent){if(e.flags&33554432)return;H.fail(`Unexpected symbol at ${H.formatSyntaxKind(t.kind)}: ${H.formatSymbol(e)}`)}return $O(r.parent)&&ak(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0})}let S;(e=>{e[e.None=0]=`None`,e[e.Constructor=1]=`Constructor`,e[e.Class=2]=`Class`})(S||={});function w(e){if(!(e.flags&33555968))return;let t=e.declarations&&y(e.declarations,e=>!vj(e)&&!DA(e));return t&&t.symbol}class T{constructor(e,t,n,r,i,a,o,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=a,this.options=o,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=WZ(),this.markSeenReExportRHS=WZ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||=d5(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken),this.importTracker(e,t,this.options.use===2)}createSearch(e,t,n,r={}){let{text:i=Zv(qc(Gb(t)||w(t)||t)),allSearchSymbols:a=[t]}=r;return{symbol:t,comingFrom:n,text:i,escapedText:Uc(i),parents:this.options.implementations&&e?Ye(e,t,this.checker):void 0,allSearchSymbols:a,includes:e=>C(a,e)}}referenceAdder(e){let t=hB(e),n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(g5(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){let n=mB(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set),i=!1;for(let e of t)i=se(r,hB(e))||i;return i}}function D(e,t,n,r){let{importSearches:i,singleReferences:a,indirectUsers:o}=r.getImportSearches(t,n);if(a.length){let e=r.referenceAdder(t);for(let t of a)k(t,r)&&e(t)}for(let[e,t]of i)fe(e.getSourceFile(),r.createSearch(e,t,1),r);if(o.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=r.options.use===2?void 0:r.createSearch(e,t,1,{text:`default`});break}if(i)for(let e of o)te(e,i,r)}}function O(e,t,n,r,i,a,o,s){let{importSearches:c,indirectUsers:l,singleReferences:u}=d5(e,new Set(e.map(e=>e.fileName)),t,n)(r,{exportKind:o?1:0,exportingModuleSymbol:i},!1);for(let[e]of c)s(e);for(let e of u)Y(e)&&hk(e.parent)&&s(e);for(let e of l)for(let n of oe(e,o?`default`:a)){let e=t.getSymbolAtLocation(n),i=F(e?.declarations,e=>!!vt(e,UA));Y(n)&&!fu(n.parent)&&(e===r||i)&&s(n)}}e.eachExportReference=O;function k(e,t){return me(e,t)?t.options.use===2?!Y(e)&&!fu(e.parent)?!1:!(fu(e.parent)&&wp(e)):!0:!1}function ee(e,t){if(e.declarations)for(let n of e.declarations){let r=n.getSourceFile();fe(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function te(e,t,n){f4(e).get(t.escapedText)!==void 0&&fe(e,t,n)}function ne(e,t){return AZ(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}function ie(e){let{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(i.kind===219||i.kind===232))return i;if(!t)return;if(n&8196){let e=y(t,e=>Zy(e,2)||Su(e));return e?Q_(e,264):void 0}if(t.some(uQ))return;let a=r&&!(e.flags&262144);if(a&&!(Tf(r)&&!r.globalExports))return;let o;for(let e of t){let t=NX(e);if(o&&o!==t||!t||t.kind===308&&!Am(t))return;if(o=t,Ak(o)){let e;for(;e=p_(o);)o=e}}return a?o.getSourceFile():o}function ae(e,t,n,r=n){return A(e,t,n,()=>!0,r)||!1}e.isSymbolReferencedInFile=ae;function A(e,t,n,r,i=n){let a=kc(e.parent,e.parent.parent)?Ie(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(a)for(let o of oe(n,a.name,i)){if(!Y(o)||o===e||o.escapedText!==e.escapedText)continue;let n=t.getSymbolAtLocation(o);if(n===a||t.getShorthandAssignmentValueSymbol(o.parent)===a||KA(o.parent)&&ve(o,n,o.parent,t)===a){let e=r(o);if(e)return e}}}e.eachSymbolReferenceInFile=A;function j(e,t){return E(oe(t,e),e=>!!z_(e)).reduce((e,t)=>{let r=n(t);return!F(e.declarationNames)||r===e.depth?(e.declarationNames.push(t),e.depth=r):re===i)&&r(t,o))return!0}return!1}e.someSignatureUsage=N;function oe(e,t,n=e){return M(ce(e,t,n),t=>{let n=eZ(e,t);return n===e?void 0:n})}function ce(e,t,n=e){let r=[];if(!t||!t.length)return r;let i=e.text,a=i.length,o=t.length,s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){let e=s+o;(s===0||!Us(i.charCodeAt(s-1),99))&&(e===a||!Us(i.charCodeAt(e),99))&&r.push(s),s=i.indexOf(t,s+o+1)}return r}function P(e,t){let n=e.getSourceFile(),r=t.text,i=M(oe(n,r,e),e=>e===t||wX(e)&&SX(e,r)===t?g5(e):void 0);return[{definition:{type:1,node:t},references:i}]}function le(e,t){switch(e.kind){case 81:if(Sj(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{let n=e;return n.text.length===t.length&&(MX(n)||AX(e)||Sie(e)||Tk(e.parent)&&Dg(e.parent)&&e.parent.arguments[1]===e||fu(e.parent))}case 9:return MX(e)&&e.text.length===t.length;case 90:return t.length===7;default:return!1}}function ue(e,t){let n=re(e,e=>(t.throwIfCancellationRequested(),M(oe(e,`meta`,e),e=>{let t=e.parent;if(Vm(t))return g5(t)})));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}function de(e,t,n,r){let i=re(e,e=>(n.throwIfCancellationRequested(),M(oe(e,is(t),e),e=>{if(e.kind===t&&(!r||r(e)))return g5(e)})));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}function fe(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),pe(e,e,t,n,r)}function pe(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(let a of ce(t,n.text,e))he(t,a,n,r,i)}function me(e,t){return!!(pX(e)&t.searchMeaning)}function he(e,t,n,r,i){let a=eZ(e,t);if(!le(a,n.text)){!r.options.implementations&&(r.options.findInStrings&&lZ(e,t)||r.options.findInComments&&MZ(e,t))&&r.addStringOrCommentReference(e.fileName,xc(t,n.text.length));return}if(!me(a,r))return;let o=r.checker.getSymbolAtLocation(a);if(!o)return;let s=a.parent;if(HA(s)&&s.propertyName===a)return;if(KA(s)){H.assert(a.kind===80||a.kind===11),_e(a,o,s,n,r,i);return}if(tu(s)&&s.isNameFirst&&s.typeExpression&&Pj(s.typeExpression.type)&&s.typeExpression.type.jsDocPropertyTags&&u(s.typeExpression.type.jsDocPropertyTags)){ge(s.typeExpression.type.jsDocPropertyTags,a,n,r);return}let c=We(n,o,a,r);if(!c){xe(o,n,r);return}switch(r.specialSearchKind){case 0:i&&Se(a,c,r);break;case 1:Ce(a,e,n,r);break;case 2:we(a,n,r);break;default:H.assertNever(r.specialSearchKind)}ng(a)&&bk(a.parent)&&lg(a.parent.parent.parent)&&(o=a.parent.symbol,!o)||be(a,o,n,r)}function ge(e,t,n,r){let i=r.referenceAdder(n.symbol);Se(t,n.symbol,r),d(e,e=>{MO(e.name)&&i(e.name.left)})}function _e(e,t,n,r,i,a,o){H.assert(!o||!!i.options.providePrefixAndSuffixTextForRename,`If alwaysGetReferences is true, then prefix/suffix text must be enabled`);let{parent:s,propertyName:c,name:l}=n,u=s.parent,d=ve(e,t,n,i.checker);if(!o&&!r.includes(d))return;if(c?e===c?(u.moduleSpecifier||f(),a&&i.options.use!==2&&i.markSeenReExportRHS(l)&&Se(l,H.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&f():i.options.use===2&&wp(l)||f(),!Xe(i.options)||o){let t=wp(e)||wp(n.name)?1:0,r=H.checkDefined(n.symbol),a=f5(r,t,i.checker);a&&D(e,r,a,i)}if(r.comingFrom!==1&&u.moduleSpecifier&&!c&&!Xe(i.options)){let e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&ee(e,i)}function f(){a&&Se(e,d,i)}}function ve(e,t,n,r){return ye(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function ye(e,t){let{parent:n,propertyName:r,name:i}=t;return H.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}function be(e,t,n,r){let i=eCe(e,t,r.checker,n.comingFrom===1);if(!i)return;let{symbol:a}=i;i.kind===0?Xe(r.options)||ee(a,r):D(e,a,i.exportInfo,r)}function xe({flags:e,valueDeclaration:t},n,r){let i=r.checker.getShorthandAssignmentValueSymbol(t),a=t&&el(t);!(e&33554432)&&a&&n.includes(i)&&Se(a,i,r)}function Se(e,t,n){let{kind:r,symbol:i}=`kind`in t?t:{kind:void 0,symbol:t};if(n.options.use===2&&e.kind===90)return;let a=n.referenceAdder(i);n.options.implementations?Ae(e,a,n):a(e,r)}function Ce(e,t,n,r){gX(e)&&Se(e,n.symbol,r);let i=()=>r.referenceAdder(n.symbol);if(zu(e.parent))H.assert(e.kind===90||e.parent.name===e),Te(n.symbol,t,i());else{let t=Je(e);t&&(De(t,i()),ke(t,r))}}function we(e,t,n){Se(e,t.symbol,n);let r=e.parent;if(n.options.use===2||!zu(r))return;H.assert(r.name===e);let i=n.referenceAdder(t.symbol);for(let e of r.members)Uu(e)&&$y(e)&&e.body&&e.body.forEachChild(function e(t){t.kind===110?i(t):!ju(t)&&!zu(t)&&t.forEachChild(e)})}function Te(e,t,n){let r=Ee(e);if(r&&r.declarations)for(let e of r.declarations){let r=YX(e,137,t);H.assert(e.kind===177&&!!r),n(r)}e.exports&&e.exports.forEach(e=>{let t=e.valueDeclaration;if(t&&t.kind===175){let e=t.body;e&&qe(e,110,e=>{gX(e)&&n(e)})}})}function Ee(e){return e.members&&e.members.get(`__constructor`)}function De(e,t){let n=Ee(e.symbol);if(n&&n.declarations)for(let e of n.declarations){H.assert(e.kind===177);let n=e.body;n&&qe(n,108,e=>{hX(e)&&t(e)})}}function Oe(e){return!!Ee(e.symbol)}function ke(e,t){if(Oe(e))return;let n=e.symbol;_(n,t,t.createSearch(void 0,n,void 0))}function Ae(e,t,n){if(R_(e)&&Ge(e.parent)){t(e);return}if(e.kind!==80)return;e.parent.kind===305&&Ke(e,n.checker,t);let r=je(e);if(r){t(r);return}let i=K(e,e=>!MO(e.parent)&&!Ju(e.parent)&&!Gu(e.parent)),a=i.parent;if(nf(a)&&a.type===i&&n.markSeenContainingTypeReference(a))if(rf(a))o(a.initializer);else if(ju(a)&&a.body){let e=a.body;e.kind===242?nh(e,e=>{e.expression&&o(e.expression)}):o(e)}else (yd(a)||qk(a))&&o(a.expression);function o(e){Me(e)&&t(e)}}function je(e){return Y(e)||Ck(e)?je(e.parent):Gk(e)?vt(e.parent.parent,vn(zu,wA)):void 0}function Me(e){switch(e.kind){case 218:return Me(e.expression);case 220:case 219:case 211:case 232:case 210:return!0;default:return!1}}function Ne(e,t,n,r){if(e===t)return!0;let i=hB(e)+`,`+hB(t),a=n.get(i);if(a!==void 0)return a;n.set(i,!1);let o=!!e.declarations&&e.declarations.some(e=>Y_(e).some(e=>{let i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&Ne(i.symbol,t,n,r)}));return n.set(i,o),o}function Pe(e){let t=Ah(e,!1);if(!t)return;let n=256;switch(t.kind){case 173:case 172:case 175:case 174:case 177:case 178:case 179:n&=fb(t),t=t.parent;break;default:return}let r=M(oe(t.getSourceFile(),`super`,t),e=>{if(e.kind!==108)return;let r=Ah(e,!1);return r&&$y(r)===!!n&&r.parent.symbol===t.symbol?g5(e):void 0});return[{definition:{type:0,symbol:t.symbol},references:r}]}function Fe(e){return e.kind===80&&e.parent.kind===170&&e.parent.name===e}function Le(e,t,n){let r=Eh(e,!1,!1),i=256;switch(r.kind){case 175:case 174:if(mh(r)){i&=fb(r),r=r.parent;break}case 173:case 172:case 177:case 178:case 179:i&=fb(r),r=r.parent;break;case 308:if(yP(r)||Fe(e))return;case 263:case 219:break;default:return}let a=re(r.kind===308?t:[r.getSourceFile()],e=>(n.throwIfCancellationRequested(),oe(e,`this`,vj(r)?e:r).filter(e=>{if(!FX(e))return!1;let t=Eh(e,!1,!1);if(!Md(t))return!1;switch(r.kind){case 219:case 263:return r.symbol===t.symbol;case 175:case 174:return mh(r)&&r.symbol===t.symbol;case 232:case 264:case 211:return t.parent&&Md(t.parent)&&r.symbol===t.parent.symbol&&$y(t)===!!i;case 308:return t.kind===308&&!yP(t)&&!Fe(e)}}))).map(e=>g5(e));return[{definition:{type:3,node:p(a,e=>FO(e.node.parent)?e.node:void 0)||e},references:a}]}function Re(e,t,n,r){let i=ZX(e,n),a=re(t,t=>(r.throwIfCancellationRequested(),M(oe(t,e.text),r=>{if(uf(r)&&r.text===e.text)if(i){let e=ZX(r,n);if(i!==n.getStringType()&&(i===e||ze(r,n)))return g5(r,2)}else return iO(r)&&!fx(r,t)?void 0:g5(r,2)})));return[{definition:{type:4,node:e},references:a}]}function ze(e,t){if(LO(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}function Be(e,t,n,r,i,a){let o=[];return Ve(e,t,n,r,!(r&&i),(t,n,r)=>{r&&Ue(e)!==Ue(r)&&(r=void 0),o.push(r||n||t)},()=>!a),o}function Ve(e,t,n,r,i,o,s){let c=p4(t);if(c){let e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&r)return o(e,void 0,void 0,3);let i=n.getContextualType(c.parent),a=i&&p(m4(c,n,i,!0),e=>f(e,4));if(a)return a;let s=ne(t,n),l=s&&o(s,void 0,void 0,4);if(l)return l;let u=e&&o(e,void 0,void 0,3);if(u)return u}let l=a(t,e,n);if(l){let e=o(l,void 0,void 0,1);if(e)return e}let u=f(e);if(u)return u;if(e.valueDeclaration&&kc(e.valueDeclaration,e.valueDeclaration.parent)){let t=n.getSymbolsOfParameterPropertyDeclaration(yt(e.valueDeclaration,FO),e.name);return H.assert(t.length===2&&!!(t[0].flags&1)&&!!(t[1].flags&4)),f(e.flags&1?t[1]:t[0])}let d=xf(e,282);if(!r||d&&!d.propertyName){let e=d&&n.getExportSpecifierLocalTargetSymbol(d);if(e){let t=o(e,void 0,void 0,1);if(t)return t}}if(!r){let r;return r=i?uQ(t.parent)?dQ(n,t.parent):void 0:m(e,n),r&&f(r,4)}if(H.assert(r),i){let t=m(e,n);return t&&f(t,4)}function f(e,t){return p(n.getRootSymbols(e),r=>o(e,r,void 0,t)||(r.parent&&r.parent.flags&96&&s(r)?He(r.parent,r.name,n,n=>o(e,r,n,t)):void 0))}function m(e,t){let n=xf(e,209);if(n&&uQ(n))return dQ(t,n)}}function He(e,t,n,r){let i=new Set;return a(e);function a(e){if(!(!(e.flags&96)||!Jx(i,e)))return p(e.declarations,e=>p(Y_(e),e=>{let i=n.getTypeAtLocation(e),o=i.symbol&&n.getPropertyOfType(i,t);return o&&p(n.getRootSymbols(o),r)||i.symbol&&a(i.symbol)}))}}function Ue(e){return e.valueDeclaration?!!(ub(e.valueDeclaration)&256):!1}function We(e,t,n,r){let{checker:i}=r;return Ve(t,n,i,!1,r.options.use!==2||!!r.options.providePrefixAndSuffixTextForRename,(n,r,i,a)=>(i&&Ue(t)!==Ue(i)&&(i=void 0),e.includes(i||r||n)?{symbol:r&&!(jx(n)&6)?r:n,kind:a}:void 0),t=>!(e.parents&&!e.parents.some(e=>Ne(t.parent,e,r.inheritsFromCache,i))))}function L(e,t){let n=pX(e),{declarations:r}=t;if(r){let e;do{e=n;for(let e of r){let t=fX(e);t&n&&(n|=t)}}while(n!==e)}return n}e.getIntersectingMeaningFromDeclarations=L;function Ge(e){return e.flags&33554432?!(wA(e)||TA(e)):oh(e)?rf(e):Nu(e)?!!e.body:zu(e)||jd(e)}function Ke(e,t,n){let r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(let e of i.getDeclarations())fX(e)&1&&n(e)}e.getReferenceEntriesForShorthandPropertyAssignment=Ke;function qe(e,t,n){pP(e,e=>{e.kind===t&&n(e),qe(e,t,n)})}function Je(e){return Db(xX(e).parent)}function Ye(e,t,n){let r=OX(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),a=M(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),e=>e.symbol&&e.symbol.flags&96?e.symbol:void 0);return a.length===0?void 0:a}function Xe(e){return e.use===2&&e.providePrefixAndSuffixTextForRename}})(w5||={});var T5={};n(T5,{createDefinitionInfo:()=>k5,getDefinitionAndBoundSpan:()=>BCe,getDefinitionAtPosition:()=>kCe,getReferenceAtPosition:()=>NCe,getTypeDefinitionAtPosition:()=>RCe});function kCe(e,t,n,r,i){let a=NCe(t,n,e),o=a&&[GCe(a.reference.fileName,a.fileName,a.unverified)]||c;if(a?.file)return o;let s=eZ(t,n);if(s===t)return;let{parent:l}=s,u=e.getTypeChecker();if(s.kind===164||Y(s)&&Wj(l)&&l.tagName===s){let e=MCe(u,s);if(e!==void 0||s.kind!==164)return e||c}if(wX(s)){let e=SX(s.parent,s.text);return e?[A5(u,e,`label`,s.text,void 0)]:void 0}switch(s.kind){case 90:if(!dj(s.parent))break;case 84:let e=K(s.parent,hA);if(e)return[WCe(e,t)];break}let f;switch(s.kind){case 107:case 135:case 127:f=Nu;let e=K(s,f);return e?[M5(u,e)]:void 0}if(TO(s)&&VO(s.parent)){let e=s.parent.parent,{symbol:t,failedAliasResolution:n}=D5(e,u,i),r=E(e.members,VO),a=t?u.symbolToString(t,e):``,o=s.getSourceFile();return k(r,e=>{let{pos:t}=ux(e);return t=Es(o.text,t),A5(u,e,`constructor`,`static {}`,a,!1,n,{start:t,length:6})})}let{symbol:p,failedAliasResolution:m}=D5(s,u,i),h=s;if(r&&m){let e=d([s,...p?.declarations||c],e=>K(e,nm)),t=e&&Gg(e);t&&({symbol:p,failedAliasResolution:m}=D5(t,u,i),h=t)}if(!p&&lQ(h)){let n=e.getResolvedModuleFromModuleSpecifier(h,t)?.resolvedModule;if(n)return[{name:h.text,fileName:n.resolvedFileName,containerName:void 0,containerKind:void 0,kind:`script`,textSpan:xc(0,0),failedAliasResolution:m,isAmbient:OP(n.resolvedFileName),unverified:h!==s}]}if(Du(s)&&(Ru(l)||Qc(l))&&(p=l.symbol),!p)return de(o,VCe(s,u));if(r&&v(p.declarations,e=>e.getSourceFile().fileName===t.fileName))return;let g=qCe(u,s);if(g&&!(Jd(s.parent)&&JCe(g))){let e=M5(u,g,m),t=e=>e!==g;if(u.getRootSymbols(p).some(e=>ACe(e,g))){if(!HO(g))return[e];t=e=>e!==g&&(CA(e)||Uk(e))}let n=O5(u,p,s,m,t)||c;return s.kind===108?[e,...n]:[...n,e]}if(s.parent.kind===305){let e=u.getShorthandAssignmentValueSymbol(p.valueDeclaration);return de(e?.declarations?e.declarations.map(t=>k5(t,u,e,s,!1,m)):c,jCe(u,s))}if(ku(s)&&bk(l)&&vk(l.parent)&&s===(l.propertyName||l.name)){let e=JZ(s),t=u.getTypeAtLocation(l.parent);return e===void 0?c:re(t.isUnion()?t.types:[t],t=>{let n=t.getProperty(e);return n&&O5(u,n,s)})}let _=jCe(u,s);return de(o,_.length?_:O5(u,p,s,m))}function ACe(e,t){return e===t.symbol||e===t.symbol.parent||kb(t.parent)||!ld(t.parent)&&e===vt(t.parent,Md)?.symbol}function jCe(e,t){let n=p4(t);if(n){let r=n&&e.getContextualType(n.parent);if(r)return re(m4(n,e,r,!1),n=>O5(e,n,t))}return c}function MCe(e,t){let n=K(t,Ru);if(!(n&&n.name))return;let r=K(n,zu);if(!r)return;let i=K_(r);if(!i)return;let a=F_(i.expression),o=Uk(a)?a.symbol:e.getSymbolAtLocation(a);if(!o)return;let s=eb(n)?e.getTypeOfSymbol(o):e.getDeclaredTypeOfSymbol(o),c;if(NO(n.name)){let t=e.getSymbolAtLocation(n.name);if(!t)return;c=yv(t)?y(e.getPropertiesOfType(s),e=>e.escapedName===t.escapedName):e.getPropertyOfType(s,Wc(t.escapedName))}else c=e.getPropertyOfType(s,Wc(fm(n.name)));if(c)return O5(e,c,t)}function NCe(e,t,n){let r=N5(e.referencedFiles,t);if(r){let t=n.getSourceFileFromReference(e,r);return t&&{reference:r,fileName:t.fileName,file:t,unverified:!1}}let i=N5(e.typeReferenceDirectives,t);if(i){let t=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(i,e)?.resolvedTypeReferenceDirective,r=t&&n.getSourceFile(t.resolvedFileName);return r&&{reference:i,fileName:r.fileName,file:r,unverified:!1}}let a=N5(e.libReferenceDirectives,t);if(a){let e=n.getLibFileFromReference(a);return e&&{reference:a,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let r=tZ(e,t),i;if(lQ(r)&&tc(r.text)&&(i=n.getResolvedModuleFromModuleSpecifier(r,e))){let t=i.resolvedModule?.resolvedFileName,a=t||uo($a(e.fileName),r.text);return{file:n.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}var PCe=new Set([`Array`,`ArrayLike`,`ReadonlyArray`,`Promise`,`PromiseLike`,`Iterable`,`IterableIterator`,`AsyncIterable`,`Set`,`WeakSet`,`ReadonlySet`,`Map`,`WeakMap`,`ReadonlyMap`,`Partial`,`Required`,`Readonly`,`Pick`,`Omit`]);function FCe(e,t){let n=t.symbol.name;if(!PCe.has(n))return!1;let r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}function ICe(e,t){if(!t.aliasSymbol)return!1;let n=t.aliasSymbol.name;if(!PCe.has(n))return!1;let r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function LCe(e,t,n,r){if(Wx(t)&4&&FCe(e,t))return E5(e.getTypeArguments(t)[0],e,n,r);if(ICe(e,t)&&t.aliasTypeArguments)return E5(t.aliasTypeArguments[0],e,n,r);if(Wx(t)&32&&t.target&&ICe(e,t.target)){let i=t.aliasSymbol?.declarations?.[0];if(i&&TA(i)&&YO(i.type)&&i.type.typeArguments)return E5(e.getTypeAtLocation(i.type.typeArguments[0]),e,n,r)}return[]}function RCe(e,t,n){let r=eZ(t,n);if(r===t)return;if(Vm(r.parent)&&r.parent.name===r)return E5(e.getTypeAtLocation(r.parent),e,r.parent,!1);let{symbol:i,failedAliasResolution:a}=D5(r,e,!1);if(Du(r)&&(Ru(r.parent)||Qc(r.parent))&&(i=r.parent.symbol,a=!1),!i)return;let o=e.getTypeOfSymbolAtLocation(i,r),s=zCe(i,o,e),c=s&&E5(s,e,r,a),[l,u]=c&&c.length!==0?[s,c]:[o,E5(o,e,r,a)];return u.length?[...LCe(e,l,r,a),...u]:!(i.flags&111551)&&i.flags&788968?O5(e,Nx(i,e),r,a):void 0}function E5(e,t,n,r){return re(e.isUnion()&&!(e.flags&32)?e.types:[e],e=>e.symbol&&O5(t,e.symbol,n,r))}function zCe(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&bA(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let e=t.getCallSignatures();if(e.length===1)return n.getReturnTypeOfSignature(Ie(e))}}function BCe(e,t,n){let r=kCe(e,t,n);if(!r||r.length===0)return;let i=N5(t.referencedFiles,n)||N5(t.typeReferenceDirectives,n)||N5(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:LZ(i)};let a=eZ(t,n);return{definitions:r,textSpan:xc(a.getStart(),a.getWidth())}}function VCe(e,t){return M(t.getIndexInfosAtLocation(e),e=>e.declaration&&M5(t,e.declaration))}function D5(e,t,n){let r=t.getSymbolAtLocation(e),i=!1;if(r?.declarations&&r.flags&2097152&&!n&&HCe(e,r.declarations[0])){let e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function HCe(e,t){return e.kind!==80&&(e.kind!==11||!fu(e.parent))?!1:e.parent===t?!0:t.kind!==275}function UCe(e){if(!mg(e))return!1;let t=K(e,e=>kb(e)?!0:mg(e)?!1:`quit`);return!!t&&Eg(t)===5}function O5(e,t,n,r,i){let a=i===void 0?t.declarations:E(t.declarations,i),o=!i&&(c()||l());if(o)return o;let s=E(a,e=>!UCe(e));return k(F(s)?s:a,i=>k5(i,e,t,n,!1,r));function c(){if(t.flags&32&&!(t.flags&19)&&(gX(n)||n.kind===137)){let e=y(a,zu);return e&&u(e.members,!0)}}function l(){return _X(n)||jX(n)?u(a,!1):void 0}function u(i,a){if(!i)return;let o=i.filter(a?HO:ju),s=o.filter(e=>!!e.body);return o.length?s.length===0?[k5(ze(o),e,t,n,!1,r)]:s.map(r=>k5(r,e,t,n)):void 0}}function k5(e,t,n,r,i,a){let o=t.symbolToString(n);return A5(t,e,v7.getSymbolKind(t,n,r),o,n.parent?t.symbolToString(n.parent,r):``,i,a)}function A5(e,t,n,r,i,a,o,s){let c=t.getSourceFile();return s||=PZ(el(t)||t,c),{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...u5.toContextSpan(s,c,u5.getContextNode(t)),isLocal:!j5(e,t),isAmbient:!!(t.flags&33554432),unverified:a,failedAliasResolution:o}}function WCe(e,t){let n=u5.getContextNode(e),r=PZ(_5(n)?n.start:n,t);return{fileName:t.fileName,textSpan:r,kind:`keyword`,name:`switch`,containerKind:void 0,containerName:``,...u5.toContextSpan(r,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function j5(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(rf(t.parent)&&t.parent.initializer===t)return j5(e,t.parent);switch(t.kind){case 173:case 178:case 179:case 175:if(Zy(t,2))return!1;case 177:case 304:case 305:case 211:case 232:case 220:case 219:return j5(e,t.parent);default:return!1}}function M5(e,t,n){return k5(t,e,t.symbol,t,!1,n)}function N5(e,t){return y(e,e=>cc(e,t))}function GCe(e,t,n){return{fileName:t,textSpan:Sc(0,0),kind:`script`,name:e,containerName:void 0,containerKind:void 0,unverified:n}}function KCe(e){let t=K(e,e=>!OX(e)),n=t?.parent;return n&&ld(n)&&Lh(n)===t?n:void 0}function qCe(e,t){let n=KCe(t),r=n&&e.getResolvedSignature(n);return vt(r&&r.declaration,e=>ju(e)&&!XO(e))}function JCe(e){switch(e.kind){case 177:case 186:case 180:case 181:return!0;default:return!1}}var P5={};n(P5,{provideInlayHints:()=>QCe});var YCe=e=>RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function XCe(e){return e.includeInlayParameterNameHints===`literals`||e.includeInlayParameterNameHints===`all`}function ZCe(e){return e.includeInlayParameterNameHints===`literals`}function F5(e){return e.interactiveInlayHints===!0}function QCe(e){let{file:t,program:n,span:r,cancellationToken:i,preferences:a}=e,o=t.text,s=n.getCompilerOptions(),c=aQ(t,a),l=n.getTypeChecker(),u=[];return d(t),u;function d(e){if(!(!e||e.getFullWidth()===0)){switch(e.kind){case 268:case 264:case 265:case 263:case 232:case 219:case 175:case 220:i.throwIfCancellationRequested()}if(hc(r,e.pos,e.getFullWidth())&&!(Ju(e)&&!Gk(e)))return a.includeInlayVariableTypeHints&&bA(e)||a.includeInlayPropertyDeclarationTypeHints&&RO(e)?v(e):a.includeInlayEnumMemberValueHints&&_j(e)?g(e):XCe(a)&&(Tk(e)||Ek(e))?y(e):(a.includeInlayFunctionParameterTypeHints&&Nu(e)&&rT(e)&&E(e),a.includeInlayFunctionLikeReturnTypeHints&&f(e)&&w(e)),pP(e,d)}}function f(e){return jk(e)||Ak(e)||SA(e)||BO(e)||UO(e)}function p(e,t,n,r){let i=`${r?`...`:``}${e}`,o;F5(a)?(o=[A(i,t),{text:`:`}],i=``):i+=`:`,u.push({text:i,position:n,kind:`Parameter`,whitespaceAfter:!0,displayParts:o})}function m(e,t){u.push({text:typeof e==`string`?`: ${e}`:``,displayParts:typeof e==`string`?void 0:[{text:`: `},...e],position:t,kind:`Type`,whitespaceBefore:!0})}function h(e,t){u.push({text:`= ${e}`,position:t,kind:`Enum`,whitespaceBefore:!0})}function g(e){if(e.initializer)return;let t=l.getConstantValue(e);t!==void 0&&h(t.toString(),e.end)}function _(e){return e.symbol&&e.symbol.flags&1536}function v(e){if(e.initializer===void 0&&!(RO(e)&&!(l.getTypeAtLocation(e).flags&1))||Xu(e.name)||bA(e)&&!ae(e)||Ly(e))return;let t=l.getTypeAtLocation(e);if(_(t))return;let n=te(t);if(n){let t=typeof n==`string`?n:n.map(e=>e.text).join(``);if(a.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&Nt(e.name.getText(),t))return;m(n,e.name.end)}}function y(e){let t=e.arguments;if(!t||!t.length)return;let n=l.getResolvedSignature(e);if(n===void 0)return;let r=0;for(let e of t){let t=F_(e);if(ZCe(a)&&!C(t)){r++;continue}let i=0;if(Hk(t)){let e=l.getTypeAtLocation(t.expression);if(l.isTupleType(e)){let{elementFlags:t,fixedLength:n}=e.target;if(n===0)continue;let r=x(t,e=>!(e&1));(r<0?n:r)>0&&(i=r<0?n:r)}}let o=l.getParameterIdentifierInfoAtPosition(n,r);if(r+=i||1,o){let{parameter:n,parameterName:r,isRestParameter:i}=o;if(!(a.includeInlayParameterNameHintsWhenArgumentMatchesName||!b(t,r))&&!i)continue;let s=Wc(r);if(S(t,s))continue;p(s,n,e.getStart(),i)}}}function b(e,t){return Y(e)?e.text===t:Ck(e)?e.name.text===t:!1}function S(e,n){if(!Ws(n,zS(s),MS(t.scriptKind)))return!1;let r=zs(o,e.pos);if(!r?.length)return!1;let i=YCe(n);return F(r,e=>i.test(o.substring(e.pos,e.end)))}function C(e){switch(e.kind){case 225:{let t=e.operand;return su(t)||Y(t)&&iT(t.escapedText)}case 112:case 97:case 106:case 15:case 229:return!0;case 80:{let t=e.escapedText;return ie(t)||iT(t)}}return su(e)}function w(e){if(jk(e)&&!YX(e,21,t)||zy(e)||!e.body)return;let n=l.getSignatureFromDeclaration(e);if(!n)return;let r=l.getTypePredicateOfSignature(n);if(r?.type){let t=ne(r);if(t){m(t,T(e));return}}let i=l.getReturnTypeOfSignature(n);if(_(i))return;let a=te(i);a&&m(a,T(e))}function T(e){let n=YX(e,22,t);return n?n.end:e.parameters.end}function E(e){let t=l.getSignatureFromDeclaration(e);if(!t)return;let n=0;for(let r of e.parameters)ae(r)&&D(r,jy(r)?t.thisParameter:t.parameters[n]),!jy(r)&&n++}function D(e,t){if(Ly(e)||t===void 0)return;let n=O(t);n!==void 0&&m(n,e.questionToken?e.questionToken.end:e.name.end)}function O(e){let t=e.valueDeclaration;if(!t||!FO(t))return;let n=l.getTypeOfSymbolAtLocation(e,t);if(!_(n))return te(n)}function k(e){let n=VU();return Ff(r=>{let i=l.typeToTypeNode(e,void 0,71286784);H.assertIsDefined(i,`should always get typenode`),n.writeNode(4,i,t,r)})}function ee(e){let n=VU();return Ff(r=>{let i=l.typePredicateToTypePredicateNode(e,void 0,71286784);H.assertIsDefined(i,`should always get typePredicateNode`),n.writeNode(4,i,t,r)})}function te(e){if(!F5(a))return k(e);let t=l.typeToTypeNode(e,void 0,71286784);return H.assertIsDefined(t,`should always get typeNode`),re(t)}function ne(e){if(!F5(a))return ee(e);let t=l.typePredicateToTypePredicateNode(e,void 0,71286784);return H.assertIsDefined(t,`should always get typenode`),re(t)}function re(e){let t=[];return n(e),t;function n(e){if(!e)return;let o=is(e.kind);if(o){t.push({text:o});return}if(su(e)){t.push({text:a(e)});return}switch(e.kind){case 80:H.assertNode(e,Y);let o=Gc(e),s=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&el(e.symbol.declarations[0]);s?t.push(A(o,s)):t.push({text:o});break;case 167:H.assertNode(e,MO),n(e.left),t.push({text:`.`}),n(e.right);break;case 183:H.assertNode(e,JO),e.assertsModifier&&t.push({text:`asserts `}),n(e.parameterName),e.type&&(t.push({text:` is `}),n(e.type));break;case 184:H.assertNode(e,YO),n(e.typeName),e.typeArguments&&(t.push({text:`<`}),i(e.typeArguments,`, `),t.push({text:`>`}));break;case 169:H.assertNode(e,PO),e.modifiers&&i(e.modifiers,` `),n(e.name),e.constraint&&(t.push({text:` extends `}),n(e.constraint)),e.default&&(t.push({text:` = `}),n(e.default));break;case 170:H.assertNode(e,FO),e.modifiers&&i(e.modifiers,` `),e.dotDotDotToken&&t.push({text:`...`}),n(e.name),e.questionToken&&t.push({text:`?`}),e.type&&(t.push({text:`: `}),n(e.type));break;case 186:H.assertNode(e,ZO),t.push({text:`new `}),r(e),t.push({text:` => `}),n(e.type);break;case 187:H.assertNode(e,QO),t.push({text:`typeof `}),n(e.exprName),e.typeArguments&&(t.push({text:`<`}),i(e.typeArguments,`, `),t.push({text:`>`}));break;case 188:H.assertNode(e,$O),t.push({text:`{`}),e.members.length&&(t.push({text:` `}),i(e.members,`; `),t.push({text:` `})),t.push({text:`}`});break;case 189:H.assertNode(e,ek),n(e.elementType),t.push({text:`[]`});break;case 190:H.assertNode(e,tk),t.push({text:`[`}),i(e.elements,`, `),t.push({text:`]`});break;case 203:H.assertNode(e,nk),e.dotDotDotToken&&t.push({text:`...`}),n(e.name),e.questionToken&&t.push({text:`?`}),t.push({text:`: `}),n(e.type);break;case 191:H.assertNode(e,rk),n(e.type),t.push({text:`?`});break;case 192:H.assertNode(e,ik),t.push({text:`...`}),n(e.type);break;case 193:H.assertNode(e,ak),i(e.types,` | `);break;case 194:H.assertNode(e,ok),i(e.types,` & `);break;case 195:H.assertNode(e,sk),n(e.checkType),t.push({text:` extends `}),n(e.extendsType),t.push({text:` ? `}),n(e.trueType),t.push({text:` : `}),n(e.falseType);break;case 196:H.assertNode(e,ck),t.push({text:`infer `}),n(e.typeParameter);break;case 197:H.assertNode(e,lk),t.push({text:`(`}),n(e.type),t.push({text:`)`});break;case 199:H.assertNode(e,dk),t.push({text:`${is(e.operator)} `}),n(e.type);break;case 200:H.assertNode(e,fk),n(e.objectType),t.push({text:`[`}),n(e.indexType),t.push({text:`]`});break;case 201:H.assertNode(e,pk),t.push({text:`{ `}),e.readonlyToken&&(e.readonlyToken.kind===40?t.push({text:`+`}):e.readonlyToken.kind===41&&t.push({text:`-`}),t.push({text:`readonly `})),t.push({text:`[`}),n(e.typeParameter),e.nameType&&(t.push({text:` as `}),n(e.nameType)),t.push({text:`]`}),e.questionToken&&(e.questionToken.kind===40?t.push({text:`+`}):e.questionToken.kind===41&&t.push({text:`-`}),t.push({text:`?`})),t.push({text:`: `}),e.type&&n(e.type),t.push({text:`; }`});break;case 202:H.assertNode(e,mk),n(e.literal);break;case 185:H.assertNode(e,XO),r(e),t.push({text:` => `}),n(e.type);break;case 206:H.assertNode(e,hk),e.isTypeOf&&t.push({text:`typeof `}),t.push({text:`import(`}),n(e.argument),e.assertions&&(t.push({text:`, { assert: `}),i(e.assertions.assertClause.elements,`, `),t.push({text:` }`})),t.push({text:`)`}),e.qualifier&&(t.push({text:`.`}),n(e.qualifier)),e.typeArguments&&(t.push({text:`<`}),i(e.typeArguments,`, `),t.push({text:`>`}));break;case 172:H.assertNode(e,LO),e.modifiers?.length&&(i(e.modifiers,` `),t.push({text:` `})),n(e.name),e.questionToken&&t.push({text:`?`}),e.type&&(t.push({text:`: `}),n(e.type));break;case 182:H.assertNode(e,qO),t.push({text:`[`}),i(e.parameters,`, `),t.push({text:`]`}),e.type&&(t.push({text:`: `}),n(e.type));break;case 174:H.assertNode(e,zO),e.modifiers?.length&&(i(e.modifiers,` `),t.push({text:` `})),n(e.name),e.questionToken&&t.push({text:`?`}),r(e),e.type&&(t.push({text:`: `}),n(e.type));break;case 180:H.assertNode(e,GO),r(e),e.type&&(t.push({text:`: `}),n(e.type));break;case 181:H.assertNode(e,KO),t.push({text:`new `}),r(e),e.type&&(t.push({text:`: `}),n(e.type));break;case 208:H.assertNode(e,yk),t.push({text:`[`}),i(e.elements,`, `),t.push({text:`]`});break;case 207:H.assertNode(e,vk),t.push({text:`{`}),e.elements.length&&(t.push({text:` `}),i(e.elements,`, `),t.push({text:` `})),t.push({text:`}`});break;case 209:H.assertNode(e,bk),n(e.name);break;case 225:H.assertNode(e,Ik),t.push({text:is(e.operator)}),n(e.operand);break;case 204:H.assertNode(e,_k),n(e.head),e.templateSpans.forEach(n);break;case 16:H.assertNode(e,aO),t.push({text:a(e)});break;case 205:H.assertNode(e,gk),n(e.type),n(e.literal);break;case 17:H.assertNode(e,oO),t.push({text:a(e)});break;case 18:H.assertNode(e,sO),t.push({text:a(e)});break;case 198:H.assertNode(e,uk),t.push({text:`this`});break;case 168:H.assertNode(e,NO),t.push({text:`[`}),n(e.expression),t.push({text:`]`});break;default:H.failBadSyntaxKind(e)}}function r(e){e.typeParameters&&(t.push({text:`<`}),i(e.typeParameters,`, `),t.push({text:`>`})),t.push({text:`(`}),i(e.parameters,`, `),t.push({text:`)`})}function i(e,r){e.forEach((e,i)=>{i>0&&t.push({text:r}),n(e)})}function a(e){switch(e.kind){case 11:return c===0?`'${Wv(e.text,39)}'`:`"${Wv(e.text,34)}"`;case 16:case 17:case 18:{let t=e.rawText??Bv(Wv(e.text,96));switch(e.kind){case 16:return"`"+t+"${";case 17:return`}`+t+"${";case 18:return`}`+t+"`"}}}return e.text}}function ie(e){return e===`undefined`}function ae(e){if((Ev(e)||bA(e)&&Im(e))&&e.initializer){let t=F_(e.initializer);return!(C(t)||Ek(t)||Sk(t)||yd(t))}return!0}function A(e,t){let n=t.getSourceFile();return{text:e,span:PZ(t,n),file:n.fileName}}}var I5={};n(I5,{getDocCommentTemplateAtPosition:()=>gwe,getJSDocParameterNameCompletionDetails:()=>hwe,getJSDocParameterNameCompletions:()=>mwe,getJSDocTagCompletionDetails:()=>pwe,getJSDocTagCompletions:()=>fwe,getJSDocTagNameCompletionDetails:()=>dwe,getJSDocTagNameCompletions:()=>uwe,getJsDocCommentsFromDeclarations:()=>nwe,getJsDocTagsFromDeclarations:()=>awe});var $Ce=`abstract.access.alias.argument.async.augments.author.borrows.callback.class.classdesc.constant.constructor.constructs.copyright.default.deprecated.description.emits.enum.event.example.exports.extends.external.field.file.fileoverview.fires.function.generator.global.hideconstructor.host.ignore.implements.import.inheritdoc.inner.instance.interface.kind.lends.license.link.linkcode.linkplain.listens.member.memberof.method.mixes.module.name.namespace.overload.override.package.param.private.prop.property.protected.public.readonly.requires.returns.satisfies.see.since.static.summary.template.this.throws.todo.tutorial.type.typedef.var.variation.version.virtual.yields`.split(`.`),ewe,twe;function nwe(e,t){let n=[];return yQ(e,e=>{for(let r of iwe(e)){let i=Nj(r)&&r.tags&&y(r.tags,e=>e.kind===328&&(e.tagName.escapedText===`inheritDoc`||e.tagName.escapedText===`inheritdoc`));if(r.comment===void 0&&!i||Nj(r)&&e.kind!==347&&e.kind!==339&&r.tags&&r.tags.some(e=>e.kind===347||e.kind===339)&&!r.tags.some(e=>e.kind===342||e.kind===343))continue;let a=r.comment?L5(r.comment,t):[];i&&i.comment&&(a=a.concat(L5(i.comment,t))),C(n,a,rwe)||n.push(a)}}),ne(_(n,[BQ()]))}function rwe(e,t){return xe(e,t,(e,t)=>e.kind===t.kind&&e.text===t.text)}function iwe(e){switch(e.kind){case 342:case 349:return[e];case 339:case 347:return[e,e.parent];case 324:if(Gj(e.parent))return[e.parent.parent];default:return u_(e)}}function awe(e,t){let n=[];return yQ(e,e=>{let r=Ml(e);if(!(r.some(e=>e.kind===347||e.kind===339)&&!r.some(e=>e.kind===342||e.kind===343)))for(let e of r)n.push({name:e.tagName.text,text:cwe(e,t)}),n.push(...owe(swe(e),t))}),n}function owe(e,t){return re(e,e=>de([{name:e.tagName.text,text:cwe(e,t)}],owe(swe(e),t)))}function swe(e){return tu(e)&&e.isNameFirst&&e.typeExpression&&Pj(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function L5(e,t){return typeof e==`string`?[PQ(e)]:re(e,e=>e.kind===322?[PQ(e.text)]:RQ(e,t))}function cwe(e,t){let{comment:n,kind:r}=e,i=lwe(r);switch(r){case 350:let r=e.typeExpression;return r?a(r):n===void 0?void 0:L5(n,t);case 330:return a(e.class);case 329:return a(e.class);case 346:let o=e,s=[];if(o.constraint&&s.push(PQ(o.constraint.getText())),u(o.typeParameters)){u(s)&&s.push(DQ());let e=o.typeParameters[o.typeParameters.length-1];d(o.typeParameters,t=>{s.push(i(t.getText())),e!==t&&s.push(kQ(28),DQ())})}return n&&s.push(DQ(),...L5(n,t)),s;case 345:case 351:return a(e.typeExpression);case 347:case 339:case 349:case 342:case 348:let{name:c}=e;return c?a(c):n===void 0?void 0:L5(n,t);default:return n===void 0?void 0:L5(n,t)}function a(e){return o(e.getText())}function o(e){return n?e.match(/^https?$/)?[PQ(e),...L5(n,t)]:[i(e),DQ(),...L5(n,t)]:[PQ(e)]}}function lwe(e){switch(e){case 342:return jQ;case 349:return MQ;case 346:return IQ;case 347:case 339:return FQ;default:return PQ}}function uwe(){return ewe||=k($Ce,e=>({name:e,kind:`keyword`,kindModifiers:``,sortText:S8.SortText.LocationPriority}))}var dwe=pwe;function fwe(){return twe||=k($Ce,e=>({name:`@${e}`,kind:`keyword`,kindModifiers:``,sortText:S8.SortText.LocationPriority}))}function pwe(e){return{name:e,kind:``,kindModifiers:``,displayParts:[PQ(e)],documentation:c,tags:void 0,codeActions:void 0}}function mwe(e){if(!Y(e.name))return c;let t=e.name.text,n=e.parent,r=n.parent;return ju(r)?M(r.parameters,r=>{if(!Y(r.name))return;let i=r.name.text;if(!(n.tags.some(t=>t!==e&&Yj(t)&&Y(t.name)&&t.name.escapedText===i)||t!==void 0&&!pn(i,t)))return{name:i,kind:`parameter`,kindModifiers:``,sortText:S8.SortText.LocationPriority}}):[]}function hwe(e){return{name:e,kind:`parameter`,kindModifiers:``,displayParts:[PQ(e)],documentation:c,tags:void 0,codeActions:void 0}}function gwe(e,t,n,r){let i=nZ(t,n),a=K(i,Nj);if(a&&(a.comment!==void 0||u(a.tags)))return;let o=i.getStart(t);if(!a&&o0;if(h&&!g){let t=`/**`+e+p+` * `,r=o===n?e+p:``;return{newText:t+e+h+p+` */`+r,caretOffset:t.length}}return{newText:`/** */`,caretOffset:3}}function _we(e,t){let{text:n}=e,r=IX(t,e),i=r;for(;i<=t&&vs(n.charCodeAt(i));i++);return n.slice(r,i)}function vwe(e,t,n,r){return e.map(({name:e,dotDotDotToken:i},a)=>{let o=e.kind===80?e.text:`param`+a;return`${n} * @param ${t?i?`{...any} `:`{any} `:``}${o}${r}`}).join(``)}function ywe(e,t){return`${e} * @returns${t}`}function bwe(e,t){return jf(e,e=>R5(e,t))}function R5(e,t){switch(e.kind){case 263:case 219:case 175:case 177:case 174:case 220:let n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:z5(n,t)};case 304:return R5(e.initializer,t);case 264:case 265:case 267:case 307:case 266:return{commentOwner:e};case 172:{let n=e;return n.type&&XO(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:z5(n.type,t)}:{commentOwner:e}}case 244:{let n=e.declarationList.declarations,r=n.length===1&&n[0].initializer?xwe(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:z5(r,t)}:{commentOwner:e}}case 308:return`quit`;case 268:return e.parent.kind===268?void 0:{commentOwner:e};case 245:return R5(e.expression,t);case 227:{let n=e;return Eg(n)===0?`quit`:ju(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:z5(n.right,t)}:{commentOwner:e}}case 173:let r=e.initializer;if(r&&(Ak(r)||jk(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:z5(r,t)}}}function z5(e,t){return!!t?.generateReturnInDocTemplate&&(XO(e)||jk(e)&&q(e.body)||Nu(e)&&e.body&&tA(e.body)&&!!nh(e.body,e=>e))}function xwe(e){for(;e.kind===218;)e=e.expression;switch(e.kind){case 219:case 220:return e;case 232:return y(e.members,HO)}}var B5={};n(B5,{mapCode:()=>Swe});function Swe(e,t,n,r,i,a){return y7.ChangeTracker.with({host:r,formatContext:i,preferences:a},r=>{let i=t.map(t=>Cwe(e,t)),a=n&&ne(n);for(let t of i)wwe(e,r,t,a)})}function Cwe(e,t){let n=[{parse:()=>gP(`__mapcode_content_nodes.ts`,t,e.languageVersion,!0,e.scriptKind),body:e=>e.statements},{parse:()=>gP(`__mapcode_class_content_nodes.ts`,`class __class { ${t} }`,e.languageVersion,!0,e.scriptKind),body:e=>e.statements[0].members}],r=[];for(let{parse:e,body:t}of n){let n=e(),i=t(n);if(i.length&&n.parseDiagnostics.length===0)return i;i.length&&r.push({sourceFile:n,body:i})}r.sort((e,t)=>e.sourceFile.parseDiagnostics.length-t.sourceFile.parseDiagnostics.length);let{body:i}=r[0];return i}function wwe(e,t,n,r){Ru(n[0])||Gu(n[0])?Twe(e,t,n,r):Ewe(e,t,n,r)}function Twe(e,t,n,r){let i;if(i=!r||!r.length?y(e.statements,vn(zu,wA)):d(r,t=>K(nZ(e,t.start),vn(zu,wA))),!i)return;let a=i.members.find(e=>n.some(t=>V5(t,e)));if(a){let r=b(i.members,e=>n.some(t=>V5(t,e)));d(n,H5),t.replaceNodeRangeWithNodes(e,a,r,n);return}d(n,H5),t.insertNodesAfter(e,i.members[i.members.length-1],n)}function Ewe(e,t,n,r){if(!r?.length){t.insertNodesAtEndOfFile(e,n,!1);return}for(let i of r){let r=K(nZ(e,i.start),e=>vn(tA,vj)(e)&&F(e.statements,e=>n.some(t=>V5(t,e))));if(r){let i=r.statements.find(e=>n.some(t=>V5(t,e)));if(i){let a=b(r.statements,e=>n.some(t=>V5(t,e)));d(n,H5),t.replaceNodeRangeWithNodes(e,i,a,n);return}}}let i=e.statements;for(let t of r){let n=K(nZ(e,t.start),tA);if(n){i=n.statements;break}}d(n,H5),t.insertNodesAfter(e,i[i.length-1],n)}function V5(e,t){return e.kind===t.kind?e.kind===177?e.kind===t.kind:Qc(e)&&Qc(t)?e.name.getText()===t.name.getText():aA(e)&&aA(t)||sA(e)&&sA(t)?e.expression.getText()===t.expression.getText():cA(e)&&cA(t)?e.initializer?.getText()===t.initializer?.getText()&&e.incrementor?.getText()===t.incrementor?.getText()&&e.condition?.getText()===t.condition?.getText():wd(e)&&wd(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():gA(e)&&gA(t)?e.label.getText()===t.label.getText():e.getText()===t.getText():!1}function H5(e){Dwe(e),e.parent=void 0}function Dwe(e){e.pos=-1,e.end=-1,e.forEachChild(Dwe)}var U5={};n(U5,{compareImportsOrRequireStatements:()=>t7,compareModuleSpecifiers:()=>Qwe,getImportDeclarationInsertionIndex:()=>Jwe,getImportSpecifierInsertionIndex:()=>Ywe,getNamedImportSpecifierComparerWithDetection:()=>qwe,getOrganizeImportsStringComparerWithDetection:()=>Kwe,organizeImports:()=>Owe,testCoalesceExports:()=>Zwe,testCoalesceImports:()=>Xwe});function Owe(e,t,n,r,i,a){let o=y7.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s=a===`SortAndCombine`||a===`All`,c=s,l=a===`RemoveUnused`||a===`All`,d=e.statements.filter(MA),f=G5(e,d),{comparersToTest:p,typeOrdersToTest:m}=W5(i),h=p[0],g={moduleSpecifierComparer:typeof i.organizeImportsIgnoreCase==`boolean`?h:void 0,namedImportComparer:typeof i.organizeImportsIgnoreCase==`boolean`?h:void 0,typeOrder:i.organizeImportsTypeOrder};if(typeof i.organizeImportsIgnoreCase!=`boolean`&&({comparer:g.moduleSpecifierComparer}=zwe(f,p)),!g.typeOrder||typeof i.organizeImportsIgnoreCase!=`boolean`){let e=Z5(d,p,m);if(e){let{namedImportComparer:t,typeOrder:n}=e;g.namedImportComparer=g.namedImportComparer??t,g.typeOrder=g.typeOrder??n}}f.forEach(e=>v(e,g)),a!==`RemoveUnused`&&Awe(e).forEach(e=>y(e,g.namedImportComparer));for(let t of e.statements.filter(zp))t.body&&(G5(e,t.body.statements.filter(MA)).forEach(e=>v(e,g)),a!==`RemoveUnused`&&y(t.body.statements.filter(WA),g.namedImportComparer));return o.getChanges();function _(r,i){if(u(r)===0)return;UE(r[0],1024);let a=c?at(r,e=>K5(e.moduleSpecifier)):[r],l=re(s?Ae(a,(e,t)=>Y5(e[0].moduleSpecifier,t[0].moduleSpecifier,g.moduleSpecifierComparer??h)):a,e=>K5(e[0].moduleSpecifier)||e[0].moduleSpecifier===void 0?i(e):e);if(l.length===0)o.deleteNodes(e,r,{leadingTriviaOption:y7.LeadingTriviaOption.Exclude,trailingTriviaOption:y7.TrailingTriviaOption.Include},!0);else{let i={leadingTriviaOption:y7.LeadingTriviaOption.Exclude,trailingTriviaOption:y7.TrailingTriviaOption.Include,suffix:zQ(n,t.options)};o.replaceNodeWithNodes(e,r[0],l,i);let a=o.nodeHasTrailingComment(e,r[0],i);o.deleteNodes(e,r.slice(1),{trailingTriviaOption:y7.TrailingTriviaOption.Include},a)}}function v(t,n){let i=n.moduleSpecifierComparer??h,a=n.namedImportComparer??h,o=e7({organizeImportsTypeOrder:n.typeOrder??`last`},a);_(t,t=>(l&&(t=jwe(t,e,r)),c&&(t=Nwe(t,i,o,e)),s&&(t=Ae(t,(e,t)=>t7(e,t,i))),t))}function y(e,t){let n=e7(i,t);_(e,e=>Pwe(e,n))}}function W5(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase==`boolean`?[$5(e,e.organizeImportsIgnoreCase)]:[$5(e,!0),$5(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:[`last`,`inline`,`first`]}}function G5(e,t){let n=Gs(e.languageVersion,!1,e.languageVariant),r=[],i=0;for(let a of t)r[i]&&kwe(e,a,n)&&i++,r[i]||(r[i]=[]),r[i].push(a);return r}function kwe(e,t,n){let r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let a=0;for(;n.getTokenStart()=2))return!0;return!1}function Awe(e){let t=[],n=e.statements,r=u(n),i=0,a=0;for(;iG5(e,t))}function jwe(e,t,n){let r=n.getTypeChecker(),i=n.getCompilerOptions(),a=r.getJsxNamespace(t),o=r.getJsxFragmentFactory(t),s=!!(t.transformFlags&2),c=[];for(let n of e){let{importClause:e,moduleSpecifier:r}=n;if(!e){c.push(n);continue}let{name:i,namedBindings:a}=e;if(i&&!l(i)&&(i=void 0),a)if(zA(a))l(a.name)||(a=void 0);else{let e=a.elements.filter(e=>l(e.name));e.length{if(e.attributes){let t=e.attributes.token+` `;for(let n of Ae(e.attributes.elements,(e,t)=>Ht(e.name.text,t.name.text)))t+=n.name.text+`:`,t+=uf(n.value)?`"${n.value.text}"`:n.value.getText()+` `;return t}return``}),a=[];for(let e in i){let o=i[e],{importWithoutClause:s,typeOnlyImports:l,regularImports:u}=Mwe(o);s&&a.push(s);for(let e of[u,l]){let i=e===l,{defaultImports:o,namespaceImports:s,namedImports:u}=e;if(!i&&o.length===1&&s.length===1&&u.length===0){let e=o[0];a.push(q5(e,e.importClause.name,s[0].importClause.namedBindings));continue}let d=Ae(s,(e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text));for(let e of d)a.push(q5(e,void 0,e.importClause.namedBindings));let f=Pe(o),p=Pe(u),m=f??p;if(!m)continue;let h,g=[];if(o.length===1)h=o[0].importClause.name;else for(let e of o)g.push(J.createImportSpecifier(!1,J.createIdentifier(`default`),e.importClause.name));g.push(...Lwe(u));let _=J.createNodeArray(Ae(g,n),p?.importClause.namedBindings.elements.hasTrailingComma),v=_.length===0?h?void 0:J.createNamedImports(c):p?J.updateNamedImports(p.importClause.namedBindings,_):J.createNamedImports(_);r&&v&&p?.importClause.namedBindings&&!fx(p.importClause.namedBindings,r)&&UE(v,2),i&&h&&v?(a.push(q5(m,h,void 0)),a.push(q5(p??m,void 0,v))):a.push(q5(m,h,v))}}return a}function Pwe(e,t){if(e.length===0)return e;let{exportWithoutClause:n,namedExports:r,typeOnlyExports:i}=o(e),a=[];n&&a.push(n);for(let e of[r,i]){if(e.length===0)continue;let n=[];n.push(...re(e,e=>e.exportClause&&GA(e.exportClause)?e.exportClause.elements:c));let r=Ae(n,t),i=e[0];a.push(J.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(GA(i.exportClause)?J.updateNamedExports(i.exportClause,r):J.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.attributes))}return a;function o(e){let t,n=[],r=[];for(let i of e)i.exportClause===void 0?t||=i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}}function q5(e,t,n){return J.updateImportDeclaration(e,e.modifiers,J.updateImportClause(e.importClause,e.importClause.phaseModifier,t,n),e.moduleSpecifier,e.attributes)}function J5(e,t,n,r){switch(r?.organizeImportsTypeOrder){case`first`:return Zt(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case`inline`:return n(e.name.text,t.name.text);default:return Zt(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function Y5(e,t,n){let r=e===void 0?void 0:K5(e),i=t===void 0?void 0:K5(t);return Zt(r===void 0,i===void 0)||Zt(tc(r),tc(i))||n(r,i)}function Fwe(e){return e.map(e=>K5(X5(e))||``)}function X5(e){switch(e.kind){case 272:return vt(e.moduleReference,ZA)?.expression;case 273:return e.moduleSpecifier;case 244:return e.declarationList.declarations[0].initializer.arguments[0]}}function Iwe(e,t){let n=tO(t)&&t.text;return gt(n)&&F(e.moduleAugmentations,e=>tO(e)&&e.text===n)}function Lwe(e){return re(e,e=>k(Rwe(e),e=>e.name&&e.propertyName&&Cp(e.name)===Cp(e.propertyName)?J.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))}function Rwe(e){return e.importClause?.namedBindings&&VA(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function zwe(e,t){let n=[];return e.forEach(e=>{n.push(Fwe(e))}),Vwe(n,t)}function Z5(e,t,n){let r=!1,i=e.filter(e=>{let t=vt(e.importClause?.namedBindings,VA)?.elements;return t?.length?(!r&&t.some(e=>e.isTypeOnly)&&t.some(e=>!e.isTypeOnly)&&(r=!0),!0):!1});if(i.length===0)return;let a=i.map(e=>vt(e.importClause?.namedBindings,VA)?.elements).filter(e=>e!==void 0);if(!r||n.length===0){let e=Vwe(a.map(e=>e.map(e=>e.name.text)),t);return{namedImportComparer:e.comparer,typeOrder:n.length===1?n[0]:void 0,isSorted:e.isSorted}}let o={first:1/0,last:1/0,inline:1/0},s={first:t[0],last:t[0],inline:t[0]};for(let e of t){let t={first:0,last:0,inline:0};for(let r of a)for(let i of n)t[i]=(t[i]??0)+Bwe(r,(t,n)=>J5(t,n,e,{organizeImportsTypeOrder:i}));for(let r of n){let n=r;t[n]0&&n++;return n}function Vwe(e,t){let n,r=1/0;for(let i of t){let t=0;for(let n of e){if(n.length<=1)continue;let e=Bwe(n,i);t+=e}tJ5(t,r,n,e)}function qwe(e,t,n){let{comparersToTest:r,typeOrdersToTest:i}=W5(t),a=Z5([e],r,i),o=e7(t,r[0]),s;if(typeof t.organizeImportsIgnoreCase!=`boolean`||!t.organizeImportsTypeOrder){if(a){let{namedImportComparer:e,typeOrder:t,isSorted:n}=a;s=n,o=e7({organizeImportsTypeOrder:t},e)}else if(n){let e=Z5(n.statements.filter(MA),r,i);if(e){let{namedImportComparer:t,typeOrder:n,isSorted:r}=e;s=r,o=e7({organizeImportsTypeOrder:n},t)}}}return{specifierComparer:o,isSorted:s}}function Jwe(e,t,n){let r=We(e,t,wt,(e,t)=>t7(e,t,n));return r<0?~r:r}function Ywe(e,t,n){let r=We(e,t,wt,n);return r<0?~r:r}function t7(e,t,n){return Y5(X5(e),X5(t),n)||Hwe(e,t)}function Xwe(e,t,n,r){let i=Q5(t);return Nwe(e,i,e7({organizeImportsTypeOrder:r?.organizeImportsTypeOrder},i),n)}function Zwe(e,t,n){return Pwe(e,(e,r)=>J5(e,r,Q5(t),{organizeImportsTypeOrder:n?.organizeImportsTypeOrder??`last`}))}function Qwe(e,t,n){return Y5(e,t,Q5(!!n))}var n7={};n(n7,{collectElements:()=>$we});function $we(e,t){let n=[];return eTe(e,t,n),tTe(e,n),n.sort((e,t)=>e.textSpan.start-t.textSpan.start),n}function eTe(e,t,n){let r=40,i=0,a=e.statements,o=a.length;for(;i1&&r.push(i7(a,o,`comment`))}}function iTe(e,t,n,r){nO(e)||r7(e.pos,t,n,r)}function i7(e,t,n){return o7(Sc(e,t),n)}function aTe(e,t){switch(e.kind){case 242:if(ju(e.parent))return oTe(e.parent,e,t);switch(e.parent.kind){case 247:case 250:case 251:case 249:case 246:case 248:case 255:case 300:return u(e.parent);case 259:let n=e.parent;if(n.tryBlock===e)return u(e.parent);if(n.finallyBlock===e){let e=YX(n,98,t);if(e)return u(e)}default:return o7(PZ(e,t),`code`)}case 269:return u(e.parent);case 264:case 232:case 265:case 267:case 270:case 188:case 207:return u(e);case 190:return u(e,!1,!tk(e.parent),23);case 297:case 298:return d(e.statements);case 211:return l(e);case 210:return l(e,23);case 285:return a(e);case 289:return o(e);case 286:case 287:return s(e.attributes);case 229:case 15:return c(e);case 208:return u(e,!1,!bk(e.parent),23);case 220:return i(e);case 214:return r(e);case 218:return f(e);case 276:case 280:case 301:return n(e)}function n(e){if(!e.elements.length)return;let n=YX(e,19,t),r=YX(e,20,t);if(!(!n||!r||bx(n.pos,r.pos,t)))return a7(n,r,e,t,!1,!1)}function r(e){if(!e.arguments.length)return;let n=YX(e,21,t),r=YX(e,22,t);if(!(!n||!r||bx(n.pos,r.pos,t)))return a7(n,r,e,t,!1,!0)}function i(e){if(!(tA(e.body)||kk(e.body)||bx(e.body.getFullStart(),e.body.getEnd(),t)))return o7(Sc(e.body.getFullStart(),e.body.getEnd()),`code`,PZ(e))}function a(e){let n=Sc(e.openingElement.getStart(t),e.closingElement.getEnd()),r=e.openingElement.tagName.getText(t);return o7(n,`code`,n,!1,`<`+r+`>...`)}function o(e){let n=Sc(e.openingFragment.getStart(t),e.closingFragment.getEnd());return o7(n,`code`,n,!1,`<>...`)}function s(e){if(e.properties.length!==0)return i7(e.getStart(t),e.getEnd(),`code`)}function c(e){if(!(e.kind===15&&e.text.length===0))return i7(e.getStart(t),e.getEnd(),`code`)}function l(e,t=19){return u(e,!1,!xk(e.parent)&&!Tk(e.parent),t)}function u(n,r=!1,i=!0,a=19,o=a===19?20:24){let s=YX(e,a,t),c=YX(e,o,t);return s&&c&&a7(s,c,n,t,r,i)}function d(e){return e.length?o7(LZ(e),`code`):void 0}function f(e){if(!bx(e.getStart(),e.getEnd(),t))return o7(Sc(e.getStart(),e.getEnd()),`code`,PZ(e))}}function oTe(e,t,n){let r=sTe(e,t,n),i=YX(t,20,n);return r&&i&&a7(r,i,e,n,e.kind!==220)}function a7(e,t,n,r,i=!1,a=!0){return o7(Sc(a?e.getFullStart():e.getStart(r),t.getEnd()),`code`,PZ(n,r),i)}function o7(e,t,n=e,r=!1,i=`...`){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}function sTe(e,t,n){if(yx(e.parameters,n)){let t=YX(e,21,n);if(t)return t}return YX(t,19,n)}var s7={};n(s7,{getRenameInfo:()=>cTe,nodeIsEligibleForRename:()=>hTe});function cTe(e,t,n,r){let i=$X(eZ(t,n));if(hTe(i)){let n=lTe(i,e.getTypeChecker(),t,e,r);if(n)return n}return l7(G.You_cannot_rename_this_element)}function lTe(e,t,n,r,i){let a=t.getSymbolAtLocation(e);if(!a){if(uf(e)){let r=ZX(e,t);if(r&&(r.flags&128||r.flags&1048576&&v(r.types,e=>!!(e.flags&128))))return c7(e.text,e.text,`string`,``,e,n)}else if(EX(e)){let t=Ep(e);return c7(t,t,`label`,``,e,n)}return}let{declarations:o}=a;if(!o||o.length===0)return;if(o.some(e=>uTe(r,e)))return l7(G.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Y(e)&&e.escapedText===`default`&&a.parent&&a.parent.flags&1536)return;if(uf(e)&&qg(e))return i.allowRenameOfImportPath?pTe(e,n,a):void 0;let s=dTe(n,a,t,i);if(s)return l7(s);let c=v7.getSymbolKind(t,a,e),l=GQ(e)||uv(e)&&e.parent.kind===168?Zv(gv(e)):void 0;return c7(l||t.symbolToString(a),l||t.getFullyQualifiedName(a),c,v7.getSymbolModifiers(t,a),e,n)}function uTe(e,t){let n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&qa(n.fileName,`.d.ts`)}function dTe(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&t.flags&2097152){let e=t.declarations&&y(t.declarations,e=>HA(e));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}let{declarations:i}=t;if(!i)return;let a=fTe(e.path);if(a===void 0)return F(i,e=>O$(e.getSourceFile().path))?G.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let e of i){let t=fTe(e.getSourceFile().path);if(t){let e=Math.min(a.length,t.length);for(let n=0;n<=e;n++)if(Ht(a[n],t[n])!==0)return G.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function fTe(e){let t=ao(e),n=t.lastIndexOf(`node_modules`);if(n!==-1)return t.slice(0,n+2)}function pTe(e,t,n){if(!tc(e.text))return l7(G.You_cannot_rename_a_module_via_a_global_import);let r=n.declarations&&y(n.declarations,vj);if(!r)return;let i=$t(e.text,`/index`)||$t(e.text,`/index.js`)?void 0:tn(uw(r.fileName),`/index`),a=i===void 0?r.fileName:i,o=i===void 0?`module`:`directory`,s=e.text.lastIndexOf(`/`)+1,c=xc(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:a,kind:o,displayName:a,fullDisplayName:e.text,kindModifiers:``,triggerSpan:c}}function c7(e,t,n,r,i,a){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:mTe(i,a)}}function l7(e){return{canRename:!1,localizedErrorMessage:mS(e)}}function mTe(e,t){let n=e.getStart(t),r=e.getWidth(t);return uf(e)&&(n+=1,r-=2),xc(n,r)}function hTe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return MX(e);default:return!1}}var u7={};n(u7,{getArgumentInfoForCompletions:()=>xTe,getSignatureHelpItems:()=>gTe});function gTe(e,t,n,r,i){let a=e.getTypeChecker(),o=iZ(t,n);if(!o)return;let s=!!r&&r.kind===`characterTyped`;if(s&&(lZ(t,n,o)||yZ(t,n)))return;let c=RTe(o,n,t,a,!!r&&r.kind===`invoked`);if(!c)return;i.throwIfCancellationRequested();let l=_Te(c,a,t,o,s);return i.throwIfCancellationRequested(),l?a.runWithCancellationToken(i,e=>l.kind===0?HTe(l.candidates,l.resolvedSignature,c,t,e):UTe(l.symbol,c,t,e)):tg(t)?yTe(c,e,i):void 0}function _Te({invocation:e,argumentCount:t},n,r,i,a){switch(e.kind){case 0:{if(a&&!vTe(i,e.node,r))return;let o=[],s=n.getResolvedSignatureForSignatureHelp(e.node,o,t);return o.length===0?void 0:{kind:0,candidates:o,resolvedSignature:s}}case 1:{let{called:o}=e;if(a&&!bTe(i,r,Y(o)?o.parent:o))return;let s=_Z(o,t,n);if(s.length!==0)return{kind:0,candidates:s,resolvedSignature:Ie(s)};let c=n.getSymbolAtLocation(o);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return H.assertNever(e)}}function vTe(e,t,n){if(!ud(t))return!1;let r=t.getChildren(n);switch(e.kind){case 21:return C(r,e);case 28:{let t=XX(e);return!!t&&C(r,t)}case 30:return bTe(e,n,t.expression);default:return!1}}function yTe(e,t,n){if(e.invocation.kind===2)return;let r=BTe(e.invocation),i=Ck(r)?r.name.text:void 0,a=t.getTypeChecker();return i===void 0?void 0:p(t.getSourceFiles(),t=>p(t.getNamedDeclarations().get(i),r=>{let i=r.symbol&&a.getTypeOfSymbolAtLocation(r.symbol,r),o=i&&i.getCallSignatures();if(o&&o.length)return a.runWithCancellationToken(n,n=>HTe(o,o[0],e,t,n,!0))}))}function bTe(e,t,n){let r=e.getFullStart(),i=e.parent;for(;i;){let e=oZ(r,t,i,!0);if(e)return wx(n,e);i=i.parent}return H.fail(`Could not find preceding token`)}function xTe(e,t,n,r){let i=wTe(e,t,n,r);return!i||i.isTypeParameterList||i.invocation.kind!==0?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function STe(e,t,n,r){let i=CTe(e,n,r);if(!i)return;let{list:a,argumentIndex:o}=i;return{list:a,argumentIndex:o,argumentCount:NTe(r,a),argumentsSpan:ITe(a,n)}}function CTe(e,t,n){if(e.kind===30||e.kind===21)return{list:zTe(e.parent,e,t),argumentIndex:0};{let t=XX(e);return t&&{list:t,argumentIndex:MTe(n,t,e)}}}function wTe(e,t,n,r){let{parent:i}=e;if(ud(i)){let a=i,o=STe(e,t,n,r);if(!o)return;let{list:s,argumentIndex:c,argumentCount:l,argumentsSpan:u}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===s.pos,invocation:{kind:0,node:a},argumentsSpan:u,argumentIndex:c,argumentCount:l}}else if(iO(e)&&Dk(i))return DZ(e,t,n)?f7(i,0,n):void 0;else if(aO(e)&&i.parent.kind===216){let r=i,a=r.parent;return H.assert(r.kind===229),f7(a,DZ(e,t,n)?0:1,n)}else if($k(i)&&Dk(i.parent.parent)){let r=i,a=i.parent.parent;return sO(e)&&!DZ(e,t,n)?void 0:f7(a,FTe(r.parent.templateSpans.indexOf(r),e,t,n),n)}else if(Jd(i)){let e=i.attributes.pos,t=Es(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:xc(e,t-e),argumentIndex:0,argumentCount:1}}else{let t=vZ(e,n);if(t){let{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:Sc(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function TTe(e,t,n,r){return DTe(e,t,n,r)||wTe(e,t,n,r)}function ETe(e){return Rk(e.parent)?ETe(e.parent):e}function d7(e){return Rk(e.left)?d7(e.left)+1:2}function DTe(e,t,n,r){let i=OTe(e);if(i===void 0)return;let a=kTe(i,n,t,r);if(a===void 0)return;let{contextualType:o,argumentIndex:s,argumentCount:c,argumentsSpan:l}=a,u=o.getNonNullableType(),d=u.symbol;if(d===void 0)return;let f=Re(u.getCallSignatures());if(f!==void 0)return{isTypeParameterList:!1,invocation:{kind:2,signature:f,node:e,symbol:ATe(d)},argumentsSpan:l,argumentIndex:s,argumentCount:c}}function OTe(e){switch(e.kind){case 21:case 28:return e;default:return K(e.parent,e=>FO(e)?!0:bk(e)||vk(e)||yk(e)?!1:`quit`)}}function kTe(e,t,n,r){let{parent:i}=e;switch(i.kind){case 218:case 175:case 219:case 220:let a=STe(e,n,t,r);if(!a)return;let{argumentIndex:o,argumentCount:s,argumentsSpan:c}=a,l=BO(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return l&&{contextualType:l,argumentIndex:o,argumentCount:s,argumentsSpan:c};case 227:{let t=ETe(i),n=r.getContextualType(t),a=e.kind===21?0:d7(i)-1,o=d7(t);return n&&{contextualType:n,argumentIndex:a,argumentCount:o,argumentsSpan:PZ(i)}}default:return}}function ATe(e){return e.name===`__type`&&p(e.declarations,e=>XO(e)?vt(e.parent,Md)?.symbol:void 0)||e}function jTe(e,t){let n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){let{elementFlags:e,fixedLength:t}=n.target;if(t===0)return 0;let r=x(e,e=>!(e&1));return r<0?t:r}return 0}function MTe(e,t,n){return PTe(e,t,n)}function NTe(e,t){return PTe(e,t,void 0)}function PTe(e,t,n){let r=t.getChildren(),i=0,a=!1;for(let t of r){if(n&&t===n)return!a&&t.kind===28&&i++,i;if(Hk(t)){i+=jTe(t,e),a=!0;continue}if(t.kind!==28){i++,a=!0;continue}if(a){a=!1;continue}i++}return n?i:r.length&&ze(r).kind===28?i+1:i}function FTe(e,t,n,r){return H.assert(n>=t.getStart(),`Assumed 'position' could not occur before node.`),uu(t)?DZ(t,n,r)?0:e+2:e+1}function f7(e,t,n){let r=iO(e.template)?1:e.template.templateSpans.length+1;return t!==0&&H.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:LTe(e,n),argumentIndex:t,argumentCount:r}}function ITe(e,t){let n=e.getFullStart();return xc(n,Es(t.text,e.getEnd(),!1)-n)}function LTe(e,t){let n=e.template,r=n.getStart(),i=n.getEnd();return n.kind===229&&ze(n.templateSpans).literal.getFullWidth()===0&&(i=Es(t.text,i,!1)),xc(r,i-r)}function RTe(e,t,n,r,i){for(let a=e;!vj(a)&&(i||!tA(a));a=a.parent){H.assert(wx(a.parent,a),`Not a subspan`,()=>`Child: ${H.formatSyntaxKind(a.kind)}, parent: ${H.formatSyntaxKind(a.parent.kind)}`);let e=TTe(a,t,n,r);if(e)return e}}function zTe(e,t,n){let r=e.getChildren(n),i=r.indexOf(t);return H.assert(i>=0&&r.length>i+1),r[i+1]}function BTe(e){return e.kind===0?Lh(e.node):e.called}function VTe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var p7=70246400;function HTe(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:a,argumentIndex:o},s,l,u){let d=VTe(a),f=a.kind===2?a.symbol:l.getSymbolAtLocation(BTe(a))||u&&t.declaration?.symbol,p=f?UQ(l,f,u?s:void 0,void 0):c,m=k(e,e=>KTe(e,p,n,l,d,s)),h=0,g=0;for(let n=0;n1)){let e=0;for(let t of i){if(t.isVariadic||t.parameters.length>=r){h=g+e;break}e++}}g+=i.length}H.assert(h!==-1);let _={items:ie(m,wt),applicableSpan:i,selectedItemIndex:h,argumentIndex:o,argumentCount:r},v=_.items[h];if(v.isVariadic){let e=x(v.parameters,e=>!!e.isRest);-1ZTe(e,n,r,i,o)),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...a,kQ(30)],suffixDisplayParts:[kQ(32)],separatorDisplayParts:GTe,parameters:s,documentation:c,tags:l}}var GTe=[kQ(28),DQ()];function KTe(e,t,n,r,i,a){return k((n?JTe:YTe)(e,r,i,a),({isVariadic:n,parameters:a,prefix:o,suffix:s})=>({isVariadic:n,prefixDisplayParts:[...t,...o],suffixDisplayParts:[...s,...qTe(e,i,r)],separatorDisplayParts:GTe,parameters:a,documentation:e.getDocumentationComment(r),tags:e.getJsDocTags()}))}function qTe(e,t,n){return VQ(r=>{r.writePunctuation(`:`),r.writeSpace(` `);let i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)})}function JTe(e,t,n,r){let i=(e.target||e).typeParameters,a=VU(),o=(i||c).map(e=>ZTe(e,t,n,r,a)),s=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,p7)]:[];return t.getExpandedParameters(e).map(e=>{let i=J.createNodeArray([...s,...k(e,e=>t.symbolToParameterDeclaration(e,n,p7))]),c=VQ(e=>{a.writeList(2576,i,r,e)});return{isVariadic:!1,parameters:o,prefix:[kQ(30)],suffix:[kQ(32),...c]}})}function YTe(e,t,n,r){let i=VU(),a=VQ(a=>{if(e.typeParameters&&e.typeParameters.length){let o=J.createNodeArray(e.typeParameters.map(e=>t.typeParameterToDeclaration(e,n,p7)));i.writeList(53776,o,r,a)}}),o=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?o.length===1?e=>!0:e=>!!(e.length&&vt(e[e.length-1],wf)?.links.checkFlags&32768):e=>!1;return o.map(e=>({isVariadic:s(e),parameters:e.map(e=>XTe(e,t,n,r,i)),prefix:[...a,kQ(21)],suffix:[kQ(22)]}))}function XTe(e,t,n,r,i){let a=VQ(a=>{let o=t.symbolToParameterDeclaration(e,n,p7);i.writeNode(4,o,r,a)}),o=t.isOptionalParameter(e.valueDeclaration),s=wf(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:a,isOptional:o,isRest:s}}function ZTe(e,t,n,r,i){let a=VQ(a=>{let o=t.typeParameterToDeclaration(e,n,p7);i.writeNode(4,o,r,a)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:a,isOptional:!1,isRest:!1}}var m7={};n(m7,{getSmartSelectionRange:()=>QTe});function QTe(e,t){let n={textSpan:Sc(t.getFullStart(),t.getEnd())},r=t;outer:for(;;){let n=tEe(r);if(!n.length)break;for(let o=0;oe)break outer;let u=Be(Bs(t.text,c.end));if(u&&u.kind===2&&a(u.pos,u.end),$Te(t,e,c)){if(Ed(c)&&Nu(r)&&!bx(c.getStart(t),c.getEnd(),t)&&i(c.getStart(t),c.getEnd()),tA(c)||$k(c)||aO(c)||sO(c)||s&&aO(s)||xA(c)&&nA(r)||sM(c)&&xA(r)||bA(c)&&sM(r)&&n.length===1||bj(c)||Fj(c)||Pj(c)){r=c;break}$k(r)&&l&&du(l)&&i(c.getFullStart()-2,l.getStart()+1);let e=sM(c)&&nEe(s)&&rEe(l)&&!bx(s.getStart(),l.getStart(),t),a=e?s.getEnd():c.getStart(),o=e?l.getStart():iEe(t,c);if(tf(c)&&c.jsDoc?.length&&i(Ie(c.jsDoc).getStart(),o),sM(c)){let e=c.getChildren()[0];e&&tf(e)&&e.jsDoc?.length&&e.getStart()!==c.pos&&(a=Math.min(a,Ie(e.jsDoc).getStart()))}i(a,o),(tO(c)||dd(c))&&i(a+1,o-1),r=c;break}if(o===n.length-1)break outer}}return n;function i(t,r){if(t!==r){let i=Sc(t,r);(!n||!gQ(i,n.textSpan)&&_c(i,e))&&(n={textSpan:i,...n&&{parent:n}})}}function a(e,n){i(e,n);let r=e;for(;t.text.charCodeAt(r)===47;)r++;i(r,n)}}function $Te(e,t,n){return H.assert(n.pos<=t),tt===e.readonlyToken||t.kind===148||t===e.questionToken||t.kind===58),({kind:e})=>e===23||e===169||e===24),({kind:e})=>e===59)),r]}if(LO(e)){let t=h7(e.getChildren(),t=>t===e.name||C(e.modifiers,t)),n=t[0]?.kind===321?t[0]:void 0,r=g7(n?t.slice(1):t,({kind:e})=>e===59);return n?[n,_7(r)]:r}if(FO(e)){let t=h7(e.getChildren(),t=>t===e.dotDotDotToken||t===e.name);return g7(h7(t,n=>n===t[0]||n===e.questionToken),({kind:e})=>e===64)}return bk(e)?g7(e.getChildren(),({kind:e})=>e===64):e.getChildren()}function h7(e,t){let n=[],r;for(let i of e)t(i)?(r||=[],r.push(i)):(r&&=(n.push(_7(r)),void 0),n.push(i));return r&&n.push(_7(r)),n}function g7(e,t,n=!0){if(e.length<2)return e;let r=x(e,t);if(r===-1)return e;let i=e.slice(0,r),a=e[r],o=ze(e),s=n&&o.kind===27,c=e.slice(r+1,s?e.length-1:void 0),l=Se([i.length?_7(i):void 0,a,c.length?_7(c):void 0]);return s?l.concat(o):l}function _7(e){return H.assertGreaterThanOrEqual(e.length,1),Jw(qN.createSyntaxList(e),e[0].pos,ze(e).end)}function nEe(e){let t=e&&e.kind;return t===19||t===23||t===21||t===287}function rEe(e){let t=e&&e.kind;return t===20||t===24||t===22||t===288}function iEe(e,t){switch(t.kind){case 342:case 339:case 349:case 347:case 344:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var v7={};n(v7,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>dEe,getSymbolKind:()=>oEe,getSymbolModifiers:()=>lEe});var aEe=70246400;function oEe(e,t,n){let r=sEe(e,t,n);if(r!==``)return r;let i=Px(t);return i&32?xf(t,232)?`local class`:`class`:i&384?`enum`:i&524288?`type`:i&64?`interface`:i&262144?`type parameter`:i&8?`enum member`:i&2097152?`alias`:i&1536?`module`:r}function sEe(e,t,n){let r=e.getRootSymbols(t);if(r.length===1&&Ie(r).flags&8192&&e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length!==0)return`method`;if(e.isUndefinedSymbol(t))return`var`;if(e.isArgumentsSymbol(t))return`local var`;if(n.kind===110&&q(n)||Py(n))return`parameter`;let i=Px(t);return i&3?wQ(t)?`parameter`:t.valueDeclaration&&Im(t.valueDeclaration)?`const`:t.valueDeclaration&&Fm(t.valueDeclaration)?`using`:t.valueDeclaration&&Pm(t.valueDeclaration)?`await using`:d(t.declarations,Rm)?`let`:fEe(t)?`local var`:`var`:i&16?fEe(t)?`local function`:`function`:i&32768?`getter`:i&65536?`setter`:i&8192?`method`:i&16384?`constructor`:i&131072?`index`:i&4?i&33554432&&t.links.checkFlags&6?d(e.getRootSymbols(t),e=>{if(e.getFlags()&98311)return`property`})||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?`method`:`property`):`property`:``}function cEe(e){if(e.declarations&&e.declarations.length){let[t,...n]=e.declarations,r=SZ(t,u(n)&&V$(t)&&F(n,e=>!V$(e))?65536:0);if(r)return r.split(`,`)}return[]}function lEe(e,t){if(!t)return``;let n=new Set(cEe(t));if(t.flags&2097152){let r=e.getAliasedSymbol(t);r!==t&&d(cEe(r),e=>{n.add(e)})}return t.flags&16777216&&n.add(`optional`),n.size>0?$e(n.values()).join(`,`):``}function uEe(e,t,n,r,i,a,o,s,l,u){let f=[],m=[],h=[],g=Px(t),_=o&1?sEe(e,t,i):``,v=!1,b=i.kind===110&&qh(i)||Py(i),x,S,w=!1,T={canIncreaseExpansionDepth:!1,truncated:!1},E=!1;if(i.kind===110&&!b)return{displayParts:[OQ(110)],documentation:[],symbolKind:`primitive type`,tags:void 0};if(_!==``||g&32||g&2097152){if(_===`getter`||_===`setter`){let e=y(t.declarations,e=>e.name===i&&e.kind!==212);if(e)switch(e.kind){case 178:_=`getter`;break;case 179:_=`setter`;break;case 173:_=`accessor`;break;default:H.assertNever(e)}else _=`property`}let n;if(a??=b?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i),i.parent&&i.parent.kind===212){let e=i.parent.name;(e===i||e&&e.getFullWidth()===0)&&(i=i.parent)}let o;if(ud(i)?o=i:(hX(i)||gX(i)||i.parent&&(Jd(i.parent)||Dk(i.parent))&&ju(t.valueDeclaration))&&(o=i.parent),o){n=e.getResolvedSignature(o);let i=o.kind===215||Tk(o)&&o.expression.kind===108,s=i?a.getConstructSignatures():a.getCallSignatures();if(n&&!C(s,n.target)&&!C(s,n)&&(n=s.length?s[0]:void 0),n){switch(i&&g&32?(_=`constructor`,A(a.symbol,_)):g&2097152?(_=`alias`,j(_),f.push(DQ()),i&&(n.flags&4&&(f.push(OQ(128)),f.push(DQ())),f.push(OQ(105)),f.push(DQ())),ae(t)):A(t,_),_){case`JSX attribute`:case`property`:case`var`:case`const`:case`let`:case`parameter`:case`local var`:f.push(kQ(59)),f.push(DQ()),!(Wx(a)&16)&&a.symbol&&(Ee(f,UQ(e,a.symbol,r,void 0,5)),f.push(BQ())),i&&(n.flags&4&&(f.push(OQ(128)),f.push(DQ())),f.push(OQ(105)),f.push(DQ())),M(n,s,262144);break;default:M(n,s)}v=!0,w=s.length>1}}else if(jX(i)&&!(g&98304)||i.kind===137&&i.parent.kind===177){let r=i.parent;if(t.declarations&&y(t.declarations,e=>e===(i.kind===137?r.parent:r))){let i=r.kind===177?a.getNonNullableType().getConstructSignatures():a.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),r.kind===177?(_=`constructor`,A(a.symbol,_)):A(r.kind===180&&!(a.symbol.flags&2048||a.symbol.flags&4096)?a.symbol:t,_),n&&M(n,i),v=!0,w=i.length>1}}}if(g&32&&!v&&!b){ee();let e=xf(t,232);e&&(j(`local class`),f.push(DQ())),ie(t,o)||(e||(f.push(OQ(86)),f.push(DQ())),ae(t),N(t,n))}if(g&64&&o&2&&(k(),ie(t,o)||(f.push(OQ(120)),f.push(DQ()),ae(t),N(t,n))),g&524288&&o&2&&(k(),f.push(OQ(156)),f.push(DQ()),ae(t),N(t,n),f.push(DQ()),f.push(AQ(64)),f.push(DQ()),Ee(f,HQ(e,i.parent&&Xl(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608,l,u,T))),g&384&&(k(),ie(t,o)||(F(t.declarations,e=>EA(e)&&Mm(e))&&(f.push(OQ(87)),f.push(DQ())),f.push(OQ(94)),f.push(DQ()),ae(t,void 0))),g&1536&&!b&&(k(),!ie(t,o))){let e=xf(t,268),n=e&&e.name&&e.name.kind===80;f.push(OQ(n?145:144)),f.push(DQ()),ae(t)}if(g&262144&&o&2)if(k(),f.push(kQ(21)),f.push(PQ(`type parameter`)),f.push(kQ(22)),f.push(DQ()),ae(t),t.parent)te(),ae(t.parent,r),N(t.parent,r);else{let r=xf(t,169);if(r===void 0)return H.fail();let i=r.parent;if(i)if(ju(i)){te();let t=e.getSignatureFromDeclaration(i);i.kind===181?(f.push(OQ(105)),f.push(DQ())):i.kind!==180&&i.name&&ae(i.symbol),Ee(f,WQ(e,t,n,32))}else TA(i)&&(te(),f.push(OQ(156)),f.push(DQ()),ae(i.symbol),N(i.symbol,n))}if(g&8){_=`enum member`,A(t,`enum member`);let n=t.declarations?.[0];if(n?.kind===307){let t=e.getConstantValue(n);t!==void 0&&(f.push(DQ()),f.push(AQ(64)),f.push(DQ()),f.push(EQ(Fp(t),typeof t==`number`?7:8)))}}if(t.flags&2097152){if(k(),!v||m.length===0&&h.length===0){let n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){let i=n.declarations[0],s=el(i);if(s&&!v){let c=Bp(i)&&Qy(i,128),d=t.name!==`default`&&!c,p=uEe(e,n,Yf(i),r,s,a,o,d?t:n,l,u);f.push(...p.displayParts),f.push(BQ()),x=p.documentation,S=p.tags,T&&p.canIncreaseVerbosityLevel&&(T.canIncreaseExpansionDepth=!0)}else x=n.getContextualDocumentationComment(i,e),S=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 271:f.push(OQ(95)),f.push(DQ()),f.push(OQ(145));break;case 278:f.push(OQ(95)),f.push(DQ()),f.push(OQ(t.declarations[0].isExportEquals?64:90));break;case 282:f.push(OQ(95));break;default:f.push(OQ(102))}f.push(DQ()),ae(t),d(t.declarations,t=>{if(t.kind===272){let n=t;if(Xh(n))f.push(DQ()),f.push(AQ(64)),f.push(DQ()),f.push(OQ(149)),f.push(kQ(21)),f.push(EQ(Ep(Zh(n)),8)),f.push(kQ(22));else{let t=e.getSymbolAtLocation(n.moduleReference);t&&(f.push(DQ()),f.push(AQ(64)),f.push(DQ()),ae(t,r))}return!0}})}if(!v)if(_!==``){if(a){if(b?(k(),f.push(OQ(110))):A(t,_),_===`property`||_===`accessor`||_===`getter`||_===`setter`||_===`JSX attribute`||g&3||_===`local var`||_===`index`||_===`using`||_===`await using`||b){if(f.push(kQ(59)),f.push(DQ()),a.symbol&&a.symbol.flags&262144&&_!==`index`?Ee(f,VQ(t=>{let n=e.typeParameterToDeclaration(a,r,aEe,void 0,void 0,l,u,T);O().writeNode(4,n,Yf(Hc(r)),t)},l)):Ee(f,HQ(e,a,r,void 0,l,u,T)),wf(t)&&t.links.target&&wf(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let e=t.links.target.links.tupleLabelDeclaration;H.assertNode(e.name,Y),f.push(DQ()),f.push(kQ(21)),f.push(PQ(Gc(e.name))),f.push(kQ(22))}}else if(g&16||g&8192||g&16384||g&131072||g&98304||_===`method`){let e=a.getNonNullableType().getCallSignatures();e.length&&(M(e[0],e),w=e.length>1)}}}else _=oEe(e,t,i);if(m.length===0&&!w&&(m=t.getContextualDocumentationComment(r,e)),m.length===0&&g&4&&t.parent&&t.declarations&&d(t.parent.declarations,e=>e.kind===308))for(let n of t.declarations){if(!n.parent||n.parent.kind!==227)continue;let t=e.getSymbolAtLocation(n.parent.right);if(t&&(m=t.getDocumentationComment(e),h=t.getJsDocTags(e),m.length>0))break}if(m.length===0&&Y(i)&&t.valueDeclaration&&bk(t.valueDeclaration)){let n=t.valueDeclaration,r=n.parent,i=n.propertyName||n.name;if(Y(i)&&vk(r)){let t=gv(i),n=e.getTypeAtLocation(r);m=p(n.isUnion()?n.types:[n],n=>{let r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0})||c}}h.length===0&&!w&&!ag(i)&&(h=t.getContextualJsDocTags(r,e)),m.length===0&&x&&(m=x),h.length===0&&S&&(h=S);let D=!T.truncated&&T.canIncreaseExpansionDepth;return{displayParts:f,documentation:m,symbolKind:_,tags:h.length===0?void 0:h,canIncreaseVerbosityLevel:u===void 0?void 0:D};function O(){return VU()}function k(){f.length&&f.push(BQ()),ee()}function ee(){s&&(j(`alias`),f.push(DQ()))}function te(){f.push(DQ()),f.push(OQ(103)),f.push(DQ())}function ne(t,n){if(u===void 0)return!1;let r=t.flags&96?e.getDeclaredTypeOfSymbol(t):e.getTypeOfSymbolAtLocation(t,i);return!r||e.isLibType(r)?!1:0{let i=e.getEmitResolver().symbolToDeclarations(t,r,17408,l,u===void 0?void 0:u-1,T),a=O(),o=t.valueDeclaration&&Yf(t.valueDeclaration);i.forEach((e,t)=>{t>0&&n.writeLine(),a.writeNode(4,e,o,n)})},l)),E=!0,!0}return!1}function ae(r,i){let a;s&&r===t&&(r=s),_===`index`&&(a=e.getIndexInfosOfIndexSymbol(r));let o=[];r.flags&131072&&a?(r.parent&&(o=UQ(e,r.parent)),o.push(kQ(23)),a.forEach((t,n)=>{o.push(...HQ(e,t.keyType)),n!==a.length-1&&(o.push(DQ()),o.push(kQ(52)),o.push(DQ()))}),o.push(kQ(24))):o=UQ(e,r,i||n,void 0,7),Ee(f,o),t.flags&16777216&&f.push(kQ(58))}function A(e,t){k(),t&&(j(t),e&&!F(e.declarations,e=>jk(e)||(Ak(e)||Uk(e))&&!e.name)&&(f.push(DQ()),ae(e)))}function j(e){switch(e){case`var`:case`function`:case`let`:case`const`:case`constructor`:case`using`:case`await using`:f.push(NQ(e));return;default:f.push(kQ(21)),f.push(NQ(e)),f.push(kQ(22));return}}function M(t,n,i=0){Ee(f,WQ(e,t,r,i|32,l,u,T)),n.length>1&&(f.push(DQ()),f.push(kQ(21)),f.push(AQ(40)),f.push(EQ((n.length-1).toString(),7)),f.push(DQ()),f.push(PQ(n.length===2?`overload`:`overloads`)),f.push(kQ(22))),m=t.getDocumentationComment(e),h=t.getJsDocTags(),n.length>1&&m.length===0&&h.length===0&&(m=n[0].getDocumentationComment(e),h=n[0].getJsDocTags().filter(e=>e.name!==`deprecated`))}function N(t,n){Ee(f,VQ(r=>{let i=e.symbolToTypeParameterDeclarations(t,n,aEe);O().writeList(53776,i,Yf(Hc(n)),r)}))}}function dEe(e,t,n,r,i,a=pX(i),o,s,c){return uEe(e,t,n,r,i,void 0,a,o,s,c)}function fEe(e){return e.parent?!1:d(e.declarations,e=>{if(e.kind===219)return!0;if(e.kind!==261&&e.kind!==263)return!1;for(let t=e.parent;!ph(t);t=t.parent)if(t.kind===308||t.kind===269)return!1;return!0})}var y7={};n(y7,{ChangeTracker:()=>CEe,LeadingTriviaOption:()=>_Ee,TrailingTriviaOption:()=>vEe,applyChanges:()=>AEe,assignPositionsToNode:()=>E7,createWriter:()=>PEe,deleteNode:()=>D7,getAdjustedEndPosition:()=>C7,isThisTypeAnnotatable:()=>SEe,isValidLocationToAddComment:()=>IEe});function pEe(e){let t=e.__pos;return H.assert(typeof t==`number`),t}function mEe(e,t){H.assert(typeof t==`number`),e.__pos=t}function hEe(e){let t=e.__end;return H.assert(typeof t==`number`),t}function gEe(e,t){H.assert(typeof t==`number`),e.__end=t}var _Ee=(e=>(e[e.Exclude=0]=`Exclude`,e[e.IncludeAll=1]=`IncludeAll`,e[e.JSDoc=2]=`JSDoc`,e[e.StartLine=3]=`StartLine`,e))(_Ee||{}),vEe=(e=>(e[e.Exclude=0]=`Exclude`,e[e.ExcludeWhitespace=1]=`ExcludeWhitespace`,e[e.Include=2]=`Include`,e))(vEe||{});function yEe(e,t){return Es(e,t,!1,!0)}function bEe(e,t){let n=t;for(;n0?1:0,l=$f(Ty(e,s)+c,e);return l=yEe(e.text,l),$f(Ty(e,l),e)}function xEe(e,t,n){let{end:r}=t,{trailingTriviaOption:i}=n;if(i===2){let n=Bs(e.text,r);if(n){let r=Ty(e,t.end);for(let t of n){if(t.kind===2||Ty(e,t.pos)>r)break;if(Ty(e,t.end)>r)return Es(e.text,t.end,!0,!0)}}}}function C7(e,t,n){let{end:r}=t,{trailingTriviaOption:i}=n;if(i===0)return r;if(i===1){let t=de(Bs(e.text,r),zs(e.text,r));return t?.[t.length-1]?.end||r}let a=xEe(e,t,n);if(a)return a;let o=Es(e.text,r,!0);return o!==r&&(i===2||ys(e.text.charCodeAt(o-1)))?o:r}function w7(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===211)}function SEe(e){return Ak(e)||SA(e)}var CEe=class e{constructor(e,t){this.newLineCharacter=e,this.formatContext=t,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new e(zQ(t.host,t.formatContext.options),t.formatContext)}static with(t,n){let r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){H.assertEqual(e.fileName,t.fileName);for(let n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:RZ(n.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,n={leadingTriviaOption:1}){this.deleteRange(e,x7(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(let i of t){let t=S7(e,i,n,r),a=C7(e,i,n);this.deleteRange(e,{pos:t,end:a}),r=!!xEe(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Es(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){let i=S7(e,t,r),a=C7(e,n,r);this.deleteRange(e,{pos:i,end:a})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){let i=S7(e,t,r),a=n===void 0?e.text.length:S7(e,n,r);this.deleteRange(e,{pos:i,end:a})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=b7){this.replaceRange(e,x7(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=b7){this.replaceRange(e,x7(e,t,n,i),r,i)}replaceRangeWithNodes(e,t,n,r={}){this.changes.push({kind:2,sourceFile:e,range:t,options:r,nodes:n})}replaceNodeWithNodes(e,t,n,r=b7){this.replaceRangeWithNodes(e,x7(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,x7(e,t,t,b7),n)}replaceNodeRangeWithNodes(e,t,n,r,i=b7){this.replaceRangeWithNodes(e,x7(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=b7){return!!xEe(e,t,n)}nextCommaToken(e,t){let n=aZ(t,t.parent,e);return n&&n.kind===28?n:void 0}replacePropertyAssignment(e,t,n){let r=this.nextCommaToken(e,t)?``:`,`+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,ox(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,ox(t),n,r)}insertNodeAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertNodesAtTopOfFile(e,t,n){this.insertAtTopOfFile(e,t,n)}insertAtTopOfFile(e,t,n){let r=FEe(e),i={prefix:r===0?void 0:this.newLineCharacter,suffix:(ys(e.text.charCodeAt(r))?``:this.newLineCharacter)+(n?this.newLineCharacter:``)};mt(t)?this.insertNodesAt(e,r,t,i):this.insertNodeAt(e,r,t,i)}insertNodesAtEndOfFile(e,t,n){this.insertAtEndOfFile(e,t,n)}insertAtEndOfFile(e,t,n){let r=e.end+1,i={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(n?this.newLineCharacter:``)};this.insertNodesAt(e,r,t,i)}insertStatementsInNewFile(e,t,n){this.newFileChanges||=R(),this.newFileChanges.add(e,{oldFile:n,statements:t})}insertFirstParameter(e,t,n){let r=Pe(t);r?this.insertNodeBefore(e,r,n):this.insertNodeAt(e,t.pos,n)}insertNodeBefore(e,t,n,r=!1,i={}){this.insertNodeAt(e,S7(e,t,i),n,this.getOptionsForInsertNodeBefore(t,n,r))}insertNodesBefore(e,t,n,r=!1,i={}){this.insertNodesAt(e,S7(e,t,i),n,this.getOptionsForInsertNodeBefore(t,Ie(n),r))}insertModifierAt(e,t,n,r={}){this.insertNodeAt(e,t,J.createToken(n),r)}insertModifierBefore(e,t,n){return this.insertModifierAt(e,n.getStart(e),t,{suffix:` `})}insertCommentBeforeLine(e,t,n,r){let i=$f(t,e),a=YQ(e.text,i),o=IEe(e,a),s=tZ(e,o?a:n),c=e.text.slice(i,a),l=`${o?``:this.newLineCharacter}//${r}${this.newLineCharacter}${c}`;this.insertText(e,s.getStart(e),l)}insertJsdocCommentBefore(e,t,n){let r=t.getStart(e);if(t.jsDoc)for(let n of t.jsDoc)this.deleteRange(e,{pos:IX(n.getStart(e),e),end:C7(e,n,{})});let i=XQ(e.text,r-1),a=e.text.slice(i,r);this.insertNodeAt(e,r,n,{suffix:this.newLineCharacter+a})}createJSDocText(e,t){let n=re(t.jsDoc,e=>gt(e.comment)?J.createJSDocText(e.comment):e.comment),r=Be(t.jsDoc);return r&&bx(r.pos,r.end,e)&&u(n)===0?void 0:J.createNodeArray(_(n,J.createJSDocText(` `)))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,wEe(t),J.createJSDocComment(this.createJSDocText(e,t),J.createNodeArray(n)))}addJSDocTags(e,t,n){let r=ie(t.jsDoc,e=>e.tags),i=n.filter(e=>!r.some((t,n)=>{let i=TEe(t,e);return i&&(r[n]=i),!!i}));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,E(ie(t.jsDoc,e=>e.tags),n))}replaceRangeWithText(e,t,n){this.changes.push({kind:3,sourceFile:e,range:t,text:n})}insertText(e,t,n){this.replaceRangeWithText(e,ox(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(ju(t)){if(r=YX(t,22,e),!r){if(!jk(t))return!1;r=Ie(t.parameters)}}else r=(t.kind===261?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:`: `}),!0}tryInsertThisTypeAnnotation(e,t,n){let r=YX(t,21,e).getStart(e)+1,i=t.parameters.length?`, `:``;this.insertNodeAt(e,r,n,{prefix:`this: `,suffix:i})}insertTypeParameters(e,t,n){let r=(YX(t,21,e)||Ie(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:`<`,suffix:`>`,joiner:`, `})}getOptionsForInsertNodeBefore(e,t,n){return Bd(e)||Ru(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:bA(e)?{suffix:`, `}:FO(e)?FO(t)?{suffix:`, `}:{}:tO(e)&&MA(e.parent)||VA(e)?{suffix:`, `}:HA(e)?{suffix:`,`+(n?this.newLineCharacter:` `)}:H.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){let r=Pe(t.body.statements);!r||!t.body.multiLine?this.replaceConstructorBody(e,t,[n,...t.body.statements]):this.insertNodeBefore(e,r,n)}insertNodeAtConstructorStartAfterSuperCall(e,t,n){let r=y(t.body.statements,e=>iA(e)&&zm(e.expression));!r||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,n]):this.insertNodeAfter(e,r,n)}insertNodeAtConstructorEnd(e,t,n){let r=Re(t.body.statements);!r||!t.body.multiLine?this.replaceConstructorBody(e,t,[...t.body.statements,n]):this.insertNodeAfter(e,r,n)}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,J.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){let r=S7(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:ys(e.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtObjectStart(e,t,n){this.insertNodeAtStartWorker(e,t,n)}insertNodeAtStartWorker(e,t,n){let r=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,T7(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(let i of T7(t)){if(px(r,i,e))return;let t=i.getStart(e),a=k7.SmartIndenter.findFirstNonWhitespaceColumn(IX(t,e),t,e,this.formatContext.options);if(n===void 0)n=a;else if(a!==n)return;r=i}return n}computeIndentationForNewMember(e,t){let n=t.getStart(e);return k7.SmartIndenter.findFirstNonWhitespaceColumn(IX(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){let r=T7(t).length===0,i=!this.classesWithNodesInsertedAtStart.has(mB(t));i&&this.classesWithNodesInsertedAtStart.set(mB(t),{node:t,sourceFile:e});let a=Sk(t)&&(!jm(e)||!r);return{indentation:n,prefix:(Sk(t)&&jm(e)&&r&&!i?`,`:``)+this.newLineCharacter,suffix:a?`,`:wA(t)&&r?`;`:``}}insertNodeAfterComma(e,t,n){let r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){let r=this.insertNodeAfterWorker(e,t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAtEndOfList(e,t,n){this.insertNodeAt(e,t.end,n,{prefix:`, `})}insertNodesAfter(e,t,n){let r=this.insertNodeAfterWorker(e,t,Ie(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){return LEe(t,n)&&e.text.charCodeAt(t.end-1)!==59&&this.replaceRange(e,ox(t.end),J.createToken(27)),C7(e,t,{})}getInsertNodeAfterOptions(e,t){let n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&Bd(t)?n.prefix?` ${n.prefix}`:` `:n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 264:case 268:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 261:case 11:case 80:return{prefix:`, `};case 304:return{suffix:`,`+this.newLineCharacter};case 95:return{prefix:` `};case 170:return{};default:return H.assert(Bd(e)||Ku(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(H.assert(!t.name),t.kind===220){let r=YX(t,39,e),i=YX(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[J.createToken(100),J.createIdentifier(n)],{joiner:` `}),D7(this,e,r)):(this.insertText(e,Ie(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,J.createToken(22))),t.body.kind!==242&&(this.insertNodesAt(e,t.body.getStart(e),[J.createToken(19),J.createToken(107)],{joiner:` `,suffix:` `}),this.insertNodesAt(e,t.body.end,[J.createToken(27),J.createToken(20)],{joiner:` `}))}else{let r=YX(t,t.kind===219?100:86,e).end;this.insertNodeAt(e,r,J.createIdentifier(n),{prefix:` `})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),`export `)}insertImportSpecifierAtIndex(e,t,n,r){let i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!bx(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=k7.SmartIndenter.getContainingList(t,e)){if(!r){H.fail(`node is not a list element`);return}let i=Op(r,t);if(i<0)return;let a=t.getEnd();if(i!==r.length-1){let a=nZ(e,t.end);if(a&&w7(t,a)){let t=r[i+1],o=yEe(e.text,t.getFullStart()),s=`${is(a.kind)}${e.text.substring(a.end,o)}`;this.insertNodesAt(e,o,[n],{suffix:s})}}else{let o=t.getStart(e),s=IX(o,e),c,l=!1;if(r.length===1)c=28;else{let n=oZ(t.pos,e);c=w7(t,n)?n.kind:28,l=IX(r[i-1].getStart(e),e)!==s}if((bEe(e.text,t.end)||!bx(r.pos,r.end,e))&&(l=!0),l){this.replaceRange(e,ox(a),J.createToken(c));let t=k7.SmartIndenter.findFirstNonWhitespaceColumn(s,o,e,this.formatContext.options),r=Es(e.text,a,!0,!1);for(;r!==a&&ys(e.text.charCodeAt(r-1));)r--;this.replaceRange(e,ox(r),n,{indentation:t,prefix:this.newLineCharacter})}else this.replaceRange(e,ox(a),n,{prefix:`${is(c)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,Ow(t),J.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:e,sourceFile:t})=>{let[n,r]=OEe(e,t);if(n!==void 0&&r!==void 0){let i=T7(e).length===0,a=bx(n,r,t);i&&a&&n!==r-1&&this.deleteRange(t,ox(n,r-1)),a&&this.insertText(t,r-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let e=new Set;for(let{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some(e=>e.sourceFile===t&&LX(e.node,n))||(mt(n)?this.deleteRange(t,kw(t,n)):REe.deleteDeclaration(this,e,t,n));e.forEach(t=>{let n=t.getSourceFile(),r=k7.SmartIndenter.getContainingList(t,n);if(t!==ze(r))return;let i=S(r,t=>!e.has(t),r.length-2);i!==-1&&this.deleteRange(n,{pos:r[i].end,end:EEe(n,r[i+1])})})}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let t=kEe.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach((e,n)=>{t.push(kEe.newFileChanges(n,e,this.newLineCharacter,this.formatContext))}),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}};function wEe(e){if(e.kind!==220)return e;let t=e.parent.kind===173?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function TEe(e,t){if(e.kind===t.kind)switch(e.kind){case 342:{let n=e,r=t;return Y(n.name)&&Y(r.name)&&n.name.escapedText===r.name.escapedText?J.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 343:return J.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 345:return J.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function EEe(e,t){return Es(e.text,S7(e,t,{leadingTriviaOption:1}),!1,!0)}function DEe(e,t,n,r){let i=EEe(e,r);if(n===void 0||bx(C7(e,t,{}),i,e))return i;let a=oZ(r.getStart(e),e);if(w7(t,a)){let r=oZ(t.getStart(e),e);if(w7(n,r)){let t=Es(e.text,a.getEnd(),!0,!0);if(bx(r.getStart(e),a.getStart(e),e))return ys(e.text.charCodeAt(t-1))?t-1:t;if(ys(e.text.charCodeAt(t)))return t}}return i}function OEe(e,t){let n=YX(e,19,t),r=YX(e,20,t);return[n?.end,r?.end]}function T7(e){return Sk(e)?e.properties:e.members}var kEe;(e=>{function t(e,t,n,r){return M(at(e,e=>e.sourceFile.path),e=>{let a=e[0].sourceFile,o=Ae(e,(e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end);for(let e=0;e`${JSON.stringify(o[e].range)} and ${JSON.stringify(o[e+1].range)}`);let s=M(o,e=>{let o=LZ(e.range),s=e.kind===1?Yf(Bc(e.node))??e.sourceFile:e.kind===2?Yf(Bc(e.nodes[0]))??e.sourceFile:e.sourceFile,c=i(e,s,a,t,n,r);if(!(o.length===c.length&&z$(s.text,c,o.start)))return BZ(o,c)});return s.length>0?{fileName:a.fileName,textChanges:s}:void 0})}e.getTextChangesFromChanges=t;function n(e,t,n,i){let a=r(BC(e),t,n,i);return{fileName:e,textChanges:[BZ(xc(0,0),a)],isNewFile:!0}}e.newFileChanges=n;function r(e,t,n,r){let i=re(t,e=>e.statements.map(t=>t===4?``:o(t,e.oldFile,n).text)).join(n),a=gP(`any file name`,i,{languageVersion:99,jsDocParsingMode:1},!0,e);return AEe(i,k7.formatDocument(a,r))+n}e.newFileChangesWorker=r;function i(e,t,n,r,i,o){if(e.kind===0)return``;if(e.kind===3)return e.text;let{options:s={},range:{pos:c}}=e,l=e=>a(e,t,n,c,s,r,i,o),u=e.kind===2?e.nodes.map(e=>en(l(e),r)).join(e.options?.joiner||r):l(e.node),d=s.indentation!==void 0||IX(c,t)===c?u:u.replace(/^\s+/,``);return(s.prefix||``)+d+(!s.suffix||$t(d,s.suffix)?``:s.suffix)}function a(e,t,n,r,{indentation:i,prefix:a,delta:s},c,l,u){let{node:d,text:f}=o(e,t,c);u&&u(d,f);let p=G$(l,t),m=i===void 0?k7.SmartIndenter.getIndentation(r,n,p,a===c||IX(r,t)===r):i;s===void 0&&(s=k7.SmartIndenter.shouldIndentChildNode(p,e)&&p.indentSize||0);let h={text:f,getLineAndCharacterOfPosition(e){return gs(this,e)}};return AEe(f,k7.formatNodeGivenIndentation(d,h,t.languageVariant,m,s,{...l,options:p}))}function o(e,t,n){let r=PEe(n);return WU({newLine:U$(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:E7(e)}}e.getNonformattedText=o})(kEe||={});function AEe(e,t){for(let n=t.length-1;n>=0;n--){let{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring(ac(r))}`}return e}function jEe(e){return Es(e,0)===e.length}var MEe={...hU,factory:TE(hU.factory.flags|1,hU.factory.baseFactory)};function E7(e){let t=PB(e,E7,MEe,NEe,E7),n=kv(t)?t:Object.create(t);return Jw(n,pEe(e),hEe(e)),n}function NEe(e,t,n,r,i){let a=CB(e,t,n,r,i);if(!a)return a;H.assert(e);let o=a===e?J.createNodeArray(a.slice(0)):a;return Jw(o,pEe(e),hEe(e)),o}function PEe(e){let t=0,n=ry(e),r=e=>{e&&mEe(e,t)},i=e=>{e&&gEe(e,t)},a=e=>{e&&mEe(e,t)},o=e=>{e&&gEe(e,t)},s=e=>{e&&mEe(e,t)},c=e=>{e&&gEe(e,t)};function l(e,r){if(r||!jEe(e)){t=n.getTextPos();let r=0;for(;_s(e.charCodeAt(e.length-r-1));)r++;t-=r}}function u(e){n.write(e),l(e,!1)}function d(e){n.writeComment(e)}function f(e){n.writeKeyword(e),l(e,!1)}function p(e){n.writeOperator(e),l(e,!1)}function m(e){n.writePunctuation(e),l(e,!1)}function h(e){n.writeTrailingSemicolon(e),l(e,!1)}function g(e){n.writeParameter(e),l(e,!1)}function _(e){n.writeProperty(e),l(e,!1)}function v(e){n.writeSpace(e),l(e,!1)}function y(e){n.writeStringLiteral(e),l(e,!1)}function b(e,t){n.writeSymbol(e,t),l(e,!1)}function x(e){n.writeLine(e)}function S(){n.increaseIndent()}function C(){n.decreaseIndent()}function w(){return n.getText()}function T(e){n.rawWrite(e),l(e,!1)}function E(e){n.writeLiteral(e),l(e,!0)}function D(){return n.getTextPos()}function O(){return n.getLine()}function k(){return n.getColumn()}function ee(){return n.getIndent()}function te(){return n.isAtStartOfLine()}function ne(){n.clear(),t=0}return{onBeforeEmitNode:r,onAfterEmitNode:i,onBeforeEmitNodeArray:a,onAfterEmitNodeArray:o,onBeforeEmitToken:s,onAfterEmitToken:c,write:u,writeComment:d,writeKeyword:f,writeOperator:p,writePunctuation:m,writeTrailingSemicolon:h,writeParameter:g,writeProperty:_,writeSpace:v,writeStringLiteral:y,writeSymbol:b,writeLine:x,increaseIndent:S,decreaseIndent:C,getText:w,rawWrite:T,writeLiteral:E,getTextPos:D,getLine:O,getColumn:k,getIndent:ee,isAtStartOfLine:te,hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:ne}}function FEe(e){let t;for(let n of e.statements)if(Um(n))t=n;else break;let n=0,r=e.text;if(t)return n=t.end,c(),n;let i=Vs(r);i!==void 0&&(n=i.length,c());let a=zs(r,n);if(!a)return n;let o,s;for(let t of a){if(t.kind===3){if(hp(r,t.pos)){o={range:t,pinnedOrTripleSlash:!0};continue}}else if(mp(r,t.pos,t.end)){o={range:t,pinnedOrTripleSlash:!0};continue}if(o&&(o.pinnedOrTripleSlash||e.getLineAndCharacterOfPosition(t.pos).line>=e.getLineAndCharacterOfPosition(o.range.end).line+2))break;if(e.statements.length){s===void 0&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let n=e.getLineAndCharacterOfPosition(t.end).line;if(s{function t(e,t,a,o){switch(o.kind){case 170:{let n=o.parent;jk(n)&&n.parameters.length===1&&!YX(n,21,a)?e.replaceNodeWithText(a,o,`()`):O7(e,t,a,o);break}case 273:case 272:D7(e,a,o,{leadingTriviaOption:a.imports.length&&o===Ie(a.imports).parent||o===y(a.statements,tm)?0:tf(o)?2:3});break;case 209:let s=o.parent;s.kind===208&&o!==ze(s.elements)?D7(e,a,o):O7(e,t,a,o);break;case 261:i(e,t,a,o);break;case 169:O7(e,t,a,o);break;case 277:let c=o.parent;c.elements.length===1?r(e,a,c):O7(e,t,a,o);break;case 275:r(e,a,o);break;case 27:D7(e,a,o,{trailingTriviaOption:0});break;case 100:D7(e,a,o,{leadingTriviaOption:0});break;case 264:case 263:D7(e,a,o,{leadingTriviaOption:tf(o)?2:3});break;default:o.parent?NA(o.parent)&&o.parent.name===o?n(e,a,o.parent):Tk(o.parent)&&C(o.parent.arguments,o)?O7(e,t,a,o):D7(e,a,o):D7(e,a,o)}}e.deleteDeclaration=t;function n(e,t,n){if(!n.namedBindings)D7(e,t,n.parent);else{let r=n.name.getStart(t),i=nZ(t,n.name.end);if(i&&i.kind===28){let n=Es(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else D7(e,t,n.name)}}function r(e,t,n){if(n.parent.name){let r=H.checkDefined(nZ(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else D7(e,t,Q_(n,273))}function i(e,t,n,r){let{parent:i}=r;if(i.kind===300){e.deleteNodeRange(n,YX(i,21,n),YX(i,22,n));return}if(i.declarations.length!==1){O7(e,t,n,r);return}let a=i.parent;switch(a.kind){case 251:case 250:e.replaceNode(n,r,J.createObjectLiteralExpression());break;case 249:D7(e,n,i);break;case 244:D7(e,n,a,{leadingTriviaOption:tf(a)?2:3});break;default:H.assertNever(a)}}})(REe||={});function D7(e,t,n,r={leadingTriviaOption:1}){let i=S7(t,n,r),a=C7(t,n,r);e.deleteRange(t,{pos:i,end:a})}function O7(e,t,n,r){let i=H.checkDefined(k7.SmartIndenter.getContainingList(r,n)),a=Op(i,r);if(H.assert(a!==-1),i.length===1){D7(e,n,r);return}H.assert(!t.has(r),`Deleting a node twice`),t.add(r),e.deleteRange(n,{pos:EEe(n,r),end:a===i.length-1?C7(n,r,{}):DEe(n,r,i[a-1],i[a+1])})}var k7={};n(k7,{FormattingContext:()=>BEe,FormattingRequestKind:()=>zEe,RuleAction:()=>WEe,RuleFlags:()=>GEe,SmartIndenter:()=>Z7,anyContext:()=>A7,createTextRangeWithKind:()=>K7,formatDocument:()=>mOe,formatNodeGivenIndentation:()=>COe,formatOnClosingCurly:()=>pOe,formatOnEnter:()=>uOe,formatOnOpeningCurly:()=>fOe,formatOnSemicolon:()=>dOe,formatSelection:()=>hOe,getAllRules:()=>KEe,getFormatContext:()=>$De,getFormattingScanner:()=>UEe,getIndentationString:()=>kOe,getRangeOfEnclosingComment:()=>EOe});var zEe=(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))(zEe||{}),BEe=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=H.checkDefined(e),this.currentTokenParent=H.checkDefined(t),this.nextTokenSpan=H.checkDefined(n),this.nextTokenParent=H.checkDefined(r),this.contextNode=H.checkDefined(i),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(){return this.tokensAreOnSameLine===void 0&&(this.tokensAreOnSameLine=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line===this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line),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){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line}BlockIsOnOneLine(e){let t=YX(e,19,this.sourceFile),n=YX(e,20,this.sourceFile);return t&&n?this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line:!1}},VEe=Gs(99,!1,0),HEe=Gs(99,!1,1);function UEe(e,t,n,r,i){let a=t===1?HEe:VEe;a.setText(e),a.resetTokenState(n);let o=!0,s,c,l,u,d,f=i({advance:p,readTokenInfo:x,readEOFTokenRange:C,isOnToken:w,isOnEOF:T,getCurrentLeadingTrivia:()=>s,lastTrailingTriviaWasNewLine:()=>o,skipToEndOf:D,skipToStartOf:O,getTokenFullStart:()=>d?.token.pos??a.getTokenStart(),getStartPos:()=>d?.token.pos??a.getTokenStart()});return d=void 0,a.setText(void 0),f;function p(){d=void 0,a.getTokenFullStart()===n?a.scan():o=!!c&&ze(c).kind===4,s=void 0,c=void 0;let e=a.getTokenFullStart();for(;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))(WEe||{}),GEe=(e=>(e[e.None=0]=`None`,e[e.CanDeleteNewLines=1]=`CanDeleteNewLines`,e))(GEe||{});function KEe(){let e=[];for(let t=0;t<=166;t++)t!==1&&e.push(t);function t(...t){return{tokens:e.filter(e=>!t.some(t=>t===e)),isSpecific:!1}}let n={tokens:e,isSpecific:!1},r=M7([...e,3]),i=M7([...e,1]),a=JEe(83,166),o=JEe(30,79),s=[103,104,165,130,142,152],c=[46,47,55,54],l=[9,10,80,21,23,19,110,105],u=[80,21,110,105],d=[80,22,24,105],f=[80,21,110,105],p=[80,22,24,105],m=[2,3],h=[80,...VZ],g=r,_=M7([80,32,3,86,95,102]),v=M7([22,3,92,113,98,93,85]),y=[j7(`IgnoreBeforeComment`,n,m,A7,1),j7(`IgnoreAfterLineComment`,2,n,A7,1),j7(`NotSpaceBeforeColon`,n,59,[B7,I7,tDe],16),j7(`SpaceAfterColon`,59,n,[B7,I7,jDe],4),j7(`NoSpaceBeforeQuestionMark`,n,58,[B7,I7,tDe],16),j7(`SpaceAfterQuestionMarkInConditionalOperator`,58,n,[B7,aDe],4),j7(`NoSpaceAfterQuestionMark`,58,n,[B7,iDe],16),j7(`NoSpaceBeforeDot`,n,[25,29],[B7,QDe],16),j7(`NoSpaceAfterDot`,[25,29],n,[B7],16),j7(`NoSpaceBetweenImportParenInImportType`,102,21,[B7,EDe],16),j7(`NoSpaceAfterUnaryPrefixOperator`,c,l,[B7,I7],16),j7(`NoSpaceAfterUnaryPreincrementOperator`,46,u,[B7],16),j7(`NoSpaceAfterUnaryPredecrementOperator`,47,f,[B7],16),j7(`NoSpaceBeforeUnaryPostincrementOperator`,d,46,[B7,JDe],16),j7(`NoSpaceBeforeUnaryPostdecrementOperator`,p,47,[B7,JDe],16),j7(`SpaceAfterPostincrementWhenFollowedByAdd`,46,40,[B7,F7],4),j7(`SpaceAfterAddWhenFollowedByUnaryPlus`,40,40,[B7,F7],4),j7(`SpaceAfterAddWhenFollowedByPreincrement`,40,46,[B7,F7],4),j7(`SpaceAfterPostdecrementWhenFollowedBySubtract`,47,41,[B7,F7],4),j7(`SpaceAfterSubtractWhenFollowedByUnaryMinus`,41,41,[B7,F7],4),j7(`SpaceAfterSubtractWhenFollowedByPredecrement`,41,47,[B7,F7],4),j7(`NoSpaceAfterCloseBrace`,20,[28,27],[B7],16),j7(`NewLineBeforeCloseBraceInBlockContext`,r,20,[lDe],8),j7(`SpaceAfterCloseBrace`,20,t(22),[B7,_De],4),j7(`SpaceBetweenCloseBraceAndElse`,20,93,[B7],4),j7(`SpaceBetweenCloseBraceAndWhile`,20,117,[B7],4),j7(`NoSpaceBetweenEmptyBraceBrackets`,19,20,[B7,vDe],16),j7(`SpaceAfterConditionalClosingParen`,22,23,[z7],4),j7(`NoSpaceBetweenFunctionKeywordAndStar`,100,42,[mDe],16),j7(`SpaceAfterStarInGeneratorDeclaration`,42,80,[mDe],4),j7(`SpaceAfterFunctionInFuncDecl`,100,n,[R7],4),j7(`NewLineAfterOpenBraceInBlockContext`,19,n,[lDe],8),j7(`SpaceAfterGetSetInMember`,[139,153],80,[R7],4),j7(`NoSpaceBetweenYieldKeywordAndStar`,127,42,[B7,KDe],16),j7(`SpaceBetweenYieldOrYieldStarAndOperand`,[127,42],n,[B7,KDe],4),j7(`NoSpaceBetweenReturnAndSemicolon`,107,27,[B7],16),j7(`SpaceAfterCertainKeywords`,[115,111,105,91,107,114,135],n,[B7],4),j7(`SpaceAfterLetConstInVariableDeclaration`,[121,87],n,[B7,LDe],4),j7(`NoSpaceBeforeOpenParenInFuncCall`,n,21,[B7,xDe,SDe],16),j7(`SpaceBeforeBinaryKeywordOperator`,n,s,[B7,F7],4),j7(`SpaceAfterBinaryKeywordOperator`,s,n,[B7,F7],4),j7(`SpaceAfterVoidOperator`,116,n,[B7,GDe],4),j7(`SpaceBetweenAsyncAndOpenParen`,134,21,[TDe,B7],4),j7(`SpaceBetweenAsyncAndFunctionKeyword`,134,[100,80],[B7],4),j7(`NoSpaceBetweenTagAndTemplateString`,[80,22],[15,16],[B7],16),j7(`SpaceBeforeJsxAttribute`,n,80,[kDe,B7],4),j7(`SpaceBeforeSlashInJsxOpeningElement`,n,44,[NDe,B7],4),j7(`NoSpaceBeforeGreaterThanTokenInJsxOpeningElement`,44,32,[NDe,B7],16),j7(`NoSpaceBeforeEqualInJsxAttribute`,n,64,[ADe,B7],16),j7(`NoSpaceAfterEqualInJsxAttribute`,64,n,[ADe,B7],16),j7(`NoSpaceBeforeJsxNamespaceColon`,80,59,[MDe],16),j7(`NoSpaceAfterJsxNamespaceColon`,59,80,[MDe],16),j7(`NoSpaceAfterModuleImport`,[144,149],21,[B7],16),j7(`SpaceAfterCertainTypeScriptKeywords`,[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[B7],4),j7(`SpaceBeforeCertainTypeScriptKeywords`,n,[96,119,161],[B7],4),j7(`SpaceAfterModuleName`,11,19,[zDe],4),j7(`SpaceBeforeArrow`,n,39,[B7],4),j7(`SpaceAfterArrow`,39,n,[B7],4),j7(`NoSpaceAfterEllipsis`,26,80,[B7],16),j7(`NoSpaceAfterOptionalParameters`,58,[22,28],[B7,I7],16),j7(`NoSpaceBetweenEmptyInterfaceBraceBrackets`,19,20,[B7,BDe],16),j7(`NoSpaceBeforeOpenAngularBracket`,h,30,[B7,H7],16),j7(`NoSpaceBetweenCloseParenAndAngularBracket`,22,30,[B7,H7],16),j7(`NoSpaceAfterOpenAngularBracket`,30,n,[B7,H7],16),j7(`NoSpaceBeforeCloseAngularBracket`,n,32,[B7,H7],16),j7(`NoSpaceAfterCloseAngularBracket`,32,[21,23,32,28],[B7,H7,pDe,WDe],16),j7(`SpaceBeforeAt`,[22,80],60,[B7],4),j7(`NoSpaceAfterAt`,60,n,[B7],16),j7(`SpaceAfterDecorator`,n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[FDe],4),j7(`NoSpaceBeforeNonNullAssertionOperator`,n,54,[B7,qDe],16),j7(`NoSpaceAfterNewKeywordOnConstructorSignature`,105,21,[B7,VDe],16),j7(`SpaceLessThanAndNonJSXTypeAnnotation`,30,30,[B7],4)],b=[j7(`SpaceAfterConstructor`,137,21,[N7(`insertSpaceAfterConstructor`),B7],4),j7(`NoSpaceAfterConstructor`,137,21,[P7(`insertSpaceAfterConstructor`),B7],16),j7(`SpaceAfterComma`,28,n,[N7(`insertSpaceAfterCommaDelimiter`),B7,ODe,CDe,wDe],4),j7(`NoSpaceAfterComma`,28,n,[P7(`insertSpaceAfterCommaDelimiter`),B7,ODe],16),j7(`SpaceAfterAnonymousFunctionKeyword`,[100,42],21,[N7(`insertSpaceAfterFunctionKeywordForAnonymousFunctions`),R7],4),j7(`NoSpaceAfterAnonymousFunctionKeyword`,[100,42],21,[P7(`insertSpaceAfterFunctionKeywordForAnonymousFunctions`),R7],16),j7(`SpaceAfterKeywordInControl`,a,21,[N7(`insertSpaceAfterKeywordsInControlFlowStatements`),z7],4),j7(`NoSpaceAfterKeywordInControl`,a,21,[P7(`insertSpaceAfterKeywordsInControlFlowStatements`),z7],16),j7(`SpaceAfterOpenParen`,21,n,[N7(`insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis`),B7],4),j7(`SpaceBeforeCloseParen`,n,22,[N7(`insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis`),B7],4),j7(`SpaceBetweenOpenParens`,21,21,[N7(`insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis`),B7],4),j7(`NoSpaceBetweenParens`,21,22,[B7],16),j7(`NoSpaceAfterOpenParen`,21,n,[P7(`insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis`),B7],16),j7(`NoSpaceBeforeCloseParen`,n,22,[P7(`insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis`),B7],16),j7(`SpaceAfterOpenBracket`,23,n,[N7(`insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets`),B7],4),j7(`SpaceBeforeCloseBracket`,n,24,[N7(`insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets`),B7],4),j7(`NoSpaceBetweenBrackets`,23,24,[B7],16),j7(`NoSpaceAfterOpenBracket`,23,n,[P7(`insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets`),B7],16),j7(`NoSpaceBeforeCloseBracket`,n,24,[P7(`insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets`),B7],16),j7(`SpaceAfterOpenBrace`,19,n,[QEe(`insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces`),sDe],4),j7(`SpaceBeforeCloseBrace`,n,20,[QEe(`insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces`),sDe],4),j7(`NoSpaceBetweenEmptyBraceBrackets`,19,20,[B7,vDe],16),j7(`NoSpaceAfterOpenBrace`,19,n,[XEe(`insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces`),B7],16),j7(`NoSpaceBeforeCloseBrace`,n,20,[XEe(`insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces`),B7],16),j7(`SpaceBetweenEmptyBraceBrackets`,19,20,[N7(`insertSpaceAfterOpeningAndBeforeClosingEmptyBraces`)],4),j7(`NoSpaceBetweenEmptyBraceBrackets`,19,20,[XEe(`insertSpaceAfterOpeningAndBeforeClosingEmptyBraces`),B7],16),j7(`SpaceAfterTemplateHeadAndMiddle`,[16,17],n,[N7(`insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces`),DDe],4,1),j7(`SpaceBeforeTemplateMiddleAndTail`,n,[17,18],[N7(`insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces`),B7],4),j7(`NoSpaceAfterTemplateHeadAndMiddle`,[16,17],n,[P7(`insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces`),DDe],16,1),j7(`NoSpaceBeforeTemplateMiddleAndTail`,n,[17,18],[P7(`insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces`),B7],16),j7(`SpaceAfterOpenBraceInJsxExpression`,19,n,[N7(`insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces`),B7,V7],4),j7(`SpaceBeforeCloseBraceInJsxExpression`,n,20,[N7(`insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces`),B7,V7],4),j7(`NoSpaceAfterOpenBraceInJsxExpression`,19,n,[P7(`insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces`),B7,V7],16),j7(`NoSpaceBeforeCloseBraceInJsxExpression`,n,20,[P7(`insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces`),B7,V7],16),j7(`SpaceAfterSemicolonInFor`,27,n,[N7(`insertSpaceAfterSemicolonInForStatements`),B7,$Ee],4),j7(`NoSpaceAfterSemicolonInFor`,27,n,[P7(`insertSpaceAfterSemicolonInForStatements`),B7,$Ee],16),j7(`SpaceBeforeBinaryOperator`,n,o,[N7(`insertSpaceBeforeAndAfterBinaryOperators`),B7,F7],4),j7(`SpaceAfterBinaryOperator`,o,n,[N7(`insertSpaceBeforeAndAfterBinaryOperators`),B7,F7],4),j7(`NoSpaceBeforeBinaryOperator`,n,o,[P7(`insertSpaceBeforeAndAfterBinaryOperators`),B7,F7],16),j7(`NoSpaceAfterBinaryOperator`,o,n,[P7(`insertSpaceBeforeAndAfterBinaryOperators`),B7,F7],16),j7(`SpaceBeforeOpenParenInFuncDecl`,n,21,[N7(`insertSpaceBeforeFunctionParenthesis`),B7,R7],4),j7(`NoSpaceBeforeOpenParenInFuncDecl`,n,21,[P7(`insertSpaceBeforeFunctionParenthesis`),B7,R7],16),j7(`NewLineBeforeOpenBraceInControl`,v,19,[N7(`placeOpenBraceOnNewLineForControlBlocks`),z7,cDe],8,1),j7(`NewLineBeforeOpenBraceInFunction`,g,19,[N7(`placeOpenBraceOnNewLineForFunctions`),R7,cDe],8,1),j7(`NewLineBeforeOpenBraceInTypeScriptDeclWithBlock`,_,19,[N7(`placeOpenBraceOnNewLineForFunctions`),hDe,cDe],8,1),j7(`SpaceAfterTypeAssertion`,32,n,[N7(`insertSpaceAfterTypeAssertion`),B7,UDe],4),j7(`NoSpaceAfterTypeAssertion`,32,n,[P7(`insertSpaceAfterTypeAssertion`),B7,UDe],16),j7(`SpaceBeforeTypeAnnotation`,n,[58,59],[N7(`insertSpaceBeforeTypeAnnotation`),B7,nDe],4),j7(`NoSpaceBeforeTypeAnnotation`,n,[58,59],[P7(`insertSpaceBeforeTypeAnnotation`),B7,nDe],16),j7(`NoOptionalSemicolon`,27,i,[YEe(`semicolons`,`remove`),XDe],32),j7(`OptionalSemicolon`,n,i,[YEe(`semicolons`,`insert`),ZDe],64)],x=[j7(`NoSpaceBeforeSemicolon`,n,27,[B7],16),j7(`SpaceBeforeOpenBraceInControl`,v,19,[ZEe(`placeOpenBraceOnNewLineForControlBlocks`),z7,RDe,oDe],4,1),j7(`SpaceBeforeOpenBraceInFunction`,g,19,[ZEe(`placeOpenBraceOnNewLineForFunctions`),R7,L7,RDe,oDe],4,1),j7(`SpaceBeforeOpenBraceInTypeScriptDeclWithBlock`,_,19,[ZEe(`placeOpenBraceOnNewLineForFunctions`),hDe,RDe,oDe],4,1),j7(`NoSpaceBeforeComma`,n,28,[B7],16),j7(`NoSpaceBeforeOpenBracket`,t(134,84),23,[B7],16),j7(`NoSpaceAfterCloseBracket`,24,n,[B7,PDe],16),j7(`SpaceAfterSemicolon`,27,n,[B7],4),j7(`SpaceBetweenForAndAwaitKeyword`,99,135,[B7],4),j7(`SpaceBetweenDotDotDotAndTypeName`,26,h,[B7],16),j7(`SpaceBetweenStatements`,[22,92,93,84],n,[B7,ODe,eDe],4),j7(`SpaceAfterTryCatchFinally`,[113,85,98],19,[B7],4)];return[...y,...b,...x]}function j7(e,t,n,r,i,a=0){return{leftTokenRange:qEe(t),rightTokenRange:qEe(n),rule:{debugName:e,context:r,action:i,flags:a}}}function M7(e){return{tokens:e,isSpecific:!0}}function qEe(e){return typeof e==`number`?M7([e]):mt(e)?M7(e):e}function JEe(e,t,n=[]){let r=[];for(let i=e;i<=t;i++)C(n,i)||r.push(i);return M7(r)}function YEe(e,t){return n=>n.options&&n.options[e]===t}function N7(e){return t=>t.options&&qe(t.options,e)&&!!t.options[e]}function XEe(e){return t=>t.options&&qe(t.options,e)&&!t.options[e]}function P7(e){return t=>!t.options||!qe(t.options,e)||!t.options[e]}function ZEe(e){return t=>!t.options||!qe(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function QEe(e){return t=>!t.options||!qe(t.options,e)||!!t.options[e]}function $Ee(e){return e.contextNode.kind===249}function eDe(e){return!$Ee(e)}function F7(e){switch(e.contextNode.kind){case 227:return e.contextNode.operatorToken.kind!==28;case 228:case 195:case 235:case 282:case 277:case 183:case 193:case 194:case 239:return!0;case 209:case 266:case 272:case 278:case 261:case 170:case 307:case 173:case 172:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:case 169:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 251:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function I7(e){return!F7(e)}function tDe(e){return!nDe(e)}function nDe(e){let t=e.contextNode.kind;return t===173||t===172||t===170||t===261||Iu(t)}function rDe(e){return RO(e.contextNode)&&e.contextNode.questionToken}function iDe(e){return!rDe(e)}function aDe(e){return e.contextNode.kind===228||e.contextNode.kind===195}function oDe(e){return e.TokensAreOnSameLine()||L7(e)}function sDe(e){return e.contextNode.kind===207||e.contextNode.kind===201||uDe(e)}function cDe(e){return L7(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function lDe(e){return dDe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function uDe(e){return dDe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function dDe(e){return fDe(e.contextNode)}function L7(e){return fDe(e.nextTokenParent)}function fDe(e){if(gDe(e))return!0;switch(e.kind){case 242:case 270:case 211:case 269:return!0}return!1}function R7(e){switch(e.contextNode.kind){case 263:case 175:case 174:case 178:case 179:case 180:case 219:case 177:case 220:case 265:return!0}return!1}function pDe(e){return!R7(e)}function mDe(e){return e.contextNode.kind===263||e.contextNode.kind===219}function hDe(e){return gDe(e.contextNode)}function gDe(e){switch(e.kind){case 264:case 232:case 265:case 267:case 188:case 268:case 279:case 280:case 273:case 276:return!0}return!1}function _De(e){switch(e.currentTokenParent.kind){case 264:case 268:case 267:case 300:case 269:case 256:return!0;case 242:{let t=e.currentTokenParent.parent;if(!t||t.kind!==220&&t.kind!==219)return!0}}return!1}function z7(e){switch(e.contextNode.kind){case 246:case 256:case 249:case 250:case 251:case 248:case 259:case 247:case 255:case 300:return!0;default:return!1}}function vDe(e){return e.contextNode.kind===211}function yDe(e){return e.contextNode.kind===214}function bDe(e){return e.contextNode.kind===215}function xDe(e){return yDe(e)||bDe(e)}function SDe(e){return e.currentTokenSpan.kind!==28}function CDe(e){return e.nextTokenSpan.kind!==24}function wDe(e){return e.nextTokenSpan.kind!==22}function TDe(e){return e.contextNode.kind===220}function EDe(e){return e.contextNode.kind===206}function B7(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function DDe(e){return e.contextNode.kind!==12}function ODe(e){return e.contextNode.kind!==285&&e.contextNode.kind!==289}function V7(e){return e.contextNode.kind===295||e.contextNode.kind===294}function kDe(e){return e.nextTokenParent.kind===292||e.nextTokenParent.kind===296&&e.nextTokenParent.parent.kind===292}function ADe(e){return e.contextNode.kind===292}function jDe(e){return e.nextTokenParent.kind!==296}function MDe(e){return e.nextTokenParent.kind===296}function NDe(e){return e.contextNode.kind===286}function PDe(e){return!R7(e)&&!L7(e)}function FDe(e){return e.TokensAreOnSameLine()&&ob(e.contextNode)&&IDe(e.currentTokenParent)&&!IDe(e.nextTokenParent)}function IDe(e){for(;e&&q(e);)e=e.parent;return e&&e.kind===171}function LDe(e){return e.currentTokenParent.kind===262&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function RDe(e){return e.formattingRequestKind!==2}function zDe(e){return e.contextNode.kind===268}function BDe(e){return e.contextNode.kind===188}function VDe(e){return e.contextNode.kind===181}function HDe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 184:case 217:case 266:case 264:case 232:case 265:case 263:case 219:case 220:case 175:case 174:case 180:case 181:case 214:case 215:case 234:return!0;default:return!1}}function H7(e){return HDe(e.currentTokenSpan,e.currentTokenParent)||HDe(e.nextTokenSpan,e.nextTokenParent)}function UDe(e){return e.contextNode.kind===217}function WDe(e){return!UDe(e)}function GDe(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===223}function KDe(e){return e.contextNode.kind===230&&e.contextNode.expression!==void 0}function qDe(e){return e.contextNode.kind===236}function JDe(e){return!YDe(e)}function YDe(e){switch(e.contextNode.kind){case 246:case 249:case 250:case 251:case 247:case 248:return!0;default:return!1}}function XDe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(ov(t)){let r=e.nextTokenParent===e.currentTokenParent?aZ(e.currentTokenParent,K(e.currentTokenParent,e=>!e.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!r)return!0;t=r.kind,n=r.getStart(e.sourceFile)}return e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line===e.sourceFile.getLineAndCharacterOfPosition(n).line?t===20||t===1:t===27&&e.currentTokenSpan.kind===27?!0:t===241||t===27?!1:e.contextNode.kind===265||e.contextNode.kind===266?!LO(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:RO(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==249&&e.currentTokenParent.kind!==243&&e.currentTokenParent.kind!==241&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==229&&t!==16&&t!==15&&t!==25}function ZDe(e){return h$(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function QDe(e){return!Ck(e.contextNode)||!$D(e.contextNode.expression)||e.contextNode.expression.getText().includes(`.`)}function $De(e,t){return{options:e,getRules:tOe(),host:t}}var eOe;function tOe(){return eOe===void 0&&(eOe=rOe(KEe())),eOe}function nOe(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function rOe(e){let t=iOe(e);return e=>{let n=t[aOe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){let t=[],r=0;for(let i of n){let n=~nOe(r);i.action&n&&v(i.context,t=>t(e))&&(t.push(i),r|=i.action)}if(t.length)return t}}}function iOe(e){let t=Array(oOe*oOe),n=Array(t.length);for(let r of e){let e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(let i of r.leftTokenRange.tokens)for(let a of r.rightTokenRange.tokens){let o=aOe(i,a),s=t[o];s===void 0&&(s=t[o]=[]),sOe(s,r.rule,e,n,o)}}return t}function aOe(e,t){return H.assert(e<=166&&t<=166,`Must compute formatting context from tokens`),e*oOe+t}var U7=5,W7=31,oOe=167,G7=(e=>(e[e.StopRulesSpecific=0]=`StopRulesSpecific`,e[e.StopRulesAny=U7*1]=`StopRulesAny`,e[e.ContextRulesSpecific=U7*2]=`ContextRulesSpecific`,e[e.ContextRulesAny=U7*3]=`ContextRulesAny`,e[e.NoContextRulesSpecific=U7*4]=`NoContextRulesSpecific`,e[e.NoContextRulesAny=U7*5]=`NoContextRulesAny`,e))(G7||{});function sOe(e,t,n,r,i){let a=t.action&3?n?0:G7.StopRulesAny:t.context===A7?n?G7.NoContextRulesSpecific:G7.NoContextRulesAny:n?G7.ContextRulesSpecific:G7.ContextRulesAny,o=r[i]||0;e.splice(cOe(o,a),0,t),r[i]=lOe(o,a)}function cOe(e,t){let n=0;for(let r=0;r<=t;r+=U7)n+=e&W7,e>>=U7;return n}function lOe(e,t){let n=(e>>t&W7)+1;return H.assert((n&W7)===n,`Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.`),e&~(W7<H.formatSyntaxKind(n)}),r}function uOe(e,t,n){let r=t.getLineAndCharacterOfPosition(e).line;if(r===0)return[];let i=tp(r,t);for(;vs(t.text.charCodeAt(i));)i--;return ys(t.text.charCodeAt(i))&&i--,q7({pos:$f(r-1,t),end:i+1},t,n,2)}function dOe(e,t,n){return wOe(_Oe(gOe(e,27,t)),t,n,3)}function fOe(e,t,n){let r=gOe(e,19,t);if(!r)return[];let i=r.parent;return q7({pos:IX(_Oe(i).getStart(t),t),end:e},t,n,4)}function pOe(e,t,n){return wOe(_Oe(gOe(e,20,t)),t,n,5)}function mOe(e,t){return q7({pos:0,end:e.text.length},e,t,0)}function hOe(e,t,n,r){return q7({pos:IX(e,n),end:t},n,r,1)}function gOe(e,t,n){let r=oZ(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function _Oe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!vOe(t.parent,t);)t=t.parent;return t}function vOe(e,t){switch(e.kind){case 264:case 265:return wx(e.members,t);case 268:let n=e.body;return!!n&&n.kind===269&&wx(n.statements,t);case 308:case 242:case 269:return wx(e.statements,t);case 300:return wx(e.block.statements,t)}return!1}function yOe(e,t){return n(t);function n(r){let i=pP(r,n=>Tx(n.getStart(t),n.end,e)&&n);if(i){let e=n(i);if(e)return e}return r}}function bOe(e,t){if(!e.length)return i;let n=e.filter(e=>VX(t,e.start,e.start+e.length)).sort((e,t)=>e.start-t.start);if(!n.length)return i;let r=0;return e=>{for(;;){if(r>=n.length)return!1;let t=n[r];if(e.end<=t.start)return!1;if(UX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}function xOe(e,t,n){let r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;let i=oZ(t.pos,n);return!i||i.end>=t.pos?e.pos:i.end}function SOe(e,t,n){let r=-1,i;for(;e;){let a=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(r!==-1&&a!==r)break;if(Z7.shouldIndentChildNode(t,e,i,n))return t.indentSize;r=a,i=e,e=e.parent}return 0}function COe(e,t,n,r,i,a){let o={pos:e.pos,end:e.end};return UEe(t.text,n,o.pos,o.end,n=>TOe(o,e,r,i,n,a,1,e=>!1,t))}function wOe(e,t,n,r){return e?q7({pos:IX(e.getStart(t),t),end:e.end},t,n,r):[]}function q7(e,t,n,r){let i=yOe(e,t);return UEe(t.text,t.languageVariant,xOe(i,e,t),e.end,a=>TOe(e,i,Z7.getIndentationForNode(i,e,t,n.options),SOe(i,n.options,t),a,n,r,bOe(t.parseDiagnostics,e),t))}function TOe(e,t,n,r,i,{options:a,getRules:o,host:s},c,l,u){let d=new BEe(u,c,a),p,m,h,g,_,v=-1,b=[];if(i.advance(),i.isOnToken()){let e=u.getLineAndCharacterOfPosition(t.getStart(u)).line,i=e;ob(t)&&(i=u.getLineAndCharacterOfPosition(vp(t,u)).line),D(t,t,e,i,n,r)}let S=i.getCurrentLeadingTrivia();if(S){let e=Z7.nodeWillIndentChild(a,t,void 0,u,!1)?n+a.indentSize:n;O(S,e,!0,n=>{ee(n,u.getLineAndCharacterOfPosition(n.pos),t,t,void 0),ne(n.pos,e,!1)}),a.trimTrailingWhitespace!==!1&&M(S)}if(m&&i.getTokenFullStart()>=e.end){let e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===p){let n=oZ(e.end,u,t)?.parent||h;te(e,u.getLineAndCharacterOfPosition(e.pos).line,n,m,g,h,n,void 0)}}return b;function C(e,t,n,r,i){if(VX(r,e,t)||BX(r,e,t)){if(i!==-1)return i}else{let t=u.getLineAndCharacterOfPosition(e).line,r=IX(e,u),i=Z7.findFirstNonWhitespaceColumn(r,e,u,a);if(t!==n||e===i){let e=Z7.getBaseIndentation(a);return e>i?e:i}}return-1}function w(e,t,n,r,i,o){let s=Z7.shouldIndentChildNode(a,e)?a.indentSize:0;return o===t?{indentation:t===_?v:i.getIndentation(),delta:Math.min(a.indentSize,i.getDelta(e)+s)}:n===-1?e.kind===21&&t===_?{indentation:v,delta:i.getDelta(e)}:Z7.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,u)||Z7.childIsUnindentedBranchOfConditionalExpression(r,e,t,u)||Z7.argumentStartsOnSameLineAsPreviousArgument(r,e,t,u)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}function T(e){if(VN(e)){let t=y(e.modifiers,Du,x(e.modifiers,IO));if(t)return t.kind}switch(e.kind){case 264:return 86;case 265:return 120;case 263:return 100;case 267:return 267;case 178:return 139;case 179:return 153;case 175:if(e.asteriskToken)return 42;case 173:case 170:let t=el(e);if(t)return t.kind}}function E(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+o(r)}return t===-1?n:t},getIndentationForToken:(e,t,r,a)=>!a&&i(e,t,r)?n+o(r):n,getIndentation:()=>n,getDelta:o,recomputeIndentation:(t,i)=>{Z7.shouldIndentChildNode(a,i,e,u)&&(n+=t?a.indentSize:-a.indentSize,r=Z7.shouldIndentChildNode(a,e)?a.indentSize:0)}};function i(n,r,i){switch(r){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(i.kind){case 287:case 288:case 286:return!1}break;case 23:case 24:if(i.kind!==201)return!1;break}return t!==n&&!(ob(e)&&r===T(e))}function o(t){return Z7.nodeWillIndentChild(a,e,t,u,!0)?r:0}}function D(t,n,r,o,s,c){if(!VX(e,t.getStart(u),t.getEnd()))return;let d=E(t,r,s,c),f=n;for(pP(t,e=>{h(e,-1,t,d,r,o,!1)},e=>{g(e,t,r,d)});i.isOnToken()&&i.getTokenFullStart()Math.min(t.end,e.end))break;y(n,t,d,t)}function h(n,r,a,o,s,c,l,d){if(H.assert(!kv(n)),rp(n)||ap(a,n))return r;let p=n.getStart(u),m=u.getLineAndCharacterOfPosition(p).line,h=m;ob(n)&&(h=u.getLineAndCharacterOfPosition(vp(n,u)).line);let g=-1;if(l&&wx(e,a)&&(g=C(p,n.end,s,e,r),g!==-1&&(r=g)),!VX(e,n.pos,n.end))return n.ende.end)return r;if(a.token.end>p){a.token.pos>p&&i.skipToStartOf(n);break}y(a,t,o,t)}if(!i.isOnToken()||i.getTokenFullStart()>=e.end)return r;if(iu(n)){let e=i.readTokenInfo(n);if(n.kind!==12)return H.assert(e.token.end===n.end,`Token end is child end`),y(e,t,o,n),r}let _=n.kind===171?m:c,v=w(n,m,g,t,o,_);return D(n,f,m,h,v.indentation,v.delta),f=t,d&&a.kind===210&&r===-1&&(r=v.indentation),r}function g(n,r,o,s){H.assert(au(n)),H.assert(!kv(n));let c=DOe(r,n),l=s,d=o;if(!VX(e,n.pos,n.end)){n.endn.pos)break;if(e.token.kind===c){d=u.getLineAndCharacterOfPosition(e.token.pos).line,y(e,r,s,r);let t;if(v!==-1)t=v;else{let n=IX(e.token.pos,u);t=Z7.findFirstNonWhitespaceColumn(n,e.token.pos,u,a)}l=E(r,o,t,a.indentSize)}else y(e,r,s,r)}let f=-1;for(let e=0;ene(e.pos,i,!1))}e!==-1&&n&&(ne(t.token.pos,e,d===1),_=g.line,v=e)}i.advance(),f=n}}function O(t,n,r,i){for(let a of t){let t=wx(e,a);switch(a.kind){case 3:t&&ae(a,n,!r),r=!1;break;case 2:r&&t&&i(a),r=!1;break;case 4:r=!0;break}}return r}function k(t,n,r,i){for(let a of t)wZ(a.kind)&&wx(e,a)&&ee(a,u.getLineAndCharacterOfPosition(a.pos),n,r,i)}function ee(t,n,r,i,a){let o=l(t),s=0;return o||(m?s=te(t,n.line,r,m,g,h,i,a):A(u.getLineAndCharacterOfPosition(e.pos).line,n.line)),m=t,p=t.end,h=r,g=n.line,s}function te(e,t,n,r,i,a,s,c){d.updateContext(r,a,e,n,s);let l=o(d),p=d.options.trimTrailingWhitespace!==!1,m=0;return l?f(l,a=>{if(m=P(a,r,i,e,t),c)switch(m){case 2:n.getStart(u)===e.pos&&c.recomputeIndentation(!1,s);break;case 1:n.getStart(u)===e.pos&&c.recomputeIndentation(!0,s);break;default:H.assert(m===0)}p=p&&!(a.action&16)&&a.flags!==1}):p&&=e.kind!==1,t!==i&&p&&A(i,t,r),m}function ne(e,t,n){let r=kOe(t,a);if(n)se(e,0,r);else{let n=u.getLineAndCharacterOfPosition(e),i=$f(n.line,u);(t!==re(i,n.character)||ie(r,i))&&se(i,n.character,r)}}function re(e,t){let n=0;for(let r=0;r0){let e=kOe(r,a);se(t,n.character,e)}else oe(t,n.character)}}function A(e,t,n){for(let r=e;rt)continue;let i=j(e,t);i!==-1&&(H.assert(i===e||!vs(u.text.charCodeAt(i-1))),oe(i,t+1-i))}}function j(e,t){let n=t;for(;n>=e&&vs(u.text.charCodeAt(n));)n--;return n===t?-1:n+1}function M(t){let n=m?m.end:e.pos;for(let e of t)wZ(e.kind)&&(nzX(n,t)||t===n.end&&(n.kind===2||t===e.getFullWidth()))}function DOe(e,t){switch(e.kind){case 177:case 263:case 219:case 175:case 174:case 220:case 180:case 181:case 185:case 186:case 178:case 179:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 214:case 215:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 264:case 232:case 265:case 266:if(e.typeParameters===t)return 30;break;case 184:case 216:case 187:case 234:case 206:if(e.typeArguments===t)return 30;break;case 188:return 19}return 0}function OOe(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var J7,Y7,X7;function kOe(e,t){if((!J7||J7.tabSize!==t.tabSize||J7.indentSize!==t.indentSize)&&(J7={tabSize:t.tabSize,indentSize:t.indentSize},Y7=X7=void 0),t.convertTabsToSpaces){let n,r=Math.floor(e/t.indentSize),i=e%t.indentSize;return X7||=[],X7[r]===void 0?(n=KZ(` `,t.indentSize*r),X7[r]=n):n=X7[r],i?n+KZ(` `,i):n}else{let n=Math.floor(e/t.tabSize),r=e-n*t.tabSize,i;return Y7||=[],Y7[n]===void 0?Y7[n]=i=KZ(` `,n):i=Y7[n],r?i+KZ(` `,r):i}}var Z7;(e=>{let t;(e=>{e[e.Unknown=-1]=`Unknown`})(t||={});function n(e,t,n,o=!1){if(e>t.text.length)return s(n);if(n.indentStyle===0)return 0;let c=oZ(e,t,void 0,!0),l=EOe(t,e,c||null);if(l&&l.kind===3)return r(t,e,n,l);if(!c)return s(n);if(TZ(c.kind)&&c.getStart(t)<=e&&e=0),i<=a)return ee($f(a,e),t,e,n);let o=$f(i,e),{column:s,character:c}=k(o,t,e,n);return s===0?s:e.text.charCodeAt(o+c)===42?s-1:s}function i(e,t,n){let r=t;for(;r>0&&_s(e.text.charCodeAt(r));)r--;return ee(IX(r,e),r,e,n)}function a(e,t,n,r,i,a){let o,l=n;for(;l;){if(WX(l,t,e)&&re(a,l,o,e,!0)){let t=m(l,e),o=p(n,l,r,e),s=o===0?r===t.line?0:a.indentSize:i&&o===2?a.indentSize:0;return c(l,t,void 0,s,e,!0,a)}let s=E(l,e,a,!0);if(s!==-1)return s;o=l,l=l.parent}return s(a)}function o(e,t,n,r){return c(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,!1,r)}e.getIndentationForNode=o;function s(e){return e.baseIndentSize||0}e.getBaseIndentation=s;function c(e,t,n,r,i,a,o){let c=e.parent;for(;c;){let s=!0;if(n){let t=e.getStart(i);s=tn.end}let u=l(c,e,i),f=u.line===t.line||g(c,e,t.line,i);if(s){let n=b(e,i)?.[0],a=!!n&&m(n,i).line>u.line,s=E(e,i,o,a);if(s!==-1||(s=d(e,c,t,f,i,o),s!==-1))return s+r}re(o,c,e,i,a)&&!f&&(r+=o.indentSize);let p=h(c,e,t.line,i);e=c,c=e.parent,t=p?i.getLineAndCharacterOfPosition(e.getStart(i)):u}return r+s(o)}function l(e,t,n){let r=b(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function u(e,t,n){let r=qX(e);return r&&r.listItemIndex>0?D(r.list.getChildren(),r.listItemIndex-1,t,n):-1}function d(e,t,n,r,i,a){return(Ld(e)||zd(e))&&(t.kind===308||!r)?O(n,i,a):-1}let f;(e=>{e[e.Unknown=0]=`Unknown`,e[e.OpenBrace=1]=`OpenBrace`,e[e.CloseBrace=2]=`CloseBrace`})(f||={});function p(e,t,n,r){let i=aZ(e,t,r);return i?i.kind===19?1:i.kind===20&&n===m(i,r).line?2:0:0}function m(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function h(e,t,n,r){return Tk(e)&&C(e.arguments,t)?gs(r,e.expression.getEnd()).line===n:!1}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=h;function g(e,t,n,r){if(e.kind===246&&e.elseStatement===t){let t=YX(e,93,r);return H.assert(t!==void 0),m(t,r).line===n}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=g;function _(e,t,n,r){if(zk(e)&&(t===e.whenTrue||t===e.whenFalse)){let i=gs(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{let t=m(e.whenTrue,r).line,a=gs(r,e.whenTrue.end).line;return i===t&&a===n}}return!1}e.childIsUnindentedBranchOfConditionalExpression=_;function v(e,t,n,r){if(ud(e)){if(!e.arguments)return!1;let i=y(e.arguments,e=>e.pos===t.pos);if(!i)return!1;let a=e.arguments.indexOf(i);if(a===0)return!1;let o=e.arguments[a-1];if(n===gs(r,o.getEnd()).line)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=v;function b(e,t){return e.parent&&S(e.getStart(t),e.getEnd(),e.parent,t)}e.getContainingList=b;function x(e,t,n){return t&&S(e,e,t,n)}function S(e,t,n,r){switch(n.kind){case 184:return i(n.typeArguments);case 211:return i(n.properties);case 210:return i(n.elements);case 188:return i(n.members);case 263:case 219:case 220:case 175:case 174:case 180:case 177:case 186:case 181:return i(n.typeParameters)||i(n.parameters);case 178:return i(n.parameters);case 264:case 232:case 265:case 266:case 346:return i(n.typeParameters);case 215:case 214:return i(n.typeArguments)||i(n.arguments);case 262:return i(n.declarations);case 276:case 280:return i(n.elements);case 207:case 208:return i(n.elements)}function i(i){return i&&BX(w(n,i,r),e,t)?i:void 0}}function w(e,t,n){let r=e.getChildren(n);for(let e=1;e=0&&t=0;i--)if(e[i].kind!==28){if(n.getLineAndCharacterOfPosition(e[i].end).line!==a.line)return O(a,n,r);a=m(e[i],n)}return-1}function O(e,t,n){let r=t.getPositionOfLineAndCharacter(e.line,0);return ee(r,r+e.character,t,n)}function k(e,t,n,r){let i=0,a=0;for(let o=e;oAOe});function AOe(e,t,n){let r=!1;return t.forEach(t=>{let i=K(nZ(e,t.pos),e=>wx(e,t));i&&pP(i,function i(a){if(!r){if(Y(a)&&RX(t,a.getStart(e))){let t=n.resolveName(a.text,a,-1,!1);if(t&&t.declarations){for(let n of t.declarations)if(X0(n)||a.text&&e.symbol&&e.symbol.exports?.has(a.escapedText)){r=!0;return}}}a.forEachChild(i)}})}),r}var $7={};n($7,{pasteEditsProvider:()=>MOe});var jOe=`providePostPasteEdits`;function MOe(e,t,n,r,i,a,o,s){return{edits:y7.ChangeTracker.with({host:i,formatContext:o,preferences:a},c=>NOe(e,t,n,r,i,a,o,s,c)),fixId:jOe}}function NOe(e,t,n,r,i,a,o,s,c){let l;t.length!==n.length&&(l=t.length===1?t[0]:t.join(zQ(o.host,o.options)));let u=[],d=e.text;for(let e=n.length-1;e>=0;e--){let{pos:r,end:i}=n[e];d=l?d.slice(0,r)+l+d.slice(i):d.slice(0,r)+t[e]+d.slice(i)}let f;H.checkDefined(i.runWithTemporaryFileUpdate).call(i,e.fileName,d,(d,p,m)=>{if(f=C4.createImportAdder(m,d,a,i),r?.range){H.assert(r.range.length===t.length),r.range.forEach(e=>{let t=r.file.statements,n=x(t,t=>t.end>e.pos);if(n===-1)return;let i=x(t,t=>t.end>=e.end,n);i!==-1&&e.end<=t[i].getStart()&&i--,u.push(...t.slice(n,i===-1?t.length:i+1))}),H.assertIsDefined(p,`no original program found`);let n=p.getTypeChecker(),a=POe(r),o=q0(r.file,u,n,Q0(m,u,n),a),s=!Y$(e.fileName,p,i,!!r.file.commonJsModuleIndicator);V0(r.file,o.targetFileImportsFromOldFile,c,s),n2(r.file,o.oldImportsNeededByTargetFile,o.targetFileImportsFromOldFile,n,d,f)}else{let e={sourceFile:m,program:p,cancellationToken:s,host:i,preferences:a,formatContext:o},r=0;n.forEach((n,i)=>{let a=n.end-n.pos,o=l??t[i],s=n.pos+r,c={pos:s,end:s+o.length};r+=o.length-a;let u=K(nZ(e.sourceFile,c.pos),e=>wx(e,c));u&&pP(u,function t(n){if(Y(n)&&RX(c,n.getStart(m))&&!d?.getTypeChecker().resolveName(n.text,n,-1,!1))return f.addImportForUnresolvedIdentifier(e,n,!0);n.forEachChild(t)})})}f.writeFixes(c,aQ(r?r.file:e,a))}),f.hasFixes()&&n.forEach((n,r)=>{c.replaceRangeWithText(e,{pos:n.pos,end:n.end},l??t[r])})}function POe({file:e,range:t}){let n=t[0].pos,r=t[t.length-1].end,i=nZ(e,n),a=iZ(e,n)??nZ(e,r);return{pos:Y(i)&&n<=i.getStart(e)?i.getFullStart():n,end:Y(a)&&r===a.getEnd()?y7.getAdjustedEndPosition(e,a,{}):r}}var FOe={};n(FOe,{ANONYMOUS:()=>d$,AccessFlags:()=>gi,AssertionLevel:()=>jt,AssignmentDeclarationKind:()=>Ei,AssignmentKind:()=>C_,Associativity:()=>Av,BreakpointResolver:()=>g4,BuilderFileEmit:()=>vG,BuilderProgramKind:()=>$G,BuilderState:()=>_G,CallHierarchy:()=>_4,CharacterCodes:()=>Hi,CheckFlags:()=>li,CheckMode:()=>dB,ClassificationType:()=>lX,ClassificationTypeNames:()=>cX,CommentDirectiveType:()=>Wr,Comparison:()=>s,CompletionInfoFlags:()=>tX,CompletionTriggerKind:()=>JY,Completions:()=>S8,ContainerFlags:()=>mz,ContextFlags:()=>ei,Debug:()=>H,DiagnosticCategory:()=>Di,Diagnostics:()=>G,DocumentHighlights:()=>f1,ElementFlags:()=>hi,EmitFlags:()=>Ki,EmitHint:()=>Xi,EmitOnly:()=>Jr,EndOfLineState:()=>iX,ExitStatus:()=>Xr,ExportKind:()=>$$,Extension:()=>Ui,ExternalEmitHelpers:()=>Yi,FileIncludeKind:()=>Kr,FilePreprocessingDiagnosticsKind:()=>qr,FileSystemEntryKind:()=>Ea,FileWatcherEventKind:()=>aa,FindAllReferences:()=>u5,FlattenLevel:()=>FV,FlowFlags:()=>Ur,ForegroundColorEscapeSequences:()=>hW,FunctionFlags:()=>sv,GeneratedIdentifierFlags:()=>Br,GetLiteralTextFlags:()=>Mp,GoToDefinition:()=>T5,HighlightSpanKind:()=>XY,IdentifierNameMap:()=>lV,ImportKind:()=>Q$,ImportsNotUsedAsValues:()=>Ii,IndentStyle:()=>ZY,IndexFlags:()=>_i,IndexKind:()=>xi,InferenceFlags:()=>wi,InferencePriority:()=>Ci,InlayHintKind:()=>YY,InlayHints:()=>P5,InternalEmitFlags:()=>qi,InternalNodeBuilderFlags:()=>ni,InternalSymbolName:()=>ui,IntersectionFlags:()=>$r,InvalidatedProjectKind:()=>Wq,JSDocParsingMode:()=>na,JsDoc:()=>I5,JsTyping:()=>CY,JsxEmit:()=>Fi,JsxFlags:()=>Lr,JsxReferenceKind:()=>vi,LanguageFeatureMinimumTarget:()=>Ji,LanguageServiceMode:()=>$,LanguageVariant:()=>Bi,LexicalEnvironmentFlags:()=>Qi,ListFormat:()=>$i,LogLevel:()=>Dn,MapCode:()=>B5,MemberOverrideStatus:()=>Zr,ModifierFlags:()=>Ir,ModuleDetectionKind:()=>Ai,ModuleInstanceState:()=>lz,ModuleKind:()=>Pi,ModuleResolutionKind:()=>ki,ModuleSpecifierEnding:()=>nw,NavigateTo:()=>K1,NavigationBar:()=>J1,NewLineKind:()=>Li,NodeBuilderFlags:()=>ti,NodeCheckFlags:()=>di,NodeFactoryFlags:()=>SE,NodeFlags:()=>Fr,NodeResolutionFeatures:()=>eR,ObjectFlags:()=>pi,OperationCanceledException:()=>Gr,OperatorPrecedence:()=>Fv,OrganizeImports:()=>U5,OrganizeImportsMode:()=>qY,OuterExpressionKinds:()=>Zi,OutliningElementsCollector:()=>n7,OutliningSpanKind:()=>nX,OutputFileType:()=>rX,PackageJsonAutoImportPreference:()=>WY,PackageJsonDependencyGroup:()=>UY,PatternMatchKind:()=>S1,PollingInterval:()=>oa,PollingWatchKind:()=>Ni,PragmaKindFlags:()=>ea,PredicateSemantics:()=>zr,PreparePasteEdits:()=>Q7,PrivateIdentifierKind:()=>ED,ProcessLevel:()=>pH,ProgramUpdateLevel:()=>KU,QuotePreference:()=>rQ,RegularExpressionFlags:()=>Vr,RelationComparisonResult:()=>Rr,Rename:()=>s7,ScriptElementKind:()=>oX,ScriptElementKindModifier:()=>sX,ScriptKind:()=>Ri,ScriptSnapshot:()=>HY,ScriptTarget:()=>zi,SemanticClassificationFormat:()=>KY,SemanticMeaning:()=>dX,SemicolonPreference:()=>QY,SignatureCheckMode:()=>fB,SignatureFlags:()=>bi,SignatureHelp:()=>u7,SignatureInfo:()=>gG,SignatureKind:()=>yi,SmartSelectionRange:()=>m7,SnippetKind:()=>Gi,StatisticType:()=>NJ,StructureIsReused:()=>Yr,SymbolAccessibility:()=>ai,SymbolDisplay:()=>v7,SymbolDisplayPartKind:()=>eX,SymbolFlags:()=>ci,SymbolFormatFlags:()=>ii,SyntaxKind:()=>Pr,Ternary:()=>Ti,ThrottledCancellationToken:()=>u4,TokenClass:()=>aX,TokenFlags:()=>Hr,TransformFlags:()=>Wi,TypeFacts:()=>lB,TypeFlags:()=>fi,TypeFormatFlags:()=>ri,TypeMapKind:()=>Si,TypePredicateKind:()=>oi,TypeReferenceSerializationKind:()=>si,UnionReduction:()=>Qr,UpToDateStatusType:()=>vq,VarianceFlags:()=>mi,Version:()=>Fn,VersionRange:()=>Rn,WatchDirectoryFlags:()=>Vi,WatchDirectoryKind:()=>Mi,WatchFileKind:()=>ji,WatchLogLevel:()=>eW,WatchType:()=>nq,accessPrivateIdentifier:()=>jV,addEmitFlags:()=>WE,addEmitHelper:()=>uD,addEmitHelpers:()=>dD,addInternalEmitFlags:()=>KE,addNodeFactoryPatcher:()=>wE,addObjectAllocatorPatcher:()=>cS,addRange:()=>Ee,addRelatedInfo:()=>Dw,addSyntheticLeadingComment:()=>rD,addSyntheticTrailingComment:()=>oD,addToSeen:()=>Jx,advancedAsyncSuperHelper:()=>ZD,affectsDeclarationPathOptionDeclarations:()=>eF,affectsEmitOptionDeclarations:()=>$P,allKeysStartWithDot:()=>PR,altDirectorySeparator:()=>Ia,and:()=>_n,append:()=>I,appendIfUnique:()=>Oe,arrayFrom:()=>$e,arrayIsEqualTo:()=>xe,arrayIsHomogeneous:()=>Gw,arrayOf:()=>Qe,arrayReverseIterator:()=>je,arrayToMap:()=>nt,arrayToMultiMap:()=>it,arrayToNumericMap:()=>rt,assertType:()=>bn,assign:()=>et,asyncSuperHelper:()=>XD,attachFileToDiagnostics:()=>_S,base64decode:()=>$b,base64encode:()=>Qb,binarySearch:()=>We,binarySearchKey:()=>L,bindSourceFile:()=>gz,breakIntoCharacterSpans:()=>j1,breakIntoWordSpans:()=>M1,buildLinkParts:()=>RQ,buildOpts:()=>uF,buildOverload:()=>GOe,bundlerModuleNameResolver:()=>iR,canBeConvertedToAsync:()=>H1,canHaveDecorators:()=>HN,canHaveExportModifier:()=>pT,canHaveFlowNode:()=>c_,canHaveIllegalDecorators:()=>sN,canHaveIllegalModifiers:()=>cN,canHaveIllegalType:()=>aN,canHaveIllegalTypeParameters:()=>oN,canHaveJSDoc:()=>l_,canHaveLocals:()=>Nd,canHaveModifiers:()=>VN,canHaveModuleSpecifier:()=>Wg,canHaveSymbol:()=>Md,canIncludeBindAndCheckDiagnostics:()=>Nw,canJsonReportNoInputFiles:()=>jI,canProduceDiagnostics:()=>ZH,canUsePropertyAccess:()=>hT,canWatchAffectingLocation:()=>CK,canWatchAtTypes:()=>bK,canWatchDirectoryOrFile:()=>vK,canWatchDirectoryOrFilePath:()=>yK,cartesianProduct:()=>Sn,cast:()=>yt,chainBundle:()=>nV,chainDiagnosticMessages:()=>SS,changeAnyExtension:()=>Co,changeCompilerHostLikeToUseCache:()=>dW,changeExtension:()=>pw,changeFullExtension:()=>wo,changesAffectModuleResolution:()=>Of,changesAffectingProgramStructure:()=>kf,characterCodeToRegularExpressionFlag:()=>cs,childIsDecorated:()=>Vh,classElementOrClassElementParameterIsDecorated:()=>Uh,classHasClassThisAssignment:()=>ZV,classHasDeclaredOrExplicitlyAssignedName:()=>iH,classHasExplicitlyAssignedName:()=>rH,classOrConstructorParameterIsDecorated:()=>Hh,classicNameResolver:()=>nz,classifier:()=>S4,cleanExtendedConfigCache:()=>YU,clear:()=>O,clearMap:()=>zx,clearSharedExtendedConfigFileWatcher:()=>JU,climbPastPropertyAccess:()=>xX,clone:()=>st,cloneCompilerOptions:()=>kZ,closeFileWatcher:()=>Ax,closeFileWatcherOf:()=>rW,codefix:()=>C4,collapseTextChangeRangesAcrossMultipleVersions:()=>Dc,collectExternalModuleInfo:()=>oV,combine:()=>we,combinePaths:()=>lo,commandLineOptionOfCustomType:()=>oF,commentPragmas:()=>ta,commonOptionsWithBuild:()=>qP,compact:()=>Se,compareBooleans:()=>Zt,compareDataObjects:()=>Rx,compareDiagnostics:()=>TS,compareEmitHelpers:()=>OD,compareNumberOfDirectorySeparators:()=>cw,comparePaths:()=>ko,comparePathsCaseInsensitive:()=>Oo,comparePathsCaseSensitive:()=>Do,comparePatternKeys:()=>LR,compareProperties:()=>Xt,compareStringsCaseInsensitive:()=>Bt,compareStringsCaseInsensitiveEslintCompatible:()=>Vt,compareStringsCaseSensitive:()=>Ht,compareStringsCaseSensitiveUI:()=>Yt,compareTextSpans:()=>Lt,compareValues:()=>It,compilerOptionsAffectDeclarationPath:()=>fC,compilerOptionsAffectEmit:()=>dC,compilerOptionsAffectSemanticDiagnostics:()=>uC,compilerOptionsDidYouMeanDiagnostics:()=>wF,compilerOptionsIndicateEsModules:()=>ZZ,computeCommonSourceDirectoryOfFilenames:()=>oW,computeLineAndCharacterOfPosition:()=>ps,computeLineOfPosition:()=>ms,computeLineStarts:()=>ls,computePositionOfLineAndCharacter:()=>ds,computeSignatureWithDiagnostics:()=>nK,computeSuggestionDiagnostics:()=>R1,computedOptions:()=>LS,concatenate:()=>de,concatenateDiagnosticMessageChains:()=>CS,consumesNodeCoreModules:()=>D$,contains:()=>C,containsIgnoredPath:()=>tT,containsObjectRestOrSpread:()=>BN,containsParseError:()=>qf,containsPath:()=>Ao,convertCompilerOptionsForTelemetry:()=>lL,convertCompilerOptionsFromJson:()=>zI,convertJsonOption:()=>JI,convertToBase64:()=>Xb,convertToJson:()=>eI,convertToObject:()=>$F,convertToOptionsWithAbsolutePaths:()=>pI,convertToRelativePath:()=>Po,convertToTSConfig:()=>rI,convertTypeAcquisitionFromJson:()=>BI,copyComments:()=>ZQ,copyEntries:()=>Pf,copyLeadingComments:()=>e$,copyProperties:()=>lt,copyTrailingAsLeadingComments:()=>n$,copyTrailingComments:()=>t$,couldStartTrivia:()=>Ts,countWhere:()=>T,createAbstractBuilder:()=>hK,createAccessorPropertyBackingField:()=>PN,createAccessorPropertyGetRedirector:()=>FN,createAccessorPropertySetRedirector:()=>IN,createBaseNodeFactory:()=>gE,createBinaryExpressionTrampoline:()=>EN,createBuilderProgram:()=>iK,createBuilderProgramUsingIncrementalBuildInfo:()=>lK,createBuilderStatusReporter:()=>wq,createCacheableExportInfoMap:()=>e1,createCachedDirectoryStructureHost:()=>GU,createClassifier:()=>fae,createCommentDirectivesMap:()=>gp,createCompilerDiagnostic:()=>bS,createCompilerDiagnosticForInvalidCustomType:()=>gF,createCompilerDiagnosticFromMessageChain:()=>xS,createCompilerHost:()=>sW,createCompilerHostFromProgramHost:()=>iq,createCompilerHostWorker:()=>uW,createDetachedDiagnostic:()=>hS,createDiagnosticCollection:()=>zv,createDiagnosticForFileFromMessageChain:()=>xm,createDiagnosticForNode:()=>mm,createDiagnosticForNodeArray:()=>hm,createDiagnosticForNodeArrayFromMessageChain:()=>vm,createDiagnosticForNodeFromMessageChain:()=>_m,createDiagnosticForNodeInSourceFile:()=>gm,createDiagnosticForRange:()=>Cm,createDiagnosticMessageChainFromDiagnostic:()=>Sm,createDiagnosticReporter:()=>NK,createDocumentPositionMapper:()=>ZB,createDocumentRegistry:()=>m1,createDocumentRegistryInternal:()=>h1,createEmitAndSemanticDiagnosticsBuilderProgram:()=>mK,createEmitHelperFactory:()=>DD,createEmptyExports:()=>pM,createEvaluator:()=>RT,createExpressionForJsxElement:()=>yM,createExpressionForJsxFragment:()=>bM,createExpressionForObjectLiteralElementLike:()=>DM,createExpressionForPropertyName:()=>CM,createExpressionFromEntityName:()=>SM,createExternalHelpersImportDeclarationIfNeeded:()=>GM,createFileDiagnostic:()=>vS,createFileDiagnosticFromMessageChain:()=>bm,createFlowNode:()=>hz,createForOfBindingStatement:()=>xM,createFutureSourceFile:()=>Z$,createGetCanonicalFileName:()=>ln,createGetIsolatedDeclarationErrors:()=>eU,createGetSourceFile:()=>cW,createGetSymbolAccessibilityDiagnosticForNode:()=>$H,createGetSymbolAccessibilityDiagnosticForNodeName:()=>QH,createGetSymbolWalker:()=>Cz,createIncrementalCompilerHost:()=>mq,createIncrementalProgram:()=>hq,createJsxFactoryExpression:()=>_M,createLanguageService:()=>d4,createLanguageServiceSourceFile:()=>c4,createMemberAccessForPropertyName:()=>mM,createModeAwareCache:()=>WL,createModeAwareCacheKey:()=>UL,createModeMismatchDetails:()=>Hf,createModuleNotFoundChain:()=>Vf,createModuleResolutionCache:()=>qL,createModuleResolutionLoader:()=>RW,createModuleResolutionLoaderUsingGlobalCache:()=>AK,createModuleSpecifierResolutionHost:()=>QZ,createMultiMap:()=>R,createNameResolver:()=>VT,createNodeConverters:()=>yE,createNodeFactory:()=>TE,createOptionNameMap:()=>fF,createOverload:()=>e9,createPackageJsonImportFilter:()=>E$,createPackageJsonInfo:()=>T$,createParenthesizerRules:()=>_E,createPatternMatcher:()=>w1,createPrinter:()=>WU,createPrinterWithDefaults:()=>BU,createPrinterWithRemoveComments:()=>VU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>HU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>UU,createProgram:()=>tG,createProgramDiagnostics:()=>mG,createProgramHost:()=>sq,createPropertyNameNodeForIdentifierOrLiteral:()=>lT,createQueue:()=>ft,createRange:()=>ox,createRedirectedBuilderProgram:()=>fK,createResolutionCache:()=>jK,createRuntimeTypeSerializer:()=>wH,createScanner:()=>Gs,createSemanticDiagnosticsBuilderProgram:()=>pK,createSet:()=>pt,createSolutionBuilder:()=>kq,createSolutionBuilderHost:()=>Eq,createSolutionBuilderWithWatch:()=>Aq,createSolutionBuilderWithWatchHost:()=>Dq,createSortedArray:()=>ve,createSourceFile:()=>gP,createSourceMapGenerator:()=>LB,createSourceMapSource:()=>RE,createSuperAccessVariableStatement:()=>OH,createSymbolTable:()=>Cf,createSymlinkCache:()=>vC,createSyntacticTypeNodeBuilder:()=>tie,createSystemWatchFunctions:()=>ja,createTextChange:()=>BZ,createTextChangeFromStartLength:()=>zZ,createTextChangeRange:()=>Tc,createTextRangeFromNode:()=>IZ,createTextRangeFromSpan:()=>RZ,createTextSpan:()=>xc,createTextSpanFromBounds:()=>Sc,createTextSpanFromNode:()=>PZ,createTextSpanFromRange:()=>LZ,createTextSpanFromStringLiteralLikeContent:()=>FZ,createTextWriter:()=>ry,createTokenRange:()=>dx,createTypeChecker:()=>_B,createTypeReferenceDirectiveResolutionCache:()=>JL,createTypeReferenceResolutionLoader:()=>VW,createWatchCompilerHost:()=>gq,createWatchCompilerHostOfConfigFile:()=>uq,createWatchCompilerHostOfFilesAndCompilerOptions:()=>dq,createWatchFactory:()=>rq,createWatchHost:()=>tq,createWatchProgram:()=>_q,createWatchStatusReporter:()=>LK,createWriteFileMeasuringIO:()=>lW,declarationNameToString:()=>lm,decodeMappings:()=>WB,decodedTextSpanIntersectsWith:()=>gc,deduplicate:()=>ge,defaultHoverMaximumTruncationLength:()=>bf,defaultInitCompilerOptions:()=>hF,defaultMaximumTruncationLength:()=>vf,diagnosticCategoryName:()=>Oi,diagnosticToString:()=>W$,diagnosticsEqualityComparer:()=>kS,directoryProbablyExists:()=>rx,directorySeparator:()=>Fa,displayPart:()=>EQ,displayPartsToString:()=>a4,disposeEmitNodes:()=>VE,documentSpansEqual:()=>_Q,dumpTracingLegend:()=>Nr,elementAt:()=>Ne,elideNodes:()=>kN,emitDetachedComments:()=>Ky,emitFiles:()=>IU,emitFilesAndReportErrors:()=>ZK,emitFilesAndReportErrorsAndGetExitStatus:()=>QK,emitModuleKindIsNonNodeESM:()=>tC,emitNewLineBeforeLeadingCommentOfPosition:()=>Gy,emitResolverSkipsTypeChecking:()=>FU,emitSkippedWithNoDiagnostics:()=>oG,emptyArray:()=>c,emptyFileSystemEntries:()=>ww,emptyMap:()=>l,emptyOptions:()=>GY,endsWith:()=>$t,ensurePathIsNonModuleName:()=>So,ensureScriptKind:()=>zC,ensureTrailingDirectorySeparator:()=>xo,entityNameToString:()=>pm,enumerateInsertsAndDeletes:()=>V,equalOwnProperties:()=>tt,equateStringsCaseInsensitive:()=>Nt,equateStringsCaseSensitive:()=>Pt,equateValues:()=>Mt,escapeJsxAttributeString:()=>Xv,escapeLeadingUnderscores:()=>Uc,escapeNonAsciiString:()=>Kv,escapeSnippetText:()=>sT,escapeString:()=>Wv,escapeTemplateSubstitution:()=>Bv,evaluatorResult:()=>LT,every:()=>v,exclusivelyPrefixedNodeCoreModules:()=>JT,executeCommandLine:()=>ZJ,expandPreOrPostfixIncrementOrDecrementExpression:()=>OM,explainFiles:()=>GK,explainIfFileIsRedirectAndImpliedFormat:()=>KK,exportAssignmentIsAlias:()=>W_,expressionResultIsUnused:()=>eT,extend:()=>ct,extensionFromPath:()=>bw,extensionIsTS:()=>vw,extensionsNotSupportingExtensionlessResolution:()=>XC,externalHelpersModuleNameText:()=>_f,factory:()=>J,fileExtensionIs:()=>qa,fileExtensionIsOneOf:()=>Ja,fileIncludeReasonToDiagnostics:()=>YK,fileShouldUseJavaScriptRequire:()=>Y$,filter:()=>E,filterMutate:()=>D,filterSemanticDiagnostics:()=>cG,find:()=>y,findAncestor:()=>K,findBestPatternMatch:()=>fn,findChildOfKind:()=>YX,findComputedPropertyNameCacheAssignment:()=>LN,findConfigFile:()=>iW,findConstructorDeclaration:()=>BT,findContainingList:()=>XX,findDiagnosticForNode:()=>k$,findFirstNonJsxWhitespaceToken:()=>rZ,findIndex:()=>x,findLast:()=>b,findLastIndex:()=>S,findListItemInfo:()=>qX,findModifier:()=>pQ,findNextToken:()=>aZ,findPackageJson:()=>w$,findPackageJsons:()=>C$,findPrecedingMatchingToken:()=>hZ,findPrecedingToken:()=>oZ,findSuperStatementIndexPath:()=>_V,findTokenOnLeftOfPosition:()=>iZ,findUseStrictPrologue:()=>NM,first:()=>Ie,firstDefined:()=>p,firstDefinedIterator:()=>m,firstIterator:()=>Le,firstOrOnly:()=>P$,firstOrUndefined:()=>Pe,firstOrUndefinedIterator:()=>Fe,fixupCompilerOptions:()=>G1,flatMap:()=>re,flatMapIterator:()=>ae,flatMapToMutable:()=>ie,flatten:()=>ne,flattenCommaList:()=>zN,flattenDestructuringAssignment:()=>IV,flattenDestructuringBinding:()=>VV,flattenDiagnosticMessageText:()=>DW,forEach:()=>d,forEachAncestor:()=>jf,forEachAncestorDirectory:()=>Lo,forEachAncestorDirectoryStoppingAtGlobalCache:()=>GR,forEachChild:()=>pP,forEachChildRecursively:()=>mP,forEachDynamicImportOrRequireCall:()=>XT,forEachEmittedFile:()=>_U,forEachEnclosingBlockScopeContainer:()=>uee,forEachEntry:()=>Mf,forEachExternalModuleToImportFrom:()=>r1,forEachImportClauseDeclaration:()=>Qg,forEachKey:()=>Nf,forEachLeadingCommentRange:()=>Ps,forEachNameInAccessChainWalkingLeft:()=>tS,forEachNameOfDefaultExport:()=>s1,forEachOptionsSyntaxByName:()=>aE,forEachProjectReference:()=>tE,forEachPropertyAssignment:()=>gh,forEachResolvedProjectReference:()=>eE,forEachReturnStatement:()=>nh,forEachRight:()=>f,forEachTrailingCommentRange:()=>Fs,forEachTsConfigPropArray:()=>yh,forEachUnique:()=>yQ,forEachYieldExpression:()=>rh,formatColorAndReset:()=>CW,formatDiagnostic:()=>mW,formatDiagnostics:()=>pW,formatDiagnosticsWithColorAndContext:()=>EW,formatGeneratedName:()=>NN,formatGeneratedNamePart:()=>jN,formatLocation:()=>TW,formatMessage:()=>yS,formatStringFromArgs:()=>uS,formatting:()=>k7,generateDjb2Hash:()=>ra,generateTSConfig:()=>fI,getAdjustedReferenceLocation:()=>QX,getAdjustedRenameLocation:()=>$X,getAliasDeclarationFromName:()=>H_,getAllAccessorDeclarations:()=>Iy,getAllDecoratorsOfClass:()=>TV,getAllDecoratorsOfClassElement:()=>EV,getAllJSDocTags:()=>Pl,getAllJSDocTagsOfKind:()=>Fl,getAllKeys:()=>Xe,getAllProjectOutputs:()=>MU,getAllSuperTypeNodes:()=>Y_,getAllowImportingTsExtensions:()=>RS,getAllowJSCompilerOption:()=>$S,getAllowSyntheticDefaultImports:()=>GS,getAncestor:()=>Q_,getAnyExtensionFromPath:()=>ro,getAreDeclarationMapsEnabled:()=>QS,getAssignedExpandoInitializer:()=>_g,getAssignedName:()=>tl,getAssignmentDeclarationKind:()=>Eg,getAssignmentDeclarationPropertyAccessKind:()=>Rg,getAssignmentTargetKind:()=>T_,getAutomaticTypeDirectiveNames:()=>FL,getBaseFileName:()=>eo,getBinaryOperatorPrecedence:()=>Lv,getBuildInfo:()=>RU,getBuildInfoFileVersionMap:()=>uK,getBuildInfoText:()=>LU,getBuildOrderFromAnyBuildOrder:()=>Cq,getBuilderCreationParameters:()=>eK,getBuilderFileEmit:()=>xG,getCanonicalDiagnostic:()=>wm,getCheckFlags:()=>jx,getClassExtendsHeritageElement:()=>q_,getClassLikeDeclarationOfSymbol:()=>Ux,getCombinedLocalAndExportSymbolFlags:()=>Px,getCombinedModifierFlags:()=>Pc,getCombinedNodeFlags:()=>Ic,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Fc,getCommentRange:()=>$E,getCommonSourceDirectory:()=>AU,getCommonSourceDirectoryOfConfig:()=>jU,getCompilerOptionValue:()=>pC,getConditions:()=>NL,getConfigFileParsingDiagnostics:()=>XW,getConstantValue:()=>cD,getContainerFlags:()=>xz,getContainerNode:()=>NX,getContainingClass:()=>Sh,getContainingClassExcludingClassDecorators:()=>Th,getContainingClassStaticBlock:()=>Ch,getContainingFunction:()=>bh,getContainingFunctionDeclaration:()=>xh,getContainingFunctionOrClassStaticBlock:()=>wh,getContainingNodeArray:()=>nT,getContainingObjectLiteralElement:()=>p4,getContextualTypeFromParent:()=>a$,getContextualTypeFromParentOrAncestorTypeNode:()=>ZX,getDeclarationDiagnostics:()=>tU,getDeclarationEmitExtensionForPath:()=>my,getDeclarationEmitOutputFilePath:()=>fy,getDeclarationEmitOutputFilePathWorker:()=>py,getDeclarationFileExtension:()=>kP,getDeclarationFromName:()=>z_,getDeclarationModifierFlagsFromSymbol:()=>Mx,getDeclarationOfKind:()=>xf,getDeclarationsOfKind:()=>Sf,getDeclaredExpandoInitializer:()=>gg,getDecorators:()=>nl,getDefaultCompilerOptions:()=>o4,getDefaultFormatCodeSettings:()=>$Y,getDefaultLibFileName:()=>ic,getDefaultLibFilePath:()=>h4,getDefaultLikeExportInfo:()=>o1,getDefaultLikeExportNameFromDeclaration:()=>I$,getDefaultResolutionModeForFileWorker:()=>aG,getDiagnosticText:()=>MF,getDiagnosticsWithinSpan:()=>A$,getDirectoryPath:()=>$a,getDirectoryToWatchFailedLookupLocation:()=>wK,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>DK,getDocumentPositionMapper:()=>I1,getDocumentSpansEqualityComparer:()=>vQ,getESModuleInterop:()=>WS,getEditsForFileRename:()=>v1,getEffectiveBaseTypeNode:()=>K_,getEffectiveConstraintOfTypeParameter:()=>zl,getEffectiveContainerForJSDocTemplateTag:()=>h_,getEffectiveImplementsTypeNodes:()=>J_,getEffectiveInitializer:()=>hg,getEffectiveJSDocHost:()=>v_,getEffectiveModifierFlags:()=>ub,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>db,getEffectiveModifierFlagsNoCache:()=>gb,getEffectiveReturnTypeNode:()=>zy,getEffectiveSetAccessorTypeAnnotationNode:()=>Hy,getEffectiveTypeAnnotationNode:()=>Ly,getEffectiveTypeParameterDeclarations:()=>Rl,getEffectiveTypeRoots:()=>AL,getElementOrPropertyAccessArgumentExpressionOrName:()=>Ig,getElementOrPropertyAccessName:()=>Lg,getElementsOfBindingOrAssignmentPattern:()=>rN,getEmitDeclarations:()=>YS,getEmitFlags:()=>kp,getEmitHelpers:()=>pD,getEmitModuleDetectionKind:()=>HS,getEmitModuleFormatOfFileWorker:()=>rG,getEmitModuleKind:()=>BS,getEmitModuleResolutionKind:()=>VS,getEmitScriptTarget:()=>zS,getEmitStandardClassFields:()=>lC,getEnclosingBlockScopeContainer:()=>cm,getEnclosingContainer:()=>sm,getEncodedSemanticClassifications:()=>l1,getEncodedSyntacticClassifications:()=>d1,getEndLinePosition:()=>tp,getEntityNameFromTypeNode:()=>Ih,getEntrypointsFromPackageJsonInfo:()=>CR,getErrorCountForSummary:()=>zK,getErrorSpanForNode:()=>Om,getErrorSummaryText:()=>UK,getEscapedTextOfIdentifierOrLiteral:()=>_v,getEscapedTextOfJsxAttributeName:()=>CT,getEscapedTextOfJsxNamespacedName:()=>ET,getExpandoInitializer:()=>vg,getExportAssignmentExpression:()=>G_,getExportInfoMap:()=>a1,getExportNeedsImportStarHelper:()=>rV,getExpressionAssociativity:()=>jv,getExpressionPrecedence:()=>Nv,getExternalHelpersModuleName:()=>UM,getExternalModuleImportEqualsDeclarationExpression:()=>Zh,getExternalModuleName:()=>Yg,getExternalModuleNameFromDeclaration:()=>ly,getExternalModuleNameFromPath:()=>uy,getExternalModuleNameLiteral:()=>JM,getExternalModuleRequireArgument:()=>Qh,getFallbackOptions:()=>nW,getFileEmitOutput:()=>hG,getFileMatcherPatterns:()=>IC,getFileNamesFromConfigSpecs:()=>eL,getFileWatcherEventKind:()=>ba,getFilesInErrorForSummary:()=>BK,getFirstConstructorWithBody:()=>Dy,getFirstIdentifier:()=>Nb,getFirstNonSpaceCharacterPosition:()=>YQ,getFirstProjectOutput:()=>PU,getFixableErrorSpanExpression:()=>M$,getFormatCodeSettingsForWriting:()=>G$,getFullWidth:()=>If,getFunctionFlags:()=>cv,getHeritageClause:()=>Z_,getHostSignatureFromJSDoc:()=>__,getIdentifierAutoGenerate:()=>CD,getIdentifierGeneratedImportReference:()=>TD,getIdentifierTypeArguments:()=>xD,getImmediatelyInvokedFunctionExpression:()=>jh,getImpliedNodeFormatForEmitWorker:()=>iG,getImpliedNodeFormatForFile:()=>ZW,getImpliedNodeFormatForFileWorker:()=>QW,getImportNeedsImportDefaultHelper:()=>aV,getImportNeedsImportStarHelper:()=>iV,getIndentString:()=>ty,getInferredLibraryNameResolveFrom:()=>WW,getInitializedVariables:()=>Dx,getInitializerOfBinaryExpression:()=>zg,getInitializerOfBindingOrAssignmentElement:()=>ZM,getInterfaceBaseTypeNodes:()=>X_,getInternalEmitFlags:()=>Ap,getInvokedExpression:()=>Lh,getIsFileExcluded:()=>i1,getIsolatedModules:()=>US,getJSDocAugmentsTag:()=>ul,getJSDocClassTag:()=>fl,getJSDocCommentRanges:()=>Ym,getJSDocCommentsAndTags:()=>u_,getJSDocDeprecatedTag:()=>xl,getJSDocDeprecatedTagNoCache:()=>Sl,getJSDocEnumTag:()=>Cl,getJSDocHost:()=>y_,getJSDocImplementsTags:()=>dl,getJSDocOverloadTags:()=>g_,getJSDocOverrideTagNoCache:()=>bl,getJSDocParameterTags:()=>il,getJSDocParameterTagsNoCache:()=>al,getJSDocPrivateTag:()=>hl,getJSDocPrivateTagNoCache:()=>gl,getJSDocProtectedTag:()=>_l,getJSDocProtectedTagNoCache:()=>vl,getJSDocPublicTag:()=>pl,getJSDocPublicTagNoCache:()=>ml,getJSDocReadonlyTag:()=>tee,getJSDocReadonlyTagNoCache:()=>yl,getJSDocReturnTag:()=>Tl,getJSDocReturnType:()=>Al,getJSDocRoot:()=>b_,getJSDocSatisfiesExpressionType:()=>xT,getJSDocSatisfiesTag:()=>Dl,getJSDocTags:()=>Ml,getJSDocTemplateTag:()=>El,getJSDocThisTag:()=>wl,getJSDocType:()=>kl,getJSDocTypeAliasName:()=>iN,getJSDocTypeAssertionType:()=>RM,getJSDocTypeParameterDeclarations:()=>By,getJSDocTypeParameterTags:()=>sl,getJSDocTypeParameterTagsNoCache:()=>cl,getJSDocTypeTag:()=>Ol,getJSXImplicitImportBase:()=>hC,getJSXRuntimeImport:()=>gC,getJSXTransformEnabled:()=>mC,getKeyForCompilerOptions:()=>zL,getLanguageVariant:()=>MS,getLastChild:()=>qx,getLeadingCommentRanges:()=>zs,getLeadingCommentRangesOfNode:()=>Jm,getLeftmostAccessExpression:()=>eS,getLeftmostExpression:()=>nS,getLibFileNameFromLibReference:()=>$T,getLibNameFromLibReference:()=>QT,getLibraryNameFromLibFileName:()=>GW,getLineAndCharacterOfPosition:()=>gs,getLineInfo:()=>VB,getLineOfLocalPosition:()=>Ty,getLineStartPositionForPosition:()=>IX,getLineStarts:()=>fs,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Cx,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Sx,getLinesBetweenPositions:()=>hs,getLinesBetweenRangeEndAndRangeStart:()=>_x,getLinesBetweenRangeEndPositions:()=>vx,getLiteralText:()=>Np,getLocalNameForExternalImport:()=>qM,getLocalSymbolForExportDefault:()=>Gb,getLocaleSpecificMessage:()=>mS,getLocaleTimeString:()=>IK,getMappedContextSpan:()=>CQ,getMappedDocumentSpan:()=>SQ,getMappedLocation:()=>xQ,getMatchedFileSpec:()=>qK,getMatchedIncludeSpec:()=>JK,getMeaningFromDeclaration:()=>fX,getMeaningFromLocation:()=>pX,getMembersOfDeclaration:()=>ah,getModeForFileReference:()=>OW,getModeForResolutionAtIndex:()=>kW,getModeForUsageLocation:()=>jW,getModifiedTime:()=>ca,getModifiers:()=>rl,getModuleInstanceState:()=>uz,getModuleNameStringLiteralAt:()=>pG,getModuleSpecifierEndingPreference:()=>iw,getModuleSpecifierResolverHost:()=>$Z,getNameForExportedSymbol:()=>F$,getNameFromImportAttribute:()=>FT,getNameFromIndexInfo:()=>dee,getNameFromPropertyName:()=>JZ,getNameOfAccessExpression:()=>Qx,getNameOfCompilerOptionValue:()=>cI,getNameOfDeclaration:()=>el,getNameOfExpando:()=>bg,getNameOfJSDocTypedef:()=>Zc,getNameOfScriptTarget:()=>cC,getNameOrArgument:()=>Ng,getNameTable:()=>f4,getNamespaceDeclarationNode:()=>Xg,getNewLineCharacter:()=>ax,getNewLineKind:()=>U$,getNewLineOrDefaultFromHost:()=>zQ,getNewTargetContainer:()=>kh,getNextJSDocCommentLocation:()=>p_,getNodeChildren:()=>lM,getNodeForGeneratedName:()=>AN,getNodeId:()=>mB,getNodeKind:()=>PX,getNodeModifiers:()=>SZ,getNodeModulePathParts:()=>dT,getNonAssignedNameOfDeclaration:()=>$c,getNonAssignmentOperatorForCompoundAssignment:()=>mV,getNonAugmentationDeclaration:()=>qp,getNonDecoratorTokenPosOfNode:()=>vp,getNonIncrementalBuildInfoRoots:()=>dK,getNonModifierTokenPosOfNode:()=>yp,getNormalizedAbsolutePath:()=>po,getNormalizedAbsolutePathWithoutRoot:()=>_o,getNormalizedPathComponents:()=>fo,getObjectFlags:()=>Wx,getOperatorAssociativity:()=>Mv,getOperatorPrecedence:()=>Iv,getOptionFromName:()=>EF,getOptionsForLibraryResolution:()=>YL,getOptionsNameMap:()=>pF,getOptionsSyntaxByArrayElementValue:()=>nE,getOptionsSyntaxByValue:()=>iE,getOrCreateEmitNode:()=>BE,getOrUpdate:()=>oe,getOriginalNode:()=>Bc,getOriginalNodeId:()=>$B,getOutputDeclarationFileName:()=>CU,getOutputDeclarationFileNameWorker:()=>wU,getOutputExtension:()=>xU,getOutputFileNames:()=>NU,getOutputJSFileNameWorker:()=>EU,getOutputPathsFor:()=>bU,getOwnEmitOutputFilePath:()=>dy,getOwnKeys:()=>Ye,getOwnValues:()=>Ze,getPackageJsonTypesVersionsPaths:()=>kL,getPackageNameFromTypesPackageName:()=>$R,getPackageScopeForPath:()=>ER,getParameterSymbolFromJSDoc:()=>m_,getParentNodeInSpan:()=>fQ,getParseTreeNode:()=>Hc,getParsedCommandLineOfConfigFile:()=>NF,getPathComponents:()=>ao,getPathFromPathComponents:()=>oo,getPathUpdater:()=>y1,getPathsBasePath:()=>_y,getPatternFromSpec:()=>NC,getPendingEmitKindWithSeen:()=>PG,getPositionOfLineAndCharacter:()=>us,getPossibleGenericSignatures:()=>_Z,getPossibleOriginalInputExtensionForExtension:()=>hy,getPossibleOriginalInputPathWithoutChangingExt:()=>gy,getPossibleTypeArgumentsInfo:()=>vZ,getPreEmitDiagnostics:()=>fW,getPrecedingNonSpaceCharacterPosition:()=>XQ,getPrivateIdentifier:()=>kV,getProperties:()=>vV,getProperty:()=>Je,getPropertyAssignmentAliasLikeExpression:()=>bee,getPropertyNameForPropertyNameNode:()=>mv,getPropertyNameFromType:()=>AT,getPropertyNameOfBindingOrAssignmentElement:()=>eN,getPropertySymbolFromBindingElement:()=>dQ,getPropertySymbolsFromContextualType:()=>m4,getQuoteFromPreference:()=>oQ,getQuotePreference:()=>aQ,getRangesWhere:()=>ue,getRefactorContextSpan:()=>j$,getReferencedFileLocation:()=>JW,getRegexFromPattern:()=>LC,getRegularExpressionForWildcard:()=>AC,getRegularExpressionsForWildcards:()=>jC,getRelativePathFromDirectory:()=>No,getRelativePathFromFile:()=>Fo,getRelativePathToDirectoryOrUrl:()=>Io,getRenameLocation:()=>$Q,getReplacementSpanForContextToken:()=>NZ,getResolutionDiagnostic:()=>dG,getResolutionModeOverride:()=>PW,getResolveJsonModule:()=>JS,getResolvePackageJsonExports:()=>KS,getResolvePackageJsonImports:()=>qS,getResolvedExternalModuleName:()=>sy,getResolvedModuleFromResolution:()=>zf,getResolvedTypeReferenceDirectiveFromResolution:()=>Bf,getRestIndicatorOfBindingOrAssignmentElement:()=>$M,getRestParameterElementType:()=>ih,getRightMostAssignedExpression:()=>Sg,getRootDeclaration:()=>Dv,getRootDirectoryOfResolutionCache:()=>OK,getRootLength:()=>Qa,getScriptKind:()=>KQ,getScriptKindFromFileName:()=>BC,getScriptTargetFeatures:()=>jp,getSelectedEffectiveModifierFlags:()=>sb,getSelectedSyntacticModifierFlags:()=>cb,getSemanticClassifications:()=>c1,getSemanticJsxChildren:()=>Rv,getSetAccessorTypeAnnotationNode:()=>ky,getSetAccessorValueParameter:()=>Oy,getSetExternalModuleIndicator:()=>PS,getShebang:()=>Vs,getSingleVariableOfVariableStatement:()=>o_,getSnapshotText:()=>GZ,getSnippetElement:()=>hD,getSourceFileOfModule:()=>Xf,getSourceFileOfNode:()=>Yf,getSourceFilePathInNewDir:()=>by,getSourceFileVersionAsHashFromText:()=>aq,getSourceFilesToEmit:()=>vy,getSourceMapRange:()=>qE,getSourceMapper:()=>F1,getSourceTextOfNodeFromSourceFile:()=>bp,getSpanOfTokenAtPosition:()=>Tm,getSpellingSuggestion:()=>Qt,getStartPositionOfLine:()=>$f,getStartPositionOfRange:()=>xx,getStartsOnNewLine:()=>ZE,getStaticPropertiesAndClassStaticBlock:()=>bV,getStrictOptionValue:()=>sC,getStringComparer:()=>Ut,getSubPatternFromSpec:()=>PC,getSuperCallFromStatement:()=>hV,getSuperContainer:()=>Ah,getSupportedCodeFixes:()=>s4,getSupportedExtensions:()=>ZC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>QC,getSwitchedType:()=>u$,getSymbolId:()=>hB,getSymbolNameForPrivateIdentifier:()=>vv,getSymbolTarget:()=>qQ,getSyntacticClassifications:()=>u1,getSyntacticModifierFlags:()=>fb,getSyntacticModifierFlagsNoCache:()=>_b,getSynthesizedDeepClone:()=>oE,getSynthesizedDeepCloneWithReplacements:()=>sE,getSynthesizedDeepClones:()=>lE,getSynthesizedDeepClonesWithReplacements:()=>uE,getSyntheticLeadingComments:()=>tD,getSyntheticTrailingComments:()=>iD,getTargetLabel:()=>SX,getTargetOfBindingOrAssignmentElement:()=>QM,getTemporaryModuleResolutionState:()=>TR,getTextOfConstantValue:()=>Fp,getTextOfIdentifierOrLiteral:()=>gv,getTextOfJSDocComment:()=>Il,getTextOfJsxAttributeName:()=>wT,getTextOfJsxNamespacedName:()=>DT,getTextOfNode:()=>Ep,getTextOfNodeFromSourceText:()=>Tp,getTextOfPropertyName:()=>fm,getThisContainer:()=>Eh,getThisParameter:()=>Ay,getTokenAtPosition:()=>nZ,getTokenPosOfNode:()=>_p,getTokenSourceMapRange:()=>YE,getTouchingPropertyName:()=>eZ,getTouchingToken:()=>tZ,getTrailingCommentRanges:()=>Bs,getTrailingSemicolonDeferringWriter:()=>iy,getTransformers:()=>uU,getTsBuildInfoEmitOutputFilePath:()=>vU,getTsConfigObjectLiteralExpression:()=>_h,getTsConfigPropArrayElementValue:()=>vh,getTypeAnnotationNode:()=>Ry,getTypeArgumentOrTypeParameterList:()=>CZ,getTypeKeywordOfTypeOnlyImport:()=>hQ,getTypeNode:()=>yD,getTypeNodeIfAccessible:()=>f$,getTypeParameterFromJsDoc:()=>x_,getTypeParameterOwner:()=>Oc,getTypesPackageName:()=>ZR,getUILocale:()=>qt,getUniqueName:()=>QQ,getUniqueSymbolId:()=>JQ,getUseDefineForClassFields:()=>eC,getWatchErrorSummaryDiagnosticMessage:()=>VK,getWatchFactory:()=>tW,group:()=>at,groupBy:()=>ot,guessIndentation:()=>lf,handleNoEmitOptions:()=>sG,handleWatchOptionsConfigDirTemplateSubstitution:()=>xI,hasAbstractModifier:()=>nb,hasAccessorModifier:()=>ib,hasAmbientModifier:()=>rb,hasChangesInResolutions:()=>Kf,hasContextSensitiveParameters:()=>rT,hasDecorators:()=>ob,hasDocComment:()=>bZ,hasDynamicName:()=>fv,hasEffectiveModifier:()=>Zy,hasEffectiveModifiers:()=>Xy,hasEffectiveReadonlyModifier:()=>ab,hasExtension:()=>Ka,hasImplementationTSFileExtension:()=>tw,hasIndexSignature:()=>l$,hasInferredType:()=>WT,hasInitializer:()=>rf,hasInvalidEscape:()=>Hv,hasJSDocNodes:()=>tf,hasJSDocParameterTags:()=>ll,hasJSFileExtension:()=>$C,hasJsonModuleEmitEnabled:()=>nC,hasOnlyExpressionInitializer:()=>af,hasOverrideModifier:()=>tb,hasPossibleExternalModuleReference:()=>am,hasProperty:()=>qe,hasPropertyAccessExpressionWithName:()=>CX,hasQuestionToken:()=>$g,hasRecordedExternalHelpers:()=>WM,hasResolutionModeOverride:()=>MT,hasRestParameter:()=>ff,hasScopeMarker:()=>nee,hasStaticModifier:()=>eb,hasSyntacticModifier:()=>Qy,hasSyntacticModifiers:()=>Aee,hasTSFileExtension:()=>ew,hasTabstop:()=>gT,hasTrailingDirectorySeparator:()=>Ya,hasType:()=>nf,hasTypeArguments:()=>S_,hasZeroOrOneAsteriskCharacter:()=>_C,hostGetCanonicalFileName:()=>oy,hostUsesCaseSensitiveFileNames:()=>ay,idText:()=>Gc,identifierIsThisKeyword:()=>Fy,identifierToKeywordKind:()=>Kc,identity:()=>wt,identitySourceMapConsumer:()=>QB,ignoreSourceNewlines:()=>_D,ignoredPaths:()=>xa,importFromModuleSpecifier:()=>Kg,importSyntaxAffectsModuleResolution:()=>FS,indexOfAnyCharCode:()=>w,indexOfNode:()=>Op,indicesOf:()=>pe,inferredTypesContainingFile:()=>UW,injectClassNamedEvaluationHelperBlockIfMissing:()=>aH,injectClassThisAssignmentIfMissing:()=>QV,insertImports:()=>mQ,insertSorted:()=>ye,insertStatementAfterCustomPrologue:()=>pp,insertStatementAfterStandardPrologue:()=>fp,insertStatementsAfterCustomPrologue:()=>dp,insertStatementsAfterStandardPrologue:()=>up,intersperse:()=>_,intrinsicTagNameToString:()=>OT,introducesArgumentsExoticObject:()=>dh,inverseJsxOptionMap:()=>HP,isAbstractConstructorSymbol:()=>Hx,isAbstractModifier:()=>EO,isAccessExpression:()=>Zx,isAccessibilityModifier:()=>OZ,isAccessor:()=>Bu,isAccessorModifier:()=>OO,isAliasableExpression:()=>U_,isAmbientModule:()=>zp,isAmbientPropertyDeclaration:()=>Zp,isAnyDirectorySeparator:()=>za,isAnyImportOrBareOrAccessedRequire:()=>nm,isAnyImportOrReExport:()=>om,isAnyImportOrRequireStatement:()=>rm,isAnyImportSyntax:()=>tm,isAnySupportedFileExtension:()=>xw,isApplicableVersionedTypesKey:()=>VR,isArgumentExpressionOfElementAccess:()=>kX,isArray:()=>mt,isArrayBindingElement:()=>Qu,isArrayBindingOrAssignmentElement:()=>ad,isArrayBindingOrAssignmentPattern:()=>id,isArrayBindingPattern:()=>yk,isArrayLiteralExpression:()=>xk,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>AZ,isArrayTypeNode:()=>ek,isArrowFunction:()=>jk,isAsExpression:()=>Kk,isAssertClause:()=>FA,isAssertEntry:()=>IA,isAssertionExpression:()=>yd,isAssertsKeyword:()=>SO,isAssignmentDeclaration:()=>mg,isAssignmentExpression:()=>kb,isAssignmentOperator:()=>Eb,isAssignmentPattern:()=>Zu,isAssignmentTarget:()=>E_,isAsteriskToken:()=>fO,isAsyncFunction:()=>lv,isAsyncModifier:()=>xO,isAutoAccessorPropertyDeclaration:()=>Vu,isAwaitExpression:()=>Fk,isAwaitKeyword:()=>CO,isBigIntLiteral:()=>eO,isBinaryExpression:()=>Rk,isBinaryLogicalOperator:()=>bb,isBinaryOperatorToken:()=>CN,isBindableObjectDefinePropertyCall:()=>Dg,isBindableStaticAccessExpression:()=>Ag,isBindableStaticElementAccessExpression:()=>jg,isBindableStaticNameExpression:()=>Mg,isBindingElement:()=>bk,isBindingElementOfBareOrAccessedRequire:()=>gee,isBindingName:()=>Au,isBindingOrAssignmentElement:()=>ed,isBindingOrAssignmentPattern:()=>td,isBindingPattern:()=>Xu,isBlock:()=>tA,isBlockLike:()=>X$,isBlockOrCatchScoped:()=>Lp,isBlockScope:()=>Qp,isBlockScopedContainerTopLevel:()=>lee,isBooleanLiteral:()=>Pu,isBreakOrContinueStatement:()=>$l,isBreakStatement:()=>fA,isBuildCommand:()=>XJ,isBuildInfoFile:()=>gU,isBuilderProgram:()=>WK,isBundle:()=>yj,isCallChain:()=>Wl,isCallExpression:()=>Tk,isCallExpressionTarget:()=>hX,isCallLikeExpression:()=>ld,isCallLikeOrFunctionLikeExpression:()=>cd,isCallOrNewExpression:()=>ud,isCallOrNewExpressionTarget:()=>_X,isCallSignatureDeclaration:()=>GO,isCallToHelper:()=>QD,isCaseBlock:()=>kA,isCaseClause:()=>uj,isCaseKeyword:()=>jO,isCaseOrDefaultClause:()=>Yd,isCatchClause:()=>pj,isCatchClauseVariableDeclaration:()=>aT,isCatchClauseVariableDeclarationOrBindingElement:()=>Rp,isCheckJsEnabledForFile:()=>Cw,isCircularBuildOrder:()=>Sq,isClassDeclaration:()=>CA,isClassElement:()=>Ru,isClassExpression:()=>Uk,isClassInstanceProperty:()=>Hu,isClassLike:()=>zu,isClassMemberModifier:()=>Eu,isClassNamedEvaluationHelperBlock:()=>nH,isClassOrTypeElement:()=>Ku,isClassStaticBlockDeclaration:()=>VO,isClassThisAssignmentBlock:()=>XV,isColonToken:()=>hO,isCommaExpression:()=>FM,isCommaListExpression:()=>Qk,isCommaSequence:()=>IM,isCommaToken:()=>lO,isComment:()=>wZ,isCommonJsExportPropertyAssignment:()=>lh,isCommonJsExportedExpression:()=>ch,isCompoundAssignment:()=>pV,isComputedNonLiteralName:()=>um,isComputedPropertyName:()=>NO,isConciseBody:()=>Td,isConditionalExpression:()=>zk,isConditionalTypeNode:()=>sk,isConstAssertion:()=>zT,isConstTypeReference:()=>Xl,isConstructSignatureDeclaration:()=>KO,isConstructorDeclaration:()=>HO,isConstructorTypeNode:()=>ZO,isContextualKeyword:()=>nv,isContinueStatement:()=>dA,isCustomPrologue:()=>Wm,isDebuggerStatement:()=>yA,isDeclaration:()=>Ld,isDeclarationBindingElement:()=>$u,isDeclarationFileName:()=>OP,isDeclarationName:()=>R_,isDeclarationNameOfEnumOrNamespace:()=>Ex,isDeclarationReadonly:()=>Nm,isDeclarationStatement:()=>Rd,isDeclarationWithTypeParameterChildren:()=>em,isDeclarationWithTypeParameters:()=>$p,isDecorator:()=>IO,isDecoratorTarget:()=>gie,isDefaultClause:()=>dj,isDefaultImport:()=>Zg,isDefaultModifier:()=>bO,isDefaultedExpandoInitializer:()=>yg,isDeleteExpression:()=>Mk,isDeleteTarget:()=>I_,isDeprecatedDeclaration:()=>V$,isDestructuringAssignment:()=>Ab,isDiskPathRoot:()=>Ha,isDoStatement:()=>oA,isDocumentRegistryEntry:()=>p1,isDotDotDotToken:()=>cO,isDottedName:()=>Pb,isDynamicName:()=>pv,isEffectiveExternalModule:()=>Yp,isEffectiveStrictModeSourceFile:()=>Xp,isElementAccessChain:()=>Ul,isElementAccessExpression:()=>wk,isEmittedFileOfProgram:()=>$U,isEmptyArrayLiteral:()=>Wb,isEmptyBindingElement:()=>jc,isEmptyBindingPattern:()=>Ac,isEmptyObjectLiteral:()=>Ub,isEmptyStatement:()=>rA,isEmptyStringLiteral:()=>Wh,isEntityName:()=>Ou,isEntityNameExpression:()=>Mb,isEnumConst:()=>Mm,isEnumDeclaration:()=>EA,isEnumMember:()=>_j,isEqualityOperatorKind:()=>s$,isEqualsGreaterThanToken:()=>_O,isExclamationToken:()=>pO,isExcludedFile:()=>tL,isExclusivelyTypeOnlyImportOrExport:()=>AW,isExpandoPropertyDeclaration:()=>jT,isExportAssignment:()=>UA,isExportDeclaration:()=>WA,isExportModifier:()=>yO,isExportName:()=>jM,isExportNamespaceAsDefaultDeclaration:()=>xp,isExportOrDefaultModifier:()=>ON,isExportSpecifier:()=>KA,isExportsIdentifier:()=>Cg,isExportsOrModuleExportsOrAlias:()=>bz,isExpression:()=>q,isExpressionNode:()=>Kh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Sie,isExpressionOfOptionalChainRoot:()=>ql,isExpressionStatement:()=>iA,isExpressionWithTypeArguments:()=>Gk,isExpressionWithTypeArgumentsInClassExtendsClause:()=>jb,isExternalModule:()=>yP,isExternalModuleAugmentation:()=>Gp,isExternalModuleImportEqualsDeclaration:()=>Xh,isExternalModuleIndicator:()=>Cd,isExternalModuleNameRelative:()=>tc,isExternalModuleReference:()=>ZA,isExternalModuleSymbol:()=>Tf,isExternalOrCommonJsModule:()=>Am,isFileLevelReservedGeneratedIdentifier:()=>xu,isFileLevelUniqueName:()=>np,isFileProbablyExternalModule:()=>XN,isFirstDeclarationOfSymbolParameter:()=>wQ,isFixablePromiseHandler:()=>V1,isForInOrOfStatement:()=>wd,isForInStatement:()=>lA,isForInitializer:()=>Dd,isForOfStatement:()=>uA,isForStatement:()=>cA,isFullSourceFile:()=>eg,isFunctionBlock:()=>ph,isFunctionBody:()=>Ed,isFunctionDeclaration:()=>SA,isFunctionExpression:()=>Ak,isFunctionExpressionOrArrowFunction:()=>oT,isFunctionLike:()=>ju,isFunctionLikeDeclaration:()=>Nu,isFunctionLikeKind:()=>Iu,isFunctionLikeOrClassStaticBlockDeclaration:()=>Mu,isFunctionOrConstructorTypeNode:()=>Yu,isFunctionOrModuleBlock:()=>Lu,isFunctionSymbol:()=>Ug,isFunctionTypeNode:()=>XO,isGeneratedIdentifier:()=>yu,isGeneratedPrivateIdentifier:()=>bu,isGetAccessor:()=>ef,isGetAccessorDeclaration:()=>UO,isGetOrSetAccessorDeclaration:()=>Vl,isGlobalScopeAugmentation:()=>Wp,isGlobalSourceFile:()=>km,isGrammarError:()=>ap,isHeritageClause:()=>fj,isHoistedFunction:()=>Gm,isHoistedVariableStatement:()=>qm,isIdentifier:()=>Y,isIdentifierANonContextualKeyword:()=>av,isIdentifierName:()=>V_,isIdentifierOrThisTypeNode:()=>uN,isIdentifierPart:()=>Us,isIdentifierStart:()=>Hs,isIdentifierText:()=>Ws,isIdentifierTypePredicate:()=>mee,isIdentifierTypeReference:()=>Ww,isIfStatement:()=>aA,isIgnoredFileFromWildCardWatching:()=>QU,isImplicitGlob:()=>MC,isImportAttribute:()=>RA,isImportAttributeName:()=>vu,isImportAttributes:()=>LA,isImportCall:()=>Bm,isImportClause:()=>NA,isImportDeclaration:()=>MA,isImportEqualsDeclaration:()=>jA,isImportKeyword:()=>AO,isImportMeta:()=>Vm,isImportOrExportSpecifier:()=>fu,isImportOrExportSpecifierName:()=>GQ,isImportSpecifier:()=>HA,isImportTypeAssertionContainer:()=>PA,isImportTypeNode:()=>hk,isImportable:()=>t1,isInComment:()=>yZ,isInCompoundLikeAssignment:()=>D_,isInExpressionContext:()=>qh,isInJSDoc:()=>ag,isInJSFile:()=>ng,isInJSXText:()=>pZ,isInJsonFile:()=>rg,isInNonReferenceComment:()=>MZ,isInReferenceComment:()=>jZ,isInRightSideOfInternalImportEqualsDeclaration:()=>mX,isInString:()=>lZ,isInTemplateString:()=>fZ,isInTopLevelContext:()=>Oh,isInTypeQuery:()=>Ny,isIncrementalBuildInfo:()=>JG,isIncrementalBundleEmitBuildInfo:()=>qG,isIncrementalCompilation:()=>ZS,isIndexSignatureDeclaration:()=>qO,isIndexedAccessTypeNode:()=>fk,isInferTypeNode:()=>ck,isInfinityOrNaNString:()=>iT,isInitializedProperty:()=>SV,isInitializedVariable:()=>Ox,isInsideJsxElement:()=>mZ,isInsideJsxElementOrAttribute:()=>uZ,isInsideNodeModules:()=>O$,isInsideTemplateLiteral:()=>DZ,isInstanceOfExpression:()=>Vb,isInstantiatedModule:()=>gB,isInterfaceDeclaration:()=>wA,isInternalDeclaration:()=>hf,isInternalModuleImportEqualsDeclaration:()=>$h,isInternalName:()=>kM,isIntersectionTypeNode:()=>ok,isIntrinsicJsxName:()=>$v,isIterationStatement:()=>bd,isJSDoc:()=>Nj,isJSDocAllType:()=>Tj,isJSDocAugmentsTag:()=>Ij,isJSDocAuthorTag:()=>Lj,isJSDocCallbackTag:()=>zj,isJSDocClassTag:()=>Rj,isJSDocCommentContainingNode:()=>Zd,isJSDocConstructSignature:()=>e_,isJSDocDeprecatedTag:()=>Kj,isJSDocEnumTag:()=>Jj,isJSDocFunctionType:()=>Aj,isJSDocImplementsTag:()=>rM,isJSDocImportTag:()=>oM,isJSDocIndexSignature:()=>og,isJSDocLikeText:()=>YN,isJSDocLink:()=>Cj,isJSDocLinkCode:()=>wj,isJSDocLinkLike:()=>df,isJSDocLinkPlain:()=>hte,isJSDocMemberName:()=>Sj,isJSDocNameReference:()=>xj,isJSDocNamepathType:()=>Mj,isJSDocNamespaceBody:()=>kd,isJSDocNode:()=>Xd,isJSDocNonNullableType:()=>Oj,isJSDocNullableType:()=>Dj,isJSDocOptionalParameter:()=>_T,isJSDocOptionalType:()=>kj,isJSDocOverloadTag:()=>Gj,isJSDocOverrideTag:()=>Wj,isJSDocParameterTag:()=>Yj,isJSDocPrivateTag:()=>Vj,isJSDocPropertyLikeTag:()=>tu,isJSDocPropertyTag:()=>nM,isJSDocProtectedTag:()=>Hj,isJSDocPublicTag:()=>Bj,isJSDocReadonlyTag:()=>Uj,isJSDocReturnTag:()=>Xj,isJSDocSatisfiesExpression:()=>bT,isJSDocSatisfiesTag:()=>iM,isJSDocSeeTag:()=>qj,isJSDocSignature:()=>Fj,isJSDocTag:()=>Qd,isJSDocTemplateTag:()=>$j,isJSDocThisTag:()=>Zj,isJSDocThrowsTag:()=>aM,isJSDocTypeAlias:()=>t_,isJSDocTypeAssertion:()=>LM,isJSDocTypeExpression:()=>bj,isJSDocTypeLiteral:()=>Pj,isJSDocTypeTag:()=>Qj,isJSDocTypedefTag:()=>eM,isJSDocUnknownTag:()=>tM,isJSDocUnknownType:()=>Ej,isJSDocVariadicType:()=>jj,isJSXTagName:()=>Gh,isJsonEqual:()=>Pw,isJsonSourceFile:()=>jm,isJsxAttribute:()=>aj,isJsxAttributeLike:()=>Kd,isJsxAttributeName:()=>TT,isJsxAttributes:()=>oj,isJsxCallLike:()=>iee,isJsxChild:()=>Gd,isJsxClosingElement:()=>tj,isJsxClosingFragment:()=>ij,isJsxElement:()=>QA,isJsxExpression:()=>cj,isJsxFragment:()=>nj,isJsxNamespacedName:()=>lj,isJsxOpeningElement:()=>ej,isJsxOpeningFragment:()=>rj,isJsxOpeningLikeElement:()=>Jd,isJsxOpeningLikeElementTagName:()=>_ie,isJsxSelfClosingElement:()=>$A,isJsxSpreadAttribute:()=>sj,isJsxTagNameExpression:()=>Wd,isJsxText:()=>nO,isJumpStatementTarget:()=>wX,isKeyword:()=>$_,isKeywordOrPunctuation:()=>tv,isKnownSymbol:()=>yv,isLabelName:()=>EX,isLabelOfLabeledStatement:()=>TX,isLabeledStatement:()=>gA,isLateVisibilityPaintedStatement:()=>im,isLeftHandSideExpression:()=>fd,isLet:()=>Rm,isLineBreak:()=>ys,isLiteralComputedPropertyDeclarationName:()=>B_,isLiteralExpression:()=>su,isLiteralExpressionOfObject:()=>cu,isLiteralImportTypeNode:()=>Hm,isLiteralKind:()=>ou,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>MX,isLiteralTypeLiteral:()=>_d,isLiteralTypeNode:()=>mk,isLocalName:()=>AM,isLogicalOperator:()=>xb,isLogicalOrCoalescingAssignmentExpression:()=>Cb,isLogicalOrCoalescingAssignmentOperator:()=>Sb,isLogicalOrCoalescingBinaryExpression:()=>Tb,isLogicalOrCoalescingBinaryOperator:()=>wb,isMappedTypeNode:()=>pk,isMemberName:()=>Bl,isMetaProperty:()=>Yk,isMethodDeclaration:()=>BO,isMethodOrAccessor:()=>Uu,isMethodSignature:()=>zO,isMinusToken:()=>dO,isMissingDeclaration:()=>JA,isMissingPackageJsonInfo:()=>LL,isModifier:()=>Du,isModifierKind:()=>wu,isModifierLike:()=>Wu,isModuleAugmentationExternal:()=>Kp,isModuleBlock:()=>OA,isModuleBody:()=>Od,isModuleDeclaration:()=>DA,isModuleExportName:()=>qA,isModuleExportsAccessExpression:()=>Tg,isModuleIdentifier:()=>wg,isModuleName:()=>pN,isModuleOrEnumDeclaration:()=>jd,isModuleReference:()=>Ud,isModuleSpecifierLike:()=>lQ,isModuleWithStringLiteralName:()=>Bp,isNameOfFunctionDeclaration:()=>jX,isNameOfModuleDeclaration:()=>AX,isNamedDeclaration:()=>Qc,isNamedEvaluation:()=>wv,isNamedEvaluationSource:()=>Cv,isNamedExportBindings:()=>eu,isNamedExports:()=>GA,isNamedImportBindings:()=>Ad,isNamedImports:()=>VA,isNamedImportsOrExports:()=>$x,isNamedTupleMember:()=>nk,isNamespaceBody:()=>ree,isNamespaceExport:()=>BA,isNamespaceExportDeclaration:()=>AA,isNamespaceImport:()=>zA,isNamespaceReexportDeclaration:()=>Yh,isNewExpression:()=>Ek,isNewExpressionTarget:()=>gX,isNewScopeNode:()=>ZT,isNoSubstitutionTemplateLiteral:()=>iO,isNodeArray:()=>au,isNodeArrayMultiLine:()=>yx,isNodeDescendantOf:()=>L_,isNodeKind:()=>nu,isNodeLikeSystem:()=>En,isNodeModulesDirectory:()=>Ro,isNodeWithPossibleHoistedDeclaration:()=>O_,isNonContextualKeyword:()=>rv,isNonGlobalAmbientModule:()=>Vp,isNonNullAccess:()=>yT,isNonNullChain:()=>Ql,isNonNullExpression:()=>Jk,isNonStaticMethodOrAccessorWithPrivateName:()=>CV,isNotEmittedStatement:()=>YA,isNullishCoalesce:()=>Yl,isNumber:()=>_t,isNumericLiteral:()=>$D,isNumericLiteralName:()=>cT,isObjectBindingElementWithoutPropertyName:()=>uQ,isObjectBindingOrAssignmentElement:()=>rd,isObjectBindingOrAssignmentPattern:()=>nd,isObjectBindingPattern:()=>vk,isObjectLiteralElement:()=>of,isObjectLiteralElementLike:()=>qu,isObjectLiteralExpression:()=>Sk,isObjectLiteralMethod:()=>mh,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>hh,isObjectTypeDeclaration:()=>Yx,isOmittedExpression:()=>Wk,isOptionalChain:()=>Gl,isOptionalChainRoot:()=>Kl,isOptionalDeclaration:()=>vT,isOptionalJSDocPropertyLikeTag:()=>mT,isOptionalTypeNode:()=>rk,isOuterExpression:()=>zM,isOutermostOptionalChain:()=>Jl,isOverrideModifier:()=>DO,isPackageJsonInfo:()=>IL,isPackedArrayLiteral:()=>$w,isParameter:()=>FO,isParameterPropertyDeclaration:()=>kc,isParameterPropertyModifier:()=>Tu,isParenthesizedExpression:()=>kk,isParenthesizedTypeNode:()=>lk,isParseTreeNode:()=>Vc,isPartOfParameterDeclaration:()=>Ev,isPartOfTypeNode:()=>eh,isPartOfTypeOnlyImportOrExportDeclaration:()=>gu,isPartOfTypeQuery:()=>Jh,isPartiallyEmittedExpression:()=>Zk,isPatternMatch:()=>gn,isPinnedComment:()=>hp,isPlainJsFile:()=>Zf,isPlusToken:()=>uO,isPossiblyTypeArgumentPosition:()=>gZ,isPostfixUnaryExpression:()=>Lk,isPrefixUnaryExpression:()=>Ik,isPrimitiveLiteralValue:()=>HT,isPrivateIdentifier:()=>vO,isPrivateIdentifierClassElementDeclaration:()=>Su,isPrivateIdentifierPropertyAccessExpression:()=>Cu,isPrivateIdentifierSymbol:()=>bv,isProgramUptoDate:()=>YW,isPrologueDirective:()=>Um,isPropertyAccessChain:()=>Hl,isPropertyAccessEntityNameExpression:()=>Fb,isPropertyAccessExpression:()=>Ck,isPropertyAccessOrQualifiedName:()=>sd,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>od,isPropertyAssignment:()=>mj,isPropertyDeclaration:()=>RO,isPropertyName:()=>ku,isPropertyNameLiteral:()=>hv,isPropertySignature:()=>LO,isPrototypeAccess:()=>Lb,isPrototypePropertyAssignment:()=>Bg,isPunctuation:()=>ev,isPushOrUnshiftIdentifier:()=>Tv,isQualifiedName:()=>MO,isQuestionDotToken:()=>gO,isQuestionOrExclamationToken:()=>lN,isQuestionOrPlusOrMinusToken:()=>fN,isQuestionToken:()=>mO,isReadonlyKeyword:()=>wO,isReadonlyKeywordOrPlusOrMinusToken:()=>dN,isRecognizedTripleSlashComment:()=>mp,isReferenceFileLocation:()=>qW,isReferencedFile:()=>KW,isRegularExpressionLiteral:()=>rO,isRequireCall:()=>sg,isRequireVariableStatement:()=>dg,isRestParameter:()=>pf,isRestTypeNode:()=>ik,isReturnStatement:()=>pA,isReturnStatementWithFixablePromiseHandler:()=>B1,isRightSideOfAccessExpression:()=>zb,isRightSideOfInstanceofExpression:()=>Hb,isRightSideOfPropertyAccess:()=>OX,isRightSideOfQualifiedName:()=>xie,isRightSideOfQualifiedNameOrPropertyAccess:()=>Rb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Bb,isRootedDiskPath:()=>Va,isSameEntityName:()=>xg,isSatisfiesExpression:()=>qk,isSemicolonClassElement:()=>eA,isSetAccessor:()=>$d,isSetAccessorDeclaration:()=>WO,isShiftOperatorOrHigher:()=>vN,isShorthandAmbientModuleSymbol:()=>Up,isShorthandPropertyAssignment:()=>hj,isSideEffectImport:()=>GT,isSignedNumericLiteral:()=>dv,isSimpleCopiableExpression:()=>dV,isSimpleInlineableExpression:()=>fV,isSimpleParameterList:()=>NV,isSingleOrDoubleQuote:()=>fg,isSolutionConfig:()=>AI,isSourceElement:()=>IT,isSourceFile:()=>vj,isSourceFileFromLibrary:()=>q$,isSourceFileJS:()=>tg,isSourceFileNotJson:()=>ig,isSourceMapping:()=>KB,isSpecialPropertyDeclaration:()=>Vg,isSpreadAssignment:()=>gj,isSpreadElement:()=>Hk,isStatement:()=>Bd,isStatementButNotDeclaration:()=>zd,isStatementOrBlock:()=>Hd,isStatementWithLocals:()=>Qf,isStatic:()=>$y,isStaticModifier:()=>TO,isString:()=>gt,isStringANonContextualKeyword:()=>iv,isStringAndEmptyAnonymousObjectIntersection:()=>EZ,isStringDoubleQuoted:()=>pg,isStringLiteral:()=>tO,isStringLiteralLike:()=>uf,isStringLiteralOrJsxExpression:()=>qd,isStringLiteralOrTemplate:()=>c$,isStringOrNumericLiteralLike:()=>uv,isStringOrRegularExpressionOrTemplateLiteral:()=>TZ,isStringTextContainingNode:()=>_u,isSuperCall:()=>zm,isSuperKeyword:()=>kO,isSuperProperty:()=>Mh,isSupportedSourceFileName:()=>ow,isSwitchStatement:()=>hA,isSyntaxList:()=>sM,isSyntheticExpression:()=>Xk,isSyntheticReference:()=>XA,isTagName:()=>DX,isTaggedTemplateExpression:()=>Dk,isTaggedTemplateTag:()=>vX,isTemplateExpression:()=>Bk,isTemplateHead:()=>aO,isTemplateLiteral:()=>dd,isTemplateLiteralKind:()=>lu,isTemplateLiteralToken:()=>uu,isTemplateLiteralTypeNode:()=>_k,isTemplateLiteralTypeSpan:()=>gk,isTemplateMiddle:()=>oO,isTemplateMiddleOrTemplateTail:()=>du,isTemplateSpan:()=>$k,isTemplateTail:()=>sO,isTextWhiteSpaceLike:()=>bQ,isThis:()=>FX,isThisContainerOrFunctionBlock:()=>Dh,isThisIdentifier:()=>My,isThisInTypeQuery:()=>Py,isThisInitializedDeclaration:()=>Ph,isThisInitializedObjectBindingExpression:()=>Fh,isThisProperty:()=>Nh,isThisTypeNode:()=>uk,isThisTypeParameter:()=>uT,isThisTypePredicate:()=>hee,isThrowStatement:()=>_A,isToken:()=>iu,isTokenKind:()=>ru,isTraceEnabled:()=>fL,isTransientSymbol:()=>wf,isTrivia:()=>ov,isTryStatement:()=>vA,isTupleTypeNode:()=>tk,isTypeAlias:()=>n_,isTypeAliasDeclaration:()=>TA,isTypeAssertionExpression:()=>Ok,isTypeDeclaration:()=>fT,isTypeElement:()=>Gu,isTypeKeyword:()=>HZ,isTypeKeywordTokenOrIdentifier:()=>UZ,isTypeLiteralNode:()=>$O,isTypeNode:()=>Ju,isTypeNodeKind:()=>Xx,isTypeOfExpression:()=>Nk,isTypeOnlyExportDeclaration:()=>mu,isTypeOnlyImportDeclaration:()=>pu,isTypeOnlyImportOrExportDeclaration:()=>hu,isTypeOperatorNode:()=>dk,isTypeParameterDeclaration:()=>PO,isTypePredicateNode:()=>JO,isTypeQueryNode:()=>QO,isTypeReferenceNode:()=>YO,isTypeReferenceType:()=>sf,isTypeUsableAsPropertyName:()=>kT,isUMDExportSymbol:()=>Gx,isUnaryExpression:()=>md,isUnaryExpressionWithWrite:()=>gd,isUnicodeIdentifierStart:()=>es,isUnionTypeNode:()=>ak,isUrl:()=>Ba,isValidBigIntString:()=>zw,isValidESSymbolDeclaration:()=>uh,isValidTypeOnlyAliasUseSite:()=>Bw,isValueSignatureDeclaration:()=>k_,isVarAwaitUsing:()=>Pm,isVarConst:()=>Im,isVarConstLike:()=>Lm,isVarUsing:()=>Fm,isVariableDeclaration:()=>bA,isVariableDeclarationInVariableStatement:()=>sh,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>lg,isVariableDeclarationInitializedToRequire:()=>cg,isVariableDeclarationList:()=>xA,isVariableLike:()=>oh,isVariableStatement:()=>nA,isVoidExpression:()=>Pk,isWatchSet:()=>kx,isWhileStatement:()=>sA,isWhiteSpaceLike:()=>_s,isWhiteSpaceSingleLine:()=>vs,isWithStatement:()=>mA,isWriteAccess:()=>Ix,isWriteOnlyAccess:()=>Fx,isYieldExpression:()=>Vk,jsxModeNeedsExplicitImport:()=>K$,keywordPart:()=>OQ,last:()=>ze,lastOrUndefined:()=>Re,length:()=>u,libMap:()=>GP,libs:()=>WP,lineBreakPart:()=>BQ,loadModuleFromGlobalCache:()=>az,loadWithModeAwareCache:()=>HW,makeIdentifierFromModuleName:()=>Ip,makeImport:()=>tQ,makeStringLiteral:()=>nQ,mangleScopedPackageName:()=>QR,map:()=>k,mapAllOrFail:()=>j,mapDefined:()=>M,mapDefinedIterator:()=>N,mapEntries:()=>le,mapIterator:()=>ee,mapOneOrMany:()=>N$,mapToDisplayParts:()=>VQ,matchFiles:()=>RC,matchPatternOrExact:()=>Tw,matchedText:()=>dn,matchesExclude:()=>rL,matchesExcludeWorker:()=>iL,maxBy:()=>Rt,maybeBind:()=>ut,maybeSetLocalizedDiagnosticMessages:()=>pS,memoize:()=>kt,memoizeOne:()=>At,min:()=>zt,minAndMax:()=>Qee,missingFileModifiedTime:()=>sa,modifierToFlag:()=>yb,modifiersToFlags:()=>vb,moduleExportNameIsDefault:()=>wp,moduleExportNameTextEscaped:()=>Cp,moduleExportNameTextUnescaped:()=>Sp,moduleOptionDeclaration:()=>YP,moduleResolutionIsEqualTo:()=>Rf,moduleResolutionNameAndModeGetter:()=>LW,moduleResolutionOptionDeclarations:()=>tF,moduleResolutionSupportsPackageJsonExportsAndImports:()=>aC,moduleResolutionUsesNodeModules:()=>eQ,moduleSpecifierToValidIdentifier:()=>R$,moduleSpecifiers:()=>wz,moduleSupportsImportAttributes:()=>oC,moduleSymbolToValidIdentifier:()=>L$,moveEmitHelpers:()=>mD,moveRangeEnd:()=>sx,moveRangePastDecorators:()=>lx,moveRangePastModifiers:()=>ux,moveRangePos:()=>cx,moveSyntheticComments:()=>sD,mutateMap:()=>Vx,mutateMapSkippingNewValues:()=>Bx,needsParentheses:()=>i$,needsScopeMarker:()=>Sd,newCaseClauseTracker:()=>J$,newPrivateEnvironment:()=>OV,noEmitNotification:()=>pU,noEmitSubstitution:()=>fU,noTransformers:()=>lU,noTruncationMaximumTruncationLength:()=>yf,nodeCanBeDecorated:()=>Rh,nodeCoreModules:()=>YT,nodeHasName:()=>Xc,nodeIsDecorated:()=>zh,nodeIsMissing:()=>rp,nodeIsPresent:()=>ip,nodeIsSynthesized:()=>kv,nodeModuleNameResolver:()=>aR,nodeModulesPathPart:()=>dR,nodeNextJsonConfigResolver:()=>oR,nodeOrChildIsDecorated:()=>Bh,nodeOverlapsWithStartEnd:()=>HX,nodePosToString:()=>ep,nodeSeenTracker:()=>WZ,nodeStartsNewLexicalEnvironment:()=>Ov,noop:()=>bt,noopFileWatcher:()=>$K,normalizePath:()=>mo,normalizeSlashes:()=>so,normalizeSpans:()=>bc,not:()=>yn,notImplemented:()=>Ot,notImplementedResolver:()=>zU,nullNodeConverters:()=>bE,nullParenthesizerRules:()=>vE,nullTransformationContext:()=>hU,objectAllocator:()=>oS,operatorPart:()=>AQ,optionDeclarations:()=>ZP,optionMapToObject:()=>aI,optionsAffectingProgramStructure:()=>rF,optionsForBuild:()=>lF,optionsForWatch:()=>KP,optionsHaveChanges:()=>Af,or:()=>vn,orderedRemoveItem:()=>rn,orderedRemoveItemAt:()=>an,packageIdToPackageName:()=>Uf,packageIdToString:()=>Wf,parameterIsThisKeyword:()=>jy,parameterNamePart:()=>jQ,parseBaseNodeFactory:()=>KN,parseBigInt:()=>Lw,parseBuildCommand:()=>jF,parseCommandLine:()=>TF,parseCommandLineWorker:()=>SF,parseConfigFileTextToJson:()=>FF,parseConfigFileWithSystem:()=>RK,parseConfigHostFromCompilerHostLike:()=>lG,parseCustomTypeOption:()=>vF,parseIsolatedEntityName:()=>_P,parseIsolatedJSDocComment:()=>xP,parseJSDocTypeExpressionForTests:()=>Bte,parseJsonConfigFileContent:()=>mI,parseJsonSourceFileConfigFileContent:()=>hI,parseJsonText:()=>vP,parseListTypeOption:()=>yF,parseNodeFactory:()=>qN,parseNodeModuleFromPath:()=>pR,parsePackageName:()=>NR,parsePseudoBigInt:()=>Fw,parseValidBigInt:()=>Rw,pasteEdits:()=>$7,patchWriteFileEnsuringDirectory:()=>Ma,pathContainsNodeModules:()=>fR,pathIsAbsolute:()=>Ua,pathIsBareSpecifier:()=>Ga,pathIsRelative:()=>Wa,patternText:()=>un,performIncrementalCompilation:()=>fq,performance:()=>cr,positionBelongsToNode:()=>WX,positionIsASICandidate:()=>h$,positionIsSynthesized:()=>_w,positionsAreOnSameLine:()=>bx,preProcessFile:()=>$ae,probablyUsesSemicolons:()=>g$,processCommentPragmas:()=>jP,processPragmasIntoFields:()=>MP,processTaggedTemplateExpression:()=>mH,programContainsEsModules:()=>XZ,programContainsModules:()=>YZ,projectReferenceIsEqualTo:()=>Lf,propertyNamePart:()=>MQ,pseudoBigIntToString:()=>Iw,punctuationPart:()=>kQ,pushIfUnique:()=>De,quote:()=>o$,quotePreferenceFromString:()=>iQ,rangeContainsPosition:()=>RX,rangeContainsPositionExclusive:()=>zX,rangeContainsRange:()=>wx,rangeContainsRangeExclusive:()=>LX,rangeContainsStartEnd:()=>BX,rangeEndIsOnSameLineAsRangeStart:()=>gx,rangeEndPositionsAreOnSameLine:()=>mx,rangeEquals:()=>Me,rangeIsOnSingleLine:()=>fx,rangeOfNode:()=>Ow,rangeOfTypeParameters:()=>kw,rangeOverlapsWithStartEnd:()=>VX,rangeStartIsOnSameLineAsRangeEnd:()=>hx,rangeStartPositionsAreOnSameLine:()=>px,readBuilderProgram:()=>pq,readConfigFile:()=>PF,readJson:()=>tx,readJsonConfigFile:()=>IF,readJsonOrUndefined:()=>ex,reduceEachLeadingCommentRange:()=>Is,reduceEachTrailingCommentRange:()=>Ls,reduceLeft:()=>Ge,reduceLeftIterator:()=>h,reducePathComponents:()=>co,refactor:()=>b0,regExpEscape:()=>wC,regularExpressionFlagToCharacterCode:()=>ss,relativeComplement:()=>Ce,removeAllComments:()=>HE,removeEmitHelper:()=>fD,removeExtension:()=>fw,removeFileExtension:()=>uw,removeIgnoredPath:()=>gK,removeMinAndVersionNumbers:()=>nn,removePrefix:()=>mn,removeSuffix:()=>en,removeTrailingDirectorySeparator:()=>bo,repeatString:()=>KZ,replaceElement:()=>Ue,replaceFirstStar:()=>PT,resolutionExtensionIsTSOrJson:()=>yw,resolveConfigFileProjectName:()=>yq,resolveJSModule:()=>$L,resolveLibrary:()=>XL,resolveModuleName:()=>QL,resolveModuleNameFromCache:()=>ZL,resolvePackageNameToPackageJson:()=>PL,resolvePath:()=>uo,resolveProjectReferencePath:()=>uG,resolveTripleslashReference:()=>aW,resolveTypeReferenceDirective:()=>jL,resolvingEmptyArray:()=>gf,returnFalse:()=>xt,returnNoopFileWatcher:()=>eq,returnTrue:()=>St,returnUndefined:()=>Ct,returnsPromise:()=>z1,rewriteModuleSpecifier:()=>PV,sameFlatMap:()=>A,sameMap:()=>te,sameMapping:()=>GB,scanTokenAtPosition:()=>Em,scanner:()=>uX,semanticDiagnosticsOptionDeclarations:()=>QP,serializeCompilerOptions:()=>lI,server:()=>KOe,servicesVersion:()=>Xue,setCommentRange:()=>eD,setConfigFileInOptions:()=>gI,setConstantValue:()=>lD,setEmitFlags:()=>UE,setGetSourceFileAsHashVersioned:()=>oq,setIdentifierAutoGenerate:()=>SD,setIdentifierGeneratedImportReference:()=>wD,setIdentifierTypeArguments:()=>bD,setInternalEmitFlags:()=>GE,setLocalizedDiagnosticMessages:()=>fS,setNodeChildren:()=>uM,setNodeFlags:()=>Xw,setObjectAllocator:()=>lS,setOriginalNode:()=>zE,setParent:()=>Zw,setParentRecursive:()=>Qw,setPrivateIdentifier:()=>AV,setSnippetElement:()=>gD,setSourceMapRange:()=>JE,setStackTraceLimit:()=>ia,setStartsOnNewLine:()=>QE,setSyntheticLeadingComments:()=>nD,setSyntheticTrailingComments:()=>aD,setSys:()=>Pa,setSysLog:()=>wa,setTextRange:()=>X,setTextRangeEnd:()=>qw,setTextRangePos:()=>Kw,setTextRangePosEnd:()=>Jw,setTextRangePosWidth:()=>Yw,setTokenSourceMapRange:()=>XE,setTypeNode:()=>vD,setUILocale:()=>Jt,setValueDeclaration:()=>Hg,shouldAllowImportingTsExtension:()=>iz,shouldPreserveConstEnums:()=>XS,shouldRewriteModuleSpecifier:()=>Jg,shouldUseUriStyleNodeCoreModules:()=>H$,showModuleSpecifier:()=>Kx,signatureHasRestParameter:()=>xB,signatureToDisplayParts:()=>WQ,single:()=>Ve,singleElementArray:()=>xn,singleIterator:()=>ce,singleOrMany:()=>He,singleOrUndefined:()=>Be,skipAlias:()=>Nx,skipConstraint:()=>qZ,skipOuterExpressions:()=>BM,skipParentheses:()=>F_,skipPartiallyEmittedExpressions:()=>Zl,skipTrivia:()=>Es,skipTypeChecking:()=>Aw,skipTypeCheckingIgnoringNoCheck:()=>jw,skipTypeParentheses:()=>P_,skipWhile:()=>Tn,sliceAfter:()=>Ew,some:()=>F,sortAndDeduplicate:()=>be,sortAndDeduplicateDiagnostics:()=>nc,sourceFileAffectingCompilerOptions:()=>nF,sourceFileMayBeEmitted:()=>yy,sourceMapCommentRegExp:()=>zB,sourceMapCommentRegExpDontCareLineStart:()=>RB,spacePart:()=>DQ,spanMap:()=>P,startEndContainsRange:()=>Tx,startEndOverlapsWithStartEnd:()=>UX,startOnNewLine:()=>HM,startTracing:()=>Mr,startsWith:()=>pn,startsWithDirectory:()=>jo,startsWithUnderscore:()=>B$,startsWithUseStrict:()=>PM,stringContainsAt:()=>z$,stringToToken:()=>as,stripQuotes:()=>Zv,supportedDeclarationExtensions:()=>JC,supportedJSExtensionsFlat:()=>GC,supportedLocaleDirectories:()=>Rc,supportedTSExtensionsFlat:()=>HC,supportedTSImplementationExtensions:()=>YC,suppressLeadingAndTrailingTrivia:()=>dE,suppressLeadingTrivia:()=>fE,suppressTrailingTrivia:()=>pE,symbolEscapedNameNoDefault:()=>cQ,symbolName:()=>qc,symbolNameNoDefault:()=>sQ,symbolToDisplayParts:()=>UQ,sys:()=>Na,sysLog:()=>Ca,tagNamesAreEquivalent:()=>zP,takeWhile:()=>wn,targetOptionDeclaration:()=>JP,targetToLibMap:()=>rc,testFormatSettings:()=>uie,textChangeRangeIsUnchanged:()=>wc,textChangeRangeNewSpan:()=>Cc,textChanges:()=>y7,textOrKeywordPart:()=>NQ,textPart:()=>PQ,textRangeContainsPositionInclusive:()=>cc,textRangeContainsTextSpan:()=>dc,textRangeIntersectsWithTextSpan:()=>vc,textSpanContainsPosition:()=>sc,textSpanContainsTextRange:()=>uc,textSpanContainsTextSpan:()=>lc,textSpanEnd:()=>ac,textSpanIntersection:()=>yc,textSpanIntersectsWith:()=>hc,textSpanIntersectsWithPosition:()=>_c,textSpanIntersectsWithTextSpan:()=>mc,textSpanIsEmpty:()=>oc,textSpanOverlap:()=>pc,textSpanOverlapsWith:()=>fc,textSpansEqual:()=>gQ,textToKeywordObj:()=>Vo,timestamp:()=>sr,toArray:()=>ht,toBuilderFileEmit:()=>sK,toBuilderStateFileInfoForMultiEmit:()=>oK,toEditorSettings:()=>i4,toFileNameLowerCase:()=>Dt,toPath:()=>yo,toProgramEmitPending:()=>cK,toSorted:()=>Ae,tokenIsIdentifierOrKeyword:()=>zo,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Bo,tokenToString:()=>is,trace:()=>dL,tracing:()=>Ar,tracingEnabled:()=>jr,transferSourceFileChildren:()=>fM,transform:()=>Cde,transformClassFields:()=>vH,transformDeclarations:()=>iU,transformECMAScriptModule:()=>YH,transformES2015:()=>UH,transformES2016:()=>VH,transformES2017:()=>DH,transformES2018:()=>kH,transformES2019:()=>AH,transformES2020:()=>jH,transformES2021:()=>MH,transformESDecorators:()=>EH,transformESNext:()=>NH,transformGenerators:()=>GH,transformImpliedNodeFormatDependentModule:()=>XH,transformJsx:()=>zH,transformLegacyDecorators:()=>TH,transformModule:()=>KH,transformNamedEvaluation:()=>fH,transformNodes:()=>mU,transformSystemModule:()=>JH,transformTypeScript:()=>_H,transpile:()=>boe,transpileDeclaration:()=>goe,transpileModule:()=>U1,transpileOptionValueCompilerOptions:()=>iF,tryAddToSet:()=>se,tryAndIgnoreErrors:()=>x$,tryCast:()=>vt,tryDirectoryExists:()=>b$,tryExtractTSExtension:()=>qb,tryFileExists:()=>y$,tryGetClassExtendingExpressionWithTypeArguments:()=>Db,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Ob,tryGetDirectories:()=>_$,tryGetExtensionFromPath:()=>Sw,tryGetImportFromModuleSpecifier:()=>qg,tryGetJSDocSatisfiesTypeNode:()=>ST,tryGetModuleNameFromFile:()=>XM,tryGetModuleSpecifierFromDeclaration:()=>Gg,tryGetNativePerformanceHooks:()=>or,tryGetPropertyAccessOrIdentifierToString:()=>Ib,tryGetPropertyNameOfBindingOrAssignmentElement:()=>tN,tryGetSourceMappingURL:()=>HB,tryGetTextOfPropertyName:()=>dm,tryParseJson:()=>nx,tryParsePattern:()=>mw,tryParsePatterns:()=>gw,tryParseRawSourceMap:()=>UB,tryReadDirectory:()=>v$,tryReadFile:()=>LF,tryRemoveDirectoryPrefix:()=>SC,tryRemoveExtension:()=>dw,tryRemovePrefix:()=>hn,tryRemoveSuffix:()=>tn,tscBuildOption:()=>cF,typeAcquisitionDeclarations:()=>dF,typeAliasNamePart:()=>FQ,typeDirectiveIsEqualTo:()=>Gf,typeKeywords:()=>VZ,typeParameterNamePart:()=>IQ,typeToDisplayParts:()=>HQ,unchangedPollThresholds:()=>fa,unchangedTextChangeRange:()=>Ec,unescapeLeadingUnderscores:()=>Wc,unmangleScopedPackageName:()=>ez,unorderedRemoveItem:()=>sn,unprefixedNodeCoreModules:()=>qT,unreachableCodeIsError:()=>rC,unsetNodeChildren:()=>dM,unusedLabelIsError:()=>iC,unwrapInnermostStatementOfLabel:()=>fh,unwrapParenthesizedExpression:()=>UT,updateErrorForNoInputFiles:()=>MI,updateLanguageServiceSourceFile:()=>l4,updateMissingFilePathsWatch:()=>XU,updateResolutionField:()=>xL,updateSharedExtendedConfigFileWatcher:()=>qU,updateSourceFile:()=>bP,updateWatchingWildcardDirectories:()=>ZU,usingSingleLineStringWriter:()=>Ff,utf16EncodeAsString:()=>Xs,validateLocaleAndSetLanguage:()=>zc,version:()=>o,versionMajorMinor:()=>a,visitArray:()=>wB,visitCommaListElements:()=>NB,visitEachChild:()=>PB,visitFunctionBody:()=>jB,visitIterationBody:()=>MB,visitLexicalEnvironment:()=>EB,visitNode:()=>Q,visitNodes:()=>CB,visitParameterList:()=>DB,walkUpBindingElementsAndPatterns:()=>Mc,walkUpOuterExpressions:()=>VM,walkUpParenthesizedExpressions:()=>M_,walkUpParenthesizedTypes:()=>j_,walkUpParenthesizedTypesAndGetParentAndChild:()=>N_,whitespaceOrMapCommentRegExp:()=>BB,writeCommentRange:()=>qy,writeFile:()=>Sy,writeFileEnsuringDirectories:()=>wy,zipWith:()=>g});var IOe;function LOe(){return IOe??=new Fn(o)}function ROe(e,t,n,r,i){let a=t?`DeprecationError: `:`DeprecationWarning: `;return a+=`'${e}' `,a+=r?`has been deprecated since v${r}`:`is deprecated`,a+=t?` and can no longer be used.`:n?` and will no longer be usable after v${n}.`:`.`,a+=i?` ${uS(i,[e])}`:``,a}function zOe(e,t,n,r){let i=ROe(e,!0,t,n,r);return()=>{throw TypeError(i)}}function BOe(e,t,n,r){let i=!1;return()=>{i||=(H.log.warn(ROe(e,!1,t,n,r)),!0)}}function VOe(e,t={}){let n=typeof t.typeScriptVersion==`string`?new Fn(t.typeScriptVersion):t.typeScriptVersion??LOe(),r=typeof t.errorAfter==`string`?new Fn(t.errorAfter):t.errorAfter,i=typeof t.warnAfter==`string`?new Fn(t.warnAfter):t.warnAfter,a=typeof t.since==`string`?new Fn(t.since):t.since??i,o=t.error||r&&n.compareTo(r)>=0,s=!i||n.compareTo(i)>=0;return o?zOe(e,r,a,t.message):s?BOe(e,r,a,t.message):bt}function HOe(e,t){return function(){return e(),t.apply(this,arguments)}}function UOe(e,t){return HOe(VOe(t?.name??H.getFunctionName(e),t),e)}function e9(e,t,n,r){if(Object.defineProperty(a,`name`,{...Object.getOwnPropertyDescriptor(a,`name`),value:e}),r)for(let n of Object.keys(r)){let i=+n;!isNaN(i)&&qe(t,`${i}`)&&(t[i]=UOe(t[i],{...r[i],name:e}))}let i=WOe(t,n);return a;function a(...e){let n=i(e),r=n===void 0?void 0:t[n];if(typeof r==`function`)return r(...e);throw TypeError(`Invalid arguments`)}}function WOe(e,t){return n=>{for(let r=0;qe(e,`${r}`)&&qe(t,`${r}`);r++){let e=t[r];if(e(n))return r}}}function GOe(e){return{overload:t=>({bind:n=>({finish:()=>e9(e,t,n),deprecate:r=>({finish:()=>e9(e,t,n,r)})})})}}var KOe={};n(KOe,{ActionInvalidate:()=>TY,ActionPackageInstalled:()=>EY,ActionSet:()=>wY,ActionWatchTypingLocations:()=>jY,Arguments:()=>MY,AutoImportProviderProject:()=>Hke,AuxiliaryProject:()=>Bke,CharRangeSection:()=>mje,CloseFileWatcherEvent:()=>O9,CommandNames:()=>LAe,ConfigFileDiagEvent:()=>C9,ConfiguredProject:()=>Uke,ConfiguredProjectLoadKind:()=>rAe,CreateDirectoryWatcherEvent:()=>D9,CreateFileWatcherEvent:()=>E9,Errors:()=>n9,EventBeginInstallTypes:()=>OY,EventEndInstallTypes:()=>kY,EventInitializationFailed:()=>AY,EventTypesRegistry:()=>DY,ExternalProject:()=>d9,GcTimer:()=>uke,InferredProject:()=>zke,LargeFileReferencedEvent:()=>S9,LineIndex:()=>Z9,LineLeaf:()=>$9,LineNode:()=>Q9,LogLevel:()=>eke,Msg:()=>tke,OpenFileInfoTelemetryEvent:()=>Wke,Project:()=>u9,ProjectInfoTelemetryEvent:()=>T9,ProjectKind:()=>c9,ProjectLanguageServiceStateEvent:()=>w9,ProjectLoadingFinishEvent:()=>x9,ProjectLoadingStartEvent:()=>b9,ProjectService:()=>TAe,ProjectsUpdatedInBackgroundEvent:()=>y9,ScriptInfo:()=>Cke,ScriptVersionCache:()=>X9,Session:()=>tje,TextStorage:()=>Ske,ThrottledOperations:()=>lke,TypingsInstallerAdapter:()=>yje,allFilesAreJsOrDts:()=>Ake,allRootFilesAreJsOrDts:()=>kke,asNormalizedPath:()=>a9,convertCompilerOptions:()=>A9,convertFormatOptions:()=>k9,convertScriptKindName:()=>N9,convertTypeAcquisition:()=>Zke,convertUserPreferences:()=>Qke,convertWatchOptions:()=>j9,countEachFileTypes:()=>l9,createInstallTypingsRequest:()=>nke,createModuleSpecifierCache:()=>kAe,createNormalizedPathMap:()=>rke,createPackageJsonCache:()=>AAe,createSortedArray:()=>cke,emptyArray:()=>t9,findArgument:()=>NY,formatDiagnosticToProtocol:()=>U9,formatMessage:()=>RAe,getBaseConfigFileName:()=>o9,getDetailWatchInfo:()=>R9,getLocationInNewDocument:()=>lje,hasArgument:()=>nie,hasNoTypeScriptSource:()=>jke,indent:()=>FY,isBackgroundProject:()=>h9,isConfigFile:()=>DAe,isConfiguredProject:()=>p9,isDynamicFileName:()=>s9,isExternalProject:()=>m9,isInferredProject:()=>f9,isInferredProjectName:()=>ike,isProjectDeferredClose:()=>g9,makeAutoImportProviderProjectName:()=>oke,makeAuxiliaryProjectName:()=>ske,makeInferredProjectName:()=>ake,maxFileSize:()=>v9,maxProgramSizeForNonTsFiles:()=>_9,normalizedPathToPath:()=>i9,nowString:()=>PY,nullCancellationToken:()=>jAe,nullTypingsInstaller:()=>I9,protocol:()=>dke,scriptInfoIsContainedByBackgroundProject:()=>Eke,scriptInfoIsContainedByDeferredClosedProject:()=>Dke,stringifyIndented:()=>IY,toEvent:()=>BAe,toNormalizedPath:()=>r9,tryConvertScriptKindName:()=>M9,typingsInstaller:()=>qOe,updateProjectIfDirty:()=>z9});var qOe={};n(qOe,{TypingsInstaller:()=>QOe,getNpmCommandForInstallation:()=>ZOe,installNpmPackages:()=>XOe,typingsName:()=>$Oe});var JOe={isEnabled:()=>!1,writeLine:bt};function YOe(e,t,n,r){try{let r=QL(t,lo(e,`index.d.ts`),{moduleResolution:2},n);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(n){r.isEnabled()&&r.writeLine(`Failed to resolve ${t} in folder '${e}': ${n.message}`);return}}function XOe(e,t,n,r){let i=!1;for(let a=n.length;a>0;){let o=ZOe(e,t,n,a);a=o.remaining,i=r(o.command)||i}return i}function ZOe(e,t,n,r){let i=n.length-r,a,o=r;for(;a=`${e} install --ignore-scripts ${(o===n.length?n:n.slice(i,i+o)).join(` `)} --save-dev --user-agent="typesInstaller/${t}"`,!(a.length<8e3);)o-=Math.floor(o/2);return{command:a,remaining:r-o}}var QOe=class{constructor(e,t,n,r,i,a=JOe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=r,this.throttleLimit=i,this.log=a,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag=`latest`,this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${r}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case`discover`:this.install(e);break;case`closeProject`:this.closeProject(e);break;case`typesRegistry`:{let e={};this.typesRegistry.forEach((t,n)=>{e[n]=t});let t={kind:DY,typesRegistry:e};this.sendResponse(t);break}case`installPackage`:this.installPackage(e);break;default:H.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:jY,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${IY(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=CY.discoverTypings(this.installTypingHost,this.log.isEnabled()?e=>this.log.writeLine(e):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine(`No new typings were requested as a result of typings discovery`))}installPackage(e){let{fileName:t,packageName:n,projectName:r,projectRootPath:i,id:a}=e,o=Lo($a(t),e=>{if(this.installTypingHost.fileExists(lo(e,`package.json`)))return e})||i;if(o)this.installWorker(-1,[n],o,e=>{let t={kind:EY,projectName:r,id:a,success:e,message:e?`Package ${n} installed.`:`There was an error installing ${n}.`};this.sendResponse(t)});else{let e={kind:EY,projectName:r,id:a,success:!1,message:`Could not determine a project root path.`};this.sendResponse(e)}}initializeSafeList(){if(this.typesMapLocation){let e=CY.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=CY.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine(`Cache location was already processed...`);return}let t=lo(e,`package.json`),n=lo(e,`package-lock.json`);if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){let r=JSON.parse(this.installTypingHost.readFile(t)),i=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${IY(r)}`),this.log.writeLine(`Loaded content of '${n}':${IY(i)}`)),r.devDependencies&&(i.packages||i.dependencies))for(let t in r.devDependencies){if(i.packages&&!qe(i.packages,`node_modules/${t}`)||i.dependencies&&!qe(i.dependencies,t))continue;let n=eo(t);if(!n)continue;let r=YOe(e,n,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(n);continue}let a=this.packageNameToTypingLocation.get(n);if(a){if(a.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${n} from '${r}' conflicts with existing typing file '${a}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${n}' => '${r}'`);let o=i.packages&&Je(i.packages,`node_modules/${t}`)||Je(i.dependencies,t),s=o&&o.version;if(!s)continue;let c={typingLocation:r,version:new Fn(s)};this.packageNameToTypingLocation.set(n,c)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return M(e,e=>{let t=QR(e);if(this.missingTypingsSet.has(t)){this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`);return}let n=CY.validatePackageName(e);if(n!==CY.NameValidationResult.Ok){this.missingTypingsSet.add(t),this.log.isEnabled()&&this.log.writeLine(CY.renderPackageNameValidationFailure(n,e));return}if(!this.typesRegistry.has(t)){this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${t}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(t)&&CY.isTypingUpToDate(this.packageNameToTypingLocation.get(t),this.typesRegistry.get(t))){this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' already has an up-to-date typing - skipping...`);return}return t})}ensurePackageDirectoryExists(e){let t=lo(e,`package.json`);this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,`{ "private": true }`))}installTypings(e,t,n,r){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(r)}`);let i=this.filterTypings(r);if(i.length===0){this.log.isEnabled()&&this.log.writeLine(`All typings are known to be missing or invalid - no need to install more typings`),this.sendResponse(this.createSetTypings(e,n));return}this.ensurePackageDirectoryExists(t);let s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:OY,eventId:s,typingsInstallerVersion:o,projectName:e.projectName});let c=i.map($Oe);this.installTypingsAsync(s,c,t,r=>{try{if(!r){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(i)}`);for(let e of i)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);let o=[];for(let e of i){let n=YOe(t,e,this.installTypingHost,this.log);if(!n){this.missingTypingsSet.add(e);continue}let r=this.typesRegistry.get(e),i={typingLocation:n,version:new Fn(r[`ts${a}`]||r[this.latestDistTag])};this.packageNameToTypingLocation.set(e,i),o.push(n)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(o)}`),this.sendResponse(this.createSetTypings(e,n.concat(o)))}finally{let t={kind:kY,eventId:s,projectName:e.projectName,packagesToInstall:c,installSuccess:r,typingsInstallerVersion:o};this.sendResponse(t)}})}ensureDirectoryExists(e,t){let n=$a(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let n=this.projectWatchers.get(e),r=new Set(t);!n||Nf(r,e=>!n.has(e))||Nf(n,e=>!r.has(e))?(this.projectWatchers.set(e,r),this.sendResponse({kind:jY,projectName:e,files:t})):this.sendResponse({kind:jY,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:wY}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}};function $Oe(e){return`@types/${e}@ts${a}`}var eke=(e=>(e[e.terse=0]=`terse`,e[e.normal=1]=`normal`,e[e.requestTime=2]=`requestTime`,e[e.verbose=3]=`verbose`,e))(eke||{}),t9=cke(),tke=(e=>(e.Err=`Err`,e.Info=`Info`,e.Perf=`Perf`,e))(tke||{});function nke(e,t,n,r){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:r,kind:`discover`}}var n9;(e=>{function t(){throw Error(`No Project.`)}e.ThrowNoProject=t;function n(){throw Error(`The project's language service is disabled.`)}e.ThrowProjectLanguageServiceDisabled=n;function r(e,t){throw Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)}e.ThrowProjectDoesNotContainDocument=r})(n9||={});function r9(e){return mo(e)}function i9(e,t,n){return n(Va(e)?e:po(e,t))}function a9(e){return e}function rke(){let e=new Map;return{get(t){return e.get(t)},set(t,n){e.set(t,n)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function ike(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function ake(e){return`/dev/null/inferredProject${e}*`}function oke(e){return`/dev/null/autoImportProviderProject${e}*`}function ske(e){return`/dev/null/auxiliaryProject${e}*`}function cke(){return[]}var lke=class e{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(t,n,r){let i=this.pendingTimeouts.get(t);i&&this.host.clearTimeout(i),this.pendingTimeouts.set(t,this.host.setTimeout(e.run,n,t,this,r)),this.logger&&this.logger.info(`Scheduled: ${t}${i?`, Cancelled earlier one`:``}`)}cancel(e){let t=this.pendingTimeouts.get(e);return t?(this.host.clearTimeout(t),this.pendingTimeouts.delete(e)):!1}static run(e,t,n){t.pendingTimeouts.delete(e),t.logger&&t.logger.info(`Running: ${e}`),n()}},uke=class e{constructor(e,t,n){this.host=e,this.delay=t,this.logger=n}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){e.timerId=void 0;let t=e.logger.hasLevel(2),n=t&&e.host.getMemoryUsage();if(e.host.gc(),t){let t=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${n}, after ${t}`)}}};function o9(e){let t=eo(e);return t===`tsconfig.json`||t===`jsconfig.json`?t:void 0}var dke={};n(dke,{ClassificationType:()=>lX,CommandTypes:()=>fke,CompletionTriggerKind:()=>JY,IndentStyle:()=>gke,JsxEmit:()=>_ke,ModuleKind:()=>vke,ModuleResolutionKind:()=>yke,NewLineKind:()=>bke,OrganizeImportsMode:()=>qY,PollingWatchKind:()=>hke,ScriptTarget:()=>xke,SemicolonPreference:()=>QY,WatchDirectoryKind:()=>mke,WatchFileKind:()=>pke});var fke=(e=>(e.JsxClosingTag=`jsxClosingTag`,e.LinkedEditingRange=`linkedEditingRange`,e.Brace=`brace`,e.BraceFull=`brace-full`,e.BraceCompletion=`braceCompletion`,e.GetSpanOfEnclosingComment=`getSpanOfEnclosingComment`,e.Change=`change`,e.Close=`close`,e.Completions=`completions`,e.CompletionInfo=`completionInfo`,e.CompletionsFull=`completions-full`,e.CompletionDetails=`completionEntryDetails`,e.CompletionDetailsFull=`completionEntryDetails-full`,e.CompileOnSaveAffectedFileList=`compileOnSaveAffectedFileList`,e.CompileOnSaveEmitFile=`compileOnSaveEmitFile`,e.Configure=`configure`,e.Definition=`definition`,e.DefinitionFull=`definition-full`,e.DefinitionAndBoundSpan=`definitionAndBoundSpan`,e.DefinitionAndBoundSpanFull=`definitionAndBoundSpan-full`,e.Implementation=`implementation`,e.ImplementationFull=`implementation-full`,e.EmitOutput=`emit-output`,e.Exit=`exit`,e.FileReferences=`fileReferences`,e.FileReferencesFull=`fileReferences-full`,e.Format=`format`,e.Formatonkey=`formatonkey`,e.FormatFull=`format-full`,e.FormatonkeyFull=`formatonkey-full`,e.FormatRangeFull=`formatRange-full`,e.Geterr=`geterr`,e.GeterrForProject=`geterrForProject`,e.SemanticDiagnosticsSync=`semanticDiagnosticsSync`,e.SyntacticDiagnosticsSync=`syntacticDiagnosticsSync`,e.SuggestionDiagnosticsSync=`suggestionDiagnosticsSync`,e.NavBar=`navbar`,e.NavBarFull=`navbar-full`,e.Navto=`navto`,e.NavtoFull=`navto-full`,e.NavTree=`navtree`,e.NavTreeFull=`navtree-full`,e.DocumentHighlights=`documentHighlights`,e.DocumentHighlightsFull=`documentHighlights-full`,e.Open=`open`,e.Quickinfo=`quickinfo`,e.QuickinfoFull=`quickinfo-full`,e.References=`references`,e.ReferencesFull=`references-full`,e.Reload=`reload`,e.Rename=`rename`,e.RenameInfoFull=`rename-full`,e.RenameLocationsFull=`renameLocations-full`,e.Saveto=`saveto`,e.SignatureHelp=`signatureHelp`,e.SignatureHelpFull=`signatureHelp-full`,e.FindSourceDefinition=`findSourceDefinition`,e.Status=`status`,e.TypeDefinition=`typeDefinition`,e.ProjectInfo=`projectInfo`,e.ReloadProjects=`reloadProjects`,e.Unknown=`unknown`,e.OpenExternalProject=`openExternalProject`,e.OpenExternalProjects=`openExternalProjects`,e.CloseExternalProject=`closeExternalProject`,e.SynchronizeProjectList=`synchronizeProjectList`,e.ApplyChangedToOpenFiles=`applyChangedToOpenFiles`,e.UpdateOpen=`updateOpen`,e.EncodedSyntacticClassificationsFull=`encodedSyntacticClassifications-full`,e.EncodedSemanticClassificationsFull=`encodedSemanticClassifications-full`,e.Cleanup=`cleanup`,e.GetOutliningSpans=`getOutliningSpans`,e.GetOutliningSpansFull=`outliningSpans`,e.TodoComments=`todoComments`,e.Indentation=`indentation`,e.DocCommentTemplate=`docCommentTemplate`,e.CompilerOptionsDiagnosticsFull=`compilerOptionsDiagnostics-full`,e.NameOrDottedNameSpan=`nameOrDottedNameSpan`,e.BreakpointStatement=`breakpointStatement`,e.CompilerOptionsForInferredProjects=`compilerOptionsForInferredProjects`,e.GetCodeFixes=`getCodeFixes`,e.GetCodeFixesFull=`getCodeFixes-full`,e.GetCombinedCodeFix=`getCombinedCodeFix`,e.GetCombinedCodeFixFull=`getCombinedCodeFix-full`,e.ApplyCodeActionCommand=`applyCodeActionCommand`,e.GetSupportedCodeFixes=`getSupportedCodeFixes`,e.GetApplicableRefactors=`getApplicableRefactors`,e.GetEditsForRefactor=`getEditsForRefactor`,e.GetMoveToRefactoringFileSuggestions=`getMoveToRefactoringFileSuggestions`,e.PreparePasteEdits=`preparePasteEdits`,e.GetPasteEdits=`getPasteEdits`,e.GetEditsForRefactorFull=`getEditsForRefactor-full`,e.OrganizeImports=`organizeImports`,e.OrganizeImportsFull=`organizeImports-full`,e.GetEditsForFileRename=`getEditsForFileRename`,e.GetEditsForFileRenameFull=`getEditsForFileRename-full`,e.ConfigurePlugin=`configurePlugin`,e.SelectionRange=`selectionRange`,e.SelectionRangeFull=`selectionRange-full`,e.ToggleLineComment=`toggleLineComment`,e.ToggleLineCommentFull=`toggleLineComment-full`,e.ToggleMultilineComment=`toggleMultilineComment`,e.ToggleMultilineCommentFull=`toggleMultilineComment-full`,e.CommentSelection=`commentSelection`,e.CommentSelectionFull=`commentSelection-full`,e.UncommentSelection=`uncommentSelection`,e.UncommentSelectionFull=`uncommentSelection-full`,e.PrepareCallHierarchy=`prepareCallHierarchy`,e.ProvideCallHierarchyIncomingCalls=`provideCallHierarchyIncomingCalls`,e.ProvideCallHierarchyOutgoingCalls=`provideCallHierarchyOutgoingCalls`,e.ProvideInlayHints=`provideInlayHints`,e.WatchChange=`watchChange`,e.MapCode=`mapCode`,e.CopilotRelated=`copilotRelated`,e))(fke||{}),pke=(e=>(e.FixedPollingInterval=`FixedPollingInterval`,e.PriorityPollingInterval=`PriorityPollingInterval`,e.DynamicPriorityPolling=`DynamicPriorityPolling`,e.FixedChunkSizePolling=`FixedChunkSizePolling`,e.UseFsEvents=`UseFsEvents`,e.UseFsEventsOnParentDirectory=`UseFsEventsOnParentDirectory`,e))(pke||{}),mke=(e=>(e.UseFsEvents=`UseFsEvents`,e.FixedPollingInterval=`FixedPollingInterval`,e.DynamicPriorityPolling=`DynamicPriorityPolling`,e.FixedChunkSizePolling=`FixedChunkSizePolling`,e))(mke||{}),hke=(e=>(e.FixedInterval=`FixedInterval`,e.PriorityInterval=`PriorityInterval`,e.DynamicPriority=`DynamicPriority`,e.FixedChunkSize=`FixedChunkSize`,e))(hke||{}),gke=(e=>(e.None=`None`,e.Block=`Block`,e.Smart=`Smart`,e))(gke||{}),_ke=(e=>(e.None=`none`,e.Preserve=`preserve`,e.ReactNative=`react-native`,e.React=`react`,e.ReactJSX=`react-jsx`,e.ReactJSXDev=`react-jsxdev`,e))(_ke||{}),vke=(e=>(e.None=`none`,e.CommonJS=`commonjs`,e.AMD=`amd`,e.UMD=`umd`,e.System=`system`,e.ES6=`es6`,e.ES2015=`es2015`,e.ES2020=`es2020`,e.ES2022=`es2022`,e.ESNext=`esnext`,e.Node16=`node16`,e.Node18=`node18`,e.Node20=`node20`,e.NodeNext=`nodenext`,e.Preserve=`preserve`,e))(vke||{}),yke=(e=>(e.Classic=`classic`,e.Node=`node`,e.NodeJs=`node`,e.Node10=`node10`,e.Node16=`node16`,e.NodeNext=`nodenext`,e.Bundler=`bundler`,e))(yke||{}),bke=(e=>(e.Crlf=`Crlf`,e.Lf=`Lf`,e))(bke||{}),xke=(e=>(e.ES3=`es3`,e.ES5=`es5`,e.ES6=`es6`,e.ES2015=`es2015`,e.ES2016=`es2016`,e.ES2017=`es2017`,e.ES2018=`es2018`,e.ES2019=`es2019`,e.ES2020=`es2020`,e.ES2021=`es2021`,e.ES2022=`es2022`,e.ES2023=`es2023`,e.ES2024=`es2024`,e.ESNext=`esnext`,e.JSON=`json`,e.Latest=`esnext`,e))(xke||{}),Ske=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return H.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=GZ(this.svc.getSnapshot())),this.text===e?!1:(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){let{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:``,fileSize:void 0},r=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===sa.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||sa).getTime()),r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){return this.tryUseScriptVersionCache()?.getSnapshot()||(this.textSnapshot??=HY.fromString(H.checkDefined(this.text)))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let n=this.getLineMap(),r=n[e];return Sc(r,e+1t===void 0?t=this.host.readFile(n)||``:t;if(!ew(this.info.fileName)){let e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>v9)return H.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${e}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,e),{text:``,fileSize:e}}return{text:r()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=X9.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen&&!this.svc&&!this.textSnapshot&&(this.svc=X9.fromString(H.checkDefined(this.text)),this.textSnapshot=void 0),this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(H.assert(!this.svc||this.pendingReloadFromDisk,`ScriptVersionCache should not be set when reloading from disk`),this.reloadWithFileText()),this.text}getLineMap(){return H.assert(!this.svc,`ScriptVersionCache should not be set`),this.lineMap||=ls(H.checkDefined(this.text))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:t=>e.getAbsolutePositionAndLineText(t+1).lineText};let t=this.getLineMap();return VB(this.text,t)}};function s9(e){return e[0]===`^`||(e.includes(`walkThroughSnippet:/`)||e.includes(`untitled:/`))&&eo(e)[0]===`^`||e.includes(`:^`)&&!e.includes(Fa)}var Cke=class{constructor(e,t,n,r,i,a){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=r,this.path=i,this.containingProjects=[],this.isDynamic=s9(t),this.textStorage=new Ske(e,this,a),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||BC(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){H.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return C(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:rn(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){p9(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!f9(e)&&e.addMissingFileRoot(t.fileName)}O(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return n9.ThrowNoProject();case 1:return g9(this.containingProjects[0])||h9(this.containingProjects[0])?n9.ThrowNoProject():this.containingProjects[0];default:let e,t,n,r;for(let i=0;i!e.isOrphan())}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){wke(e);let t=this.textStorage.positionToLineOffset(e);return Tke(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!gt(this.sourceMapFilePath)&&(rW(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function wke(e){H.assert(typeof e==`number`,`Expected position ${e} to be a number.`),H.assert(e>=0,`Expected position to be non-negative.`)}function Tke(e){H.assert(typeof e.line==`number`,`Expected line ${e.line} to be a number.`),H.assert(typeof e.offset==`number`,`Expected offset ${e.offset} to be a number.`),H.assert(e.line>0,`Expected line to be non-${e.line===0?`zero`:`negative`}`),H.assert(e.offset>0,`Expected offset to be non-${e.offset===0?`zero`:`negative`}`)}function Eke(e){return F(e.containingProjects,h9)}function Dke(e){return F(e.containingProjects,g9)}var c9=(e=>(e[e.Inferred=0]=`Inferred`,e[e.Configured=1]=`Configured`,e[e.External=2]=`External`,e[e.AutoImportProvider=3]=`AutoImportProvider`,e[e.Auxiliary=4]=`Auxiliary`,e))(c9||{});function l9(e,t=!1){let n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let r of e){let e=t?r.textStorage.getTelemetryFileSize():0;switch(r.scriptKind){case 1:n.js+=1,n.jsSize+=e;break;case 2:n.jsx+=1,n.jsxSize+=e;break;case 3:OP(r.fileName)?(n.dts+=1,n.dtsSize+=e):(n.ts+=1,n.tsSize+=e);break;case 4:n.tsx+=1,n.tsxSize+=e;break;case 7:n.deferred+=1,n.deferredSize+=e;break}}return n}function Oke(e){let t=l9(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function kke(e){let t=l9(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function Ake(e){let t=l9(e.getScriptInfos());return t.ts===0&&t.tsx===0}function jke(e){return!e.some(e=>qa(e,`.ts`)&&!OP(e)||qa(e,`.tsx`))}function Mke(e){return e.generatedFilePath!==void 0}function Nke(e,t){if(e===t||(e||t9).length===0&&(t||t9).length===0)return!0;let n=new Map,r=0;for(let t of e)n.get(t)!==!0&&(n.set(t,!0),r++);for(let e of t){let t=n.get(e);if(t===void 0)return!1;t===!0&&(n.set(e,!1),r--)}return r===0}function Pke(e,t){return e.enable!==t.enable||!Nke(e.include,t.include)||!Nke(e.exclude,t.exclude)}function Fke(e,t){return $S(e)!==$S(t)}function Ike(e,t){return e===t?!1:!xe(e,t)}var u9=class e{constructor(e,t,n,r,i,a,o,s,c,l){switch(this.projectKind=t,this.projectService=n,this.compilerOptions=a,this.compileOnSaveEnabled=o,this.watchOptions=s,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.initialLoadPending=!1,this.dirty=!1,this.typingFiles=t9,this.moduleSpecifierCache=kAe(this),this.createHash=ut(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=CY.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,n.logger.info(`Creating ${c9[t]}Project: ${e}, currentDirectory: ${l}`),this.projectName=e,this.directoryStructureHost=c,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(l),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new u4(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(r||$S(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=o4(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),n.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:H.assertNever(n.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let u=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):u.trace&&(this.trace=e=>u.trace(e)),this.realpath=ut(u,u.realpath),this.preferNonRecursiveWatch=this.projectService.canUseWatchEvents||u.preferNonRecursiveWatch,this.resolutionCache=jK(this,this.currentDirectory,!0),this.languageService=d4(this,this.projectService.documentRegistry,this.projectService.serverMode),i&&this.disableLanguageService(i),this.markAsDirty(),h9(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getRedirectFromSourceFile(e){}isNonTsProject(){return z9(this),Ake(this)}isJsOnlyProject(){return z9(this),Oke(this)}static resolveModule(t,n,r,i){return e.importServicePluginSync({name:t},[n],r,i).resolvedModule}static importServicePluginSync(e,t,n,r){H.assertIsDefined(n.require);let i,a;for(let o of t){let t=so(n.resolvePath(lo(o,`node_modules`)));r(`Loading ${e.name} from ${o} (resolved to ${t})`);let s=n.require(t,e.name);if(!s.error){a=s.module;break}let c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??=[]).push(`Failed to load module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:a,errorLogs:i}}static async importServicePluginAsync(e,t,n,r){H.assertIsDefined(n.importPlugin);let i,a;for(let o of t){let t=lo(o,`node_modules`);r(`Dynamically importing ${e.name} from ${o} (resolved to ${t})`);let s;try{s=await n.importPlugin(t,e.name)}catch(e){s={module:void 0,error:e}}if(!s.error){a=s.module;break}let c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??=[]).push(`Failed to dynamically import module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:a,errorLogs:i}}isKnownTypesPackageName(e){return this.projectService.typingsInstaller.isKnownTypesPackageName(e)}installPackage(e){return this.projectService.typingsInstaller.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}getSymlinkCache(){return this.symlinks||=vC(this.getCurrentDirectory(),this.getCanonicalFileName),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return c;let e;return this.rootFilesMap.forEach(t=>{(this.languageServiceEnabled||t.info&&t.info.isScriptOpen())&&(e||=[]).push(t.fileName)}),Ee(e,this.typingFiles)||c}getOrCreateScriptInfoAndAttachToProject(e){let t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);if(t){let e=this.rootFilesMap.get(t.path);e&&e.info!==t&&(e.info=t),t.attachToProject(this)}return t}getScriptKind(e){let t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&t.scriptKind}getScriptVersion(e){let t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1);return t&&t.getLatestVersion()}getScriptSnapshot(e){let t=this.getOrCreateScriptInfoAndAttachToProject(e);if(t)return t.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return lo($a(mo(this.projectService.getExecutingFilePath())),ic(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(e,t,n,r,i){return this.directoryStructureHost.readDirectory(e,t,n,r,i)}readFile(e){return this.projectService.host.readFile(e)}writeFile(e,t){return this.projectService.host.writeFile(e,t)}fileExists(e){let t=this.toPath(e);return!!this.projectService.getScriptInfoForPath(t)||!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,n,r,i,a){return this.resolutionCache.resolveModuleNameLiterals(e,t,n,r,i,a)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,n,r,i,a){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,n,r,i,a)}resolveLibrary(e,t,n,r){return this.resolutionCache.resolveLibrary(e,t,n,r)}directoryExists(e){return this.directoryStructureHost.directoryExists(e)}getDirectories(e){return this.directoryStructureHost.getDirectories(e)}getCachedDirectoryStructureHost(){}toPath(e){return yo(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),nq.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),nq.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),nq.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}fileIsOpen(e){return this.projectService.openFiles.has(e)}writeLog(e){this.projectService.logger.info(e)}log(e){this.writeLog(e)}error(e){this.projectService.logger.msg(e,`Err`)}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return E(this.projectErrors,e=>!e.file)||t9}getAllProjectErrors(){return this.projectErrors||t9}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&z9(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(e,t){return this.projectService.getDocumentPositionMapper(this,e,t)}getSourceFileLike(e){return this.projectService.getSourceFileLike(e,this)}shouldEmitFile(e){return e&&!e.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(e.path)}getCompileOnSaveAffectedFileList(e){return this.languageServiceEnabled?(z9(this),this.builderState=_G.create(this.program,this.builderState,!0),M(_G.getFilesAffectedBy(this.builderState,this.program,e.path,this.cancellationToken,this.projectService.host),e=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(e.path))?e.fileName:void 0)):[]}emitFile(e,t){if(!this.languageServiceEnabled||!this.shouldEmitFile(e))return{emitSkipped:!0,diagnostics:t9};let{emitSkipped:n,diagnostics:r,outputFiles:i}=this.getLanguageService().getEmitOutput(e.fileName);if(!n){for(let e of i)t(po(e.name,this.currentDirectory),e.text,e.writeByteOrderMark);if(this.builderState&&YS(this.compilerOptions)){let t=i.filter(e=>OP(e.name));if(t.length===1){let n=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(t[0].text):ra(t[0].text);_G.updateSignatureOfFile(this.builderState,r,n.resolvedPath)}}}return{emitSkipped:n,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let e of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(e.fileName);this.program.forEachResolvedProjectReference(e=>this.detachScriptInfoFromProject(e.sourceFile.fileName)),this.program=void 0}}disableLanguageService(e){this.languageServiceEnabled&&(H.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=e,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(e){return!e.enable||!e.include?e:{...e,include:this.removeExistingTypings(e.include)}}getExternalFiles(e){return Ae(re(this.plugins,t=>{if(typeof t.module.getExternalFiles==`function`)try{return t.module.getExternalFiles(this,e||0)}catch(e){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${e}`),e.stack&&this.projectService.logger.info(e.stack)}}))}getSourceFile(e){if(this.program)return this.program.getSourceFileByPath(e)}getSourceFileOrConfigFile(e){let t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){var e;this.typingsCache&&this.projectService.typingsInstaller.onProjectClosed(this),this.typingsCache=void 0,this.closeWatchingTypingLocations(),this.cleanupProgram(),d(this.externalFiles,e=>this.detachScriptInfoIfNotRoot(e)),this.rootFilesMap.forEach(e=>e.info?.detachFromProject(this)),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(e=this.packageJsonWatches)==null||e.forEach(e=>{e.projects.delete(this),e.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&=(zx(this.missingFilesMap,Ax),void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){let t=this.projectService.getScriptInfo(e);t&&!this.isRoot(t)&&t.detachFromProject(this)}isClosed(){return this.rootFilesMap===void 0}hasRoots(){return!!this.rootFilesMap?.size}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&$e(N(this.rootFilesMap.values(),e=>e.info?.fileName))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return $e(N(this.rootFilesMap.values(),e=>e.info))}getScriptInfos(){return this.languageServiceEnabled?k(this.program.getSourceFiles(),e=>{let t=this.projectService.getScriptInfoForPath(e.resolvedPath);return H.assert(!!t,`getScriptInfo`,()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`),t}):this.getRootScriptInfos()}getExcludedFiles(){return t9}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){let t=h4(this.compilerOptions);t&&(e||=[]).push(a9(t))}return e}let n=[];for(let t of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(t)||n.push(a9(t.fileName));if(!t){let e=this.program.getCompilerOptions().configFile;if(e&&(n.push(a9(e.fileName)),e.extendedSourceFiles))for(let t of e.extendedSourceFiles)n.push(a9(t))}return n}getFileNamesWithRedirectInfo(e){return this.getFileNames().map(t=>({fileName:t,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(t)}))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){let t=this.program.getCompilerOptions().configFile;if(t){if(e===a9(t.fileName))return!0;if(t.extendedSourceFiles){for(let n of t.extendedSourceFiles)if(e===a9(n))return!0}}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;let t=this.program.getSourceFileByPath(e.path);return!!t&&t.resolvedPath===e.path}containsFile(e,t){let n=this.projectService.getScriptInfoForNormalizedPath(e);return n&&(n.isScriptOpen()||!t)?this.containsScriptInfo(n):!1}isRoot(e){return this.rootFilesMap?.get(e.path)?.info===e}addRoot(e,t){H.assert(!this.isRoot(e)),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){let t=this.projectService.toPath(e);this.rootFilesMap.set(t,{fileName:e}),this.markAsDirty()}removeFile(e,t,n){this.isRoot(e)&&this.removeRoot(e),t?this.resolutionCache.removeResolutionsOfFile(e.path):this.resolutionCache.invalidateResolutionOfFile(e.path),this.cachedUnresolvedImportsPerFile.delete(e.path),n&&e.detachFromProject(this),this.markAsDirty()}registerFileUpdate(e){(this.updatedFileNames||=new Set).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||=new Set).add(e)}markAsDirty(){this.dirty||=(this.projectStateVersion++,!0)}markAutoImportProviderAsDirty(){var e;this.autoImportProviderHost||=void 0,(e=this.autoImportProviderHost)==null||e.markAsDirty()}onAutoImportProviderSettingsChanged(){this.markAutoImportProviderAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.markAutoImportProviderAsDirty()}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}onReleaseOldSourceFile(e,t,n,r){(!r||e.resolvedPath===e.path&&r.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,n)}updateFromProject(){z9(this)}updateGraph(){var e,t;(e=Ar)==null||e.push(Ar.Phase.Session,`updateGraph`,{name:this.projectName,kind:c9[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();let n=this.updateGraphWorker(),r=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let i=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||t9;for(let e of i)this.cachedUnresolvedImportsPerFile.delete(e);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((n||i.length)&&(this.lastCachedUnresolvedImportsList=Lke(this.program,this.cachedUnresolvedImportsPerFile)),this.enqueueInstallTypingsForProject(r)):this.lastCachedUnresolvedImportsList=void 0;let a=this.projectProgramVersion===0&&n;return n&&this.projectProgramVersion++,r&&this.markAutoImportProviderAsDirty(),a&&this.getPackageJsonAutoImportProvider(),(t=Ar)==null||t.pop(),!n}enqueueInstallTypingsForProject(e){let t=this.getTypeAcquisition();if(!t||!t.enable||this.projectService.typingsInstaller===I9)return;let n=this.typingsCache;(e||!n||Pke(t,n.typeAcquisition)||Fke(this.getCompilationSettings(),n.compilerOptions)||Ike(this.lastCachedUnresolvedImportsList,n.unresolvedImports))&&(this.typingsCache={compilerOptions:this.getCompilationSettings(),typeAcquisition:t,unresolvedImports:this.lastCachedUnresolvedImportsList},this.projectService.typingsInstaller.enqueueInstallTypingsRequest(this,t,this.lastCachedUnresolvedImportsList))}updateTypingFiles(e,t,n,r){this.typingsCache={compilerOptions:e,typeAcquisition:t,unresolvedImports:n};let i=!t||!t.enable?t9:Ae(r);V(i,this.typingFiles,Ut(!this.useCaseSensitiveFileNames()),bt,e=>this.detachScriptInfoFromProject(e))&&(this.typingFiles=i,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&zx(this.typingWatchers,Ax),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:TY})}watchTypingLocations(e){if(!e){this.typingWatchers.isInvoked=!1;return}if(!e.length){this.closeWatchingTypingLocations();return}let t=new Map(this.typingWatchers);this.typingWatchers||=new Map,this.typingWatchers.isInvoked=!1;let n=(e,n)=>{let r=this.toPath(e);if(t.delete(r),!this.typingWatchers.has(r)){let t=n===`FileWatcher`?nq.TypingInstallerLocationFile:nq.TypingInstallerLocationDirectory;this.typingWatchers.set(r,yK(r)?n===`FileWatcher`?this.projectService.watchFactory.watchFile(e,()=>this.typingWatchers.isInvoked?this.writeLog(`TypingWatchers already invoked`):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),t,this):this.projectService.watchFactory.watchDirectory(e,e=>{if(this.typingWatchers.isInvoked)return this.writeLog(`TypingWatchers already invoked`);if(!qa(e,`.json`))return this.writeLog(`Ignoring files that are not *.json`);if(ko(e,lo(this.projectService.typingsInstaller.globalTypingsCacheLocation,`package.json`),!this.useCaseSensitiveFileNames()))return this.writeLog(`Ignoring package.json change at global typings location`);this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),t,this):(this.writeLog(`Skipping watcher creation at ${e}:: ${R9(t,this)}`),$K))}};for(let t of e){let e=eo(t);if(e===`package.json`||e===`bower.json`){n(t,`FileWatcher`);continue}if(Ao(this.currentDirectory,t,this.currentDirectory,!this.useCaseSensitiveFileNames())){let e=t.indexOf(Fa,this.currentDirectory.length+1);n(e===-1?t:t.substr(0,e),`DirectoryWatcher`);continue}if(Ao(this.projectService.typingsInstaller.globalTypingsCacheLocation,t,this.currentDirectory,!this.useCaseSensitiveFileNames())){n(this.projectService.typingsInstaller.globalTypingsCacheLocation,`DirectoryWatcher`);continue}n(t,`DirectoryWatcher`)}t.forEach((e,t)=>{e.close(),this.typingWatchers.delete(t)})}getCurrentProgram(){return this.program}removeExistingTypings(e){if(!e.length)return e;let t=FL(this.getCompilerOptions(),this);return E(e,e=>!t.includes(e))}updateGraphWorker(){var e,t;let n=this.languageService.getCurrentProgram();H.assert(n===this.program),H.assert(!this.isClosed(),`Called update graph worker of closed project`),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let r=sr(),{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:a}=this.resolutionCache.createHasInvalidatedResolutions(xt,xt);this.hasInvalidatedResolutions=i,this.hasInvalidatedLibResolutions=a,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(e=Ar)==null||e.push(Ar.Phase.Session,`finishCachingPerDirectoryResolution`),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,n),(t=Ar)==null||t.pop(),H.assert(n===void 0||this.program!==void 0);let o=!1;if(this.program&&(!n||this.program!==n&&this.program.structureIsReused!==2)){if(o=!0,this.rootFilesMap.forEach((e,t)=>{let n=this.program.getSourceFileByPath(t),r=e.info;!n||e.info?.path===n.resolvedPath||(e.info=this.projectService.getScriptInfo(n.fileName),H.assert(e.info.isAttached(this)),r?.detachFromProject(this))}),XU(this.program,this.missingFilesMap||=new Map,(e,t)=>this.addMissingFileWatcher(e,t)),this.generatedFilesMap){let e=this.compilerOptions.outFile;Mke(this.generatedFilesMap)?(!e||!this.isValidGeneratedFileWatcher(uw(e)+`.d.ts`,this.generatedFilesMap))&&this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((e,t)=>{let n=this.program.getSourceFileByPath(t);(!n||n.resolvedPath!==t||!this.isValidGeneratedFileWatcher(py(n.fileName,this.compilerOptions,this.program),e))&&(rW(e),this.generatedFilesMap.delete(t))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||n&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&n&&this.program&&Nf(this.changedFilesForExportMapCache,e=>{let t=n.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return!t||!r?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(t,r,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let s=this.externalFiles||t9;this.externalFiles=this.getExternalFiles(),V(this.externalFiles,s,Ut(!this.useCaseSensitiveFileNames()),e=>{this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost,!1)?.attachToProject(this)},e=>this.detachScriptInfoFromProject(e));let c=sr()-r;return this.sendPerformanceEvent(`UpdateGraph`,c),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${o}${this.program?` structureIsReused:: ${Yr[this.program.structureIsReused]}`:``} Elapsed: ${c}ms`),this.projectService.logger.isTestLogger?this.program===n?this.writeLog(`Same program as before`):this.print(!0,this.hasAddedorRemovedFiles,!0):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==n&&this.writeLog(`Different program with same set of files`),this.projectService.verifyDocumentRegistry(),o}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t){let n=this.projectService.getScriptInfo(e);n&&(n.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(n.path))}addMissingFileWatcher(e,t){if(p9(this)&&(this.projectService.configFileExistenceInfoCache.get(e)?.config)?.projects.has(this.canonicalConfigFilePath))return $K;let n=this.projectService.watchFactory.watchFile(po(t,this.currentDirectory),(t,r)=>{p9(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(t,e,r),r===0&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),n.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),nq.MissingFile,this);return n}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(this.compilerOptions.outFile)this.generatedFilesMap||=this.createGeneratedFileWatcher(e);else{let n=this.toPath(t);if(this.generatedFilesMap){if(Mke(this.generatedFilesMap)){H.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(n))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(n,this.createGeneratedFileWatcher(e))}}createGeneratedFileWatcher(e){return{generatedFilePath:this.toPath(e),watcher:this.projectService.watchFactory.watchFile(e,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),nq.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&=(Mke(this.generatedFilesMap)?rW(this.generatedFilesMap):zx(this.generatedFilesMap,rW),void 0)}getScriptInfoForNormalizedPath(e){let t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?n9.ThrowProjectDoesNotContainDocument(e,this):t}getScriptInfo(e){return this.projectService.getScriptInfo(e)}filesToString(e){return this.filesToStringWorker(e,!0,!1)}filesToStringWorker(e,t,n){if(this.initialLoadPending)return` Files (0) InitialLoadPending `;if(!this.program)return` Files (0) NoProgram `;let r=this.program.getSourceFiles(),i=` Files (${r.length}) `;if(e){for(let e of r)i+=` ${e.fileName}${n?` ${e.version} ${JSON.stringify(e.text)}`:``} `;t&&(i+=` `,GK(this.program,e=>i+=` ${e} `))}return i}print(e,t,n){var r;this.writeLog(`Project '${this.projectName}' (${c9[this.projectKind]})`),this.writeLog(this.filesToStringWorker(e&&this.projectService.logger.hasLevel(3),t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3))),this.writeLog(`-----------------------------------------------`),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(r=this.noDtsResolutionProject)==null||r.print(!1,!1,!1)}setCompilerOptions(e){var t;if(e){e.allowNonTsExtensions=!0;let n=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),(t=this.noDtsResolutionProject)==null||t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Of(n,e)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(e){this.watchOptions=e}getWatchOptions(){return this.watchOptions}setTypeAcquisition(e){e&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(e))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(e,t){let n=t?e=>$e(e.entries(),([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t})):e=>$e(e.keys());this.initialLoadPending||z9(this);let r={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:f9(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},i=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!i)return{info:r,projectErrors:this.getGlobalProjectErrors()};let e=this.lastReportedFileNames,a=this.externalFiles?.map(e=>({fileName:r9(e),isSourceOfProjectReferenceRedirect:!1}))||t9,o=nt(this.getFileNamesWithRedirectInfo(!!t).concat(a),e=>e.fileName,e=>e.isSourceOfProjectReferenceRedirect),s=new Map,c=new Map,l=i?$e(i.keys()):[],u=[];return Mf(o,(n,r)=>{e.has(r)?t&&n!==e.get(r)&&u.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):s.set(r,n)}),Mf(e,(e,t)=>{o.has(t)||c.set(t,e)}),this.lastReportedFileNames=o,this.lastReportedVersion=this.projectProgramVersion,{info:r,changes:{added:n(s),removed:n(c),updated:t?l.map(e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)})):l,updatedRedirects:t?u:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let e=this.getFileNamesWithRedirectInfo(!!t),n=this.externalFiles?.map(e=>({fileName:r9(e),isSourceOfProjectReferenceRedirect:!1}))||t9,i=e.concat(n);return this.lastReportedFileNames=nt(i,e=>e.fileName,e=>e.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:r,files:t?i:i.map(e=>e.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,lo(this.projectService.getExecutingFilePath(),`../../..`)]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;let t=this.projectService.host;if(!t.require&&!t.importPlugin){this.projectService.logger.info(`Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded`);return}let n=this.getGlobalPluginSearchPaths();for(let t of this.projectService.globalPlugins)t&&(e.plugins&&e.plugins.some(e=>e.name===t)||(this.projectService.logger.info(`Loading global plugin ${t}`),this.enablePlugin({name:t,global:!0},n)))}enablePlugin(e,t){this.projectService.requestEnablePlugin(this,e,t)}enableProxy(e,t){try{if(typeof e!=`function`){this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);return}let n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:FOe}),i=r.create(n);for(let e of Object.keys(this.languageService))e in i||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${e} in created LS. Patching.`),i[e]=this.languageService[e]);this.projectService.logger.info(`Plugin validation succeeded`),this.languageService=i,this.plugins.push({name:t.name,module:r})}catch(e){this.projectService.logger.info(`Plugin activation failed: ${e}`)}}onPluginConfigurationChanged(e,t){this.plugins.filter(t=>t.name===e).forEach(e=>{e.module.onConfigurationChanged&&e.module.onConfigurationChanged(t)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(e,t){return this.projectService.serverMode===0?this.projectService.getPackageJsonsVisibleToFile(e,this,t):t9}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e,this)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(lo(this.currentDirectory,UW),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||=e1(this)}clearCachedExportInfoMap(){var e;(e=this.exportMapCache)==null||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||O$(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||this.projectService.host.realpath?.bind(this.projectService.host),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:this.projectService.host.trace?.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var e,t,n;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(z9(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let r=this.includePackageJsonAutoImports();if(r){(e=Ar)==null||e.push(Ar.Phase.Session,`getPackageJsonAutoImportProvider`);let i=sr();if(this.autoImportProviderHost=Hke.create(r,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return z9(this.autoImportProviderHost),this.sendPerformanceEvent(`CreatePackageJsonAutoImportProvider`,sr()-i),(t=Ar)==null||t.pop(),this.autoImportProviderHost.getCurrentProgram();(n=Ar)==null||n.pop()}}isDefaultProjectForOpenFiles(){return!!Mf(this.projectService.openFiles,(e,t)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(t))===this)}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(e,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return H.assert(this.projectService.serverMode===0),this.noDtsResolutionProject??=new Bke(this),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}runWithTemporaryFileUpdate(e,t,n){var r,i;let a=this.program,o=H.checkDefined(this.program?.getSourceFile(e),`Expected file to be part of program`),s=H.checkDefined(o.getFullText());(r=this.getScriptInfo(e))==null||r.editContent(0,s.length,t),this.updateGraph();try{n(this.program,a,this.program?.getSourceFile(e))}finally{(i=this.getScriptInfo(e))==null||i.editContent(0,t.length,s)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:c,lib:c,noLib:!0}}};function Lke(e,t){var n,r;let i=e.getSourceFiles();(n=Ar)==null||n.push(Ar.Phase.Session,`getUnresolvedImports`,{count:i.length});let a=e.getTypeChecker().getAmbientModules().map(e=>Zv(e.getName())),o=be(re(i,n=>Rke(e,n,a,t)));return(r=Ar)==null||r.pop(),o}function Rke(e,t,n,r){return oe(r,t.path,()=>{let r;return e.forEachResolvedModule(({resolvedModule:e},t)=>{(!e||!yw(e.extension))&&!tc(t)&&!n.some(e=>e===t)&&(r=I(r,NR(t).packageName))},t),r||t9})}var zke=class extends u9{constructor(e,t,n,r,i,a){super(e.newInferredProjectName(),0,e,!1,void 0,t,!1,n,e.host,i),this._isJsInferredProject=!1,this.typeAcquisition=a,this.projectRootPath=r&&e.toCanonicalFileName(r),!r&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=kZ(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!=`number`?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){H.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&v(this.getRootScriptInfos(),e=>!e.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){d(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:kke(this),include:c,exclude:c}}},Bke=class extends u9{constructor(e){super(e.projectService.newAuxiliaryProjectName(),4,e.projectService,!1,void 0,e.getCompilerOptionsForNoDtsResolutionProject(),!1,void 0,e.projectService.host,e.currentDirectory)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},Vke=class e extends u9{constructor(e,t,n){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,!1,void 0,n,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=ut(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=ut(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,t,n,r){var i,a;if(!e)return c;let o=t.getCurrentProgram();if(!o)return c;let s=sr(),l,u,f=lo(t.currentDirectory,UW),p=t.getPackageJsonsForAutoImport(lo(t.currentDirectory,f));for(let e of p)(i=e.dependencies)==null||i.forEach((e,t)=>v(t)),(a=e.peerDependencies)==null||a.forEach((e,t)=>v(t));let m=0;if(l){let i=t.getSymlinkCache();for(let a of $e(l.keys())){if(e===2&&m>=this.maxDependencies)return t.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),c;let s=PL(a,t.currentDirectory,r,n,o.getModuleResolutionCache());if(s){let e=y(s,o,i);if(e){m+=_(e);continue}}if(!d([t.currentDirectory,t.getGlobalTypingsCacheLocation()],e=>{if(e){let t=PL(`@types/${a}`,e,r,n,o.getModuleResolutionCache());if(t){let e=y(t,o,i);return m+=_(e),!0}}})&&s&&r.allowJs&&r.maxNodeModuleJsDepth){let e=y(s,o,i,!0);m+=_(e)}}}let h=o.getResolvedProjectReferences(),g=0;return h?.length&&t.projectService.getHostPreferences().includeCompletionsForModuleExports&&h.forEach(e=>{if(e?.commandLine.options.outFile)g+=_(b([pw(e.commandLine.options.outFile,`.d.ts`)]));else if(e){let n=kt(()=>jU(e.commandLine,!t.useCaseSensitiveFileNames()));g+=_(b(M(e.commandLine.fileNames,r=>!OP(r)&&!qa(r,`.json`)&&!o.getSourceFile(r)?CU(r,e.commandLine,!t.useCaseSensitiveFileNames(),n):void 0)))}}),u?.size&&t.log(`AutoImportProviderProject: found ${u.size} root files in ${m} dependencies ${g} referenced projects in ${sr()-s} ms`),u?$e(u.values()):c;function _(e){return e?.length?(u??=new Set,e.forEach(e=>u.add(e)),1):0}function v(e){pn(e,`@types/`)||(l||=new Set).add(e)}function y(e,i,a,o){let s=CR(e,r,n,i.getModuleResolutionCache(),o);if(s){let r=n.realpath?.call(n,e.packageDirectory),i=r?t.toPath(r):void 0,o=i&&i!==t.toPath(e.packageDirectory);return o&&a.setSymlinkedDirectory(e.packageDirectory,{real:xo(r),realPath:xo(i)}),b(s,o?t=>t.replace(e.packageDirectory,r):void 0)}}function b(e,t){return M(e,e=>{let n=t?t(e):e;if(!o.getSourceFile(n)&&!(t&&o.getSourceFile(e)))return n})}}static create(t,n,r){if(t===0)return;let i={...n.getCompilerOptions(),...this.compilerOptionsOverrides},a=this.getRootFileNames(t,n,r,i);if(a.length)return new e(n,a,i)}isEmpty(){return!F(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings()),this.projectService.setFileNamesOfAutoImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let n=this.getCurrentProgram(),r=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){return!!this.rootFileNames?.length}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||c}getLanguageService(){throw Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw Error(`package.json changes should be notified on an AutoImportProvider's host project`)}getHostForAutoImportProvider(){throw Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){return this.hostProject.getCurrentProgram()?.getModuleResolutionCache()}};Vke.maxDependencies=10,Vke.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:c,lib:c,noLib:!0};var Hke=Vke,Uke=class extends u9{constructor(e,t,n,r,i){super(e,1,n,!1,void 0,{},!1,void 0,r,$a(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.initialLoadPending=!0,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=i}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=r9(e),n=a9(this.projectService.toCanonicalFileName(t)),r=this.projectService.configFileExistenceInfoCache.get(n);return r||this.projectService.configFileExistenceInfoCache.set(n,r={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,r,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(a9(this.projectService.toCanonicalFileName(r9(e))))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;let e=this.dirty;this.initialLoadPending=!1;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let n;switch(t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let e=H.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,e),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),t===2||n&&(!e||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return a9(this.getProjectName())}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){H.assert(this.initialLoadPending),(this.potentialProjectReferences||=new Set).add(e)}getRedirectFromSourceFile(e){let t=this.getCurrentProgram();return t&&t.getRedirectFromSourceFile(e)}forEachResolvedProjectReference(e){return this.getCurrentProgram()?.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){if(this.plugins.length=0,!e.plugins?.length&&!this.projectService.globalPlugins.length)return;let t=this.projectService.host;if(!t.require&&!t.importPlugin){this.projectService.logger.info(`Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded`);return}let n=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let e=$a(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),n.unshift(e)}if(e.plugins)for(let t of e.plugins)this.enablePlugin(t,n);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return E(this.projectErrors,e=>!e.file)||t9}getAllProjectErrors(){return this.projectErrors||t9}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return AL(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,MI(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,jI(e.raw))}},d9=class extends u9{constructor(e,t,n,r,i,a,o){super(e,2,t,!0,r,n,i,o,t.host,$a(a||so(e))),this.externalProjectName=e,this.compileOnSaveEnabled=i,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function f9(e){return e.projectKind===0}function p9(e){return e.projectKind===1}function m9(e){return e.projectKind===2}function h9(e){return e.projectKind===3||e.projectKind===4}function g9(e){return p9(e)&&!!e.deferredClose}var _9=20*1024*1024,v9=4*1024*1024,y9=`projectsUpdatedInBackground`,b9=`projectLoadingStart`,x9=`projectLoadingFinish`,S9=`largeFileReferenced`,C9=`configFileDiag`,w9=`projectLanguageServiceState`,T9=`projectInfo`,Wke=`openFileInfo`,E9=`createFileWatcher`,D9=`createDirectoryWatcher`,O9=`closeFileWatcher`,Gke=`*ensureProjectForOpenFiles*`;function Kke(e){let t=new Map;for(let n of e)if(typeof n.type==`object`){let e=n.type;e.forEach(e=>{H.assert(typeof e==`number`)}),t.set(n.name,e)}return t}var qke=Kke(ZP),Jke=Kke(KP),Yke=new Map(Object.entries({none:0,block:1,smart:2})),Xke={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:[`jquery`]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[[`^`,1,`/.*`]],types:[`winjs`]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[[`^`,1,`/.*`]],types:[`kendo-ui`]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[[`^`,1,`/.*`]],types:[`office`]},References:{match:/^(.*\/_references\.js)$/i,exclude:[[`^`,1,`$`]]}};function k9(e){return gt(e.indentStyle)&&(e.indentStyle=Yke.get(e.indentStyle.toLowerCase()),H.assert(e.indentStyle!==void 0)),e}function A9(e){return qke.forEach((t,n)=>{let r=e[n];gt(r)&&(e[n]=t.get(r.toLowerCase()))}),e}function j9(e,t){let n,r;return KP.forEach(i=>{let a=e[i.name];if(a===void 0)return;let o=Jke.get(i.name);(n||={})[i.name]=o?gt(a)?o.get(a.toLowerCase()):a:JI(i,a,t||``,r||=[])}),n&&{watchOptions:n,errors:r}}function Zke(e){let t;return dF.forEach(n=>{let r=e[n.name];r!==void 0&&((t||={})[n.name]=r)}),t}function M9(e){return gt(e)?N9(e):e}function N9(e){switch(e){case`JS`:return 1;case`JSX`:return 2;case`TS`:return 3;case`TSX`:return 4;default:return 0}}function Qke(e){let{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var P9={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){let r=ro(e);r&&F(t,e=>e.extension===r?(n=e.scriptKind,!0):!1)}return n},hasMixedContent:(e,t)=>F(t,t=>t.isMixedContent&&qa(e,t.extension))},F9={getFileName:e=>e.fileName,getScriptKind:e=>M9(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function $ke(e,t){for(let n of t)if(n.getProjectName()===e)return n}var I9={isKnownTypesPackageName:xt,installPackage:Ot,enqueueInstallTypingsRequest:bt,attach:bt,onProjectClosed:bt,globalTypingsCacheLocation:void 0},eAe={close:bt};function tAe(e,t){if(!t)return;let n=t.get(e.path);if(n!==void 0)return L9(e)?n&&!gt(n)?n.get(e.fileName):void 0:gt(n)||!n?n:n.get(!1)}function nAe(e){return!!e.containingProjects}function L9(e){return!!e.configFileInfo}var rAe=(e=>(e[e.FindOptimized=0]=`FindOptimized`,e[e.Find=1]=`Find`,e[e.CreateReplayOptimized=2]=`CreateReplayOptimized`,e[e.CreateReplay=3]=`CreateReplay`,e[e.CreateOptimized=4]=`CreateOptimized`,e[e.Create=5]=`Create`,e[e.ReloadOptimized=6]=`ReloadOptimized`,e[e.Reload=7]=`Reload`,e))(rAe||{});function iAe(e){return e-1}function aAe(e,t,n,r,i,a,o,s,c){for(;;){if(t.parsedCommandLine&&(s&&!t.parsedCommandLine.options.composite||t.parsedCommandLine.options.disableSolutionSearching))return;let l=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0,isForDefaultProject:!s},r<=3);if(!l)return;let u=t.projectService.findCreateOrReloadConfiguredProject(l,r,i,a,s?void 0:e.fileName,o,s,c);if(!u)return;!u.project.parsedCommandLine&&t.parsedCommandLine?.options.composite&&u.project.setPotentialProjectReference(t.canonicalConfigFilePath);let d=n(u);if(d)return d;t=u.project}}function oAe(e,t,n,r,i,a,o,s){let c=t.options.disableReferencedProjectLoad?0:r,l;return d(t.projectReferences,t=>{let u=r9(uG(t)),d=a9(e.projectService.toCanonicalFileName(u)),f=s?.get(d);if(f!==void 0&&f>=c)return;let p=e.projectService.configFileExistenceInfoCache.get(d),m=c===0?p?.exists||e.resolvedChildConfigs?.has(d)?p.config.parsedCommandLine:void 0:e.getParsedCommandLine(u);if(m&&c!==r&&c>2&&(m=e.getParsedCommandLine(u)),!m)return;let h=e.projectService.findConfiguredProjectByProjectName(u,a);if(!(c===2&&!p&&!h)){switch(c){case 6:h&&h.projectService.reloadConfiguredProjectOptimized(h,i,o);case 4:(e.resolvedChildConfigs??=new Set).add(d);case 2:case 0:if(h||c!==0){let t=n(p??e.projectService.configFileExistenceInfoCache.get(d),h,u,i,e,d);if(t)return t}break;default:H.assertNever(c)}(s??=new Map).set(d,c),(l??=[]).push(m)}})||d(l,t=>t.projectReferences&&oAe(e,t,n,c,i,a,o,s))}function sAe(e,t,n,r,i){let a=!1,o;switch(t){case 2:case 3:gAe(e)&&(o=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(o=hAe(e),o)break;case 5:a=mAe(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,r,i),o=hAe(e),o)break;case 7:a=e.projectService.reloadConfiguredProjectClearingSemanticCache(e,r,i);break;case 0:case 1:break;default:H.assertNever(t)}return{project:e,sentConfigFileDiag:a,configFileExistenceInfo:o,reason:r}}function cAe(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&Nf(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&Nf(e.resolvedChildConfigs,t)):void 0}function lAe(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?cAe(e,r):d(e.getProjectReferences(),n)}function uAe(e,t,n){let r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function dAe(e,t){return lAe(e,n=>uAe(e,t,n.sourceFile.path),n=>uAe(e,t,e.toPath(uG(n))),n=>uAe(e,t,n))}function R9(e,t){return`${gt(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:``}WatchType: ${e}`}function fAe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function z9(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function pAe(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;let r=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return r===2;let i=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,i}function mAe(e,t){if(t){if(pAe(e,t,!1))return!0}else z9(e);return!1}function hAe(e){let t=r9(e.getConfigFilePath()),n=e.projectService.ensureParsedConfigUptoDate(t,e.canonicalConfigFilePath,e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),r=n.config.parsedCommandLine;if(e.parsedCommandLine=r,e.resolvedChildConfigs=void 0,e.updateReferences(r.projectReferences),gAe(e))return n}function gAe(e){return!!e.parsedCommandLine&&(!!e.parsedCommandLine.options.composite||!!AI(e.parsedCommandLine))}function _Ae(e){return gAe(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}function vAe(e){return`Creating possible configured project for ${e.fileName} to open`}function B9(e){return`User requested reload projects: ${e}`}function yAe(e){p9(e)&&(e.projectOptions=!0)}function bAe(e){let t=1;return()=>e(t++)}function xAe(){return{idToCallbacks:new Map,pathToId:new Map}}function SAe(e,t){return!!t&&!!e.eventHandler&&!!e.session}function CAe(e,t){if(!SAe(e,t))return;let n=xAe(),r=xAe(),i=xAe(),a=1;return e.session.addProtocolHandler(`watchChange`,e=>(l(e.arguments),{responseRequired:!1})),{watchFile:o,watchDirectory:s,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function o(e,t){return c(n,e,t,t=>({eventName:E9,data:{id:t,path:e}}))}function s(e,t,n){return c(n?i:r,e,t,t=>({eventName:D9,data:{id:t,path:e,recursive:!!n,ignoreUpdate:e.endsWith(`/node_modules`)?void 0:!0}}))}function c({pathToId:t,idToCallbacks:n},r,i,o){let s=e.toPath(r),c=t.get(s);c||t.set(s,c=a++);let l=n.get(c);return l||(n.set(c,l=new Set),e.eventHandler(o(c))),l.add(i),{close(){let r=n.get(c);r?.delete(i)&&(r.size||(n.delete(c),t.delete(s),e.eventHandler({eventName:O9,data:{id:c}})))}}}function l(e){mt(e)?e.forEach(u):u(e)}function u({id:e,created:t,deleted:n,updated:r}){d(e,t,0),d(e,n,2),d(e,r,1)}function d(e,t,a){t?.length&&(f(n,e,t,(e,t)=>e(t,a)),f(r,e,t,(e,t)=>e(t)),f(i,e,t,(e,t)=>e(t)))}function f(e,t,n,r){var i;(i=e.idToCallbacks.get(t))==null||i.forEach(e=>{n.forEach(t=>r(e,so(t)))})}}var wAe=class e{constructor(e){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Set,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=bAe(ake),this.newAutoImportProviderProjectName=bAe(oke),this.newAuxiliaryProjectName=bAe(ske),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=Xke,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=bt,this.verifyDocumentRegistry=bt,this.verifyProgram=bt,this.onProjectCreation=bt;var t;this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||I9,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||t9,this.pluginProbeLocations=e.pluginProbeLocations||t9,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=e.typesMapLocation===void 0?lo($a(this.getExecutingFilePath()),`typesMap.json`):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,e.serverMode===void 0?this.serverMode=0:this.serverMode=e.serverMode,this.host.realpath&&(this.realpathToScriptInfos=R()),this.currentDirectory=r9(this.host.getCurrentDirectory()),this.toCanonicalFileName=ln(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?xo(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new lke(this.host,this.logger),this.logger.info(`currentDirectory:: ${this.host.getCurrentDirectory()} useCaseSensitiveFileNames:: ${this.host.useCaseSensitiveFileNames}`),this.logger.info(`libs Location:: ${$a(this.host.getExecutingFilePath())}`),this.logger.info(`globalTypingsCacheLocation:: ${this.typingsInstaller.globalTypingsCacheLocation}`),this.typesMapLocation?this.loadTypesMap():this.logger.info(`No types map provided; using the default`),this.typingsInstaller.attach(this),this.hostConfiguration={formatCodeOptions:$Y(this.host.newLine),preferences:GY,hostInfo:`Unknown host`,extraFileExtensions:[]},this.documentRegistry=h1(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let n=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=n===0?bt:e=>this.logger.info(e);this.packageJsonCache=AAe(this),this.watchFactory=this.serverMode===0?tW(CAe(this,e.canUseWatchEvents)||this.host,n,r,R9):{watchFile:eq,watchDirectory:eq},this.canUseWatchEvents=SAe(this,e.canUseWatchEvents),(t=e.incrementalVerifier)==null||t.call(e,this)}toPath(e){return yo(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return po(e,this.host.getCurrentDirectory())}setDocument(e,t,n){let r=H.checkDefined(this.getScriptInfoForPath(t));r.cacheSourceFile={key:e,sourceFile:n}}getDocument(e,t){let n=this.getScriptInfoForPath(t);return n&&n.cacheSourceFile&&n.cacheSourceFile.key===e?n.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(e,t){if(!this.eventHandler)return;let n={eventName:w9,data:{project:e,languageServiceEnabled:t}};this.eventHandler(n)}loadTypesMap(){try{let e=this.host.readFile(this.typesMapLocation);if(e===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let t=JSON.parse(e);for(let e of Object.keys(t.typesMap))t.typesMap[e].match=new RegExp(t.typesMap[e].match,`i`);this.safelist=t.typesMap;for(let e in t.simpleMap)qe(t.simpleMap,e)&&this.legacySafelist.set(e,t.simpleMap[e].toLowerCase())}catch(e){this.logger.info(`Error loading types map: ${e}`),this.safelist=Xke,this.legacySafelist.clear()}}updateTypingsForProject(e){let t=this.findProject(e.projectName);if(t)switch(e.kind){case wY:t.updateTypingFiles(e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings);return;case TY:t.enqueueInstallTypingsForProject(!0);return}}watchTypingLocations(e){var t;(t=this.findProject(e.projectName))==null||t.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(Gke,2500,()=>{this.pendingProjectUpdates.size===0?this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent()):this.delayEnsureProjectForOpenFiles()}))}delayUpdateProjectGraph(e){if(g9(e)||(e.markAsDirty(),h9(e)))return;let t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,()=>{this.pendingProjectUpdates.delete(t)&&z9(e)})}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let e={eventName:y9,data:{openFiles:$e(this.openFiles.keys(),e=>this.getScriptInfoForPath(e).fileName)}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;let n={eventName:S9,data:{file:e,fileSize:t,maxFileSize:v9}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;let n={eventName:b9,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;let t={eventName:x9,data:{project:e}};this.eventHandler(t)}sendPerformanceEvent(e,t){this.performanceEventHandler&&this.performanceEventHandler({kind:e,durationMs:t})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(e){this.delayUpdateProjectGraph(e),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(e,t){if(e.length){for(let n of e)t&&n.clearSourceMapperCache(),this.delayUpdateProjectGraph(n);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){H.assert(t===void 0||this.useInferredProjectPerProjectRoot,`Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled`);let n=A9(e),r=j9(e,t),i=Zke(e);n.allowNonTsExtensions=!0;let a=t&&this.toCanonicalFileName(t);a?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(a,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(a,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(a,i)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=i);for(let e of this.inferredProjects)(a?e.projectRootPath===a:!e.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(e.projectRootPath))&&(e.setCompilerOptions(n),e.setTypeAcquisition(i),e.setWatchOptions(r?.watchOptions),e.setProjectErrors(r?.errors),e.compileOnSaveEnabled=n.compileOnSave,e.markAsDirty(),this.delayUpdateProjectGraph(e));this.delayEnsureProjectForOpenFiles()}findProject(e){if(e!==void 0)return ike(e)?$ke(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(r9(e))}forEachProject(e){this.externalProjects.forEach(e),this.configuredProjects.forEach(e),this.inferredProjects.forEach(e)}forEachEnabledProject(e){this.forEachProject(t=>{!t.isOrphan()&&t.languageServiceEnabled&&e(t)})}getDefaultProjectForFile(e,t){return t?this.ensureDefaultProjectForFile(e):this.tryGetDefaultProjectForFile(e)}tryGetDefaultProjectForFile(e){let t=gt(e)?this.getScriptInfoForNormalizedPath(e):e;return t&&!t.isOrphan()?t.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e){let t=gt(e)?this.getScriptInfoForNormalizedPath(e):e;if(t)return this.pendingOpenFileProjectUpdates?.delete(t.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,5),t.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),this.tryGetDefaultProjectForFile(t)}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();let t=gt(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(gt(e)?e:e.fileName),n9.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let t=t=>{e=z9(t)||e};this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){let t=this.getScriptInfoForNormalizedPath(e);return t&&t.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){let t=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...t&&t.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){H.assert(!e.isScriptOpen()),t===2?this.handleDeletedFile(e,!0):(e.deferredDelete&&=void 0,e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(gt(e.sourceMapFilePath)){let t=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(t?.sourceInfos)}else this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(e.sourceInfos),e.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(e.declarationInfoPath)}delayUpdateSourceInfoProjects(e){e&&e.forEach((e,t)=>this.delayUpdateProjectsOfScriptInfoPath(t))}delayUpdateProjectsOfScriptInfoPath(e){let t=this.getScriptInfoForPath(e);t&&this.delayUpdateProjectGraphs(t.containingProjects,!0)}handleDeletedFile(e,t){H.assert(!e.isScriptOpen()),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e),e.detachAllProjects(),t?(e.delayReloadNonMixedContentFile(),e.deferredDelete=!0):this.deleteScriptInfo(e)}watchWildcardDirectory(e,t,n,r){let i=this.watchFactory.watchDirectory(e,t=>this.onWildCardDirectoryWatcherInvoke(e,n,r,a,t),t,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions,$a(n)),nq.WildcardDirectory,n),a={packageJsonWatches:void 0,close(){var e;i&&(i.close(),i=void 0,(e=a.packageJsonWatches)==null||e.forEach(e=>{e.projects.delete(a),e.close()}),a.packageJsonWatches=void 0)}};return a}onWildCardDirectoryWatcherInvoke(e,t,n,r,i){let a=this.toPath(i),o=n.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(i,a);if(eo(a)===`package.json`&&!O$(a)&&(o&&o.fileExists||!o&&this.host.fileExists(i))){let e=this.getNormalizedAbsolutePath(i);this.logger.info(`Config: ${t} Detected new package.json: ${e}`),this.packageJsonCache.addOrUpdate(e,a),this.watchPackageJsonFile(e,a,r)}o?.fileExists||this.sendSourceFileChange(a);let s=this.findConfiguredProjectByProjectName(t);QU({watchedDirPath:this.toPath(e),fileOrDirectory:i,fileOrDirectoryPath:a,configFileName:t,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:n.parsedCommandLine.options,program:s?.getCurrentProgram()||n.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:s?e=>s.getScriptKind(e):void 0})||(n.updateLevel!==2&&(n.updateLevel=1),n.projects.forEach((e,n)=>{if(!e)return;let r=this.getConfiguredProjectByCanonicalConfigFilePath(n);if(!r)return;if(s!==r&&this.getHostPreferences().includeCompletionsForModuleExports){let e=this.toPath(t);y(r.getCurrentProgram()?.getResolvedProjectReferences(),t=>t?.sourceFile.path===e)&&r.markAutoImportProviderAsDirty()}let i=s===r?1:0;if(!(r.pendingUpdateLevel>i))if(this.openFiles.has(a))if(H.checkDefined(this.getScriptInfoForPath(a)).isAttached(r)){let e=Math.max(i,r.openFileWatchTriggered.get(a)||0);r.openFileWatchTriggered.set(a,e)}else r.pendingUpdateLevel=i,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(r);else r.pendingUpdateLevel=i,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(r)}))}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,t){let n=this.configFileExistenceInfoCache.get(e);if(!n?.config)return!1;let r=!1;return n.config.updateLevel=2,n.config.cachedDirectoryStructureHost.clearCache(),n.config.projects.forEach((n,i)=>{var a;let o=this.getConfiguredProjectByCanonicalConfigFilePath(i);if(o)if(r=!0,i===e){if(o.initialLoadPending)return;o.pendingUpdateLevel=2,o.pendingUpdateReason=t,this.delayUpdateProjectGraph(o),o.markAutoImportProviderAsDirty()}else{if(o.initialLoadPending){(a=this.configFileExistenceInfoCache.get(i)?.openFilesImpactedByConfigFile)==null||a.forEach(e=>{this.pendingOpenFileProjectUpdates?.has(e)||(this.pendingOpenFileProjectUpdates??=new Map).set(e,this.configFileForOpenFiles.get(e))});return}let t=this.toPath(e);o.resolutionCache.removeResolutionsFromProjectReferenceRedirects(t),this.delayUpdateProjectGraph(o),this.getHostPreferences().includeCompletionsForModuleExports&&y(o.getCurrentProgram()?.getResolvedProjectReferences(),e=>e?.sourceFile.path===t)&&o.markAutoImportProviderAsDirty()}}),r}onConfigFileChanged(e,t,n){let r=this.configFileExistenceInfoCache.get(t),i=this.getConfiguredProjectByCanonicalConfigFilePath(t),a=i?.deferredClose;n===2?(r.exists=!1,i&&(i.deferredClose=!0)):(r.exists=!0,a&&(i.deferredClose=void 0,i.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,`Change in config file detected`),this.openFiles.forEach((e,t)=>{let n=this.configFileForOpenFiles.get(t);if(!r.openFilesImpactedByConfigFile?.has(t))return;this.configFileForOpenFiles.delete(t);let i=this.getScriptInfoForPath(t);this.getConfigFileNameForFile(i,!1)&&(this.pendingOpenFileProjectUpdates?.has(t)||(this.pendingOpenFileProjectUpdates??=new Map).set(t,n))}),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),H.shouldAssert(1)&&this.filenameToScriptInfo.forEach(t=>H.assert(!t.isAttached(e),`Found script Info still attached to project`,()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify($e(N(this.filenameToScriptInfo.values(),t=>t.isAttached(e)?{fileName:t.fileName,projects:t.containingProjects.map(e=>e.projectName),hasMixedContent:t.hasMixedContent}:void 0)),void 0,` `)}`)),this.pendingProjectUpdates.delete(e.getProjectName()),e.projectKind){case 2:sn(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:sn(this.inferredProjects,e);break}}assignOrphanScriptInfoToInferredProject(e,t){H.assert(e.isOrphan());let n=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:$a(Va(e.fileName)?e.fileName:po(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(n.addRoot(e),e.containingProjects[0]!==n&&(rn(e.containingProjects,n),e.containingProjects.unshift(n)),n.updateGraph(),!this.useSingleInferredProject&&!n.projectRootPath)for(let e of this.inferredProjects){if(e===n||e.isOrphan())continue;let t=e.getRootScriptInfos();H.assert(t.length===1||!!e.projectRootPath),t.length===1&&d(t[0].containingProjects,e=>e!==t[0].containingProjects[0]&&!e.isOrphan())&&e.removeFile(t[0],!0,!0)}return n}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((e,t)=>{let n=this.getScriptInfoForPath(t);n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,e)})}closeOpenFile(e,t){var n;let r=e.isDynamic?!1:this.host.fileExists(e.fileName);e.close(r),this.stopWatchingConfigFilesForScriptInfo(e);let i=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(i)===e&&this.openFilesWithNonRootedDiskPath.delete(i);let a=!1;for(let t of e.containingProjects){if(p9(t)){e.hasMixedContent&&e.registerFileUpdate();let n=t.openFileWatchTriggered.get(e.path);n!==void 0&&(t.openFileWatchTriggered.delete(e.path),t.pendingUpdateLevelthis.onConfigFileChanged(e,t,r),2e3,this.getWatchOptionsFromProjectWatchOptions(r?.config?.parsedCommandLine?.watchOptions,$a(e)),nq.ConfigFile,n)),this.ensureConfigFileWatcherForProject(r,n)}ensureConfigFileWatcherForProject(e,t){let n=e.config.projects;n.set(t.canonicalConfigFilePath,n.get(t.canonicalConfigFilePath)||!1)}releaseParsedConfig(e,t){let n=this.configFileExistenceInfoCache.get(e);n.config?.projects.delete(t.canonicalConfigFilePath)&&(n.config?.projects.size||(n.config=void 0,JU(e,this.sharedExtendedConfigFileWatchers),H.checkDefined(n.watcher),n.openFilesImpactedByConfigFile?.size?n.inferredProjectRoots?yK($a(e))||(n.watcher.close(),n.watcher=eAe):(n.watcher.close(),n.watcher=void 0):(n.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}stopWatchingConfigFilesForScriptInfo(e){if(this.serverMode!==0)return;let t=this.rootOfInferredProjects.delete(e),n=e.isScriptOpen();n&&!t||this.forEachConfigFileLocation(e,r=>{let i=this.configFileExistenceInfoCache.get(r);if(i){if(n){if(!(i?.openFilesImpactedByConfigFile)?.has(e.path))return}else if(!i.openFilesImpactedByConfigFile?.delete(e.path))return;t&&(i.inferredProjectRoots--,i.watcher&&!i.config&&!i.inferredProjectRoots&&(i.watcher.close(),i.watcher=void 0)),!i.openFilesImpactedByConfigFile?.size&&!i.config&&(H.assert(!i.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(e){this.serverMode===0&&(H.assert(e.isScriptOpen()),this.rootOfInferredProjects.add(e),this.forEachConfigFileLocation(e,(t,n)=>{let r=this.configFileExistenceInfoCache.get(t);r?r.inferredProjectRoots=(r.inferredProjectRoots??0)+1:(r={exists:this.host.fileExists(n),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(t,r)),(r.openFilesImpactedByConfigFile??=new Set).add(e.path),r.watcher||=yK($a(t))?this.watchFactory.watchFile(n,(e,r)=>this.onConfigFileChanged(n,t,r),2e3,this.hostConfiguration.watchOptions,nq.ConfigFileForInferredRoot):eAe}))}forEachConfigFileLocation(e,t){if(this.serverMode!==0)return;H.assert(!nAe(e)||this.openFiles.has(e.path));let n=this.openFiles.get(e.path);if(H.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=a9($a(e.fileName)),i=()=>Ao(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),a=!n||!i(),o=!0,s=!0;L9(e)&&(o=$t(e.fileName,`tsconfig.json`)?!1:s=!1);do{let e=i9(r,this.currentDirectory,this.toCanonicalFileName);if(o){let n=a9(lo(r,`tsconfig.json`));if(t(lo(e,`tsconfig.json`),n))return n}if(s){let n=a9(lo(r,`jsconfig.json`));if(t(lo(e,`jsconfig.json`),n))return n}if(Ro(e))break;let n=a9($a(r));if(n===r)break;r=n,o=s=!0}while(a||i())}findDefaultConfiguredProject(e){return this.findDefaultConfiguredProjectWorker(e,1)?.defaultProject}findDefaultConfiguredProjectWorker(e,t){return e.isScriptOpen()?this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t):void 0}getConfigFileNameForFileFromCache(e,t){if(t){let t=tAe(e,this.pendingOpenFileProjectUpdates);if(t!==void 0)return t}return tAe(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,t){if(!this.openFiles.has(e.path))return;let n=t||!1;if(!L9(e))this.configFileForOpenFiles.set(e.path,n);else{let t=this.configFileForOpenFiles.get(e.path);(!t||gt(t))&&this.configFileForOpenFiles.set(e.path,t=new Map().set(!1,t)),t.set(e.fileName,n)}}getConfigFileNameForFile(e,t){let n=this.getConfigFileNameForFileFromCache(e,t);if(n!==void 0)return n||void 0;if(t)return;let r=this.forEachConfigFileLocation(e,(t,n)=>this.configFileExists(n,t,e));return this.logger.info(`getConfigFileNameForFile:: File: ${e.fileName} ProjectRootPath: ${this.openFiles.get(e.path)}:: Result: ${r}`),this.setConfigFileNameForFileInCache(e,r),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(OAe),this.configuredProjects.forEach(OAe),this.inferredProjects.forEach(OAe),this.logger.info(`Open files: `),this.openFiles.forEach((e,t)=>{let n=this.getScriptInfoForPath(t);this.logger.info(` FileName: ${n.fileName} ProjectRootPath: ${e}`),this.logger.info(` Projects: ${n.containingProjects.map(e=>e.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(e,t){let n=a9(this.toCanonicalFileName(e)),r=this.getConfiguredProjectByCanonicalConfigFilePath(n);return t?r:r?.deferredClose?void 0:r}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return $ke(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let i=_9;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach(e=>i-=e||0);let a=0;for(let e of n){let t=r.getFileName(e);if(!ew(t)&&(a+=this.host.getFileSize(t),a>_9||a>i)){let e=n.map(e=>r.getFileName(e)).filter(e=>!ew(e)).map(e=>({name:e,size:this.host.getFileSize(e)})).sort((e,t)=>t.size-e.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${a}). Largest files: ${e.map(e=>`${e.name}:${e.size}`).join(`, `)}`),t}}this.projectToSizeMap.set(e,a)}createExternalProject(e,t,n,r,i){let a=A9(n),o=j9(n,$a(so(e))),s=new d9(e,this,a,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,a,t,F9),n.compileOnSave===void 0?!0:n.compileOnSave,void 0,o?.watchOptions);return s.setProjectErrors(o?.errors),s.excludedFiles=i,this.addFilesToNonInferredProject(s,t,F9,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName)){yAe(e);return}if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){yAe(e);return}let t=p9(e)?e.projectOptions:void 0;yAe(e);let n={projectId:this.host.createSHA256Hash(e.projectName),fileStats:l9(e.getScriptInfos(),!0),compilerOptions:lL(e.getCompilationSettings()),typeAcquisition:i(e.getTypeAcquisition()),extends:t&&t.configHasExtendsProperty,files:t&&t.configHasFilesProperty,include:t&&t.configHasIncludeProperty,exclude:t&&t.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:r(),projectType:e instanceof d9?`external`:`configured`,languageServiceEnabled:e.languageServiceEnabled,version:o};this.eventHandler({eventName:T9,data:n});function r(){return p9(e)&&o9(e.getConfigFilePath())||`other`}function i({enable:e,include:t,exclude:n}){return{enable:e,include:t!==void 0&&t.length!==0,exclude:n!==void 0&&n.length!==0}}}addFilesToNonInferredProject(e,t,n,r){this.updateNonInferredProjectFiles(e,t,n),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e,t){var n;(n=Ar)==null||n.instant(Ar.Phase.Session,`createConfiguredProject`,{configFilePath:e});let r=a9(this.toCanonicalFileName(e)),i=this.configFileExistenceInfoCache.get(r);i?i.exists=!0:this.configFileExistenceInfoCache.set(r,i={exists:!0}),i.config||={cachedDirectoryStructureHost:GU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2};let a=new Uke(e,r,this,i.config.cachedDirectoryStructureHost,t);return H.assert(!this.configuredProjects.has(r)),this.configuredProjects.set(r,a),this.createConfigFileWatcherForParsedConfig(e,r,a),a}loadConfiguredProject(e,t){var n,r;(n=Ar)==null||n.push(Ar.Phase.Session,`loadConfiguredProject`,{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,t);let i=r9(e.getConfigFilePath()),a=this.ensureParsedConfigUptoDate(i,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),o=a.config.parsedCommandLine;H.assert(!!o.fileNames);let s=o.options;e.projectOptions||={configHasExtendsProperty:o.raw.extends!==void 0,configHasFilesProperty:o.raw.files!==void 0,configHasIncludeProperty:o.raw.include!==void 0,configHasExcludeProperty:o.raw.exclude!==void 0},e.parsedCommandLine=o,e.setProjectErrors(o.options.configFile.parseDiagnostics),e.updateReferences(o.projectReferences);let c=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,o.fileNames,P9);c?(e.disableLanguageService(c),this.configFileExistenceInfoCache.forEach((t,n)=>this.stopWatchingWildCards(n,e))):(e.setCompilerOptions(s),e.setWatchOptions(o.watchOptions),e.enableLanguageService(),this.watchWildcards(i,a,e)),e.enablePluginsWithOptions(s);let l=o.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,l,P9,s,o.typeAcquisition,o.compileOnSave,o.watchOptions),(r=Ar)==null||r.pop()}ensureParsedConfigUptoDate(e,t,n,r){var i;if(n.config&&(n.config.updateLevel===1&&this.reloadFileNamesOfParsedConfig(e,n.config),!n.config.updateLevel))return this.ensureConfigFileWatcherForProject(n,r),n;if(!n.exists&&n.config)return n.config.updateLevel=void 0,this.ensureConfigFileWatcherForProject(n,r),n;let a=n.config?.cachedDirectoryStructureHost||GU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),o=LF(e,e=>this.host.readFile(e)),s=vP(e,gt(o)?o:``),c=s.parseDiagnostics;gt(o)||c.push(o);let l=$a(e),u=hI(s,a,l,void 0,e,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);u.errors.length&&c.push(...u.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:u.fileNames,options:u.options,watchOptions:u.watchOptions,projectReferences:u.projectReferences},void 0,` `)}`);let d=n.config?.parsedCommandLine;return n.config?(n.config.parsedCommandLine=u,n.config.watchedDirectoriesStale=!0,n.config.updateLevel=void 0):n.config={parsedCommandLine:u,cachedDirectoryStructureHost:a,projects:new Map},!d&&!Pw(this.getWatchOptionsFromProjectWatchOptions(void 0,l),this.getWatchOptionsFromProjectWatchOptions(u.watchOptions,l))&&((i=n.watcher)==null||i.close(),n.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,r),qU(t,u.options,this.sharedExtendedConfigFileWatchers,(t,n)=>this.watchFactory.watchFile(t,()=>{var e;YU(this.extendedConfigCache,n,e=>this.toPath(e));let r=!1;(e=this.sharedExtendedConfigFileWatchers.get(n))==null||e.projects.forEach(e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${t} detected`)||r}),r&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,nq.ExtendedConfigFile,e),e=>this.toPath(e)),n}watchWildcards(e,{exists:t,config:n},r){if(n.projects.set(r.canonicalConfigFilePath,!0),t){if(n.watchedDirectories&&!n.watchedDirectoriesStale)return;n.watchedDirectoriesStale=!1,ZU(n.watchedDirectories||=new Map,n.parsedCommandLine.wildcardDirectories,(t,r)=>this.watchWildcardDirectory(t,r,e,n))}else{if(n.watchedDirectoriesStale=!1,!n.watchedDirectories)return;zx(n.watchedDirectories,rW),n.watchedDirectories=void 0}}stopWatchingWildCards(e,t){let n=this.configFileExistenceInfoCache.get(e);!n.config||!n.config.projects.get(t.canonicalConfigFilePath)||(n.config.projects.set(t.canonicalConfigFilePath,!1),!Mf(n.config.projects,wt)&&(n.config.watchedDirectories&&(zx(n.config.watchedDirectories,rW),n.config.watchedDirectories=void 0),n.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,t,n){let r=e.getRootFilesMap(),i=new Map;for(let a of t){let t=n.getFileName(a),o=r9(t),s=s9(o),c;if(!s&&!e.fileExists(t)){c=i9(o,this.currentDirectory,this.toCanonicalFileName);let t=r.get(c);t?(t.info?.path===c&&(e.removeFile(t.info,!1,!0),t.info=void 0),t.fileName=o):r.set(c,{fileName:o})}else{let t=n.getScriptKind(a,this.hostConfiguration.extraFileExtensions),i=n.hasMixedContent(a,this.hostConfiguration.extraFileExtensions),s=H.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(o,e.currentDirectory,t,i,e.directoryStructureHost,!1));c=s.path;let l=r.get(c);!l||l.info!==s?(e.addRoot(s,o),s.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(s)):l.fileName=o}i.set(c,!0)}r.size>i.size&&r.forEach((t,n)=>{i.has(n)||(t.info?e.removeFile(t.info,e.fileExists(t.info.fileName),!0):r.delete(n))})}updateRootAndOptionsOfNonInferredProject(e,t,n,r,i,a,o){e.setCompilerOptions(r),e.setWatchOptions(o),a!==void 0&&(e.compileOnSaveEnabled=a),this.addFilesToNonInferredProject(e,t,n,i)}reloadFileNamesOfConfiguredProject(e){let t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.fileNames.concat(e.getExternalFiles(1)),P9),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(t.updateLevel===void 0)return t.parsedCommandLine;H.assert(t.updateLevel===1);let n=t.parsedCommandLine.options.configFile.configFileSpecs,r=eL(n,$a(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine={...t.parsedCommandLine,fileNames:r},t.updateLevel=void 0,t.parsedCommandLine}setFileNamesOfAutoImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,P9)}reloadConfiguredProjectOptimized(e,t,n){n.has(e)||(n.set(e,6),e.initialLoadPending||this.setProjectForReload(e,2,t))}reloadConfiguredProjectClearingSemanticCache(e,t,n){return n.get(e)===7?!1:(n.set(e,7),this.clearSemanticCache(e),this.reloadConfiguredProject(e,B9(t)),!0)}setProjectForReload(e,t,n){t===2&&this.clearSemanticCache(e),e.pendingUpdateReason=n&&B9(n),e.pendingUpdateLevel=t}reloadConfiguredProject(e,t){e.initialLoadPending=!1,this.setProjectForReload(e,0),this.loadConfiguredProject(e,t),pAe(e,e.triggerFileForConfigFileDiag??e.getConfigFilePath(),!0)}clearSemanticCache(e){e.originalConfiguredProjects=void 0,e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,t,n){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;let r=e.getLanguageService().getCompilerOptionsDiagnostics();return r.push(...e.getAllProjectErrors()),!n&&r.length===(e.configDiagDiagnosticsReported??0)?!1:(e.configDiagDiagnosticsReported=r.length,this.eventHandler({eventName:C9,data:{configFileName:e.getConfigFilePath(),diagnostics:r,triggerFile:t??e.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&t===void 0)return;if(t){let e=this.toCanonicalFileName(t);for(let t of this.inferredProjects)if(t.projectRootPath===e)return t;return this.createInferredProject(t,!1,t)}let n;for(let t of this.inferredProjects)t.projectRootPath&&Ao(t.projectRootPath,e.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(n&&n.projectRootPath.length>t.projectRootPath.length||(n=t));return n}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject(this.currentDirectory,!0,void 0)}getOrCreateSingleInferredWithoutProjectRoot(e){H.assert(!this.useSingleInferredProject);let t=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(let e of this.inferredProjects)if(!e.projectRootPath&&e.isOrphan()&&e.canonicalCurrentDirectory===t)return e;return this.createInferredProject(e,!1,void 0)}createInferredProject(e,t,n){let r=n&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(n)||this.compilerOptionsForInferredProjects,i,a;n&&(i=this.watchOptionsForInferredProjectsPerProjectRoot.get(n),a=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(n)),i===void 0&&(i=this.watchOptionsForInferredProjects),a===void 0&&(a=this.typeAcquisitionForInferredProjects),i||=void 0;let o=new zke(this,r,i?.watchOptions,n,e,a);return o.setProjectErrors(i?.errors),t?this.inferredProjects.unshift(o):this.inferredProjects.push(o),o}getOrCreateScriptInfoNotOpenedByClient(e,t,n,r){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(r9(e),t,void 0,void 0,n,r)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(r9(e))}getScriptInfoOrConfig(e){let t=r9(e),n=this.getScriptInfoForNormalizedPath(t);if(n)return n;let r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){let t=$e(N(this.filenameToScriptInfo.entries(),e=>e[1].deferredDelete?void 0:e),([e,t])=>({path:e,fileName:t.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(e)}. All files are: ${JSON.stringify(t)}`,`Err`)}getSymlinkedProjects(e){let t;if(this.realpathToScriptInfos){let t=e.getRealpathIfDifferent();t&&d(this.realpathToScriptInfos.get(t),n),d(this.realpathToScriptInfos.get(e.path),n)}return t;function n(n){if(n!==e)for(let r of n.containingProjects)r.languageServiceEnabled&&!r.isOrphan()&&!r.getCompilerOptions().preserveSymlinks&&!e.isAttached(r)&&(t?Mf(t,(e,t)=>t===n.path?!1:C(e,r))||t.add(n.path,r):(t=R(),t.add(n.path,r)))}}watchClosedScriptInfo(e){if(H.assert(!e.fileWatcher),!e.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!pn(e.path,this.globalCacheLocationDirectoryPath))){let t=e.fileName.indexOf(`/node_modules/`);!this.host.getModifiedTime||t===-1?e.fileWatcher=this.watchFactory.watchFile(e.fileName,(t,n)=>this.onSourceFileChanged(e,n),500,this.hostConfiguration.watchOptions,nq.ClosedScriptInfo):(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.fileName.substring(0,t)))}}createNodeModulesWatcher(e,t){let n=this.watchFactory.watchDirectory(e,e=>{let n=gK(this.toPath(e));if(!n)return;let i=eo(n);if(r.affectedModuleSpecifierCacheProjects?.size&&(i===`package.json`||i===`node_modules`)&&r.affectedModuleSpecifierCacheProjects.forEach(e=>{var t;(t=e.getModuleSpecifierCache())==null||t.clear()}),r.refreshScriptInfoRefCount)if(t===n)this.refreshScriptInfosInDirectory(t);else{let e=this.filenameToScriptInfo.get(n);e?fAe(e)&&this.refreshScriptInfo(e):Ka(n)||this.refreshScriptInfosInDirectory(n)}},1,this.hostConfiguration.watchOptions,nq.NodeModules),r={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{n&&!r.refreshScriptInfoRefCount&&!r.affectedModuleSpecifierCacheProjects?.size&&(n.close(),n=void 0,this.nodeModulesWatchers.delete(t))}};return this.nodeModulesWatchers.set(t,r),r}watchPackageJsonsInNodeModules(e,t){let n=this.toPath(e),r=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(e,n);return H.assert(!r.affectedModuleSpecifierCacheProjects?.has(t)),(r.affectedModuleSpecifierCacheProjects||=new Set).add(t),{close:()=>{var e;(e=r.affectedModuleSpecifierCacheProjects)==null||e.delete(t),r.close()}}}watchClosedScriptInfoInNodeModules(e){let t=e+`/node_modules`,n=this.toPath(t),r=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(t,n);return r.refreshScriptInfoRefCount++,{close:()=>{r.refreshScriptInfoRefCount--,r.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.fileName)||sa).getTime()}refreshScriptInfo(e){let t=this.getModifiedTime(e);if(t!==e.mTime){let n=ba(e.mTime,t);e.mTime=t,this.onSourceFileChanged(e,n)}}refreshScriptInfosInDirectory(e){e+=Fa,this.filenameToScriptInfo.forEach(t=>{fAe(t)&&pn(t.path,e)&&this.refreshScriptInfo(t)})}stopWatchingScriptInfo(e){e.fileWatcher&&=(e.fileWatcher.close(),void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,n,r,i,a){if(Va(e)||s9(e))return this.getOrCreateScriptInfoWorker(e,t,!1,void 0,n,!!r,i,a);let o=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e));if(o)return o}getOrCreateScriptInfoForNormalizedPath(e,t,n,r,i,a){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,n,r,!!i,a,!1)}getOrCreateScriptInfoWorker(e,t,n,r,i,a,o,s){H.assert(r===void 0||n,`ScriptInfo needs to be opened by client to be able to set its user defined content`);let c=i9(e,t,this.toCanonicalFileName),l=this.filenameToScriptInfo.get(c);if(!l){let r=s9(e);if(H.assert(Va(e)||r||n,``,()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:$e(this.openFilesWithNonRootedDiskPath.keys())})} Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),H.assert(!Va(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),``,()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:$e(this.openFilesWithNonRootedDiskPath.keys())})} Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),H.assert(!r||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,``,()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:$e(this.openFilesWithNonRootedDiskPath.keys())})} Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!n&&!r&&!(o||this.host).fileExists(e))return;l=new Cke(this.host,e,i,a,c,this.filenameToScriptInfoVersion.get(c)),this.filenameToScriptInfo.set(l.path,l),this.filenameToScriptInfoVersion.delete(l.path),n?!Va(e)&&(!r||this.currentDirectory!==t)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),l):this.watchClosedScriptInfo(l)}else if(l.deferredDelete){if(H.assert(!l.isDynamic),!n&&!(o||this.host).fileExists(e))return s?l:void 0;l.deferredDelete=void 0}return n&&(this.stopWatchingScriptInfo(l),l.open(r),a&&l.registerFileUpdate()),l}getScriptInfoForNormalizedPath(e){return!Va(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(i9(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){let t=this.filenameToScriptInfo.get(e);return!t||!t.deferredDelete?t:void 0}getDocumentPositionMapper(e,t,n){let r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!1);if(!r){n&&e.addGeneratedFileWatch(t,n);return}if(r.getSnapshot(),gt(r.sourceMapFilePath)){let t=this.getScriptInfoForPath(r.sourceMapFilePath);if(t&&(t.getSnapshot(),t.documentPositionMapper!==void 0))return t.sourceInfos=this.addSourceInfoToSourceMap(n,e,t.sourceInfos),t.documentPositionMapper?t.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else if(r.sourceMapFilePath){r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(n,e,r.sourceMapFilePath.sourceInfos);return}else if(r.sourceMapFilePath!==void 0)return;let i,a=(t,n)=>{let r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host,!0);if(i=r||n,!r||r.deferredDelete)return;let a=r.getSnapshot();return r.documentPositionMapper===void 0?GZ(a):r.documentPositionMapper},o=e.projectName,s=I1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,o,r)},r.fileName,r.textStorage.getLineInfo(),a);return a=void 0,i?gt(i)?r.sourceMapFilePath={watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?i:po(i,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(n,e)}:(r.sourceMapFilePath=i.path,i.declarationInfoPath=r.path,i.deferredDelete||(i.documentPositionMapper=s||!1),i.sourceInfos=this.addSourceInfoToSourceMap(n,e,i.sourceInfos)):r.sourceMapFilePath=!1,s}addSourceInfoToSourceMap(e,t,n){if(e){let r=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost,!1);(n||=new Set).add(r.path)}return n}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,()=>{let e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!gt(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,nq.MissingSourceMapFile)}getSourceFileLike(e,t,n){let r=t.projectName?t:this.findProject(t);if(r){let t=r.toPath(e),n=r.getSourceFile(t);if(n&&n.resolvedPath===t)return n}let i=this.getOrCreateScriptInfoNotOpenedByClient(e,(r||this).currentDirectory,r?r.directoryStructureHost:this.host,!1);if(i){if(n&>(n.sourceMapFilePath)&&i!==n){let e=this.getScriptInfoForPath(n.sourceMapFilePath);e&&(e.sourceInfos??=new Set).add(i.path)}return i.cacheSourceFile?i.cacheSourceFile.sourceFile:(i.sourceFileLike||={get text(){return H.fail(`shouldnt need text`),``},getLineAndCharacterOfPosition:e=>{let t=i.positionToLineOffset(e);return{line:t.line-1,character:t.offset-1}},getPositionOfLineAndCharacter:(e,t,n)=>i.lineOffsetToPosition(e+1,t+1,n)},i.sourceFileLike)}}setPerformanceEventHandler(e){this.performanceEventHandler=e}setHostConfiguration(e){if(e.file){let t=this.getScriptInfoForNormalizedPath(r9(e.file));t&&(t.setOptions(k9(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(e.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...k9(e.formatOptions)},this.logger.info(`Format host information updated`)),e.preferences){let{lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:n,includeCompletionsForModuleExports:r}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...e.preferences},t&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(e=>e.forEach(e=>{!e.deferredClose&&!e.isClosed()&&e.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(e)&&e.updateGraph()})),(n!==e.preferences.includePackageJsonAutoImports||!!r!=!!e.preferences.includeCompletionsForModuleExports)&&this.forEachProject(e=>{e.onAutoImportProviderSettingsChanged()})}if(e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info(`Host file extension mappings updated`)),e.watchOptions){let t=j9(e.watchOptions)?.watchOptions,n=xI(t,this.currentDirectory);this.hostConfiguration.watchOptions=n,this.hostConfiguration.beforeSubstitution=n===t?void 0:t,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(e){return this.getWatchOptionsFromProjectWatchOptions(e.getWatchOptions(),e.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(e,t){let n=this.hostConfiguration.beforeSubstitution?xI(this.hostConfiguration.beforeSubstitution,t):this.hostConfiguration.watchOptions;return e&&n?{...n,...e}:e||n}closeLog(){this.logger.close()}sendSourceFileChange(e){this.filenameToScriptInfo.forEach(t=>{if(this.openFiles.has(t.path)||!t.fileWatcher)return;let n=kt(()=>this.host.fileExists(t.fileName)?t.deferredDelete?0:1:2);if(e){if(fAe(t)||!t.path.startsWith(e)||n()===2&&t.deferredDelete)return;this.logger.info(`Invoking sourceFileChange on ${t.fileName}:: ${n()}`)}this.onSourceFileChanged(t,n())})}reloadProjects(){this.logger.info(`reload projects.`),this.sendSourceFileChange(void 0),this.pendingProjectUpdates.forEach((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)}),this.throttledOperations.cancel(Gke),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(e=>{e.config&&(e.config.updateLevel=2,e.config.cachedDirectoryStructureHost.clearCache())}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(e=>{this.clearSemanticCache(e),e.updateGraph()});let e=new Map,t=new Set;this.externalProjectToConfiguredProjectMap.forEach((t,n)=>{let r=`Reloading configured project in external project: ${n}`;t.forEach(t=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.reloadConfiguredProjectOptimized(t,r,e):this.reloadConfiguredProjectClearingSemanticCache(t,r,e)})}),this.openFiles.forEach((n,r)=>{let i=this.getScriptInfoForPath(r);y(i.containingProjects,m9)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,7,e,t)}),t.forEach(t=>e.set(t,7)),this.inferredProjects.forEach(e=>this.clearSemanticCache(e)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(e,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info(`After reloading projects..`),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(e){H.assert(e.containingProjects.length>0);let t=e.containingProjects[0];!t.isOrphan()&&f9(t)&&t.isRoot(e)&&d(e.containingProjects,e=>e!==t&&!e.isOrphan())&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info(`Before ensureProjectForOpenFiles:`),this.printProjects();let e=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,e?.forEach((e,t)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(t),5)),this.openFiles.forEach((e,t)=>{let n=this.getScriptInfoForPath(t);n.isOrphan()?this.assignOrphanScriptInfoToInferredProject(n,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(n)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(z9),this.logger.info(`After ensureProjectForOpenFiles:`),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath(r9(e),t,n,!1,r?r9(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,t){let n=e.isSourceOfProjectReferenceRedirect(t.fileName),r=n?t:e.getSourceMapper().tryGetSourcePosition(t);if(!r)return;let{fileName:i}=r,a=this.getScriptInfo(i);if(!a&&!this.host.fileExists(i))return;let o={fileName:r9(i),path:this.toPath(i)},s=this.getConfigFileNameForFile(o,!1);if(!s)return;let c=this.findConfiguredProjectByProjectName(s);if(!c){if(e.getCompilerOptions().disableReferencedProjectLoad)return n?t:a?.containingProjects.length?r:t;c=this.createConfiguredProject(s,`Creating project for original file: ${o.fileName}${t===r?``:` for location: `+t.fileName}`)}let l=this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(o,5,sAe(c,4),e=>`Creating project referenced in solution ${e.projectName} to find possible configured project for original file: ${o.fileName}${t===r?``:` for location: `+t.fileName}`);if(!l.defaultProject)return;if(l.defaultProject===e)return r;d(l.defaultProject);let u=this.getScriptInfo(i);if(!u||!u.containingProjects.length)return;return u.containingProjects.forEach(e=>{p9(e)&&d(e)}),r;function d(t){(e.originalConfiguredProjects??=new Set).add(t.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return y(this.externalProjects,t=>(z9(t),t.containsScriptInfo(e)))}getOrCreateOpenScriptInfo(e,t,n,r,i){let a=this.getOrCreateScriptInfoWorker(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,!0,t,n,!!r,void 0,!0);return this.openFiles.set(a.path,i),a}assignProjectToOpenedScriptInfo(e){let t,n,r=this.findExternalProjectContainingOpenScriptInfo(e),i,a;if(!r&&this.serverMode===0){let r=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,5);r&&(i=r.seenProjects,a=r.sentConfigDiag,r.defaultProject&&(t=r.defaultProject.getConfigFilePath(),n=r.defaultProject.getAllProjectErrors()))}return e.containingProjects.forEach(z9),e.isOrphan()&&(i?.forEach((t,n)=>{t!==4&&!a.has(n)&&this.sendConfigFileDiagEvent(n,e.fileName,!0)}),H.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),H.assert(!e.isOrphan()),{configFileName:t,configFileErrors:n,retainProjects:i}}findCreateOrReloadConfiguredProject(e,t,n,r,i,a,o,s,c){let l=c??this.findConfiguredProjectByProjectName(e,r),u=!1,d;switch(t){case 0:case 1:case 3:if(!l)return;break;case 2:if(!l)return;d=_Ae(l);break;case 4:case 5:l??=this.createConfiguredProject(e,n),o||({sentConfigFileDiag:u,configFileExistenceInfo:d}=sAe(l,t,i));break;case 6:if(l??=this.createConfiguredProject(e,B9(n)),l.projectService.reloadConfiguredProjectOptimized(l,n,a),d=hAe(l),d)break;case 7:l??=this.createConfiguredProject(e,B9(n)),u=!s&&this.reloadConfiguredProjectClearingSemanticCache(l,n,a),s&&!s.has(l)&&!a.has(l)&&(this.setProjectForReload(l,2,n),s.add(l));break;default:H.assertNever(t)}return{project:l,sentConfigFileDiag:u,configFileExistenceInfo:d,reason:n}}tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,n,r){let i=this.getConfigFileNameForFile(e,t<=3);if(!i)return;let a=iAe(t),o=this.findCreateOrReloadConfiguredProject(i,a,vAe(e),n,e.fileName,r);return o&&this.tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,o,t=>`Creating project referenced in solution ${t.projectName} to find possible configured project for ${e.fileName} to open`,n,r)}isMatchedByConfig(e,t,n){if(t.fileNames.some(e=>this.toPath(e)===n.path))return!0;if(ow(n.fileName,t.options,this.hostConfiguration.extraFileExtensions))return!1;let{validatedFilesSpec:r,validatedIncludeSpecs:i,validatedExcludeSpecs:a}=t.options.configFile.configFileSpecs,o=r9(po($a(e),this.currentDirectory));return r?.some(e=>this.toPath(po(e,o))===n.path)?!0:!i?.length||iL(n.fileName,a,this.host.useCaseSensitiveFileNames,this.currentDirectory,o)?!1:i?.some(e=>{let t=NC(e,o,`files`);return!!t&&LC(`(${t})$`,this.host.useCaseSensitiveFileNames).test(n.fileName)})}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,n,r,i,a){let o=nAe(e),s=iAe(t),c=new Map,l,u=new Set,d,f,p,m;return h(n),{defaultProject:d??f,tsconfigProject:p??m,sentConfigDiag:u,seenProjects:c,seenConfigs:l};function h(e){return v(e,e.project)??y(e.project)??b(e.project)}function g(n,r,o,d,f,p){if(r){if(c.has(r))return;c.set(r,s)}else{if(l?.has(p))return;(l??=new Set).add(p)}if(!f.projectService.isMatchedByConfig(o,n.config.parsedCommandLine,e)){f.languageServiceEnabled&&f.projectService.watchWildcards(o,n,f);return}let m=r?sAe(r,t,e.fileName,d,a):f.projectService.findCreateOrReloadConfiguredProject(o,t,d,i,e.fileName,a);if(!m){H.assert(t===3);return}return c.set(m.project,s),m.sentConfigFileDiag&&u.add(m.project),_(m.project,f)}function _(n,r){if(c.get(n)===t)return;c.set(n,t);let i=o?e:n.projectService.getScriptInfo(e.fileName),a=i&&n.containsScriptInfo(i);if(a&&!n.isSourceOfProjectReferenceRedirect(i.path))return p=r,d=n;!f&&o&&a&&(m=r,f=n)}function v(e,t){return e.sentConfigFileDiag&&u.add(e.project),e.configFileExistenceInfo?g(e.configFileExistenceInfo,e.project,r9(e.project.getConfigFilePath()),e.reason,e.project,e.project.canonicalConfigFilePath):_(e.project,t)}function y(e){return e.parsedCommandLine&&oAe(e,e.parsedCommandLine,g,s,r(e),i,a)}function b(t){return o?aAe(e,t,h,s,`Creating possible configured project for ${e.fileName} to open`,i,a,!1):void 0}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(e,t,n,r){let i=t===1,a=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(e,t,i,n);if(!a)return;let{defaultProject:o,tsconfigProject:s,seenProjects:c}=a;return o&&aAe(e,s,e=>{c.set(e.project,t)},t,`Creating project possibly referencing default composite project ${o.getProjectName()} of open file ${e.fileName}`,i,n,!0,r),a}loadAncestorProjectTree(e){e??=new Set(N(this.configuredProjects.entries(),([e,t])=>t.initialLoadPending?void 0:e));let t=new Set,n=$e(this.configuredProjects.values());for(let r of n)cAe(r,t=>e.has(t))&&z9(r),this.ensureProjectChildren(r,e,t)}ensureProjectChildren(e,t,n){if(!se(n,e.canonicalConfigFilePath)||e.getCompilerOptions().disableReferencedProjectLoad)return;let r=e.getCurrentProgram()?.getResolvedProjectReferences();if(r)for(let i of r){if(!i)continue;let r=eE(i.references,e=>t.has(e.sourceFile.path)?e:void 0);if(!r)continue;let a=r9(i.sourceFile.fileName),o=this.findConfiguredProjectByProjectName(a)??this.createConfiguredProject(a,`Creating project referenced by : ${e.projectName} as it references project ${r.sourceFile.fileName}`);z9(o),this.ensureProjectChildren(o,t,n)}}cleanupConfiguredProjects(e,t,n){this.getOrphanConfiguredProjects(e,n,t).forEach(e=>this.removeProject(e))}cleanupProjectsAndScriptInfos(e,t,n){this.cleanupConfiguredProjects(e,n,t);for(let e of this.inferredProjects.slice())e.isOrphan()&&this.removeProject(e);this.removeOrphanScriptInfos()}tryInvokeWildCardDirectories(e){this.configFileExistenceInfoCache.forEach((t,n)=>{var r;!t.config?.parsedCommandLine||C(t.config.parsedCommandLine.fileNames,e.fileName,this.host.useCaseSensitiveFileNames?Pt:Nt)||(r=t.config.watchedDirectories)==null||r.forEach((r,i)=>{Ao(i,e.fileName,!this.host.useCaseSensitiveFileNames)&&(this.logger.info(`Invoking ${n}:: wildcard for open scriptInfo:: ${e.fileName}`),this.onWildCardDirectoryWatcherInvoke(i,n,t.config,r.watcher,e.fileName))})})}openClientFileWithNormalizedPath(e,t,n,r,i){let a=this.getScriptInfoForPath(i9(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,this.toCanonicalFileName)),o=this.getOrCreateOpenScriptInfo(e,t,n,r,i);!a&&o&&!o.isDynamic&&this.tryInvokeWildCardDirectories(o);let{retainProjects:s,...c}=this.assignProjectToOpenedScriptInfo(o);return this.cleanupProjectsAndScriptInfos(s,new Set([o.path]),void 0),this.telemetryOnOpenFile(o),this.printProjects(),c}getOrphanConfiguredProjects(e,t,n){let r=new Set(this.configuredProjects.values()),i=e=>{e.originalConfiguredProjects&&(p9(e)||!e.isOrphan())&&e.originalConfiguredProjects.forEach((e,t)=>{let n=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n&&s(n)})};if(e?.forEach((e,t)=>s(t)),!r.size||(this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.externalProjectToConfiguredProjectMap.forEach((e,t)=>{n?.has(t)||e.forEach(s)}),!r.size)||(Mf(this.openFiles,(e,n)=>{if(t?.has(n))return;let i=this.getScriptInfoForPath(n);if(y(i.containingProjects,m9))return;let a=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,1);if(a?.defaultProject&&(a?.seenProjects.forEach((e,t)=>s(t)),!r.size))return r}),!r.size))return r;return Mf(this.configuredProjects,e=>{if(r.has(e)&&(o(e)||dAe(e,a))&&(s(e),!r.size))return r}),r;function a(e){return!r.has(e)||o(e)}function o(e){return(e.deferredClose||e.projectService.hasPendingProjectUpdate(e))&&!!e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath)?.openFilesImpactedByConfigFile?.size}function s(e){r.delete(e)&&(i(e),dAe(e,s))}}removeOrphanScriptInfos(){let e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(t=>{if(!t.deferredDelete){if(!t.isScriptOpen()&&t.isOrphan()&&!Dke(t)&&!Eke(t)){if(!t.sourceMapFilePath)return;let e;if(e=gt(t.sourceMapFilePath)?this.filenameToScriptInfo.get(t.sourceMapFilePath)?.sourceInfos:t.sourceMapFilePath.sourceInfos,!e||!Nf(e,e=>{let t=this.getScriptInfoForPath(e);return!!t&&(t.isScriptOpen()||!t.isOrphan())}))return}if(e.delete(t.path),t.sourceMapFilePath){let n;if(gt(t.sourceMapFilePath)){let r=this.filenameToScriptInfo.get(t.sourceMapFilePath);r?.deferredDelete?t.sourceMapFilePath={watcher:this.addMissingSourceMapFile(r.fileName,t.path),sourceInfos:r.sourceInfos}:e.delete(t.sourceMapFilePath),n=r?.sourceInfos}else n=t.sourceMapFilePath.sourceInfos;n&&n.forEach((t,n)=>e.delete(n))}}}),e.forEach(e=>this.deleteScriptInfo(e))}telemetryOnOpenFile(e){if(this.serverMode!==0||!this.eventHandler||!e.isJavaScript()||!Jx(this.allJsFilesForOpenFileTelemetry,e.path))return;let t=this.ensureDefaultProjectForFile(e);if(!t.languageServiceEnabled)return;let n=t.getSourceFile(e.path),r=!!n&&!!n.checkJsDirective;this.eventHandler({eventName:Wke,data:{info:{checkJs:r}}})}closeClientFile(e,t){let n=this.getScriptInfoForNormalizedPath(r9(e)),r=n?this.closeOpenFile(n,t):!1;return t||this.printProjects(),r}collectChanges(e,t,n,r){for(let i of t){let t=y(e,e=>e.projectName===i.getProjectName());r.push(i.getChangesSinceVersion(t&&t.version,n))}}synchronizeProjectList(e,t){let n=[];return this.collectChanges(e,this.externalProjects,t,n),this.collectChanges(e,N(this.configuredProjects.values(),e=>e.deferredClose?void 0:e),t,n),this.collectChanges(e,this.inferredProjects,t,n),n}applyChangesInOpenFiles(e,t,n){let r,i,a=!1;if(e)for(let t of e){(r??=[]).push(this.getScriptInfoForPath(i9(r9(t.fileName),t.projectRootPath?this.getNormalizedAbsolutePath(t.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));let e=this.getOrCreateOpenScriptInfo(r9(t.fileName),t.content,M9(t.scriptKind),t.hasMixedContent,t.projectRootPath?r9(t.projectRootPath):void 0);(i||=[]).push(e)}if(t)for(let e of t){let t=this.getScriptInfo(e.fileName);H.assert(!!t),this.applyChangesToFile(t,e.changes)}if(n)for(let e of n)a=this.closeClientFile(e,!0)||a;let o;d(r,(e,t)=>!e&&i[t]&&!i[t].isDynamic?this.tryInvokeWildCardDirectories(i[t]):void 0),i?.forEach(e=>this.assignProjectToOpenedScriptInfo(e).retainProjects?.forEach((e,t)=>(o??=new Map).set(t,e))),a&&this.assignOrphanScriptInfosToInferredProject(),i?(this.cleanupProjectsAndScriptInfos(o,new Set(i.map(e=>e.path)),void 0),i.forEach(e=>this.telemetryOnOpenFile(e)),this.printProjects()):u(n)&&this.printProjects()}applyChangesToFile(e,t){for(let n of t)e.editContent(n.span.start,n.span.start+n.span.length,n.newText)}closeExternalProject(e,t){let n=r9(e);if(this.externalProjectToConfiguredProjectMap.get(n))this.externalProjectToConfiguredProjectMap.delete(n);else{let t=this.findExternalProjectByProjectName(e);t&&this.removeProject(t)}t&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(e){let t=new Set(this.externalProjects.map(e=>e.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((e,n)=>t.add(n));for(let n of e)this.openExternalProject(n,!1),t.delete(n.projectFileName);t.forEach(e=>this.closeExternalProject(e,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,`\\$&`)}resetSafeList(){this.safelist=Xke}applySafeList(e){let t=e.typeAcquisition;return H.assert(!!t,`proj.typeAcquisition should be set by now`),this.applySafeListWorker(e,e.rootFiles,t)?.excludedFiles??[]}applySafeListWorker(t,n,r){if(r.enable===!1||r.disableFilenameBasedTypeAcquisition)return;let i=r.include||=[],a=[],o=n.map(e=>so(e.fileName));for(let t of Object.keys(this.safelist)){let n=this.safelist[t];for(let r of o)if(n.match.test(r)){if(this.logger.info(`Excluding files based on rule ${t} matching file '${r}'`),n.types)for(let e of n.types)i.includes(e)||i.push(e);if(n.exclude)for(let i of n.exclude){let o=r.replace(n.match,(...n)=>i.map(r=>typeof r==`number`?gt(n[r])?e.escapeFilenameForRegex(n[r]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${t} - not enough groups`),`\\*`):r).join(``));a.includes(o)||a.push(o)}else{let t=e.escapeFilenameForRegex(r);a.includes(t)||a.push(t)}}}let s=a.map(e=>new RegExp(e,`i`)),c,l;for(let e=0;et.test(o[e])))u(e);else{if(r.enable){let t=eo(Dt(o[e]));if(qa(t,`js`)){let n=nn(uw(t)),r=this.legacySafelist.get(n);if(r!==void 0){this.logger.info(`Excluded '${o[e]}' because it matched ${n} from the legacy safelist`),u(e),i.includes(r)||i.push(r);continue}}}/^.+[.-]min\.js$/.test(o[e])?u(e):c?.push(n[e])}return l?{rootFiles:c,excludedFiles:l}:void 0;function u(e){l||=(H.assert(!c),c=n.slice(0,e),[]),l.push(o[e])}}openExternalProject(e,t){let n=this.findExternalProjectByProjectName(e.projectFileName),r,i=[];for(let t of e.rootFiles){let n=r9(t.fileName);if(o9(n)){if(this.serverMode===0&&this.host.fileExists(n)){let t=this.findConfiguredProjectByProjectName(n);t||(t=this.createConfiguredProject(n,`Creating configured project in external project: ${e.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||t.updateGraph()),(r??=new Set).add(t),H.assert(!t.isClosed())}}else i.push(t)}if(r)this.externalProjectToConfiguredProjectMap.set(e.projectFileName,r),n&&this.removeProject(n);else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);let t=e.typeAcquisition||{};t.include=t.include||[],t.exclude=t.exclude||[],t.enable===void 0&&(t.enable=jke(i.map(e=>e.fileName)));let r=this.applySafeListWorker(e,i,t),a=r?.excludedFiles??[];if(i=r?.rootFiles??i,n){n.excludedFiles=a;let r=A9(e.options),o=j9(e.options,n.getCurrentDirectory()),s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,r,i,F9);s?n.disableLanguageService(s):n.enableLanguageService(),n.setProjectErrors(o?.errors),this.updateRootAndOptionsOfNonInferredProject(n,i,F9,r,t,e.options.compileOnSave,o?.watchOptions),n.updateGraph()}else this.createExternalProject(e.projectFileName,i,e.options,t,a).updateGraph()}t&&(this.cleanupConfiguredProjects(r,new Set([e.projectFileName])),this.printProjects())}hasDeferredExtension(){for(let e of this.hostConfiguration.extraFileExtensions)if(e.scriptKind===7)return!0;return!1}requestEnablePlugin(e,t,n){if(!this.host.importPlugin&&!this.host.require){this.logger.info(`Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded`);return}if(this.logger.info(`Enabling plugin ${t.name} from candidate paths: ${n.join(`,`)}`),!t.name||tc(t.name)||/[\\/]\.\.?(?:$|[\\/])/.test(t.name)){this.logger.info(`Skipped loading plugin ${t.name||JSON.stringify(t)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let r=u9.importServicePluginAsync(t,n,this.host,e=>this.logger.info(e));this.pendingPluginEnablements??=new Map;let i=this.pendingPluginEnablements.get(e);i||this.pendingPluginEnablements.set(e,i=[]),i.push(r);return}this.endEnablePlugin(e,u9.importServicePluginSync(t,n,this.host,e=>this.logger.info(e)))}endEnablePlugin(e,{pluginConfigEntry:t,resolvedModule:n,errorLogs:r}){if(n){let r=this.currentPluginConfigOverrides?.get(t.name);if(r){let e=t.name;t=r,t.name=e}e.enableProxy(n,t)}else d(r,e=>this.logger.info(e)),this.logger.info(`Couldn't find ${t.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let e=$e(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(e){H.assert(this.currentPluginEnablementPromise===void 0);let t=!1;await Promise.all(k(e,async([e,n])=>{let r=await Promise.all(n);if(e.isClosed()||g9(e)){this.logger.info(`Cancelling plugin enabling for ${e.getProjectName()} as it is ${e.isClosed()?`closed`:`deferred close`}`);return}t=!0;for(let t of r)this.endEnablePlugin(e,t);this.delayUpdateProjectGraph(e)})),this.currentPluginEnablementPromise=void 0,t&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(e){this.forEachEnabledProject(t=>t.onPluginConfigurationChanged(e.pluginName,e.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(e.pluginName,e.configuration)}getPackageJsonsVisibleToFile(e,t,n){let r=this.packageJsonCache,i=n&&this.toPath(n),a=[],o=e=>{switch(r.directoryHasPackageJson(e)){case 3:return r.searchDirectoryAndAncestors(e,t),o(e);case-1:let n=lo(e,`package.json`);this.watchPackageJsonFile(n,this.toPath(n),t);let i=r.getInDirectory(e);i&&a.push(i)}if(i&&i===e)return!0};return GR(t,$a(e),o),a}getNearestAncestorDirectoryWithPackageJson(e,t){return GR(t,e,e=>{switch(this.packageJsonCache.directoryHasPackageJson(e)){case-1:return e;case 0:return;case 3:return this.host.fileExists(lo(e,`package.json`))?e:void 0}})}watchPackageJsonFile(e,t,n){H.assert(n!==void 0);let r=(this.packageJsonFilesMap??=new Map).get(t);if(!r){let n=this.watchFactory.watchFile(e,(e,n)=>{switch(n){case 0:case 1:this.packageJsonCache.addOrUpdate(e,t),this.onPackageJsonChange(r);break;case 2:this.packageJsonCache.delete(t),this.onPackageJsonChange(r),r.projects.clear(),r.close()}},250,this.hostConfiguration.watchOptions,nq.PackageJson);r={projects:new Set,close:()=>{var e;r.projects.size||!n||(n.close(),n=void 0,(e=this.packageJsonFilesMap)==null||e.delete(t),this.packageJsonCache.invalidate(t))}},this.packageJsonFilesMap.set(t,r)}r.projects.add(n),(n.packageJsonWatches??=new Set).add(r)}onPackageJsonChange(e){e.projects.forEach(e=>e.onPackageJsonChange?.call(e))}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case`on`:return 1;case`off`:return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||=EAe()}};wAe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var TAe=wAe;function EAe(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function DAe(e){return e.kind!==void 0}function OAe(e){e.print(!1,!1,!1)}function kAe(e){let t,n,r,i={get(e,t,i,a){if(!(!n||r!==o(e,i,a)))return n.get(t)},set(n,r,i,o,c,l,u){if(a(n,i,o).set(r,s(c,l,u,void 0,!1)),u){for(let n of l)if(n.isInNodeModules){let r=n.path.substring(0,n.path.indexOf(dR)+dR.length-1),i=e.toPath(r);t?.has(i)||(t||=new Map).set(i,e.watchNodeModulesForPackageJsonChanges(r))}}},setModulePaths(e,t,n,r,i){let o=a(e,n,r),c=o.get(t);c?c.modulePaths=i:o.set(t,s(void 0,i,void 0,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,n,r,i,o){let c=a(e,n,r),l=c.get(t);l?(l.isBlockedByPackageJsonDependencies=o,l.packageName=i):c.set(t,s(void 0,void 0,void 0,i,o))},clear(){t?.forEach(Ax),n?.clear(),t?.clear(),r=void 0},count(){return n?n.size:0}};return H.isDebugging&&Object.defineProperty(i,`__cache`,{get:()=>n}),i;function a(e,t,a){let s=o(e,t,a);return n&&r!==s&&i.clear(),r=s,n||=new Map}function o(e,t,n){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},${n.overrideImportMode}`}function s(e,t,n,r,i){return{kind:e,modulePaths:t,moduleSpecifiers:n,packageName:r,isBlockedByPackageJsonDependencies:i}}}function AAe(e){let t=new Map,n=new Map;return{addOrUpdate:r,invalidate:i,delete:e=>{t.delete(e),n.set($a(e),!0)},getInDirectory:n=>t.get(e.toPath(lo(n,`package.json`)))||void 0,directoryHasPackageJson:t=>a(e.toPath(t)),searchDirectoryAndAncestors:(t,i)=>{GR(i,t,t=>{let i=e.toPath(t);if(a(i)!==3)return!0;let o=lo(t,`package.json`);y$(e,o)?r(o,lo(i,`package.json`)):n.set(i,!0)})}};function r(r,i){let a=H.checkDefined(T$(r,e.host));t.set(i,a),n.delete($a(i))}function i(e){t.delete(e),n.delete($a(e))}function a(e){return t.has(lo(e,`package.json`))?-1:n.has(e)?0:3}}var jAe={isCancellationRequested:()=>!1,setRequest:()=>void 0,resetRequest:()=>void 0};function MAe(e){let t=e[0],n=e[1];return(1e9*t+n)/1e6}function NAe(e,t){if((f9(e)||m9(e))&&e.isJsOnlyProject()){let n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function PAe(e){return YS(e)||!!e.emitDecoratorMetadata}function FAe(e,t,n){let r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:DW(n.messageText,` `),code:n.code,category:Oi(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:k(n.relatedInformation,V9)}}function V9(e){return e.file?{span:{start:H9(gs(e.file,e.start)),end:H9(gs(e.file,e.start+e.length)),file:e.file.fileName},message:DW(e.messageText,` `),category:Oi(e),code:e.code}:{message:DW(e.messageText,` `),category:Oi(e),code:e.code}}function H9(e){return{line:e.line+1,offset:e.character+1}}function U9(e,t){let n=e.file&&H9(gs(e.file,e.start)),r=e.file&&H9(gs(e.file,e.start+e.length)),i=DW(e.messageText,` `),{code:a,source:o}=e,s={start:n,end:r,text:i,code:a,category:Oi(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:o,relatedInformation:k(e.relatedInformation,V9)};return t?{...s,fileName:e.file&&e.file.fileName}:s}function IAe(e,t){return e.every(e=>ac(e.span){this.immediateId=void 0,this.operationHost.executeWithRequestId(n,()=>this.executeAction(t),this.performanceData)},e))}delay(e,t,n){let r=this.requestId;H.assert(r===this.operationHost.getCurrentRequestId(),`delay: incorrect request id`),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(n),this.performanceData)},t,e))}executeAction(e){var t,n,r,i,a,o;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,(t=Ar)==null||t.instant(Ar.Phase.Session,`stepCanceled`,{seq:this.requestId,early:!0})):((n=Ar)==null||n.push(Ar.Phase.Session,`stepAction`,{seq:this.requestId}),e(this),(r=Ar)==null||r.pop())}catch(e){(i=Ar)==null||i.popAll(),s=!0,e instanceof Gr?(a=Ar)==null||a.instant(Ar.Phase.Session,`stepCanceled`,{seq:this.requestId}):((o=Ar)==null||o.instant(Ar.Phase.Session,`stepError`,{seq:this.requestId,message:e.message}),this.operationHost.logError(e,`delayed processing of request ${this.requestId}`))}this.performanceData=this.operationHost.getPerformanceData(),(s||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function BAe(e,t){return{seq:0,type:`event`,event:e,body:t}}function VAe(e,t,n,r){let i=ie(mt(n)?n:n.projects,t=>r(t,e));return!mt(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach((e,n)=>{let a=t(n);i.push(...re(e,e=>r(e,a)))}),ge(i,Mt)}function W9(e){return pt(({textSpan:e})=>e.start+100003*e.length,vQ(e))}function HAe(e,t,n,r,i,a,o){let s=KAe(e,t,n,UAe(t,n,!0),JAe,(e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,a),(e,t)=>t(G9(e)));if(mt(s))return s;let c=[],l=W9(o);return s.forEach((e,t)=>{for(let n of e)!l.has(n)&&!K9(G9(n),t)&&(c.push(n),l.add(n))}),c}function UAe(e,t,n){let r=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),i=r&&Pe(r);return i&&!i.isLocal?{fileName:i.fileName,pos:i.textSpan.start}:void 0}function WAe(e,t,n,r,i){let a=KAe(e,t,n,UAe(t,n,!1),JAe,(e,t)=>(i.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos)),(e,t)=>{t(G9(e.definition));for(let n of e.references)t(G9(n))});if(mt(a))return a;let o=a.get(t);if((o?.[0])?.references[0]?.isDefinition===void 0)a.forEach(e=>{for(let t of e)for(let e of t.references)delete e.isDefinition});else{let e=W9(r);for(let t of o)for(let n of t.references)if(n.isDefinition){e.add(n);break}let t=new Set;for(;;){let n=!1;if(a.forEach((r,i)=>{t.has(i)||i.getLanguageService().updateIsDefinitionOfReferencedSymbols(r,e)&&(t.add(i),n=!0)}),!n)break}a.forEach((e,n)=>{if(!t.has(n))for(let t of e)for(let e of t.references)e.isDefinition=!1})}let s=[],c=W9(r);return a.forEach((e,t)=>{for(let n of e){let e=K9(G9(n.definition),t),i=e===void 0?n.definition:{...n.definition,textSpan:xc(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:QAe(n.definition,t)},a=y(s,e=>_Q(e.definition,i,r));a||(a={definition:i,references:[]},s.push(a));for(let e of n.references)!c.has(e)&&!K9(G9(e),t)&&(c.add(e),a.references.push(e))}}),s.filter(e=>e.references.length!==0)}function GAe(e,t,n){for(let r of mt(e)?e:e.projects)n(r,t);!mt(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((e,t)=>{for(let r of e)n(r,t)})}function KAe(e,t,n,r,i,a,o){let s=new Map,c=ft();c.enqueue({project:t,location:n}),GAe(e,n.fileName,(e,t)=>{let r={fileName:t,pos:n.pos};c.enqueue({project:e,location:r})});let l=t.projectService,u=t.getCancellationToken(),d=kt(()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(r)),f=kt(()=>t.isSourceOfProjectReferenceRedirect(r.fileName)?r:t.getLanguageService().getSourceMapper().tryGetSourcePosition(r)),p=new Set;onCancellation:for(;!c.isEmpty();){for(;!c.isEmpty();){if(u.isCancellationRequested())break onCancellation;let{project:e,location:t}=c.dequeue();if(s.has(e)||YAe(e,t)||(z9(e),!e.containsFile(r9(t.fileName))))continue;let n=m(e,t);s.set(e,n??t9),p.add(XAe(e))}r&&(l.loadAncestorProjectTree(p),l.forEachEnabledProject(e=>{if(u.isCancellationRequested()||s.has(e))return;let t=i(r,e,d,f);t&&c.enqueue({project:e,location:t})}))}if(s.size===1)return Le(s.values());return s;function m(e,t){let n=a(e,t);if(!n||!o)return n;for(let t of n)o(t,t=>{let n=l.getOriginalLocationEnsuringConfiguredProject(e,t);if(!n)return;let r=l.getScriptInfo(n.fileName);for(let e of r.containingProjects)!e.isOrphan()&&!s.has(e)&&c.enqueue({project:e,location:n});let i=l.getSymlinkedProjects(r);i&&i.forEach((e,t)=>{for(let r of e)!r.isOrphan()&&!s.has(r)&&c.enqueue({project:r,location:{fileName:t,pos:n.pos}})})});return n}}function qAe(e,t){if(t.containsFile(r9(e.fileName))&&!YAe(t,e))return e}function JAe(e,t,n,r){let i=qAe(e,t);if(i)return i;let a=n();if(a&&t.containsFile(r9(a.fileName)))return a;let o=r();return o&&t.containsFile(r9(o.fileName))?o:void 0}function YAe(e,t){if(!t)return!1;let n=e.getLanguageService().getProgram();if(!n)return!1;let r=n.getSourceFile(t.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}function XAe(e){return p9(e)?e.canonicalConfigFilePath:e.getProjectName()}function G9({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function K9(e,t){return xQ(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}function ZAe(e,t){return SQ(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}function QAe(e,t){return CQ(e,t.getSourceMapper(),e=>t.projectService.fileExists(e))}var $Ae=`openExternalProject.openExternalProjects.closeExternalProject.synchronizeProjectList.emit-output.compileOnSaveAffectedFileList.compileOnSaveEmitFile.compilerOptionsDiagnostics-full.encodedSemanticClassifications-full.semanticDiagnosticsSync.suggestionDiagnosticsSync.geterrForProject.reload.reloadProjects.getCodeFixes.getCodeFixes-full.getCombinedCodeFix.getCombinedCodeFix-full.applyCodeActionCommand.getSupportedCodeFixes.getApplicableRefactors.getMoveToRefactoringFileSuggestions.getEditsForRefactor.getEditsForRefactor-full.organizeImports.organizeImports-full.getEditsForFileRename.getEditsForFileRename-full.prepareCallHierarchy.provideCallHierarchyIncomingCalls.provideCallHierarchyOutgoingCalls.getPasteEdits.copilotRelated`.split(`.`),eje=[...$Ae,`definition`,`definition-full`,`definitionAndBoundSpan`,`definitionAndBoundSpan-full`,`typeDefinition`,`implementation`,`implementation-full`,`references`,`references-full`,`rename`,`renameLocations-full`,`rename-full`,`quickinfo`,`quickinfo-full`,`completionInfo`,`completions`,`completions-full`,`completionEntryDetails`,`completionEntryDetails-full`,`signatureHelp`,`signatureHelp-full`,`navto`,`navto-full`,`documentHighlights`,`documentHighlights-full`,`preparePasteEdits`],tje=class e{constructor(e){this.changeSeq=0,this.regionDiagLineCountThreshold=500,this.handlers=new Map(Object.entries({status:()=>{let e={version:o};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments,!0),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:e=>{let t=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!t.some(e=>e.projectErrors&&e.projectErrors.length!==0))return this.requiredResponse(t);let n=k(t,e=>!e.projectErrors||e.projectErrors.length===0?e:{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)});return this.requiredResponse(n)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&ee(e.arguments.openFiles,e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath})),e.arguments.changedFiles&&ee(e.arguments.changedFiles,e=>({fileName:e.fileName,changes:N(je(e.textChanges),t=>{let n=H.checkDefined(this.projectService.getScriptInfo(e.fileName)),r=n.lineOffsetToPosition(t.start.line,t.start.offset),i=n.lineOffsetToPosition(t.end.line,t.end.offset);return r>=0?{span:{start:r,length:i-r},newText:t.newText}:void 0})})),e.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles,e.arguments.changedFiles&&ee(e.arguments.changedFiles,e=>({fileName:e.fileName,changes:je(e.changes)})),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired(void 0)),definition:e=>this.requiredResponse(this.getDefinition(e.arguments,!0)),"definition-full":e=>this.requiredResponse(this.getDefinition(e.arguments,!1)),definitionAndBoundSpan:e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!0)),"definitionAndBoundSpan-full":e=>this.requiredResponse(this.getDefinitionAndBoundSpan(e.arguments,!1)),findSourceDefinition:e=>this.requiredResponse(this.findSourceDefinition(e.arguments)),"emit-output":e=>this.requiredResponse(this.getEmitOutput(e.arguments)),typeDefinition:e=>this.requiredResponse(this.getTypeDefinition(e.arguments)),implementation:e=>this.requiredResponse(this.getImplementation(e.arguments,!0)),"implementation-full":e=>this.requiredResponse(this.getImplementation(e.arguments,!1)),references:e=>this.requiredResponse(this.getReferences(e.arguments,!0)),"references-full":e=>this.requiredResponse(this.getReferences(e.arguments,!1)),rename:e=>this.requiredResponse(this.getRenameLocations(e.arguments,!0)),"renameLocations-full":e=>this.requiredResponse(this.getRenameLocations(e.arguments,!1)),"rename-full":e=>this.requiredResponse(this.getRenameInfo(e.arguments)),open:e=>(this.openClientFile(r9(e.arguments.file),e.arguments.fileContent,N9(e.arguments.scriptKindName),e.arguments.projectRootPath?r9(e.arguments.projectRootPath):void 0),this.notRequired(e)),quickinfo:e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!0)),"quickinfo-full":e=>this.requiredResponse(this.getQuickInfoWorker(e.arguments,!1)),getOutliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!0)),outliningSpans:e=>this.requiredResponse(this.getOutliningSpans(e.arguments,!1)),todoComments:e=>this.requiredResponse(this.getTodoComments(e.arguments)),indentation:e=>this.requiredResponse(this.getIndentation(e.arguments)),nameOrDottedNameSpan:e=>this.requiredResponse(this.getNameOrDottedNameSpan(e.arguments)),breakpointStatement:e=>this.requiredResponse(this.getBreakpointStatement(e.arguments)),braceCompletion:e=>this.requiredResponse(this.isValidBraceCompletion(e.arguments)),docCommentTemplate:e=>this.requiredResponse(this.getDocCommentTemplate(e.arguments)),getSpanOfEnclosingComment:e=>this.requiredResponse(this.getSpanOfEnclosingComment(e.arguments)),fileReferences:e=>this.requiredResponse(this.getFileReferences(e.arguments,!0)),"fileReferences-full":e=>this.requiredResponse(this.getFileReferences(e.arguments,!1)),format:e=>this.requiredResponse(this.getFormattingEditsForRange(e.arguments)),formatonkey:e=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(e.arguments)),"format-full":e=>this.requiredResponse(this.getFormattingEditsForDocumentFull(e.arguments)),"formatonkey-full":e=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(e.arguments)),"formatRange-full":e=>this.requiredResponse(this.getFormattingEditsForRangeFull(e.arguments)),completionInfo:e=>this.requiredResponse(this.getCompletions(e.arguments,`completionInfo`)),completions:e=>this.requiredResponse(this.getCompletions(e.arguments,`completions`)),"completions-full":e=>this.requiredResponse(this.getCompletions(e.arguments,`completions-full`)),completionEntryDetails:e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!1)),"completionEntryDetails-full":e=>this.requiredResponse(this.getCompletionEntryDetails(e.arguments,!0)),compileOnSaveAffectedFileList:e=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(e.arguments)),compileOnSaveEmitFile:e=>this.requiredResponse(this.emitFile(e.arguments)),signatureHelp:e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!0)),"signatureHelp-full":e=>this.requiredResponse(this.getSignatureHelpItems(e.arguments,!1)),"compilerOptionsDiagnostics-full":e=>this.requiredResponse(this.getCompilerOptionsDiagnostics(e.arguments)),"encodedSyntacticClassifications-full":e=>this.requiredResponse(this.getEncodedSyntacticClassifications(e.arguments)),"encodedSemanticClassifications-full":e=>this.requiredResponse(this.getEncodedSemanticClassifications(e.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:e=>this.requiredResponse(this.getSemanticDiagnosticsSync(e.arguments)),syntacticDiagnosticsSync:e=>this.requiredResponse(this.getSyntacticDiagnosticsSync(e.arguments)),suggestionDiagnosticsSync:e=>this.requiredResponse(this.getSuggestionDiagnosticsSync(e.arguments)),geterr:e=>(this.errorCheck.startNew(t=>this.getDiagnostics(t,e.arguments.delay,e.arguments.files)),this.notRequired(void 0)),geterrForProject:e=>(this.errorCheck.startNew(t=>this.getDiagnosticsForProject(t,e.arguments.delay,e.arguments.file)),this.notRequired(void 0)),change:e=>(this.change(e.arguments),this.notRequired(e)),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.notRequired(e)),reload:e=>(this.reload(e.arguments),this.requiredResponse({reloadFinished:!0})),saveto:e=>{let t=e.arguments;return this.saveToTmp(t.file,t.tmpfile),this.notRequired(e)},close:e=>{let t=e.arguments;return this.closeClientFile(t.file),this.notRequired(e)},navto:e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!0)),"navto-full":e=>this.requiredResponse(this.getNavigateToItems(e.arguments,!1)),brace:e=>this.requiredResponse(this.getBraceMatching(e.arguments,!0)),"brace-full":e=>this.requiredResponse(this.getBraceMatching(e.arguments,!1)),navbar:e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!0)),"navbar-full":e=>this.requiredResponse(this.getNavigationBarItems(e.arguments,!1)),navtree:e=>this.requiredResponse(this.getNavigationTree(e.arguments,!0)),"navtree-full":e=>this.requiredResponse(this.getNavigationTree(e.arguments,!1)),documentHighlights:e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!0)),"documentHighlights-full":e=>this.requiredResponse(this.getDocumentHighlights(e.arguments,!1)),compilerOptionsForInferredProjects:e=>(this.setCompilerOptionsForInferredProjects(e.arguments),this.requiredResponse(!0)),projectInfo:e=>this.requiredResponse(this.getProjectInfo(e.arguments)),reloadProjects:e=>(this.projectService.reloadProjects(),this.notRequired(e)),jsxClosingTag:e=>this.requiredResponse(this.getJsxClosingTag(e.arguments)),linkedEditingRange:e=>this.requiredResponse(this.getLinkedEditingRange(e.arguments)),getCodeFixes:e=>this.requiredResponse(this.getCodeFixes(e.arguments,!0)),"getCodeFixes-full":e=>this.requiredResponse(this.getCodeFixes(e.arguments,!1)),getCombinedCodeFix:e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!0)),"getCombinedCodeFix-full":e=>this.requiredResponse(this.getCombinedCodeFix(e.arguments,!1)),applyCodeActionCommand:e=>this.requiredResponse(this.applyCodeActionCommand(e.arguments)),getSupportedCodeFixes:e=>this.requiredResponse(this.getSupportedCodeFixes(e.arguments)),getApplicableRefactors:e=>this.requiredResponse(this.getApplicableRefactors(e.arguments)),getEditsForRefactor:e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!0)),getMoveToRefactoringFileSuggestions:e=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(e.arguments)),preparePasteEdits:e=>this.requiredResponse(this.preparePasteEdits(e.arguments)),getPasteEdits:e=>this.requiredResponse(this.getPasteEdits(e.arguments)),"getEditsForRefactor-full":e=>this.requiredResponse(this.getEditsForRefactor(e.arguments,!1)),organizeImports:e=>this.requiredResponse(this.organizeImports(e.arguments,!0)),"organizeImports-full":e=>this.requiredResponse(this.organizeImports(e.arguments,!1)),getEditsForFileRename:e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!0)),"getEditsForFileRename-full":e=>this.requiredResponse(this.getEditsForFileRename(e.arguments,!1)),configurePlugin:e=>(this.configurePlugin(e.arguments),this.notRequired(e)),selectionRange:e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!0)),"selectionRange-full":e=>this.requiredResponse(this.getSmartSelectionRange(e.arguments,!1)),prepareCallHierarchy:e=>this.requiredResponse(this.prepareCallHierarchy(e.arguments)),provideCallHierarchyIncomingCalls:e=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(e.arguments)),provideCallHierarchyOutgoingCalls:e=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(e.arguments)),toggleLineComment:e=>this.requiredResponse(this.toggleLineComment(e.arguments,!0)),"toggleLineComment-full":e=>this.requiredResponse(this.toggleLineComment(e.arguments,!1)),toggleMultilineComment:e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!0)),"toggleMultilineComment-full":e=>this.requiredResponse(this.toggleMultilineComment(e.arguments,!1)),commentSelection:e=>this.requiredResponse(this.commentSelection(e.arguments,!0)),"commentSelection-full":e=>this.requiredResponse(this.commentSelection(e.arguments,!1)),uncommentSelection:e=>this.requiredResponse(this.uncommentSelection(e.arguments,!0)),"uncommentSelection-full":e=>this.requiredResponse(this.uncommentSelection(e.arguments,!1)),provideInlayHints:e=>this.requiredResponse(this.provideInlayHints(e.arguments)),mapCode:e=>this.requiredResponse(this.mapCode(e.arguments)),copilotRelated:()=>this.requiredResponse(this.getCopilotRelatedInfo())})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||I9,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:t}=e;switch(this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0,this.errorCheck=new zAe({executeWithRequestId:(e,t,n)=>this.executeWithRequestId(e,t,n),getCurrentRequestId:()=>this.currentRequestId,getPerformanceData:()=>this.performanceData,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:(e,t)=>this.sendRequestCompletedEvent(e,t),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()}),this.projectService=new TAe({host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:t,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:e.globalPlugins,pluginProbeLocations:e.pluginProbeLocations,allowLocalPluginLoads:e.allowLocalPluginLoads,typesMapLocation:e.typesMapLocation,serverMode:e.serverMode,session:this,canUseWatchEvents:e.canUseWatchEvents,incrementalVerifier:e.incrementalVerifier}),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new uke(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:$Ae.forEach(e=>this.handlers.set(e,e=>{throw Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:eje.forEach(e=>this.handlers.set(e,e=>{throw Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:H.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e,t){this.event({request_seq:e,performanceData:t&&nje(t)},`requestCompleted`)}addPerformanceData(e,t){this.performanceData||={},this.performanceData[e]=(this.performanceData[e]??0)+t}addDiagnosticsPerformanceData(e,t,n){var r;this.performanceData||={};let i=this.performanceData.diagnosticsDuration?.get(e);i||((r=this.performanceData).diagnosticsDuration??(r.diagnosticsDuration=new Map)).set(e,i={}),i[t]=n}performanceEventHandler(e){switch(e.kind){case`UpdateGraph`:this.addPerformanceData(`updateGraphDurationMs`,e.durationMs);break;case`CreatePackageJsonAutoImportProvider`:this.addPerformanceData(`createAutoImportProviderProgramDurationMs`,e.durationMs);break}}defaultEventHandler(e){switch(e.eventName){case y9:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case b9:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case x9:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case S9:case E9:case D9:case O9:this.event(e.data,e.eventName);break;case C9:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:k(e.data.diagnostics,e=>U9(e,!0))},e.eventName);break;case w9:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case T9:this.event({telemetryEventName:e.eventName,payload:e.data},`telemetry`);break}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background ${e}`),e.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${e}`),this.errorCheck.startNew(t=>this.updateErrorCheck(t,e,100,!0))),this.event({openFiles:e},y9))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r=`Exception on executing command `+t;if(e.message&&(r+=`: `+FY(e.message),e.stack&&(r+=` `+FY(e.stack))),this.logger.hasLevel(3)){if(n)try{let{file:e,project:t}=this.getFileAndProject(n),i=t.getScriptInfoForNormalizedPath(e);if(i){let e=GZ(i.getSnapshot());r+=` File text of ${n.file}:${FY(e)} `}}catch{}if(e.ProgramFiles){r+=` Program files: ${JSON.stringify(e.ProgramFiles)} `,r+=` Projects:: `;let t=0,n=e=>{r+=` Project '${e.projectName}' (${c9[e.projectKind]}) ${t} `,r+=e.filesToString(!0),r+=` ----------------------------------------------- `,t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEach(n)}}this.logger.msg(r,`Err`)}send(e){if(e.type===`event`&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${IY(e)}`);return}this.writeMessage(e)}writeMessage(e){let t=RAe(e,this.logger,this.byteLength,this.host.newLine);this.host.write(t)}event(e,t){this.send(BAe(t,e))}doOutput(e,t,n,r,i,a){let o={seq:0,type:`response`,command:t,request_seq:n,success:r,performanceData:i&&nje(i)};if(r){let t;if(mt(e))o.body=e,t=e.metadata,delete e.metadata;else if(typeof e==`object`)if(e.metadata){let{metadata:n,...r}=e;o.body=r,t=n}else o.body=e;else o.body=e;t&&(o.metadata=t)}else H.assert(e===void 0);a&&(o.message=a),this.send(o)}semanticCheck(e,t){var n,r;let i=sr();(n=Ar)==null||n.push(Ar.Phase.Session,`semanticCheck`,{file:e,configFilePath:t.canonicalConfigFilePath});let a=NAe(t,e)?t9:t.getLanguageService().getSemanticDiagnostics(e).filter(e=>!!e.file);this.sendDiagnosticsEvent(e,t,a,`semanticDiag`,i),(r=Ar)==null||r.pop()}syntacticCheck(e,t){var n,r;let i=sr();(n=Ar)==null||n.push(Ar.Phase.Session,`syntacticCheck`,{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),`syntaxDiag`,i),(r=Ar)==null||r.pop()}suggestionCheck(e,t){var n,r;let i=sr();(n=Ar)==null||n.push(Ar.Phase.Session,`suggestionCheck`,{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),`suggestionDiag`,i),(r=Ar)==null||r.pop()}regionSemanticCheck(e,t,n){var r,i,a;let o=sr();(r=Ar)==null||r.push(Ar.Phase.Session,`regionSemanticCheck`,{file:e,configFilePath:t.canonicalConfigFilePath});let s;if(!this.shouldDoRegionCheck(e)||!(s=t.getLanguageService().getRegionSemanticDiagnostics(e,n))){(i=Ar)==null||i.pop();return}this.sendDiagnosticsEvent(e,t,s.diagnostics,`regionSemanticDiag`,o,s.spans),(a=Ar)==null||a.pop()}shouldDoRegionCheck(e){let t=this.projectService.getScriptInfoForNormalizedPath(e)?.textStorage.getLineInfo().getLineCount();return!!(t&&t>=this.regionDiagLineCountThreshold)}sendDiagnosticsEvent(e,t,n,r,i,a){try{let o=H.checkDefined(t.getScriptInfo(e)),s=sr()-i,c={file:e,diagnostics:n.map(n=>FAe(e,t,n)),spans:a?.map(e=>q9(e,o))};this.event(c,r),this.addDiagnosticsPerformanceData(e,r,s)}catch(e){this.logError(e,r)}}updateErrorCheck(e,t,n,r=!0){if(t.length===0)return;H.assert(!this.suppressDiagnosticEvents);let i=this.changeSeq,a=Math.min(n,200),o=0,s=()=>{if(o++,t.length>o)return e.delay(`checkOne`,a,l)},c=(t,n)=>{if(this.semanticCheck(t,n),this.changeSeq===i){if(this.getPreferences(t).disableSuggestions)return s();e.immediate(`suggestionCheck`,()=>{this.suggestionCheck(t,n),s()})}},l=()=>{if(this.changeSeq!==i)return;let n,a=t[o];if(gt(a)?a=this.toPendingErrorCheck(a):`ranges`in a&&(n=a.ranges,a=this.toPendingErrorCheck(a.file)),!a)return s();let{fileName:l,project:u}=a;if(z9(u),u.containsFile(l,r)&&(this.syntacticCheck(l,u),this.changeSeq===i)){if(u.projectService.serverMode!==0)return s();if(n)return e.immediate(`regionSemanticCheck`,()=>{let t=this.projectService.getScriptInfoForNormalizedPath(l);t&&this.regionSemanticCheck(l,u,n.map(e=>this.getRange({file:l,...e},t))),this.changeSeq===i&&e.immediate(`semanticCheck`,()=>c(l,u))});e.immediate(`semanticCheck`,()=>c(l,u))}};t.length>o&&this.changeSeq===i&&e.delay(`checkOne`,n,l)}cleanProjects(e,t){if(t){this.logger.info(`cleaning ${e}`);for(let e of t)e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram()}}cleanup(){this.cleanProjects(`inferred projects`,this.projectService.inferredProjects),this.cleanProjects(`configured projects`,$e(this.projectService.configuredProjects.values())),this.cleanProjects(`external projects`,this.projectService.externalProjects),this.host.gc&&(this.logger.info(`host.gc()`),this.host.gc())}getEncodedSyntacticClassifications(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){let{file:t,project:n}=this.getFileAndProject(e),r=e.format===`2020`?`2020`:`original`;return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return e===void 0?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){let t=this.getProject(e.projectFileName),n=r9(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){let r=E(de(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),t=>!!t.file&&t.file.fileName===e);return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):k(r,e=>U9(e,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map(e=>({message:DW(e.messageText,this.host.newLine),start:e.start,length:e.length,category:Oi(e),code:e.code,source:e.source,startLocation:e.file&&H9(gs(e.file,e.start)),endLocation:e.file&&H9(gs(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:k(e.relatedInformation,V9)}))}getCompilerOptionsDiagnostics(e){let t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(E(t.getLanguageService().getCompilerOptionsDiagnostics(),e=>!e.file),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map(e=>({message:DW(e.messageText,this.host.newLine),start:e.start,length:e.length,category:Oi(e),code:e.code,source:e.source,startLocation:t&&t.positionToLineOffset(e.start),endLocation:t&&t.positionToLineOffset(e.start+e.length),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:k(e.relatedInformation,V9)}))}getDiagnosticsWorker(e,t,n,r){let{project:i,file:a}=this.getFileAndProject(e);if(t&&NAe(i,a))return t9;let o=i.getScriptInfoForNormalizedPath(a),s=n(i,a);return r?this.convertToDiagnosticsWithLinePosition(s,o):s.map(e=>FAe(a,i,e))}getDefinition(t,n){let{file:r,project:i}=this.getFileAndProject(t),a=this.getPositionInFile(t,r),o=this.mapDefinitionInfoLocations(i.getLanguageService().getDefinitionAtPosition(r,a)||t9,i);return n?this.mapDefinitionInfo(o,i):o.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map(e=>{let n=ZAe(e,t);return n?{...n,containerKind:e.containerKind,containerName:e.containerName,kind:e.kind,name:e.name,failedAliasResolution:e.failedAliasResolution,...e.unverified&&{unverified:e.unverified}}:e})}getDefinitionAndBoundSpan(t,n){let{file:r,project:i}=this.getFileAndProject(t),a=this.getPositionInFile(t,r),o=H.checkDefined(i.getScriptInfo(r)),s=i.getLanguageService().getDefinitionAndBoundSpan(r,a);if(!s||!s.definitions)return{definitions:t9,textSpan:void 0};let c=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:l}=s;return n?{definitions:this.mapDefinitionInfo(c,i),textSpan:q9(l,o)}:{definitions:c.map(e.mapToOriginalLocation),textSpan:l}}findSourceDefinition(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=n.getLanguageService().getDefinitionAtPosition(t,r),a=this.mapDefinitionInfoLocations(i||t9,n).slice();if(this.projectService.serverMode===0&&(!F(a,e=>r9(e.fileName)!==t&&!e.isAmbient)||F(a,e=>!!e.failedAliasResolution))){let e=pt(e=>e.textSpan.start,vQ(this.host.useCaseSensitiveFileNames));a?.forEach(t=>e.add(t));let i=n.getNoDtsResolutionProject(t),u=i.getLanguageService(),d=u.getDefinitionAtPosition(t,r,!0,!1)?.filter(e=>r9(e.fileName)!==t);if(F(d))for(let t of d){if(t.unverified){let r=c(t,n.getLanguageService().getProgram(),u.getProgram());if(F(r)){for(let t of r)e.add(t);continue}}e.add(t)}else{let n=a.filter(e=>r9(e.fileName)!==t&&e.isAmbient);for(let r of F(n)?n:s()){let n=o(r.fileName,t,i);if(!n)continue;let a=this.projectService.getOrCreateScriptInfoNotOpenedByClient(n,i.currentDirectory,i.directoryStructureHost,!1);if(!a)continue;i.containsScriptInfo(a)||(i.addRoot(a),i.updateGraph());let s=u.getProgram(),c=H.checkDefined(s.getSourceFile(n));for(let t of l(r.name,c,s))e.add(t)}}a=$e(e.values())}return a=a.filter(e=>!e.isAmbient&&!e.failedAliasResolution),this.mapDefinitionInfo(a,n);function o(e,t,r){let i=dT(e);if(i&&e.lastIndexOf(dR)===i.topLevelNodeModulesIndex){let a=e.substring(0,i.packageRootIndex),o=n.getModuleResolutionCache()?.getPackageJsonInfoCache(),s=n.getCompilationSettings(),c=ER(po(a,n.getCurrentDirectory()),TR(o,n,s));if(!c)return;let l=CR(c,{moduleResolution:2},n,n.getModuleResolutionCache()),u=$R(ez(e.substring(i.topLevelPackageNameIndex+1,i.packageRootIndex))),d=n.toPath(e);if(l&&F(l,e=>n.toPath(e)===d))return r.resolutionCache.resolveSingleModuleNameWithoutWatching(u,t).resolvedModule?.resolvedFileName;{let n=`${u}/${uw(e.substring(i.packageRootIndex+1))}`;return r.resolutionCache.resolveSingleModuleNameWithoutWatching(n,t).resolvedModule?.resolvedFileName}}}function s(){let e=n.getLanguageService(),i=eZ(e.getProgram().getSourceFile(t),r);return(uf(i)||Y(i))&&Zx(i.parent)&&tS(i,n=>{if(n===i)return;let r=e.getDefinitionAtPosition(t,n.getStart(),!0,!1)?.filter(e=>r9(e.fileName)!==t&&e.isAmbient).map(e=>({fileName:e.fileName,name:gv(i)}));if(F(r))return r})||t9}function c(e,n,i){let a=i.getSourceFile(e.fileName);if(!a)return;let o=eZ(n.getSourceFile(t),r),s=n.getTypeChecker().getSymbolAtLocation(o),c=s&&xf(s,277);if(c)return l(c.propertyName?.text||c.name.text,a,i)}function l(e,t,n){return M(u5.Core.getTopMostDeclarationNamesInFile(e,t),e=>{let t=n.getTypeChecker().getSymbolAtLocation(e),r=z_(e);if(t&&r)return T5.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)})}}getEmitOutput(e){let{file:t,project:n}=this.getFileAndProject(e);if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let r=n.getLanguageService().getEmitOutput(t);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map(e=>U9(e,!0))}:r}mapJSDocTagInfo(e,t,n){return e?e.map(e=>({...e,text:n?this.mapDisplayParts(e.text,t):e.text?.map(e=>e.text).join(``)})):[]}mapDisplayParts(e,t){return e?e.map(e=>e.kind===`linkName`?{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)}:e):[]}mapSignatureHelpItems(e,t,n){return e.map(e=>({...e,documentation:this.mapDisplayParts(e.documentation,t),parameters:e.parameters.map(e=>({...e,documentation:this.mapDisplayParts(e.documentation,t)})),tags:this.mapJSDocTagInfo(e.tags,t,n)}))}mapDefinitionInfo(e,t){return e.map(e=>({...this.toFileSpanWithContext(e.fileName,e.textSpan,e.contextSpan,t),...e.unverified&&{unverified:e.unverified}}))}static mapToOriginalLocation(e){return e.originalFileName?(H.assert(e.originalTextSpan!==void 0,`originalTextSpan should be present if originalFileName is`),{...e,fileName:e.originalFileName,textSpan:e.originalTextSpan,targetFileName:e.fileName,targetTextSpan:e.textSpan,contextSpan:e.originalContextSpan,targetContextSpan:e.contextSpan}):e}toFileSpan(e,t,n){let r=n.getLanguageService(),i=r.toLineColumnOffset(e,t.start),a=r.toLineColumnOffset(e,ac(t));return{file:e,start:{line:i.line+1,offset:i.character+1},end:{line:a.line+1,offset:a.character+1}}}toFileSpanWithContext(e,t,n,r){let i=this.toFileSpan(e,t,r),a=n&&this.toFileSpan(e,n,r);return a?{...i,contextStart:a.start,contextEnd:a.end}:i}getTypeDefinition(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||t9,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map(e=>{let n=ZAe(e,t);return n?{...n,kind:e.kind,displayParts:e.displayParts}:e})}getImplementation(t,n){let{file:r,project:i}=this.getFileAndProject(t),a=this.getPositionInFile(t,r),o=this.mapImplementationLocations(i.getLanguageService().getImplementationAtPosition(r,a)||t9,i);return n?o.map(({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,i)):o.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){let{configFile:t}=this.getConfigFileAndProject(e);return t?t9:this.getDiagnosticsWorker(e,!1,(e,t)=>e.getLanguageService().getSyntacticDiagnostics(t),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){let{configFile:t,project:n}=this.getConfigFileAndProject(e);return t?this.getConfigFileDiagnostics(t,n,!!e.includeLinePosition):this.getDiagnosticsWorker(e,!0,(e,t)=>e.getLanguageService().getSemanticDiagnostics(t).filter(e=>!!e.file),!!e.includeLinePosition)}getSuggestionDiagnosticsSync(e){let{configFile:t}=this.getConfigFileAndProject(e);return t?t9:this.getDiagnosticsWorker(e,!0,(e,t)=>e.getLanguageService().getSuggestionDiagnostics(t),!!e.includeLinePosition)}getJsxClosingTag(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getJsxClosingTagAtPosition(t,r);return i===void 0?void 0:{newText:i.newText,caretOffset:0}}getLinkedEditingRange(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getLinkedEditingRangeAtPosition(t,r),a=this.projectService.getScriptInfoForNormalizedPath(t);if(!(a===void 0||i===void 0))return oje(i,a)}getDocumentHighlights(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),a=r.getLanguageService().getDocumentHighlights(n,i,e.filesToSearch);return a?t?a.map(({fileName:e,highlightSpans:t})=>{let n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map(({textSpan:e,kind:t,contextSpan:r})=>({...rje(e,r,n),kind:t}))}}):a:t9}provideInlayHints(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map(e=>{let{position:t,displayParts:n}=e;return{...e,position:r.positionToLineOffset(t),displayParts:n?.map(({text:e,span:t,file:n})=>{if(t){H.assertIsDefined(n,`Target file should be defined together with its span.`);let r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}else return{text:e}})}})}mapCode(e){let t=this.getHostFormatOptions(),n=this.getHostPreferences(),{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=this.projectService.getScriptInfoForNormalizedPath(r),o=e.mapping.focusLocations?.map(e=>e.map(e=>{let t=a.lineOffsetToPosition(e.start.line,e.start.offset);return{start:t,length:a.lineOffsetToPosition(e.end.line,e.end.offset)-t}})),s=i.mapCode(r,e.mapping.contents,o,t,n);return this.mapTextChangesToCodeEdits(s)}getCopilotRelatedInfo(){return{relatedFiles:[]}}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,e.needDefaultConfiguredProjectInfo,!1)}getProjectInfoWorker(e,t,n,r,i){let{project:a}=this.getFileAndProjectWorker(e,t);return z9(a),{configFileName:a.getProjectName(),languageServiceDisabled:!a.languageServiceEnabled,fileNames:n?a.getFileNames(!1,i):void 0,configuredProjectInfo:r?this.getDefaultConfiguredProjectInfo(e):void 0}}getDefaultConfiguredProjectInfo(e){var t;let n=this.projectService.getScriptInfo(e);if(!n)return;let r=this.projectService.findDefaultConfiguredProjectWorker(n,3);if(!r)return;let i,a;return r.seenProjects.forEach((e,t)=>{t!==r.defaultProject&&(e===3?(a??=[]).push(r9(t.getConfigFilePath())):(i??=[]).push(r9(t.getConfigFilePath())))}),(t=r.seenConfigs)==null||t.forEach(e=>(i??=[]).push(e)),{notMatchedByConfig:i,notInProject:a,defaultProject:r.defaultProject&&r9(r.defaultProject.getConfigFilePath())}}getRenameInfo(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.getPreferences(t);return n.getLanguageService().getRenameInfo(t,r,i)}getProjects(e,t,n){let r,i;if(e.projectFileName){let t=this.getProject(e.projectFileName);t&&(r=[t])}else{let a=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(a)t||this.projectService.ensureDefaultProjectForFile(a);else return n?t9:(this.projectService.logErrorForScriptInfoNotFound(e.file),n9.ThrowNoProject());r=a.containingProjects,i=this.projectService.getSymlinkedProjects(a)}return r=E(r,e=>e.languageServiceEnabled&&!e.isOrphan()),!n&&(!r||!r.length)&&!i?(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),n9.ThrowNoProject()):i?{projects:r,symLinkedProjects:i}:r}getDefaultProject(e){if(e.projectFileName){let t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return n9.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){let n=r9(e.file),r=this.getPositionInFile(e,n),i=this.getProjects(e),a=this.getDefaultProject(e),o=this.getPreferences(n),s=this.mapRenameInfo(a.getLanguageService().getRenameInfo(n,r,o),H.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];let c=HAe(i,a,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,o,this.host.useCaseSensitiveFileNames);return t?{info:s,locs:this.toSpanGroups(c)}:c}mapRenameInfo(e,t){if(e.canRename){let{canRename:n,fileToRename:r,displayName:i,fullDisplayName:a,kind:o,kindModifiers:s,triggerSpan:c}=e;return wt({canRename:n,fileToRename:r,displayName:i,fullDisplayName:a,kind:o,kindModifiers:s,triggerSpan:q9(c,t)})}else return e}toSpanGroups(e){let t=new Map;for(let{fileName:n,textSpan:r,contextSpan:i,originalContextSpan:a,originalTextSpan:o,originalFileName:s,...c}of e){let e=t.get(n);e||t.set(n,e={file:n,locs:[]});let a=H.checkDefined(this.projectService.getScriptInfo(n));e.locs.push({...rje(r,i,a),...c})}return $e(t.values())}getReferences(e,t){let n=r9(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),a=WAe(r,this.getDefaultProject(e),{fileName:e.file,pos:i},this.host.useCaseSensitiveFileNames,this.logger);if(!t)return a;let o=this.getPreferences(n),s=this.getDefaultProject(e),c=s.getScriptInfoForNormalizedPath(n),l=s.getLanguageService().getQuickInfoAtPosition(n,i),u=l?a4(l.displayParts):``,d=l&&l.textSpan,f=d?c.positionToLineOffset(d.start).offset:0,p=d?c.getSnapshot().getText(d.start,ac(d)):``;return{refs:re(a,e=>e.references.map(e=>dje(this.projectService,e,o))),symbolName:p,symbolStartOffset:f,symbolDisplayString:u}}getFileReferences(e,t){let n=this.getProjects(e),r=r9(e.file),i=this.getPreferences(r),a={fileName:r,pos:0},o=KAe(n,this.getDefaultProject(e),a,a,qAe,e=>(this.logger.info(`Finding references to file ${r} in project ${e.getProjectName()}`),e.getLanguageService().getFileReferences(r))),s;if(mt(o))s=o;else{s=[];let e=W9(this.host.useCaseSensitiveFileNames);o.forEach(t=>{for(let n of t)e.has(n)||(s.push(n),e.add(n))})}return t?{refs:s.map(e=>dje(this.projectService,e,i)),symbolName:`"${e.file}"`}:s}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return e.position===void 0?t.lineOffsetToPosition(e.line,e.offset):e.position}getPositionInFile(e,t){let n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){let{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){let n=r9(e);return{file:n,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n)}}getOutliningSpans(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getOutliningSpans(n);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return i.map(t=>({textSpan:q9(t.textSpan,e),hintSpan:q9(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind}))}else return i}getTodoComments(e){let{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getDocCommentTemplateAtPosition(t,r,this.getPreferences(t),this.getFormatOptions(t))}getSpanOfEnclosingComment(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,i=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,i,r)}getIndentation(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=e.options?k9(e.options):this.getFormatOptions(t);return{position:r,indentation:n.getIndentationAtPosition(t,r,i)}}getBreakpointStatement(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPreferences(n),o=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i),a.maximumHoverLength,e.verbosityLevel);if(!o)return;let s=!!a.displayPartsForJSDoc;if(t){let e=a4(o.displayParts);return{kind:o.kind,kindModifiers:o.kindModifiers,start:i.positionToLineOffset(o.textSpan.start),end:i.positionToLineOffset(ac(o.textSpan)),displayString:e,documentation:s?this.mapDisplayParts(o.documentation,r):a4(o.documentation),tags:this.mapJSDocTagInfo(o.tags,r,s),canIncreaseVerbosityLevel:o.canIncreaseVerbosityLevel}}else return s?o:{...o,tags:this.mapJSDocTagInfo(o.tags,r,!1)}}getFormattingEditsForRange(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),a=r.lineOffsetToPosition(e.endLine,e.endOffset),o=n.getFormattingEditsForRange(t,i,a,this.getFormatOptions(t));if(o)return o.map(e=>this.convertTextChangeToCodeEdit(e,r))}getFormattingEditsForRangeFull(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?k9(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?k9(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?k9(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){let{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),a=this.getFormatOptions(t),o=n.getFormattingEditsAfterKeystroke(t,i,e.key,a);if(e.key===` `&&(!o||o.length===0||IAe(o,i))){let{lineText:s,absolutePosition:c}=r.textStorage.getAbsolutePositionAndLineText(e.line);if(s&&s.search(`\\S`)<0){let e=n.getIndentationAtPosition(t,i,a),r=0,l,u;for(l=0,u=s.length;l({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(ac(e.span)),newText:e.newText?e.newText:``}))}getCompletions(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPosition(e,i),o=r.getLanguageService().getCompletionsAtPosition(n,a,{...Qke(this.getPreferences(n)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(n));if(o===void 0)return;if(t===`completions-full`)return o;let s=e.prefix||``,c=M(o.entries,e=>{if(o.isMemberCompletion||pn(e.name.toLowerCase(),s.toLowerCase())){let t=e.replacementSpan?q9(e.replacementSpan,i):void 0;return{...e,replacementSpan:t,hasAction:e.hasAction||void 0,symbol:void 0}}});return t===`completions`?(o.metadata&&(c.metadata=o.metadata),c):{...o,optionalReplacementSpan:o.optionalReplacementSpan&&q9(o.optionalReplacementSpan,i),entries:c}}getCompletionEntryDetails(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPosition(e,i),o=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,c=M(e.entryNames,e=>{let{name:t,source:i,data:s}=typeof e==`string`?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,a,t,o,i,this.getPreferences(n),s?yt(s,pje):void 0)});return t?s?c:c.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})):c.map(e=>({...e,codeActions:k(e.codeActions,e=>this.mapCodeAction(e)),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)}))}getCompileOnSaveAffectedFileList(e){let t=this.getProjects(e,!0,!0),n=this.projectService.getScriptInfo(e.file);return n?VAe(n,e=>this.projectService.getScriptInfoForPath(e),t,(e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;let n=e.getCompilationSettings();if(!(n.noEmit||OP(t.fileName)&&!PAe(n)))return{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}}):t9}emitFile(e){let{file:t,project:n}=this.getFileAndProject(e);if(n||n9.ThrowNoProject(),!n.languageServiceEnabled)return e.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let r=n.getScriptInfo(t),{emitSkipped:i,diagnostics:a}=n.emitFile(r,(e,t,n)=>this.host.writeFile(e,t,n));return e.richResponse?{emitSkipped:i,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(a):a.map(e=>U9(e,!0))}:!i}getSignatureHelpItems(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPosition(e,i),o=r.getLanguageService().getSignatureHelpItems(n,a,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(o&&t){let e=o.applicableSpan;return{...o,applicableSpan:{start:i.positionToLineOffset(e.start),end:i.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(o.items,r,s)}}else if(s||!o)return o;else return{...o,items:o.items.map(e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))}}toPendingErrorCheck(e){let t=r9(e),n=this.projectService.tryGetDefaultProjectForFile(t);return n&&{fileName:t,project:n}}getDiagnostics(e,t,n){this.suppressDiagnosticEvents||n.length>0&&this.updateErrorCheck(e,n,t)}change(e){let t=this.projectService.getScriptInfo(e.file);H.assert(!!t),t.textStorage.switchToScriptVersionCache();let n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,ce({span:{start:n,length:r-n},newText:e.insertString})))}reload(e){let t=r9(e.file),n=e.tmpfile===void 0?void 0:r9(e.tmpfile),r=this.projectService.getScriptInfoForNormalizedPath(t);r&&(this.changeSeq++,r.reloadFromFile(n))}saveToTmp(e,t){let n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;let t=mo(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return k(e,e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>q9(e,t)),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent}))}getNavigationBarItems(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationBarItems(n);return i?t?this.mapLocationNavigationBarItems(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}toLocationNavigationTree(e,t){return{text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map(e=>q9(e,t)),nameSpan:e.nameSpan&&q9(e.nameSpan,t),childItems:k(e.childItems,e=>this.toLocationNavigationTree(e,t))}}getNavigationTree(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getNavigationTree(n);return i?t?this.toLocationNavigationTree(i,this.projectService.getScriptInfoForNormalizedPath(n)):i:void 0}getNavigateToItems(e,t){let n=this.getFullNavigateToItems(e);return t?re(n,({project:e,navigateToItems:t})=>t.map(t=>{let n=e.getScriptInfo(t.fileName),r={name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,isCaseSensitive:t.isCaseSensitive,matchKind:t.matchKind,file:t.fileName,start:n.positionToLineOffset(t.textSpan.start),end:n.positionToLineOffset(ac(t.textSpan))};return t.kindModifiers&&t.kindModifiers!==``&&(r.kindModifiers=t.kindModifiers),t.containerName&&t.containerName.length>0&&(r.containerName=t.containerName),t.containerKind&&t.containerKind.length>0&&(r.containerKind=t.containerKind),r})):re(n,({navigateToItems:e})=>e)}getFullNavigateToItems(e){let{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:i}=e;if(t){H.assertIsDefined(e.file);let{file:t,project:i}=this.getFileAndProject(e);return[{project:i,navigateToItems:i.getLanguageService().getNavigateToItems(n,r,t)}]}let a=this.getHostPreferences(),o=[],s=new Map;return!e.file&&!i?(this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>c(e))):GAe(this.getProjects(e),void 0,e=>c(e)),o;function c(e){let t=E(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),a.excludeLibrarySymbolsInNavTo),t=>l(t)&&!K9(G9(t),e));t.length&&o.push({project:e,navigateToItems:t})}function l(e){let t=e.name;if(!s.has(t))return s.set(t,[e]),!0;let n=s.get(t);for(let t of n)if(u(t,e))return!1;return n.push(e),!0}function u(e,t){return e===t?!0:!e||!t?!1:e.containerKind===t.containerKind&&e.containerName===t.containerName&&e.fileName===t.fileName&&e.isCaseSensitive===t.isCaseSensitive&&e.kind===t.kind&&e.kindModifiers===t.kindModifiers&&e.matchKind===t.matchKind&&e.name===t.name&&e.textSpan.start===t.textSpan.start&&e.textSpan.length===t.textSpan.length}}getSupportedCodeFixes(e){if(!e)return s4();if(e.file){let{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}let t=this.getProject(e.projectFileName);return t||n9.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return e.line!==void 0}extractPositionOrRange(e,t){let n,r;return this.isLocation(e)?n=i(e):r=this.getRange(e,t),H.checkDefined(n===void 0?r:n);function i(e){return e.position===void 0?t.lineOffsetToPosition(e.line,e.offset):e.position}}getRange(e,t){let{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){let{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getApplicableRefactors(t,this.extractPositionOrRange(e,r),this.getPreferences(t),e.triggerReason,e.kind,e.includeInteractiveActions).map(e=>({...e,actions:e.actions.map(e=>({...e,range:e.range?{start:H9({line:e.range.start.line,character:e.range.start.offset}),end:H9({line:e.range.end.line,character:e.range.end.offset})}:void 0}))}))}getEditsForRefactor(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),a=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,i),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(a===void 0)return{edits:[]};if(t){let{renameFilename:e,renameLocation:t,edits:n}=a,i;return e!==void 0&&t!==void 0&&(i=lje(GZ(r.getScriptInfoForNormalizedPath(r9(e)).getSnapshot()),e,t,n)),{renameLocation:i,renameFilename:e,edits:this.mapTextChangesToCodeEdits(n),notApplicableReason:a.notApplicableReason}}return a}getMoveToRefactoringFileSuggestions(e){let{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}preparePasteEdits(e){let{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().preparePasteEditsForFile(t,e.copiedTextSpan.map(e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},this.projectService.getScriptInfoForNormalizedPath(t))))}getPasteEdits(e){let{file:t,project:n}=this.getFileAndProject(e);if(s9(t))return;let r=e.copiedFrom?{file:e.copiedFrom.file,range:e.copiedFrom.spans.map(t=>this.getRange({file:e.copiedFrom.file,startLine:t.start.line,startOffset:t.start.offset,endLine:t.end.line,endOffset:t.end.offset},n.getScriptInfoForNormalizedPath(r9(e.copiedFrom.file))))}:void 0,i=n.getLanguageService().getPasteEdits({targetFile:t,pastedText:e.pastedText,pasteLocations:e.pasteLocations.map(e=>this.getRange({file:t,startLine:e.start.line,startOffset:e.start.offset,endLine:e.end.line,endOffset:e.end.offset},n.getScriptInfoForNormalizedPath(t))),copiedFrom:r,preferences:this.getPreferences(t)},this.getFormatOptions(t));return i&&this.mapPasteEditsAction(i)}organizeImports(e,t){H.assert(e.scope.type===`file`);let{file:n,project:r}=this.getFileAndProject(e.scope.args),i=r.getLanguageService().organizeImports({fileName:n,mode:e.mode??(e.skipDestructiveCodeActions?`SortAndCombine`:void 0),type:`file`},this.getFormatOptions(n),this.getPreferences(n));return t?this.mapTextChangesToCodeEdits(i):i}getEditsForFileRename(e,t){let n=r9(e.oldFilePath),r=r9(e.newFilePath),i=this.getHostFormatOptions(),a=this.getHostPreferences(),o=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(e=>{let t=e.getLanguageService().getEditsForFileRename(n,r,i,a),c=[];for(let e of t)o.has(e.fileName)||(s.push(e),c.push(e.fileName));for(let e of c)o.add(e)}),t?s.map(e=>this.mapTextChangeToCodeEdit(e)):s}getCodeFixes(e,t){let{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),{startPosition:a,endPosition:o}=this.getStartAndEndPosition(e,i),s;try{s=r.getLanguageService().getCodeFixesAtPosition(n,a,o,e.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(t){let i=t instanceof Error?t:Error(t),s=r.getLanguageService(),c=[...s.getSyntacticDiagnostics(n),...s.getSemanticDiagnostics(n),...s.getSuggestionDiagnostics(n)].filter(e=>gc(a,o-a,e.start,e.length)).map(e=>e.code),l=e.errorCodes.find(e=>!c.includes(e));throw l!==void 0&&(i.message+=` Additional information: BADCLIENT: Bad error code, ${l} not found in range ${a}..${o} (found: ${c.join(`, `)})`),i}return t?s.map(e=>this.mapCodeFixAction(e)):s}getCombinedCodeFix({scope:e,fixId:t},n){H.assert(e.type===`file`);let{file:r,project:i}=this.getFileAndProject(e.args),a=i.getLanguageService().getCombinedCodeFix({type:`file`,fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(a.changes),commands:a.commands}:a}applyCodeActionCommand(e){let t=e.command;for(let e of ht(t)){let{file:t,project:n}=this.getFileAndProject(e);n.getLanguageService().applyCodeActionCommand(e,this.getFormatOptions(t)).then(e=>{},e=>{})}return{}}getStartAndEndPosition(e,t){let n,r;return e.startPosition===void 0?(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n):n=e.startPosition,e.endPosition===void 0?(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r):r=e.endPosition,{startPosition:n,endPosition:r}}mapCodeAction({description:e,changes:t,commands:n}){return{description:e,changes:this.mapTextChangesToCodeEdits(t),commands:n}}mapCodeFixAction({fixName:e,description:t,changes:n,commands:r,fixId:i,fixAllDescription:a}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:a}}mapPasteEditsAction({edits:e,fixId:t}){return{edits:this.mapTextChangesToCodeEdits(e),fixId:t}}mapTextChangesToCodeEdits(e){return e.map(e=>this.mapTextChangeToCodeEdit(e))}mapTextChangeToCodeEdit(e){let t=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!t&&(t||this.projectService.logErrorForScriptInfoNotFound(e.fileName),H.fail(`Expected isNewFile for (only) new files. `+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!t}))),t?{fileName:e.fileName,textChanges:e.textChanges.map(e=>ije(e,t))}:cje(e)}convertTextChangeToCodeEdit(e,t){return{start:t.positionToLineOffset(e.span.start),end:t.positionToLineOffset(e.span.start+e.span.length),newText:e.newText?e.newText:``}}getBraceMatching(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getPosition(e,i),o=r.getBraceMatchingAtPosition(n,a);return o?t?o.map(e=>q9(e,i)):o:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;let{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,void 0,!0);if(i)return;let a=r.filter(e=>!e.includes(`lib.d.ts`));if(a.length===0)return;let o=[],s=[],c=[],l=[],u=r9(n),d=this.projectService.ensureDefaultProjectForFile(u);for(let e of a)this.getCanonicalFileName(e)===this.getCanonicalFileName(n)?o.push(e):this.projectService.getScriptInfo(e).isScriptOpen()?s.push(e):OP(e)?l.push(e):c.push(e);let f=[...o,...s,...c,...l].map(e=>({fileName:e,project:d}));this.updateErrorCheck(e,f,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){let{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),a=H.checkDefined(this.projectService.getScriptInfo(r));return k(n,e=>{let n=this.getPosition(e,a),o=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(o,a):o})}toggleLineComment(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),a=this.getRange(e,i),o=r.toggleLineComment(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}toggleMultilineComment(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getRange(e,i),o=r.toggleMultilineComment(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}commentSelection(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getRange(e,i),o=r.commentSelection(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}uncommentSelection(e,t){let{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),a=this.getRange(e,i),o=r.uncommentSelection(n,a);if(t){let e=this.projectService.getScriptInfoForNormalizedPath(n);return o.map(t=>this.convertTextChangeToCodeEdit(t,e))}return o}mapSelectionRange(e,t){let n={textSpan:q9(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){let t=r9(e);return this.projectService.getScriptInfoForNormalizedPath(t)||(this.projectService.logErrorForScriptInfoNotFound(t),n9.ThrowNoProject())}toProtocolCallHierarchyItem(e){let t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:q9(e.span,t),selectionSpan:q9(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){let t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map(e=>q9(e,t))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map(e=>q9(e,t))}}prepareCallHierarchy(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){let i=this.getPosition(e,r),a=n.getLanguageService().prepareCallHierarchy(t,i);return a&&N$(a,e=>this.toProtocolCallHierarchyItem(e))}}provideCallHierarchyIncomingCalls(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyIncomingCalls(t,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyIncomingCall(e))}provideCallHierarchyOutgoingCalls(e){let{file:t,project:n}=this.getFileAndProject(e),r=this.getScriptInfoFromProjectService(t);return n.getLanguageService().provideCallHierarchyOutgoingCalls(t,this.getPosition(e,r)).map(e=>this.toProtocolCallHierarchyOutgoingCall(e,r))}getCanonicalFileName(e){return mo(this.host.useCaseSensitiveFileNames?e:Dt(e))}exit(){}notRequired(e){return e&&this.doOutput(void 0,e.command,e.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(e){return{response:e,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(e,t){if(this.handlers.has(e))throw Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){H.assert(this.currentRequestId===void 0),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){H.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t,n){let r=this.performanceData;try{return this.performanceData=n,this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e),this.performanceData=r}}executeCommand(e){let t=this.handlers.get(e.command);if(t){let n=this.executeWithRequestId(e.seq,()=>t(e),void 0);return this.projectService.enableRequestedPlugins(),n}else return this.logger.msg(`Unrecognized JSON command:${IY(e)}`,`Err`),this.doOutput(void 0,`unknown`,e.seq,!1,void 0,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var t,n,r,i,a,o,s;this.gcTimer.scheduleCollect();let c,l=this.performanceData;this.logger.hasLevel(2)&&(c=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${FY(this.toStringMessage(e))}`));let u,d;try{u=this.parseMessage(e),d=u.arguments&&u.arguments.file?u.arguments:void 0,(t=Ar)==null||t.instant(Ar.Phase.Session,`request`,{seq:u.seq,command:u.command}),(n=Ar)==null||n.push(Ar.Phase.Session,`executeCommand`,{seq:u.seq,command:u.command},!0);let{response:a,responseRequired:o,performanceData:s}=this.executeCommand(u);if((r=Ar)==null||r.pop(),this.logger.hasLevel(2)){let e=MAe(this.hrtime(c)).toFixed(4);o?this.logger.perftrc(`${u.seq}::${u.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${u.seq}::${u.command}: async elapsed time (in milliseconds) ${e}`)}(i=Ar)==null||i.instant(Ar.Phase.Session,`response`,{seq:u.seq,command:u.command,success:!!a}),a?this.doOutput(a,u.command,u.seq,!0,s):o&&this.doOutput(void 0,u.command,u.seq,!1,s,`No content available.`)}catch(t){if((a=Ar)==null||a.popAll(),t instanceof Gr){(o=Ar)==null||o.instant(Ar.Phase.Session,`commandCanceled`,{seq:u?.seq,command:u?.command}),this.doOutput({canceled:!0},u.command,u.seq,!0,this.performanceData);return}this.logErrorWorker(t,this.toStringMessage(e),d),(s=Ar)==null||s.instant(Ar.Phase.Session,`commandError`,{seq:u?.seq,command:u?.command,message:t.message}),this.doOutput(void 0,u?u.command:`unknown`,u?u.seq:0,!1,this.performanceData,`Error processing request. `+t.message+` `+t.stack)}finally{this.performanceData=l}}parseMessage(e){return JSON.parse(e)}toStringMessage(e){return e}getFormatOptions(e){return this.projectService.getFormatCodeOptions(e)}getPreferences(e){return this.projectService.getPreferences(e)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function nje(e){let t=e.diagnosticsDuration&&$e(e.diagnosticsDuration,([e,t])=>({...t,file:e}));return{...e,diagnosticsDuration:t}}function q9(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(ac(e))}}function rje(e,t,n){let r=q9(e,n),i=t&&q9(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function ije(e,t){return{start:aje(t,e.span.start),end:aje(t,ac(e.span)),newText:e.newText}}function aje(e,t){return DAe(e)?sje(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function oje(e,t){let n=e.ranges.map(e=>({start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(e.start+e.length)}));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}function sje(e){return{line:e.line+1,offset:e.character+1}}function cje(e){H.assert(e.textChanges.length===1);let t=Ie(e.textChanges);return H.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function lje(e,t,n,r){let{line:i,character:a}=ps(ls(uje(e,t,r)),n);return{line:i+1,offset:a+1}}function uje(e,t,n){for(let{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){let{newText:n,span:{start:r,length:a}}=i[t];e=e.slice(0,r)+n+e.slice(r+a)}return e}function dje(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:a},{disableLineTextInReferences:o}){let s=H.checkDefined(e.getScriptInfo(t)),c=rje(n,r,s),l=o?void 0:fje(s,c);return{file:t,...c,lineText:l,isWriteAccess:i,isDefinition:a}}function fje(e,t){let n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,ac(n)).replace(/\r|\n/g,``)}function pje(e){return e===void 0||e&&typeof e==`object`&&typeof e.exportName==`string`&&(e.fileName===void 0||typeof e.fileName==`string`)&&(e.ambientModuleName===void 0||typeof e.ambientModuleName==`string`&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport==`boolean`))}var J9=4,mje=(e=>(e[e.PreStart=0]=`PreStart`,e[e.Start=1]=`Start`,e[e.Entire=2]=`Entire`,e[e.Mid=3]=`Mid`,e[e.End=4]=`End`,e[e.PostEnd=5]=`PostEnd`,e))(mje||{}),hje=class{constructor(){this.goSubtree=!0,this.lineIndex=new Z9,this.endBranch=[],this.state=2,this.initialText=``,this.trailingText=``,this.lineIndex.root=new Q9,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=``),e=e?this.initialText+e+this.trailingText:this.initialText+this.trailingText;let n=Z9.linesFromText(e).lines;n.length>1&&n[n.length-1]===``&&n.pop();let r,i;for(let e=this.endBranch.length-1;e>=0;e--)this.endBranch[e].updateCounts(),this.endBranch[e].charCount()===0&&(i=this.endBranch[e],r=e>0?this.endBranch[e-1]:this.branchNode);i&&r.remove(i);let a=this.startPath[this.startPath.length-1];if(n.length>0)if(a.text=n[0],n.length>1){let e=Array(n.length-1),t=a;for(let t=1;t=0;){let n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let i=e.length;for(;i>0;){let t=new Q9;t.add(this.lineIndex.root),e=t.insertAt(this.lineIndex.root,e),i=e.length,this.lineIndex.root=t}this.lineIndex.root.updateCounts()}else for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts();else{this.startPath[this.startPath.length-2].remove(a);for(let e=this.startPath.length-2;e>=0;e--)this.startPath[e].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,r,i){let a=this.stack[this.stack.length-1];this.state===2&&i===1&&(this.state=1,this.branchNode=a,this.lineCollectionAtBranch=n);let o;function s(e){return e.isLeaf()?new $9(``):new Q9}switch(i){case 0:this.goSubtree=!1,this.state!==4&&a.add(n);break;case 1:this.state===4?this.goSubtree=!1:(o=s(n),a.add(o),this.startPath.push(o));break;case 2:this.state===4?n.isLeaf()||(o=s(n),a.add(o),this.endBranch.push(o)):(o=s(n),a.add(o),this.startPath.push(o));break;case 3:this.goSubtree=!1;break;case 4:this.state===4?n.isLeaf()||(o=s(n),a.add(o),this.endBranch.push(o)):this.goSubtree=!1;break;case 5:this.goSubtree=!1,this.state!==1&&a.add(n);break}this.goSubtree&&this.stack.push(o)}leaf(e,t,n){this.state===1?this.initialText=n.text.substring(0,e):(this.state===2&&(this.initialText=n.text.substring(0,e)),this.trailingText=n.text.substring(e+t))}},gje=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return Tc(xc(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Y9=class e{constructor(){this.changes=[],this.versions=Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new gje(t,n,r)),(this.changes.length>e.changeNumberThreshold||n>e.changeLengthThreshold||r&&r.length>e.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(let e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new _je(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=e.maxVersions&&(this.minVersion=this.currentVersion-e.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(e){return this._getSnapshot().index.lineNumberToInfo(e)}lineOffsetToPosition(e,t){return this._getSnapshot().index.absolutePositionOfStartOfLine(e)+(t-1)}positionToLineOffset(e){return this._getSnapshot().index.positionToLineOffset(e)}lineToTextSpan(e){let t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1);return xc(r,n===void 0?t.absolutePositionOfStartOfLine(e+2)-r:n.length)}getTextChangesBetweenVersions(e,t){if(e=this.minVersion){let n=[];for(let r=e+1;r<=t;r++){let e=this.versions[this.versionToIndex(r)];for(let t of e.changesSincePreviousVersion)n.push(t.getTextChangeRange())}return Dc(n)}else return;else return Ec}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let n=new e,r=new _je(0,n,new Z9);n.versions[n.currentVersion]=r;let i=Z9.linesFromText(t);return r.index.load(i.lines),n}};Y9.changeNumberThreshold=8,Y9.changeLengthThreshold=256,Y9.maxVersions=8;var X9=Y9,_je=class e{constructor(e,t,n,r=t9){this.version=e,this.cache=t,this.index=n,this.changesSincePreviousVersion=r}getText(e,t){return this.index.getText(e,t-e)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof e&&this.cache===t.cache)return this.version<=t.version?Ec:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},Z9=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){let{oneBasedLine:t,zeroBasedColumn:n}=this.root.charOffsetToLineInfo(1,e);return{line:t,offset:n+1}}positionToColumnAndLineText(e){return this.root.charOffsetToLineInfo(1,e)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(e){if(e<=this.getLineCount()){let{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let n=[];for(let e=0;e0&&e{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||=this.root.charCount();let r={goSubtree:!0,done:!1,leaf(t,n,r){e(r,t,n)||(this.done=!0)}};return this.walk(t,n-t,r),!r.done}edit(t,n,r){if(this.root.charCount()===0)return H.assert(n===0),r===void 0?void 0:(this.load(e.linesFromText(r).lines),this);{let e;if(this.checkEdits){let i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}let i=new hje,a=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let e=this.getText(t,1);r=r?e+r:e,n=0,a=!0}else if(n>0){let e=t+n,{zeroBasedColumn:i,lineText:a}=this.positionToColumnAndLineText(e);i===0&&(n+=a.length,r=r?r+a:a)}if(this.root.walk(t,n,i),i.insertLines(r,a),this.checkEdits){let t=i.lineIndex.getText(0,i.lineIndex.getLength());H.assert(e===t,`buffer edit mismatch`)}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},Q9=class e{constructor(e=[]){this.children=e,this.totalChars=0,this.totalLines=0,e.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let e of this.children)this.totalChars+=e.charCount(),this.totalLines+=e.lineCount()}execWalk(e,t,n,r,i){return n.pre&&n.pre(e,t,this.children[r],this,i),n.goSubtree?(this.children[r].walk(e,t,n),n.post&&n.post(e,t,this.children[r],this,i)):n.goSubtree=!0,n.done}skipChild(e,t,n,r,i){r.pre&&!r.done&&(r.pre(e,t,this.children[n],this,i),r.goSubtree=!0)}walk(e,t,n){if(this.children.length===0)return;let r=0,i=this.children[r].charCount(),a=e;for(;a>=i;)this.skipChild(a,t,r,n,0),a-=i,r++,i=this.children[r].charCount();if(a+t<=i){if(this.execWalk(a,t,n,r,2))return}else{if(this.execWalk(a,i-a,n,r,1))return;let e=t-(i-a);for(r++,i=this.children[r].charCount();e>i;){if(this.execWalk(0,i,n,r,3))return;e-=i,r++,i=this.children[r].charCount()}if(e>0&&this.execWalk(0,e,n,r,4))return}if(n.pre){let e=this.children.length;if(rt)return n.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:n.text}:n.charOffsetToLineInfo(e,t);else t-=n.charCount(),e+=n.lineCount();let n=this.lineCount();return n===0?{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0}:{oneBasedLine:n,zeroBasedColumn:H.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(let n of this.children){let r=n.lineCount();if(r>=e)return n.isLeaf()?{position:t,leaf:n}:n.lineNumberToInfo(e,t);e-=r,t+=n.charCount()}return{position:t,leaf:void 0}}splitAfter(t){let n,r=this.children.length;t++;let i=t;if(t=0;e--)o[e].children.length===0&&o.pop()}t&&o.push(t),this.updateCounts();for(let e=0;e{(this.packageInstalledPromise??=new Map).set(this.packageInstallId,{resolve:e,reject:t})});return this.installer.send(t),n}attach(e){this.projectService=e,this.installer=this.createInstallerProcess()}onProjectClosed(e){this.installer.send({projectName:e.getProjectName(),kind:`closeProject`})}enqueueInstallTypingsRequest(e,t,n){let r=nke(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${IY(r)}`),this.activeRequestCount0?this.activeRequestCount--:H.fail(`TIAdapter:: Received too many responses`);!this.requestQueue.isEmpty();){let e=this.requestQueue.dequeue();if(this.requestMap.get(e.projectName)===e){this.requestMap.delete(e.projectName),this.scheduleRequest(e);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${e.projectName}`)}this.projectService.updateTypingsForProject(e),this.event(e,`setTypings`);break;case jY:this.projectService.watchTypingLocations(e);break}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${IY(t)}`),this.installer.send(t)},e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};vje.requestDelayMillis=100;var yje=vje,bje={};n(bje,{ActionInvalidate:()=>TY,ActionPackageInstalled:()=>EY,ActionSet:()=>wY,ActionWatchTypingLocations:()=>jY,Arguments:()=>MY,AutoImportProviderProject:()=>Hke,AuxiliaryProject:()=>Bke,CharRangeSection:()=>mje,CloseFileWatcherEvent:()=>O9,CommandNames:()=>LAe,ConfigFileDiagEvent:()=>C9,ConfiguredProject:()=>Uke,ConfiguredProjectLoadKind:()=>rAe,CreateDirectoryWatcherEvent:()=>D9,CreateFileWatcherEvent:()=>E9,Errors:()=>n9,EventBeginInstallTypes:()=>OY,EventEndInstallTypes:()=>kY,EventInitializationFailed:()=>AY,EventTypesRegistry:()=>DY,ExternalProject:()=>d9,GcTimer:()=>uke,InferredProject:()=>zke,LargeFileReferencedEvent:()=>S9,LineIndex:()=>Z9,LineLeaf:()=>$9,LineNode:()=>Q9,LogLevel:()=>eke,Msg:()=>tke,OpenFileInfoTelemetryEvent:()=>Wke,Project:()=>u9,ProjectInfoTelemetryEvent:()=>T9,ProjectKind:()=>c9,ProjectLanguageServiceStateEvent:()=>w9,ProjectLoadingFinishEvent:()=>x9,ProjectLoadingStartEvent:()=>b9,ProjectService:()=>TAe,ProjectsUpdatedInBackgroundEvent:()=>y9,ScriptInfo:()=>Cke,ScriptVersionCache:()=>X9,Session:()=>tje,TextStorage:()=>Ske,ThrottledOperations:()=>lke,TypingsInstallerAdapter:()=>yje,allFilesAreJsOrDts:()=>Ake,allRootFilesAreJsOrDts:()=>kke,asNormalizedPath:()=>a9,convertCompilerOptions:()=>A9,convertFormatOptions:()=>k9,convertScriptKindName:()=>N9,convertTypeAcquisition:()=>Zke,convertUserPreferences:()=>Qke,convertWatchOptions:()=>j9,countEachFileTypes:()=>l9,createInstallTypingsRequest:()=>nke,createModuleSpecifierCache:()=>kAe,createNormalizedPathMap:()=>rke,createPackageJsonCache:()=>AAe,createSortedArray:()=>cke,emptyArray:()=>t9,findArgument:()=>NY,formatDiagnosticToProtocol:()=>U9,formatMessage:()=>RAe,getBaseConfigFileName:()=>o9,getDetailWatchInfo:()=>R9,getLocationInNewDocument:()=>lje,hasArgument:()=>nie,hasNoTypeScriptSource:()=>jke,indent:()=>FY,isBackgroundProject:()=>h9,isConfigFile:()=>DAe,isConfiguredProject:()=>p9,isDynamicFileName:()=>s9,isExternalProject:()=>m9,isInferredProject:()=>f9,isInferredProjectName:()=>ike,isProjectDeferredClose:()=>g9,makeAutoImportProviderProjectName:()=>oke,makeAuxiliaryProjectName:()=>ske,makeInferredProjectName:()=>ake,maxFileSize:()=>v9,maxProgramSizeForNonTsFiles:()=>_9,normalizedPathToPath:()=>i9,nowString:()=>PY,nullCancellationToken:()=>jAe,nullTypingsInstaller:()=>I9,protocol:()=>dke,scriptInfoIsContainedByBackgroundProject:()=>Eke,scriptInfoIsContainedByDeferredClosedProject:()=>Dke,stringifyIndented:()=>IY,toEvent:()=>BAe,toNormalizedPath:()=>r9,tryConvertScriptKindName:()=>M9,typingsInstaller:()=>qOe,updateProjectIfDirty:()=>z9}),typeof console<`u`&&(H.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:return console.log(t);case 4:return console.log(t)}}})})({get exports(){return yo},set exports(e){yo=e}});var bo=yo.createClassifier,xo=yo.createLanguageService,So=yo.displayPartsToString,Co=yo.EndOfLineState,wo=yo.flattenDiagnosticMessageText,To=yo.IndentStyle,Eo=yo.ScriptKind,Do=yo.ScriptTarget,Oo=yo.TokenClass,ko=yo;let Ao={};Ao[`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. ***************************************************************************** */ /// /// /// /// /// `,Ao[`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; type DecoratorMetadataObject = Record & object; type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined; /** * 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; readonly metadata: DecoratorMetadata; } /** * 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 after static methods are defined but 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; readonly metadata: DecoratorMetadata; } /** * 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 after static methods are defined but 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; readonly metadata: DecoratorMetadata; } /** * 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 after static methods are defined but 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; readonly metadata: DecoratorMetadata; } /** * 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 immediately after the auto \`accessor\` being * decorated is initialized (regardless if the \`accessor\` is \`static\` or not). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } /** * 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 immediately after the field being decorated * is initialized (regardless if the field is \`static\` or not). */ addInitializer(initializer: (this: This) => void): void; readonly metadata: DecoratorMetadata; } `,Ao[`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 | undefined, parameterIndex: number) => void; `,Ao[`lib.dom.asynciterable.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 Async Iterable APIs ///////////////////////////// interface FileSystemDirectoryHandleAsyncIterator extends AsyncIteratorObject { [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator; } interface FileSystemDirectoryHandle { [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>; keys(): FileSystemDirectoryHandleAsyncIterator; values(): FileSystemDirectoryHandleAsyncIterator; } interface ReadableStreamAsyncIterator extends AsyncIteratorObject { [Symbol.asyncIterator](): ReadableStreamAsyncIterator; } interface ReadableStream { [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator; } `,Ao[`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 AddressErrors { addressLine?: string; city?: string; country?: string; dependentLocality?: string; organization?: string; phone?: string; postalCode?: string; recipient?: string; region?: string; sortingCode?: string; } 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 AudioDataCopyToOptions { format?: AudioSampleFormat; frameCount?: number; frameOffset?: number; planeIndex: number; } interface AudioDataInit { data: BufferSource; format: AudioSampleFormat; numberOfChannels: number; numberOfFrames: number; sampleRate: number; timestamp: number; transfer?: ArrayBuffer[]; } interface AudioDecoderConfig { codec: string; description?: AllowSharedBufferSource; numberOfChannels: number; sampleRate: number; } interface AudioDecoderInit { error: WebCodecsErrorCallback; output: AudioDataOutputCallback; } interface AudioDecoderSupport { config?: AudioDecoderConfig; supported?: boolean; } interface AudioEncoderConfig { bitrate?: number; bitrateMode?: BitrateMode; codec: string; numberOfChannels: number; opus?: OpusEncoderConfig; sampleRate: number; } interface AudioEncoderInit { error: WebCodecsErrorCallback; output: EncodedAudioChunkOutputCallback; } interface AudioEncoderSupport { config?: AudioEncoderConfig; supported?: boolean; } 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; credentialProtectionPolicy?: string; enforceCredentialProtectionPolicy?: boolean; hmacCreateSecret?: boolean; largeBlob?: AuthenticationExtensionsLargeBlobInputs; minPinLength?: boolean; prf?: AuthenticationExtensionsPRFInputs; } interface AuthenticationExtensionsClientInputsJSON { appid?: string; credProps?: boolean; largeBlob?: AuthenticationExtensionsLargeBlobInputsJSON; prf?: AuthenticationExtensionsPRFInputsJSON; } interface AuthenticationExtensionsClientOutputs { appid?: boolean; credProps?: CredentialPropertiesOutput; hmacCreateSecret?: boolean; largeBlob?: AuthenticationExtensionsLargeBlobOutputs; prf?: AuthenticationExtensionsPRFOutputs; } interface AuthenticationExtensionsLargeBlobInputs { read?: boolean; support?: string; write?: BufferSource; } interface AuthenticationExtensionsLargeBlobInputsJSON { read?: boolean; support?: string; write?: Base64URLString; } interface AuthenticationExtensionsLargeBlobOutputs { blob?: ArrayBuffer; supported?: boolean; written?: boolean; } interface AuthenticationExtensionsPRFInputs { eval?: AuthenticationExtensionsPRFValues; evalByCredential?: Record; } interface AuthenticationExtensionsPRFInputsJSON { eval?: AuthenticationExtensionsPRFValuesJSON; evalByCredential?: Record; } interface AuthenticationExtensionsPRFOutputs { enabled?: boolean; results?: AuthenticationExtensionsPRFValues; } interface AuthenticationExtensionsPRFValues { first: BufferSource; second?: BufferSource; } interface AuthenticationExtensionsPRFValuesJSON { first: Base64URLString; second?: Base64URLString; } interface AuthenticatorSelectionCriteria { authenticatorAttachment?: AuthenticatorAttachment; requireResidentKey?: boolean; residentKey?: ResidentKeyRequirement; userVerification?: UserVerificationRequirement; } interface AvcEncoderConfig { format?: AvcBitstreamFormat; } interface BiquadFilterOptions extends AudioNodeOptions { Q?: number; detune?: number; frequency?: number; gain?: number; type?: BiquadFilterType; } interface BlobEventInit extends EventInit { data: Blob; timecode?: DOMHighResTimeStamp; } interface BlobPropertyBag { endings?: EndingType; type?: string; } interface CSSMatrixComponentOptions { is2D?: boolean; } interface CSSNumericType { angle?: number; flex?: number; frequency?: number; length?: number; percent?: number; percentHint?: CSSNumericBaseType; resolution?: number; time?: number; } 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 CaretPositionFromPointOptions { shadowRoots?: ShadowRoot[]; } interface ChannelMergerOptions extends AudioNodeOptions { numberOfInputs?: number; } interface ChannelSplitterOptions extends AudioNodeOptions { numberOfOutputs?: number; } interface CheckVisibilityOptions { checkOpacity?: boolean; checkVisibilityCSS?: boolean; contentVisibilityAuto?: boolean; opacityProperty?: boolean; visibilityProperty?: 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 ContentVisibilityAutoStateChangeEventInit extends EventInit { skipped?: boolean; } interface ConvolverOptions extends AudioNodeOptions { buffer?: AudioBuffer | null; disableNormalization?: boolean; } interface CookieChangeEventInit extends EventInit { changed?: CookieList; deleted?: CookieList; } interface CookieInit { domain?: string | null; expires?: DOMHighResTimeStamp | null; name: string; partitioned?: boolean; path?: string; sameSite?: CookieSameSite; value: string; } interface CookieListItem { name?: string; value?: string; } interface CookieStoreDeleteOptions { domain?: string | null; name: string; partitioned?: boolean; path?: string; } interface CookieStoreGetOptions { name?: string; url?: string; } 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 | CSSNumericValue | string; easing?: string; endDelay?: number; fill?: FillMode; iterationStart?: number; iterations?: number; playbackRate?: number; } interface ElementCreationOptions { customElementRegistry?: CustomElementRegistry; is?: string; } interface ElementDefinitionOptions { extends?: string; } interface EncodedAudioChunkInit { data: AllowSharedBufferSource; duration?: number; timestamp: number; transfer?: ArrayBuffer[]; type: EncodedAudioChunkType; } interface EncodedAudioChunkMetadata { decoderConfig?: AudioDecoderConfig; } interface EncodedVideoChunkInit { data: AllowSharedBufferSource; duration?: number; timestamp: number; type: EncodedVideoChunkType; } interface EncodedVideoChunkMetadata { decoderConfig?: VideoDecoderConfig; } 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 FileSystemCreateWritableOptions { keepExistingData?: boolean; } 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; 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 GamepadEffectParameters { duration?: number; leftTrigger?: number; rightTrigger?: number; startDelay?: number; strongMagnitude?: number; weakMagnitude?: number; } interface GamepadEventInit extends EventInit { gamepad: Gamepad; } interface GetAnimationsOptions { subtree?: boolean; } interface GetComposedRangesOptions { shadowRoots?: ShadowRoot[]; } interface GetHTMLOptions { serializableShadowRoots?: boolean; shadowRoots?: ShadowRoot[]; } 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 ImageDecodeOptions { completeFramesOnly?: boolean; frameIndex?: number; } interface ImageDecodeResult { complete: boolean; image: VideoFrame; } interface ImageDecoderInit { colorSpaceConversion?: ColorSpaceConversion; data: ImageBufferSource; desiredHeight?: number; desiredWidth?: number; preferAnimation?: boolean; transfer?: ArrayBuffer[]; type: string; } interface ImageEncodeOptions { quality?: number; type?: string; } interface ImportNodeOptions { customElementRegistry?: CustomElementRegistry; selfOnly?: boolean; } interface InputEventInit extends UIEventInit { data?: string | null; dataTransfer?: DataTransfer | null; inputType?: string; isComposing?: boolean; targetRanges?: StaticRange[]; } 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 KeySystemTrackConfiguration { robustness?: 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; timeline?: AnimationTimeline | null; } 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 { keySystemAccess: MediaKeySystemAccess | null; } interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo { } interface MediaCapabilitiesInfo { powerEfficient: boolean; smooth: boolean; supported: boolean; } interface MediaCapabilitiesKeySystemConfiguration { audio?: KeySystemTrackConfiguration; distinctiveIdentifier?: MediaKeysRequirement; initDataType?: string; keySystem: string; persistentState?: MediaKeysRequirement; sessionTypes?: string[]; video?: KeySystemTrackConfiguration; } interface MediaConfiguration { audio?: AudioConfiguration; video?: VideoConfiguration; } interface MediaDecodingConfiguration extends MediaConfiguration { keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration; 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 MediaKeysPolicy { minHdcpVersion?: 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 MediaSettingsRange { max?: number; min?: number; step?: 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[]; backgroundBlur?: 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; backgroundBlur?: 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; backgroundBlur?: boolean; channelCount?: number; deviceId?: string; displaySurface?: string; echoCancellation?: boolean; facingMode?: string; frameRate?: number; groupId?: string; height?: number; noiseSuppression?: boolean; sampleRate?: number; sampleSize?: number; torch?: boolean; whiteBalanceMode?: string; width?: number; zoom?: number; } interface MediaTrackSupportedConstraints { aspectRatio?: boolean; autoGainControl?: boolean; backgroundBlur?: 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 NotificationOptions { badge?: string; body?: string; data?: any; dir?: NotificationDirection; icon?: string; lang?: string; requireInteraction?: boolean; silent?: boolean | null; tag?: string; } 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 OpusEncoderConfig { complexity?: number; format?: OpusBitstreamFormat; frameDuration?: number; packetlossperc?: number; usedtx?: boolean; useinbandfec?: boolean; } interface OscillatorOptions extends AudioNodeOptions { detune?: number; frequency?: number; periodicWave?: PeriodicWave; type?: OscillatorType; } interface PageRevealEventInit extends EventInit { viewTransition?: ViewTransition | null; } interface PageSwapEventInit extends EventInit { activation?: NavigationActivation | null; viewTransition?: ViewTransition | null; } 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 PayerErrors { email?: string; name?: string; phone?: string; } interface PaymentCurrencyAmount { currency: string; value: string; } interface PaymentDetailsBase { displayItems?: PaymentItem[]; modifiers?: PaymentDetailsModifier[]; shippingOptions?: PaymentShippingOption[]; } interface PaymentDetailsInit extends PaymentDetailsBase { id?: string; total: PaymentItem; } interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; data?: any; supportedMethods: string; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { error?: string; paymentMethodErrors?: any; shippingAddressErrors?: AddressErrors; 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 PaymentOptions { requestPayerEmail?: boolean; requestPayerName?: boolean; requestPayerPhone?: boolean; requestShipping?: boolean; shippingType?: PaymentShippingType; } interface PaymentRequestUpdateEventInit extends EventInit { } interface PaymentShippingOption { amount: PaymentCurrencyAmount; id: string; label: string; selected?: boolean; } interface PaymentValidationErrors { error?: string; payer?: PayerErrors; shippingAddress?: AddressErrors; } 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 PhotoCapabilities { fillLightMode?: FillLightMode[]; imageHeight?: MediaSettingsRange; imageWidth?: MediaSettingsRange; redEyeReduction?: RedEyeReduction; } interface PhotoSettings { fillLightMode?: FillLightMode; imageHeight?: number; imageWidth?: number; redEyeReduction?: boolean; } interface PictureInPictureEventInit extends EventInit { pictureInPictureWindow: PictureInPictureWindow; } interface PlaneLayout { offset: number; stride: number; } interface PointerEventInit extends MouseEventInit { altitudeAngle?: number; azimuthAngle?: number; 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 PointerLockOptions { unadjustedMovement?: boolean; } 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 PropertyDefinition { inherits: boolean; initialValue?: string; name: string; syntax?: string; } 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 PublicKeyCredentialCreationOptionsJSON { attestation?: string; authenticatorSelection?: AuthenticatorSelectionCriteria; challenge: Base64URLString; excludeCredentials?: PublicKeyCredentialDescriptorJSON[]; extensions?: AuthenticationExtensionsClientInputsJSON; hints?: string[]; pubKeyCredParams: PublicKeyCredentialParameters[]; rp: PublicKeyCredentialRpEntity; timeout?: number; user: PublicKeyCredentialUserEntityJSON; } interface PublicKeyCredentialDescriptor { id: BufferSource; transports?: AuthenticatorTransport[]; type: PublicKeyCredentialType; } interface PublicKeyCredentialDescriptorJSON { id: Base64URLString; transports?: string[]; type: string; } 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 PublicKeyCredentialRequestOptionsJSON { allowCredentials?: PublicKeyCredentialDescriptorJSON[]; challenge: Base64URLString; extensions?: AuthenticationExtensionsClientInputsJSON; hints?: string[]; rpId?: string; timeout?: number; userVerification?: string; } interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity { id?: string; } interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity { displayName: string; id: BufferSource; } interface PublicKeyCredentialUserEntityJSON { displayName: string; id: Base64URLString; name: string; } 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 extends RTCEncodedFrameMetadata { sequenceNumber?: number; } interface RTCEncodedFrameMetadata { contributingSources?: number[]; mimeType?: string; payloadType?: number; rtpTimestamp?: number; synchronizationSource?: number; } interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata { dependencies?: number[]; frameId?: number; height?: number; spatialIndex?: number; temporalIndex?: number; timestamp?: 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; bytesDiscardedOnSend?: number; bytesReceived?: number; bytesSent?: number; consentRequestsSent?: number; currentRoundTripTime?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; lastPacketSentTimestamp?: DOMHighResTimeStamp; localCandidateId: string; nominated?: boolean; packetsDiscardedOnSend?: number; packetsReceived?: number; packetsSent?: number; 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; fecBytesReceived?: number; fecPacketsDiscarded?: number; fecPacketsReceived?: number; fecSsrc?: number; firCount?: number; frameHeight?: number; frameWidth?: number; framesAssembledFromMultiplePackets?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; framesRendered?: number; freezeCount?: number; headerBytesReceived?: number; insertedSamplesForDeceleration?: number; jitterBufferDelay?: number; jitterBufferEmittedCount?: number; jitterBufferMinimumDelay?: number; jitterBufferTargetDelay?: number; keyFramesDecoded?: number; lastPacketReceivedTimestamp?: DOMHighResTimeStamp; mid?: string; nackCount?: number; packetsDiscarded?: number; pauseCount?: number; playoutId?: string; pliCount?: number; qpSum?: number; remoteId?: string; removedSamplesForAcceleration?: number; retransmittedBytesReceived?: number; retransmittedPacketsReceived?: number; rtxSsrc?: number; silentConcealedSamples?: number; totalAssemblyTime?: number; totalAudioEnergy?: number; totalDecodeTime?: number; totalFreezesDuration?: number; totalInterFrameDelay?: number; totalPausesDuration?: number; totalProcessingDelay?: number; totalSamplesDuration?: number; totalSamplesReceived?: number; totalSquaredInterFrameDelay?: number; trackIdentifier: string; } interface RTCLocalIceCandidateInit extends RTCIceCandidateInit { } interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; } interface RTCOfferAnswerOptions { } interface RTCOfferOptions extends RTCOfferAnswerOptions { iceRestart?: boolean; offerToReceiveAudio?: boolean; offerToReceiveVideo?: boolean; } interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats { active?: boolean; firCount?: number; frameHeight?: number; frameWidth?: number; framesEncoded?: number; framesPerSecond?: number; framesSent?: number; headerBytesSent?: number; hugeFramesSent?: number; keyFramesEncoded?: number; mediaSourceId?: string; mid?: string; nackCount?: number; pliCount?: number; qpSum?: number; qualityLimitationDurations?: Record; qualityLimitationReason?: RTCQualityLimitationReason; qualityLimitationResolutionChanges?: number; remoteId?: string; retransmittedBytesSent?: number; retransmittedPacketsSent?: number; rid?: string; rtxSsrc?: number; scalabilityMode?: 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; } interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats { jitter?: number; packetsLost?: number; packetsReceived?: number; } interface RTCRtcpParameters { cname?: string; reducedSize?: boolean; } interface RTCRtpCapabilities { codecs: RTCRtpCodec[]; headerExtensions: RTCRtpHeaderExtensionCapability[]; } interface RTCRtpCodec { channels?: number; clockRate: number; mimeType: string; sdpFmtpLine?: string; } interface RTCRtpCodecParameters extends RTCRtpCodec { payloadType: number; } 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 RTCSetParameterOptions { } 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; dtlsRole?: RTCDtlsRole; dtlsState: RTCDtlsTransportState; iceLocalUsernameFragment?: string; iceRole?: RTCIceRole; iceState?: RTCIceTransportState; localCertificateId?: string; packetsReceived?: number; packetsSent?: number; remoteCertificateId?: string; selectedCandidatePairChanges?: number; 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 ReadableStreamIteratorOptions { /** * Asynchronously iterates over the chunks in the stream's internal queue. * * Asynchronously iterating over the stream will lock it, preventing any other consumer from acquiring a reader. The lock will be released if the async iterator's return() method is called, e.g. by breaking out of the loop. * * By default, calling the async iterator's return() method will also cancel the stream. To prevent this, use the stream's values() method, passing true for the preventCancel option. */ preventCancel?: boolean; } interface ReadableStreamReadDoneResult { done: true; value: T | undefined; } 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 ReportingObserverOptions { buffered?: boolean; types?: string[]; } 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; priority?: RequestPriority; /** 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 { clonable?: boolean; customElementRegistry?: CustomElementRegistry; delegatesFocus?: boolean; mode: ShadowRootMode; serializable?: boolean; 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 StartViewTransitionOptions { types?: string[] | null; update?: ViewTransitionUpdateCallback | null; } 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 ToggleEventInit extends EventInit { newState?: string; oldState?: string; } 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; hasAlphaChannel?: boolean; hdrMetadataType?: HdrMetadataType; height: number; scalabilityMode?: string; transferFunction?: TransferFunction; width: number; } interface VideoDecoderConfig { codec: string; codedHeight?: number; codedWidth?: number; colorSpace?: VideoColorSpaceInit; description?: AllowSharedBufferSource; displayAspectHeight?: number; displayAspectWidth?: number; hardwareAcceleration?: HardwareAcceleration; optimizeForLatency?: boolean; } interface VideoDecoderInit { error: WebCodecsErrorCallback; output: VideoFrameOutputCallback; } interface VideoDecoderSupport { config?: VideoDecoderConfig; supported?: boolean; } interface VideoEncoderConfig { alpha?: AlphaOption; avc?: AvcEncoderConfig; bitrate?: number; bitrateMode?: VideoEncoderBitrateMode; codec: string; contentHint?: string; displayHeight?: number; displayWidth?: number; framerate?: number; hardwareAcceleration?: HardwareAcceleration; height: number; latencyMode?: LatencyMode; scalabilityMode?: string; width: number; } interface VideoEncoderEncodeOptions { avc?: VideoEncoderEncodeOptionsForAvc; keyFrame?: boolean; } interface VideoEncoderEncodeOptionsForAvc { quantizer?: number | null; } interface VideoEncoderInit { error: WebCodecsErrorCallback; output: EncodedVideoChunkOutputCallback; } interface VideoEncoderSupport { config?: VideoEncoderConfig; supported?: boolean; } interface VideoFrameBufferInit { codedHeight: number; codedWidth: number; colorSpace?: VideoColorSpaceInit; displayHeight?: number; displayWidth?: number; duration?: number; format: VideoPixelFormat; layout?: PlaneLayout[]; timestamp: number; visibleRect?: DOMRectInit; } interface VideoFrameCallbackMetadata { captureTime?: DOMHighResTimeStamp; expectedDisplayTime: DOMHighResTimeStamp; height: number; mediaTime: number; presentationTime: DOMHighResTimeStamp; presentedFrames: number; processingDuration?: number; receiveTime?: DOMHighResTimeStamp; rtpTimestamp?: number; width: number; } interface VideoFrameCopyToOptions { colorSpace?: PredefinedColorSpace; format?: VideoPixelFormat; layout?: PlaneLayout[]; rect?: DOMRectInit; } interface VideoFrameInit { alpha?: AlphaOption; displayHeight?: number; displayWidth?: number; duration?: number; timestamp?: number; visibleRect?: DOMRectInit; } 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 WebTransportCloseInfo { closeCode?: number; reason?: string; } interface WebTransportErrorOptions { source?: WebTransportErrorSource; streamErrorCode?: number | null; } interface WebTransportHash { algorithm?: string; value?: BufferSource; } interface WebTransportOptions { allowPooling?: boolean; congestionControl?: WebTransportCongestionControl; requireUnreliable?: boolean; serverCertificateHashes?: WebTransportHash[]; } interface WebTransportSendOptions { sendOrder?: number; } interface WebTransportSendStreamOptions extends WebTransportSendOptions { } 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; } interface WriteParams { data?: BufferSource | Blob | string | null; position?: number | null; size?: number | null; type: WriteCommandType; } 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays) */ interface ANGLE_instanced_arrays { /** * The **\`ANGLE_instanced_arrays.drawArraysInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */ drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void; /** * The **\`ANGLE_instanced_arrays.drawElementsInstancedANGLE()\`** method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */ drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void; /** * The **ANGLE_instanced_arrays.vertexAttribDivisorANGLE()** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ANGLE_instanced_arrays.drawArraysInstancedANGLE() and ANGLE_instanced_arrays.drawElementsInstancedANGLE(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */ vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void; readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE; } interface ARIAMixin { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaActiveDescendantElement) */ ariaActiveDescendantElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */ ariaAtomic: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */ ariaAutoComplete: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleLabel) */ ariaBrailleLabel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBrailleRoleDescription) */ ariaBrailleRoleDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */ ariaBusy: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */ ariaChecked: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */ ariaColCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */ ariaColIndex: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndexText) */ ariaColIndexText: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */ ariaColSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaControlsElements) */ ariaControlsElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */ ariaCurrent: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescribedByElements) */ ariaDescribedByElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */ ariaDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDetailsElements) */ ariaDetailsElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */ ariaDisabled: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaErrorMessageElements) */ ariaErrorMessageElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */ ariaExpanded: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaFlowToElements) */ ariaFlowToElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */ ariaHasPopup: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */ ariaHidden: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaInvalid) */ ariaInvalid: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */ ariaKeyShortcuts: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */ ariaLabel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabelledByElements) */ ariaLabelledByElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */ ariaLevel: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */ ariaLive: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */ ariaModal: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */ ariaMultiLine: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */ ariaMultiSelectable: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */ ariaOrientation: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOwnsElements) */ ariaOwnsElements: ReadonlyArray | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */ ariaPlaceholder: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */ ariaPosInSet: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */ ariaPressed: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */ ariaReadOnly: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRelevant) */ ariaRelevant: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */ ariaRequired: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */ ariaRoleDescription: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */ ariaRowCount: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */ ariaRowIndex: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndexText) */ ariaRowIndexText: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */ ariaRowSpan: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */ ariaSelected: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */ ariaSetSize: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */ ariaSort: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */ ariaValueMax: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */ ariaValueMin: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */ ariaValueNow: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */ ariaValueText: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/role) */ role: string | null; } /** * The **\`AbortController\`** interface represents a controller object that allows you to abort one or more Web requests as and when desired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController) */ interface AbortController { /** * The **\`signal\`** read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal) */ readonly signal: AbortSignal; /** * The **\`abort()\`** method of the AbortController interface aborts an asynchronous operation before it has completed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort) */ abort(reason?: any): void; } declare var AbortController: { prototype: AbortController; new(): AbortController; }; interface AbortSignalEventMap { "abort": Event; } /** * The **\`AbortSignal\`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal) */ interface AbortSignal extends EventTarget { /** * The **\`aborted\`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (\`true\`) or not (\`false\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted) */ readonly aborted: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */ onabort: ((this: AbortSignal, ev: Event) => any) | null; /** * The **\`reason\`** read-only property returns a JavaScript value that indicates the abort reason. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */ readonly reason: any; /** * The **\`throwIfAborted()\`** method throws the signal's abort AbortSignal.reason if the signal has been aborted; otherwise it does nothing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */ 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; /** * The **\`AbortSignal.abort()\`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an AbortSignal/abort_event event). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */ abort(reason?: any): AbortSignal; /** * The **\`AbortSignal.any()\`** static method takes an iterable of abort signals and returns an AbortSignal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */ any(signals: AbortSignal[]): AbortSignal; /** * The **\`AbortSignal.timeout()\`** static method returns an AbortSignal that will automatically abort after a specified time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */ timeout(milliseconds: number): AbortSignal; }; /** * The **\`AbstractRange\`** abstract interface is the base class upon which all DOM range types are defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */ interface AbstractRange { /** * The read-only **\`collapsed\`** property of the AbstractRange interface returns \`true\` if the range's start position and end position are the same. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed) */ readonly collapsed: boolean; /** * The read-only **\`endContainer\`** property of the AbstractRange interface returns the Node in which the end of the range is located. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer) */ readonly endContainer: Node; /** * The **\`endOffset\`** property of the AbstractRange interface returns the offset into the end node of the range's end position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset) */ readonly endOffset: number; /** * The read-only **\`startContainer\`** property of the AbstractRange interface returns the start Node for the range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer) */ readonly startContainer: Node; /** * The read-only **\`startOffset\`** property of the AbstractRange interface returns the offset into the start node of the range's start position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset) */ readonly startOffset: number; } declare var AbstractRange: { prototype: AbstractRange; new(): AbstractRange; }; interface AbstractWorkerEventMap { "error": ErrorEvent; } interface AbstractWorker { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */ 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; } /** * The **\`AnalyserNode\`** interface represents a node able to provide real-time frequency and time-domain analysis information. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode) */ interface AnalyserNode extends AudioNode { /** * The **\`fftSize\`** property of the AnalyserNode interface is an unsigned long value and represents the window size in samples that is used when performing a Fast Fourier Transform (FFT) to get frequency domain data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */ fftSize: number; /** * The **\`frequencyBinCount\`** read-only property of the AnalyserNode interface contains the total number of data points available to AudioContext BaseAudioContext.sampleRate. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */ readonly frequencyBinCount: number; /** * The **\`maxDecibels\`** property of the AnalyserNode interface is a double value representing the maximum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the maximum value for the range of results when using \`getByteFrequencyData()\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */ maxDecibels: number; /** * The **\`minDecibels\`** property of the AnalyserNode interface is a double value representing the minimum power value in the scaling range for the FFT analysis data, for conversion to unsigned byte values — basically, this specifies the minimum value for the range of results when using \`getByteFrequencyData()\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */ minDecibels: number; /** * The **\`smoothingTimeConstant\`** property of the AnalyserNode interface is a double value representing the averaging constant with the last analysis frame. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */ smoothingTimeConstant: number; /** * The **\`getByteFrequencyData()\`** method of the AnalyserNode interface copies the current frequency data into a Uint8Array (unsigned byte array) passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */ getByteFrequencyData(array: Uint8Array): void; /** * The **\`getByteTimeDomainData()\`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Uint8Array (unsigned byte array) passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */ getByteTimeDomainData(array: Uint8Array): void; /** * The **\`getFloatFrequencyData()\`** method of the AnalyserNode Interface copies the current frequency data into a Float32Array array passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */ getFloatFrequencyData(array: Float32Array): void; /** * The **\`getFloatTimeDomainData()\`** method of the AnalyserNode Interface copies the current waveform, or time-domain, data into a Float32Array array passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */ getFloatTimeDomainData(array: Float32Array): void; } declare var AnalyserNode: { prototype: AnalyserNode; new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode; }; interface Animatable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */ getAnimations(options?: GetAnimationsOptions): Animation[]; } interface AnimationEventMap { "cancel": AnimationPlaybackEvent; "finish": AnimationPlaybackEvent; "remove": AnimationPlaybackEvent; } /** * The **\`Animation\`** interface of the Web Animations API represents a single animation player and provides playback controls and a timeline for an animation node or source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */ interface Animation extends EventTarget { /** * The **\`Animation.currentTime\`** property of the Web Animations API returns and sets the current time value of the animation in milliseconds, whether running or paused. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */ currentTime: CSSNumberish | null; /** * The **\`Animation.effect\`** property of the Web Animations API gets and sets the target effect of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */ effect: AnimationEffect | null; /** * The **\`Animation.finished\`** read-only property of the Web Animations API returns a Promise which resolves once the animation has finished playing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */ readonly finished: Promise; /** * The **\`Animation.id\`** property of the Web Animations API returns or sets a string used to identify the animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */ id: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */ oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */ onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */ onremove: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; /** * The read-only **\`Animation.pending\`** property of the Web Animations API indicates whether the animation is currently waiting for an asynchronous operation such as initiating playback or pausing a running animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */ readonly pending: boolean; /** * The read-only **\`Animation.playState\`** property of the Web Animations API returns an enumerated value describing the playback state of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */ readonly playState: AnimationPlayState; /** * The **\`Animation.playbackRate\`** property of the Web Animations API returns or sets the playback rate of the animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */ playbackRate: number; /** * The read-only **\`Animation.ready\`** property of the Web Animations API returns a Promise which resolves when the animation is ready to play. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */ readonly ready: Promise; /** * The read-only **\`Animation.replaceState\`** property of the Web Animations API indicates whether the animation has been removed by the browser automatically after being replaced by another animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */ readonly replaceState: AnimationReplaceState; /** * The **\`Animation.startTime\`** property of the Animation interface is a double-precision floating-point value which indicates the scheduled time when an animation's playback should begin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */ startTime: CSSNumberish | null; /** * The **\`Animation.timeline\`** property of the Animation interface returns or sets the AnimationTimeline associated with this animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */ timeline: AnimationTimeline | null; /** * The Web Animations API's **\`cancel()\`** method of the Animation interface clears all KeyframeEffects caused by this animation and aborts its playback. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */ cancel(): void; /** * The \`commitStyles()\` method of the Web Animations API's Animation interface writes the computed values of the animation's current styles into its target element's \`style\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */ commitStyles(): void; /** * The **\`finish()\`** method of the Web Animations API's Animation Interface sets the current playback time to the end of the animation corresponding to the current playback direction. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */ finish(): void; /** * The **\`pause()\`** method of the Web Animations API's Animation interface suspends playback of the animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */ pause(): void; /** * The \`persist()\` method of the Web Animations API's Animation interface explicitly persists an animation, preventing it from being automatically removed when it is replaced by another animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */ persist(): void; /** * The **\`play()\`** method of the Web Animations API's Animation Interface starts or resumes playing of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */ play(): void; /** * The **\`Animation.reverse()\`** method of the Animation Interface reverses the playback direction, meaning the animation ends at its beginning. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */ reverse(): void; /** * The **\`updatePlaybackRate()\`** method of the Web Animations API's synchronizing its playback position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */ 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; }; /** * The \`AnimationEffect\` interface of the Web Animations API is an interface representing animation effects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */ interface AnimationEffect { /** * The \`getComputedTiming()\` method of the AnimationEffect interface returns the calculated timing properties for this animation effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */ getComputedTiming(): ComputedEffectTiming; /** * The \`AnimationEffect.getTiming()\` method of the AnimationEffect interface returns an object containing the timing properties for the Animation Effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */ getTiming(): EffectTiming; /** * The \`updateTiming()\` method of the AnimationEffect interface updates the specified timing properties for an animation effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */ updateTiming(timing?: OptionalEffectTiming): void; } declare var AnimationEffect: { prototype: AnimationEffect; new(): AnimationEffect; }; /** * The **\`AnimationEvent\`** interface represents events providing information related to animations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent) */ interface AnimationEvent extends Event { /** * The **\`AnimationEvent.animationName\`** read-only property is a string containing the value of the animation-name CSS property associated with the transition. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */ readonly animationName: string; /** * The **\`AnimationEvent.elapsedTime\`** read-only property is a \`float\` giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */ readonly elapsedTime: number; /** * The **\`AnimationEvent.pseudoElement\`** read-only property is a string, starting with \`'::'\`, containing the name of the pseudo-element the animation runs on. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */ readonly pseudoElement: string; } declare var AnimationEvent: { prototype: AnimationEvent; new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent; }; interface AnimationFrameProvider { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */ cancelAnimationFrame(handle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */ requestAnimationFrame(callback: FrameRequestCallback): number; } /** * The AnimationPlaybackEvent interface of the Web Animations API represents animation events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */ interface AnimationPlaybackEvent extends Event { /** * The **\`currentTime\`** read-only property of the AnimationPlaybackEvent interface represents the current time of the animation that generated the event at the moment the event is queued. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */ readonly currentTime: CSSNumberish | null; /** * The **\`timelineTime\`** read-only property of the AnimationPlaybackEvent interface represents the time value of the animation's AnimationTimeline at the moment the event is queued. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */ readonly timelineTime: CSSNumberish | null; } declare var AnimationPlaybackEvent: { prototype: AnimationPlaybackEvent; new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent; }; /** * The \`AnimationTimeline\` interface of the Web Animations API represents the timeline of an animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */ interface AnimationTimeline { /** * The **\`currentTime\`** read-only property of the Web Animations API's AnimationTimeline interface returns the timeline's current time in milliseconds, or \`null\` if the timeline is inactive. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */ readonly currentTime: CSSNumberish | null; } declare var AnimationTimeline: { prototype: AnimationTimeline; new(): AnimationTimeline; }; /** * The **\`Attr\`** interface represents one of an element's attributes as an object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr) */ interface Attr extends Node { /** * The read-only **\`localName\`** property of the Attr interface returns the _local part_ of the _qualified name_ of an attribute, that is the name of the attribute, stripped from any namespace in front of it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */ readonly localName: string; /** * The read-only **\`name\`** property of the Attr interface returns the _qualified name_ of an attribute, that is the name of the attribute, with the namespace prefix, if any, in front of it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */ readonly name: string; /** * The read-only **\`namespaceURI\`** property of the Attr interface returns the namespace URI of the attribute, or \`null\` if the element is not in a namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */ readonly namespaceURI: string | null; readonly ownerDocument: Document; /** * The read-only **\`ownerElement\`** property of the Attr interface returns the Element the attribute belongs to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */ readonly ownerElement: Element | null; /** * The read-only **\`prefix\`** property of the Attr returns the namespace prefix of the attribute, or \`null\` if no prefix is specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */ readonly prefix: string | null; /** * The read-only **\`specified\`** property of the Attr interface always returns \`true\`. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified) */ readonly specified: boolean; /** * The **\`value\`** property of the Attr interface contains the value of the attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */ value: string; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | null); } declare var Attr: { prototype: Attr; new(): Attr; }; /** * The **\`AudioBuffer\`** interface represents a short audio asset residing in memory, created from an audio file using the BaseAudioContext/decodeAudioData method, or from raw data using BaseAudioContext/createBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer) */ interface AudioBuffer { /** * The **\`duration\`** property of the AudioBuffer interface returns a double representing the duration, in seconds, of the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */ readonly duration: number; /** * The **\`length\`** property of the AudioBuffer interface returns an integer representing the length, in sample-frames, of the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */ readonly length: number; /** * The \`numberOfChannels\` property of the AudioBuffer interface returns an integer representing the number of discrete audio channels described by the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */ readonly numberOfChannels: number; /** * The **\`sampleRate\`** property of the AudioBuffer interface returns a float representing the sample rate, in samples per second, of the PCM data stored in the buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */ readonly sampleRate: number; /** * The **\`copyFromChannel()\`** method of the channel of the \`AudioBuffer\` to a specified \`\`\`js-nolint copyFromChannel(destination, channelNumber, startInChannel) \`\`\` - \`destination\` - : A Float32Array to copy the channel's samples to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */ copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void; /** * The \`copyToChannel()\` method of the AudioBuffer interface copies the samples to the specified channel of the \`AudioBuffer\`, from the source array. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */ copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void; /** * The **\`getChannelData()\`** method of the AudioBuffer Interface returns a Float32Array containing the PCM data associated with the channel, defined by the channel parameter (with 0 representing the first channel). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */ getChannelData(channel: number): Float32Array; } declare var AudioBuffer: { prototype: AudioBuffer; new(options: AudioBufferOptions): AudioBuffer; }; /** * The **\`AudioBufferSourceNode\`** interface is an AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode) */ interface AudioBufferSourceNode extends AudioScheduledSourceNode { /** * The **\`buffer\`** property of the AudioBufferSourceNode interface provides the ability to play back audio using an AudioBuffer as the source of the sound data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */ buffer: AudioBuffer | null; /** * The **\`detune\`** property of the representing detuning of oscillation in cents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */ readonly detune: AudioParam; /** * The \`loop\` property of the AudioBufferSourceNode interface is a Boolean indicating if the audio asset must be replayed when the end of the AudioBuffer is reached. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */ loop: boolean; /** * The \`loopEnd\` property of the AudioBufferSourceNode interface specifies is a floating point number specifying, in seconds, at what offset into playing the AudioBuffer playback should loop back to the time indicated by the AudioBufferSourceNode.loopStart property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */ loopEnd: number; /** * The **\`loopStart\`** property of the AudioBufferSourceNode interface is a floating-point value indicating, in seconds, where in the AudioBuffer the restart of the play must happen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */ loopStart: number; /** * The **\`playbackRate\`** property of the AudioBufferSourceNode interface Is a k-rate AudioParam that defines the speed at which the audio asset will be played. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */ readonly playbackRate: AudioParam; /** * The \`start()\` method of the AudioBufferSourceNode Interface is used to schedule playback of the audio data contained in the buffer, or to begin playback immediately. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */ 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; }; /** * The \`AudioContext\` interface represents an audio-processing graph built from audio modules linked together, each represented by an AudioNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext) */ interface AudioContext extends BaseAudioContext { /** * The **\`baseLatency\`** read-only property of the seconds of processing latency incurred by the \`AudioContext\` passing an audio buffer from the AudioDestinationNode — i.e., the end of the audio graph — into the host system's audio subsystem ready for playing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */ readonly baseLatency: number; /** * The **\`outputLatency\`** read-only property of the AudioContext Interface provides an estimation of the output latency of the current audio context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */ readonly outputLatency: number; /** * The \`close()\` method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */ close(): Promise; /** * The \`createMediaElementSource()\` method of the AudioContext Interface is used to create a new MediaElementAudioSourceNode object, given an existing HTML audio or video element, the audio from which can then be played and manipulated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */ createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; /** * The \`createMediaStreamDestination()\` method of the AudioContext Interface is used to create a new MediaStreamAudioDestinationNode object associated with a WebRTC MediaStream representing an audio stream, which may be stored in a local file or sent to another computer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */ createMediaStreamDestination(): MediaStreamAudioDestinationNode; /** * The \`createMediaStreamSource()\` method of the AudioContext Interface is used to create a new MediaStreamAudioSourceNode object, given a media stream (say, from a MediaDevices.getUserMedia instance), the audio from which can then be played and manipulated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */ createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; /** * The **\`getOutputTimestamp()\`** method of the containing two audio timestamp values relating to the current audio context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */ getOutputTimestamp(): AudioTimestamp; /** * The **\`resume()\`** method of the AudioContext interface resumes the progression of time in an audio context that has previously been suspended. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */ resume(): Promise; /** * The \`suspend()\` method of the AudioContext Interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process — this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */ 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; }; /** * The **\`AudioData\`** interface of the WebCodecs API represents an audio sample. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData) */ interface AudioData { /** * The **\`duration\`** read-only property of the AudioData interface returns the duration in microseconds of this \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration) */ readonly duration: number; /** * The **\`format\`** read-only property of the AudioData interface returns the sample format of the \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format) */ readonly format: AudioSampleFormat | null; /** * The **\`numberOfChannels\`** read-only property of the AudioData interface returns the number of channels in the \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels) */ readonly numberOfChannels: number; /** * The **\`numberOfFrames\`** read-only property of the AudioData interface returns the number of frames in the \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames) */ readonly numberOfFrames: number; /** * The **\`sampleRate\`** read-only property of the AudioData interface returns the sample rate in Hz. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate) */ readonly sampleRate: number; /** * The **\`timestamp\`** read-only property of the AudioData interface returns the timestamp of this \`AudioData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp) */ readonly timestamp: number; /** * The **\`allocationSize()\`** method of the AudioData interface returns the size in bytes required to hold the current sample as filtered by options passed into the method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize) */ allocationSize(options: AudioDataCopyToOptions): number; /** * The **\`clone()\`** method of the AudioData interface creates a new \`AudioData\` object with reference to the same media resource as the original. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone) */ clone(): AudioData; /** * The **\`close()\`** method of the AudioData interface clears all states and releases the reference to the media resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close) */ close(): void; /** * The **\`copyTo()\`** method of the AudioData interface copies a plane of an \`AudioData\` object to a destination buffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo) */ copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void; } declare var AudioData: { prototype: AudioData; new(init: AudioDataInit): AudioData; }; interface AudioDecoderEventMap { "dequeue": Event; } /** * The **\`AudioDecoder\`** interface of the WebCodecs API decodes chunks of audio. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder) */ interface AudioDecoder extends EventTarget { /** * The **\`decodeQueueSize\`** read-only property of the AudioDecoder interface returns the number of pending decode requests in the queue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize) */ readonly decodeQueueSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */ ondequeue: ((this: AudioDecoder, ev: Event) => any) | null; /** * The **\`state\`** read-only property of the AudioDecoder interface returns the current state of the underlying codec. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state) */ readonly state: CodecState; /** * The **\`close()\`** method of the AudioDecoder interface ends all pending work and releases system resources. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close) */ close(): void; /** * The **\`configure()\`** method of the AudioDecoder interface enqueues a control message to configure the audio decoder for decoding chunks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure) */ configure(config: AudioDecoderConfig): void; /** * The **\`decode()\`** method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode) */ decode(chunk: EncodedAudioChunk): void; /** * The **\`flush()\`** method of the AudioDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush) */ flush(): Promise; /** * The **\`reset()\`** method of the AudioDecoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset) */ reset(): void; addEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioDecoder: { prototype: AudioDecoder; new(init: AudioDecoderInit): AudioDecoder; /** * The **\`isConfigSupported()\`** static method of the AudioDecoder interface checks if the given config is supported (that is, if AudioDecoder objects can be successfully configured with the given config). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static) */ isConfigSupported(config: AudioDecoderConfig): Promise; }; /** * The \`AudioDestinationNode\` interface represents the end destination of an audio graph in a given context — usually the speakers of your device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode) */ interface AudioDestinationNode extends AudioNode { /** * The \`maxChannelCount\` property of the AudioDestinationNode interface is an \`unsigned long\` defining the maximum amount of channels that the physical device can handle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */ readonly maxChannelCount: number; } declare var AudioDestinationNode: { prototype: AudioDestinationNode; new(): AudioDestinationNode; }; interface AudioEncoderEventMap { "dequeue": Event; } /** * The **\`AudioEncoder\`** interface of the WebCodecs API encodes AudioData objects. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder) */ interface AudioEncoder extends EventTarget { /** * The **\`encodeQueueSize\`** read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize) */ readonly encodeQueueSize: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */ ondequeue: ((this: AudioEncoder, ev: Event) => any) | null; /** * The **\`state\`** read-only property of the AudioEncoder interface returns the current state of the underlying codec. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state) */ readonly state: CodecState; /** * The **\`close()\`** method of the AudioEncoder interface ends all pending work and releases system resources. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close) */ close(): void; /** * The **\`configure()\`** method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure) */ configure(config: AudioEncoderConfig): void; /** * The **\`encode()\`** method of the AudioEncoder interface enqueues a control message to encode a given AudioData object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode) */ encode(data: AudioData): void; /** * The **\`flush()\`** method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush) */ flush(): Promise; /** * The **\`reset()\`** method of the AudioEncoder interface resets all states including configuration, control messages in the control message queue, and all pending callbacks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset) */ reset(): void; addEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioEncoder: { prototype: AudioEncoder; new(init: AudioEncoderInit): AudioEncoder; /** * The **\`isConfigSupported()\`** static method of the AudioEncoder interface checks if the given config is supported (that is, if AudioEncoder objects can be successfully configured with the given config). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static) */ isConfigSupported(config: AudioEncoderConfig): Promise; }; /** * The \`AudioListener\` interface represents the position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener) */ interface AudioListener { /** * The \`forwardX\` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the forward direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */ readonly forwardX: AudioParam; /** * The \`forwardY\` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the forward direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */ readonly forwardY: AudioParam; /** * The \`forwardZ\` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the forward direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */ readonly forwardZ: AudioParam; /** * The \`positionX\` read-only property of the AudioListener interface is an AudioParam representing the x position of the listener in 3D cartesian space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */ readonly positionX: AudioParam; /** * The \`positionY\` read-only property of the AudioListener interface is an AudioParam representing the y position of the listener in 3D cartesian space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */ readonly positionY: AudioParam; /** * The \`positionZ\` read-only property of the AudioListener interface is an AudioParam representing the z position of the listener in 3D cartesian space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */ readonly positionZ: AudioParam; /** * The \`upX\` read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the up direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */ readonly upX: AudioParam; /** * The \`upY\` read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the up direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */ readonly upY: AudioParam; /** * The \`upZ\` read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the up direction the listener is pointing in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */ readonly upZ: AudioParam; /** * The \`setOrientation()\` method of the AudioListener interface defines the orientation of the listener. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation) */ setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void; /** * The \`setPosition()\` method of the AudioListener Interface defines the position of the listener. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition) */ setPosition(x: number, y: number, z: number): void; } declare var AudioListener: { prototype: AudioListener; new(): AudioListener; }; /** * The **\`AudioNode\`** interface is a generic interface for representing an audio processing module. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode) */ interface AudioNode extends EventTarget { /** * The **\`channelCount\`** property of the AudioNode interface represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */ channelCount: number; /** * The \`channelCountMode\` property of the AudioNode interface represents an enumerated value describing the way channels must be matched between the node's inputs and outputs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */ channelCountMode: ChannelCountMode; /** * The **\`channelInterpretation\`** property of the AudioNode interface represents an enumerated value describing how input channels are mapped to output channels when the number of inputs/outputs is different. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */ channelInterpretation: ChannelInterpretation; /** * The read-only \`context\` property of the the node is participating in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */ readonly context: BaseAudioContext; /** * The \`numberOfInputs\` property of the AudioNode interface returns the number of inputs feeding the node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */ readonly numberOfInputs: number; /** * The \`numberOfOutputs\` property of the AudioNode interface returns the number of outputs coming out of the node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */ readonly numberOfOutputs: number; /** * The \`connect()\` method of the AudioNode interface lets you connect one of the node's outputs to a target, which may be either another \`AudioNode\` (thereby directing the sound data to the specified node) or an change the value of that parameter over time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */ connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode; connect(destinationParam: AudioParam, output?: number): void; /** * The **\`disconnect()\`** method of the AudioNode interface lets you disconnect one or more nodes from the node on which the method is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */ 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). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam) */ interface AudioParam { automationRate: AutomationRate; /** * The **\`defaultValue\`** read-only property of the AudioParam interface represents the initial value of the attributes as defined by the specific AudioNode creating the \`AudioParam\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */ readonly defaultValue: number; /** * The **\`maxValue\`** read-only property of the AudioParam interface represents the maximum possible value for the parameter's nominal (effective) range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */ readonly maxValue: number; /** * The **\`minValue\`** read-only property of the AudioParam interface represents the minimum possible value for the parameter's nominal (effective) range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */ readonly minValue: number; /** * The **\`value\`** property of the AudioParam interface gets or sets the value of this \`AudioParam\` at the current time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */ value: number; /** * The **\`cancelAndHoldAtTime()\`** method of the \`AudioParam\` but holds its value at a given time until further changes are made using other methods. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */ cancelAndHoldAtTime(cancelTime: number): AudioParam; /** * The \`cancelScheduledValues()\` method of the AudioParam Interface cancels all scheduled future changes to the \`AudioParam\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */ cancelScheduledValues(cancelTime: number): AudioParam; /** * The **\`exponentialRampToValueAtTime()\`** method of the AudioParam Interface schedules a gradual exponential change in the value of the AudioParam. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */ exponentialRampToValueAtTime(value: number, endTime: number): AudioParam; /** * The \`linearRampToValueAtTime()\` method of the AudioParam Interface schedules a gradual linear change in the value of the \`AudioParam\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */ linearRampToValueAtTime(value: number, endTime: number): AudioParam; /** * The \`setTargetAtTime()\` method of the \`AudioParam\` value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */ setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam; /** * The \`setValueAtTime()\` method of the \`AudioParam\` value at a precise time, as measured against \`\`\`js-nolint setValueAtTime(value, startTime) \`\`\` - \`value\` - : A floating point number representing the value the AudioParam will change to at the given time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */ setValueAtTime(value: number, startTime: number): AudioParam; /** * The **\`setValueCurveAtTime()\`** method of the following a curve defined by a list of values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */ setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam; } declare var AudioParam: { prototype: AudioParam; new(): AudioParam; }; /** * The **\`AudioParamMap\`** interface of the Web Audio API represents an iterable and read-only set of multiple audio parameters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */ interface AudioParamMap { forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void; } declare var AudioParamMap: { prototype: AudioParamMap; new(): AudioParamMap; }; /** * The \`AudioProcessingEvent\` interface of the Web Audio API represents 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent) */ interface AudioProcessingEvent extends Event { /** * The **\`inputBuffer\`** read-only property of the AudioProcessingEvent interface represents the input buffer of an audio processing event. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer) */ readonly inputBuffer: AudioBuffer; /** * The **\`outputBuffer\`** read-only property of the AudioProcessingEvent interface represents the output buffer of an audio processing event. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer) */ readonly outputBuffer: AudioBuffer; /** * The **\`playbackTime\`** read-only property of the AudioProcessingEvent interface represents the time when the audio will be played. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime) */ readonly playbackTime: number; } /** @deprecated */ declare var AudioProcessingEvent: { prototype: AudioProcessingEvent; new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent; }; interface AudioScheduledSourceNodeEventMap { "ended": Event; } /** * The \`AudioScheduledSourceNode\` interface—part of the Web Audio API—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */ interface AudioScheduledSourceNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */ onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null; /** * The \`start()\` method on AudioScheduledSourceNode schedules a sound to begin playback at the specified time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */ start(when?: number): void; /** * The \`stop()\` method on AudioScheduledSourceNode schedules a sound to cease playback at the specified time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */ 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; }; /** * The **\`AudioWorklet\`** interface of the Web Audio API is used to supply custom audio processing scripts that execute in a separate thread to provide very low latency audio processing. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet) */ interface AudioWorklet extends Worklet { } declare var AudioWorklet: { prototype: AudioWorklet; new(): AudioWorklet; }; interface AudioWorkletNodeEventMap { "processorerror": ErrorEvent; } /** * The **\`AudioWorkletNode\`** interface of the Web Audio API represents a base class for a user-defined AudioNode, which can be connected to an audio routing graph along with other nodes. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode) */ interface AudioWorkletNode extends AudioNode { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */ onprocessorerror: ((this: AudioWorkletNode, ev: ErrorEvent) => any) | null; /** * The read-only **\`parameters\`** property of the underlying AudioWorkletProcessor according to its getter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */ readonly parameters: AudioParamMap; /** * The read-only **\`port\`** property of the associated AudioWorkletProcessor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */ 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; }; /** * The **\`AuthenticatorAssertionResponse\`** interface of the Web Authentication API contains a digital signature from the private key of a particular WebAuthn credential. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse) */ interface AuthenticatorAssertionResponse extends AuthenticatorResponse { /** * The **\`authenticatorData\`** property of the AuthenticatorAssertionResponse interface returns an ArrayBuffer containing information from the authenticator such as the Relying Party ID Hash (rpIdHash), a signature counter, test of user presence, user verification flags, and any extensions processed by the authenticator. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */ readonly authenticatorData: ArrayBuffer; /** * The **\`signature\`** read-only property of the object which is the signature of the authenticator for both the client data (AuthenticatorResponse.clientDataJSON). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */ readonly signature: ArrayBuffer; /** * The **\`userHandle\`** read-only property of the AuthenticatorAssertionResponse interface is an ArrayBuffer object providing an opaque identifier for the given user. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */ readonly userHandle: ArrayBuffer | null; } declare var AuthenticatorAssertionResponse: { prototype: AuthenticatorAssertionResponse; new(): AuthenticatorAssertionResponse; }; /** * The **\`AuthenticatorAttestationResponse\`** interface of the Web Authentication API is the result of a WebAuthn credential registration. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse) */ interface AuthenticatorAttestationResponse extends AuthenticatorResponse { /** * The **\`attestationObject\`** property of the entire \`attestationObject\` with a private key that is stored in the authenticator when it is manufactured. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */ readonly attestationObject: ArrayBuffer; /** * The **\`getAuthenticatorData()\`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the authenticator data contained within the AuthenticatorAttestationResponse.attestationObject property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */ getAuthenticatorData(): ArrayBuffer; /** * The **\`getPublicKey()\`** method of the AuthenticatorAttestationResponse interface returns an ArrayBuffer containing the DER \`SubjectPublicKeyInfo\` of the new credential (see Subject Public Key Info), or \`null\` if this is not available. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */ getPublicKey(): ArrayBuffer | null; /** * The **\`getPublicKeyAlgorithm()\`** method of the AuthenticatorAttestationResponse interface returns a number that is equal to a COSE Algorithm Identifier, representing the cryptographic algorithm used for the new credential. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */ getPublicKeyAlgorithm(): COSEAlgorithmIdentifier; /** * The **\`getTransports()\`** method of the AuthenticatorAttestationResponse interface returns an array of strings describing the different transports which may be used by the authenticator. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */ getTransports(): string[]; } declare var AuthenticatorAttestationResponse: { prototype: AuthenticatorAttestationResponse; new(): AuthenticatorAttestationResponse; }; /** * The **\`AuthenticatorResponse\`** interface of the Web Authentication API is the base interface for interfaces that provide a cryptographic root of trust for a key pair. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse) */ interface AuthenticatorResponse { /** * The **\`clientDataJSON\`** property of the AuthenticatorResponse interface stores a JSON string in an An ArrayBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */ readonly clientDataJSON: ArrayBuffer; } declare var AuthenticatorResponse: { prototype: AuthenticatorResponse; new(): AuthenticatorResponse; }; /** * The **\`BarProp\`** interface of the Document Object Model represents the web browser user interface elements that are exposed to scripts in web pages. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */ interface BarProp { /** * The **\`visible\`** read-only property of the BarProp interface returns \`true\` if the user interface element it represents is visible. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */ readonly visible: boolean; } declare var BarProp: { prototype: BarProp; new(): BarProp; }; interface BaseAudioContextEventMap { "statechange": Event; } /** * The \`BaseAudioContext\` interface of the Web Audio API acts as a base definition for online and offline audio-processing graphs, as represented by AudioContext and OfflineAudioContext respectively. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */ interface BaseAudioContext extends EventTarget { /** * The \`audioWorklet\` read-only property of the processing. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet) */ readonly audioWorklet: AudioWorklet; /** * The \`currentTime\` read-only property of the BaseAudioContext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */ readonly currentTime: number; /** * The \`destination\` property of the BaseAudioContext interface returns an AudioDestinationNode representing the final destination of all audio in the context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */ readonly destination: AudioDestinationNode; /** * The \`listener\` property of the BaseAudioContext interface returns an AudioListener object that can then be used for implementing 3D audio spatialization. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */ readonly listener: AudioListener; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */ onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null; /** * The \`sampleRate\` property of the BaseAudioContext interface returns a floating point number representing the sample rate, in samples per second, used by all nodes in this audio context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */ readonly sampleRate: number; /** * The \`state\` read-only property of the BaseAudioContext interface returns the current state of the \`AudioContext\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */ readonly state: AudioContextState; /** * The \`createAnalyser()\` method of the can be used to expose audio time and frequency data and create data visualizations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */ createAnalyser(): AnalyserNode; /** * The \`createBiquadFilter()\` method of the BaseAudioContext interface creates a BiquadFilterNode, which represents a second order filter configurable as several different common filter types. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */ createBiquadFilter(): BiquadFilterNode; /** * The \`createBuffer()\` method of the BaseAudioContext Interface is used to create a new, empty AudioBuffer object, which can then be populated by data, and played via an AudioBufferSourceNode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */ createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer; /** * The \`createBufferSource()\` method of the BaseAudioContext Interface is used to create a new AudioBufferSourceNode, which can be used to play audio data contained within an AudioBuffer object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */ createBufferSource(): AudioBufferSourceNode; /** * The \`createChannelMerger()\` method of the BaseAudioContext interface creates a ChannelMergerNode, which combines channels from multiple audio streams into a single audio stream. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */ createChannelMerger(numberOfInputs?: number): ChannelMergerNode; /** * The \`createChannelSplitter()\` method of the BaseAudioContext Interface is used to create a ChannelSplitterNode, which is used to access the individual channels of an audio stream and process them separately. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */ createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode; /** * The **\`createConstantSource()\`** property of the BaseAudioContext interface creates a outputs a monaural (one-channel) sound signal whose samples all have the same value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */ createConstantSource(): ConstantSourceNode; /** * The \`createConvolver()\` method of the BaseAudioContext interface creates a ConvolverNode, which is commonly used to apply reverb effects to your audio. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */ createConvolver(): ConvolverNode; /** * The \`createDelay()\` method of the which is used to delay the incoming audio signal by a certain amount of time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */ createDelay(maxDelayTime?: number): DelayNode; /** * The \`createDynamicsCompressor()\` method of the BaseAudioContext Interface is used to create a DynamicsCompressorNode, which can be used to apply compression to an audio signal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */ createDynamicsCompressor(): DynamicsCompressorNode; /** * The \`createGain()\` method of the BaseAudioContext interface creates a GainNode, which can be used to control the overall gain (or volume) of the audio graph. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */ createGain(): GainNode; /** * The **\`createIIRFilter()\`** method of the BaseAudioContext interface creates an IIRFilterNode, which represents a general **infinite impulse response** (IIR) filter which can be configured to serve as various types of filter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */ createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode; /** * The \`createOscillator()\` method of the BaseAudioContext interface creates an OscillatorNode, a source representing a periodic waveform. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */ createOscillator(): OscillatorNode; /** * The \`createPanner()\` method of the BaseAudioContext Interface is used to create a new PannerNode, which is used to spatialize an incoming audio stream in 3D space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */ createPanner(): PannerNode; /** * The \`createPeriodicWave()\` method of the BaseAudioContext interface is used to create a PeriodicWave. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */ createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave; /** * The \`createScriptProcessor()\` method of the BaseAudioContext interface creates a ScriptProcessorNode used for direct audio processing. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor) */ createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; /** * The \`createStereoPanner()\` method of the BaseAudioContext interface creates a StereoPannerNode, which can be used to apply stereo panning to an audio source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */ createStereoPanner(): StereoPannerNode; /** * The \`createWaveShaper()\` method of the BaseAudioContext interface creates a WaveShaperNode, which represents a non-linear distortion. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */ createWaveShaper(): WaveShaperNode; /** * The \`decodeAudioData()\` method of the BaseAudioContext Interface is used to asynchronously decode audio file data contained in an rate, then passed to a callback or promise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */ 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 **\`BeforeUnloadEvent\`** interface represents the event object for the Window/beforeunload_event event, which is fired when the current window, contained document, and associated resources are about to be unloaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent) */ interface BeforeUnloadEvent extends Event { /** * The **\`returnValue\`** property of the \`returnValue\` is initialized to an empty string (\`''\`) value. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent/returnValue) */ returnValue: any; } declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; }; /** * The \`BiquadFilterNode\` interface represents a simple low-order filter, and is created using the BaseAudioContext/createBiquadFilter method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode) */ interface BiquadFilterNode extends AudioNode { /** * The \`Q\` property of the BiquadFilterNode interface is an a-rate AudioParam, a double representing a Q factor, or _quality factor_. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */ readonly Q: AudioParam; /** * The \`detune\` property of the BiquadFilterNode interface is an a-rate AudioParam representing detuning of the frequency in cents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */ readonly detune: AudioParam; /** * The \`frequency\` property of the BiquadFilterNode interface is an a-rate AudioParam — a double representing a frequency in the current filtering algorithm measured in hertz (Hz). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */ readonly frequency: AudioParam; /** * The \`gain\` property of the BiquadFilterNode interface is an a-rate AudioParam — a double representing the gain used in the current filtering algorithm. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */ readonly gain: AudioParam; /** * The \`type\` property of the BiquadFilterNode interface is a string (enum) value defining the kind of filtering algorithm the node is implementing. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */ type: BiquadFilterType; /** * The \`getFrequencyResponse()\` method of the BiquadFilterNode interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in a specified array of frequencies. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */ getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void; } declare var BiquadFilterNode: { prototype: BiquadFilterNode; new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode; }; /** * The **\`Blob\`** interface represents a blob, which is a file-like object of immutable, raw data; they can be read as text or binary data, or converted into a ReadableStream so its methods can be used for processing the data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob) */ interface Blob { /** * The **\`size\`** read-only property of the Blob interface returns the size of the Blob or File in bytes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */ readonly size: number; /** * The **\`type\`** read-only property of the Blob interface returns the MIME type of the file. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */ readonly type: string; /** * The **\`arrayBuffer()\`** method of the Blob interface returns a Promise that resolves with the contents of the blob as binary data contained in an ArrayBuffer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */ arrayBuffer(): Promise; /** * The **\`bytes()\`** method of the Blob interface returns a Promise that resolves with a Uint8Array containing the contents of the blob as an array of bytes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/bytes) */ bytes(): Promise>; /** * The **\`slice()\`** method of the Blob interface creates and returns a new \`Blob\` object which contains data from a subset of the blob on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */ slice(start?: number, end?: number, contentType?: string): Blob; /** * The **\`stream()\`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the \`Blob\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */ stream(): ReadableStream>; /** * The **\`text()\`** method of the string containing the contents of the blob, interpreted as UTF-8. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */ text(): Promise; } declare var Blob: { prototype: Blob; new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; /** * The **\`BlobEvent\`** interface of the MediaStream Recording API represents events associated with a Blob. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */ interface BlobEvent extends Event { /** * The **\`data\`** read-only property of the BlobEvent interface represents a Blob associated with the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */ readonly data: Blob; /** * The **\`timecode\`** read-only property of the BlobEvent interface indicates the difference between the timestamp of the first chunk of data, and the timestamp of the first chunk in the first \`BlobEvent\` produced by this recorder. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */ readonly timecode: DOMHighResTimeStamp; } declare var BlobEvent: { prototype: BlobEvent; new(type: string, eventInitDict: BlobEventInit): BlobEvent; }; interface Body { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ readonly body: ReadableStream> | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ readonly bodyUsed: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ arrayBuffer(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ blob(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) */ bytes(): Promise>; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */ formData(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */ json(): Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */ text(): Promise; } interface BroadcastChannelEventMap { "message": MessageEvent; "messageerror": MessageEvent; } /** * The **\`BroadcastChannel\`** interface represents a named channel that any browsing context of a given origin can subscribe to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */ interface BroadcastChannel extends EventTarget { /** * The **\`name\`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name) */ readonly name: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */ onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */ onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null; /** * The **\`close()\`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close) */ close(): void; /** * The **\`postMessage()\`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage) */ 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; }; /** * The **\`ByteLengthQueuingStrategy\`** interface of the Streams API provides a built-in byte length queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy) */ interface ByteLengthQueuingStrategy extends QueuingStrategy { /** * The read-only **\`ByteLengthQueuingStrategy.highWaterMark\`** property returns the total number of bytes that can be contained in the internal queue before backpressure is applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */ readonly highWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */ readonly size: QueuingStrategySize; } declare var ByteLengthQueuingStrategy: { prototype: ByteLengthQueuingStrategy; new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; }; /** * The **\`CDATASection\`** interface represents a CDATA section that can be used within XML to include extended portions of unescaped text. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection) */ interface CDATASection extends Text { } declare var CDATASection: { prototype: CDATASection; new(): CDATASection; }; /** * The \`CSPViolationReportBody\` interface is an extension of the Reporting API that represents the body of a Content Security Policy (CSP) violation report. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody) */ interface CSPViolationReportBody extends ReportBody { /** * The **\`blockedURL\`** read-only property of the CSPViolationReportBody interface is a string value that represents the resource that was blocked because it violates a Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/blockedURL) */ readonly blockedURL: string | null; /** * The **\`columnNumber\`** read-only property of the CSPViolationReportBody interface indicates the column number in the source file that triggered the Content Security Policy (CSP) violation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/columnNumber) */ readonly columnNumber: number | null; /** * The **\`disposition\`** read-only property of the CSPViolationReportBody interface indicates whether the user agent is configured to enforce Content Security Policy (CSP) violations or only report them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/disposition) */ readonly disposition: SecurityPolicyViolationEventDisposition; /** * The **\`documentURL\`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the document or worker that violated the Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/documentURL) */ readonly documentURL: string; /** * The **\`effectiveDirective\`** read-only property of the CSPViolationReportBody interface is a string that represents the effective Content Security Policy (CSP) directive that was violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/effectiveDirective) */ readonly effectiveDirective: string; /** * The **\`lineNumber\`** read-only property of the CSPViolationReportBody interface indicates the line number in the source file that triggered the Content Security Policy (CSP) violation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/lineNumber) */ readonly lineNumber: number | null; /** * The **\`originalPolicy\`** read-only property of the CSPViolationReportBody interface is a string that represents the Content Security Policy (CSP) whose enforcement uncovered the violation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/originalPolicy) */ readonly originalPolicy: string; /** * The **\`referrer\`** read-only property of the CSPViolationReportBody interface is a string that represents the URL of the referring page of the resource who's Content Security Policy (CSP) was violated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/referrer) */ readonly referrer: string | null; /** * The **\`sample\`** read-only property of the CSPViolationReportBody interface is a string that contains a part of the resource that violated the Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sample) */ readonly sample: string | null; /** * The **\`sourceFile\`** read-only property of the CSPViolationReportBody interface indicates the URL of the source file that violated the Content Security Policy (CSP). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/sourceFile) */ readonly sourceFile: string | null; /** * The **\`statusCode\`** read-only property of the CSPViolationReportBody interface is a number representing the HTTP status code of the response to the request that triggered a Content Security Policy (CSP) violation (when loading a window or worker). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/statusCode) */ readonly statusCode: number; /** * The **\`toJSON()\`** method of the CSPViolationReportBody interface is a _serializer_, which returns a JSON representation of the \`CSPViolationReportBody\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSPViolationReportBody/toJSON) */ toJSON(): any; } declare var CSPViolationReportBody: { prototype: CSPViolationReportBody; new(): CSPViolationReportBody; }; /** * The **\`CSSAnimation\`** interface of the Web Animations API represents an Animation object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */ interface CSSAnimation extends Animation { /** * The **\`animationName\`** property of the specifies one or more keyframe at-rules which describe the animation applied to the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */ 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; }; /** * An object implementing the **\`CSSConditionRule\`** interface represents a single condition CSS at-rule, which consists of a condition and a statement block. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule) */ interface CSSConditionRule extends CSSGroupingRule { /** * The read-only **\`conditionText\`** property of the CSSConditionRule interface returns or sets the text of the CSS rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */ readonly conditionText: string; } declare var CSSConditionRule: { prototype: CSSConditionRule; new(): CSSConditionRule; }; /** * The **\`CSSContainerRule\`** interface represents a single CSS @container rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */ interface CSSContainerRule extends CSSConditionRule { /** * The read-only **\`containerName\`** property of the CSSContainerRule interface represents the container name of the associated CSS @container at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */ readonly containerName: string; /** * The read-only **\`containerQuery\`** property of the CSSContainerRule interface returns a string representing the container conditions that are evaluated when the container changes size in order to determine if the styles in the associated @container are applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */ readonly containerQuery: string; } declare var CSSContainerRule: { prototype: CSSContainerRule; new(): CSSContainerRule; }; /** * The **\`CSSCounterStyleRule\`** interface represents an @counter-style at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */ interface CSSCounterStyleRule extends CSSRule { /** * The **\`additiveSymbols\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/additive-symbols descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */ additiveSymbols: string; /** * The **\`fallback\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/fallback descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */ fallback: string; /** * The **\`name\`** property of the CSSCounterStyleRule interface gets and sets the <custom-ident> defined as the \`name\` for the associated rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */ name: string; /** * The **\`negative\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/negative descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */ negative: string; /** * The **\`pad\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/pad descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */ pad: string; /** * The **\`prefix\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/prefix descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */ prefix: string; /** * The **\`range\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/range descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */ range: string; /** * The **\`speakAs\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/speak-as descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */ speakAs: string; /** * The **\`suffix\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/suffix descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */ suffix: string; /** * The **\`symbols\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/symbols descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */ symbols: string; /** * The **\`system\`** property of the CSSCounterStyleRule interface gets and sets the value of the @counter-style/system descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */ system: string; } declare var CSSCounterStyleRule: { prototype: CSSCounterStyleRule; new(): CSSCounterStyleRule; }; /** * The **\`CSSFontFaceRule\`** interface represents an @font-face at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */ interface CSSFontFaceRule extends CSSRule { /** * The read-only **\`style\`** property of the CSSFontFaceRule interface returns the style information from the @font-face at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSFontFaceRule: { prototype: CSSFontFaceRule; new(): CSSFontFaceRule; }; /** * The **\`CSSFontFeatureValuesRule\`** interface represents an @font-feature-values at-rule, letting developers assign for each font face a common name to specify features indices to be used in font-variant-alternates. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */ interface CSSFontFeatureValuesRule extends CSSRule { /** * The **\`fontFamily\`** property of the CSSConditionRule interface represents the name of the font family it applies to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */ fontFamily: string; } declare var CSSFontFeatureValuesRule: { prototype: CSSFontFeatureValuesRule; new(): CSSFontFeatureValuesRule; }; /** * The **\`CSSFontPaletteValuesRule\`** interface represents an @font-palette-values at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */ interface CSSFontPaletteValuesRule extends CSSRule { /** * The read-only **\`basePalette\`** property of the CSSFontPaletteValuesRule interface indicates the base palette associated with the rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */ readonly basePalette: string; /** * The read-only **\`fontFamily\`** property of the CSSFontPaletteValuesRule interface lists the font families the rule can be applied to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */ readonly fontFamily: string; /** * The read-only **\`name\`** property of the CSSFontPaletteValuesRule interface represents the name identifying the associated @font-palette-values at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */ readonly name: string; /** * The read-only **\`overrideColors\`** property of the CSSFontPaletteValuesRule interface is a string containing a list of color index and color pair that are to be used instead. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */ readonly overrideColors: string; } declare var CSSFontPaletteValuesRule: { prototype: CSSFontPaletteValuesRule; new(): CSSFontPaletteValuesRule; }; /** * The **\`CSSGroupingRule\`** interface of the CSS Object Model represents any CSS at-rule that contains other rules nested within it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule) */ interface CSSGroupingRule extends CSSRule { /** * The **\`cssRules\`** property of the a collection of CSSRule objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */ readonly cssRules: CSSRuleList; /** * The **\`deleteRule()\`** method of the rules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */ deleteRule(index: number): void; /** * The **\`insertRule()\`** method of the \`\`\`js-nolint insertRule(rule) insertRule(rule, index) \`\`\` - \`rule\` - : A string - \`index\` [MISSING: optional_inline] - : An optional index at which to insert the rule; defaults to 0. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */ insertRule(rule: string, index?: number): number; } declare var CSSGroupingRule: { prototype: CSSGroupingRule; new(): CSSGroupingRule; }; /** * The **\`CSSImageValue\`** interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */ interface CSSImageValue extends CSSStyleValue { } declare var CSSImageValue: { prototype: CSSImageValue; new(): CSSImageValue; }; /** * The **\`CSSImportRule\`** interface represents an @import at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */ interface CSSImportRule extends CSSRule { /** * The read-only **\`href\`** property of the The resolved URL will be the \`href\` attribute of the associated stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */ readonly href: string; /** * The read-only **\`layerName\`** property of the CSSImportRule interface returns the name of the cascade layer created by the @import at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */ readonly layerName: string | null; /** * The read-only **\`media\`** property of the containing the value of the \`media\` attribute of the associated stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */ get media(): MediaList; set media(mediaText: string); /** * The read-only **\`styleSheet\`** property of the in the form of a CSSStyleSheet object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */ readonly styleSheet: CSSStyleSheet | null; /** * The read-only **\`supportsText\`** property of the CSSImportRule interface returns the supports condition specified by the @import at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */ readonly supportsText: string | null; } declare var CSSImportRule: { prototype: CSSImportRule; new(): CSSImportRule; }; /** * The **\`CSSKeyframeRule\`** interface describes an object representing a set of styles for a given keyframe. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule) */ interface CSSKeyframeRule extends CSSRule { /** * The **\`keyText\`** property of the CSSKeyframeRule interface represents the keyframe selector as a comma-separated list of percentage values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */ keyText: string; /** * The read-only **\`CSSKeyframeRule.style\`** property is the CSSStyleDeclaration interface for the declaration block of the CSSKeyframeRule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSKeyframeRule: { prototype: CSSKeyframeRule; new(): CSSKeyframeRule; }; /** * The **\`CSSKeyframesRule\`** interface describes an object representing a complete set of keyframes for a CSS animation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule) */ interface CSSKeyframesRule extends CSSRule { /** * The read-only **\`cssRules\`** property of the CSSKeyframeRule interface returns a CSSRuleList containing the rules in the keyframes at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */ readonly cssRules: CSSRuleList; /** * The read-only **\`length\`** property of the CSSKeyframeRule interface returns the number of CSSKeyframeRule objects in its list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */ readonly length: number; /** * The **\`name\`** property of the CSSKeyframeRule interface gets and sets the name of the animation as used by the animation-name property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */ name: string; /** * The **\`appendRule()\`** method of the CSSKeyframeRule interface appends a CSSKeyFrameRule to the end of the rules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */ appendRule(rule: string): void; /** * The **\`deleteRule()\`** method of the CSSKeyframeRule interface deletes the CSSKeyFrameRule that matches the specified keyframe selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */ deleteRule(select: string): void; /** * The **\`findRule()\`** method of the CSSKeyframeRule interface finds the CSSKeyFrameRule that matches the specified keyframe selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */ findRule(select: string): CSSKeyframeRule | null; [index: number]: CSSKeyframeRule; } declare var CSSKeyframesRule: { prototype: CSSKeyframesRule; new(): CSSKeyframesRule; }; /** * The **\`CSSKeywordValue\`** interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */ interface CSSKeywordValue extends CSSStyleValue { /** * The **\`value\`** property of the \`CSSKeywordValue\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */ value: string; } declare var CSSKeywordValue: { prototype: CSSKeywordValue; new(value: string): CSSKeywordValue; }; /** * The **\`CSSLayerBlockRule\`** represents a @layer block rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */ interface CSSLayerBlockRule extends CSSGroupingRule { /** * The read-only **\`name\`** property of the CSSLayerBlockRule interface represents the name of the associated cascade layer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */ readonly name: string; } declare var CSSLayerBlockRule: { prototype: CSSLayerBlockRule; new(): CSSLayerBlockRule; }; /** * The **\`CSSLayerStatementRule\`** represents a @layer statement rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */ interface CSSLayerStatementRule extends CSSRule { /** * The read-only **\`nameList\`** property of the CSSLayerStatementRule interface return the list of associated cascade layer names. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */ readonly nameList: ReadonlyArray; } declare var CSSLayerStatementRule: { prototype: CSSLayerStatementRule; new(): CSSLayerStatementRule; }; interface CSSMathClamp extends CSSMathValue { readonly lower: CSSNumericValue; readonly upper: CSSNumericValue; readonly value: CSSNumericValue; } declare var CSSMathClamp: { prototype: CSSMathClamp; new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp; }; /** * The **\`CSSMathInvert\`** interface of the CSS Typed Object Model API represents a CSS calc used as \`calc(1 / )\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */ interface CSSMathInvert extends CSSMathValue { /** * The CSSMathInvert.value read-only property of the A CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */ readonly value: CSSNumericValue; } declare var CSSMathInvert: { prototype: CSSMathInvert; new(arg: CSSNumberish): CSSMathInvert; }; /** * The **\`CSSMathMax\`** interface of the CSS Typed Object Model API represents the CSS max function. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */ interface CSSMathMax extends CSSMathValue { /** * The CSSMathMax.values read-only property of the which contains one or more CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */ readonly values: CSSNumericArray; } declare var CSSMathMax: { prototype: CSSMathMax; new(...args: CSSNumberish[]): CSSMathMax; }; /** * The **\`CSSMathMin\`** interface of the CSS Typed Object Model API represents the CSS min function. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */ interface CSSMathMin extends CSSMathValue { /** * The CSSMathMin.values read-only property of the which contains one or more CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */ readonly values: CSSNumericArray; } declare var CSSMathMin: { prototype: CSSMathMin; new(...args: CSSNumberish[]): CSSMathMin; }; /** * The **\`CSSMathNegate\`** interface of the CSS Typed Object Model API negates the value passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */ interface CSSMathNegate extends CSSMathValue { /** * The CSSMathNegate.value read-only property of the A CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */ readonly value: CSSNumericValue; } declare var CSSMathNegate: { prototype: CSSMathNegate; new(arg: CSSNumberish): CSSMathNegate; }; /** * The **\`CSSMathProduct\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */ interface CSSMathProduct extends CSSMathValue { /** * The **\`CSSMathProduct.values\`** read-only property of the CSSMathProduct interface returns a A CSSNumericArray. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */ readonly values: CSSNumericArray; } declare var CSSMathProduct: { prototype: CSSMathProduct; new(...args: CSSNumberish[]): CSSMathProduct; }; /** * The **\`CSSMathSum\`** interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */ interface CSSMathSum extends CSSMathValue { /** * The **\`CSSMathSum.values\`** read-only property of the CSSMathSum interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */ readonly values: CSSNumericArray; } declare var CSSMathSum: { prototype: CSSMathSum; new(...args: CSSNumberish[]): CSSMathSum; }; /** * The **\`CSSMathValue\`** interface of the CSS Typed Object Model API a base class for classes representing complex numeric values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */ interface CSSMathValue extends CSSNumericValue { /** * The **\`CSSMathValue.operator\`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */ readonly operator: CSSMathOperator; } declare var CSSMathValue: { prototype: CSSMathValue; new(): CSSMathValue; }; /** * The **\`CSSMatrixComponent\`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */ interface CSSMatrixComponent extends CSSTransformComponent { /** * The **\`matrix\`** property of the See the matrix() and matrix3d() pages for examples. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */ matrix: DOMMatrix; } declare var CSSMatrixComponent: { prototype: CSSMatrixComponent; new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent; }; /** * The **\`CSSMediaRule\`** interface represents a single CSS @media rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule) */ interface CSSMediaRule extends CSSConditionRule { /** * The read-only **\`media\`** property of the destination medium for style information. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */ get media(): MediaList; set media(mediaText: string); } declare var CSSMediaRule: { prototype: CSSMediaRule; new(): CSSMediaRule; }; /** * The **\`CSSNamespaceRule\`** interface describes an object representing a single CSS @namespace at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule) */ interface CSSNamespaceRule extends CSSRule { /** * The read-only **\`namespaceURI\`** property of the CSSNamespaceRule returns a string containing the text of the URI of the given namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */ readonly namespaceURI: string; /** * The read-only **\`prefix\`** property of the CSSNamespaceRule returns a string with the name of the prefix associated to this namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */ readonly prefix: string; } declare var CSSNamespaceRule: { prototype: CSSNamespaceRule; new(): CSSNamespaceRule; }; /** * The **\`CSSNestedDeclarations\`** interface of the CSS Rule API is used to group nested CSSRules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations) */ interface CSSNestedDeclarations extends CSSRule { /** * The read-only **\`style\`** property of the CSSNestedDeclarations interface represents the styles associated with the nested rules. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNestedDeclarations/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSNestedDeclarations: { prototype: CSSNestedDeclarations; new(): CSSNestedDeclarations; }; /** * The **\`CSSNumericArray\`** interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */ interface CSSNumericArray { /** * The read-only **\`length\`** property of the An integer representing the number of CSSNumericValue objects in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */ readonly length: number; forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void; [index: number]: CSSNumericValue; } declare var CSSNumericArray: { prototype: CSSNumericArray; new(): CSSNumericArray; }; /** * The **\`CSSNumericValue\`** interface of the CSS Typed Object Model API represents operations that all numeric values can perform. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */ interface CSSNumericValue extends CSSStyleValue { /** * The **\`add()\`** method of the \`CSSNumericValue\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */ add(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`div()\`** method of the supplied value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */ div(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`equals()\`** method of the value are strictly equal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */ equals(...value: CSSNumberish[]): boolean; /** * The **\`max()\`** method of the passed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */ max(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`min()\`** method of the values passed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */ min(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`mul()\`** method of the the supplied value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */ mul(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`sub()\`** method of the \`CSSNumericValue\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */ sub(...values: CSSNumberish[]): CSSNumericValue; /** * The **\`to()\`** method of the another. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */ to(unit: string): CSSUnitValue; /** * The **\`toSum()\`** method of the \`\`\`js-nolint toSum(units) \`\`\` - \`units\` - : The units to convert to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */ toSum(...units: string[]): CSSMathSum; /** * The **\`type()\`** method of the \`CSSNumericValue\`, one of \`angle\`, \`flex\`, \`frequency\`, \`length\`, \`resolution\`, \`percent\`, \`percentHint\`, or \`time\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */ type(): CSSNumericType; } declare var CSSNumericValue: { prototype: CSSNumericValue; new(): CSSNumericValue; /** * The **\`parse()\`** static method of the members are value and the units. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */ parse(cssText: string): CSSNumericValue; }; /** * **\`CSSPageRule\`** represents a single CSS @page rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule) */ interface CSSPageRule extends CSSGroupingRule { /** * The **\`selectorText\`** property of the CSSPageRule interface gets and sets the selectors associated with the \`CSSPageRule\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */ selectorText: string; /** * The **\`style\`** read-only property of the CSSPageRule interface returns a CSSPageDescriptors object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } declare var CSSPageRule: { prototype: CSSPageRule; new(): CSSPageRule; }; /** * The **\`CSSPerspective\`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */ interface CSSPerspective extends CSSTransformComponent { /** * The **\`length\`** property of the It is used to apply a perspective transform to the element and its content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */ length: CSSPerspectiveValue; } declare var CSSPerspective: { prototype: CSSPerspective; new(length: CSSPerspectiveValue): CSSPerspective; }; /** * The **\`CSSPropertyRule\`** interface of the CSS Properties and Values API represents a single CSS @property rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */ interface CSSPropertyRule extends CSSRule { /** * The read-only **\`inherits\`** property of the CSSPropertyRule interface returns the inherit flag of the custom property registration represented by the @property rule, a boolean describing whether or not the property inherits by default. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */ readonly inherits: boolean; /** * The read-only **\`initialValue\`** nullable property of the CSSPropertyRule interface returns the initial value of the custom property registration represented by the @property rule, controlling the property's initial value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */ readonly initialValue: string | null; /** * The read-only **\`name\`** property of the CSSPropertyRule interface represents the property name, this being the serialization of the name given to the custom property in the @property rule's prelude. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */ readonly name: string; /** * The read-only **\`syntax\`** property of the CSSPropertyRule interface returns the literal syntax of the custom property registration represented by the @property rule, controlling how the property's value is parsed at computed-value time. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */ readonly syntax: string; } declare var CSSPropertyRule: { prototype: CSSPropertyRule; new(): CSSPropertyRule; }; /** * The **\`CSSRotate\`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */ interface CSSRotate extends CSSTransformComponent { /** * The **\`angle\`** property of the denotes a clockwise rotation, a negative angle a counter-clockwise one. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */ angle: CSSNumericValue; /** * The **\`x\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */ x: CSSNumberish; /** * The **\`y\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */ y: CSSNumberish; /** * The **\`z\`** property of the vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */ z: CSSNumberish; } declare var CSSRotate: { prototype: CSSRotate; new(angle: CSSNumericValue): CSSRotate; new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate; }; /** * The **\`CSSRule\`** interface represents a single CSS rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule) */ interface CSSRule { /** * The **\`cssText\`** property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */ cssText: string; /** * The **\`parentRule\`** property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */ readonly parentRule: CSSRule | null; /** * The **\`parentStyleSheet\`** property of the the current rule is defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */ readonly parentStyleSheet: CSSStyleSheet | null; /** * The read-only **\`type\`** property of the indicating which type of rule the CSSRule represents. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type) */ 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; readonly COUNTER_STYLE_RULE: 11; readonly FONT_FEATURE_VALUES_RULE: 14; } 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; readonly COUNTER_STYLE_RULE: 11; readonly FONT_FEATURE_VALUES_RULE: 14; }; /** * A \`CSSRuleList\` represents an ordered collection of read-only CSSRule objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList) */ interface CSSRuleList { /** * The **\`length\`** property of the CSSRuleList interface returns the number of CSSRule objects in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */ readonly length: number; /** * The **\`item()\`** method of the CSSRuleList interface returns the CSSRule object at the specified \`index\` or \`null\` if the specified \`index\` doesn't exist. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */ item(index: number): CSSRule | null; [index: number]: CSSRule; } declare var CSSRuleList: { prototype: CSSRuleList; new(): CSSRuleList; }; /** * The **\`CSSScale\`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */ interface CSSScale extends CSSTransformComponent { /** * The **\`x\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */ x: CSSNumberish; /** * The **\`y\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */ y: CSSNumberish; /** * The **\`z\`** property of the vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */ z: CSSNumberish; } declare var CSSScale: { prototype: CSSScale; new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale; }; /** * The **\`CSSScopeRule\`** interface of the CSS Object Model represents a CSS @scope at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule) */ interface CSSScopeRule extends CSSGroupingRule { /** * The **\`end\`** property of the CSSScopeRule interface returns a string containing the value of the \`@scope\` at-rule's scope limit. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/end) */ readonly end: string | null; /** * The **\`start\`** property of the CSSScopeRule interface returns a string containing the value of the \`@scope\` at-rule's scope root. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScopeRule/start) */ readonly start: string | null; } declare var CSSScopeRule: { prototype: CSSScopeRule; new(): CSSScopeRule; }; /** * The **\`CSSSkew\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */ interface CSSSkew extends CSSTransformComponent { /** * The **\`ax\`** property of the along the x-axis (or abscissa). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */ ax: CSSNumericValue; /** * The **\`ay\`** property of the along the y-axis (or ordinate). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */ ay: CSSNumericValue; } declare var CSSSkew: { prototype: CSSSkew; new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew; }; /** * The **\`CSSSkewX\`** interface of the CSS Typed Object Model API represents the \`skewX()\` value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */ interface CSSSkewX extends CSSTransformComponent { /** * The **\`ax\`** property of the along the x-axis (or abscissa). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */ ax: CSSNumericValue; } declare var CSSSkewX: { prototype: CSSSkewX; new(ax: CSSNumericValue): CSSSkewX; }; /** * The **\`CSSSkewY\`** interface of the CSS Typed Object Model API represents the \`skewY()\` value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */ interface CSSSkewY extends CSSTransformComponent { /** * The **\`ay\`** property of the along the y-axis (or ordinate). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */ ay: CSSNumericValue; } declare var CSSSkewY: { prototype: CSSSkewY; new(ay: CSSNumericValue): CSSSkewY; }; /** * The **\`CSSStartingStyleRule\`** interface of the CSS Object Model represents a CSS @starting-style at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStartingStyleRule) */ interface CSSStartingStyleRule extends CSSGroupingRule { } declare var CSSStartingStyleRule: { prototype: CSSStartingStyleRule; new(): CSSStartingStyleRule; }; /** * The **\`CSSStyleDeclaration\`** interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration) */ interface CSSStyleDeclaration { /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */ accentColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ alignContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ alignItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ alignSelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/alignment-baseline) */ alignmentBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */ all: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ animation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */ animationComposition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ animationDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ animationDirection: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ animationDuration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ animationFillMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ animationIterationCount: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ animationName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ animationPlayState: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ animationTimingFunction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ appearance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */ aspectRatio: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */ backdropFilter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ backfaceVisibility: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */ background: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */ backgroundAttachment: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */ backgroundBlendMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ backgroundClip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */ backgroundColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */ backgroundImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ backgroundOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */ backgroundPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */ backgroundPositionX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */ backgroundPositionY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */ backgroundRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ backgroundSize: string; baselineShift: string; baselineSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */ blockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */ border: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */ borderBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */ borderBlockColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */ borderBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */ borderBlockEndColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */ borderBlockEndStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */ borderBlockEndWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */ borderBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */ borderBlockStartColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */ borderBlockStartStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */ borderBlockStartWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */ borderBlockStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */ borderBlockWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */ borderBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */ borderBottomColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ borderBottomLeftRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ borderBottomRightRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */ borderBottomStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */ borderBottomWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */ borderCollapse: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */ borderColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */ borderEndEndRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */ borderEndStartRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */ borderImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */ borderImageOutset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */ borderImageRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */ borderImageSlice: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */ borderImageSource: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */ borderImageWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */ borderInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */ borderInlineColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */ borderInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */ borderInlineEndColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */ borderInlineEndStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */ borderInlineEndWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */ borderInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */ borderInlineStartColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */ borderInlineStartStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */ borderInlineStartWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */ borderInlineStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */ borderInlineWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */ borderLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */ borderLeftColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */ borderLeftStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */ borderLeftWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ borderRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */ borderRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */ borderRightColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */ borderRightStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */ borderRightWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */ borderSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */ borderStartEndRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */ borderStartStartRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */ borderStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */ borderTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */ borderTopColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ borderTopLeftRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ borderTopRightRadius: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */ borderTopStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */ borderTopWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */ borderWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */ bottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-decoration-break) */ boxDecorationBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ boxShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ boxSizing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */ breakAfter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */ breakBefore: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */ breakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */ captionSide: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */ caretColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */ clear: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip) */ clip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */ clipPath: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-rule) */ clipRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */ color: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation) */ colorInterpolation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-interpolation-filters) */ colorInterpolationFilters: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */ colorScheme: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */ columnCount: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */ columnFill: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */ columnGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */ columnRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */ columnRuleColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */ columnRuleStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */ columnRuleWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */ columnSpan: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */ columnWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */ columns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */ contain: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-block-size) */ containIntrinsicBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */ containIntrinsicHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-inline-size) */ containIntrinsicInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */ containIntrinsicSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */ containIntrinsicWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */ container: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */ containerName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */ containerType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */ content: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content-visibility) */ contentVisibility: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */ counterIncrement: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */ counterReset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */ counterSet: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */ cssFloat: string; /** * The **\`cssText\`** property of the CSSStyleDeclaration interface returns or sets the text of the element's **inline** style declaration only. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */ cssText: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */ cursor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cx) */ cx: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cy) */ cy: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/d) */ d: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */ direction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */ display: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/dominant-baseline) */ dominantBaseline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */ emptyCells: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill) */ fill: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-opacity) */ fillOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/fill-rule) */ fillRule: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ filter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ flex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ flexBasis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ flexDirection: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ flexFlow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ flexGrow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ flexShrink: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ flexWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */ float: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-color) */ floodColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flood-opacity) */ floodOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */ font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */ fontFamily: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */ fontFeatureSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */ fontKerning: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */ fontOpticalSizing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */ fontPalette: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */ fontSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */ fontSizeAdjust: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */ fontStretch: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */ fontStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */ fontSynthesis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */ fontSynthesisSmallCaps: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */ fontSynthesisStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */ fontSynthesisWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */ fontVariant: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */ fontVariantAlternates: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */ fontVariantCaps: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */ fontVariantEastAsian: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */ fontVariantLigatures: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */ fontVariantNumeric: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */ fontVariantPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */ fontVariationSettings: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */ fontWeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */ forcedColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */ gap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */ grid: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */ gridArea: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */ gridAutoColumns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */ gridAutoFlow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */ gridAutoRows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */ gridColumn: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */ gridColumnEnd: string; /** @deprecated This is a legacy alias of \`columnGap\`. */ gridColumnGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */ gridColumnStart: string; /** @deprecated This is a legacy alias of \`gap\`. */ gridGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */ gridRow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */ gridRowEnd: string; /** @deprecated This is a legacy alias of \`rowGap\`. */ gridRowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */ gridRowStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */ gridTemplate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */ gridTemplateAreas: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */ gridTemplateColumns: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */ gridTemplateRows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */ height: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */ hyphenateCharacter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-limit-chars) */ hyphenateLimitChars: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */ hyphens: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation) */ imageOrientation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */ imageRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */ inlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */ inset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */ insetBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */ insetBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */ insetBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */ insetInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */ insetInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */ insetInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */ isolation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ justifyContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */ justifyItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */ justifySelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */ left: string; /** * The read-only property returns an integer that represents the number of style declarations in this CSS declaration block. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */ readonly length: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/lighting-color) */ lightingColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */ lineBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */ lineHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */ listStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */ listStyleImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */ listStylePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */ listStyleType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */ margin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */ marginBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */ marginBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */ marginBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */ marginBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */ marginInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */ marginInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */ marginInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */ marginLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */ marginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */ marginTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker) */ marker: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-end) */ markerEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-mid) */ markerMid: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/marker-start) */ markerStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ mask: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ maskClip: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ maskComposite: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ maskImage: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */ maskMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ maskOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ maskPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ maskRepeat: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ maskSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */ maskType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */ mathDepth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */ mathStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */ maxBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */ maxHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */ maxInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */ maxWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */ minBlockSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */ minHeight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */ minInlineSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */ minWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */ mixBlendMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */ objectFit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */ objectPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */ offset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */ offsetAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */ offsetDistance: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */ offsetPath: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */ offsetPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */ offsetRotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */ opacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ order: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */ orphans: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */ outline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */ outlineColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */ outlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */ outlineStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */ outlineWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */ overflow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */ overflowAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-block) */ overflowBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */ overflowClipMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-inline) */ overflowInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ overflowWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */ overflowX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */ overflowY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */ overscrollBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */ overscrollBehaviorBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */ overscrollBehaviorInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */ overscrollBehaviorX: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */ overscrollBehaviorY: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */ padding: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */ paddingBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */ paddingBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */ paddingBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */ paddingBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */ paddingInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */ paddingInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */ paddingInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */ paddingLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */ paddingRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */ paddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */ page: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */ pageBreakAfter: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */ pageBreakBefore: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */ pageBreakInside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */ paintOrder: string; /** * The **CSSStyleDeclaration.parentRule** read-only property returns a CSSRule that is the parent of this style block, e.g., a CSSStyleRule representing the style for a CSS selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */ readonly parentRule: CSSRule | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ perspective: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ perspectiveOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */ placeContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */ placeItems: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */ placeSelf: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */ pointerEvents: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */ position: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */ printColorAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */ quotes: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/r) */ r: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */ resize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */ right: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */ rotate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */ rowGap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-align) */ rubyAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */ rubyPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rx) */ rx: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ry) */ ry: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */ scale: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */ scrollBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */ scrollMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */ scrollMarginBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */ scrollMarginBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */ scrollMarginBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */ scrollMarginBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */ scrollMarginInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */ scrollMarginInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */ scrollMarginInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */ scrollMarginLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */ scrollMarginRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */ scrollMarginTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */ scrollPadding: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */ scrollPaddingBlock: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */ scrollPaddingBlockEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */ scrollPaddingBlockStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */ scrollPaddingBottom: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */ scrollPaddingInline: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */ scrollPaddingInlineEnd: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */ scrollPaddingInlineStart: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */ scrollPaddingLeft: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */ scrollPaddingRight: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */ scrollPaddingTop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */ scrollSnapAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */ scrollSnapStop: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */ scrollSnapType: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */ scrollbarColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */ scrollbarGutter: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */ scrollbarWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */ shapeImageThreshold: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */ shapeMargin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */ shapeOutside: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-rendering) */ shapeRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-color) */ stopColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stop-opacity) */ stopOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke) */ stroke: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dasharray) */ strokeDasharray: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-dashoffset) */ strokeDashoffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linecap) */ strokeLinecap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-linejoin) */ strokeLinejoin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-miterlimit) */ strokeMiterlimit: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-opacity) */ strokeOpacity: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/stroke-width) */ strokeWidth: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */ tabSize: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */ tableLayout: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */ textAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */ textAlignLast: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-anchor) */ textAnchor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box) */ textBox: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-edge) */ textBoxEdge: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-box-trim) */ textBoxTrim: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */ textCombineUpright: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */ textDecoration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */ textDecorationColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */ textDecorationLine: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */ textDecorationSkipInk: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */ textDecorationStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */ textDecorationThickness: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */ textEmphasis: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */ textEmphasisColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */ textEmphasisPosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */ textEmphasisStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */ textIndent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */ textOrientation: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */ textOverflow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */ textRendering: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */ textShadow: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */ textTransform: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */ textUnderlineOffset: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */ textUnderlinePosition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */ textWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-mode) */ textWrapMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap-style) */ textWrapStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */ top: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */ touchAction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ transform: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */ transformBox: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ transformOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ transformStyle: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ transition: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-behavior) */ transitionBehavior: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ transitionDelay: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ transitionDuration: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ transitionProperty: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ transitionTimingFunction: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */ translate: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */ unicodeBidi: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ userSelect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vector-effect) */ vectorEffect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */ verticalAlign: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-class) */ viewTransitionClass: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/view-transition-name) */ viewTransitionName: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */ visibility: string; /** * @deprecated This is a legacy alias of \`alignContent\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */ webkitAlignContent: string; /** * @deprecated This is a legacy alias of \`alignItems\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */ webkitAlignItems: string; /** * @deprecated This is a legacy alias of \`alignSelf\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */ webkitAlignSelf: string; /** * @deprecated This is a legacy alias of \`animation\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */ webkitAnimation: string; /** * @deprecated This is a legacy alias of \`animationDelay\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */ webkitAnimationDelay: string; /** * @deprecated This is a legacy alias of \`animationDirection\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */ webkitAnimationDirection: string; /** * @deprecated This is a legacy alias of \`animationDuration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */ webkitAnimationDuration: string; /** * @deprecated This is a legacy alias of \`animationFillMode\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */ webkitAnimationFillMode: string; /** * @deprecated This is a legacy alias of \`animationIterationCount\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */ webkitAnimationIterationCount: string; /** * @deprecated This is a legacy alias of \`animationName\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */ webkitAnimationName: string; /** * @deprecated This is a legacy alias of \`animationPlayState\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */ webkitAnimationPlayState: string; /** * @deprecated This is a legacy alias of \`animationTimingFunction\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */ webkitAnimationTimingFunction: string; /** * @deprecated This is a legacy alias of \`appearance\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */ webkitAppearance: string; /** * @deprecated This is a legacy alias of \`backfaceVisibility\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */ webkitBackfaceVisibility: string; /** * @deprecated This is a legacy alias of \`backgroundClip\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */ webkitBackgroundClip: string; /** * @deprecated This is a legacy alias of \`backgroundOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */ webkitBackgroundOrigin: string; /** * @deprecated This is a legacy alias of \`backgroundSize\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */ webkitBackgroundSize: string; /** * @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */ webkitBorderBottomLeftRadius: string; /** * @deprecated This is a legacy alias of \`borderBottomRightRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */ webkitBorderBottomRightRadius: string; /** * @deprecated This is a legacy alias of \`borderRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */ webkitBorderRadius: string; /** * @deprecated This is a legacy alias of \`borderTopLeftRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */ webkitBorderTopLeftRadius: string; /** * @deprecated This is a legacy alias of \`borderTopRightRadius\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */ webkitBorderTopRightRadius: string; /** * @deprecated This is a legacy alias of \`boxAlign\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align) */ webkitBoxAlign: string; /** * @deprecated This is a legacy alias of \`boxFlex\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex) */ webkitBoxFlex: string; /** * @deprecated This is a legacy alias of \`boxOrdinalGroup\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group) */ webkitBoxOrdinalGroup: string; /** * @deprecated This is a legacy alias of \`boxOrient\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient) */ webkitBoxOrient: string; /** * @deprecated This is a legacy alias of \`boxPack\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack) */ webkitBoxPack: string; /** * @deprecated This is a legacy alias of \`boxShadow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */ webkitBoxShadow: string; /** * @deprecated This is a legacy alias of \`boxSizing\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */ webkitBoxSizing: string; /** * @deprecated This is a legacy alias of \`filter\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */ webkitFilter: string; /** * @deprecated This is a legacy alias of \`flex\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */ webkitFlex: string; /** * @deprecated This is a legacy alias of \`flexBasis\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */ webkitFlexBasis: string; /** * @deprecated This is a legacy alias of \`flexDirection\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */ webkitFlexDirection: string; /** * @deprecated This is a legacy alias of \`flexFlow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */ webkitFlexFlow: string; /** * @deprecated This is a legacy alias of \`flexGrow\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */ webkitFlexGrow: string; /** * @deprecated This is a legacy alias of \`flexShrink\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */ webkitFlexShrink: string; /** * @deprecated This is a legacy alias of \`flexWrap\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */ webkitFlexWrap: string; /** * @deprecated This is a legacy alias of \`justifyContent\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */ webkitJustifyContent: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-clamp) */ webkitLineClamp: string; /** * @deprecated This is a legacy alias of \`mask\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */ webkitMask: string; /** * @deprecated This is a legacy alias of \`maskBorder\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border) */ webkitMaskBoxImage: string; /** * @deprecated This is a legacy alias of \`maskBorderOutset\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset) */ webkitMaskBoxImageOutset: string; /** * @deprecated This is a legacy alias of \`maskBorderRepeat\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat) */ webkitMaskBoxImageRepeat: string; /** * @deprecated This is a legacy alias of \`maskBorderSlice\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice) */ webkitMaskBoxImageSlice: string; /** * @deprecated This is a legacy alias of \`maskBorderSource\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source) */ webkitMaskBoxImageSource: string; /** * @deprecated This is a legacy alias of \`maskBorderWidth\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width) */ webkitMaskBoxImageWidth: string; /** * @deprecated This is a legacy alias of \`maskClip\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */ webkitMaskClip: string; /** * @deprecated This is a legacy alias of \`maskComposite\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */ webkitMaskComposite: string; /** * @deprecated This is a legacy alias of \`maskImage\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */ webkitMaskImage: string; /** * @deprecated This is a legacy alias of \`maskOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */ webkitMaskOrigin: string; /** * @deprecated This is a legacy alias of \`maskPosition\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */ webkitMaskPosition: string; /** * @deprecated This is a legacy alias of \`maskRepeat\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */ webkitMaskRepeat: string; /** * @deprecated This is a legacy alias of \`maskSize\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */ webkitMaskSize: string; /** * @deprecated This is a legacy alias of \`order\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */ webkitOrder: string; /** * @deprecated This is a legacy alias of \`perspective\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */ webkitPerspective: string; /** * @deprecated This is a legacy alias of \`perspectiveOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */ webkitPerspectiveOrigin: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */ webkitTextFillColor: string; /** * @deprecated This is a legacy alias of \`textSizeAdjust\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust) */ webkitTextSizeAdjust: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */ webkitTextStroke: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */ webkitTextStrokeColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */ webkitTextStrokeWidth: string; /** * @deprecated This is a legacy alias of \`transform\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */ webkitTransform: string; /** * @deprecated This is a legacy alias of \`transformOrigin\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */ webkitTransformOrigin: string; /** * @deprecated This is a legacy alias of \`transformStyle\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */ webkitTransformStyle: string; /** * @deprecated This is a legacy alias of \`transition\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */ webkitTransition: string; /** * @deprecated This is a legacy alias of \`transitionDelay\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */ webkitTransitionDelay: string; /** * @deprecated This is a legacy alias of \`transitionDuration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */ webkitTransitionDuration: string; /** * @deprecated This is a legacy alias of \`transitionProperty\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */ webkitTransitionProperty: string; /** * @deprecated This is a legacy alias of \`transitionTimingFunction\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */ webkitTransitionTimingFunction: string; /** * @deprecated This is a legacy alias of \`userSelect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */ webkitUserSelect: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */ whiteSpace: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space-collapse) */ whiteSpaceCollapse: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */ widows: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */ width: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */ willChange: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */ wordBreak: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */ wordSpacing: string; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */ wordWrap: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */ writingMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/x) */ x: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/y) */ y: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */ zIndex: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/zoom) */ zoom: string; /** * The **CSSStyleDeclaration.getPropertyPriority()** method interface returns a string that provides all explicitly set priorities on the CSS property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */ getPropertyPriority(property: string): string; /** * The **CSSStyleDeclaration.getPropertyValue()** method interface returns a string containing the value of a specified CSS property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */ getPropertyValue(property: string): string; /** * The \`CSSStyleDeclaration.item()\` method interface returns a CSS property name from a CSSStyleDeclaration by index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */ item(index: number): string; /** * The **\`CSSStyleDeclaration.removeProperty()\`** method interface removes a property from a CSS style declaration object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */ removeProperty(property: string): string; /** * The **\`CSSStyleDeclaration.setProperty()\`** method interface sets a new value for a property on a CSS style declaration object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */ setProperty(property: string, value: string | null, priority?: string): void; [index: number]: string; } declare var CSSStyleDeclaration: { prototype: CSSStyleDeclaration; new(): CSSStyleDeclaration; }; /** * The **\`CSSStyleRule\`** interface represents a single CSS style rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule) */ interface CSSStyleRule extends CSSGroupingRule { /** * The **\`selectorText\`** property of the CSSStyleRule interface gets and sets the selectors associated with the \`CSSStyleRule\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */ selectorText: string; /** * The read-only **\`style\`** property is the CSSStyleDeclaration interface for the declaration block of the CSSStyleRule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); /** * The **\`styleMap\`** read-only property of the which provides access to the rule's property-value pairs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */ readonly styleMap: StylePropertyMap; } declare var CSSStyleRule: { prototype: CSSStyleRule; new(): CSSStyleRule; }; /** * The **\`CSSStyleSheet\`** interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet) */ interface CSSStyleSheet extends StyleSheet { /** * The read-only CSSStyleSheet property **\`cssRules\`** returns a live CSSRuleList which provides a real-time, up-to-date list of every CSS rule which comprises the stylesheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */ readonly cssRules: CSSRuleList; /** * The read-only CSSStyleSheet property **\`ownerRule\`** returns the CSSImportRule corresponding to the @import at-rule which imported the stylesheet into the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */ readonly ownerRule: CSSRule | null; /** * **\`rules\`** is a _deprecated_ _legacy property_ of the CSSStyleSheet interface. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules) */ readonly rules: CSSRuleList; /** * The obsolete CSSStyleSheet interface's **\`addRule()\`** _legacy method_ adds a new rule to the stylesheet. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule) */ addRule(selector?: string, style?: string, index?: number): number; /** * The CSSStyleSheet method **\`deleteRule()\`** removes a rule from the stylesheet object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */ deleteRule(index: number): void; /** * The **\`CSSStyleSheet.insertRule()\`** method inserts a new CSS rule into the current style sheet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */ insertRule(rule: string, index?: number): number; /** * The obsolete CSSStyleSheet method **\`removeRule()\`** removes a rule from the stylesheet object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule) */ removeRule(index?: number): void; /** * The **\`replace()\`** method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */ replace(text: string): Promise; /** * The **\`replaceSync()\`** method of the CSSStyleSheet interface synchronously replaces the content of the stylesheet with the content passed into it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */ replaceSync(text: string): void; } declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(options?: CSSStyleSheetInit): CSSStyleSheet; }; /** * The **\`CSSStyleValue\`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */ interface CSSStyleValue { toString(): string; } declare var CSSStyleValue: { prototype: CSSStyleValue; new(): CSSStyleValue; /** * The **\`parse()\`** static method of the CSSStyleValue interface sets a specific CSS property to the specified values and returns the first value as a CSSStyleValue object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */ parse(property: string, cssText: string): CSSStyleValue; /** * The **\`parseAll()\`** static method of the CSSStyleValue interface sets all occurrences of a specific CSS property to the specified value and returns an array of CSSStyleValue objects, each containing one of the supplied values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */ parseAll(property: string, cssText: string): CSSStyleValue[]; }; /** * The **\`CSSSupportsRule\`** interface represents a single CSS @supports at-rule. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule) */ interface CSSSupportsRule extends CSSConditionRule { } declare var CSSSupportsRule: { prototype: CSSSupportsRule; new(): CSSSupportsRule; }; /** * The **\`CSSTransformComponent\`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */ interface CSSTransformComponent { /** * The **\`is2D\`** read-only property of the CSSTransformComponent interface indicates where the transform is 2D or 3D. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */ is2D: boolean; /** * The **\`toMatrix()\`** method of the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */ toMatrix(): DOMMatrix; toString(): string; } declare var CSSTransformComponent: { prototype: CSSTransformComponent; new(): CSSTransformComponent; }; /** * The **\`CSSTransformValue\`** interface of the CSS Typed Object Model API represents \`transform-list\` values as used by the CSS transform property. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */ interface CSSTransformValue extends CSSStyleValue { /** * The read-only **\`is2D\`** property of the In the case of the \`CSSTransformValue\` this property returns true unless any of the individual functions return false for \`Is2D\`, in which case it returns false. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */ readonly is2D: boolean; /** * The read-only **\`length\`** property of the the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */ readonly length: number; /** * The **\`toMatrix()\`** method of the \`\`\`js-nolint toMatrix() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */ toMatrix(): DOMMatrix; forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void; [index: number]: CSSTransformComponent; } declare var CSSTransformValue: { prototype: CSSTransformValue; new(transforms: CSSTransformComponent[]): CSSTransformValue; }; /** * The **\`CSSTransition\`** interface of the Web Animations API represents an Animation object used for a CSS Transition. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */ interface CSSTransition extends Animation { /** * The **\`transitionProperty\`** property of the name** of the transition. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */ 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; }; /** * The **\`CSSTranslate\`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */ interface CSSTranslate extends CSSTransformComponent { /** * The **\`x\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */ x: CSSNumericValue; /** * The **\`y\`** property of the translating vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */ y: CSSNumericValue; /** * The **\`z\`** property of the vector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */ z: CSSNumericValue; } declare var CSSTranslate: { prototype: CSSTranslate; new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate; }; /** * The **\`CSSUnitValue\`** interface of the CSS Typed Object Model API represents values that contain a single unit type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */ interface CSSUnitValue extends CSSNumericValue { /** * The **\`CSSUnitValue.unit\`** read-only property of the CSSUnitValue interface returns a string indicating the type of unit. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */ readonly unit: string; /** * The **\`CSSUnitValue.value\`** property of the A double. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */ value: number; } declare var CSSUnitValue: { prototype: CSSUnitValue; new(value: number, unit: string): CSSUnitValue; }; /** * The **\`CSSUnparsedValue\`** interface of the CSS Typed Object Model API represents property values that reference custom properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */ interface CSSUnparsedValue extends CSSStyleValue { /** * The **\`length\`** read-only property of the An integer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */ readonly length: number; forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void; [index: number]: CSSUnparsedSegment; } declare var CSSUnparsedValue: { prototype: CSSUnparsedValue; new(members: CSSUnparsedSegment[]): CSSUnparsedValue; }; /** * The **\`CSSVariableReferenceValue\`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */ interface CSSVariableReferenceValue { /** * The **\`fallback\`** read-only property of the A CSSUnparsedValue. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */ readonly fallback: CSSUnparsedValue | null; /** * The **\`variable\`** property of the A string beginning with \`--\` (that is, a custom property name). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */ variable: string; } declare var CSSVariableReferenceValue: { prototype: CSSVariableReferenceValue; new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue; }; interface CSSViewTransitionRule extends CSSRule { readonly navigation: string; readonly types: ReadonlyArray; } declare var CSSViewTransitionRule: { prototype: CSSViewTransitionRule; new(): CSSViewTransitionRule; }; /** * The **\`Cache\`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache) */ interface Cache { /** * The **\`add()\`** method of the Cache interface takes a URL, retrieves it, and adds the resulting response object to the given cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */ add(request: RequestInfo | URL): Promise; /** * The **\`addAll()\`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */ addAll(requests: RequestInfo[]): Promise; /** * The **\`delete()\`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to \`true\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */ delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** * The **\`keys()\`** method of the Cache interface returns a representing the keys of the Cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */ keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** * The **\`match()\`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */ match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise; /** * The **\`matchAll()\`** method of the Cache interface returns a Promise that resolves to an array of all matching responses in the Cache object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */ matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise>; /** * The **\`put()\`** method of the Often, you will just want to Window/fetch one or more requests, then add the result straight to your cache. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */ put(request: RequestInfo | URL, response: Response): Promise; } declare var Cache: { prototype: Cache; new(): Cache; }; /** * The **\`CacheStorage\`** interface represents the storage for Cache objects. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage) */ interface CacheStorage { /** * The **\`delete()\`** method of the CacheStorage interface finds the Cache object matching the \`cacheName\`, and if found, deletes the Cache object and returns a Promise that resolves to \`true\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */ delete(cacheName: string): Promise; /** * The **\`has()\`** method of the CacheStorage interface returns a Promise that resolves to \`true\` if a You can access \`CacheStorage\` through the Window.caches property in windows or through the WorkerGlobalScope.caches property in workers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */ has(cacheName: string): Promise; /** * The **\`keys()\`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */ keys(): Promise; /** * The **\`match()\`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */ match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise; /** * The **\`open()\`** method of the the Cache object matching the \`cacheName\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */ open(cacheName: string): Promise; } declare var CacheStorage: { prototype: CacheStorage; new(): CacheStorage; }; /** * The **\`CanvasCaptureMediaStreamTrack\`** interface of the Media Capture and Streams API represents the video track contained in a MediaStream being generated from a canvas following a call to HTMLCanvasElement.captureStream(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */ interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack { /** * The **\`canvas\`** read-only property of the CanvasCaptureMediaStreamTrack interface returns the HTMLCanvasElement from which frames are being captured. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */ readonly canvas: HTMLCanvasElement; /** * The **\`requestFrame()\`** method of the CanvasCaptureMediaStreamTrack interface requests that a frame be captured from the canvas and sent to the stream. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */ 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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */ globalAlpha: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */ globalCompositeOperation: GlobalCompositeOperation; } interface CanvasDrawImage { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */ 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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */ beginPath(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */ clip(fillRule?: CanvasFillRule): void; clip(path: Path2D, fillRule?: CanvasFillRule): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */ fill(fillRule?: CanvasFillRule): void; fill(path: Path2D, fillRule?: CanvasFillRule): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */ isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean; isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */ isPointInStroke(x: number, y: number): boolean; isPointInStroke(path: Path2D, x: number, y: number): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */ stroke(): void; stroke(path: Path2D): void; } interface CanvasFillStrokeStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */ fillStyle: string | CanvasGradient | CanvasPattern; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */ strokeStyle: string | CanvasGradient | CanvasPattern; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */ createConicGradient(startAngle: number, x: number, y: number): CanvasGradient; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */ createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */ createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */ createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient; } interface CanvasFilters { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */ filter: string; } /** * The **\`CanvasGradient\`** interface represents an opaque object describing a gradient. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient) */ interface CanvasGradient { /** * The **\`CanvasGradient.addColorStop()\`** method adds a new color stop, defined by an \`offset\` and a \`color\`, to a given canvas gradient. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop) */ addColorStop(offset: number, color: string): void; } declare var CanvasGradient: { prototype: CanvasGradient; new(): CanvasGradient; }; interface CanvasImageData { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */ createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData; createImageData(imageData: ImageData): ImageData; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */ getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */ 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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */ imageSmoothingEnabled: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */ imageSmoothingQuality: ImageSmoothingQuality; } interface CanvasPath { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */ arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */ closePath(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */ ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */ lineTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */ moveTo(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */ rect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void; } interface CanvasPathDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */ lineCap: CanvasLineCap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */ lineDashOffset: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */ lineJoin: CanvasLineJoin; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */ lineWidth: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */ miterLimit: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */ getLineDash(): number[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */ setLineDash(segments: number[]): void; } /** * The **\`CanvasPattern\`** interface represents an opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern) */ interface CanvasPattern { /** * The **\`CanvasPattern.setTransform()\`** method uses a DOMMatrix object as the pattern's transformation matrix and invokes it on the pattern. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform) */ setTransform(transform?: DOMMatrix2DInit): void; } declare var CanvasPattern: { prototype: CanvasPattern; new(): CanvasPattern; }; interface CanvasRect { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */ clearRect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */ fillRect(x: number, y: number, w: number, h: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */ 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 canvas element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D) */ interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasSettings, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface { /** * The **\`CanvasRenderingContext2D.canvas\`** property, part of the Canvas API, is a read-only reference to the might be \`null\` if there is no associated canvas element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */ readonly canvas: HTMLCanvasElement; } declare var CanvasRenderingContext2D: { prototype: CanvasRenderingContext2D; new(): CanvasRenderingContext2D; }; interface CanvasSettings { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */ getContextAttributes(): CanvasRenderingContext2DSettings; } interface CanvasShadowStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */ shadowBlur: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */ shadowColor: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */ shadowOffsetX: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */ shadowOffsetY: number; } interface CanvasState { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isContextLost) */ isContextLost(): boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */ reset(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */ restore(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */ save(): void; } interface CanvasText { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */ fillText(text: string, x: number, y: number, maxWidth?: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */ measureText(text: string): TextMetrics; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */ strokeText(text: string, x: number, y: number, maxWidth?: number): void; } interface CanvasTextDrawingStyles { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */ direction: CanvasDirection; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */ font: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */ fontKerning: CanvasFontKerning; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */ fontStretch: CanvasFontStretch; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */ fontVariantCaps: CanvasFontVariantCaps; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */ letterSpacing: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */ textAlign: CanvasTextAlign; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */ textBaseline: CanvasTextBaseline; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */ textRendering: CanvasTextRendering; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */ wordSpacing: string; } interface CanvasTransform { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */ getTransform(): DOMMatrix; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */ resetTransform(): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */ rotate(angle: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */ scale(x: number, y: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */ setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void; setTransform(transform?: DOMMatrix2DInit): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */ transform(a: number, b: number, c: number, d: number, e: number, f: number): void; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */ translate(x: number, y: number): void; } interface CanvasUserInterface { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */ drawFocusIfNeeded(element: Element): void; drawFocusIfNeeded(path: Path2D, element: Element): void; } /** * The \`CaretPosition\` interface represents the caret position, an indicator for the text insertion point. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CaretPosition) */ interface CaretPosition { readonly offset: number; readonly offsetNode: Node; getClientRect(): DOMRect | null; } declare var CaretPosition: { prototype: CaretPosition; new(): CaretPosition; }; /** * The \`ChannelMergerNode\` interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData) */ interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { /** * The **\`data\`** property of the CharacterData interface represent the value of the current object's data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */ data: string; /** * The read-only **\`CharacterData.length\`** property returns the number of characters in the contained data, as a positive integer. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */ readonly length: number; readonly ownerDocument: Document; /** * The **\`appendData()\`** method of the CharacterData interface adds the provided data to the end of the node's current data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */ appendData(data: string): void; /** * The **\`deleteData()\`** method of the CharacterData interface removes all or part of the data from this \`CharacterData\` node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */ deleteData(offset: number, count: number): void; /** * The **\`insertData()\`** method of the CharacterData interface inserts the provided data into this \`CharacterData\` node's current data, at the provided offset from the start of the existing data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */ insertData(offset: number, data: string): void; /** * The **\`replaceData()\`** method of the CharacterData interface removes a certain number of characters of the existing text in a given \`CharacterData\` node and replaces those characters with the text provided. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */ replaceData(offset: number, count: number, data: string): void; /** * The **\`substringData()\`** method of the CharacterData interface returns a portion of the existing data, starting at the specified index and extending for a given number of characters afterwards. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */ substringData(offset: number, count: number): string; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | null); } 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before) */ before(...nodes: (Node | string)[]): void; /** * Removes node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith) */ replaceWith(...nodes: (Node | string)[]): void; } /** @deprecated */ interface ClientRect extends DOMRect { } /** * The **\`Clipboard\`** interface of the Clipboard API provides read and write access to the contents of the system clipboard. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard) */ interface Clipboard extends EventTarget { /** * The **\`read()\`** method of the Clipboard interface requests a copy of the clipboard's contents, fulfilling the returned Promise with the data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */ read(): Promise; /** * The **\`readText()\`** method of the Clipboard interface returns a Promise which fulfills with a copy of the textual contents of the system clipboard. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */ readText(): Promise; /** * The **\`write()\`** method of the Clipboard interface writes arbitrary ClipboardItem data such as images and text to the clipboard, fulfilling the returned Promise on completion. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */ write(data: ClipboardItems): Promise; /** * The **\`writeText()\`** method of the Clipboard interface writes the specified text to the system clipboard, returning a Promise that is resolved once the system clipboard has been updated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */ writeText(data: string): Promise; } declare var Clipboard: { prototype: Clipboard; new(): Clipboard; }; /** * The **\`ClipboardEvent\`** interface of the Clipboard API represents events providing information related to modification of the clipboard, that is Element/cut_event, Element/copy_event, and Element/paste_event events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent) */ interface ClipboardEvent extends Event { /** * The **\`clipboardData\`** property of the ClipboardEvent interface holds a DataTransfer object, which can be used to: - specify what data should be put into the clipboard from the Element/cut_event and Element/copy_event event handlers, typically with a DataTransfer.setData call; - obtain the data to be pasted from the Element/paste_event event handler, typically with a DataTransfer.getData call. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */ readonly clipboardData: DataTransfer | null; } declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; }; /** * The **\`ClipboardItem\`** interface of the Clipboard API represents a single item format, used when reading or writing clipboard data using Clipboard.read() and Clipboard.write() respectively. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem) */ interface ClipboardItem { /** * The read-only **\`presentationStyle\`** property of the ClipboardItem interface returns a string indicating how an item should be presented. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle) */ readonly presentationStyle: PresentationStyle; /** * The read-only **\`types\`** property of the ClipboardItem interface returns an Array of MIME type available within the ClipboardItem. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */ readonly types: ReadonlyArray; /** * The **\`getType()\`** method of the ClipboardItem interface returns a Promise that resolves with a Blob of the requested MIME type or an error if the MIME type is not found. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */ getType(type: string): Promise; } declare var ClipboardItem: { prototype: ClipboardItem; new(items: Record>, options?: ClipboardItemOptions): ClipboardItem; /** * The **\`supports()\`** static method of the ClipboardItem interface returns \`true\` if the given MIME type is supported by the clipboard, and \`false\` otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/supports_static) */ supports(type: string): boolean; }; /** * A \`CloseEvent\` is sent to clients using WebSockets when the connection is closed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent) */ interface CloseEvent extends Event { /** * The **\`code\`** read-only property of the CloseEvent interface returns a WebSocket connection close code indicating the reason the connection was closed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code) */ readonly code: number; /** * The **\`reason\`** read-only property of the CloseEvent interface returns the WebSocket connection close reason the server gave for closing the connection; that is, a concise human-readable prose explanation for the closure. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason) */ readonly reason: string; /** * The **\`wasClean\`** read-only property of the CloseEvent interface returns \`true\` if the connection closed cleanly. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean) */ readonly wasClean: boolean; } declare var CloseEvent: { prototype: CloseEvent; new(type: string, eventInitDict?: CloseEventInit): CloseEvent; }; /** * The **\`Comment\`** interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent) */ interface CompositionEvent extends UIEvent { /** * The **\`data\`** read-only property of the method that raised the event; its exact nature varies depending on the type of event that generated the \`CompositionEvent\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */ readonly data: string; /** * The **\`initCompositionEvent()\`** method of the CompositionEvent interface initializes the attributes of a \`CompositionEvent\` object instance. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent) */ initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void; } declare var CompositionEvent: { prototype: CompositionEvent; new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; }; /** * The **\`CompressionStream\`** interface of the Compression Streams API is an API for compressing a stream of data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */ interface CompressionStream extends GenericTransformStream { readonly readable: ReadableStream>; readonly writable: WritableStream; } declare var CompressionStream: { prototype: CompressionStream; new(format: CompressionFormat): CompressionStream; }; /** * The \`ConstantSourceNode\` interface—part of the Web Audio API—represents an audio source (based upon AudioScheduledSourceNode) whose output is single unchanging value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */ interface ConstantSourceNode extends AudioScheduledSourceNode { /** * The read-only \`offset\` property of the ConstantSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */ 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; }; /** * The **\`ContentVisibilityAutoStateChangeEvent\`** interface is the event object for the element/contentvisibilityautostatechange_event event, which fires on any element with content-visibility set on it when it starts or stops being relevant to the user and skipping its contents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent) */ interface ContentVisibilityAutoStateChangeEvent extends Event { /** * The \`skipped\` read-only property of the ContentVisibilityAutoStateChangeEvent interface returns \`true\` if the user agent skips the element's contents, or \`false\` otherwise. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ContentVisibilityAutoStateChangeEvent/skipped) */ readonly skipped: boolean; } declare var ContentVisibilityAutoStateChangeEvent: { prototype: ContentVisibilityAutoStateChangeEvent; new(type: string, eventInitDict?: ContentVisibilityAutoStateChangeEventInit): ContentVisibilityAutoStateChangeEvent; }; /** * The \`ConvolverNode\` interface is an AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode) */ interface ConvolverNode extends AudioNode { /** * The **\`buffer\`** property of the ConvolverNode interface represents a mono, stereo, or 4-channel AudioBuffer containing the (possibly multichannel) impulse response used by the \`ConvolverNode\` to create the reverb effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */ buffer: AudioBuffer | null; /** * The \`normalize\` property of the ConvolverNode interface is a boolean that controls whether the impulse response from the buffer will be scaled by an equal-power normalization when the \`buffer\` attribute is set, or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */ normalize: boolean; } declare var ConvolverNode: { prototype: ConvolverNode; new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode; }; /** * The **\`CookieChangeEvent\`** interface of the Cookie Store API is the event type of the CookieStore/change_event event fired at a CookieStore when any cookies are created or deleted. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent) */ interface CookieChangeEvent extends Event { /** * The **\`changed\`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been changed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/changed) */ readonly changed: ReadonlyArray; /** * The **\`deleted\`** read-only property of the CookieChangeEvent interface returns an array of the cookies that have been deleted by the given \`CookieChangeEvent\` instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieChangeEvent/deleted) */ readonly deleted: ReadonlyArray; } declare var CookieChangeEvent: { prototype: CookieChangeEvent; new(type: string, eventInitDict?: CookieChangeEventInit): CookieChangeEvent; }; interface CookieStoreEventMap { "change": CookieChangeEvent; } /** * The **\`CookieStore\`** interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore) */ interface CookieStore extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/change_event) */ onchange: ((this: CookieStore, ev: CookieChangeEvent) => any) | null; /** * The **\`delete()\`** method of the CookieStore interface deletes a cookie that matches the given \`name\` or \`options\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete) */ delete(name: string): Promise; delete(options: CookieStoreDeleteOptions): Promise; /** * The **\`get()\`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given \`name\` or \`options\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get) */ get(name: string): Promise; get(options?: CookieStoreGetOptions): Promise; /** * The **\`getAll()\`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the \`name\` or \`options\` passed to it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll) */ getAll(name: string): Promise; getAll(options?: CookieStoreGetOptions): Promise; /** * The **\`set()\`** method of the CookieStore interface sets a cookie with the given \`name\` and \`value\` or \`options\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set) */ set(name: string, value: string): Promise; set(options: CookieInit): Promise; addEventListener(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: CookieStore, ev: CookieStoreEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var CookieStore: { prototype: CookieStore; new(): CookieStore; }; /** * The **\`CookieStoreManager\`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager) */ interface CookieStoreManager { /** * The **\`getSubscriptions()\`** method of the CookieStoreManager interface returns a list of all the cookie change subscriptions for this ServiceWorkerRegistration. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/getSubscriptions) */ getSubscriptions(): Promise; /** * The **\`subscribe()\`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe) */ subscribe(subscriptions: CookieStoreGetOptions[]): Promise; /** * The **\`unsubscribe()\`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe) */ unsubscribe(subscriptions: CookieStoreGetOptions[]): Promise; } declare var CookieStoreManager: { prototype: CookieStoreManager; new(): CookieStoreManager; }; /** * The **\`CountQueuingStrategy\`** interface of the Streams API provides a built-in chunk counting queuing strategy that can be used when constructing streams. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy) */ interface CountQueuingStrategy extends QueuingStrategy { /** * The read-only **\`CountQueuingStrategy.highWaterMark\`** property returns the total number of chunks that can be contained in the internal queue before backpressure is applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */ readonly highWaterMark: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */ readonly size: QueuingStrategySize; } declare var CountQueuingStrategy: { prototype: CountQueuingStrategy; new(init: QueuingStrategyInit): CountQueuingStrategy; }; /** * The **\`Credential\`** interface of the Credential Management API provides information about an entity (usually a user) normally as a prerequisite to a trust decision. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential) */ interface Credential { /** * The **\`id\`** read-only property of the Credential interface returns a string containing the credential's identifier. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */ readonly id: string; /** * The **\`type\`** read-only property of the Credential interface returns a string containing the credential's type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */ readonly type: string; } declare var Credential: { prototype: Credential; new(): Credential; }; /** * The **\`CredentialsContainer\`** interface of the Credential Management API exposes methods to request credentials and notify the user agent when events such as successful sign in or sign out happen. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer) */ interface CredentialsContainer { /** * The **\`create()\`** method of the CredentialsContainer interface creates a new credential, which can then be stored and later retrieved using the CredentialsContainer.get method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */ create(options?: CredentialCreationOptions): Promise; /** * The **\`get()\`** method of the CredentialsContainer interface returns a Promise that fulfills with a single credential, which can then be used to authenticate a user to a website. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */ get(options?: CredentialRequestOptions): Promise; /** * The **\`preventSilentAccess()\`** method of the CredentialsContainer interface sets a flag that specifies whether automatic log in is allowed for future visits to the current origin, then returns a Promise that resolves to \`undefined\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */ preventSilentAccess(): Promise; /** * The **\`store()\`** method of the \`\`\`js-nolint store(credentials) \`\`\` - \`credentials\` - : A valid Credential instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */ store(credential: Credential): Promise; } declare var CredentialsContainer: { prototype: CredentialsContainer; new(): CredentialsContainer; }; /** * The **\`Crypto\`** interface represents basic cryptography features available in the current context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto) */ interface Crypto { /** * The **\`Crypto.subtle\`** read-only property returns a cryptographic operations. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle) */ readonly subtle: SubtleCrypto; /** * The **\`Crypto.getRandomValues()\`** method lets you get cryptographically strong random values. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */ getRandomValues(array: T): T; /** * The **\`randomUUID()\`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID) */ randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`; } declare var Crypto: { prototype: Crypto; new(): Crypto; }; /** * The **\`CryptoKey\`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods SubtleCrypto.generateKey, SubtleCrypto.deriveKey, SubtleCrypto.importKey, or SubtleCrypto.unwrapKey. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey) */ interface CryptoKey { /** * The read-only **\`algorithm\`** property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */ readonly algorithm: KeyAlgorithm; /** * The read-only **\`extractable\`** property of the CryptoKey interface indicates whether or not the key may be extracted using \`SubtleCrypto.exportKey()\` or \`SubtleCrypto.wrapKey()\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */ readonly extractable: boolean; /** * The read-only **\`type\`** property of the CryptoKey interface indicates which kind of key is represented by the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */ readonly type: KeyType; /** * The read-only **\`usages\`** property of the CryptoKey interface indicates what can be done with the key. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */ readonly usages: KeyUsage[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; }; /** * The **\`CustomElementRegistry\`** interface provides methods for registering custom elements and querying registered elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */ interface CustomElementRegistry { /** * The **\`define()\`** method of the CustomElementRegistry interface adds a definition for a custom element to the custom element registry, mapping its name to the constructor which will be used to create it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */ define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; /** * The **\`get()\`** method of the previously-defined custom element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */ get(name: string): CustomElementConstructor | undefined; /** * The **\`getName()\`** method of the previously-defined custom element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */ getName(constructor: CustomElementConstructor): string | null; /** * The **\`upgrade()\`** method of the elements in a Node subtree, even before they are connected to the main document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */ upgrade(root: Node): void; /** * The **\`whenDefined()\`** method of the resolves when the named element is defined. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */ whenDefined(name: string): Promise; } declare var CustomElementRegistry: { prototype: CustomElementRegistry; new(): CustomElementRegistry; }; /** * The **\`CustomEvent\`** interface represents events initialized by an application for any purpose. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */ interface CustomEvent extends Event { /** * The read-only **\`detail\`** property of the CustomEvent interface returns any data passed when initializing the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail) */ readonly detail: T; /** * The **\`CustomEvent.initCustomEvent()\`** method initializes a CustomEvent object. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent) */ initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void; } declare var CustomEvent: { prototype: CustomEvent; new(type: string, eventInitDict?: CustomEventInit): CustomEvent; }; /** * The **\`CustomStateSet\`** interface of the Document Object Model stores a list of states for an autonomous custom element, and allows states to be added and removed from the set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomStateSet) */ interface CustomStateSet { forEach(callbackfn: (value: string, key: string, parent: CustomStateSet) => void, thisArg?: any): void; } declare var CustomStateSet: { prototype: CustomStateSet; new(): CustomStateSet; }; /** * The **\`DOMException\`** interface represents an abnormal event (called an **exception**) that occurs as a result of calling a method or accessing a property of a web API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException) */ interface DOMException extends Error { /** * The **\`code\`** read-only property of the DOMException interface returns one of the legacy error code constants, or \`0\` if none match. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code) */ readonly code: number; /** * The **\`message\`** read-only property of the a message or description associated with the given error name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */ readonly message: string; /** * The **\`name\`** read-only property of the one of the strings associated with an error name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */ 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; }; /** * The **\`DOMImplementation\`** interface represents an object providing methods which are not dependent on any particular document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation) */ interface DOMImplementation { /** * The **\`DOMImplementation.createDocument()\`** method creates and returns an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */ createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument; /** * The **\`DOMImplementation.createDocumentType()\`** method returns a DocumentType object which can either be used with into the document via methods like Node.insertBefore() or \`\`\`js-nolint createDocumentType(qualifiedNameStr, publicId, systemId) \`\`\` - \`qualifiedNameStr\` - : A string containing the qualified name, like \`svg:svg\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */ createDocumentType(name: string, publicId: string, systemId: string): DocumentType; /** * The **\`DOMImplementation.createHTMLDocument()\`** method creates a new HTML Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */ createHTMLDocument(title?: string): Document; /** * The **\`DOMImplementation.hasFeature()\`** method returns a boolean flag indicating if a given feature is supported. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature) */ hasFeature(...args: any[]): true; } declare var DOMImplementation: { prototype: DOMImplementation; new(): DOMImplementation; }; /** * The **\`DOMMatrix\`** interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */ interface DOMMatrix extends DOMMatrixReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ a: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ b: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ c: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ d: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ f: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m11: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m12: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m13: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m14: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m21: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m22: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m23: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m24: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m31: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m32: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m33: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m34: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m41: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m42: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */ m44: number; /** * The **\`invertSelf()\`** method of the DOMMatrix interface inverts the original matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf) */ invertSelf(): DOMMatrix; /** * The **\`multiplySelf()\`** method of the DOMMatrix interface multiplies a matrix by the \`otherMatrix\` parameter, computing the dot product of the original matrix and the specified matrix: \`A⋅B\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf) */ multiplySelf(other?: DOMMatrixInit): DOMMatrix; /** * The **\`preMultiplySelf()\`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified \`DOMMatrix\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf) */ preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; /** * The \`rotateAxisAngleSelf()\` method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf) */ rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; /** * The \`rotateFromVectorSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and \`(1, 0)\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf) */ rotateFromVectorSelf(x?: number, y?: number): DOMMatrix; /** * The \`rotateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf) */ rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** * The **\`scale3dSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of \`(0, 0, 0)\`, returning the 3D-scaled matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */ scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** * The **\`scaleSelf()\`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of \`(0, 0)\`, returning the scaled matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */ scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** * The **\`setMatrixValue()\`** method of the DOMMatrix interface replaces the contents of the matrix with the matrix described by the specified transform or transforms, returning itself. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/setMatrixValue) */ setMatrixValue(transformList: string): DOMMatrix; /** * The \`skewXSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf) */ skewXSelf(sx?: number): DOMMatrix; /** * The \`skewYSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf) */ skewYSelf(sy?: number): DOMMatrix; /** * The \`translateSelf()\` method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf) */ 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; /** * The **\`DOMMatrixReadOnly\`** interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */ interface DOMMatrixReadOnly { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly a: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly b: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly c: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly d: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly e: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly f: number; /** * The readonly **\`is2D\`** property of the DOMMatrixReadOnly interface is a Boolean flag that is \`true\` when the matrix is 2D. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */ readonly is2D: boolean; /** * The readonly **\`isIdentity\`** property of the DOMMatrixReadOnly interface is a Boolean whose value is \`true\` if the matrix is the identity matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */ readonly isIdentity: boolean; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m11: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m12: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m13: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m14: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m21: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m22: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m23: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m24: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m31: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m32: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m33: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m34: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m41: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m42: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m43: number; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */ readonly m44: number; /** * The **\`flipX()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */ flipX(): DOMMatrix; /** * The **\`flipY()\`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */ flipY(): DOMMatrix; /** * The **\`inverse()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */ inverse(): DOMMatrix; /** * The **\`multiply()\`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the \`otherMatrix\` parameter. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */ multiply(other?: DOMMatrixInit): DOMMatrix; /** * The \`rotate()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */ rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix; /** * The \`rotateAxisAngle()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */ rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix; /** * The \`rotateFromVector()\` method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and \`(1, 0)\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */ rotateFromVector(x?: number, y?: number): DOMMatrix; /** * The **\`scale()\`** method of the original matrix with a scale transform applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */ scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** * The **\`scale3d()\`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */ scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix; /** @deprecated */ scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix; /** * The \`skewX()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */ skewX(sx?: number): DOMMatrix; /** * The \`skewY()\` method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */ skewY(sy?: number): DOMMatrix; /** * The **\`toFloat32Array()\`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */ toFloat32Array(): Float32Array; /** * The **\`toFloat64Array()\`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (\`m11\`, \`m12\`, \`m13\`, \`m14\`, \`m21\`, \`m22\`, \`m23\`, \`m24\`, \`m31\`, \`m32\`, \`m33\`, \`m34\`, \`m41\`, \`m42\`, \`m43\`, \`m44\`) which comprise the matrix. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */ toFloat64Array(): Float64Array; /** * The **\`toJSON()\`** method of the DOMMatrixReadOnly interface creates and returns a JSON object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON) */ toJSON(): any; /** * The **\`transformPoint\`** method of the You can also create a new \`DOMPoint\` by applying a matrix to a point with the DOMPointReadOnly.matrixTransform() method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */ transformPoint(point?: DOMPointInit): DOMPoint; /** * The \`translate()\` method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */ 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; }; /** * The **\`DOMParser\`** interface provides the ability to parse XML or HTML source code from a string into a DOM Document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser) */ interface DOMParser { /** * The **\`parseFromString()\`** method of the DOMParser interface parses a string containing either HTML or XML, returning an HTMLDocument or an XMLDocument. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString) */ parseFromString(string: string, type: DOMParserSupportedType): Document; } declare var DOMParser: { prototype: DOMParser; new(): DOMParser; }; /** * A **\`DOMPoint\`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */ interface DOMPoint extends DOMPointReadOnly { /** * The **\`DOMPoint\`** interface's **\`w\`** property holds the point's perspective value, w, for a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */ w: number; /** * The **\`DOMPoint\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */ x: number; /** * The **\`DOMPoint\`** interface's **\`y\`** property holds the vertical coordinate, _y_, for a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */ y: number; /** * The **\`DOMPoint\`** interface's **\`z\`** property specifies the depth coordinate of a point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */ z: number; } declare var DOMPoint: { prototype: DOMPoint; new(x?: number, y?: number, z?: number, w?: number): DOMPoint; /** * The **\`fromPoint()\`** static method of the DOMPoint interface creates and returns a new mutable \`DOMPoint\` object given a source point. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPoint; }; type SVGPoint = DOMPoint; declare var SVGPoint: typeof DOMPoint; /** * The **\`DOMPointReadOnly\`** interface specifies the coordinate and perspective fields used by DOMPoint to define a 2D or 3D point in a coordinate system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */ interface DOMPointReadOnly { /** * The **\`DOMPointReadOnly\`** interface's **\`w\`** property holds the point's perspective value, \`w\`, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */ readonly w: number; /** * The **\`DOMPointReadOnly\`** interface's **\`x\`** property holds the horizontal coordinate, x, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */ readonly x: number; /** * The **\`DOMPointReadOnly\`** interface's **\`y\`** property holds the vertical coordinate, y, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */ readonly y: number; /** * The **\`DOMPointReadOnly\`** interface's **\`z\`** property holds the depth coordinate, z, for a read-only point in space. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */ readonly z: number; /** * The **\`matrixTransform()\`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new \`DOMPointReadOnly\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */ matrixTransform(matrix?: DOMMatrixInit): DOMPoint; /** * The DOMPointReadOnly method \`toJSON()\` returns an object giving the \`\`\`js-nolint toJSON() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */ toJSON(): any; } declare var DOMPointReadOnly: { prototype: DOMPointReadOnly; new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly; /** * The static **DOMPointReadOnly** method \`fromPoint()\` creates and returns a new \`DOMPointReadOnly\` object given a source point. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */ fromPoint(other?: DOMPointInit): DOMPointReadOnly; }; /** * A \`DOMQuad\` is a collection of four \`DOMPoint\`s defining the corners of an arbitrary quadrilateral. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */ interface DOMQuad { /** * The **\`DOMQuad\`** interface's **\`p1\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */ readonly p1: DOMPoint; /** * The **\`DOMQuad\`** interface's **\`p2\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */ readonly p2: DOMPoint; /** * The **\`DOMQuad\`** interface's **\`p3\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */ readonly p3: DOMPoint; /** * The **\`DOMQuad\`** interface's **\`p4\`** property holds the DOMPoint object that represents one of the four corners of the \`DOMQuad\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */ readonly p4: DOMPoint; /** * The DOMQuad method \`getBounds()\` returns a DOMRect object representing the smallest rectangle that fully contains the \`DOMQuad\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */ getBounds(): DOMRect; /** * The DOMQuad method \`toJSON()\` returns a \`\`\`js-nolint toJSON() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON) */ 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; }; /** * A **\`DOMRect\`** describes the size and position of a rectangle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */ interface DOMRect extends DOMRectReadOnly { /** * The **\`height\`** property of the DOMRect interface represents the height of the rectangle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height) */ height: number; /** * The **\`width\`** property of the DOMRect interface represents the width of the rectangle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width) */ width: number; /** * The **\`x\`** property of the DOMRect interface represents the x-coordinate of the rectangle, which is the horizontal distance between the viewport's left edge and the rectangle's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/x) */ x: number; /** * The **\`y\`** property of the DOMRect interface represents the y-coordinate of the rectangle, which is the vertical distance between the viewport's top edge and the rectangle's origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/y) */ y: number; } declare var DOMRect: { prototype: DOMRect; new(x?: number, y?: number, width?: number, height?: number): DOMRect; /** * The **\`fromRect()\`** static method of the object with a given location and dimensions. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRect; }; type SVGRect = DOMRect; declare var SVGRect: typeof DOMRect; /** * The **\`DOMRectList\`** interface represents a collection of DOMRect objects, typically used to hold the rectangles associated with a particular element, like bounding boxes returned by methods such as Element.getClientRects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList) */ interface DOMRectList { /** * The read-only **\`length\`** property of the DOMRectList interface returns the number of DOMRect objects in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/length) */ readonly length: number; /** * The DOMRectList method \`item()\` returns the DOMRect at the specified index within the list, or \`null\` if the index is out of range. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectList/item) */ item(index: number): DOMRect | null; [index: number]: DOMRect; } declare var DOMRectList: { prototype: DOMRectList; new(): DOMRectList; }; /** * The **\`DOMRectReadOnly\`** interface specifies the standard properties (also used by DOMRect) to define a rectangle whose properties are immutable. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */ interface DOMRectReadOnly { /** * The **\`bottom\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the bottom coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */ readonly bottom: number; /** * The **\`height\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the height of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */ readonly height: number; /** * The **\`left\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the left coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */ readonly left: number; /** * The **\`right\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the right coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */ readonly right: number; /** * The **\`top\`** read-only property of the **\`DOMRectReadOnly\`** interface returns the top coordinate value of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */ readonly top: number; /** * The **\`width\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the width of the \`DOMRect\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */ readonly width: number; /** * The **\`x\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the x coordinate of the \`DOMRect\`'s origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */ readonly x: number; /** * The **\`y\`** read-only property of the **\`DOMRectReadOnly\`** interface represents the y coordinate of the \`DOMRect\`'s origin. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */ readonly y: number; /** * The DOMRectReadOnly method \`toJSON()\` returns a JSON representation of the \`DOMRectReadOnly\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON) */ toJSON(): any; } declare var DOMRectReadOnly: { prototype: DOMRectReadOnly; new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly; /** * The **\`fromRect()\`** static method of the object with a given location and dimensions. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */ fromRect(other?: DOMRectInit): DOMRectReadOnly; }; /** * The **\`DOMStringList\`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (\`DOMString\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList) */ interface DOMStringList { /** * The read-only **\`length\`** property indicates the number of strings in the DOMStringList. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length) */ readonly length: number; /** * The **\`contains()\`** method returns a boolean indicating whether the given string is in the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains) */ contains(string: string): boolean; /** * The **\`item()\`** method returns a string from a \`DOMStringList\` by index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item) */ item(index: number): string | null; [index: number]: string; } declare var DOMStringList: { prototype: DOMStringList; new(): DOMStringList; }; /** * The **\`DOMStringMap\`** interface is used for the HTMLElement.dataset attribute, to represent data for custom attributes added to elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap) */ interface DOMStringMap { [name: string]: string | undefined; } declare var DOMStringMap: { prototype: DOMStringMap; new(): DOMStringMap; }; /** * The **\`DOMTokenList\`** interface represents a set of space-separated tokens. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList) */ interface DOMTokenList { /** * The read-only **\`length\`** property of the DOMTokenList interface is an \`integer\` representing the number of objects stored in the object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length) */ readonly length: number; /** * The **\`value\`** property of the DOMTokenList interface is a stringifier that returns the value of the list serialized as a string, or clears and sets the list to the given value. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value) */ value: string; toString(): string; /** * The **\`add()\`** method of the DOMTokenList interface adds the given tokens to the list, omitting any that are already present. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add) */ add(...tokens: string[]): void; /** * The **\`contains()\`** method of the DOMTokenList interface returns a boolean value — \`true\` if the underlying list contains the given token, otherwise \`false\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains) */ contains(token: string): boolean; /** * The **\`item()\`** method of the DOMTokenList interface returns an item in the list, determined by its position in the list, its index. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item) */ item(index: number): string | null; /** * The **\`remove()\`** method of the DOMTokenList interface removes the specified _tokens_ from the list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove) */ remove(...tokens: string[]): void; /** * The **\`replace()\`** method of the DOMTokenList interface replaces an existing token with a new token. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace) */ replace(token: string, newToken: string): boolean; /** * The **\`supports()\`** method of the DOMTokenList interface returns \`true\` if a given \`token\` is in the associated attribute's supported tokens. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports) */ supports(token: string): boolean; /** * The **\`toggle()\`** method of the DOMTokenList interface removes an existing token from the list and returns \`false\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle) */ 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; }; /** * The **\`DataTransfer\`** object is used to hold any data transferred between contexts, such as a drag and drop operation, or clipboard read/write. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer) */ interface DataTransfer { /** * The **\`DataTransfer.dropEffect\`** property controls the feedback (typically visual) the user is given during a drag and drop operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect) */ dropEffect: "none" | "copy" | "link" | "move"; /** * The **\`DataTransfer.effectAllowed\`** property specifies the effect that is allowed for a drag operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed) */ effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized"; /** * The **\`files\`** read-only property of \`DataTransfer\` objects is a list of the files in the drag operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files) */ readonly files: FileList; /** * The read-only \`items\` property of the DataTransfer interface is a A DataTransferItemList object containing DataTransferItem objects representing the items being dragged in a drag operation, one list item for each object being dragged. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items) */ readonly items: DataTransferItemList; /** * The **\`DataTransfer.types\`** read-only property returns the available types that exist in the DataTransfer.items. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types) */ readonly types: ReadonlyArray; /** * The **\`DataTransfer.clearData()\`** method removes the drag operation's drag data for the given type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData) */ clearData(format?: string): void; /** * The **\`DataTransfer.getData()\`** method retrieves drag data (as a string) for the specified type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData) */ getData(format: string): string; /** * The **\`DataTransfer.setData()\`** method sets the drag operation's drag data to the specified data and type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData) */ setData(format: string, data: string): void; /** * When a drag occurs, a translucent image is generated from the drag target (the element the HTMLElement/dragstart_event event is fired at), and follows the mouse pointer during the drag. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage) */ setDragImage(image: Element, x: number, y: number): void; } declare var DataTransfer: { prototype: DataTransfer; new(): DataTransfer; }; /** * The **\`DataTransferItem\`** object represents one drag data item. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem) */ interface DataTransferItem { /** * The read-only **\`DataTransferItem.kind\`** property returns the kind–a string or a file–of the DataTransferItem object representing the _drag data item_. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind) */ readonly kind: string; /** * The read-only **\`DataTransferItem.type\`** property returns the type (format) of the DataTransferItem object representing the drag data item. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type) */ readonly type: string; /** * If the item is a file, the **\`DataTransferItem.getAsFile()\`** method returns the drag data item's File object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile) */ getAsFile(): File | null; /** * The **\`DataTransferItem.getAsString()\`** method invokes the given callback with the drag data item's string data as the argument if the item's DataTransferItem.kind is a _Plain unicode string_ (i.e., \`kind\` is \`string\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString) */ getAsString(callback: FunctionStringCallback | null): void; /** * If the item described by the DataTransferItem is a file, \`webkitGetAsEntry()\` returns a FileSystemFileEntry or FileSystemDirectoryEntry representing it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */ webkitGetAsEntry(): FileSystemEntry | null; } declare var DataTransferItem: { prototype: DataTransferItem; new(): DataTransferItem; }; /** * The **\`DataTransferItemList\`** object is a list of DataTransferItem objects representing items being dragged. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList) */ interface DataTransferItemList { /** * The read-only **\`length\`** property of the the drag item list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length) */ readonly length: number; /** * The **\`DataTransferItemList.add()\`** method creates a new list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add) */ add(data: string, type: string): DataTransferItem | null; add(data: File): DataTransferItem | null; /** * The DataTransferItemList method **\`clear()\`** removes all DataTransferItem objects from the drag data items list, leaving the list empty. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear) */ clear(): void; /** * The **\`DataTransferItemList.remove()\`** method removes the less than zero or greater than one less than the length of the list, the list will not be changed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove) */ remove(index: number): void; [index: number]: DataTransferItem; } declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; }; /** * The **\`DecompressionStream\`** interface of the Compression Streams API is an API for decompressing a stream of data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */ interface DecompressionStream extends GenericTransformStream { readonly readable: ReadableStream>; readonly writable: WritableStream; } declare var DecompressionStream: { prototype: DecompressionStream; new(format: CompressionFormat): DecompressionStream; }; /** * The **\`DelayNode\`** interface represents 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode) */ interface DelayNode extends AudioNode { /** * The \`delayTime\` property of the DelayNode interface is an a-rate AudioParam representing the amount of delay to apply. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */ readonly delayTime: AudioParam; } declare var DelayNode: { prototype: DelayNode; new(context: BaseAudioContext, options?: DelayOptions): DelayNode; }; /** * The **\`DeviceMotionEvent\`** interface of the Device Orientation Events provides web developers with information about the speed of changes for the device's position and orientation. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent) */ interface DeviceMotionEvent extends Event { /** * The **\`acceleration\`** read-only property of the DeviceMotionEvent interface returns the acceleration recorded by the device, in meters per second squared (m/s²). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */ readonly acceleration: DeviceMotionEventAcceleration | null; /** * The **\`accelerationIncludingGravity\`** read-only property of the DeviceMotionEvent interface returns the amount of acceleration recorded by the device, in meters per second squared (m/s²). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */ readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null; /** * The **\`interval\`** read-only property of the DeviceMotionEvent interface returns the interval, in milliseconds, at which data is obtained from the underlying hardware. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */ readonly interval: number; /** * The **\`rotationRate\`** read-only property of the DeviceMotionEvent interface returns the rate at which the device is rotating around each of its axes in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */ readonly rotationRate: DeviceMotionEventRotationRate | null; } declare var DeviceMotionEvent: { prototype: DeviceMotionEvent; new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent; }; /** * The **\`DeviceMotionEventAcceleration\`** interface of the Device Orientation Events provides information about the amount of acceleration the device is experiencing along all three axes. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration) */ interface DeviceMotionEventAcceleration { /** * The **\`x\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the X axis in a \`DeviceMotionEventAcceleration\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */ readonly x: number | null; /** * The **\`y\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Y axis in a \`DeviceMotionEventAcceleration\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */ readonly y: number | null; /** * The **\`z\`** read-only property of the DeviceMotionEventAcceleration interface indicates the amount of acceleration that occurred along the Z axis in a \`DeviceMotionEventAcceleration\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */ readonly z: number | null; } /** * A **\`DeviceMotionEventRotationRate\`** interface of the Device Orientation Events provides information about the rate at which the device is rotating around all three axes. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate) */ interface DeviceMotionEventRotationRate { /** * The **\`alpha\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Z axis, in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */ readonly alpha: number | null; /** * The **\`beta\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the X axis, in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */ readonly beta: number | null; /** * The **\`gamma\`** read-only property of the DeviceMotionEventRotationRate interface indicates the rate of rotation around the Y axis, in degrees per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */ readonly gamma: number | null; } /** * The **\`DeviceOrientationEvent\`** interface of the Device Orientation Events provides web developers with information from the physical orientation of the device running the web page. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent) */ interface DeviceOrientationEvent extends Event { /** * The **\`absolute\`** read-only property of the DeviceOrientationEvent interface indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined by the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */ readonly absolute: boolean; /** * The **\`alpha\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Z axis; that is, the number of degrees by which the device is being twisted around the center of the screen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */ readonly alpha: number | null; /** * The **\`beta\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the X axis; that is, the number of degrees, ranged between -180 and 180, by which the device is tipped forward or backward. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */ readonly beta: number | null; /** * The **\`gamma\`** read-only property of the DeviceOrientationEvent interface returns the rotation of the device around the Y axis; that is, the number of degrees, ranged between \`-90\` and \`90\`, by which the device is tilted left or right. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */ 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; } /** * The **\`Document\`** interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document) */ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase { /** * The **\`URL\`** read-only property of the Document interface returns the document location as a string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL) */ readonly URL: string; /** * Returns or sets the color of an active link in the document body. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor) */ alinkColor: string; /** * The Document interface's read-only **\`all\`** property returns an HTMLAllCollection rooted at the document node. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all) */ readonly all: HTMLAllCollection; /** * The **\`anchors\`** read-only property of the An HTMLCollection. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors) */ readonly anchors: HTMLCollectionOf; /** * The **\`applets\`** property of the Document returns an empty HTMLCollection. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets) */ readonly applets: HTMLCollection; /** * The deprecated \`bgColor\` property gets or sets the background color of the current document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor) */ bgColor: string; /** * The **\`Document.body\`** property represents the \`null\` if no such element exists. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body) */ body: HTMLElement; /** * The **\`Document.characterSet\`** read-only property returns the character encoding of the document that it's currently rendered with. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly characterSet: string; /** * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly charset: string; /** * The **\`Document.compatMode\`** read-only property indicates whether the document is rendered in Quirks mode or Standards mode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode) */ readonly compatMode: string; /** * The **\`Document.contentType\`** read-only property returns the MIME type that the document is being rendered as. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType) */ readonly contentType: string; /** * The Document property \`cookie\` lets you read and write cookies associated with the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie) */ cookie: string; /** * The **\`Document.currentScript\`** property returns the script element whose script is currently being processed and isn't a JavaScript module. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript) */ readonly currentScript: HTMLOrSVGScriptElement | null; /** * In browsers, **\`document.defaultView\`** returns the This property is read-only. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView) */ readonly defaultView: (WindowProxy & typeof globalThis) | null; /** * **\`document.designMode\`** controls whether the entire document is editable. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode) */ designMode: string; /** * The **\`Document.dir\`** property is a string representing the directionality of the text of the document, whether left to right (default) or right to left. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir) */ dir: string; /** * The **\`doctype\`** read-only property of the Document interface is a DocumentType object representing the Doctype associated with the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype) */ readonly doctype: DocumentType | null; /** * The **\`documentElement\`** read-only property of the Document interface returns the example, the html element for HTML documents). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement) */ readonly documentElement: HTMLElement; /** * The **\`documentURI\`** read-only property of the A string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI) */ readonly documentURI: string; /** * The **\`domain\`** property of the Document interface gets/sets the domain portion of the origin of the current document, as used by the same-origin policy. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain) */ domain: string; /** * The **\`embeds\`** read-only property of the An HTMLCollection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds) */ readonly embeds: HTMLCollectionOf; /** * **\`fgColor\`** gets/sets the foreground color, or text color, of the current document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor) */ fgColor: string; /** * The **\`forms\`** read-only property of the Document interface returns an HTMLCollection listing all the form elements contained in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms) */ readonly forms: HTMLCollectionOf; /** * The **\`fragmentDirective\`** read-only property of the Document interface returns the FragmentDirective for the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fragmentDirective) */ readonly fragmentDirective: FragmentDirective; /** * The obsolete Document interface's **\`fullscreen\`** read-only property reports whether or not the document is currently displaying content in fullscreen mode. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen) */ readonly fullscreen: boolean; /** * The read-only **\`fullscreenEnabled\`** property on the Document interface indicates whether or not fullscreen mode is available. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled) */ readonly fullscreenEnabled: boolean; /** * The **\`head\`** read-only property of the Document interface returns the head element of the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head) */ readonly head: HTMLHeadElement; /** * The **\`Document.hidden\`** read-only property returns a Boolean value indicating if the page is considered hidden or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */ readonly hidden: boolean; /** * The **\`images\`** read-only property of the Document interface returns a collection of the images in the current HTML document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images) */ readonly images: HTMLCollectionOf; /** * The **\`Document.implementation\`** property returns a A DOMImplementation object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation) */ readonly implementation: DOMImplementation; /** * @deprecated This is a legacy alias of \`characterSet\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet) */ readonly inputEncoding: string; /** * The **\`lastModified\`** property of the Document interface returns a string containing the date and local time on which the current document was last modified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified) */ readonly lastModified: string; /** * The **\`Document.linkColor\`** property gets/sets the color of links within the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor) */ linkColor: string; /** * The **\`links\`** read-only property of the Document interface returns a collection of all area elements and a elements in a document with a value for the href attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links) */ readonly links: HTMLCollectionOf; /** * The **\`Document.location\`** read-only property returns a and provides methods for changing that URL and loading another URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location) */ get location(): Location; set location(href: string); /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */ onfullscreenchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */ onfullscreenerror: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */ onpointerlockchange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */ onpointerlockerror: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event) */ onreadystatechange: ((this: Document, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */ onvisibilitychange: ((this: Document, ev: Event) => any) | null; readonly ownerDocument: null; /** * The read-only **\`pictureInPictureEnabled\`** property of the available. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */ readonly pictureInPictureEnabled: boolean; /** * The **\`plugins\`** read-only property of the containing one or more HTMLEmbedElements representing the An HTMLCollection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins) */ readonly plugins: HTMLCollectionOf; /** * The **\`Document.readyState\`** property describes the loading state of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState) */ readonly readyState: DocumentReadyState; /** * The **\`Document.referrer\`** property returns the URI of the page that linked to this page. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer) */ readonly referrer: string; /** * **\`Document.rootElement\`** returns the Element that is the root element of the document if it is an documents. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement) */ readonly rootElement: SVGSVGElement | null; /** * The **\`scripts\`** property of the Document interface returns a list of the script elements in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts) */ readonly scripts: HTMLCollectionOf; /** * The **\`scrollingElement\`** read-only property of the scrolls the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */ readonly scrollingElement: Element | null; /** * The \`timeline\` readonly property of the Document interface represents the default timeline of the current document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */ readonly timeline: DocumentTimeline; /** * The **\`document.title\`** property gets or sets the current title of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title) */ title: string; /** * The **\`Document.visibilityState\`** read-only property returns the visibility of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */ readonly visibilityState: DocumentVisibilityState; /** * The **\`Document.vlinkColor\`** property gets/sets the color of links that the user has visited in the document. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor) */ vlinkColor: string; /** * **\`Document.adoptNode()\`** transfers a node/dom from another Document into the method's document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode) */ adoptNode(node: T): T; /** @deprecated */ captureEvents(): void; /** * The **\`caretPositionFromPoint()\`** method of the Document interface returns a CaretPosition object, containing the DOM node, along with the caret and caret's character offset within that node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint) */ caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range | null; /** * The **\`Document.clear()\`** method does nothing, but doesn't raise any error. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear) */ clear(): void; /** * The **\`Document.close()\`** method finishes writing to a document, opened with Document.open(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close) */ close(): void; /** * The **\`Document.createAttribute()\`** method creates a new attribute node, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute) */ createAttribute(localName: string): Attr; /** * The **\`Document.createAttributeNS()\`** method creates a new attribute node with the specified namespace URI and qualified name, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */ createAttributeNS(namespace: string | null, qualifiedName: string): Attr; /** * **\`createCDATASection()\`** creates a new CDATA section node, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection) */ createCDATASection(data: string): CDATASection; /** * **\`createComment()\`** creates a new comment node, and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment) */ createComment(data: string): Comment; /** * Creates a new empty DocumentFragment into which DOM nodes can be added to build an offscreen DOM tree. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment) */ createDocumentFragment(): DocumentFragment; /** * In an HTML document, the **\`document.createElement()\`** method creates the HTML element specified by \`localName\`, or an HTMLUnknownElement if \`localName\` isn't recognized. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement) */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; /** @deprecated */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** * Creates an element with the specified namespace URI and qualified name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS) */ 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; /** * Creates an event of the type specified. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */ 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: "ContentVisibilityAutoStateChangeEvent"): ContentVisibilityAutoStateChangeEvent; createEvent(eventInterface: "CookieChangeEvent"): CookieChangeEvent; 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: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent; createEvent(eventInterface: "PageRevealEvent"): PageRevealEvent; createEvent(eventInterface: "PageSwapEvent"): PageSwapEvent; 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: "TextEvent"): TextEvent; createEvent(eventInterface: "ToggleEvent"): ToggleEvent; 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; /** * The **\`Document.createNodeIterator()\`** method returns a new \`NodeIterator\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator) */ createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator; /** * \`createProcessingInstruction()\` generates a new processing instruction node and returns it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction) */ createProcessingInstruction(target: string, data: string): ProcessingInstruction; /** * The **\`Document.createRange()\`** method returns a new \`\`\`js-nolint createRange() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange) */ createRange(): Range; /** * Creates a new Text node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode) */ createTextNode(data: string): Text; /** * The **\`Document.createTreeWalker()\`** creator method returns a newly created TreeWalker object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker) */ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; /** * The **\`execCommand\`** method implements multiple different commands. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand) */ execCommand(commandId: string, showUI?: boolean, value?: string): boolean; /** * The Document method **\`exitFullscreen()\`** requests that the element on this document which is currently being presented in fullscreen mode be taken out of fullscreen mode, restoring the previous state of the screen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen) */ exitFullscreen(): Promise; /** * The **\`exitPictureInPicture()\`** method of the Document interface requests that a video contained in this document, which is currently floating, be taken out of picture-in-picture mode, restoring the previous state of the screen. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */ exitPictureInPicture(): Promise; /** * The **\`exitPointerLock()\`** method of the Document interface asynchronously releases a pointer lock previously requested through Element.requestPointerLock. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */ exitPointerLock(): void; getElementById(elementId: string): HTMLElement | null; /** * The **\`getElementsByClassName\`** method of of all child elements which have all of the given class name(s). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** * The **\`getElementsByName()\`** method of the Document object returns a NodeList Collection of elements with a given \`name\` attribute in the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName) */ getElementsByName(elementName: string): NodeListOf; /** * The **\`getElementsByTagName\`** method of The complete document is searched, including the root node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName) */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** * Returns a list of elements with the given tag name belonging to the given namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS) */ 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; /** * The **\`getSelection()\`** method of the Document interface returns the Selection object associated with this document, representing the range of text selected by the user, or the current position of the caret. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection) */ getSelection(): Selection | null; /** * The **\`hasFocus()\`** method of the Document interface returns a boolean value indicating whether the document or any element inside the document has focus. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus) */ hasFocus(): boolean; /** * The **\`hasStorageAccess()\`** method of the Document interface returns a Promise that resolves with a boolean value indicating whether the document has access to third-party, unpartitioned cookies. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */ hasStorageAccess(): Promise; /** * The Document object's **\`importNode()\`** method creates a copy of a inserted into the current document later. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode) */ importNode(node: T, options?: boolean | ImportNodeOptions): T; /** * The **\`Document.open()\`** method opens a document for This does come with some side effects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open) */ open(unused1?: string, unused2?: string): Document; open(url: string | URL, name: string, features: string): WindowProxy | null; /** * The **\`Document.queryCommandEnabled()\`** method reports whether or not the specified editor command is enabled by the browser. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled) */ queryCommandEnabled(commandId: string): boolean; /** @deprecated */ queryCommandIndeterm(commandId: string): boolean; /** * The **\`queryCommandState()\`** method will tell you if the current selection has a certain Document.execCommand() command applied. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState) */ queryCommandState(commandId: string): boolean; /** * The **\`Document.queryCommandSupported()\`** method reports whether or not the specified editor command is supported by the browser. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported) */ queryCommandSupported(commandId: string): boolean; /** @deprecated */ queryCommandValue(commandId: string): string; /** @deprecated */ releaseEvents(): void; /** * The **\`requestStorageAccess()\`** method of the Document interface allows content loaded in a third-party context (i.e., embedded in an iframe) to request access to third-party cookies and unpartitioned state. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */ requestStorageAccess(): Promise; /** * The **\`startViewTransition()\`** method of the Document interface starts a new same-document (SPA) view transition and returns a ViewTransition object to represent it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/startViewTransition) */ startViewTransition(callbackOptions?: ViewTransitionUpdateCallback | StartViewTransitionOptions): ViewTransition; /** * The **\`write()\`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(). * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write) */ write(...text: string[]): void; /** * The **\`writeln()\`** method of the Document interface writes text in one or more TrustedHTML or string parameters to a document stream opened by document.open(), followed by a newline character. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln) */ writeln(...text: string[]): void; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): null; 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; /** * The **\`parseHTMLUnsafe()\`** static method of the Document object is used to parse an HTML input, optionally filtering unwanted HTML elements and attributes, in order to create a new Document instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/parseHTMLUnsafe_static) */ parseHTMLUnsafe(html: string): Document; }; /** * The **\`DocumentFragment\`** interface represents a minimal document object that has no parent. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment) */ interface DocumentFragment extends Node, NonElementParentNode, ParentNode { readonly ownerDocument: Document; getElementById(elementId: string): HTMLElement | null; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement) */ readonly activeElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */ adoptedStyleSheets: CSSStyleSheet[]; /** * Returns document's fullscreen element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement) */ readonly fullscreenElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */ readonly pictureInPictureElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */ readonly pointerLockElement: Element | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets) */ readonly styleSheets: StyleSheetList; elementFromPoint(x: number, y: number): Element | null; elementsFromPoint(x: number, y: number): Element[]; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */ getAnimations(): Animation[]; } /** * The **\`DocumentTimeline\`** interface of the Web Animations API represents animation timelines, including the default document timeline (accessed via Document.timeline). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */ interface DocumentTimeline extends AnimationTimeline { } declare var DocumentTimeline: { prototype: DocumentTimeline; new(options?: DocumentTimelineOptions): DocumentTimeline; }; /** * The **\`DocumentType\`** interface represents a Node containing a doctype. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType) */ interface DocumentType extends Node, ChildNode { /** * The read-only **\`name\`** property of the DocumentType returns the type of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */ readonly name: string; readonly ownerDocument: Document; /** * The read-only **\`publicId\`** property of the DocumentType returns a formal identifier of the document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */ readonly publicId: string; /** * The read-only **\`systemId\`** property of the DocumentType returns the URL of the associated DTD. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */ readonly systemId: string; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): null; } declare var DocumentType: { prototype: DocumentType; new(): DocumentType; }; /** * The **\`DragEvent\`** interface is a DOM event that represents a drag and drop interaction. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent) */ interface DragEvent extends MouseEvent { /** * The **\`DragEvent.dataTransfer\`** read-only property holds the drag operation's data (as a DataTransfer object). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer) */ readonly dataTransfer: DataTransfer | null; } declare var DragEvent: { prototype: DragEvent; new(type: string, eventInitDict?: DragEventInit): DragEvent; }; /** * The \`DynamicsCompressorNode\` interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are played and multiplexed together at once. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode) */ interface DynamicsCompressorNode extends AudioNode { /** * The \`attack\` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the amount of time, in seconds, required to reduce the gain by 10 dB. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */ readonly attack: AudioParam; /** * The \`knee\` property of the DynamicsCompressorNode interface is a k-rate AudioParam containing a decibel value representing the range above the threshold where the curve smoothly transitions to the compressed portion. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */ readonly knee: AudioParam; /** * The \`ratio\` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of change, in dB, needed in the input for a 1 dB change in the output. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */ readonly ratio: AudioParam; /** * The **\`reduction\`** read-only property of the DynamicsCompressorNode interface is a float representing the amount of gain reduction currently applied by the compressor to the signal. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */ readonly reduction: number; /** * The \`release\` property of the DynamicsCompressorNode interface Is a k-rate AudioParam representing the amount of time, in seconds, required to increase the gain by 10 dB. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */ readonly release: AudioParam; /** * The \`threshold\` property of the DynamicsCompressorNode interface is a k-rate AudioParam representing the decibel value above which the compression will start taking effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */ readonly threshold: AudioParam; } declare var DynamicsCompressorNode: { prototype: DynamicsCompressorNode; new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode; }; /** * The **\`EXT_blend_minmax\`** extension is part of the WebGL API and extends blending capabilities by adding two new blend equations: the minimum or maximum color components of the source and destination colors. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */ interface EXT_blend_minmax { readonly MIN_EXT: 0x8007; readonly MAX_EXT: 0x8008; } /** * The **\`EXT_color_buffer_float\`** extension is part of WebGL and adds the ability to render a variety of floating point formats. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */ interface EXT_color_buffer_float { } /** * The **\`EXT_color_buffer_half_float\`** extension is part of the WebGL API and adds the ability to render to 16-bit floating-point color buffers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_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; } /** * The WebGL API's \`EXT_float_blend\` extension allows blending and draw buffers with 32-bit floating-point components. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */ 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth) */ interface EXT_frag_depth { } /** * The **\`EXT_sRGB\`** extension is part of the WebGL API and adds sRGB support to textures and framebuffer objects. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */ interface EXT_sRGB { readonly SRGB_EXT: 0x8C40; readonly SRGB_ALPHA_EXT: 0x8C42; readonly SRGB8_ALPHA8_EXT: 0x8C43; readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210; } /** * The **\`EXT_shader_texture_lod\`** extension is part of the WebGL API and adds additional texture functions to the OpenGL ES Shading Language which provide the shader writer with explicit control of LOD (Level of detail). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */ interface EXT_shader_texture_lod { } /** * The \`EXT_texture_compression_bptc\` extension is part of the WebGL API and exposes 4 BPTC compressed texture formats. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */ 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; } /** * The \`EXT_texture_compression_rgtc\` extension is part of the WebGL API and exposes 4 RGTC compressed texture formats. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */ 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). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic) */ interface EXT_texture_filter_anisotropic { readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE; readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF; } /** * The **\`EXT_texture_norm16\`** extension is part of the WebGL API and provides a set of new 16-bit signed normalized and unsigned normalized formats (fixed-point texture, renderbuffer and texture buffer). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */ 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 element objects (i.e., objects that represent elements) in a Document inherit. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element) */ interface Element extends Node, ARIAMixin, Animatable, ChildNode, NonDocumentTypeChildNode, ParentNode, Slottable { /** * The **\`Element.attributes\`** property returns a live collection of all attribute nodes registered to the specified node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */ readonly attributes: NamedNodeMap; /** * The **\`Element.classList\`** is a read-only property that returns a live DOMTokenList collection of the \`class\` attributes of the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList) */ get classList(): DOMTokenList; set classList(value: string); /** * The **\`className\`** property of the of the specified element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className) */ className: string; /** * The **\`clientHeight\`** read-only property of the Element interface is zero for elements with no CSS or inline layout boxes; otherwise, it's the inner height of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */ readonly clientHeight: number; /** * The **\`clientLeft\`** read-only property of the Element interface returns the width of the left border of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */ readonly clientLeft: number; /** * The **\`clientTop\`** read-only property of the Element interface returns the width of the top border of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */ readonly clientTop: number; /** * The **\`clientWidth\`** read-only property of the Element interface is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */ readonly clientWidth: number; /** * The **\`currentCSSZoom\`** read-only property of the Element interface provides the 'effective' CSS \`zoom\` of an element, taking into account the zoom applied to the element and all its parent elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/currentCSSZoom) */ readonly currentCSSZoom: number; /** * The **\`id\`** property of the Element interface represents the element's identifier, reflecting the **\`id\`** global attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id) */ id: string; /** * The **\`innerHTML\`** property of the Element interface gets or sets the HTML or XML markup contained within the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */ innerHTML: string; /** * The **\`Element.localName\`** read-only property returns the local part of the qualified name of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName) */ readonly localName: string; /** * The **\`Element.namespaceURI\`** read-only property returns the namespace URI of the element, or \`null\` if the element is not in a namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI) */ readonly namespaceURI: string | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */ onfullscreenchange: ((this: Element, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */ onfullscreenerror: ((this: Element, ev: Event) => any) | null; /** * The **\`outerHTML\`** attribute of the Element DOM interface gets the serialized HTML fragment describing the element including its descendants. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */ outerHTML: string; readonly ownerDocument: Document; /** * The **\`part\`** property of the Element interface represents the part identifier(s) of the element (i.e., set using the \`part\` attribute), returned as a DOMTokenList. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */ get part(): DOMTokenList; set part(value: string); /** * The **\`Element.prefix\`** read-only property returns the namespace prefix of the specified element, or \`null\` if no prefix is specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix) */ readonly prefix: string | null; /** * The **\`scrollHeight\`** read-only property of the Element interface is a measurement of the height of an element's content, including content not visible on the screen due to overflow. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */ readonly scrollHeight: number; /** * The **\`scrollLeft\`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its left edge. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */ scrollLeft: number; /** * The **\`scrollTop\`** property of the Element interface gets or sets the number of pixels by which an element's content is scrolled from its top edge. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */ scrollTop: number; /** * The **\`scrollWidth\`** read-only property of the Element interface is a measurement of the width of an element's content, including content not visible on the screen due to overflow. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */ readonly scrollWidth: number; /** * The \`Element.shadowRoot\` read-only property represents the shadow root hosted by the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * The **\`slot\`** property of the Element interface returns the name of the shadow DOM slot the element is inserted in. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot) */ slot: string; /** * The **\`tagName\`** read-only property of the Element interface returns the tag name of the element on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName) */ readonly tagName: string; /** * The **\`Element.attachShadow()\`** method attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow) */ attachShadow(init: ShadowRootInit): ShadowRoot; /** * The **\`checkVisibility()\`** method of the Element interface checks whether the element is visible. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */ checkVisibility(options?: CheckVisibilityOptions): boolean; /** * The **\`closest()\`** method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest) */ closest(selector: K): HTMLElementTagNameMap[K] | null; closest(selector: K): SVGElementTagNameMap[K] | null; closest(selector: K): MathMLElementTagNameMap[K] | null; closest(selectors: string): E | null; /** * The **\`computedStyleMap()\`** method of the Element interface returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */ computedStyleMap(): StylePropertyMapReadOnly; /** * The **\`getAttribute()\`** method of the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute) */ getAttribute(qualifiedName: string): string | null; /** * The **\`getAttributeNS()\`** method of the Element interface returns the string value of the attribute with the specified namespace and name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS) */ getAttributeNS(namespace: string | null, localName: string): string | null; /** * The **\`getAttributeNames()\`** method of the array. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames) */ getAttributeNames(): string[]; /** * Returns the specified attribute of the specified element, as an Attr node. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */ getAttributeNode(qualifiedName: string): Attr | null; /** * The **\`getAttributeNodeNS()\`** method of the Element interface returns the namespaced Attr node of an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null; /** * The **\`Element.getBoundingClientRect()\`** method returns a position relative to the viewport. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */ getBoundingClientRect(): DOMRect; /** * The **\`getClientRects()\`** method of the Element interface returns a collection of DOMRect objects that indicate the bounding rectangles for each CSS border box in a client. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */ getClientRects(): DOMRectList; /** * The Element method **\`getElementsByClassName()\`** returns a live specified class name or names. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName) */ getElementsByClassName(classNames: string): HTMLCollectionOf; /** * The **\`Element.getElementsByTagName()\`** method returns a live All descendants of the specified element are searched, but not the element itself. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; /** @deprecated */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** * The **\`Element.getElementsByTagNameNS()\`** method returns a live HTMLCollection of elements with the given tag name belonging to the given namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */ 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; /** * The **\`getHTML()\`** method of the Element interface is used to serialize an element's DOM to an HTML string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getHTML) */ getHTML(options?: GetHTMLOptions): string; /** * The **\`Element.hasAttribute()\`** method returns a **Boolean** value indicating whether the specified element has the specified attribute or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute) */ hasAttribute(qualifiedName: string): boolean; /** * The **\`hasAttributeNS()\`** method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS) */ hasAttributeNS(namespace: string | null, localName: string): boolean; /** * The **\`hasAttributes()\`** method of the Element interface returns a boolean value indicating whether the current element has any attributes or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes) */ hasAttributes(): boolean; /** * The **\`hasPointerCapture()\`** method of the pointer capture for the pointer identified by the given pointer ID. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */ hasPointerCapture(pointerId: number): boolean; /** * The **\`insertAdjacentElement()\`** method of the relative to the element it is invoked upon. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */ insertAdjacentElement(where: InsertPosition, element: Element): Element | null; /** * The **\`insertAdjacentHTML()\`** method of the the resulting nodes into the DOM tree at a specified position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */ insertAdjacentHTML(position: InsertPosition, string: string): void; /** * The **\`insertAdjacentText()\`** method of the Element interface, given a relative position and a string, inserts a new text node at the given position relative to the element it is called from. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */ insertAdjacentText(where: InsertPosition, data: string): void; /** * The **\`matches()\`** method of the Element interface tests whether the element would be selected by the specified CSS selector. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ matches(selectors: string): boolean; /** * The **\`releasePointerCapture()\`** method of the previously set for a specific (PointerEvent) _pointer_. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */ releasePointerCapture(pointerId: number): void; /** * The Element method **\`removeAttribute()\`** removes the attribute with the specified name from the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute) */ removeAttribute(qualifiedName: string): void; /** * The **\`removeAttributeNS()\`** method of the If you are working with HTML and you don't need to specify the requested attribute as being part of a specific namespace, use the Element.removeAttribute() method instead. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS) */ removeAttributeNS(namespace: string | null, localName: string): void; /** * The **\`removeAttributeNode()\`** method of the Element interface removes the specified Attr node from the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */ removeAttributeNode(attr: Attr): Attr; /** * The **\`Element.requestFullscreen()\`** method issues an asynchronous request to make the element be displayed in fullscreen mode. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen) */ requestFullscreen(options?: FullscreenOptions): Promise; /** * The **\`requestPointerLock()\`** method of the Element interface lets you asynchronously ask for the pointer to be locked on the given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */ requestPointerLock(options?: PointerLockOptions): Promise; /** * The **\`scroll()\`** method of the Element interface scrolls the element to a particular set of coordinates inside a given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */ scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; /** * The **\`scrollBy()\`** method of the Element interface scrolls an element by the given amount. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */ scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; /** * The Element interface's **\`scrollIntoView()\`** method scrolls the element's ancestor containers such that the element on which \`scrollIntoView()\` is called is visible to the user. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void; /** * The **\`scrollTo()\`** method of the Element interface scrolls to a particular set of coordinates inside a given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */ scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; /** * The **\`setAttribute()\`** method of the Element interface sets the value of an attribute on the specified element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute) */ setAttribute(qualifiedName: string, value: string): void; /** * \`setAttributeNS\` adds a new attribute or changes the value of an attribute with the given namespace and name. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS) */ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void; /** * The **\`setAttributeNode()\`** method of the Element interface adds a new Attr node to the specified element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */ setAttributeNode(attr: Attr): Attr | null; /** * The **\`setAttributeNodeNS()\`** method of the Element interface adds a new namespaced Attr node to an element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */ setAttributeNodeNS(attr: Attr): Attr | null; /** * The **\`setHTMLUnsafe()\`** method of the Element interface is used to parse a string of HTML into a DocumentFragment, optionally filtering out unwanted elements and attributes, and those that don't belong in the context, and then using it to replace the element's subtree in the DOM. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setHTMLUnsafe) */ setHTMLUnsafe(html: string): void; /** * The **\`setPointerCapture()\`** method of the _capture target_ of future pointer events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */ setPointerCapture(pointerId: number): void; /** * The **\`toggleAttribute()\`** method of the present and adding it if it is not present) on the given element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute) */ toggleAttribute(qualifiedName: string, force?: boolean): boolean; /** * @deprecated This is a legacy alias of \`matches\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches) */ webkitMatchesSelector(selectors: string): boolean; /** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) */ get textContent(): string; set textContent(value: string | null); 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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attributeStyleMap) */ readonly attributeStyleMap: StylePropertyMap; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */ get style(): CSSStyleDeclaration; set style(cssText: string); } interface ElementContentEditable { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */ contentEditable: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */ enterKeyHint: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */ inputMode: string; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */ readonly isContentEditable: boolean; } /** * The **\`ElementInternals\`** interface of the Document Object Model gives web developers a way to allow custom elements to fully participate in HTML forms. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */ interface ElementInternals extends ARIAMixin { /** * The **\`form\`** read-only property of the ElementInternals interface returns the HTMLFormElement associated with this element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form) */ readonly form: HTMLFormElement | null; /** * The **\`labels\`** read-only property of the ElementInternals interface returns the labels associated with the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels) */ readonly labels: NodeList; /** * The **\`shadowRoot\`** read-only property of the ElementInternals interface returns the ShadowRoot for this element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot) */ readonly shadowRoot: ShadowRoot | null; /** * The **\`states\`** read-only property of the ElementInternals interface returns a CustomStateSet representing the possible states of the custom element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/states) */ readonly states: CustomStateSet; /** * The **\`validationMessage\`** read-only property of the ElementInternals interface returns the validation message for the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage) */ readonly validationMessage: string; /** * The **\`validity\`** read-only property of the ElementInternals interface returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity) */ readonly validity: ValidityState; /** * The **\`willValidate\`** read-only property of the ElementInternals interface returns \`true\` if the element is a submittable element that is a candidate for constraint validation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate) */ readonly willValidate: boolean; /** * The **\`checkValidity()\`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity) */ checkValidity(): boolean; /** * The **\`reportValidity()\`** method of the ElementInternals interface checks if the element meets any constraint validation rules applied to it. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity) */ reportValidity(): boolean; /** * The **\`setFormValue()\`** method of the ElementInternals interface sets the element's submission value and state, communicating these to the user agent. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue) */ setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void; /** * The **\`setValidity()\`** method of the ElementInternals interface sets the validity of the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity) */ setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void; } declare var ElementInternals: { prototype: ElementInternals; new(): ElementInternals; }; /** * The **\`EncodedAudioChunk\`** interface of the WebCodecs API represents a chunk of encoded audio data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk) */ interface EncodedAudioChunk { /** * The **\`byteLength\`** read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength) */ readonly byteLength: number; /** * The **\`duration\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration) */ readonly duration: number | null; /** * The **\`timestamp\`** read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp) */ readonly timestamp: number; /** * The **\`type\`** read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type) */ readonly type: EncodedAudioChunkType; /** * The **\`copyTo()\`** method of the EncodedAudioChunk interface copies the encoded chunk of audio data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo) */ copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedAudioChunk: { prototype: EncodedAudioChunk; new(init: EncodedAudioChunkInit): EncodedAudioChunk; }; /** * The **\`EncodedVideoChunk\`** interface of the WebCodecs API represents a chunk of encoded video data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */ interface EncodedVideoChunk { /** * The **\`byteLength\`** read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */ readonly byteLength: number; /** * The **\`duration\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */ readonly duration: number | null; /** * The **\`timestamp\`** read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */ readonly timestamp: number; /** * The **\`type\`** read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */ readonly type: EncodedVideoChunkType; /** * The **\`copyTo()\`** method of the EncodedVideoChunk interface copies the encoded chunk of video data. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */ copyTo(destination: AllowSharedBufferSource): void; } declare var EncodedVideoChunk: { prototype: EncodedVideoChunk; new(init: EncodedVideoChunkInit): EncodedVideoChunk; }; /** * The **\`ErrorEvent\`** interface represents events providing information related to errors in scripts or in files. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent) */ interface ErrorEvent extends Event { /** * The **\`colno\`** read-only property of the ErrorEvent interface returns an integer containing the column number of the script file on which the error occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */ readonly colno: number; /** * The **\`error\`** read-only property of the ErrorEvent interface returns a JavaScript value, such as an Error or DOMException, representing the error associated with this event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */ readonly error: any; /** * The **\`filename\`** read-only property of the ErrorEvent interface returns a string containing the name of the script file in which the error occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */ readonly filename: string; /** * The **\`lineno\`** read-only property of the ErrorEvent interface returns an integer containing the line number of the script file on which the error occurred. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */ readonly lineno: number; /** * The **\`message\`** read-only property of the ErrorEvent interface returns a string containing a human-readable error message describing the problem. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */ readonly message: string; } declare var ErrorEvent: { prototype: ErrorEvent; new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent; }; /** * The **\`Event\`** interface represents an event which takes place on an \`EventTarget\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event) */ interface Event { /** * The **\`bubbles\`** read-only property of the Event interface indicates whether the event bubbles up through the DOM tree or not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles) */ readonly bubbles: boolean; /** * The **\`cancelBubble\`** property of the Event interface is deprecated. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble) */ cancelBubble: boolean; /** * The **\`cancelable\`** read-only property of the Event interface indicates whether the event can be canceled, and therefore prevented as if the event never happened. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable) */ readonly cancelable: boolean; /** * The read-only **\`composed\`** property of the or not the event will propagate across the shadow DOM boundary into the standard DOM. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed) */ readonly composed: boolean; /** * The **\`currentTarget\`** read-only property of the Event interface identifies the element to which the event handler has been attached. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget) */ readonly currentTarget: EventTarget | null; /** * The **\`defaultPrevented\`** read-only property of the Event interface returns a boolean value indicating whether or not the call to Event.preventDefault() canceled the event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented) */ readonly defaultPrevented: boolean; /** * The **\`eventPhase\`** read-only property of the being evaluated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase) */ readonly eventPhase: number; /** * The **\`isTrusted\`** read-only property of the when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and \`false\` when the event was dispatched via The only exception is the \`click\` event, which initializes the \`isTrusted\` property to \`false\` in user agents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted) */ readonly isTrusted: boolean; /** * The Event property **\`returnValue\`** indicates whether the default action for this event has been prevented or not. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue) */ returnValue: boolean; /** * The deprecated **\`Event.srcElement\`** is an alias for the Event.target property. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement) */ readonly srcElement: EventTarget | null; /** * The read-only **\`target\`** property of the dispatched. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target) */ readonly target: EventTarget | null; /** * The **\`timeStamp\`** read-only property of the Event interface returns the time (in milliseconds) at which the event was created. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp) */ readonly timeStamp: DOMHighResTimeStamp; /** * The **\`type\`** read-only property of the Event interface returns a string containing the event's type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type) */ readonly type: string; /** * The **\`composedPath()\`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath) */ composedPath(): EventTarget[]; /** * The **\`Event.initEvent()\`** method is used to initialize the value of an event created using Document.createEvent(). * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent) */ initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void; /** * The **\`preventDefault()\`** method of the Event interface tells the user agent that if the event does not get explicitly handled, its default action should not be taken as it normally would be. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) */ preventDefault(): void; /** * The **\`stopImmediatePropagation()\`** method of the If several listeners are attached to the same element for the same event type, they are called in the order in which they were added. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation) */ stopImmediatePropagation(): void; /** * The **\`stopPropagation()\`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) */ 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; }; /** * The **\`EventCounts\`** interface of the Performance API provides the number of events that have been dispatched for each event type. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */ 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; } /** * The **\`EventSource\`** interface is web content's interface to server-sent events. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */ interface EventSource extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */ onerror: ((this: EventSource, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */ onmessage: ((this: EventSource, ev: MessageEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */ onopen: ((this: EventSource, ev: Event) => any) | null; /** * The **\`readyState\`** read-only property of the connection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState) */ readonly readyState: number; /** * The **\`url\`** read-only property of the URL of the source. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url) */ readonly url: string; /** * The **\`withCredentials\`** read-only property of the the \`EventSource\` object was instantiated with CORS credentials set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials) */ readonly withCredentials: boolean; /** * The **\`close()\`** method of the EventSource interface closes the connection, if one is made, and sets the \`\`\`js-nolint close() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close) */ 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; }; /** * The **\`EventTarget\`** interface is implemented by objects that can receive events and may have listeners for them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget) */ interface EventTarget { /** * The **\`addEventListener()\`** method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener) */ addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; /** * The **\`dispatchEvent()\`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent) */ dispatchEvent(event: Event): boolean; /** * The **\`removeEventListener()\`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener) */ 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; }; /** * The **\`File\`** interface provides information about files and allows JavaScript in a web page to access their content. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File) */ interface File extends Blob { /** * The **\`lastModified\`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */ readonly lastModified: number; /** * The **\`name\`** read-only property of the File interface returns the name of the file represented by a File object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */ readonly name: string; /** * The **\`webkitRelativePath\`** read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an input element with its \`webkitdirectory\` attribute set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */ readonly webkitRelativePath: string; } declare var File: { prototype: File; new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; }; /** * The **\`FileList\`** interface represents an object of this type returned by the \`files\` property of the HTML input element; this lets you access the list of files selected with the \`\` element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList) */ interface FileList { /** * The **\`length\`** read-only property of the FileList interface returns the number of files in the \`FileList\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */ readonly length: number; /** * The **\`item()\`** method of the FileList interface returns a File object representing the file at the specified index in the file list. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */ 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; } /** * The **\`FileReader\`** interface 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader) */ interface FileReader extends EventTarget { /** * The **\`error\`** read-only property of the FileReader interface returns the error that occurred while reading the file. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */ readonly error: DOMException | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */ onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */ onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */ onload: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */ onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */ onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */ onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null; /** * The **\`readyState\`** read-only property of the FileReader interface provides the current state of the reading operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */ readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE; /** * The **\`result\`** read-only property of the FileReader interface returns the file's contents. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */ readonly result: string | ArrayBuffer | null; /** * The **\`abort()\`** method of the FileReader interface aborts the read operation. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */ abort(): void; /** * The **\`readAsArrayBuffer()\`** method of the FileReader interface is used to start reading the contents of a specified Blob or File. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */ readAsArrayBuffer(blob: Blob): void; /** * The **\`readAsBinaryString()\`** method of the FileReader interface is used to start reading the contents of the specified Blob or File. * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString) */ readAsBinaryString(blob: Blob): void; /** * The **\`readAsDataURL()\`** method of the FileReader interface is used to read the contents of the specified file's data as a base64 encoded string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */ readAsDataURL(blob: Blob): void; /** * The **\`readAsText()\`** method of the FileReader interface is used to read the contents of the specified Blob or File. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */ 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; }; /** * The File and Directory Entries API interface **\`FileSystem\`** is used to represent a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */ interface FileSystem { /** * The read-only **\`name\`** property of the string is unique among all file systems currently exposed by the File and Directory Entries API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */ readonly name: string; /** * The read-only **\`root\`** property of the object representing the root directory of the file system, for use with the File and Directory Entries API. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */ readonly root: FileSystemDirectoryEntry; } declare var FileSystem: { prototype: FileSystem; new(): FileSystem; }; /** * The **\`FileSystemDirectoryEntry\`** interface of the File and Directory Entries API represents a directory in a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */ interface FileSystemDirectoryEntry extends FileSystemEntry { /** * The FileSystemDirectoryEntry interface's method **\`createReader()\`** returns a the directory. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */ createReader(): FileSystemDirectoryReader; /** * The FileSystemDirectoryEntry interface's method **\`getDirectory()\`** returns a somewhere within the directory subtree rooted at the directory on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */ getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; /** * The FileSystemDirectoryEntry interface's method **\`getFile()\`** returns a within the directory subtree rooted at the directory on which it's called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */ getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryEntry: { prototype: FileSystemDirectoryEntry; new(): FileSystemDirectoryEntry; }; /** * The **\`FileSystemDirectoryHandle\`** interface of the File System API provides a handle to a file system directory. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle) */ interface FileSystemDirectoryHandle extends FileSystemHandle { readonly kind: "directory"; /** * The **\`getDirectoryHandle()\`** method of the within the directory handle on which the method is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */ getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise; /** * The **\`getFileHandle()\`** method of the directory the method is called. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */ getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise; /** * The **\`removeEntry()\`** method of the directory handle contains a file or directory called the name specified. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */ removeEntry(name: string, options?: FileSystemRemoveOptions): Promise; /** * The **\`resolve()\`** method of the directory names from the parent handle to the specified child entry, with the name of the child entry as the last array item. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */ resolve(possibleDescendant: FileSystemHandle): Promise; } declare var FileSystemDirectoryHandle: { prototype: FileSystemDirectoryHandle; new(): FileSystemDirectoryHandle; }; /** * The \`FileSystemDirectoryReader\` interface of the File and Directory Entries API lets you access the FileSystemFileEntry-based objects (generally FileSystemFileEntry or FileSystemDirectoryEntry) representing each entry in a directory. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */ interface FileSystemDirectoryReader { /** * The FileSystemDirectoryReader interface's **\`readEntries()\`** method retrieves the directory entries within the directory being read and delivers them in an array to a provided callback function. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */ readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemDirectoryReader: { prototype: FileSystemDirectoryReader; new(): FileSystemDirectoryReader; }; /** * The **\`FileSystemEntry\`** interface of the File and Directory Entries API represents a single entry in a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */ interface FileSystemEntry { /** * The read-only **\`filesystem\`** property of the FileSystemEntry interface contains a resides. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */ readonly filesystem: FileSystem; /** * The read-only **\`fullPath\`** property of the FileSystemEntry interface returns a string specifying the full, absolute path from the file system's root to the file represented by the entry. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */ readonly fullPath: string; /** * The read-only **\`isDirectory\`** property of the FileSystemEntry interface is \`true\` if the entry represents a directory (meaning it's a FileSystemDirectoryEntry) and \`false\` if it's not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */ readonly isDirectory: boolean; /** * The read-only **\`isFile\`** property of the FileSystemEntry interface is \`true\` if the entry represents a file (meaning it's a FileSystemFileEntry) and \`false\` if it's not. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */ readonly isFile: boolean; /** * The read-only **\`name\`** property of the FileSystemEntry interface returns a string specifying the entry's name; this is the entry within its parent directory (the last component of the path as indicated by the FileSystemEntry.fullPath property). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */ readonly name: string; /** * The FileSystemEntry interface's method **\`getParent()\`** obtains a \`\`\`js-nolint getParent(successCallback, errorCallback) getParent(successCallback) \`\`\` - \`successCallback\` - : A function which is called when the parent directory entry has been retrieved. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */ getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemEntry: { prototype: FileSystemEntry; new(): FileSystemEntry; }; /** * The **\`FileSystemFileEntry\`** interface of the File and Directory Entries API represents a file in a file system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */ interface FileSystemFileEntry extends FileSystemEntry { /** * The FileSystemFileEntry interface's method **\`file()\`** returns a the directory entry. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */ file(successCallback: FileCallback, errorCallback?: ErrorCallback): void; } declare var FileSystemFileEntry: { prototype: FileSystemFileEntry; new(): FileSystemFileEntry; }; /** * The **\`FileSystemFileHandle\`** interface of the File System API represents a handle to a file system entry. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle) */ interface FileSystemFileHandle extends FileSystemHandle { readonly kind: "file"; /** * The **\`createWritable()\`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */ createWritable(options?: FileSystemCreateWritableOptions): Promise; /** * The **\`getFile()\`** method of the If the file on disk changes or is removed after this method is called, the returned \`\`\`js-nolint getFile() \`\`\` None. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */ getFile(): Promise; } declare var FileSystemFileHandle: { prototype: FileSystemFileHandle; new(): FileSystemFileHandle; }; /** * The **\`FileSystemHandle\`** interface of the File System API is an object which represents a file or directory entry. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle) */ interface FileSystemHandle { /** * The **\`kind\`** read-only property of the \`'file'\` if the associated entry is a file or \`'directory'\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */ readonly kind: FileSystemHandleKind; /** * The **\`name\`** read-only property of the handle. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */ readonly name: string; /** * The **\`isSameEntry()\`** method of the \`\`\`js-nolint isSameEntry(fileSystemHandle) \`\`\` - FileSystemHandle - : The \`FileSystemHandle\` to match against the handle on which the method is invoked. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */ isSameEntry(other: FileSystemHandle): Promise; } declare var FileSystemHandle: { prototype: FileSystemHandle; new(): FileSystemHandle; }; /** * The **\`FileSystemWritableFileStream\`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream) */ interface FileSystemWritableFileStream extends WritableStream { /** * The **\`seek()\`** method of the FileSystemWritableFileStream interface updates the current file cursor offset to the position (in bytes) specified when calling the method. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */ seek(position: number): Promise; /** * The **\`truncate()\`** method of the FileSystemWritableFileStream interface resizes the file associated with the stream to the specified size in bytes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */ truncate(size: number): Promise; /** * The **\`write()\`** method of the FileSystemWritableFileStream interface writes content into the file the method is called on, at the current file cursor offset. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */ write(data: FileSystemWriteChunkType): Promise; } declare var FileSystemWritableFileStream: { prototype: FileSystemWritableFileStream; new(): FileSystemWritableFileStream; }; /** * The **\`FocusEvent\`** interface represents focus-related events, including Element/focus_event, Element/blur_event, Element/focusin_event, and Element/focusout_event. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent) */ interface FocusEvent extends UIEvent { /** * The **\`relatedTarget\`** read-only property of the FocusEvent interface is the secondary target, depending on the type of event:
Event name target relatedTarget
Element/blur_event The EventTarget losing focus The EventTarget receiving focus (if any).
Element/focus_event The EventTarget receiving focus The EventTarget losing focus (if any)
Element/focusin_event The EventTarget receiving focus The EventTarget losing focus (if any)
Element/focusout_event The EventTarget losing focus The EventTarget receiving focus (if any)
Note that many elements can't have focus, which is a common reason for \`relatedTarget\` to be \`null\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */ readonly relatedTarget: EventTarget | null; } declare var FocusEvent: { prototype: FocusEvent; new(type: string, eventInitDict?: FocusEventInit): FocusEvent; }; /** * The **\`FontFace\`** interface of the CSS Font Loading API represents a single usable font face. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */ interface FontFace { /** * The **\`ascentOverride\`** property of the FontFace interface returns and sets the ascent metric for the font, the height above the baseline that CSS uses to lay out line boxes in an inline formatting context. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */ ascentOverride: string; /** * The **\`descentOverride\`** property of the FontFace interface returns and sets the value of the @font-face/descent-override descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */ descentOverride: string; /** * The **\`display\`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */ display: FontDisplay; /** * The **\`FontFace.family\`** property allows the author to get or set the font family of a FontFace object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */ family: string; /** * The **\`featureSettings\`** property of the FontFace interface retrieves or sets infrequently used font features that are not available from a font's variant properties. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */ featureSettings: string; /** * The **\`lineGapOverride\`** property of the FontFace interface returns and sets the value of the @font-face/line-gap-override descriptor. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */ lineGapOverride: string; /** * The **\`loaded\`** read-only property of the FontFace interface returns a Promise that resolves with the current \`FontFace\` object when the font specified in the object's constructor is done loading or rejects with a \`SyntaxError\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */ readonly loaded: Promise; /** * The **\`status\`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of \`'unloaded'\`, \`'loading'\`, \`'loaded'\`, or \`'error'\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */ readonly status: FontFaceLoadStatus; /** * The **\`stretch\`** property of the FontFace interface retrieves or sets how the font stretches. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */ stretch: string; /** * The **\`style\`** property of the FontFace interface retrieves or sets the font's style. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */ style: string; /** * The **\`unicodeRange\`** property of the FontFace interface retrieves or sets the range of unicode code points encompassing the font. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */ unicodeRange: string; /** * The **\`weight\`** property of the FontFace interface retrieves or sets the weight of the font. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */ weight: string; /** * The **\`load()\`** method of the FontFace interface requests and loads a font whose \`source\` was specified as a URL. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ load(): Promise; } declare var FontFace: { prototype: FontFace; new(family: string, source: string | BufferSource, descriptors?: FontFaceDescriptors): FontFace; }; interface FontFaceSetEventMap { "loading": FontFaceSetLoadEvent; "loadingdone": FontFaceSetLoadEvent; "loadingerror": FontFaceSetLoadEvent; } /** * The **\`FontFaceSet\`** interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */ interface FontFaceSet extends EventTarget { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */ onloading: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */ onloadingdone: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */ onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null; /** * The \`ready\` read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */ readonly ready: Promise; /** * The **\`status\`** read-only property of the FontFaceSet interface returns the loading state of the fonts in the set. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */ readonly status: FontFaceSetLoadStatus; /** * The \`check()\` method of the FontFaceSet returns \`true\` if you can render some text using the given font specification without attempting to use any fonts in this \`FontFaceSet\` that are not yet fully loaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */ check(font: string, text?: string): boolean; /** * The \`load()\` method of the FontFaceSet forces all the fonts given in parameters to be loaded. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */ 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(): FontFaceSet; }; /** * The **\`FontFaceSetLoadEvent\`** interface of the CSS Font Loading API represents events fired at a FontFaceSet after it starts loading font faces. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */ interface FontFaceSetLoadEvent extends Event { /** * The **\`fontfaces\`** read-only property of the An array of FontFace instance. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */ readonly fontfaces: ReadonlyArray; } declare var FontFaceSetLoadEvent: { prototype: FontFaceSetLoadEvent; new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent; }; interface FontFaceSource { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */ readonly fonts: FontFaceSet; } /** * The **\`FormData\`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the Window/fetch, XMLHttpRequest.send() or navigator.sendBeacon() methods. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData) */ interface FormData { /** * The **\`append()\`** method of the FormData interface appends a new value onto an existing key inside a \`FormData\` object, or adds the key if it does not already exist. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */ append(name: string, value: string | Blob): void; append(name: string, value: string): void; append(name: string, blobValue: Blob, filename?: string): void; /** * The **\`delete()\`** method of the FormData interface deletes a key and its value(s) from a \`FormData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */ delete(name: string): void; /** * The **\`get()\`** method of the FormData interface returns the first value associated with a given key from within a \`FormData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */ get(name: string): FormDataEntryValue | null; /** * The **\`getAll()\`** method of the FormData interface returns all the values associated with a given key from within a \`FormData\` object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */ getAll(name: string): FormDataEntryValue[]; /** * The **\`has()\`** method of the FormData interface returns whether a \`FormData\` object contains a certain key. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */ has(name: string): boolean; /** * The **\`set()\`** method of the FormData interface sets a new value for an existing key inside a \`FormData\` object, or adds the key/value if it does not already exist. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */ set(name: string, value: string | Blob): void; set(name: string, value: string): void; set(name: string, blobValue: Blob, filename?: string): void; forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void; } declare var FormData: { prototype: FormData; new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData; }; /** * The **\`FormDataEvent\`** interface represents a \`formdata\` event — such an event is fired on an HTMLFormElement object after the entry list representing the form's data is constructed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */ interface FormDataEvent extends Event { /** * The \`formData\` read-only property of the FormDataEvent interface contains the FormData object representing the data contained in the form when the event was fired. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData) */ readonly formData: FormData; } declare var FormDataEvent: { prototype: FormDataEvent; new(type: string, eventInitDict: FormDataEventInit): FormDataEvent; }; /** * The **\`FragmentDirective\`** interface is an object exposed to allow code to check whether or not a browser supports text fragments. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/FragmentDirective) */ interface FragmentDirective { } declare var FragmentDirective: { prototype: FragmentDirective; new(): FragmentDirective; }; /** * The **\`GPUError\`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the GPUDevice.uncapturederror_event event. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError) */ interface GPUError { /** * The **\`message\`** read-only property of the A string. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError/message) */ readonly message: string; } /** * The \`GainNode\` interface represents a change in volume. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode) */ interface GainNode extends AudioNode { /** * The \`gain\` property of the GainNode interface is an a-rate AudioParam representing the amount of gain to apply. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */ readonly gain: AudioParam; } declare var GainNode: { prototype: GainNode; new(context: BaseAudioContext, options?: GainOptions): GainNode; }; /** * The **\`Gamepad\`** interface of the Gamepad API defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad) */ interface Gamepad { /** * The **\`Gamepad.axes\`** property of the Gamepad interface returns an array representing the controls with axes present on the device (e.g., analog thumb sticks). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */ readonly axes: ReadonlyArray; /** * The **\`buttons\`** property of the Gamepad interface returns an array of GamepadButton objects representing the buttons present on the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */ readonly buttons: ReadonlyArray; /** * The **\`Gamepad.connected\`** property of the still connected to the system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */ readonly connected: boolean; /** * The **\`Gamepad.id\`** property of the Gamepad interface returns a string containing some information about the controller. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */ readonly id: string; /** * The **\`Gamepad.index\`** property of the Gamepad interface returns an integer that is auto-incremented to be unique for each device currently connected to the system. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */ readonly index: number; /** * The **\`Gamepad.mapping\`** property of the remapped the controls on the device to a known layout. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */ readonly mapping: GamepadMappingType; /** * The **\`Gamepad.timestamp\`** property of the representing the last time the data for this gamepad was updated. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */ readonly timestamp: DOMHighResTimeStamp; /** * The **\`vibrationActuator\`** read-only property of the Gamepad interface returns a GamepadHapticActuator object, which represents haptic feedback hardware available on the controller. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/vibrationActuator) */ readonly vibrationActuator: GamepadHapticActuator; } declare var Gamepad: { prototype: Gamepad; new(): Gamepad; }; /** * The **\`GamepadButton\`** interface defines 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton) */ interface GamepadButton { /** * The **\`GamepadButton.pressed\`** property of the the button is currently pressed (\`true\`) or unpressed (\`false\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */ readonly pressed: boolean; /** * The **\`touched\`** property of the a button capable of detecting touch is currently touched (\`true\`) or not touched (\`false\`). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */ readonly touched: boolean; /** * The **\`GamepadButton.value\`** property of the current state of analog buttons on many modern gamepads, such as the triggers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */ readonly value: number; } declare var GamepadButton: { prototype: GamepadButton; new(): GamepadButton; }; /** * The GamepadEvent interface of the Gamepad API contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected_event and Window.gamepaddisconnected_event are fired in response to. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent) */ interface GamepadEvent extends Event { /** * The **\`GamepadEvent.gamepad\`** property of the **GamepadEvent interface** returns a Gamepad object, providing access to the associated gamepad data for fired A Gamepad object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */ readonly gamepad: Gamepad; } declare var GamepadEvent: { prototype: GamepadEvent; new(type: string, eventInitDict: GamepadEventInit): GamepadEvent; }; /** * The **\`GamepadHapticActuator\`** interface of the Gamepad API represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator) */ interface GamepadHapticActuator { /** * The **\`playEffect()\`** method of the GamepadHapticActuator interface causes the hardware to play a specific vibration effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/playEffect) */ playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise; /** * The **\`reset()\`** method of the GamepadHapticActuator interface stops the hardware from playing an active vibration effect. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/reset) */ reset(): Promise; } declare var GamepadHapticActuator: { prototype: GamepadHapticActuator; new(): GamepadHapticActuator; }; interface GenericTransformStream { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */ readonly readable: ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */ readonly writable: WritableStream; } /** * The **\`Geolocation\`** interface represents an object able to obtain the position of the device programmatically. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation) */ interface Geolocation { /** * The **\`clearWatch()\`** method of the Geolocation interface is used to unregister location/error monitoring handlers previously installed using Geolocation.watchPosition(). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */ clearWatch(watchId: number): void; /** * The **\`getCurrentPosition()\`** method of the Geolocation interface is used to get the current position of the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */ getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void; /** * The **\`watchPosition()\`** method of the Geolocation interface is used to register a handler function that will be called automatically each time the position of the device changes. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */ watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number; } declare var Geolocation: { prototype: Geolocation; new(): Geolocation; }; /** * The **\`GeolocationCoordinates\`** interface represents the position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates) */ interface GeolocationCoordinates { /** * The **\`accuracy\`** read-only property of the GeolocationCoordinates interface is a strictly positive \`double\` representing the accuracy, with a 95% confidence level, of the GeolocationCoordinates.latitude and GeolocationCoordinates.longitude properties expressed in meters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */ readonly accuracy: number; /** * The **\`altitude\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the altitude of the position in meters above the WGS84 ellipsoid (which defines the nominal sea level surface). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */ readonly altitude: number | null; /** * The **\`altitudeAccuracy\`** read-only property of the GeolocationCoordinates interface is a strictly positive \`double\` representing the accuracy, with a 95% confidence level, of the \`altitude\` expressed in meters. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */ readonly altitudeAccuracy: number | null; /** * The **\`heading\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the direction in which the device is traveling. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */ readonly heading: number | null; /** * The **\`latitude\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the latitude of the position in decimal degrees. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */ readonly latitude: number; /** * The **\`longitude\`** read-only property of the GeolocationCoordinates interface is a number which represents the longitude of a geographical position, specified in decimal degrees. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */ readonly longitude: number; /** * The **\`speed\`** read-only property of the GeolocationCoordinates interface is a \`double\` representing the velocity of the device in meters per second. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */ readonly speed: number | null; /** * The **\`toJSON()\`** method of the GeolocationCoordinates interface is a Serialization; it returns a JSON representation of the GeolocationCoordinates object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/toJSON) */ toJSON(): any; } declare var GeolocationCoordinates: { prototype: GeolocationCoordinates; new(): GeolocationCoordinates; }; /** * The **\`GeolocationPosition\`** interface represents the position of the concerned device at a given time. * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition) */ interface GeolocationPosition { /** * The **\`coords\`** read-only property of the GeolocationPosition interface returns a GeolocationCoordinates object representing a geographic position. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */ readonly coords: GeolocationCoordinates; /** * The **\`timestamp\`** read-only property of the GeolocationPosition interface represents the date and time that the position was acquired by the device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */ readonly timestamp: EpochTimeStamp; /** * The **\`toJSON()\`** method of the GeolocationPosition interface is a Serialization; it returns a JSON representation of the GeolocationPosition object. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/toJSON) */ toJSON(): any; } declare var GeolocationPosition: { prototype: GeolocationPosition; new(): GeolocationPosition; }; /** * The **\`GeolocationPositionError\`** interface represents the reason of an error occurring when using the geolocating device. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */ interface GeolocationPositionError { /** * The **\`code\`** read-only property of the GeolocationPositionError interface is an \`unsigned short\` representing the error code. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */ readonly code: number; /** * The **\`message\`** read-only property of the GeolocationPositionError interface returns a human-readable string describing the details of the error. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */ 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": PointerEvent; "beforeinput": InputEvent; "beforematch": Event; "beforetoggle": ToggleEvent; "blur": FocusEvent; "cancel": Event; "canplay": Event; "canplaythrough": Event; "change": Event; "click": PointerEvent; "close": Event; "compositionend": CompositionEvent; "compositionstart": CompositionEvent; "compositionupdate": CompositionEvent; "contextlost": Event; "contextmenu": PointerEvent; "contextrestored": Event; "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; "pointerrawupdate": Event; "pointerup": PointerEvent; "progress": ProgressEvent; "ratechange": Event; "reset": Event; "resize": UIEvent; "scroll": Event; "scrollend": Event; "securitypolicyviolation": SecurityPolicyViolationEvent; "seeked": Event; "seeking": Event; "select": Event; "selectionchange": Event; "selectstart": Event; "slotchange": Event; "stalled": Event; "submit": SubmitEvent; "suspend": Event; "timeupdate": Event; "toggle": ToggleEvent; "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 { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event) */ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforematch_event) */ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event) */ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event) */ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event) */ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event) */ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextlost_event) */ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event) */ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/contextrestored_event) */ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event) */ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event) */ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event) */ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event) */ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event) */ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event) */ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event) */ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event) */ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event) */ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event) */ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event) */ onerror: OnErrorEventHandler; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event) */ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */ oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event) */ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** * @deprecated * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event) */ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event) */ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/load_event) */ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event) */ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event) */ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event) */ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/lostpointercapture_event) */ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event) */ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event) */ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event) */ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event) */ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event) */ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event) */ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event) */ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event) */ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** * Available only in secure contexts. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerrawupdate_event) */ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event) */ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event) */ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event) */ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event) */ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event) */ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event) */ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event) */ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event) */ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event) */ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event) */ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/toggle_event) */ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event) */ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event) */ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationend\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationiteration\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`onanimationstart\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** * @deprecated This is a legacy alias of \`ontransitionend\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */ 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; } /** * The **\`HTMLAllCollection\`** interface represents a collection of _all_ of the document's elements, accessible by index (like an array) and by the element's \`id\`. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */ interface HTMLAllCollection { /** * The **\`HTMLAllCollection.length\`** property returns the number of items in this HTMLAllCollection. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length) */ readonly length: number; /** * The **\`item()\`** method of the HTMLAllCollection interface returns the element located at the specified offset into the collection, or the element with the specified value for its \`id\` or \`name\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item) */ item(nameOrIndex?: string): HTMLCollection | Element | null; /** * The **\`namedItem()\`** method of the HTMLAllCollection interface returns the first Element in the collection whose \`id\` or \`name\` attribute matches the specified name, or \`null\` if no element matches. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem) */ namedItem(name: string): HTMLCollection | Element | null; [index: number]: Element; } declare var HTMLAllCollection: { prototype: HTMLAllCollection; new(): HTMLAllCollection; }; /** * The **\`HTMLAnchorElement\`** interface represents 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. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement) */ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils { /** @deprecated */ charset: string; /** @deprecated */ coords: string; /** * The **\`HTMLAnchorElement.download\`** property is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */ download: string; /** * The **\`hreflang\`** property of the HTMLAnchorElement interface is a string that is the language of the linked resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang) */ hreflang: string; /** @deprecated */ name: string; /** * The **\`ping\`** property of the HTMLAnchorElement interface is a space-separated list of URLs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/ping) */ ping: string; /** * The **\`HTMLAnchorElement.referrerPolicy\`** property reflect the HTML \`referrerpolicy\` attribute of the A string; one of the following: - \`no-referrer\` - : The Referer header will be omitted entirely. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */ referrerPolicy: string; /** * The **\`HTMLAnchorElement.rel\`** property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel) */ rel: string; /** * The **\`HTMLAnchorElement.relList\`** read-only property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */ get relList(): DOMTokenList; set relList(value: string); /** @deprecated */ rev: string; /** @deprecated */ shape: string; /** * The **\`target\`** property of the HTMLAnchorElement interface is a string that indicates where to display the linked resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target) */ target: string; /** * The **\`text\`** property of the HTMLAnchorElement represents the text inside the element. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text) */ text: string; /** * The **\`type\`** property of the HTMLAnchorElement interface is a string that indicates the MIME type of the linked resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */ 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; }; /** * The **\`HTMLAreaElement\`** interface 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 area elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement) */ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils { /** * The **\`alt\`** property of the HTMLAreaElement interface specifies the text of the hyperlink, defining the textual label for an image map's link. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt) */ alt: string; /** * The **\`coords\`** property of the HTMLAreaElement interface specifies the coordinates of the element's shape as a list of floating-point numbers. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords) */ coords: string; /** * The **\`download\`** property of the HTMLAreaElement interface is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */ download: string; /** @deprecated */ noHref: boolean; /** * The **\`ping\`** property of the HTMLAreaElement interface is a space-separated list of URLs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/ping) */ ping: string; /** * The **\`HTMLAreaElement.referrerPolicy\`** property reflect the HTML \`referrerpolicy\` attribute of the resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */ referrerPolicy: string; /** * The **\`HTMLAreaElement.rel\`** property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */ rel: string; /** * The **\`HTMLAreaElement.relList\`** read-only property reflects the \`rel\` attribute. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */ get relList(): DOMTokenList; set relList(value: string); /** * The **\`shape\`** property of the HTMLAreaElement interface specifies the shape of an image map area. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape) */ shape: string; /** * The **\`target\`** property of the HTMLAreaElement interface is a string that indicates where to display the linked resource. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target) */ 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; }; /** * The **\`HTMLAudioElement\`** interface provides access to the properties of audio elements, as well as methods to manipulate them. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement) */ interface HTMLAudioElement extends HTMLMediaElement { addEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAudioElement: { prototype: HTMLAudioElement; new(): HTMLAudioElement; }; /** * The **\`HTMLBRElement\`** interface represents an HTML line break element (br). * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement) */ interface HTMLBRElement extends HTMLElement { /** @deprecated */ clear: string; addEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLBRElement: { prototype: HTMLBRElement; new(): HTMLBRElement; }; /** * The **\`HTMLBaseElement\`** interface contains the base URI for a document. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement) */ interface HTMLBaseElement extends HTMLElement { /** * The **\`href\`** property of the HTMLBaseElement interface contains a string that is the URL to use as the base for relative URLs. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href) */ href: string; /** * The \`target\` property of the HTMLBaseElement interface is a string that represents the default target tab to show the resulting output for hyperlinks and form elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target) */ target: string; addEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLBaseElement: { prototype: HTMLBaseElement; new(): HTMLBaseElement; }; interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap { } /** * The **\`HTMLBodyElement\`** interface provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating body elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement) */ interface HTMLBodyElement extends HTMLElement, WindowEventHandlers { /** @deprecated */ aLink: string; /** @deprecated */ background: string; /** @deprecated */ bgColor: string; /** @deprecated */ link: string; /** @deprecated */ text: string; /** @deprecated */ vLink: string; addEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLBodyElement: { prototype: HTMLBodyElement; new(): HTMLBodyElement; }; /** * The **\`HTMLButtonElement\`** interface provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating button elements. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement) */ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement { /** * The **\`HTMLButtonElement.disabled\`** property indicates whether the control is disabled, meaning that it does not accept any clicks. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */ disabled: boolean; /** * The **\`form\`** read-only property of the HTMLButtonElement interface returns an HTMLFormElement object that owns this button, or \`null\` if this button is not owned by any form. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form) */ readonly form: HTMLFormElement | null; /** * The **\`formAction\`** property of the HTMLButtonElement interface is the URL of the program that is executed on the server when the form that owns this control is submitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction) */ formAction: string; /** * The **\`formEnctype\`** property of the HTMLButtonElement interface is the MIME_type of the content sent to the server when the form is submitted. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype) */ formEnctype: string; /** * The **\`formMethod\`** property of the HTMLButtonElement interface is the HTTP method used to submit the form if the button element is the control that submits the form. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod) */ formMethod: string; /** * The **\`formNoValidate\`** property of the HTMLButtonElement interface is a boolean value indicating if the form will bypass constraint validation when submitted via the button. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate) */ formNoValidate: boolean; /** * The **\`formTarget\`** property of the HTMLButtonElement interface is the tab, window, or iframe where the response of the submitted form is to be displayed. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget) */ formTarget: string; /** * The **\`HTMLButtonElement.labels\`** read-only property returns a A NodeList containing the \`