react-online/public/script/typescript@5.3.3.min.js
2023-12-22 20:21:49 +08:00

6 lines
3.2 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";var ts=(()=>{var e,t,n,r,i,o,a,s,c,l,_,u,d,p,f=Object.defineProperty,m=Object.getOwnPropertyNames,g=(e,t)=>function(){return e&&(t=(0,e[m(e)[0]])(e=0)),t},h=(e,t)=>{for(var n in t)f(e,n,{get:t[n],enumerable:!0})},y=g({"src/compiler/corePublic.ts"(){e="5.3",t="5.3.3",n=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(n||{})}});function v(e){return e?e.length:0}function b(e,t){if(e)for(let n=0;n<e.length;n++){const r=t(e[n],n);if(r)return r}}function x(e,t){if(e)for(let n=e.length-1;n>=0;n--){const r=t(e[n],n);if(r)return r}}function S(e,t){if(void 0!==e)for(let n=0;n<e.length;n++){const r=t(e[n],n);if(void 0!==r)return r}}function k(e,t){for(const n of e){const e=t(n);if(void 0!==e)return e}}function T(e,t,n){let r=n;if(e){let n=0;for(const i of e)r=t(r,i,n),n++}return r}function C(e,t,n){const r=[];Sn.assertEqual(e.length,t.length);for(let i=0;i<e.length;i++)r.push(n(e[i],t[i],i));return r}function w(e,t){if(e.length<=1)return e;const n=[];for(let r=0,i=e.length;r<i;r++)r&&n.push(t),n.push(e[r]);return n}function N(e,t){if(e)for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function D(e,t,n){if(void 0!==e)for(let r=n??0;r<e.length;r++){const n=e[r];if(t(n,r))return n}}function F(e,t,n){if(void 0!==e)for(let r=n??e.length-1;r>=0;r--){const n=e[r];if(t(n,r))return n}}function P(e,t,n){if(void 0===e)return-1;for(let r=n??0;r<e.length;r++)if(t(e[r],r))return r;return-1}function E(e,t,n){if(void 0===e)return-1;for(let r=n??e.length-1;r>=0;r--)if(t(e[r],r))return r;return-1}function A(e,t){for(let n=0;n<e.length;n++){const r=t(e[n],n);if(r)return r}return Sn.fail()}function I(e,t,n=Ft){if(e)for(const r of e)if(n(r,t))return!0;return!1}function O(e,t,n=Ft){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}function L(e,t,n){for(let r=n||0;r<e.length;r++)if(I(t,e.charCodeAt(r)))return r;return-1}function j(e,t){let n=0;if(e)for(let r=0;r<e.length;r++){t(e[r],r)&&n++}return n}function M(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;if(r<n){const i=e.slice(0,r);for(r++;r<n;){const n=e[r];t(n)&&i.push(n),r++}return i}}return e}function R(e,t){let n=0;for(let r=0;r<e.length;r++)t(e[r],r,e)&&(e[n]=e[r],n++);e.length=n}function B(e){e.length=0}function J(e,t){let n;if(e){n=[];for(let r=0;r<e.length;r++)n.push(t(e[r],r))}return n}function*z(e,t){for(const n of e)yield t(n)}function q(e,t){if(e)for(let n=0;n<e.length;n++){const r=e[n],i=t(r,n);if(r!==i){const r=e.slice(0,n);for(r.push(i),n++;n<e.length;n++)r.push(t(e[n],n));return r}}return e}function U(e){const t=[];for(const n of e)n&&(_t(n)?be(t,n):t.push(n));return t}function V(e,t){let n;if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);i&&(n=_t(i)?be(n,i):he(n,i))}return n||r}function W(e,t){const n=[];if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);i&&(_t(i)?be(n,i):n.push(i))}return n}function*H(e,t){for(const n of e){const e=t(n);e&&(yield*e)}}function $(e,t){let n;if(e)for(let r=0;r<e.length;r++){const i=e[r],o=t(i,r);(n||i!==o||_t(o))&&(n||(n=e.slice(0,r)),_t(o)?be(n,o):n.push(o))}return n||e}function K(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r],r);if(void 0===i)return;n.push(i)}return n}function G(e,t){const n=[];if(e)for(let r=0;r<e.length;r++){const i=t(e[r],r);void 0!==i&&n.push(i)}return n}function*X(e,t){for(const n of e){const e=t(n);void 0!==e&&(yield e)}}function Q(e,t){if(!e)return;const n=new Map;return e.forEach(((e,r)=>{const i=t(r,e);if(void 0!==i){const[e,t]=i;void 0!==e&&void 0!==t&&n.set(e,t)}})),n}function Y(e,t,n){if(e.has(t))return e.get(t);const r=n();return e.set(t,r),r}function Z(e,t){return!e.has(t)&&(e.add(t),!0)}function*ee(e){yield e}function te(e,t,n){let r;if(e){r=[];const i=e.length;let o,a,s=0,c=0;for(;s<i;){for(;c<i;){if(a=t(e[c],c),0===c)o=a;else if(a!==o)break;c++}if(s<c){const t=n(e.slice(s,c),o,s,c);t&&r.push(t),s=c}o=a,c++}}return r}function ne(e,t){if(!e)return;const n=new Map;return e.forEach(((e,r)=>{const[i,o]=t(r,e);n.set(i,o)})),n}function re(e,t){if(e){if(!t)return e.length>0;for(const n of e)if(t(n))return!0}return!1}function ie(e,t,n){let r;for(let i=0;i<e.length;i++)t(e[i])?r=void 0===r?i:r:void 0!==r&&(n(r,i),r=void 0);void 0!==r&&n(r,e.length)}function oe(e,t){return re(t)?re(e)?[...e,...t]:t:e}function ae(e,t){return t}function se(e){return e.map(ae)}function ce(e,t,n){return 0===e.length?[]:1===e.length?e.slice():n?function(e,t,n){const r=se(e);ke(e,r,n);let i=e[r[0]];const o=[r[0]];for(let n=1;n<r.length;n++){const a=r[n],s=e[a];t(i,s)||(o.push(a),i=s)}return o.sort(),o.map((t=>e[t]))}(e,t,n):function(e,t){const n=[];for(const r of e)xe(n,r,t);return n}(e,t)}function le(){return[]}function _e(e,t,n,r){if(0===e.length)return e.push(t),!0;const i=Re(e,t,bt,n);return i<0?(e.splice(~i,0,t),!0):!!r&&(e.splice(i,0,t),!0)}function ue(e,t,n){return function(e,t){if(0===e.length)return r;let n=e[0];const i=[n];for(let r=1;r<e.length;r++){const o=e[r];switch(t(o,n)){case!0:case 0:continue;case-1:return Sn.fail("Array is unsorted.")}i.push(n=o)}return i}(Te(e,t),n||t||Rt)}function de(e,t){if(e.length<2)return!0;for(let n=1,r=e.length;n<r;n++)if(1===t(e[n-1],e[n]))return!1;return!0}function pe(e,t,n,r){let i=3;if(e.length<2)return i;let o=t(e[0]);for(let a=1,s=e.length;a<s&&0!==i;a++){const s=t(e[a]);1&i&&n(o,s)>0&&(i&=-2),2&i&&r(o,s)>0&&(i&=-3),o=s}return i}function fe(e,t,n=Ft){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r],r))return!1;return!0}function me(e){let t;if(e)for(let n=0;n<e.length;n++){const r=e[n];!t&&r||(t||(t=e.slice(0,n)),r&&t.push(r))}return t||e}function ge(e,t,n){if(!t||!e||0===t.length||0===e.length)return t;const r=[];e:for(let i=0,o=0;o<t.length;o++){o>0&&Sn.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;i<e.length;i++)switch(i>a&&Sn.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[o],e[i])){case-1:r.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return r}function he(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function ye(e,t){return void 0===e?t:void 0===t?e:_t(e)?_t(t)?oe(e,t):he(e,t):_t(t)?he(t,e):[e,t]}function ve(e,t){return t<0?e.length+t:t}function be(e,t,n,r){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(n,r);n=void 0===n?0:ve(t,n),r=void 0===r?t.length:ve(t,r);for(let i=n;i<r&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function xe(e,t,n){return!I(e,t,n)&&(e.push(t),!0)}function Se(e,t,n){return e?(xe(e,t,n),e):[t]}function ke(e,t,n){t.sort(((t,r)=>n(e[t],e[r])||It(t,r)))}function Te(e,t){return 0===e.length?e:e.slice().sort(t)}function*Ce(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function we(e,t){const n=se(e);return ke(e,n,t),n.map((t=>e[t]))}function Ne(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0}function De(e){return void 0===e||0===e.length?void 0:e[0]}function Fe(e){if(e)for(const t of e)return t}function Pe(e){return Sn.assert(0!==e.length),e[0]}function Ee(e){for(const t of e)return t;Sn.fail("iterator is empty")}function Ae(e){return void 0===e||0===e.length?void 0:e[e.length-1]}function Ie(e){return Sn.assert(0!==e.length),e[e.length-1]}function Oe(e){return e&&1===e.length?e[0]:void 0}function Le(e){return Sn.checkDefined(Oe(e))}function je(e){return e&&1===e.length?e[0]:e}function Me(e,t,n){const r=e.slice(0);return r[t]=n,r}function Re(e,t,n,r,i){return Be(e,n(t),n,r,i)}function Be(e,t,n,r,i){if(!re(e))return-1;let o=i||0,a=e.length-1;for(;o<=a;){const i=o+(a-o>>1);switch(r(n(e[i],i),t)){case-1:o=i+1;break;case 0:return i;case 1:a=i-1}}return~o}function Je(e,t,n,r,i){if(e&&e.length>0){const o=e.length;if(o>0){let a=void 0===r||r<0?0:r;const s=void 0===i||a+i>o-1?o-1:a+i;let c;for(arguments.length<=2?(c=e[a],a++):c=n;a<=s;)c=t(c,e[a],a),a++;return c}}return n}function ze(e,t){return c.call(e,t)}function qe(e,t){return c.call(e,t)?e[t]:void 0}function Ue(e){const t=[];for(const n in e)c.call(e,n)&&t.push(n);return t}function Ve(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const e of n)xe(t,e)}while(e=Object.getPrototypeOf(e));return t}function We(e){const t=[];for(const n in e)c.call(e,n)&&t.push(e[n]);return t}function He(e,t){const n=new Array(e);for(let r=0;r<e;r++)n[r]=t(r);return n}function $e(e,t){const n=[];for(const r of e)n.push(t?t(r):r);return n}function Ke(e,...t){for(const n of t)if(void 0!==n)for(const t in n)ze(n,t)&&(e[t]=n[t]);return e}function Ge(e,t,n=Ft){if(e===t)return!0;if(!e||!t)return!1;for(const r in e)if(c.call(e,r)){if(!c.call(t,r))return!1;if(!n(e[r],t[r]))return!1}for(const n in t)if(c.call(t,n)&&!c.call(e,n))return!1;return!0}function Xe(e,t,n=bt){const r=new Map;for(const i of e){const e=t(i);void 0!==e&&r.set(e,n(i))}return r}function Qe(e,t,n=bt){const r=[];for(const i of e)r[t(i)]=n(i);return r}function Ye(e,t,n=bt){const r=ot();for(const i of e)r.add(t(i),n(i));return r}function Ze(e,t,n=bt){return $e(Ye(e,t).values(),n)}function et(e,t){const n={};if(e)for(const r of e){const e=`${t(r)}`;(n[e]??(n[e]=[])).push(r)}return n}function tt(e){const t={};for(const n in e)c.call(e,n)&&(t[n]=e[n]);return t}function nt(e,t){const n={};for(const e in t)c.call(t,e)&&(n[e]=t[e]);for(const t in e)c.call(e,t)&&(n[t]=e[t]);return n}function rt(e,t){for(const n in t)c.call(t,n)&&(e[n]=t[n])}function it(e,t){return t?t.bind(e):void 0}function ot(){const e=new Map;return e.add=at,e.remove=st,e}function at(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}function st(e,t){const n=this.get(e);n&&(en(n,t),n.length||this.delete(e))}function ct(e){const t=(null==e?void 0:e.slice())||[];let n=0;function r(){return n===t.length}return{enqueue:function(...e){t.push(...e)},dequeue:function(){if(r())throw new Error("Queue is empty");const e=t[n];if(t[n]=void 0,n++,n>100&&n>t.length>>1){const e=t.length-n;t.copyWithin(0,n),t.length=e,n=0}return e},isEmpty:r}}function lt(e,t){const n=new Map;let r=0;function*i(){for(const e of n.values())_t(e)?yield*e:yield e}const o={has(r){const i=e(r);if(!n.has(i))return!1;const o=n.get(i);if(!_t(o))return t(o,r);for(const e of o)if(t(e,r))return!0;return!1},add(i){const o=e(i);if(n.has(o)){const e=n.get(o);if(_t(e))I(e,i,t)||(e.push(i),r++);else{const a=e;t(a,i)||(n.set(o,[a,i]),r++)}}else n.set(o,i),r++;return this},delete(i){const o=e(i);if(!n.has(o))return!1;const a=n.get(o);if(_t(a)){for(let e=0;e<a.length;e++)if(t(a[e],i))return 1===a.length?n.delete(o):2===a.length?n.set(o,a[1-e]):Zt(a,e),r--,!0}else{if(t(a,i))return n.delete(o),r--,!0}return!1},clear(){n.clear(),r=0},get size(){return r},forEach(e){for(const t of $e(n.values()))if(_t(t))for(const n of t)e(n,n,o);else{e(t,t,o)}},keys:()=>i(),values:()=>i(),*entries(){for(const e of i())yield[e,e]},[Symbol.iterator]:()=>i(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function _t(e){return Array.isArray(e)}function ut(e){return _t(e)?e:[e]}function dt(e){return"string"==typeof e}function pt(e){return"number"==typeof e}function ft(e,t){return void 0!==e&&t(e)?e:void 0}function mt(e,t){return void 0!==e&&t(e)?e:Sn.fail(`Invalid cast. The supplied value ${e} did not pass the test '${Sn.getFunctionName(t)}'.`)}function gt(e){}function ht(){return!1}function yt(){return!0}function vt(){}function bt(e){return e}function xt(e){return e.toLowerCase()}function St(e){return l.test(e)?e.replace(l,xt):e}function kt(){throw new Error("Not implemented")}function Tt(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Ct(e){const t=new Map;return n=>{const r=`${typeof n}:${n}`;let i=t.get(r);return void 0!==i||t.has(r)||(i=e(n),t.set(r,i)),i}}function wt(e){const t=new WeakMap;return n=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(n),t.set(n,r)),r}}function Nt(e,t){return(...n)=>{let r=t.get(n);return void 0!==r||t.has(n)||(r=e(...n),t.set(n,r)),r}}function Dt(e,t,n,r,i){if(i){const e=[];for(let t=0;t<arguments.length;t++)e[t]=arguments[t];return t=>Je(e,((e,t)=>t(e)),t)}return r?i=>r(n(t(e(i)))):n?r=>n(t(e(r))):t?n=>t(e(n)):e?t=>e(t):e=>e}function Ft(e,t){return e===t}function Pt(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function Et(e,t){return Ft(e,t)}function At(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function It(e,t){return At(e,t)}function Ot(e,t){return It(null==e?void 0:e.start,null==t?void 0:t.start)||It(null==e?void 0:e.length,null==t?void 0:t.length)}function Lt(e,t){return Je(e,((e,n)=>-1===t(e,n)?e:n))}function jt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function Mt(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toLowerCase())<(t=t.toLowerCase())?-1:e>t?1:0}function Rt(e,t){return At(e,t)}function Bt(e){return e?jt:Rt}function Jt(){return p}function zt(e){p!==e&&(p=e,d=void 0)}function qt(e,t){return(d||(d=u(p)))(e,t)}function Ut(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])}function Vt(e,t){return It(e?1:0,t?1:0)}function Wt(e,t,n){const r=Math.max(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1;for(const a of t){const t=n(a);if(void 0!==t&&Math.abs(t.length-e.length)<=r){if(t===e)continue;if(t.length<3&&t.toLowerCase()!==e.toLowerCase())continue;const n=Ht(e,t,o-.1);if(void 0===n)continue;Sn.assert(n<o),o=n,i=a}}return i}function Ht(e,t,n){let r=new Array(t.length+1),i=new Array(t.length+1);const o=n+.01;for(let e=0;e<=t.length;e++)r[e]=e;for(let a=1;a<=e.length;a++){const s=e.charCodeAt(a-1),c=Math.ceil(a>n?a-n:1),l=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let _=a;for(let e=1;e<c;e++)i[e]=o;for(let n=c;n<=l;n++){const o=e[a-1].toLowerCase()===t[n-1].toLowerCase()?r[n-1]+.1:r[n-1]+2,c=s===t.charCodeAt(n-1)?r[n-1]:Math.min(r[n]+1,i[n-1]+1,o);i[n]=c,_=Math.min(_,c)}for(let e=l+1;e<=t.length;e++)i[e]=o;if(_>n)return;const u=r;r=i,i=u}const a=r[t.length];return a>n?void 0:a}function $t(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function Kt(e,t){return $t(e,t)?e.slice(0,e.length-t.length):e}function Gt(e,t){return $t(e,t)?e.slice(0,e.length-t.length):void 0}function Xt(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)||110!==r&&78!==r)break;if(--n,r=e.charCodeAt(n),105!==r&&73!==r)break;if(--n,r=e.charCodeAt(n),109!==r&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)}function Qt(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return Yt(e,n),!0;return!1}function Yt(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function Zt(e,t){e[t]=e[e.length-1],e.pop()}function en(e,t){return function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return Zt(e,n),!0;return!1}(e,(e=>e===t))}function tn(e){return e?bt:St}function nn({prefix:e,suffix:t}){return`${e}*${t}`}function rn(e,t){return Sn.assert(ln(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function on(e,t,n){let r,i=-1;for(const o of e){const e=t(o);ln(e,n)&&e.prefix.length>i&&(i=e.prefix.length,r=o)}return r}function an(e,t){return 0===e.lastIndexOf(t,0)}function sn(e,t){return an(e,t)?e.substr(t.length):e}function cn(e,t,n=bt){return an(n(e),n(t))?e.substring(t.length):void 0}function ln({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&an(n,e)&&$t(n,t)}function _n(e,t){return n=>e(n)&&t(n)}function un(...e){return(...t)=>{let n;for(const r of e)if(n=r(...t),n)return n;return n}}function dn(e){return(...t)=>!e(...t)}function pn(e){}function fn(e){return void 0===e?void 0:[e]}function mn(e,t,n,r,i,o){o=o||gt;let a=0,s=0;const c=e.length,l=t.length;let _=!1;for(;a<c&&s<l;){const c=e[a],l=t[s],u=n(c,l);-1===u?(r(c),a++,_=!0):1===u?(i(l),s++,_=!0):(o(l,c),a++,s++)}for(;a<c;)r(e[a++]),_=!0;for(;s<l;)i(t[s++]),_=!0;return _}function gn(e){const t=[];return hn(e,t,void 0,0),t}function hn(e,t,n,r){for(const i of e[r]){let o;n?(o=n.slice(),o.push(i)):o=[i],r===e.length-1?t.push(o):hn(e,t,o,r+1)}}function yn(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(0,r)}}function vn(e,t){if(e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(r)}}function bn(){return"undefined"!=typeof process&&!!process.nextTick&&!process.browser&&"object"==typeof module}var xn,Sn,kn,Tn,Cn,wn,Nn,Dn,Fn,Pn,En,An,In,On,Ln,jn,Mn=g({"src/compiler/core.ts"(){OK(),r=[],i=new Map,o=new Set,a=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(a||{}),s=Array.prototype.at?(e,t)=>null==e?void 0:e.at(t):(e,t)=>{if(e&&(t=ve(e,t))<e.length)return e[t]},c=Object.prototype.hasOwnProperty,l=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,_=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(_||{}),u=function(e){const t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return(e,n)=>function(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=n(e,t);return r<0?-1:r>0?1:0}(e,n,t)}}}),Rn=g({"src/compiler/debug.ts"(){OK(),OK(),xn=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(xn||{}),(e=>{let t=0;function n(t){return e.currentLogLevel<=t}function r(t,r){e.loggingHost&&n(t)&&e.loggingHost.log(t,r)}function i(e){r(3,e)}var o;e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=n,e.log=i,(o=i=e.log||(e.log={})).error=function(e){r(1,e)},o.warn=function(e){r(2,e)},o.log=function(e){r(3,e)},o.trace=function(e){r(4,e)};const a={};function s(e){return t>=e}function c(t,n){return!!s(t)||(a[n]={level:t,assertion:e[n]},e[n]=gt,!1)}function l(e,t){const n=new Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||l),n}function _(e,t,n,r){e||(t=t?`False expression: ${t}`:"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),l(t,r||_))}function u(e,t,n){null==e&&l(t,n||u)}function d(e,t,n){for(const r of e)u(r,t,n||d)}function p(e,t="Illegal value:",n){return l(`${t} ${"object"==typeof e&&ze(e,"kind")&&ze(e,"pos")?"SyntaxKind: "+y(e.kind):JSON.stringify(e)}`,n||p)}function f(e){}function m(e){if("function"!=typeof e)return"";if(ze(e,"name"))return e.name;{const t=Function.prototype.toString.call(e),n=/^function\s+([\w$]+)\s*\(/.exec(t);return n?n[1]:""}}function g(e=0,t,n){const r=function(e){const t=h.get(e);if(t)return t;const n=[];for(const t in e){const r=e[t];"number"==typeof r&&n.push([r,t])}const r=we(n,((e,t)=>It(e[0],t[0])));return h.set(e,r),r}(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){const t=[];let n=e;for(const[i,o]of r){if(i>e)break;0!==i&&i&e&&(t.push(o),n&=~i)}if(0===n)return t.join("|")}else for(const[t,n]of r)if(t===e)return n;return e.toString()}e.getAssertionLevel=function(){return t},e.setAssertionLevel=function(n){const r=t;if(t=n,n>r)for(const t of Ue(a)){const r=a[t];void 0!==r&&e[t]!==r.assertion&&n>=r.level&&(e[t]=r,a[t]=void 0)}},e.shouldAssert=s,e.fail=l,e.failBadSyntaxKind=function e(t,n,r){return l(`${n||"Unexpected node."}\r\nNode ${y(t.kind)} was unexpected.`,r||e)},e.assert=_,e.assertEqual=function e(t,n,r,i,o){if(t!==n){l(`Expected ${t} === ${n}. ${r?i?`${r} ${i}`:r:""}`,o||e)}},e.assertLessThan=function e(t,n,r,i){t>=n&&l(`Expected ${t} < ${n}. ${r||""}`,i||e)},e.assertLessThanOrEqual=function e(t,n,r){t>n&&l(`Expected ${t} <= ${n}`,r||e)},e.assertGreaterThanOrEqual=function e(t,n,r){t<n&&l(`Expected ${t} >= ${n}`,r||e)},e.assertIsDefined=u,e.checkDefined=function e(t,n,r){return u(t,n,r||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,n,r){return d(t,n,r||e),t},e.assertNever=p,e.assertEachNode=function e(t,n,r,i){c(1,"assertEachNode")&&_(void 0===n||N(t,n),r||"Unexpected node.",(()=>`Node array did not pass test '${m(n)}'.`),i||e)},e.assertNode=function e(t,n,r,i){c(1,"assertNode")&&_(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${m(n)}'.`),i||e)},e.assertNotNode=function e(t,n,r,i){c(1,"assertNotNode")&&_(void 0===t||void 0===n||!n(t),r||"Unexpected node.",(()=>`Node ${y(t.kind)} should not have passed test '${m(n)}'.`),i||e)},e.assertOptionalNode=function e(t,n,r,i){c(1,"assertOptionalNode")&&_(void 0===n||void 0===t||n(t),r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${m(n)}'.`),i||e)},e.assertOptionalToken=function e(t,n,r,i){c(1,"assertOptionalToken")&&_(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",(()=>`Node ${y(null==t?void 0:t.kind)} was not a '${y(n)}' token.`),i||e)},e.assertMissingNode=function e(t,n,r){c(1,"assertMissingNode")&&_(void 0===t,n||"Unexpected node.",(()=>`Node ${y(t.kind)} was unexpected'.`),r||e)},e.type=f,e.getFunctionName=m,e.formatSymbol=function(e){return`{ name: ${Nc(e.escapedName)}; flags: ${k(e.flags)}; declarations: ${J(e.declarations,(e=>y(e.kind)))} }`},e.formatEnum=g;const h=new Map;function y(e){return g(e,Ir,!1)}function v(e){return g(e,Or,!0)}function b(e){return g(e,Lr,!0)}function x(e){return g(e,Ji,!0)}function S(e){return g(e,qi,!0)}function k(e){return g(e,ii,!0)}function T(e){return g(e,li,!0)}function w(e){return g(e,hi,!0)}function D(e){return g(e,_i,!0)}function F(e){return g(e,Jr,!0)}e.formatSyntaxKind=y,e.formatSnippetKind=function(e){return g(e,zi,!1)},e.formatScriptKind=function(e){return g(e,Oi,!1)},e.formatNodeFlags=v,e.formatModifierFlags=b,e.formatTransformFlags=x,e.formatEmitFlags=S,e.formatSymbolFlags=k,e.formatTypeFlags=T,e.formatSignatureFlags=w,e.formatObjectFlags=D,e.formatFlowFlags=F,e.formatRelationComparisonResult=function(e){return g(e,Mr,!0)},e.formatCheckMode=function(e){return g(e,xB,!0)},e.formatSignatureCheckMode=function(e){return g(e,SB,!0)},e.formatTypeFacts=function(e){return g(e,vB,!0)};let P,E,A=!1;function I(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){const e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${F(t)})`:""}`}},__debugFlowFlags:{get(){return g(this.flags,Jr,!0)}},__debugToString:{value(){return j(this)}}})}function O(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>`NodeArray ${e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}`}})}e.attachFlowNodeDebugInfo=function(e){A&&("function"==typeof Object.setPrototypeOf?(P||(P=Object.create(Object.prototype),I(P)),Object.setPrototypeOf(e,P)):I(e))},e.attachNodeArrayDebugInfo=function(e){A&&("function"==typeof Object.setPrototypeOf?(E||(E=Object.create(Array.prototype),O(E)),Object.setPrototypeOf(e,E)):O(e))},e.enableDebugInfo=function(){if(A)return;const e=new WeakMap,t=new WeakMap;Object.defineProperties(Ed.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${Pc(this)}'${t?` (${k(t)})`:""}`}},__debugFlags:{get(){return k(this.flags)}}}),Object.defineProperties(Ed.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${Pc(this.symbol)}'`:""}${t?` (${D(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?D(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(Ed.getSignatureConstructor().prototype,{__debugFlags:{get(){return w(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Ed.getNodeConstructor(),Ed.getIdentifierConstructor(),Ed.getTokenConstructor(),Ed.getSourceFileConstructor()];for(const e of n)ze(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${a_(this)?"GeneratedIdentifier":HN(this)?`Identifier '${Dc(this)}'`:$N(this)?`PrivateIdentifier '${Dc(this)}'`:FN(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:NN(this)?`NumericLiteral ${this.text}`:DN(this)?`BigIntLiteral ${this.text}n`:lD(this)?"TypeParameterDeclaration":_D(this)?"ParameterDeclaration":hD(this)?"ConstructorDeclaration":yD(this)?"GetAccessorDeclaration":vD(this)?"SetAccessorDeclaration":bD(this)?"CallSignatureDeclaration":xD(this)?"ConstructSignatureDeclaration":SD(this)?"IndexSignatureDeclaration":kD(this)?"TypePredicateNode":TD(this)?"TypeReferenceNode":CD(this)?"FunctionTypeNode":wD(this)?"ConstructorTypeNode":ND(this)?"TypeQueryNode":DD(this)?"TypeLiteralNode":FD(this)?"ArrayTypeNode":PD(this)?"TupleTypeNode":AD(this)?"OptionalTypeNode":ID(this)?"RestTypeNode":OD(this)?"UnionTypeNode":LD(this)?"IntersectionTypeNode":jD(this)?"ConditionalTypeNode":MD(this)?"InferTypeNode":RD(this)?"ParenthesizedTypeNode":BD(this)?"ThisTypeNode":JD(this)?"TypeOperatorNode":zD(this)?"IndexedAccessTypeNode":qD(this)?"MappedTypeNode":UD(this)?"LiteralTypeNode":ED(this)?"NamedTupleMember":VD(this)?"ImportTypeNode":y(this.kind)}${this.flags?` (${v(this.flags)})`:""}`}},__debugKind:{get(){return y(this.kind)}},__debugNodeFlags:{get(){return v(this.flags)}},__debugModifierFlags:{get(){return b(Eb(this))}},__debugTransformFlags:{get(){return x(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Tc(this)}},__debugEmitFlags:{get(){return S(tf(this))}},__debugGetText:{value(e){if(Xy(this))return"";let n=t.get(this);if(void 0===n){const r=Cc(this),i=r&&Cp(r);n=i?Gp(i,r,e):"",t.set(this,n)}return n}}});A=!0},e.formatVariance=function(e){const t=7&e;let n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};class L{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return C(this.sources,this.targets||J(this.sources,(()=>"any")),((e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`)).join(", ");case 2:return C(this.sources,this.targets,((e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`)).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split("\n").join("\n ")}\nm2: ${this.mapper2.__debugToString().split("\n").join("\n ")}`;default:return p(this)}}}function j(e){let t,n=-1;function r(e){return e.id||(e.id=n,n--),e.id}var i;let o;var a;(i=t||(t={})).lr="─",i.ud="│",i.dr="╭",i.dl="╮",i.ul="╯",i.ur="╰",i.udr="├",i.udl="┤",i.dlr="┬",i.ulr="┴",i.udlr="╫",(a=o||(o={}))[a.None=0]="None",a[a.Up=1]="Up",a[a.Down=2]="Down",a[a.Left=4]="Left",a[a.Right=8]="Right",a[a.UpDown=3]="UpDown",a[a.LeftRight=12]="LeftRight",a[a.UpLeft=5]="UpLeft",a[a.UpRight=9]="UpRight",a[a.DownLeft=6]="DownLeft",a[a.DownRight=10]="DownRight",a[a.UpDownLeft=7]="UpDownLeft",a[a.UpDownRight=11]="UpDownRight",a[a.UpLeftRight=13]="UpLeftRight",a[a.DownLeftRight=14]="DownLeftRight",a[a.UpDownLeftRight=15]="UpDownLeftRight",a[a.NoChildren=16]="NoChildren";const s=2032,c=882,l=Object.create(null),_=[],u=[],d=h(e,new Set);for(const e of _)e.text=x(e.flowNode,e.circular),v(e);const p=function e(t){let n=0;for(const r of m(t))n=Math.max(n,e(r));return n+1}(d),f=function(e){const t=k(Array(e),0);for(const e of _)t[e.level]=Math.max(t[e.level],e.text.length);return t}(p);return function e(t,n){if(-1===t.lane){t.lane=n,t.endLane=n;const r=m(t);for(let i=0;i<r.length;i++){i>0&&n++;const o=r[i];e(o,n),o.endLane>t.endLane&&(n=o.endLane)}t.endLane=n}}(d,0),function(){const e=f.length,t=_.reduce(((e,t)=>Math.max(e,t.lane)),0)+1,n=k(Array(t),""),r=f.map((()=>Array(t))),i=f.map((()=>k(Array(t),0)));for(const e of _){r[e.level][e.lane]=e;const t=m(e);for(let n=0;n<t.length;n++){const r=t[n];let o=8;r.lane===e.lane&&(o|=4),n>0&&(o|=1),n<t.length-1&&(o|=2),i[e.level][r.lane]|=o}0===t.length&&(i[e.level][e.lane]|=16);const n=g(e);for(let t=0;t<n.length;t++){const r=n[t];let o=4;t>0&&(o|=1),t<n.length-1&&(o|=2),i[e.level-1][r.lane]|=o}}for(let n=0;n<e;n++)for(let e=0;e<t;e++){const t=n>0?i[n-1][e]:0,r=e>0?i[n][e-1]:0;let o=i[n][e];o||(8&t&&(o|=12),2&r&&(o|=3),i[n][e]=o)}for(let t=0;t<e;t++)for(let a=0;a<n.length;a++){const n=i[t][a],s=4&n?"─":" ",c=r[t][a];c?(o(a,c.text),t<e-1&&(o(a," "),o(a,T(s,f[t]-c.text.length)))):t<e-1&&o(a,T(s,f[t]+1)),o(a,S(n)),o(a,8&n&&t<e-1&&!r[t+1][a]?"─":" ")}return`\n${n.join("\n")}\n`;function o(e,t){n[e]+=t}}();function m(e){const t=[];for(const n of e.edges)n.source===e&&t.push(n.target);return t}function g(e){const t=[];for(const n of e.edges)n.target===e&&t.push(n.source);return t}function h(e,t){const n=r(e);let i=l[n];if(i&&t.has(e))return i.circular=!0,i={id:-1,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},_.push(i),i;if(t.add(e),!i)if(l[n]=i={id:n,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},_.push(i),12&(o=e).flags&&o.antecedents)for(const n of e.antecedents)y(i,n,t);else(function(e){return!!(e.flags&s)})(e)&&y(i,e.antecedent,t);var o;return t.delete(e),i}function y(e,t,n){const r=h(t,n),i={source:e,target:r};u.push(i),e.edges.push(i),r.edges.push(i)}function v(e){if(-1!==e.level)return e.level;let t=0;for(const n of g(e))t=Math.max(t,v(n)+1);return e.level=t}function b(e){return Gp(Cp(e),e,!1)}function x(e,t){let n=function(e){if(2&e)return"Start";if(4&e)return"Branch";if(8&e)return"Loop";if(16&e)return"Assignment";if(32&e)return"True";if(64&e)return"False";if(128&e)return"SwitchClause";if(256&e)return"ArrayMutation";if(512&e)return"Call";if(1024&e)return"ReduceLabel";if(1&e)return"Unreachable";throw new Error}(e.flags);if(t&&(n=`${n}#${r(e)}`),e.flags&c)e.node&&(n+=` (${b(e.node)})`);else if(function(e){return!!(128&e.flags)}(e)){const t=[];for(let n=e.clauseStart;n<e.clauseEnd;n++){const r=e.switchStatement.caseBlock.clauses[n];BP(r)?t.push("default"):t.push(b(r.expression))}n+=` (${t.join(", ")})`}return"circularity"===t?`Circular(${n})`:n}function S(e){switch(e){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function k(e,t){if(e.fill)e.fill(t);else for(let n=0;n<e.length;n++)e[n]=t;return e}function T(e,t){if(e.repeat)return t>0?e.repeat(t):"";let n="";for(;n.length<t;)n+=e;return n}}e.DebugTypeMapper=L,e.attachDebugPrototypeIfDebug=function(t){return e.isDebugging?Object.setPrototypeOf(t,L.prototype):t},e.printControlFlowGraph=function(e){return console.log(j(e))},e.formatControlFlowGraph=j})(Sn||(Sn={}))}});function Bn(e){const t=kn.exec(e);if(!t)return;const[,n,r="0",i="0",o="",a=""]=t;return o&&!Tn.test(o)||a&&!wn.test(a)?void 0:{major:parseInt(n,10),minor:parseInt(r,10),patch:parseInt(i,10),prerelease:o,build:a}}function Jn(e){const t=[];for(let n of e.trim().split(An)){if(!n)continue;const e=[];n=n.trim();const r=Ln.exec(n);if(r){if(!qn(r[1],r[2],e))return}else for(const t of n.split(In)){const n=jn.exec(t.trim());if(!n||!Un(n[1],n[2],e))return}t.push(e)}return t}function zn(e){const t=On.exec(e);if(!t)return;const[,n,r="*",i="*",o,a]=t;return{version:new Pn(Vn(n)?0:parseInt(n,10),Vn(n)||Vn(r)?0:parseInt(r,10),Vn(n)||Vn(r)||Vn(i)?0:parseInt(i,10),o,a),major:n,minor:r,patch:i}}function qn(e,t,n){const r=zn(e);if(!r)return!1;const i=zn(t);return!!i&&(Vn(r.major)||n.push(Wn(">=",r.version)),Vn(i.major)||n.push(Vn(i.minor)?Wn("<",i.version.increment("major")):Vn(i.patch)?Wn("<",i.version.increment("minor")):Wn("<=",i.version)),!0)}function Un(e,t,n){const r=zn(t);if(!r)return!1;const{version:i,major:o,minor:a,patch:s}=r;if(Vn(o))"<"!==e&&">"!==e||n.push(Wn("<",Pn.zero));else switch(e){case"~":n.push(Wn(">=",i)),n.push(Wn("<",i.increment(Vn(a)?"major":"minor")));break;case"^":n.push(Wn(">=",i)),n.push(Wn("<",i.increment(i.major>0||Vn(a)?"major":i.minor>0||Vn(s)?"minor":"patch")));break;case"<":case">=":n.push(Vn(a)||Vn(s)?Wn(e,i.with({prerelease:"0"})):Wn(e,i));break;case"<=":case">":n.push(Vn(a)?Wn("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):Vn(s)?Wn("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):Wn(e,i));break;case"=":case void 0:Vn(a)||Vn(s)?(n.push(Wn(">=",i.with({prerelease:"0"}))),n.push(Wn("<",i.increment(Vn(a)?"major":"minor").with({prerelease:"0"})))):n.push(Wn("=",i));break;default:return!1}return!0}function Vn(e){return"*"===e||"x"===e||"X"===e}function Wn(e,t){return{operator:e,operand:t}}function Hn(e,t){for(const n of t)if(!$n(e,n.operator,n.operand))return!1;return!0}function $n(e,t,n){const r=e.compareTo(n);switch(t){case"<":return r<0;case"<=":return r<=0;case">":return r>0;case">=":return r>=0;case"=":return 0===r;default:return Sn.assertNever(t)}}function Kn(e){return J(e,Gn).join(" ")}function Gn(e){return`${e.operator}${e.operand}`}var Xn,Qn,Yn,Zn=g({"src/compiler/semver.ts"(){OK(),kn=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Tn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Cn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,wn=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Nn=/^[a-z0-9-]+$/i,Dn=/^(0|[1-9]\d*)$/,(Fn=class e{constructor(e,t=0,n=0,i="",o=""){if("string"==typeof e){const r=Sn.checkDefined(Bn(e),"Invalid version");({major:e,minor:t,patch:n,prerelease:i,build:o}=r)}Sn.assert(e>=0,"Invalid argument: major"),Sn.assert(t>=0,"Invalid argument: minor"),Sn.assert(n>=0,"Invalid argument: patch");const a=i?_t(i)?i:i.split("."):r,s=o?_t(o)?o:o.split("."):r;Sn.assert(N(a,(e=>Cn.test(e))),"Invalid argument: prerelease"),Sn.assert(N(s,(e=>Nn.test(e))),"Invalid argument: build"),this.major=e,this.minor=t,this.patch=n,this.prerelease=a,this.build=s}static tryParse(t){const n=Bn(t);if(!n)return;const{major:r,minor:i,patch:o,prerelease:a,build:s}=n;return new e(r,i,o,a,s)}compareTo(e){return this===e?0:void 0===e?1:It(this.major,e.major)||It(this.minor,e.minor)||It(this.patch,e.patch)||function(e,t){if(e===t)return 0;if(0===e.length)return 0===t.length?0:1;if(0===t.length)return-1;const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=e[r],i=t[r];if(n===i)continue;const o=Dn.test(n),a=Dn.test(i);if(o||a){if(o!==a)return o?-1:1;const e=It(+n,+i);if(e)return e}else{const e=Rt(n,i);if(e)return e}}return It(e.length,t.length)}(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 Sn.assertNever(t)}}with(t){const{major:n=this.major,minor:r=this.minor,patch:i=this.patch,prerelease:o=this.prerelease,build:a=this.build}=t;return new e(n,r,i,o,a)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return re(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),re(this.build)&&(e+=`+${this.build.join(".")}`),e}}).zero=new Fn(0,0,0,["0"]),Pn=Fn,En=class e{constructor(e){this._alternatives=e?Sn.checkDefined(Jn(e),"Invalid range spec."):r}static tryParse(t){const n=Jn(t);if(n){const t=new e("");return t._alternatives=n,t}}test(e){return"string"==typeof e&&(e=new Pn(e)),function(e,t){if(0===t.length)return!0;for(const n of t)if(Hn(e,n))return!0;return!1}(e,this._alternatives)}toString(){return J(this._alternatives,Kn).join(" || ")||"*"}},An=/\|\|/g,In=/\s+/g,On=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Ln=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,jn=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function er(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof e.clearMarks&&"function"==typeof e.clearMeasures&&"function"==typeof t}function tr(){return Xn}var nr,rr,ir,or,ar,sr,cr,lr,_r,ur,dr=g({"src/compiler/performanceCore.ts"(){OK(),Xn=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&er(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if(bn())try{const{performance:e,PerformanceObserver:t}=require("perf_hooks");if(er(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}(),Qn=null==Xn?void 0:Xn.performance,Yn=Qn?()=>Qn.now():Date.now?Date.now:()=>+new Date}}),pr=g({"src/compiler/perfLogger.ts"(){try{const e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";nr=require(e)}catch(e){nr=void 0}rr=(null==nr?void 0:nr.logEvent)?nr:void 0}});function fr(e,t,n,r){return e?mr(t,n,r):ar}function mr(e,t,n){let r=0;return{enter:function(){1==++r&&gr(t)},exit:function(){0==--r?(gr(n),hr(e,t,n)):r<0&&Sn.fail("enter/exit count does not match.")}}}function gr(e){if(sr){const t=_r.get(e)??0;_r.set(e,t+1),lr.set(e,Yn()),null==or||or.mark(e),"function"==typeof onProfilerEvent&&onProfilerEvent(e)}}function hr(e,t,n){if(sr){const r=(void 0!==n?lr.get(n):void 0)??Yn(),i=(void 0!==t?lr.get(t):void 0)??cr,o=ur.get(e)||0;ur.set(e,o+(r-i)),null==or||or.measure(e,t,n)}}function yr(e){return _r.get(e)||0}function vr(e){return ur.get(e)||0}function br(e){ur.forEach(((t,n)=>e(n,t)))}function xr(e){lr.forEach(((t,n)=>e(n)))}function Sr(e){void 0!==e?ur.delete(e):ur.clear(),null==or||or.clearMeasures(e)}function kr(e){void 0!==e?(_r.delete(e),lr.delete(e)):(_r.clear(),lr.clear()),null==or||or.clearMarks(e)}function Tr(){return sr}function Cr(e=uo){var t;return sr||(sr=!0,ir||(ir=tr()),ir&&(cr=ir.performance.timeOrigin,(ir.shouldWriteNativeEvents||(null==(t=null==e?void 0:e.cpuProfilingEnabled)?void 0:t.call(e))||(null==e?void 0:e.debugMode))&&(or=ir.performance))),!0}function wr(){sr&&(lr.clear(),_r.clear(),ur.clear(),or=void 0,sr=!1)}var Nr=g({"src/compiler/performance.ts"(){OK(),ar={enter:gt,exit:gt},sr=!1,cr=Yn(),lr=new Map,_r=new Map,ur=new Map}}),Dr={};h(Dr,{clearMarks:()=>kr,clearMeasures:()=>Sr,createTimer:()=>mr,createTimerIf:()=>fr,disable:()=>wr,enable:()=>Cr,forEachMark:()=>xr,forEachMeasure:()=>br,getCount:()=>yr,getDuration:()=>vr,isEnabled:()=>Tr,mark:()=>gr,measure:()=>hr,nullTimer:()=>ar});var Fr,Pr,Er,Ar,Ir,Or,Lr,jr,Mr,Rr,Br,Jr,zr,qr,Ur,Vr,Wr,Hr,$r,Kr,Gr,Xr,Qr,Yr,Zr,ei,ti,ni,ri,ii,oi,ai,si,ci,li,_i,ui,di,pi,fi,mi,gi,hi,yi,vi,bi,xi,Si,ki,Ti,Ci,wi,Ni,Di,Fi,Pi,Ei,Ai,Ii,Oi,Li,ji,Mi,Ri,Bi,Ji,zi,qi,Ui,Vi,Wi,Hi,$i,Ki,Gi,Xi,Qi,Yi,Zi=g({"src/compiler/_namespaces/ts.performance.ts"(){Nr()}}),eo=g({"src/compiler/tracing.ts"(){OK(),Zi(),(e=>{let t,n,r=0,i=0;const o=[];let a;const s=[];let c;var l;e.startTracing=function(c,l,_){if(Sn.assert(!Fr,"Tracing already started"),void 0===t)try{t=require("fs")}catch(e){throw new Error(`tracing requires having fs\n(original error: ${e.message||e})`)}n=c,o.length=0,void 0===a&&(a=sa(l,"legend.json")),t.existsSync(l)||t.mkdirSync(l,{recursive:!0});const u="build"===n?`.${process.pid}-${++r}`:"server"===n?`.${process.pid}`:"",d=sa(l,`trace${u}.json`),p=sa(l,`types${u}.json`);s.push({configFilePath:_,tracePath:d,typesPath:p}),i=t.openSync(d,"w"),Fr=e;const f={cat:"__metadata",ph:"M",ts:1e3*Yn(),pid:1,tid:1};t.writeSync(i,"[\n"+[{name:"process_name",args:{name:"tsc"},...f},{name:"thread_name",args:{name:"Main"},...f},{name:"TracingStartedInBrowser",...f,cat:"disabled-by-default-devtools.timeline"}].map((e=>JSON.stringify(e))).join(",\n"))},e.stopTracing=function(){Sn.assert(Fr,"Tracing is not in progress"),Sn.assert(!!o.length==("server"!==n)),t.writeSync(i,"\n]\n"),t.closeSync(i),Fr=void 0,o.length?function(e){var n,r,i,o,a,c,l,_,u,d,p,m,g,h,y,v,b,x,S;gr("beginDumpTypes");const k=s[s.length-1].typesPath,T=t.openSync(k,"w"),C=new Map;t.writeSync(T,"[");const w=e.length;for(let s=0;s<w;s++){const k=e[s],N=k.objectFlags,D=k.aliasSymbol??k.symbol;let F;if(16&N|2944&k.flags)try{F=null==(n=k.checker)?void 0:n.typeToString(k)}catch{F=void 0}let P={};if(8388608&k.flags){const e=k;P={indexedAccessObjectType:null==(r=e.objectType)?void 0:r.id,indexedAccessIndexType:null==(i=e.indexType)?void 0:i.id}}let E={};if(4&N){const e=k;E={instantiatedType:null==(o=e.target)?void 0:o.id,typeArguments:null==(a=e.resolvedTypeArguments)?void 0:a.map((e=>e.id)),referenceLocation:f(e.node)}}let A={};if(16777216&k.flags){const e=k;A={conditionalCheckType:null==(c=e.checkType)?void 0:c.id,conditionalExtendsType:null==(l=e.extendsType)?void 0:l.id,conditionalTrueType:(null==(_=e.resolvedTrueType)?void 0:_.id)??-1,conditionalFalseType:(null==(u=e.resolvedFalseType)?void 0:u.id)??-1}}let I={};if(33554432&k.flags){const e=k;I={substitutionBaseType:null==(d=e.baseType)?void 0:d.id,constraintType:null==(p=e.constraint)?void 0:p.id}}let O={};if(1024&N){const e=k;O={reverseMappedSourceType:null==(m=e.source)?void 0:m.id,reverseMappedMappedType:null==(g=e.mappedType)?void 0:g.id,reverseMappedConstraintType:null==(h=e.constraintType)?void 0:h.id}}let L,j={};if(256&N){const e=k;j={evolvingArrayElementType:e.elementType.id,evolvingArrayFinalType:null==(y=e.finalArrayType)?void 0:y.id}}const M=k.checker.getRecursionIdentity(k);M&&(L=C.get(M),L||(L=C.size,C.set(M,L)));const R={id:k.id,intrinsicName:k.intrinsicName,symbolName:(null==D?void 0:D.escapedName)&&Nc(D.escapedName),recursionId:L,isTuple:!!(8&N)||void 0,unionTypes:1048576&k.flags?null==(v=k.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:2097152&k.flags?k.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=k.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:4194304&k.flags?null==(x=k.type)?void 0:x.id:void 0,...P,...E,...A,...I,...O,...j,destructuringPattern:f(k.pattern),firstDeclaration:f(null==(S=null==D?void 0:D.declarations)?void 0:S[0]),flags:Sn.formatTypeFlags(k.flags).split("|"),display:F};t.writeSync(T,JSON.stringify(R)),s<w-1&&t.writeSync(T,",\n")}t.writeSync(T,"]\n"),t.closeSync(T),gr("endDumpTypes"),hr("Dump types","beginDumpTypes","endDumpTypes")}(o):s[s.length-1].typesPath=void 0},e.recordType=function(e){"server"!==n&&o.push(e)},(l=c=e.Phase||(e.Phase={})).Parse="parse",l.Program="program",l.Bind="bind",l.Check="check",l.CheckTypes="checkTypes",l.Emit="emit",l.Session="session",e.instant=function(e,t,n){p("I",e,t,n,'"s":"g"')};const _=[];e.push=function(e,t,n,r=!1){r&&p("B",e,t,n),_.push({phase:e,name:t,args:n,time:1e3*Yn(),separateBeginAndEnd:r})},e.pop=function(e){Sn.assert(_.length>0),d(_.length-1,1e3*Yn(),e),_.length--},e.popAll=function(){const e=1e3*Yn();for(let t=_.length-1;t>=0;t--)d(t,e);_.length=0};const u=1e4;function d(e,t,n){const{phase:r,name:i,args:o,time:a,separateBeginAndEnd:s}=_[e];s?(Sn.assert(!n,"`results` are not supported for events with `separateBeginAndEnd`"),p("E",r,i,o,void 0,t)):u-a%u<=t-a&&p("X",r,i,{...o,results:n},'"dur":'+(t-a),a)}function p(e,r,o,a,s,c=1e3*Yn()){"server"===n&&"checkTypes"===r||(gr("beginTracing"),t.writeSync(i,`,\n{"pid":1,"tid":1,"ph":"${e}","cat":"${r}","ts":${c},"name":"${o}"`),s&&t.writeSync(i,`,${s}`),a&&t.writeSync(i,`,"args":${JSON.stringify(a)}`),t.writeSync(i,"}"),gr("endTracing"),hr("Tracing","beginTracing","endTracing"))}function f(e){const t=Cp(e);return t?{path:t.path,start:n(_s(t,e.pos)),end:n(_s(t,e.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}e.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(s))}})(Pr||(Pr={})),Er=Pr.startTracing,Ar=Pr.dumpLegend}});function to(e,t=!0){const n=Ti[e.category];return t?n.toLowerCase():n}var no,ro,io,oo,ao,so,co,lo,_o,uo,po=g({"src/compiler/types.ts"(){Ir=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Ir||{}),Or=(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))(Or||{}),Lr=(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))(Lr||{}),jr=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(jr||{}),Mr=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(Mr||{}),Rr=(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))(Rr||{}),Br=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(Br||{}),Jr=(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))(Jr||{}),zr=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(zr||{}),qr=class{},Ur=(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))(Ur||{}),Vr=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Vr||{}),Wr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(Wr||{}),Hr=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Hr||{}),$r=(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))($r||{}),Kr=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Kr||{}),Gr=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Gr||{}),Xr=(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))(Xr||{}),Qr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(Qr||{}),Yr=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(Yr||{}),Zr=(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))(Zr||{}),ei=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(ei||{}),ti=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(ti||{}),ni=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(ni||{}),ri=(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))(ri||{}),ii=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(ii||{}),oi=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(oi||{}),ai=(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))(ai||{}),si=(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))(si||{}),ci=(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))(ci||{}),li=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.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.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(li||{}),_i=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.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))(_i||{}),ui=(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))(ui||{}),di=(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))(di||{}),pi=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(pi||{}),fi=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(fi||{}),mi=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(mi||{}),gi=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(gi||{}),hi=(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))(hi||{}),yi=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(yi||{}),vi=(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))(vi||{}),bi=(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))(bi||{}),xi=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(xi||{}),Si=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(Si||{}),ki=(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))(ki||{}),Ti=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(Ti||{}),Ci=(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))(Ci||{}),wi=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(wi||{}),Ni=(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))(Ni||{}),Di=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Di||{}),Fi=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(Fi||{}),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.NodeNext=199]="NodeNext",e))(Pi||{}),Ei=(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))(Ei||{}),Ai=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Ai||{}),Ii=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Ii||{}),Oi=(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))(Oi||{}),Li=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Li||{}),ji=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(ji||{}),Mi=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(Mi||{}),Ri=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.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))(Ri||{}),Bi=(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))(Bi||{}),Ji=(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))(Ji||{}),zi=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(zi||{}),qi=(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))(qi||{}),Ui=(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))(Ui||{}),Vi=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="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))(Vi||{}),Wi=(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))(Wi||{}),Hi=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(Hi||{}),$i=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))($i||{}),Ki=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(Ki||{}),Gi=(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))(Gi||{}),Xi=(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))(Xi||{}),Qi={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Yi=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Yi||{})}});function fo(e){let t=5381;for(let n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t.toString()}function mo(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function go(e,t){return e.getModifiedTime(t)||io}function ho(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function yo(e){if(!e.getEnvironmentVariable)return;const t=function(e,t){const r=n(e);if(r)return i("Low"),i("Medium"),i("High"),!0;return!1;function i(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",ro);function n(t){let n;return r("Low"),r("Medium"),r("High"),n;function r(r){const i=function(t,n){return e.getEnvironmentVariable(`${t}_${n.toUpperCase()}`)}(t,r);i&&((n||(n={}))[r]=Number(i))}}function r(e,r){const i=n(e);return(t||i)&&ho(i?{...r,...i}:r)}ao=r("TSC_WATCH_POLLINGCHUNKSIZE",oo)||ao,so=r("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",oo)||so}function vo(e,t,n,r,i){let o=n;for(let s=t.length;r&&s;a(),s--){const a=t[n];if(!a)continue;if(a.isClosed){t[n]=void 0;continue}r--;const s=ko(a,go(e,a.fileName));a.isClosed?t[n]=void 0:(null==i||i(a,n,s),t[n]&&(o<n&&(t[o]=a,t[n]=void 0),o++))}return n;function a(){++n===t.length&&(o<n&&(t.length=o),n=0,o=0)}}function bo(e){const t=[],n=[],r=a(250),i=a(500),o=a(2e3);return function(n,r,i){const o={fileName:n,callback:r,unchangedPolls:0,mtime:go(e,n)};return t.push(o),u(o,i),{close:()=>{o.isClosed=!0,en(t,o)}}};function a(e){const t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function s(e,t){t.pollIndex=l(t,t.pollingInterval,t.pollIndex,ao[t.pollingInterval]),t.length?p(t.pollingInterval):(Sn.assert(0===t.pollIndex),t.pollScheduled=!1)}function c(e,t){l(n,250,0,n.length),s(0,t),!t.pollScheduled&&n.length&&p(250)}function l(t,r,i,o){return vo(e,t,i,o,(function(e,i,o){o?(e.unchangedPolls=0,t!==n&&(t[i]=void 0,a=e,n.push(a),d(250))):e.unchangedPolls!==so[r]?e.unchangedPolls++:t===n?(e.unchangedPolls=1,t[i]=void 0,u(e,250)):2e3!==r&&(e.unchangedPolls++,t[i]=void 0,u(e,250===r?500:2e3));var a}))}function _(e){switch(e){case 250:return r;case 500:return i;case 2e3:return o}}function u(e,t){_(t).push(e),d(t)}function d(e){_(e).pollScheduled||p(e)}function p(t){_(t).pollScheduled=e.setTimeout(250===t?c:s,t,250===t?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",_(t))}}function xo(e,t){const n=ot(),r=new Map,i=tn(t);return function(t,o,a,s){const c=i(t);n.add(c,o);const l=Zo(c)||".",_=r.get(l)||function(t,o,a){const s=e(t,1,((e,r,o)=>{if(!dt(r))return;const a=_a(r,t),s=a&&n.get(i(a));if(s)for(const e of s)e(a,1,o)}),!1,500,a);return s.referenceCount=0,r.set(o,s),s}(Zo(t)||".",l,s);return _.referenceCount++,{close:()=>{1===_.referenceCount?(_.close(),r.delete(l)):_.referenceCount--,n.remove(c,o)}}}}function So(e,t,n,r,i){const o=tn(t)(n),a=e.get(o);return a?a.callbacks.push(r):e.set(o,{watcher:i(((t,n,r)=>{var i;return null==(i=e.get(o))?void 0:i.callbacks.slice().forEach((e=>e(t,n,r)))})),callbacks:[r]}),{close:()=>{const t=e.get(o);t&&Qt(t.callbacks,r)&&!t.callbacks.length&&(e.delete(o),HU(t))}}}function ko(e,t){const n=e.mtime.getTime(),r=t.getTime();return n!==r&&(e.mtime=t,e.callback(e.fileName,To(n,r),t),!0)}function To(e,t){return 0===e?0:0===t?2:1}function Co(e){return lo(e)}function wo(e){lo=e}function No({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:a,setTimeout:s,clearTimeout:c}){const l=new Map,_=ot(),u=new Map;let d;const p=Bt(!t),f=tn(t);return(t,n,r,i)=>r?m(t,i,n):e(t,n,r,i);function m(t,n,i){const a=f(t);let p=l.get(a);p?p.refCount++:(p={watcher:e(t,(e=>{b(e,n)||((null==n?void 0:n.synchronousWatchDirectory)?(g(a,e),v(t,a,n)):function(e,t,n,r){const i=l.get(t);if(i&&o(e,1))return void function(e,t,n,r){const i=u.get(t);i?i.fileNames.push(n):u.set(t,{dirName:e,options:r,fileNames:[n]});d&&(c(d),d=void 0);d=s(h,1e3,"timerToUpdateChildWatches")}(e,t,n,r);g(t,n),y(i)}(t,a,e,n))}),!1,n),refCount:1,childWatches:r},l.set(a,p),v(t,a,n));const m=i&&{dirName:t,callback:i};return m&&_.add(a,m),{dirName:t,close:()=>{const e=Sn.checkDefined(l.get(a));m&&_.remove(a,m),e.refCount--,e.refCount||(l.delete(a),HU(e),e.childWatches.forEach(Bx))}}}function g(e,t,n){let r,i;dt(t)?r=t:i=t,_.forEach(((t,o)=>{if((!i||!0!==i.get(o))&&(o===e||an(e,o)&&e[o.length]===Io))if(i)if(n){const e=i.get(o);e?e.push(...n):i.set(o,n.slice())}else i.set(o,!0);else t.forEach((({callback:e})=>e(r)))}))}function h(){d=void 0,Co(`sysLog:: onTimerToUpdateChildWatches:: ${u.size}`);const e=Yn(),t=new Map;for(;!d&&u.size;){const e=u.entries().next();Sn.assert(!e.done);const{value:[n,{dirName:r,options:i,fileNames:o}]}=e;u.delete(n);const a=v(r,n,i);g(n,t,a?void 0:o)}Co(`sysLog:: invokingWatchers:: Elapsed:: ${Yn()-e}ms:: ${u.size}`),_.forEach(((e,n)=>{const r=t.get(n);r&&e.forEach((({callback:e,dirName:t})=>{_t(r)?r.forEach(e):e(t)}))}));Co(`sysLog:: Elapsed:: ${Yn()-e}ms:: onTimerToUpdateChildWatches:: ${u.size} ${d}`)}function y(e){if(!e)return;const t=e.childWatches;e.childWatches=r;for(const e of t)e.close(),y(l.get(f(e.dirName)))}function v(e,t,n){const s=l.get(t);if(!s)return!1;let c;const _=mn(o(e,1)?G(i(e),(t=>{const r=_a(t,e);return b(r,n)||0!==p(r,ua(a(r)))?void 0:r})):r,s.childWatches,((e,t)=>p(e,t.dirName)),(function(e){u(m(e,n))}),Bx,u);return s.childWatches=c||r,_;function u(e){(c||(c=[])).push(e)}}function b(e,r){return re(co,(n=>function(e,n){return!!e.includes(n)||!t&&f(e).includes(n)}(e,n)))||Do(e,r,t,n)}}function Do(e,t,n,r){return((null==t?void 0:t.excludeDirectories)||(null==t?void 0:t.excludeFiles))&&(vj(e,null==t?void 0:t.excludeFiles,n,r())||vj(e,null==t?void 0:t.excludeDirectories,n,r()))}function Fo(e,t,n,r,i){return(o,a)=>{if("rename"===o){const o=a?ua(sa(e,a)):e;a&&Do(o,n,r,i)||t(o)}}}function Po({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:r,fsWatchWorker:i,fileSystemEntryExists:o,useCaseSensitiveFileNames:a,getCurrentDirectory:s,fsSupportsRecursiveFsWatch:c,getAccessibleSortedChildDirectories:l,realpath:_,tscWatchFile:u,useNonPollingWatchers:d,tscWatchDirectory:p,inodeWatching:f,sysLog:m}){const g=new Map,h=new Map,y=new Map;let v,b,x,S,k=!1;return{watchFile:T,watchDirectory:function(e,t,i,u){if(c)return P(e,1,Fo(e,t,u,a,s),i,500,WU(u));S||(S=No({useCaseSensitiveFileNames:a,getCurrentDirectory:s,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:l,watchDirectory:D,realpath:_,setTimeout:n,clearTimeout:r}));return S(e,t,i,u)}};function T(e,n,r,i){i=function(e,t){if(e&&void 0!==e.watchFile)return e;switch(u){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return N(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return N(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?N(5,1,e):{watchFile:4}}}(i,d);const o=Sn.checkDefined(i.watchFile);switch(o){case 0:return F(e,n,250,void 0);case 1:return F(e,n,r,void 0);case 2:return C()(e,n,r,void 0);case 3:return w()(e,n,void 0,void 0);case 4:return P(e,0,function(e,t,n){return(r,i,o)=>{"rename"===r?(o||(o=n(e)||io),t(e,o!==io?0:2,o)):t(e,1,o)}}(e,n,t),!1,r,WU(i));case 5:return x||(x=xo(P,a)),x(e,n,r,WU(i));default:Sn.assertNever(o)}}function C(){return v||(v=bo({getModifiedTime:t,setTimeout:n}))}function w(){return b||(b=function(e){const t=[];let n,r=0;return function(n,r){const i={fileName:n,callback:r,mtime:go(e,n)};return t.push(i),o(),{close:()=>{i.isClosed=!0,en(t,i)}}};function i(){n=void 0,r=vo(e,t,r,ao[250]),o()}function o(){t.length&&!n&&(n=e.setTimeout(i,2e3,"pollQueue"))}}({getModifiedTime:t,setTimeout:n}))}function N(e,t,n){const r=null==n?void 0:n.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===r?t:r}}function D(e,t,n,r){Sn.assert(!n);const i=function(e){if(e&&void 0!==e.watchDirectory)return e;switch(p){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const t=null==e?void 0:e.fallbackPolling;return{watchDirectory:0,fallbackPolling:void 0!==t?t:void 0}}}(r),o=Sn.checkDefined(i.watchDirectory);switch(o){case 1:return F(e,(()=>t(e)),500,void 0);case 2:return C()(e,(()=>t(e)),500,void 0);case 3:return w()(e,(()=>t(e)),void 0,void 0);case 0:return P(e,1,Fo(e,t,r,a,s),n,500,WU(i));default:Sn.assertNever(o)}}function F(t,n,r,i){return So(g,a,t,n,(n=>e(t,n,r,i)))}function P(e,n,r,s,c,l){return So(s?y:h,a,e,r,(r=>function(e,n,r,a,s,c){let l,_;f&&(l=e.substring(e.lastIndexOf(Io)),_=l.slice(Io.length));let u=o(e,n)?p():y();return{close:()=>{u&&(u.close(),u=void 0)}};function d(t){u&&(m(`sysLog:: ${e}:: Changing watcher to ${t===p?"Present":"Missing"}FileSystemEntryWatcher`),u.close(),u=t())}function p(){if(k)return m(`sysLog:: ${e}:: Defaulting to watchFile`),h();try{const t=i(e,a,f?g:r);return t.on("error",(()=>{r("rename",""),d(y)})),t}catch(t){return k||(k="ENOSPC"===t.code),m(`sysLog:: ${e}:: Changing to watchFile`),h()}}function g(n,i){let o;if(i&&$t(i,"~")&&(o=i,i=i.slice(0,i.length-1)),"rename"!==n||i&&i!==_&&!$t(i,l))o&&r(n,o),r(n,i);else{const a=t(e)||io;o&&r(n,o,a),r(n,i,a),f?d(a===io?y:p):a===io&&d(y)}}function h(){return T(e,function(e){return(t,n,r)=>e(1===n?"change":"rename","",r)}(r),s,c)}function y(){return T(e,((n,i,o)=>{0===i&&(o||(o=t(e)||io),o!==io&&(r("rename","",o),d(p)))}),s,c)}}(e,n,r,s,c,l)))}}function Eo(e){const t=e.writeFile;e.writeFile=(n,r,i)=>Bv(n,r,!!i,((n,r,i)=>t.call(e,n,r,i)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t)))}function Ao(e){uo=e}var Io,Oo,Lo,jo,Mo,Ro=g({"src/compiler/sys.ts"(){OK(),no=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(no||{}),ro=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(ro||{}),io=new Date(0),ao=ho(oo={Low:32,Medium:64,High:256}),so=ho(oo),co=["/node_modules/.","/.git","/.#"],lo=gt,_o=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(_o||{}),(uo=(()=>{let e;return bn()&&(e=function(){const e=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,t=require("fs"),n=require("path"),r=require("os");let i,o;try{i=require("crypto")}catch{i=void 0}let a="./profile.cpuprofile";const s=require("buffer").Buffer,c="linux"===process.platform||"darwin"===process.platform,l=r.platform(),_="win32"!==l&&"win64"!==l&&!T((y=__filename,y.replace(/\w/g,(e=>{const t=e.toUpperCase();return e===t?e.toLowerCase():t})))),u=t.realpathSync.native?"win32"===process.platform?function(e){return e.length<260?t.realpathSync.native(e):t.realpathSync(e)}:t.realpathSync.native:t.realpathSync,d=__filename.endsWith("sys.js")?n.join(n.dirname(__dirname),"__fake__.js"):__filename,p="win32"===process.platform||"darwin"===process.platform,f=Tt((()=>process.cwd())),{watchFile:m,watchDirectory:g}=Po({pollingWatchFileWorker:function(e,n,r){let i;return t.watchFile(e,{persistent:!0,interval:r},o),{close:()=>t.unwatchFile(e,o)};function o(t,r){const o=0==+r.mtime||2===i;if(0==+t.mtime){if(o)return;i=2}else if(o)i=0;else{if(+t.mtime==+r.mtime)return;i=1}n(e,i,t.mtime)}},getModifiedTime:w,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatchWorker:function(e,n,r){return t.watch(e,p?{persistent:!0,recursive:!!n}:{persistent:!0},r)},useCaseSensitiveFileNames:_,getCurrentDirectory:f,fileSystemEntryExists:k,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:e=>S(e).directories,realpath:C,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:c,sysLog:Co}),h={args:process.argv.slice(2),newLine:r.EOL,useCaseSensitiveFileNames:_,write(e){process.stdout.write(e)},getWidthOfTerminal:()=>process.stdout.columns,writeOutputIsTTY:()=>process.stdout.isTTY,readFile:function(e,n){var r,i;null==(r=rr)||r.logStartReadFile(e);const o=function(e,n){let r;try{r=t.readFileSync(e)}catch(e){return}let i=r.length;if(i>=2&&254===r[0]&&255===r[1]){i&=-2;for(let e=0;e<i;e+=2){const t=r[e];r[e]=r[e+1],r[e+1]=t}return r.toString("utf16le",2)}return i>=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):i>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(e);return null==(i=rr)||i.logStopReadFile(),o},writeFile:function(e,n,r){var i;let o;null==(i=rr)||i.logEvent("WriteFile: "+e),r&&(n="\ufeff"+n);try{o=t.openSync(e,"w"),t.writeSync(o,n,void 0,"utf8")}finally{void 0!==o&&t.closeSync(o)}},watchFile:m,watchDirectory:g,resolvePath:e=>n.resolve(e),fileExists:T,directoryExists:function(e){return k(e,1)},createDirectory(e){if(!h.directoryExists(e))try{t.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:()=>d,getCurrentDirectory:f,getDirectories:function(e){return S(e).directories.slice()},getEnvironmentVariable:e=>process.env[e]||"",readDirectory:function(e,t,n,r,i){return Rk(e,t,n,r,_,process.cwd(),i,S,C)},getModifiedTime:w,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch(e){return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch(e){return}},createHash:i?N:fo,createSHA256Hash:i?N:void 0,getMemoryUsage:()=>(global.gc&&global.gc(),process.memoryUsage().heapUsed),getFileSize(e){try{const t=v(e);if(null==t?void 0:t.isFile())return t.size}catch{}return 0},exit(e){b((()=>process.exit(e)))},enableCPUProfiler:function(e,t){if(o)return t(),!1;const n=require("inspector");if(!n||!n.Session)return t(),!1;const r=new n.Session;return r.connect(),r.post("Profiler.enable",(()=>{r.post("Profiler.start",(()=>{o=r,a=e,t()}))})),!0},disableCPUProfiler:b,cpuProfilingEnabled:()=>!!o||I(process.execArgv,"--cpu-prof")||I(process.execArgv,"--prof"),realpath:C,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||re(process.execArgv,(e=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{require("source-map-support").install()}catch{}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:()=>{process.stdout.write("c")},setBlocking:()=>{var e;const t=null==(e=process.stdout)?void 0:e._handle;t&&t.setBlocking&&t.setBlocking(!0)},bufferFrom:x,base64decode:e=>x(e,"base64").toString("utf8"),base64encode:e=>x(e).toString("base64"),require:(e,t)=>{try{const n=kM(t,e,h);return{module:require(n),modulePath:n,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};var y;return h;function v(e){return t.statSync(e,{throwIfNoEntry:!1})}function b(r){if(o&&"stopping"!==o){const i=o;return o.post("Profiler.stop",((s,{profile:c})=>{var l;if(!s){try{(null==(l=v(a))?void 0:l.isDirectory())&&(a=n.join(a,`${(new Date).toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{t.mkdirSync(n.dirname(a),{recursive:!0})}catch{}t.writeFileSync(a,JSON.stringify(function(t){let r=0;const i=new Map,o=oa(n.dirname(d)),a=`file://${1===Yo(o)?"":"/"}${o}`;for(const n of t.nodes)if(n.callFrame.url){const t=oa(n.callFrame.url);Sa(a,t,_)?n.callFrame.url=Da(a,t,a,tn(_),!0):e.test(t)||(n.callFrame.url=(i.has(t)?i:i.set(t,`external${r}.js`)).get(t),r++)}return t}(c)))}o=void 0,i.disconnect(),r()})),o="stopping",!0}return r(),!1}function x(e,t){return s.from&&s.from!==Int8Array.from?s.from(e,t):new s(e,t)}function S(e){var n;null==(n=rr)||n.logEvent("ReadDir: "+(e||"."));try{const n=t.readdirSync(e||".",{withFileTypes:!0}),r=[],i=[];for(const t of n){const n="string"==typeof t?t:t.name;if("."===n||".."===n)continue;let o;if("string"==typeof t||t.isSymbolicLink()){const t=sa(e,n);try{if(o=v(t),!o)continue}catch(e){continue}}else o=t;o.isFile()?r.push(n):o.isDirectory()&&i.push(n)}return r.sort(),i.sort(),{files:r,directories:i}}catch(e){return tp}}function k(e,t){const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const n=v(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=n}}function T(e){return k(e,0)}function C(e){try{return u(e)}catch{return e}}function w(e){var t;const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return null==(t=v(e))?void 0:t.mtime}catch(e){return}finally{Error.stackTraceLimit=n}}function N(e){const t=i.createHash("sha256");return t.update(e),t.digest("hex")}}()),e&&Eo(e),e})())&&uo.getEnvironmentVariable&&(yo(uo),Sn.setAssertionLevel(/^development$/i.test(uo.getEnvironmentVariable("NODE_ENV"))?1:0)),uo&&uo.debugMode&&(Sn.isDebugging=!0)}});function Bo(e){return 47===e||92===e}function Jo(e){return Qo(e)<0}function zo(e){return Qo(e)>0}function qo(e){const t=Qo(e);return t>0&&t===e.length}function Uo(e){return 0!==Qo(e)}function Vo(e){return/^\.\.?($|[\\/])/.test(e)}function Wo(e){return!Uo(e)&&!Vo(e)}function Ho(e){return ea(e).includes(".")}function $o(e,t){return e.length>t.length&&$t(e,t)}function Ko(e,t){for(const n of t)if($o(e,n))return!0;return!1}function Go(e){return e.length>0&&Bo(e.charCodeAt(e.length-1))}function Xo(e){return e>=97&&e<=122||e>=65&&e<=90}function Qo(e){if(!e)return 0;const t=e.charCodeAt(0);if(47===t||92===t){if(e.charCodeAt(1)!==t)return 1;const n=e.indexOf(47===t?Io:Oo,2);return n<0?e.length:n+1}if(Xo(t)&&58===e.charCodeAt(1)){const t=e.charCodeAt(2);if(47===t||92===t)return 3;if(2===e.length)return 2}const n=e.indexOf(Lo);if(-1!==n){const t=n+Lo.length,r=e.indexOf(Io,t);if(-1!==r){const i=e.slice(0,n),o=e.slice(t,r);if("file"===i&&(""===o||"localhost"===o)&&Xo(e.charCodeAt(r+1))){const t=function(e,t){const n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){const n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(e,r+2);if(-1!==t){if(47===e.charCodeAt(t))return~(t+1);if(t===e.length)return~t}}return~(r+1)}return~e.length}return 0}function Yo(e){const t=Qo(e);return t<0?~t:t}function Zo(e){const t=Yo(e=oa(e));return t===e.length?e:(e=fa(e)).slice(0,Math.max(t,e.lastIndexOf(Io)))}function ea(e,t,n){if(Yo(e=oa(e))===e.length)return"";const r=(e=fa(e)).slice(Math.max(Yo(e),e.lastIndexOf(Io)+1)),i=void 0!==t&&void 0!==n?na(r,t,n):void 0;return i?r.slice(0,r.length-i.length):r}function ta(e,t,n){if(an(t,".")||(t="."+t),e.length>=t.length&&46===e.charCodeAt(e.length-t.length)){const r=e.slice(e.length-t.length);if(n(r,t))return r}}function na(e,t,n){if(t)return function(e,t,n){if("string"==typeof t)return ta(e,t,n)||"";for(const r of t){const t=ta(e,r,n);if(t)return t}return""}(fa(e),t,n?Pt:Et);const r=ea(e),i=r.lastIndexOf(".");return i>=0?r.substring(i):""}function ra(e,t=""){return function(e,t){const n=e.substring(0,t),r=e.substring(t).split(Io);return r.length&&!Ae(r)&&r.pop(),[n,...r]}(e=sa(t,e),Yo(e))}function ia(e,t){if(0===e.length)return"";return(e[0]&&ma(e[0]))+e.slice(1,t).join(Io)}function oa(e){return e.includes("\\")?e.replace(jo,Io):e}function aa(e){if(!re(e))return[];const t=[e[0]];for(let n=1;n<e.length;n++){const r=e[n];if(r&&"."!==r){if(".."===r)if(t.length>1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(r)}}return t}function sa(e,...t){e&&(e=oa(e));for(let n of t)n&&(n=oa(n),e=e&&0===Yo(n)?ma(e)+n:n);return e}function ca(e,...t){return ua(re(t)?sa(e,...t):oa(e))}function la(e,t){return aa(ra(e,t))}function _a(e,t){return ia(la(e,t))}function ua(e){if(e=oa(e),!Mo.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Mo.test(e)))return e;const n=ia(aa(ra(e)));return n&&Go(e)?ma(n):n}function da(e,t){return 0===(n=la(e,t)).length?"":n.slice(1).join(Io);var n}function pa(e,t,n){return n(zo(e)?ua(e):_a(e,t))}function fa(e){return Go(e)?e.substr(0,e.length-1):e}function ma(e){return Go(e)?e:e+Io}function ga(e){return Uo(e)||Vo(e)?e:"./"+e}function ha(e,t,n,r){const i=void 0!==n&&void 0!==r?na(e,n,r):na(e);return i?e.slice(0,e.length-i.length)+(an(t,".")?t:"."+t):e}function ya(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;const r=e.substring(0,Yo(e)),i=t.substring(0,Yo(t)),o=jt(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!Mo.test(a)&&!Mo.test(s))return n(a,s);const c=aa(ra(e)),l=aa(ra(t)),_=Math.min(c.length,l.length);for(let e=1;e<_;e++){const t=n(c[e],l[e]);if(0!==t)return t}return It(c.length,l.length)}function va(e,t){return ya(e,t,Rt)}function ba(e,t){return ya(e,t,jt)}function xa(e,t,n,r){return"string"==typeof n?(e=sa(n,e),t=sa(n,t)):"boolean"==typeof n&&(r=n),ya(e,t,Bt(r))}function Sa(e,t,n,r){if("string"==typeof n?(e=sa(n,e),t=sa(n,t)):"boolean"==typeof n&&(r=n),void 0===e||void 0===t)return!1;if(e===t)return!0;const i=aa(ra(e)),o=aa(ra(t));if(o.length<i.length)return!1;const a=r?Pt:Et;for(let e=0;e<i.length;e++){if(!(0===e?Pt:a)(i[e],o[e]))return!1}return!0}function ka(e,t,n){const r=n(e),i=n(t);return an(r,i+"/")||an(r,i+"\\")}function Ta(e,t,n,r){const i=aa(ra(e)),o=aa(ra(t));let a;for(a=0;a<i.length&&a<o.length;a++){if(!(0===a?Pt:n)(r(i[a]),r(o[a])))break}if(0===a)return o;const s=o.slice(a),c=[];for(;a<i.length;a++)c.push("..");return["",...c,...s]}function Ca(e,t,n){Sn.assert(Yo(e)>0==Yo(t)>0,"Paths must either both be absolute or both be relative");return ia(Ta(e,t,"boolean"==typeof n&&n?Pt:Et,"function"==typeof n?n:bt))}function wa(e,t,n){return zo(e)?Da(t,e,t,n,!1):e}function Na(e,t,n){return ga(Ca(Zo(e),t,n))}function Da(e,t,n,r,i){const o=Ta(ca(n,e),ca(n,t),Et,r),a=o[0];if(i&&zo(a)){const e=a.charAt(0)===Io?"file://":"file:///";o[0]=e+a}return ia(o)}function Fa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=Zo(e);if(r===e)return;e=r}}function Pa(e){return $t(e,"/node_modules")}var Ea,Aa=g({"src/compiler/path.ts"(){OK(),Io="/",Oo="\\",Lo="://",jo=/\\/g,Mo=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function Ia(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var Oa,La,ja,Ma,Ra,Ba,Ja,za,qa,Ua,Va,Wa,Ha,$a,Ka,Ga,Xa=g({"src/compiler/diagnosticInformationMap.generated.ts"(){po(),Ea={Unterminated_string_literal:Ia(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:Ia(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:Ia(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:Ia(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:Ia(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:Ia(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:Ia(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:Ia(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:Ia(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:Ia(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:Ia(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:Ia(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:Ia(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:Ia(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:Ia(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:Ia(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:Ia(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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<T> type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:Ia(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<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:Ia(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:Ia(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:Ia(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:Ia(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:Ia(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:Ia(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:Ia(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:Ia(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:Ia(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:Ia(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:Ia(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:Ia(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:Ia(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:Ia(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:Ia(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:Ia(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:Ia(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:Ia(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:Ia(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:Ia(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:Ia(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:Ia(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:Ia(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:Ia(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:Ia(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:Ia(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:Ia(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:Ia(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:Ia(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:Ia(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:Ia(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:Ia(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:Ia(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:Ia(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:Ia(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:Ia(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:Ia(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:Ia(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:Ia(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:Ia(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:Ia(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:Ia(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:Ia(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:Ia(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:Ia(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:Ia(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:Ia(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:Ia(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:Ia(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:Ia(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:Ia(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:Ia(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:Ia(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:Ia(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:Ia(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:Ia(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:Ia(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Ia(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:Ia(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Ia(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:Ia(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:Ia(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:Ia(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:Ia(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:Ia(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:Ia(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:Ia(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:Ia(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:Ia(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:Ia(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:Ia(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:Ia(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:Ia(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:Ia(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:Ia(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),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:Ia(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:Ia(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:Ia(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:Ia(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Ia(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:Ia(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:Ia(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:Ia(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:Ia(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:Ia(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:Ia(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:Ia(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:Ia(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:Ia(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:Ia(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:Ia(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:Ia(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:Ia(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:Ia(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:Ia(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:Ia(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:Ia(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:Ia(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:Ia(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:Ia(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:Ia(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:Ia(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:Ia(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:Ia(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:Ia(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:Ia(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:Ia(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:Ia(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:Ia(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:Ia(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:Ia(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:Ia(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Ia(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:Ia(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:Ia(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:Ia(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:Ia(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:Ia(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:Ia(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:Ia(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Ia(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:Ia(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:Ia(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:Ia(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:Ia(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:Ia(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:Ia(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:Ia(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:Ia(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:Ia(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:Ia(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:Ia(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:Ia(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:Ia(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:Ia(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:Ia(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:Ia(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:Ia(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:Ia(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:Ia(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:Ia(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:Ia(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:Ia(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:Ia(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:Ia(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:Ia(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:Ia(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:Ia(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:Ia(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:Ia(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:Ia(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:Ia(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:Ia(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:Ia(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:Ia(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:Ia(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:Ia(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:Ia(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:Ia(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:Ia(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:Ia(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:Ia(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:Ia(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:Ia(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:Ia(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:Ia(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:Ia(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:Ia(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Ia(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:Ia(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:Ia(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:Ia(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:Ia(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:Ia(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:Ia(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Ia(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:Ia(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:Ia(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:Ia(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:Ia(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:Ia(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:Ia(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:Ia(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:Ia(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:Ia(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:Ia(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:Ia(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:Ia(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:Ia(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:Ia(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:Ia(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:Ia(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:Ia(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_or_nodenext:Ia(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2823","Import attributes are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Cannot_find_namespace_0_Did_you_mean_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:Ia(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', or 'nodenext', 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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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_declaration_0_is_using_private_name_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:Ia(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ia(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:Ia(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:Ia(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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'."),The_current_host_does_not_support_the_0_option:Ia(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:Ia(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:Ia(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:Ia(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:Ia(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:Ia(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:Ia(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:Ia(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:Ia(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:Ia(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:Ia(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:Ia(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:Ia(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:Ia(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:Ia(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:Ia(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:Ia(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:Ia(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:Ia(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:Ia(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:Ia(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:Ia(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:Ia(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:Ia(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:Ia(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:Ia(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:Ia(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:Ia(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:Ia(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:Ia(6024,3,"options_6024","options"),file:Ia(6025,3,"file_6025","file"),Examples_Colon_0:Ia(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:Ia(6027,3,"Options_Colon_6027","Options:"),Version_0:Ia(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:Ia(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:Ia(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:Ia(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:Ia(6034,3,"KIND_6034","KIND"),FILE:Ia(6035,3,"FILE_6035","FILE"),VERSION:Ia(6036,3,"VERSION_6036","VERSION"),LOCATION:Ia(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:Ia(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:Ia(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:Ia(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:Ia(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:Ia(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:Ia(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:Ia(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:Ia(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:Ia(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:Ia(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:Ia(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:Ia(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:Ia(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:Ia(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:Ia(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:Ia(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:Ia(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:Ia(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:Ia(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:Ia(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:Ia(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:Ia(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:Ia(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:Ia(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:Ia(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:Ia(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:Ia(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:Ia(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:Ia(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:Ia(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:Ia(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:Ia(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:Ia(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:Ia(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:Ia(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:Ia(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:Ia(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:Ia(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:Ia(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:Ia(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:Ia(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:Ia(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:Ia(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:Ia(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:Ia(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:Ia(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:Ia(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:Ia(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:Ia(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:Ia(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:Ia(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:Ia(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:Ia(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:Ia(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:Ia(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:Ia(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:Ia(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:Ia(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:Ia(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:Ia(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:Ia(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:Ia(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:Ia(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:Ia(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:Ia(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:Ia(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:Ia(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:Ia(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:Ia(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:Ia(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:Ia(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:Ia(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:Ia(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:Ia(6244,3,"Modules_6244","Modules"),File_Management:Ia(6245,3,"File_Management_6245","File Management"),Emit:Ia(6246,3,"Emit_6246","Emit"),JavaScript_Support:Ia(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:Ia(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:Ia(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:Ia(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:Ia(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:Ia(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:Ia(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:Ia(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:Ia(6255,3,"Projects_6255","Projects"),Output_Formatting:Ia(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:Ia(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:Ia(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:Ia(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278","There are types at '{0}', but this result could not be resolved when respecting package.json \"exports\". The '{1}' library may need to update its package.json or typings."),Enable_project_compilation:Ia(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:Ia(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:Ia(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:Ia(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:Ia(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:Ia(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:Ia(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:Ia(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:Ia(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:Ia(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:Ia(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:Ia(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:Ia(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:Ia(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:Ia(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:Ia(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:Ia(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:Ia(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:Ia(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:Ia(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:Ia(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:Ia(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:Ia(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:Ia(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:Ia(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:Ia(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:Ia(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:Ia(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:Ia(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:Ia(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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 '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:Ia(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:Ia(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:Ia(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:Ia(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:Ia(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:Ia(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:Ia(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:Ia(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:Ia(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:Ia(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:Ia(6902,3,"type_Colon_6902","type:"),default_Colon:Ia(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:Ia(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:Ia(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:Ia(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:Ia(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:Ia(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:Ia(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:Ia(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:Ia(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:Ia(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:Ia(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:Ia(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:Ia(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:Ia(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:Ia(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:Ia(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:Ia(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:Ia(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:Ia(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:Ia(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:Ia(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:Ia(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:Ia(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:Ia(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Ia(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:Ia(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:Ia(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:Ia(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:Ia(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:Ia(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:Ia(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:Ia(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:Ia(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:Ia(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:Ia(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:Ia(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:Ia(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:Ia(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:Ia(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:Ia(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:Ia(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:Ia(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:Ia(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:Ia(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:Ia(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:Ia(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:Ia(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:Ia(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:Ia(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:Ia(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:Ia(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:Ia(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:Ia(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:Ia(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:Ia(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:Ia(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:Ia(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:Ia(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:Ia(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:Ia(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:Ia(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:Ia(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:Ia(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:Ia(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:Ia(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:Ia(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:Ia(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:Ia(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:Ia(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:Ia(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:Ia(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:Ia(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:Ia(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:Ia(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:Ia(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:Ia(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:Ia(95005,3,"Extract_function_95005","Extract function"),Extract_constant:Ia(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:Ia(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:Ia(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:Ia(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:Ia(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:Ia(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:Ia(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:Ia(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:Ia(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:Ia(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:Ia(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:Ia(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:Ia(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:Ia(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:Ia(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:Ia(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:Ia(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:Ia(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:Ia(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:Ia(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:Ia(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:Ia(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:Ia(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:Ia(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:Ia(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:Ia(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:Ia(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:Ia(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:Ia(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:Ia(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:Ia(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:Ia(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:Ia(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:Ia(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:Ia(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:Ia(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:Ia(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:Ia(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:Ia(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:Ia(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:Ia(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:Ia(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:Ia(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:Ia(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:Ia(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:Ia(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:Ia(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:Ia(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:Ia(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:Ia(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:Ia(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:Ia(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:Ia(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:Ia(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:Ia(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:Ia(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:Ia(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:Ia(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:Ia(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:Ia(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:Ia(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:Ia(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:Ia(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:Ia(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:Ia(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:Ia(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:Ia(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:Ia(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:Ia(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:Ia(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:Ia(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:Ia(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:Ia(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:Ia(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:Ia(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:Ia(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:Ia(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:Ia(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:Ia(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:Ia(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:Ia(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:Ia(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:Ia(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:Ia(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:Ia(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:Ia(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:Ia(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:Ia(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:Ia(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:Ia(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:Ia(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:Ia(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:Ia(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:Ia(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:Ia(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:Ia(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:Ia(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:Ia(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:Ia(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:Ia(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:Ia(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:Ia(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:Ia(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:Ia(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:Ia(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:Ia(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:Ia(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:Ia(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:Ia(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:Ia(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:Ia(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:Ia(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:Ia(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:Ia(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:Ia(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:Ia(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:Ia(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:Ia(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:Ia(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:Ia(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:Ia(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:Ia(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:Ia(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:Ia(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:Ia(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:Ia(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:Ia(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:Ia(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:Ia(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:Ia(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:Ia(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:Ia(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:Ia(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:Ia(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:Ia(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:Ia(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:Ia(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:Ia(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:Ia(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:Ia(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:Ia(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:Ia(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:Ia(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:Ia(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:Ia(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:Ia(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:Ia(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:Ia(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:Ia(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:Ia(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:Ia(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:Ia(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:Ia(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:Ia(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:Ia(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:Ia(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:Ia(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:Ia(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:Ia(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:Ia(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:Ia(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:Ia(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:Ia(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:Ia(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:Ia(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:Ia(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:Ia(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:Ia(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:Ia(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:Ia(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:Ia(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:Ia(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:Ia(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:Ia(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:Ia(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:Ia(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:Ia(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:Ia(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(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:Ia(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:Ia(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:Ia(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:Ia(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:Ia(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:Ia(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:Ia(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:Ia(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:Ia(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.")}}});function Qa(e){return e>=80}function Ya(e){return 32===e||Qa(e)}function Za(e,t){if(e<t[0])return!1;let n,r=0,i=t.length;for(;r+1<i;){if(n=r+(i-r)/2,n-=n%2,t[n]<=e&&e<=t[n+1])return!0;e<t[n]?i=n:r=n+2}return!1}function es(e,t){return Za(e,t>=2?za:1===t?Ba:Ma)}function ts(e){return Ha[e]}function ns(e){return ja.get(e)}function rs(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e.charCodeAt(n);switch(n++,i){case 13:10===e.charCodeAt(n)&&n++;case 10:t.push(r),r=n;break;default:i>127&&ps(i)&&(t.push(r),r=n)}}return t.push(r),t}function is(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):os(as(e),t,n,e.text,r)}function os(e,t,n,r,i){(t<0||t>=e.length)&&(i?t=t<0?0:t>=e.length?e.length-1:t:Sn.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${void 0!==r?O(e,rs(r)):"unknown"}`));const o=e[t]+n;return i?o>e[t+1]?e[t+1]:"string"==typeof r&&o>r.length?r.length:o:(t<e.length-1?Sn.assert(o<e[t+1]):void 0!==r&&Sn.assert(o<=r.length),o)}function as(e){return e.lineMap||(e.lineMap=rs(e.text))}function ss(e,t){const n=cs(e,t);return{line:n,character:t-e[n]}}function cs(e,t,n){let r=Re(e,t,bt,It,n);return r<0&&(r=~r-1,Sn.assert(-1!==r,"position cannot precede the beginning of the file")),r}function ls(e,t,n){if(t===n)return 0;const r=as(e),i=Math.min(t,n),o=i===n,a=o?t:n,s=cs(r,i),c=cs(r,a,s);return o?s-c:c-s}function _s(e,t){return ss(as(e),t)}function us(e){return ds(e)||ps(e)}function ds(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function ps(e){return 10===e||13===e||8232===e||8233===e}function fs(e){return e>=48&&e<=57}function ms(e){return fs(e)||e>=65&&e<=70||e>=97&&e<=102}function gs(e){return e>=48&&e<=55}function hs(e,t){const 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 0===t;default:return n>127}}function ys(e,t,n,r,i){if(iT(t))return t;let o=!1;for(;;){const a=e.charCodeAt(t);switch(a){case 13:10===e.charCodeAt(t+1)&&t++;case 10:if(t++,n)return t;o=!!i;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(r)break;if(47===e.charCodeAt(t+1)){for(t+=2;t<e.length&&!ps(e.charCodeAt(t));)t++;o=!1;continue}if(42===e.charCodeAt(t+1)){for(t+=2;t<e.length;){if(42===e.charCodeAt(t)&&47===e.charCodeAt(t+1)){t+=2;break}t++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(vs(e,t)){t=bs(e,t),o=!1;continue}break;case 35:if(0===t&&xs(e,t)){t=Ss(e,t),o=!1;continue}break;case 42:if(o){t++,o=!1;continue}break;default:if(a>127&&us(a)){t++;continue}}return t}}function vs(e,t){if(Sn.assert(t>=0),0===t||ps(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+$a<e.length){for(let r=0;r<$a;r++)if(e.charCodeAt(t+r)!==n)return!1;return 61===n||32===e.charCodeAt(t+$a)}}return!1}function bs(e,t,n){n&&n(Ea.Merge_conflict_marker_encountered,t,$a);const r=e.charCodeAt(t),i=e.length;if(60===r||62===r)for(;t<i&&!ps(e.charCodeAt(t));)t++;else for(Sn.assert(124===r||61===r);t<i;){const n=e.charCodeAt(t);if((61===n||62===n)&&n!==r&&vs(e,t))break;t++}return t}function xs(e,t){return Sn.assert(0===t),Ka.test(e)}function Ss(e,t){return t+=Ka.exec(e)[0].length}function ks(e,t,n,r,i,o,a){let s,c,l,_,u=!1,d=r,p=a;if(0===n){d=!0;const e=Es(t);e&&(n=e.length)}e:for(;n>=0&&n<t.length;){const a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)break e;d=!0,u&&(_=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:const f=t.charCodeAt(n+1);let m=!1;if(47===f||42===f){const r=47===f?2:3,a=n;if(n+=2,47===f)for(;n<t.length;){if(ps(t.charCodeAt(n))){m=!0;break}n++}else for(;n<t.length;){if(42===t.charCodeAt(n)&&47===t.charCodeAt(n+1)){n+=2;break}n++}if(d){if(u&&(p=i(s,c,l,_,o,p),!e&&p))return p;s=a,c=n,l=r,_=m,u=!0}continue}break e;default:if(a>127&&us(a)){u&&ps(a)&&(_=!0),n++;continue}break e}}return u&&(p=i(s,c,l,_,o,p)),p}function Ts(e,t,n,r){return ks(!1,e,t,!1,n,r)}function Cs(e,t,n,r){return ks(!1,e,t,!0,n,r)}function ws(e,t,n,r,i){return ks(!0,e,t,!1,n,r,i)}function Ns(e,t,n,r,i){return ks(!0,e,t,!0,n,r,i)}function Ds(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function Fs(e,t){return ws(e,t,Ds,void 0,void 0)}function Ps(e,t){return Ns(e,t,Ds,void 0,void 0)}function Es(e){const t=Ka.exec(e);if(t)return t[0]}function As(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&es(e,t)}function Is(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return Za(e,t>=2?qa:1===t?Ja:Ra)}(e,t)}function Os(e,t,n){let r=js(e,0);if(!As(r,t))return!1;for(let i=Ms(r);i<e.length;i+=Ms(r))if(!Is(r=js(e,i),t,n))return!1;return!0}function Ls(e,t,n=0,r,i,o,a){var s,c,l,_,u,d,p,f,m=r,g=0,h=0,y=0;V(m,o,a);var v={getTokenFullStart:()=>l,getStartPos:()=>l,getTokenEnd:()=>s,getTextPos:()=>s,getToken:()=>u,getTokenStart:()=>_,getTokenPos:()=>_,getTokenText:()=>m.substring(_,s),getTokenValue:()=>d,hasUnicodeEscape:()=>0!=(1024&p),hasExtendedUnicodeEscape:()=>0!=(8&p),hasPrecedingLineBreak:()=>0!=(1&p),hasPrecedingJSDocComment:()=>0!=(2&p),isIdentifier:()=>80===u||u>118,isReservedWord:()=>u>=83&&u<=118,isUnterminated:()=>0!=(4&p),getCommentDirectives:()=>f,getNumericLiteralFlags:()=>25584&p,getTokenFlags:()=>p,reScanGreaterToken:function(){if(32===u){if(62===m.charCodeAt(s))return 62===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=73):(s+=2,u=50):61===m.charCodeAt(s+1)?(s+=2,u=72):(s++,u=49);if(61===m.charCodeAt(s))return s++,u=34}return u},reScanAsteriskEqualsToken:function(){return Sn.assert(67===u,"'reScanAsteriskEqualsToken' should only be called on a '*='"),s=_+1,u=64},reScanSlashToken:function(){if(44===u||69===u){let t=_+1,n=!1,r=!1;for(;;){if(t>=c){p|=4,b(Ea.Unterminated_regular_expression_literal);break}const e=m.charCodeAt(t);if(ps(e)){p|=4,b(Ea.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===e&&!r){t++;break}91===e?r=!0:92===e?n=!0:93===e&&(r=!1)}t++}for(;t<c&&Is(m.charCodeAt(t),e);)t++;s=t,d=m.substring(_,s),u=14}return u},reScanTemplateToken:function(e){return s=_,u=N(!e)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return s=_,u=N(!0)},scanJsxIdentifier:function(){if(Qa(u)){for(;s<c;){if(45===m.charCodeAt(s)){d+="-",s++;continue}const e=s;if(d+=A(),s===e)break}return I()}return u},scanJsxAttributeValue:z,reScanJsxAttributeValue:function(){return s=_=l,z()},reScanJsxToken:function(e=!0){return s=_=l,u=J(e)},reScanLessThanToken:function(){if(48===u)return s=_+1,u=30;return u},reScanHashToken:function(){if(81===u)return s=_+1,u=63;return u},reScanQuestionToken:function(){return Sn.assert(61===u,"'reScanQuestionToken' should only be called on a '??'"),s=_+1,u=58},reScanInvalidIdentifier:function(){Sn.assert(0===u,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),s=_=l,p=0;const e=js(m,s),t=R(e,99);if(t)return u=t;return s+=Ms(e),u},scanJsxToken:J,scanJsDocToken:q,scanJSDocCommentTextToken:function(e){if(l=_=s,p=0,s>=c)return u=1;for(let t=m.charCodeAt(s);s<c&&!ps(t)&&96!==t;t=js(m,++s))if(!e){if(123===t)break;if(64===t&&s-1>=0&&ds(m.charCodeAt(s-1))&&!(s+1<c&&us(m.charCodeAt(s+1))))break}if(s===_)return q();return d=m.substring(_,s),u=82},scan:j,getText:function(){return m},clearCommentDirectives:function(){f=void 0},setText:V,setScriptTarget:function(t){e=t},setLanguageVariant:function(e){n=e},setScriptKind:function(e){h=e},setJSDocParsingMode:function(e){y=e},setOnError:function(e){i=e},resetTokenState:W,setTextPos:W,setInJSDocType:function(e){g+=e?1:-1},tryScan:function(e){return U(e,!1)},lookAhead:function(e){return U(e,!0)},scanRange:function(e,t,n){const r=c,i=s,o=l,a=_,g=u,h=d,y=p,v=f;V(m,e,t);const b=n();return c=r,s=i,l=o,_=a,u=g,d=h,p=y,f=v,b}};return Sn.isDebugging&&Object.defineProperty(v,"__debugShowCurrentPositionInText",{get:()=>{const e=v.getText();return e.slice(0,v.getTokenFullStart())+"║"+e.slice(v.getTokenFullStart())}}),v;function b(e,t=s,n,r){if(i){const o=s;s=t,i(e,n||0,r),s=o}}function x(){let e=s,t=!1,n=!1,r="";for(;;){const i=m.charCodeAt(s);if(95!==i){if(!fs(i))break;t=!0,n=!1,s++}else p|=512,t?(t=!1,n=!0,r+=m.substring(e,s)):(p|=16384,b(n?Ea.Multiple_consecutive_numeric_separators_are_not_permitted:Ea.Numeric_separators_are_not_allowed_here,s,1)),e=++s}return 95===m.charCodeAt(s-1)&&(p|=16384,b(Ea.Numeric_separators_are_not_allowed_here,s-1,1)),r+m.substring(e,s)}function S(){let e,t,n,r=s;if(48===m.charCodeAt(s))if(s++,95===m.charCodeAt(s))p|=16896,b(Ea.Numeric_separators_are_not_allowed_here,s,1),s--,e=x();else if(function(){const e=s;let t=!0;for(;fs(m.charCodeAt(s));)gs(m.charCodeAt(s))||(t=!1),s++;return d=m.substring(e,s),t}()){if(d){d=""+parseInt(d,8),p|=32;const e=41===u,t=(e?"-":"")+"0o"+(+d).toString(8);return e&&r--,b(Ea.Octal_literals_are_not_allowed_Use_the_syntax_0,r,s-r,t),9}e="0"}else p|=8192,e=""+ +d;else e=x();46===m.charCodeAt(s)&&(s++,t=x());let i,o=s;if(69===m.charCodeAt(s)||101===m.charCodeAt(s)){s++,p|=16,43!==m.charCodeAt(s)&&45!==m.charCodeAt(s)||s++;const e=s,t=x();t?(n=m.substring(o,e)+t,o=s):b(Ea.Digit_expected)}if(512&p?(i=e,t&&(i+="."+t),n&&(i+=n)):i=m.substring(r,o),8192&p)return b(Ea.Decimals_with_leading_zeros_are_not_allowed,r,o-r),d=""+ +i,9;if(void 0!==t||16&p)return k(r,void 0===t&&!!(16&p)),d=""+ +i,9;{d=i;const e=L();return k(r),e}}function k(t,n){if(!As(js(m,s),e))return;const r=s,{length:i}=A();1===i&&"n"===m[r]?b(n?Ea.A_bigint_literal_cannot_use_exponential_notation:Ea.A_bigint_literal_must_be_an_integer,t,r-t+1):(b(Ea.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,i),s=r)}function T(e,t){return C(e,!0,t)}function C(e,t,n){let r=[],i=!1,o=!1;for(;r.length<e||t;){let e=m.charCodeAt(s);if(n&&95===e)p|=512,i?(i=!1,o=!0):b(o?Ea.Multiple_consecutive_numeric_separators_are_not_permitted:Ea.Numeric_separators_are_not_allowed_here,s,1),s++;else{if(i=n,e>=65&&e<=70)e+=32;else if(!(e>=48&&e<=57||e>=97&&e<=102))break;r.push(e),s++,o=!1}}return r.length<e&&(r=[]),95===m.charCodeAt(s-1)&&b(Ea.Numeric_separators_are_not_allowed_here,s-1,1),String.fromCharCode(...r)}function w(e=!1){const t=m.charCodeAt(s);let n="",r=++s;for(;;){if(s>=c){n+=m.substring(r,s),p|=4,b(Ea.Unterminated_string_literal);break}const i=m.charCodeAt(s);if(i===t){n+=m.substring(r,s),s++;break}if(92!==i||e){if((10===i||13===i)&&!e){n+=m.substring(r,s),p|=4,b(Ea.Unterminated_string_literal);break}s++}else n+=m.substring(r,s),n+=D(!0),r=s}return n}function N(e){const t=96===m.charCodeAt(s);let n,r=++s,i="";for(;;){if(s>=c){i+=m.substring(r,s),p|=4,b(Ea.Unterminated_template_literal),n=t?15:18;break}const o=m.charCodeAt(s);if(96===o){i+=m.substring(r,s),s++,n=t?15:18;break}if(36===o&&s+1<c&&123===m.charCodeAt(s+1)){i+=m.substring(r,s),s+=2,n=t?16:17;break}92!==o?13!==o?s++:(i+=m.substring(r,s),++s<c&&10===m.charCodeAt(s)&&s++,i+="\n",r=s):(i+=m.substring(r,s),i+=D(e),r=s)}return Sn.assert(void 0!==n),d=i,n}function D(e){const t=s;if(++s>=c)return b(Ea.Unexpected_end_of_text),"";const n=m.charCodeAt(s);switch(s++,n){case 48:if(s>=c||!fs(m.charCodeAt(s)))return"\0";case 49:case 50:case 51:s<c&&gs(m.charCodeAt(s))&&s++;case 52:case 53:case 54:case 55:if(s<c&&gs(m.charCodeAt(s))&&s++,p|=2048,e){const e=parseInt(m.substring(t+1,s),8);return b(Ea.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,t,s-t,"\\x"+e.toString(16).padStart(2,"0")),String.fromCharCode(e)}return m.substring(t,s);case 56:case 57:return p|=2048,e?(b(Ea.Escape_sequence_0_is_not_allowed,t,s-t,m.substring(t,s)),String.fromCharCode(n)):m.substring(t,s);case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(s<c&&123===m.charCodeAt(s)){s++;const n=T(1,!1),r=n?parseInt(n,16):-1;return r<0?(p|=2048,e&&b(Ea.Hexadecimal_digit_expected),m.substring(t,s)):r<=1114111?s>=c?(p|=2048,e&&b(Ea.Unexpected_end_of_text),m.substring(t,s)):125!==m.charCodeAt(s)?(p|=2048,e&&b(Ea.Unterminated_Unicode_escape_sequence),m.substring(t,s)):(s++,p|=8,Bs(r)):(p|=2048,e&&b(Ea.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),m.substring(t,s))}for(;s<t+6;s++)if(!(s<c&&ms(m.charCodeAt(s))))return p|=2048,e&&b(Ea.Hexadecimal_digit_expected),m.substring(t,s);return p|=1024,String.fromCharCode(parseInt(m.substring(t+2,s),16));case 120:for(;s<t+4;s++)if(!(s<c&&ms(m.charCodeAt(s))))return p|=2048,e&&b(Ea.Hexadecimal_digit_expected),m.substring(t,s);return p|=4096,String.fromCharCode(parseInt(m.substring(t+2,s),16));case 13:s<c&&10===m.charCodeAt(s)&&s++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function F(){const e=T(1,!1),t=e?parseInt(e,16):-1;let n=!1;return t<0?(b(Ea.Hexadecimal_digit_expected),n=!0):t>1114111&&(b(Ea.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),s>=c?(b(Ea.Unexpected_end_of_text),n=!0):125===m.charCodeAt(s)?s++:(b(Ea.Unterminated_Unicode_escape_sequence),n=!0),n?"":Bs(t)}function P(){if(s+5<c&&117===m.charCodeAt(s+1)){const e=s;s+=2;const t=function(e,t){const n=C(e,!1,t);return n?parseInt(n,16):-1}(4,!1);return s=e,t}return-1}function E(){if(117===js(m,s+1)&&123===js(m,s+2)){const e=s;s+=3;const t=T(1,!1),n=t?parseInt(t,16):-1;return s=e,n}return-1}function A(){let t="",n=s;for(;s<c;){let r=js(m,s);if(Is(r,e))s+=Ms(r);else{if(92!==r)break;if(r=E(),r>=0&&Is(r,e)){s+=3,p|=8,t+=F(),n=s;continue}if(r=P(),!(r>=0&&Is(r,e)))break;p|=1024,t+=m.substring(n,s),t+=Bs(r),n=s+=6}}return t+=m.substring(n,s),t}function I(){const e=d.length;if(e>=2&&e<=12){const e=d.charCodeAt(0);if(e>=97&&e<=122){const e=La.get(d);if(void 0!==e)return u=e}}return u=80}function O(e){let t="",n=!1,r=!1;for(;;){const i=m.charCodeAt(s);if(95!==i){if(n=!0,!fs(i)||i-48>=e)break;t+=m[s],s++,r=!1}else p|=512,n?(n=!1,r=!0):b(r?Ea.Multiple_consecutive_numeric_separators_are_not_permitted:Ea.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===m.charCodeAt(s-1)&&b(Ea.Numeric_separators_are_not_allowed_here,s-1,1),t}function L(){if(110===m.charCodeAt(s))return d+="n",384&p&&(d=vT(d)+"n"),s++,10;{const e=128&p?parseInt(d.slice(2),2):256&p?parseInt(d.slice(2),8):+d;return d=""+e,9}}function j(){l=s,p=0;let r=!1;for(;;){if(_=s,s>=c)return u=1;const i=js(m,s);if(0===s){if(65533===i)return b(Ea.File_appears_to_be_binary),s=c,u=8;if(35===i&&xs(m,s)){if(s=Ss(m,s),t)continue;return u=6}}switch(i){case 10:case 13:if(p|=1,t){s++;continue}return 13===i&&s+1<c&&10===m.charCodeAt(s+1)?s+=2:s++,u=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){s++;continue}for(;s<c&&ds(m.charCodeAt(s));)s++;return u=5;case 33:return 61===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=38):(s+=2,u=36):(s++,u=54);case 34:case 39:return d=w(),u=11;case 96:return u=N(!1);case 37:return 61===m.charCodeAt(s+1)?(s+=2,u=70):(s++,u=45);case 38:return 38===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=77):(s+=2,u=56):61===m.charCodeAt(s+1)?(s+=2,u=74):(s++,u=51);case 40:return s++,u=21;case 41:return s++,u=22;case 42:if(61===m.charCodeAt(s+1))return s+=2,u=67;if(42===m.charCodeAt(s+1))return 61===m.charCodeAt(s+2)?(s+=3,u=68):(s+=2,u=43);if(s++,g&&!r&&1&p){r=!0;continue}return u=42;case 43:return 43===m.charCodeAt(s+1)?(s+=2,u=46):61===m.charCodeAt(s+1)?(s+=2,u=65):(s++,u=40);case 44:return s++,u=28;case 45:return 45===m.charCodeAt(s+1)?(s+=2,u=47):61===m.charCodeAt(s+1)?(s+=2,u=66):(s++,u=41);case 46:return fs(m.charCodeAt(s+1))?(S(),u=9):46===m.charCodeAt(s+1)&&46===m.charCodeAt(s+2)?(s+=3,u=26):(s++,u=25);case 47:if(47===m.charCodeAt(s+1)){for(s+=2;s<c&&!ps(m.charCodeAt(s));)s++;if(f=B(f,m.slice(_,s),Ua,_),t)continue;return u=2}if(42===m.charCodeAt(s+1)){s+=2;const e=42===m.charCodeAt(s)&&47!==m.charCodeAt(s+1);let n=!1,r=_;for(;s<c;){const e=m.charCodeAt(s);if(42===e&&47===m.charCodeAt(s+1)){s+=2,n=!0;break}s++,ps(e)&&(r=s,p|=1)}if(e&&M()&&(p|=2),f=B(f,m.slice(r,s),Va,r),n||b(Ea.Asterisk_Slash_expected),t)continue;return n||(p|=4),u=3}return 61===m.charCodeAt(s+1)?(s+=2,u=69):(s++,u=44);case 48:if(s+2<c&&(88===m.charCodeAt(s+1)||120===m.charCodeAt(s+1)))return s+=2,(d=T(1,!0))||(b(Ea.Hexadecimal_digit_expected),d="0"),d="0x"+d,p|=64,u=L();if(s+2<c&&(66===m.charCodeAt(s+1)||98===m.charCodeAt(s+1)))return s+=2,(d=O(2))||(b(Ea.Binary_digit_expected),d="0"),d="0b"+d,p|=128,u=L();if(s+2<c&&(79===m.charCodeAt(s+1)||111===m.charCodeAt(s+1)))return s+=2,(d=O(8))||(b(Ea.Octal_digit_expected),d="0"),d="0o"+d,p|=256,u=L();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return u=S();case 58:return s++,u=59;case 59:return s++,u=27;case 60:if(vs(m,s)){if(s=bs(m,s,b),t)continue;return u=7}return 60===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=71):(s+=2,u=48):61===m.charCodeAt(s+1)?(s+=2,u=33):1===n&&47===m.charCodeAt(s+1)&&42!==m.charCodeAt(s+2)?(s+=2,u=31):(s++,u=30);case 61:if(vs(m,s)){if(s=bs(m,s,b),t)continue;return u=7}return 61===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=37):(s+=2,u=35):62===m.charCodeAt(s+1)?(s+=2,u=39):(s++,u=64);case 62:if(vs(m,s)){if(s=bs(m,s,b),t)continue;return u=7}return s++,u=32;case 63:return 46!==m.charCodeAt(s+1)||fs(m.charCodeAt(s+2))?63===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=78):(s+=2,u=61):(s++,u=58):(s+=2,u=29);case 91:return s++,u=23;case 93:return s++,u=24;case 94:return 61===m.charCodeAt(s+1)?(s+=2,u=79):(s++,u=53);case 123:return s++,u=19;case 124:if(vs(m,s)){if(s=bs(m,s,b),t)continue;return u=7}return 124===m.charCodeAt(s+1)?61===m.charCodeAt(s+2)?(s+=3,u=76):(s+=2,u=57):61===m.charCodeAt(s+1)?(s+=2,u=75):(s++,u=52);case 125:return s++,u=20;case 126:return s++,u=55;case 64:return s++,u=60;case 92:const o=E();if(o>=0&&As(o,e))return s+=3,p|=8,d=F()+A(),u=I();const a=P();return a>=0&&As(a,e)?(s+=6,p|=1024,d=String.fromCharCode(a)+A(),u=I()):(b(Ea.Invalid_character),s++,u=0);case 35:if(0!==s&&"!"===m[s+1])return b(Ea.can_only_be_used_at_the_start_of_a_file),s++,u=0;const l=js(m,s+1);if(92===l){s++;const t=E();if(t>=0&&As(t,e))return s+=3,p|=8,d="#"+F()+A(),u=81;const n=P();if(n>=0&&As(n,e))return s+=6,p|=1024,d="#"+String.fromCharCode(n)+A(),u=81;s--}return As(l,e)?(s++,R(l,e)):(d="#",b(Ea.Invalid_character,s++,Ms(i))),u=81;default:const h=R(i,e);if(h)return u=h;if(ds(i)){s+=Ms(i);continue}if(ps(i)){p|=1,s+=Ms(i);continue}const y=Ms(i);return b(Ea.Invalid_character,s,y),s+=y,u=0}}}function M(){switch(y){case 0:return!0;case 1:return!1}return 3!==h&&4!==h||3!==y&&Wa.test(m.slice(l,s))}function R(e,t){let n=e;if(As(n,t)){for(s+=Ms(n);s<c&&Is(n=js(m,s),t);)s+=Ms(n);return d=m.substring(_,s),92===n&&(d+=A()),I()}}function B(e,t,n,r){const i=function(e,t){const n=t.exec(e);if(!n)return;switch(n[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(t.trimStart(),n);return void 0===i?e:he(e,{range:{pos:r,end:s},type:i})}function J(e=!0){if(l=_=s,s>=c)return u=1;let t=m.charCodeAt(s);if(60===t)return 47===m.charCodeAt(s+1)?(s+=2,u=31):(s++,u=30);if(123===t)return s++,u=19;let n=0;for(;s<c&&(t=m.charCodeAt(s),123!==t);){if(60===t){if(vs(m,s))return s=bs(m,s,b),u=7;break}if(62===t&&b(Ea.Unexpected_token_Did_you_mean_or_gt,s,1),125===t&&b(Ea.Unexpected_token_Did_you_mean_or_rbrace,s,1),ps(t)&&0===n)n=-1;else{if(!e&&ps(t)&&n>0)break;us(t)||(n=s)}s++}return d=m.substring(l,s),-1===n?13:12}function z(){switch(l=s,m.charCodeAt(s)){case 34:case 39:return d=w(!0),u=11;default:return j()}}function q(){if(l=_=s,p=0,s>=c)return u=1;const t=js(m,s);switch(s+=Ms(t),t){case 9:case 11:case 12:case 32:for(;s<c&&ds(m.charCodeAt(s));)s++;return u=5;case 64:return u=60;case 13:10===m.charCodeAt(s)&&s++;case 10:return p|=1,u=4;case 42:return u=42;case 123:return u=19;case 125:return u=20;case 91:return u=23;case 93:return u=24;case 60:return u=30;case 62:return u=32;case 61:return u=64;case 44:return u=28;case 46:return u=25;case 96:return u=62;case 35:return u=63;case 92:s--;const t=E();if(t>=0&&As(t,e))return s+=3,p|=8,d=F()+A(),u=I();const n=P();return n>=0&&As(n,e)?(s+=6,p|=1024,d=String.fromCharCode(n)+A(),u=I()):(s++,u=0)}if(As(t,e)){let n=t;for(;s<c&&Is(n=js(m,s),e)||45===m.charCodeAt(s);)s+=Ms(n);return d=m.substring(_,s),92===n&&(d+=A()),u=I()}return u=0}function U(e,t){const n=s,r=l,i=_,o=u,a=d,c=p,f=e();return f&&!t||(s=n,l=r,_=i,u=o,d=a,p=c),f}function V(e,t,n){m=e||"",c=void 0===n?m.length:t+n,W(t||0)}function W(e){Sn.assert(e>=0),s=e,l=e,_=e,u=0,d=void 0,p=0}}function js(e,t){return e.codePointAt(t)}function Ms(e){return e>=65536?2:1}function Rs(e){if(Sn.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);const t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function Bs(e){return Ga(e)}var Js,zs,qs,Us=g({"src/compiler/scanner.ts"(){OK(),Oa={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},La=new Map(Object.entries(Oa)),ja=new Map(Object.entries({...Oa,"{":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,"</":31,">>":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})),Ma=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ra=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Ba=[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],Ja=[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],za=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],qa=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],Ua=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Va=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Wa=/@(?:see|link)/i,Ha=function(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}(ja),$a=7,Ka=/^#!.*/,Ga=String.fromCodePoint?e=>String.fromCodePoint(e):Rs}});function Vs(e){return Vo(e)||zo(e)}function Ws(e){return ue(e,RS)}function Hs(e){switch(HS(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function $s(e){return e.start+e.length}function Ks(e){return 0===e.length}function Gs(e,t){return t>=e.start&&t<$s(e)}function Xs(e,t){return t>=e.pos&&t<=e.end}function Qs(e,t){return t.start>=e.start&&$s(t)<=$s(e)}function Ys(e,t){return void 0!==Zs(e,t)}function Zs(e,t){const n=ic(e,t);return n&&0===n.length?void 0:n}function ec(e,t){return nc(e.start,e.length,t.start,t.length)}function tc(e,t,n){return nc(e.start,e.length,t,n)}function nc(e,t,n,r){return n<=e+t&&n+r>=e}function rc(e,t){return t<=$s(e)&&t>=e.start}function ic(e,t){const n=Math.max(e.start,t.start),r=Math.min($s(e),$s(t));return n<=r?ac(n,r):void 0}function oc(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function ac(e,t){return oc(e,t-e)}function sc(e){return oc(e.span.start,e.newLength)}function cc(e){return Ks(e.span)&&0===e.newLength}function lc(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function _c(e){if(0===e.length)return Js;if(1===e.length)return e[0];const t=e[0];let n=t.span.start,r=$s(t.span),i=n+t.newLength;for(let t=1;t<e.length;t++){const o=e[t],a=n,s=r,c=i,l=o.span.start,_=$s(o.span),u=l+o.newLength;n=Math.min(a,l),r=Math.max(s,s+(_-c)),i=Math.max(u,u+(c-_))}return lc(ac(n,r),i-n)}function uc(e){if(e&&168===e.kind)for(let t=e;t;t=t.parent)if(y_(t)||w_(t)||264===t.kind)return t}function dc(e,t){return _D(e)&&fb(e,31)&&176===t.kind}function pc(e){return!!R_(e)&&N(e.elements,fc)}function fc(e){return!!vF(e)||pc(e.name)}function mc(e){let t=e.parent;for(;GD(t.parent);)t=t.parent.parent;return t.parent}function gc(e,t){GD(e)&&(e=mc(e));let n=t(e);return 260===e.kind&&(e=e.parent),e&&261===e.kind&&(n|=t(e),e=e.parent),e&&243===e.kind&&(n|=t(e)),n}function hc(e){return gc(e,wb)}function yc(e){return gc(e,Nb)}function vc(e){return gc(e,bc)}function bc(e){return e.flags}function xc(e,t,n){const r=e.toLowerCase(),i=/^([a-z]+)([_-]([a-z]+))?$/.exec(r);if(!i)return void(n&&n.push(IS(Ea.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp")));const o=i[1],a=i[3];function s(e,n,r){let i=sa(Zo(ua(t.getExecutingFilePath())),e);if(n&&(i=i+"-"+n),i=t.resolvePath(sa(i,"diagnosticMessages.generated.json")),!t.fileExists(i))return!1;let o="";try{o=t.readFile(i)}catch(e){return r&&r.push(IS(Ea.Unable_to_open_file_0,i)),!1}try{TS(JSON.parse(o))}catch{return r&&r.push(IS(Ea.Corrupted_locale_file_0,i)),!1}return!0}I(zs,r)&&!s(o,a,n)&&s(o,void 0,n),zt(e)}function Sc(e,t){if(e)for(;void 0!==e.original;)e=e.original;return e&&t?t(e)?e:void 0:e}function kc(e,t){for(;e;){const n=t(e);if("quit"===n)return;if(n)return e;e=e.parent}}function Tc(e){return 0==(16&e.flags)}function Cc(e,t){if(void 0===e||Tc(e))return e;for(e=e.original;e;){if(Tc(e))return!t||t(e)?e:void 0;e=e.original}}function wc(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function Nc(e){const t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function Dc(e){return Nc(e.escapedText)}function Fc(e){const t=ns(e.escapedText);return t?ft(t,hy):void 0}function Pc(e){return e.valueDeclaration&&l_(e.valueDeclaration)?Dc(e.valueDeclaration.name):Nc(e.escapedName)}function Ec(e){const t=e.parent.parent;if(t){if(Nu(t))return Ac(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return Ac(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(HN(t))return t}break;case 217:return Ac(t.expression);case 256:if(Nu(t.statement)||au(t.statement))return Ac(t.statement)}}}function Ac(e){const t=Mc(e);return t&&HN(t)?t:void 0}function Ic(e,t){return!(!Lc(e)||!HN(e.name)||Dc(e.name)!==Dc(t))||!(!EF(e)||!re(e.declarationList.declarations,(e=>Ic(e,t))))}function Oc(e){return e.name||Ec(e)}function Lc(e){return!!e.name}function jc(e){switch(e.kind){case 80:return e;case 355:case 348:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(Gg(t)){case 1:case 4:case 5:case 3:return rh(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 353:return Oc(e);case 347:return Ec(e);case 277:{const{expression:t}=e;return HN(t)?t:void 0}case 212:const t=e;if(eh(t))return t.argumentExpression}return e.name}function Mc(e){if(void 0!==e)return jc(e)||(oF(e)||aF(e)||yF(e)?Rc(e):void 0)}function Rc(e){if(e.parent){if(qP(e.parent)||GD(e.parent))return e.parent.name;if(pF(e.parent)&&e===e.parent.right){if(HN(e.parent.left))return e.parent.left;if(sS(e.parent.left))return rh(e.parent.left)}else if(GF(e.parent)&&HN(e.parent.name))return e.parent.name}}function Bc(e){if(Sb(e))return M(e.modifiers,uD)}function Jc(e){if(fb(e,98303))return M(e.modifiers,f_)}function zc(e,t){if(e.name){if(HN(e.name)){const n=e.name.escapedText;return gl(e.parent,t).filter((e=>wE(e)&&HN(e.name)&&e.name.escapedText===n))}{const n=e.parent.parameters.indexOf(e);Sn.assert(n>-1,"Parameters should always be in their parents' parameter list");const r=gl(e.parent,t).filter(wE);if(n<r.length)return[r[n]]}}return r}function qc(e){return zc(e,!1)}function Uc(e){return zc(e,!0)}function Vc(e,t){const n=e.name.escapedText;return gl(e.parent,t).filter((e=>PE(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function Wc(e){return Vc(e,!1)}function Hc(e){return Vc(e,!0)}function $c(e){return!!vl(e,wE)}function Kc(e){return vl(e,pE)}function Gc(e){return bl(e,OE)}function Xc(e){return vl(e,mE)}function Qc(e){return vl(e,hE)}function Yc(e){return vl(e,hE,!0)}function Zc(e){return vl(e,yE)}function el(e){return vl(e,yE,!0)}function tl(e){return vl(e,vE)}function nl(e){return vl(e,vE,!0)}function rl(e){return vl(e,bE)}function il(e){return vl(e,bE,!0)}function ol(e){return vl(e,xE,!0)}function al(e){return vl(e,kE)}function sl(e){return vl(e,kE,!0)}function cl(e){return vl(e,CE)}function ll(e){return vl(e,DE)}function _l(e){return vl(e,NE)}function ul(e){return vl(e,PE)}function dl(e){return vl(e,LE)}function pl(e){const t=vl(e,FE);if(t&&t.typeExpression&&t.typeExpression.type)return t}function fl(e){let t=vl(e,FE);return!t&&_D(e)&&(t=D(qc(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function ml(e){const t=_l(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=pl(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(DD(e)){const t=D(e.members,bD);return t&&t.type}if(CD(e)||sE(e))return e.type}}function gl(e,t){var n;if(!Nh(e))return r;let i=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===i||t){const n=Dh(e,t);Sn.assert(n.length<2||n[0]!==n[1]),i=V(n,(e=>_E(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function hl(e){return gl(e,!1)}function yl(e){return gl(e,!0)}function vl(e,t,n){return D(gl(e,n),t)}function bl(e,t){return hl(e).filter(t)}function xl(e,t){return hl(e).filter((e=>e.kind===t))}function Sl(e){return"string"==typeof e?e:null==e?void 0:e.map((e=>328===e.kind?e.text:function(e){const t=331===e.kind?"link":332===e.kind?"linkcode":"linkplain",n=e.name?Rf(e.name):"",r=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${n}${r}${e.text}}`}(e))).join("")}function kl(e){if(dE(e)){if(SE(e.parent)){const t=Mh(e.parent);if(t&&v(t.tags))return V(t.tags,(e=>PE(e)?e.typeParameters:void 0))}return r}if(bh(e))return Sn.assert(327===e.parent.kind),V(e.parent.tags,(e=>PE(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(EA(e)&&e.typeParameters)return e.typeParameters;if(Tg(e)){const t=tb(e);if(t.length)return t;const n=fl(e);if(n&&CD(n)&&n.typeParameters)return n.typeParameters}return r}function Tl(e){return e.constraint?e.constraint:PE(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function Cl(e){return 80===e.kind||81===e.kind}function wl(e){return 178===e.kind||177===e.kind}function Nl(e){return YD(e)&&!!(64&e.flags)}function Dl(e){return ZD(e)&&!!(64&e.flags)}function Fl(e){return eF(e)&&!!(64&e.flags)}function Pl(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function El(e){return Pl(e)&&!kF(e)&&!!e.questionDotToken}function Al(e){return El(e.parent)&&e.parent.expression===e}function Il(e){return!Pl(e.parent)||El(e.parent)||e!==e.parent.expression}function Ol(e){return 226===e.kind&&61===e.operatorToken.kind}function Ll(e){return TD(e)&&HN(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function jl(e){return uA(e,8)}function Ml(e){return kF(e)&&!!(64&e.flags)}function Rl(e){return 252===e.kind||251===e.kind}function Bl(e){return 280===e.kind||279===e.kind}function Jl(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function zl(e){return Jl(e)||307===e.kind||311===e.kind}function ql(e){return 355===e.kind||348===e.kind}function Ul(e){return Vl(e.kind)}function Vl(e){return e>=166}function Wl(e){return e>=0&&e<=165}function Hl(e){return Wl(e.kind)}function $l(e){return ze(e,"pos")&&ze(e,"end")}function Kl(e){return 9<=e&&e<=15}function Gl(e){return Kl(e.kind)}function Xl(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Ql(e){return 15<=e&&e<=18}function Yl(e){return Ql(e.kind)}function Zl(e){const t=e.kind;return 17===t||18===t}function e_(e){return hP(e)||xP(e)}function t_(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function n_(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function r_(e){return t_(e)||n_(e)}function i_(e){return 11===e.kind||Ql(e.kind)}function o_(e){return FN(e)||HN(e)}function a_(e){var t;return HN(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function s_(e){var t;return $N(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function c_(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function l_(e){return(pD(e)||P_(e))&&$N(e.name)}function __(e){return YD(e)&&$N(e.name)}function u_(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 d_(e){return!!(31&Ob(e))}function p_(e){return d_(e)||126===e||164===e||129===e}function f_(e){return u_(e.kind)}function m_(e){const t=e.kind;return 166===t||80===t}function g_(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function h_(e){const t=e.kind;return 80===t||206===t||207===t}function y_(e){return!!e&&k_(e.kind)}function v_(e){return!!e&&(k_(e.kind)||gD(e))}function b_(e){return e&&S_(e.kind)}function x_(e){return 112===e.kind||97===e.kind}function S_(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function k_(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return S_(e)}}function T_(e){return $P(e)||rP(e)||PF(e)&&y_(e.parent)}function C_(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function w_(e){return e&&(263===e.kind||231===e.kind)}function N_(e){return e&&(177===e.kind||178===e.kind)}function D_(e){return pD(e)&&bb(e)}function F_(e){return Tg(e)&&gC(e)?!(Zg(e)&&Zb(e.expression)||th(e,!0)):e.parent&&w_(e.parent)&&pD(e)&&!bb(e)}function P_(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function E_(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function A_(e){return f_(e)||uD(e)}function I_(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t}function O_(e){return I_(e)||C_(e)}function L_(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function j_(e){return aS(e.kind)}function M_(e){switch(e.kind){case 184:case 185:return!0}return!1}function R_(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function B_(e){const t=e.kind;return 209===t||210===t}function J_(e){const t=e.kind;return 208===t||232===t}function z_(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function q_(e){return GF(e)||_D(e)||W_(e)||$_(e)}function U_(e){return V_(e)||H_(e)}function V_(e){switch(e.kind){case 206:case 210:return!0}return!1}function W_(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function H_(e){switch(e.kind){case 207:case 209:return!0}return!1}function $_(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Vb(e,!0)}function K_(e){const t=e.kind;return 211===t||166===t||205===t}function G_(e){const t=e.kind;return 211===t||166===t}function X_(e){return Q_(e)||VT(e)}function Q_(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function Y_(e){return 213===e.kind||214===e.kind}function Z_(e){const t=e.kind;return 228===t||15===t}function eu(e){return tu(jl(e).kind)}function tu(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function nu(e){return ru(jl(e).kind)}function ru(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return tu(e)}}function iu(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function ou(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Gl(e)}}function au(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return ru(e)}}(jl(e).kind)}function su(e){const t=e.kind;return 216===t||234===t}function cu(e){return kP(e)||wF(e)}function lu(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&lu(e.statement,t)}return!1}function _u(e){return yP(e)||vP(e)}function uu(e){return re(e,_u)}function du(e){return!(Ff(e)||yP(e)||fb(e,32)||lf(e))}function pu(e){return Ff(e)||yP(e)||fb(e,32)}function fu(e){return 249===e.kind||250===e.kind}function mu(e){return PF(e)||au(e)}function gu(e){return PF(e)}function hu(e){return XF(e)||au(e)}function yu(e){const t=e.kind;return 268===t||267===t||80===t}function vu(e){const t=e.kind;return 268===t||267===t}function bu(e){const t=e.kind;return 80===t||267===t}function xu(e){const t=e.kind;return 275===t||274===t}function Su(e){return 267===e.kind||266===e.kind}function ku(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Tu(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function Cu(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function wu(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||359===e}function Nu(e){return 168===e.kind?e.parent&&352!==e.parent.kind||Tg(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||353===t||345===t||355===t;var t}function Du(e){return Cu(e.kind)}function Fu(e){return wu(e.kind)}function Pu(e){const t=e.kind;return wu(t)||Cu(t)||function(e){if(241!==e.kind)return!1;if(void 0!==e.parent&&(258===e.parent.kind||299===e.parent.kind))return!1;return!Em(e)}(e)}function Eu(e){const t=e.kind;return wu(t)||Cu(t)||241===t}function Au(e){const t=e.kind;return 283===t||166===t||80===t}function Iu(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function Ou(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function Lu(e){const t=e.kind;return 291===t||293===t}function ju(e){const t=e.kind;return 11===t||294===t}function Mu(e){const t=e.kind;return 286===t||285===t}function Ru(e){const t=e.kind;return 296===t||297===t}function Bu(e){return e.kind>=316&&e.kind<=357}function Ju(e){return 327===e.kind||326===e.kind||328===e.kind||Yu(e)||zu(e)||uE(e)||dE(e)}function zu(e){return e.kind>=334&&e.kind<=357}function qu(e){return 178===e.kind}function Uu(e){return 177===e.kind}function Vu(e){if(!Nh(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function Wu(e){return!!e.type}function Hu(e){return!!e.initializer}function $u(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Ku(e){return 291===e.kind||293===e.kind||L_(e)}function Gu(e){return 183===e.kind||233===e.kind}function Xu(e){let t=qs;for(const n of e){if(!n.length)continue;let e=0;for(;e<n.length&&e<t&&us(n.charCodeAt(e));e++);if(e<t&&(t=e),0===t)return 0}return t===qs?void 0:t}function Qu(e){return 11===e.kind||15===e.kind}function Yu(e){return 331===e.kind||332===e.kind||333===e.kind}function Zu(e){const t=Ae(e.parameters);return!!t&&ed(t)}function ed(e){const t=wE(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!t&&325===t.kind}var td,nd,rd,id,od,ad,sd,cd,ld,_d,ud,dd,pd,fd,md,gd,hd,yd,vd,bd,xd,Sd,kd,Td,Cd,wd,Nd,Dd,Fd,Pd,Ed,Ad,Id,Od,Ld,jd,Md,Rd,Bd,Jd,zd,qd,Ud,Vd,Wd,Hd,$d,Kd,Gd,Xd,Qd,Yd,Zd,ep,tp,np=g({"src/compiler/utilitiesPublic.ts"(){OK(),Js=lc(oc(0,0),0),zs=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],qs=1073741823}});function rp(e,t){const n=e.declarations;if(n)for(const e of n)if(e.kind===t)return e}function ip(e,t){return M(e.declarations||r,(e=>e.kind===t))}function op(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function ap(e){return 0!=(33554432&e.flags)}function sp(e,t){return e.configFilePath!==t.configFilePath||cp(e,t)}function cp(e,t){return _p(e,t,NO)}function lp(e,t){return _p(e,t,FO)}function _p(e,t,n){return e!==t&&n.some((n=>!yT(bk(e,n),bk(t,n))))}function up(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if($P(e))return;e=e.parent}}function dp(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function pp(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function fp(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function mp(e){const t=od.getText();try{return e(od),od.getText()}finally{od.clear(),od.writeKeyword(t)}}function gp(e){return e.end-e.pos}function hp(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function yp(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&&(n=e.resolvedModule.packageId,r=t.resolvedModule.packageId,n===r||!!n&&!!r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version)&&e.node10Result===t.node10Result;var n,r}function vp(e,t,n,r,i){var o;const a=null==(o=t.getResolvedModule(e,n,r))?void 0:o.node10Result,s=a?LS(void 0,Ea.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(Ij+"@types/")?`@types/${_R(i)}`:i):t.typesPackageExists(i)?LS(void 0,Ea.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,_R(i)):t.packageBundlesTypes(i)?LS(void 0,Ea.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):LS(void 0,Ea.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,_R(i));return s&&(s.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),s}function bp({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function xp(e){return`${bp(e)}@${e.version}`}function Sp(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 kp(e,t,n,r,i,o){Sn.assert(e.length===n.length);for(let a=0;a<e.length;a++){const s=n[a],c=e[a],l=r(o.getName(c),o.getMode(c,t));if(l?!s||!i(l,s):s)return!0}return!1}function Tp(e){return function(e){if(!(2097152&e.flags)){(0!=(262144&e.flags)||KI(e,Tp))&&(e.flags|=1048576),e.flags|=2097152}}(e),0!=(1048576&e.flags)}function Cp(e){for(;e&&312!==e.kind;)e=e.parent;return e}function wp(e){return Cp(e.valueDeclaration||yf(e))}function Np(e,t){return!(!e||1!==e.scriptKind&&2!==e.scriptKind||e.checkJsDirective||void 0!==t)}function Dp(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function Fp(e,t){return Sn.assert(e>=0),as(t)[e]}function Pp(e){const t=Cp(e),n=_s(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Ep(e,t){Sn.assert(e>=0);const n=as(t),r=e,i=t.text;if(r+1===n.length)return i.length-1;{const e=n[r];let t=n[r+1]-1;for(Sn.assert(ps(i.charCodeAt(t)));e<=t&&ps(i.charCodeAt(t));)t--;return t}}function Ap(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function Ip(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function Op(e){return!Ip(e)}function Lp(e,t){return lD(e)?t===e.expression:gD(e)?t===e.modifiers:dD(e)?t===e.initializer:pD(e)?t===e.questionToken&&D_(e):qP(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||jp(e.modifiers,t,A_):UP(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||jp(e.modifiers,t,A_):mD(e)?t===e.exclamationToken:hD(e)?t===e.typeParameters||t===e.type||jp(e.typeParameters,t,lD):yD(e)?t===e.typeParameters||jp(e.typeParameters,t,lD):vD(e)?t===e.typeParameters||t===e.type||jp(e.typeParameters,t,lD):!!oP(e)&&(t===e.modifiers||jp(e.modifiers,t,A_))}function jp(e,t,n){return!(!e||_t(t)||!n(t))&&I(e,t)}function Mp(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,...t),e}function Rp(e,t,n){if(void 0===t)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,t),e}function Bp(e){return _m(e)||!!(2097152&tf(e))}function Jp(e,t){return Mp(e,t,_m)}function zp(e,t){return Mp(e,t,Bp)}function qp(e,t){return Rp(e,t,_m)}function Up(e,t){return Rp(e,t,Bp)}function Vp(e,t,n){if(47===e.charCodeAt(t+1)&&t+2<n&&47===e.charCodeAt(t+2)){const r=e.substring(t,n);return!!(cd.test(r)||ud.test(r)||dd.test(r)||ld.test(r)||_d.test(r)||pd.test(r))}return!1}function Wp(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function Hp(e,t){const n=new Map(t.map((t=>[`${_s(e,t.range.end).line}`,t]))),r=new Map;return{getUnusedExpectations:function(){return $e(n.entries()).filter((([e,t])=>0===t.type&&!r.get(e))).map((([e,t])=>t))},markUsed:function(e){if(!n.has(`${e}`))return!1;return r.set(`${e}`,!0),!0}}}function $p(e,t,n){return Ip(e)?e.pos:Bu(e)||12===e.kind?ys((t||Cp(e)).text,e.pos,!1,!0):n&&Vu(e)?$p(e.jsDoc[0],t):358===e.kind&&e._children.length>0?$p(e._children[0],t,n):ys((t||Cp(e)).text,e.pos,!1,!1,Ng(e))}function Kp(e,t){const n=!Ip(e)&&lI(e)?F(e.modifiers,uD):void 0;return n?ys((t||Cp(e)).text,n.end):$p(e,t)}function Gp(e,t,n=!1){return Qp(e.text,t,n)}function Xp(e){return!!(vP(e)&&e.exportClause&&mP(e.exportClause)&&"default"===e.exportClause.name.escapedText)}function Qp(e,t,n=!1){if(Ip(t))return"";let r=e.substring(n?t.pos:ys(e,t.pos),t.end);return function(e){return!!kc(e,XP)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function Yp(e,t=!1){return Gp(Cp(e),e,t)}function Zp(e){return e.pos}function ef(e,t){return Re(e,t,Zp,It)}function tf(e){const t=e.emitNode;return t&&t.flags||0}function nf(e){const t=e.emitNode;return t&&t.internalFlags||0}function rf(e,t,n){if(t&&function(e,t){if(Xy(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(NN(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!DN(e)}(e,n))return Gp(t,e);switch(e.kind){case 11:{const t=2&n?pv:1&n||16777216&tf(e)?_v:uv;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&tf(e)?_v:uv,r=e.rawText??t(e.text,96).replace(yd,"\\${");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 4&n&&e.isUnterminated?e.text+(92===e.text.charCodeAt(e.text.length-1)?" /":"/"):e.text}return Sn.fail(`Literal kind '${e.kind}' not accounted for.`)}function of(e){return dt(e)?'"'+uv(e)+'"':""+e}function af(e){return ea(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function sf(e){return 0!=(7&vc(e))||cf(e)}function cf(e){const t=Ky(e);return 260===t.kind&&299===t.parent.kind}function lf(e){return nP(e)&&(11===e.name.kind||mf(e))}function _f(e){return nP(e)&&11===e.name.kind}function uf(e){return nP(e)&&FN(e.name)}function df(e){return nP(e)||HN(e)}function pf(e){return!!(t=e.valueDeclaration)&&267===t.kind&&!t.body;var t}function ff(e){return 312===e.kind||267===e.kind||v_(e)}function mf(e){return!!(2048&e.flags)}function gf(e){return lf(e)&&hf(e)}function hf(e){switch(e.parent.kind){case 312:return tO(e.parent);case 268:return lf(e.parent.parent)&&$P(e.parent.parent.parent)&&!tO(e.parent.parent.parent)}return!1}function yf(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!(gf(e)||nP(e)&&mf(e))))}function vf(e,t){return tO(e)||(1===(n=$S(t))||100===n||199===n)&&!!e.commonJsModuleIndicator;var n}function bf(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!e.isDeclarationFile&&(!!pk(t,"alwaysStrict")||(!!oA(e.statements)||!(!tO(e)&&!YS(t))&&($S(t)>=5||!t.noImplicitUseStrict)))}function xf(e){return!!(33554432&e.flags)||fb(e,128)}function Sf(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!v_(t)}return!1}function kf(e){switch(Sn.type(e),e.kind){case 345:case 353:case 330:return!0;default:return Tf(e)}}function Tf(e){switch(Sn.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Cf(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function wf(e){return Cf(e)||Eg(e)}function Nf(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Df(e){return Ff(e)||nP(e)||VD(e)||sm(e)}function Ff(e){return Cf(e)||vP(e)}function Pf(e){return kc(e.parent,(e=>!!(1&IR(e))))}function Ef(e){return kc(e.parent,(e=>Sf(e,e.parent)))}function Af(e,t){let n=Ef(e);for(;n;)t(n),n=Ef(n)}function If(e){return e&&0!==gp(e)?Yp(e):"(Missing)"}function Of(e){return e.declaration?If(e.declaration.parameters[0].name):void 0}function Lf(e){return 167===e.kind&&!Fy(e.expression)}function jf(e){var t;switch(e.kind){case 80:case 81:return(null==(t=e.emitNode)?void 0:t.autoGenerate)?void 0:e.escapedText;case 11:case 9:case 15:return wc(e.text);case 167:return Fy(e.expression)?wc(e.expression.text):void 0;case 295:return uC(e);default:return Sn.assertNever(e)}}function Mf(e){return Sn.checkDefined(jf(e))}function Rf(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===gp(e)?Dc(e):Yp(e);case 166:return Rf(e.left)+"."+Rf(e.right);case 211:return HN(e.name)||$N(e.name)?Rf(e.expression)+"."+Rf(e.name):Sn.assertNever(e.name);case 318:return Rf(e.left)+Rf(e.right);case 295:return Rf(e.namespace)+":"+Rf(e.name);default:return Sn.assertNever(e)}}function Bf(e,t,...n){return zf(Cp(e),e,t,...n)}function Jf(e,t,n,...r){const i=ys(e.text,t.pos);return ES(e,i,t.end-i,n,...r)}function zf(e,t,n,...r){const i=Qf(e,t);return ES(e,i.start,i.length,n,...r)}function qf(e,t,n,r){const i=Qf(e,t);return Wf(e,i.start,i.length,n,r)}function Uf(e,t,n,r){const i=ys(e.text,t.pos);return Wf(e,i,t.end-i,n,r)}function Vf(e,t,n){Sn.assertGreaterThanOrEqual(t,0),Sn.assertGreaterThanOrEqual(n,0),Sn.assertLessThanOrEqual(t,e.length),Sn.assertLessThanOrEqual(t+n,e.length)}function Wf(e,t,n,r,i){return Vf(e.text,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i}}function Hf(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 $f(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Kf(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Gf(e,t){const n=Ls(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();return ac(n.getTokenStart(),n.getTokenEnd())}function Xf(e,t){const n=Ls(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function Qf(e,t){let n=t;switch(t.kind){case 312:{const t=ys(e.text,0,!1);return t===e.text.length?oc(0,0):Gf(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=ys(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=_s(e,t.body.pos),{line:i}=_s(e,t.body.end);if(r<i)return oc(n,Ep(r,e)-n+1)}return ac(n,t.end)}(e,t);case 296:case 297:return ac(ys(e.text,t.pos),t.statements.length>0?t.statements[0].pos:t.end);case 253:case 229:return Gf(e,ys(e.text,t.pos));case 238:return Gf(e,ys(e.text,t.expression.end));case 357:return Gf(e,ys(e.text,t.tagName.pos))}if(void 0===n)return Gf(e,t.pos);Sn.assert(!_E(n));const r=Ip(n),i=r||PN(t)?n.pos:ys(e.text,n.pos);return r?(Sn.assert(i===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),Sn.assert(i===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(Sn.assert(i>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),Sn.assert(i<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),ac(i,n.end)}function Yf(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function Zf(e){return 6===e.scriptKind}function em(e){return!!(4096&hc(e))}function tm(e){return!(!(8&hc(e))||dc(e,e.parent))}function nm(e){return 6==(7&vc(e))}function rm(e){return 4==(7&vc(e))}function im(e){return 2==(7&vc(e))}function om(e){return 1==(7&vc(e))}function am(e){return 213===e.kind&&108===e.expression.kind}function sm(e){return 213===e.kind&&102===e.expression.kind}function cm(e){return TF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function lm(e){return VD(e)&&UD(e.argument)&&FN(e.argument.literal)}function _m(e){return 244===e.kind&&11===e.expression.kind}function um(e){return!!(2097152&tf(e))}function dm(e){return um(e)&&QF(e)}function pm(e){return HN(e.name)&&!e.initializer}function fm(e){return um(e)&&EF(e)&&N(e.declarationList.declarations,pm)}function mm(e,t){return 12!==e.kind?Fs(t.text,e.pos):void 0}function gm(e,t){return M(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?oe(Ps(t,e.pos),Fs(t,e.pos)):Fs(t,e.pos),(e=>42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)))}function hm(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return 222!==e.parent.kind;case 233:return JP(e.parent)&&!$b(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),Sn.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return JP(t.parent)&&!$b(t);case 168:case 352:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return I(t.typeArguments,e)}}}return!1}function ym(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function vm(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return KI(n,e)}}(e)}function bm(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;default:if(y_(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else hm(n)||KI(n,e)}}(e)}function xm(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?Oe(e.typeArguments):void 0}function Sm(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function km(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Tm(e){return km(e)||N_(e)}function Cm(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function wm(e){return!!Tg(e)&&(QD(e.parent)&&pF(e.parent.parent)&&2===Gg(e.parent.parent)||Nm(e.parent))}function Nm(e){return!!Tg(e)&&(pF(e)&&1===Gg(e))}function Dm(e){return(GF(e)?im(e)&&HN(e.name)&&Cm(e):pD(e)?xb(e)&&gb(e):dD(e)&&xb(e))||Nm(e)}function Fm(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Pm(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function Em(e){return e&&241===e.kind&&y_(e.parent)}function Am(e){return e&&174===e.kind&&210===e.parent.kind}function Im(e){return!(174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind&&231!==e.parent.kind)}function Om(e){return e&&1===e.kind}function Lm(e){return e&&0===e.kind}function jm(e,t,n,r){return b(null==e?void 0:e.properties,(e=>{if(!qP(e))return;const i=jf(e.name);return t===i||r&&r===i?n(e):void 0}))}function Mm(e,t,n){return jm(e,t,(e=>XD(e.initializer)?D(e.initializer.elements,(e=>FN(e)&&e.text===n)):void 0))}function Rm(e){if(e&&e.statements.length){return ft(e.statements[0].expression,QD)}}function Bm(e,t,n){return Jm(e,t,(e=>XD(e.initializer)?D(e.initializer.elements,(e=>FN(e)&&e.text===n)):void 0))}function Jm(e,t,n){return jm(Rm(e),t,n)}function zm(e){return kc(e.parent,y_)}function qm(e){return kc(e.parent,b_)}function Um(e){return kc(e.parent,w_)}function Vm(e){return kc(e.parent,(e=>w_(e)||y_(e)?"quit":gD(e)))}function Wm(e){return kc(e.parent,v_)}function Hm(e){const t=kc(e.parent,(e=>w_(e)?"quit":uD(e)));return t&&w_(t.parent)?Um(t.parent):Um(t??e)}function $m(e,t,n){for(Sn.assert(312!==e.kind);;){if(!(e=e.parent))return Sn.fail();switch(e.kind){case 167:if(n&&w_(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&C_(e.parent.parent)?e=e.parent.parent:C_(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function Km(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function Gm(e){HN(e)&&(YF(e.parent)||QF(e.parent))&&e.parent.name===e&&(e=e.parent);return $P($m(e,!0,!1))}function Xm(e){const t=$m(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function Qm(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&C_(e.parent.parent)?e=e.parent.parent:C_(e.parent)&&(e=e.parent)}}}function Ym(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function Zm(e){return 108===e.kind||eg(e)}function eg(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function tg(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function ng(e){var t;return!!e&&GF(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function rg(e){return!!e&&(UP(e)||qP(e))&&pF(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function ig(e){switch(e.kind){case 183:return e.typeName;case 233:return Kb(e.expression)?e.expression:void 0;case 80:case 166:return e}}function og(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function ag(e,t,n,r){if(e&&Lc(t)&&$N(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?YF(n):w_(n)&&!yb(t)&&!vb(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?YF(n):w_(n));case 169:return!!e&&(void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&Wv(n)!==t&&void 0!==r&&263===r.kind)}return!1}function sg(e,t,n,r){return Sb(t)&&ag(e,t,n,r)}function cg(e,t,n,r){return sg(e,t,n,r)||lg(e,t,n)}function lg(e,t,n){switch(t.kind){case 263:return re(t.members,(r=>cg(e,r,t,n)));case 231:return!e&&re(t.members,(r=>cg(e,r,t,n)));case 174:case 178:case 176:return re(t.parameters,(r=>sg(e,r,t,n)));default:return!1}}function _g(e,t){if(sg(e,t))return!0;const n=qv(t);return!!n&&lg(e,n,t)}function ug(e,t,n){let r;if(N_(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=Qv(n.members,t),a=Sb(e)?e:i&&Sb(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else mD(t)&&(r=t.parameters);if(sg(e,t,n))return!0;if(r)for(const i of r)if(!Hv(i)&&sg(e,i,t,n))return!0;return!1}function dg(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return dg(e.textSourceNode);case 15:return""===e.text}return!1}return""===e.text}function pg(e){const{parent:t}=e;return(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function fg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!JP(e.parent)&&!pE(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||Yu(e.parent)||QP(e.parent)||YP(e.parent)||pg(e);case 318:for(;YP(e.parent);)e=e.parent;return 186===e.parent.kind||Yu(e.parent)||QP(e.parent)||YP(e.parent)||pg(e);case 81:return pF(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||Yu(e.parent)||QP(e.parent)||YP(e.parent)||pg(e))return!0;case 9:case 10:case 11:case 15:case 110:return mg(e);default:return!1}}function mg(e){const{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!hm(t);case 304:return t.objectAssignmentInitializer===e;default:return fg(t)}}function gg(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function hg(e){return mP(e)&&!!e.parent.moduleSpecifier}function yg(e){return 271===e.kind&&283===e.moduleReference.kind}function vg(e){return Sn.assert(yg(e)),e.moduleReference.expression}function bg(e){return Eg(e)&&uS(e.initializer).arguments[0]}function xg(e){return 271===e.kind&&283!==e.moduleReference.kind}function Sg(e){return Tg(e)}function kg(e){return!Tg(e)}function Tg(e){return!!e&&!!(524288&e.flags)}function Cg(e){return!!e&&!!(134217728&e.flags)}function wg(e){return!Zf(e)}function Ng(e){return!!e&&!!(16777216&e.flags)}function Dg(e){return TD(e)&&HN(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(154===e.typeArguments[0].kind||150===e.typeArguments[0].kind)}function Fg(e,t){if(213!==e.kind)return!1;const{expression:n,arguments:r}=e;if(80!==n.kind||"require"!==n.escapedText)return!1;if(1!==r.length)return!1;const i=r[0];return!t||Qu(i)}function Pg(e){return Ig(e,!1)}function Eg(e){return Ig(e,!0)}function Ag(e){return GD(e)&&Eg(e.parent.parent)}function Ig(e,t){return GF(e)&&!!e.initializer&&Fg(t?uS(e.initializer):e.initializer,!0)}function Og(e){return EF(e)&&e.declarationList.declarations.length>0&&N(e.declarationList.declarations,(e=>Pg(e)))}function Lg(e){return 39===e||34===e}function jg(e,t){return 34===Gp(t,e).charCodeAt(0)}function Mg(e){return pF(e)||sS(e)||HN(e)||eF(e)}function Rg(e){return Tg(e)&&e.initializer&&pF(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&Kb(e.name)&&Vg(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Bg(e){const t=Rg(e);return t&&zg(t,Zb(e.name))}function Jg(e){if(e&&e.parent&&pF(e.parent)&&64===e.parent.operatorToken.kind){const t=Zb(e.parent.left);return zg(e.parent.right,t)||function(e,t,n){const r=pF(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&zg(t.right,n);if(r&&Vg(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&eF(e)&&Xg(e)){const t=function(e,t){return b(e.properties,(e=>qP(e)&&HN(e.name)&&"value"===e.name.escapedText&&e.initializer&&zg(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function zg(e,t){if(eF(e)){const t=Qh(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||QD(e)&&(0===e.properties.length||t)?e:void 0}function qg(e){const t=GF(e.parent)?e.parent.name:pF(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&zg(e.right,Zb(t))&&Kb(t)&&Vg(t,e.left)}function Ug(e){if(pF(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!pF(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&HN(t.left))return t.left}else if(GF(e.parent))return e.parent.name}function Vg(e,t){return Oy(e)&&Oy(t)?Ly(e)===Ly(t):Cl(e)&&Qg(t)&&(110===t.expression.kind||HN(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?Vg(e,nh(t)):!(!Qg(e)||!Qg(t))&&(ih(e)===ih(t)&&Vg(e.expression,t.expression))}function Wg(e){for(;Vb(e,!0);)e=e.right;return e}function Hg(e){return HN(e)&&"exports"===e.escapedText}function $g(e){return HN(e)&&"module"===e.escapedText}function Kg(e){return(YD(e)||Yg(e))&&$g(e.expression)&&"exports"===ih(e)}function Gg(e){const t=function(e){if(eF(e)){if(!Xg(e))return 0;const t=e.arguments[0];return Hg(t)||Kg(t)?8:Zg(t)&&"prototype"===ih(t)?9:7}if(64!==e.operatorToken.kind||!sS(e.left)||(t=Wg(e),lF(t)&&NN(t.expression)&&"0"===t.expression.text))return 0;var t;if(th(e.left.expression,!0)&&"prototype"===ih(e.left)&&QD(ah(e)))return 6;return oh(e.left)}(e);return 5===t||Tg(e)?t:0}function Xg(e){return 3===v(e.arguments)&&YD(e.expression)&&HN(e.expression.expression)&&"Object"===Dc(e.expression.expression)&&"defineProperty"===Dc(e.expression.name)&&Fy(e.arguments[1])&&th(e.arguments[0],!0)}function Qg(e){return YD(e)||Yg(e)}function Yg(e){return ZD(e)&&Fy(e.argumentExpression)}function Zg(e,t){return YD(e)&&(!t&&110===e.expression.kind||HN(e.name)&&th(e.expression,!0))||eh(e,t)}function eh(e,t){return Yg(e)&&(!t&&110===e.expression.kind||Kb(e.expression)||Zg(e.expression,!0))}function th(e,t){return Kb(e)||Zg(e,t)}function nh(e){return YD(e)?e.name:e.argumentExpression}function rh(e){if(YD(e))return e.name;const t=Qh(e.argumentExpression);return NN(t)||Qu(t)?t:e}function ih(e){const t=rh(e);if(t){if(HN(t))return t.escapedText;if(Qu(t)||NN(t))return wc(t.text)}}function oh(e){if(110===e.expression.kind)return 4;if(Kg(e))return 2;if(th(e.expression,!0)){if(Zb(e.expression))return 3;let t=e;for(;!HN(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===ih(t))&&Zg(e))return 1;if(th(e,!0)||ZD(e)&&Ay(e))return 5}return 0}function ah(e){for(;pF(e.right);)e=e.right;return e.right}function sh(e){return pF(e)&&3===Gg(e)}function ch(e){return Tg(e)&&e.parent&&244===e.parent.kind&&(!ZD(e)||Yg(e))&&!!pl(e.parent)}function lh(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||Tg(t)||33554432&n.flags)&&Mg(n)&&!Mg(t)||n.kind!==t.kind&&df(n))&&(e.valueDeclaration=t)}function _h(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||GF(t)&&t.initializer&&y_(t.initializer)}function uh(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=kc(e.initializer,(e=>Fg(e,!0))))?void 0:t.arguments[0];case 272:case 278:return ft(e.moduleSpecifier,Qu);case 271:return ft(null==(n=ft(e.moduleReference,CP))?void 0:n.expression,Qu);case 273:case 280:return ft(e.parent.moduleSpecifier,Qu);case 274:case 281:return ft(e.parent.parent.moduleSpecifier,Qu);case 276:return ft(e.parent.parent.parent.moduleSpecifier,Qu);case 205:return lm(e)?e.argument.literal:void 0;default:Sn.assertNever(e)}}function dh(e){return ph(e)||Sn.failBadSyntaxKind(e.parent)}function ph(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return sm(e.parent)||Fg(e.parent,!1)?e.parent:void 0;case 201:return Sn.assert(FN(e)),ft(e.parent.parent,VD);default:return}}function fh(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return lm(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return Sn.assertNever(e)}}function mh(e){switch(e.kind){case 272:return e.importClause&&ft(e.importClause.namedBindings,fP);case 271:return e;case 278:return e.exportClause&&ft(e.exportClause,mP);default:return Sn.assertNever(e)}}function gh(e){return 272===e.kind&&!!e.importClause&&!!e.importClause.name}function hh(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=fP(e.namedBindings)?t(e.namedBindings):b(e.namedBindings.elements,t);if(n)return n}}function yh(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function vh(e){const t=sE(e)?De(e.parameters):void 0,n=ft(t&&t.name,HN);return!!n&&"new"===n.escapedText}function bh(e){return 353===e.kind||345===e.kind||347===e.kind}function xh(e){return bh(e)||eP(e)}function Sh(e){return IF(e)&&pF(e.expression)&&0!==Gg(e.expression)&&pF(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function kh(e){switch(e.kind){case 243:const t=Th(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function Th(e){return EF(e)?De(e.declarationList.declarations):void 0}function Ch(e){return nP(e)&&e.body&&267===e.body.kind?e.body:void 0}function wh(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function Nh(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function Dh(e,t){let n;km(e)&&Hu(e)&&Vu(e.initializer)&&(n=be(n,Fh(e,Ie(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Vu(i)&&(n=be(n,Fh(e,Ie(i.jsDoc)))),169===i.kind){n=be(n,(t?Uc:qc)(i));break}if(168===i.kind){n=be(n,(t?Hc:Wc)(i));break}i=Eh(i)}return n||r}function Fh(e,t){if(_E(t)){const n=M(t.tags,(t=>Ph(e,t)));return t.tags===n?[t]:n}return Ph(e,t)?[t]:void 0}function Ph(e,t){return!((FE(t)||LE(t))&&t.parent&&_E(t.parent)&&iF(t.parent.parent)&&t.parent.parent!==e)}function Eh(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Ch(t)||Vb(e)?t:t.parent&&(Th(t.parent)===e||Vb(t))?t.parent:t.parent&&t.parent.parent&&(Th(t.parent.parent)||kh(t.parent.parent)===e||Sh(t.parent.parent))?t.parent.parent:void 0}function Ah(e){if(e.symbol)return e.symbol;if(!HN(e.name))return;const t=e.name.escapedText,n=Oh(e);if(!n)return;const r=D(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function Ih(e){if(_E(e.parent)&&e.parent.tags){const t=D(e.parent.tags,bh);if(t)return t}return Oh(e)}function Oh(e){const t=Lh(e);if(t)return dD(t)&&t.type&&y_(t.type)?t.type:y_(t)?t:void 0}function Lh(e){const t=jh(e);if(t)return Sh(t)||function(e){return IF(e)&&pF(e.expression)&&64===e.expression.operatorToken.kind?Wg(e.expression):void 0}(t)||kh(t)||Th(t)||Ch(t)||t}function jh(e){const t=Mh(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===Ae(n.jsDoc)?n:void 0}function Mh(e){return kc(e.parent,_E)}function Rh(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&D(n,(e=>e.name.escapedText===t))}function Bh(e){return!!e.typeArguments}function Jh(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t;return zb(n.operatorToken.kind)&&n.left===e?n:void 0;case 224:case 225:const r=t,i=r.operator;return 46===i||47===i?r:void 0;case 249:case 250:const o=t;return o.initializer===e?o:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function zh(e){const t=Jh(e);if(!t)return 0;switch(t.kind){case 226:const e=t.operatorToken.kind;return 64===e||Mb(e)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function qh(e){return!!Jh(e)}function Uh(e){const t=Jh(e);return!!t&&Vb(t,!0)&&function(e){const t=Qh(e.right);return 226===t.kind&&JA(t.operatorToken.kind)}(t)}function Vh(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function Wh(e){return oF(e)||aF(e)||P_(e)||QF(e)||hD(e)}function Hh(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function $h(e){return Hh(e,196)}function Kh(e){return Hh(e,217)}function Gh(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function Xh(e){for(;RD(e);)e=e.type;return e}function Qh(e,t){return uA(e,t?17:1)}function Yh(e){return(211===e.kind||212===e.kind)&&((e=Kh(e.parent))&&220===e.kind)}function Zh(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function ey(e){return!$P(e)&&!R_(e)&&Nu(e.parent)&&e.parent.name===e}function ty(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(cD(t))return t.parent;case 80:if(Nu(t))return t.name===e?t:void 0;if(sD(t)){const e=t.parent;return wE(e)&&e.name===t?e:void 0}{const n=t.parent;return pF(n)&&0!==Gg(n)&&(n.left.symbol||n.symbol)&&Mc(n)===e?n:void 0}case 81:return Nu(t)&&t.name===e?t:void 0;default:return}}function ny(e){return Fy(e)&&167===e.parent.kind&&Nu(e.parent.parent)}function ry(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function iy(e){return!!(271===e.kind||270===e.kind||273===e.kind&&e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&sy(e))||Tg(e)&&(pF(e)&&2===Gg(e)&&sy(e)||YD(e)&&pF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&ay(e.parent.right))}function oy(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return oy(e)}}function ay(e){return Kb(e)||yF(e)}function sy(e){return ay(cy(e))}function cy(e){return yP(e)?e.expression:e.right}function ly(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function _y(e){const t=uy(e);if(t&&Tg(e)){const t=Kc(e);if(t)return t.class}return t}function uy(e){const t=my(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function dy(e){if(Tg(e))return Gc(e).map((e=>e.class));{const t=my(e.heritageClauses,119);return null==t?void 0:t.types}}function py(e){return ZF(e)?fy(e)||r:w_(e)&&oe(fn(_y(e)),dy(e))||r}function fy(e){const t=my(e.heritageClauses,96);return t?t.types:void 0}function my(e,t){if(e)for(const n of e)if(n.token===t)return n}function gy(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function hy(e){return 83<=e&&e<=165}function yy(e){return 19<=e&&e<=79}function vy(e){return hy(e)||yy(e)}function by(e){return 128<=e&&e<=165}function xy(e){return hy(e)&&!by(e)}function Sy(e){return 119<=e&&e<=127}function ky(e){const t=ns(e);return void 0!==t&&xy(t)}function Ty(e){const t=ns(e);return void 0!==t&&hy(t)}function Cy(e){const t=Fc(e);return!!t&&!by(t)}function wy(e){return 2<=e&&e<=7}function Ny(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:fb(e,1024)&&(t|=2)}return e.body||(t|=4),t}function Dy(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&fb(e,1024)}return!1}function Fy(e){return Qu(e)||NN(e)}function Py(e){return uF(e)&&(40===e.operator||41===e.operator)&&NN(e.operand)}function Ey(e){const t=Mc(e);return!!t&&Ay(t)}function Ay(e){if(167!==e.kind&&212!==e.kind)return!1;const t=ZD(e)?Qh(e.argumentExpression):e.expression;return!Fy(t)&&!Py(t)}function Iy(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return wc(e.text);case 167:const t=e.expression;return Fy(t)?wc(t.text):Py(t)?41===t.operator?ts(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return uC(e);default:return Sn.assertNever(e)}}function Oy(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Ly(e){return Cl(e)?Dc(e):MP(e)?dC(e):e.text}function jy(e){return Cl(e)?e.escapedText:MP(e)?uC(e):wc(e.text)}function My(e){return`__@${EB(e)}@${e.escapedName}`}function Ry(e,t){return`__#${EB(e)}@${t}`}function By(e){return an(e.escapedName,"__@")}function Jy(e){return an(e.escapedName,"__#")}function zy(e){return 80===e.kind&&"Symbol"===e.escapedText}function qy(e){return HN(e)?"__proto__"===Dc(e):FN(e)&&"__proto__"===e.text}function Uy(e,t){switch((e=uA(e)).kind){case 231:if(Sz(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!=typeof t||t(e)}function Vy(e){switch(e.kind){case 303:return!qy(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return HN(e.name)&&!!e.initializer;case 169:case 208:return HN(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return HN(e.left)}break;case 277:return!0}return!1}function Wy(e,t){if(!Vy(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return Uy(e.initializer,t);case 304:return Uy(e.objectAssignmentInitializer,t);case 226:return Uy(e.right,t);case 277:return Uy(e.expression,t)}}function Hy(e){return"push"===e.escapedText||"unshift"===e.escapedText}function $y(e){return 169===Ky(e).kind}function Ky(e){for(;208===e.kind;)e=e.parent.parent;return e}function Gy(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||312===t}function Xy(e){return iT(e.pos)||iT(e.end)}function Qy(e){return Cc(e,$P)||e}function Yy(e){const t=tv(e),n=214===e.kind&&void 0!==e.arguments;return Zy(e.kind,t,n)}function Zy(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function ev(e){const t=tv(e),n=214===e.kind&&void 0!==e.arguments;return nv(e.kind,t,n)}function tv(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}function nv(e,t,n){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return rv(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function rv(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function iv(e){return M(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function ov(){let e=[];const t=[],n=new Map;let r=!1;return{add:function(i){let o;i.file?(o=n.get(i.file.fileName),o||(o=[],n.set(i.file.fileName,o),_e(t,i.file.fileName,Rt))):(r&&(r=!1,e=e.slice()),o=e);_e(o,i,BS)},lookup:function(t){let r;r=t.file?n.get(t.file.fileName):e;if(!r)return;const i=Re(r,t,bt,BS);if(i>=0)return r[i];return},getGlobalDiagnostics:function(){return r=!0,e},getDiagnostics:function(r){if(r)return n.get(r)||[];const i=W(t,(e=>n.get(e)));if(!e.length)return i;return i.unshift(...e),i}}}function av(e){return!!(2048&(e.templateFlags||0))}function sv(e){return e&&!!(AN(e)?av(e):av(e.head)||re(e.templateSpans,(e=>av(e.literal))))}function cv(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function lv(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Sd.get(e)||cv(e.charCodeAt(0))}function _v(e,t){const n=96===t?xd:39===t?bd:vd;return e.replace(n,lv)}function uv(e,t){return e=_v(e,t),kd.test(e)?e.replace(kd,(e=>cv(e.charCodeAt(0)))):e}function dv(e){return 0===e.charCodeAt(0)?"&#0;":wd.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function pv(e,t){const n=39===t?Cd:Td;return e.replace(n,dv)}function fv(e){const t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e;var n}function mv(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function gv(e){const t=Nd[1];for(let n=Nd.length;n<=e;n++)Nd.push(Nd[n-1]+t);return Nd[e]}function hv(){return Nd[1].length}function yv(e){var t,n,r,i,o,a=!1;function s(e){const n=rs(e);n.length>1?(i=i+n.length-1,o=t.length-e.length+Ie(n),r=o-t.length==0):r=!1}function c(e){e&&e.length&&(r&&(e=gv(n)+e,r=!1),t+=e,s(e))}function l(e){e&&(a=!1),c(e)}function _(){t="",n=0,r=!0,i=0,o=0,a=!1}return _(),{write:l,rawWrite:function(e){void 0!==e&&(t+=e,s(e),a=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(n){r&&!n||(i++,o=(t+=e).length,r=!0,a=!1)},increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>i,getColumn:()=>r?n*hv():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&us(t.charCodeAt(t.length-1)),clear:_,writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:(e,t)=>l(e),writeTrailingSemicolon:l,writeComment:function(e){e&&(a=!0),c(e)},getTextPosWithWriteLine:function(){return r?t.length:t.length+e.length}}}function vv(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!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 bv(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function xv(e){return tn(bv(e))}function Sv(e,t,n){return t.moduleName||Cv(e,t.fileName,n&&n.fileName)}function kv(e,t){return e.getCanonicalFileName(_a(t,e.getCurrentDirectory()))}function Tv(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=fh(n);return!i||!Qu(i)||Vo(i.text)||kv(e,r.path).includes(kv(e,ma(e.getCommonSourceDirectory())))?Sv(e,r):void 0}function Cv(e,t,n){const r=t=>e.getCanonicalFileName(t),i=pa(n?Zo(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=Yk(Da(i,_a(t,e.getCurrentDirectory()),i,r,!1));return n?ga(o):o}function wv(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?Yk(Lv(e,t,r.outDir)):Yk(e),i+n}function Nv(e,t){return Dv(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function Dv(e,t,n,r,i){const o=t.declarationDir||t.outDir,a=o?jv(e,o,n,r,i):e,s=Fv(a);return Yk(a)+s}function Fv(e){return Ko(e,[".mjs",".mts"])?".d.mts":Ko(e,[".cjs",".cts"])?".d.cts":Ko(e,[".json"])?".d.json.ts":".d.ts"}function Pv(e){return Ko(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Ko(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Ko(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function Ev(e){return e.outFile||e.out}function Av(e,t){var n;if(e.paths)return e.baseUrl??Sn.checkDefined(e.pathsBasePath||(null==(n=t.getCurrentDirectory)?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Iv(e,t,n){const r=e.getCompilerOptions();if(Ev(r)){const t=$S(r),i=r.emitDeclarationOnly||2===t||4===t;return M(e.getSourceFiles(),(t=>(i||!tO(t))&&Ov(t,e,n)))}return M(void 0===t?e.getSourceFiles():[t],(t=>Ov(t,e,n)))}function Ov(e,t,n){const r=t.getCompilerOptions();if(r.noEmitForJsFiles&&Sg(e))return!1;if(e.isDeclarationFile)return!1;if(t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Zf(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(Ev(r))return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=_a(yU(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=jv(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===xa(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function Lv(e,t,n){return jv(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function jv(e,t,n,r,i){let o=_a(e,n);return o=0===i(o).indexOf(i(r))?o.substring(r.length):o,sa(t,o)}function Mv(e,t,n,r,i,o,a){e.writeFile(n,r,i,(e=>{t.add(IS(Ea.Could_not_write_file_0_Colon_1,n,e))}),o,a)}function Rv(e,t,n){if(e.length>Yo(e)&&!n(e)){Rv(Zo(e),t,n),t(e)}}function Bv(e,t,n,r,i,o){try{r(e,t,n)}catch{Rv(Zo(ua(e)),i,o),r(e,t,n)}}function Jv(e,t){return cs(as(e),t)}function zv(e,t){return cs(e,t)}function qv(e){return D(e.members,(e=>hD(e)&&Op(e.body)))}function Uv(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&Hv(e.parameters[0]);return e.parameters[t?1:0]}}function Vv(e){const t=Uv(e);return t&&t.type}function Wv(e){if(e.parameters.length&&!dE(e)){const t=e.parameters[0];if(Hv(t))return t}}function Hv(e){return $v(e.name)}function $v(e){return!!e&&80===e.kind&&Xv(e)}function Kv(e){return!!kc(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function Gv(e){if(!$v(e))return!1;for(;sD(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function Xv(e){return"this"===e.escapedText}function Qv(e,t){let n,r,i,o;return Ey(t)?(n=t,177===t.kind?i=t:178===t.kind?o=t:Sn.fail("Accessor has wrong kind")):b(e,(e=>{if(N_(e)&&mb(e)===mb(t)){Iy(e.name)===Iy(t.name)&&(n?r||(r=e):n=e,177!==e.kind||i||(i=e),178!==e.kind||o||(o=e))}})),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function Yv(e){if(!Tg(e)&&QF(e))return;const t=e.type;return t||!Tg(e)?t:ql(e)?e.typeExpression&&e.typeExpression.type:fl(e)}function Zv(e){return e.type}function eb(e){return dE(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Tg(e)?ml(e):void 0)}function tb(e){return V(hl(e),(e=>function(e){return PE(e)&&!(327===e.parent.kind&&(e.parent.tags.some(bh)||e.parent.tags.some(SE)))}(e)?e.typeParameters:void 0))}function nb(e){const t=Uv(e);return t&&Yv(t)}function rb(e,t,n,r){ib(e,t,n.pos,r)}function ib(e,t,n,r){r&&r.length&&n!==r[0].pos&&zv(e,n)!==zv(e,r[0].pos)&&t.writeLine()}function ob(e,t,n,r){n!==r&&zv(e,n)!==zv(e,r)&&t.writeLine()}function ab(e,t,n,r,i,o,a,s){if(r&&r.length>0){i&&n.writeSpace(" ");let c=!1;for(const i of r)c&&(n.writeSpace(" "),c=!1),s(e,t,n,i.pos,i.end,a),i.hasTrailingNewLine?n.writeLine():c=!0;c&&o&&n.writeSpace(" ")}}function sb(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=M(Fs(e,i.pos),(function(t){return Wp(e,t.pos)}))):s=Fs(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=zv(t,l.end);if(zv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=zv(t,Ie(a).end);zv(t,ys(e,i.pos))>=l+2&&(rb(t,n,i,s),ab(e,t,n,a,!1,!0,o,r),c={nodePos:i.pos,detachedCommentEndPos:Ie(a).end})}}return c}function cb(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=ss(t,r),s=t.length;let c;for(let l=r,_=a.line;l<i;_++){const u=_+1===s?e.length+1:t[_+1];if(l!==r){void 0===c&&(c=_b(e,t[a.line],r));const i=n.getIndent()*hv()-c+_b(e,l,u);if(i>0){let e=i%hv();const t=gv((i-e)/hv());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}lb(e,i,n,o,l,u),l=u}}else n.writeComment(e.substring(r,i))}function lb(e,t,n,r,i,o){const a=Math.min(t,o-1),s=e.substring(i,a).trim();s?(n.writeComment(s),a!==t&&n.writeLine()):n.rawWrite(r)}function _b(e,t,n){let r=0;for(;t<n&&ds(e.charCodeAt(t));t++)9===e.charCodeAt(t)?r+=hv()-r%hv():r++;return r}function ub(e){return 0!==wb(e)}function db(e){return 0!==Db(e)}function pb(e,t){return!!kb(e,t)}function fb(e,t){return!!Tb(e,t)}function mb(e){return C_(e)&&gb(e)||gD(e)}function gb(e){return fb(e,256)}function hb(e){return pb(e,16)}function yb(e){return fb(e,64)}function vb(e){return fb(e,128)}function bb(e){return fb(e,512)}function xb(e){return pb(e,8)}function Sb(e){return fb(e,32768)}function kb(e,t){return wb(e)&t}function Tb(e,t){return Db(e)&t}function Cb(e,t,n){return e.kind>=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Ab(e)),n||t&&Tg(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|Fb(e)),Pb(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function wb(e){return Cb(e,!0)}function Nb(e){return Cb(e,!0,!0)}function Db(e){return Cb(e,!1)}function Fb(e){let t=0;return e.parent&&!_D(e)&&(Tg(e)&&(Yc(e)&&(t|=8388608),el(e)&&(t|=16777216),nl(e)&&(t|=33554432),il(e)&&(t|=67108864),ol(e)&&(t|=134217728)),sl(e)&&(t|=65536)),t}function Pb(e){return 131071&e|(260046848&e)>>>23}function Eb(e){return Ab(e)|function(e){return Pb(Fb(e))}(e)}function Ab(e){let t=lI(e)?Ib(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function Ib(e){let t=0;if(e)for(const n of e)t|=Ob(n.kind);return t}function Ob(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function Lb(e){return 57===e||56===e}function jb(e){return Lb(e)||54===e}function Mb(e){return 76===e||77===e||78===e}function Rb(e){return pF(e)&&Mb(e.operatorToken.kind)}function Bb(e){return Lb(e)||61===e}function Jb(e){return pF(e)&&Bb(e.operatorToken.kind)}function zb(e){return e>=64&&e<=79}function qb(e){const t=Ub(e);return t&&!t.isImplements?t.class:void 0}function Ub(e){if(bF(e)){if(JP(e.parent)&&w_(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(pE(e.parent)){const t=Lh(e.parent);if(t&&w_(t))return{class:t,isImplements:!1}}}}function Vb(e,t){return pF(e)&&(t?64===e.operatorToken.kind:zb(e.operatorToken.kind))&&eu(e.left)}function Wb(e){return Vb(e.parent)&&e.parent.left===e}function Hb(e){if(Vb(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function $b(e){return void 0!==qb(e)}function Kb(e){return 80===e.kind||Qb(e)}function Gb(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function Xb(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&Xb(e.expression)||217===e.kind&&Xb(e.expression)}function Qb(e){return YD(e)&&HN(e.name)&&Kb(e.expression)}function Yb(e){if(YD(e)){const t=Yb(e.expression);if(void 0!==t)return t+"."+Rf(e.name)}else if(ZD(e)){const t=Yb(e.expression);if(void 0!==t&&g_(e.argumentExpression))return t+"."+Iy(e.argumentExpression)}else{if(HN(e))return Nc(e.escapedText);if(MP(e))return dC(e)}}function Zb(e){return Zg(e)&&"prototype"===ih(e)}function ex(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function tx(e){return!!e.parent&&(YD(e.parent)&&e.parent.name===e||ZD(e.parent)&&e.parent.argumentExpression===e)}function nx(e){return sD(e.parent)&&e.parent.right===e||YD(e.parent)&&e.parent.name===e||YP(e.parent)&&e.parent.right===e}function rx(e){return pF(e)&&104===e.operatorToken.kind}function ix(e){return rx(e.parent)&&e===e.parent.right}function ox(e){return 210===e.kind&&0===e.properties.length}function ax(e){return 209===e.kind&&0===e.elements.length}function sx(e){if(function(e){return e&&v(e.declarations)>0&&fb(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function cx(e){return D(Wd,(t=>$o(e,t)))}function lx(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r<n;r++){const n=e.charCodeAt(r);n<128?t.push(n):n<2048?(t.push(n>>6|192),t.push(63&n|128)):n<65536?(t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128)):n<131072?(t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128)):Sn.assert(!1,"Unexpected code point")}return t}(e);let r=0;const i=n.length;let o,a,s,c;for(;r<i;)o=n[r]>>2,a=(3&n[r])<<4|n[r+1]>>4,s=(15&n[r+1])<<2|n[r+2]>>6,c=63&n[r+2],r+1>=i?s=c=64:r+2>=i&&(c=64),t+=Dd.charAt(o)+Dd.charAt(a)+Dd.charAt(s)+Dd.charAt(c),r+=3;return t}function _x(e,t){return e&&e.base64encode?e.base64encode(t):lx(t)}function ux(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i<n&&t.charCodeAt(i)!==Dd.charCodeAt(64);){const e=Dd.indexOf(t[i]),n=Dd.indexOf(t[i+1]),o=Dd.indexOf(t[i+2]),a=Dd.indexOf(t[i+3]),s=(63&e)<<2|n>>4&3,c=(15&n)<<4|o>>2&15,l=(3&o)<<6|63&a;0===c&&0!==o?r.push(s):0===l&&0!==a?r.push(s,c):r.push(s,c,l),i+=4}return function(e){let t="",n=0;const r=e.length;for(;n<r;){const r=e[n];if(r<128)t+=String.fromCharCode(r),n++;else if(192==(192&r)){let i=63&r;n++;let o=e[n];for(;128==(192&o);)i=i<<6|63&o,n++,o=e[n];t+=String.fromCharCode(i)}else t+=String.fromCharCode(r),n++}return t}(r)}function dx(e,t){const n=dt(t)?t:t.readFile(e);if(!n)return;const r=bL(e,n);return r.error?void 0:r.config}function px(e,t){return dx(e,t)||{}}function fx(e,t){return!t.directoryExists||t.directoryExists(e)}function mx(e){switch(e.newLine){case 0:return Fd;case 1:case void 0:return Pd}}function gx(e,t=e){return Sn.assert(t>=e||-1===t),{pos:e,end:t}}function hx(e,t){return gx(e.pos,t)}function yx(e,t){return gx(t,e.end)}function vx(e){const t=lI(e)?F(e.modifiers,uD):void 0;return t&&!iT(t.end)?yx(e,t.end):e}function bx(e){if(pD(e)||mD(e))return yx(e,e.name.pos);const t=lI(e)?Ae(e.modifiers):void 0;return t&&!iT(t.end)?yx(e,t.end):vx(e)}function xx(e){return e.pos===e.end}function Sx(e,t){return gx(e,e+ts(t).length)}function kx(e,t){return wx(e,e,t)}function Tx(e,t,n){return Ex(Ax(e,n,!1),Ax(t,n,!1),n)}function Cx(e,t,n){return Ex(e.end,t.end,n)}function wx(e,t,n){return Ex(Ax(e,n,!1),t.end,n)}function Nx(e,t,n){return Ex(e.end,Ax(t,n,!1),n)}function Dx(e,t,n,r){const i=Ax(t,n,r);return ls(n,e.end,i)}function Fx(e,t,n){return ls(n,e.end,t.end)}function Px(e,t){return!Ex(e.pos,e.end,t)}function Ex(e,t,n){return 0===ls(n,e,t)}function Ax(e,t,n){return iT(e.pos)?-1:ys(t.text,e.pos,!1,n)}function Ix(e,t,n,r){const i=ys(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!us(n.text.charCodeAt(e)))return e}(i,t,n);return ls(n,o??t,i)}function Ox(e,t,n,r){const i=ys(n.text,e,!1,r);return ls(n,e,Math.min(t,i))}function Lx(e){const t=Cc(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function jx(e){return M(e.declarations,Mx)}function Mx(e){return GF(e)&&void 0!==e.initializer}function Rx(e){return e.watch&&ze(e,"watch")}function Bx(e){e.close()}function Jx(e){return 33554432&e.flags?e.links.checkFlags:0}function zx(e,t=!1){if(e.valueDeclaration){const n=hc(t&&e.declarations&&D(e.declarations,vD)||32768&e.flags&&D(e.declarations,yD)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&Jx(e)){const t=e.links.checkFlags;return(1024&t?2:256&t?1:4)|(2048&t?256:0)}return 4194304&e.flags?257:0}function qx(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function Ux(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function Vx(e){return 1===Hx(e)}function Wx(e){return 0!==Hx(e)}function Hx(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return Hx(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:i}=t;return r===e&&zb(i.kind)?64===i.kind?1:2:0;case 211:return t.name!==e?0:Hx(t);case 303:{const n=Hx(t.parent);return e===t.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return Sn.assertNever(e)}}(n):n}case 304:return e===t.objectAssignmentInitializer?0:Hx(t.parent);default:return 0}}function $x(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if("object"==typeof e[n]){if(!$x(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function Kx(e,t){e.forEach(t),e.clear()}function Gx(e,t,n){const{onDeleteValue:r,onExistingValue:i}=n;e.forEach(((n,o)=>{const a=t.get(o);void 0===a?(e.delete(o),r(n,o)):i&&i(n,a,o)}))}function Xx(e,t,n){Gx(e,t,n);const{createNewValue:r}=n;t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function Qx(e){if(32&e.flags){const t=Yx(e);return!!t&&fb(t,64)}return!1}function Yx(e){var t;return null==(t=e.declarations)?void 0:t.find(w_)}function Zx(e){return 3899393&e.flags?e.objectFlags:0}function eS(e,t){return!!Fa(e,(e=>!!t(e)||void 0))}function tS(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&oP(e.declarations[0])}function nS({moduleSpecifier:e}){return FN(e)?e.text:Yp(e)}function rS(e){let t;return KI(e,(e=>{Op(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(Op(e[n])){t=e[n];break}})),t}function iS(e,t,n=!0){return!e.has(t)&&(e.set(t,n),!0)}function oS(e){return w_(e)||ZF(e)||DD(e)}function aS(e){return e>=182&&e<=205||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||233===e||319===e||320===e||321===e||322===e||323===e||324===e||325===e}function sS(e){return 211===e.kind||212===e.kind}function cS(e){return 211===e.kind?e.name:(Sn.assert(212===e.kind),e.argumentExpression)}function lS(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function _S(e){return 275===e.kind||279===e.kind}function uS(e){for(;sS(e);)e=e.expression;return e}function dS(e,t){if(sS(e.parent)&&tx(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!HN(n.argumentExpression)&&!Qu(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}if(sS(n.expression))return e(n.expression);if(HN(n.expression))return t(n.expression);return}(e.parent)}function pS(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function fS(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function mS(e,t){this.flags=t,(Sn.isDebugging||Fr)&&(this.checker=e)}function gS(e,t){this.flags=t,Sn.isDebugging&&(this.checker=e)}function hS(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 yS(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 vS(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 bS(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}function xS(e){Ad.push(e),e(Ed)}function SS(e){Object.assign(Ed,e),b(Ad,(e=>e(Ed)))}function kS(e,t){return e.replace(/{(\d+)}/g,((e,n)=>""+Sn.checkDefined(t[+n])))}function TS(e){Id=e}function CS(e){!Id&&e&&(Id=e())}function wS(e){return Id&&Id[e.key]||e.message}function NS(e,t,n,r,i,...o){n+r>t.length&&(r=t.length-n),Vf(t,n,r);let a=wS(i);return re(o)&&(a=kS(a,o)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function DS(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function FS(e,t){const n=t.fileName||"",r=t.text.length;Sn.assertEqual(e.fileName,n),Sn.assertLessThanOrEqual(e.start,r),Sn.assertLessThanOrEqual(e.start+e.length,r);const 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(const o of e.relatedInformation)DS(o)&&o.fileName===n?(Sn.assertLessThanOrEqual(o.start,r),Sn.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push(FS(o,t))):i.relatedInformation.push(o)}return i}function PS(e,t){const n=[];for(const r of e)n.push(FS(r,t));return n}function ES(e,t,n,r,...i){Vf(e.text,t,n);let o=wS(r);return re(i)&&(o=kS(o,i)),{file:e,start:t,length:n,messageText:o,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function AS(e,...t){let n=wS(e);return re(t)&&(n=kS(n,t)),n}function IS(e,...t){let n=wS(e);return re(t)&&(n=kS(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 OS(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 LS(e,t,...n){let r=wS(t);return re(n)&&(r=kS(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function jS(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function MS(e){return e.file?e.file.path:void 0}function RS(e,t){return BS(e,t)||function(e,t){if(!e.relatedInformation&&!t.relatedInformation)return 0;if(e.relatedInformation&&t.relatedInformation)return It(e.relatedInformation.length,t.relatedInformation.length)||b(e.relatedInformation,((e,n)=>RS(e,t.relatedInformation[n])))||0;return e.relatedInformation?-1:1}(e,t)||0}function BS(e,t){return Rt(MS(e),MS(t))||It(e.start,t.start)||It(e.length,t.length)||It(e.code,t.code)||JS(e.messageText,t.messageText)||0}function JS(e,t){if("string"==typeof e&&"string"==typeof t)return Rt(e,t);if("string"==typeof e)return-1;if("string"==typeof t)return 1;let n=Rt(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;const r=Math.min(e.next.length,t.next.length);for(let i=0;i<r;i++)if(n=JS(e.next[i],t.next[i]),n)return n;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function zS(e){return 4===e||2===e||1===e||6===e?1:0}function qS(e){if(2&e.transformFlags)return Mu(e)||PP(e)?e:KI(e,qS)}function US(e){return e.isDeclarationFile?void 0:qS(e)}function VS(e){return!(99!==e.impliedNodeFormat&&!Ko(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function WS(e){switch(XS(e)){case 3:return e=>{e.externalModuleIndicator=DI(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=DI(e)};case 2:const t=[DI];4!==e.jsx&&5!==e.jsx||t.push(US),t.push(VS);const n=un(...t);return e=>{e.externalModuleIndicator=n(e)}}}function HS(e){return e.target??((100===e.module?9:199===e.module&&99)||1)}function $S(e){return"number"==typeof e.module?e.module:HS(e)>=2?5:1}function KS(e){return e>=5&&e<=99}function GS(e){let t=e.moduleResolution;if(void 0===t)switch($S(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1}return t}function XS(e){return e.moduleDetection||(100===$S(e)||199===$S(e)?3:2)}function QS(e){switch($S(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function YS(e){return!(!e.isolatedModules&&!e.verbatimModuleSyntax)}function ZS(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function ek(e){return!1===e.allowUnreachableCode}function tk(e){return!1===e.allowUnusedLabels}function nk(e){return!(!_k(e)||!e.declarationMap)}function rk(e){if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch($S(e)){case 100:case 199:return!0}}function ik(e){return void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:rk(e)||4===$S(e)||100===GS(e)}function ok(e){return e>=3&&e<=99||100===e}function ak(e){return!!e.noDtsResolution||100!==GS(e)}function sk(e){const t=GS(e);if(!ok(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function ck(e){const t=GS(e);if(!ok(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function lk(e){return void 0!==e.resolveJsonModule?e.resolveJsonModule:100===GS(e)}function _k(e){return!(!e.declaration&&!e.composite)}function uk(e){return!(!e.preserveConstEnums&&!YS(e))}function dk(e){return!(!e.incremental&&!e.composite)}function pk(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function fk(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function mk(e){return void 0===e.useDefineForClassFields?HS(e)>=9:e.useDefineForClassFields}function gk(e){return!1!==e.useDefineForClassFields&&HS(e)>=9}function hk(e,t){return _p(t,e,TO)}function yk(e,t){return _p(t,e,CO)}function vk(e,t){return _p(t,e,wO)}function bk(e,t){return t.strictFlag?pk(e,t.name):t.allowJsFlag?fk(e):e[t.name]}function xk(e){const t=e.jsx;return 2===t||4===t||5===t}function Sk(e,t){const n=null==t?void 0:t.pragmas.get("jsximportsource"),r=_t(n)?n[n.length-1]:n;return 4===e.jsx||5===e.jsx||e.jsxImportSource||r?(null==r?void 0:r.arguments.factory)||e.jsxImportSource||"react":void 0}function kk(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Tk(e){let t=!1;for(let n=0;n<e.length;n++)if(42===e.charCodeAt(n)){if(t)return!1;t=!0}return!0}function Ck(e,t){let n,i,o,a=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(e,t)=>(o||(o=new Map)).set(e,t),setSymlinkedDirectory:(r,o)=>{let a=pa(r,e,t);RT(a)||(a=ma(a),!1===o||(null==n?void 0:n.has(a))||(i||(i=ot())).add(o.realPath,r),(n||(n=new Map)).set(a,o))},setSymlinksFromResolutions(e,t,n){Sn.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};function s(n,i){if(!i||!i.originalPath||!i.resolvedFileName)return;const{resolvedFileName:o,originalPath:a}=i;n.setSymlinkedFile(pa(a,e,t),o);const[s,c]=function(e,t,n,r){const i=ra(_a(e,n)),o=ra(_a(t,n));let a=!1;for(;i.length>=2&&o.length>=2&&!wk(i[i.length-2],r)&&!wk(o[o.length-2],r)&&r(i[i.length-1])===r(o[o.length-1]);)i.pop(),o.pop(),a=!0;return a?[ia(i),ia(o)]:void 0}(o,a,e,t)||r;s&&c&&n.setSymlinkedDirectory(c,{real:ma(s),realPath:ma(pa(s,e,t))})}}function wk(e,t){return void 0!==e&&("node_modules"===t(e)||an(e,"@"))}function Nk(e,t,n){const r=cn(e,t,n);return void 0===r?void 0:Bo((i=r).charCodeAt(0))?i.slice(1):void 0;var i}function Dk(e){return e.replace(Od,Fk)}function Fk(e){return"\\"+e}function Pk(e,t,n){const r=Ek(e,t,n);if(!r||!r.length)return;return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function Ek(e,t,n){if(void 0!==e&&0!==e.length)return V(e,(e=>e&&Ok(e,t,n,zd[n])))}function Ak(e){return!/[.*?]/.test(e)}function Ik(e,t,n){const r=e&&Ok(e,t,n,zd[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function Ok(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}){let a="",s=!1;const c=la(e,t),l=Ie(c);if("exclude"!==n&&"**"===l)return;c[0]=fa(c[0]),Ak(l)&&c.push("**","*");let _=0;for(let e of c){if("**"===e)a+=i;else if("directories"===n&&(a+="(",_++),s&&(a+=Io),"exclude"!==n){let t="";42===e.charCodeAt(0)?(t+="([^./]"+r+")?",e=e.substr(1)):63===e.charCodeAt(0)&&(t+="[^./]",e=e.substr(1)),t+=e.replace(Od,o),t!==e&&(a+=Md),a+=t}else a+=e.replace(Od,o);s=!0}for(;_>0;)a+=")?",_--;return a}function Lk(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function jk(e,t,n,r,i){e=ua(e);const o=sa(i=ua(i),e);return{includeFilePatterns:J(Ek(n,o,"files"),(e=>`^${e}$`)),includeFilePattern:Pk(n,o,"files"),includeDirectoryPattern:Pk(n,o,"directories"),excludePattern:Pk(t,o,"exclude"),basePaths:Bk(e,n,r)}}function Mk(e,t){return new RegExp(e,t?"":"i")}function Rk(e,t,n,r,i,o,a,s,c){e=ua(e),o=ua(o);const l=jk(e,n,r,i,o),_=l.includeFilePatterns&&l.includeFilePatterns.map((e=>Mk(e,i))),u=l.includeDirectoryPattern&&Mk(l.includeDirectoryPattern,i),d=l.excludePattern&&Mk(l.excludePattern,i),p=_?_.map((()=>[])):[[]],f=new Map,m=tn(i);for(const e of l.basePaths)g(e,sa(o,e),a);return U(p);function g(e,n,r){const i=m(c(n));if(f.has(i))return;f.set(i,!0);const{files:o,directories:a}=s(e);for(const r of Te(o,Rt)){const i=sa(e,r),o=sa(n,r);if((!t||Ko(i,t))&&(!d||!d.test(o)))if(_){const e=P(_,(e=>e.test(o)));-1!==e&&p[e].push(i)}else p[0].push(i)}if(void 0===r||0!=--r)for(const t of Te(a,Rt)){const i=sa(e,t),o=sa(n,t);u&&!u.test(o)||d&&d.test(o)||g(i,o,r)}}}function Bk(e,t,n){const r=[e];if(t){const i=[];for(const n of t){const t=zo(n)?n:ua(sa(e,n));i.push(Jk(t))}i.sort(Bt(!n));for(const t of i)N(r,(r=>!Sa(r,t,e,!n)))&&r.push(t)}return r}function Jk(e){const t=L(e,Ld);return t<0?Ho(e)?fa(Zo(e)):e:e.substring(0,e.lastIndexOf(Io,t))}function zk(e,t){return t||qk(e)||3}function qk(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function Uk(e,t){const n=e&&fk(e);if(!t||0===t.length)return n?Kd:qd;const r=n?Kd:qd,i=U(r);return[...r,...G(t,(e=>{return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&!i.includes(e.extension)?[e.extension]:void 0;var t}))]}function Vk(e,t){return e&&lk(e)?t===Kd?Gd:t===qd?Vd:[...t,[".json"]]:t}function Wk(e){return re($d,(t=>$o(e,t)))}function Hk(e){return re(Ud,(t=>$o(e,t)))}function $k({imports:e},t=un(Wk,Hk)){return S(e,(({text:e})=>Vo(e)&&!Ko(e,Yd)?t(e):void 0))||!1}function Kk(e,t,n,i){return"js"===e||99===t?gR(n)&&2!==o()?3:2:"minimal"===e?0:"index"===e?1:gR(n)?o():$k(i)?2:0;function o(){let e=!1;const t=i.imports.length?i.imports.map((e=>e.text)):Sg(i)?function(e){let t,n=0;for(const r of e.statements){if(n>3)break;Og(r)?t=oe(t,r.declarationList.declarations.map((e=>e.initializer))):IF(r)&&Fg(r.expression,!0)?t=he(t,r.expression):n++}return t||r}(i).map((e=>e.arguments[0].text)):r;for(const n of t)if(Vo(n)){if(Ko(n,Yd))continue;if(Hk(n))return 3;Wk(n)&&(e=!0)}return e?2:0}}function Gk(e,t,n){if(!e)return!1;const r=Uk(t,n);for(const n of U(Vk(t,r)))if($o(e,n))return!0;return!1}function Xk(e){const t=e.match(/\//g);return t?t.length:0}function Qk(e,t){return It(Xk(e),Xk(t))}function Yk(e){for(const t of ep){const n=Zk(e,t);if(void 0!==n)return n}return e}function Zk(e,t){return $o(e,t)?eT(e,t):void 0}function eT(e,t){return e.substring(0,e.length-t.length)}function tT(e,t){return ha(e,t,ep,!1)}function nT(e){const t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function rT(e){return G(Ue(e),(e=>nT(e)))}function iT(e){return!(e>=0)}function oT(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e||an(e,".d.")&&$t(e,".ts")}function aT(e){return oT(e)||".json"===e}function sT(e){const t=lT(e);return void 0!==t?t:Sn.fail(`File ${e} has unknown extension.`)}function cT(e){return void 0!==lT(e)}function lT(e){return D(ep,(t=>$o(e,t)))}function _T(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function uT(e,t){const n=[];for(const r of e){if(r===t)return t;dt(r)||n.push(r)}return on(n,(e=>e),t)}function dT(e,t){const n=e.indexOf(t);return Sn.assert(-1!==n),e.slice(n)}function pT(e,...t){return t.length?(e.relatedInformation||(e.relatedInformation=[]),Sn.assert(e.relatedInformation!==r,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t),e):e}function fT(e,t){Sn.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;i<e.length;i++){const o=t(e[i]);o<n?n=o:o>r&&(r=o)}return{min:n,max:r}}function mT(e){return{pos:$p(e),end:e.end}}function gT(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,ys(e.text,t.end)+1)}}function hT(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function yT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&Ge(e,t,yT)}function vT(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:const n=e.length-1;let r=0;for(;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}const n=e.length-1,r=(n-2)*t,i=new Uint16Array((r>>>4)+(15&r?1:0));for(let r=n-1,o=0;r>=2;r--,o+=t){const t=o>>>4,n=e.charCodeAt(r),a=(n<=57?n-48:10+n-(n<=70?65:97))<<(15&o);i[t]|=a;const s=a>>>16;s&&(i[t+1]|=s)}let o="",a=i.length-1,s=!0;for(;s;){let e=0;s=!1;for(let t=a;t>=0;t--){const n=e<<16|i[t],r=n/10|0;i[t]=r,e=n-10*r,r&&!s&&(a=t,s=!0)}o=e+o}return o}function bT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function xT(e){if(kT(e,!1))return ST(e)}function ST(e){const t=e.startsWith("-");return{negative:t,base10Value:vT(`${t?e.slice(1):e}n`)}}function kT(e,t){if(""===e)return!1;const n=Ls(99,!1);let r=!0;n.setOnError((()=>r=!1)),n.setText(e+"n");let i=n.scan();const o=41===i;o&&(i=n.scan());const a=n.getTokenFlags();return r&&10===i&&n.getTokenEnd()===e.length+1&&!(512&a)&&(!t||e===bT({negative:o,base10Value:vT(n.getTokenValue())}))}function TT(e){return!!(33554432&e.flags)||gg(e)||function(e){if(80!==e.kind)return!1;const t=kc(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(fb(e.parent,64))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(fg(e)||function(e){return HN(e)&&UP(e.parent)&&e.parent.name===e}(e))}function CT(e){return TD(e)&&HN(e.typeName)}function wT(e,t=Ft){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;r<i;r++){if(!t(n,e[r]))return!1}return!0}function NT(e,t){return e.pos=t,e}function DT(e,t){return e.end=t,e}function FT(e,t,n){return DT(NT(e,t),n)}function PT(e,t,n){return FT(e,t,t+n)}function ET(e,t){return e&&(e.flags=t),e}function AT(e,t){return e&&t&&(e.parent=t),e}function IT(e,t){if(e)for(const n of e)AT(n,t);return e}function OT(e,t){return e?(GI(e,Bu(e)?n:function(e,t){return n(e,t)||function(e){if(Vu(e))for(const t of e.jsDoc)n(t,e),GI(t,n)}(e)}),e):e;function n(e,n){if(t&&e.parent===n)return"skip";AT(e,n)}}function LT(e){return!vF(e)}function jT(e){return XD(e)&&N(e.elements,LT)}function MT(e){for(Sn.assertIsDefined(e.parent);;){const t=e.parent;if(iF(t))e=t;else{if(IF(t)||lF(t)||MF(t)&&(t.initializer===e||t.incrementor===e))return!0;if(NF(t)){if(e!==Ie(t.elements))return!0;e=t}else{if(!pF(t)||28!==t.operatorToken.kind)return!1;if(e===t.left)return!0;e=t}}}}function RT(e){return re(co,(t=>e.includes(t)))}function BT(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return _I(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(zu(e))return uE(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return I_(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return j_(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return Ou(e)?t.children:void 0;case 286:case 285:return j_(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 312:return t.statements;case 269:return t.clauses;case 263:case 231:return C_(e)?t.members:void 0;case 266:return WP(e)?t.members:void 0}}function JT(e){if(!e.typeParameters){if(re(e.parameters,(e=>!Yv(e))))return!0;if(219!==e.kind){const t=De(e.parameters);if(!t||!Hv(t))return!0}}return!1}function zT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function qT(e){return 260===e.kind&&299===e.parent.kind}function UT(e){const t=e.valueDeclaration&&Ky(e.valueDeclaration);return!!t&&(_D(t)||qT(t))}function VT(e){return 218===e.kind||219===e.kind}function WT(e){return e.replace(/\$/gm,(()=>"\\$"))}function HT(e){return(+e).toString()===e}function $T(e,t,n,r,i){const o=i&&"new"===e;return!o&&Os(e,t)?AC.createIdentifier(e):!r&&!o&&HT(e)&&+e>=0?AC.createNumericLiteral(+e):AC.createStringLiteral(e,!!n)}function KT(e){return!!(262144&e.flags&&e.isThisType)}function GT(e){let t,n=0,r=0,i=0,o=0;var a;(a=t||(t={}))[a.BeforeNodeModules=0]="BeforeNodeModules",a[a.NodeModules=1]="NodeModules",a[a.Scope=2]="Scope",a[a.PackageContent=3]="PackageContent";let s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(Ij,s)===s&&(n=s,r=c,l=1);break;case 1:case 2:1===l&&"@"===e.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=e.indexOf(Ij,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function XT(e){var t;return 348===e.kind?null==(t=e.typeExpression)?void 0:t.type:e.type}function QT(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function YT(e){return tP(e)||EF(e)||QF(e)||YF(e)||ZF(e)||QT(e)||nP(e)&&!gf(e)&&!mf(e)}function ZT(e){if(!ql(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&323===n.type.kind}function eC(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&As(e.charCodeAt(1),t):As(n,t)}function tC(e){var t;return 0===(null==(t=Fw(e))?void 0:t.kind)}function nC(e){return Tg(e)&&(e.type&&323===e.type.kind||qc(e).some((({isBracketed:e,typeExpression:t})=>e||!!t&&323===t.type.kind)))}function rC(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||nC(e);case 355:case 348:return ZT(e);default:return!1}}function iC(e){const t=e.kind;return(211===t||212===t)&&kF(e.expression)}function oC(e){return Tg(e)&&iF(e)&&Vu(e)&&!!dl(e)}function aC(e){return Sn.checkDefined(sC(e))}function sC(e){const t=dl(e);return t&&t.typeExpression&&t.typeExpression.type}function cC(e){return HN(e)?e.escapedText:uC(e)}function lC(e){return HN(e)?Dc(e):dC(e)}function _C(e){const t=e.kind;return 80===t||295===t}function uC(e){return`${e.namespace.escapedText}:${Dc(e.name)}`}function dC(e){return`${Dc(e.namespace)}:${Dc(e.name)}`}function pC(e){return HN(e)?Dc(e):dC(e)}function fC(e){return!!(8576&e.flags)}function mC(e){return 8192&e.flags?e.escapedName:384&e.flags?wc(""+e.value):Sn.fail()}function gC(e){return!!e&&(YD(e)||ZD(e)||pF(e))}function hC(e){return void 0!==e&&!!DV(e.attributes)}var yC=g({"src/compiler/utilities.ts"(){OK(),td=[],nd="tslib",rd=160,id=1e6,od=function(){var e="";const 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&&us(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:gt,decreaseIndent:gt,clear:()=>e=""}}(),ad=Tt((()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:r})),AsyncIterator:new Map(Object.entries({es2015:r})),Atomics:new Map(Object.entries({es2017:r})),SharedArrayBuffer:new Map(Object.entries({es2017:r})),AsyncIterable:new Map(Object.entries({es2018:r})),AsyncIterableIterator:new Map(Object.entries({es2018:r})),AsyncGenerator:new Map(Object.entries({es2018:r})),AsyncGeneratorFunction:new Map(Object.entries({es2018:r})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:r,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:r})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:r,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:r,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))})))),sd=(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))(sd||{}),cd=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,ld=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,_d=/^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,ud=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,dd=/^\/\/\/\s*<amd-module\s+.*?\/>/,pd=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,fd=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(fd||{}),md=(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))(md||{}),gd=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(gd||{}),hd=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(hd||{}),yd=/\$\{/g,vd=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,bd=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,xd=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Sd=new Map(Object.entries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),kd=/[^\u0000-\u007F]/g,Td=/["\u0000-\u001f\u2028\u2029\u0085]/g,Cd=/['\u0000-\u001f\u2028\u2029\u0085]/g,wd=new Map(Object.entries({'"':"&quot;","'":"&apos;"})),Nd=[""," "],Dd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Fd="\r\n",Pd="\n",Ed={getNodeConstructor:()=>hS,getTokenConstructor:()=>yS,getIdentifierConstructor:()=>vS,getPrivateIdentifierConstructor:()=>hS,getSourceFileConstructor:()=>hS,getSymbolConstructor:()=>fS,getTypeConstructor:()=>mS,getSignatureConstructor:()=>gS,getSourceMapSourceConstructor:()=>bS},Ad=[],Od=/[^\w\s/]/g,Ld=[42,63],Md=`(?!(${(jd=["node_modules","bower_components","jspm_packages"]).join("|")})(/|$))`,zd={files:Rd={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Md}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Lk(e,Rd.singleAsteriskRegexFragment)},directories:Bd={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Md}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Lk(e,Bd.singleAsteriskRegexFragment)},exclude:Jd={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Lk(e,Jd.singleAsteriskRegexFragment)}},Ud=U(qd=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]]),Vd=[...qd,[".json"]],Wd=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],$d=U(Hd=[[".js",".jsx"],[".mjs"],[".cjs"]]),Kd=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Gd=[...Kd,[".json"]],Xd=[".d.ts",".d.cts",".d.mts"],Qd=[".ts",".cts",".mts",".tsx"],Yd=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],Zd=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(Zd||{}),ep=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],tp={files:r,directories:r}}});function vC(){let e,t,n,r,i;return{createBaseSourceFileNode:function(e){return new(i||(i=Ed.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=Ed.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=Ed.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=Ed.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=Ed.getNodeConstructor()))(t,-1,-1)}}}var bC,xC=g({"src/compiler/factory/baseNodeFactory.ts"(){OK()}});function SC(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(e){t||(t=new Map);let n=t.get(e);n||(n=t=>o(e,t),t.set(e,n));return n},getParenthesizeRightSideOfBinaryForOperator:function(e){n||(n=new Map);let t=n.get(e);t||(t=t=>a(e,void 0,t),n.set(e,t));return t},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:a,parenthesizeExpressionOfComputedPropertyName:function(t){return sA(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=nv(227,58),r=jl(t);if(1!==It(ev(r),n))return e.createParenthesizedExpression(t);return t},parenthesizeBranchOfConditionalExpression:function(t){return sA(jl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=jl(t);let r=sA(n);if(!r)switch(pS(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=pS(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return eu(t)?t:cI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return nu(t)?t:cI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=q(t,c);return cI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=jl(t);if(eF(n)){const r=n.expression,i=jl(r).kind;if(218===i||219===i){const i=e.updateCallExpression(n,cI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=pS(n,!1).kind;if(210===r||218===r)return cI(e.createParenthesizedExpression(t),t);return t},parenthesizeConciseBodyOfArrowFunction:function(t){if(!PF(t)&&(sA(t)||210===pS(t,!1).kind))return cI(e.createParenthesizedExpression(t),t);return t},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){if(194===t.kind)return e.createParenthesizedType(t);return t},parenthesizeConstituentTypesOfUnionType:function(t){return e.createNodeArray(q(t,_))},parenthesizeConstituentTypeOfUnionType:_,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.createNodeArray(q(t,u))},parenthesizeConstituentTypeOfIntersectionType:u,parenthesizeOperandOfTypeOperator:d,parenthesizeOperandOfReadonlyTypeOperator:function(t){if(198===t.kind)return e.createParenthesizedType(t);return d(t)},parenthesizeNonArrayTypeOfPostfixType:p,parenthesizeElementTypesOfTupleType:function(t){return e.createNodeArray(q(t,f))},parenthesizeElementTypeOfTupleType:f,parenthesizeTypeOfOptionalType:function(t){return m(t)?e.createParenthesizedType(t):p(t)},parenthesizeTypeArguments:function(t){if(re(t))return e.createNodeArray(q(t,h))},parenthesizeLeadingTypeArgument:g};function r(e){if(Kl((e=jl(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Kl(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 217===jl(n).kind?n:function(e,t,n,i){const o=nv(226,e),a=Zy(226,e),s=jl(t);if(!n&&219===t.kind&&o>3)return!0;switch(It(ev(s),o)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(pF(s)&&s.operatorToken.kind===e){if(function(e){return 42===e||52===e||51===e||53===e||28===e}(e))return!1;if(40===e){const e=i?r(i):0;if(Kl(e)&&e===r(s))return!1}}return 0===Yy(s)}}(t,n,i,o)?e.createParenthesizedExpression(n):n}function o(e,t){return i(e,t,!0)}function a(e,t,n){return i(e,n,!1,t)}function s(t,n){const r=jl(t);return!eu(r)||214===r.kind&&!r.arguments||!n&&Pl(r)?cI(e.createParenthesizedExpression(t),t):t}function c(t){return ev(jl(t))>nv(226,28)?t:cI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function _(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return l(t)}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return _(t)}function d(t){return 193===t.kind?e.createParenthesizedType(t):u(t)}function p(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return iE(e)?e.postfix:ED(e)||CD(e)||wD(e)||JD(e)?m(e.type):jD(e)?m(e.falseType):OD(e)||LD(e)?m(Ie(e.types)):!!MD(e)&&(!!e.typeParameter.constraint&&m(e.typeParameter.constraint))}function g(t){return M_(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var kC,TC=g({"src/compiler/factory/parenthesizerRules.ts"(){OK(),bC={getParenthesizeLeftSideOfBinaryForOperator:e=>bt,getParenthesizeRightSideOfBinaryForOperator:e=>bt,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:bt,parenthesizeConditionOfConditionalExpression:bt,parenthesizeBranchOfConditionalExpression:bt,parenthesizeExpressionOfExportDefault:bt,parenthesizeExpressionOfNew:e=>mt(e,eu),parenthesizeLeftSideOfAccess:e=>mt(e,eu),parenthesizeOperandOfPostfixUnary:e=>mt(e,eu),parenthesizeOperandOfPrefixUnary:e=>mt(e,nu),parenthesizeExpressionsOfCommaDelimitedList:e=>mt(e,$l),parenthesizeExpressionForDisallowedComma:bt,parenthesizeExpressionOfExpressionStatement:bt,parenthesizeConciseBodyOfArrowFunction:bt,parenthesizeCheckTypeOfConditionalType:bt,parenthesizeExtendsTypeOfConditionalType:bt,parenthesizeConstituentTypesOfUnionType:e=>mt(e,$l),parenthesizeConstituentTypeOfUnionType:bt,parenthesizeConstituentTypesOfIntersectionType:e=>mt(e,$l),parenthesizeConstituentTypeOfIntersectionType:bt,parenthesizeOperandOfTypeOperator:bt,parenthesizeOperandOfReadonlyTypeOperator:bt,parenthesizeNonArrayTypeOfPostfixType:bt,parenthesizeElementTypesOfTupleType:e=>mt(e,$l),parenthesizeElementTypeOfTupleType:bt,parenthesizeTypeOfOptionalType:bt,parenthesizeTypeArguments:e=>e&&mt(e,$l),parenthesizeLeadingTypeArgument:bt}}});function CC(e){return{convertToFunctionBlock:function(t,n){if(PF(t))return t;const r=e.createReturnStatement(t);cI(r,t);const i=e.createBlock([r],n);return cI(i,t),i},convertToFunctionExpression:function(t){var n;if(!t.body)return Sn.fail("Cannot convert a FunctionDeclaration without a body");const r=e.createFunctionExpression(null==(n=Jc(t))?void 0:n.filter((e=>!KN(e)&&!GN(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);YC(r,t),cI(r,t),uw(t)&&dw(r,!0);return r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!KN(e)&&!GN(e))),t.name,t.typeParameters,t.heritageClauses,t.members);YC(r,t),cI(r,t),uw(t)&&dw(r,!0);return r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(GD(t)){if(t.dotDotDotToken)return Sn.assertNode(t.name,HN),YC(cI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?YC(cI(e.createAssignment(n,t.initializer),t),t):n}return mt(t,au)}function n(t){if(GD(t)){if(t.dotDotDotToken)return Sn.assertNode(t.name,HN),YC(cI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return YC(cI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return Sn.assertNode(t.name,HN),YC(cI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return mt(t,L_)}function r(e){switch(e.kind){case 207:case 209:return o(e);case 206:case 210:return i(e)}}function i(t){return $D(t)?YC(cI(e.createObjectLiteralExpression(J(t.elements,n)),t),t):mt(t,QD)}function o(n){return KD(n)?YC(cI(e.createArrayLiteralExpression(J(n.elements,t)),n),n):mt(n,XD)}function a(e){return R_(e)?r(e):mt(e,au)}}var wC,NC,DC,FC,PC,EC,AC,IC,OC=g({"src/compiler/factory/nodeConverters.ts"(){OK(),kC={convertToFunctionBlock:kt,convertToFunctionExpression:kt,convertToClassExpression:kt,convertToArrayAssignmentElement:kt,convertToObjectAssignmentElement:kt,convertToAssignmentPattern:kt,convertToObjectAssignmentPattern:kt,convertToArrayAssignmentPattern:kt,convertToAssignmentElementTarget:kt}}});function LC(e){DC.push(e)}function jC(e,t){const n=8&e?MC:RC,i=Tt((()=>1&e?bC:SC(y))),o=Tt((()=>2&e?kC:CC(y))),a=Ct((e=>(t,n)=>It(t,e,n))),s=Ct((e=>t=>Et(e,t))),c=Ct((e=>t=>At(t,e))),l=Ct((e=>()=>function(e){return x(e)}(e))),_=Ct((e=>t=>_r(e,t))),u=Ct((e=>(t,r)=>function(e,t,r){return t.type!==r?n(_r(e,r),t):t}(e,t,r))),d=Ct((e=>(t,n)=>lr(e,t,n))),p=Ct((e=>(t,r)=>function(e,t,r){return t.type!==r?n(lr(e,r,t.postfix),t):t}(e,t,r))),f=Ct((e=>(t,n)=>Ar(e,t,n))),m=Ct((e=>(t,r,i)=>function(e,t,r=mr(t),i){return t.tagName!==r||t.comment!==i?n(Ar(e,r,i),t):t}(e,t,r,i))),g=Ct((e=>(t,n,r)=>Ir(e,t,n,r))),h=Ct((e=>(t,r,i,o)=>function(e,t,r=mr(t),i,o){return t.tagName!==r||t.typeExpression!==i||t.comment!==o?n(Ir(e,r,i,o),t):t}(e,t,r,i,o))),y={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:v,createNumericLiteral:T,createBigIntLiteral:C,createStringLiteral:D,createStringLiteralFromNode:function(e){const t=w(Ly(e),void 0);return t.textSourceNode=e,t},createRegularExpressionLiteral:F,createLiteralLikeNode:function(e,t){switch(e){case 9:return T(t,0);case 10:return C(t);case 11:return D(t,void 0);case 12:return Ur(t,!1);case 13:return Ur(t,!0);case 14:return F(t);case 15:return Jt(e,t,void 0,0)}},createIdentifier:A,createTempVariable:I,createLoopVariable:function(e){let t=2;e&&(t|=8);return E("",t,void 0,void 0)},createUniqueName:function(e,t=0,n,r){return Sn.assert(!(7&t),"Argument out of range: flags"),Sn.assert(32!=(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),E(e,3|t,n,r)},getGeneratedNameForNode:O,createPrivateIdentifier:function(e){an(e,"#")||Sn.fail("First character of private identifier must be #: "+e);return L(wc(e))},createUniquePrivateName:function(e,t,n){e&&!an(e,"#")&&Sn.fail("First character of private identifier must be #: "+e);return j(e??"",8|(e?3:1),t,n)},getGeneratedPrivateNameForNode:function(e,t,n){const r=Cl(e)?ZA(!0,t,e,n,Dc):`#generated@${PB(e)}`,i=j(r,4|(t||n?16:0),t,n);return i.original=e,i},createToken:R,createSuper:function(){return R(108)},createThis:B,createNull:J,createTrue:z,createFalse:q,createModifier:U,createModifiersFromModifierFlags:V,createQualifiedName:W,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?n(W(t,r),e):e},createComputedPropertyName:H,updateComputedPropertyName:function(e,t){return e.expression!==t?n(H(t),e):e},createTypeParameterDeclaration:K,updateTypeParameterDeclaration:G,createParameterDeclaration:X,updateParameterDeclaration:Q,createDecorator:Y,updateDecorator:function(e,t){return e.expression!==t?n(Y(t),e):e},createPropertySignature:Z,updatePropertySignature:ee,createPropertyDeclaration:te,updatePropertyDeclaration:ne,createMethodSignature:ie,updateMethodSignature:oe,createMethodDeclaration:ae,updateMethodDeclaration:se,createConstructorDeclaration:le,updateConstructorDeclaration:_e,createGetAccessorDeclaration:ue,updateGetAccessorDeclaration:de,createSetAccessorDeclaration:pe,updateSetAccessorDeclaration:fe,createCallSignature:me,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?k(me(t,n,r),e):e},createConstructSignature:ge,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?k(ge(t,n,r),e):e},createIndexSignature:ye,updateIndexSignature:ve,createClassStaticBlockDeclaration:ce,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return n(e,t)}(ce(t),e):e},createTemplateLiteralTypeSpan:be,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?n(be(t,r),e):e},createKeywordTypeNode:function(e){return R(e)},createTypePredicateNode:xe,updateTypePredicateNode:function(e,t,r,i){return e.assertsModifier!==t||e.parameterName!==r||e.type!==i?n(xe(t,r,i),e):e},createTypeReferenceNode:Se,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?n(Se(t,r),e):e},createFunctionTypeNode:ke,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?function(e,t){e!==t&&(e.modifiers=t.modifiers);return k(e,t)}(ke(t,n,r),e):e},createConstructorTypeNode:Te,updateConstructorTypeNode:function(...e){return 5===e.length?we(...e):4===e.length?function(e,t,n,r){return we(e,e.modifiers,t,n,r)}(...e):Sn.fail("Incorrect number of arguments specified.")},createTypeQueryNode:Ne,updateTypeQueryNode:function(e,t,r){return e.exprName!==t||e.typeArguments!==r?n(Ne(t,r),e):e},createTypeLiteralNode:De,updateTypeLiteralNode:function(e,t){return e.members!==t?n(De(t),e):e},createArrayTypeNode:Fe,updateArrayTypeNode:function(e,t){return e.elementType!==t?n(Fe(t),e):e},createTupleTypeNode:Pe,updateTupleTypeNode:function(e,t){return e.elements!==t?n(Pe(t),e):e},createNamedTupleMember:Ee,updateNamedTupleMember:function(e,t,r,i,o){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==i||e.type!==o?n(Ee(t,r,i,o),e):e},createOptionalTypeNode:Ie,updateOptionalTypeNode:function(e,t){return e.type!==t?n(Ie(t),e):e},createRestTypeNode:Le,updateRestTypeNode:function(e,t){return e.type!==t?n(Le(t),e):e},createUnionTypeNode:function(e){return je(192,e,i().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Me(e,t,i().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return je(193,e,i().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Me(e,t,i().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Re,updateConditionalTypeNode:function(e,t,r,i,o){return e.checkType!==t||e.extendsType!==r||e.trueType!==i||e.falseType!==o?n(Re(t,r,i,o),e):e},createInferTypeNode:Be,updateInferTypeNode:function(e,t){return e.typeParameter!==t?n(Be(t),e):e},createImportTypeNode:Ue,updateImportTypeNode:function(e,t,r,i,o,a=e.isTypeOf){return e.argument!==t||e.attributes!==r||e.qualifier!==i||e.typeArguments!==o||e.isTypeOf!==a?n(Ue(t,r,i,o,a),e):e},createParenthesizedType:Ve,updateParenthesizedType:function(e,t){return e.type!==t?n(Ve(t),e):e},createThisTypeNode:function(){const e=x(197);return e.transformFlags=1,e},createTypeOperatorNode:We,updateTypeOperatorNode:function(e,t){return e.type!==t?n(We(e.operator,t),e):e},createIndexedAccessTypeNode:He,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?n(He(t,r),e):e},createMappedTypeNode:$e,updateMappedTypeNode:function(e,t,r,i,o,a,s){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==i||e.questionToken!==o||e.type!==a||e.members!==s?n($e(t,r,i,o,a,s),e):e},createLiteralTypeNode:Ke,updateLiteralTypeNode:function(e,t){return e.literal!==t?n(Ke(t),e):e},createTemplateLiteralType:qe,updateTemplateLiteralType:function(e,t,r){return e.head!==t||e.templateSpans!==r?n(qe(t,r),e):e},createObjectBindingPattern:Ge,updateObjectBindingPattern:function(e,t){return e.elements!==t?n(Ge(t),e):e},createArrayBindingPattern:Xe,updateArrayBindingPattern:function(e,t){return e.elements!==t?n(Xe(t),e):e},createBindingElement:Qe,updateBindingElement:function(e,t,r,i,o){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==i||e.initializer!==o?n(Qe(t,r,i,o),e):e},createArrayLiteralExpression:Ye,updateArrayLiteralExpression:function(e,t){return e.elements!==t?n(Ye(t,e.multiLine),e):e},createObjectLiteralExpression:Ze,updateObjectLiteralExpression:function(e,t){return e.properties!==t?n(Ze(t,e.multiLine),e):e},createPropertyAccessExpression:4&e?(e,t)=>rw(tt(e,t),262144):tt,updatePropertyAccessExpression:function(e,t,r){if(Nl(e))return rt(e,t,e.questionDotToken,mt(r,HN));return e.expression!==t||e.name!==r?n(tt(t,r),e):e},createPropertyAccessChain:4&e?(e,t,n)=>rw(nt(e,t,n),262144):nt,updatePropertyAccessChain:rt,createElementAccessExpression:ot,updateElementAccessExpression:function(e,t,r){if(Dl(e))return st(e,t,e.questionDotToken,r);return e.expression!==t||e.argumentExpression!==r?n(ot(t,r),e):e},createElementAccessChain:at,updateElementAccessChain:st,createCallExpression:lt,updateCallExpression:function(e,t,r,i){if(Fl(e))return dt(e,t,e.questionDotToken,r,i);return e.expression!==t||e.typeArguments!==r||e.arguments!==i?n(lt(t,r,i),e):e},createCallChain:ut,updateCallChain:dt,createNewExpression:pt,updateNewExpression:function(e,t,r,i){return e.expression!==t||e.typeArguments!==r||e.arguments!==i?n(pt(t,r,i),e):e},createTaggedTemplateExpression:ft,updateTaggedTemplateExpression:function(e,t,r,i){return e.tag!==t||e.typeArguments!==r||e.template!==i?n(ft(t,r,i),e):e},createTypeAssertion:gt,updateTypeAssertion:ht,createParenthesizedExpression:vt,updateParenthesizedExpression:bt,createFunctionExpression:xt,updateFunctionExpression:St,createArrowFunction:kt,updateArrowFunction:wt,createDeleteExpression:Nt,updateDeleteExpression:function(e,t){return e.expression!==t?n(Nt(t),e):e},createTypeOfExpression:Dt,updateTypeOfExpression:function(e,t){return e.expression!==t?n(Dt(t),e):e},createVoidExpression:Ft,updateVoidExpression:function(e,t){return e.expression!==t?n(Ft(t),e):e},createAwaitExpression:Pt,updateAwaitExpression:function(e,t){return e.expression!==t?n(Pt(t),e):e},createPrefixUnaryExpression:Et,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?n(Et(e.operator,t),e):e},createPostfixUnaryExpression:At,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?n(At(t,e.operator),e):e},createBinaryExpression:It,updateBinaryExpression:function(e,t,r,i){return e.left!==t||e.operatorToken!==r||e.right!==i?n(It(t,r,i),e):e},createConditionalExpression:Lt,updateConditionalExpression:function(e,t,r,i,o,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==i||e.colonToken!==o||e.whenFalse!==a?n(Lt(t,r,i,o,a),e):e},createTemplateExpression:jt,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?n(jt(t,r),e):e},createTemplateHead:function(e,t,n){return Jt(16,e=Mt(16,e,t,n),t,n)},createTemplateMiddle:function(e,t,n){return Jt(17,e=Mt(16,e,t,n),t,n)},createTemplateTail:function(e,t,n){return Jt(18,e=Mt(16,e,t,n),t,n)},createNoSubstitutionTemplateLiteral:function(e,t,n){return Bt(15,e=Mt(16,e,t,n),t,n)},createTemplateLiteralLikeNode:Jt,createYieldExpression:zt,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?n(zt(t,r),e):e},createSpreadElement:qt,updateSpreadElement:function(e,t){return e.expression!==t?n(qt(t),e):e},createClassExpression:Ut,updateClassExpression:Vt,createOmittedExpression:function(){return x(232)},createExpressionWithTypeArguments:Wt,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?n(Wt(t,r),e):e},createAsExpression:Ht,updateAsExpression:$t,createNonNullExpression:Kt,updateNonNullExpression:Gt,createSatisfiesExpression:Xt,updateSatisfiesExpression:Qt,createNonNullChain:Yt,updateNonNullChain:Zt,createMetaProperty:en,updateMetaProperty:function(e,t){return e.name!==t?n(en(e.keywordToken,t),e):e},createTemplateSpan:tn,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?n(tn(t,r),e):e},createSemicolonClassElement:function(){const e=x(240);return e.transformFlags|=1024,e},createBlock:nn,updateBlock:function(e,t){return e.statements!==t?n(nn(t,e.multiLine),e):e},createVariableStatement:rn,updateVariableStatement:on,createEmptyStatement:sn,createExpressionStatement:cn,updateExpressionStatement:function(e,t){return e.expression!==t?n(cn(t),e):e},createIfStatement:ln,updateIfStatement:function(e,t,r,i){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==i?n(ln(t,r,i),e):e},createDoStatement:_n,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?n(_n(t,r),e):e},createWhileStatement:un,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?n(un(t,r),e):e},createForStatement:dn,updateForStatement:function(e,t,r,i,o){return e.initializer!==t||e.condition!==r||e.incrementor!==i||e.statement!==o?n(dn(t,r,i,o),e):e},createForInStatement:pn,updateForInStatement:function(e,t,r,i){return e.initializer!==t||e.expression!==r||e.statement!==i?n(pn(t,r,i),e):e},createForOfStatement:fn,updateForOfStatement:function(e,t,r,i,o){return e.awaitModifier!==t||e.initializer!==r||e.expression!==i||e.statement!==o?n(fn(t,r,i,o),e):e},createContinueStatement:mn,updateContinueStatement:function(e,t){return e.label!==t?n(mn(t),e):e},createBreakStatement:gn,updateBreakStatement:function(e,t){return e.label!==t?n(gn(t),e):e},createReturnStatement:hn,updateReturnStatement:function(e,t){return e.expression!==t?n(hn(t),e):e},createWithStatement:yn,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?n(yn(t,r),e):e},createSwitchStatement:vn,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?n(vn(t,r),e):e},createLabeledStatement:bn,updateLabeledStatement:xn,createThrowStatement:kn,updateThrowStatement:function(e,t){return e.expression!==t?n(kn(t),e):e},createTryStatement:Tn,updateTryStatement:function(e,t,r,i){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==i?n(Tn(t,r,i),e):e},createDebuggerStatement:function(){const e=x(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:Cn,updateVariableDeclaration:function(e,t,r,i,o){return e.name!==t||e.type!==i||e.exclamationToken!==r||e.initializer!==o?n(Cn(t,r,i,o),e):e},createVariableDeclarationList:wn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?n(wn(t,e.flags),e):e},createFunctionDeclaration:Nn,updateFunctionDeclaration:Dn,createClassDeclaration:Fn,updateClassDeclaration:Pn,createInterfaceDeclaration:En,updateInterfaceDeclaration:An,createTypeAliasDeclaration:In,updateTypeAliasDeclaration:On,createEnumDeclaration:Ln,updateEnumDeclaration:jn,createModuleDeclaration:Mn,updateModuleDeclaration:Rn,createModuleBlock:Bn,updateModuleBlock:function(e,t){return e.statements!==t?n(Bn(t),e):e},createCaseBlock:Jn,updateCaseBlock:function(e,t){return e.clauses!==t?n(Jn(t),e):e},createNamespaceExportDeclaration:zn,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?function(e,t){e!==t&&(e.modifiers=t.modifiers);return n(e,t)}(zn(t),e):e},createImportEqualsDeclaration:qn,updateImportEqualsDeclaration:Un,createImportDeclaration:Vn,updateImportDeclaration:Wn,createImportClause:Hn,updateImportClause:function(e,t,r,i){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==i?n(Hn(t,r,i),e):e},createAssertClause:$n,updateAssertClause:function(e,t,r){return e.elements!==t||e.multiLine!==r?n($n(t,r),e):e},createAssertEntry:Kn,updateAssertEntry:function(e,t,r){return e.name!==t||e.value!==r?n(Kn(t,r),e):e},createImportTypeAssertionContainer:Gn,updateImportTypeAssertionContainer:function(e,t,r){return e.assertClause!==t||e.multiLine!==r?n(Gn(t,r),e):e},createImportAttributes:Xn,updateImportAttributes:function(e,t,r){return e.elements!==t||e.multiLine!==r?n(Xn(t,r,e.token),e):e},createImportAttribute:Qn,updateImportAttribute:function(e,t,r){return e.name!==t||e.value!==r?n(Qn(t,r),e):e},createNamespaceImport:Yn,updateNamespaceImport:function(e,t){return e.name!==t?n(Yn(t),e):e},createNamespaceExport:Zn,updateNamespaceExport:function(e,t){return e.name!==t?n(Zn(t),e):e},createNamedImports:er,updateNamedImports:function(e,t){return e.elements!==t?n(er(t),e):e},createImportSpecifier:tr,updateImportSpecifier:function(e,t,r,i){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==i?n(tr(t,r,i),e):e},createExportAssignment:nr,updateExportAssignment:rr,createExportDeclaration:ir,updateExportDeclaration:or,createNamedExports:ar,updateNamedExports:function(e,t){return e.elements!==t?n(ar(t),e):e},createExportSpecifier:sr,updateExportSpecifier:function(e,t,r,i){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==i?n(sr(t,r,i),e):e},createMissingDeclaration:function(){const e=S(282);return e.jsDoc=void 0,e},createExternalModuleReference:cr,updateExternalModuleReference:function(e,t){return e.expression!==t?n(cr(t),e):e},get createJSDocAllType(){return l(319)},get createJSDocUnknownType(){return l(320)},get createJSDocNonNullableType(){return d(322)},get updateJSDocNonNullableType(){return p(322)},get createJSDocNullableType(){return d(321)},get updateJSDocNullableType(){return p(321)},get createJSDocOptionalType(){return _(323)},get updateJSDocOptionalType(){return u(323)},get createJSDocVariadicType(){return _(325)},get updateJSDocVariadicType(){return u(325)},get createJSDocNamepathType(){return _(326)},get updateJSDocNamepathType(){return u(326)},createJSDocFunctionType:ur,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?n(ur(t,r),e):e},createJSDocTypeLiteral:dr,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?n(dr(t,r),e):e},createJSDocTypeExpression:pr,updateJSDocTypeExpression:function(e,t){return e.type!==t?n(pr(t),e):e},createJSDocSignature:fr,updateJSDocSignature:function(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?n(fr(t,r,i),e):e},createJSDocTemplateTag:yr,updateJSDocTemplateTag:function(e,t=mr(e),r,i,o){return e.tagName!==t||e.constraint!==r||e.typeParameters!==i||e.comment!==o?n(yr(t,r,i,o),e):e},createJSDocTypedefTag:vr,updateJSDocTypedefTag:function(e,t=mr(e),r,i,o){return e.tagName!==t||e.typeExpression!==r||e.fullName!==i||e.comment!==o?n(vr(t,r,i,o),e):e},createJSDocParameterTag:br,updateJSDocParameterTag:function(e,t=mr(e),r,i,o,a,s){return e.tagName!==t||e.name!==r||e.isBracketed!==i||e.typeExpression!==o||e.isNameFirst!==a||e.comment!==s?n(br(t,r,i,o,a,s),e):e},createJSDocPropertyTag:xr,updateJSDocPropertyTag:function(e,t=mr(e),r,i,o,a,s){return e.tagName!==t||e.name!==r||e.isBracketed!==i||e.typeExpression!==o||e.isNameFirst!==a||e.comment!==s?n(xr(t,r,i,o,a,s),e):e},createJSDocCallbackTag:Sr,updateJSDocCallbackTag:function(e,t=mr(e),r,i,o){return e.tagName!==t||e.typeExpression!==r||e.fullName!==i||e.comment!==o?n(Sr(t,r,i,o),e):e},createJSDocOverloadTag:kr,updateJSDocOverloadTag:function(e,t=mr(e),r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?n(kr(t,r,i),e):e},createJSDocAugmentsTag:Tr,updateJSDocAugmentsTag:function(e,t=mr(e),r,i){return e.tagName!==t||e.class!==r||e.comment!==i?n(Tr(t,r,i),e):e},createJSDocImplementsTag:Cr,updateJSDocImplementsTag:function(e,t=mr(e),r,i){return e.tagName!==t||e.class!==r||e.comment!==i?n(Cr(t,r,i),e):e},createJSDocSeeTag:wr,updateJSDocSeeTag:function(e,t,r,i){return e.tagName!==t||e.name!==r||e.comment!==i?n(wr(t,r,i),e):e},createJSDocNameReference:Nr,updateJSDocNameReference:function(e,t){return e.name!==t?n(Nr(t),e):e},createJSDocMemberName:Dr,updateJSDocMemberName:function(e,t,r){return e.left!==t||e.right!==r?n(Dr(t,r),e):e},createJSDocLink:Fr,updateJSDocLink:function(e,t,r){return e.name!==t?n(Fr(t,r),e):e},createJSDocLinkCode:Pr,updateJSDocLinkCode:function(e,t,r){return e.name!==t?n(Pr(t,r),e):e},createJSDocLinkPlain:Er,updateJSDocLinkPlain:function(e,t,r){return e.name!==t?n(Er(t,r),e):e},get createJSDocTypeTag(){return g(351)},get updateJSDocTypeTag(){return h(351)},get createJSDocReturnTag(){return g(349)},get updateJSDocReturnTag(){return h(349)},get createJSDocThisTag(){return g(350)},get updateJSDocThisTag(){return h(350)},get createJSDocAuthorTag(){return f(337)},get updateJSDocAuthorTag(){return m(337)},get createJSDocClassTag(){return f(339)},get updateJSDocClassTag(){return m(339)},get createJSDocPublicTag(){return f(340)},get updateJSDocPublicTag(){return m(340)},get createJSDocPrivateTag(){return f(341)},get updateJSDocPrivateTag(){return m(341)},get createJSDocProtectedTag(){return f(342)},get updateJSDocProtectedTag(){return m(342)},get createJSDocReadonlyTag(){return f(343)},get updateJSDocReadonlyTag(){return m(343)},get createJSDocOverrideTag(){return f(344)},get updateJSDocOverrideTag(){return m(344)},get createJSDocDeprecatedTag(){return f(338)},get updateJSDocDeprecatedTag(){return m(338)},get createJSDocThrowsTag(){return g(356)},get updateJSDocThrowsTag(){return h(356)},get createJSDocSatisfiesTag(){return g(357)},get updateJSDocSatisfiesTag(){return h(357)},createJSDocEnumTag:Lr,updateJSDocEnumTag:function(e,t=mr(e),r,i){return e.tagName!==t||e.typeExpression!==r||e.comment!==i?n(Lr(t,r,i),e):e},createJSDocUnknownTag:Or,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?n(Or(t,r),e):e},createJSDocText:jr,updateJSDocText:function(e,t){return e.text!==t?n(jr(t),e):e},createJSDocComment:Mr,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?n(Mr(t,r),e):e},createJsxElement:Rr,updateJsxElement:function(e,t,r,i){return e.openingElement!==t||e.children!==r||e.closingElement!==i?n(Rr(t,r,i),e):e},createJsxSelfClosingElement:Br,updateJsxSelfClosingElement:function(e,t,r,i){return e.tagName!==t||e.typeArguments!==r||e.attributes!==i?n(Br(t,r,i),e):e},createJsxOpeningElement:Jr,updateJsxOpeningElement:function(e,t,r,i){return e.tagName!==t||e.typeArguments!==r||e.attributes!==i?n(Jr(t,r,i),e):e},createJsxClosingElement:zr,updateJsxClosingElement:function(e,t){return e.tagName!==t?n(zr(t),e):e},createJsxFragment:qr,createJsxText:Ur,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?n(Ur(t,r),e):e},createJsxOpeningFragment:function(){const e=x(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=x(290);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,i){return e.openingFragment!==t||e.children!==r||e.closingFragment!==i?n(qr(t,r,i),e):e},createJsxAttribute:Vr,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?n(Vr(t,r),e):e},createJsxAttributes:Wr,updateJsxAttributes:function(e,t){return e.properties!==t?n(Wr(t),e):e},createJsxSpreadAttribute:Hr,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?n(Hr(t),e):e},createJsxExpression:$r,updateJsxExpression:function(e,t){return e.expression!==t?n($r(e.dotDotDotToken,t),e):e},createJsxNamespacedName:Kr,updateJsxNamespacedName:function(e,t,r){return e.namespace!==t||e.name!==r?n(Kr(t,r),e):e},createCaseClause:Gr,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?n(Gr(t,r),e):e},createDefaultClause:Xr,updateDefaultClause:function(e,t){return e.statements!==t?n(Xr(t),e):e},createHeritageClause:Qr,updateHeritageClause:function(e,t){return e.types!==t?n(Qr(e.token,t),e):e},createCatchClause:Yr,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?n(Yr(t,r),e):e},createPropertyAssignment:Zr,updatePropertyAssignment:ei,createShorthandPropertyAssignment:ti,updateShorthandPropertyAssignment:function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken,e.equalsToken=t.equalsToken);return n(e,t)}(ti(t,r),e):e},createSpreadAssignment:ni,updateSpreadAssignment:function(e,t){return e.expression!==t?n(ni(t),e):e},createEnumMember:ri,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?n(ri(t,r),e):e},createSourceFile:function(e,n,r){const i=t.createBaseSourceFileNode(312);return i.statements=v(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=0,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=UC(i.statements)|qC(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},updateSourceFile:function(e,t,r=e.isDeclarationFile,i=e.referencedFiles,o=e.typeReferenceDirectives,a=e.hasNoDefaultLib,s=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==r||e.referencedFiles!==i||e.typeReferenceDirectives!==o||e.hasNoDefaultLib!==a||e.libReferenceDirectives!==s?n(function(e,t,n,r,i,o,a){const s=oi(e);return s.statements=v(t),s.isDeclarationFile=n,s.referencedFiles=r,s.typeReferenceDirectives=i,s.hasNoDefaultLib=o,s.libReferenceDirectives=a,s.transformFlags=UC(s.statements)|qC(s.endOfFileToken),s}(e,t,r,i,o,a,s),e):e},createRedirectedSourceFile:ii,createBundle:ai,updateBundle:function(e,t,i=r){return e.sourceFiles!==t||e.prepends!==i?n(ai(t,i),e):e},createUnparsedSource:function(e,t,n){const i=x(314);return i.prologues=e,i.syntheticReferences=t,i.texts=n,i.fileName="",i.text="",i.referencedFiles=r,i.libReferenceDirectives=r,i.getLineAndCharacterOfPosition=e=>_s(i,e),i},createUnparsedPrologue:function(e){return si(307,e)},createUnparsedPrepend:function(e,t){const n=si(308,e);return n.texts=t,n},createUnparsedTextLike:function(e,t){return si(t?310:309,e)},createUnparsedSyntheticReference:function(e){const t=x(311);return t.data=e.data,t.section=e,t},createInputFiles:function(){const e=x(315);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t=!1,n){const r=x(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=x(358);return t._children=e,t},createNotEmittedStatement:function(e){const t=x(359);return t.original=e,cI(t,e),t},createPartiallyEmittedExpression:ci,updatePartiallyEmittedExpression:li,createCommaListExpression:ui,updateCommaListExpression:function(e,t){return e.elements!==t?n(ui(t),e):e},createSyntheticReferenceExpression:di,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?n(di(t,r),e):e},cloneNode:pi,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 s(40)},get createPrefixMinus(){return s(41)},get createPrefixIncrement(){return s(46)},get createPrefixDecrement(){return s(47)},get createBitwiseNot(){return s(55)},get createLogicalNot(){return s(54)},get createPostfixIncrement(){return c(46)},get createPostfixDecrement(){return c(47)},createImmediatelyInvokedFunctionExpression:function(e,t,n){return lt(xt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,nn(e,!0)),void 0,n?[n]:[])},createImmediatelyInvokedArrowFunction:function(e,t,n){return lt(kt(void 0,void 0,t?[t]:[],void 0,void 0,nn(e,!0)),void 0,n?[n]:[])},createVoidZero:fi,createExportDefault:function(e){return nr(void 0,!1,e)},createExternalModuleExport:function(e){return ir(void 0,!1,ar([sr(!1,void 0,e)]))},createTypeCheck:function(e,t){return"null"===t?y.createStrictEquality(e,J()):"undefined"===t?y.createStrictEquality(e,fi()):y.createStrictEquality(Dt(e),D(t))},createIsNotTypeCheck:function(e,t){return"null"===t?y.createStrictInequality(e,J()):"undefined"===t?y.createStrictInequality(e,fi()):y.createStrictInequality(Dt(e),D(t))},createMethodCall:mi,createGlobalMethodCall:gi,createFunctionBindCall:function(e,t,n){return mi(e,"bind",[t,...n])},createFunctionCallCall:function(e,t,n){return mi(e,"call",[t,...n])},createFunctionApplyCall:function(e,t,n){return mi(e,"apply",[t,n])},createArraySliceCall:function(e,t){return mi(e,"slice",void 0===t?[]:[Di(t)])},createArrayConcatCall:function(e,t){return mi(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,n){return gi("Object","defineProperty",[e,Di(t),n])},createObjectGetOwnPropertyDescriptorCall:function(e,t){return gi("Object","getOwnPropertyDescriptor",[e,Di(t)])},createReflectGetCall:function(e,t,n){return gi("Reflect","get",n?[e,t,n]:[e,t])},createReflectSetCall:function(e,t,n,r){return gi("Reflect","set",r?[e,t,n,r]:[e,t,n])},createPropertyDescriptor:function(e,t){const n=[];hi(n,"enumerable",Di(e.enumerable)),hi(n,"configurable",Di(e.configurable));let r=hi(n,"writable",Di(e.writable));r=hi(n,"value",e.value)||r;let i=hi(n,"get",e.get);return i=hi(n,"set",e.set)||i,Sn.assert(!(r&&i),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ze(n,!t)},createCallBinding:function(e,t,n,r=!1){const o=uA(e,15);let a,s;eg(o)?(a=B(),s=o):iD(o)?(a=B(),s=void 0!==n&&n<2?cI(A("_super"),o):o):8192&tf(o)?(a=fi(),s=i().parenthesizeLeftSideOfAccess(o,!1)):YD(o)?yi(o.expression,r)?(a=I(t),s=tt(cI(y.createAssignment(a,o.expression),o.expression),o.name),cI(s,o)):(a=o.expression,s=o):ZD(o)?yi(o.expression,r)?(a=I(t),s=ot(cI(y.createAssignment(a,o.expression),o.expression),o.argumentExpression),cI(s,o)):(a=o.expression,s=o):(a=fi(),s=i().parenthesizeLeftSideOfAccess(e,!1));return{target:s,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return tt(vt(Ze([pe(void 0,"value",[X(void 0,void 0,e,void 0,void 0,void 0)],nn([cn(t)]))])),"value")},inlineExpressions:function(e){return e.length>10?ui(e):Je(e,y.createComma)},getInternalName:function(e,t,n){return vi(e,t,n,98304)},getLocalName:function(e,t,n,r){return vi(e,t,n,32768,r)},getExportName:bi,getDeclarationName:function(e,t,n){return vi(e,t,n)},getNamespaceMemberName:xi,getExternalModuleOrNamespaceExportName:function(e,t,n,r){if(e&&fb(t,32))return xi(e,vi(t),n,r);return bi(t,n,r)},restoreOuterExpressions:function e(t,n,r=15){if(t&&_A(t,r)&&(i=t,!(iF(i)&&Xy(i)&&Xy(sw(i))&&Xy(pw(i)))||re(mw(i))||re(yw(i))))return function(e,t){switch(e.kind){case 217:return bt(e,t);case 216:return ht(e,e.type,t);case 234:return $t(e,t,e.type);case 238:return Qt(e,t,e.type);case 235:return Gt(e,t);case 360:return li(e,t)}}(t,e(t.expression,n));var i;return n},restoreEnclosingLabel:function e(t,n,r){if(!n)return t;const i=xn(n,n.label,WF(n.statement)?e(t,n.statement):t);r&&r(n);return i},createUseStrictPrologue:Si,copyPrologue:function(e,t,n,r){const i=ki(e,t,0,n);return Ti(e,t,i,r)},copyStandardPrologue:ki,copyCustomPrologue:Ti,ensureUseStrict:function(e){if(!iA(e))return cI(v([Si(),...e]),e);return e},liftToBlock:function(e){return Sn.assert(N(e,Eu),"Cannot lift nodes to a Block."),Oe(e)||nn(e)},mergeLexicalEnvironment:function(e,t){if(!re(t))return e;const n=Ci(e,_m,0),r=Ci(e,dm,n),i=Ci(e,fm,r),o=Ci(t,_m,0),a=Ci(t,dm,o),s=Ci(t,fm,a),c=Ci(t,um,s);Sn.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=$l(e)?e.slice():e;c>s&&l.splice(i,0,...t.slice(s,c));s>a&&l.splice(r,0,...t.slice(a,s));a>o&&l.splice(n,0,...t.slice(o,a));if(o>0)if(0===n)l.splice(0,0,...t.slice(0,o));else{const r=new Map;for(let t=0;t<n;t++){const n=e[t];r.set(n.expression.text,!0)}for(let e=o-1;e>=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}if($l(e))return cI(v(l,e.hasTrailingComma),e);return e},replaceModifiers:function(e,t){let n;n="number"==typeof t?V(t):t;return lD(e)?G(e,n,e.name,e.constraint,e.default):_D(e)?Q(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):wD(e)?we(e,n,e.typeParameters,e.parameters,e.type):dD(e)?ee(e,n,e.name,e.questionToken,e.type):pD(e)?ne(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):fD(e)?oe(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):mD(e)?se(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):hD(e)?_e(e,n,e.parameters,e.body):yD(e)?de(e,n,e.name,e.parameters,e.type,e.body):vD(e)?fe(e,n,e.name,e.parameters,e.body):SD(e)?ve(e,n,e.parameters,e.type):oF(e)?St(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):aF(e)?wt(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):yF(e)?Vt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):EF(e)?on(e,n,e.declarationList):QF(e)?Dn(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):YF(e)?Pn(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):ZF(e)?An(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):eP(e)?On(e,n,e.name,e.typeParameters,e.type):tP(e)?jn(e,n,e.name,e.members):nP(e)?Rn(e,n,e.name,e.body):aP(e)?Un(e,n,e.isTypeOnly,e.name,e.moduleReference):sP(e)?Wn(e,n,e.importClause,e.moduleSpecifier,e.attributes):yP(e)?rr(e,n,e.expression):vP(e)?or(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):Sn.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return _D(e)?Q(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):pD(e)?ne(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):mD(e)?se(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):yD(e)?de(e,t,e.name,e.parameters,e.type,e.body):vD(e)?fe(e,t,e.name,e.parameters,e.body):yF(e)?Vt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):YF(e)?Pn(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):Sn.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 177:return de(e,e.modifiers,t,e.parameters,e.type,e.body);case 178:return fe(e,e.modifiers,t,e.parameters,e.body);case 174:return se(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 173:return oe(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 172:return ne(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 171:return ee(e,e.modifiers,t,e.questionToken,e.type);case 303:return ei(e,t,e.initializer)}}};return b(DC,(e=>e(y))),y;function v(e,t){if(void 0===e||e===r)e=[];else if($l(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&VC(e),Sn.attachNodeArrayDebugInfo(e),e;const n=e.slice();return n.pos=e.pos,n.end=e.end,n.hasTrailingComma=t,n.transformFlags=e.transformFlags,Sn.attachNodeArrayDebugInfo(n),n}const n=e.length,i=n>=1&&n<=4?e.slice():e;return i.pos=-1,i.end=-1,i.hasTrailingComma=!!t,i.transformFlags=0,VC(i),Sn.attachNodeArrayDebugInfo(i),i}function x(e){return t.createBaseNode(e)}function S(e){const t=x(e);return t.symbol=void 0,t.localSymbol=void 0,t}function k(e,t){return e!==t&&(e.typeArguments=t.typeArguments),n(e,t)}function T(e,t=0){const n=S(9);return n.text="number"==typeof e?e+"":e,n.numericLiteralFlags=t,384&t&&(n.transformFlags|=1024),n}function C(e){const t=M(10);return t.text="string"==typeof e?e:bT(e)+"n",t.transformFlags|=32,t}function w(e,t){const n=S(11);return n.text=e,n.singleQuote=t,n}function D(e,t,n){const r=w(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function F(e){const t=M(14);return t.text=e,t}function P(e){const n=t.createBaseIdentifierNode(80);return n.escapedText=e,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function E(e,t,n,r){const i=P(wc(e));return jw(i,{flags:t,id:wC,prefix:n,suffix:r}),wC++,i}function A(e,t,n){void 0===t&&e&&(t=ns(e)),80===t&&(t=void 0);const r=P(wc(e));return n&&(r.flags|=256),"await"===r.escapedText&&(r.transformFlags|=67108864),256&r.flags&&(r.transformFlags|=1024),r}function I(e,t,n,r){let i=1;t&&(i|=8);const o=E("",i,n,r);return e&&e(o),o}function O(e,t=0,n,r){Sn.assert(!(7&t),"Argument out of range: flags");(n||r)&&(t|=16);const i=E(e?Cl(e)?ZA(!1,n,e,r,Dc):`generated@${PB(e)}`:"",4|t,n,r);return i.original=e,i}function L(e){const n=t.createBasePrivateIdentifierNode(81);return n.escapedText=e,n.transformFlags|=16777216,n}function j(e,t,n,r){const i=L(wc(e));return jw(i,{flags:t,id:wC,prefix:n,suffix:r}),wC++,i}function M(e){return t.createBaseTokenNode(e)}function R(e){Sn.assert(e>=0&&e<=165,"Invalid token"),Sn.assert(e<=15||e>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),Sn.assert(e<=9||e>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),Sn.assert(80!==e,"Invalid token. Use 'createIdentifier' to create identifiers");const t=M(e);let 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}return n&&(t.transformFlags|=n),t}function B(){return R(110)}function J(){return R(106)}function z(){return R(112)}function q(){return R(97)}function U(e){return R(e)}function V(e){const t=[];return 32&e&&t.push(U(95)),128&e&&t.push(U(138)),2048&e&&t.push(U(90)),4096&e&&t.push(U(87)),1&e&&t.push(U(125)),2&e&&t.push(U(123)),4&e&&t.push(U(124)),64&e&&t.push(U(128)),256&e&&t.push(U(126)),16&e&&t.push(U(164)),8&e&&t.push(U(148)),512&e&&t.push(U(129)),1024&e&&t.push(U(134)),8192&e&&t.push(U(103)),16384&e&&t.push(U(147)),t.length?t:void 0}function W(e,t){const n=x(166);return n.left=e,n.right=Ni(t),n.transformFlags|=qC(n.left)|zC(n.right),n.flowNode=void 0,n}function H(e){const t=x(167);return t.expression=i().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|qC(t.expression),t}function K(e,t,n,r){const i=S(168);return i.modifiers=wi(e),i.name=Ni(t),i.constraint=n,i.default=r,i.transformFlags=1,i.expression=void 0,i.jsDoc=void 0,i}function G(e,t,r,i,o){return e.modifiers!==t||e.name!==r||e.constraint!==i||e.default!==o?n(K(t,r,i,o),e):e}function X(e,t,n,r,i,o){const a=S(169);return a.modifiers=wi(e),a.dotDotDotToken=t,a.name=Ni(n),a.questionToken=r,a.type=i,a.initializer=Fi(o),$v(a.name)?a.transformFlags=1:a.transformFlags=UC(a.modifiers)|qC(a.dotDotDotToken)|JC(a.name)|qC(a.questionToken)|qC(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&Ib(a.modifiers)?8192:0),a.jsDoc=void 0,a}function Q(e,t,r,i,o,a,s){return e.modifiers!==t||e.dotDotDotToken!==r||e.name!==i||e.questionToken!==o||e.type!==a||e.initializer!==s?n(X(t,r,i,o,a,s),e):e}function Y(e){const t=x(170);return t.expression=i().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|qC(t.expression),t}function Z(e,t,n,r){const i=S(171);return i.modifiers=wi(e),i.name=Ni(t),i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i.jsDoc=void 0,i}function ee(e,t,r,i,o){return e.modifiers!==t||e.name!==r||e.questionToken!==i||e.type!==o?function(e,t){e!==t&&(e.initializer=t.initializer);return n(e,t)}(Z(t,r,i,o),e):e}function te(e,t,n,r,i){const o=S(172);o.modifiers=wi(e),o.name=Ni(t),o.questionToken=n&&qN(n)?n:void 0,o.exclamationToken=n&&zN(n)?n:void 0,o.type=r,o.initializer=Fi(i);const a=33554432&o.flags||128&Ib(o.modifiers);return o.transformFlags=UC(o.modifiers)|JC(o.name)|qC(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(cD(o.name)||256&Ib(o.modifiers)&&o.initializer?8192:0)|16777216,o.jsDoc=void 0,o}function ne(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.questionToken!==(void 0!==i&&qN(i)?i:void 0)||e.exclamationToken!==(void 0!==i&&zN(i)?i:void 0)||e.type!==o||e.initializer!==a?n(te(t,r,i,o,a),e):e}function ie(e,t,n,r,i,o){const a=S(173);return a.modifiers=wi(e),a.name=Ni(t),a.questionToken=n,a.typeParameters=wi(r),a.parameters=wi(i),a.type=o,a.transformFlags=1,a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function oe(e,t,n,r,i,o,a){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a?k(ie(t,n,r,i,o,a),e):e}function ae(e,t,n,r,i,o,a,s){const c=S(174);if(c.modifiers=wi(e),c.asteriskToken=t,c.name=Ni(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=wi(i),c.parameters=v(o),c.type=a,c.body=s,c.body){const e=1024&Ib(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=UC(c.modifiers)|qC(c.asteriskToken)|JC(c.name)|qC(c.questionToken)|UC(c.typeParameters)|UC(c.parameters)|qC(c.type)|-67108865&qC(c.body)|(n?128:e?256:t?2048:0)|(c.questionToken||c.typeParameters||c.type?1:0)|1024}else c.transformFlags=1;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 se(e,t,r,i,o,a,s,c,l){return e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.questionToken!==o||e.typeParameters!==a||e.parameters!==s||e.type!==c||e.body!==l?function(e,t){e!==t&&(e.exclamationToken=t.exclamationToken);return n(e,t)}(ae(t,r,i,o,a,s,c,l),e):e}function ce(e){const t=S(175);return t.body=e,t.transformFlags=16777216|qC(e),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 le(e,t,n){const r=S(176);return r.modifiers=wi(e),r.parameters=v(t),r.body=n,r.transformFlags=UC(r.modifiers)|UC(r.parameters)|-67108865&qC(r.body)|1024,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 _e(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return k(e,t)}(le(t,n,r),e):e}function ue(e,t,n,r,i){const o=S(177);return o.modifiers=wi(e),o.name=Ni(t),o.parameters=v(n),o.type=r,o.body=i,o.body?o.transformFlags=UC(o.modifiers)|JC(o.name)|UC(o.parameters)|qC(o.type)|-67108865&qC(o.body)|(o.type?1:0):o.transformFlags=1,o.typeArguments=void 0,o.typeParameters=void 0,o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o.endFlowNode=void 0,o.returnFlowNode=void 0,o}function de(e,t,n,r,i,o){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==o?function(e,t){e!==t&&(e.typeParameters=t.typeParameters);return k(e,t)}(ue(t,n,r,i,o),e):e}function pe(e,t,n,r){const i=S(178);return i.modifiers=wi(e),i.name=Ni(t),i.parameters=v(n),i.body=r,i.body?i.transformFlags=UC(i.modifiers)|JC(i.name)|UC(i.parameters)|-67108865&qC(i.body)|(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 fe(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?function(e,t){e!==t&&(e.typeParameters=t.typeParameters,e.type=t.type);return k(e,t)}(pe(t,n,r,i),e):e}function me(e,t,n){const r=S(179);return r.typeParameters=wi(e),r.parameters=wi(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 ge(e,t,n){const r=S(180);return r.typeParameters=wi(e),r.parameters=wi(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 ye(e,t,n){const r=S(181);return r.modifiers=wi(e),r.parameters=wi(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 ve(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?k(ye(t,n,r),e):e}function be(e,t){const n=x(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function xe(e,t,n){const r=x(182);return r.assertsModifier=e,r.parameterName=Ni(t),r.type=n,r.transformFlags=1,r}function Se(e,t){const n=x(183);return n.typeName=Ni(e),n.typeArguments=t&&i().parenthesizeTypeArguments(v(t)),n.transformFlags=1,n}function ke(e,t,n){const r=S(184);return r.typeParameters=wi(e),r.parameters=wi(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 Te(...e){return 4===e.length?Ce(...e):3===e.length?function(e,t,n){return Ce(void 0,e,t,n)}(...e):Sn.fail("Incorrect number of arguments specified.")}function Ce(e,t,n,r){const i=S(185);return i.modifiers=wi(e),i.typeParameters=wi(t),i.parameters=wi(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 we(e,t,n,r,i){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i?k(Te(t,n,r,i),e):e}function Ne(e,t){const n=x(186);return n.exprName=e,n.typeArguments=t&&i().parenthesizeTypeArguments(t),n.transformFlags=1,n}function De(e){const t=S(187);return t.members=v(e),t.transformFlags=1,t}function Fe(e){const t=x(188);return t.elementType=i().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Pe(e){const t=x(189);return t.elements=v(i().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Ee(e,t,n,r){const i=S(202);return i.dotDotDotToken=e,i.name=t,i.questionToken=n,i.type=r,i.transformFlags=1,i.jsDoc=void 0,i}function Ie(e){const t=x(190);return t.type=i().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Le(e){const t=x(191);return t.type=e,t.transformFlags=1,t}function je(e,t,n){const r=x(e);return r.types=y.createNodeArray(n(t)),r.transformFlags=1,r}function Me(e,t,r){return e.types!==t?n(je(e.kind,t,r),e):e}function Re(e,t,n,r){const o=x(194);return o.checkType=i().parenthesizeCheckTypeOfConditionalType(e),o.extendsType=i().parenthesizeExtendsTypeOfConditionalType(t),o.trueType=n,o.falseType=r,o.transformFlags=1,o.locals=void 0,o.nextContainer=void 0,o}function Be(e){const t=x(195);return t.typeParameter=e,t.transformFlags=1,t}function qe(e,t){const n=x(203);return n.head=e,n.templateSpans=v(t),n.transformFlags=1,n}function Ue(e,t,n,r,o=!1){const a=x(205);return a.argument=e,a.attributes=t,a.assertions&&a.assertions.assertClause&&a.attributes&&(a.assertions.assertClause=a.attributes),a.qualifier=n,a.typeArguments=r&&i().parenthesizeTypeArguments(r),a.isTypeOf=o,a.transformFlags=1,a}function Ve(e){const t=x(196);return t.type=e,t.transformFlags=1,t}function We(e,t){const n=x(198);return n.operator=e,n.type=148===e?i().parenthesizeOperandOfReadonlyTypeOperator(t):i().parenthesizeOperandOfTypeOperator(t),n.transformFlags=1,n}function He(e,t){const n=x(199);return n.objectType=i().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function $e(e,t,n,r,i,o){const a=S(200);return a.readonlyToken=e,a.typeParameter=t,a.nameType=n,a.questionToken=r,a.type=i,a.members=o&&v(o),a.transformFlags=1,a.locals=void 0,a.nextContainer=void 0,a}function Ke(e){const t=x(201);return t.literal=e,t.transformFlags=1,t}function Ge(e){const t=x(206);return t.elements=v(e),t.transformFlags|=525312|UC(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Xe(e){const t=x(207);return t.elements=v(e),t.transformFlags|=525312|UC(t.elements),t}function Qe(e,t,n,r){const i=S(208);return i.dotDotDotToken=e,i.propertyName=Ni(t),i.name=Ni(n),i.initializer=Fi(r),i.transformFlags|=qC(i.dotDotDotToken)|JC(i.propertyName)|JC(i.name)|qC(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Ye(e,t){const n=x(209),r=e&&Ae(e),o=v(e,!(!r||!vF(r))||void 0);return n.elements=i().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=UC(n.elements),n}function Ze(e,t){const n=S(210);return n.properties=v(e),n.multiLine=t,n.transformFlags|=UC(n.properties),n.jsDoc=void 0,n}function et(e,t,n){const r=S(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=qC(r.expression)|qC(r.questionDotToken)|(HN(r.name)?zC(r.name):536870912|qC(r.name)),r.jsDoc=void 0,r.flowNode=void 0,r}function tt(e,t){const n=et(i().parenthesizeLeftSideOfAccess(e,!1),void 0,Ni(t));return iD(e)&&(n.transformFlags|=384),n}function nt(e,t,n){const r=et(i().parenthesizeLeftSideOfAccess(e,!0),t,Ni(n));return r.flags|=64,r.transformFlags|=32,r}function rt(e,t,r,i){return Sn.assert(!!(64&e.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),e.expression!==t||e.questionDotToken!==r||e.name!==i?n(nt(t,r,i),e):e}function it(e,t,n){const r=S(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=qC(r.expression)|qC(r.questionDotToken)|qC(r.argumentExpression),r.jsDoc=void 0,r.flowNode=void 0,r}function ot(e,t){const n=it(i().parenthesizeLeftSideOfAccess(e,!1),void 0,Di(t));return iD(e)&&(n.transformFlags|=384),n}function at(e,t,n){const r=it(i().parenthesizeLeftSideOfAccess(e,!0),t,Di(n));return r.flags|=64,r.transformFlags|=32,r}function st(e,t,r,i){return Sn.assert(!!(64&e.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),e.expression!==t||e.questionDotToken!==r||e.argumentExpression!==i?n(at(t,r,i),e):e}function ct(e,t,n,r){const i=S(213);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=qC(i.expression)|qC(i.questionDotToken)|UC(i.typeArguments)|UC(i.arguments),i.typeArguments&&(i.transformFlags|=1),eg(i.expression)&&(i.transformFlags|=16384),i}function lt(e,t,n){const r=ct(i().parenthesizeLeftSideOfAccess(e,!1),void 0,wi(t),i().parenthesizeExpressionsOfCommaDelimitedList(v(n)));return oD(r.expression)&&(r.transformFlags|=8388608),r}function ut(e,t,n,r){const o=ct(i().parenthesizeLeftSideOfAccess(e,!0),t,wi(n),i().parenthesizeExpressionsOfCommaDelimitedList(v(r)));return o.flags|=64,o.transformFlags|=32,o}function dt(e,t,r,i,o){return Sn.assert(!!(64&e.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),e.expression!==t||e.questionDotToken!==r||e.typeArguments!==i||e.arguments!==o?n(ut(t,r,i,o),e):e}function pt(e,t,n){const r=S(214);return r.expression=i().parenthesizeExpressionOfNew(e),r.typeArguments=wi(t),r.arguments=n?i().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,r.transformFlags|=qC(r.expression)|UC(r.typeArguments)|UC(r.arguments)|32,r.typeArguments&&(r.transformFlags|=1),r}function ft(e,t,n){const r=x(215);return r.tag=i().parenthesizeLeftSideOfAccess(e,!1),r.typeArguments=wi(t),r.template=n,r.transformFlags|=qC(r.tag)|UC(r.typeArguments)|qC(r.template)|1024,r.typeArguments&&(r.transformFlags|=1),sv(r.template)&&(r.transformFlags|=128),r}function gt(e,t){const n=x(216);return n.expression=i().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=qC(n.expression)|qC(n.type)|1,n}function ht(e,t,r){return e.type!==t||e.expression!==r?n(gt(t,r),e):e}function vt(e){const t=x(217);return t.expression=e,t.transformFlags=qC(t.expression),t.jsDoc=void 0,t}function bt(e,t){return e.expression!==t?n(vt(t),e):e}function xt(e,t,n,r,i,o,a){const s=S(218);s.modifiers=wi(e),s.asteriskToken=t,s.name=Ni(n),s.typeParameters=wi(r),s.parameters=v(i),s.type=o,s.body=a;const c=1024&Ib(s.modifiers),l=!!s.asteriskToken,_=c&&l;return s.transformFlags=UC(s.modifiers)|qC(s.asteriskToken)|JC(s.name)|UC(s.typeParameters)|UC(s.parameters)|qC(s.type)|-67108865&qC(s.body)|(_?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 St(e,t,n,r,i,o,a,s){return e.name!==r||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?k(xt(t,n,r,i,o,a,s),e):e}function kt(e,t,n,r,o,a){const s=S(219);s.modifiers=wi(e),s.typeParameters=wi(t),s.parameters=v(n),s.type=r,s.equalsGreaterThanToken=o??R(39),s.body=i().parenthesizeConciseBodyOfArrowFunction(a);const c=1024&Ib(s.modifiers);return s.transformFlags=UC(s.modifiers)|UC(s.typeParameters)|UC(s.parameters)|qC(s.type)|qC(s.equalsGreaterThanToken)|-67108865&qC(s.body)|(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 wt(e,t,n,r,i,o,a){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==r||e.type!==i||e.equalsGreaterThanToken!==o||e.body!==a?k(kt(t,n,r,i,o,a),e):e}function Nt(e){const t=x(220);return t.expression=i().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=qC(t.expression),t}function Dt(e){const t=x(221);return t.expression=i().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=qC(t.expression),t}function Ft(e){const t=x(222);return t.expression=i().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=qC(t.expression),t}function Pt(e){const t=x(223);return t.expression=i().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|qC(t.expression),t}function Et(e,t){const n=x(224);return n.operator=e,n.operand=i().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=qC(n.operand),46!==e&&47!==e||!HN(n.operand)||a_(n.operand)||tA(n.operand)||(n.transformFlags|=268435456),n}function At(e,t){const n=x(225);return n.operator=t,n.operand=i().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=qC(n.operand),!HN(n.operand)||a_(n.operand)||tA(n.operand)||(n.transformFlags|=268435456),n}function It(e,t,n){const r=S(226),o="number"==typeof(a=t)?R(a):a;var a;const s=o.kind;return r.left=i().parenthesizeLeftSideOfBinary(s,e),r.operatorToken=o,r.right=i().parenthesizeRightSideOfBinary(s,r.left,n),r.transformFlags|=qC(r.left)|qC(r.operatorToken)|qC(r.right),61===s?r.transformFlags|=32:64===s?QD(r.left)?r.transformFlags|=5248|Ot(r.left):XD(r.left)&&(r.transformFlags|=5120|Ot(r.left)):43===s||68===s?r.transformFlags|=512:Mb(s)&&(r.transformFlags|=16),103===s&&$N(r.left)&&(r.transformFlags|=536870912),r.jsDoc=void 0,r}function Ot(e){return aI(e)?65536:0}function Lt(e,t,n,r,o){const a=x(227);return a.condition=i().parenthesizeConditionOfConditionalExpression(e),a.questionToken=t??R(58),a.whenTrue=i().parenthesizeBranchOfConditionalExpression(n),a.colonToken=r??R(59),a.whenFalse=i().parenthesizeBranchOfConditionalExpression(o),a.transformFlags|=qC(a.condition)|qC(a.questionToken)|qC(a.whenTrue)|qC(a.colonToken)|qC(a.whenFalse),a}function jt(e,t){const n=x(228);return n.head=e,n.templateSpans=v(t),n.transformFlags|=qC(n.head)|UC(n.templateSpans)|1024,n}function Mt(e,t,n,r=0){let i;if(Sn.assert(!(-7177&r),"Unsupported template flags."),void 0!==n&&n!==t&&(i=function(e,t){FC||(FC=Ls(99,!1,0));switch(e){case 15:FC.setText("`"+t+"`");break;case 16:FC.setText("`"+t+"${");break;case 17:FC.setText("}"+t+"${");break;case 18:FC.setText("}"+t+"`")}let n,r=FC.scan();20===r&&(r=FC.reScanTemplateToken(!1));if(FC.isUnterminated())return FC.setText(void 0),PC;switch(r){case 15:case 16:case 17:case 18:n=FC.getTokenValue()}if(void 0===n||1!==FC.scan())return FC.setText(void 0),PC;return FC.setText(void 0),n}(e,n),"object"==typeof i))return Sn.fail("Invalid raw text");if(void 0===t){if(void 0===i)return Sn.fail("Arguments 'text' and 'rawText' may not both be undefined.");t=i}else void 0!==i&&Sn.assert(t===i,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return t}function Rt(e){let t=1024;return e&&(t|=128),t}function Bt(e,t,n,r){const i=S(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Rt(i.templateFlags),i}function Jt(e,t,n,r){return 15===e?Bt(e,t,n,r):function(e,t,n,r){const i=M(e);return i.text=t,i.rawText=n,i.templateFlags=7176&r,i.transformFlags=Rt(i.templateFlags),i}(e,t,n,r)}function zt(e,t){Sn.assert(!e||!!t,"A `YieldExpression` with an asteriskToken must have an expression.");const n=x(229);return n.expression=t&&i().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=1049728|(qC(n.expression)|qC(n.asteriskToken)),n}function qt(e){const t=x(230);return t.expression=i().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|qC(t.expression),t}function Ut(e,t,n,r,i){const o=S(231);return o.modifiers=wi(e),o.name=Ni(t),o.typeParameters=wi(n),o.heritageClauses=wi(r),o.members=v(i),o.transformFlags|=UC(o.modifiers)|JC(o.name)|UC(o.typeParameters)|UC(o.heritageClauses)|UC(o.members)|(o.typeParameters?1:0)|1024,o.jsDoc=void 0,o}function Vt(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==o||e.members!==a?n(Ut(t,r,i,o,a),e):e}function Wt(e,t){const n=x(233);return n.expression=i().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&i().parenthesizeTypeArguments(t),n.transformFlags|=qC(n.expression)|UC(n.typeArguments)|1024,n}function Ht(e,t){const n=x(234);return n.expression=e,n.type=t,n.transformFlags|=qC(n.expression)|qC(n.type)|1,n}function $t(e,t,r){return e.expression!==t||e.type!==r?n(Ht(t,r),e):e}function Kt(e){const t=x(235);return t.expression=i().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|qC(t.expression),t}function Gt(e,t){return Ml(e)?Zt(e,t):e.expression!==t?n(Kt(t),e):e}function Xt(e,t){const n=x(238);return n.expression=e,n.type=t,n.transformFlags|=qC(n.expression)|qC(n.type)|1,n}function Qt(e,t,r){return e.expression!==t||e.type!==r?n(Xt(t,r),e):e}function Yt(e){const t=x(235);return t.flags|=64,t.expression=i().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|qC(t.expression),t}function Zt(e,t){return Sn.assert(!!(64&e.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),e.expression!==t?n(Yt(t),e):e}function en(e,t){const n=x(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=qC(n.name),e){case 105:n.transformFlags|=1024;break;case 102:n.transformFlags|=32;break;default:return Sn.assertNever(e)}return n.flowNode=void 0,n}function tn(e,t){const n=x(239);return n.expression=e,n.literal=t,n.transformFlags|=qC(n.expression)|qC(n.literal)|1024,n}function nn(e,t){const n=x(241);return n.statements=v(e),n.multiLine=t,n.transformFlags|=UC(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function rn(e,t){const n=x(243);return n.modifiers=wi(e),n.declarationList=_t(t)?wn(t):t,n.transformFlags|=UC(n.modifiers)|qC(n.declarationList),128&Ib(n.modifiers)&&(n.transformFlags=1),n.jsDoc=void 0,n.flowNode=void 0,n}function on(e,t,r){return e.modifiers!==t||e.declarationList!==r?n(rn(t,r),e):e}function sn(){const e=x(242);return e.jsDoc=void 0,e}function cn(e){const t=x(244);return t.expression=i().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=qC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function ln(e,t,n){const r=x(245);return r.expression=e,r.thenStatement=Pi(t),r.elseStatement=Pi(n),r.transformFlags|=qC(r.expression)|qC(r.thenStatement)|qC(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function _n(e,t){const n=x(246);return n.statement=Pi(e),n.expression=t,n.transformFlags|=qC(n.statement)|qC(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function un(e,t){const n=x(247);return n.expression=e,n.statement=Pi(t),n.transformFlags|=qC(n.expression)|qC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function dn(e,t,n,r){const i=x(248);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Pi(r),i.transformFlags|=qC(i.initializer)|qC(i.condition)|qC(i.incrementor)|qC(i.statement),i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i.flowNode=void 0,i}function pn(e,t,n){const r=x(249);return r.initializer=e,r.expression=t,r.statement=Pi(n),r.transformFlags|=qC(r.initializer)|qC(r.expression)|qC(r.statement),r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r.flowNode=void 0,r}function fn(e,t,n,r){const o=x(250);return o.awaitModifier=e,o.initializer=t,o.expression=i().parenthesizeExpressionForDisallowedComma(n),o.statement=Pi(r),o.transformFlags|=qC(o.awaitModifier)|qC(o.initializer)|qC(o.expression)|qC(o.statement)|1024,e&&(o.transformFlags|=128),o.jsDoc=void 0,o.locals=void 0,o.nextContainer=void 0,o.flowNode=void 0,o}function mn(e){const t=x(251);return t.label=Ni(e),t.transformFlags|=4194304|qC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function gn(e){const t=x(252);return t.label=Ni(e),t.transformFlags|=4194304|qC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function hn(e){const t=x(253);return t.expression=e,t.transformFlags|=4194432|qC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function yn(e,t){const n=x(254);return n.expression=e,n.statement=Pi(t),n.transformFlags|=qC(n.expression)|qC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function vn(e,t){const n=x(255);return n.expression=i().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=qC(n.expression)|qC(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function bn(e,t){const n=x(256);return n.label=Ni(e),n.statement=Pi(t),n.transformFlags|=qC(n.label)|qC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function xn(e,t,r){return e.label!==t||e.statement!==r?n(bn(t,r),e):e}function kn(e){const t=x(257);return t.expression=e,t.transformFlags|=qC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function Tn(e,t,n){const r=x(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=qC(r.tryBlock)|qC(r.catchClause)|qC(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function Cn(e,t,n,r){const i=S(260);return i.name=Ni(e),i.exclamationToken=t,i.type=n,i.initializer=Fi(r),i.transformFlags|=JC(i.name)|qC(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function wn(e,t=0){const n=x(261);return n.flags|=7&t,n.declarations=v(e),n.transformFlags|=4194304|UC(n.declarations),7&t&&(n.transformFlags|=263168),4&t&&(n.transformFlags|=4),n}function Nn(e,t,n,r,i,o,a){const s=S(262);if(s.modifiers=wi(e),s.asteriskToken=t,s.name=Ni(n),s.typeParameters=wi(r),s.parameters=v(i),s.type=o,s.body=a,!s.body||128&Ib(s.modifiers))s.transformFlags=1;else{const e=1024&Ib(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=UC(s.modifiers)|qC(s.asteriskToken)|JC(s.name)|UC(s.typeParameters)|UC(s.parameters)|qC(s.type)|-67108865&qC(s.body)|(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 Dn(e,t,n,r,i,o,a,s){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.typeParameters!==i||e.parameters!==o||e.type!==a||e.body!==s?function(e,t){e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers);return k(e,t)}(Nn(t,n,r,i,o,a,s),e):e}function Fn(e,t,n,r,i){const o=S(263);return o.modifiers=wi(e),o.name=Ni(t),o.typeParameters=wi(n),o.heritageClauses=wi(r),o.members=v(i),128&Ib(o.modifiers)?o.transformFlags=1:(o.transformFlags|=UC(o.modifiers)|JC(o.name)|UC(o.typeParameters)|UC(o.heritageClauses)|UC(o.members)|(o.typeParameters?1:0)|1024,8192&o.transformFlags&&(o.transformFlags|=1)),o.jsDoc=void 0,o}function Pn(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==o||e.members!==a?n(Fn(t,r,i,o,a),e):e}function En(e,t,n,r,i){const o=S(264);return o.modifiers=wi(e),o.name=Ni(t),o.typeParameters=wi(n),o.heritageClauses=wi(r),o.members=v(i),o.transformFlags=1,o.jsDoc=void 0,o}function An(e,t,r,i,o,a){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.heritageClauses!==o||e.members!==a?n(En(t,r,i,o,a),e):e}function In(e,t,n,r){const i=S(265);return i.modifiers=wi(e),i.name=Ni(t),i.typeParameters=wi(n),i.type=r,i.transformFlags=1,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function On(e,t,r,i,o){return e.modifiers!==t||e.name!==r||e.typeParameters!==i||e.type!==o?n(In(t,r,i,o),e):e}function Ln(e,t,n){const r=S(266);return r.modifiers=wi(e),r.name=Ni(t),r.members=v(n),r.transformFlags|=UC(r.modifiers)|qC(r.name)|UC(r.members)|1,r.transformFlags&=-67108865,r.jsDoc=void 0,r}function jn(e,t,r,i){return e.modifiers!==t||e.name!==r||e.members!==i?n(Ln(t,r,i),e):e}function Mn(e,t,n,r=0){const i=S(267);return i.modifiers=wi(e),i.flags|=2088&r,i.name=t,i.body=n,128&Ib(i.modifiers)?i.transformFlags=1:i.transformFlags|=UC(i.modifiers)|qC(i.name)|qC(i.body)|1,i.transformFlags&=-67108865,i.jsDoc=void 0,i.locals=void 0,i.nextContainer=void 0,i}function Rn(e,t,r,i){return e.modifiers!==t||e.name!==r||e.body!==i?n(Mn(t,r,i,e.flags),e):e}function Bn(e){const t=x(268);return t.statements=v(e),t.transformFlags|=UC(t.statements),t.jsDoc=void 0,t}function Jn(e){const t=x(269);return t.clauses=v(e),t.transformFlags|=UC(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function zn(e){const t=S(270);return t.name=Ni(e),t.transformFlags|=1|zC(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function qn(e,t,n,r){const i=S(271);return i.modifiers=wi(e),i.name=Ni(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=UC(i.modifiers)|zC(i.name)|qC(i.moduleReference),CP(i.moduleReference)||(i.transformFlags|=1),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Un(e,t,r,i,o){return e.modifiers!==t||e.isTypeOnly!==r||e.name!==i||e.moduleReference!==o?n(qn(t,r,i,o),e):e}function Vn(e,t,n,r){const i=x(272);return i.modifiers=wi(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=qC(i.importClause)|qC(i.moduleSpecifier),i.transformFlags&=-67108865,i.jsDoc=void 0,i}function Wn(e,t,r,i,o){return e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==i||e.attributes!==o?n(Vn(t,r,i,o),e):e}function Hn(e,t,n){const r=S(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=qC(r.name)|qC(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function $n(e,t){const n=x(300);return n.elements=v(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Kn(e,t){const n=x(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Gn(e,t){const n=x(302);return n.assertClause=e,n.multiLine=t,n}function Xn(e,t,n){const r=x(300);return r.token=n??118,r.elements=v(e),r.multiLine=t,r.transformFlags|=4,r}function Qn(e,t){const n=x(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Yn(e){const t=S(274);return t.name=e,t.transformFlags|=qC(t.name),t.transformFlags&=-67108865,t}function Zn(e){const t=S(280);return t.name=e,t.transformFlags|=32|qC(t.name),t.transformFlags&=-67108865,t}function er(e){const t=x(275);return t.elements=v(e),t.transformFlags|=UC(t.elements),t.transformFlags&=-67108865,t}function tr(e,t,n){const r=S(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=qC(r.propertyName)|qC(r.name),r.transformFlags&=-67108865,r}function nr(e,t,n){const r=S(277);return r.modifiers=wi(e),r.isExportEquals=t,r.expression=t?i().parenthesizeRightSideOfBinary(64,void 0,n):i().parenthesizeExpressionOfExportDefault(n),r.transformFlags|=UC(r.modifiers)|qC(r.expression),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function rr(e,t,r){return e.modifiers!==t||e.expression!==r?n(nr(t,e.isExportEquals,r),e):e}function ir(e,t,n,r,i){const o=S(278);return o.modifiers=wi(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.attributes=o.assertClause=i,o.transformFlags|=UC(o.modifiers)|qC(o.exportClause)|qC(o.moduleSpecifier),o.transformFlags&=-67108865,o.jsDoc=void 0,o}function or(e,t,r,i,o,a){return e.modifiers!==t||e.isTypeOnly!==r||e.exportClause!==i||e.moduleSpecifier!==o||e.attributes!==a?function(e,t){e!==t&&e.modifiers===t.modifiers&&(e.modifiers=t.modifiers);return n(e,t)}(ir(t,r,i,o,a),e):e}function ar(e){const t=x(279);return t.elements=v(e),t.transformFlags|=UC(t.elements),t.transformFlags&=-67108865,t}function sr(e,t,n){const r=x(281);return r.isTypeOnly=e,r.propertyName=Ni(t),r.name=Ni(n),r.transformFlags|=qC(r.propertyName)|qC(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function cr(e){const t=x(283);return t.expression=e,t.transformFlags|=qC(t.expression),t.transformFlags&=-67108865,t}function lr(e,t,n=!1){const r=_r(e,n?t&&i().parenthesizeNonArrayTypeOfPostfixType(t):t);return r.postfix=n,r}function _r(e,t){const n=x(e);return n.type=t,n}function ur(e,t){const n=S(324);return n.parameters=wi(e),n.type=t,n.transformFlags=UC(n.parameters)|(n.type?1:0),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.typeArguments=void 0,n}function dr(e,t=!1){const n=S(329);return n.jsDocPropertyTags=wi(e),n.isArrayType=t,n}function pr(e){const t=x(316);return t.type=e,t}function fr(e,t,n){const r=S(330);return r.typeParameters=wi(e),r.parameters=v(t),r.type=n,r.jsDoc=void 0,r.locals=void 0,r.nextContainer=void 0,r}function mr(e){const t=BC(e.kind);return e.tagName.escapedText===wc(t)?e.tagName:A(t)}function gr(e,t,n){const r=x(e);return r.tagName=t,r.comment=n,r}function hr(e,t,n){const r=S(e);return r.tagName=t,r.comment=n,r}function yr(e,t,n,r){const i=gr(352,e??A("template"),r);return i.constraint=t,i.typeParameters=v(n),i}function vr(e,t,n,r){const i=hr(353,e??A("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=FA(n),i.locals=void 0,i.nextContainer=void 0,i}function br(e,t,n,r,i,o){const a=hr(348,e??A("param"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function xr(e,t,n,r,i,o){const a=hr(355,e??A("prop"),o);return a.typeExpression=r,a.name=t,a.isNameFirst=!!i,a.isBracketed=n,a}function Sr(e,t,n,r){const i=hr(345,e??A("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=FA(n),i.locals=void 0,i.nextContainer=void 0,i}function kr(e,t,n){const r=gr(346,e??A("overload"),n);return r.typeExpression=t,r}function Tr(e,t,n){const r=gr(335,e??A("augments"),n);return r.class=t,r}function Cr(e,t,n){const r=gr(336,e??A("implements"),n);return r.class=t,r}function wr(e,t,n){const r=gr(354,e??A("see"),n);return r.name=t,r}function Nr(e){const t=x(317);return t.name=e,t}function Dr(e,t){const n=x(318);return n.left=e,n.right=t,n.transformFlags|=qC(n.left)|qC(n.right),n}function Fr(e,t){const n=x(331);return n.name=e,n.text=t,n}function Pr(e,t){const n=x(332);return n.name=e,n.text=t,n}function Er(e,t){const n=x(333);return n.name=e,n.text=t,n}function Ar(e,t,n){return gr(e,t??A(BC(e)),n)}function Ir(e,t,n,r){const i=gr(e,t??A(BC(e)),r);return i.typeExpression=n,i}function Or(e,t){return gr(334,e,t)}function Lr(e,t,n){const r=hr(347,e??A(BC(347)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function jr(e){const t=x(328);return t.text=e,t}function Mr(e,t){const n=x(327);return n.comment=e,n.tags=wi(t),n}function Rr(e,t,n){const r=x(284);return r.openingElement=e,r.children=v(t),r.closingElement=n,r.transformFlags|=qC(r.openingElement)|UC(r.children)|qC(r.closingElement)|2,r}function Br(e,t,n){const r=x(285);return r.tagName=e,r.typeArguments=wi(t),r.attributes=n,r.transformFlags|=qC(r.tagName)|UC(r.typeArguments)|qC(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Jr(e,t,n){const r=x(286);return r.tagName=e,r.typeArguments=wi(t),r.attributes=n,r.transformFlags|=qC(r.tagName)|UC(r.typeArguments)|qC(r.attributes)|2,t&&(r.transformFlags|=1),r}function zr(e){const t=x(287);return t.tagName=e,t.transformFlags|=2|qC(t.tagName),t}function qr(e,t,n){const r=x(288);return r.openingFragment=e,r.children=v(t),r.closingFragment=n,r.transformFlags|=qC(r.openingFragment)|UC(r.children)|qC(r.closingFragment)|2,r}function Ur(e,t){const n=x(12);return n.text=e,n.containsOnlyTriviaWhiteSpaces=!!t,n.transformFlags|=2,n}function Vr(e,t){const n=S(291);return n.name=e,n.initializer=t,n.transformFlags|=qC(n.name)|qC(n.initializer)|2,n}function Wr(e){const t=S(292);return t.properties=v(e),t.transformFlags|=2|UC(t.properties),t}function Hr(e){const t=x(293);return t.expression=e,t.transformFlags|=2|qC(t.expression),t}function $r(e,t){const n=x(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=qC(n.dotDotDotToken)|qC(n.expression)|2,n}function Kr(e,t){const n=x(295);return n.namespace=e,n.name=t,n.transformFlags|=qC(n.namespace)|qC(n.name)|2,n}function Gr(e,t){const n=x(296);return n.expression=i().parenthesizeExpressionForDisallowedComma(e),n.statements=v(t),n.transformFlags|=qC(n.expression)|UC(n.statements),n.jsDoc=void 0,n}function Xr(e){const t=x(297);return t.statements=v(e),t.transformFlags=UC(t.statements),t}function Qr(e,t){const n=x(298);switch(n.token=e,n.types=v(t),n.transformFlags|=UC(n.types),e){case 96:n.transformFlags|=1024;break;case 119:n.transformFlags|=1;break;default:return Sn.assertNever(e)}return n}function Yr(e,t){const n=x(299);return n.variableDeclaration=function(e){if("string"==typeof e||e&&!GF(e))return Cn(e,void 0,void 0,void 0);return e}(e),n.block=t,n.transformFlags|=qC(n.variableDeclaration)|qC(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function Zr(e,t){const n=S(303);return n.name=Ni(e),n.initializer=i().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=JC(n.name)|qC(n.initializer),n.modifiers=void 0,n.questionToken=void 0,n.exclamationToken=void 0,n.jsDoc=void 0,n}function ei(e,t,r){return e.name!==t||e.initializer!==r?function(e,t){e!==t&&(e.modifiers=t.modifiers,e.questionToken=t.questionToken,e.exclamationToken=t.exclamationToken);return n(e,t)}(Zr(t,r),e):e}function ti(e,t){const n=S(304);return n.name=Ni(e),n.objectAssignmentInitializer=t&&i().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=zC(n.name)|qC(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 ni(e){const t=S(305);return t.expression=i().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|qC(t.expression),t.jsDoc=void 0,t}function ri(e,t){const n=S(306);return n.name=Ni(e),n.initializer=t&&i().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=qC(n.name)|qC(n.initializer)|1,n.jsDoc=void 0,n}function ii(e){const 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 oi(e){const n=e.redirectInfo?function(e){const t=ii(e.redirectInfo);return t.flags|=-17&e.flags,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}(e):function(e){const n=t.createBaseSourceFileNode(312);n.flags|=-17&e.flags;for(const t in e)!ze(n,t)&&ze(e,t)&&("emitNode"!==t?n[t]=e[t]:n.emitNode=void 0);return n}(e);return YC(n,e),n}function ai(e,t=r){const n=x(313);return n.prepends=t,n.sourceFiles=e,n.syntheticFileReferences=void 0,n.syntheticTypeReferences=void 0,n.syntheticLibReferences=void 0,n.hasNoDefaultLib=void 0,n}function si(e,t){const n=x(e);return n.data=t,n}function ci(e,t){const n=x(360);return n.expression=e,n.original=t,n.transformFlags|=1|qC(n.expression),cI(n,t),n}function li(e,t){return e.expression!==t?n(ci(t,e.original),e):e}function _i(e){if(Xy(e)&&!Tc(e)&&!e.original&&!e.emitNode&&!e.id){if(NF(e))return e.elements;if(pF(e)&&MN(e.operatorToken))return[e.left,e.right]}return e}function ui(e){const t=x(361);return t.elements=v($(e,_i)),t.transformFlags|=UC(t.elements),t}function di(e,t){const n=x(362);return n.expression=e,n.thisArg=t,n.transformFlags|=qC(n.expression)|qC(n.thisArg),n}function pi(e){if(void 0===e)return e;if($P(e))return oi(e);if(a_(e))return function(e){const t=P(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,YC(t,e),jw(t,{...e.emitNode.autoGenerate}),t}(e);if(HN(e))return function(e){const t=P(e.escapedText);t.flags|=-17&e.flags,t.jsDoc=e.jsDoc,t.flowNode=e.flowNode,t.symbol=e.symbol,t.transformFlags=e.transformFlags,YC(t,e);const n=Lw(e);return n&&Ow(t,n),t}(e);if(s_(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,YC(t,e),jw(t,{...e.emitNode.autoGenerate}),t}(e);if($N(e))return function(e){const t=L(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,YC(t,e),t}(e);const n=Vl(e.kind)?t.createBaseNode(e.kind):t.createBaseTokenNode(e.kind);n.flags|=-17&e.flags,n.transformFlags=e.transformFlags,YC(n,e);for(const t in e)!ze(n,t)&&ze(e,t)&&(n[t]=e[t]);return n}function fi(){return Ft(T("0"))}function mi(e,t,n){return Fl(e)?ut(nt(e,void 0,t),void 0,void 0,n):lt(tt(e,t),void 0,n)}function gi(e,t,n){return mi(A(e),t,n)}function hi(e,t,n){return!!n&&(e.push(Zr(t,n)),!0)}function yi(e,t){const n=Qh(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function vi(e,t,n,r=0,i){const o=i?e&&jc(e):Mc(e);if(o&&HN(o)&&!a_(o)){const e=AT(cI(pi(o),o),o.parent);return r|=tf(o),n||(r|=96),t||(r|=3072),r&&rw(e,r),e}return O(e)}function bi(e,t,n){return vi(e,t,n,16384)}function xi(e,t,n,r){const i=tt(e,Xy(t)?t:pi(t));cI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&rw(i,o),i}function Si(){return fA(cn(D("use strict")))}function ki(e,t,n=0,r){Sn.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");let i=!1;const o=e.length;for(;n<o;){const r=e[n];if(!_m(r))break;FN((a=r).expression)&&"use strict"===a.expression.text&&(i=!0),t.push(r),n++}var a;return r&&!i&&t.push(Si()),n}function Ti(e,t,n,r,i=yt){const o=e.length;for(;void 0!==n&&n<o;){const o=e[n];if(!(2097152&tf(o)&&i(o)))break;he(t,r?qB(o,r,Pu):o),n++}return n}function Ci(e,t,n){let r=n;for(;r<e.length&&t(e[r]);)r++;return r}function wi(e){return e?v(e):void 0}function Ni(e){return"string"==typeof e?A(e):e}function Di(e){return"string"==typeof e?D(e):"number"==typeof e?T(e):"boolean"==typeof e?e?z():q():e}function Fi(e){return e&&i().parenthesizeExpressionForDisallowedComma(e)}function Pi(e){return e&&kP(e)?cI(YC(sn(),e),e):e}}function MC(e,t){return e!==t&&cI(e,t),e}function RC(e,t){return e!==t&&(YC(e,t),cI(e,t)),e}function BC(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return Sn.fail(`Unsupported kind: ${Sn.formatSyntaxKind(e)}`)}}function JC(e){return e&&HN(e)?zC(e):qC(e)}function zC(e){return-67108865&qC(e)}function qC(e){if(!e)return 0;const t=e.transformFlags&~WC(e.kind);return Lc(e)&&g_(e.name)?(n=e.name,t|134234112&n.transformFlags):t;var n}function UC(e){return e?e.transformFlags:0}function VC(e){let t=0;for(const n of e)t|=qC(n);e.transformFlags=t}function WC(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 360:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}function HC(e){return e.flags|=16,e}function $C(e,t,n){let i,o,a,s,c,l,_,u,d,p;dt(e)?(a="",s=e,c=e.length,l=t,_=n):(Sn.assert("js"===t||"dts"===t),a=("js"===t?e.javascriptPath:e.declarationPath)||"",l="js"===t?e.javascriptMapPath:e.declarationMapPath,u=()=>"js"===t?e.javascriptText:e.declarationText,d=()=>"js"===t?e.javascriptMapText:e.declarationMapText,c=()=>u().length,e.buildInfo&&e.buildInfo.bundle&&(Sn.assert(void 0===n||"boolean"==typeof n),i=n,o="js"===t?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,p=e.oldFileOfCurrentEmit));const f=p?function(e){let t,n;for(const r of e.sections)switch(r.kind){case"internal":case"text":t=he(t,cI(AC.createUnparsedTextLike(r.data,"internal"===r.kind),r));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=he(n,cI(AC.createUnparsedSyntheticReference(r),r));break;case"prologue":case"emitHelpers":case"prepend":break;default:Sn.assertNever(r)}const i=AC.createUnparsedSource(r,n,t??r);return IT(n,i),IT(t,i),i.helpers=J(e.sources&&e.sources.helpers,(e=>TN().get(e))),i}(Sn.checkDefined(o)):function(e,t,n){let i,o,a,s,c,l,_,u;for(const n of e?e.sections:r)switch(n.kind){case"prologue":i=he(i,cI(AC.createUnparsedPrologue(n.data),n));break;case"emitHelpers":o=he(o,TN().get(n.data));break;case"no-default-lib":u=!0;break;case"reference":a=he(a,{pos:-1,end:-1,fileName:n.data});break;case"type":s=he(s,{pos:-1,end:-1,fileName:n.data});break;case"type-import":s=he(s,{pos:-1,end:-1,fileName:n.data,resolutionMode:99});break;case"type-require":s=he(s,{pos:-1,end:-1,fileName:n.data,resolutionMode:1});break;case"lib":c=he(c,{pos:-1,end:-1,fileName:n.data});break;case"prepend":let e;for(const r of n.texts)t&&"internal"===r.kind||(e=he(e,cI(AC.createUnparsedTextLike(r.data,"internal"===r.kind),r)));l=be(l,e),_=he(_,AC.createUnparsedPrepend(n.data,e??r));break;case"internal":if(t){_||(_=[]);break}case"text":_=he(_,cI(AC.createUnparsedTextLike(n.data,"internal"===n.kind),n));break;default:Sn.assertNever(n)}if(!_){const e=AC.createUnparsedTextLike(void 0,!1);PT(e,0,"function"==typeof n?n():n),_=[e]}const d=hI.createUnparsedSource(i??r,void 0,_);return IT(i,d),IT(_,d),IT(l,d),d.hasNoDefaultLib=u,d.helpers=o,d.referencedFiles=a||r,d.typeReferenceDirectives=s,d.libReferenceDirectives=c||r,d}(o,i,c);return f.fileName=a,f.sourceMapPath=l,f.oldFileOfCurrentEmit=p,u&&d?(Object.defineProperty(f,"text",{get:u}),Object.defineProperty(f,"sourceMapText",{get:d})):(Sn.assert(!p),f.text=s??"",f.sourceMapText=_),f}function KC(e,t,n,r,i,o){return dt(e)?XC(void 0,e,n,r,void 0,t,i,o):GC(e,t,n,r,i,o)}function GC(e,t,n,r,i,o,a,s){const c=hI.createInputFiles();c.javascriptPath=t,c.javascriptMapPath=n,c.declarationPath=r,c.declarationMapPath=i,c.buildInfoPath=o;const l=new Map,_=t=>{if(void 0===t)return;let n=l.get(t);return void 0===n&&(n=e(t),l.set(t,void 0!==n&&n)),!1!==n?n:void 0},u=e=>{const t=_(e);return void 0!==t?t:`/* Input file ${e} was missing */\r\n`};let d;return Object.defineProperties(c,{javascriptText:{get:()=>u(t)},javascriptMapText:{get:()=>_(n)},declarationText:{get:()=>u(Sn.checkDefined(r))},declarationMapText:{get:()=>_(i)},buildInfo:{get:()=>{if(void 0===d&&o)if(null==a?void 0:a.getBuildInfo)d=a.getBuildInfo(o,s.configFilePath)??!1;else{const e=_(o);d=void 0!==e&&(wU(o,e)??!1)}return d||void 0}}}),c}function XC(e,t,n,r,i,o,a,s,c,l,_){const u=hI.createInputFiles();return u.javascriptPath=e,u.javascriptText=t,u.javascriptMapPath=n,u.javascriptMapText=r,u.declarationPath=i,u.declarationText=o,u.declarationMapPath=a,u.declarationMapText=s,u.buildInfoPath=c,u.buildInfo=l,u.oldFileOfCurrentEmit=_,u}function QC(e,t,n){return new(IC||(IC=Ed.getSourceMapSourceConstructor()))(e,t,n)}function YC(e,t){if(e.original!==t&&(e.original=t,t)){const n=t.emitNode;n&&(e.emitNode=function(e,t){const{flags:n,internalFlags:r,leadingComments:i,trailingComments:o,commentRange:a,sourceMapRange:s,tokenSourceMapRanges:c,constantValue:l,helpers:_,startsOnNewLine:u,snippetElement:d,classThis:p,assignedName:f}=e;t||(t={});n&&(t.flags=n);r&&(t.internalFlags=-9&r);i&&(t.leadingComments=be(i.slice(),t.leadingComments));o&&(t.trailingComments=be(o.slice(),t.trailingComments));a&&(t.commentRange=a);s&&(t.sourceMapRange=s);c&&(t.tokenSourceMapRanges=function(e,t){t||(t=[]);for(const n in e)t[n]=e[n];return t}(c,t.tokenSourceMapRanges));void 0!==l&&(t.constantValue=l);if(_)for(const e of _)t.helpers=Se(t.helpers,e);void 0!==u&&(t.startsOnNewLine=u);void 0!==d&&(t.snippetElement=d);p&&(t.classThis=p);f&&(t.assignedName=f);return t}(n,e.emitNode))}return e}var ZC=g({"src/compiler/factory/nodeFactory.ts"(){OK(),wC=0,NC=(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))(NC||{}),DC=[],PC={},EC=vC(),AC=jC(4,{createBaseSourceFileNode:e=>HC(EC.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>HC(EC.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>HC(EC.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>HC(EC.createBaseTokenNode(e)),createBaseNode:e=>HC(EC.createBaseNode(e))})}});function ew(e){if(e.emitNode)Sn.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(Tc(e)){if(312===e.kind)return e.emitNode={annotatedNodes:[e]};ew(Cp(Cc(Cp(e)))??Sn.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function tw(e){var t,n;const r=null==(n=null==(t=Cp(Cc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function nw(e){const t=ew(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function rw(e,t){return ew(e).flags=t,e}function iw(e,t){const n=ew(e);return n.flags=n.flags|t,e}function ow(e,t){return ew(e).internalFlags=t,e}function aw(e,t){const n=ew(e);return n.internalFlags=n.internalFlags|t,e}function sw(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function cw(e,t){return ew(e).sourceMapRange=t,e}function lw(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function _w(e,t,n){const r=ew(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function uw(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function dw(e,t){return ew(e).startsOnNewLine=t,e}function pw(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function fw(e,t){return ew(e).commentRange=t,e}function mw(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function gw(e,t){return ew(e).leadingComments=t,e}function hw(e,t,n,r){return gw(e,he(mw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function yw(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function vw(e,t){return ew(e).trailingComments=t,e}function bw(e,t,n,r){return vw(e,he(yw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function xw(e,t){gw(e,mw(t)),vw(e,yw(t));const n=ew(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Sw(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function kw(e,t){return ew(e).constantValue=t,e}function Tw(e,t){const n=ew(e);return n.helpers=he(n.helpers,t),e}function Cw(e,t){if(re(t)){const n=ew(e);for(const e of t)n.helpers=Se(n.helpers,e)}return e}function ww(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&Qt(r,t)}function Nw(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function Dw(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!re(i))return;const o=ew(t);let a=0;for(let e=0;e<i.length;e++){const t=i[e];n(t)?(a++,o.helpers=Se(o.helpers,t)):a>0&&(i[e-a]=t)}a>0&&(i.length-=a)}function Fw(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function Pw(e,t){return ew(e).snippetElement=t,e}function Ew(e){return ew(e).internalFlags|=4,e}function Aw(e,t){return ew(e).typeNode=t,e}function Iw(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function Ow(e,t){return ew(e).identifierTypeArguments=t,e}function Lw(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function jw(e,t){return ew(e).autoGenerate=t,e}function Mw(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function Rw(e,t){return ew(e).generatedImportReference=t,e}function Bw(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var Jw,zw,qw,Uw,Vw,Ww,Hw,$w,Kw,Gw,Xw,Qw,Yw,Zw,eN,tN,nN,rN,iN,oN,aN,sN,cN,lN,_N,uN,dN,pN,fN,mN,gN,hN,yN,vN,bN=g({"src/compiler/factory/emitNode.ts"(){OK()}});function xN(e){const t=e.factory,n=Tt((()=>ow(t.createTrue(),8))),r=Tt((()=>ow(t.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper(zw);const s=[];s.push(t.createArrayLiteralExpression(n,!0)),s.push(r),o&&(s.push(o),a&&s.push(a));return t.createCallExpression(i("__decorate"),void 0,s)},createMetadataHelper:function(n,r){return e.requestEmitHelper(qw),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(Uw),cI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper(Vw),t.createCallExpression(i("__esDecorate"),void 0,[n??t.createNull(),r??t.createNull(),o,a(s),c,l])},createRunInitializersHelper:function(n,r,o){return e.requestEmitHelper(Ww),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){if(HS(e.getCompilerOptions())>=2)return t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n);return e.requestEmitHelper(Hw),t.createCallExpression(i("__assign"),void 0,n)},createAwaitHelper:function(n){return e.requestEmitHelper($w),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper($w),e.requestEmitHelper(Kw),(n.emitNode||(n.emitNode={})).flags|=1572864,t.createCallExpression(i("__asyncGenerator"),void 0,[r?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return e.requestEmitHelper($w),e.requestEmitHelper(Gw),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(Xw),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(Qw);const s=[];let c=0;for(let e=0;e<r.length-1;e++){const n=CA(r[e]);if(n)if(cD(n)){Sn.assertIsDefined(o,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const e=o[c];c++,s.push(t.createConditionalExpression(t.createTypeCheck(e,"symbol"),void 0,e,void 0,t.createAdd(e,t.createStringLiteral(""))))}else s.push(t.createStringLiteralFromNode(n))}return t.createCallExpression(i("__rest"),void 0,[n,cI(t.createArrayLiteralExpression(s),a)])},createAwaiterHelper:function(n,r,o,a){e.requestEmitHelper(Yw);const s=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,[],void 0,a);return(s.emitNode||(s.emitNode={})).flags|=1572864,t.createCallExpression(i("__awaiter"),void 0,[n?t.createThis():t.createVoidZero(),r?t.createIdentifier("arguments"):t.createVoidZero(),o?XE(t,o):t.createVoidZero(),s])},createExtendsHelper:function(n){return e.requestEmitHelper(Zw),t.createCallExpression(i("__extends"),void 0,[n,t.createUniqueName("_super",48)])},createTemplateObjectHelper:function(n,r){return e.requestEmitHelper(eN),t.createCallExpression(i("__makeTemplateObject"),void 0,[n,r])},createSpreadArrayHelper:function(o,a,s){return e.requestEmitHelper(nN),t.createCallExpression(i("__spreadArray"),void 0,[o,a,s?n():r()])},createPropKeyHelper:function(n){return e.requestEmitHelper(rN),t.createCallExpression(i("__propKey"),void 0,[n])},createSetFunctionNameHelper:function(t,n,r){return e.requestEmitHelper(iN),e.factory.createCallExpression(i("__setFunctionName"),void 0,r?[t,n,e.factory.createStringLiteral(r)]:[t,n])},createValuesHelper:function(n){return e.requestEmitHelper(oN),t.createCallExpression(i("__values"),void 0,[n])},createReadHelper:function(n,r){return e.requestEmitHelper(tN),t.createCallExpression(i("__read"),void 0,void 0!==r?[n,t.createNumericLiteral(r+"")]:[n])},createGeneratorHelper:function(n){return e.requestEmitHelper(aN),t.createCallExpression(i("__generator"),void 0,[t.createThis(),n])},createCreateBindingHelper:function(n,r,o){return e.requestEmitHelper(sN),t.createCallExpression(i("__createBinding"),void 0,[t.createIdentifier("exports"),n,r,...o?[o]:[]])},createImportStarHelper:function(n){return e.requestEmitHelper(lN),t.createCallExpression(i("__importStar"),void 0,[n])},createImportStarCallbackHelper:function(){return e.requestEmitHelper(lN),i("__importStar")},createImportDefaultHelper:function(n){return e.requestEmitHelper(_N),t.createCallExpression(i("__importDefault"),void 0,[n])},createExportStarHelper:function(n,r=t.createIdentifier("exports")){return e.requestEmitHelper(uN),e.requestEmitHelper(sN),t.createCallExpression(i("__exportStar"),void 0,[n,r])},createClassPrivateFieldGetHelper:function(n,r,o,a){let s;e.requestEmitHelper(dN),s=a?[n,r,t.createStringLiteral(o),a]:[n,r,t.createStringLiteral(o)];return t.createCallExpression(i("__classPrivateFieldGet"),void 0,s)},createClassPrivateFieldSetHelper:function(n,r,o,a,s){let c;e.requestEmitHelper(pN),c=s?[n,r,o,t.createStringLiteral(a),s]:[n,r,o,t.createStringLiteral(a)];return t.createCallExpression(i("__classPrivateFieldSet"),void 0,c)},createClassPrivateFieldInHelper:function(n,r){return e.requestEmitHelper(fN),t.createCallExpression(i("__classPrivateFieldIn"),void 0,[n,r])},createAddDisposableResourceHelper:function(n,r,o){return e.requestEmitHelper(mN),t.createCallExpression(i("__addDisposableResource"),void 0,[n,r,o?t.createTrue():t.createFalse()])},createDisposeResourcesHelper:function(n){return e.requestEmitHelper(gN),t.createCallExpression(i("__disposeResources"),void 0,[n])}};function i(e){return rw(t.createIdentifier(e),8196)}function o(e,n){const r=[];return r.push(function(e){const n=e.computed?e.name:HN(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"))))}(e)),n.get&&r.push(function(e){const 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))}(e)),n.set&&r.push(function(e){const 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")))])))}(e)),t.createObjectLiteralExpression(r)}function a(e){return"class"===e.kind?function(e){const 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)}(e):function(e){const 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"),o(e.name,e.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e)}}function SN(e,t){return e===t||e.priority===t.priority?0:void 0===e.priority?1:void 0===t.priority?-1:It(e.priority,t.priority)}function kN(e,...t){return n=>{let r="";for(let i=0;i<t.length;i++)r+=e[i],r+=n(t[i]);return r+=e[e.length-1],r}}function TN(){return hN||(hN=Xe([zw,qw,Uw,Vw,Ww,Hw,$w,Kw,Gw,Xw,Qw,Yw,Zw,eN,nN,oN,tN,rN,iN,aN,lN,_N,uN,dN,pN,fN,sN,cN,mN,gN],(e=>e.name)))}function CN(e,t){return eF(e)&&HN(e.expression)&&0!=(8192&tf(e.expression))&&e.expression.escapedText===t}var wN=g({"src/compiler/factory/emitHelpers.ts"(){OK(),Jw=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(Jw||{}),zw={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},qw={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},Uw={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},Vw={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:'\n var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }\n var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";\n var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === "accessor") {\n if (result === void 0) continue;\n if (result === null || typeof result !== "object") throw new TypeError("Object expected");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === "field") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n };'},Ww={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:"\n var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n };"},Hw={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},Kw={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[$w={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"}],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n 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]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},Gw={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[$w],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n 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; }\n };'},Xw={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n 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);\n 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); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},Qw={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},Yw={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},Zw={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},eN={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},tN={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},nN={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},rN={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:'\n var __propKey = (this && this.__propKey) || function (x) {\n return typeof x === "symbol" ? x : "".concat(x);\n };'},iN={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:'\n var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {\n if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";\n return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });\n };'},oN={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},aN={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n 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;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},lN={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[sN={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},cN={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'}],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},_N={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},uN={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[sN],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},dN={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n 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");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},pN={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n 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");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},fN={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},mN={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:'\n var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== "function") throw new TypeError("Object not disposable.");\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n };'},gN={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:'\n var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {\n return function (env) {\n function fail(e) {\n env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n };\n })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;\n });'},yN={name:"typescript:async-super",scoped:!0,text:kN`
const ${"_superIndex"} = name => super[name];`},vN={name:"typescript:advanced-async-super",scoped:!0,text:kN`
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 NN(e){return 9===e.kind}function DN(e){return 10===e.kind}function FN(e){return 11===e.kind}function PN(e){return 12===e.kind}function EN(e){return 14===e.kind}function AN(e){return 15===e.kind}function IN(e){return 16===e.kind}function ON(e){return 17===e.kind}function LN(e){return 18===e.kind}function jN(e){return 26===e.kind}function MN(e){return 28===e.kind}function RN(e){return 40===e.kind}function BN(e){return 41===e.kind}function JN(e){return 42===e.kind}function zN(e){return 54===e.kind}function qN(e){return 58===e.kind}function UN(e){return 59===e.kind}function VN(e){return 29===e.kind}function WN(e){return 39===e.kind}function HN(e){return 80===e.kind}function $N(e){return 81===e.kind}function KN(e){return 95===e.kind}function GN(e){return 90===e.kind}function XN(e){return 134===e.kind}function QN(e){return 131===e.kind}function YN(e){return 135===e.kind}function ZN(e){return 148===e.kind}function eD(e){return 126===e.kind}function tD(e){return 128===e.kind}function nD(e){return 164===e.kind}function rD(e){return 129===e.kind}function iD(e){return 108===e.kind}function oD(e){return 102===e.kind}function aD(e){return 84===e.kind}function sD(e){return 166===e.kind}function cD(e){return 167===e.kind}function lD(e){return 168===e.kind}function _D(e){return 169===e.kind}function uD(e){return 170===e.kind}function dD(e){return 171===e.kind}function pD(e){return 172===e.kind}function fD(e){return 173===e.kind}function mD(e){return 174===e.kind}function gD(e){return 175===e.kind}function hD(e){return 176===e.kind}function yD(e){return 177===e.kind}function vD(e){return 178===e.kind}function bD(e){return 179===e.kind}function xD(e){return 180===e.kind}function SD(e){return 181===e.kind}function kD(e){return 182===e.kind}function TD(e){return 183===e.kind}function CD(e){return 184===e.kind}function wD(e){return 185===e.kind}function ND(e){return 186===e.kind}function DD(e){return 187===e.kind}function FD(e){return 188===e.kind}function PD(e){return 189===e.kind}function ED(e){return 202===e.kind}function AD(e){return 190===e.kind}function ID(e){return 191===e.kind}function OD(e){return 192===e.kind}function LD(e){return 193===e.kind}function jD(e){return 194===e.kind}function MD(e){return 195===e.kind}function RD(e){return 196===e.kind}function BD(e){return 197===e.kind}function JD(e){return 198===e.kind}function zD(e){return 199===e.kind}function qD(e){return 200===e.kind}function UD(e){return 201===e.kind}function VD(e){return 205===e.kind}function WD(e){return 204===e.kind}function HD(e){return 203===e.kind}function $D(e){return 206===e.kind}function KD(e){return 207===e.kind}function GD(e){return 208===e.kind}function XD(e){return 209===e.kind}function QD(e){return 210===e.kind}function YD(e){return 211===e.kind}function ZD(e){return 212===e.kind}function eF(e){return 213===e.kind}function tF(e){return 214===e.kind}function nF(e){return 215===e.kind}function rF(e){return 216===e.kind}function iF(e){return 217===e.kind}function oF(e){return 218===e.kind}function aF(e){return 219===e.kind}function sF(e){return 220===e.kind}function cF(e){return 221===e.kind}function lF(e){return 222===e.kind}function _F(e){return 223===e.kind}function uF(e){return 224===e.kind}function dF(e){return 225===e.kind}function pF(e){return 226===e.kind}function fF(e){return 227===e.kind}function mF(e){return 228===e.kind}function gF(e){return 229===e.kind}function hF(e){return 230===e.kind}function yF(e){return 231===e.kind}function vF(e){return 232===e.kind}function bF(e){return 233===e.kind}function xF(e){return 234===e.kind}function SF(e){return 238===e.kind}function kF(e){return 235===e.kind}function TF(e){return 236===e.kind}function CF(e){return 237===e.kind}function wF(e){return 360===e.kind}function NF(e){return 361===e.kind}function DF(e){return 239===e.kind}function FF(e){return 240===e.kind}function PF(e){return 241===e.kind}function EF(e){return 243===e.kind}function AF(e){return 242===e.kind}function IF(e){return 244===e.kind}function OF(e){return 245===e.kind}function LF(e){return 246===e.kind}function jF(e){return 247===e.kind}function MF(e){return 248===e.kind}function RF(e){return 249===e.kind}function BF(e){return 250===e.kind}function JF(e){return 251===e.kind}function zF(e){return 252===e.kind}function qF(e){return 253===e.kind}function UF(e){return 254===e.kind}function VF(e){return 255===e.kind}function WF(e){return 256===e.kind}function HF(e){return 257===e.kind}function $F(e){return 258===e.kind}function KF(e){return 259===e.kind}function GF(e){return 260===e.kind}function XF(e){return 261===e.kind}function QF(e){return 262===e.kind}function YF(e){return 263===e.kind}function ZF(e){return 264===e.kind}function eP(e){return 265===e.kind}function tP(e){return 266===e.kind}function nP(e){return 267===e.kind}function rP(e){return 268===e.kind}function iP(e){return 269===e.kind}function oP(e){return 270===e.kind}function aP(e){return 271===e.kind}function sP(e){return 272===e.kind}function cP(e){return 273===e.kind}function lP(e){return 302===e.kind}function _P(e){return 300===e.kind}function uP(e){return 301===e.kind}function dP(e){return 300===e.kind}function pP(e){return 301===e.kind}function fP(e){return 274===e.kind}function mP(e){return 280===e.kind}function gP(e){return 275===e.kind}function hP(e){return 276===e.kind}function yP(e){return 277===e.kind}function vP(e){return 278===e.kind}function bP(e){return 279===e.kind}function xP(e){return 281===e.kind}function SP(e){return 282===e.kind}function kP(e){return 359===e.kind}function TP(e){return 362===e.kind}function CP(e){return 283===e.kind}function wP(e){return 284===e.kind}function NP(e){return 285===e.kind}function DP(e){return 286===e.kind}function FP(e){return 287===e.kind}function PP(e){return 288===e.kind}function EP(e){return 289===e.kind}function AP(e){return 290===e.kind}function IP(e){return 291===e.kind}function OP(e){return 292===e.kind}function LP(e){return 293===e.kind}function jP(e){return 294===e.kind}function MP(e){return 295===e.kind}function RP(e){return 296===e.kind}function BP(e){return 297===e.kind}function JP(e){return 298===e.kind}function zP(e){return 299===e.kind}function qP(e){return 303===e.kind}function UP(e){return 304===e.kind}function VP(e){return 305===e.kind}function WP(e){return 306===e.kind}function HP(e){return 308===e.kind}function $P(e){return 312===e.kind}function KP(e){return 313===e.kind}function GP(e){return 314===e.kind}function XP(e){return 316===e.kind}function QP(e){return 317===e.kind}function YP(e){return 318===e.kind}function ZP(e){return 331===e.kind}function eE(e){return 332===e.kind}function tE(e){return 333===e.kind}function nE(e){return 319===e.kind}function rE(e){return 320===e.kind}function iE(e){return 321===e.kind}function oE(e){return 322===e.kind}function aE(e){return 323===e.kind}function sE(e){return 324===e.kind}function cE(e){return 325===e.kind}function lE(e){return 326===e.kind}function _E(e){return 327===e.kind}function uE(e){return 329===e.kind}function dE(e){return 330===e.kind}function pE(e){return 335===e.kind}function fE(e){return 337===e.kind}function mE(e){return 339===e.kind}function gE(e){return 345===e.kind}function hE(e){return 340===e.kind}function yE(e){return 341===e.kind}function vE(e){return 342===e.kind}function bE(e){return 343===e.kind}function xE(e){return 344===e.kind}function SE(e){return 346===e.kind}function kE(e){return 338===e.kind}function TE(e){return 354===e.kind}function CE(e){return 347===e.kind}function wE(e){return 348===e.kind}function NE(e){return 349===e.kind}function DE(e){return 350===e.kind}function FE(e){return 351===e.kind}function PE(e){return 352===e.kind}function EE(e){return 353===e.kind}function AE(e){return 334===e.kind}function IE(e){return 355===e.kind}function OE(e){return 336===e.kind}function LE(e){return 357===e.kind}function jE(e){return 356===e.kind}function ME(e){return 358===e.kind}var RE,BE,JE=g({"src/compiler/factory/nodeTests.ts"(){OK()}});function zE(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function qE(e,t,n,r){if(cD(n))return cI(e.createElementAccessExpression(t,n.expression),r);{const r=cI(Cl(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return iw(r,128),r}}function UE(e,t){const n=hI.createIdentifier(e||"React");return AT(n,Cc(t)),n}function VE(e,t,n){if(sD(t)){const r=VE(e,t.left,n),i=e.createIdentifier(Dc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return UE(Dc(t),n)}function WE(e,t,n,r){return t?VE(e,t,r):e.createPropertyAccessExpression(UE(n,r),"createElement")}function HE(e,t,n,r,i,o){const a=[n];if(r&&a.push(r),i&&i.length>0)if(r||a.push(e.createNull()),i.length>1)for(const e of i)fA(e),a.push(e);else a.push(i[0]);return cI(e.createCallExpression(t,void 0,a),o)}function $E(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?VE(e,t,r):e.createPropertyAccessExpression(UE(n,r),"Fragment")}(e,n,r,o),c=[s,e.createNull()];if(i&&i.length>0)if(i.length>1)for(const e of i)fA(e),c.push(e);else c.push(i[0]);return cI(e.createCallExpression(WE(e,t,r,o),void 0,c),a)}function KE(e,t,n){if(XF(t)){const r=Pe(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return cI(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=cI(e.createAssignment(t,n),t);return cI(e.createExpressionStatement(r),t)}}function GE(e,t,n){return PF(t)?e.updateBlock(t,cI(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function XE(e,t){if(sD(t)){const n=XE(e,t.left),r=AT(cI(e.cloneNode(t.right),t.right),t.right.parent);return cI(e.createPropertyAccessExpression(n,r),t)}return AT(cI(e.cloneNode(t),t),t.parent)}function QE(e,t){return HN(t)?e.createStringLiteralFromNode(t):cD(t)?AT(cI(e.cloneNode(t.expression),t.expression),t.expression.parent):AT(cI(e.cloneNode(t),t),t.parent)}function YE(e,t,n,r){switch(n.name&&$N(n.name)&&Sn.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=Qv(t,n);if(n===o)return cI(e.createObjectDefinePropertyCall(r,QE(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&cI(YC(e.createFunctionExpression(Jc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&cI(YC(e.createFunctionExpression(Jc(s),void 0,void 0,void 0,s.parameters,void 0,s.body),s),s)},!i)),o)}(e,t.properties,n,r,!!t.multiLine);case 303:return function(e,t,n){return YC(cI(e.createAssignment(qE(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 304:return function(e,t,n){return YC(cI(e.createAssignment(qE(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 174:return function(e,t,n){return YC(cI(e.createAssignment(qE(e,n,t.name,t.name),YC(cI(e.createFunctionExpression(Jc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function ZE(e,t,n,r,i){const o=t.operator;Sn.assert(46===o||47===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const a=e.createTempVariable(r);cI(n=e.createAssignment(a,n),t.operand);let s=uF(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return cI(s,t),i&&(s=e.createAssignment(i,s),cI(s,t)),cI(n=e.createComma(n,s),t),dF(t)&&cI(n=e.createComma(n,a),t),n}function eA(e){return 0!=(65536&tf(e))}function tA(e){return 0!=(32768&tf(e))}function nA(e){return 0!=(16384&tf(e))}function rA(e){return FN(e.expression)&&"use strict"===e.expression.text}function iA(e){for(const t of e){if(!_m(t))break;if(rA(t))return t}}function oA(e){const t=De(e);return void 0!==t&&_m(t)&&rA(t)}function aA(e){return 226===e.kind&&28===e.operatorToken.kind}function sA(e){return aA(e)||NF(e)}function cA(e){return iF(e)&&Tg(e)&&!!pl(e)}function lA(e){const t=fl(e);return Sn.assertIsDefined(t),t}function _A(e,t=15){switch(e.kind){case 217:return!(16&t&&cA(e))&&0!=(1&t);case 216:case 234:case 233:case 238:return 0!=(2&t);case 235:return 0!=(4&t);case 360:return 0!=(8&t)}return!1}function uA(e,t=15){for(;_A(e,t);)e=e.expression;return e}function dA(e,t=15){let n=e.parent;for(;_A(n,t);)n=n.parent,Sn.assert(n);return n}function pA(e){return uA(e,6)}function fA(e){return dw(e,!0)}function mA(e){const t=Sc(e,$P),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function gA(e){const t=Sc(e,$P),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function hA(e,t,n,r,i,o,a){if(r.importHelpers&&vf(n,r)){let s;const c=$S(r);if(c>=5&&c<=99||99===n.impliedNodeFormat){const r=Nw(n);if(r){const i=[];for(const e of r)if(!e.scoped){const t=e.importName;t&&xe(i,t)}if(re(i)){i.sort(Rt),s=e.createNamedImports(J(i,(r=>Ap(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r)))));ew(Sc(n,$P)).externalHelpers=!0}}}else{const t=yA(e,n,r,i,o||a);t&&(s=e.createNamespaceImport(t))}if(s){const t=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,s),e.createStringLiteral(nd),void 0);return aw(t,2),t}}}function yA(e,t,n,r,i){if(n.importHelpers&&vf(t,n)){const o=mA(t);if(o)return o;const a=$S(n);let s=(r||rk(n)&&i)&&4!==a&&(a<5||1===t.impliedNodeFormat);if(!s){const e=Nw(t);if(e)for(const t of e)if(!t.scoped){s=!0;break}}if(s){const n=ew(Sc(t,$P));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(nd))}}}function vA(e,t,n){const r=mh(t);if(r&&!gh(t)&&!Xp(t)){const t=r.name;return a_(t)?t:e.createIdentifier(Gp(n,t)||Dc(t))}return 272===t.kind&&t.importClause||278===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function bA(e,t,n,r,i,o){const a=fh(t);if(a&&FN(a))return function(e,t,n,r,i){return xA(n,r.getExternalModuleFileFromDeclaration(e),t,i)}(t,r,e,i,o)||function(e,t,n){const r=n.renamedDependencies&&n.renamedDependencies.get(t.text);return r?e.createStringLiteral(r):void 0}(e,a,n)||e.cloneNode(a)}function xA(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&Ev(r)?e.createStringLiteral(Cv(n,t.fileName)):void 0}function SA(e){if(z_(e))return e.initializer;if(qP(e)){const t=e.initializer;return Vb(t,!0)?t.right:void 0}return UP(e)?e.objectAssignmentInitializer:Vb(e,!0)?e.right:hF(e)?SA(e.expression):void 0}function kA(e){if(z_(e))return e.name;if(!L_(e))return Vb(e,!0)?kA(e.left):hF(e)?kA(e.expression):e;switch(e.kind){case 303:return kA(e.initializer);case 304:return e.name;case 305:return kA(e.expression)}}function TA(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function CA(e){const t=wA(e);return Sn.assert(!!t||VP(e),"Invalid property name for binding element."),t}function wA(e){switch(e.kind){case 208:if(e.propertyName){const t=e.propertyName;return $N(t)?Sn.failBadSyntaxKind(t):cD(t)&&NA(t.expression)?t.expression:t}break;case 303:if(e.name){const t=e.name;return $N(t)?Sn.failBadSyntaxKind(t):cD(t)&&NA(t.expression)?t.expression:t}break;case 305:return e.name&&$N(e.name)?Sn.failBadSyntaxKind(e.name):e.name}const t=kA(e);if(t&&g_(t))return t}function NA(e){const t=e.kind;return 11===t||9===t}function DA(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function FA(e){if(e){let t=e;for(;;){if(HN(t)||!t.body)return HN(t)?t:t.name;t=t.body}}}function PA(e){const t=e.kind;return 176===t||178===t}function EA(e){const t=e.kind;return 176===t||177===t||178===t}function AA(e){const t=e.kind;return 303===t||304===t||262===t||176===t||181===t||175===t||282===t||243===t||264===t||265===t||266===t||267===t||271===t||272===t||270===t||278===t||277===t}function IA(e){const t=e.kind;return 175===t||303===t||304===t||282===t||270===t}function OA(e){return qN(e)||zN(e)}function LA(e){return HN(e)||BD(e)}function jA(e){return ZN(e)||RN(e)||BN(e)}function MA(e){return qN(e)||RN(e)||BN(e)}function RA(e){return HN(e)||FN(e)}function BA(e){const t=e.kind;return 106===t||112===t||97===t||Gl(e)||uF(e)}function JA(e){return function(e){return 48===e||49===e||50===e}(e)||function(e){return function(e){return 40===e||41===e}(e)||function(e){return function(e){return 43===e}(e)||function(e){return 42===e||44===e||45===e}(e)}(e)}(e)}function zA(e){return function(e){return 35===e||37===e||36===e||38===e}(e)||function(e){return function(e){return 30===e||33===e||32===e||34===e||104===e||103===e}(e)||JA(e)}(e)}function qA(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||zA(e)}(e)}function UA(e){return function(e){return 61===e||qA(e)||zb(e)}(e)||28===e}function VA(e){return UA(e.kind)}function WA(e,t,n,r,i,o){const a=new BE(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[RE.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==RE.done;)s=r[s](a,s,r,i,o,n,t);return Sn.assertEqual(s,0),n.value}}function HA(e){return 95===e||90===e}function $A(e){return HA(e.kind)}function KA(e){const t=e.kind;return u_(t)&&!HA(t)}function GA(e,t){if(void 0!==t)return 0===t.length?t:cI(e.createNodeArray([],t.hasTrailingComma),t)}function XA(e){var t;const n=e.emitNode.autoGenerate;if(4&n.flags){const r=n.id;let i=e,o=i.original;for(;o;){i=o;const e=null==(t=i.emitNode)?void 0:t.autoGenerate;if(Cl(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function QA(e,t){return"object"==typeof e?ZA(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function YA(e,t){return"string"==typeof e?e:function(e,t){return s_(e)?t(e).slice(1):a_(e)?t(e):$N(e)?e.escapedText.slice(1):Dc(e)}(e,Sn.checkDefined(t))}function ZA(e,t,n,r,i){return t=QA(t,i),r=QA(r,i),`${e?"#":""}${t}${n=YA(n,i)}${r}`}function eI(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function tI(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 nI(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 rI(e){let t=e.expression;for(;;)if(t=uA(t),NF(t))t=Ie(t.elements);else{if(!aA(t)){if(Vb(t,!0)&&a_(t.left))return t;break}t=t.right}}function iI(e,t){if(function(e){return iF(e)&&Xy(e)&&!e.emitNode}(e))iI(e.expression,t);else if(aA(e))iI(e.left,t),iI(e.right,t);else if(NF(e))for(const n of e.elements)iI(n,t);else t.push(e)}function oI(e){const t=[];return iI(e,t),t}function aI(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of DA(e)){const e=kA(t);if(e&&B_(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&aI(e))return!0}}return!1}var sI=g({"src/compiler/factory/utilities.ts"(){OK(),(e=>{function t(e,n,r,i,o,a,c){const l=n>0?o[n-1]:void 0;return Sn.assertEqual(r[n],t),o[n]=e.onEnter(i[n],l,c),r[n]=s(e,t),n}function n(e,t,r,i,o,a,_){Sn.assertEqual(r[t],n),Sn.assertIsDefined(e.onLeft),r[t]=s(e,n);const u=e.onLeft(i[t].left,o[t],i[t]);return u?(l(t,i,u),c(t,r,i,o,u)):t}function r(e,t,n,i,o,a,c){return Sn.assertEqual(n[t],r),Sn.assertIsDefined(e.onOperator),n[t]=s(e,r),e.onOperator(i[t].operatorToken,o[t],i[t]),t}function i(e,t,n,r,o,a,_){Sn.assertEqual(n[t],i),Sn.assertIsDefined(e.onRight),n[t]=s(e,i);const u=e.onRight(r[t].right,o[t],r[t]);return u?(l(t,r,u),c(t,n,r,o,u)):t}function o(e,t,n,r,i,a,c){Sn.assertEqual(n[t],o),n[t]=s(e,o);const l=e.onExit(r[t],i[t]);if(t>0){if(t--,e.foldState){const r=n[t]===o?"right":"left";i[t]=e.foldState(i[t],l,r)}}else a.value=l;return t}function a(e,t,n,r,i,o,s){return Sn.assertEqual(n[t],a),t}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 o;case o:case a:return a;default:Sn.fail("Invalid state")}}function c(e,n,r,i,o){return n[++e]=t,r[e]=o,i[e]=void 0,e}function l(e,t,n){if(Sn.shouldAssert(2))for(;e>=0;)Sn.assert(t[e]!==n,"Circular traversal detected."),e--}e.enter=t,e.left=n,e.operator=r,e.right=i,e.exit=o,e.done=a,e.nextState=s})(RE||(RE={})),BE=class{constructor(e,t,n,r,i,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=o}}}});function cI(e,t){return t?FT(e,t.pos,t.end):e}function lI(e){const t=e.kind;return 168===t||169===t||171===t||172===t||173===t||174===t||176===t||177===t||178===t||181===t||185===t||218===t||219===t||231===t||243===t||262===t||263===t||264===t||265===t||266===t||267===t||271===t||272===t||277===t||278===t}function _I(e){const t=e.kind;return 169===t||172===t||174===t||177===t||178===t||231===t||263===t}var uI,dI,pI,fI,mI,gI,hI,yI,vI,bI,xI,SI,kI,TI=g({"src/compiler/factory/utilitiesPublic.ts"(){OK()}});function CI(e,t){return t&&e(t)}function wI(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function NI(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function DI(e){return b(e.statements,FI)||function(e){return 8388608&e.flags?PI(e):void 0}(e)}function FI(e){return lI(e)&&function(e,t){return re(e.modifiers,(e=>e.kind===t))}(e,95)||aP(e)&&CP(e.moduleReference)||sP(e)||yP(e)||vP(e)?e:void 0}function PI(e){return function(e){return TF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:KI(e,PI)}function EI(e,t,n){return wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)}function AI(e,t,n){return wI(t,n,e.types)}function II(e,t,n){return CI(t,e.type)}function OI(e,t,n){return wI(t,n,e.elements)}function LI(e,t,n){return CI(t,e.expression)||CI(t,e.questionDotToken)||wI(t,n,e.typeArguments)||wI(t,n,e.arguments)}function jI(e,t,n){return wI(t,n,e.statements)}function MI(e,t,n){return CI(t,e.label)}function RI(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||wI(t,n,e.typeParameters)||wI(t,n,e.heritageClauses)||wI(t,n,e.members)}function BI(e,t,n){return wI(t,n,e.elements)}function JI(e,t,n){return CI(t,e.propertyName)||CI(t,e.name)}function zI(e,t,n){return CI(t,e.tagName)||wI(t,n,e.typeArguments)||CI(t,e.attributes)}function qI(e,t,n){return CI(t,e.type)}function UI(e,t,n){return CI(t,e.tagName)||(e.isNameFirst?CI(t,e.name)||CI(t,e.typeExpression):CI(t,e.typeExpression)||CI(t,e.name))||("string"==typeof e.comment?void 0:wI(t,n,e.comment))}function VI(e,t,n){return CI(t,e.tagName)||CI(t,e.typeExpression)||("string"==typeof e.comment?void 0:wI(t,n,e.comment))}function WI(e,t,n){return CI(t,e.name)}function HI(e,t,n){return CI(t,e.tagName)||("string"==typeof e.comment?void 0:wI(t,n,e.comment))}function $I(e,t,n){return CI(t,e.expression)}function KI(e,t,n){if(void 0===e||e.kind<=165)return;const r=yI[e.kind];return void 0===r?void 0:r(e,t,n)}function GI(e,t,n){const r=XI(e),i=[];for(;i.length<r.length;)i.push(e);for(;0!==r.length;){const e=r.pop(),o=i.pop();if(_t(e)){if(n){const t=n(e,o);if(t){if("skip"===t)continue;return t}}for(let t=e.length-1;t>=0;--t)r.push(e[t]),i.push(o)}else{const n=t(e,o);if(n){if("skip"===n)continue;return n}if(e.kind>=166)for(const t of XI(e))r.push(t),i.push(e)}}}function XI(e){const t=[];return KI(e,n,n),t;function n(e){t.unshift(e)}}function QI(e){e.externalModuleIndicator=DI(e)}function YI(e,t,n,r=!1,i){var o,a,s,c;let l;null==(o=Fr)||o.push(Fr.Phase.Parse,"createSourceFile",{path:e},!0),gr("beforeParse"),null==(a=rr)||a.logStartParseSourceFile(e);const{languageVersion:_,setExternalModuleIndicator:u,impliedNodeFormat:d,jsDocParsingMode:p}="object"==typeof n?n:{languageVersion:n};if(100===_)l=vI.parseSourceFile(e,t,_,void 0,r,6,gt,p);else{const n=void 0===d?u:e=>(e.impliedNodeFormat=d,(u||QI)(e));l=vI.parseSourceFile(e,t,_,void 0,r,i,n,p)}return null==(s=rr)||s.logStopParseSourceFile(),gr("afterParse"),hr("Parse","beforeParse","afterParse"),null==(c=Fr)||c.pop(),l}function ZI(e,t){return vI.parseIsolatedEntityName(e,t)}function eO(e,t){return vI.parseJsonText(e,t)}function tO(e){return void 0!==e.externalModuleIndicator}function nO(e,t,n,r=!1){const i=bI.updateSourceFile(e,t,n,r);return i.flags|=12582912&e.flags,i}function rO(e,t,n){const r=vI.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&vI.fixupParentReferences(r.jsDoc),r}function iO(e,t,n){return vI.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}function oO(e){return Ko(e,Xd)||$o(e,".ts")&&ea(e).includes(".d.")}function aO(e,t){const n=[];for(const e of Fs(t,0)||r){lO(n,e,t.substring(e.pos,e.end))}e.pragmas=new Map;for(const t of n)if(e.pragmas.has(t.name)){const n=e.pragmas.get(t.name);n instanceof Array?n.push(t.args):e.pragmas.set(t.name,[n,t.args])}else e.pragmas.set(t.name,t.args)}function sO(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":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;b(ut(n),(n=>{const{types:a,lib:s,path:c,"resolution-mode":l}=n.arguments;if(n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,Ea.resolution_mode_should_be_either_require_or_import)}(l,a.pos,a.end,t);i.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{}})}else s?o.push({pos:s.pos,end:s.end,fileName:s.value}):c?r.push({pos:c.pos,end:c.end,fileName:c.value}):t(n.range.pos,n.range.end-n.range.pos,Ea.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=J(ut(n),(e=>({name:e.arguments.name,path:e.arguments.path})));break;case"amd-module":if(n instanceof Array)for(const r of n)e.moduleName&&t(r.range.pos,r.range.end-r.range.pos,Ea.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":b(ut(n),(t=>{(!e.checkJsDirective||t.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:"ts-check"===r,end:t.range.end,pos:t.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:Sn.fail("Unhandled pragma kind")}}))}function cO(e){if(xI.has(e))return xI.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return xI.set(e,t),t}function lO(e,t,n){const r=2===t.kind&&SI.exec(n);if(r){const i=r[1].toLowerCase(),o=Qi[i];if(!(o&&1&o.kind))return;if(o.args){const r={};for(const e of o.args){const i=cO(e.name).exec(n);if(!i&&!e.optional)return;if(i){const n=i[2]||i[3];if(e.captureSpan){const o=t.pos+i.index+i[1].length+1;r[e.name]={value:n,pos:o,end:o+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}const i=2===t.kind&&kI.exec(n);if(i)return _O(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+.*)?$/gim;let i;for(;i=r.exec(n);)_O(e,t,4,i)}}function _O(e,t,n,r){if(!r)return;const i=r[1].toLowerCase(),o=Qi[i];if(!(o&&o.kind&n))return;const a=function(e,t){if(!t)return{};if(!e.args)return{};const n=t.trim().split(/\s+/),r={};for(let t=0;t<e.args.length;t++){const i=e.args[t];if(!n[t]&&!i.optional)return"fail";if(i.captureSpan)return Sn.fail("Capture spans not yet implemented for non-xml pragmas");r[i.name]=n[t]}return r}(o,r[2]);"fail"!==a&&e.push({name:i,args:{arguments:a,range:t}})}function uO(e,t){return e.kind===t.kind&&(80===e.kind?e.escapedText===t.escapedText:110===e.kind||(295===e.kind?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&uO(e.expression,t.expression)))}var dO,pO,fO,mO,gO,hO,yO,vO,bO,xO,SO,kO,TO,CO,wO,NO,DO,FO,PO,EO,AO,IO,OO,LO,jO,MO,RO,BO,JO,zO,qO,UO,VO,WO,HO,$O,KO,GO,XO,QO,YO,ZO,eL,tL=g({"src/compiler/parser.ts"(){OK(),Zi(),hI=jC(1,gI={createBaseSourceFileNode:e=>new(mI||(mI=Ed.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(pI||(pI=Ed.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(fI||(fI=Ed.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(dI||(dI=Ed.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(uI||(uI=Ed.getNodeConstructor()))(e,-1,-1)}),yI={166:function(e,t,n){return CI(t,e.left)||CI(t,e.right)},168:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||CI(t,e.constraint)||CI(t,e.default)||CI(t,e.expression)},304:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||CI(t,e.questionToken)||CI(t,e.exclamationToken)||CI(t,e.equalsToken)||CI(t,e.objectAssignmentInitializer)},305:function(e,t,n){return CI(t,e.expression)},169:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.dotDotDotToken)||CI(t,e.name)||CI(t,e.questionToken)||CI(t,e.type)||CI(t,e.initializer)},172:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||CI(t,e.questionToken)||CI(t,e.exclamationToken)||CI(t,e.type)||CI(t,e.initializer)},171:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||CI(t,e.questionToken)||CI(t,e.type)||CI(t,e.initializer)},303:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||CI(t,e.questionToken)||CI(t,e.exclamationToken)||CI(t,e.initializer)},260:function(e,t,n){return CI(t,e.name)||CI(t,e.exclamationToken)||CI(t,e.type)||CI(t,e.initializer)},208:function(e,t,n){return CI(t,e.dotDotDotToken)||CI(t,e.propertyName)||CI(t,e.name)||CI(t,e.initializer)},181:function(e,t,n){return wI(t,n,e.modifiers)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)},185:function(e,t,n){return wI(t,n,e.modifiers)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)},184:function(e,t,n){return wI(t,n,e.modifiers)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)},179:EI,180:EI,174:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.asteriskToken)||CI(t,e.name)||CI(t,e.questionToken)||CI(t,e.exclamationToken)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)||CI(t,e.body)},173:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||CI(t,e.questionToken)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)},176:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)||CI(t,e.body)},177:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)||CI(t,e.body)},178:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)||CI(t,e.body)},262:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.asteriskToken)||CI(t,e.name)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)||CI(t,e.body)},218:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.asteriskToken)||CI(t,e.name)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)||CI(t,e.body)},219:function(e,t,n){return wI(t,n,e.modifiers)||wI(t,n,e.typeParameters)||wI(t,n,e.parameters)||CI(t,e.type)||CI(t,e.equalsGreaterThanToken)||CI(t,e.body)},175:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.body)},183:function(e,t,n){return CI(t,e.typeName)||wI(t,n,e.typeArguments)},182:function(e,t,n){return CI(t,e.assertsModifier)||CI(t,e.parameterName)||CI(t,e.type)},186:function(e,t,n){return CI(t,e.exprName)||wI(t,n,e.typeArguments)},187:function(e,t,n){return wI(t,n,e.members)},188:function(e,t,n){return CI(t,e.elementType)},189:function(e,t,n){return wI(t,n,e.elements)},192:AI,193:AI,194:function(e,t,n){return CI(t,e.checkType)||CI(t,e.extendsType)||CI(t,e.trueType)||CI(t,e.falseType)},195:function(e,t,n){return CI(t,e.typeParameter)},205:function(e,t,n){return CI(t,e.argument)||CI(t,e.attributes)||CI(t,e.qualifier)||wI(t,n,e.typeArguments)},302:function(e,t,n){return CI(t,e.assertClause)},196:II,198:II,199:function(e,t,n){return CI(t,e.objectType)||CI(t,e.indexType)},200:function(e,t,n){return CI(t,e.readonlyToken)||CI(t,e.typeParameter)||CI(t,e.nameType)||CI(t,e.questionToken)||CI(t,e.type)||wI(t,n,e.members)},201:function(e,t,n){return CI(t,e.literal)},202:function(e,t,n){return CI(t,e.dotDotDotToken)||CI(t,e.name)||CI(t,e.questionToken)||CI(t,e.type)},206:OI,207:OI,209:function(e,t,n){return wI(t,n,e.elements)},210:function(e,t,n){return wI(t,n,e.properties)},211:function(e,t,n){return CI(t,e.expression)||CI(t,e.questionDotToken)||CI(t,e.name)},212:function(e,t,n){return CI(t,e.expression)||CI(t,e.questionDotToken)||CI(t,e.argumentExpression)},213:LI,214:LI,215:function(e,t,n){return CI(t,e.tag)||CI(t,e.questionDotToken)||wI(t,n,e.typeArguments)||CI(t,e.template)},216:function(e,t,n){return CI(t,e.type)||CI(t,e.expression)},217:function(e,t,n){return CI(t,e.expression)},220:function(e,t,n){return CI(t,e.expression)},221:function(e,t,n){return CI(t,e.expression)},222:function(e,t,n){return CI(t,e.expression)},224:function(e,t,n){return CI(t,e.operand)},229:function(e,t,n){return CI(t,e.asteriskToken)||CI(t,e.expression)},223:function(e,t,n){return CI(t,e.expression)},225:function(e,t,n){return CI(t,e.operand)},226:function(e,t,n){return CI(t,e.left)||CI(t,e.operatorToken)||CI(t,e.right)},234:function(e,t,n){return CI(t,e.expression)||CI(t,e.type)},235:function(e,t,n){return CI(t,e.expression)},238:function(e,t,n){return CI(t,e.expression)||CI(t,e.type)},236:function(e,t,n){return CI(t,e.name)},227:function(e,t,n){return CI(t,e.condition)||CI(t,e.questionToken)||CI(t,e.whenTrue)||CI(t,e.colonToken)||CI(t,e.whenFalse)},230:function(e,t,n){return CI(t,e.expression)},241:jI,268:jI,312:function(e,t,n){return wI(t,n,e.statements)||CI(t,e.endOfFileToken)},243:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.declarationList)},261:function(e,t,n){return wI(t,n,e.declarations)},244:function(e,t,n){return CI(t,e.expression)},245:function(e,t,n){return CI(t,e.expression)||CI(t,e.thenStatement)||CI(t,e.elseStatement)},246:function(e,t,n){return CI(t,e.statement)||CI(t,e.expression)},247:function(e,t,n){return CI(t,e.expression)||CI(t,e.statement)},248:function(e,t,n){return CI(t,e.initializer)||CI(t,e.condition)||CI(t,e.incrementor)||CI(t,e.statement)},249:function(e,t,n){return CI(t,e.initializer)||CI(t,e.expression)||CI(t,e.statement)},250:function(e,t,n){return CI(t,e.awaitModifier)||CI(t,e.initializer)||CI(t,e.expression)||CI(t,e.statement)},251:MI,252:MI,253:function(e,t,n){return CI(t,e.expression)},254:function(e,t,n){return CI(t,e.expression)||CI(t,e.statement)},255:function(e,t,n){return CI(t,e.expression)||CI(t,e.caseBlock)},269:function(e,t,n){return wI(t,n,e.clauses)},296:function(e,t,n){return CI(t,e.expression)||wI(t,n,e.statements)},297:function(e,t,n){return wI(t,n,e.statements)},256:function(e,t,n){return CI(t,e.label)||CI(t,e.statement)},257:function(e,t,n){return CI(t,e.expression)},258:function(e,t,n){return CI(t,e.tryBlock)||CI(t,e.catchClause)||CI(t,e.finallyBlock)},299:function(e,t,n){return CI(t,e.variableDeclaration)||CI(t,e.block)},170:function(e,t,n){return CI(t,e.expression)},263:RI,231:RI,264:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||wI(t,n,e.typeParameters)||wI(t,n,e.heritageClauses)||wI(t,n,e.members)},265:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||wI(t,n,e.typeParameters)||CI(t,e.type)},266:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||wI(t,n,e.members)},306:function(e,t,n){return CI(t,e.name)||CI(t,e.initializer)},267:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||CI(t,e.body)},271:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)||CI(t,e.moduleReference)},272:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.importClause)||CI(t,e.moduleSpecifier)||CI(t,e.attributes)},273:function(e,t,n){return CI(t,e.name)||CI(t,e.namedBindings)},300:function(e,t,n){return wI(t,n,e.elements)},301:function(e,t,n){return CI(t,e.name)||CI(t,e.value)},270:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.name)},274:function(e,t,n){return CI(t,e.name)},280:function(e,t,n){return CI(t,e.name)},275:BI,279:BI,278:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.exportClause)||CI(t,e.moduleSpecifier)||CI(t,e.attributes)},276:JI,281:JI,277:function(e,t,n){return wI(t,n,e.modifiers)||CI(t,e.expression)},228:function(e,t,n){return CI(t,e.head)||wI(t,n,e.templateSpans)},239:function(e,t,n){return CI(t,e.expression)||CI(t,e.literal)},203:function(e,t,n){return CI(t,e.head)||wI(t,n,e.templateSpans)},204:function(e,t,n){return CI(t,e.type)||CI(t,e.literal)},167:function(e,t,n){return CI(t,e.expression)},298:function(e,t,n){return wI(t,n,e.types)},233:function(e,t,n){return CI(t,e.expression)||wI(t,n,e.typeArguments)},283:function(e,t,n){return CI(t,e.expression)},282:function(e,t,n){return wI(t,n,e.modifiers)},361:function(e,t,n){return wI(t,n,e.elements)},284:function(e,t,n){return CI(t,e.openingElement)||wI(t,n,e.children)||CI(t,e.closingElement)},288:function(e,t,n){return CI(t,e.openingFragment)||wI(t,n,e.children)||CI(t,e.closingFragment)},285:zI,286:zI,292:function(e,t,n){return wI(t,n,e.properties)},291:function(e,t,n){return CI(t,e.name)||CI(t,e.initializer)},293:function(e,t,n){return CI(t,e.expression)},294:function(e,t,n){return CI(t,e.dotDotDotToken)||CI(t,e.expression)},287:function(e,t,n){return CI(t,e.tagName)},295:function(e,t,n){return CI(t,e.namespace)||CI(t,e.name)},190:qI,191:qI,316:qI,322:qI,321:qI,323:qI,325:qI,324:function(e,t,n){return wI(t,n,e.parameters)||CI(t,e.type)},327:function(e,t,n){return("string"==typeof e.comment?void 0:wI(t,n,e.comment))||wI(t,n,e.tags)},354:function(e,t,n){return CI(t,e.tagName)||CI(t,e.name)||("string"==typeof e.comment?void 0:wI(t,n,e.comment))},317:function(e,t,n){return CI(t,e.name)},318:function(e,t,n){return CI(t,e.left)||CI(t,e.right)},348:UI,355:UI,337:function(e,t,n){return CI(t,e.tagName)||("string"==typeof e.comment?void 0:wI(t,n,e.comment))},336:function(e,t,n){return CI(t,e.tagName)||CI(t,e.class)||("string"==typeof e.comment?void 0:wI(t,n,e.comment))},335:function(e,t,n){return CI(t,e.tagName)||CI(t,e.class)||("string"==typeof e.comment?void 0:wI(t,n,e.comment))},352:function(e,t,n){return CI(t,e.tagName)||CI(t,e.constraint)||wI(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:wI(t,n,e.comment))},353:function(e,t,n){return CI(t,e.tagName)||(e.typeExpression&&316===e.typeExpression.kind?CI(t,e.typeExpression)||CI(t,e.fullName)||("string"==typeof e.comment?void 0:wI(t,n,e.comment)):CI(t,e.fullName)||CI(t,e.typeExpression)||("string"==typeof e.comment?void 0:wI(t,n,e.comment)))},345:function(e,t,n){return CI(t,e.tagName)||CI(t,e.fullName)||CI(t,e.typeExpression)||("string"==typeof e.comment?void 0:wI(t,n,e.comment))},349:VI,351:VI,350:VI,347:VI,357:VI,356:VI,346:VI,330:function(e,t,n){return b(e.typeParameters,t)||b(e.parameters,t)||CI(t,e.type)},331:WI,332:WI,333:WI,329:function(e,t,n){return b(e.jsDocPropertyTags,t)},334:HI,339:HI,340:HI,341:HI,342:HI,343:HI,338:HI,344:HI,360:$I},(e=>{var t,n,o,a,s,c=Ls(99,!0),l=40960;function _(e){return x++,e}var u,d,p,f,m,g,h,y,v,b,x,S,k,T,C,w,N=jC(11,{createBaseSourceFileNode:e=>_(new s(e,0,0)),createBaseIdentifierNode:e=>_(new o(e,0,0)),createBasePrivateIdentifierNode:e=>_(new a(e,0,0)),createBaseTokenNode:e=>_(new n(e,0,0)),createBaseNode:e=>_(new t(e,0,0))}),{createNodeArray:D,createNumericLiteral:F,createStringLiteral:E,createLiteralLikeNode:A,createIdentifier:I,createPrivateIdentifier:O,createToken:L,createArrayLiteralExpression:j,createObjectLiteralExpression:M,createPropertyAccessExpression:R,createPropertyAccessChain:B,createElementAccessExpression:J,createElementAccessChain:z,createCallExpression:q,createCallChain:U,createNewExpression:V,createParenthesizedExpression:W,createBlock:H,createVariableStatement:$,createExpressionStatement:K,createIfStatement:X,createWhileStatement:Q,createForStatement:Y,createForOfStatement:Z,createVariableDeclaration:ee,createVariableDeclarationList:te}=N,ne=!0,ie=!1;function ae(e,t,n=2,r,i=!1){se(e,t,n,r,6,0),d=w,We();const o=Je();let a,s;if(1===qe())a=xt([],o,o),s=ht();else{let e;for(;1!==qe();){let t;switch(qe()){case 23:t=ci();break;case 112:case 97:case 106:t=ht();break;case 41:t=tt((()=>9===We()&&59!==We()))?Mr():_i();break;case 9:case 11:if(tt((()=>59!==We()))){t=gn();break}default:t=_i()}e&&_t(e)?e.push(t):e?e=[e,t]:(e=t,1!==qe()&&Le(Ea.Unexpected_token))}const t=_t(e)?St(j(e),o):Sn.checkDefined(e),n=K(t);St(n,o),a=xt([n],o),s=mt(1,Ea.Unexpected_token)}const c=de(e,2,6,!1,a,s,d,gt);i&&ue(c),c.nodeCount=x,c.identifierCount=k,c.identifiers=S,c.parseDiagnostics=PS(h,c),y&&(c.jsDocDiagnostics=PS(y,c));const l=c;return ce(),l}function se(e,r,i,l,_,y){switch(t=Ed.getNodeConstructor(),n=Ed.getTokenConstructor(),o=Ed.getIdentifierConstructor(),a=Ed.getPrivateIdentifierConstructor(),s=Ed.getSourceFileConstructor(),u=ua(e),p=r,f=i,v=l,m=_,g=zS(_),h=[],T=0,S=new Map,k=0,x=0,d=0,ne=!0,m){case 1:case 2:w=524288;break;case 6:w=134742016;break;default:w=0}ie=!1,c.setText(p),c.setOnError(Be),c.setScriptTarget(f),c.setLanguageVariant(g),c.setScriptKind(m),c.setJSDocParsingMode(y)}function ce(){c.clearCommentDirectives(),c.setText(""),c.setOnError(void 0),c.setScriptKind(0),c.setJSDocParsingMode(0),p=void 0,f=void 0,v=void 0,m=void 0,g=void 0,d=0,h=void 0,y=void 0,T=0,S=void 0,C=void 0,ne=!0}e.parseSourceFile=function(e,t,n,o,a=!1,s,l,_=0){var f;if(6===(s=zk(e,s))){const s=ae(e,t,n,o,a);return PL(s,null==(f=s.statements[0])?void 0:f.expression,s.parseDiagnostics,!1,void 0),s.referencedFiles=r,s.typeReferenceDirectives=r,s.libReferenceDirectives=r,s.amdDependencies=r,s.hasNoDefaultLib=!1,s.pragmas=i,s}se(e,t,n,o,s,_);const m=function(e,t,n,r,i){const o=oO(u);o&&(w|=33554432);d=w,We();const a=Qt(0,Ii);Sn.assert(1===qe());const s=ze(),l=_e(ht(),s),_=de(u,e,n,o,a,l,d,r);aO(_,p),sO(_,f),_.commentDirectives=c.getCommentDirectives(),_.nodeCount=x,_.identifierCount=k,_.identifiers=S,_.parseDiagnostics=PS(h,_),_.jsDocParsingMode=i,y&&(_.jsDocDiagnostics=PS(y,_));t&&ue(_);return _;function f(e,t,n){h.push(NS(u,p,e,t,n))}}(n,a,s,l||QI,_);return ce(),m},e.parseIsolatedEntityName=function(e,t){se("",e,t,void 0,1,0),We();const n=cn(!0),r=1===qe()&&!h.length;return ce(),r?n:void 0},e.parseJsonText=ae;let le=!1;function _e(e,t){if(!t)return e;Sn.assert(!e.jsDoc);const n=G(gm(e,p),(t=>Lo.parseJSDocComment(e,t.pos,t.end-t.pos)));return n.length&&(e.jsDoc=n),le&&(le=!1,e.flags|=536870912),e}function ue(e){OT(e,!0)}function de(e,t,n,r,i,o,a,s){let l=N.createSourceFile(i,o,a);return PT(l,0,p.length),_(l),!r&&tO(l)&&67108864&l.transformFlags&&(l=function(e){const t=v,n=bI.createSyntaxCursor(e);v={currentNode:function(e){const t=n.currentNode(e);return ne&&t&&s(t)&&(t.intersectsChange=!0),t}};const r=[],i=h;h=[];let o=0,a=l(e.statements,0);for(;-1!==a;){const t=e.statements[o],n=e.statements[a];be(r,e.statements,o,a),o=_(e.statements,a);const s=P(i,(e=>e.start>=t.pos)),u=s>=0?P(i,(e=>e.start>=n.pos),s):-1;s>=0&&be(h,i,s,u>=0?u:void 0),et((()=>{const t=w;for(w|=65536,c.resetTokenState(n.pos),We();1!==qe();){const t=c.getTokenFullStart(),n=Yt(0,Ii);if(r.push(n),t===c.getTokenFullStart()&&We(),o>=0){const t=e.statements[o];if(n.end===t.pos)break;n.end>t.pos&&(o=_(e.statements,o+1))}}w=t}),2),a=o>=0?l(e.statements,o):-1}if(o>=0){const t=e.statements[o];be(r,e.statements,o);const n=P(i,(e=>e.start>=t.pos));n>=0&&be(h,i,n)}return v=t,N.updateSourceFile(e,cI(D(r),e.statements));function s(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function l(e,t){for(let n=t;n<e.length;n++)if(s(e[n]))return n;return-1}function _(e,t){for(let n=t;n<e.length;n++)if(!s(e[n]))return n;return-1}}(l),_(l)),l;function _(i){i.text=p,i.bindDiagnostics=[],i.bindSuggestionDiagnostics=void 0,i.languageVersion=t,i.fileName=e,i.languageVariant=zS(n),i.isDeclarationFile=r,i.scriptKind=n,s(i),i.setExternalModuleIndicator=s}}function pe(e,t){e?w|=t:w&=~t}function fe(e){pe(e,8192)}function me(e){pe(e,16384)}function ge(e){pe(e,32768)}function ye(e){pe(e,65536)}function ve(e,t){const n=e&w;if(n){pe(!1,n);const e=t();return pe(!0,n),e}return t()}function xe(e,t){const n=e&~w;if(n){pe(!0,n);const e=t();return pe(!1,n),e}return t()}function Se(e){return ve(8192,e)}function ke(e){return ve(131072,e)}function Te(e){return xe(131072,e)}function Ce(e){return xe(65536,e)}function we(e){return ve(65536,e)}function Ne(e){return 0!=(w&e)}function Fe(){return Ne(16384)}function Pe(){return Ne(8192)}function Ee(){return Ne(131072)}function Ie(){return Ne(32768)}function Oe(){return Ne(65536)}function Le(e,...t){return Me(c.getTokenStart(),c.getTokenEnd(),e,...t)}function je(e,t,n,...r){const i=Ae(h);let o;return i&&e===i.start||(o=NS(u,p,e,t,n,...r),h.push(o)),ie=!0,o}function Me(e,t,n,...r){return je(e,t-e,n,...r)}function Re(e,t,...n){Me(e.pos,e.end,t,...n)}function Be(e,t,n){je(c.getTokenEnd(),t,e,n)}function Je(){return c.getTokenFullStart()}function ze(){return c.hasPrecedingJSDocComment()}function qe(){return b}function Ue(){return b=c.scan()}function Ve(e){return We(),e()}function We(){return hy(b)&&(c.hasUnicodeEscape()||c.hasExtendedUnicodeEscape())&&Me(c.getTokenStart(),c.getTokenEnd(),Ea.Keywords_cannot_contain_escape_characters),Ue()}function He(){return b=c.scanJsDocToken()}function $e(e){return b=c.scanJSDocCommentTextToken(e)}function Ke(){return b=c.reScanGreaterToken()}function Ge(e){return b=c.reScanTemplateToken(e)}function Xe(){return b=c.reScanLessThanToken()}function Qe(){return b=c.reScanHashToken()}function Ye(){return b=c.scanJsxIdentifier()}function Ze(){return b=c.scanJsxToken()}function et(e,t){const n=b,r=h.length,i=ie,o=w,a=0!==t?c.lookAhead(e):c.tryScan(e);return Sn.assert(o===w),a&&0===t||(b=n,2!==t&&(h.length=r),ie=i),a}function tt(e){return et(e,1)}function nt(e){return et(e,0)}function rt(){return 80===qe()||qe()>118}function it(){return 80===qe()||(127!==qe()||!Fe())&&((135!==qe()||!Oe())&&qe()>118)}function ot(e,t,n=!0){return qe()===e?(n&&We(),!0):(t?Le(t):Le(Ea._0_expected,ts(e)),!1)}e.fixupParentReferences=ue;const at=Object.keys(Oa).filter((e=>e.length>2));function st(e){if(nF(e))return void Me(ys(p,e.template.pos),e.template.end,Ea.Module_declaration_names_may_only_use_or_quoted_strings);const t=HN(e)?Dc(e):void 0;if(!t||!Os(t,f))return void Le(Ea._0_expected,ts(27));const n=ys(p,e.pos);switch(t){case"const":case"let":case"var":return void Me(n,e.end,Ea.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void ct(Ea.Interface_name_cannot_be_0,Ea.Interface_must_be_given_a_name,19);case"is":return void Me(n,c.getTokenStart(),Ea.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void ct(Ea.Namespace_name_cannot_be_0,Ea.Namespace_must_be_given_a_name,19);case"type":return void ct(Ea.Type_alias_name_cannot_be_0,Ea.Type_alias_must_be_given_a_name,64)}const r=Wt(t,at,(e=>e))??function(e){for(const t of at)if(e.length>t.length+2&&an(e,t))return`${t} ${e.slice(t.length)}`;return}(t);r?Me(n,e.end,Ea.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==qe()&&Me(n,e.end,Ea.Unexpected_keyword_or_identifier)}function ct(e,t,n){qe()===n?Le(t):Le(e,c.getTokenValue())}function lt(e){return qe()===e?(He(),!0):(Sn.assert(vy(e)),Le(Ea._0_expected,ts(e)),!1)}function ut(e,t,n,r){if(qe()===t)return void We();const i=Le(Ea._0_expected,ts(t));n&&i&&pT(i,NS(u,p,r,1,Ea.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ts(e),ts(t)))}function dt(e){return qe()===e&&(We(),!0)}function pt(e){if(qe()===e)return ht()}function ft(e){if(qe()===e)return function(){const e=Je(),t=qe();return He(),St(L(t),e)}()}function mt(e,t,n){return pt(e)||kt(e,!1,t||Ea._0_expected,n||ts(e))}function ht(){const e=Je(),t=qe();return We(),St(L(t),e)}function yt(){return 27===qe()||(20===qe()||1===qe()||c.hasPrecedingLineBreak())}function vt(){return!!yt()&&(27===qe()&&We(),!0)}function bt(){return vt()||ot(27)}function xt(e,t,n,r){const i=D(e,r);return FT(i,t,n??c.getTokenFullStart()),i}function St(e,t,n){return FT(e,t,n??c.getTokenFullStart()),w&&(e.flags|=w),ie&&(ie=!1,e.flags|=262144),e}function kt(e,t,n,...r){t?je(c.getTokenFullStart(),0,n,...r):n&&Le(n,...r);const i=Je();return St(80===e?I("",void 0):Ql(e)?N.createTemplateLiteralLikeNode(e,"","",void 0):9===e?F("",void 0):11===e?E("",void 0):282===e?N.createMissingDeclaration():L(e),i)}function Tt(e){let t=S.get(e);return void 0===t&&S.set(e,t=e),t}function Ct(e,t,n){if(e){k++;const e=Je(),t=qe(),n=Tt(c.getTokenValue()),r=c.hasExtendedUnicodeEscape();return Ue(),St(I(n,t,r),e)}if(81===qe())return Le(n||Ea.Private_identifiers_are_not_allowed_outside_class_bodies),Ct(!0);if(0===qe()&&c.tryScan((()=>80===c.reScanInvalidIdentifier())))return Ct(!0);k++;const r=1===qe(),i=c.isReservedWord(),o=c.getTokenText(),a=i?Ea.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:Ea.Identifier_expected;return kt(80,r,t||a,o)}function wt(e){return Ct(rt(),void 0,e)}function Nt(e,t){return Ct(it(),e,t)}function Dt(e){return Ct(Qa(qe()),e)}function Ft(){return(c.hasUnicodeEscape()||c.hasExtendedUnicodeEscape())&&Le(Ea.Unicode_escape_sequence_cannot_appear_here),Ct(Qa(qe()))}function Pt(){return Qa(qe())||11===qe()||9===qe()}function Et(e){if(11===qe()||9===qe()){const e=gn();return e.text=Tt(e.text),e}return e&&23===qe()?function(){const e=Je();ot(23);const t=Se(kr);return ot(24),St(N.createComputedPropertyName(t),e)}():81===qe()?It():Dt()}function At(){return Et(!0)}function It(){const e=Je(),t=O(Tt(c.getTokenValue()));return We(),St(t,e)}function Ot(e){return qe()===e&&nt(jt)}function Lt(){return We(),!c.hasPrecedingLineBreak()&&Bt()}function jt(){switch(qe()){case 87:return 94===We();case 95:return We(),90===qe()?tt(Jt):156===qe()?tt(Rt):Mt();case 90:return Jt();case 126:case 139:case 153:return We(),Bt();default:return Lt()}}function Mt(){return 60===qe()||42!==qe()&&130!==qe()&&19!==qe()&&Bt()}function Rt(){return We(),Mt()}function Bt(){return 23===qe()||19===qe()||42===qe()||26===qe()||Pt()}function Jt(){return We(),86===qe()||100===qe()||120===qe()||60===qe()||128===qe()&&tt(xi)||134===qe()&&tt(Si)}function zt(e,t){if(Zt(e))return!0;switch(e){case 0:case 1:case 3:return!(27===qe()&&t)&&wi();case 2:return 84===qe()||90===qe();case 4:return tt(Jn);case 5:return tt(to)||27===qe()&&!t;case 6:return 23===qe()||Pt();case 12:switch(qe()){case 23:case 42:case 26:case 25:return!0;default:return Pt()}case 18:return Pt();case 9:return 23===qe()||26===qe()||Pt();case 24:return Qa(qe())||11===qe();case 7:return 19===qe()?tt(qt):t?it()&&!$t():xr()&&!$t();case 8:return qi();case 10:return 28===qe()||26===qe()||qi();case 19:return 103===qe()||87===qe()||it();case 15:switch(qe()){case 28:case 25:return!0}case 11:return 26===qe()||Sr();case 16:return Fn(!1);case 17:return Fn(!0);case 20:case 21:return 28===qe()||or();case 22:return go();case 23:return(161!==qe()||!tt(Mi))&&Qa(qe());case 13:return Qa(qe())||19===qe();case 14:case 25:return!0;case 26:return Sn.fail("ParsingContext.Count used as a context");default:Sn.assertNever(e,"Non-exhaustive case in 'isListElement'.")}}function qt(){if(Sn.assert(19===qe()),20===We()){const e=We();return 28===e||19===e||96===e||119===e}return!0}function Ut(){return We(),it()}function Vt(){return We(),Qa(qe())}function Ht(){return We(),Ya(qe())}function $t(){return(119===qe()||96===qe())&&tt(Kt)}function Kt(){return We(),Sr()}function Gt(){return We(),or()}function Xt(e){if(1===qe())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 20===qe();case 3:return 20===qe()||84===qe()||90===qe();case 7:return 19===qe()||96===qe()||119===qe();case 8:return function(){if(yt())return!0;if(Ar(qe()))return!0;if(39===qe())return!0;return!1}();case 19:return 32===qe()||21===qe()||19===qe()||96===qe()||119===qe();case 11:return 22===qe()||27===qe();case 15:case 21:case 10:return 24===qe();case 17:case 16:case 18:return 22===qe()||24===qe();case 20:return 28!==qe();case 22:return 19===qe()||20===qe();case 13:return 32===qe()||44===qe();case 14:return 30===qe()&&tt(ko);default:return!1}}function Qt(e,t){const n=T;T|=1<<e;const r=[],i=Je();for(;!Xt(e);)if(zt(e,!1))r.push(Yt(e,t));else if(tn(e))break;return T=n,xt(r,i)}function Yt(e,t){const n=Zt(e);return n?en(n):t()}function Zt(e,t){var n;if(!v||!function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(e)||ie)return;const r=v.currentNode(t??c.getTokenFullStart());if(Ip(r)||r.intersectsChange||Tp(r))return;return(101441536&r.flags)===w&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:const t=e;return!(80===t.name.kind&&"constructor"===t.name.escapedText)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 296:case 297:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}(e);case 6:return function(e){return 306===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}(e);case 8:return function(e){if(260!==e.kind)return!1;const t=e;return void 0===t.initializer}(e);case 17:case 16:return function(e){if(169!==e.kind)return!1;const t=e;return void 0===t.initializer}(e)}return!1}(r,e)?(Nh(r)&&(null==(n=r.jsDoc)?void 0:n.jsDocCache)&&(r.jsDoc.jsDocCache=void 0),r):void 0}function en(e){return c.resetTokenState(e.end),We(),e}function tn(e){return function(e){switch(e){case 0:return 90===qe()?Le(Ea._0_expected,ts(95)):Le(Ea.Declaration_or_statement_expected);case 1:return Le(Ea.Declaration_or_statement_expected);case 2:return Le(Ea.case_or_default_expected);case 3:return Le(Ea.Statement_expected);case 18:case 4:return Le(Ea.Property_or_signature_expected);case 5:return Le(Ea.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Le(Ea.Enum_member_expected);case 7:return Le(Ea.Expression_expected);case 8:return hy(qe())?Le(Ea._0_is_not_allowed_as_a_variable_declaration_name,ts(qe())):Le(Ea.Variable_declaration_expected);case 9:return Le(Ea.Property_destructuring_pattern_expected);case 10:return Le(Ea.Array_element_destructuring_pattern_expected);case 11:return Le(Ea.Argument_expression_expected);case 12:return Le(Ea.Property_assignment_expected);case 15:return Le(Ea.Expression_or_comma_expected);case 17:return Le(Ea.Parameter_declaration_expected);case 16:return hy(qe())?Le(Ea._0_is_not_allowed_as_a_parameter_name,ts(qe())):Le(Ea.Parameter_declaration_expected);case 19:return Le(Ea.Type_parameter_declaration_expected);case 20:return Le(Ea.Type_argument_expected);case 21:return Le(Ea.Type_expected);case 22:return Le(Ea.Unexpected_token_expected);case 23:return 161===qe()?Le(Ea._0_expected,"}"):Le(Ea.Identifier_expected);case 13:case 14:case 25:return Le(Ea.Identifier_expected);case 24:return Le(Ea.Identifier_or_string_literal_expected);case 26:return Sn.fail("ParsingContext.Count used as a context");default:Sn.assertNever(e)}}(e),!!function(){Sn.assert(T,"Missing parsing context");for(let e=0;e<26;e++)if(T&1<<e&&(zt(e,!0)||Xt(e)))return!0;return!1}()||(We(),!1)}function nn(e,t,n){const r=T;T|=1<<e;const i=[],o=Je();let a=-1;for(;;)if(zt(e,!1)){const o=c.getTokenFullStart(),s=Yt(e,t);if(!s)return void(T=r);if(i.push(s),a=c.getTokenStart(),dt(28))continue;if(a=-1,Xt(e))break;ot(28,rn(e)),n&&27===qe()&&!c.hasPrecedingLineBreak()&&We(),o===c.getTokenFullStart()&&We()}else{if(Xt(e))break;if(tn(e))break}return T=r,xt(i,o,void 0,a>=0)}function rn(e){return 6===e?Ea.An_enum_member_name_must_be_followed_by_a_or:void 0}function on(){const e=xt([],Je());return e.isMissingList=!0,e}function sn(e,t,n,r){if(ot(n)){const n=nn(e,t);return ot(r),n}return on()}function cn(e,t){const n=Je();let r=e?Dt(t):Nt(t);for(;dt(25)&&30!==qe();)r=St(N.createQualifiedName(r,_n(e,!1,!0)),n);return r}function ln(e,t){return St(N.createQualifiedName(e,t),e.pos)}function _n(e,t,n){if(c.hasPrecedingLineBreak()&&Qa(qe())){if(tt(bi))return kt(80,!0,Ea.Identifier_expected)}if(81===qe()){const e=It();return t?e:kt(80,!0,Ea.Identifier_expected)}return e?n?Dt():Ft():Nt()}function un(e){const t=Je();return St(N.createTemplateExpression(hn(e),function(e){const t=Je(),n=[];let r;do{r=mn(e),n.push(r)}while(17===r.literal.kind);return xt(n,t)}(e)),t)}function dn(){const e=Je();return St(N.createTemplateLiteralType(hn(!1),function(){const e=Je(),t=[];let n;do{n=pn(),t.push(n)}while(17===n.literal.kind);return xt(t,e)}()),e)}function pn(){const e=Je();return St(N.createTemplateLiteralTypeSpan(vr(),fn(!1)),e)}function fn(e){return 20===qe()?(Ge(e),function(){const e=yn(qe());return Sn.assert(17===e.kind||18===e.kind,"Template fragment has wrong token kind"),e}()):mt(18,Ea._0_expected,ts(20))}function mn(e){const t=Je();return St(N.createTemplateSpan(Se(kr),fn(e)),t)}function gn(){return yn(qe())}function hn(e){!e&&26656&c.getTokenFlags()&&Ge(!1);const t=yn(qe());return Sn.assert(16===t.kind,"Template head has wrong token kind"),t}function yn(e){const t=Je(),n=Ql(e)?N.createTemplateLiteralLikeNode(e,c.getTokenValue(),function(e){const t=15===e||18===e,n=c.getTokenText();return n.substring(1,n.length-(c.isUnterminated()?0:t?1:2))}(e),7176&c.getTokenFlags()):9===e?F(c.getTokenValue(),c.getNumericLiteralFlags()):11===e?E(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):Kl(e)?A(e,c.getTokenValue()):Sn.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),We(),St(n,t)}function vn(){return cn(!0,Ea.Type_expected)}function bn(){if(!c.hasPrecedingLineBreak()&&30===Xe())return sn(20,vr,30,32)}function xn(){const e=Je();return St(N.createTypeReferenceNode(vn(),bn()),e)}function kn(e){switch(e.kind){case 183:return Ip(e.typeName);case 184:case 185:{const{parameters:t,type:n}=e;return!!t.isMissingList||kn(n)}case 196:return kn(e.type);default:return!1}}function Tn(){const e=Je();return We(),St(N.createThisTypeNode(),e)}function Cn(){const e=Je();let t;return 110!==qe()&&105!==qe()||(t=Dt(),ot(59)),St(N.createParameterDeclaration(void 0,void 0,t,void 0,wn(),void 0),e)}function wn(){c.setInJSDocType(!0);const e=Je();if(dt(144)){const t=N.createJSDocNamepathType(void 0);e:for(;;)switch(qe()){case 20:case 1:case 28:case 5:break e;default:He()}return c.setInJSDocType(!1),St(t,e)}const t=dt(26);let n=hr();return c.setInJSDocType(!1),t&&(n=St(N.createJSDocVariadicType(n),e)),64===qe()?(We(),St(N.createJSDocOptionalType(n),e)):n}function Nn(){const e=Je(),t=ao(!1,!0),n=Nt();let r,i;dt(96)&&(or()||!Sr()?r=vr():i=Rr());const o=dt(64)?vr():void 0,a=N.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,St(a,e)}function Dn(){if(30===qe())return sn(19,Nn,30,32)}function Fn(e){return 26===qe()||qi()||u_(qe())||60===qe()||or(!e)}function Pn(e){return En(e)}function En(e,t=!0){const n=Je(),r=ze(),i=e?Ce((()=>ao(!0))):we((()=>ao(!0)));if(110===qe()){const e=N.createParameterDeclaration(i,void 0,Ct(!0),void 0,br(),void 0),t=De(i);return t&&Re(t,Ea.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),_e(St(e,n),r)}const o=ne;ne=!1;const a=pt(26);if(!t&&!rt()&&23!==qe()&&19!==qe())return;const s=_e(St(N.createParameterDeclaration(i,a,function(e){const t=Ui(Ea.Private_identifiers_cannot_be_used_as_parameters);return 0===gp(t)&&!re(e)&&u_(qe())&&We(),t}(i),pt(58),br(),Tr()),n),r);return ne=o,s}function An(e,t){if(function(e,t){if(39===e)return ot(e),!0;if(dt(59))return!0;if(t&&39===qe())return Le(Ea._0_expected,ts(59)),We(),!0;return!1}(e,t))return ke(hr)}function In(e,t){const n=Fe(),r=Oe();me(!!(1&e)),ye(!!(2&e));const i=32&e?nn(17,Cn):nn(16,(()=>t?Pn(r):En(r,!1)));return me(n),ye(r),i}function On(e){if(!ot(21))return on();const t=In(e,!0);return ot(22),t}function Ln(){dt(28)||bt()}function jn(e){const t=Je(),n=ze();180===e&&ot(105);const r=Dn(),i=On(4),o=An(59,!0);Ln();return _e(St(179===e?N.createCallSignature(r,i,o):N.createConstructSignature(r,i,o),t),n)}function Mn(){return 23===qe()&&tt(Rn)}function Rn(){if(We(),26===qe()||24===qe())return!0;if(u_(qe())){if(We(),it())return!0}else{if(!it())return!1;We()}return 59===qe()||28===qe()||58===qe()&&(We(),59===qe()||28===qe()||24===qe())}function Bn(e,t,n){const r=sn(16,(()=>Pn(!1)),23,24),i=br();Ln();return _e(St(N.createIndexSignature(n,r,i),e),t)}function Jn(){if(21===qe()||30===qe()||139===qe()||153===qe())return!0;let e=!1;for(;u_(qe());)e=!0,We();return 23===qe()||(Pt()&&(e=!0,We()),!!e&&(21===qe()||30===qe()||58===qe()||59===qe()||28===qe()||yt()))}function zn(){if(21===qe()||30===qe())return jn(179);if(105===qe()&&tt(qn))return jn(180);const e=Je(),t=ze(),n=ao(!1);return Ot(139)?eo(e,t,n,177,4):Ot(153)?eo(e,t,n,178,4):Mn()?Bn(e,t,n):function(e,t,n){const r=At(),i=pt(58);let o;if(21===qe()||30===qe()){const e=Dn(),t=On(4),a=An(59,!0);o=N.createMethodSignature(n,r,i,e,t,a)}else{const e=br();o=N.createPropertySignature(n,r,i,e),64===qe()&&(o.initializer=Tr())}return Ln(),_e(St(o,e),t)}(e,t,n)}function qn(){return We(),21===qe()||30===qe()}function Un(){return 25===We()}function Vn(){switch(We()){case 21:case 30:case 25:return!0}return!1}function Wn(){let e;return ot(19)?(e=Qt(4,zn),ot(20)):e=on(),e}function Hn(){return We(),40===qe()||41===qe()?148===We():(148===qe()&&We(),23===qe()&&Ut()&&103===We())}function $n(){const e=Je();let t;ot(19),148!==qe()&&40!==qe()&&41!==qe()||(t=ht(),148!==t.kind&&ot(148)),ot(23);const n=function(){const e=Je(),t=Dt();ot(103);const n=vr();return St(N.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),r=dt(130)?vr():void 0;let i;ot(24),58!==qe()&&40!==qe()&&41!==qe()||(i=ht(),58!==i.kind&&ot(58));const o=br();bt();const a=Qt(4,zn);return ot(20),St(N.createMappedTypeNode(t,n,r,i,o,a),e)}function Kn(){const e=Je();if(dt(26))return St(N.createRestTypeNode(vr()),e);const t=vr();if(iE(t)&&t.pos===t.type.pos){const e=N.createOptionalTypeNode(t.type);return cI(e,t),e.flags=t.flags,e}return t}function Gn(){return 59===We()||58===qe()&&59===We()}function Xn(){return 26===qe()?Qa(We())&&Gn():Qa(qe())&&Gn()}function Qn(){if(tt(Xn)){const e=Je(),t=ze(),n=pt(26),r=Dt(),i=pt(58);ot(59);const o=Kn();return _e(St(N.createNamedTupleMember(n,r,i,o),e),t)}return Kn()}function Yn(){const e=Je(),t=ze(),n=function(){let e;if(128===qe()){const t=Je();We(),e=xt([St(L(128),t)],t)}return e}(),r=dt(105);Sn.assert(!n||r,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const i=Dn(),o=On(4),a=An(39,!1);return _e(St(r?N.createConstructorTypeNode(n,i,o,a):N.createFunctionTypeNode(i,o,a),e),t)}function Zn(){const e=ht();return 25===qe()?void 0:e}function er(e){const t=Je();e&&We();let n=112===qe()||97===qe()||106===qe()?ht():yn(qe());return e&&(n=St(N.createPrefixUnaryExpression(41,n),t)),St(N.createLiteralTypeNode(n),t)}function tr(){return We(),102===qe()}function nr(){d|=4194304;const e=Je(),t=dt(114);ot(102),ot(21);const n=vr();let r;if(dt(28)){const e=c.getTokenStart();ot(19);const t=qe();if(118===t||132===t?We():Le(Ea._0_expected,ts(118)),ot(59),r=Co(t,!0),!ot(20)){const t=Ae(h);t&&t.code===Ea._0_expected.code&&pT(t,NS(u,p,e,1,Ea.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}ot(22);const i=dt(25)?vn():void 0,o=bn();return St(N.createImportTypeNode(n,r,i,o,t),e)}function rr(){return We(),9===qe()||10===qe()}function ir(){switch(qe()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return nt(Zn)||xn();case 67:c.reScanAsteriskEqualsToken();case 42:return function(){const e=Je();return We(),St(N.createJSDocAllType(),e)}();case 61:c.reScanQuestionToken();case 58:return function(){const e=Je();return We(),28===qe()||20===qe()||22===qe()||32===qe()||64===qe()||52===qe()?St(N.createJSDocUnknownType(),e):St(N.createJSDocNullableType(vr(),!1),e)}();case 100:return function(){const e=Je(),t=ze();if(tt(xo)){We();const n=On(36),r=An(59,!1);return _e(St(N.createJSDocFunctionType(n,r),e),t)}return St(N.createTypeReferenceNode(Dt(),void 0),e)}();case 54:return function(){const e=Je();return We(),St(N.createJSDocNonNullableType(ir(),!1),e)}();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return er();case 41:return tt(rr)?er(!0):xn();case 116:return ht();case 110:{const t=Tn();return 142!==qe()||c.hasPrecedingLineBreak()?t:(e=t,We(),St(N.createTypePredicateNode(void 0,e,vr()),e.pos))}case 114:return tt(tr)?nr():function(){const e=Je();ot(114);const t=cn(!0),n=c.hasPrecedingLineBreak()?void 0:mo();return St(N.createTypeQueryNode(t,n),e)}();case 19:return tt(Hn)?$n():function(){const e=Je();return St(N.createTypeLiteralNode(Wn()),e)}();case 23:return function(){const e=Je();return St(N.createTupleTypeNode(sn(21,Qn,23,24)),e)}();case 21:return function(){const e=Je();ot(21);const t=vr();return ot(22),St(N.createParenthesizedType(t),e)}();case 102:return nr();case 131:return tt(bi)?function(){const e=Je(),t=mt(131),n=110===qe()?Tn():Nt(),r=dt(142)?vr():void 0;return St(N.createTypePredicateNode(t,n,r),e)}():xn();case 16:return dn();default:return xn()}var e}function or(e){switch(qe()){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&&tt(rr);case 21:return!e&&tt(ar);default:return it()}}function ar(){return We(),22===qe()||Fn(!1)||or()}function sr(){const e=Je();let t=ir();for(;!c.hasPrecedingLineBreak();)switch(qe()){case 54:We(),t=St(N.createJSDocNonNullableType(t,!0),e);break;case 58:if(tt(Gt))return t;We(),t=St(N.createJSDocNullableType(t,!0),e);break;case 23:if(ot(23),or()){const n=vr();ot(24),t=St(N.createIndexedAccessTypeNode(t,n),e)}else ot(24),t=St(N.createArrayTypeNode(t),e);break;default:return t}return t}function cr(){if(dt(96)){const e=Te(vr);if(Ee()||58!==qe())return e}}function lr(){const e=Je();return ot(140),St(N.createInferTypeNode(function(){const e=Je(),t=Nt(),n=nt(cr);return St(N.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}function _r(){const e=qe();switch(e){case 143:case 158:case 148:return function(e){const t=Je();return ot(e),St(N.createTypeOperatorNode(e,_r()),t)}(e);case 140:return lr()}return ke(sr)}function ur(e){if(mr()){const t=Yn();let n;return n=CD(t)?e?Ea.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ea.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?Ea.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:Ea.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Re(t,n),t}}function dr(e,t,n){const r=Je(),i=52===e,o=dt(e);let a=o&&ur(i)||t();if(qe()===e||o){const o=[a];for(;dt(e);)o.push(ur(i)||t());a=St(n(xt(o,r)),r)}return a}function pr(){return dr(51,_r,N.createIntersectionTypeNode)}function fr(){return We(),105===qe()}function mr(){return 30===qe()||(!(21!==qe()||!tt(gr))||(105===qe()||128===qe()&&tt(fr)))}function gr(){if(We(),22===qe()||26===qe())return!0;if(function(){if(u_(qe())&&ao(!1),it()||110===qe())return We(),!0;if(23===qe()||19===qe()){const e=h.length;return Ui(),e===h.length}return!1}()){if(59===qe()||28===qe()||58===qe()||64===qe())return!0;if(22===qe()&&(We(),39===qe()))return!0}return!1}function hr(){const e=Je(),t=it()&&nt(yr),n=vr();return t?St(N.createTypePredicateNode(void 0,t,n),e):n}function yr(){const e=Nt();if(142===qe()&&!c.hasPrecedingLineBreak())return We(),e}function vr(){if(81920&w)return ve(81920,vr);if(mr())return Yn();const e=Je(),t=dr(52,pr,N.createUnionTypeNode);if(!Ee()&&!c.hasPrecedingLineBreak()&&dt(96)){const n=Te(vr);ot(58);const r=ke(vr);ot(59);const i=ke(vr);return St(N.createConditionalTypeNode(t,n,r,i),e)}return t}function br(){return dt(59)?vr():void 0}function xr(){switch(qe()){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 tt(Vn);default:return it()}}function Sr(){if(xr())return!0;switch(qe()){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!!Or()||it()}}function kr(){const e=Ie();e&&ge(!1);const t=Je();let n,r=Cr(!0);for(;n=pt(28);)r=Lr(r,n,Cr(!0),t);return e&&ge(!0),r}function Tr(){return dt(64)?Cr(!0):void 0}function Cr(e){if(function(){if(127===qe())return!!Fe()||tt(ki);return!1}())return function(){const e=Je();return We(),c.hasPrecedingLineBreak()||42!==qe()&&!Sr()?St(N.createYieldExpression(void 0,void 0),e):St(N.createYieldExpression(pt(42),Cr(!0)),e)}();const t=function(e){const t=function(){if(21===qe()||30===qe()||134===qe())return tt(Nr);if(39===qe())return 1;return 0}();if(0===t)return;return 1===t?Fr(!0,!0):nt((()=>function(e){const t=c.getTokenStart();if(null==C?void 0:C.has(t))return;const n=Fr(!1,e);n||(C||(C=new Set)).add(t);return n}(e)))}(e)||function(e){if(134===qe()&&1===tt(Dr)){const t=Je(),n=ze(),r=so();return wr(t,Er(0),e,n,r)}return}(e);if(t)return t;const n=Je(),r=ze(),i=Er(0);return 80===i.kind&&39===qe()?wr(n,i,e,r,void 0):eu(i)&&zb(Ke())?Lr(i,ht(),Cr(e),n):function(e,t,n){const r=pt(58);if(!r)return e;let i;return St(N.createConditionalExpression(e,r,ve(l,(()=>Cr(!1))),i=mt(59),Op(i)?Cr(n):kt(80,!1,Ea._0_expected,ts(59))),t)}(i,n,e)}function wr(e,t,n,r,i){Sn.assert(39===qe(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const o=N.createParameterDeclaration(void 0,void 0,t,void 0,void 0,void 0);St(o,t.pos);const a=xt([o],o.pos,o.end),s=mt(39),c=Pr(!!i,n);return _e(St(N.createArrowFunction(i,void 0,a,void 0,s,c),e),r)}function Nr(){if(134===qe()){if(We(),c.hasPrecedingLineBreak())return 0;if(21!==qe()&&30!==qe())return 0}const e=qe(),t=We();if(21===e){if(22===t){switch(We()){case 39:case 59:case 19:return 1;default:return 0}}if(23===t||19===t)return 2;if(26===t)return 1;if(u_(t)&&134!==t&&tt(Ut))return 130===We()?0:1;if(!it()&&110!==t)return 0;switch(We()){case 59:return 1;case 58:return We(),59===qe()||28===qe()||64===qe()||22===qe()?1:0;case 28:case 64:case 22:return 2}return 0}if(Sn.assert(30===e),!it()&&87!==qe())return 0;if(1===g){return tt((()=>{dt(87);const e=We();if(96===e){switch(We()){case 64:case 32:case 44:return!1;default:return!0}}else if(28===e||64===e)return!0;return!1}))?1:0}return 2}function Dr(){if(134===qe()){if(We(),c.hasPrecedingLineBreak()||39===qe())return 0;const e=Er(0);if(!c.hasPrecedingLineBreak()&&80===e.kind&&39===qe())return 1}return 0}function Fr(e,t){const n=Je(),r=ze(),i=so(),o=re(i,XN)?2:0,a=Dn();let s;if(ot(21)){if(e)s=In(o,e);else{const t=In(o,e);if(!t)return;s=t}if(!ot(22)&&!e)return}else{if(!e)return;s=on()}const c=59===qe(),l=An(59,!1);if(l&&!e&&kn(l))return;let _=l;for(;196===(null==_?void 0:_.kind);)_=_.type;const u=_&&sE(_);if(!e&&39!==qe()&&(u||19!==qe()))return;const d=qe(),p=mt(39),f=39===d||19===d?Pr(re(i,XN),t):Nt();if(!t&&c&&59!==qe())return;return _e(St(N.createArrowFunction(i,a,s,l,p,f),n),r)}function Pr(e,t){if(19===qe())return fi(e?2:0);if(27!==qe()&&100!==qe()&&86!==qe()&&wi()&&(19===qe()||100===qe()||86===qe()||60===qe()||!Sr()))return fi(16|(e?2:0));const n=ne;ne=!1;const r=e?Ce((()=>Cr(t))):we((()=>Cr(t)));return ne=n,r}function Er(e){const t=Je();return Ir(e,Rr(),t)}function Ar(e){return 103===e||165===e}function Ir(e,t,n){for(;;){Ke();const o=rv(qe());if(!(43===qe()?o>=e:o>e))break;if(103===qe()&&Pe())break;if(130===qe()||152===qe()){if(c.hasPrecedingLineBreak())break;{const e=qe();We(),t=152===e?(r=t,i=vr(),St(N.createSatisfiesExpression(r,i),r.pos)):jr(t,vr())}}else t=Lr(t,ht(),Er(o),n)}var r,i;return t}function Or(){return(!Pe()||103!==qe())&&rv(qe())>0}function Lr(e,t,n,r){return St(N.createBinaryExpression(e,t,n),r)}function jr(e,t){return St(N.createAsExpression(e,t),e.pos)}function Mr(){const e=Je();return St(N.createPrefixUnaryExpression(qe(),Ve(Br)),e)}function Rr(){if(function(){switch(qe()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(1!==g)return!1;default:return!0}}()){const e=Je(),t=Jr();return 43===qe()?Ir(rv(qe()),t,e):t}const e=qe(),t=Br();if(43===qe()){const n=ys(p,t.pos),{end:r}=t;216===t.kind?Me(n,r,Ea.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(Sn.assert(vy(e)),Me(n,r,Ea.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,ts(e)))}return t}function Br(){switch(qe()){case 40:case 41:case 55:case 54:return Mr();case 91:return function(){const e=Je();return St(N.createDeleteExpression(Ve(Br)),e)}();case 114:return function(){const e=Je();return St(N.createTypeOfExpression(Ve(Br)),e)}();case 116:return function(){const e=Je();return St(N.createVoidExpression(Ve(Br)),e)}();case 30:return 1===g?Ur(!0,void 0,void 0,!0):function(){Sn.assert(1!==g,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const e=Je();ot(30);const t=vr();ot(32);const n=Br();return St(N.createTypeAssertion(t,n),e)}();case 135:if(135===qe()&&(Oe()||tt(ki)))return function(){const e=Je();return St(N.createAwaitExpression(Ve(Br)),e)}();default:return Jr()}}function Jr(){if(46===qe()||47===qe()){const e=Je();return St(N.createPrefixUnaryExpression(qe(),Ve(zr)),e)}if(1===g&&30===qe()&&tt(Ht))return Ur(!0);const e=zr();if(Sn.assert(eu(e)),(46===qe()||47===qe())&&!c.hasPrecedingLineBreak()){const t=qe();return We(),St(N.createPostfixUnaryExpression(e,t),e.pos)}return e}function zr(){const e=Je();let t;return 102===qe()?tt(qn)?(d|=4194304,t=ht()):tt(Un)?(We(),We(),t=St(N.createMetaProperty(102,Dt()),e),d|=8388608):t=qr():t=108===qe()?function(){const e=Je();let t=ht();if(30===qe()){const e=Je(),n=nt(ii);void 0!==n&&(Me(e,Je(),Ea.super_may_not_use_type_arguments),ei()||(t=N.createExpressionWithTypeArguments(t,n)))}if(21===qe()||25===qe()||23===qe())return t;return mt(25,Ea.super_must_be_followed_by_an_argument_list_or_member_access),St(R(t,_n(!0,!0,!0)),e)}():qr(),ni(e,t)}function qr(){return Zr(Je(),oi(),!0)}function Ur(e,t,n,r=!1){const i=Je(),o=function(e){const t=Je();if(ot(30),32===qe())return Ze(),St(N.createJsxOpeningFragment(),t);const n=Hr(),r=0==(524288&w)?mo():void 0,i=function(){const e=Je();return St(N.createJsxAttributes(Qt(13,Kr)),e)}();let o;32===qe()?(Ze(),o=N.createJsxOpeningElement(n,r,i)):(ot(44),ot(32,void 0,!1)&&(e?We():Ze()),o=N.createJsxSelfClosingElement(n,r,i));return St(o,t)}(e);let a;if(286===o.kind){let t,r=Wr(o);const s=r[r.length-1];if(284===(null==s?void 0:s.kind)&&!uO(s.openingElement.tagName,s.closingElement.tagName)&&uO(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=St(N.createJsxElement(s.openingElement,s.children,St(N.createJsxClosingElement(St(I(""),e,e)),e,e)),s.openingElement.pos,e);r=xt([...r.slice(0,r.length-1),n],r.pos,e),t=s.closingElement}else t=function(e,t){const n=Je();ot(31);const r=Hr();ot(32,void 0,!1)&&(t||!uO(e.tagName,r)?We():Ze());return St(N.createJsxClosingElement(r),n)}(o,e),uO(o.tagName,t.tagName)||(n&&DP(n)&&uO(t.tagName,n.tagName)?Re(o.tagName,Ea.JSX_element_0_has_no_corresponding_closing_tag,Qp(p,o.tagName)):Re(t.tagName,Ea.Expected_corresponding_JSX_closing_tag_for_0,Qp(p,o.tagName)));a=St(N.createJsxElement(o,r,t),i)}else 289===o.kind?a=St(N.createJsxFragment(o,Wr(o),function(e){const t=Je();ot(31),ot(32,Ea.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?We():Ze());return St(N.createJsxJsxClosingFragment(),t)}(e)),i):(Sn.assert(285===o.kind),a=o);if(!r&&e&&30===qe()){const e=void 0===t?a.pos:t,n=nt((()=>Ur(!0,e)));if(n){const t=kt(28,!1);return PT(t,n.pos,0),Me(ys(p,e),n.end,Ea.JSX_expressions_must_have_one_parent_element),St(N.createBinaryExpression(a,t,n),i)}}return a}function Vr(e,t){switch(t){case 1:if(EP(e))Re(e,Ea.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;Me(Math.min(ys(p,t.pos),t.end),t.end,Ea.JSX_element_0_has_no_corresponding_closing_tag,Qp(p,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Je(),t=N.createJsxText(c.getTokenValue(),13===b);return b=c.scanJsxToken(),St(t,e)}();case 19:return $r(!1);case 30:return Ur(!1,void 0,e);default:return Sn.assertNever(t)}}function Wr(e){const t=[],n=Je(),r=T;for(T|=16384;;){const n=Vr(e,b=c.reScanJsxToken());if(!n)break;if(t.push(n),DP(e)&&284===(null==n?void 0:n.kind)&&!uO(n.openingElement.tagName,n.closingElement.tagName)&&uO(e.tagName,n.closingElement.tagName))break}return T=r,xt(t,n)}function Hr(){const e=Je(),t=function(){const e=Je();Ye();const t=110===qe(),n=Ft();if(dt(59))return Ye(),St(N.createJsxNamespacedName(n,Ft()),e);return t?St(N.createToken(110),e):n}();if(MP(t))return t;let n=t;for(;dt(25);)n=St(R(n,_n(!0,!1,!1)),e);return n}function $r(e){const t=Je();if(!ot(19))return;let n,r;return 20!==qe()&&(e||(n=pt(26)),r=kr()),e?ot(20):ot(20,void 0,!1)&&Ze(),St(N.createJsxExpression(n,r),t)}function Kr(){if(19===qe())return function(){const e=Je();ot(19),ot(26);const t=kr();return ot(20),St(N.createJsxSpreadAttribute(t),e)}();const e=Je();return St(N.createJsxAttribute(function(){const e=Je();Ye();const t=Ft();if(dt(59))return Ye(),St(N.createJsxNamespacedName(t,Ft()),e);return t}(),function(){if(64===qe()){if(11===(b=c.scanJsxAttributeValue()))return gn();if(19===qe())return $r(!0);if(30===qe())return Ur(!0);Le(Ea.or_JSX_element_expected)}return}()),e)}function Gr(){return We(),Qa(qe())||23===qe()||ei()}function Xr(e){if(64&e.flags)return!0;if(kF(e)){let t=e.expression;for(;kF(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;kF(e);)e.flags|=64,e=e.expression;return!0}}return!1}function Qr(e,t,n){const r=_n(!0,!0,!0),i=n||Xr(t),o=i?B(t,n,r):R(t,r);if(i&&$N(o.name)&&Re(o.name,Ea.An_optional_chain_cannot_contain_private_identifiers),bF(t)&&t.typeArguments){Me(t.typeArguments.pos-1,ys(p,t.typeArguments.end)+1,Ea.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return St(o,e)}function Yr(e,t,n){let r;if(24===qe())r=kt(80,!0,Ea.An_element_access_expression_should_take_an_argument);else{const e=Se(kr);Fy(e)&&(e.text=Tt(e.text)),r=e}ot(24);return St(n||Xr(t)?z(t,n,r):J(t,r),e)}function Zr(e,t,n){for(;;){let r,i=!1;if(n&&29===qe()&&tt(Gr)?(r=mt(29),i=Qa(qe())):i=dt(25),i)t=Qr(e,t,r);else if(!r&&Ie()||!dt(23)){if(!ei()){if(!r){if(54===qe()&&!c.hasPrecedingLineBreak()){We(),t=St(N.createNonNullExpression(t),e);continue}const n=nt(ii);if(n){t=St(N.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||233!==t.kind?ti(e,t,r,void 0):ti(e,t.expression,r,t.typeArguments)}else t=Yr(e,t,r)}}function ei(){return 15===qe()||16===qe()}function ti(e,t,n,r){const i=N.createTaggedTemplateExpression(t,r,15===qe()?(Ge(!0),gn()):un(!0));return(n||64&t.flags)&&(i.flags|=64),i.questionDotToken=n,St(i,e)}function ni(e,t){for(;;){let n;t=Zr(e,t,!0);const r=pt(29);if(r&&(n=nt(ii),ei()))t=ti(e,t,r,n);else{if(!n&&21!==qe()){if(r){const n=kt(80,!1,Ea.Identifier_expected);t=St(B(t,r,n),e)}break}{r||233!==t.kind||(n=t.typeArguments,t=t.expression);const i=ri();t=St(r||Xr(t)?U(t,r,n,i):q(t,n,i),e)}}}return t}function ri(){ot(21);const e=nn(11,si);return ot(22),e}function ii(){if(0!=(524288&w))return;if(30!==Xe())return;We();const e=nn(20,vr);return 32===Ke()?(We(),e&&function(){switch(qe()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return c.hasPrecedingLineBreak()||Or()||!Sr()}()?e:void 0):void 0}function oi(){switch(qe()){case 15:26656&c.getTokenFlags()&&Ge(!1);case 9:case 10:case 11:return gn();case 110:case 108:case 106:case 112:case 97:return ht();case 21:return function(){const e=Je(),t=ze();ot(21);const n=Se(kr);return ot(22),_e(St(W(n),e),t)}();case 23:return ci();case 19:return _i();case 134:if(!tt(Si))break;return ui();case 60:return function(){const e=Je(),t=ze(),n=ao(!0);if(86===qe())return _o(e,t,n,231);const r=kt(282,!0,Ea.Expression_expected);return NT(r,e),r.modifiers=n,r}();case 86:return _o(Je(),ze(),void 0,231);case 100:return ui();case 105:return function(){const e=Je();if(ot(105),dt(25)){const t=Dt();return St(N.createMetaProperty(105,t),e)}let t,n=Zr(Je(),oi(),!1);233===n.kind&&(t=n.typeArguments,n=n.expression);29===qe()&&Le(Ea.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Qp(p,n));const r=21===qe()?ri():void 0;return St(V(n,t,r),e)}();case 44:case 69:if(14===(b=c.reScanSlashToken()))return gn();break;case 16:return un(!1);case 81:return It()}return Nt(Ea.Expression_expected)}function ai(){return 26===qe()?function(){const e=Je();ot(26);const t=Cr(!0);return St(N.createSpreadElement(t),e)}():28===qe()?St(N.createOmittedExpression(),Je()):Cr(!0)}function si(){return ve(l,ai)}function ci(){const e=Je(),t=c.getTokenStart(),n=ot(23),r=c.hasPrecedingLineBreak(),i=nn(15,ai);return ut(23,24,n,t),St(j(i,r),e)}function li(){const e=Je(),t=ze();if(pt(26)){const n=Cr(!0);return _e(St(N.createSpreadAssignment(n),e),t)}const n=ao(!0);if(Ot(139))return eo(e,t,n,177,0);if(Ot(153))return eo(e,t,n,178,0);const r=pt(42),i=it(),o=At(),a=pt(58),s=pt(54);if(r||21===qe()||30===qe())return Qi(e,t,n,r,o,a,s);let c;if(i&&59!==qe()){const e=pt(64),t=e?Se((()=>Cr(!0))):void 0;c=N.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{ot(59);const e=Se((()=>Cr(!0)));c=N.createPropertyAssignment(o,e)}return c.modifiers=n,c.questionToken=a,c.exclamationToken=s,_e(St(c,e),t)}function _i(){const e=Je(),t=c.getTokenStart(),n=ot(19),r=c.hasPrecedingLineBreak(),i=nn(12,li,!0);return ut(19,20,n,t),St(M(i,r),e)}function ui(){const e=Ie();ge(!1);const t=Je(),n=ze(),r=ao(!1);ot(100);const i=pt(42),o=i?1:0,a=re(r,XN)?2:0,s=o&&a?xe(81920,di):o?function(e){return xe(16384,e)}(di):a?Ce(di):di();const c=Dn(),l=On(o|a),_=An(59,!1),u=fi(o|a);ge(e);return _e(St(N.createFunctionExpression(r,i,s,c,l,_,u),t),n)}function di(){return rt()?wt():void 0}function pi(e,t){const n=Je(),r=ze(),i=c.getTokenStart(),o=ot(19,t);if(o||e){const e=c.hasPrecedingLineBreak(),t=Qt(1,Ii);ut(19,20,o,i);const a=_e(St(H(t,e),n),r);return 64===qe()&&(Le(Ea.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),We()),a}{const e=on();return _e(St(H(e,void 0),n),r)}}function fi(e,t){const n=Fe();me(!!(1&e));const r=Oe();ye(!!(2&e));const i=ne;ne=!1;const o=Ie();o&&ge(!1);const a=pi(!!(16&e),t);return o&&ge(!0),ne=i,me(n),ye(r),a}function mi(){const e=Je(),t=ze();ot(99);const n=pt(135);let r;let i;if(ot(21),27!==qe()&&(r=115===qe()||121===qe()||87===qe()||160===qe()&&tt(Di)||135===qe()&&tt(Ei)?Hi(!0):xe(8192,kr)),n?ot(165):dt(165)){const e=Se((()=>Cr(!0)));ot(22),i=Z(n,r,e,Ii())}else if(dt(103)){const e=Se(kr);ot(22),i=N.createForInStatement(r,e,Ii())}else{ot(27);const e=27!==qe()&&22!==qe()?Se(kr):void 0;ot(27);const t=22!==qe()?Se(kr):void 0;ot(22),i=Y(r,e,t,Ii())}return _e(St(i,e),t)}function gi(e){const t=Je(),n=ze();ot(252===e?83:88);const r=yt()?void 0:Nt();bt();return _e(St(252===e?N.createBreakStatement(r):N.createContinueStatement(r),t),n)}function hi(){return 84===qe()?function(){const e=Je(),t=ze();ot(84);const n=Se(kr);ot(59);const r=Qt(3,Ii);return _e(St(N.createCaseClause(n,r),e),t)}():function(){const e=Je();ot(90),ot(59);const t=Qt(3,Ii);return St(N.createDefaultClause(t),e)}()}function yi(){const e=Je(),t=ze();ot(109),ot(21);const n=Se(kr);ot(22);const r=function(){const e=Je();ot(19);const t=Qt(2,hi);return ot(20),St(N.createCaseBlock(t),e)}();return _e(St(N.createSwitchStatement(n,r),e),t)}function vi(){const e=Je(),t=ze();ot(113);const n=pi(!1),r=85===qe()?function(){const e=Je();let t;ot(85),dt(21)?(t=Wi(),ot(22)):t=void 0;const n=pi(!1);return St(N.createCatchClause(t,n),e)}():void 0;let i;return r&&98!==qe()||(ot(98,Ea.catch_or_finally_expected),i=pi(!1)),_e(St(N.createTryStatement(n,r,i),e),t)}function bi(){return We(),Qa(qe())&&!c.hasPrecedingLineBreak()}function xi(){return We(),86===qe()&&!c.hasPrecedingLineBreak()}function Si(){return We(),100===qe()&&!c.hasPrecedingLineBreak()}function ki(){return We(),(Qa(qe())||9===qe()||10===qe()||11===qe())&&!c.hasPrecedingLineBreak()}function Ti(){for(;;)switch(qe()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Pi();case 135:return Ai();case 120:case 156:return We(),!c.hasPrecedingLineBreak()&&it();case 144:case 145:return Ri();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const e=qe();if(We(),c.hasPrecedingLineBreak())return!1;if(138===e&&156===qe())return!0;continue;case 162:return We(),19===qe()||80===qe()||95===qe();case 102:return We(),11===qe()||42===qe()||19===qe()||Qa(qe());case 95:let t=We();if(156===t&&(t=tt(We)),64===t||42===t||19===t||90===t||130===t||60===t)return!0;continue;case 126:We();continue;default:return!1}}function Ci(){return tt(Ti)}function wi(){switch(qe()){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:case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 102:return Ci()||tt(Vn);case 87:case 95:return Ci();case 129:case 125:case 123:case 124:case 126:case 148:return Ci()||!tt(bi);default:return Sr()}}function Ni(){return We(),rt()||19===qe()||23===qe()}function Di(){return Fi(!0)}function Fi(e){return We(),(!e||165!==qe())&&((rt()||19===qe())&&!c.hasPrecedingLineBreak())}function Pi(){return tt(Fi)}function Ei(e){return 160===We()&&Fi(e)}function Ai(){return tt(Ei)}function Ii(){switch(qe()){case 27:return function(){const e=Je(),t=ze();return ot(27),_e(St(N.createEmptyStatement(),e),t)}();case 19:return pi(!1);case 115:return Ki(Je(),ze(),void 0);case 121:if(tt(Ni))return Ki(Je(),ze(),void 0);break;case 135:if(Ai())return Ki(Je(),ze(),void 0);break;case 160:if(Pi())return Ki(Je(),ze(),void 0);break;case 100:return Gi(Je(),ze(),void 0);case 86:return lo(Je(),ze(),void 0);case 101:return function(){const e=Je(),t=ze();ot(101);const n=c.getTokenStart(),r=ot(21),i=Se(kr);ut(21,22,r,n);const o=Ii(),a=dt(93)?Ii():void 0;return _e(St(X(i,o,a),e),t)}();case 92:return function(){const e=Je(),t=ze();ot(92);const n=Ii();ot(117);const r=c.getTokenStart(),i=ot(21),o=Se(kr);return ut(21,22,i,r),dt(27),_e(St(N.createDoStatement(n,o),e),t)}();case 117:return function(){const e=Je(),t=ze();ot(117);const n=c.getTokenStart(),r=ot(21),i=Se(kr);ut(21,22,r,n);const o=Ii();return _e(St(Q(i,o),e),t)}();case 99:return mi();case 88:return gi(251);case 83:return gi(252);case 107:return function(){const e=Je(),t=ze();ot(107);const n=yt()?void 0:Se(kr);return bt(),_e(St(N.createReturnStatement(n),e),t)}();case 118:return function(){const e=Je(),t=ze();ot(118);const n=c.getTokenStart(),r=ot(21),i=Se(kr);ut(21,22,r,n);const o=xe(67108864,Ii);return _e(St(N.createWithStatement(i,o),e),t)}();case 109:return yi();case 111:return function(){const e=Je(),t=ze();ot(111);let n=c.hasPrecedingLineBreak()?void 0:Se(kr);return void 0===n&&(k++,n=St(I(""),Je())),vt()||st(n),_e(St(N.createThrowStatement(n),e),t)}();case 113:case 85:case 98:return vi();case 89:return function(){const e=Je(),t=ze();return ot(89),bt(),_e(St(N.createDebuggerStatement(),e),t)}();case 60:return Li();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(Ci())return Li()}return function(){const e=Je();let t,n=ze();const r=21===qe(),i=Se(kr);return HN(i)&&dt(59)?t=N.createLabeledStatement(i,Ii()):(vt()||st(i),t=K(i),r&&(n=!1)),_e(St(t,e),n)}()}function Oi(e){return 138===e.kind}function Li(){const e=Je(),t=ze(),n=ao(!0);if(re(n,Oi)){const r=function(e){return xe(33554432,(()=>{const t=Zt(T,e);if(t)return en(t)}))}(e);if(r)return r;for(const e of n)e.flags|=33554432;return xe(33554432,(()=>ji(e,t,n)))}return ji(e,t,n)}function ji(e,t,n){switch(qe()){case 115:case 121:case 87:case 160:case 135:return Ki(e,t,n);case 100:return Gi(e,t,n);case 86:return lo(e,t,n);case 120:return function(e,t,n){ot(120);const r=Nt(),i=Dn(),o=uo(),a=Wn();return _e(St(N.createInterfaceDeclaration(n,r,i,o,a),e),t)}(e,t,n);case 156:return function(e,t,n){ot(156),c.hasPrecedingLineBreak()&&Le(Ea.Line_break_not_permitted_here);const r=Nt(),i=Dn();ot(64);const o=141===qe()&&nt(Zn)||vr();bt();return _e(St(N.createTypeAliasDeclaration(n,r,i,o),e),t)}(e,t,n);case 94:return function(e,t,n){ot(94);const r=Nt();let i;ot(19)?(i=ve(81920,(()=>nn(6,ho))),ot(20)):i=on();return _e(St(N.createEnumDeclaration(n,r,i),e),t)}(e,t,n);case 162:case 144:case 145:return function(e,t,n){let r=0;if(162===qe())return bo(e,t,n);if(dt(145))r|=32;else if(ot(144),11===qe())return bo(e,t,n);return vo(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){ot(102);const r=c.getTokenFullStart();let i;it()&&(i=Nt());let o,a=!1;161===qe()||"type"!==(null==i?void 0:i.escapedText)||!it()&&42!==qe()&&19!==qe()||(a=!0,i=it()?Nt():void 0);if(i&&28!==qe()&&161!==qe())return function(e,t,n,r,i){ot(64);const o=149===qe()&&tt(xo)?function(){const e=Je();ot(149),ot(21);const t=wo();return ot(22),St(N.createExternalModuleReference(t),e)}():cn(!1);bt();const a=N.createImportEqualsDeclaration(n,i,r,o),s=_e(St(a,e),t);return s}(e,t,n,i,a);(i||42===qe()||19===qe())&&(o=function(e,t,n){let r;e&&!dt(28)||(r=42===qe()?function(){const e=Je();ot(42),ot(130);const t=Nt();return St(N.createNamespaceImport(t),e)}():No(275));return St(N.createImportClause(n,e,r),t)}(i,r,a),ot(161));const s=wo(),l=qe();let _;118!==l&&132!==l||c.hasPrecedingLineBreak()||(_=Co(l));bt();return _e(St(N.createImportDeclaration(n,o,s,_),e),t)}(e,t,n);case 95:switch(We(),qe()){case 90:case 64:return function(e,t,n){const r=Oe();let i;ye(!0),dt(64)?i=!0:ot(90);const o=Cr(!0);bt(),ye(r);return _e(St(N.createExportAssignment(n,i,o),e),t)}(e,t,n);case 130:return function(e,t,n){ot(130),ot(145);const r=Nt();bt();const i=N.createNamespaceExportDeclaration(r);return i.modifiers=n,_e(St(i,e),t)}(e,t,n);default:return function(e,t,n){const r=Oe();let i,o,a;ye(!0);const s=dt(156),l=Je();dt(42)?(dt(130)&&(i=function(e){return St(N.createNamespaceExport(Dt()),e)}(l)),ot(161),o=wo()):(i=No(279),(161===qe()||11===qe()&&!c.hasPrecedingLineBreak())&&(ot(161),o=wo()));const _=qe();!o||118!==_&&132!==_||c.hasPrecedingLineBreak()||(a=Co(_));bt(),ye(r);return _e(St(N.createExportDeclaration(n,s,i,o,a),e),t)}(e,t,n)}default:if(n){const t=kt(282,!0,Ea.Declaration_expected);return NT(t,e),t.modifiers=n,t}return}}function Mi(){return 11===We()}function Ri(){return We(),!c.hasPrecedingLineBreak()&&(it()||11===qe())}function Bi(e,t){if(19!==qe()){if(4&e)return void Ln();if(yt())return void bt()}return fi(e,t)}function Ji(){const e=Je();if(28===qe())return St(N.createOmittedExpression(),e);const t=pt(26),n=Ui(),r=Tr();return St(N.createBindingElement(t,void 0,n,r),e)}function zi(){const e=Je(),t=pt(26),n=rt();let r,i=At();n&&59!==qe()?(r=i,i=void 0):(ot(59),r=Ui());const o=Tr();return St(N.createBindingElement(t,i,r,o),e)}function qi(){return 19===qe()||23===qe()||81===qe()||rt()}function Ui(e){return 23===qe()?function(){const e=Je();ot(23);const t=Se((()=>nn(10,Ji)));return ot(24),St(N.createArrayBindingPattern(t),e)}():19===qe()?function(){const e=Je();ot(19);const t=Se((()=>nn(9,zi)));return ot(20),St(N.createObjectBindingPattern(t),e)}():wt(e)}function Vi(){return Wi(!0)}function Wi(e){const t=Je(),n=ze(),r=Ui(Ea.Private_identifiers_are_not_allowed_in_variable_declarations);let i;e&&80===r.kind&&54===qe()&&!c.hasPrecedingLineBreak()&&(i=ht());const o=br(),a=Ar(qe())?void 0:Tr();return _e(St(ee(r,i,o,a),t),n)}function Hi(e){const t=Je();let n,r=0;switch(qe()){case 115:break;case 121:r|=1;break;case 87:r|=2;break;case 160:r|=4;break;case 135:Sn.assert(Ai()),r|=6,We();break;default:Sn.fail()}if(We(),165===qe()&&tt($i))n=on();else{const t=Pe();fe(e),n=nn(8,e?Wi:Vi),fe(t)}return St(te(n,r),t)}function $i(){return Ut()&&22===We()}function Ki(e,t,n){const r=Hi(!1);bt();return _e(St($(n,r),e),t)}function Gi(e,t,n){const r=Oe(),i=Ib(n);ot(100);const o=pt(42),a=2048&i?di():wt(),s=o?1:0,c=1024&i?2:0,l=Dn();32&i&&ye(!0);const _=On(s|c),u=An(59,!1),d=Bi(s|c,Ea.or_expected);ye(r);return _e(St(N.createFunctionDeclaration(n,o,a,l,_,u,d),e),t)}function Xi(e,t,n){return nt((()=>{if(137===qe()?ot(137):11===qe()&&21===tt(We)?nt((()=>{const e=gn();return"constructor"===e.text?e:void 0})):void 0){const r=Dn(),i=On(0),o=An(59,!1),a=Bi(0,Ea.or_expected),s=N.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,_e(St(s,e),t)}}))}function Qi(e,t,n,r,i,o,a,s){const c=r?1:0,l=re(n,XN)?2:0,_=Dn(),u=On(c|l),d=An(59,!1),p=Bi(c|l,s),f=N.createMethodDeclaration(n,r,i,o,_,u,d,p);return f.exclamationToken=a,_e(St(f,e),t)}function Yi(e,t,n,r,i){const o=i||c.hasPrecedingLineBreak()?void 0:pt(54),a=br(),s=ve(90112,Tr);!function(e,t,n){if(60!==qe()||c.hasPrecedingLineBreak())return 21===qe()?(Le(Ea.Cannot_start_a_function_call_in_a_type_annotation),void We()):void(!t||yt()?vt()||(n?Le(Ea._0_expected,ts(27)):st(e)):n?Le(Ea._0_expected,ts(27)):Le(Ea.Expected_for_property_initializer));Le(Ea.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,a,s);return _e(St(N.createPropertyDeclaration(n,r,i||o,a,s),e),t)}function Zi(e,t,n){const r=pt(42),i=At(),o=pt(58);return r||21===qe()||30===qe()?Qi(e,t,n,r,i,o,void 0,Ea.or_expected):Yi(e,t,n,i,o)}function eo(e,t,n,r,i){const o=At(),a=Dn(),s=On(0),c=An(59,!1),l=Bi(i),_=177===r?N.createGetAccessorDeclaration(n,o,s,c,l):N.createSetAccessorDeclaration(n,o,s,l);return _.typeParameters=a,vD(_)&&(_.type=c),_e(St(_,e),t)}function to(){let e;if(60===qe())return!0;for(;u_(qe());){if(e=qe(),p_(e))return!0;We()}if(42===qe())return!0;if(Pt()&&(e=qe(),We()),23===qe())return!0;if(void 0!==e){if(!hy(e)||153===e||139===e)return!0;switch(qe()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return yt()}}return!1}function no(e,t,n){mt(126);const r=function(){const e=Fe(),t=Oe();me(!1),ye(!0);const n=pi(!1);return me(e),ye(t),n}(),i=_e(St(N.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}function ro(){if(Oe()&&135===qe()){const e=Je(),t=Nt(Ea.Expression_expected);We();return ni(e,Zr(e,t,!0))}return zr()}function io(){const e=Je();if(!dt(60))return;const t=xe(32768,ro);return St(N.createDecorator(t),e)}function oo(e,t,n){const r=Je(),i=qe();if(87===qe()&&t){if(!nt(Lt))return}else{if(n&&126===qe()&&tt(So))return;if(e&&126===qe())return;if(!u_(qe())||!nt(jt))return}return St(L(i),r)}function ao(e,t,n){const r=Je();let i,o,a,s=!1,c=!1,l=!1;if(e&&60===qe())for(;o=io();)i=he(i,o);for(;a=oo(s,t,n);)126===a.kind&&(s=!0),i=he(i,a),c=!0;if(c&&e&&60===qe())for(;o=io();)i=he(i,o),l=!0;if(l)for(;a=oo(s,t,n);)126===a.kind&&(s=!0),i=he(i,a);return i&&xt(i,r)}function so(){let e;if(134===qe()){const t=Je();We();e=xt([St(L(134),t)],t)}return e}function co(){const e=Je(),t=ze();if(27===qe())return We(),_e(St(N.createSemicolonClassElement(),e),t);const n=ao(!0,!0,!0);if(126===qe()&&tt(So))return no(e,t,n);if(Ot(139))return eo(e,t,n,177,0);if(Ot(153))return eo(e,t,n,178,0);if(137===qe()||11===qe()){const r=Xi(e,t,n);if(r)return r}if(Mn())return Bn(e,t,n);if(Qa(qe())||11===qe()||9===qe()||42===qe()||23===qe()){if(re(n,Oi)){for(const e of n)e.flags|=33554432;return xe(33554432,(()=>Zi(e,t,n)))}return Zi(e,t,n)}if(n){const r=kt(80,!0,Ea.Declaration_expected);return Yi(e,t,n,r,void 0)}return Sn.fail("Should not have attempted to parse class member declaration.")}function lo(e,t,n){return _o(e,t,n,263)}function _o(e,t,n,r){const i=Oe();ot(86);const o=!rt()||119===qe()&&tt(Vt)?void 0:Ct(rt()),a=Dn();re(n,KN)&&ye(!0);const s=uo();let c;ot(19)?(c=Qt(5,co),ot(20)):c=on(),ye(i);return _e(St(263===r?N.createClassDeclaration(n,o,a,s,c):N.createClassExpression(n,o,a,s,c),e),t)}function uo(){if(go())return Qt(22,po)}function po(){const e=Je(),t=qe();Sn.assert(96===t||119===t),We();const n=nn(7,fo);return St(N.createHeritageClause(t,n),e)}function fo(){const e=Je(),t=zr();if(233===t.kind)return t;const n=mo();return St(N.createExpressionWithTypeArguments(t,n),e)}function mo(){return 30===qe()?sn(20,vr,30,32):void 0}function go(){return 96===qe()||119===qe()}function ho(){const e=Je(),t=ze(),n=At(),r=Se(Tr);return _e(St(N.createEnumMember(n,r),e),t)}function yo(){const e=Je();let t;return ot(19)?(t=Qt(1,Ii),ot(20)):t=on(),St(N.createModuleBlock(t),e)}function vo(e,t,n,r){const i=32&r,o=8&r?Dt():Nt(),a=dt(25)?vo(Je(),!1,void 0,8|i):yo();return _e(St(N.createModuleDeclaration(n,o,a,r),e),t)}function bo(e,t,n){let r,i,o=0;162===qe()?(r=Nt(),o|=2048):(r=gn(),r.text=Tt(r.text)),19===qe()?i=yo():bt();return _e(St(N.createModuleDeclaration(n,r,i,o),e),t)}function xo(){return 21===We()}function So(){return 19===We()}function ko(){return 44===We()}function To(){const e=Je(),t=Qa(qe())?Dt():yn(11);ot(59);const n=Cr(!0);return St(N.createImportAttribute(t,n),e)}function Co(e,t){const n=Je();t||ot(e);const r=c.getTokenStart();if(ot(19)){const t=c.hasPrecedingLineBreak(),i=nn(24,To,!0);if(!ot(20)){const e=Ae(h);e&&e.code===Ea._0_expected.code&&pT(e,NS(u,p,r,1,Ea.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return St(N.createImportAttributes(i,t,e),n)}{const t=xt([],Je(),void 0,!1);return St(N.createImportAttributes(t,!1,e),n)}}function wo(){if(11===qe()){const e=gn();return e.text=Tt(e.text),e}return kr()}function No(e){const t=Je();return St(275===e?N.createNamedImports(sn(23,Fo,19,20)):N.createNamedExports(sn(23,Do,19,20)),t)}function Do(){const e=ze();return _e(Po(281),e)}function Fo(){return Po(276)}function Po(e){const t=Je();let n,r=hy(qe())&&!it(),i=c.getTokenStart(),o=c.getTokenEnd(),a=!1,s=!0,l=Dt();if("type"===l.escapedText)if(130===qe()){const e=Dt();if(130===qe()){const t=Dt();Qa(qe())?(a=!0,n=e,l=_(),s=!1):(n=l,l=t,s=!1)}else Qa(qe())?(n=l,s=!1,l=_()):(a=!0,l=e)}else Qa(qe())&&(a=!0,l=_());s&&130===qe()&&(n=l,ot(130),l=_()),276===e&&r&&Me(i,o,Ea.Identifier_expected);return St(276===e?N.createImportSpecifier(a,n,l):N.createExportSpecifier(a,n,l),t);function _(){return r=hy(qe())&&!it(),i=c.getTokenStart(),o=c.getTokenEnd(),Dt()}}let Eo;var Ao;let Io;var Oo;let Lo;(Ao=Eo||(Eo={}))[Ao.SourceElements=0]="SourceElements",Ao[Ao.BlockStatements=1]="BlockStatements",Ao[Ao.SwitchClauses=2]="SwitchClauses",Ao[Ao.SwitchClauseStatements=3]="SwitchClauseStatements",Ao[Ao.TypeMembers=4]="TypeMembers",Ao[Ao.ClassMembers=5]="ClassMembers",Ao[Ao.EnumMembers=6]="EnumMembers",Ao[Ao.HeritageClauseElement=7]="HeritageClauseElement",Ao[Ao.VariableDeclarations=8]="VariableDeclarations",Ao[Ao.ObjectBindingElements=9]="ObjectBindingElements",Ao[Ao.ArrayBindingElements=10]="ArrayBindingElements",Ao[Ao.ArgumentExpressions=11]="ArgumentExpressions",Ao[Ao.ObjectLiteralMembers=12]="ObjectLiteralMembers",Ao[Ao.JsxAttributes=13]="JsxAttributes",Ao[Ao.JsxChildren=14]="JsxChildren",Ao[Ao.ArrayLiteralMembers=15]="ArrayLiteralMembers",Ao[Ao.Parameters=16]="Parameters",Ao[Ao.JSDocParameters=17]="JSDocParameters",Ao[Ao.RestProperties=18]="RestProperties",Ao[Ao.TypeParameters=19]="TypeParameters",Ao[Ao.TypeArguments=20]="TypeArguments",Ao[Ao.TupleElementTypes=21]="TupleElementTypes",Ao[Ao.HeritageClauses=22]="HeritageClauses",Ao[Ao.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Ao[Ao.ImportAttributes=24]="ImportAttributes",Ao[Ao.JSDocComment=25]="JSDocComment",Ao[Ao.Count=26]="Count",(Oo=Io||(Io={}))[Oo.False=0]="False",Oo[Oo.True=1]="True",Oo[Oo.Unknown=2]="Unknown",(e=>{function t(e){const t=Je(),n=(e?dt:ot)(19),r=xe(16777216,wn);e&&!n||lt(20);const i=N.createJSDocTypeExpression(r);return ue(i),St(i,t)}function n(){const e=Je(),t=dt(19),n=Je();let r=cn(!1);for(;81===qe();)Qe(),He(),r=St(N.createJSDocMemberName(r,Nt()),n);t&&lt(20);const i=N.createJSDocNameReference(r);return ue(i),St(i,e)}let r;var i;let o;var a;function s(e=0,r){const i=p,o=void 0===r?i.length:e+r;if(r=o-e,Sn.assert(e>=0),Sn.assert(e<=o),Sn.assert(o<=i.length),!NI(i,e))return;let a,s,l,_,d,f=[];const m=[],g=T;T|=1<<25;const h=c.scanRange(e+3,r-5,(function(){let t,n=1,r=e-(i.lastIndexOf("\n",e)+1)+4;function u(e){t||(t=r),f.push(e),r+=e.length}He();for(;X(5););X(4)&&(n=0,r=0);e:for(;;){switch(qe()){case 60:v(f),d||(d=Je()),A(C(r)),n=0,t=void 0;break;case 4:f.push(c.getTokenText()),n=0,r=0;break;case 42:const i=c.getTokenText();1===n?(n=2,u(i)):(Sn.assert(0===n),n=1,r+=i.length);break;case 5:Sn.assert(2!==n,"whitespace shouldn't come from the scanner while saving top-level comment text");const o=c.getTokenText();void 0!==t&&r+o.length>t&&f.push(o.slice(t-r)),r+=o.length;break;case 1:break e;case 82:n=2,u(c.getTokenValue());break;case 19:n=2;const a=c.getTokenFullStart(),s=F(c.getTokenEnd()-1);if(s){_||y(f),m.push(St(N.createJSDocText(f.join("")),_??e,a)),m.push(s),f=[],_=c.getTokenEnd();break}default:n=2,u(c.getTokenText())}2===n?$e(!1):He()}const p=f.join("").trimEnd();m.length&&p.length&&m.push(St(N.createJSDocText(p),_??e,d));m.length&&a&&Sn.assertIsDefined(d,"having parsed tags implies that the end of the comment span should be set");const g=a&&xt(a,s,l);return St(N.createJSDocComment(m.length?xt(m,e,d):p.length?p:void 0,g),e,o)}));return T=g,h;function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length;){const t=e[e.length-1].trimEnd();if(""!==t){if(t.length<e[e.length-1].length){e[e.length-1]=t;break}break}e.pop()}}function b(){for(;;){if(He(),1===qe())return!0;if(5!==qe()&&4!==qe())return!1}}function x(){if(5!==qe()&&4!==qe()||!tt(b))for(;5===qe()||4===qe();)He()}function S(){if((5===qe()||4===qe())&&tt(b))return"";let e=c.hasPrecedingLineBreak(),t=!1,n="";for(;e&&42===qe()||5===qe()||4===qe();)n+=c.getTokenText(),4===qe()?(e=!0,t=!0,n=""):42===qe()&&(e=!1),He();return t?n:""}function C(e){Sn.assert(60===qe());const r=c.getTokenStart();He();const i=Q(void 0),o=S();let s;switch(i.escapedText){case"author":s=function(e,t,n,r){const i=Je(),o=function(){const e=[];let t=!1,n=c.getToken();for(;1!==n&&4!==n;){if(30===n)t=!0;else{if(60===n&&!t)break;if(32===n&&t){e.push(c.getTokenText()),c.resetTokenState(c.getTokenEnd());break}}e.push(c.getTokenText()),n=He()}return N.createJSDocText(e.join(""))}();let a=c.getTokenFullStart();const s=w(e,a,n,r);s||(a=c.getTokenFullStart());const l="string"!=typeof s?xt(oe([St(o,i,a)],s),i):o.text+s;return St(N.createJSDocAuthorTag(t,l),e)}(r,i,e,o);break;case"implements":s=function(e,t,n,r){const i=J();return St(N.createJSDocImplementsTag(t,i,w(e,Je(),n,r)),e)}(r,i,e,o);break;case"augments":case"extends":s=function(e,t,n,r){const i=J();return St(N.createJSDocAugmentsTag(t,i,w(e,Je(),n,r)),e)}(r,i,e,o);break;case"class":case"constructor":s=z(r,N.createJSDocClassTag,i,e,o);break;case"public":s=z(r,N.createJSDocPublicTag,i,e,o);break;case"private":s=z(r,N.createJSDocPrivateTag,i,e,o);break;case"protected":s=z(r,N.createJSDocProtectedTag,i,e,o);break;case"readonly":s=z(r,N.createJSDocReadonlyTag,i,e,o);break;case"override":s=z(r,N.createJSDocOverrideTag,i,e,o);break;case"deprecated":le=!0,s=z(r,N.createJSDocDeprecatedTag,i,e,o);break;case"this":s=function(e,n,r,i){const o=t(!0);return x(),St(N.createJSDocThisTag(n,o,w(e,Je(),r,i)),e)}(r,i,e,o);break;case"enum":s=function(e,n,r,i){const o=t(!0);return x(),St(N.createJSDocEnumTag(n,o,w(e,Je(),r,i)),e)}(r,i,e,o);break;case"arg":case"argument":case"param":return M(r,i,2,e);case"return":case"returns":s=function(e,t,n,r){re(a,NE)&&Me(t.pos,c.getTokenStart(),Ea._0_tag_already_specified,Nc(t.escapedText));const i=O();return St(N.createJSDocReturnTag(t,i,w(e,Je(),n,r)),e)}(r,i,e,o);break;case"template":s=G(r,i,e,o);break;case"type":s=B(r,i,e,o);break;case"typedef":s=function(e,t,n,r){let i=O();S();const o=q();x();let a,s=D(n);if(!i||j(i.type)){let t,r,o,s=!1;for(;(t=nt((()=>W(n))))&&352!==t.kind;)if(s=!0,351===t.kind){if(r){const e=Le(Ea.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&pT(e,NS(u,p,0,0,Ea.The_tag_was_first_specified_here));break}r=t}else o=he(o,t);if(s){const t=i&&188===i.type.kind,n=N.createJSDocTypeLiteral(o,t);i=r&&r.typeExpression&&!j(r.typeExpression.type)?r.typeExpression:St(n,e),a=i.end}}a=a||void 0!==s?Je():(o??i??t).end,s||(s=w(e,a,n,r));const c=N.createJSDocTypedefTag(t,i,o,s);return St(c,e,a)}(r,i,e,o);break;case"callback":s=function(e,t,n,r){const i=q();x();let o=D(n);const a=U(e,n);o||(o=w(e,Je(),n,r));const s=void 0!==o?Je():a.end;return St(N.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":s=function(e,t,n,r){x();let i=D(n);const o=U(e,n);i||(i=w(e,Je(),n,r));const a=void 0!==i?Je():o.end;return St(N.createJSDocOverloadTag(t,o,i),e,a)}(r,i,e,o);break;case"satisfies":s=function(e,n,r,i){const o=t(!1),a=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(N.createJSDocSatisfiesTag(n,o,a),e)}(r,i,e,o);break;case"see":s=function(e,t,r,i){const o=23===qe()||tt((()=>60===He()&&Qa(He())&&E(c.getTokenValue())))?void 0:n(),a=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(N.createJSDocSeeTag(t,o,a),e)}(r,i,e,o);break;case"exception":case"throws":s=function(e,t,n,r){const i=O(),o=w(e,Je(),n,r);return St(N.createJSDocThrowsTag(t,i,o),e)}(r,i,e,o);break;default:s=function(e,t,n,r){return St(N.createJSDocUnknownTag(t,w(e,Je(),n,r)),e)}(r,i,e,o)}return s}function w(e,t,n,r){return r||(n+=t-e),D(n,r.slice(n))}function D(e,t){const n=Je();let r=[];const i=[];let o,a,s=0;function l(t){a||(a=e),r.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),s=1);let _=qe();e:for(;;){switch(_){case 4:s=0,r.push(c.getTokenText()),e=0;break;case 60:c.resetTokenState(c.getTokenEnd()-1);break e;case 1:break e;case 5:Sn.assert(2!==s&&3!==s,"whitespace shouldn't come from the scanner while saving comment text");const t=c.getTokenText();void 0!==a&&e+t.length>a&&(r.push(t.slice(a-e)),s=2),e+=t.length;break;case 19:s=2;const _=c.getTokenFullStart(),u=F(c.getTokenEnd()-1);u?(i.push(St(N.createJSDocText(r.join("")),o??n,_)),i.push(u),r=[],o=c.getTokenEnd()):l(c.getTokenText());break;case 62:s=3===s?2:3,l(c.getTokenText());break;case 82:3!==s&&(s=2),l(c.getTokenValue());break;case 42:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),l(c.getTokenText())}_=2===s||3===s?$e(3===s):He()}y(r);const u=r.join("").trimEnd();return i.length?(u.length&&i.push(St(N.createJSDocText(u),o??n)),xt(i,n,c.getTokenEnd())):u.length?u:void 0}function F(e){const t=nt(P);if(!t)return;He(),x();const n=Je();let r=Qa(qe())?cn(!0):void 0;if(r)for(;81===qe();)Qe(),He(),r=St(N.createJSDocMemberName(r,Nt()),n);const i=[];for(;20!==qe()&&4!==qe()&&1!==qe();)i.push(c.getTokenText()),He();return St(("link"===t?N.createJSDocLink:"linkcode"===t?N.createJSDocLinkCode:N.createJSDocLinkPlain)(r,i.join("")),e,c.getTokenEnd())}function P(){if(S(),19===qe()&&60===He()&&Qa(He())){const e=c.getTokenValue();if(E(e))return e}}function E(e){return"link"===e||"linkcode"===e||"linkplain"===e}function A(e){e&&(a?a.push(e):(a=[e],s=e.pos),l=e.end)}function O(){return S(),19===qe()?t():void 0}function L(){const e=X(23);e&&x();const t=X(62),n=function(){let e=Q();dt(23)&&ot(24);for(;dt(25);){const t=Q();dt(23)&&ot(24),e=ln(e,t)}return e}();var r;return t&&(ft(r=62)||(Sn.assert(vy(r)),kt(r,!1,Ea._0_expected,ts(r)))),e&&(x(),pt(64)&&kr(),ot(24)),{name:n,isBracketed:e}}function j(e){switch(e.kind){case 151:return!0;case 188:return j(e.elementType);default:return TD(e)&&HN(e.typeName)&&"Object"===e.typeName.escapedText&&!e.typeArguments}}function M(e,t,n,r){let i=O(),o=!i;S();const{name:a,isBracketed:s}=L(),c=S();o&&!tt(P)&&(i=O());const l=w(e,Je(),r,c),_=function(e,t,n,r){if(e&&j(e.type)){const i=Je();let o,a;for(;o=nt((()=>H(n,r,t)));)348===o.kind||355===o.kind?a=he(a,o):352===o.kind&&Re(o.tagName,Ea.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=St(N.createJSDocTypeLiteral(a,188===e.type.kind),i);return St(N.createJSDocTypeExpression(t),i)}}}(i,a,n,r);_&&(i=_,o=!0);return St(1===n?N.createJSDocPropertyTag(t,a,s,i,o,l):N.createJSDocParameterTag(t,a,s,i,o,l),e)}function B(e,n,r,i){re(a,FE)&&Me(n.pos,c.getTokenStart(),Ea._0_tag_already_specified,Nc(n.escapedText));const o=t(!0),s=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(N.createJSDocTypeTag(n,o,s),e)}function J(){const e=dt(19),t=Je(),n=function(){const e=Je();let t=Q();for(;dt(25);){const n=Q();t=St(R(t,n),e)}return t}();c.setInJSDocType(!0);const r=mo();c.setInJSDocType(!1);const i=St(N.createExpressionWithTypeArguments(n,r),t);return e&&ot(20),i}function z(e,t,n,r,i){return St(t(n,w(e,Je(),r,i)),e)}function q(e){const t=c.getTokenStart();if(!Qa(qe()))return;const n=Q();if(dt(25)){const r=q(!0);return St(N.createModuleDeclaration(void 0,n,r,e?8:void 0),t)}return e&&(n.flags|=4096),n}function U(e,t){const n=function(e){const t=Je();let n,r;for(;n=nt((()=>H(4,e)));){if(352===n.kind){Re(n.tagName,Ea.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}r=he(r,n)}return xt(r||[],t)}(t),r=nt((()=>{if(X(60)){const e=C(t);if(e&&349===e.kind)return e}}));return St(N.createJSDocSignature(void 0,n,r),e)}function V(e,t){for(;!HN(e)||!HN(t);){if(HN(e)||HN(t)||e.right.escapedText!==t.right.escapedText)return!1;e=e.left,t=t.left}return e.escapedText===t.escapedText}function W(e){return H(1,e)}function H(e,t,n){let r=!0,i=!1;for(;;)switch(He()){case 60:if(r){const r=$(e,t);return!(r&&(348===r.kind||355===r.kind)&&n&&(HN(r.name)||!V(n,r.name.left)))&&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 $(e,t){Sn.assert(60===qe());const n=c.getTokenFullStart();He();const r=Q(),i=S();let o;switch(r.escapedText){case"type":return 1===e&&B(n,r);case"prop":case"property":o=1;break;case"arg":case"argument":case"param":o=6;break;case"template":return G(n,r,t,i);default:return!1}return!!(e&o)&&M(n,r,e,t)}function K(){const e=Je(),t=X(23);t&&x();const n=Q(Ea.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let r;if(t&&(x(),ot(64),r=xe(16777216,wn),ot(24)),!Ip(n))return St(N.createTypeParameterDeclaration(void 0,n,void 0,r),e)}function G(e,n,r,i){const o=19===qe()?t():void 0,a=function(){const e=Je(),t=[];do{x();const e=K();void 0!==e&&t.push(e),S()}while(X(28));return xt(t,e)}();return St(N.createJSDocTemplateTag(n,o,a,w(e,Je(),r,i)),e)}function X(e){return qe()===e&&(He(),!0)}function Q(e){if(!Qa(qe()))return kt(80,!e,e||Ea.Identifier_expected);k++;const t=c.getTokenStart(),n=c.getTokenEnd(),r=qe(),i=Tt(c.getTokenValue()),o=St(I(i,r),t,n);return He(),o}}e.parseJSDocTypeExpressionForTests=function(e,n,r){se("file.js",e,99,void 0,1,0),c.setText(e,n,r),b=c.scan();const i=t(),o=de("file.js",99,1,!1,[],L(1),0,gt),a=PS(h,o);return y&&(o.jsDocDiagnostics=PS(y,o)),ce(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},e.parseJSDocTypeExpression=t,e.parseJSDocNameReference=n,e.parseIsolatedJSDocComment=function(e,t,n){se("",e,99,void 0,1,0);const r=xe(16777216,(()=>s(t,n))),i=PS(h,{languageVariant:0,text:e});return ce(),r?{jsDoc:r,diagnostics:i}:void 0},e.parseJSDocComment=function(e,t,n){const r=b,i=h.length,o=ie,a=xe(16777216,(()=>s(t,n)));return AT(a,e),524288&w&&(y||(y=[]),y.push(...h)),b=r,h.length=i,ie=o,a},(i=r||(r={}))[i.BeginningOfLine=0]="BeginningOfLine",i[i.SawAsterisk=1]="SawAsterisk",i[i.SavingComments=2]="SavingComments",i[i.SavingBackticks=3]="SavingBackticks",(a=o||(o={}))[a.Property=1]="Property",a[a.Parameter=2]="Parameter",a[a.CallbackParameter=4]="CallbackParameter"})(Lo=e.JSDocParser||(e.JSDocParser={}))})(vI||(vI={})),(e=>{function t(e,t,r,o,a,s){return void(t?l(e):c(e));function c(e){let t="";if(s&&n(e)&&(t=o.substring(e.pos,e.end)),e._children&&(e._children=void 0),FT(e,e.pos+r,e.end+r),s&&n(e)&&Sn.assert(t===a.substring(e.pos,e.end)),KI(e,c,l),Vu(e))for(const t of e.jsDoc)c(t);i(e,s)}function l(e){e._children=void 0,FT(e,e.pos+r,e.end+r);for(const t of e)c(t)}}function n(e){switch(e.kind){case 11:case 9:case 80:return!0}return!1}function r(e,t,n,r,i){Sn.assert(e.end>=t,"Adjusting an element that was entirely before the change range"),Sn.assert(e.pos<=n,"Adjusting an element that was entirely after the change range"),Sn.assert(e.pos<=e.end);const o=Math.min(e.pos,r),a=e.end>=n?e.end+i:Math.min(e.end,r);Sn.assert(o<=a),e.parent&&(Sn.assertGreaterThanOrEqual(o,e.parent.pos),Sn.assertLessThanOrEqual(a,e.parent.end)),FT(e,o,a)}function i(e,t){if(t){let t=e.pos;const n=e=>{Sn.assert(e.pos>=t),t=e.end};if(Vu(e))for(const t of e.jsDoc)n(t);KI(e,n),Sn.assert(t<=e.end)}}function o(e,t){let n,r=e;if(KI(e,(function e(i){if(Ip(i))return;if(!(i.pos<=t))return Sn.assert(i.pos>t),!0;if(i.pos>=r.pos&&(r=i),t<i.end)return KI(i,e),!0;Sn.assert(i.end<=t),n=i})),n){const e=function(e){for(;;){const t=rS(e);if(!t)return e;e=t}}(n);e.pos>r.pos&&(r=e)}return r}function a(e,t,n,r){const i=e.text;if(n&&(Sn.assert(i.length-n.span.length+n.newLength===t.length),r||Sn.shouldAssert(3))){const e=i.substr(0,n.span.start),r=t.substr(0,n.span.start);Sn.assert(e===r);const o=i.substring($s(n.span),i.length),a=t.substring($s(sc(n)),t.length);Sn.assert(o===a)}}function s(e){let t=e.statements,n=0;Sn.assert(n<t.length);let r=t[n],i=-1;return{currentNode:o=>(o!==i&&(r&&r.end===o&&n<t.length-1&&(n++,r=t[n]),r&&r.pos===o||function(i){return t=void 0,n=-1,r=void 0,void KI(e,o,a);function o(e){return i>=e.pos&&i<e.end&&(KI(e,o,a),!0)}function a(e){if(i>=e.pos&&i<e.end)for(let s=0;s<e.length;s++){const c=e[s];if(c){if(c.pos===i)return t=e,n=s,r=c,!0;if(c.pos<i&&i<c.end)return KI(c,o,a),!0}}return!1}}(o)),i=o,Sn.assert(!r||r.pos===o),r)}}let c;var l;e.updateSourceFile=function(e,n,c,l){if(a(e,n,c,l=l||Sn.shouldAssert(2)),cc(c))return e;if(0===e.statements.length)return vI.parseSourceFile(e.fileName,n,e.languageVersion,void 0,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);const _=e;Sn.assert(!_.hasBeenIncrementallyParsed),_.hasBeenIncrementallyParsed=!0,vI.fixupParentReferences(_);const u=e.text,d=s(e),p=function(e,t){const n=1;let r=t.span.start;for(let t=0;r>0&&t<=n;t++){const t=o(e,r);Sn.assert(t.pos<=r);const n=t.pos;r=Math.max(0,n-1)}const i=ac(r,$s(t.span)),a=t.newLength+(t.span.start-r);return lc(i,a)}(e,c);a(e,n,p,l),Sn.assert(p.span.start<=c.span.start),Sn.assert($s(p.span)===$s(c.span)),Sn.assert($s(sc(p))===$s(sc(c)));const f=sc(p).length-p.span.length;!function(e,n,o,a,s,c,l,_){return void u(e);function u(e){if(Sn.assert(e.pos<=e.end),e.pos>o)return void t(e,!1,s,c,l,_);const p=e.end;if(p>=n){if(e.intersectsChange=!0,e._children=void 0,r(e,n,o,a,s),KI(e,u,d),Vu(e))for(const t of e.jsDoc)u(t);i(e,_)}else Sn.assert(p<n)}function d(e){if(Sn.assert(e.pos<=e.end),e.pos>o)return void t(e,!0,s,c,l,_);const i=e.end;if(i>=n){e.intersectsChange=!0,e._children=void 0,r(e,n,o,a,s);for(const t of e)u(t)}else Sn.assert(i<n)}}(_,p.span.start,$s(p.span),$s(sc(p)),f,u,n,l);const m=vI.parseSourceFile(e.fileName,n,e.languageVersion,d,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);return m.commentDirectives=function(e,t,n,r,i,o,a,s){if(!e)return t;let c,l=!1;for(const t of e){const{range:e,type:l}=t;if(e.end<n)c=he(c,t);else if(e.pos>r){_();const t={range:{pos:e.pos+i,end:e.end+i},type:l};c=he(c,t),s&&Sn.assert(o.substring(e.pos,e.end)===a.substring(t.range.pos,t.range.end))}}return _(),c;function _(){l||(l=!0,c?t&&c.push(...t):c=t)}}(e.commentDirectives,m.commentDirectives,p.span.start,$s(p.span),f,u,n,l),m.impliedNodeFormat=e.impliedNodeFormat,m},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(bI||(bI={})),xI=new Map,SI=/^\/\/\/\s*<(\S+)\s.*?\/>/im,kI=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function nL(e){const t=new Map,n=new Map;return b(e,(e=>{t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:t,shortOptionNames:n}}function rL(){return OO||(OO=nL(kO))}function iL(e){return oL(e,IS)}function oL(e,t){const n=$e(e.type.keys()),r=(e.deprecatedKeys?n.filter((t=>!e.deprecatedKeys.has(t))):n).map((e=>`'${e}'`)).join(", ");return t(Ea.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function aL(e,t,n){return fj(e,(t??"").trim(),n)}function sL(e,t="",n){if(an(t=t.trim(),"-"))return;if("listOrElement"===e.type&&!t.includes(","))return pj(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return G(r,(t=>pj(e.element,parseInt(t),n)));case"string":return G(r,(t=>pj(e.element,t||"",n)));case"boolean":case"object":return Sn.fail(`List of ${e.element.type} is not yet supported.`);default:return G(r,(t=>aL(e.element,t,n)))}}function cL(e){return e.name}function lL(e,t,n,r,i){var o;if(null==(o=t.alternateMode)?void 0:o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return uj(i,r,t.alternateMode.diagnostic,e);const a=Wt(e,t.optionDeclarations,cL);return a?uj(i,r,t.unknownDidYouMeanDiagnostic,n||e,a.name):uj(i,r,t.unknownOptionDiagnostic,n||e)}function _L(e,t,n){const r={};let i;const o=[],a=[];return s(t),{options:r,watchOptions:i,fileNames:o,errors:a};function s(t){let n=0;for(;n<t.length;){const s=t[n];if(n++,64===s.charCodeAt(0))c(s.slice(1));else if(45===s.charCodeAt(0)){const o=s.slice(45===s.charCodeAt(1)?2:1),c=fL(e.getOptionsNameMap,o,!0);if(c)n=uL(t,n,e,c,r,a);else{const r=fL(UO.getOptionsNameMap,o,!0);r?n=uL(t,n,UO,r,i||(i={}),a):a.push(lL(o,e,s))}}else o.push(s)}}function c(e){const t=SL(e,n||(e=>uo.readFile(e)));if(!dt(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i<t.length&&t.charCodeAt(i)<=32;)i++;if(i>=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i<t.length&&34!==t.charCodeAt(i);)i++;i<t.length?(r.push(t.substring(n+1,i)),i++):a.push(IS(Ea.Unterminated_quoted_string_in_response_file_0,e))}else{for(;t.charCodeAt(i)>32;)i++;r.push(t.substring(n,i))}}s(r)}}function uL(e,t,n,r,i,o){if(r.isTSConfigOnly){const n=e[t];"null"===n?(i[r.name]=void 0,t++):"boolean"===r.type?"false"===n?(i[r.name]=pj(r,!1,o),t++):("true"===n&&t++,o.push(IS(Ea.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(IS(Ea.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,r.name)),n&&!an(n,"-")&&t++)}else if(e[t]||"boolean"===r.type||o.push(IS(n.optionTypeMismatchDiagnostic,r.name,EL(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=pj(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=pj(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=pj(r,e[t]||"",o),t++;break;case"list":const a=sL(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":Sn.fail("listOrElement not supported here");break;default:i[r.name]=aL(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}function dL(e,t){return _L(MO,e,t)}function pL(e,t){return fL(rL,e,t)}function fL(e,t,n=!1){t=t.toLowerCase();const{optionsNameMap:r,shortOptionNames:i}=e();if(n){const e=i.get(t);void 0!==e&&(t=e)}return r.get(t)}function mL(){return RO||(RO=nL(AO))}function gL(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=_L(JO,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(IS(Ea.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(IS(Ea.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(IS(Ea.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(IS(Ea.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function hL(e,...t){return mt(IS(e,...t).messageText,dt)}function yL(e,t,n,r,i,o){const a=SL(e,(e=>n.readFile(e)));if(!dt(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=eO(e,a),c=n.getCurrentDirectory();return s.path=pa(e,c,tn(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,HL(s,n,_a(Zo(e),c),t,_a(e,c),void 0,o,r,i)}function vL(e,t){const n=SL(e,t);return dt(n)?bL(e,n):{config:{},error:n}}function bL(e,t){const n=eO(e,t);return{config:DL(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function xL(e,t){const n=SL(e,t);return dt(n)?eO(e,n):{fileName:e,parseDiagnostics:[n]}}function SL(e,t){let n;try{n=t(e)}catch(t){return IS(Ea.Cannot_read_file_0_Colon_1,e,t.message)}return void 0===n?IS(Ea.Cannot_read_file_0,e):n}function kL(e){return Xe(e,cL)}function TL(){return qO||(qO=nL(yO))}function CL(){return VO||(VO=kL(kO))}function wL(){return WO||(WO=kL(yO))}function NL(){return HO||(HO=kL(IO))}function DL(e,t,n){var r;const i=null==(r=e.statements[0])?void 0:r.expression;if(i&&210!==i.kind){if(t.push(zf(e,i,Ea.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===ea(e.fileName)?"jsconfig.json":"tsconfig.json")),XD(i)){const r=D(i.elements,QD);if(r)return PL(e,r,t,!0,n)}return{}}return PL(e,i,t,!0,n)}function FL(e,t){var n;return PL(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function PL(e,t,n,r,i){return t?o(t,null==i?void 0:i.rootOptions):r?{}:void 0;function o(t,s){switch(t.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return a(t)||n.push(zf(e,t,Ea.String_literal_with_double_quotes_expected)),t.text;case 9:return Number(t.text);case 224:if(41!==t.operator||9!==t.operand.kind)break;return-Number(t.operand.text);case 210:return function(t,s){var c;const l=r?{}:void 0;for(const _ of t.properties){if(303!==_.kind){n.push(zf(e,_,Ea.Property_assignment_expected));continue}_.questionToken&&n.push(zf(e,_.questionToken,Ea.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),a(_.name)||n.push(zf(e,_.name,Ea.String_literal_with_double_quotes_expected));const t=Lf(_.name)?void 0:Mf(_.name),u=t&&Nc(t),d=u?null==(c=null==s?void 0:s.elementOptions)?void 0:c.get(u):void 0,p=o(_.initializer,d);void 0!==u&&(r&&(l[u]=p),null==i||i.onPropertySet(u,p,_,s,d))}return l}(t,s);case 209:return function(e,t){if(r)return M(e.map((e=>o(e,t))),(e=>void 0!==e));e.forEach((e=>o(e,t)))}(t.elements,s&&s.element)}s?n.push(zf(e,t,Ea.Compiler_option_0_requires_a_value_of_type_1,s.name,EL(s))):n.push(zf(e,t,Ea.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function a(t){return FN(t)&&jg(t,e)}}function EL(e){return"listOrElement"===e.type?`${EL(e.element)} or Array`:"list"===e.type?"Array":dt(e.type)?e.type:"string"}function AL(e,t){if(e){if(KL(t))return!e.disallowNullOrUndefined;if("list"===e.type)return _t(t);if("listOrElement"===e.type)return _t(t)||AL(e.element,t);return typeof t===(dt(e.type)?e.type:"string")}return!1}function IL(e,t,n){var r,i,o;const a=tn(n.useCaseSensitiveFileNames),s=J(M(e.fileNames,(null==(i=null==(r=e.options.configFile)?void 0:r.configFileSpecs)?void 0:i.validatedIncludeSpecs)?function(e,t,n,r){if(!t)return yt;const i=jk(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&Mk(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&Mk(i.includeFilePattern,r.useCaseSensitiveFileNames);if(a)return o?e=>!(a.test(e)&&!o.test(e)):e=>!a.test(e);if(o)return e=>o.test(e);return yt}(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):yt),(e=>Na(_a(t,n.getCurrentDirectory()),_a(e,n.getCurrentDirectory()),a))),c=RL(e.options,{configFilePath:_a(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),l=e.watchOptions&&BL(e.watchOptions,TL());return{compilerOptions:{...OL(c),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:l&&OL(l),references:J(e.projectReferences,(e=>({...e,path:e.originalPath?e.originalPath:"",originalPath:void 0}))),files:v(s)?s:void 0,...(null==(o=e.options.configFile)?void 0:o.configFileSpecs)?{include:LL(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:!!e.compileOnSave||void 0}}function OL(e){return{...$e(e.entries()).reduce(((e,t)=>({...e,[t[0]]:t[1]})),{})}}function LL(e){if(v(e)){if(1!==v(e))return e;if(e[0]!==YO)return e}}function jL(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return jL(e.element);default:return e.type}}function ML(e,t){return dp(t,((t,n)=>{if(t===e)return n}))}function RL(e,t){return BL(e,rL(),t)}function BL(e,{optionsNameMap:t},n){const r=new Map,i=n&&tn(n.useCaseSensitiveFileNames);for(const o in e)if(ze(e,o)){if(t.has(o)&&(t.get(o).category===Ea.Command_line_Options||t.get(o).category===Ea.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){Sn.assert("listOrElement"!==s.type);const e=jL(s);e?"list"===s.type?r.set(o,a.map((t=>ML(t,e)))):r.set(o,ML(a,e)):n&&s.isFilePath?r.set(o,Na(n.configFilePath,_a(a,Zo(n.configFilePath)),i)):r.set(o,a)}}return r}function JL(e,t){const n=zL(e);return function(){const e=[],r=(i=2,Array(i+1).join(" "));var i;return SO.forEach((t=>{if(!n.has(t.name))return;const i=n.get(t.name),o=Fj(t);i!==o?e.push(`${r}${t.name}: ${i}`):ze(jO,t.name)&&e.push(`${r}${t.name}: ${o}`)})),e.join(t)+t}()}function zL(e){return RL(nt(e,jO))}function qL(e,t,n){const r=zL(e);return function(){const e=new Map;e.set(Ea.Projects,[]),e.set(Ea.Language_and_Environment,[]),e.set(Ea.Modules,[]),e.set(Ea.JavaScript_Support,[]),e.set(Ea.Emit,[]),e.set(Ea.Interop_Constraints,[]),e.set(Ea.Type_Checking,[]),e.set(Ea.Completeness,[]);for(const t of kO)if(o(t)){let n=e.get(t.category);n||e.set(t.category,n=[]),n.push(t)}let a=0,s=0;const c=[];e.forEach(((e,t)=>{0!==c.length&&c.push({value:""}),c.push({value:`/* ${wS(t)} */`});for(const t of e){let e;e=r.has(t.name)?`"${t.name}": ${JSON.stringify(r.get(t.name))}${(s+=1)===r.size?"":","}`:`// "${t.name}": ${JSON.stringify(Fj(t))},`,c.push({value:e,description:`/* ${t.description&&wS(t.description)||t.name} */`}),a=Math.max(e.length,a)}}));const l=i(2),_=[];_.push("{"),_.push(`${l}"compilerOptions": {`),_.push(`${l}${l}/* ${wS(Ea.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),_.push("");for(const e of c){const{value:t,description:n=""}=e;_.push(t&&`${l}${l}${t}${n&&i(a-t.length+2)+n}`)}if(t.length){_.push(`${l}},`),_.push(`${l}"files": [`);for(let e=0;e<t.length;e++)_.push(`${l}${l}${JSON.stringify(t[e])}${e===t.length-1?"":","}`);_.push(`${l}]`)}else _.push(`${l}}`);return _.push("}"),_.join(n)+n}();function i(e){return Array(e+1).join(" ")}function o({category:e,name:t,isCommandLineOnly:n}){const i=[Ea.Command_line_Options,Ea.Editor_Support,Ea.Compiler_Diagnostics,Ea.Backwards_Compatibility,Ea.Watch_and_Build_Modes,Ea.Output_Formatting];return!n&&void 0!==e&&(!i.includes(e)||r.has(t))}}function UL(e,t){const n={},r=rL().optionsNameMap;for(const i in e)ze(e,i)&&(n[i]=VL(r.get(i.toLowerCase()),e[i],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n}function VL(e,t,n){if(e&&!KL(t)){if("list"===e.type){const r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);Sn.assert("listOrElement"!==e.type)}return t}function WL(e,t,n,r,i,o,a,s,c){return XL(e,void 0,t,n,r,c,i,o,a,s)}function HL(e,t,n,r,i,o,a,s,c){var l,_;null==(l=Fr)||l.push(Fr.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});const u=XL(void 0,e,t,n,r,c,i,o,a,s);return null==(_=Fr)||_.pop(),u}function $L(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function KL(e){return null==e}function GL(e,t){return Zo(_a(e,t))}function XL(e,t,n,r,i={},o,a,s=[],c=[],l){Sn.assert(void 0===e&&void 0!==t||void 0!==e&&void 0===t);const _=[],u=tj(e,t,n,r,a,s,_,l),{raw:d}=u,p=nt(i,u.options||{}),f=o&&u.watchOptions?nt(o,u.watchOptions):u.watchOptions||o;p.configFilePath=a&&oa(a);const m=function(){const e=v("references",(e=>"object"==typeof e),"object"),n=h(y("files"));if(n){const r="no-prop"===e||_t(e)&&0===e.length,i=ze(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=Ea.The_files_list_in_config_file_0_is_empty,r=Jm(t,"files",(e=>e.initializer)),i=uj(t,r,n,e);_.push(i)}else b(Ea.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")}let r=h(y("include"));const i=y("exclude");let o,s,c=!1,l=h(i);if("no-prop"===i&&d.compilerOptions){const e=d.compilerOptions.outDir,t=d.compilerOptions.declarationDir;(e||t)&&(l=[e,t].filter((e=>!!e)))}void 0===n&&void 0===r&&(r=[YO],c=!0);r&&(o=xj(r,_,!0,t,"include"));l&&(s=xj(l,_,!1,t,"exclude"));return{filesSpecs:n,includeSpecs:r,excludeSpecs:l,validatedFilesSpec:M(n,dt),validatedIncludeSpecs:o,validatedExcludeSpecs:s,pathPatterns:void 0,isDefaultIncludeSpec:c}}();t&&(t.configFileSpecs=m),$L(p,t);const g=ua(a?GL(a,r):r);return{options:p,watchOptions:f,fileNames:function(e){const t=gj(m,e,p,n,c);YL(t,ZL(d),s)&&_.push(QL(m,a));return t}(g),projectReferences:function(e){let t;const n=v("references",(e=>"object"==typeof e),"object");if(_t(n))for(const r of n)"string"!=typeof r.path?b(Ea.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(t||(t=[])).push({path:_a(r.path,e),originalPath:r.path,prepend:r.prepend,circular:r.circular});return t}(g),typeAcquisition:u.typeAcquisition||cj(),raw:d,errors:_,wildcardDirectories:kj(m,g,n.useCaseSensitiveFileNames),compileOnSave:!!d.compileOnSave};function h(e){return _t(e)?e:void 0}function y(e){return v(e,dt,"string")}function v(e,n,r){if(ze(d,e)&&!KL(d[e])){if(_t(d[e])){const i=d[e];return t||N(i,n)||_.push(IS(Ea.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return b(Ea.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function b(e,...n){t||_.push(IS(e,...n))}}function QL({includeSpecs:e,excludeSpecs:t},n){return IS(Ea.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 YL(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function ZL(e){return!ze(e,"files")&&!ze(e,"references")}function ej(e,t,n,r,i){const o=r.length;return YL(e,i)?r.push(QL(n,t)):R(r,(e=>!function(e){return e.code===Ea.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),o!==r.length}function tj(e,t,n,r,i,o,a,s){var c;const l=_a(i||"",r=oa(r));if(o.includes(l))return a.push(IS(Ea.Circularity_detected_while_resolving_configuration_Colon_0,[...o,l].join(" -> "))),{raw:e||FL(t,a)};const _=e?function(e,t,n,r,i){ze(e,"excludes")&&i.push(IS(Ea.Unknown_option_excludes_Did_you_mean_exclude));const o=sj(e.compilerOptions,n,i,r),a=lj(e.typeAcquisition,n,i,r),s=function(e,t,n){return _j(wL(),e,t,void 0,UO,n)}(e.watchOptions,n,i);e.compileOnSave=function(e,t,n){if(!ze(e,dO.name))return!1;const r=dj(dO,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i);const c=e.extends||""===e.extends?nj(e.extends,t,n,r,i):void 0;return{raw:e,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c}}(e,n,r,i,a):function(e,t,n,r,i){const o=aj(r);let a,s,c,l;const _=(void 0===QO&&(QO={name:void 0,type:"object",elementOptions:kL([KO,GO,XO,$O,{name:"references",type:"list",element:{name:"references",type:"object"},category:Ea.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:Ea.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:Ea.File_Management,defaultValueDescription:Ea.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:Ea.File_Management,defaultValueDescription:Ea.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},dO])}),QO),u=DL(e,i,{rootOptions:_,onPropertySet:d});a||(a=cj(r));l&&u&&void 0===u.compilerOptions&&i.push(zf(e,l[0],Ea._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,Mf(l[0])));return{raw:u,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c};function d(u,d,p,f,m){if(m&&m!==$O&&(d=dj(m,d,n,i,p,p.initializer,e)),null==f?void 0:f.name)if(m){let e;f===KO?e=o:f===GO?e=s??(s={}):f===XO?e=a??(a=cj(r)):Sn.fail("Unknown option"),e[m.name]=d}else u&&(null==f?void 0:f.extraKeyDiagnostics)&&(f.elementOptions?i.push(lL(u,f.extraKeyDiagnostics,void 0,p.name,e)):i.push(zf(e,p.name,f.extraKeyDiagnostics.unknownOptionDiagnostic,u)));else f===_&&(m===$O?c=nj(d,t,n,r,i,p,p.initializer,e):m||("excludes"===u&&i.push(zf(e,p.name,Ea.Unknown_option_excludes_Did_you_mean_exclude)),D(SO,(e=>e.name===u))&&(l=he(l,p.name))))}}(t,n,r,i,a);if((null==(c=_.options)?void 0:c.paths)&&(_.options.pathsBasePath=r),_.extendedConfigPath){o=o.concat([l]);const e={options:{}};dt(_.extendedConfigPath)?u(e,_.extendedConfigPath):_.extendedConfigPath.forEach((t=>u(e,t))),!_.raw.include&&e.include&&(_.raw.include=e.include),!_.raw.exclude&&e.exclude&&(_.raw.exclude=e.exclude),!_.raw.files&&e.files&&(_.raw.files=e.files),void 0===_.raw.compileOnSave&&e.compileOnSave&&(_.raw.compileOnSave=e.compileOnSave),t&&e.extendedSourceFiles&&(t.extendedSourceFiles=$e(e.extendedSourceFiles.keys())),_.options=Ke(e.options,_.options),_.watchOptions=_.watchOptions&&e.watchOptions?Ke(e.watchOptions,_.watchOptions):_.watchOptions||e.watchOptions}return _;function u(e,i){const c=function(e,t,n,r,i,o,a){const s=n.useCaseSensitiveFileNames?t:St(t);let c,l,_;o&&(c=o.get(s))?({extendedResult:l,extendedConfig:_}=c):(l=xL(t,(e=>n.readFile(e))),l.parseDiagnostics.length||(_=tj(void 0,l,n,Zo(t),ea(t),r,i,o)),o&&o.set(s,{extendedResult:l,extendedConfig:_}));if(e&&((a.extendedSourceFiles??(a.extendedSourceFiles=new Set)).add(l.fileName),l.extendedSourceFiles))for(const e of l.extendedSourceFiles)a.extendedSourceFiles.add(e);if(l.parseDiagnostics.length)return void i.push(...l.parseDiagnostics);return _}(t,i,n,o,a,s,e);if(c&&c.options){const t=c.raw;let o;const a=a=>{t[a]&&(e[a]=J(t[a],(e=>zo(e)?e:sa(o||(o=wa(Zo(i),r,tn(n.useCaseSensitiveFileNames))),e))))};a("include"),a("exclude"),a("files"),void 0!==t.compileOnSave&&(e.compileOnSave=t.compileOnSave),Ke(e.options,c.options),e.watchOptions=e.watchOptions&&c.watchOptions?Ke({},e.watchOptions,c.watchOptions):e.watchOptions||c.watchOptions}}}function nj(e,t,n,r,i,o,a,s){let c;const l=r?GL(r,n):n;if(dt(e))c=rj(e,t,l,i,a,s);else if(_t(e)){c=[];for(let r=0;r<e.length;r++){const _=e[r];dt(_)?c=he(c,rj(_,t,l,i,null==a?void 0:a.elements[r],s)):dj($O.element,e,n,i,o,null==a?void 0:a.elements[r],s)}}else dj($O,e,n,i,o,a,s);return c}function rj(e,t,n,r,i,o){if(zo(e=oa(e))||an(e,"./")||an(e,"../")){let a=_a(e,n);return t.fileExists(a)||$t(a,".json")||(a=`${a}.json`,t.fileExists(a))?a:void r.push(uj(o,i,Ea.File_0_not_found,e))}const a=NM(e,sa(n,"tsconfig.json"),t);if(a.resolvedModule)return a.resolvedModule.resolvedFileName;""===e?r.push(uj(o,i,Ea.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):r.push(uj(o,i,Ea.File_0_not_found,e))}function ij(e,t,n){const r=[];return{options:sj(e,t,r,n),errors:r}}function oj(e,t,n){const r=[];return{options:lj(e,t,r,n),errors:r}}function aj(e){return e&&"jsconfig.json"===ea(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function sj(e,t,n,r){const i=aj(r);return _j(CL(),e,t,i,MO,n),r&&(i.configFilePath=oa(r)),i}function cj(e){return{enable:!!e&&"jsconfig.json"===ea(e),include:[],exclude:[]}}function lj(e,t,n,r){const i=cj(r);return _j(NL(),e,t,i,zO,n),i}function _j(e,t,n,r,i,o){if(t){for(const a in t){const s=e.get(a);s?(r||(r={}))[s.name]=dj(s,t[a],n,o):o.push(lL(a,i))}return r}}function uj(e,t,n,...r){return e&&t?zf(e,t,n,...r):IS(n,...r)}function dj(e,t,n,r,i,o,a){if(e.isCommandLineOnly)r.push(uj(a,null==i?void 0:i.name,Ea.Option_0_can_only_be_specified_on_command_line,e.name));else{if(AL(e,t)){const s=e.type;if("list"===s&&_t(t))return mj(e,t,n,r,i,o,a);if("listOrElement"===s)return _t(t)?mj(e,t,n,r,i,o,a):dj(e.element,t,n,r,i,o,a);if(!dt(e.type))return fj(e,t,r,o,a);const c=pj(e,t,r,o,a);return KL(c)?c:function(e,t,n){e.isFilePath&&""===(n=_a(n,t))&&(n=".");return n}(e,n,c)}r.push(uj(a,o,Ea.Compiler_option_0_requires_a_value_of_type_1,e.name,EL(e)))}}function pj(e,t,n,r,i){var o;if(KL(t))return;const a=null==(o=e.extraValidation)?void 0:o.call(e,t);if(!a)return t;n.push(uj(i,r,...a))}function fj(e,t,n,r,i){if(KL(t))return;const o=t.toLowerCase(),a=e.type.get(o);if(void 0!==a)return pj(e,a,n,r,i);n.push(oL(e,((e,...t)=>uj(i,r,e,...t))))}function mj(e,t,n,r,i,o,a){return M(J(t,((t,s)=>dj(e.element,t,n,r,i,null==o?void 0:o.elements[s],a))),(t=>!!e.listPreserveFalsyValues||!!t))}function gj(e,t,n,i,o=r){t=ua(t);const a=tn(i.useCaseSensitiveFileNames),s=new Map,c=new Map,l=new Map,{validatedFilesSpec:_,validatedIncludeSpecs:u,validatedExcludeSpecs:d}=e,p=Uk(n,o),f=Vk(n,p);if(_)for(const e of _){const n=_a(e,t);s.set(a(n),n)}let m;if(u&&u.length>0)for(const e of i.readDirectory(t,U(f),d,u,void 0)){if($o(e,".json")){if(!m){const e=J(Ek(u.filter((e=>$t(e,".json"))),t,"files"),(e=>`^${e}$`));m=e?e.map((e=>Mk(e,i.useCaseSensitiveFileNames))):r}if(-1!==P(m,(t=>t.test(e)))){const t=a(e);s.has(t)||l.has(t)||l.set(t,e)}continue}if(Cj(e,s,c,p,a))continue;wj(e,c,p,a);const n=a(e);s.has(n)||c.has(n)||c.set(n,e)}const g=$e(s.values()),h=$e(c.values());return g.concat(h,$e(l.values()))}function hj(e,t,n,r,i){const{validatedFilesSpec:o,validatedIncludeSpecs:a,validatedExcludeSpecs:s}=t;if(!v(a)||!v(s))return!1;n=ua(n);const c=tn(r);if(o)for(const t of o)if(c(_a(t,n))===e)return!1;return bj(e,s,r,i,n)}function yj(e){const t=an(e,"**/")?0:e.indexOf("/**/");if(-1===t)return!1;return($t(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function vj(e,t,n,r){return bj(e,M(t,(e=>!yj(e))),n,r)}function bj(e,t,n,r,i){const o=Pk(t,sa(ua(r),i),"exclude"),a=o&&Mk(o,n);return!!a&&(!!a.test(e)||!Ho(e)&&a.test(ma(e)))}function xj(e,t,n,r,i){return e.filter((e=>{if(!dt(e))return!1;const o=Sj(e,n);return void 0!==o&&t.push(function(e,t){const n=Bm(r,i,t);return uj(r,n,e,t)}(...o)),void 0===o}))}function Sj(e,t){return Sn.assert("string"==typeof e),t&&ZO.test(e)?[Ea.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:yj(e)?[Ea.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function kj({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=Pk(t,n,"exclude"),o=i&&new RegExp(i,r?"":"i"),a={};if(void 0!==e){const t=[];for(const i of e){const e=ua(sa(n,i));if(o&&o.test(e))continue;const s=Tj(e,r);if(s){const{key:e,flags:n}=s,r=a[e];(void 0===r||r<n)&&(a[e]=n,1===n&&t.push(e))}}for(const e in a)if(ze(a,e))for(const i of t)e!==i&&Sa(i,e,n,!r)&&delete a[e]}return a}function Tj(e,t){const n=eL.exec(e);if(n){const r=e.indexOf("?"),i=e.indexOf("*"),o=e.lastIndexOf(Io);return{key:t?n[0]:St(n[0]),flags:-1!==r&&r<o||-1!==i&&i<o?1:0}}if(Ak(e.substring(e.lastIndexOf(Io)+1)))return{key:fa(t?e:St(e)),flags:1}}function Cj(e,t,n,r,i){const o=b(r,(t=>Ko(e,t)?t:void 0));if(!o)return!1;for(const r of o){if($o(e,r)&&(".ts"!==r||!$o(e,".d.ts")))return!1;const o=i(tT(e,r));if(t.has(o)||n.has(o)){if(".d.ts"===r&&($o(e,".js")||$o(e,".jsx")))continue;return!0}}return!1}function wj(e,t,n,r){const i=b(n,(t=>Ko(e,t)?t:void 0));if(i)for(let n=i.length-1;n>=0;n--){const o=i[n];if($o(e,o))return;const a=r(tT(e,o));t.delete(a)}}function Nj(e){const t={};for(const n in e)if(ze(e,n)){const r=pL(n);void 0!==r&&(t[n]=Dj(e[n],r))}return t}function Dj(e,t){if(void 0===e)return e;switch(t.type){case"object":case"string":return"";case"number":return"number"==typeof e?e:"";case"boolean":return"boolean"==typeof e?e:"";case"listOrElement":if(!_t(e))return Dj(e,t.element);case"list":const n=t.element;return _t(e)?G(e,(e=>Dj(e,n))):"";default:return dp(t.type,((t,n)=>{if(t===e)return n}))}}function Fj(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&"string"==typeof t?t:""}`:"";case"list":return[];case"listOrElement":return Fj(e.element);case"object":return{};default:const n=Fe(e.type.keys());return void 0!==n?n:Sn.fail("Expected 'option.type' to have entries.")}}var Pj,Ej,Aj,Ij,Oj,Lj=g({"src/compiler/commandLineParser.ts"(){OK(),dO={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},pO=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),fO=new Map(z(pO.entries(),(([e,t])=>[""+t,e]))),gO=(mO=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.es2023.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.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]]).map((e=>e[0])),hO=new Map(mO),yO=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:Ea.Watch_and_Build_Modes,description:Ea.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:Ea.Watch_and_Build_Modes,description:Ea.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:Ea.Watch_and_Build_Modes,description:Ea.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:Ea.Watch_and_Build_Modes,description:Ea.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:Sj},category:Ea.Watch_and_Build_Modes,description:Ea.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Sj},category:Ea.Watch_and_Build_Modes,description:Ea.Remove_a_list_of_files_from_the_watch_mode_s_processing}],vO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:Ea.Command_line_Options,description:Ea.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:Ea.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:Ea.Command_line_Options,description:Ea.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:Ea.Output_Formatting,description:Ea.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:Ea.Compiler_Diagnostics,description:Ea.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:Ea.Compiler_Diagnostics,description:Ea.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:Ea.Compiler_Diagnostics,description:Ea.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:Ea.Output_Formatting,description:Ea.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:Ea.Compiler_Diagnostics,description:Ea.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:Ea.Compiler_Diagnostics,description:Ea.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:Ea.Compiler_Diagnostics,description:Ea.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:Ea.FILE_OR_DIRECTORY,category:Ea.Compiler_Diagnostics,description:Ea.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:Ea.DIRECTORY,category:Ea.Compiler_Diagnostics,description:Ea.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:Ea.Projects,description:Ea.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:Ea.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ea.Emit,transpileOptionValue:void 0,description:Ea.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:Ea.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ea.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:Ea.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ea.Emit,description:Ea.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ea.Emit,defaultValueDescription:!1,description:Ea.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:Ea.Emit,description:Ea.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Watch_and_Build_Modes,description:Ea.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:Ea.Command_line_Options,isCommandLineOnly:!0,description:Ea.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:Ea.Platform_specific}],bO={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:Ea.VERSION,showInSimplifiedHelpView:!0,category:Ea.Language_and_Environment,description:Ea.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},xO={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:Ea.KIND,showInSimplifiedHelpView:!0,category:Ea.Modules,description:Ea.Specify_what_module_code_is_generated,defaultValueDescription:void 0},SO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:Ea.Command_line_Options,description:Ea.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:Ea.Command_line_Options,description:Ea.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:Ea.Command_line_Options,description:Ea.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:Ea.Command_line_Options,paramType:Ea.FILE_OR_DIRECTORY,description:Ea.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:Ea.Command_line_Options,description:Ea.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:Ea.Command_line_Options,isCommandLineOnly:!0,description:Ea.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:Ea.Command_line_Options,isCommandLineOnly:!0,description:Ea.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},bO,xO,{name:"lib",type:"list",element:{name:"lib",type:hO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:Ea.Language_and_Environment,description:Ea.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:Ea.JavaScript_Support,description:Ea.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:Ea.JavaScript_Support,description:Ea.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:pO,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:Ea.KIND,showInSimplifiedHelpView:!0,category:Ea.Language_and_Environment,description:Ea.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Ea.FILE,showInSimplifiedHelpView:!0,category:Ea.Emit,description:Ea.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:Ea.DIRECTORY,showInSimplifiedHelpView:!0,category:Ea.Emit,description:Ea.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Ea.LOCATION,category:Ea.Modules,description:Ea.Specify_the_root_folder_within_your_source_files,defaultValueDescription:Ea.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:Ea.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:Ea.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:Ea.FILE,category:Ea.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:Ea.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ea.Emit,defaultValueDescription:!1,description:Ea.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:Ea.Emit,description:Ea.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Emit,description:Ea.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:Ea.Emit,description:Ea.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Emit,description:Ea.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:Ea.Interop_Constraints,description:Ea.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:Ea.Interop_Constraints,description:Ea.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ea.Type_Checking,description:Ea.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ea.Type_Checking,description:Ea.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:Ea.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ea.Type_Checking,description:Ea.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:Ea.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ea.Type_Checking,description:Ea.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:Ea.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ea.Type_Checking,description:Ea.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:Ea.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ea.Type_Checking,description:Ea.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:Ea.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ea.Type_Checking,description:Ea.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:Ea.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ea.Type_Checking,description:Ea.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:Ea.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:Ea.Type_Checking,description:Ea.Ensure_use_strict_is_always_emitted,defaultValueDescription:Ea.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Type_Checking,description:Ea.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Type_Checking,description:Ea.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Type_Checking,description:Ea.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Type_Checking,description:Ea.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:Ea.Type_Checking,description:Ea.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Type_Checking,description:Ea.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Type_Checking,description:Ea.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:Ea.Type_Checking,description:Ea.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:Ea.STRATEGY,category:Ea.Modules,description:Ea.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:Ea.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:Ea.Modules,description:Ea.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:Ea.Modules,description:Ea.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:Ea.Modules,description:Ea.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:Ea.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:Ea.Modules,description:Ea.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:Ea.Modules,description:Ea.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:Ea.Interop_Constraints,description:Ea.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:Ea.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:Ea.Interop_Constraints,description:Ea.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:Ea.Interop_Constraints,description:Ea.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:Ea.Modules,description:Ea.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:Ea.Modules,description:Ea.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Modules,description:Ea.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:Ea.Modules,description:Ea.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:Ea.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:Ea.Modules,description:Ea.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:Ea.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:Ea.Modules,description:Ea.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:Ea.LOCATION,category:Ea.Emit,description:Ea.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:Ea.LOCATION,category:Ea.Emit,description:Ea.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Emit,description:Ea.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Language_and_Environment,description:Ea.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Language_and_Environment,description:Ea.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:Ea.Language_and_Environment,description:Ea.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:Ea.Language_and_Environment,description:Ea.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:Ea.Language_and_Environment,description:Ea.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:Ea.Modules,description:Ea.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:Ea.Modules,description:Ea.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:Ea.Backwards_Compatibility,paramType:Ea.FILE,transpileOptionValue:void 0,description:Ea.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Language_and_Environment,description:Ea.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:Ea.Completeness,description:Ea.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:Ea.Backwards_Compatibility,description:Ea.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:Ea.Emit,description:Ea.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:Ea.NEWLINE,category:Ea.Emit,description:Ea.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Output_Formatting,description:Ea.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:Ea.Language_and_Environment,affectsProgramStructure:!0,description:Ea.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:Ea.Modules,description:Ea.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:Ea.Emit,description:Ea.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:Ea.Editor_Support,description:Ea.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:Ea.Projects,description:Ea.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:Ea.Projects,description:Ea.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:Ea.Projects,description:Ea.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Backwards_Compatibility,description:Ea.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Emit,description:Ea.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Emit,transpileOptionValue:void 0,description:Ea.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Emit,description:Ea.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:Ea.DIRECTORY,category:Ea.Emit,transpileOptionValue:void 0,description:Ea.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:Ea.Completeness,description:Ea.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Type_Checking,description:Ea.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Type_Checking,description:Ea.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Backwards_Compatibility,description:Ea.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:Ea.Backwards_Compatibility,description:Ea.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:Ea.Interop_Constraints,description:Ea.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:Ea.JavaScript_Support,description:Ea.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:Ea.Backwards_Compatibility,description:Ea.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Language_and_Environment,description:Ea.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:Ea.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:Ea.Emit,description:Ea.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:Ea.Backwards_Compatibility,description:Ea.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:Ea.Specify_a_list_of_language_service_plugins_to_include,category:Ea.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:Ea.Control_what_method_is_used_to_detect_module_format_JS_files,category:Ea.Language_and_Environment,defaultValueDescription:Ea.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}],kO=[...vO,...SO],TO=kO.filter((e=>!!e.affectsSemanticDiagnostics)),CO=kO.filter((e=>!!e.affectsEmit)),wO=kO.filter((e=>!!e.affectsDeclarationPath)),NO=kO.filter((e=>!!e.affectsModuleResolution)),DO=kO.filter((e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics)),FO=kO.filter((e=>!!e.affectsProgramStructure)),PO=kO.filter((e=>ze(e,"transpileOptionValue"))),EO=[{name:"verbose",shortName:"v",category:Ea.Command_line_Options,description:Ea.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:Ea.Command_line_Options,description:Ea.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:Ea.Command_line_Options,description:Ea.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:Ea.Command_line_Options,description:Ea.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],AO=[...vO,...EO],IO=[{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}],LO={diagnostic:Ea.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:mL},jO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},MO={alternateMode:LO,getOptionsNameMap:rL,optionDeclarations:kO,unknownOptionDiagnostic:Ea.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:Ea.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Ea.Compiler_option_0_expects_an_argument},BO={diagnostic:Ea.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:rL},JO={alternateMode:BO,getOptionsNameMap:mL,optionDeclarations:AO,unknownOptionDiagnostic:Ea.Unknown_build_option_0,unknownDidYouMeanDiagnostic:Ea.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Ea.Build_option_0_requires_a_value_of_type_1},zO={optionDeclarations:IO,unknownOptionDiagnostic:Ea.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:Ea.Unknown_type_acquisition_option_0_Did_you_mean_1},UO={getOptionsNameMap:TL,optionDeclarations:yO,unknownOptionDiagnostic:Ea.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:Ea.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:Ea.Watch_option_0_requires_a_value_of_type_1},$O={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:Ea.File_Management,disallowNullOrUndefined:!0},KO={name:"compilerOptions",type:"object",elementOptions:CL(),extraKeyDiagnostics:MO},GO={name:"watchOptions",type:"object",elementOptions:wL(),extraKeyDiagnostics:UO},XO={name:"typeAcquisition",type:"object",elementOptions:NL(),extraKeyDiagnostics:zO},YO="**/*",ZO=/(^|\/)\*\*\/?$/,eL=/^[^*?]*(?=\/[^/]*[*?])/}});function jj(e,t,...n){e.trace(AS(t,...n))}function Mj(e,t){return!!e.traceResolution&&void 0!==t.trace}function Rj(e,t){let n;if(t&&e){const r=e.contents.packageJsonContent;"string"==typeof r.name&&"string"==typeof r.version&&(n={name:r.name,subModuleName:t.path.slice(e.packageDirectory.length+Io.length),version:r.version})}return t&&{path:t.path,extension:t.ext,packageId:n,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Bj(e){return Rj(void 0,e)}function Jj(e){if(e)return Sn.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function zj(e){const t=[];return 1&e&&t.push("TypeScript"),2&e&&t.push("JavaScript"),4&e&&t.push("Declaration"),8&e&&t.push("JSON"),t.join(", ")}function qj(e){if(e)return Sn.assert(oT(e.extension)),{fileName:e.path,packageId:e.packageId}}function Uj(e,t,n,r,i,o,a,s,c){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Vs(e)){const{resolvedFileName:e,originalPath:n}=Zj(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return Vj(t,n,r,i,o,a.resultFromCache,s,c)}function Vj(e,t,n,r,i,o,a,s){return o?(null==a?void 0:a.isReadonly)?{...o,failedLookupLocations:$j(o.failedLookupLocations,n),affectingLocations:$j(o.affectingLocations,r),resolutionDiagnostics:$j(o.resolutionDiagnostics,i)}:(o.failedLookupLocations=Hj(o.failedLookupLocations,n),o.affectingLocations=Hj(o.affectingLocations,r),o.resolutionDiagnostics=Hj(o.resolutionDiagnostics,i),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:Wj(n),affectingLocations:Wj(r),resolutionDiagnostics:Wj(i),node10Result:s}}function Wj(e){return e.length?e:void 0}function Hj(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function $j(e,t){return(null==e?void 0:e.length)?t.length?[...e,...t]:e.slice():Wj(t)}function Kj(e,t,n,r){if(!ze(e,t))return void(r.traceEnabled&&jj(r.host,Ea.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&jj(r.host,Ea.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function Gj(e,t,n,r){const i=Kj(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&jj(r.host,Ea.package_json_had_a_falsy_0_field,t));const o=ua(sa(n,i));return r.traceEnabled&&jj(r.host,Ea.package_json_has_0_field_1_that_references_2,t,i,o),o}function Xj(t,n){const r=function(e,t){const n=Kj(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&jj(t.host,Ea.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}(t,n);if(void 0===r)return;if(n.traceEnabled)for(const e in r)ze(r,e)&&!En.tryParse(e)&&jj(n.host,Ea.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const i=Qj(r);if(!i)return void(n.traceEnabled&&jj(n.host,Ea.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e));const{version:o,paths:a}=i;if("object"==typeof a)return i;n.traceEnabled&&jj(n.host,Ea.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof a)}function Qj(e){Pj||(Pj=new Pn(t));for(const t in e){if(!ze(e,t))continue;const n=En.tryParse(t);if(void 0!==n&&n.test(Pj))return{version:t,paths:e[t]}}}function Yj(e,t){if(e.typeRoots)return e.typeRoots;let n;return e.configFilePath?n=Zo(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),void 0!==n?function(e){let t;return Fa(ua(e),(e=>{const n=sa(e,Ej);(t??(t=[])).push(n)})),t}(n):void 0}function Zj(e,t,n){const r=function(e,t,n){if(!t.realpath)return e;const r=ua(t.realpath(e));n&&jj(t,Ea.Resolving_real_path_for_0_result_1,e,r);return r}(e,t,n),i=function(e,t,n){return 0===xa(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function eM(e,t,n){return sa(e,$t(e,"/node_modules/@types")||$t(e,"/node_modules/@types/")?cR(t,n):t)}function tM(e,t,n,r,i,o,a){Sn.assert("string"==typeof e,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const s=Mj(n,r);i&&(n=i.commandLine.options);const c=t?Zo(t):void 0;let l=c?null==o?void 0:o.getFromDirectoryCache(e,a,c,i):void 0;if(l||!c||Vs(e)||(l=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),l)return s&&(jj(r,Ea.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&jj(r,Ea.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),jj(r,Ea.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),x(l)),l;const _=Yj(n,r);s&&(void 0===t?void 0===_?jj(r,Ea.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):jj(r,Ea.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,_):void 0===_?jj(r,Ea.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):jj(r,Ea.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,_),i&&jj(r,Ea.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const u=[],d=[];let p=nM(n);void 0!==a&&(p|=30);const f=GS(n);99===a&&3<=f&&f<=99&&(p|=32);const m=8&p?rM(n,a):[],g=[],h={compilerOptions:n,host:r,traceEnabled:s,failedLookupLocations:u,affectingLocations:d,packageJsonInfoCache:o,features:p,conditions:m,requestContainingDirectory:c,reportDiagnostic:e=>{g.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let y,v=function(){if(_&&_.length)return s&&jj(r,Ea.Resolving_with_primary_search_path_0,_.join(", ")),S(_,(t=>{const i=eM(t,e,h),o=fx(t,r);if(!o&&s&&jj(r,Ea.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=LM(4,i,!o,h);if(e){const t=AM(e.path);return qj(Rj(t?$M(t,!1,h):void 0,e))}}return qj(zM(4,i,!o,h))}));s&&jj(r,Ea.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),b=!0;if(v||(v=function(){const i=t&&Zo(t);if(void 0!==i){let o;if(n.typeRoots&&$t(t,rV))s&&jj(r,Ea.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&jj(r,Ea.Looking_up_in_node_modules_folder_initial_location_0,i),Vs(e)){const{path:t}=FM(i,e);o=PM(4,t,!1,h,!0)}else{const t=rR(4,e,i,h,void 0,void 0);o=t&&t.value}return qj(o)}s&&jj(r,Ea.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),b=!1),v){const{fileName:e,packageId:t}=v;let i,o=e;n.preserveSymlinks||({resolvedFileName:o,originalPath:i}=Zj(e,r,s)),y={primary:b,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:EM(e)}}return l={resolvedTypeReferenceDirective:y,failedLookupLocations:Wj(u),affectingLocations:Wj(d),resolutionDiagnostics:Wj(g)},c&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(c,i).set(e,a,l),Vs(e)||o.getOrCreateCacheForNonRelativeName(e,a,i).set(c,l)),s&&x(l),l;function x(t){var n;(null==(n=t.resolvedTypeReferenceDirective)?void 0:n.resolvedFileName)?t.resolvedTypeReferenceDirective.packageId?jj(r,Ea.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,xp(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):jj(r,Ea.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):jj(r,Ea.Type_reference_directive_0_was_not_resolved,e)}}function nM(e){let t=0;switch(GS(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function rM(e,t){const n=GS(e);if(void 0===t)if(100===n)t=99;else if(2===n)return[];const r=99===t?["import"]:["require"];return e.noDtsResolution||r.push("types"),100!==n&&r.push("node"),oe(r,e.customConditions)}function iM(e,t,n,r,i){const o=VM(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return Fa(t,(t=>{if("node_modules"!==ea(t)){const n=sa(t,"node_modules");return $M(sa(n,e),!1,o)}}))}function oM(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=Yj(e,t);if(r)for(const e of r)if(t.directoryExists(e))for(const r of t.getDirectories(e)){const i=ua(r),o=sa(e,i,"package.json");if(!(t.fileExists(o)&&null===px(o,t).typings)){const e=ea(i);46!==e.charCodeAt(0)&&n.push(e)}}}return n}function aM(e){var t;if(null===e||"object"!=typeof e)return""+e;if(_t(e))return`[${null==(t=e.map((e=>aM(e))))?void 0:t.join(",")}]`;let n="{";for(const t in e)ze(e,t)&&(n+=`${t}: ${aM(e[t])}`);return n+"}"}function sM(e,t){return t.map((t=>aM(bk(e,t)))).join("|")+`|${e.pathsBasePath}`}function cM(e,t){const n=new Map,r=new Map;let i=new Map;return e&&n.set(e,i),{getMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!1):i},getOrCreateMapOfCacheRedirects:function(e){return e?o(e.commandLine.options,!0):i},update:function(t){e!==t&&(e?i=o(t,!0):n.set(t,i),e=t)},clear:function(){const o=e&&t.get(e);i.clear(),n.clear(),t.clear(),r.clear(),e&&(o&&t.set(e,o),n.set(e,i))},getOwnMap:()=>i};function o(t,o){let s=n.get(t);if(s)return s;const c=a(t);if(s=r.get(c),!s){if(e){const t=a(e);t===c?s=i:r.has(t)||r.set(t,i)}o&&(s??(s=new Map)),s&&r.set(c,s)}return s&&n.set(t,s),s}function a(e){let n=t.get(e);return n||t.set(e,n=sM(e,NO)),n}}function lM(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function _M(e,t){return void 0===t?e:`${t}|${e}`}function uM(){const e=new Map,t=new Map,n={get:(t,n)=>e.get(r(t,n)),set:(t,i,o)=>(e.set(r(t,i),o),n),delete:(t,i)=>(e.delete(r(t,i)),n),has:(t,n)=>e.has(r(t,n)),forEach:n=>e.forEach(((e,r)=>{const[i,o]=t.get(r);return n(e,i,o)})),size:()=>e.size};return n;function r(e,n){const r=_M(e,n);return t.set(r,[e,n]),r}}function dM(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function pM(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function fM(e,t,n,r,i){const o=cM(n,i);return{getFromNonRelativeNameCache:function(e,t,n,r){var i,a;return Sn.assert(!Vs(e)),null==(a=null==(i=o.getMapOfCacheRedirects(r))?void 0:i.get(_M(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return Sn.assert(!Vs(e)),lM(o,n,_M(e,t),a)},clear:function(){o.clear()},update:function(e){o.update(e)}};function a(){const n=new Map;return{get:function(r){return n.get(pa(r,e,t))},set:function(i,o){const a=pa(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=pa(Zo(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;o<a&&n.charCodeAt(o)===i.charCodeAt(o);)o++;if(o===n.length&&(i.length===o||i[o]===Io))return n;const s=Yo(n);if(o<s)return;const c=n.lastIndexOf(Io,o-1);if(-1===c)return;return n.substr(0,Math.max(c,s))}(a,s);let l=a;for(;l!==c;){const e=Zo(l);if(e===l||n.has(e))break;n.set(e,o),l=e}}}}}function mM(e,t,n,r,i,o){o??(o=new Map);const a=function(e,t,n,r){const i=cM(n,r);return{getFromDirectoryCache:function(n,r,o,a){var s,c;const l=pa(o,e,t);return null==(c=null==(s=i.getMapOfCacheRedirects(a))?void 0:s.get(l))?void 0:c.get(n,r)},getOrCreateCacheForDirectory:function(n,r){const o=pa(n,e,t);return lM(i,r,o,(()=>uM()))},clear:function(){i.clear()},update:function(e){i.update(e)},directoryToModuleNameMap:i}}(e,t,n,o),s=fM(e,t,n,i,o);return r??(r=function(e,t){let n;return{getPackageJsonInfo:function(r){return null==n?void 0:n.get(pa(r,e,t))},setPackageJsonInfo:function(r,i){(n||(n=new Map)).set(pa(r,e,t),i)},clear:function(){n=void 0},entries:function(){const e=null==n?void 0:n.entries();return e?$e(e):[]},getInternalMap:function(){return n}}}(e,t)),{...r,...a,...s,clear:function(){c(),r.clear()},update:function(e){a.update(e),s.update(e)},getPackageJsonInfoCache:()=>r,clearAllExceptPackageJsonInfoCache:c,optionsToRedirectsKey:o};function c(){a.clear(),s.clear()}}function gM(e,t,n,r,i){const o=mM(e,t,n,r,dM,i);return o.getOrCreateCacheForModuleName=(e,t,n)=>o.getOrCreateCacheForNonRelativeName(e,t,n),o}function hM(e,t,n,r,i){return mM(e,t,n,r,pM,i)}function yM(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function vM(e,t,n,r,i){return xM(e,t,yM(n),r,i)}function bM(e,t,n,r){const i=Zo(t);return n.getFromDirectoryCache(e,r,i,void 0)}function xM(e,t,n,r,i,o,a){var s,c,l;const _=Mj(n,r);o&&(n=o.commandLine.options),_&&(jj(r,Ea.Resolving_module_0_from_1,e,t),o&&jj(r,Ea.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));const u=Zo(t);let d=null==i?void 0:i.getFromDirectoryCache(e,a,u,o);if(d)_&&jj(r,Ea.Resolution_for_module_0_was_found_in_cache_from_location_1,e,u);else{let p=n.moduleResolution;if(void 0===p){switch($S(n)){case 1:p=2;break;case 100:p=3;break;case 199:p=99;break;default:p=1}_&&jj(r,Ea.Module_resolution_kind_is_not_specified_using_0,Ci[p])}else _&&jj(r,Ea.Explicitly_specified_module_resolution_kind_Colon_0,Ci[p]);switch(null==(s=rr)||s.logStartResolveModule(e),p){case 3:case 99:d=function(e,t,n,r,i,o,a){return TM(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:d=wM(e,t,n,r,i,o,a?rM(n,a):void 0);break;case 1:d=fR(e,t,n,r,i,o);break;case 100:d=CM(e,t,n,r,i,o,a?rM(n,a):void 0);break;default:return Sn.fail(`Unexpected moduleResolution: ${p}`)}d&&d.resolvedModule&&(null==(c=rr)||c.logInfoEvent(`Module "${e}" resolved to "${d.resolvedModule.resolvedFileName}"`)),null==(l=rr)||l.logStopResolveModule(d&&d.resolvedModule?""+d.resolvedModule.resolvedFileName:"null"),i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(u,o).set(e,a,d),Vs(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(u,d))}return _&&(d.resolvedModule?d.resolvedModule.packageId?jj(r,Ea.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,d.resolvedModule.resolvedFileName,xp(d.resolvedModule.packageId)):jj(r,Ea.Module_name_0_was_successfully_resolved_to_1,e,d.resolvedModule.resolvedFileName):jj(r,Ea.Module_name_0_was_not_resolved,e)),d}function SM(e,t,n,r,i){const o=function(e,t,n,r){var i;const{baseUrl:o,paths:a,configFile:s}=r.compilerOptions;if(a&&!Vo(t)){r.traceEnabled&&(o&&jj(r.host,Ea.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),jj(r.host,Ea.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));return sR(e,t,Av(r.compilerOptions,r.host),a,(null==s?void 0:s.configFileSpecs)?(i=s.configFileSpecs).pathPatterns||(i.pathPatterns=rT(a)):void 0,n,!1,r)}}(e,t,r,i);return o?o.value:Vs(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&jj(i.host,Ea.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);const o=ua(sa(n,t));let a,s;for(const e of i.compilerOptions.rootDirs){let t=ua(e);$t(t,Io)||(t+=Io);const n=an(o,t)&&(void 0===s||s.length<t.length);i.traceEnabled&&jj(i.host,Ea.Checking_if_0_is_the_longest_matching_prefix_for_1_2,t,o,n),n&&(s=t,a=e)}if(s){i.traceEnabled&&jj(i.host,Ea.Longest_matching_prefix_for_0_is_1,o,s);const t=o.substr(s.length);i.traceEnabled&&jj(i.host,Ea.Loading_0_from_the_root_dir_1_candidate_location_2,t,s,o);const c=r(e,o,!fx(n,i.host),i);if(c)return c;i.traceEnabled&&jj(i.host,Ea.Trying_other_entries_in_rootDirs);for(const n of i.compilerOptions.rootDirs){if(n===a)continue;const o=sa(ua(n),t);i.traceEnabled&&jj(i.host,Ea.Loading_0_from_the_root_dir_1_candidate_location_2,t,n,o);const s=r(e,o,!fx(Zo(o),i.host),i);if(s)return s}i.traceEnabled&&jj(i.host,Ea.Module_resolution_using_rootDirs_has_failed)}return}(e,t,n,r,i):function(e,t,n,r){const{baseUrl:i}=r.compilerOptions;if(!i)return;r.traceEnabled&&jj(r.host,Ea.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t);const o=ua(sa(i,t));r.traceEnabled&&jj(r.host,Ea.Resolving_module_name_0_relative_to_base_url_1_2,t,i,o);return n(e,o,!fx(Zo(o),r.host),r)}(e,t,r,i)}function kM(e,t,n){const{resolvedModule:r,failedLookupLocations:i}=function(e,t,n){return DM(0,e,t,{moduleResolution:2,allowJs:!0},n,void 0,2,!1,void 0,void 0)}(e,t,n);if(!r)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${null==i?void 0:i.join(", ")}`);return r.resolvedFileName}function TM(e,t,n,r,i,o,a,s,c){const l=Zo(n),_=99===s?32:0;let u=r.noDtsResolution?3:7;return lk(r)&&(u|=8),DM(e|_,t,l,r,i,o,u,!1,a,c)}function CM(e,t,n,r,i,o,a){const s=Zo(t);let c=n.noDtsResolution?3:7;return lk(n)&&(c|=8),DM(nM(n),e,s,n,r,i,c,!1,o,a)}function wM(e,t,n,r,i,o,a,s){let c;return s?c=8:n.noDtsResolution?(c=3,lk(n)&&(c|=8)):c=lk(n)?15:7,DM(a?30:0,e,Zo(t),n,r,i,c,!!s,o,a)}function NM(e,t,n){return DM(30,e,Zo(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function DM(e,t,n,i,o,a,s,c,l,_){var u,d,p,f;const m=Mj(i,o),g=[],h=[],y=GS(i);_??(_=rM(i,100===y||2===y?void 0:32&e?99:1));const b=[],x={compilerOptions:i,host:o,traceEnabled:m,failedLookupLocations:g,affectingLocations:h,packageJsonInfoCache:a,features:e,conditions:_??r,requestContainingDirectory:n,reportDiagnostic:e=>{b.push(e)},isConfigLookup:c,candidateIsFromPackageJsonField:!1};let S,k;if(m&&ok(y)&&jj(o,Ea.Resolving_in_0_mode_with_conditions_1,32&e?"ESM":"CJS",x.conditions.map((e=>`'${e}'`)).join(", ")),2===y){const e=5&s,t=-6&s;S=e&&T(e,x)||t&&T(t,x)||void 0}else S=T(s,x);if((null==(u=null==S?void 0:S.value)?void 0:u.isExternalLibraryImport)&&!c&&5&s&&8&e&&!Vs(t)&&!GM(5,S.value.resolved.extension)&&(null==_?void 0:_.includes("import"))){vR(x,Ea.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=T(5&s,{...x,features:-9&x.features,reportDiagnostic:gt});(null==(d=null==e?void 0:e.value)?void 0:d.isExternalLibraryImport)&&(k=e.value.resolved.path)}return Uj(t,null==(p=null==S?void 0:S.value)?void 0:p.resolved,null==(f=null==S?void 0:S.value)?void 0:f.isExternalLibraryImport,g,h,b,x,a,k);function T(r,i){const s=SM(r,t,n,((e,t,n,r)=>PM(e,t,n,r,!0)),i);if(s)return yR({resolved:s,isExternalLibraryImport:EM(s.path)});if(Vs(t)){const{path:e,parts:o}=FM(n,t),a=PM(r,e,!1,i,!0);return a&&yR({resolved:a,isExternalLibraryImport:I(o,"node_modules")})}{let s;if(2&e&&an(t,"#")&&(s=function(e,t,n,r,i,o){var a,s;if("#"===t||an(t,"#/"))return r.traceEnabled&&jj(r.host,Ea.Invalid_import_specifier_0_has_no_possible_resolutions,t),yR(void 0);const c=_a(sa(n,"dummy"),null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=WM(c,r);if(!l)return r.traceEnabled&&jj(r.host,Ea.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),yR(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&jj(r.host,Ea.package_json_scope_0_has_no_imports_defined,l.packageDirectory),yR(void 0);const _=eR(e,r,i,o,t,l.contents.packageJsonContent.imports,l,!0);if(_)return _;r.traceEnabled&&jj(r.host,Ea.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,l.packageDirectory);return yR(void 0)}(r,t,n,i,a,l)),!s&&4&e&&(s=function(e,t,n,r,i,o){var a,s;const c=_a(sa(n,"dummy"),null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=WM(c,r);if(!l||!l.contents.packageJsonContent.exports)return;if("string"!=typeof l.contents.packageJsonContent.name)return;const _=ra(t),u=ra(l.contents.packageJsonContent.name);if(!N(u,((e,t)=>_[t]===e)))return;const d=_.slice(u.length),p=v(d)?`.${Io}${d.join(Io)}`:".";if(fk(r.compilerOptions)&&!EM(n))return YM(l,e,p,r,i,o);const f=5&e,m=-6&e;return YM(l,f,p,r,i,o)||YM(l,m,p,r,i,o)}(r,t,n,i,a,l)),!s){if(t.includes(":"))return void(m&&jj(o,Ea.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,zj(r)));m&&jj(o,Ea.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,zj(r)),s=rR(r,t,n,i,a,l)}return 4&r&&(s??(s=mR(t,i))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function FM(e,t){const n=sa(e,t),r=ra(n),i=Ae(r);return{path:"."===i||".."===i?ma(ua(n)):ua(n),parts:r}}function PM(e,t,n,r,i){if(r.traceEnabled&&jj(r.host,Ea.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,zj(e)),!Go(t)){if(!n){const e=Zo(t);fx(e,r.host)||(r.traceEnabled&&jj(r.host,Ea.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=LM(e,t,n,r);if(o){const e=i?AM(o.path):void 0;return Rj(e?$M(e,!1,r):void 0,o)}}if(!n){fx(t,r.host)||(r.traceEnabled&&jj(r.host,Ea.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0)}if(!(32&r.features))return zM(e,t,n,r,i)}function EM(e){return e.includes(Ij)}function AM(e,t){const n=ua(e),r=n.lastIndexOf(Ij);if(-1===r)return;const i=r+Ij.length;let o=IM(n,i,t);return 64===n.charCodeAt(i)&&(o=IM(n,o,t)),n.slice(0,o)}function IM(e,t,n){const r=e.indexOf(Io,t+1);return-1===r?n?e.length:t:r}function OM(e,t,n,r){return Bj(LM(e,t,n,r))}function LM(e,t,n,r){const i=jM(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=RM(t,e,"",n,r);if(i)return i}}function jM(e,t,n,r){if(!ea(t).includes("."))return;let i=Yk(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&jj(r.host,Ea.File_name_0_has_a_1_extension_stripping_it,t,o),RM(i,e,o,n,r)}function MM(e,t,n,r){if(1&e&&Ko(t,Qd)||4&e&&Ko(t,Xd)){return void 0!==BM(t,n,r)?{path:t,ext:cx(t),resolvedUsingTsExtension:void 0}:void 0}if(r.isConfigLookup&&8===e&&$o(t,".json")){return void 0!==BM(t,n,r)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0}return jM(e,t,n,r)}function RM(e,t,n,r,i){if(!r){const t=Zo(e);t&&(r=!fx(t,i.host))}switch(n){case".mjs":case".mts":case".d.mts":return 1&t&&o(".mts",".mts"===n||".d.mts"===n)||4&t&&o(".d.mts",".mts"===n||".d.mts"===n)||2&t&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return 1&t&&o(".cts",".cts"===n||".d.cts"===n)||4&t&&o(".d.cts",".cts"===n||".d.cts"===n)||2&t&&o(".cjs")||void 0;case".json":return 4&t&&o(".d.json.ts")||8&t&&o(".json")||void 0;case".tsx":case".jsx":return 1&t&&(o(".tsx",".tsx"===n)||o(".ts",".tsx"===n))||4&t&&o(".d.ts",".tsx"===n)||2&t&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return 1&t&&(o(".ts",".ts"===n||".d.ts"===n)||o(".tsx",".ts"===n||".d.ts"===n))||4&t&&o(".d.ts",".ts"===n||".d.ts"===n)||2&t&&(o(".js")||o(".jsx"))||i.isConfigLookup&&o(".json")||void 0;default:return 4&t&&!oO(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=BM(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function BM(e,t,n){var r;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return JM(e,t,n);const i=lT(e)??"",o=i?eT(e,i):e;return b(n.compilerOptions.moduleSuffixes,(e=>JM(o+e+i,t,n)))}function JM(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&jj(n.host,Ea.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&jj(n.host,Ea.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function zM(e,t,n,r,i=!0){const o=i?$M(t,n,r):void 0;return Rj(o,KM(e,t,n,r,o&&o.contents.packageJsonContent,o&&HM(o,r)))}function qM(e,t,n,r,i){if(!i&&void 0!==e.contents.resolvedEntrypoints)return e.contents.resolvedEntrypoints;let o;const a=5|(i?2:0),s=nM(t),c=VM(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=rM(t),c.requestContainingDirectory=e.packageDirectory;const l=KM(a,e.packageDirectory,!1,c,e.contents.packageJsonContent,HM(e,c));if(o=he(o,null==l?void 0:l.path),8&s&&e.contents.packageJsonContent.exports){const r=ce([rM(t,99),rM(t,1)],fe);for(const t of r){const r={...c,failedLookupLocations:[],conditions:t,host:n},i=UM(e,e.contents.packageJsonContent.exports,r,a);if(i)for(const e of i)o=Se(o,e.path)}}return e.contents.resolvedEntrypoints=o||!1}function UM(e,t,n,r){let i;if(_t(t))for(const e of t)o(e);else if("object"==typeof t&&null!==t&&QM(t))for(const e in t)o(t[e]);else o(t);return i;function o(t){var a,s;if("string"==typeof t&&an(t,"./"))if(t.includes("*")&&n.host.readDirectory){if(t.indexOf("*")!==t.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,function(e){const t=[];return 1&e&&t.push(...Qd),2&e&&t.push(...$d),4&e&&t.push(...Xd),8&e&&t.push(".json"),t}(r),void 0,[oO(t)?t.replace("*","**/*"):ha(t.replace("*","**/*"),Fv(t))]).forEach((e=>{i=Se(i,{path:e,ext:na(e),resolvedUsingTsExtension:void 0})}))}else{const o=ra(t).slice(2);if(o.includes("..")||o.includes(".")||o.includes("node_modules"))return!1;const c=_a(sa(e.packageDirectory,t),null==(s=(a=n.host).getCurrentDirectory)?void 0:s.call(a)),l=MM(r,c,!1,n);if(l)return i=Se(i,l,((e,t)=>e.path===t.path)),!0}else if(Array.isArray(t))for(const e of t){if(o(e))return!0}else if("object"==typeof t&&null!==t)return b(Ue(t),(e=>{if("default"===e||I(n.conditions,e)||nR(n.conditions,e))return o(t[e]),!0}))}}function VM(e,t,n){return{host:t,compilerOptions:n,traceEnabled:Mj(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:r,requestContainingDirectory:void 0,reportDiagnostic:gt,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function WM(e,t){const n=ra(e);for(n.pop();n.length>0;){const e=$M(ia(n),!1,t);if(e)return e;n.pop()}}function HM(e,t){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=Xj(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function $M(e,t,n){var r,i,o,a,s,c;const{host:l,traceEnabled:_}=n,u=sa(e,"package.json");if(t)return void(null==(r=n.failedLookupLocations)||r.push(u));const d=null==(i=n.packageJsonInfoCache)?void 0:i.getPackageJsonInfo(u);if(void 0!==d)return"boolean"!=typeof d?(_&&jj(l,Ea.File_0_exists_according_to_earlier_cached_lookups,u),null==(o=n.affectingLocations)||o.push(u),d.packageDirectory===e?d:{packageDirectory:e,contents:d.contents}):(d&&_&&jj(l,Ea.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void(null==(a=n.failedLookupLocations)||a.push(u)));const p=fx(e,l);if(p&&l.fileExists(u)){const t=px(u,l);_&&jj(l,Ea.Found_package_json_at_0,u);const r={packageDirectory:e,contents:{packageJsonContent:t,versionPaths:void 0,resolvedEntrypoints:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,r),null==(s=n.affectingLocations)||s.push(u),r}p&&_&&jj(l,Ea.File_0_does_not_exist,u),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(u,p),null==(c=n.failedLookupLocations)||c.push(u)}function KM(e,n,r,i,o,a){let s;o&&(s=i.isConfigLookup?function(e,t,n){return Gj(e,"tsconfig",t,n)}(o,n,i):4&e&&function(e,t,n){return Gj(e,"typings",t,n)||Gj(e,"types",t,n)}(o,n,i)||7&e&&function(e,t,n){return Gj(e,"main",t,n)}(o,n,i)||void 0);const c=(e,t,n,r)=>{const i=BM(t,n,r);if(i){const t=function(e,t,n){const r=lT(t);return void 0!==r&&GM(e,r)?{path:t,ext:r,resolvedUsingTsExtension:n}:void 0}(e,i);if(t)return Bj(t);r.traceEnabled&&jj(r.host,Ea.File_0_has_an_unsupported_extension_so_skipping_it,i)}const a=4===e?5:e,s=r.features,c=r.candidateIsFromPackageJsonField;r.candidateIsFromPackageJsonField=!0,"module"!==(null==o?void 0:o.type)&&(r.features&=-33);const l=PM(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=s?!fx(Zo(s),i.host):void 0,_=r||!fx(n,i.host),u=sa(n,i.isConfigLookup?"tsconfig":"index");if(a&&(!s||Sa(n,s))){const r=Ca(n,s||u,!1);i.traceEnabled&&jj(i.host,Ea.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,t,r);const o=sR(e,r,n,a.paths,void 0,c,l||_,i);if(o)return Jj(o.value)}const d=s&&Jj(c(e,s,l,i));return d||(32&i.features?void 0:LM(e,u,_,i))}function GM(e,t){return 2&e&&(".js"===t||".jsx"===t||".mjs"===t||".cjs"===t)||1&e&&(".ts"===t||".tsx"===t||".mts"===t||".cts"===t)||4&e&&(".d.ts"===t||".d.mts"===t||".d.cts"===t)||8&e&&".json"===t||!1}function XM(e){let t=e.indexOf(Io);return"@"===e[0]&&(t=e.indexOf(Io,t+1)),-1===t?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function QM(e){return N(Ue(e),(e=>an(e,".")))}function YM(e,t,n,r,i,o){if(e.contents.packageJsonContent.exports){if("."===n){let a;if("string"==typeof e.contents.packageJsonContent.exports||Array.isArray(e.contents.packageJsonContent.exports)||"object"==typeof e.contents.packageJsonContent.exports&&!re(Ue(e.contents.packageJsonContent.exports),(e=>an(e,".")))?a=e.contents.packageJsonContent.exports:ze(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a){return tR(t,r,i,o,n,e,!1)(a,"",!1,".")}}else if(QM(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&jj(r.host,Ea.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),yR(void 0);const a=eR(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&jj(r.host,Ea.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),yR(void 0)}}function ZM(e,t){const n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,o=-1===r?t.length:r+1;return i>o?-1:o>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function eR(e,t,n,r,i,o,a,s){const c=tR(e,t,n,r,i,a,s);if(!$t(i,Io)&&!i.includes("*")&&ze(o,i)){return c(o[i],"",!1,i)}const l=Te(M(Ue(o),(e=>e.includes("*")||$t(e,"/"))),ZM);for(const e of l){if(16&t.features&&_(e,i)){const t=o[e],n=e.indexOf("*");return c(t,i.substring(e.substring(0,n).length,i.length-(e.length-1-n)),!0,e)}if($t(e,"*")&&an(i,e.substring(0,e.length-1))){return c(o[e],i.substring(e.length-1),!0,e)}if(an(i,e)){return c(o[e],i.substring(e.length),!1,e)}}function _(e,t){if($t(e,"*"))return!1;const n=e.indexOf("*");return-1!==n&&(an(t,e.substring(0,n))&&$t(t,e.substring(n+1)))}}function tR(e,t,n,r,i,o,a){return function s(c,l,_,u){if("string"==typeof c){if(!_&&l.length>0&&!$t(c,"/"))return t.traceEnabled&&jj(t.host,Ea.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),yR(void 0);if(!an(c,"./")){if(a&&!an(c,"../")&&!an(c,"/")&&!zo(c)){const i=_?c.replace(/\*/g,l):c+l;vR(t,Ea.Using_0_subpath_1_with_target_2,"imports",u,i),vR(t,Ea.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=DM(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r,t.conditions);return yR(a.resolvedModule?{path:a.resolvedModule.resolvedFileName,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,originalPath:a.resolvedModule.originalPath,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&jj(t.host,Ea.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),yR(void 0)}const s=(Vo(c)?ra(c).slice(1):ra(c)).slice(1);if(s.includes("..")||s.includes(".")||s.includes("node_modules"))return t.traceEnabled&&jj(t.host,Ea.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),yR(void 0);const f=sa(o.packageDirectory,c),m=ra(l);if(m.includes("..")||m.includes(".")||m.includes("node_modules"))return t.traceEnabled&&jj(t.host,Ea.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),yR(void 0);t.traceEnabled&&jj(t.host,Ea.Using_0_subpath_1_with_target_2,a?"imports":"exports",u,_?c.replace(/\*/g,l):c+l);const g=d(_?f.replace(/\*/g,l):f+l),h=function(n,r,i,a){var s,c,l,_;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!n.includes("/node_modules/")&&(!t.compilerOptions.configFile||Sa(o.packageDirectory,d(t.compilerOptions.configFile.fileName),!bR(t)))){const p=xv({useCaseSensitiveFileNames:()=>bR(t)}),f=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=d(yU(t.compilerOptions,(()=>[]),(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",p));f.push(e)}else if(t.requestContainingDirectory){const e=d(sa(t.requestContainingDirectory,"index.ts")),n=d(yU(t.compilerOptions,(()=>[e,d(i)]),(null==(_=(l=t.host).getCurrentDirectory)?void 0:_.call(l))||"",p));f.push(n);let r=ma(n);for(;r&&r.length>1;){const e=ra(r);e.pop();const t=ia(e);f.unshift(t),r=ma(t)}}f.length>1&&t.reportDiagnostic(IS(a?Ea.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:Ea.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(const r of f){const i=u(r);for(const a of i)if(Sa(a,n,!bR(t))){const i=sa(r,n.slice(a.length+1)),s=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const n of s)if($o(i,n)){const r=Pv(i);for(const a of r){if(!GM(e,a))continue;const r=ha(i,a,n,!bR(t));if(t.host.fileExists(r))return yR(Rj(o,MM(e,r,!1,t)))}}}}}return;function u(e){var n,r;const i=t.compilerOptions.configFile?(null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))||"":e,o=[];return t.compilerOptions.declarationDir&&o.push(d(p(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(d(p(i,t.compilerOptions.outDir))),o}}(g,l,sa(o.packageDirectory,"package.json"),a);return h||yR(Rj(o,MM(e,g,!1,t)))}if("object"==typeof c&&null!==c){if(!Array.isArray(c)){vR(t,Ea.Entering_conditional_exports);for(const e of Ue(c))if("default"===e||t.conditions.includes(e)||nR(t.conditions,e)){vR(t,Ea.Matched_0_condition_1,a?"imports":"exports",e);const n=c[e],r=s(n,l,_,u);if(r)return vR(t,Ea.Resolved_under_condition_0,e),vR(t,Ea.Exiting_conditional_exports),r;vR(t,Ea.Failed_to_resolve_under_condition_0,e)}else vR(t,Ea.Saw_non_matching_condition_0,e);return void vR(t,Ea.Exiting_conditional_exports)}if(!v(c))return t.traceEnabled&&jj(t.host,Ea.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),yR(void 0);for(const e of c){const t=s(e,l,_,u);if(t)return t}}else if(null===c)return t.traceEnabled&&jj(t.host,Ea.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),yR(void 0);t.traceEnabled&&jj(t.host,Ea.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i);return yR(void 0);function d(e){var n,r;return void 0===e?e:_a(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function p(e,t){return ma(sa(e,t))}}}function nR(e,n){if(!e.includes("types"))return!1;if(!an(n,"types@"))return!1;const r=En.tryParse(n.substring(6));return!!r&&r.test(t)}function rR(e,t,n,r,i,o){return iR(e,t,n,r,!1,i,o)}function iR(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features?99:1,c=5&e,l=-6&e;if(c){vR(r,Ea.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,zj(c));const e=_(c);if(e)return e}if(l&&!i)return vR(r,Ea.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,zj(l)),_(l);function _(e){return Fa(oa(n),(n=>{if("node_modules"!==ea(n)){const c=pR(o,t,s,n,a,r);return c||yR(oR(e,t,n,r,i,o,a))}}))}}function oR(e,t,n,r,i,o,a){const s=sa(n,"node_modules"),c=fx(s,r.host);if(!c&&r.traceEnabled&&jj(r.host,Ea.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=aR(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=sa(s,"@types");let n=c;return c&&!fx(e,r.host)&&(r.traceEnabled&&jj(r.host,Ea.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),aR(4,cR(t,r),e,n,r,o,a)}}function aR(e,n,i,o,a,s,c){var l,_;const u=ua(sa(i,n)),{packageName:d,rest:p}=XM(n),f=sa(i,d);let m,g=$M(u,!o,a);if(""!==p&&g&&(!(8&a.features)||!ze((null==(l=m=$M(f,!o,a))?void 0:l.contents.packageJsonContent)??r,"exports"))){const t=LM(e,u,!o,a);if(t)return Bj(t);const n=KM(e,u,!o,a,g.contents.packageJsonContent,HM(g,a));return Rj(g,n)}const h=(e,t,n,r)=>{let i=(p||!(32&r.features))&&LM(e,t,n,r)||KM(e,t,n,r,g&&g.contents.packageJsonContent,g&&HM(g,r));return!i&&g&&(void 0===g.contents.packageJsonContent.exports||null===g.contents.packageJsonContent.exports)&&32&r.features&&(i=LM(e,sa(t,"index.js"),n,r)),Rj(g,i)};if(""!==p&&(g=m??$M(f,!o,a)),g&&g.contents.packageJsonContent.exports&&8&a.features)return null==(_=YM(g,e,sa(".",p),a,s,c))?void 0:_.value;const y=""!==p&&g?HM(g,a):void 0;if(y){a.traceEnabled&&jj(a.host,Ea.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,y.version,t,p);const n=o&&fx(f,a.host),r=sR(e,p,f,y.paths,void 0,h,!n,a);if(r)return r.value}return h(e,u,!o,a)}function sR(e,t,n,r,i,o,a,s){i||(i=rT(r));const c=uT(i,t);if(c){const i=dt(c)?void 0:rn(c,t),l=dt(c)?c:nn(c);s.traceEnabled&&jj(s.host,Ea.Module_name_0_matched_pattern_1,t,l);return{value:b(r[l],(t=>{const r=i?t.replace("*",i):t,c=ua(sa(n,r));s.traceEnabled&&jj(s.host,Ea.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const l=lT(t);if(void 0!==l){const e=BM(c,a,s);if(void 0!==e)return Bj({path:e,ext:l,resolvedUsingTsExtension:void 0})}return o(e,c,a||!fx(Zo(c),s.host),s)}))}}}function cR(e,t){const n=_R(e);return t.traceEnabled&&n!==e&&jj(t.host,Ea.Scoped_package_detected_looking_in_0,n),n}function lR(e){return`@types/${_R(e)}`}function _R(e){if(an(e,"@")){const t=e.replace(Io,Oj);if(t!==e)return t.slice(1)}return e}function uR(e){const t=sn(e,"@types/");return t!==e?dR(t):e}function dR(e){return e.includes(Oj)?"@"+e.replace(Oj,Io):e}function pR(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&jj(o.host,Ea.Resolution_for_module_0_was_found_in_cache_from_location_1,t,r),o.resultFromCache=a,{value:a.resolvedModule&&{path:a.resolvedModule.resolvedFileName,originalPath:a.resolvedModule.originalPath||!0,extension:a.resolvedModule.extension,packageId:a.resolvedModule.packageId,resolvedUsingTsExtension:a.resolvedModule.resolvedUsingTsExtension}}}function fR(e,t,n,r,i,o){const a=Mj(n,r),s=[],c=[],l=Zo(t),_=[],u={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:i,features:0,conditions:[],requestContainingDirectory:l,reportDiagnostic:e=>{_.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1},d=p(5)||p(2|(n.resolveJsonModule?8:0));return Uj(e,d&&d.value,(null==d?void 0:d.value)&&EM(d.value.path),s,c,_,u,i);function p(t){const n=SM(t,e,l,OM,u);if(n)return{value:n};if(Vs(e)){const n=ua(sa(l,e));return yR(OM(t,n,!1,u))}{const n=Fa(l,(n=>{const r=pR(i,e,void 0,n,o,u);if(r)return r;const a=ua(sa(n,e));return yR(OM(t,a,!1,u))}));if(n)return n;if(5&t){let n=function(e,t,n){return iR(4,e,t,n,!0,void 0,void 0)}(e,l,u);return 4&t&&(n??(n=mR(e,u))),n}}}}function mR(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=eM(n,e,t),i=fx(n,t.host);!i&&t.traceEnabled&&jj(t.host,Ea.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=LM(4,r,!i,t);if(o){const e=AM(o.path);return yR(Rj(e?$M(e,!1,t):void 0,o))}const a=zM(4,r,!i,t);if(a)return yR(a)}}function gR(e,t){return!!e.allowImportingTsExtensions||t&&oO(t)}function hR(e,t,n,r,i,o){const a=Mj(n,r);a&&jj(r,Ea.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,i);const s=[],c=[],l=[],_={compilerOptions:n,host:r,traceEnabled:a,failedLookupLocations:s,affectingLocations:c,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e=>{l.push(e)},isConfigLookup:!1,candidateIsFromPackageJsonField:!1};return Vj(oR(4,e,i,_,!1,void 0,void 0),!0,s,c,l,_.resultFromCache,void 0)}function yR(e){return void 0!==e?{value:e}:void 0}function vR(e,t,...n){e.traceEnabled&&jj(e.host,t,...n)}function bR(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var xR,SR,kR,TR=g({"src/compiler/moduleNameResolver.ts"(){OK(),Ej=sa("node_modules","@types"),Aj=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(Aj||{}),Ij="/node_modules/",Oj="__"}});function CR(e,t){return e.body&&!e.body.parent&&(AT(e.body,e),OT(e.body,!1)),e.body?wR(e.body,t):1}function wR(e,t=new Map){const n=PB(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(em(e))return 2;break;case 272:case 271:if(!fb(e,32))return 0;break;case 278:const n=e;if(!n.moduleSpecifier&&n.exportClause&&279===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=NR(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 268:{let n=0;return KI(e,(e=>{const r=wR(e,t);switch(r){case 0:return;case 2:return void(n=2);case 1:return n=1,!0;default:Sn.assertNever(r)}})),n}case 267:return CR(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function NR(e,t){const n=e.propertyName||e.name;let r=e.parent;for(;r;){if(PF(r)||rP(r)||$P(r)){const e=r.statements;let i;for(const o of e)if(Ic(o,n)){o.parent||(AT(o,r),OT(o,!1));const e=wR(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i;271===o.kind&&(i=1)}if(void 0!==i)return i}r=r.parent}return 1}function DR(e){return Sn.attachFlowNodeDebugInfo(e),e}function FR(e,t){var n,r;gr("beforeBind"),null==(n=rr)||n.logStartBindFile(""+e.fileName),kR(e,t),null==(r=rr)||r.logStopBindFile(),gr("afterBind"),hr("Bind","beforeBind","afterBind")}function PR(){var e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,x,S,k,T,C,w=!1,D=0,F={flags:1},P={flags:1},E=function(){return WA((function(e,t){if(t){t.stackIndex++,AT(e,r);const n=k;qe(e);const i=r;r=e,t.skip=!1,t.inStrictModeStack[t.stackIndex]=n,t.parentStack[t.stackIndex]=i}else t={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};const n=e.operatorToken.kind;if(Bb(n)||Mb(n)){if(le(e)){const t=G();ve(e,t,t),_=se(t)}else ve(e,f,m);t.skip=!0}return t}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&me(t),n}}),(function(e,t,n){t.skip||Re(e)}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&me(t),n}}),(function(e,t){if(!t.skip){const t=e.operatorToken.kind;if(zb(t)&&!qh(e)&&(ye(e.left),64===t&&212===e.left.kind)){K(e.left.expression)&&(_=ne(256,_,e))}}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(k=n);void 0!==i&&(r=i);t.skip=!1,t.stackIndex--}),void 0);function e(e){if(e&&pF(e)&&!Hb(e))return e;Re(e)}}();return function(h,v){var b,N;e=h,n=HS(t=v),k=function(e,t){return!(!pk(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,v),C=new Set,D=0,T=Ed.getSymbolConstructor(),Sn.attachFlowNodeDebugInfo(F),Sn.attachFlowNodeDebugInfo(P),e.locals||(null==(b=Fr)||b.push(Fr.Phase.Bind,"bindSourceFile",{path:e.path},!0),Re(e),null==(N=Fr)||N.pop(),e.symbolCount=D,e.classifiableNames=C,function(){if(!c)return;const t=i,n=s,o=a,l=r,u=_;for(const t of c){const n=t.parent.parent;i=Pf(n)||e,a=Ef(n)||e,_=DR({flags:2}),r=t,Re(t.typeExpression);const o=Mc(t);if((CE(t)||!t.fullName)&&o&&Qb(o.parent)){const n=et(o.parent);if(n){Ye(e.symbol,o.parent,n,!!kc(o,(e=>YD(e)&&"prototype"===e.name.escapedText)),!1);const r=i;switch(oh(o.parent)){case 1:case 2:i=Yf(e)?e:void 0;break;case 4:i=o.parent.expression;break;case 3:i=o.parent.expression.name;break;case 5:i=AR(e,o.parent.expression)?e:YD(o.parent.expression)?o.parent.expression.name:o.parent.expression;break;case 0:return Sn.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}i&&B(t,524288,788968),i=r}}else CE(t)||!t.fullName||80===t.fullName.kind?(r=t.parent,Ee(t,524288,788968)):Re(t.fullName)}i=t,s=n,a=o,r=l,_=u}());e=void 0,t=void 0,n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,c=void 0,l=!1,_=void 0,u=void 0,d=void 0,p=void 0,f=void 0,m=void 0,g=void 0,y=void 0,x=!1,w=!1,S=0};function A(t,n,...r){return zf(Cp(t)||e,t,n,...r)}function O(e,t){return D++,new T(e,t)}function L(e,t,n){e.flags|=n,t.symbol=e,e.declarations=Se(e.declarations,t),1955&n&&!e.exports&&(e.exports=op()),6240&n&&!e.members&&(e.members=op()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&lh(e,t)}function j(e){if(277===e.kind)return e.isExportEquals?"export=":"default";const t=Mc(e);if(t){if(lf(e)){const n=Ly(t);return mf(e)?"__global":`"${n}"`}if(167===t.kind){const e=t.expression;if(Fy(e))return wc(e.text);if(Py(e))return ts(e.operator)+e.operand.text;Sn.fail("Only computed properties with literal names have declaration names")}if($N(t)){const n=Um(e);if(!n)return;return Ry(n.symbol,t.escapedText)}return MP(t)?uC(t):Oy(t)?jy(t):void 0}switch(e.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(2===Gg(e))return"export=";Sn.fail("Unknown binary declaration kind");break;case 324:return vh(e)?"__new":"__call";case 169:Sn.assert(324===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${Sn.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`));return"arg"+e.parent.parameters.indexOf(e)}}function M(e){return Lc(e)?If(e.name):Nc(Sn.checkDefined(j(e)))}function R(t,n,r,i,o,a,s){Sn.assert(s||!Ey(r));const c=fb(r,2048)||xP(r)&&"default"===r.name.escapedText,l=s?"__computed":c&&n?"default":j(r);let _;if(void 0===l)_=O(0,"__missing");else if(_=t.get(l),2885600&i&&C.add(l),_){if(a&&!_.isReplaceableByMethod)return _;if(_.flags&o)if(_.isReplaceableByMethod)t.set(l,_=O(0,l));else if(!(3&i&&67108864&_.flags)){Lc(r)&&AT(r.name,r);let t=2&_.flags?Ea.Cannot_redeclare_block_scoped_variable_0:Ea.Duplicate_identifier_0,n=!0;(384&_.flags||384&i)&&(t=Ea.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,n=!1);let o=!1;v(_.declarations)&&(c||_.declarations&&_.declarations.length&&277===r.kind&&!r.isExportEquals)&&(t=Ea.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];eP(r)&&Ip(r.type)&&fb(r,32)&&2887656&_.flags&&a.push(A(r,Ea.Did_you_mean_0,`export type { ${Nc(r.name.escapedText)} }`));const s=Mc(r)||r;b(_.declarations,((r,i)=>{const c=Mc(r)||r,l=n?A(c,t,M(r)):A(c,t);e.bindDiagnostics.push(o?pT(l,A(s,0===i?Ea.Another_export_default_is_here:Ea.and_here)):l),o&&a.push(A(c,Ea.The_first_export_default_is_here))}));const u=n?A(s,t,M(r)):A(s,t);e.bindDiagnostics.push(pT(u,...a)),_=O(0,l)}}else t.set(l,_=O(0,l)),a&&(_.isReplaceableByMethod=!0);return L(_,r,i),_.parent?Sn.assert(_.parent===n,"Existing symbol parent should match new one"):_.parent=n,_}function B(e,t,n){const r=!!(32&hc(e))||function(e){e.parent&&nP(e)&&(e=e.parent);if(!bh(e))return!1;if(!CE(e)&&e.fullName)return!0;const t=Mc(e);return!!t&&(!(!Qb(t.parent)||!et(t.parent))||!!(Nu(t.parent)&&32&hc(t.parent)))}(e);if(2097152&t)return 281===e.kind||271===e.kind&&r?R(i.symbol.exports,i.symbol,e,t,n):(Sn.assertNode(i,Tu),R(i.locals,void 0,e,t,n));if(bh(e)&&Sn.assert(Tg(e)),!lf(e)&&(r||128&i.flags)){if(!Tu(i)||!i.locals||fb(e,2048)&&!j(e))return R(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=R(i.locals,void 0,e,r,n);return o.exportSymbol=R(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return Sn.assertNode(i,Tu),R(i.locals,void 0,e,t,n)}function J(e){z(e,(e=>262===e.kind?Re(e):void 0)),z(e,(e=>262!==e.kind?Re(e):void 0))}function z(e,t=Re){void 0!==e&&b(e,t)}function q(e){KI(e,Re,z)}function U(e){const n=w;if(w=!1,function(e){if(!(1&_.flags))return!1;if(_===F){const n=Fu(e)&&242!==e.kind||263===e.kind||267===e.kind&&function(e){const n=CR(e);return 1===n||2===n&&uk(t)}(e);if(n&&(_=P,!t.allowUnreachableCode)){const n=ek(t)&&!(33554432&e.flags)&&(!EF(e)||!!(7&vc(e.declarationList))||e.declarationList.declarations.some((e=>!!e.initializer)));!function(e,t){if(Pu(e)&&ER(e)&&PF(e.parent)){const{statements:n}=e.parent,r=dT(n,e);ie(r,ER,((e,n)=>t(r[e],r[n-1])))}else t(e,e)}(e,((e,t)=>Me(n,e,t,Ea.Unreachable_code_detected)))}}return!0}(e))return q(e),Be(e),void(w=n);switch(e.kind>=243&&e.kind<=259&&!t.allowUnreachableCode&&(e.flowNode=_),e.kind){case 247:!function(e){const t=pe(e,X()),n=G(),r=G();Z(t,_),_=t,ue(e.expression,n,r),_=se(n),de(e.statement,r,t),Z(t,_),_=se(r)}(e);break;case 246:!function(e){const t=X(),n=pe(e,G()),r=G();Z(t,_),_=t,de(e.statement,r,n),Z(n,_),_=se(n),ue(e.expression,t,r),_=se(r)}(e);break;case 248:!function(e){const t=pe(e,X()),n=G(),r=G();Re(e.initializer),Z(t,_),_=t,ue(e.condition,n,r),_=se(n),de(e.statement,r,t),Re(e.incrementor),Z(t,_),_=se(r)}(e);break;case 249:case 250:!function(e){const t=pe(e,X()),n=G();Re(e.expression),Z(t,_),_=t,250===e.kind&&Re(e.awaitModifier);Z(n,_),Re(e.initializer),261!==e.initializer.kind&&ye(e.initializer);de(e.statement,n,t),Z(t,_),_=se(n)}(e);break;case 245:!function(e){const t=G(),n=G(),r=G();ue(e.expression,t,n),_=se(t),Re(e.thenStatement),Z(r,_),_=se(n),Re(e.elseStatement),Z(r,_),_=se(r)}(e);break;case 253:case 257:!function(e){Re(e.expression),253===e.kind&&(x=!0,p&&Z(p,_));_=F}(e);break;case 252:case 251:!function(e){if(Re(e.label),e.label){const t=function(e){for(let t=y;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,fe(e,t.breakTarget,t.continueTarget))}else fe(e,u,d)}(e);break;case 258:!function(e){const t=p,n=g,r=G(),i=G();let o=G();e.finallyBlock&&(p=i);Z(o,_),g=o,Re(e.tryBlock),Z(r,_),e.catchClause&&(_=se(o),o=G(),Z(o,_),g=o,Re(e.catchClause),Z(r,_));if(p=t,g=n,e.finallyBlock){const t=G();t.antecedents=oe(oe(r.antecedents,o.antecedents),i.antecedents),_=t,Re(e.finallyBlock),1&_.flags?_=F:(p&&i.antecedents&&Z(p,Q(t,i.antecedents,_)),g&&o.antecedents&&Z(g,Q(t,o.antecedents,_)),_=r.antecedents?Q(t,r.antecedents,_):F)}else _=se(r)}(e);break;case 255:!function(e){const t=G();Re(e.expression);const n=u,r=h;u=t,h=_,Re(e.caseBlock),Z(t,_);const i=b(e.caseBlock.clauses,(e=>297===e.kind));e.possiblyExhaustive=!i&&!t.antecedents,i||Z(t,te(h,e,0,0));u=n,h=r,_=se(t)}(e);break;case 269:!function(e){const n=e.clauses,r=112===e.parent.expression.kind||V(e.parent.expression);let i=F;for(let o=0;o<n.length;o++){const a=o;for(;!n[o].statements.length&&o+1<n.length;)Re(n[o]),o++;const s=G();Z(s,r?te(h,e.parent,a,o+1):h),Z(s,i),_=se(s);const c=n[o];Re(c),i=_,1&_.flags||o===n.length-1||!t.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=_)}}(e);break;case 296:!function(e){const t=_;_=h,Re(e.expression),_=t,z(e.statements)}(e);break;case 244:!function(e){Re(e.expression),me(e.expression)}(e);break;case 256:!function(e){const n=G();y={next:y,name:e.label.escapedText,breakTarget:n,continueTarget:void 0,referenced:!1},Re(e.label),Re(e.statement),y.referenced||t.allowUnusedLabels||function(e,t,n){Me(e,t,t,n)}(tk(t),e.label,Ea.Unused_label);y=y.next,Z(n,_),_=se(n)}(e);break;case 224:!function(e){if(54===e.operator){const t=f;f=m,m=t,q(e),m=f,f=t}else q(e),46!==e.operator&&47!==e.operator||ye(e.operand)}(e);break;case 225:!function(e){q(e),(46===e.operator||47===e.operator)&&ye(e.operand)}(e);break;case 226:if(Hb(e))return w=n,void function(e){w?(w=!1,Re(e.operatorToken),Re(e.right),w=!0,Re(e.left)):(w=!0,Re(e.left),w=!1,Re(e.operatorToken),Re(e.right));ye(e.left)}(e);E(e);break;case 220:!function(e){q(e),211===e.expression.kind&&ye(e.expression)}(e);break;case 227:!function(e){const t=G(),n=G(),r=G();ue(e.condition,t,n),_=se(t),Re(e.questionToken),Re(e.whenTrue),Z(r,_),_=se(n),Re(e.colonToken),Re(e.whenFalse),Z(r,_),_=se(r)}(e);break;case 260:!function(e){q(e),(e.initializer||fu(e.parent.parent))&&be(e)}(e);break;case 211:case 212:!function(e){Pl(e)?Ce(e):q(e)}(e);break;case 213:!function(e){if(Pl(e))Ce(e);else{const t=Qh(e.expression);218===t.kind||219===t.kind?(z(e.typeArguments),z(e.arguments),Re(e.expression)):(q(e),108===e.expression.kind&&(_=ae(_,e)))}if(211===e.expression.kind){const t=e.expression;HN(t.name)&&K(t.expression)&&Hy(t.name)&&(_=ne(256,_,e))}}(e);break;case 235:!function(e){Pl(e)?Ce(e):q(e)}(e);break;case 353:case 345:case 347:!function(e){Re(e.tagName),347!==e.kind&&e.fullName&&(AT(e.fullName,e),OT(e.fullName,!1));"string"!=typeof e.comment&&z(e.comment)}(e);break;case 312:J(e.statements),Re(e.endOfFileToken);break;case 241:case 268:J(e.statements);break;case 208:!function(e){Re(e.dotDotDotToken),Re(e.propertyName),xe(e.initializer),Re(e.name)}(e);break;case 169:!function(e){z(e.modifiers),Re(e.dotDotDotToken),Re(e.questionToken),Re(e.type),xe(e.initializer),Re(e.name)}(e);break;case 210:case 209:case 303:case 230:w=n;default:q(e)}Be(e),w=n}function V(e){switch(e.kind){case 80:case 81:case 110:case 211:case 212:return H(e);case 213:return function(e){if(e.arguments)for(const t of e.arguments)if(H(t))return!0;if(211===e.expression.kind&&H(e.expression.expression))return!0;return!1}(e);case 217:case 235:case 221:return V(e.expression);case 226:return function(e){switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return H(e.left);case 35:case 36:case 37:case 38:return K(e.left)||K(e.right)||$(e.right,e.left)||$(e.left,e.right)||x_(e.right)&&V(e.left)||x_(e.left)&&V(e.right);case 104:return K(e.left);case 103:case 28:return V(e.right)}return!1}(e);case 224:return 54===e.operator&&V(e.operand)}return!1}function W(e){return Xb(e)||(YD(e)||kF(e)||iF(e))&&W(e.expression)||pF(e)&&28===e.operatorToken.kind&&W(e.right)||ZD(e)&&(Fy(e.argumentExpression)||Kb(e.argumentExpression))&&W(e.expression)||Vb(e)&&W(e.left)}function H(e){return W(e)||Pl(e)&&H(e.expression)}function $(e,t){return cF(e)&&K(e.expression)&&Qu(t)}function K(e){switch(e.kind){case 217:return K(e.expression);case 226:switch(e.operatorToken.kind){case 64:return K(e.left);case 28:return K(e.right)}}return H(e)}function G(){return DR({flags:4,antecedents:void 0})}function X(){return DR({flags:8,antecedents:void 0})}function Q(e,t,n){return DR({flags:1024,target:e,antecedents:t,antecedent:n})}function Y(e){e.flags|=2048&e.flags?4096:2048}function Z(e,t){1&t.flags||I(e.antecedents,t)||((e.antecedents||(e.antecedents=[])).push(t),Y(t))}function ee(e,t,n){return 1&t.flags?t:n?!(112===n.kind&&64&e||97===n.kind&&32&e)||Al(n)||Ol(n.parent)?V(n)?(Y(t),DR({flags:e,antecedent:t,node:n})):t:F:32&e?t:F}function te(e,t,n,r){return Y(e),DR({flags:128,antecedent:e,switchStatement:t,clauseStart:n,clauseEnd:r})}function ne(e,t,n){Y(t);const r=DR({flags:e,antecedent:t,node:n});return g&&Z(g,r),r}function ae(e,t){return Y(e),DR({flags:512,antecedent:e,node:t})}function se(e){const t=e.antecedents;return t?1===t.length?t[0]:e:F}function ce(e){for(;;)if(217===e.kind)e=e.expression;else{if(224!==e.kind||54!==e.operator)return Jb(e);e=e.operand}}function le(e){for(;iF(e.parent)||uF(e.parent)&&54===e.parent.operator;)e=e.parent;return!(function(e){const t=e.parent;switch(t.kind){case 245:case 247:case 246:return t.expression===e;case 248:case 227:return t.condition===e}return!1}(e)||ce(e.parent)||Pl(e.parent)&&e.parent.expression===e)}function _e(e,t,n,r){const i=f,o=m;f=n,m=r,e(t),f=i,m=o}function ue(e,t,n){_e(Re,e,t,n),e&&(function(e){return Rb(Qh(e))}(e)||ce(e)||Pl(e)&&Il(e))||(Z(t,ee(32,_,e)),Z(n,ee(64,_,e)))}function de(e,t,n){const r=u,i=d;u=t,d=n,Re(e),u=r,d=i}function pe(e,t){let n=y;for(;n&&256===e.parent.kind;)n.continueTarget=t,n=n.next,e=e.parent;return t}function fe(e,t,n){const r=252===e.kind?t:n;r&&(Z(r,_),_=F)}function me(e){if(213===e.kind){const t=e;108!==t.expression.kind&&Xb(t.expression)&&(_=ae(_,t))}}function ge(e){226===e.kind&&64===e.operatorToken.kind?ye(e.left):ye(e)}function ye(e){if(W(e))_=ne(16,_,e);else if(209===e.kind)for(const t of e.elements)230===t.kind?ye(t.expression):ge(t);else if(210===e.kind)for(const t of e.properties)303===t.kind?ge(t.initializer):304===t.kind?ye(t.name):305===t.kind&&ye(t.expression)}function ve(e,t,n){const r=G();56===e.operatorToken.kind||77===e.operatorToken.kind?ue(e.left,r,n):ue(e.left,t,r),_=se(r),Re(e.operatorToken),Mb(e.operatorToken.kind)?(_e(Re,e.right,t,n),ye(e.left),Z(t,ee(32,_,e)),Z(n,ee(64,_,e))):ue(e.right,t,n)}function be(e){const t=vF(e)?void 0:e.name;if(R_(t))for(const e of t.elements)be(e);else _=ne(16,_,e)}function xe(e){if(!e)return;const t=_;if(Re(e),t===F||t===_)return;const n=G();Z(n,t),Z(n,_),_=se(n)}function ke(e){switch(e.kind){case 211:Re(e.questionDotToken),Re(e.name);break;case 212:Re(e.questionDotToken),Re(e.argumentExpression);break;case 213:Re(e.questionDotToken),z(e.typeArguments),z(e.arguments)}}function Te(e,t,n){const r=El(e)?G():void 0;!function(e,t,n){_e(Re,e,t,n),Pl(e)&&!Il(e)||(Z(t,ee(32,_,e)),Z(n,ee(64,_,e)))}(e.expression,r||t,n),r&&(_=se(r)),_e(ke,e,t,n),Il(e)&&(Z(t,ee(32,_,e)),Z(n,ee(64,_,e)))}function Ce(e){if(le(e)){const t=G();Te(e,t,t),_=se(t)}else Te(e,f,m)}function we(e){s&&(s.nextContainer=e),s=e}function Ne(t,n,r){switch(i.kind){case 267:return B(t,n,r);case 312:return function(t,n,r){return tO(e)?B(t,n,r):R(e.locals,void 0,t,n,r)}(t,n,r);case 231:case 263:return function(e,t,n){return mb(e)?R(i.symbol.exports,i.symbol,e,t,n):R(i.symbol.members,i.symbol,e,t,n)}(t,n,r);case 266:return R(i.symbol.exports,i.symbol,t,n,r);case 187:case 329:case 210:case 264:case 292:return R(i.symbol.members,i.symbol,t,n,r);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return i.locals&&Sn.assertNode(i,Tu),R(i.locals,void 0,t,n,r)}}function De(e){33554432&e.flags&&!function(e){const t=$P(e)?e:ft(e.body,rP);return!!t&&t.statements.some((e=>vP(e)||yP(e)))}(e)?e.flags|=128:e.flags&=-129}function Fe(e){const t=CR(e),n=0!==t;return Ne(e,n?512:1024,n?110735:0),t}function Pe(e,t,n){const r=O(t,n);return 106508&t&&(r.parent=i.symbol),L(r,e,t),r}function Ee(e,t,n){switch(a.kind){case 267:B(e,t,n);break;case 312:if(Yf(i)){B(e,t,n);break}default:Sn.assertNode(a,Tu),a.locals||(a.locals=op(),we(a)),R(a.locals,void 0,e,t,n)}}function Ae(t){if(!(e.parseDiagnostics.length||33554432&t.flags||16777216&t.flags||ry(t))){const n=Fc(t);if(void 0===n)return;k&&n>=119&&n<=127?e.bindDiagnostics.push(A(t,function(t){if(Um(t))return Ea.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(e.externalModuleIndicator)return Ea.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return Ea.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),If(t))):135===n?tO(e)&&Gm(t)?e.bindDiagnostics.push(A(t,Ea.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,If(t))):65536&t.flags&&e.bindDiagnostics.push(A(t,Ea.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,If(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(A(t,Ea.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,If(t)))}}function Ie(t,n){if(n&&80===n.kind){const i=n;if(HN(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=Qf(e,n);e.bindDiagnostics.push(ES(e,r.start,r.length,function(t){if(Um(t))return Ea.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;if(e.externalModuleIndicator)return Ea.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return Ea.Invalid_use_of_0_in_strict_mode}(t),Dc(i)))}}var r}function Oe(e){k&&Ie(e,e.name)}function Le(t){if(n<2&&312!==a.kind&&267!==a.kind&&!v_(a)){const n=Qf(e,t);e.bindDiagnostics.push(ES(e,n.start,n.length,function(t){return Um(t)?Ea.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?Ea.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:Ea.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(t)))}}function je(t,n,...r){const i=Gf(e,t.pos);e.bindDiagnostics.push(ES(e,i.start,i.length,n,...r))}function Me(t,n,r,i){!function(t,n,r){const i=ES(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=he(e.bindSuggestionDiagnostics,{...i,category:2})}(t,{pos:$p(n,e),end:r.end},i)}function Re(t){if(!t)return;AT(t,r),Fr&&(t.tracingPath=e.path);const n=k;if(qe(t),t.kind>165){const e=r;r=t;const n=IR(t);0===n?U(t):function(e,t){const n=i,r=o,s=a;if(1&t?(219!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=op(),we(i))):2&t&&(a=e,32&t&&(a.locals=void 0)),4&t){const n=_,r=u,i=d,o=p,a=g,s=y,c=x,l=16&t&&!fb(e,1024)&&!e.asteriskToken&&!!Ym(e)||175===e.kind;l||(_=DR({flags:2}),144&t&&(_.node=e)),p=l||176===e.kind||Tg(e)&&(262===e.kind||218===e.kind)?G():void 0,g=void 0,u=void 0,d=void 0,y=void 0,x=!1,U(e),e.flags&=-5633,!(1&_.flags)&&8&t&&Op(e.body)&&(e.flags|=512,x&&(e.flags|=1024),e.endFlowNode=_),312===e.kind&&(e.flags|=S,e.endFlowNode=_),p&&(Z(p,_),_=se(p),(176===e.kind||175===e.kind||Tg(e)&&(262===e.kind||218===e.kind))&&(e.returnFlowNode=_)),l||(_=n),u=r,d=i,p=o,g=a,y=s,x=c}else 64&t?(l=!1,U(e),Sn.assertNotNode(e,HN),e.flags=l?256|e.flags:-257&e.flags):U(e);i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),Be(t),r=e}k=n}function Be(e){if(Vu(e))if(Tg(e))for(const t of e.jsDoc)Re(t);else for(const t of e.jsDoc)AT(t,e),OT(t,!1)}function Je(e){if(!k)for(const t of e){if(!_m(t))return;if(ze(t))return void(k=!0)}}function ze(t){const n=Gp(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function qe(n){switch(n.kind){case 80:if(4096&n.flags){let e=n.parent;for(;e&&!bh(e);)e=e.parent;Ee(e,524288,788968);break}case 110:return _&&(au(n)||304===r.kind)&&(n.flowNode=_),Ae(n);case 166:_&&gg(n)&&(n.flowNode=_);break;case 236:case 108:n.flowNode=_;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(A(t,Ea.constructor_is_a_reserved_word,If(t))))}(n);case 211:case 212:const o=n;_&&W(o)&&(o.flowNode=_),ch(o)&&function(e){110===e.expression.kind?$e(e):Zg(e)&&312===e.parent.parent.kind&&(Zb(e.expression)?Xe(e,e.parent):Qe(e))}(o),Tg(o)&&e.commonJsModuleIndicator&&Kg(o)&&!OR(a,"module")&&R(e.locals,void 0,o.expression,134217729,111550);break;case 226:switch(Gg(n)){case 1:We(n);break;case 2:!function(t){if(!Ve(t))return;const n=Wg(t.right);if(ox(n)||i===e&&AR(e,n))return;if(QD(n)&&N(n.properties,UP))return void b(n.properties,He);const r=sy(t)?2097152:1049092,o=R(e.symbol.exports,e.symbol,t,67108864|r,0);lh(o,t)}(n);break;case 3:Xe(n.left,n);break;case 6:!function(e){AT(e.left,e),AT(e.right,e),tt(e.left.expression,e.left,!1,!0)}(n);break;case 4:$e(n);break;case 5:const t=n.left.expression;if(Tg(n)&&HN(t)){const e=OR(a,t.escapedText);if(ng(null==e?void 0:e.valueDeclaration)){$e(n);break}}!function(t){var n;const r=nt(t.left.expression,i)||nt(t.left.expression,a);if(!Tg(t)&&!_h(r))return;const o=uS(t.left);if(HN(o)&&2097152&(null==(n=OR(i,o.escapedText))?void 0:n.flags))return;if(AT(t.left,t),AT(t.right,t),HN(t.left.expression)&&i===e&&AR(e,t.left.expression))We(t);else if(Ey(t)){Pe(t,67108868,"__computed");Ge(t,Ye(r,t.left.expression,et(t.left),!1,!1))}else Qe(mt(t.left,th))}(n);break;case 0:break;default:Sn.fail("Unknown binary expression special property assignment kind")}return function(e){k&&eu(e.left)&&zb(e.operatorToken.kind)&&Ie(e,e.left)}(n);case 299:return function(e){k&&e.variableDeclaration&&Ie(e,e.variableDeclaration.name)}(n);case 220:return function(t){if(k&&80===t.expression.kind){const n=Qf(e,t.expression);e.bindDiagnostics.push(ES(e,n.start,n.length,Ea.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 225:return function(e){k&&Ie(e,e.operand)}(n);case 224:return function(e){k&&(46!==e.operator&&47!==e.operator||Ie(e,e.operand))}(n);case 254:return function(e){k&&je(e,Ea.with_statements_are_not_allowed_in_strict_mode)}(n);case 256:return function(e){k&&HS(t)>=2&&(Du(e.statement)||EF(e.statement))&&je(e.label,Ea.A_label_is_not_allowed_here)}(n);case 197:return void(l=!0);case 182:break;case 168:return function(e){if(PE(e.parent)){const t=Ih(e.parent);t?(Sn.assertNode(t,Tu),t.locals??(t.locals=op()),R(t.locals,void 0,e,262144,526824)):Ne(e,262144,526824)}else if(195===e.parent.kind){const t=function(e){const t=kc(e,(e=>e.parent&&jD(e.parent)&&e.parent.extendsType===e));return t&&t.parent}(e.parent);t?(Sn.assertNode(t,Tu),t.locals??(t.locals=op()),R(t.locals,void 0,e,262144,526824)):Pe(e,262144,j(e))}else Ne(e,262144,526824)}(n);case 169:return ot(n);case 260:return it(n);case 208:return n.flowNode=_,it(n);case 172:case 171:return function(e){const t=D_(e),n=t?13247:0;return at(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(n);case 303:case 304:return at(n,4,0);case 306:return at(n,8,900095);case 179:case 180:case 181:return Ne(n,131072,0);case 174:case 173:return at(n,8192|(n.questionToken?16777216:0),Am(n)?0:103359);case 262:return function(t){e.isDeclarationFile||33554432&t.flags||Dy(t)&&(S|=4096);Oe(t),k?(Le(t),Ee(t,16,110991)):Ne(t,16,110991)}(n);case 176:return Ne(n,16384,0);case 177:return at(n,32768,46015);case 178:return at(n,65536,78783);case 184:case 324:case 330:case 185:return function(e){const t=O(131072,j(e));L(t,e,131072);const n=O(2048,"__type");L(n,e,2048),n.members=op(),n.members.set(t.escapedName,t)}(n);case 187:case 329:case 200:return function(e){return Pe(e,2048,"__type")}(n);case 339:return function(e){q(e);const t=Oh(e);t&&174!==t.kind&&L(t.symbol,t,32)}(n);case 210:return function(e){return Pe(e,4096,"__object")}(n);case 218:case 219:return function(t){e.isDeclarationFile||33554432&t.flags||Dy(t)&&(S|=4096);_&&(t.flowNode=_);Oe(t);const n=t.name?t.name.escapedText:"__function";return Pe(t,16,n)}(n);case 213:switch(Gg(n)){case 7:return function(e){let t=nt(e.arguments[0]);const n=312===e.parent.parent.kind;t=Ye(t,e.arguments[0],n,!1,!1),Ze(e,t,!1)}(n);case 8:return function(e){if(!Ve(e))return;const t=rt(e.arguments[0],void 0,((e,t)=>(t&&L(t,e,67110400),t)));if(t){const n=1048580;R(t.exports,t,e,n,0)}}(n);case 9:return function(e){const t=nt(e.arguments[0].expression);t&&t.valueDeclaration&&L(t,t.valueDeclaration,32);Ze(e,t,!0)}(n);case 0:break;default:return Sn.fail("Unknown call expression assignment declaration kind")}Tg(n)&&function(t){!e.commonJsModuleIndicator&&Fg(t,!1)&&Ve(t)}(n);break;case 231:case 263:return k=!0,function(t){if(263===t.kind)Ee(t,32,899503);else{Pe(t,32,t.name?t.name.escapedText:"__class"),t.name&&C.add(t.name.escapedText)}const{symbol:n}=t,r=O(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&&AT(t.name,t),e.bindDiagnostics.push(A(i.declarations[0],Ea.Duplicate_identifier_0,Pc(r))));n.exports.set(r.escapedName,r),r.parent=n}(n);case 264:return Ee(n,64,788872);case 265:return Ee(n,524288,788968);case 266:return function(e){return em(e)?Ee(e,128,899967):Ee(e,256,899327)}(n);case 267:return function(t){if(De(t),lf(t))if(fb(t,32)&&je(t,Ea.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),hf(t))Fe(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=nT(e),void 0===n&&je(t.name,Ea.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Ne(t,512,110735);e.patternAmbientModules=he(e.patternAmbientModules,n&&!dt(n)?{pattern:n,symbol:r}:void 0)}else{const e=Fe(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(n);case 292:return function(e){return Pe(e,4096,"__jsxAttributes")}(n);case 291:return function(e,t,n){return Ne(e,t,n)}(n,4,0);case 271:case 274:case 276:case 281:return Ne(n,2097152,2097152);case 270:return function(t){re(t.modifiers)&&e.bindDiagnostics.push(A(t,Ea.Modifiers_cannot_appear_here));const n=$P(t.parent)?tO(t.parent)?t.parent.isDeclarationFile?void 0:Ea.Global_module_exports_may_only_appear_in_declaration_files:Ea.Global_module_exports_may_only_appear_in_module_files:Ea.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(A(t,n)):(e.symbol.globalExports=e.symbol.globalExports||op(),R(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(n);case 273:return function(e){e.name&&Ne(e,2097152,2097152)}(n);case 278:return function(e){i.symbol&&i.symbol.exports?e.exportClause?mP(e.exportClause)&&(AT(e.exportClause,e),R(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):R(i.symbol.exports,i.symbol,e,8388608,0):Pe(e,8388608,j(e))}(n);case 277:return function(e){if(i.symbol&&i.symbol.exports){const t=sy(e)?2097152:4,n=R(i.symbol.exports,i.symbol,e,t,67108863);e.isExportEquals&&lh(n,e)}else Pe(e,111551,j(e))}(n);case 312:return Je(n.statements),function(){if(De(e),tO(e))Ue();else if(Zf(e)){Ue();const t=e.symbol;R(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=t}}();case 241:if(!v_(n.parent))return;case 268:return Je(n.statements);case 348:if(330===n.parent.kind)return ot(n);if(329!==n.parent.kind)break;case 355:const s=n;return Ne(s,s.isBracketed||s.typeExpression&&323===s.typeExpression.type.kind?16777220:4,0);case 353:case 345:case 347:return(c||(c=[])).push(n);case 346:return Re(n.typeExpression)}}function Ue(){Pe(e,512,`"${Yk(e.fileName)}"`)}function Ve(t){return(!e.externalModuleIndicator||!0===e.externalModuleIndicator)&&(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||Ue()),!0)}function We(e){if(!Ve(e))return;const t=rt(e.left.expression,void 0,((e,t)=>(t&&L(t,e,67110400),t)));if(t){const n=ay(e.right)&&(Hg(e.left.expression)||Kg(e.left.expression))?2097152:1048580;AT(e.left,e),R(t.exports,t,e.left,n,0)}}function He(t){R(e.symbol.exports,e.symbol,t,69206016,0)}function $e(e){Sn.assert(Tg(e));if(pF(e)&&YD(e.left)&&$N(e.left.name)||YD(e)&&$N(e.name))return;const t=$m(e,!1,!1);switch(t.kind){case 262:case 218:let n=t.symbol;if(pF(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;Zg(e)&&Zb(e.expression)&&(n=nt(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||op(),Ey(e)?Ke(e,n,n.members):R(n.members,n,e,67108868,0),L(n,n.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const r=t.parent,i=mb(t)?r.symbol.exports:r.symbol.members;Ey(e)?Ke(e,r.symbol,i):R(i,r.symbol,e,67108868,0,!0);break;case 312:if(Ey(e))break;t.commonJsModuleIndicator?R(t.symbol.exports,t.symbol,e,1048580,0):Ne(e,1,111550);break;case 267:break;default:Sn.failBadSyntaxKind(t)}}function Ke(e,t,n){R(n,t,e,4,0,!0,!0),Ge(e,t)}function Ge(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set(PB(e),e)}function Xe(e,t){const n=e.expression,r=n.expression;AT(r,n),AT(n,e),AT(e,t),tt(r,e,!0,!0)}function Qe(e){Sn.assert(!HN(e)),AT(e.expression,e),tt(e.expression,e,!1,!1)}function Ye(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=rt(n,t,((t,n,o)=>{if(n)return L(n,t,r),n;return R(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=op()),o,t,r,i)}))}return o&&t&&t.valueDeclaration&&L(t,t.valueDeclaration,32),t}function Ze(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&eF(t))return!!Jg(t);let n=t?GF(t)?t.initializer:pF(t)?t.right:YD(t)&&pF(t.parent)?t.parent.right:void 0:void 0;if(n=n&&Wg(n),n){const e=Zb(GF(t)?t.name:pF(t)?t.left:t);return!!zg(!pF(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=op()):t.exports||(t.exports=op());let i=0,o=0;b_(Jg(e))?(i=8192,o=103359):eF(e)&&Xg(e)&&(re(e.arguments[2].properties,(e=>{const t=Mc(e);return!!t&&HN(t)&&"set"===Dc(t)}))&&(i|=65540,o|=78783),re(e.arguments[2].properties,(e=>{const t=Mc(e);return!!t&&HN(t)&&"get"===Dc(t)}))&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),R(r,t,e,67108864|i,-67108865&o)}function et(e){return pF(e.parent)?312===function(e){for(;pF(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:312===e.parent.parent.kind}function tt(e,t,n,r){let o=nt(e,i)||nt(e,a);const s=et(t);o=Ye(o,t.expression,s,n,r),Ze(t,o,n)}function nt(e,t=i){if(HN(e))return OR(t,e.escapedText);{const t=nt(e.expression);return t&&t.exports&&t.exports.get(ih(e))}}function rt(t,n,r){if(AR(e,t))return e.symbol;if(HN(t))return r(t,nt(t),n);{const e=rt(t.expression,n,r),i=nh(t);return $N(i)&&Sn.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(ih(t)),e)}}function it(e){if(k&&Ie(e,e.name),!R_(e.name)){const n=260===e.kind?e:e.parent.parent;!(Tg(e)&&ak(t)&&Eg(n))||pl(e)||32&hc(e)?sf(e)?Ee(e,2,111551):$y(e)?Ne(e,1,111551):Ne(e,1,111550):Ne(e,2097152,2097152)}}function ot(e){if((348!==e.kind||330===i.kind)&&(!k||33554432&e.flags||Ie(e,e.name),R_(e.name)?Pe(e,1,"__"+e.parent.parameters.indexOf(e)):Ne(e,1,111551),dc(e,e.parent))){const t=e.parent.parent;R(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function at(t,n,r){return e.isDeclarationFile||33554432&t.flags||!Dy(t)||(S|=4096),_&&Im(t)&&(t.flowNode=_),Ey(t)?Pe(t,n,"__computed"):Ne(t,n,r)}}function ER(e){return!(QF(e)||function(e){switch(e.kind){case 264:case 265:return!0;case 267:return 1!==CR(e);case 266:return fb(e,4096);default:return!1}}(e)||tP(e)||EF(e)&&!(7&vc(e))&&e.declarationList.declarations.some((e=>!e.initializer)))}function AR(e,t){let n=0;const r=ct();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,Hg(t=r.dequeue())||Kg(t))return!0;if(HN(t)){const n=OR(e,t.escapedText);if(n&&n.valueDeclaration&&GF(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),Vb(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function IR(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(Im(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return y_(e.parent)||gD(e.parent)?0:34}return 0}function OR(e,t){var n,r,i,o;const a=null==(r=null==(n=ft(e,Tu))?void 0:n.locals)?void 0:r.get(t);return a?a.exportSymbol??a:$P(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):ku(e)?null==(o=null==(i=e.symbol)?void 0:i.exports)?void 0:o.get(t):void 0}var LR=g({"src/compiler/binder.ts"(){OK(),Zi(),xR=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(xR||{}),SR=(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))(SR||{}),kR=PR()}});function jR(e,t,n,r,i,o,a,s,c,l){return function(_=(()=>!0)){const u=[],d=[];return{walkType:e=>{try{return p(e),{visitedTypes:We(u),visitedSymbols:We(d)}}finally{B(u),B(d)}},walkSymbol:e=>{try{return g(e),{visitedTypes:We(u),visitedSymbols:We(d)}}finally{B(u),B(d)}}};function p(e){if(!e)return;if(u[e.id])return;u[e.id]=e;if(!g(e.symbol)){if(524288&e.flags){const n=e,i=n.objectFlags;4&i&&function(e){p(e.target),b(l(e),p)}(e),32&i&&function(e){p(e.typeParameter),p(e.constraintType),p(e.templateType),p(e.modifiersType)}(e),3&i&&(m(t=e),b(t.typeParameters,p),b(r(t),p),p(t.thisType)),24&i&&m(n)}var t;262144&e.flags&&function(e){p(s(e))}(e),3145728&e.flags&&function(e){b(e.types,p)}(e),4194304&e.flags&&function(e){p(e.type)}(e),8388608&e.flags&&function(e){p(e.objectType),p(e.indexType),p(e.constraint)}(e)}}function f(r){const i=t(r);i&&p(i.type),b(r.typeParameters,p);for(const e of r.parameters)g(e);p(e(r)),p(n(r))}function m(e){const t=i(e);for(const e of t.indexInfos)p(e.keyType),p(e.type);for(const e of t.callSignatures)f(e);for(const e of t.constructSignatures)f(e);for(const e of t.properties)g(e)}function g(e){if(!e)return!1;const t=EB(e);if(d[t])return!1;if(d[t]=e,!_(e))return!0;return p(o(e)),e.exports&&e.exports.forEach(g),b(e.declarations,(e=>{if(e.type&&186===e.type.kind){const t=e.type;g(a(c(t.exprName)))}})),!1}}}var MR=g({"src/compiler/symbolWalker.ts"(){OK()}});function RR({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,r,i){const o=function(){if(void 0!==i){if(Wk(i))return 2;if($t(i,"/index"))return 1}return Kk(t,r.impliedNodeFormat,n,r)}();return{relativePreference:void 0!==i?Vs(i)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{if(99===(e??r.impliedNodeFormat))return gR(n,r.fileName)?[3,2]:[2];if(1===GS(n))return 2===o?[2,1]:[1,2];const t=gR(n,r.fileName);switch(o){case 2:return t?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return t?[1,0,3,2]:[1,0,2];case 0:return t?[0,1,3,2]:[0,1,2];default:Sn.assertNever(o)}}}}function BR(e,t,n,r,i,o,a={}){const s=qR(e,t,n,r,i,RR({},e,t,o),{},a);if(s!==o)return s}function JR(e,t,n,r,i,o={}){return qR(e,t,n,r,i,RR({},e,t),{},o)}function zR(e,t,n,r,i,o={}){const a=$R(t.path,r);return S(ZR(t.path,n,r,i,o),(n=>rB(n,a,t,r,e,i,!0,o.overrideImportMode)))}function qR(e,t,n,r,i,o,a,s={}){const c=$R(n,i);return S(ZR(n,r,i,a,s),(n=>rB(n,c,t,i,e,a,void 0,s.overrideImportMode)))||KR(r,c,e,i,s.overrideImportMode||t.impliedNodeFormat,o)}function UR(e,t,n,r,i={}){return VR(e,t,n,r,i)[0]}function VR(e,t,n,i,o={}){var a;const s=wp(e);if(!s)return r;const c=null==(a=n.getModuleSpecifierCache)?void 0:a.call(n),l=null==c?void 0:c.get(t.path,s.path,i,o);return[null==l?void 0:l.moduleSpecifiers,s,null==l?void 0:l.modulePaths,c]}function WR(e,t,n,r,i,o,a={}){return HR(e,t,n,r,i,o,a,!1).moduleSpecifiers}function HR(e,t,n,i,o,a,s={},c){let l=!1;const _=function(e,t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>uf(e)&&(!gf(e)||!Vs(Ly(e.name)))));if(r)return r.name.text;const i=G(e.declarations,(e=>{var n,r,i,o;if(!nP(e))return;const a=l(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&rP(a.parent)&&lf(a.parent.parent)&&$P(a.parent.parent.parent)))return;const s=null==(o=null==(i=null==(r=a.parent.parent.symbol.exports)?void 0:r.get("export="))?void 0:i.valueDeclaration)?void 0:o.expression;if(!s)return;const c=t.getSymbolAtLocation(s);if(!c)return;if((2097152&(null==c?void 0:c.flags)?t.getAliasedSymbol(c):c)===e.symbol)return a.parent.parent;function l(e){for(;8&e.flags;)e=e.parent;return e}})),o=i[0];if(o)return o.name.text}(e,t);if(_)return{moduleSpecifiers:[_],computedWithoutCache:l};let[u,d,p,f]=VR(e,i,o,a,s);if(u)return{moduleSpecifiers:u,computedWithoutCache:l};if(!d)return{moduleSpecifiers:r,computedWithoutCache:l};l=!0,p||(p=eB(i.path,d.originalFileName,o));const m=function(e,t,n,r,i,o={},a){const s=$R(n.path,r),c=RR(i,t,n),l=b(e,(e=>b(r.getFileIncludeReasons().get(pa(e.path,r.getCurrentDirectory(),s.getCanonicalFileName)),(e=>{if(3!==e.kind||e.file!==n.path)return;if(n.impliedNodeFormat&&n.impliedNodeFormat!==CV(n,e.index))return;const t=eW(n,e.index).text;return 1===c.relativePreference&&Vo(t)?void 0:t}))));if(l){return[l]}const _=re(e,(e=>e.isInNodeModules));let u,d,p,f;for(const l of e){const e=l.isInNodeModules?rB(l,s,n,r,t,i,void 0,o.overrideImportMode):void 0;if(u=he(u,e),e&&l.isRedirect)return u;if(!e){const e=KR(l.path,s,t,r,o.overrideImportMode||n.impliedNodeFormat,c,l.isRedirect);if(!e)continue;l.isRedirect?p=he(p,e):Wo(e)?d=he(d,e):(a||!_||l.isInNodeModules)&&(f=he(f,e))}}return(null==d?void 0:d.length)?d:(null==p?void 0:p.length)?p:(null==u?void 0:u.length)?u:Sn.checkDefined(f)}(p,n,i,o,a,s,c);return null==f||f.set(i.path,d.path,a,s,p,m),{moduleSpecifiers:m,computedWithoutCache:l}}function $R(e,t){return{getCanonicalFileName:tn(!t.useCaseSensitiveFileNames||t.useCaseSensitiveFileNames()),importingSourceFileName:e,sourceDirectory:Zo(e)}}function KR(e,t,n,r,i,{getAllowedEndingsInPreferredOrder:o,relativePreference:a},s){const{baseUrl:c,paths:l,rootDirs:_}=n;if(s&&!l)return;const{sourceDirectory:u,getCanonicalFileName:d}=t,p=o(i),f=_&&function(e,t,n,r,i,o){const a=iB(t,e,r);if(void 0===a)return;const s=iB(n,e,r),c=V(s,(e=>J(a,(t=>ga(Ca(e,t,r)))))),l=Lt(c,Qk);if(!l)return;return oB(l,i,o)}(_,e,u,d,p,n)||oB(ga(Ca(u,e,d)),p,n);if(!c&&!l||0===a)return s?void 0:f;const m=lB(e,_a(Av(n,r)||c,r.getCurrentDirectory()),d);if(!m)return s?void 0:f;const g=l&&tB(m,l,p,r,n);if(s)return g;const h=void 0===g&&void 0!==c?oB(m,p,n):g;if(!h)return f;if(1===a&&!Vo(h))return h;if(3===a&&!Vo(h)){const i=n.configFilePath?pa(Zo(n.configFilePath),r.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(r.getCurrentDirectory()),o=pa(e,i,d),a=an(u,i),s=an(o,i);if(a&&!s||!a&&s)return h;const c=QR(r,Zo(o));return QR(r,u)!==c?h:f}return _B(h)||GR(f)<GR(h)?f:h}function GR(e){let t=0;for(let n=an(e,"./")?2:0;n<e.length;n++)47===e.charCodeAt(n)&&t++;return t}function XR(e,t){return Vt(t.isRedirect,e.isRedirect)||Qk(e.path,t.path)}function QR(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):!!Fa(t,(t=>!!e.fileExists(sa(t,"package.json"))||void 0))}function YR(e,t,n,i,o){var a;const s=xv(n),c=n.getCurrentDirectory(),l=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,_=pa(t,c,s),u=n.redirectTargetsMap.get(_)||r,d=[...l?[l]:r,t,...u].map((e=>_a(e,c)));let p=!N(d,RT);if(!i){const e=b(d,(e=>!(p&&RT(e))&&o(e,l===e)));if(e)return e}const f=null==(a=n.getSymlinkCache)?void 0:a.call(n).getSymlinkedDirectoriesByRealpath(),m=_a(t,c);return f&&Fa(Zo(m),(t=>{const n=f.get(ma(pa(t,c,s)));if(n)return!ka(e,t,s)&&b(d,(e=>{if(!ka(e,t,s))return;const r=Ca(t,e,s);for(const t of n){const n=ca(t,r),i=o(n,e===l);if(p=!0,i)return i}}))}))||(i?b(d,(e=>p&&RT(e)?void 0:o(e,e===l))):void 0)}function ZR(e,t,n,r,i={}){var o;const a=pa(t,n.getCurrentDirectory(),xv(n)),s=null==(o=n.getModuleSpecifierCache)?void 0:o.call(n);if(s){const t=s.get(e,a,r,i);if(null==t?void 0:t.modulePaths)return t.modulePaths}const c=eB(e,t,n);return s&&s.setModulePaths(e,a,r,i,c),c}function eB(e,t,n){const r=xv(n),i=new Map;let o=!1;YR(e,t,n,!0,((e,t)=>{const n=EM(e);i.set(e,{path:r(e),isRedirect:t,isInNodeModules:n}),o=o||n}));const a=[];for(let t=Zo(e);0!==i.size;){const e=ma(t);let n;i.forEach((({path:t,isRedirect:r,isInNodeModules:o},a)=>{an(t,e)&&((n||(n=[])).push({path:a,isRedirect:r,isInNodeModules:o}),i.delete(a))})),n&&(n.length>1&&n.sort(XR),a.push(...n));const r=Zo(t);if(r===t)break;t=r}if(i.size){const e=$e(i.values());e.length>1&&e.sort(XR),a.push(...e)}return a}function tB(e,t,n,r,i){for(const r in t)for(const a of t[r]){const t=ua(a),s=t.indexOf("*"),c=n.map((t=>({ending:t,value:oB(e,[t],i)})));if(lT(t)&&c.push({ending:void 0,value:e}),-1!==s){const e=t.substring(0,s),n=t.substring(s+1);for(const{ending:t,value:i}of c)if(i.length>=e.length+n.length&&an(i,e)&&$t(i,n)&&o({ending:t,value:i})){const t=i.substring(e.length,i.length-n.length);if(!Vo(t))return r.replace("*",t)}}else if(re(c,(e=>0!==e.ending&&t===e.value))||re(c,(e=>0===e.ending&&t===e.value&&o(e))))return r}function o({ending:t,value:n}){return 0!==t||n===oB(e,[t],i,r)}}function nB(e,t,n,r,i,o,a=0){if("string"==typeof i){const o=_a(sa(n,i),void 0),s=Hk(t)?Yk(t)+cB(t,e):void 0;switch(a){case 0:if(0===xa(t,o)||s&&0===xa(s,o))return{moduleFileToTry:r};break;case 1:if(Sa(o,t)){const e=Ca(o,t,!1);return{moduleFileToTry:_a(sa(sa(r,i),e),void 0)}}break;case 2:const e=o.indexOf("*"),n=o.slice(0,e),a=o.slice(e+1);if(an(t,n)&&$t(t,a)){const e=t.slice(n.length,t.length-a.length);return{moduleFileToTry:r.replace("*",e)}}if(s&&an(s,n)&&$t(s,a)){const e=s.slice(n.length,s.length-a.length);return{moduleFileToTry:r.replace("*",e)}}}}else{if(Array.isArray(i))return b(i,(i=>nB(e,t,n,r,i,o)));if("object"==typeof i&&null!==i){if(QM(i))return b(Ue(i),(a=>{const s=_a(sa(r,a),void 0),c=$t(a,"/")?1:a.includes("*")?2:0;return nB(e,t,n,s,i[a],o,c)}));for(const s of Ue(i))if("default"===s||o.includes(s)||nR(o,s)){const c=i[s],l=nB(e,t,n,r,c,o,a);if(l)return l}}}}function rB({path:e,isRedirect:t},{getCanonicalFileName:n,sourceDirectory:r},i,o,a,s,c,l){if(!o.fileExists||!o.readFile)return;const _=GT(e);if(!_)return;const u=RR(s,a,i).getAllowedEndingsInPreferredOrder();let d=e,p=!1;if(!c){let t,n=_.packageRootIndex;for(;;){const{moduleFileToTry:r,packageRootPath:i,blockedByExports:s,verbatimFromExports:c}=y(n);if(1!==GS(a)){if(s)return;if(c)return r}if(i){d=i,p=!0;break}if(t||(t=r),n=e.indexOf(Io,n+1),-1===n){d=oB(t,u,a,o);break}}}if(t&&!p)return;const f=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),m=n(d.substring(0,_.topLevelNodeModulesIndex));if(!(an(r,m)||f&&an(n(f),m)))return;const g=d.substring(_.topLevelPackageNameIndex+1),h=uR(g);return 1===GS(a)&&h===g?void 0:h;function y(t){var r,s;const c=e.substring(0,t),d=sa(c,"package.json");let p=e,f=!1;const m=null==(s=null==(r=o.getPackageJsonInfoCache)?void 0:r.call(o))?void 0:s.getPackageJsonInfo(d);if("object"==typeof m||void 0===m&&o.fileExists(d)){const t=(null==m?void 0:m.contents.packageJsonContent)||JSON.parse(o.readFile(d)),r=l||i.impliedNodeFormat;if(sk(a)){const n=uR(c.substring(_.topLevelPackageNameIndex+1)),i=rM(a,r),o=t.exports?nB(a,e,c,n,t.exports,i):void 0;if(o){return{...Hk(o.moduleFileToTry)?{moduleFileToTry:Yk(o.moduleFileToTry)+cB(o.moduleFileToTry,a)}:o,verbatimFromExports:!0}}if(t.exports)return{moduleFileToTry:e,blockedByExports:!0}}const s=t.typesVersions?Qj(t.typesVersions):void 0;if(s){const t=tB(e.slice(c.length+1),s.paths,u,o,a);void 0===t?f=!0:p=sa(c,t)}const g=t.typings||t.types||t.main||"index.js";if(dt(g)&&(!f||!uT(rT(s.paths),g))){const e=pa(g,c,n),r=n(p);if(Yk(e)===Yk(r))return{packageRootPath:c,moduleFileToTry:p};if("module"!==t.type&&!Ko(r,Yd)&&an(r,e)&&Zo(r)===fa(e)&&"index"===Yk(ea(r)))return{packageRootPath:c,moduleFileToTry:p}}}else{const e=n(p.substring(_.packageRootIndex+1));if("index.d.ts"===e||"index.js"===e||"index.ts"===e||"index.tsx"===e)return{moduleFileToTry:p,packageRootPath:c}}return{moduleFileToTry:p}}}function iB(e,t,n){return G(t,(t=>{const r=lB(e,t,n);return void 0!==r&&_B(r)?void 0:r}))}function oB(e,t,n,r){if(Ko(e,[".json",".mjs",".cjs"]))return e;const i=Yk(e);if(e===i)return e;const o=t.indexOf(2),a=t.indexOf(3);if(Ko(e,[".mts",".cts"])&&-1!==a&&a<o)return e;if(Ko(e,[".d.mts",".mts",".d.cts",".cts"]))return i+sB(e,n);if(!Ko(e,[".d.ts"])&&Ko(e,[".ts"])&&e.includes(".d."))return aB(e);switch(t[0]){case 0:const a=Kt(i,"/index");return r&&a!==i&&function(e,t){if(!e.fileExists)return;const n=U(Uk({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const r of n){const n=t+r;if(e.fileExists(n))return n}}(r,a)?i:a;case 1:return i;case 2:return i+sB(e,n);case 3:if(oO(e)){const r=t.findIndex((e=>0===e||1===e));return-1!==r&&r<o?i:i+sB(e,n)}return e;default:return Sn.assertNever(t[0])}}function aB(e){const t=ea(e);if(!$t(e,".ts")||!t.includes(".d.")||Ko(t,[".d.ts"]))return;const n=eT(e,".ts"),r=n.substring(n.lastIndexOf("."));return n.substring(0,n.indexOf(".d."))+r}function sB(e,t){return cB(e,t)??Sn.fail(`Extension ${sT(e)} is unsupported:: FileName:: ${e}`)}function cB(e,t){const n=lT(e);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function lB(e,t,n){const r=Da(t,e,t,n,!1);return zo(r)?void 0:r}function _B(e){return an(e,"..")}var uB=g({"src/compiler/moduleSpecifiers.ts"(){OK()}}),dB={};h(dB,{countPathComponents:()=>GR,forEachFileNameOfModule:()=>YR,getModuleSpecifier:()=>JR,getModuleSpecifiers:()=>WR,getModuleSpecifiersWithCacheInfo:()=>HR,getNodeModulesPackageName:()=>zR,tryGetJSExtensionForFile:()=>cB,tryGetModuleSpecifiersFromCache:()=>UR,tryGetRealFileNameForNonJsDeclarationFileName:()=>aB,updateModuleSpecifier:()=>BR});var pB,fB,mB,gB,hB,yB,vB,bB,xB,SB,kB,TB,CB,wB,NB,DB=g({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){uB()}});function FB(){this.flags=0}function PB(e){return e.id||(e.id=gB,gB++),e.id}function EB(e){return e.id||(e.id=mB,mB++),e.id}function AB(e,t){const n=CR(e);return 1===n||t&&2===n}function IB(e){var t,n,i,o,a,s=[],c=e=>{s.push(e)},l=new Set,_=Ed.getSymbolConstructor(),u=Ed.getTypeConstructor(),d=Ed.getSignatureConstructor(),p=0,f=0,m=0,g=0,h=0,y=0,x=!1,k=op(),T=[1],C=e.getCompilerOptions(),w=HS(C),A=$S(C),L=!!C.experimentalDecorators,R=mk(C),z=gk(C),W=ik(C),H=pk(C,"strictNullChecks"),$=pk(C,"strictFunctionTypes"),K=pk(C,"strictBindCallApply"),X=pk(C,"strictPropertyInitialization"),Q=pk(C,"noImplicitAny"),ee=pk(C,"noImplicitThis"),te=pk(C,"useUnknownInCatchVariables"),ne=!!C.keyofStringsOnly,ie=ne?1:0,ae=C.suppressExcessPropertyErrors?0:8192,le=C.exactOptionalPropertyTypes,_e=function(){const e=WA((function(e,t,r){t?(t.stackIndex++,t.skip=!1,n(t,void 0),i(t,void 0)):t={checkMode:r,skip:!1,stackIndex:0,typeStack:[void 0,void 0]};if(Tg(e)&&Jg(e))return t.skip=!0,i(t,$L(e.right,r)),t;!function(e){const{left:t,operatorToken:n,right:r}=e;61===n.kind&&(!pF(t)||57!==t.operatorToken.kind&&56!==t.operatorToken.kind||GJ(t,Ea._0_and_1_operations_cannot_be_mixed_without_parentheses,ts(t.operatorToken.kind),ts(n.kind)),!pF(r)||57!==r.operatorToken.kind&&56!==r.operatorToken.kind||GJ(r,Ea._0_and_1_operations_cannot_be_mixed_without_parentheses,ts(r.operatorToken.kind),ts(n.kind)))}(e);if(64===e.operatorToken.kind&&(210===e.left.kind||209===e.left.kind))return t.skip=!0,i(t,bL(e.left,$L(e.right,r),r,110===e.right.kind)),t;return t}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t,o){if(!t.skip){const a=r(t);Sn.assertIsDefined(a),n(t,a),i(t,void 0);const s=e.kind;if(Bb(s)){let e=o.parent;for(;217===e.kind||Jb(e);)e=e.parent;(56===s||OF(e))&&yM(o.left,a,OF(e)?e.thenStatement:void 0),vM(a,o.left)}}}),(function(e,n,r){if(!n.skip)return t(n,e)}),(function(e,t){let o;if(t.skip)o=r(t);else{const n=function(e){return e.typeStack[e.stackIndex]}(t);Sn.assertIsDefined(n);const i=r(t);Sn.assertIsDefined(i),o=kL(e.left,e.operatorToken,e.right,n,i,t.checkMode,e)}return t.skip=!1,n(t,void 0),i(t,void 0),t.stackIndex--,o}),(function(e,t,n){return i(e,t),e}));return(t,n)=>{const r=e(t,n);return Sn.assertIsDefined(r),r};function t(e,t){if(pF(t))return t;i(e,$L(t,e.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function r(e){return e.typeStack[e.stackIndex+1]}function i(e,t){e.typeStack[e.stackIndex+1]=t}}(),ue=function(){const t=e.getResolvedTypeReferenceDirectives();let n;t&&(n=new Map,t.forEach((({resolvedTypeReferenceDirective:t},n,r)=>{if(!(null==t?void 0:t.resolvedFileName))return;const o=e.getSourceFile(t.resolvedFileName);o&&i(o,n,r)})));return{getReferencedExportContainer:DB,getReferencedImportDeclaration:IB,getReferencedDeclarationWithCollidingName:JB,isDeclarationWithCollidingName:zB,isValueAliasDeclaration:e=>{const t=Cc(e);return!t||!Oe||VB(t)},hasGlobalName:_J,isReferencedAliasDeclaration:(e,t)=>{const n=Cc(e);return!n||!Oe||KB(n,t)},getNodeCheckFlags:e=>{const t=Cc(e);return t?tJ(t):0},isTopLevelValueImportEqualsWithEntityName:WB,isDeclarationVisible:yc,isImplementationOfOverload:GB,isRequiredInitializedParameter:XB,isOptionalUninitializedParameterProperty:QB,isExpandoFunctionDeclaration:ZB,getPropertiesOfContainerFunction:eJ,createTypeOfDeclaration:sJ,createReturnTypeOfSignatureDeclaration:cJ,createTypeOfExpression:lJ,createLiteralConstValue:mJ,isSymbolAccessible:Ws,isEntityNameVisible:ec,getConstantValue:e=>{const t=Cc(e,rJ);return t?iJ(t):void 0},collectLinkedAliases:bc,getReferencedValueDeclaration:dJ,getReferencedValueDeclarations:pJ,getTypeReferenceSerializationKind:aJ,isOptionalParameter:Vp,moduleExportsSomeValue:SB,isArgumentsLocalBinding:xB,getExternalModuleFileFromDeclaration:e=>{const t=Cc(e,Df);return t&&yJ(t)},getTypeReferenceDirectivesForEntityName:function(e){if(!n)return;let t;167===e.parent.kind?t=1160127:(t=790504,(80===e.kind&&Kv(e)||211===e.kind&&!function(e){return e.parent&&233===e.parent.kind&&e.parent.parent&&298===e.parent.parent.kind}(e))&&(t=1160127));const i=Ha(e,t,!0);return i&&i!==yt?r(i,t):void 0},getTypeReferenceDirectivesForSymbol:r,isLiteralConstDeclaration:fJ,isLateBound:e=>{const t=Cc(e,Nu),n=t&&ds(t);return!!(n&&4096&Jx(n))},getJsxFactoryEntity:gJ,getJsxFragmentFactoryEntity:hJ,getAllAccessorDeclarations(e){const t=178===(e=Cc(e,wl)).kind?177:178,n=rp(ds(e),t);return{firstAccessor:n&&n.pos<e.pos?n:e,secondAccessor:n&&n.pos<e.pos?e:n,setAccessor:178===e.kind?e:n,getAccessor:177===e.kind?e:n}},getSymbolOfExternalModuleSpecifier:e=>Ga(e,e,void 0),isBindingCapturedByNode:(e,t)=>{const n=Cc(e),r=Cc(t);return!!n&&!!r&&(GF(r)||GD(r))&&function(e,t){const n=Wo(e);return!!n&&I(n.capturedBlockScopeBindings,ds(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const i=Cc(e);Sn.assert(i&&312===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const o=ds(e);return o?o.exports?de.symbolTableToDeclarationStatements(o.exports,e,t,n,r):[]:e.locals?de.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=Cp(e);if(!t.symbol)return!1;const n=yJ(e);if(!n)return!1;if(n===t)return!1;const r=ss(t.symbol);for(const e of $e(r.values()))if(e.mergeId){const t=us(e);if(t.declarations)for(const e of t.declarations){if(Cp(e)===n)return!0}}return!1},tryFindAmbientModule:e=>{const t=Cc(e),n=t&&Qu(t)?t.text:void 0;return void 0!==n?Up(n,!0):void 0}};function r(e,t){if(!n||!function(e){if(!e.declarations)return!1;let t=e;for(;;){const e=ms(t);if(!e)break;t=e}if(t.valueDeclaration&&312===t.valueDeclaration.kind&&512&t.flags)return!1;for(const t of e.declarations){const e=Cp(t);if(n.has(e.path))return!0}return!1}(e))return;let r;for(const i of e.declarations)if(i.symbol&&i.symbol.flags&t){const e=Cp(i),t=n.get(e.path);if(!t)return;(r||(r=[])).push(t)}return r}function i(t,r,o){if(!n.has(t.path)){n.set(t.path,[r,o]);for(const{fileName:n}of t.referencedFiles){const a=cV(n,t.fileName),s=e.getSourceFile(a);s&&i(s,r,o||t.impliedNodeFormat)}}}}(),de=function(){return{typeToTypeNode:(e,t,r,i)=>n(t,r,i,(t=>o(e,t))),indexInfoToIndexSignatureDeclaration:(e,t,r,i)=>n(t,r,i,(t=>u(e,t,void 0))),signatureToSignatureDeclaration:(e,t,r,i,o)=>n(r,i,o,(n=>d(e,t,n))),symbolToEntityName:(e,t,r,i,o)=>n(r,i,o,(n=>z(e,n,t,!1))),symbolToExpression:(e,t,r,i,o)=>n(r,i,o,(n=>U(e,n,t))),symbolToTypeParameterDeclarations:(e,t,r,i)=>n(t,r,i,(t=>T(e,t))),symbolToParameterDeclaration:(e,t,r,i)=>n(t,r,i,(t=>g(e,t))),typeParameterToDeclaration:(e,t,r,i)=>n(t,r,i,(t=>f(e,t))),symbolTableToDeclarationStatements:(e,t,i,a,s)=>n(t,i,a,(t=>function(e,t,n){var i;const a=xe(AC.createPropertyDeclaration,174,!0),s=xe(((e,t,n,r)=>AC.createPropertySignature(e,t,n,r)),173,!1),c=t.enclosingDeclaration;let l=[];const _=new Set,p=[],g=t;t={...g,usedSymbolNames:new Set(g.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(i=g.remappedSymbolReferences)?void 0:i.entries()),tracker:void 0};const y={...g.tracker.inner,trackSymbol:(e,n,r)=>{var i,o;if(null==(i=t.remappedSymbolNames)?void 0:i.has(EB(e)))return!1;if(0===Ws(e,n,r,!1).accessibility){const n=k(e,t,r);if(!(4&e.flags)){const e=n[0],t=Cp(g.enclosingDeclaration);re(e.declarations,(e=>Cp(e)===t))&&$(e)}}else if(null==(o=g.tracker.inner)?void 0:o.trackSymbol)return g.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new NB(t,y,g.tracker.moduleResolverHost),dp(e,((e,t)=>{Pe(e,Nc(t))}));let x=!n;const T=e.get("export=");T&&e.size>1&&2097152&T.flags&&(e=op()).set("export=",T);return B(e),L(l);function C(e){return!!e&&80===e.kind}function F(e){return EF(e)?M(J(e.declarationList.declarations,Mc),C):M([Mc(e)],C)}function E(e){const t=D(e,yP),n=P(e,nP);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&HN(t.expression)&&HN(r.name)&&Dc(r.name)===Dc(t.expression)&&r.body&&rP(r.body)){const i=M(e,(e=>!!(32&wb(e)))),o=r.name;let a=r.body;if(v(i)&&(r=AC.updateModuleDeclaration(r,r.modifiers,r.name,a=AC.updateModuleBlock(a,AC.createNodeArray([...r.body.statements,AC.createExportDeclaration(void 0,!1,AC.createNamedExports(J(V(i,(e=>F(e))),(e=>AC.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!D(e,(e=>e!==r&&Ic(e,o)))){l=[];const n=!re(a.statements,(e=>fb(e,32)||yP(e)||vP(e)));b(a.statements,(e=>{Y(e,n?32:0)})),e=[...M(e,(e=>e!==r&&e!==t)),...l]}}return e}function I(e){const t=M(e,(e=>vP(e)&&!e.moduleSpecifier&&!!e.exportClause&&bP(e.exportClause)));if(v(t)>1){e=[...M(e,(e=>!vP(e)||!!e.moduleSpecifier||!e.exportClause)),AC.createExportDeclaration(void 0,!1,AC.createNamedExports(V(t,(e=>mt(e.exportClause,bP).elements))),void 0)]}const n=M(e,(e=>vP(e)&&!!e.moduleSpecifier&&!!e.exportClause&&bP(e.exportClause)));if(v(n)>1){const t=Ze(n,(e=>FN(e.moduleSpecifier)?">"+e.moduleSpecifier.text:">"));if(t.length!==n.length)for(const n of t)n.length>1&&(e=[...M(e,(e=>!n.includes(e))),AC.createExportDeclaration(void 0,!1,AC.createNamedExports(V(n,(e=>mt(e.exportClause,bP).elements))),n[0].moduleSpecifier)])}return e}function O(e){const t=P(e,(e=>vP(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&bP(e.exportClause)));if(t>=0){const n=e[t],r=G(n.exportClause.elements,(t=>{if(!t.propertyName){const n=M(se(e),(n=>Ic(e[n],t.name)));if(v(n)&&N(n,(t=>YT(e[t])))){for(const t of n)e[t]=j(e[t]);return}}return t}));v(r)?e[t]=AC.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,AC.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):Yt(e,t)}return e}function L(e){return e=O(e=I(e=E(e))),c&&($P(c)&&Yf(c)||nP(c))&&(!re(e,pu)||!uu(e)&&re(e,du))&&e.push(zE(AC)),e}function j(e){const t=-129&(32|wb(e));return AC.replaceModifiers(e,t)}function R(e){const t=-33&wb(e);return AC.replaceModifiers(e,t)}function B(e,t,n){t||p.push(new Map),e.forEach((e=>{q(e,!1,!!n)})),t||(p[p.length-1].forEach((e=>{q(e,!0,!!n)})),p.pop())}function q(e,n,r){const i=us(e);if(_.has(EB(i)))return;_.add(EB(i));if(!n||v(e.declarations)&&re(e.declarations,(e=>!!kc(e,(e=>e===c))))){const i=t;t=function(e){const t={...e};t.typeParameterNames&&(t.typeParameterNames=new Map(t.typeParameterNames));t.typeParameterNamesByText&&(t.typeParameterNamesByText=new Set(t.typeParameterNamesByText));t.typeParameterSymbolList&&(t.typeParameterSymbolList=new Set(t.typeParameterSymbolList));return t.tracker=new NB(t,t.tracker.inner,t.tracker.moduleResolverHost),t}(t),H(e,n,r),t.reportedDiagnostic&&(g.reportedDiagnostic=t.reportedDiagnostic),t.trackedSymbols&&(i.trackedSymbols?Sn.assert(t.trackedSymbols===i.trackedSymbols):i.trackedSymbols=t.trackedSymbols),t=i}}function H(e,r,i,o=e.escapedName){var a,s,l,_,u,d;const p=Nc(o),f="default"===o;if(r&&!(131072&t.flags)&&ky(p)&&!f)return void(t.encounteredError=!0);let m=f&&!!(-113&e.flags||16&e.flags&&v(jd(n_(e))))&&!(2097152&e.flags),g=!m&&!r&&ky(p)&&!f;(m||g)&&(r=!0);const h=(r?0:32)|(f&&!m?2048:0),y=1536&e.flags&&7&e.flags&&"export="!==o,b=y&&be(n_(e),e);if((8208&e.flags||b)&&_e(n_(e),e,Pe(e,p),h),524288&e.flags&&ne(e,p,h),98311&e.flags&&"export="!==o&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!b)if(i){ve(e)&&(g=!1,m=!1)}else{const f=n_(e),y=Pe(e,p);if(f.symbol&&f.symbol!==e&&16&f.symbol.flags&&re(f.symbol.declarations,VT)&&((null==(a=f.symbol.members)?void 0:a.size)||(null==(s=f.symbol.exports)?void 0:s.size)))t.remappedSymbolReferences||(t.remappedSymbolReferences=new Map),t.remappedSymbolReferences.set(EB(f.symbol),e),H(f.symbol,r,i,o),t.remappedSymbolReferences.delete(EB(f.symbol));else if(16&e.flags||!be(f,e)){const i=2&e.flags?tD(e)?2:1:(null==(l=e.parent)?void 0:l.valueDeclaration)&&$P(null==(_=e.parent)?void 0:_.valueDeclaration)?2:void 0,o=!m&&4&e.flags?De(y,e):y;let a=e.declarations&&D(e.declarations,(e=>GF(e)));a&&XF(a.parent)&&1===a.parent.declarations.length&&(a=a.parent.parent);const s=null==(u=e.declarations)?void 0:u.find(YD);if(s&&pF(s.parent)&&HN(s.parent.right)&&(null==(d=f.symbol)?void 0:d.valueDeclaration)&&$P(f.symbol.valueDeclaration)){const e=y===s.parent.right.escapedText?void 0:s.parent.right;Y(AC.createExportDeclaration(void 0,!1,AC.createNamedExports([AC.createExportSpecifier(!1,e,y)])),0),t.tracker.trackSymbol(f.symbol,t.enclosingDeclaration,111551)}else{Y(cI(AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(o,void 0,Z(t,f,e,c,$,n))],i)),a),o!==y?-33&h:h),o===y||r||(Y(AC.createExportDeclaration(void 0,!1,AC.createNamedExports([AC.createExportSpecifier(!1,o,y)])),0),g=!1,m=!1)}}else _e(f,e,y,h)}if(384&e.flags&&le(e,p,h),32&e.flags&&(4&e.flags&&e.valueDeclaration&&pF(e.valueDeclaration.parent)&&yF(e.valueDeclaration.parent.right)?he(e,Pe(e,p),h):me(e,Pe(e,p),h)),(1536&e.flags&&(!y||ae(e))||b)&&ce(e,p,h),64&e.flags&&!(32&e.flags)&&ie(e,p,h),2097152&e.flags&&he(e,Pe(e,p),h),4&e.flags&&"export="===e.escapedName&&ve(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=Ka(n,n.moduleSpecifier);e&&Y(AC.createExportDeclaration(void 0,n.isTypeOnly,void 0,AC.createStringLiteral(A(e,t))),0)}m?Y(AC.createExportAssignment(void 0,!1,AC.createIdentifier(Pe(e,p))),0):g&&Y(AC.createExportDeclaration(void 0,!1,AC.createNamedExports([AC.createExportSpecifier(!1,Pe(e,p),p)])),0)}function $(e){if(re(e.declarations,$y))return;Sn.assertIsDefined(p[p.length-1]),De(Nc(e.escapedName),e);const t=!!(2097152&e.flags)&&!re(e.declarations,(e=>!!kc(e,vP)||mP(e)||aP(e)&&!CP(e.moduleReference)));p[t?0:p.length-1].set(EB(e),e)}function Q(e){return $P(e)&&(Yf(e)||Zf(e))||lf(e)&&!mf(e)}function Y(e,n){if(lI(e)){let r=0;const i=t.enclosingDeclaration&&(bh(t.enclosingDeclaration)?Cp(t.enclosingDeclaration):t.enclosingDeclaration);32&n&&i&&(Q(i)||nP(i))&&YT(e)&&(r|=32),!x||32&r||i&&33554432&i.flags||!(tP(e)||EF(e)||QF(e)||YF(e)||nP(e))||(r|=128),2048&n&&(YF(e)||ZF(e)||QF(e))&&(r|=2048),r&&(e=AC.replaceModifiers(e,r|wb(e)))}l.push(e)}function ne(e,r,i){var a;const s=U_(e),c=J(Uo(e).typeParameters,(e=>f(e,t))),l=null==(a=e.declarations)?void 0:a.find(bh),_=Sl(l?l.comment||l.parent.comment:void 0),u=t.flags;t.flags|=8388608;const d=t.enclosingDeclaration;t.enclosingDeclaration=l;const p=l&&l.typeExpression&&XP(l.typeExpression)&&te(t,l.typeExpression.type,$,n)||o(s,t);Y(gw(AC.createTypeAliasDeclaration(void 0,Pe(e,r),c,p),_?[{kind:3,text:"*\n * "+_.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),i),t.flags=u,t.enclosingDeclaration=d}function ie(e,n,r){const i=q_(e),o=J(h_(e),(e=>f(e,t))),a=M_(i),s=v(a)?rv(a):void 0,c=V(jd(i),(e=>Se(e,s))),l=ke(0,i,s,179),_=ke(1,i,s,180),u=Te(i,s),d=v(a)?[AC.createHeritageClause(96,G(a,(e=>we(e,111551))))]:void 0;Y(AC.createInterfaceDeclaration(void 0,Pe(e,n),o,d,[...u,..._,...l,...c]),r)}function oe(e){const t=as(e);return t?M($e(t.values()),(e=>pe(e)&&Os(e.escapedName,99))):[]}function ae(e){return N(oe(e),(e=>!(111551&Ra(ja(e)))))}function ce(e,n,i){const o=Ye(oe(e),(t=>t.parent&&t.parent===e?"real":"merged")),a=o.get("real")||r,s=o.get("merged")||r;if(v(a)){de(a,Pe(e,n),i,!!(67108880&e.flags))}if(v(s)){const r=Cp(t.enclosingDeclaration),i=Pe(e,n),o=AC.createModuleBlock([AC.createExportDeclaration(void 0,!1,AC.createNamedExports(G(M(s,(e=>"export="!==e.escapedName)),(n=>{var i,o;const a=Nc(n.escapedName),s=Pe(n,a),c=n.declarations&&ma(n);if(r&&(c?r!==Cp(c):!re(n.declarations,(e=>Cp(e)===r))))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const l=c&&Oa(c,!0);$(l||n);const _=l?Pe(l,Nc(l.escapedName)):s;return AC.createExportSpecifier(!1,a===_?void 0:_,a)}))))]);Y(AC.createModuleDeclaration(void 0,AC.createIdentifier(i),o,32),0)}}function le(e,t,n){Y(AC.createEnumDeclaration(AC.createModifiersFromModifierFlags(mL(e)?4096:0),Pe(e,t),J(M(jd(n_(e)),(e=>!!(8&e.flags))),(e=>{const t=e.declarations&&e.declarations[0]&&WP(e.declarations[0])?iJ(e.declarations[0]):void 0;return AC.createEnumMember(Nc(e.escapedName),void 0===t?void 0:"string"==typeof t?AC.createStringLiteral(t):AC.createNumericLiteral(t))}))),n)}function _e(e,r,i,o){const a=Sp(e,0);for(const e of a){Y(cI(d(e,262,t,{name:AC.createIdentifier(i),privateSymbolVisitor:$,bundledImports:n}),ue(e)),o)}if(!(1536&r.flags&&r.exports&&r.exports.size)){de(M(jd(e),pe),i,o,!0)}}function ue(e){if(e.declaration&&e.declaration.parent){if(pF(e.declaration.parent)&&5===Gg(e.declaration.parent))return e.declaration.parent;if(GF(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function de(e,n,i,o){if(v(e)){const a=Ye(e,(e=>!v(e.declarations)||re(e.declarations,(e=>Cp(e)===Cp(t.enclosingDeclaration)))?"local":"remote")).get("local")||r;let s=hI.createModuleDeclaration(void 0,AC.createIdentifier(n),AC.createModuleBlock([]),32);AT(s,c),s.locals=op(e),s.symbol=e[0].parent;const _=l;l=[];const u=x;x=!1;const d={...t,enclosingDeclaration:s},p=t;t=d,B(op(a),o,!0),t=p,x=u;const f=l;l=_;const m=J(f,(e=>yP(e)&&!e.isExportEquals&&HN(e.expression)?AC.createExportDeclaration(void 0,!1,AC.createNamedExports([AC.createExportSpecifier(!1,e.expression,AC.createIdentifier("default"))])):e)),g=N(m,(e=>fb(e,32)))?J(m,R):m;s=AC.updateModuleDeclaration(s,s.modifiers,s.name,AC.createModuleBlock(g)),Y(s,i)}}function pe(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&mb(e.valueDeclaration)&&w_(e.valueDeclaration.parent))}function fe(e){const r=G(e,(e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let i=e.expression;if(Kb(i)){if(HN(i)&&""===Dc(i))return a(void 0);let e;if(({introducesError:e,node:i}=ee(i,t,$)),e)return a(void 0)}return a(AC.createExpressionWithTypeArguments(i,J(e.typeArguments,(e=>te(t,e,$,n)||o(Sx(e),t)))));function a(e){return t.enclosingDeclaration=r,e}}));if(r.length===e.length)return r}function me(e,n,i){var o,s;const c=null==(o=e.declarations)?void 0:o.find(w_),l=t.enclosingDeclaration;t.enclosingDeclaration=c||l;const _=J(h_(e),(e=>f(e,t))),u=Fu(q_(e)),d=M_(u),p=c&&dy(c),m=p&&fe(p)||G(function(e){let t=r;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=dy(n);if(e)for(const n of e){const e=Sx(n);Uc(e)||(t===r?t=[e]:t.push(e))}}return t}(u),Ne),g=n_(e),h=!!(null==(s=g.symbol)?void 0:s.valueDeclaration)&&w_(g.symbol.valueDeclaration),y=h?I_(g):kt,x=[...v(d)?[AC.createHeritageClause(96,J(d,(e=>Ce(e,y,n))))]:[],...v(m)?[AC.createHeritageClause(119,m)]:[]],S=function(e,t,n){if(!v(t))return n;const r=new Map;b(n,(e=>{r.set(e.escapedName,e)}));for(const n of t){const t=jd(Fu(n,e.thisType));for(const e of t){const t=r.get(e.escapedName);t&&e.parent===t.parent&&r.delete(e.escapedName)}}return $e(r.values())}(u,d,jd(u)),k=M(S,(e=>{const t=e.valueDeclaration;return!(!t||Lc(t)&&$N(t.name))})),T=re(S,(e=>{const t=e.valueDeclaration;return!!t&&Lc(t)&&$N(t.name)}))?[AC.createPropertyDeclaration(void 0,AC.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:r,C=V(k,(e=>a(e,!1,d[0]))),w=V(M(jd(g),(e=>!(4194304&e.flags||"prototype"===e.escapedName||pe(e)))),(e=>a(e,!0,y))),N=!h&&!!e.valueDeclaration&&Tg(e.valueDeclaration)&&!re(Sp(g,1))?[AC.createConstructorDeclaration(AC.createModifiersFromModifierFlags(2),[],void 0)]:ke(1,g,y,176),D=Te(u,d[0]);t.enclosingDeclaration=l,Y(cI(AC.createClassDeclaration(void 0,n,_,x,[...D,...w,...N,...C,...T]),e.declarations&&M(e.declarations,(e=>YF(e)||yF(e)))[0]),i)}function ge(e){return S(e,(e=>{if(hP(e)||xP(e))return Dc(e.propertyName||e.name);if(pF(e)||yP(e)){const t=yP(e)?e.expression:e.right;if(YD(t))return Dc(t.name)}if(ga(e)){const t=Mc(e);if(t&&HN(t))return Dc(t)}}))}function he(e,r,i){var o,a,s,c,l;const _=ma(e);if(!_)return Sn.fail();const u=us(Oa(_,!0));if(!u)return;let d=pf(u)&&ge(e.declarations)||Nc(u.escapedName);"export="===d&&W&&(d="default");const p=Pe(u,d);switch($(u),_.kind){case 208:if(260===(null==(a=null==(o=_.parent)?void 0:o.parent)?void 0:a.kind)){const e=A(u.parent||u,t),{propertyName:n}=_;Y(AC.createImportDeclaration(void 0,AC.createImportClause(!1,void 0,AC.createNamedImports([AC.createImportSpecifier(!1,n&&HN(n)?AC.createIdentifier(Dc(n)):void 0,AC.createIdentifier(r))])),AC.createStringLiteral(e),void 0),0);break}Sn.failBadSyntaxKind((null==(s=_.parent)?void 0:s.parent)||_,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:226===(null==(l=null==(c=_.parent)?void 0:c.parent)?void 0:l.kind)&&ye(Nc(e.escapedName),p);break;case 260:if(YD(_.initializer)){const e=_.initializer,n=AC.createUniqueName(r),o=A(u.parent||u,t);Y(AC.createImportEqualsDeclaration(void 0,!1,n,AC.createExternalModuleReference(AC.createStringLiteral(o))),0),Y(AC.createImportEqualsDeclaration(void 0,!1,AC.createIdentifier(r),AC.createQualifiedName(n,e.name)),i);break}case 271:if("export="===u.escapedName&&re(u.declarations,(e=>$P(e)&&Zf(e)))){ve(e);break}const f=!(512&u.flags||GF(_));Y(AC.createImportEqualsDeclaration(void 0,!1,AC.createIdentifier(r),f?z(u,t,67108863,!1):AC.createExternalModuleReference(AC.createStringLiteral(A(u,t)))),f?i:0);break;case 270:Y(AC.createNamespaceExportDeclaration(Dc(_.name)),0);break;case 273:{const e=A(u.parent||u,t),i=n?AC.createStringLiteral(e):_.parent.moduleSpecifier;Y(AC.createImportDeclaration(void 0,AC.createImportClause(!1,AC.createIdentifier(r),void 0),i,_.parent.attributes),0);break}case 274:{const e=A(u.parent||u,t),i=n?AC.createStringLiteral(e):_.parent.parent.moduleSpecifier;Y(AC.createImportDeclaration(void 0,AC.createImportClause(!1,void 0,AC.createNamespaceImport(AC.createIdentifier(r))),i,_.parent.attributes),0);break}case 280:Y(AC.createExportDeclaration(void 0,!1,AC.createNamespaceExport(AC.createIdentifier(r)),AC.createStringLiteral(A(u,t))),0);break;case 276:{const e=A(u.parent||u,t),i=n?AC.createStringLiteral(e):_.parent.parent.parent.moduleSpecifier;Y(AC.createImportDeclaration(void 0,AC.createImportClause(!1,void 0,AC.createNamedImports([AC.createImportSpecifier(!1,r!==d?AC.createIdentifier(d):void 0,AC.createIdentifier(r))])),i,_.parent.parent.parent.attributes),0);break}case 281:const m=_.parent.parent.moduleSpecifier;ye(Nc(e.escapedName),m?d:p,m&&Qu(m)?AC.createStringLiteral(m.text):void 0);break;case 277:ve(e);break;case 226:case 211:case 212:"default"===e.escapedName||"export="===e.escapedName?ve(e):ye(r,p);break;default:return Sn.failBadSyntaxKind(_,"Unhandled alias declaration kind in symbol serializer!")}}function ye(e,t,n){Y(AC.createExportDeclaration(void 0,!1,AC.createNamedExports([AC.createExportSpecifier(!1,e!==t?t:void 0,e)]),n),0)}function ve(e){var r;if(4194304&e.flags)return!1;const i=Nc(e.escapedName),o="export="===i,a=o||"default"===i,s=e.declarations&&ma(e),_=s&&Oa(s,!0);if(_&&v(_.declarations)&&re(_.declarations,(e=>Cp(e)===Cp(c)))){const n=s&&(yP(s)||pF(s)?cy(s):ly(s)),r=n&&Kb(n)?function(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{if(Kg(e.expression)&&!$N(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,u=r&&Ha(r,67108863,!0,!0,c);(u||_)&&$(u||_);const d=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,a)l.push(AC.createExportAssignment(void 0,o,U(_,t,67108863)));else if(r===n&&r)ye(i,Dc(r));else if(n&&yF(n))ye(i,Pe(_,Pc(_)));else{const n=De(i,e);Y(AC.createImportEqualsDeclaration(void 0,!1,AC.createIdentifier(n),z(_,t,67108863,!1)),0),ye(i,n)}return t.tracker.disableTrackSymbol=d,!0}{const s=De(i,e),u=LC(n_(us(e)));if(be(u,e))_e(u,e,s,a?0:32);else{const o=267!==(null==(r=t.enclosingDeclaration)?void 0:r.kind)||98304&e.flags&&!(65536&e.flags)?2:1;Y(AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(s,void 0,Z(t,u,e,c,$,n))],o)),_&&4&_.flags&&"export="===_.escapedName?128:i===s?32:0)}return a?(l.push(AC.createExportAssignment(void 0,o,AC.createIdentifier(s))),!0):i!==s&&(ye(i,s),!0)}}function be(e,n){const r=Cp(t.enclosingDeclaration);return 48&Zx(e)&&!v(Lp(e))&&!cc(e)&&!(!v(M(jd(e),pe))&&!v(Sp(e,0)))&&!v(Sp(e,1))&&!X(n,c)&&!(e.symbol&&re(e.symbol.declarations,(e=>Cp(e)!==r)))&&!re(jd(e),(e=>yu(e.escapedName)))&&!re(jd(e),(e=>re(e.declarations,(e=>Cp(e)!==r))))&&N(jd(e),(e=>!!Os(Pc(e),w)&&(!(98304&e.flags)||i_(e)===t_(e))))}function xe(e,r,i){return function(o,a,s){var l,_,u,p,f;const g=zx(o),y=!!(2&g);if(a&&2887656&o.flags)return[];if(4194304&o.flags||"constructor"===o.escapedName||s&&bp(s,o.escapedName)&&iL(bp(s,o.escapedName))===iL(o)&&(16777216&o.flags)==(16777216&bp(s,o.escapedName).flags)&&fS(n_(o),jc(s,o.escapedName)))return[];const v=-1025&g|(a?256:0),x=K(o,t),S=null==(l=o.declarations)?void 0:l.find(un(pD,N_,GF,dD,pF,YD));if(98304&o.flags&&i){const e=[];if(65536&o.flags){const r=o.declarations&&b(o.declarations,(e=>178===e.kind?e:eF(e)&&Xg(e)?b(e.arguments[2].properties,(e=>{const t=Mc(e);if(t&&HN(t)&&"set"===Dc(t))return e})):void 0));Sn.assert(!!r);const i=b_(r)?Kp(r).parameters[0]:void 0;e.push(cI(AC.createSetAccessorDeclaration(AC.createModifiersFromModifierFlags(v),x,[AC.createParameterDeclaration(void 0,void 0,i?h(i,m(i),t):"value",void 0,y?void 0:Z(t,n_(o),o,c,$,n))],void 0),(null==(_=o.declarations)?void 0:_.find(qu))||S))}if(32768&o.flags){const r=2&g;e.push(cI(AC.createGetAccessorDeclaration(AC.createModifiersFromModifierFlags(v),x,[],r?void 0:Z(t,n_(o),o,c,$,n),void 0),(null==(u=o.declarations)?void 0:u.find(Uu))||S))}return e}if(98311&o.flags)return cI(e(AC.createModifiersFromModifierFlags((iL(o)?8:0)|v),x,16777216&o.flags?AC.createToken(58):void 0,y?void 0:Z(t,t_(o),o,c,$,n),void 0),(null==(p=o.declarations)?void 0:p.find(un(pD,GF)))||S);if(8208&o.flags){const n=Sp(n_(o),0);if(2&v)return cI(e(AC.createModifiersFromModifierFlags((iL(o)?8:0)|v),x,16777216&o.flags?AC.createToken(58):void 0,void 0,void 0),(null==(f=o.declarations)?void 0:f.find(b_))||n[0]&&n[0].declaration||o.declarations&&o.declarations[0]);const i=[];for(const e of n){const n=d(e,r,t,{name:x,questionToken:16777216&o.flags?AC.createToken(58):void 0,modifiers:v?AC.createModifiersFromModifierFlags(v):void 0}),a=e.declaration&&sh(e.declaration.parent)?e.declaration.parent:e.declaration;i.push(cI(n,a))}return i}return Sn.fail(`Unhandled class member kind! ${o.__debugFlags||o.flags}`)}}function Se(e,t){return s(e,!1,t)}function ke(e,n,r,i){const o=Sp(n,e);if(1===e){if(!r&&N(o,(e=>0===v(e.parameters))))return[];if(r){const e=Sp(r,1);if(!v(e)&&N(o,(e=>0===v(e.parameters))))return[];if(e.length===o.length){let t=!1;for(let n=0;n<e.length;n++)if(!Wk(o[n],e[n],!1,!1,!0,mS)){t=!0;break}if(!t)return[]}}let e=0;for(const t of o)t.declaration&&(e|=kb(t.declaration,6));if(e)return[cI(AC.createConstructorDeclaration(AC.createModifiersFromModifierFlags(e),[],void 0),o[0].declaration)]}const a=[];for(const e of o){const n=d(e,i,t);a.push(cI(n,e.declaration))}return a}function Te(e,n){const r=[];for(const i of Lp(e)){if(n){const e=jp(n,i.keyType);if(e&&fS(i.type,e.type))continue}r.push(u(i,t,void 0))}return r}function Ce(e,n,r){const i=we(e,111551);if(i)return i;const a=De(`${r}_base`);return Y(AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(a,void 0,o(n,t))],2)),0),AC.createExpressionWithTypeArguments(AC.createIdentifier(a),void 0)}function we(e,n){let r,i;if(e.target&&qs(e.target.symbol,c,n)?(r=J(mm(e),(e=>o(e,t))),i=U(e.target.symbol,t,788968)):e.symbol&&qs(e.symbol,c,n)&&(i=U(e.symbol,t,788968)),i)return AC.createExpressionWithTypeArguments(i,r)}function Ne(e){const n=we(e,788968);return n||(e.symbol?AC.createExpressionWithTypeArguments(U(e.symbol,t,788968),void 0):void 0)}function De(e,n){var r,i;const o=n?EB(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=Fe(n,e));let a=0;const s=e;for(;null==(r=t.usedSymbolNames)?void 0:r.has(e);)a++,e=`${s}_${a}`;return null==(i=t.usedSymbolNames)||i.add(e),o&&t.remappedSymbolNames.set(o,e),e}function Fe(e,n){if("default"===n||"__class"===n||"__function"===n){const r=t.flags;t.flags|=16777216;const i=gc(e,t);t.flags=r,n=i.length>0&&Lg(i.charCodeAt(0))?fv(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),n=Os(n,w)&&!ky(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function Pe(e,n){const r=EB(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=Fe(e,n),t.remappedSymbolNames.set(r,n),n)}}(e,t,s))),symbolToNode:(e,t,r,i,o)=>n(r,i,o,(n=>function(e,t,n){if(1073741824&t.flags){if(e.valueDeclaration){const t=Mc(e.valueDeclaration);if(t&&cD(t))return t}const r=Uo(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,AC.createComputedPropertyName(U(r.symbol,t,n))}return U(e,t,n)}(e,n,t)))};function n(t,n,r,i){Sn.assert(void 0===t||0==(16&t.flags));const o=(null==r?void 0:r.trackSymbol)?r.moduleResolverHost:134217728&n?function(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:it(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getPackageJsonInfoCache)?void 0:t.call(e)},useCaseSensitiveFileNames:it(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}(e):void 0,a={enclosingDeclaration:t,flags:n||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};a.tracker=new NB(a,r,o);const s=i(a);return a.truncating&&1&a.flags&&a.tracker.reportTruncationError(),a.encounteredError?void 0:s}function i(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>(1&e.flags?id:rd)}function o(e,n){const c=n.flags,f=function(e,n){var c,f;t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();const m=8388608&n.flags;if(n.flags&=-8388609,!e)return 262144&n.flags?(n.approximateLength+=3,AC.createKeywordTypeNode(133)):void(n.encounteredError=!0);536870912&n.flags||(e=lp(e));if(1&e.flags)return e.aliasSymbol?AC.createTypeReferenceNode(O(e.aliasSymbol),_(e.aliasTypeArguments,n)):e===Dt?hw(AC.createKeywordTypeNode(133),3,"unresolved"):(n.approximateLength+=3,AC.createKeywordTypeNode(e===Et?141:133));if(2&e.flags)return AC.createKeywordTypeNode(159);if(4&e.flags)return n.approximateLength+=6,AC.createKeywordTypeNode(154);if(8&e.flags)return n.approximateLength+=6,AC.createKeywordTypeNode(150);if(64&e.flags)return n.approximateLength+=6,AC.createKeywordTypeNode(163);if(16&e.flags&&!e.aliasSymbol)return n.approximateLength+=7,AC.createKeywordTypeNode(136);if(1056&e.flags){if(8&e.symbol.flags){const t=ms(e.symbol),r=L(t,n,788968);if(Z_(t)===e)return r;const i=Pc(e.symbol);return Os(i,0)?D(r,AC.createTypeReferenceNode(i,void 0)):VD(r)?(r.isTypeOf=!0,AC.createIndexedAccessTypeNode(r,AC.createLiteralTypeNode(AC.createStringLiteral(i)))):TD(r)?AC.createIndexedAccessTypeNode(AC.createTypeQueryNode(r.typeName),AC.createLiteralTypeNode(AC.createStringLiteral(i))):Sn.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return L(e.symbol,n,788968)}if(128&e.flags)return n.approximateLength+=e.value.length+2,AC.createLiteralTypeNode(rw(AC.createStringLiteral(e.value,!!(268435456&n.flags)),16777216));if(256&e.flags){const t=e.value;return n.approximateLength+=(""+t).length,AC.createLiteralTypeNode(t<0?AC.createPrefixUnaryExpression(41,AC.createNumericLiteral(-t)):AC.createNumericLiteral(t))}if(2048&e.flags)return n.approximateLength+=bT(e.value).length+1,AC.createLiteralTypeNode(AC.createBigIntLiteral(e.value));if(512&e.flags)return n.approximateLength+=e.intrinsicName.length,AC.createLiteralTypeNode("true"===e.intrinsicName?AC.createTrue():AC.createFalse());if(8192&e.flags){if(!(1048576&n.flags)){if(zs(e.symbol,n.enclosingDeclaration))return n.approximateLength+=6,L(e.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,AC.createTypeOperatorNode(158,AC.createKeywordTypeNode(155))}if(16384&e.flags)return n.approximateLength+=4,AC.createKeywordTypeNode(116);if(32768&e.flags)return n.approximateLength+=9,AC.createKeywordTypeNode(157);if(65536&e.flags)return n.approximateLength+=4,AC.createLiteralTypeNode(AC.createNull());if(131072&e.flags)return n.approximateLength+=5,AC.createKeywordTypeNode(146);if(4096&e.flags)return n.approximateLength+=6,AC.createKeywordTypeNode(155);if(67108864&e.flags)return n.approximateLength+=6,AC.createKeywordTypeNode(151);if(KT(e))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),null==(f=(c=n.tracker).reportInaccessibleThisError)||f.call(c)),n.approximateLength+=4,AC.createThisTypeNode();if(!m&&e.aliasSymbol&&(16384&n.flags||Js(e.aliasSymbol,n.enclosingDeclaration))){const t=_(e.aliasTypeArguments,n);return!Ps(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===v(t)&&e.aliasSymbol===er.symbol?AC.createArrayTypeNode(t[0]):L(e.aliasSymbol,n,788968,t):AC.createTypeReferenceNode(AC.createIdentifier(""),t)}const g=Zx(e);if(4&g)return Sn.assert(!!(524288&e.flags)),e.node?C(e,N):N(e);if(262144&e.flags||3&g){if(262144&e.flags&&I(n.inferTypeParameters,e)){let t;n.approximateLength+=Pc(e.symbol).length+6;const r=Rd(e);if(r){const i=nm(e,!0);i&&fS(r,i)||(n.approximateLength+=9,t=r&&o(r,n))}return AC.createInferTypeNode(p(e,n,t))}if(4&n.flags&&262144&e.flags&&!Js(e.symbol,n.enclosingDeclaration)){const t=B(e,n);return n.approximateLength+=Dc(t).length,AC.createTypeReferenceNode(AC.createIdentifier(Dc(t)),void 0)}if(e.symbol)return L(e.symbol,n,788968);const t=(e===Vn||e===Wn)&&a&&a.symbol?(e===Wn?"sub-":"super-")+Pc(a.symbol):"?";return AC.createTypeReferenceNode(AC.createIdentifier(t),void 0)}1048576&e.flags&&e.origin&&(e=e.origin);if(3145728&e.flags){const t=1048576&e.flags?function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){const i=e[r];if(n|=i.flags,!(98304&i.flags)){if(1568&i.flags){const n=512&i.flags?Zt:V_(i);if(1048576&n.flags){const i=n.types.length;if(r+i<=e.length&&dx(e[r+i-1])===dx(n.types[i-1])){t.push(n),r+=i-1;continue}}}t.push(i)}}65536&n&&t.push(Jt);32768&n&&t.push(Lt);return t||e}(e.types):e.types;if(1===v(t))return o(t[0],n);const r=_(t,n,!0);return r&&r.length>0?1048576&e.flags?AC.createUnionTypeNode(r):AC.createIntersectionTypeNode(r):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&g)return Sn.assert(!!(524288&e.flags)),T(e);if(4194304&e.flags){const t=e.type;n.approximateLength+=6;const r=o(t,n);return AC.createTypeOperatorNode(143,r)}if(134217728&e.flags){const t=e.texts,r=e.types,i=AC.createTemplateHead(t[0]),a=AC.createNodeArray(J(r,((e,i)=>AC.createTemplateLiteralTypeSpan(o(e,n),(i<r.length-1?AC.createTemplateMiddle:AC.createTemplateTail)(t[i+1])))));return n.approximateLength+=2,AC.createTemplateLiteralType(i,a)}if(268435456&e.flags){const t=o(e.type,n);return L(e.symbol,n,788968,[t])}if(8388608&e.flags){const t=o(e.objectType,n),r=o(e.indexType,n);return n.approximateLength+=2,AC.createIndexedAccessTypeNode(t,r)}if(16777216&e.flags)return C(e,(e=>h(e)));if(33554432&e.flags)return o(e.baseType,n);return Sn.fail("Should be unreachable.");function h(e){const t=o(e.checkType,n);if(n.approximateLength+=15,4&n.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=Fs(Ao(262144,"T")),i=B(r,n),a=AC.createTypeReferenceNode(i);n.approximateLength+=37;const s=jx(e.root.checkType,r,e.mapper),c=n.inferTypeParameters;n.inferTypeParameters=e.root.inferTypeParameters;const l=o(nS(e.root.extendsType,s),n);n.inferTypeParameters=c;const _=y(nS(Sx(e.root.node.trueType),s)),u=y(nS(Sx(e.root.node.falseType),s));return AC.createConditionalTypeNode(t,AC.createInferTypeNode(AC.createTypeParameterDeclaration(void 0,AC.cloneNode(a.typeName))),AC.createConditionalTypeNode(AC.createTypeReferenceNode(AC.cloneNode(i)),o(e.checkType,n),AC.createConditionalTypeNode(a,l,_,u),AC.createKeywordTypeNode(146)),AC.createKeywordTypeNode(146))}const r=n.inferTypeParameters;n.inferTypeParameters=e.root.inferTypeParameters;const i=o(e.extendsType,n);n.inferTypeParameters=r;const a=y(Db(e)),s=y(Fb(e));return AC.createConditionalTypeNode(t,i,a,s)}function y(e){var t,r,i;return 1048576&e.flags?(null==(t=n.visitedTypes)?void 0:t.has(Cy(e)))?(131072&n.flags||(n.encounteredError=!0,null==(i=null==(r=n.tracker)?void 0:r.reportCyclicStructureError)||i.call(r)),s(n)):C(e,(e=>o(e,n))):o(e,n)}function x(e){return!!$x(e)}function S(e){return!!e.target&&x(e.target)&&!x(e)}function k(e){var t;Sn.assert(!!(524288&e.flags));const r=e.declaration.readonlyToken?AC.createToken(e.declaration.readonlyToken.kind):void 0,i=e.declaration.questionToken?AC.createToken(e.declaration.questionToken.kind):void 0;let a,s;const c=!Td(e)&&!(2&Cd(e).flags)&&4&n.flags&&!(262144&bd(e).flags&&4194304&(null==(t=Rd(bd(e)))?void 0:t.flags));if(Td(e)){if(S(e)&&4&n.flags){const e=B(Fs(Ao(262144,"T")),n);s=AC.createTypeReferenceNode(e)}a=AC.createTypeOperatorNode(143,s||o(Cd(e),n))}else if(c){const e=B(Fs(Ao(262144,"T")),n);s=AC.createTypeReferenceNode(e),a=s}else a=o(bd(e),n);const l=p(vd(e),n,a),_=e.declaration.nameType?o(xd(e),n):void 0,u=o(kC(Sd(e),!!(4&wd(e))),n),d=AC.createMappedTypeNode(r,l,_,i,u,void 0);n.approximateLength+=10;const f=rw(d,1);if(S(e)&&4&n.flags){const t=nS(Rd(Sx(e.declaration.typeParameter.constraint.type))||At,e.mapper);return AC.createConditionalTypeNode(o(Cd(e),n),AC.createInferTypeNode(AC.createTypeParameterDeclaration(void 0,AC.cloneNode(s.typeName),2&t.flags?void 0:o(t,n))),f,AC.createKeywordTypeNode(146))}return c?AC.createConditionalTypeNode(o(bd(e),n),AC.createInferTypeNode(AC.createTypeParameterDeclaration(void 0,AC.cloneNode(s.typeName),AC.createTypeOperatorNode(143,o(Cd(e),n)))),f,AC.createKeywordTypeNode(146)):f}function T(e){var t,r;const i=e.id,o=e.symbol;if(o){const r=cc(e)?788968:111551;if(JI(o.valueDeclaration))return L(o,n,r);if(32&o.flags&&!Hl(o)&&(!(o.valueDeclaration&&w_(o.valueDeclaration)&&2048&n.flags)||YF(o.valueDeclaration)&&0===Ws(o,n.enclosingDeclaration,r,!1).accessibility)||896&o.flags||a())return L(o,n,r);if(null==(t=n.visitedTypes)?void 0:t.has(i)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=$h(e.symbol.declarations[0].parent);if(eP(t))return ds(t)}return}(e);return t?L(t,n,788968):s(n)}return C(e,w)}if(!!(8388608&Zx(e))){const t=e;if(ND(t.node)){const e=te(n,t.node);if(e)return e}return(null==(r=n.visitedTypes)?void 0:r.has(i))?s(n):C(e,w)}return w(e);function a(){var e;const t=!!(8192&o.flags)&&re(o.declarations,(e=>mb(e))),r=!!(16&o.flags)&&(o.parent||b(o.declarations,(e=>312===e.parent.kind||268===e.parent.kind)));if(t||r)return(!!(4096&n.flags)||(null==(e=n.visitedTypes)?void 0:e.has(i)))&&(!(8&n.flags)||zs(o,n.enclosingDeclaration))}}function C(e,t){var r,i,o;const a=e.id,c=16&Zx(e)&&e.symbol&&32&e.symbol.flags,l=4&Zx(e)&&e.node?"N"+PB(e.node):16777216&e.flags?"N"+PB(e.root.node):e.symbol?(c?"+":"")+EB(e.symbol):void 0;n.visitedTypes||(n.visitedTypes=new Set),l&&!n.symbolDepth&&(n.symbolDepth=new Map);const _=n.enclosingDeclaration&&Wo(n.enclosingDeclaration),u=`${Cy(e)}|${n.flags}`;_&&(_.serializedTypes||(_.serializedTypes=new Map));const d=null==(r=null==_?void 0:_.serializedTypes)?void 0:r.get(u);if(d)return null==(i=d.trackedSymbols)||i.forEach((([e,t,r])=>n.tracker.trackSymbol(e,t,r))),d.truncating&&(n.truncating=!0),n.approximateLength+=d.addedLength,y(d.node);let p;if(l){if(p=n.symbolDepth.get(l)||0,p>10)return s(n);n.symbolDepth.set(l,p+1)}n.visitedTypes.add(a);const f=n.trackedSymbols;n.trackedSymbols=void 0;const m=n.approximateLength,g=t(e),h=n.approximateLength-m;return n.reportedDiagnostic||n.encounteredError||null==(o=null==_?void 0:_.serializedTypes)||o.set(u,{node:g,truncating:n.truncating,addedLength:h,trackedSymbols:n.trackedSymbols}),n.visitedTypes.delete(a),l&&n.symbolDepth.set(l,p),n.trackedSymbols=f,g;function y(e){return Xy(e)||Cc(e)!==e?cI(AC.cloneNode(YB(e,y,zq,v)),e):e}function v(e,t,n,r,i){return e&&0===e.length?cI(AC.createNodeArray(void 0,e.hasTrailingComma),e):UB(e,t,n,r,i)}}function w(e){if(Fd(e)||e.containsError)return k(e);const t=Ad(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return n.approximateLength+=2,rw(AC.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length){return d(t.callSignatures[0],184,n)}if(1===t.constructSignatures.length&&!t.callSignatures.length){return d(t.constructSignatures[0],185,n)}}const i=M(t.constructSignatures,(e=>!!(4&e.flags)));if(re(i)){const e=J(i,Cf);return t.callSignatures.length+(t.constructSignatures.length-i.length)+t.indexInfos.length+(2048&n.flags?j(t.properties,(e=>!(4194304&e.flags))):v(t.properties))&&e.push(function(e){if(0===e.constructSignatures.length)return e;if(e.objectTypeWithoutAbstractConstructSignatures)return e.objectTypeWithoutAbstractConstructSignatures;const t=M(e.constructSignatures,(e=>!(4&e.flags)));if(e.constructSignatures===t)return e;const n=Ls(e.symbol,e.members,e.callSignatures,re(t)?t:r,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),o(rv(e),n)}const a=n.flags;n.flags|=4194304;const s=P(t);n.flags=a;const c=AC.createTypeLiteralNode(s);return n.approximateLength+=2,rw(c,1024&n.flags?0:1),c}function N(e){let t=mm(e);if(e.target===er||e.target===tr){if(2&n.flags){const r=o(t[0],n);return AC.createTypeReferenceNode(e.target===er?"Array":"ReadonlyArray",[r])}const r=o(t[0],n),i=AC.createArrayTypeNode(r);return e.target===er?i:AC.createTypeOperatorNode(148,i)}if(!(8&e.target.objectFlags)){if(2048&n.flags&&e.symbol.valueDeclaration&&w_(e.symbol.valueDeclaration)&&!zs(e.symbol,n.enclosingDeclaration))return T(e);{const i=e.target.outerTypeParameters;let o,a,s=0;if(i){const e=i.length;for(;s<e;){const r=s,a=im(i[s]);do{s++}while(s<e&&im(i[s])===a);if(!Ne(i,t,r,s)){const e=_(t.slice(r,s),n),i=n.flags;n.flags|=16;const c=L(a,n,788968,e);n.flags=i,o=o?D(o,c):c}}}if(t.length>0){const i=(e.target.typeParameters||r).length;a=_(t.slice(s,i),n)}const c=n.flags;n.flags|=16;const l=L(e.symbol,n,788968,a);return n.flags=c,o?D(o,l):l}}if(t=q(t,((t,n)=>kC(t,!!(2&e.target.elementFlags[n])))),t.length>0){const r=gm(e),i=_(t.slice(0,r),n);if(i){const{labeledElementDeclarations:t}=e.target;for(let n=0;n<i.length;n++){const r=e.target.elementFlags[n],o=null==t?void 0:t[n];i[n]=o?AC.createNamedTupleMember(12&r?AC.createToken(26):void 0,AC.createIdentifier(Nc(fO(o))),2&r?AC.createToken(58):void 0,4&r?AC.createArrayTypeNode(i[n]):i[n]):12&r?AC.createRestTypeNode(4&r?AC.createArrayTypeNode(i[n]):i[n]):2&r?AC.createOptionalTypeNode(i[n]):i[n]}const n=rw(AC.createTupleTypeNode(i),1);return e.target.readonly?AC.createTypeOperatorNode(148,n):n}}if(n.encounteredError||524288&n.flags){const t=rw(AC.createTupleTypeNode([]),1);return e.target.readonly?AC.createTypeOperatorNode(148,t):t}n.encounteredError=!0}function D(e,t){if(VD(e)){let n=e.typeArguments,r=e.qualifier;r&&(HN(r)?n!==Lw(r)&&(r=Ow(AC.cloneNode(r),n)):n!==Lw(r.right)&&(r=AC.updateQualifiedName(r,r.left,Ow(AC.cloneNode(r.right),n)))),n=t.typeArguments;const i=F(t);for(const e of i)r=r?AC.createQualifiedName(r,e):e;return AC.updateImportTypeNode(e,e.argument,e.attributes,r,n,e.isTypeOf)}{let n=e.typeArguments,r=e.typeName;HN(r)?n!==Lw(r)&&(r=Ow(AC.cloneNode(r),n)):n!==Lw(r.right)&&(r=AC.updateQualifiedName(r,r.left,Ow(AC.cloneNode(r.right),n))),n=t.typeArguments;const i=F(t);for(const e of i)r=AC.createQualifiedName(r,e);return AC.updateTypeReferenceNode(e,r,n)}}function F(e){let t=e.typeName;const n=[];for(;!HN(t);)n.unshift(t.right),t=t.left;return n.unshift(t),n}function P(e){if(i(n))return[AC.createPropertySignature(void 0,"...",void 0,void 0)];const t=[];for(const r of e.callSignatures)t.push(d(r,179,n));for(const r of e.constructSignatures)4&r.flags||t.push(d(r,180,n));for(const r of e.indexInfos)t.push(u(r,n,1024&e.objectFlags?s(n):void 0));const r=e.properties;if(!r)return t;let o=0;for(const e of r){if(o++,2048&n.flags){if(4194304&e.flags)continue;6&zx(e)&&n.tracker.reportPrivateInBaseOfClassExpression&&n.tracker.reportPrivateInBaseOfClassExpression(Nc(e.escapedName))}if(i(n)&&o+2<r.length-1){t.push(AC.createPropertySignature(void 0,`... ${r.length-o} more ...`,void 0,void 0)),l(r[r.length-1],n,t);break}l(e,n,t)}return t.length?t:void 0}}(e,n);return n.flags=c,f}function s(e){return e.approximateLength+=3,1&e.flags?AC.createKeywordTypeNode(133):AC.createTypeReferenceNode(AC.createIdentifier("..."),void 0)}function c(e,t){var n;return!!(8192&Jx(e))&&(I(t.reverseMappedStack,e)||(null==(n=t.reverseMappedStack)?void 0:n[0])&&!(16&Zx(Ie(t.reverseMappedStack).links.propertyType)))}function l(e,t,n){var r;const i=!!(8192&Jx(e)),o=c(e,t)?kt:i_(e),a=t.enclosingDeclaration;if(t.enclosingDeclaration=void 0,t.tracker.canTrackSymbol&&yu(e.escapedName))if(e.declarations){const n=Pe(e.declarations);if(vu(n))if(pF(n)){const e=Mc(n);e&&ZD(e)&&Qb(e.argumentExpression)&&y(e.argumentExpression,a,t)}else y(n.name.expression,a,t)}else t.tracker.reportNonSerializableProperty(tc(e));t.enclosingDeclaration=e.valueDeclaration||(null==(r=e.declarations)?void 0:r[0])||a;const l=K(e,t);if(t.enclosingDeclaration=a,t.approximateLength+=Pc(e).length+1,98304&e.flags){const r=t_(e);if(o!==r&&!Uc(o)&&!Uc(r)){const r=rp(e,177),i=Kp(r);n.push(fw(d(i,177,t,{name:l}),r));const o=rp(e,178),a=Kp(o);return void n.push(fw(d(a,178,t,{name:l}),o))}}const _=16777216&e.flags?AC.createToken(58):void 0;if(8208&e.flags&&!Id(o).length&&!iL(e)){const e=Sp(SN(o,(e=>!(32768&e.flags))),0);for(const r of e){const e=d(r,173,t,{name:l,questionToken:_});n.push(m(e))}if(e.length||!_)return}let u;c(e,t)?u=s(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),u=o?Z(t,o,e,a):AC.createKeywordTypeNode(133),i&&t.reverseMappedStack.pop());const p=iL(e)?[AC.createToken(148)]:void 0;p&&(t.approximateLength+=9);const f=AC.createPropertySignature(p,l,_,u);function m(t){var n;const r=null==(n=e.declarations)?void 0:n.find((e=>355===e.kind));if(r){const e=Sl(r.comment);e&&gw(t,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else e.valueDeclaration&&fw(t,e.valueDeclaration);return t}n.push(m(f))}function _(e,t,n){if(re(e)){if(i(t)){if(!n)return[AC.createTypeReferenceNode("...",void 0)];if(e.length>2)return[o(e[0],t),AC.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),o(e[e.length-1],t)]}const r=!(64&t.flags)?ot():void 0,a=[];let s=0;for(const n of e){if(s++,i(t)&&s+2<e.length-1){a.push(AC.createTypeReferenceNode(`... ${e.length-s} more ...`,void 0));const n=o(e[e.length-1],t);n&&a.push(n);break}t.approximateLength+=2;const c=o(n,t);c&&(a.push(c),r&&CT(c)&&r.add(c.typeName.escapedText,[n,a.length-1]))}if(r){const e=t.flags;t.flags|=64,r.forEach((e=>{if(!wT(e,(([e],[t])=>function(e,t){return e===t||!!e.symbol&&e.symbol===t.symbol||!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}(e,t))))for(const[n,r]of e)a[r]=o(n,t)})),t.flags=e}return a}}function u(e,t,n){const r=Of(e)||"x",i=o(e.keyType,t),a=AC.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||(n=o(e.type||kt,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,AC.createIndexSignature(e.isReadonly?[AC.createToken(148)]:void 0,[a],n)}function d(e,t,n,i){var a;const s=256&n.flags;let c,l;s&&(n.flags&=-257),n.approximateLength+=3,32&n.flags&&e.target&&e.mapper&&e.target.typeParameters?l=e.target.typeParameters.map((t=>o(nS(t,e.mapper),n))):c=e.typeParameters&&e.typeParameters.map((e=>f(e,n)));const _=Ru(e,!0)[0];let u;if(n.enclosingDeclaration&&e.declaration&&e.declaration!==n.enclosingDeclaration&&!Tg(e.declaration)&&re(_)){const e=Wo(n.enclosingDeclaration).fakeScopeForSignatureDeclaration?n.enclosingDeclaration:void 0;Sn.assertOptionalNode(e,PF);const t=(null==e?void 0:e.locals)??op();let i;for(const e of _)t.has(e.escapedName)||(i=he(i,e.escapedName),t.set(e.escapedName,e));if(i){let o=function(){b(i,(e=>t.delete(e)))};if(e)u=o;else{const e=hI.createBlock(r);Wo(e).fakeScopeForSignatureDeclaration=!0,e.locals=t;const i=n.enclosingDeclaration;AT(e,i),n.enclosingDeclaration=e,u=()=>{n.enclosingDeclaration=i,o()}}}}const d=(re(_,(e=>e!==_[_.length-1]&&!!(32768&Jx(e))))?e.parameters:_).map((e=>g(e,n,176===t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports))),p=33554432&n.flags?void 0:function(e,t){if(e.thisParameter)return g(e.thisParameter,t);if(e.declaration&&Tg(e.declaration)){const n=ll(e.declaration);if(n&&n.typeExpression)return AC.createParameterDeclaration(void 0,void 0,"this",void 0,o(Sx(n.typeExpression),t))}}(e,n);let m;p&&d.unshift(p);const h=nf(e);if(h){const e=2===h.kind||3===h.kind?AC.createToken(131):void 0,t=1===h.kind||3===h.kind?rw(AC.createIdentifier(h.parameterName),16777216):AC.createThisTypeNode(),r=h.type&&o(h.type,n);m=AC.createTypePredicateNode(e,t,r)}else{const t=of(e);!t||s&&zc(t)?s||(m=AC.createKeywordTypeNode(133)):m=function(e,t,n,r,i){if(!Uc(t)&&e.enclosingDeclaration){const o=n.declaration&&eb(n.declaration),a=Y(e.enclosingDeclaration);if(kc(o,(e=>e===a))&&o){const a=Sx(o);if((262144&a.flags&&a.isThisType?nS(a,n.mapper):a)===t&&Q(o,t)){const t=te(e,o,r,i);if(t)return t}}}return o(t,e)}(n,t,e,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}let y=null==i?void 0:i.modifiers;if(185===t&&4&e.flags){const e=Ib(y);y=AC.createModifiersFromModifierFlags(64|e)}const v=179===t?AC.createCallSignature(c,d,m):180===t?AC.createConstructSignature(c,d,m):173===t?AC.createMethodSignature(y,(null==i?void 0:i.name)??AC.createIdentifier(""),null==i?void 0:i.questionToken,c,d,m):174===t?AC.createMethodDeclaration(y,void 0,(null==i?void 0:i.name)??AC.createIdentifier(""),void 0,c,d,m,void 0):176===t?AC.createConstructorDeclaration(y,d,void 0):177===t?AC.createGetAccessorDeclaration(y,(null==i?void 0:i.name)??AC.createIdentifier(""),d,m,void 0):178===t?AC.createSetAccessorDeclaration(y,(null==i?void 0:i.name)??AC.createIdentifier(""),d,void 0):181===t?AC.createIndexSignature(y,d,m):324===t?AC.createJSDocFunctionType(d,m):184===t?AC.createFunctionTypeNode(c,d,m??AC.createTypeReferenceNode(AC.createIdentifier(""))):185===t?AC.createConstructorTypeNode(y,c,d,m??AC.createTypeReferenceNode(AC.createIdentifier(""))):262===t?AC.createFunctionDeclaration(y,void 0,(null==i?void 0:i.name)?mt(i.name,HN):AC.createIdentifier(""),c,d,m,void 0):218===t?AC.createFunctionExpression(y,void 0,(null==i?void 0:i.name)?mt(i.name,HN):AC.createIdentifier(""),c,d,m,AC.createBlock([])):219===t?AC.createArrowFunction(y,c,d,m,void 0,AC.createBlock([])):Sn.assertNever(t);if(l&&(v.typeArguments=AC.createNodeArray(l)),330===(null==(a=e.declaration)?void 0:a.kind)&&346===e.declaration.parent.kind){hw(v,3,Yp(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map((e=>e.replace(/^\s+/," "))).join("\n"),!0)}return null==u||u(),v}function p(e,t,n){const r=t.flags;t.flags&=-513;const i=AC.createModifiersFromModifierFlags(Ak(e)),a=B(e,t),s=Xd(e),c=s&&o(s,t);return t.flags=r,AC.createTypeParameterDeclaration(i,a,n,c)}function f(e,t,n=Rd(e)){return p(e,t,n&&o(n,t))}function m(e){const t=rp(e,169);return t||(ap(e)?void 0:rp(e,348))}function g(e,t,n,r,i){const o=m(e);let a=n_(e);o&&XB(o)&&(a=dC(a));const s=Z(t,a,e,t.enclosingDeclaration,r,i),c=!(8192&t.flags)&&n&&o&&lI(o)?J(Jc(o),AC.cloneNode):void 0,l=o&&ed(o)||32768&Jx(e)?AC.createToken(26):void 0,_=h(e,o,t),u=o&&Vp(o)||16384&Jx(e)?AC.createToken(58):void 0,d=AC.createParameterDeclaration(c,l,_,u,s,void 0);return t.approximateLength+=Pc(e).length+3,d}function h(e,t,n){return t&&t.name?80===t.name.kind?rw(AC.cloneNode(t.name),16777216):166===t.name.kind?rw(AC.cloneNode(t.name.right),16777216):function e(t){n.tracker.canTrackSymbol&&cD(t)&&hu(t)&&y(t.expression,n.enclosingDeclaration,n);let r=YB(t,e,zq,void 0,e);return GD(r)&&(r=AC.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),Xy(r)||(r=AC.cloneNode(r)),rw(r,16777217)}(t.name):Pc(e)}function y(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=Gb(e),i=ta(r,r.escapedText,1160127,void 0,void 0,!0);i&&n.tracker.trackSymbol(i,t,111551)}function x(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),k(e,t,n,r)}function k(e,t,n,r){let i;return 262144&e.flags||!(t.enclosingDeclaration||64&t.flags)||134217728&t.flags?i=[e]:(i=Sn.checkDefined(function e(n,i,o){let a,s=Rs(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||Bs(s[0],t.enclosingDeclaration,1===s.length?i:Ms(i))){const r=gs(s?s[0]:n,t.enclosingDeclaration,i);if(v(r)){a=r.map((e=>re(e.declarations,Ys)?A(e,t):void 0));const o=r.map(((e,t)=>t));o.sort(c);const l=o.map((e=>r[e]));for(const t of l){const r=e(t,Ms(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&bs(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[vs(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&b(n.declarations,Ys))return;return[n]}function c(e,t){const n=a[e],r=a[t];if(n&&r){const e=Vo(r);return Vo(n)===e?GR(n)-GR(r):e?-1:1}return 0}}(e,n,!0)),Sn.assert(i&&i.length>0)),i}function T(e,t){let n;return 524384&uR(e).flags&&(n=AC.createNodeArray(J(h_(e),(e=>f(e,t))))),n}function F(e,t,n){var r;Sn.assert(e&&0<=t&&t<e.length);const i=e[t],o=EB(i);if(null==(r=n.typeParameterSymbolList)?void 0:r.has(o))return;let a;if((n.typeParameterSymbolList||(n.typeParameterSymbolList=new Set)).add(o),512&n.flags&&t<e.length-1){const r=i,o=e[t+1];if(1&Jx(o)){const e=function(e){return oe(p_(e),h_(e))}(2097152&r.flags?Ma(r):r);a=_(J(e,(e=>Fx(e,o.links.mapper))),n)}else a=T(i,n)}return a}function E(e){return zD(e.objectType)?E(e.objectType):e}function A(e,t,n){let r=rp(e,312);if(!r){const t=S(e.declarations,(t=>hs(t,e)));t&&(r=rp(t,312))}if(r&&void 0!==r.moduleName)return r.moduleName;if(!r){if(t.tracker.trackReferencedAmbientModule){const n=M(e.declarations,lf);if(v(n))for(const r of n)t.tracker.trackReferencedAmbientModule(r,e)}if(pB.test(e.escapedName))return e.escapedName.substring(1,e.escapedName.length-1)}if(!t.enclosingDeclaration||!t.tracker.moduleResolverHost)return pB.test(e.escapedName)?e.escapedName.substring(1,e.escapedName.length-1):Cp(yf(e)).fileName;const i=Cp(Sc(t.enclosingDeclaration)),o=n||(null==i?void 0:i.impliedNodeFormat),a=_M(i.path,o),s=Uo(e);let c=s.specifierCache&&s.specifierCache.get(a);if(!c){const r=!!Ev(C),{moduleResolverHost:l}=t.tracker,_=r?{...C,baseUrl:l.getCommonSourceDirectory()}:C;c=Pe(WR(e,Be,_,i,l,{importModuleSpecifierPreference:r?"non-relative":"project-relative",importModuleSpecifierEnding:r?"minimal":99===o?"js":void 0},{overrideImportMode:n})),s.specifierCache??(s.specifierCache=new Map),s.specifierCache.set(a,c)}return c}function O(e){const t=AC.createIdentifier(Nc(e.escapedName));return e.parent?AC.createQualifiedName(O(e.parent),t):t}function L(e,t,n,r){const i=x(e,t,n,!(16384&t.flags)),o=111551===n;if(re(i[0].declarations,Ys)){const e=i.length>1?s(i,i.length-1,1):void 0,n=r||F(i,0,t),a=Cp(Sc(t.enclosingDeclaration)),c=wp(i[0]);let l,_;if(3!==GS(C)&&99!==GS(C)||99===(null==c?void 0:c.impliedNodeFormat)&&c.impliedNodeFormat!==(null==a?void 0:a.impliedNodeFormat)&&(l=A(i[0],t,99),_=AC.createImportAttributes(AC.createNodeArray([AC.createImportAttribute(AC.createStringLiteral("resolution-mode"),AC.createStringLiteral("import"))]))),l||(l=A(i[0],t)),!(67108864&t.flags)&&1!==GS(C)&&l.includes("/node_modules/")){const e=l;if(3===GS(C)||99===GS(C)){const n=99===(null==a?void 0:a.impliedNodeFormat)?1:99;l=A(i[0],t,n),l.includes("/node_modules/")?l=e:_=AC.createImportAttributes(AC.createNodeArray([AC.createImportAttribute(AC.createStringLiteral("resolution-mode"),AC.createStringLiteral(99===n?"import":"require"))]))}_||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const u=AC.createLiteralTypeNode(AC.createStringLiteral(l));if(t.tracker.trackExternalModuleSymbolOfImportTypeNode&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(i[0]),t.approximateLength+=l.length+10,!e||m_(e)){if(e){Ow(HN(e)?e:e.right,void 0)}return AC.createImportTypeNode(u,_,e,n,o)}{const t=E(e),r=t.objectType.typeName;return AC.createIndexedAccessTypeNode(AC.createImportTypeNode(u,_,r,n,o),t.indexType)}}const a=s(i,i.length-1,0);if(zD(a))return a;if(o)return AC.createTypeQueryNode(a);{const e=HN(a)?a:a.right,t=Lw(e);return Ow(e,void 0),AC.createTypeReferenceNode(a,t)}function s(e,n,i){const o=n===e.length-1?r:F(e,n,t),a=e[n],c=e[n-1];let l;if(0===n)t.flags|=16777216,l=gc(a,t),t.approximateLength+=(l?l.length:0)+1,t.flags^=16777216;else if(c&&as(c)){dp(as(c),((e,t)=>{if(bs(e,a)&&!yu(t)&&"export="!==t)return l=Nc(t),!0}))}if(void 0===l){const r=S(a.declarations,Mc);if(r&&cD(r)&&m_(r.expression)){const t=s(e,n-1,i);return m_(t)?AC.createIndexedAccessTypeNode(AC.createParenthesizedType(AC.createTypeQueryNode(t)),AC.createTypeQueryNode(r.expression)):t}l=gc(a,t)}if(t.approximateLength+=l.length+1,!(16&t.flags)&&c&&wu(c)&&wu(c).get(a.escapedName)&&bs(wu(c).get(a.escapedName),a)){const t=s(e,n-1,i);return zD(t)?AC.createIndexedAccessTypeNode(t,AC.createLiteralTypeNode(AC.createStringLiteral(l))):AC.createIndexedAccessTypeNode(AC.createTypeReferenceNode(t,o),AC.createLiteralTypeNode(AC.createStringLiteral(l)))}const _=rw(AC.createIdentifier(l),16777216);if(o&&Ow(_,AC.createNodeArray(o)),_.symbol=a,n>i){const t=s(e,n-1,i);return m_(t)?AC.createQualifiedName(t,_):Sn.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function R(e,t,n){const r=ta(t.enclosingDeclaration,e,788968,void 0,e,!1);return!!r&&!(262144&r.flags&&r===n.symbol)}function B(e,t){var n,r;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(Cy(e));if(n)return n}let i=z(e.symbol,t,788968,!0);if(!(80&i.kind))return AC.createIdentifier("(Missing type parameter)");if(4&t.flags){const o=i.escapedText;let a=(null==(n=t.typeParameterNamesByTextNextNameCount)?void 0:n.get(o))||0,s=o;for(;(null==(r=t.typeParameterNamesByText)?void 0:r.has(s))||R(s,t,e);)a++,s=`${o}_${a}`;if(s!==o){const e=Lw(i);i=AC.createIdentifier(s),Ow(i,e)}(t.typeParameterNamesByTextNextNameCount||(t.typeParameterNamesByTextNextNameCount=new Map)).set(o,a),(t.typeParameterNames||(t.typeParameterNames=new Map)).set(Cy(e),i),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new Set)).add(o)}return i}function z(e,t,n,r){const i=x(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=F(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=gc(o,t);0===r&&(t.flags^=16777216);const s=rw(AC.createIdentifier(a),16777216);i&&Ow(s,AC.createNodeArray(i));return s.symbol=o,r>0?AC.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function U(e,t,n){const r=x(e,t,n);return function e(n,r){const i=F(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=gc(o,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if(Lg(s)&&re(o.declarations,Ys))return AC.createStringLiteral(A(o,t));if(0===r||eC(a,w)){const t=rw(AC.createIdentifier(a),16777216);return i&&Ow(t,AC.createNodeArray(i)),t.symbol=o,r>0?AC.createPropertyAccessExpression(e(n,r-1),t):t}{let t;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!Lg(s)||8&o.flags?""+ +a===a&&(t=AC.createNumericLiteral(+a)):t=AC.createStringLiteral(fv(a).replace(/\\./g,(e=>e.substring(1))),39===s),!t){const e=rw(AC.createIdentifier(a),16777216);i&&Ow(e,AC.createNodeArray(i)),e.symbol=o,t=e}return AC.createElementAccessExpression(e(n,r-1),t)}}(r,r.length-1)}function H(e){const t=Mc(e);if(!t)return!1;if(cD(t)){return!!(402653316&$L(t.expression).flags)}if(ZD(t)){return!!(402653316&$L(t.argumentExpression).flags)}return FN(t)}function $(e){const t=Mc(e);return!!(t&&FN(t)&&(t.singleQuote||!Xy(t)&&an(Yp(t,!1),"'")))}function K(e,t){const n=!!v(e.declarations)&&N(e.declarations,H),r=!!v(e.declarations)&&N(e.declarations,$),i=!!(8192&e.flags),o=function(e,t,n,r,i){const o=Uo(e).nameType;if(o){if(384&o.flags){const e=""+o.value;return Os(e,HS(C))||!r&&HT(e)?HT(e)&&an(e,"-")?AC.createComputedPropertyName(AC.createNumericLiteral(+e)):$T(e,HS(C),n,r,i):AC.createStringLiteral(e,!!n)}if(8192&o.flags)return AC.createComputedPropertyName(U(o.symbol,t,111551))}}(e,t,r,n,i);if(o)return o;return $T(Nc(e.escapedName),HS(C),r,n,i)}function X(e,t){return e.declarations&&D(e.declarations,(e=>!(!Yv(e)||t&&!kc(e,(e=>e===t)))))}function Q(e,t){return!(4&Zx(t))||!TD(e)||v(e.typeArguments)>=Hp(t.target.typeParameters)}function Y(e){return Wo(e).fakeScopeForSignatureDeclaration?e.parent:e}function Z(e,t,n,r,i,a){if(!Uc(t)&&r){const o=X(n,Y(r));if(o&&!b_(o)&&!yD(o)){const n=Yv(o);if(function(e,t,n){const r=Sx(e);if(r===n)return!0;if(_D(t)&&t.questionToken)return eN(n,524288)===r;return!1}(n,o,t)&&Q(n,t)){const t=te(e,n,i,a);if(t)return t}}}const s=e.flags;8192&t.flags&&t.symbol===n&&(!e.enclosingDeclaration||re(n.declarations,(t=>Cp(t)===Cp(e.enclosingDeclaration))))&&(e.flags|=1048576);const c=o(t,e);return e.flags=s,c}function ee(e,t,n){let r=!1;const i=Gb(e);if(Tg(e)&&(Hg(i)||Kg(i.parent)||sD(i.parent)&&$g(i.parent.left)&&Hg(i.parent.right)))return r=!0,{introducesError:r,node:e};const o=Ha(i,67108863,!0,!0);if(o&&(0!==Ws(o,t.enclosingDeclaration,67108863,!1).accessibility?r=!0:(t.tracker.trackSymbol(o,t.enclosingDeclaration,67108863),null==n||n(o)),HN(e))){const n=Z_(o),i=262144&o.flags&&!Js(n.symbol,t.enclosingDeclaration)?B(n,t):AC.cloneNode(e);return i.symbol=o,{introducesError:r,node:rw(YC(i,e),16777216)}}return{introducesError:r,node:e}}function te(n,r,i,a){t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();let s=!1;const c=Cp(r),l=qB(r,(function t(r){if(nE(r)||326===r.kind)return AC.createKeywordTypeNode(133);if(rE(r))return AC.createKeywordTypeNode(159);if(iE(r))return AC.createUnionTypeNode([qB(r.type,t,j_),AC.createLiteralTypeNode(AC.createNull())]);if(aE(r))return AC.createUnionTypeNode([qB(r.type,t,j_),AC.createKeywordTypeNode(157)]);if(oE(r))return qB(r.type,t);if(cE(r))return AC.createArrayTypeNode(qB(r.type,t,j_));if(uE(r))return AC.createTypeLiteralNode(J(r.jsDocPropertyTags,(e=>{const i=HN(e.name)?e.name:e.name.right,a=jc(Sx(r),i.escapedText),s=a&&e.typeExpression&&Sx(e.typeExpression.type)!==a?o(a,n):void 0;return AC.createPropertySignature(void 0,i,e.isBracketed||e.typeExpression&&aE(e.typeExpression.type)?AC.createToken(58):void 0,s||e.typeExpression&&qB(e.typeExpression.type,t,j_)||AC.createKeywordTypeNode(133))})));if(TD(r)&&HN(r.typeName)&&""===r.typeName.escapedText)return YC(AC.createKeywordTypeNode(133),r);if((bF(r)||TD(r))&&Dg(r))return AC.createTypeLiteralNode([AC.createIndexSignature(void 0,[AC.createParameterDeclaration(void 0,void 0,"x",void 0,qB(r.typeArguments[0],t,j_))],qB(r.typeArguments[1],t,j_))]);if(sE(r)){if(vh(r)){let e;return AC.createConstructorTypeNode(void 0,UB(r.typeParameters,t,lD),G(r.parameters,((n,r)=>n.name&&HN(n.name)&&"new"===n.name.escapedText?void(e=n.type):AC.createParameterDeclaration(void 0,l(n),_(n,r),n.questionToken,qB(n.type,t,j_),void 0))),qB(e||r.type,t,j_)||AC.createKeywordTypeNode(133))}return AC.createFunctionTypeNode(UB(r.typeParameters,t,lD),J(r.parameters,((e,n)=>AC.createParameterDeclaration(void 0,l(e),_(e,n),e.questionToken,qB(e.type,t,j_),void 0))),qB(r.type,t,j_)||AC.createKeywordTypeNode(133))}if(TD(r)&&Ng(r)&&(!Q(r,Sx(r))||lg(r)||yt===Mm(r,788968,!0)))return YC(o(Sx(r),n),r);if(lm(r)){const i=Wo(r).resolvedSymbol;return!Ng(r)||!i||(r.isTypeOf||788968&i.flags)&&v(r.typeArguments)>=Hp(h_(i))?AC.updateImportTypeNode(r,AC.updateLiteralTypeNode(r.argument,function(t,r){if(a){if(n.tracker&&n.tracker.moduleResolverHost){const r=yJ(t);if(r){const t=Sv({getCanonicalFileName:tn(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>n.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>n.tracker.moduleResolverHost.getCommonSourceDirectory()},r);return AC.createStringLiteral(t)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){const e=Ga(r,r,void 0);e&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(e)}return r}(r,r.argument.literal)),r.attributes,r.qualifier,UB(r.typeArguments,t,j_),r.isTypeOf):YC(o(Sx(r),n),r)}if(m_(r)||Kb(r)){const{introducesError:e,node:t}=ee(r,n,i);if(s=s||e,t!==r)return t}c&&PD(r)&&_s(c,r.pos).line===_s(c,r.end).line&&rw(r,1);return YB(r,t,zq);function l(e){return e.dotDotDotToken||(e.type&&cE(e.type)?AC.createToken(26):void 0)}function _(e,t){return e.name&&HN(e.name)&&"this"===e.name.escapedText?"this":l(e)?"args":`arg${t}`}}),j_);if(!s)return l===r?cI(AC.cloneNode(r),r):l}}(),pe=op(),fe=Ao(4,"undefined");fe.declarations=[];var me=Ao(1536,"globalThis",8);me.exports=pe,me.declarations=[],pe.set(me.escapedName,me);var ye,ve,ke,Te=Ao(4,"arguments"),Ce=Ao(4,"require"),we=C.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Oe=!C.verbatimModuleSyntax||!!C.importsNotUsedAsValues,Le=0,je=0;const Be={getNodeCount:()=>Je(e.getSourceFiles(),((e,t)=>e+t.nodeCount),0),getIdentifierCount:()=>Je(e.getSourceFiles(),((e,t)=>e+t.identifierCount),0),getSymbolCount:()=>Je(e.getSourceFiles(),((e,t)=>e+t.symbolCount),f),getTypeCount:()=>p,getInstantiationCount:()=>m,getRelationCacheSizes:()=>({assignable:_o.size,identity:po.size,subtype:co.size,strictSubtype:lo.size}),isUndefinedSymbol:e=>e===fe,isArgumentsSymbol:e=>e===Te,isUnknownSymbol:e=>e===yt,getMergedSymbol:us,getDiagnostics:YR,getGlobalDiagnostics:function(){return ZR(),oo.getGlobalDiagnostics()},getRecursionIdentity:Uk,getUnmatchedProperties:nw,getTypeOfSymbolAtLocation:(e,t)=>{const n=Cc(t);return n?function(e,t){if(e=xs(e),(80===t.kind||81===t.kind)&&(ex(t)&&(t=t.parent),fg(t)&&(!qh(t)||Wx(t)))){const n=bC(Wx(t)&&211===t.kind?pA(t,void 0,!0):VL(t));if(xs(Wo(t).resolvedSymbol)===e)return n}if(ey(t)&&qu(t.parent)&&zl(t.parent))return Wl(t.parent.symbol);return tx(t)&&Wx(t.parent)?t_(e):i_(e)}(e,n):Nt},getTypeOfSymbol:n_,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=Cc(e,_D);return void 0===n?Sn.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(Sn.assert(dc(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=Xo(n.locals,t,111551),o=Xo(wu(r.symbol),t,111551);if(i&&o)return[i,o];return Sn.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,wc(t)))},getDeclaredTypeOfSymbol:Z_,getPropertiesOfType:jd,getPropertyOfType:(e,t)=>bp(e,wc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=Cc(n);if(!r)return;const i=gA(wc(t),r);return i?vA(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>jc(e,wc(t)),getIndexInfoOfType:(e,t)=>jp(e,0===t?qt:Ut),getIndexInfosOfType:Lp,getIndexInfosOfIndexSymbol:Vf,getSignaturesOfType:Sp,getIndexTypeOfType:(e,t)=>Mp(e,0===t?qt:Ut),getIndexType:e=>kv(e),getBaseTypes:M_,getBaseTypeOfLiteralType:xT,getWidenedType:LC,getTypeFromTypeNode:e=>{const t=Cc(e,j_);return t?Sx(t):Nt},getParameterType:vO,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(324===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(RB(e)?1:0);if(t<r){const n=e.parameters[t],r=gO(n);return r?{parameter:r,parameterName:n.escapedName,isRestParameter:!1}:void 0}const i=e.parameters[r]||yt,o=gO(i);if(!o)return;const a=n_(i);if(LT(a)){const e=a.target.labeledElementDeclarations,n=null==e?void 0:e[t-r],i=!!(null==n?void 0:n.dotDotDotToken);return n?(Sn.assert(HN(n.name)),{parameter:n.name,parameterName:n.name.escapedText,isRestParameter:i}):void 0}if(t===r)return{parameter:o,parameterName:i.escapedName,isRestParameter:!0};return},getPromisedTypeOfPromise:bj,getAwaitedType:e=>Nj(e),getReturnTypeOfSignature:of,isNullableType:eA,getNullableType:_C,getNonNullableType:yC,getNonOptionalType:bC,getTypeArguments:mm,typeToTypeNode:de.typeToTypeNode,indexInfoToIndexSignatureDeclaration:de.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:de.signatureToSignatureDeclaration,symbolToEntityName:de.symbolToEntityName,symbolToExpression:de.symbolToExpression,symbolToNode:de.symbolToNode,symbolToTypeParameterDeclarations:de.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:de.symbolToParameterDeclaration,typeParameterToDeclaration:de.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=Cc(e);return n?function(e,t){if(67108864&e.flags)return[];const n=op();let r=!1;return i(),n.delete("this"),qp(n);function i(){for(;e;){switch(Tu(e)&&e.locals&&!Go(e)&&a(e.locals,t),e.kind){case 312:if(!tO(e))break;case 267:s(ds(e).exports,2623475&t);break;case 266:a(ds(e).exports,8&t);break;case 231:e.name&&o(e.symbol,t);case 263:case 264:r||a(wu(ds(e)),788968&t);break;case 218:e.name&&o(e.symbol,t)}Fm(e)&&o(Te,t),r=mb(e),e=e.parent}a(pe,t)}function o(e,t){if(Ux(e)&t){const t=e.escapedName;n.has(t)||n.set(t,e)}}function a(e,t){t&&e.forEach((e=>{o(e,t)}))}function s(e,t){t&&e.forEach((e=>{rp(e,281)||rp(e,280)||"default"===e.escapedName||o(e,t)}))}}(n,t):[]},getSymbolAtLocation:e=>{const t=Cc(e);return t?cB(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=Cc(e);return t?function(e){if(HN(e)&&YD(e.parent)&&e.parent.name===e){const t=pv(e),n=VL(e.parent.expression);return V(1048576&n.flags?n.types:[n],(e=>M(Lp(e),(e=>Ep(t,e.keyType)))))}return}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=Cc(e);return t?function(e){if(e&&304===e.kind)return Ha(e.name,2208703);return}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=Cc(e,xP);return t?function(e){return xP(e)?e.parent.parent.moduleSpecifier?Da(e.parent.parent,e):Ha(e.propertyName||e.name,2998271):Ha(e,2998271)}(t):void 0},getExportSymbolOfSymbol:e=>us(e.exportSymbol||e),getTypeAtLocation:e=>{const t=Cc(e);return t?lB(t):Nt},getTypeOfAssignmentPattern:e=>{const t=Cc(e,B_);return t&&_B(t)||Nt},getPropertySymbolOfDestructuringAssignment:e=>{const t=Cc(e,HN);return t?function(e){const t=_B(mt(e.parent.parent,B_));return t&&bp(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>nc(e,Cc(t),n,r),typeToString:(e,t,n)=>rc(e,Cc(t),n),symbolToString:(e,t,n,r)=>tc(e,Cc(t),n,r),typePredicateToString:(e,t,n)=>lc(e,Cc(t),n),writeSignature:(e,t,n,r,i)=>nc(e,Cc(t),n,r,i),writeType:(e,t,n,r)=>rc(e,Cc(t),n,r),writeSymbol:(e,t,n,r,i)=>tc(e,Cc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>lc(e,Cc(t),n,r),getAugmentedPropertiesOfType:gB,getRootSymbols:function e(t){const n=function(e){if(6&Jx(e))return G(Uo(e).containingType.types,(t=>bp(t,e.escapedName)));if(33554432&e.flags){const{links:{leftSpread:t,rightSpread:n,syntheticOrigin:r}}=e;return t?[t,n]:r?[r]:fn(function(e){let t,n=e;for(;n=Uo(n).target;)t=n;return t}(e))}return}(t);return n?V(n,e):[t]},getSymbolOfExpando:qI,getContextualType:(e,t)=>{const n=Cc(e,au);if(n)return 4&t?qe(n,(()=>_P(n,t))):_P(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=Cc(e,L_);return t?qF(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=Cc(e,Q_);return n&&FF(n,t)},getContextualTypeForJsxAttribute:e=>{const t=Cc(e,Lu);return t&&WF(t,void 0)},isContextSensitive:lS,getTypeOfPropertyOfContextualType:JF,getFullyQualifiedName:Wa,getResolvedSignature:(e,t,n)=>Ue(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){const n=new Set,r=[];qe(t,(()=>Ue(e,r,void 0,0)));for(const e of r)n.add(e);r.length=0,ze(t,(()=>Ue(e,r,void 0,0)));for(const e of r)n.add(e);return $e(n)},getResolvedSignatureForSignatureHelp:(e,t,n)=>ze(e,(()=>Ue(e,t,n,16))),getExpandedParameters:Ru,hasEffectiveRestParameter:TO,containsArgumentsReference:Xp,getConstantValue:e=>{const t=Cc(e,rJ);return t?iJ(t):void 0},isValidPropertyAccess:(e,t)=>{const n=Cc(e,K_);return!!n&&function(e,t){switch(e.kind){case 211:return JA(e,108===e.expression.kind,t,LC($L(e.expression)));case 166:return JA(e,!1,t,LC($L(e.left)));case 205:return JA(e,!1,t,Sx(e))}}(n,wc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=Cc(e,YD);return!!r&&BA(r,t,n)},getSignatureFromDeclaration:e=>{const t=Cc(e,y_);return t?Kp(t):void 0},isImplementationOfOverload:e=>{const t=Cc(e,y_);return t?GB(t):void 0},getImmediateAliasedSymbol:tE,getAliasedSymbol:Ma,getEmitResolver:function(e,t){return YR(e,t),ue},getExportsOfModule:rs,getExportsAndPropertiesOfModule:function(e){const t=rs(e),n=Ya(e);if(n!==e){const e=n_(n);os(e)&&be(t,jd(e))}return t},forEachExportAndPropertyOfModule:function(e,t){ss(e).forEach(((e,n)=>{Ps(n)||t(e,n)}));const n=Ya(e);if(n!==e){const e=n_(n);os(e)&&function(e,t){e=tp(e),3670016&e.flags&&Ad(e).members.forEach(((e,n)=>{As(e,n)&&t(e,n)}))}(e,((e,n)=>{t(e,n)}))}},getSymbolWalker:jR((function(e){return df(e)||kt}),nf,of,M_,Ad,n_,Pw,Rd,Gb,mm),getAmbientModules:function(){$n||($n=[],pe.forEach(((e,t)=>{pB.test(t)&&$n.push(e)})));return $n},getJsxIntrinsicTagNamesAt:function(e){const t=xE(wB.IntrinsicElements,e);return t?jd(t):r},isOptionalParameter:e=>{const t=Cc(e,_D);return!!t&&Vp(t)},tryGetMemberInModuleExports:(e,t)=>is(wc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=is(e,t);if(n)return n;const r=Ya(t);if(r===t)return;const i=n_(r);return os(i)?bp(i,e):void 0}(wc(e),t),tryFindAmbientModule:e=>Up(e,!0),tryFindAmbientModuleWithoutAugmentations:e=>Up(e,!1),getApparentType:ep,getUnionType:Uy,isTypeAssignableTo:bS,createAnonymousType:Ls,createSignature:Au,createSymbol:Ao,createIndexInfo:jf,getAnyType:()=>kt,getStringType:()=>qt,getStringLiteralType:fx,getNumberType:()=>Ut,getNumberLiteralType:mx,getBigIntType:()=>Vt,createPromiseType:VO,createArrayType:Bh,getElementTypeOfArrayType:Yk,getBooleanType:()=>Zt,getFalseType:e=>e?Ht:Kt,getTrueType:e=>e?Gt:Xt,getVoidType:()=>nn,getUndefinedType:()=>Lt,getNullType:()=>Jt,getESSymbolType:()=>en,getNeverType:()=>rn,getOptionalType:()=>Bt,getPromiseType:()=>_h(!1),getPromiseLikeType:()=>dh(!1),getAsyncIterableType:()=>{const e=gh(!1);if(e!==jn)return e},isSymbolAccessible:Ws,isArrayType:Kk,isTupleType:LT,isArrayLikeType:Zk,isEmptyAnonymousObjectType:XS,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((t=>{const n=t.name&&(MP(t.name)?fx(lC(t.name)):pv(t.name)),r=n&&fC(n)?mC(n):void 0,i=void 0===r?void 0:jc(e,r);return!!i&&yT(i)&&!bS(lB(t),i)}))},getExactOptionalProperties:function(e){return jd(e).filter((e=>TC(n_(e))))},getAllPossiblePropertiesOfTypes:function(e){const t=Uy(e);if(!(1048576&t.flags))return gB(t);const n=op();for(const r of e)for(const{escapedName:e}of gB(r))if(!n.has(e)){const r=np(t,e);r&&n.set(e,r)}return $e(n.values())},getSuggestedSymbolForNonexistentProperty:FA,getSuggestionForNonexistentProperty:EA,getSuggestedSymbolForNonexistentJSXAttribute:PA,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>OA(e,wc(t),n),getSuggestionForNonexistentSymbol:(e,t,n)=>function(e,t,n){const r=OA(e,t,n);return r&&Pc(r)}(e,wc(t),n),getSuggestedSymbolForNonexistentModule:LA,getSuggestionForNonexistentExport:function(e,t){const n=LA(e,t);return n&&Pc(n)},getSuggestedSymbolForNonexistentClassMember:DA,getBaseConstraintOfType:Wd,getDefaultFromTypeParameter:e=>e&&262144&e.flags?Xd(e):void 0,resolveName:(e,t,n,r)=>ta(t,wc(e),n,void 0,void 0,!1,r),getJsxNamespace:e=>Nc(vo(e)),getJsxFragmentFactory:e=>{const t=hJ(e);return t&&Nc(Gb(t).escapedText)},getAccessibleSymbolChain:Rs,getTypePredicateOfSignature:nf,resolveExternalModuleName:e=>{const t=Cc(e,au);return t&&Ka(t,t,!0)},resolveExternalModuleSymbol:Ya,tryGetThisTypeAt:(e,t,n)=>{const r=Cc(e);return r&&HD(r,t,n)},getTypeArgumentConstraint:e=>{const t=Cc(e,j_);return t&&function(e){const t=ft(e.parent,Gu);if(!t)return;const n=lj(t);if(!n)return;const r=Rd(n[t.typeArguments.indexOf(e)]);return r&&nS(r,Dx(n,sj(t,n)))}(t)},getSuggestionDiagnostics:(n,i)=>{const o=Cc(n,$P)||Sn.fail("Could not determine parsed source file.");if(hT(o,C,e))return r;let a;try{return t=i,eB(o),Sn.assert(!!(1&Wo(o).flags)),a=be(a,ao.getDiagnostics(o.fileName)),Uj(QR(o),((e,t,n)=>{Tp(e)||XR(t,!!(33554432&e.flags))||(a||(a=[])).push({...n,category:2})})),a||r}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(Be)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:h_,isDeclarationVisible:yc,isPropertyAccessible:zA,getTypeOnlyAliasDeclaration:za,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=ds(e),i=Z_(r),o=Fu(i),a=n_(r),s=_y(e)&&M_(i),c=(null==s?void 0:s.length)?Fu(Pe(s),i.thisType):void 0,l=I_(i),_=t.parent?hb(t):fb(t,16);return lR(e,a,l,c,i,o,_,yb(t),mb(t),!1,Pc(n))},isTypeParameterPossiblyReferenced:Hx,typeHasCallOrConstructSignatures:vB};function ze(e,t){if(e=kc(e,X_)){const n=[],r=[];for(;e;){const t=Wo(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,VT(e)){const t=Uo(ds(e)),n=t.type;r.push([t,n]),t.type=void 0}e=kc(e.parent,X_)}const i=t();for(const[e,t]of n)e.resolvedSignature=t;for(const[e,t]of r)e.type=t;return i}return t()}function qe(e,t){const n=kc(e,Q_);if(n){let t=e;do{Wo(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}x=!0;const r=ze(e,t);if(x=!1,n){let t=e;do{Wo(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Ue(e,t,n,r){const i=Cc(e,Q_);ye=n;const o=i?BI(i,t,r):void 0;return ye=void 0,o}var Ve=new Map,We=new Map,Ke=new Map,Ge=new Map,Xe=new Map,Qe=new Map,et=new Map,tt=new Map,nt=new Map,rt=new Map,at=new Map,st=new Map,ct=new Map,lt=new Map,ut=new Map,pt=[],gt=new Map,ht=new Set,yt=Ao(4,"unknown"),vt=Ao(0,"__resolving__"),bt=new Map,xt=new Map,St=new Set,kt=Ns(1,"any"),Tt=Ns(1,"any",262144,"auto"),Ct=Ns(1,"any",void 0,"wildcard"),wt=Ns(1,"any",void 0,"blocked string"),Nt=Ns(1,"error"),Dt=Ns(1,"unresolved"),Pt=Ns(1,"any",65536,"non-inferrable"),Et=Ns(1,"intrinsic"),At=Ns(2,"unknown"),Ot=Ns(2,"unknown",void 0,"non-null"),Lt=Ns(32768,"undefined"),jt=H?Lt:Ns(32768,"undefined",65536,"widening"),Mt=Ns(32768,"undefined",void 0,"missing"),Rt=le?Mt:Lt,Bt=Ns(32768,"undefined",void 0,"optional"),Jt=Ns(65536,"null"),zt=H?Jt:Ns(65536,"null",65536,"widening"),qt=Ns(4,"string"),Ut=Ns(8,"number"),Vt=Ns(64,"bigint"),Ht=Ns(512,"false",void 0,"fresh"),Kt=Ns(512,"false"),Gt=Ns(512,"true",void 0,"fresh"),Xt=Ns(512,"true");Gt.regularType=Xt,Gt.freshType=Gt,Xt.regularType=Xt,Xt.freshType=Gt,Ht.regularType=Kt,Ht.freshType=Ht,Kt.regularType=Kt,Kt.freshType=Ht;var Qt,Zt=Uy([Kt,Xt]),en=Ns(4096,"symbol"),nn=Ns(16384,"void"),rn=Ns(131072,"never"),cn=Ns(131072,"never",262144,"silent"),ln=Ns(131072,"never",void 0,"implicit"),pn=Ns(131072,"never",void 0,"unreachable"),mn=Ns(67108864,"object"),hn=Uy([qt,Ut]),yn=Uy([qt,Ut,en]),vn=ne?qt:yn,bn=Uy([Ut,Vt]),xn=Uy([qt,Ut,Zt,Vt,Jt,Lt]),kn=Cv(["",""],[Ut]),Tn=Ex((e=>{return 262144&e.flags?!(t=e).constraint&&!Kf(t)||t.constraint===Rn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Fs(t.symbol),t.restrictiveInstantiation.constraint=Rn,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),Cn=Ex((e=>262144&e.flags?Ct:e),(()=>"(permissive mapper)")),wn=Ns(131072,"never",void 0,"unique literal"),Nn=Ex((e=>262144&e.flags?wn:e),(()=>"(unique literal mapper)")),Dn=Ex((e=>(!Qt||e!==zn&&e!==qn&&e!==Un||Qt(!0),e)),(()=>"(unmeasurable reporter)")),Fn=Ex((e=>(!Qt||e!==zn&&e!==qn&&e!==Un||Qt(!1),e)),(()=>"(unreliable reporter)")),Pn=Ls(void 0,k,r,r,r),En=Ls(void 0,k,r,r,r);En.objectFlags|=2048;var An=Ao(2048,"__type");An.members=op();var In=Ls(An,k,r,r,r),On=Ls(void 0,k,r,r,r),Ln=H?Uy([Lt,Jt,On]):At,jn=Ls(void 0,k,r,r,r);jn.instantiations=new Map;var Mn=Ls(void 0,k,r,r,r);Mn.objectFlags|=262144;var Rn=Ls(void 0,k,r,r,r),Bn=Ls(void 0,k,r,r,r),Jn=Ls(void 0,k,r,r,r),zn=Fs(),qn=Fs();qn.constraint=zn;var Un=Fs(),Vn=Fs(),Wn=Fs();Wn.constraint=Vn;var Hn,$n,Kn,Gn,Xn,Qn,Yn,Zn,er,tr,nr,rr,ir,or,ar,sr,cr,lr,_r,ur,dr,pr,fr,mr,yr,vr,br,xr,Sr,kr,Tr,Cr,wr,Nr,Dr,Pr,Er,Ar,Ir,Or,Lr,jr,Mr,Rr,Br,Jr,zr,qr,Ur,Vr,Wr,Hr,$r,Kr,Gr,Xr,Qr,Yr,Zr,ei,ti,ni,ri=Wp(1,"<<unresolved>>",0,kt),ii=Au(void 0,void 0,void 0,r,kt,void 0,0,0),oi=Au(void 0,void 0,void 0,r,Nt,void 0,0,0),ai=Au(void 0,void 0,void 0,r,kt,void 0,0,0),si=Au(void 0,void 0,void 0,r,cn,void 0,0,0),ci=jf(Ut,qt,!0),li=new Map,_i={get yieldType(){return Sn.fail("Not supported")},get returnType(){return Sn.fail("Not supported")},get nextType(){return Sn.fail("Not supported")}},ui=wM(kt,kt,kt),di=wM(kt,kt,At),pi=wM(rn,kt,Lt),fi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Dr||(Dr=Qg("AsyncIterator",3,e))||jn},getGlobalIterableType:gh,getGlobalIterableIteratorType:function(e){return Pr||(Pr=Qg("AsyncIterableIterator",1,e))||jn},getGlobalGeneratorType:function(e){return Er||(Er=Qg("AsyncGenerator",3,e))||jn},resolveIterationType:(e,t)=>Nj(e,t,Ea.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:Ea.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Ea.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:Ea.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},mi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Sr||(Sr=Qg("Iterator",3,e))||jn},getGlobalIterableType:Sh,getGlobalIterableIteratorType:function(e){return kr||(kr=Qg("IterableIterator",1,e))||jn},getGlobalGeneratorType:function(e){return Tr||(Tr=Qg("Generator",3,e))||jn},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:Ea.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:Ea.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:Ea.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},gi=new Map,hi=[],yi=new Map,vi=0,bi=0,xi=0,Si=!1,ki=0,Ti=[],Ci=[],wi=[],Ni=0,Di=[],Fi=[],Ei=0,Ai=fx(""),Ii=mx(0),Oi=gx({negative:!1,base10Value:"0"}),Li=[],ji=[],Mi=[],Ri=0,Bi=!1,Ji=0,zi=10,qi=[],Ui=[],Vi=[],Wi=[],Hi=[],$i=[],Ki=[],Gi=[],Xi=[],Qi=[],Yi=[],Zi=[],eo=[],to=[],no=[],ro=[],io=[],oo=ov(),ao=ov(),so=Uy($e(bB.keys(),fx)),co=new Map,lo=new Map,_o=new Map,uo=new Map,po=new Map,fo=new Map,mo=op();mo.set(fe.escapedName,fe);var go=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===C.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(const t of e.getSourceFiles())FR(t,C);let t;Hn=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!Yf(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)oo.add(Bf(t,Ea.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));zo(pe,n.locals)}if(n.jsGlobalAugmentations&&zo(pe,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(Kn=oe(Kn,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports){n.symbol.globalExports.forEach(((e,t)=>{pe.has(t)||pe.set(t,e)}))}}if(t)for(const e of t)for(const t of e)mf(t.parent)&&qo(t);n=pe,i=mo,o=Ea.Declaration_name_conflicts_with_built_in_global_identifier_0,void i.forEach(((e,t)=>{const r=n.get(t);r?b(r.declarations,function(e,t){return n=>oo.add(Bf(n,t,e))}(Nc(t),o)):n.set(t,e)})),Uo(fe).type=jt,Uo(Te).type=Qg("IArguments",0,!0),Uo(yt).type=Nt,Uo(me).type=Ds(16,me),er=Qg("Array",1,!0),Xn=Qg("Object",0,!0),Qn=Qg("Function",0,!0),Yn=K&&Qg("CallableFunction",0,!0)||Qn,Zn=K&&Qg("NewableFunction",0,!0)||Qn,nr=Qg("String",0,!0),rr=Qg("Number",0,!0),ir=Qg("Boolean",0,!0),or=Qg("RegExp",0,!0),sr=Bh(kt),(cr=Bh(Tt))===Pn&&(cr=Ls(void 0,k,r,r,r));var n,i,o;if(tr=Ch("ReadonlyArray",1)||er,lr=tr?Fh(tr,[kt]):sr,ar=Ch("ThisType",1),t)for(const e of t)for(const t of e)mf(t.parent)||qo(t);Hn.forEach((({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach((({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?Ea.Cannot_redeclare_block_scoped_variable_0:Ea.Duplicate_identifier_0;for(const e of t)Jo(e,i,r,n);for(const e of n)Jo(e,i,r,t)}));else{const r=$e(n.keys()).join(", ");oo.add(pT(Bf(e,Ea.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Bf(t,Ea.Conflicts_are_in_this_file))),oo.add(pT(Bf(t,Ea.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Bf(e,Ea.Conflicts_are_in_this_file)))}})),Hn=void 0}(),Be;function ho(e){return e?ut.get(e):void 0}function yo(e,t){return e&&ut.set(e,t),t}function vo(e){if(e){const t=Cp(e);if(t)if(EP(e)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;const n=t.pragmas.get("jsxfrag");if(n){const e=_t(n)?n[0]:n;if(t.localJsxFragmentFactory=ZI(e.arguments.factory,w),qB(t.localJsxFragmentFactory,xo,m_),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=Gb(t.localJsxFragmentFactory).escapedText}const r=hJ(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=Gb(r).escapedText}else{const e=bo(t);if(e)return t.localJsxNamespace=e}}return ti||(ti="React",C.jsxFactory?(qB(ni=ZI(C.jsxFactory,w),xo),ni&&(ti=Gb(ni).escapedText)):C.reactNamespace&&(ti=wc(C.reactNamespace))),ni||(ni=AC.createQualifiedName(AC.createIdentifier(Nc(ti)),"createElement")),ti}function bo(e){if(e.localJsxNamespace)return e.localJsxNamespace;const t=e.pragmas.get("jsx");if(t){const n=_t(t)?t[0]:t;if(e.localJsxFactory=ZI(n.arguments.factory,w),qB(e.localJsxFactory,xo,m_),e.localJsxFactory)return e.localJsxNamespace=Gb(e.localJsxFactory).escapedText}}function xo(e){return FT(e,-1,-1),YB(e,xo,zq)}function So(e,t,n,...r){const i=To(t,n,...r);return i.skippedOn=e,i}function ko(e,t,...n){return e?Bf(e,t,...n):IS(t,...n)}function To(e,t,...n){const r=ko(e,t,...n);return oo.add(r),r}function Co(e,t){e?oo.add(t):ao.add({...t,category:2})}function wo(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const i=Cp(t);Co(e,"message"in n?ES(i,0,0,n,...r):Hf(i,n))}else Co(e,"message"in n?Bf(t,n,...r):qf(Cp(t),t,n))}function No(e,t,n,...r){const i=To(e,n,...r);if(t){pT(i,Bf(e,Ea.Did_you_forget_to_use_await))}return i}function Do(e,t){const n=Array.isArray(e)?b(e,al):al(e);return n&&pT(t,Bf(n,Ea.The_declaration_was_marked_as_deprecated_here)),ao.add(t),t}function Fo(e){const t=ms(e);return t&&v(e.declarations)>1?64&t.flags?re(e.declarations,Po):N(e.declarations,Po):!!e.valueDeclaration&&Po(e.valueDeclaration)||v(e.declarations)&&N(e.declarations,Po)}function Po(e){return!!(536870912&rz(e))}function Eo(e,t,n){return Do(t,Bf(e,Ea._0_is_deprecated,n))}function Ao(e,t,n){f++;const r=new _(33554432|e,t);return r.links=new CB,r.links.checkFlags=n||0,r}function Io(e,t){const n=Ao(1,e);return n.links.type=t,n}function Oo(e,t){const n=Ao(4,e);return n.links.type=t,n}function Lo(e){let t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function jo(e,t){t.mergeId||(t.mergeId=hB,hB++),qi[t.mergeId]=e}function Mo(e){const t=Ao(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)),jo(t,e),t}function Ro(e,t,n=!1){if(!(e.flags&Lo(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=ja(e);if(n===yt)return t;e=Mo(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&lh(e,t.valueDeclaration),be(e.declarations,t.declarations),t.members&&(e.members||(e.members=op()),zo(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=op()),zo(e.exports,t.exports,n)),n||jo(e,t)}else if(1024&e.flags)e!==me&&To(t.declarations&&Mc(t.declarations[0]),Ea.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,tc(e));else{const n=!!(384&e.flags||384&t.flags),i=!!(2&e.flags||2&t.flags),o=n?Ea.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:i?Ea.Cannot_redeclare_block_scoped_variable_0:Ea.Duplicate_identifier_0,a=t.declarations&&Cp(t.declarations[0]),s=e.declarations&&Cp(e.declarations[0]),c=Np(a,C.checkJs),l=Np(s,C.checkJs),_=tc(t);if(a&&s&&Hn&&!n&&a!==s){const n=-1===xa(a.path,s.path)?a:s,o=n===a?s:a,u=Y(Hn,`${n.path}|${o.path}`,(()=>({firstFile:n,secondFile:o,conflictingSymbols:new Map}))),d=Y(u.conflictingSymbols,_,(()=>({isBlockScoped:i,firstFileLocations:[],secondFileLocations:[]})));c||r(d.firstFileLocations,t),l||r(d.secondFileLocations,e)}else c||Bo(t,o,_,e),l||Bo(e,o,_,t)}return e;function r(e,t){if(t.declarations)for(const n of t.declarations)xe(e,n)}}function Bo(e,t,n,r){b(e.declarations,(e=>{Jo(e,t,n,r.declarations)}))}function Jo(e,t,n,i){const o=(zg(e,!1)?Ug(e):Mc(e))||e,a=function(e,t,...n){const r=e?Bf(e,t,...n):IS(t,...n);return oo.lookup(r)||(oo.add(r),r)}(o,t,n);for(const e of i||r){const t=(zg(e,!1)?Ug(e):Mc(e))||e;if(t===o)continue;a.relatedInformation=a.relatedInformation||[];const r=Bf(t,Ea._0_was_also_declared_here,n),i=Bf(t,Ea.and_here);v(a.relatedInformation)>=5||re(a.relatedInformation,(e=>0===RS(e,i)||0===RS(e,r)))||pT(a,v(a.relatedInformation)?i:r)}}function zo(e,t,n=!1){t.forEach(((t,r)=>{const i=e.get(r);e.set(r,i?Ro(i,t,n):us(t))}))}function qo(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(mf(i))zo(pe,i.symbol.exports);else{let t=Ga(e,e,33554432&e.parent.parent.flags?void 0:Ea.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!t)return;if(t=Ya(t),1920&t.flags)if(re(Kn,(e=>t===e.symbol))){const n=Ro(i.symbol,t,!0);Gn||(Gn=new Map),Gn.set(e.text,n)}else{if((null==(n=t.exports)?void 0:n.get("__export"))&&(null==(r=i.symbol.exports)?void 0:r.size)){const e=Cu(t,"resolvedExports");for(const[n,r]of $e(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&Ro(e.get(n),r)}Ro(t,i.symbol)}else To(e,Ea.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else Sn.assert(i.symbol.declarations.length>1)}function Uo(e){if(33554432&e.flags)return e.links;const t=EB(e);return Ui[t]??(Ui[t]=new CB)}function Wo(e){const t=PB(e);return Vi[t]||(Vi[t]=new FB)}function Go(e){return 312===e.kind&&!Yf(e)}function Xo(e,t,n){if(n){const r=us(e.get(t));if(r){if(Sn.assert(0==(1&Jx(r)),"Should never get an instantiated symbol here."),r.flags&n)return r;if(2097152&r.flags){if(Ra(r)&n)return r}}}}function Qo(t,n){const r=Cp(t),i=Cp(n),o=Ef(t);if(r!==i){if(A&&(r.externalModuleIndicator||i.externalModuleIndicator)||!Ev(C)||Kv(n)||33554432&t.flags)return!0;if(a(n,t))return!0;const o=e.getSourceFiles();return o.indexOf(r)<=o.indexOf(i)}if(16777216&n.flags||Kv(n)||Ew(n))return!0;if(t.pos<=n.pos&&(!pD(t)||!tg(n.parent)||t.initializer||t.exclamationToken)){if(208===t.kind){const e=gy(n,208);return e?kc(e,GD)!==kc(t,GD)||t.pos<e.pos:Qo(gy(t,260),n)}return 260===t.kind?!function(e,t){switch(e.parent.parent.kind){case 243:case 248:case 250:if(pa(t,e,o))return!0}const n=e.parent.parent;return fu(n)&&pa(t,n.expression,o)}(t,n):YF(t)?!kc(n,(e=>cD(e)&&e.parent.parent===t)):pD(t)?!s(t,n,!1):!dc(t,t.parent)||!(z&&Um(t)===Um(n)&&a(n,t))}return!!(281===n.parent.kind||277===n.parent.kind&&n.parent.isExportEquals)||(!(277!==n.kind||!n.isExportEquals)||!!a(n,t)&&(!z||!Um(t)||!pD(t)&&!dc(t,t.parent)||!s(t,n,!0)));function a(e,t){return!!kc(e,(n=>{if(n===o)return"quit";if(y_(n))return!0;if(gD(n))return t.pos<e.pos;const r=ft(n.parent,pD);if(r){if(r.initializer===n)if(mb(n.parent)){if(174===t.kind)return!0;if(pD(t)&&Um(e)===Um(t)){const e=t.name;if(HN(e)||$N(e)){if(function(e,t,n,r,i){for(const o of n)if(o.pos>=r&&o.pos<=i){const n=AC.createPropertyAccessExpression(AC.createThis(),e);AT(n.expression,n),AT(n,o),n.flowNode=o.returnFlowNode;if(!ZS(QN(n,t,dC(t))))return!0}return!1}(e,n_(ds(t)),M(t.parent.members,gD),t.parent.pos,n.pos))return!0}}}else{if(!(172===t.kind&&!mb(t))||Um(e)!==Um(t))return!0}}return!1}))}function s(e,t,n){if(t.end>e.end)return!1;return void 0===kc(t,(t=>{if(t===e)return"quit";switch(t.kind){case 219:return!0;case 172:return!n||!(pD(e)&&t.parent===e.parent||dc(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 241:switch(t.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}}))}}function Yo(e,t,n){const r=HS(C),i=t;if(_D(n)&&i.body&&e.valueDeclaration&&e.valueDeclaration.pos>=i.body.pos&&e.valueDeclaration.end<=i.body.end&&r>=2){const e=Wo(i);return void 0===e.declarationRequiresScopeChange&&(e.declarationRequiresScopeChange=b(i.parameters,(function(e){return o(e.name)||!!e.initializer&&o(e.initializer)}))||!1),!e.declarationRequiresScopeChange}return!1;function o(e){switch(e.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return o(e.name);case 172:return gb(e)?!z:o(e.name);default:return Ol(e)||Pl(e)?r<7:GD(e)&&e.dotDotDotToken&&$D(e.parent)?r<4:!j_(e)&&(KI(e,o)||!1)}}}function ea(e){return su(e)&&Ll(e.type)||FE(e)&&Ll(e.typeExpression)}function ta(e,t,n,r,i,o,a=!1,s=!0){return na(e,t,n,r,i,o,a,s,Xo)}function na(e,t,n,r,i,o,a,s,l){var _,u,d;const p=e;let f,m,g,h,y,b=!1;const x=e;let S,T=!1;e:for(;e;){if("const"===t&&ea(e))return;if(Su(e)&&m&&e.name===m&&(m=e,e=e.parent),Tu(e)&&e.locals&&!Go(e)&&(f=l(e.locals,t,n))){let t=!0;if(y_(e)&&m&&m!==e.body?(n&f.flags&788968&&327!==m.kind&&(t=!!(262144&f.flags)&&(m===e.type||169===m.kind||348===m.kind||349===m.kind||168===m.kind)),n&f.flags&3&&(Yo(f,e,m)?t=!1:1&f.flags&&(t=169===m.kind||m===e.type&&!!kc(f.valueDeclaration,_D)))):194===e.kind&&(t=m===e.trueType),t)break e;f=void 0}switch(b=b||ia(e,m),e.kind){case 312:if(!Yf(e))break;T=!0;case 267:const i=(null==(_=ds(e))?void 0:_.exports)||k;if(312===e.kind||nP(e)&&33554432&e.flags&&!mf(e)){if(f=i.get("default")){const e=sx(f);if(e&&f.flags&n&&e.escapedName===t)break e;f=void 0}const e=i.get(t);if(e&&2097152===e.flags&&(rp(e,281)||rp(e,280)))break}if("default"!==t&&(f=l(i,t,2623475&n))){if(!$P(e)||!e.commonJsModuleIndicator||(null==(u=f.declarations)?void 0:u.some(bh)))break e;f=void 0}break;case 266:if(f=l((null==(d=ds(e))?void 0:d.exports)||k,t,8&n)){!r||!YS(C)||33554432&e.flags||Cp(e)===Cp(f.valueDeclaration)||To(x,Ea.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Nc(t),we,`${Nc(fs(e).escapedName)}.${Nc(t)}`);break e}break;case 172:if(!mb(e)){const r=ks(e.parent);r&&r.locals&&l(r.locals,t,111551&n)&&(Sn.assertNode(e,pD),h=e)}break;case 263:case 231:case 264:if(f=l(ds(e).members||k,t,788968&n)){if(!ca(f,e)){f=void 0;break}if(m&&mb(m))return void(r&&To(x,Ea.Static_members_cannot_reference_class_type_parameters));break e}if(yF(e)&&32&n){const n=e.name;if(n&&t===n.escapedText){f=e.symbol;break e}}break;case 233:if(m===e.expression&&96===e.parent.token){const i=e.parent.parent;if(w_(i)&&(f=l(ds(i).members,t,788968&n)))return void(r&&To(x,Ea.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 167:if(S=e.parent.parent,(w_(S)||264===S.kind)&&(f=l(ds(S).members,t,788968&n)))return void(r&&To(x,Ea.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 219:if(HS(C)>=2)break;case 174:case 176:case 177:case 178:case 262:if(3&n&&"arguments"===t){f=Te;break e}break;case 218:if(3&n&&"arguments"===t){f=Te;break e}if(16&n){const n=e.name;if(n&&t===n.escapedText){f=e.symbol;break e}}break;case 170:e.parent&&169===e.parent.kind&&(e=e.parent),e.parent&&(C_(e.parent)||263===e.parent.kind)&&(e=e.parent);break;case 353:case 345:case 347:const o=Mh(e);o&&(e=o.parent);break;case 169:m&&(m===e.initializer||m===e.name&&R_(m))&&(y||(y=e));break;case 208:m&&(m===e.initializer||m===e.name&&R_(m))&&$y(e)&&!y&&(y=e);break;case 195:if(262144&n){const n=e.typeParameter.name;if(n&&t===n.escapedText){f=e.typeParameter.symbol;break e}}break;case 281:m&&m===e.propertyName&&e.parent.parent.moduleSpecifier&&(e=e.parent.parent.parent)}oa(e)&&(g=e),m=e,e=PE(e)?Ih(e)||e.parent:(wE(e)||NE(e))&&Oh(e)||e.parent}if(!o||!f||g&&f===g.symbol||(f.isReferenced|=n),!f){if(m&&(Sn.assertNode(m,$P),m.commonJsModuleIndicator&&"exports"===t&&n&m.symbol.flags))return m.symbol;a||(f=l(pe,t,n))}if(!f&&p&&Tg(p)&&p.parent&&Fg(p.parent,!1))return Ce;function w(){return!(!h||z)&&(To(x,x&&h.type&&Xs(h.type,x.pos)?Ea.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:Ea.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,If(h.name),aa(i)),!0)}if(f){if(!r||!w())return r&&c((()=>{if(x&&(2&n||(32&n||384&n)&&111551==(111551&n))){const e=xs(f);(2&e.flags||32&e.flags||384&e.flags)&&function(e,t){var n;if(Sn.assert(!!(2&e.flags||32&e.flags||384&e.flags)),67108881&e.flags&&32&e.flags)return;const r=null==(n=e.declarations)?void 0:n.find((e=>sf(e)||w_(e)||266===e.kind));if(void 0===r)return Sn.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||Qo(r,t))){let n;const i=If(Mc(r));2&e.flags?n=To(t,Ea.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=To(t,Ea.Class_0_used_before_its_declaration,i):256&e.flags&&(n=To(t,Ea.Enum_0_used_before_its_declaration,i)),n&&pT(n,Bf(r,Ea._0_is_declared_here,i))}}(e,x)}if(f&&T&&111551==(111551&n)&&!(16777216&p.flags)){const e=us(f);v(e.declarations)&&N(e.declarations,(e=>oP(e)||$P(e)&&!!e.symbol.globalExports))&&wo(!C.allowUmdGlobalAccess,x,Ea._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Nc(t))}if(f&&y&&!b&&111551==(111551&n)){const e=us(Du(f)),t=Ky(y);e===ds(y)?To(x,Ea.Parameter_0_cannot_reference_itself,If(y.name)):e.valueDeclaration&&e.valueDeclaration.pos>y.pos&&t.parent.locals&&l(t.parent.locals,e.escapedName,n)===e&&To(x,Ea.Parameter_0_cannot_reference_identifier_1_declared_after_it,If(y.name),If(x))}if(f&&x&&111551&n&&2097152&f.flags&&!(111551&f.flags)&&!TT(x)){const e=za(f,111551);if(e){const n=281===e.kind||278===e.kind||280===e.kind?Ea._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:Ea._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=Nc(t);ra(To(x,n,r),e,r)}}})),f}else r&&c((()=>{if(!(x&&(331===x.parent.kind||function(e,t,n){if(!HN(e)||e.escapedText!==t||tB(e)||Kv(e))return!1;const r=$m(e,!1,!1);let i=r;for(;i;){if(w_(i.parent)){const o=ds(i.parent);if(!o)break;if(bp(n_(o),t))return To(e,Ea.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,aa(n),tc(o)),!0;if(i===r&&!mb(i)){if(bp(Z_(o).thisType,t))return To(e,Ea.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,aa(n)),!0}}i=i.parent}return!1}(x,t,i)||w()||la(x)||function(e,t,n){const r=1920|(Tg(e)?111551:0);if(n===r){const n=ja(ta(e,t,788968&~r,void 0,void 0,!1)),i=e.parent;if(n){if(sD(i)){Sn.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(bp(Z_(n),r))return To(i,Ea.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,Nc(t),Nc(r)),!0}return To(e,Ea._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Nc(t)),!0}}return!1}(x,t,n)||function(e,t){if(da(t)&&281===e.parent.kind)return To(e,Ea.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0;return!1}(x,t)||function(e,t,n){if(111127&n){if(ja(ta(e,t,1024,void 0,void 0,!1)))return To(e,Ea.Cannot_use_namespace_0_as_a_value,Nc(t)),!0}else if(788544&n){if(ja(ta(e,t,1536,void 0,void 0,!1)))return To(e,Ea.Cannot_use_namespace_0_as_a_type,Nc(t)),!0}return!1}(x,t,n)||function(e,t,n){if(111551&n){if(da(t)){const n=e.parent.parent;if(n&&n.parent&&JP(n)){const r=n.token,i=n.parent.kind;264===i&&96===r?To(e,Ea.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Nc(t)):263===i&&96===r?To(e,Ea.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Nc(t)):263===i&&119===r&&To(e,Ea.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Nc(t))}else To(e,Ea._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Nc(t));return!0}const n=ja(ta(e,t,788544,void 0,void 0,!1)),r=n&&Ra(n);if(n&&void 0!==r&&!(111551&r)){const r=Nc(t);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?!function(e,t){const n=kc(e.parent,(e=>!cD(e)&&!dD(e)&&(DD(e)||"quit")));if(n&&1===n.members.length){const e=Z_(t);return!!(1048576&e.flags)&&pL(e,384,!0)}return!1}(e,n)?To(e,Ea._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r):To(e,Ea._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,r,"K"===r?"P":"K"):To(e,Ea._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),!0}}return!1}(x,t,n)||function(e,t,n){if(788584&n){const n=ja(ta(e,t,111127,void 0,void 0,!1));if(n&&!(1920&n.flags))return To(e,Ea._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Nc(t)),!0}return!1}(x,t,n)))){let e,o;if(i&&(o=function(e){const t=aa(e),n=ad().get(t);return n&&Ee(n.keys())}(i),o&&To(x,r,aa(i),o)),!o&&s&&Ji<zi){e=OA(p,t,n);if((null==e?void 0:e.valueDeclaration)&&lf(e.valueDeclaration)&&mf(e.valueDeclaration)&&(e=void 0),e){const t=tc(e),r=SA(p,e,!1),o=1920===n||i&&"string"!=typeof i&&Xy(i)?Ea.Cannot_find_namespace_0_Did_you_mean_1:r?Ea.Could_not_find_name_0_Did_you_mean_1:Ea.Cannot_find_name_0_Did_you_mean_1,a=ko(x,o,aa(i),t);Co(!r,a),e.valueDeclaration&&pT(a,Bf(e.valueDeclaration,Ea._0_is_declared_here,t))}}e||o||!i||To(x,r,aa(i)),Ji++}}))}function ra(e,t,n){return t?pT(e,Bf(t,281===t.kind||278===t.kind||280===t.kind?Ea._0_was_exported_here:Ea._0_was_imported_here,n)):e}function ia(e,t){return 219!==e.kind&&218!==e.kind?ND(e)||(b_(e)||172===e.kind&&!mb(e))&&(!t||t!==e.name):(!t||t!==e.name)&&(!(!e.asteriskToken&&!fb(e,1024))||!Ym(e))}function oa(e){switch(e.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function aa(e){return dt(e)?Nc(e):If(e)}function ca(e,t){if(e.declarations)for(const n of e.declarations)if(168===n.kind){if((PE(n.parent)?jh(n.parent):n.parent)===t)return!(PE(n.parent)&&D(n.parent.parent.tags,bh))}return!1}function la(e){const t=ua(e);return!(!t||!Ha(t,64,!0))&&(To(e,Ea.Cannot_extend_an_interface_0_Did_you_mean_implements,Yp(t)),!0)}function ua(e){switch(e.kind){case 80:case 211:return e.parent?ua(e.parent):void 0;case 233:if(Kb(e.expression))return e.expression;default:return}}function da(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function pa(e,t,n){return!!t&&!!kc(e,(e=>e===t||!!(e===n||y_(e)&&(!Ym(e)||3&Ny(e)))&&"quit"))}function fa(e){switch(e.kind){case 271:return e;case 273:return e.parent;case 274:return e.parent.parent;case 276:return e.parent.parent.parent;default:return}}function ma(e){return e.declarations&&F(e.declarations,ga)}function ga(e){return 271===e.kind||270===e.kind||273===e.kind&&!!e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&sy(e)||pF(e)&&2===Gg(e)&&sy(e)||sS(e)&&pF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&ha(e.parent.right)||304===e.kind||303===e.kind&&ha(e.initializer)||260===e.kind&&Eg(e)||208===e.kind&&Eg(e.parent.parent)}function ha(e){return ay(e)||oF(e)&&JI(e)}function ya(e,t){const n=Pa(e);if(n){const e=uS(n.expression).arguments[0];return HN(n.name)?ja(bp(Zp(e),n.name.escapedText)):void 0}if(GF(e)||283===e.moduleReference.kind){const t=Ka(e,bg(e)||vg(e)),n=Ya(t);return Ba(e,t,n,!1),n}const r=Va(e.moduleReference,t);return function(e,t){if(Ba(e,void 0,t,!1)&&!e.isTypeOnly){const t=za(ds(e)),n=281===t.kind||278===t.kind,r=n?Ea.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:Ea.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?Ea._0_was_exported_here:Ea._0_was_imported_here,o=278===t.kind?"*":Nc(t.name.escapedText);pT(To(e.moduleReference,r),Bf(t,i,o))}}(e,r),r}function va(e,t,n,r){const i=e.exports.get("export="),o=i?bp(n_(i),t,!0):e.exports.get(t),a=ja(o,r);return Ba(n,o,a,!1),a}function ba(e){return yP(e)&&!e.isExportEquals||fb(e,2048)||xP(e)||mP(e)}function Sa(e){return Qu(e)?NV(Cp(e),e):void 0}function ka(e,t){return 99===e&&1===t}function Ta(e){return 99===Sa(e)&&$t(e.text,".json")}function Ca(e,t,n,r){const i=e&&Sa(r);if(e&&void 0!==i){const t=ka(i,e.impliedNodeFormat);if(99===i||t)return t}if(!W)return!1;if(!e||e.isDeclarationFile){const e=va(t,"default",void 0,!0);return(!e||!re(e.declarations,ba))&&!va(t,wc("__esModule"),void 0,n)}return Sg(e)?"object"!=typeof e.externalModuleIndicator&&!va(t,wc("__esModule"),void 0,n):ns(t)}function wa(e,t,n){var r;let i;i=pf(e)?e:va(e,"default",t,n);const o=null==(r=e.declarations)?void 0:r.find($P),a=Na(t);if(!a)return i;const s=Ta(a),c=Ca(o,e,n,a);if(i||c||s){if(c||s){const r=Ya(e,n)||ja(e,n);return Ba(t,e,r,!1),r}}else if(ns(e)&&!W){const n=A>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=e.exports.get("export=").valueDeclaration,i=To(t.name,Ea.Module_0_can_only_be_default_imported_using_the_1_flag,tc(e),n);r&&pT(i,Bf(r,Ea.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,n))}else cP(t)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))To(t.name,Ea.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,tc(e),tc(t.symbol));else{const n=To(t.name,Ea.Module_0_has_no_default_export,tc(e)),o=null==(r=e.exports)?void 0:r.get("__export");if(o){const e=null==(i=o.declarations)?void 0:i.find((e=>{var t,n;return!!(vP(e)&&e.moduleSpecifier&&(null==(n=null==(t=Ka(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))}));e&&pT(n,Bf(e,Ea.export_Asterisk_does_not_re_export_a_default))}}}(e,t):Fa(e,e,t,e_(t)&&t.propertyName||t.name);return Ba(t,i,void 0,!1),i}function Na(e){switch(e.kind){case 273:return e.parent.moduleSpecifier;case 271:return CP(e.moduleReference)?e.moduleReference.expression:void 0;case 274:case 281:return e.parent.parent.moduleSpecifier;case 276:return e.parent.parent.parent.moduleSpecifier;default:return Sn.assertNever(e)}}function Da(e,t,n=!1){var r;const i=bg(e)||e.moduleSpecifier,o=Ka(e,i),a=!YD(t)&&t.propertyName||t.name;if(!HN(a))return;const s=Za(o,i,!1,"default"===a.escapedText&&W);if(s&&a.escapedText){if(pf(o))return o;let c;c=o&&o.exports&&o.exports.get("export=")?bp(n_(s),a.escapedText,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return ja(bp(Sx(n),t))}}(s,a.escapedText),c=ja(c,n);let l=function(e,t,n,r){var i;if(1536&e.flags){const o=as(e).get(t.escapedText),a=ja(o,r);return Ba(n,o,a,!1,null==(i=Uo(e).typeOnlyExportStarMap)?void 0:i.get(t.escapedText),t.escapedText),a}}(s,a,t,n);if(void 0===l&&"default"===a.escapedText){const e=null==(r=o.declarations)?void 0:r.find($P);(Ta(i)||Ca(e,o,n,i))&&(l=Ya(o,n)||ja(o,n))}const _=l&&c&&l!==c?function(e,t){if(e===yt&&t===yt)return yt;if(790504&e.flags)return e;const n=Ao(e.flags|t.flags,e.escapedName);return Sn.assert(e.declarations||t.declarations),n.declarations=ce(oe(e.declarations,t.declarations),Ft),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}(c,l):l||c;return _||Fa(o,s,e,a),_}}function Fa(e,t,n,r){var i;const o=Wa(e,n),a=If(r),s=LA(r,t);if(void 0!==s){const e=tc(s),t=To(r,Ea._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&pT(t,Bf(s.valueDeclaration,Ea._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?To(r,Ea.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,o,a):function(e,t,n,r,i){var o,a;const s=null==(a=null==(o=ft(r.valueDeclaration,Tu))?void 0:o.locals)?void 0:a.get(t.escapedText),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)bs(r,s)?function(e,t,n,r){if(A>=5){To(t,rk(C)?Ea._0_can_only_be_imported_by_using_a_default_import:Ea._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else if(Tg(e)){To(t,rk(C)?Ea._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:Ea._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else{To(t,rk(C)?Ea._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:Ea._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)}}(e,t,n,i):To(t,Ea.Module_0_has_no_exported_member_1,i,n);else{const e=c?D(qp(c),(e=>!!bs(e,s))):void 0,r=e?To(t,Ea.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,tc(e)):To(t,Ea.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&pT(r,...J(s.declarations,((e,t)=>Bf(e,0===t?Ea._0_is_declared_here:Ea.and_here,n))))}}else To(t,Ea.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function Pa(e){if(GF(e)&&e.initializer&&YD(e.initializer))return e.initializer}function Aa(e,t,n){if("default"===Dc(e.propertyName||e.name)){const t=Na(e),r=t&&Ka(e,t);if(r)return wa(r,e,!!n)}const r=e.parent.parent.moduleSpecifier?Da(e.parent.parent,e,n):Ha(e.propertyName||e.name,t,!1,n);return Ba(e,void 0,r,!1),r}function Ia(e,t){if(yF(e))return DL(e).symbol;if(!m_(e)&&!Kb(e))return;const n=Ha(e,901119,!0,t);return n||(DL(e),Wo(e).resolvedSymbol)}function Oa(e,t=!1){switch(e.kind){case 271:case 260:return ya(e,t);case 273:return function(e,t){const n=Ka(e,e.parent.moduleSpecifier);if(n)return wa(n,e,t)}(e,t);case 274:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=Ka(e,n),i=Za(r,n,t,!1);return Ba(e,r,i,!1),i}(e,t);case 280:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&Ka(e,n),i=n&&Za(r,n,t,!1);return Ba(e,r,i,!1),i}(e,t);case 276:case 208:return function(e,t){if(hP(e)&&"default"===Dc(e.propertyName||e.name)){const n=Na(e),r=n&&Ka(e,n);if(r)return wa(r,e,t)}const n=GD(e)?Ky(e):e.parent.parent.parent,r=Pa(n),i=Da(n,r||e,t),o=e.propertyName||e.name;return r&&i&&HN(o)?ja(bp(n_(i),o.escapedText),t):(Ba(e,void 0,i,!1),i)}(e,t);case 281:return Aa(e,901119,t);case 277:case 226:return function(e,t){const n=Ia(yP(e)?e.expression:e.right,t);return Ba(e,void 0,n,!1),n}(e,t);case 270:return function(e,t){if(ku(e.parent)){const n=Ya(e.parent.symbol,t);return Ba(e,void 0,n,!1),n}}(e,t);case 304:return Ha(e.name,901119,!0,t);case 303:return Ia(e.initializer,t);case 212:case 211:return function(e,t){if(pF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return Ia(e.parent.right,t)}(e,t);default:return Sn.fail()}}function La(e,t=901119){return!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function ja(e,t){return!t&&La(e)?Ma(e):e}function Ma(e){Sn.assert(0!=(2097152&e.flags),"Should only get Alias here.");const t=Uo(e);if(t.aliasTarget)t.aliasTarget===vt&&(t.aliasTarget=yt);else{t.aliasTarget=vt;const n=ma(e);if(!n)return Sn.fail();const r=Oa(n);t.aliasTarget===vt?t.aliasTarget=r||yt:To(n,Ea.Circular_definition_of_import_alias_0,tc(e))}return t.aliasTarget}function Ra(e,t,n){const r=t&&za(e),i=r&&vP(r),o=r&&(i?Ka(r.moduleSpecifier,r.moduleSpecifier,!0):Ma(r.symbol)),a=i&&o?ss(o):void 0;let s,c=n?0:e.flags;for(;2097152&e.flags;){const t=xs(Ma(e));if(!i&&t===o||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===yt)return 67108863;if(t===e||(null==s?void 0:s.has(t)))break;2097152&t.flags&&(s?s.add(t):s=new Set([e,t])),c|=t.flags,e=t}return c}function Ba(e,t,n,r,i,o){if(!e||YD(e))return!1;const a=ds(e);if(r_(e)){return Uo(a).typeOnlyDeclaration=e,!0}if(i){const e=Uo(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=Uo(a);return Ja(s,t,r)||Ja(s,n,r)}function Ja(e,t,n){var r;if(t&&(void 0===e.typeOnlyDeclaration||n&&!1===e.typeOnlyDeclaration)){const n=(null==(r=t.exports)?void 0:r.get("export="))??t,i=n.declarations&&D(n.declarations,r_);e.typeOnlyDeclaration=i??Uo(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function za(e,t){if(!(2097152&e.flags))return;const n=Uo(e);if(void 0===t)return n.typeOnlyDeclaration||void 0;if(n.typeOnlyDeclaration){return Ra(278===n.typeOnlyDeclaration.kind?ja(ss(n.typeOnlyDeclaration.symbol.parent).get(n.typeOnlyExportStarName||e.escapedName)):Ma(n.typeOnlyDeclaration.symbol))&t?n.typeOnlyDeclaration:void 0}}function qa(e){if(!Oe)return;const t=ds(e),n=Ma(t);if(n){(n===yt||111551&Ra(t,!0)&&!$B(n))&&Ua(t)}}function Ua(e){Sn.assert(Oe);const t=Uo(e);if(!t.referenced){t.referenced=!0;const n=ma(e);if(!n)return Sn.fail();xg(n)&&111551&Ra(ja(e))&&DL(n.moduleReference)}}function Va(e,t){return 80===e.kind&&ex(e)&&(e=e.parent),80===e.kind||166===e.parent.kind?Ha(e,1920,!1,t):(Sn.assert(271===e.parent.kind),Ha(e,901119,!1,t))}function Wa(e,t){return e.parent?Wa(e.parent,t)+"."+tc(e):tc(e,t,void 0,36)}function Ha(e,t,n,r,i){if(Ip(e))return;const o=1920|(Tg(e)?111551&t:0);let a;if(80===e.kind){const r=t===o||Xy(e)?Ea.Cannot_find_namespace_0:Fw(Gb(e)),s=Tg(e)&&!Xy(e)?function(e,t){if(sg(e.parent)){const n=function(e){if(kc(e,(e=>Bu(e)||16777216&e.flags?bh(e):"quit")))return;const t=jh(e);if(t&&IF(t)&&sh(t.expression)){const e=ds(t.expression.left);if(e)return $a(e)}if(t&&oF(t)&&sh(t.parent)&&IF(t.parent.parent)){const e=ds(t.parent.left);if(e)return $a(e)}if(t&&(Am(t)||qP(t))&&pF(t.parent.parent)&&6===Gg(t.parent.parent)){const e=ds(t.parent.parent.left);if(e)return $a(e)}const n=Lh(e);if(n&&y_(n)){const e=ds(n);return e&&e.valueDeclaration}}(e.parent);if(n)return ta(n,e.escapedText,t,void 0,e,!0)}}(e,t):void 0;if(a=us(ta(i||e,e.escapedText,t,n||s?void 0:r,e,!0,!1)),!a)return us(s)}else if(166===e.kind||211===e.kind){const r=166===e.kind?e.left:e.expression,s=166===e.kind?e.right:e.name;let c=Ha(r,o,n,!1,i);if(!c||Ip(s))return;if(c===yt)return c;if(c.valueDeclaration&&Tg(c.valueDeclaration)&&100!==GS(C)&&GF(c.valueDeclaration)&&c.valueDeclaration.initializer&&YI(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=Ka(e,e);if(t){const e=Ya(t);e&&(c=e)}}if(a=us(Xo(as(c),s.escapedText,t)),!a&&2097152&c.flags&&(a=us(Xo(as(Ma(c)),s.escapedText,t))),!a){if(!n){const n=Wa(c),r=If(s),i=LA(s,c);if(i)return void To(s,Ea._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,tc(i));const o=sD(e)&&function(e){for(;sD(e.parent);)e=e.parent;return e}(e),a=Xn&&788968&t&&o&&!cF(o.parent)&&function(e){let t=Gb(e),n=ta(t,t.escapedText,111551,void 0,t,!0);if(n){for(;sD(t.parent);){if(n=bp(n_(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void To(o,Ea._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Rf(o));if(1920&t&&sD(e.parent)){const t=us(Xo(as(c),s.escapedText,788968));if(t)return void To(e.parent.right,Ea.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,tc(t),Nc(e.parent.right.escapedText))}To(s,Ea.Namespace_0_has_no_exported_member_1,n,r)}return}}else Sn.assertNever(e,"Unknown entity name kind.");return Sn.assert(0==(1&Jx(a)),"Should never get an instantiated symbol here."),!Xy(e)&&m_(e)&&(2097152&a.flags||277===e.parent.kind)&&Ba(oy(e),a,void 0,!0),a.flags&t||r?a:Ma(a)}function $a(e){const t=e.parent.valueDeclaration;if(!t)return;return(Mg(t)?Jg(t):$u(t)?Bg(t):void 0)||t}function Ka(e,t,n){const r=1===GS(C)?Ea.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Ea.Cannot_find_module_0_or_its_corresponding_type_declarations;return Ga(e,t,n?void 0:r)}function Ga(e,t,n,r=!1){return Qu(t)?Xa(e,t.text,n,t,r):void 0}function Xa(t,n,r,i,o=!1){var a,s,c,l,_,u,d,p,f,m;if(an(n,"@types/")){To(i,Ea.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,sn(n,"@types/"),n)}const g=Up(n,!0);if(g)return g;const h=Cp(t),y=Qu(t)?t:(null==(a=kc(t,sm))?void 0:a.arguments[0])||(null==(s=kc(t,sP))?void 0:s.moduleSpecifier)||(null==(c=kc(t,yg))?void 0:c.moduleReference.expression)||(null==(l=kc(t,vP))?void 0:l.moduleSpecifier)||(null==(_=nP(t)?t:t.parent&&nP(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:_.name)||(null==(u=lm(t)?t:void 0)?void 0:u.argument.literal),v=y&&Qu(y)?NV(h,y):h.impliedNodeFormat,b=GS(C),x=null==(d=e.getResolvedModule(h,n,v))?void 0:d.resolvedModule,S=x&&YV(C,x,h),k=x&&(!S||S===Ea.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(x.resolvedFileName);if(k){if(S&&To(i,S,n,x.resolvedFileName),x.resolvedUsingTsExtension&&oO(n)){const e=(null==(p=kc(t,sP))?void 0:p.importClause)||kc(t,un(aP,vP));(e&&!e.isTypeOnly||kc(t,sm))&&To(i,Ea.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=eT(n,e);if(KS(A)||99===v){const r=oO(n)&&gR(C);return t+(".mts"===e||".d.mts"===e?r?".mts":".mjs":".cts"===e||".d.mts"===e?r?".cts":".cjs":r?".ts":".js")}return t}(Sn.checkDefined(cx(n))))}else if(x.resolvedUsingTsExtension&&!gR(C,h.fileName)){const e=(null==(f=kc(t,sP))?void 0:f.importClause)||kc(t,un(aP,vP));if(!(null==e?void 0:e.isTypeOnly)&&!kc(t,VD)){const e=Sn.checkDefined(cx(n));To(i,Ea.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}if(k.symbol){if(x.isExternalLibraryImport&&!aT(x.extension)&&Qa(!1,i,h,v,x,n),3===b||99===b){const e=1===h.impliedNodeFormat&&!kc(t,sm)||!!kc(t,aP),r=kc(t,(e=>VD(e)||vP(e)||sP(e)));if(e&&99===k.impliedNodeFormat&&!hC(r))if(kc(t,aP))To(i,Ea.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;const t=lT(h.fileName);if(".ts"===t||".js"===t||".tsx"===t||".jsx"===t){const n=h.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0;e=n&&!n.contents.packageJsonContent.type?r?LS(void 0,Ea.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,r,sa(n.packageDirectory,"package.json")):LS(void 0,Ea.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,sa(n.packageDirectory,"package.json")):r?LS(void 0,Ea.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):LS(void 0,Ea.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}oo.add(qf(Cp(i),i,LS(e,Ea.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,n)))}}return us(k.symbol)}r&&To(i,Ea.File_0_is_not_a_module,k.fileName)}else{if(Kn){const e=on(Kn,(e=>e.pattern),n);if(e){const t=Gn&&Gn.get(n);return us(t?t:e.symbol)}}if((!x||aT(x.extension)||void 0!==S)&&S!==Ea.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(x){const t=e.getProjectReferenceRedirect(x.resolvedFileName);if(t)return void To(i,Ea.Output_file_0_has_not_been_built_from_source_file_1,t,x.resolvedFileName)}if(S)To(i,S,n,x.resolvedFileName);else{const t=Vo(n)&&!Ho(n),o=3===b||99===b;if(!lk(C)&&$o(n,".json")&&1!==b&&QS(C))To(i,Ea.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===v&&o&&t){const t=_a(n,Zo(h.path)),r=null==(m=go.find((([n,r])=>e.fileExists(t+n))))?void 0:m[1];r?To(i,Ea.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):To(i,Ea.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 To(i,r,n)}}return}if(o){To(i,Ea.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,x.resolvedFileName)}else Qa(Q&&!!r,i,h,v,x,n)}}function Qa(t,n,r,i,{packageId:o,resolvedFileName:a},s){let c;!Vs(s)&&o&&(c=vp(r,e,s,i,o.name)),wo(t,n,LS(c,Ea.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function Ya(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===yt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=Uo(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:Mo(e);r.flags=512|r.flags,void 0===r.exports&&(r.exports=op());t.exports.forEach(((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?Ro(r.exports.get(t),e):e)})),r===e&&(Uo(r).resolvedExports=void 0,Uo(r).resolvedMembers=void 0);return Uo(r).cjsExportMerged=r,n.cjsExportMerged=r}(us(ja(e.exports.get("export="),t)),us(e));return us(n)||e}}function Za(e,t,n,r){var i;const o=Ya(e,n);if(!n&&o){if(!(r||1539&o.flags||rp(o,312))){const e=A>=5?"allowSyntheticDefaultImports":"esModuleInterop";return To(t,Ea.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),o}const n=t.parent;if(sP(n)&&mh(n)||sm(n)){const t=sm(n)?n.arguments[0]:n.moduleSpecifier,r=n_(o),a=XI(r,o,e,t);if(a)return es(o,a,n);const s=null==(i=null==e?void 0:e.declarations)?void 0:i.find($P),c=s&&ka(Sa(t),s.impliedNodeFormat);if(rk(C)||c){let i=xp(r,0);if(i&&i.length||(i=xp(r,1)),i&&i.length||bp(r,"default",!0)||c){return es(o,3670016&r.flags?QI(r,o,e,t):$I(o,o.parent),n)}}}}return o}function es(e,t,n){const i=Ao(e.flags,e.escapedName);i.declarations=e.declarations?e.declarations.slice():[],i.parent=e.parent,i.links.target=e,i.links.originatingImport=n,e.valueDeclaration&&(i.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),e.members&&(i.members=new Map(e.members)),e.exports&&(i.exports=new Map(e.exports));const o=Ad(t);return i.links.type=Ls(i,o.members,r,r,o.indexInfos),i}function ns(e){return void 0!==e.exports.get("export=")}function rs(e){return qp(ss(e))}function is(e,t){const n=ss(t);if(n)return n.get(e)}function os(e){return!(402784252&e.flags||1&Zx(e)||Kk(e)||LT(e))}function as(e){return 6256&e.flags?Cu(e,"resolvedExports"):1536&e.flags?ss(e):e.exports||k}function ss(e){const t=Uo(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=ls(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function cs(e,t,n,r){t&&t.forEach(((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&ja(o)!==ja(t)){const e=n.get(i);e.exportsWithDuplicate?e.exportsWithDuplicate.push(r):e.exportsWithDuplicate=[r]}}else e.set(i,t),n&&r&&n.set(i,{specifierText:Yp(r.moduleSpecifier)})}))}function ls(e){const t=[];let n;const r=new Set,i=function e(i,o,a){!a&&(null==i?void 0:i.exports)&&i.exports.forEach(((e,t)=>r.add(t)));if(!(i&&i.exports&&xe(t,i)))return;const s=new Map(i.exports),c=i.exports.get("__export");if(c){const t=op(),n=new Map;if(c.declarations)for(const r of c.declarations){const i=Ka(r,r.moduleSpecifier);cs(t,e(i,r,a||r.isTypeOnly),n,r)}n.forEach((({exportsWithDuplicate:e},t)=>{if("export="!==t&&e&&e.length&&!s.has(t))for(const r of e)oo.add(Bf(r,Ea.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,Nc(t)))})),cs(s,t)}(null==o?void 0:o.isTypeOnly)&&(n??(n=new Map),s.forEach(((e,t)=>n.set(t,o))));return s}(e=Ya(e))||k;return n&&r.forEach((e=>n.delete(e))),{exports:i,typeOnlyExportStarMap:n}}function us(e){let t;return e&&e.mergeId&&(t=qi[e.mergeId])?t:e}function ds(e){return us(e.symbol&&Du(e.symbol))}function fs(e){return ku(e)?ds(e):void 0}function ms(e){return us(e.parent&&Du(e.parent))}function gs(t,n,i){const o=ms(t);if(o&&!(262144&t.flags)){const a=G(o.declarations,(function(e){return o&&hs(e,o)})),s=n&&function(t,n){const i=Cp(n),o=PB(i),a=Uo(t);let s;if(a.extendedContainersByFile&&(s=a.extendedContainersByFile.get(o)))return s;if(i&&i.imports){for(const e of i.imports){if(Xy(e))continue;const r=Ka(n,e,!0);r&&(vs(r,t)&&(s=he(s,r)))}if(v(s))return(a.extendedContainersByFile||(a.extendedContainersByFile=new Map)).set(o,s),s}if(a.extendedContainers)return a.extendedContainers;const c=e.getSourceFiles();for(const e of c){if(!tO(e))continue;const n=ds(e);vs(n,t)&&(s=he(s,n))}return a.extendedContainers=s||r}(t,n),c=function(e,t){const n=!!v(e.declarations)&&Pe(e.declarations);if(111551&t&&n&&n.parent&&GF(n.parent)&&(QD(n)&&n===n.parent.initializer||DD(n)&&n===n.parent.type))return ds(n.parent)}(o,i);if(n&&o.flags&Ms(i)&&Rs(o,n,1920,!1))return he(oe(oe([o],a),s),c);const l=!(o.flags&Ms(i))&&788968&o.flags&&524288&Z_(o).flags&&111551===i?js(n,(e=>dp(e,(e=>{if(e.flags&Ms(i)&&n_(e)===Z_(o))return e})))):void 0;let _=l?[l,...a,o]:[...a,o];return _=he(_,c),_=be(_,s),_}const a=G(t.declarations,(e=>{if(!lf(e)&&e.parent){if(Ys(e.parent))return ds(e.parent);if(rP(e.parent)&&e.parent.parent&&Ya(ds(e.parent.parent))===t)return ds(e.parent.parent)}if(yF(e)&&pF(e.parent)&&64===e.parent.operatorToken.kind&&sS(e.parent.left)&&Kb(e.parent.left.expression))return Kg(e.parent.left)||Hg(e.parent.left.expression)?ds(Cp(e)):(DL(e.parent.left.expression),Wo(e.parent.left.expression).resolvedSymbol)}));if(v(a))return G(a,(e=>vs(e,t)?e:void 0))}function hs(e,t){const n=Ks(e),r=n&&n.exports&&n.exports.get("export=");return r&&bs(r,t)?n:void 0}function vs(e,t){if(e===ms(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&bs(n,t))return e;const r=as(e),i=r.get(t.escapedName);return i&&bs(i,t)?i:dp(r,(e=>{if(bs(e,t))return e}))}function bs(e,t){if(us(ja(us(e)))===us(ja(us(t))))return e}function xs(e){return us(e&&0!=(1048576&e.flags)&&e.exportSymbol||e)}function Ss(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&Ra(e,!t))}function ks(e){const t=e.members;for(const e of t)if(176===e.kind&&Op(e.body))return e}function Ts(e){var t;const n=new u(Be,e);return p++,n.id=p,null==(t=Fr)||t.recordType(n),n}function Cs(e,t){const n=Ts(e);return n.symbol=t,n}function ws(e){return new u(Be,e)}function Ns(e,t,n=0,r){!function(e,t){const n=`${e},${t??""}`;St.has(n)&&Sn.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:""}; you may need to pass a name to createIntrinsicType.`);St.add(n)}(t,r);const i=Ts(e);return i.intrinsicName=t,i.debugIntrinsicName=r,i.objectFlags=52953088|n,i}function Ds(e,t){const n=Cs(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 Fs(e){return Cs(262144,e)}function Ps(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Es(e){let t;return e.forEach(((e,n)=>{As(e,n)&&(t||(t=[])).push(e)})),t||r}function As(e,t){return!Ps(t)&&Ss(e)}function Is(e,t,n,i,o){const a=e;return a.members=t,a.properties=r,a.callSignatures=n,a.constructSignatures=i,a.indexInfos=o,t!==k&&(a.properties=Es(t)),a}function Ls(e,t,n,r,i){return Is(Ds(16,e),t,n,r,i)}function js(e,t){let n;for(let r=e;r;r=r.parent){if(Tu(r)&&r.locals&&!Go(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 312:if(!Yf(r))break;case 267:const e=ds(r);if(n=t((null==e?void 0:e.exports)||k,void 0,!0,r))return n;break;case 263:case 231:case 264:let i;if((ds(r).members||k).forEach(((e,t)=>{788968&e.flags&&(i||(i=op())).set(t,e)})),i&&(n=t(i,void 0,!1,r)))return n}}return t(pe,void 0,!0)}function Ms(e){return 111551===e?111551:1920}function Rs(e,t,n,r,i=new Map){if(!e||function(e){if(e.declarations&&e.declarations.length){for(const t of e.declarations)switch(t.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}(e))return;const o=Uo(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=js(t,((e,t,n,r)=>r)),c=`${r?0:1}|${s&&PB(s)}|${n}`;if(a.has(c))return a.get(c);const l=EB(e);let _=i.get(l);_||i.set(l,_=[]);const u=js(t,d);return a.set(c,u),u;function d(n,i,o){if(!xe(_,n))return;const a=function(n,i,o){if(f(n.get(e.escapedName),void 0,i))return[e];const a=dp(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(tS(n)&&t&&tO(Cp(t)))&&(!r||re(n.declarations,yg))&&(!o||!re(n.declarations,hg))&&(i||!rp(n,281))){const e=m(n,Ma(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&f(us(n.exportSymbol),void 0,i))return[e]}));return a||(n===pe?m(me,me,i):void 0)}(n,i,o);return _.pop(),a}function p(e,n){return!Bs(e,t,n)||!!Rs(e.parent,t,Ms(n),r,i)}function f(t,r,i){return(e===(r||t)||us(e)===us(r||t))&&!re(t.declarations,Ys)&&(i||p(us(t),n))}function m(e,t,r){if(f(e,t,r))return[e];const i=as(t),o=i&&d(i,!0);return o&&p(e,Ms(n))?[e].concat(o):void 0}}function Bs(e,t,n){let r=!1;return js(t,(t=>{let i=us(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!rp(i,281);i=o?Ma(i):i;return!!((o?Ra(i):i.flags)&n)&&(r=!0,!0)})),r}function Js(e,t){return 0===Hs(e,t,788968,!1,!0).accessibility}function zs(e,t){return 0===Hs(e,t,111551,!1,!0).accessibility}function qs(e,t,n){return 0===Hs(e,t,n,!1,!1).accessibility}function Us(e,t,n,r,i,o){if(!v(e))return;let a,s=!1;for(const c of e){const e=Rs(c,t,r,!1);if(e){a=c;const t=Zs(e[0],i);if(t)return t}if(o&&re(c.declarations,Ys)){if(i){s=!0;continue}return{accessibility:0}}const l=Us(gs(c,t,r),t,n,n===c?Ms(r):r,i,o);if(l)return l}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:tc(n,t,r),errorModuleName:a!==n?tc(a,t,1920):void 0}:void 0}function Ws(e,t,n,r){return Hs(e,t,n,r,!0)}function Hs(e,t,n,r,i){if(e&&t){const o=Us([e],t,e,n,r,i);if(o)return o;const a=b(e.declarations,Ks);if(a){if(a!==Ks(t))return{accessibility:2,errorSymbolName:tc(e,t,n),errorModuleName:tc(a),errorNode:Tg(t)?t:void 0}}return{accessibility:1,errorSymbolName:tc(e,t,n)}}return{accessibility:0}}function Ks(e){const t=kc(e,Qs);return t&&ds(t)}function Qs(e){return lf(e)||312===e.kind&&Yf(e)}function Ys(e){return _f(e)||312===e.kind&&Yf(e)}function Zs(e,t){let n;if(N(M(e.declarations,(e=>80!==e.kind)),(function(t){var n,i;if(!yc(t)){const o=fa(t);if(o&&!fb(o,32)&&yc(o.parent))return r(t,o);if(GF(t)&&EF(t.parent.parent)&&!fb(t.parent.parent,32)&&yc(t.parent.parent.parent))return r(t,t.parent.parent);if(Nf(t)&&!fb(t,32)&&yc(t.parent))return r(t,t);if(GD(t)){if(2097152&e.flags&&Tg(t)&&(null==(n=t.parent)?void 0:n.parent)&&GF(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&EF(t.parent.parent.parent.parent)&&!fb(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&yc(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=kc(t,EF);return!!fb(e,32)||!!yc(e.parent)&&r(t,e)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(Wo(e).isVisible=!0,n=Se(n,r)),!0}}function ec(e,t){let n;n=186===e.parent.kind||233===e.parent.kind&&!hm(e.parent)||167===e.parent.kind?1160127:166===e.kind||211===e.kind||271===e.parent.kind?1920:788968;const r=Gb(e),i=ta(t,r.escapedText,n,void 0,void 0,!1);return i&&262144&i.flags&&788968&n||!i&&$v(r)&&0===Ws(ds($m(r,!1,!1)),r,n,!1).accessibility?{accessibility:0}:i&&Zs(i,!0)||{accessibility:1,errorSymbolName:Yp(r),errorNode:r}}function tc(e,t,n,r=4,i){let o=70221824;2&r&&(o|=128),1&r&&(o|=512),8&r&&(o|=16384),32&r&&(o|=134217728),16&r&&(o|=1073741824);const a=4&r?de.symbolToNode:de.symbolToEntityName;return i?s(i).getText():mp(s);function s(r){const i=a(e,n,t,o),s=312===(null==t?void 0:t.kind)?nU():tU(),c=t&&Cp(t);return s.writeNode(4,i,c,r),r}}function nc(e,t,n=0,r,i){return i?o(i).getText():mp(o);function o(i){let o;o=262144&n?1===r?185:184:1===r?180:179;const a=de.signatureToSignatureDeclaration(e,o,t,70222336|sc(n)),s=rU(),c=t&&Cp(t);return s.writeNode(4,a,c,vv(i)),i}}function rc(e,t,n=1064960,r=yv("")){const i=C.noErrorTruncation||1&n,o=de.typeToTypeNode(e,t,70221824|sc(n)|(i?1:0));if(void 0===o)return Sn.fail("should always get typenode");const a=e!==Dt?tU():eU(),s=t&&Cp(t);a.writeNode(4,o,s,r);const c=r.getText(),l=i?2*id:2*rd;return l&&c&&c.length>=l?c.substr(0,l-3)+"...":c}function ic(e,t){let n=ac(e.symbol)?rc(e,e.symbol.valueDeclaration):rc(e),r=ac(t.symbol)?rc(t,t.symbol.valueDeclaration):rc(t);return n===r&&(n=oc(e),r=oc(t)),[n,r]}function oc(e){return rc(e,void 0,64)}function ac(e){return e&&!!e.valueDeclaration&&au(e.valueDeclaration)&&!lS(e.valueDeclaration)}function sc(e=0){return 848330091&e}function cc(e){return!!(e.symbol&&32&e.symbol.flags&&(e===q_(e.symbol)||524288&e.flags&&16777216&Zx(e)))}function lc(e,t,n=16384,r){return r?i(r).getText():mp(i);function i(r){const i=AC.createTypePredicateNode(2===e.kind||3===e.kind?AC.createToken(131):void 0,1===e.kind||3===e.kind?AC.createIdentifier(e.parameterName):AC.createThisTypeNode(),e.type&&de.typeToTypeNode(e.type,t,70222336|sc(n))),o=tU(),a=t&&Cp(t);return o.writeNode(4,i,a,r),r}}function _c(e){return 2===e?"private":4===e?"protected":"public"}function uc(e){return e&&e.parent&&268===e.parent.kind&&gf(e.parent.parent)}function pc(e){return 312===e.kind||lf(e)}function fc(e,t){const n=Uo(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return Os(e,HS(C))||HT(e)?HT(e)&&an(e,"-")?`[${e}]`:e:`"${_v(e,34)}"`}if(8192&n.flags)return`[${gc(n.symbol,t)}]`}}function gc(e,t){var n;if((null==(n=null==t?void 0:t.remappedSymbolReferences)?void 0:n.has(EB(e)))&&(e=t.remappedSymbolReferences.get(EB(e))),t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&kc(e.declarations[0],pc)!==kc(t.enclosingDeclaration,pc)))return"default";if(e.declarations&&e.declarations.length){let n=S(e.declarations,(e=>Mc(e)?e:void 0));const r=n&&Mc(n);if(n&&r){if(eF(n)&&Xg(n))return Pc(e);if(cD(r)&&!(4096&Jx(e))){const n=Uo(e).nameType;if(n&&384&n.flags){const n=fc(e,t);if(void 0!==n)return n}}return If(r)}if(n||(n=e.declarations[0]),n.parent&&260===n.parent.kind)return If(n.parent.name);switch(n.kind){case 231:case 218:case 219:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),231===n.kind?"(Anonymous class)":"(Anonymous function)"}}const r=fc(e,t);return void 0!==r?r:Pc(e)}function yc(e){if(e){const t=Wo(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 345:case 353:case 347:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&$P(e.parent.parent.parent));case 208:return yc(e.parent.parent);case 260:if(R_(e.name)&&!e.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(gf(e))return!0;const t=Oc(e);return 32&nz(e)||271!==e.kind&&312!==t.kind&&33554432&t.flags?yc(t):Go(t);case 172:case 171:case 177:case 178:case 174:case 173:if(pb(e,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return yc(e.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;default:return!1}}()),t.isVisible}return!1}function bc(e,t){let n,r,i;return e.parent&&277===e.parent.kind?n=ta(e,e.escapedText,2998271,void 0,e,!1):281===e.parent.kind&&(n=Aa(e.parent,2998271)),n&&(i=new Set,i.add(EB(n)),function e(n){b(n,(n=>{const o=fa(n)||n;if(t?Wo(n).isVisible=!0:(r=r||[],xe(r,o)),xg(n)){const t=ta(n,Gb(n.moduleReference).escapedText,901119,void 0,void 0,!1);t&&i&&Z(i,EB(t))&&e(t.declarations)}}))}(n.declarations)),r}function xc(e,t){const n=Tc(e,t);if(n>=0){const{length:e}=Li;for(let t=n;t<e;t++)ji[t]=!1;return!1}return Li.push(e),ji.push(!0),Mi.push(t),!0}function Tc(e,t){for(let n=Li.length-1;n>=Ri;n--){if(Ec(Li[n],Mi[n]))return-1;if(Li[n]===e&&Mi[n]===t)return n}return-1}function Ec(e,t){switch(t){case 0:return!!Uo(e).type;case 5:return!!Wo(e).resolvedEnumType;case 2:return!!Uo(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!e.resolvedTypeArguments;case 7:return!!e.baseTypesResolved;case 8:return!!Uo(e).writeType;case 9:return void 0!==Wo(e).parameterInitializerContainsUndefined}return Sn.assertNever(t)}function Ac(){return Li.pop(),Mi.pop(),ji.pop()}function Oc(e){return kc(Ky(e),(e=>{switch(e.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}})).parent}function jc(e,t){const n=bp(e,t);return n?n_(n):void 0}function Rc(e,t){var n;let r;return jc(e,t)||(r=null==(n=Jp(e,t))?void 0:n.type)&&rl(r,!0,!0)}function zc(e){return e&&0!=(1&e.flags)}function Uc(e){return e===Nt||!!(1&e.flags&&e.aliasSymbol)}function Vc(e,t){if(0!==t)return il(e,!1,t);const n=ds(e);return n&&Uo(n).type||il(e,!1,t)}function Wc(e,t,n){if(131072&(e=SN(e,(e=>!(98304&e.flags)))).flags)return Pn;if(1048576&e.flags)return CN(e,(e=>Wc(e,t,n)));let i=Uy(J(t,pv));const o=[],a=[];for(const t of jd(e)){const e=gv(t,8576);bS(e,i)||6&zx(t)||!ax(t)?a.push(e):o.push(t)}if(Bv(e)||Jv(i)){if(a.length&&(i=Uy([i,...a])),131072&i.flags)return e;const t=(Br||(Br=jg("Omit",2,!0)||yt),Br===yt?void 0:Br);return t?Pm(t,[e,i]):Nt}const s=op();for(const e of o)s.set(e.escapedName,lx(e,!1));const c=Ls(n,s,r,r,Lp(e));return c.objectFlags|=4194304,c}function Hc(e){return!!(465829888&e.flags)&&uL(Wd(e)||At,32768)}function Kc(e){return eN(bN(e,Hc)?CN(e,(e=>465829888&e.flags?Hd(e):e)):e,524288)}function Gc(e,t){const n=Qc(e);return n?QN(n,t):t}function Qc(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 208:case 303:return Qc(t);case 209:return Qc(e.parent);case 260:return t.initializer;case 226:return t.right}}(e);if(t&&wh(t)&&t.flowNode){const n=Yc(e);if(n){const r=cI(hI.createStringLiteral(n),e),i=eu(t)?t:hI.createParenthesizedExpression(t),o=cI(hI.createElementAccessExpression(i,r),e);return AT(r,o),AT(o,e),i!==t&&AT(i,o),o.flowNode=t.flowNode,o}}}function Yc(e){const t=e.parent;return 208===e.kind&&206===t.kind?Zc(e.propertyName||e.name):303===e.kind||304===e.kind?Zc(e.name):""+t.elements.indexOf(e)}function Zc(e){const t=pv(e);return 384&t.flags?""+t.value:void 0}function el(e,t,n){if(zc(t))return t;const r=e.parent;let i;if(H&&33554432&e.flags&&$y(e)?t=yC(t):H&&r.parent.initializer&&!Yw(uN(r.parent.initializer),65536)&&(t=eN(t,524288)),206===r.kind)if(e.dotDotDotToken){if(2&(t=lp(t)).flags||!_E(t))return To(e,Ea.Rest_types_may_only_be_created_from_object_types),Nt;const n=[];for(const e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);i=Wc(t,n,e.symbol)}else{const n=e.propertyName||e.name;i=Gc(e,ib(t,pv(n),32,n))}else{const o=kM(65|(e.dotDotDotToken?0:128),t,Lt,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=CN(t,(e=>58982400&e.flags?Hd(e):e));i=xN(e,LT)?CN(e,(e=>vy(e,a))):Bh(o)}else if(Zk(t)){i=Gc(e,ab(t,mx(a),32|(n||jP(e)?16:0),e.name)||Nt)}else i=o}return e.initializer?Yv(mc(e))?H&&!Yw(PL(e,0),16777216)?Kc(i):i:EL(e,Uy([Kc(i),PL(e,0)],2)):i}function tl(e){const t=fl(e);if(t)return Sx(t)}function nl(e){const t=Qh(e,!0);return 209===t.kind&&0===t.elements.length}function rl(e,t=!1,n=!0){return H&&n?dC(e,t):e}function il(e,t,n){if(GF(e)&&249===e.parent.parent.kind){const t=kv(tA($L(e.parent.parent.expression,n)));return 4456448&t.flags?Tv(t):qt}if(GF(e)&&250===e.parent.parent.kind){return SM(e.parent.parent)||kt}if(R_(e.parent))return function(e){const t=e.dotDotDotToken?32:0,n=Vc(e.parent.parent,t);return n&&el(e,n,!1)}(e);const r=pD(e)&&!bb(e)||dD(e)||IE(e),i=t&&rC(e),o=Bl(e);if(cf(e))return o?zc(o)||o===At?o:Nt:te?At:kt;if(o)return rl(o,r,i);if((Q||Tg(e))&&GF(e)&&!R_(e.name)&&!(32&nz(e))&&!(33554432&e.flags)){if(!(6&rz(e))&&(!e.initializer||function(e){const t=Qh(e,!0);return 106===t.kind||80===t.kind&&Pw(t)===fe}(e.initializer)))return Tt;if(e.initializer&&nl(e.initializer))return cr}if(_D(e)){const t=e.parent;if(178===t.kind&&bu(t)){const n=rp(ds(e.parent),177);if(n){const r=Kp(n),i=jJ(t);return i&&e===i?(Sn.assert(!i.type),n_(r.thisParameter)):of(r)}}const n=function(e,t){const n=Gp(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?xO(n,r):vO(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?gF(t):xF(e);if(r)return rl(r,!1,i)}if($u(e)&&e.initializer){if(Tg(e)&&!_D(e)){const t=gl(e,ds(e),Bg(e));if(t)return t}return rl(EL(e,PL(e,n)),r,i)}if(pD(e)&&(Q||Tg(e))){if(gb(e)){const t=M(e.parent.members,gD),n=t.length?function(e,t){const n=an(e.escapedName,"__#")?AC.createPrivateIdentifier(e.escapedName.split("@")[1]):Nc(e.escapedName);for(const r of t){const t=AC.createPropertyAccessExpression(AC.createThis(),n);AT(t.expression,t),AT(t,r),t.flowNode=r.returnFlowNode;const i=dl(t,e);if(!Q||i!==Tt&&i!==cr||To(e.valueDeclaration,Ea.Member_0_implicitly_has_an_1_type,tc(e),rc(i)),!xN(i,eA))return lM(i)}}(e.symbol,t):128&wb(e)?Rk(e.symbol):void 0;return n&&rl(n,!0,i)}{const t=ks(e.parent),n=t?ul(e.symbol,t):128&wb(e)?Rk(e.symbol):void 0;return n&&rl(n,!0,i)}}return IP(e)?Gt:R_(e.name)?Nl(e.name,!1,!0):void 0}function ol(e){if(e.valueDeclaration&&pF(e.valueDeclaration)){const t=Uo(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!_l(e)&&N(e.declarations,(t=>pF(t)&&LF(t)&&(212!==t.left.kind||Fy(t.left.argumentExpression))&&!yl(void 0,t,e,t)))),t.isConstructorDeclaredProperty}return!1}function sl(e){const t=e.valueDeclaration;return t&&pD(t)&&!Yv(t)&&!t.initializer&&(Q||Tg(t))}function _l(e){if(e.declarations)for(const t of e.declarations){const e=$m(t,!1,!1);if(e&&(176===e.kind||JI(e)))return e}}function ul(e,t){const n=an(e.escapedName,"__#")?AC.createPrivateIdentifier(e.escapedName.split("@")[1]):Nc(e.escapedName),r=AC.createPropertyAccessExpression(AC.createThis(),n);AT(r.expression,r),AT(r,t),r.flowNode=t.returnFlowNode;const i=dl(r,e);return!Q||i!==Tt&&i!==cr||To(e.valueDeclaration,Ea.Member_0_implicitly_has_an_1_type,tc(e),rc(i)),xN(i,eA)?void 0:lM(i)}function dl(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!sl(t)||128&wb(t.valueDeclaration))&&Rk(t)||Lt;return QN(e,Tt,n)}function ml(e,t){const n=Jg(e.valueDeclaration);if(n){const t=Tg(n)?pl(n):void 0;if(t&&t.typeExpression)return Sx(t.typeExpression);return e.valueDeclaration&&gl(e.valueDeclaration,e,n)||DT(DL(n))}let r,i=!1,o=!1;if(ol(e)&&(r=ul(e,_l(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=pF(r)||eF(r)?r:sS(r)?pF(r.parent)?r.parent:r:void 0;if(!s)continue;const c=sS(s)?oh(s):Gg(s);(4===c||pF(s)&&LF(s,c))&&(xl(s)?i=!0:o=!0),eF(s)||(a=yl(a,s,e,r)),a||(n||(n=[])).push(pF(s)||eF(s)?vl(e,t,s,c):rn)}r=a}if(!r){if(!v(n))return Nt;let t=i&&e.declarations?function(e,t){return Sn.assert(e.length===t.length),e.filter(((e,n)=>{const r=t[n],i=pF(r)?r:pF(r.parent)?r.parent:void 0;return i&&xl(i)}))}(n,e.declarations):void 0;if(o){const n=Rk(e);n&&((t||(t=[])).push(n),i=!0)}r=Uy(re(t,(e=>!!(-98305&e.flags)))?t:n)}}const a=LC(rl(r,!1,o&&!i));return e.valueDeclaration&&Tg(e.valueDeclaration)&&SN(a,(e=>!!(-98305&e.flags)))===rn?(RC(e.valueDeclaration,kt),kt):a}function gl(e,t,n){var i,o;if(!Tg(e)||!n||!QD(n)||n.properties.length)return;const a=op();for(;pF(e)||YD(e);){const t=fs(e);(null==(i=null==t?void 0:t.exports)?void 0:i.size)&&zo(a,t.exports),e=pF(e)?e.parent:e.parent.parent}const s=fs(e);(null==(o=null==s?void 0:s.exports)?void 0:o.size)&&zo(a,s.exports);const c=Ls(t,a,r,r,r);return c.objectFlags|=4096,c}function yl(e,t,n,r){var i;const o=Yv(t.parent);if(o){const t=LC(Sx(o));if(!e)return t;Uc(e)||Uc(t)||fS(e,t)||dM(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=Yv(n.parent.valueDeclaration);if(e){const t=bp(Sx(e),n.escapedName);if(t)return i_(t)}}return e}function vl(e,t,n,r){if(eF(n)){if(t)return n_(t);const e=DL(n.arguments[2]),r=jc(e,"value");if(r)return r;const i=jc(e,"get");if(i){const e=tI(i);if(e)return of(e)}const o=jc(e,"set");if(o){const e=tI(o);if(e)return NO(e)}return kt}if(function(e,t){return YD(e)&&110===e.expression.kind&&GI(t,(t=>Iw(e,t)))}(n.left,n.right))return kt;const i=1===r&&(YD(n.left)||ZD(n.left))&&(Kg(n.left.expression)||HN(n.left.expression)&&Hg(n.left.expression)),o=t?n_(t):i?dx(DL(n.right)):DT(DL(n.right));if(524288&o.flags&&2===r&&"export="===e.escapedName){const n=Ad(o),r=op();fp(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=op()),(t||e).exports.forEach(((e,t)=>{var n;const i=r.get(t);if(!i||i===e||2097152&e.flags)r.set(t,e);else if(111551&e.flags&&111551&i.flags){if(e.valueDeclaration&&i.valueDeclaration&&Cp(e.valueDeclaration)!==Cp(i.valueDeclaration)){const t=Nc(e.escapedName),r=(null==(n=ft(i.valueDeclaration,Lc))?void 0:n.name)||i.valueDeclaration;pT(To(e.valueDeclaration,Ea.Duplicate_identifier_0,t),Bf(r,Ea._0_was_also_declared_here,t)),pT(To(r,Ea.Duplicate_identifier_0,t),Bf(e.valueDeclaration,Ea._0_was_also_declared_here,t))}const o=Ao(e.flags|i.flags,t);o.links.type=Uy([n_(e),n_(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=oe(i.declarations,e.declarations),r.set(t,o)}else r.set(t,Ro(e,i))}));const a=Ls(i!==r.size?void 0:n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);if(i===r.size&&(o.aliasSymbol&&(a.aliasSymbol=o.aliasSymbol,a.aliasTypeArguments=o.aliasTypeArguments),4&Zx(o))){a.aliasSymbol=o.symbol;const e=mm(o);a.aliasTypeArguments=v(e)?e:void 0}return a.objectFlags|=4096&Zx(o),a.symbol&&32&a.symbol.flags&&o===q_(a.symbol)&&(a.objectFlags|=16777216),a}return iT(o)?(RC(n,sr),sr):o}function xl(e){const t=$m(e,!1,!1);return 176===t.kind||262===t.kind||218===t.kind&&!sh(t.parent)}function Cl(e,t,n){if(e.initializer){return rl(EL(e,PL(e,0,R_(e.name)?Nl(e.name,!0,!1):At)))}return R_(e.name)?Nl(e.name,t,n):(n&&!Rl(e)&&RC(e,kt),t?Pt:kt)}function Nl(e,t=!1,n=!1){return 206===e.kind?function(e,t,n){const i=op();let o,a=131200;b(e.elements,(e=>{const r=e.propertyName||e.name;if(e.dotDotDotToken)return void(o=jf(qt,kt,!1));const s=pv(r);if(!fC(s))return void(a|=512);const c=mC(s),l=Ao(4|(e.initializer?16777216:0),c);l.links.type=Cl(e,t,n),l.links.bindingElement=e,i.set(l.escapedName,l)}));const s=Ls(void 0,i,r,r,o?[o]:r);return s.objectFlags|=a,t&&(s.pattern=e,s.objectFlags|=131072),s}(e,t,n):function(e,t,n){const r=e.elements,i=Ae(r),o=i&&208===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return w>=2?Eh(kt):sr;const a=J(r,(e=>vF(e)?kt:Cl(e,t,n))),s=E(r,(e=>!(e===o||vF(e)||jP(e))),r.length-1)+1;let c=py(a,J(r,((e,t)=>e===o?4:t>=s?2:1)));return t&&(c=pm(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n)}function Dl(e,t){return Ml(il(e,!0,0),e,t)}function jl(e){const t=fs(e),n=(r=!1,dr||(dr=Og("SymbolConstructor",r)));var r;return n&&t&&t===n}function Ml(e,t,n){return e?(4096&e.flags&&jl(t.parent)&&(e=yx(t)),n&&BC(t,e),8192&e.flags&&(GD(t)||!t.type)&&e.symbol!==ds(t)&&(e=en),LC(e)):(e=_D(t)&&t.dotDotDotToken?sr:kt,n&&(Rl(t)||RC(t,e)),e)}function Rl(e){const t=Ky(e);return mj(169===t.kind?t.parent:t)}function Bl(e){const t=Yv(e);if(t)return Sx(t)}function Jl(e){const t=Uo(e);if(!t.type){const n=function(e){if(4194304&e.flags)return function(e){const t=Z_(ms(e));return t.typeParameters?dm(t,J(t.typeParameters,(e=>kt))):t}(e);if(e===Ce)return kt;if(134217728&e.flags&&e.valueDeclaration){const t=ds(Cp(e.valueDeclaration)),n=Ao(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));const i=op();return i.set("exports",n),Ls(e,i,r,r,r)}Sn.assertIsDefined(e.valueDeclaration);const t=e.valueDeclaration;if($P(t)&&Zf(t))return t.statements.length?LC(DT($L(t.statements[0].expression))):Pn;if(N_(t))return Vl(e);if(!xc(e,0))return 512&e.flags&&!(67108864&e.flags)?$l(e):Yl(e);let n;if(277===t.kind)n=Ml(Bl(t)||DL(t.expression),t);else if(pF(t)||Tg(t)&&(eF(t)||(YD(t)||eh(t))&&pF(t.parent)))n=ml(e);else if(YD(t)||ZD(t)||HN(t)||Qu(t)||NN(t)||YF(t)||QF(t)||mD(t)&&!Am(t)||fD(t)||$P(t)){if(9136&e.flags)return $l(e);n=pF(t.parent)?ml(e):Bl(t)||kt}else if(qP(t))n=Bl(t)||LL(t);else if(IP(t))n=Bl(t)||hE(t);else if(UP(t))n=Bl(t)||OL(t.name,0);else if(Am(t))n=Bl(t)||jL(t,0);else if(_D(t)||pD(t)||dD(t)||GF(t)||GD(t)||ql(t))n=Dl(t,!0);else if(tP(t))n=$l(e);else{if(!WP(t))return Sn.fail("Unhandled declaration kind! "+Sn.formatSyntaxKind(t.kind)+" for "+Sn.formatSymbol(e));n=Kl(e)}if(!Ac())return 512&e.flags&&!(67108864&e.flags)?$l(e):Yl(e);return n}(e);return t.type||function(e){let t=e.valueDeclaration;return!!t&&(GD(t)&&(t=mc(t)),!!_D(t)&&dS(t.parent))}(e)||(t.type=n),n}return t.type}function zl(e){if(e)switch(e.kind){case 177:return eb(e);case 178:return nb(e);case 172:Sn.assert(bb(e));return Yv(e)}}function Ul(e){const t=zl(e);return t&&Sx(t)}function Vl(e){const t=Uo(e);if(!t.type){if(!xc(e,0))return Nt;const n=rp(e,177),r=rp(e,178),i=ft(rp(e,172),D_);let o=n&&Tg(n)&&tl(n)||Ul(n)||Ul(r)||Ul(i)||n&&n.body&&$O(n)||i&&i.initializer&&Dl(i,!0);o||(r&&!mj(r)?wo(Q,r,Ea.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,tc(e)):n&&!mj(n)?wo(Q,n,Ea.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,tc(e)):i&&!mj(i)&&wo(Q,i,Ea.Member_0_implicitly_has_an_1_type,tc(e),"any"),o=kt),Ac()||(zl(n)?To(n,Ea._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,tc(e)):zl(r)||zl(i)?To(r,Ea._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,tc(e)):n&&Q&&To(n,Ea._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,tc(e)),o=kt),t.type=o}return t.type}function Wl(e){const t=Uo(e);if(!t.writeType){if(!xc(e,8))return Nt;const n=rp(e,178)??ft(rp(e,172),D_);let r=Ul(n);Ac()||(zl(n)&&To(n,Ea._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,tc(e)),r=kt),t.writeType=r||Vl(e)}return t.writeType}function Hl(e){const t=I_(q_(e));return 8650752&t.flags?t:2097152&t.flags?D(t.types,(e=>!!(8650752&e.flags))):void 0}function $l(e){let t=Uo(e);const n=t;if(!t.type){const r=e.valueDeclaration&&qI(e.valueDeclaration,!1);if(r){const n=zI(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&pf(e))return kt;if(t&&(226===t.kind||sS(t)&&226===t.parent.kind))return ml(e);if(512&e.flags&&t&&$P(t)&&t.commonJsModuleIndicator){const t=Ya(e);if(t!==e){if(!xc(e,0))return Nt;const n=us(e.exports.get("export=")),r=ml(n,n===t?void 0:t);return Ac()?r:Yl(e)}}const n=Ds(16,e);if(32&e.flags){const t=Hl(e);return t?rv([n,t]):n}return H&&16777216&e.flags?dC(n,!0):n}(e)}return t.type}function Kl(e){const t=Uo(e);return t.type||(t.type=$_(e))}function Ql(e){const t=Uo(e);if(!t.type){if(!xc(e,0))return Nt;const n=Ma(e),r=e.declarations&&Oa(ma(e),!0),i=S(null==r?void 0:r.declarations,(e=>yP(e)?Bl(e):void 0));if(t.type=(null==r?void 0:r.declarations)&&zR(r.declarations)&&e.declarations.length?function(e){const t=Cp(e.declarations[0]),n=Nc(e.escapedName),r=e.declarations.every((e=>Tg(e)&&sS(e)&&Kg(e.expression))),i=r?AC.createPropertyAccessExpression(AC.createPropertyAccessExpression(AC.createIdentifier("module"),AC.createIdentifier("exports")),n):AC.createPropertyAccessExpression(AC.createIdentifier("exports"),n);return r&&AT(i.expression.expression,i.expression),AT(i.expression,i),AT(i,t),i.flowNode=t.endFlowNode,QN(i,Tt,Lt)}(r):zR(e.declarations)?Tt:i||(111551&Ra(n)?n_(n):Nt),!Ac())return Yl(r??e),t.type=Nt}return t.type}function Yl(e){const t=e.valueDeclaration;if(t){if(Yv(t))return To(e.valueDeclaration,Ea._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,tc(e)),Nt;Q&&(169!==t.kind||t.initializer)&&To(e.valueDeclaration,Ea._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,tc(e))}else if(2097152&e.flags){const t=ma(e);t&&To(t,Ea.Circular_definition_of_import_alias_0,tc(e))}return kt}function Zl(e){const t=Uo(e);return t.type||(Sn.assertIsDefined(t.deferralParent),Sn.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?Uy(t.deferralConstituents):rv(t.deferralConstituents)),t.type}function t_(e){const t=Jx(e);return 4&e.flags?2&t?65536&t?function(e){const t=Uo(e);return!t.writeType&&t.deferralWriteConstituents&&(Sn.assertIsDefined(t.deferralParent),Sn.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?Uy(t.deferralWriteConstituents):rv(t.deferralWriteConstituents)),t.writeType}(e)||Zl(e):e.links.writeType||e.links.type:kC(n_(e),!!(16777216&e.flags)):98304&e.flags?1&t?function(e){const t=Uo(e);return t.writeType||(t.writeType=nS(t_(t.target),t.mapper))}(e):Wl(e):n_(e)}function n_(e){const t=Jx(e);return 65536&t?Zl(e):1&t?function(e){const t=Uo(e);return t.type||(t.type=nS(n_(t.target),t.mapper))}(e):262144&t?function(e){if(!e.links.type){const t=e.links.mappedType;if(!xc(e,0))return t.containsError=!0,Nt;const n=nS(Sd(t.target||t),Mx(t.mapper,vd(t),e.links.keyType));let r=H&&16777216&e.flags&&!uL(n,49152)?dC(n,!0):524288&e.links.checkFlags?CC(n):n;Ac()||(To(o,Ea.Type_of_property_0_circularly_references_itself_in_mapped_type_1,tc(e),rc(t)),r=Nt),e.links.type=r}return e.links.type}(e):8192&t?function(e){const t=Uo(e);t.type||(t.type=tw(e.links.propertyType,e.links.mappedType,e.links.constraintType));return t.type}(e):7&e.flags?Jl(e):9136&e.flags?$l(e):8&e.flags?Kl(e):98304&e.flags?Vl(e):2097152&e.flags?Ql(e):Nt}function i_(e){return kC(n_(e),!!(16777216&e.flags))}function o_(e,t){return void 0!==e&&void 0!==t&&0!=(4&Zx(e))&&e.target===t}function s_(e){return 4&Zx(e)?e.target:e}function c_(e,t){return function e(n){if(7&Zx(n)){const r=s_(n);return r===t||re(M_(r),e)}if(2097152&n.flags)return re(n.types,e);return!1}(e)}function u_(e,t){for(const n of t)e=Se(e,G_(ds(n)));return e}function d_(e,t){for(;;){if((e=e.parent)&&pF(e)){const t=Gg(e);if(6===t||3===t){const t=ds(e.left);t&&t.parent&&!kc(t.parent.valueDeclaration,(t=>e===t))&&(e=t.parent.valueDeclaration)}}if(!e)return;switch(e.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const n=d_(e,t);if(200===e.kind)return he(n,G_(ds(e.typeParameter)));if(194===e.kind)return oe(n,Pb(e));const r=u_(n,kl(e)),i=t&&(263===e.kind||231===e.kind||264===e.kind||JI(e))&&q_(ds(e)).thisType;return i?he(r,i):r}case 348:const n=Ah(e);n&&(e=n.valueDeclaration);break;case 327:{const n=d_(e,t);return e.tags?u_(n,V(e.tags,(e=>PE(e)?e.typeParameters:void 0))):n}}}}function p_(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find((e=>{if(264===e.kind)return!0;if(260!==e.kind)return!1;const t=e.initializer;return!!t&&(218===t.kind||219===t.kind)}));return Sn.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),d_(n)}function h_(e){if(!e.declarations)return;let t;for(const n of e.declarations)if(264===n.kind||263===n.kind||231===n.kind||JI(n)||xh(n)){t=u_(t,kl(n))}return t}function S_(e){const t=Sp(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&RB(e)){const t=pO(e.parameters[0]);return zc(t)||Yk(t)===kt}}return!1}function k_(e){if(Sp(e,1).length>0)return!0;if(8650752&e.flags){const t=Wd(e);return!!t&&S_(t)}return!1}function P_(e){const t=Yx(e.symbol);return t&&_y(t)}function E_(e,t,n){const r=v(t),i=Tg(n);return M(Sp(e,1),(e=>(i||r>=Hp(e.typeParameters))&&r<=v(e.typeParameters)))}function A_(e,t,n){const r=E_(e,t,n),i=J(t,Sx);return q(r,(e=>re(e.typeParameters)?hf(e,i,Tg(n)):e))}function I_(e){if(!e.resolvedBaseConstructorType){const t=Yx(e.symbol),n=t&&_y(t),r=P_(e);if(!r)return e.resolvedBaseConstructorType=Lt;if(!xc(e,1))return Nt;const i=$L(r.expression);if(n&&r!==n&&(Sn.assert(!n.typeArguments),$L(n.expression)),2621440&i.flags&&Ad(i),!Ac())return To(e.symbol.valueDeclaration,Ea._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,tc(e.symbol)),e.resolvedBaseConstructorType=Nt;if(!(1&i.flags||i===zt||k_(i))){const t=To(r.expression,Ea.Type_0_is_not_a_constructor_function_type,rc(i));if(262144&i.flags){const e=rm(i);let n=At;if(e){const t=Sp(e,1);t[0]&&(n=of(t[0]))}i.symbol.declarations&&pT(t,Bf(i.symbol.declarations[0],Ea.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,tc(i.symbol),rc(n)))}return e.resolvedBaseConstructorType=Nt}e.resolvedBaseConstructorType=i}return e.resolvedBaseConstructorType}function O_(e,t){To(e,Ea.Type_0_recursively_references_itself_as_a_base_type,rc(t,void 0,2))}function M_(e){if(!e.baseTypesResolved){if(xc(e,7)&&(8&e.objectFlags?e.resolvedBaseTypes=[J_(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=td;const t=ep(I_(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=r;const n=P_(e);let i;const o=t.symbol?Z_(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){const t=e.outerTypeParameters;if(t){const n=t.length-1,r=mm(e);return t[n].symbol!==r[n].symbol}return!0}(o))i=ym(n,t.symbol);else if(1&t.flags)i=t;else{const o=A_(t,n.typeArguments,n);if(!o.length)return To(n.expression,Ea.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=r;i=of(o[0])}if(Uc(i))return e.resolvedBaseTypes=r;const a=lp(i);if(!z_(a)){const t=LS(yp(void 0,i),Ea.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,rc(a));return oo.add(qf(Cp(n.expression),n.expression,t)),e.resolvedBaseTypes=r}if(e===a||c_(a,e))return To(e.symbol.valueDeclaration,Ea.Type_0_recursively_references_itself_as_a_base_type,rc(e,void 0,2)),e.resolvedBaseTypes=r;e.resolvedBaseTypes===td&&(e.members=void 0);e.resolvedBaseTypes=[a]}(e),64&e.symbol.flags&&function(e){if(e.resolvedBaseTypes=e.resolvedBaseTypes||r,e.symbol.declarations)for(const t of e.symbol.declarations)if(264===t.kind&&fy(t))for(const n of fy(t)){const i=lp(Sx(n));Uc(i)||(z_(i)?e===i||c_(i,e)?O_(t,e):e.resolvedBaseTypes===r?e.resolvedBaseTypes=[i]:e.resolvedBaseTypes.push(i):To(n,Ea.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}(e)):Sn.fail("type must be class or interface"),!Ac()&&e.symbol.declarations))for(const t of e.symbol.declarations)263!==t.kind&&264!==t.kind||O_(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function J_(e){return Bh(Uy(q(e.typeParameters,((t,n)=>8&e.elementFlags[n]?ib(t,Ut):t))||r),e.readonly)}function z_(e){if(262144&e.flags){const t=Wd(e);if(t)return z_(t)}return!!(67633153&e.flags&&!Fd(e)||2097152&e.flags&&N(e.types,z_))}function q_(e){let t=Uo(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=zI(e,e.valueDeclaration&&function(e){var t;const n=e&&qI(e,!0),r=null==(t=null==n?void 0:n.exports)?void 0:t.get("prototype"),i=(null==r?void 0:r.valueDeclaration)&&function(e){if(!e.parent)return!1;let t=e.parent;for(;t&&211===t.kind;)t=t.parent;if(t&&pF(t)&&Zb(t.left)&&64===t.operatorToken.kind){const e=ah(t);return QD(e)&&e}}(r.valueDeclaration);return i?ds(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=Ds(r,e),a=p_(e),s=h_(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(264===t.kind){if(256&t.flags)return!1;const e=fy(t);if(e)for(const t of e)if(Kb(t.expression)){const e=Ha(t.expression,788968,!0);if(!e||!(64&e.flags)||q_(e).thisType)return!1}}return!0}(e))&&(o.objectFlags|=4,o.typeParameters=oe(a,s),o.outerTypeParameters=a,o.localTypeParameters=s,o.instantiations=new Map,o.instantiations.set(om(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=Fs(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function U_(e){var t;const n=Uo(e);if(!n.declaredType){if(!xc(e,2))return Nt;const r=Sn.checkDefined(null==(t=e.declarations)?void 0:t.find(xh),"Type alias symbol with no valid declaration found"),i=bh(r)?r.typeExpression:r.type;let o=i?Sx(i):Nt;if(Ac()){const t=h_(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(om(t),o))}else o=Nt,347===r.kind?To(r.typeExpression.type,Ea.Type_alias_0_circularly_references_itself,tc(e)):To(Lc(r)&&r.name||r,Ea.Type_alias_0_circularly_references_itself,tc(e));n.declaredType=o}return n.declaredType}function V_(e){return 1056&e.flags&&8&e.symbol.flags?Z_(ms(e.symbol)):e}function W_(e){const t=Uo(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(266===t.kind)for(const r of t.members)if(bu(r)){const t=ds(r),i=nJ(r),o=ux(void 0!==i?hx(i,EB(e),t):H_(t));Uo(t).declaredType=o,n.push(dx(o))}const r=n.length?Uy(n,1,e,void 0):H_(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function H_(e){const t=Cs(32,e),n=Cs(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function $_(e){const t=Uo(e);if(!t.declaredType){const n=W_(ms(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function G_(e){const t=Uo(e);return t.declaredType||(t.declaredType=Fs(e))}function Z_(e){return tu(e)||Nt}function tu(e){return 96&e.flags?q_(e):524288&e.flags?U_(e):262144&e.flags?G_(e):384&e.flags?W_(e):8&e.flags?$_(e):2097152&e.flags?function(e){const t=Uo(e);return t.declaredType||(t.declaredType=Z_(Ma(e)))}(e):void 0}function nu(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 201:return!0;case 188:return nu(e.elementType);case 183:return!e.typeArguments||e.typeArguments.every(nu)}return!1}function ru(e){const t=Tl(e);return!t||nu(t)}function iu(e){const t=Yv(e);return t?nu(t):!Hu(e)}function ou(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 172:case 171:return iu(t);case 174:case 173:case 176:case 177:case 178:return function(e){const t=eb(e),n=kl(e);return(176===e.kind||!!t&&nu(t))&&e.parameters.every(iu)&&n.every(ru)}(t)}}return!1}function cu(e,t,n){const r=op();for(const i of e)r.set(i.escapedName,n&&ou(i)?i:qx(i,t));return r}function _u(e,t){for(const n of t){if(mu(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&pF(t.valueDeclaration)&&!ol(t)&&!Vm(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function mu(e){return!!e.valueDeclaration&&l_(e.valueDeclaration)&&mb(e.valueDeclaration)}function gu(e){if(!e.declaredProperties){const t=e.symbol,n=wu(t);e.declaredProperties=Es(n),e.declaredCallSignatures=r,e.declaredConstructSignatures=r,e.declaredIndexInfos=r,e.declaredCallSignatures=Qp(n.get("__call")),e.declaredConstructSignatures=Qp(n.get("__new")),e.declaredIndexInfos=zf(t)}return e}function hu(e){if(!cD(e)&&!ZD(e))return!1;const t=cD(e)?e.expression:e.argumentExpression;return Kb(t)&&fC(cD(e)?KP(e):DL(t))}function yu(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function vu(e){const t=Mc(e);return!!t&&hu(t)}function bu(e){return!Ey(e)||vu(e)}function xu(e,t,n,r){Sn.assert(!!r.symbol,"The member is expected to have a symbol.");const i=Wo(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=pF(r)?r.left:r.name,a=ZD(o)?DL(o.argumentExpression):KP(o);if(fC(a)){const s=mC(a),c=r.symbol.flags;let l=n.get(s);l||n.set(s,l=Ao(0,s,4096));const _=t&&t.get(s);if(!(32&e.flags)&&(l.flags&Lo(c)||_)){const e=_?oe(_.declarations,l.declarations):l.declarations,t=!(8192&a.flags)&&Nc(s)||If(o);b(e,(e=>To(Mc(e)||e,Ea.Property_0_was_also_declared_here,t))),To(o||r,Ea.Duplicate_property_0,t),l=Ao(0,s,4096)}return l.links.nameType=a,function(e,t,n){Sn.assert(!!(4096&Jx(e)),"Expected a late-bound symbol."),e.flags|=n,Uo(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&(e.valueDeclaration&&e.valueDeclaration.kind===t.kind||(e.valueDeclaration=t))}(l,r,c),l.parent?Sn.assert(l.parent===e,"Existing symbol parent should match new one"):l.parent=e,i.resolvedSymbol=l}}return i.resolvedSymbol}function Cu(e,t){var n,i,o;const a=Uo(e);if(!a[t]){const s="resolvedExports"===t,c=s?1536&e.flags?ls(e).exports:e.exports:e.members;a[t]=c||k;const l=op();for(const t of e.declarations||r){const n=Sm(t);if(n)for(const t of n)s===gb(t)&&vu(t)&&xu(e,c,l,t)}const _=(219===(null==(n=e.valueDeclaration)?void 0:n.kind)||218===(null==(i=e.valueDeclaration)?void 0:i.kind))&&(null==(o=fs(e.valueDeclaration.parent))?void 0:o.assignmentDeclarationMembers)||e.assignmentDeclarationMembers;if(_){const t=$e(_.values());for(const n of t){const t=Gg(n);s===!(3===t||pF(n)&&LF(n,t)||9===t||6===t)&&vu(n)&&xu(e,c,l,n)}}let u=function(e,t){if(!(null==e?void 0:e.size))return t;if(!(null==t?void 0:t.size))return e;const n=op();return zo(n,e),zo(n,t),n}(c,l);if(33554432&e.flags&&a.cjsExportMerged&&e.declarations)for(const n of e.declarations){const e=Uo(n.symbol)[t];u?e&&e.forEach(((e,t)=>{const n=u.get(t);if(n){if(n===e)return;u.set(t,Ro(n,e))}else u.set(t,e)})):u=e}a[t]=u||k}return a[t]}function wu(e){return 6256&e.flags?Cu(e,"resolvedMembers"):e.members||k}function Du(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=Uo(e);if(!t.lateSymbol&&re(e.declarations,vu)){const t=us(e.parent);re(e.declarations,gb)?as(t):wu(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function Fu(e,t,n){if(4&Zx(e)){const n=e.target,r=mm(e);return v(n.typeParameters)===v(r)?dm(n,oe(r,[t||n.thisType])):e}if(2097152&e.flags){const r=q(e.types,(e=>Fu(e,t,n)));return r!==e.types?rv(r):e}return n?ep(e):e}function Eu(e,t,n,r){let i,o,a,s,c;Ne(n,r,0,n.length)?(o=t.symbol?wu(t.symbol):op(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=Dx(n,r),o=cu(t.declaredProperties,i,1===n.length),a=wx(t.declaredCallSignatures,i),s=wx(t.declaredConstructSignatures,i),c=Nx(t.declaredIndexInfos,i));const l=M_(t);if(l.length){if(t.symbol&&o===wu(t.symbol)){const e=op();for(const t of o.values())262144&t.flags||e.set(t.escapedName,t);o=e}Is(e,o,a,s,c);const n=Ae(r);for(const e of l){const t=n?Fu(nS(e,i),n):e;_u(o,jd(t)),a=oe(a,Sp(t,0)),s=oe(s,Sp(t,1));const r=t!==kt?Lp(t):[jf(qt,kt,!1)];c=oe(c,M(r,(e=>!Fp(c,e.keyType))))}}Is(e,o,a,s,c)}function Au(e,t,n,r,i,o,a,s){const c=new d(Be,s);return c.declaration=e,c.typeParameters=t,c.parameters=r,c.thisParameter=n,c.resolvedReturnType=i,c.resolvedTypePredicate=o,c.minArgumentCount=a,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function Iu(e){const t=Au(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,167&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function Ou(e,t){const n=Iu(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function ju(e,t){if((24&e.flags)===t)return e;e.optionalCallSignatureCache||(e.optionalCallSignatureCache={});const n=8===t?"inner":"outer";return e.optionalCallSignatureCache[n]||(e.optionalCallSignatureCache[n]=function(e,t){Sn.assert(8===t||16===t,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const n=Iu(e);return n.flags|=t,n}(e,t))}function Ru(e,t){if(RB(e)){const r=e.parameters.length-1,i=e.parameters[r].escapedName,o=n_(e.parameters[r]);if(LT(o))return[n(o,r,i)];if(!t&&1048576&o.flags&&N(o.types,LT))return J(o.types,(e=>n(e,r,i)))}return[e.parameters];function n(t,n,r){const i=mm(t),o=function(e,t){const n=new Map;return J(e.target.labeledElementDeclarations,((e,r)=>{const i=fO(e,r,t),o=n.get(i);return void 0===o?(n.set(i,1),i):(n.set(i,o+1),`${i}_${o}`)}))}(t,r),a=J(i,((r,i)=>{const a=o&&o[i]?o[i]:mO(e,n+i,t),s=t.target.elementFlags[i],c=Ao(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?Bh(r):r,c}));return oe(e.parameters.slice(0,n),a)}}function Ju(e,t,n,r,i){for(const o of e)if(Wk(o,t,n,r,i,n?hS:mS))return o}function zu(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n<e.length;n++)if(!Ju(e[n],t,!1,!1,!1))return;return[t]}let r;for(let i=0;i<e.length;i++){const o=i===n?t:Ju(e[i],t,!0,!1,!0);if(!o)return;r=Se(r,o)}return r}function Ku(e){let t,n;for(let i=0;i<e.length;i++){if(0===e[i].length)return r;e[i].length>1&&(n=void 0===n?i:-1);for(const n of e[i])if(!t||!Ju(t,n,!1,!1,!0)){const r=zu(e,n,i);if(r){let e=n;if(r.length>1){let t=n.thisParameter;const i=b(r,(e=>e.thisParameter));if(i){t=NC(i,rv(G(r,(e=>e.thisParameter&&n_(e.thisParameter)))))}e=Ou(n,r),e.thisParameter=t}(t||(t=[])).push(e)}}}if(!v(t)&&-1!==n){const r=e[void 0!==n?n:0];let i=r.slice();for(const t of e)if(t!==r){const e=t[0];if(Sn.assert(!!e,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),i=e.typeParameters&&re(i,(t=>!!t.typeParameters&&!Xu(e.typeParameters,t.typeParameters)))?void 0:J(i,(t=>od(t,e))),!i)break}t=i}return t||r}function Xu(e,t){if(v(e)!==v(t))return!1;if(!e||!t)return!0;const n=Dx(t,e);for(let r=0;r<e.length;r++){const i=e[r],o=t[r];if(i!==o&&!fS(rm(i)||At,nS(rm(o)||At,n)))return!1}return!0}function od(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=Dx(t.typeParameters,e.typeParameters));const i=e.declaration,o=function(e,t,n){const r=SO(e),i=SO(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=TO(e)||TO(t),l=c&&!TO(o),_=new Array(s+(l?1:0));for(let u=0;u<s;u++){let d=bO(o,u);o===t&&(d=nS(d,n));let p=bO(a,u)||At;a===t&&(p=nS(p,n));const f=rv([d,p]),m=c&&!l&&u===s-1,g=u>=kO(o)&&u>=kO(a),h=u>=r?void 0:mO(e,u),y=u>=i?void 0:mO(t,u),v=Ao(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`,m?32768:g?16384:0);v.links.type=m?Bh(f):f,_[u]=v}if(l){const e=Ao(1,"args",32768);e.links.type=Bh(vO(a,s)),a===t&&(e.links.type=nS(e.links.type,n)),_[s]=e}return _}(e,t,r),a=function(e,t,n){return e&&t?NC(e,rv([n_(e),nS(n_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),s=Au(i,n,a,o,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),167&(e.flags|t.flags));return s.compositeKind=1048576,s.compositeSignatures=oe(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(s.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?Lx(e.mapper,r):r),s}function sd(e){const t=Lp(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;N(e,(e=>!!jp(e,t)))&&n.push(jf(t,Uy(J(e,(e=>Mp(e,t)))),re(e,(e=>jp(e,t).isReadonly))))}return n}return r}function cd(e,t){return e?t?rv([e,t]):e:t}function ld(e){const t=j(e,(e=>Sp(e,1).length>0)),n=J(e,S_);if(t>0&&t===j(n,(e=>e))){const e=n.indexOf(!0);n[e]=!1}return n}function _d(e,t,n,r){const i=[];for(let o=0;o<t.length;o++)o===r?i.push(e):n[o]&&i.push(of(Sp(t[o],1)[0]));return rv(i)}function ud(e,t){for(const n of t)e&&!N(e,(e=>!Wk(e,n,!1,!1,!1,mS)))||(e=he(e,n));return e}function dd(e,t,n){if(e)for(let r=0;r<e.length;r++){const i=e[r];if(i.keyType===t.keyType)return e[r]=jf(i.keyType,n?Uy([i.type,t.type]):rv([i.type,t.type]),n?i.isReadonly||t.isReadonly:i.isReadonly&&t.isReadonly),e}return he(e,t)}function pd(e){if(e.target){Is(e,k,r,r,r);return void Is(e,cu(Id(e.target),e.mapper,!1),wx(Sp(e.target,0),e.mapper),wx(Sp(e.target,1),e.mapper),Nx(Lp(e.target),e.mapper))}const t=us(e.symbol);if(2048&t.flags){Is(e,k,r,r,r);const n=wu(t),i=Qp(n.get("__call")),o=Qp(n.get("__new"));return void Is(e,n,i,o,zf(t))}let n,i,o=as(t);if(t===me){const e=new Map;o.forEach((t=>{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&N(t.declarations,lf)||e.set(t.escapedName,t)})),o=e}if(Is(e,o,r,r,r),32&t.flags){const e=I_(q_(t));11272192&e.flags?(o=op(function(e){const t=Es(e),n=Ff(e);return n?oe(t,[n]):t}(o)),_u(o,jd(e))):e===kt&&(i=jf(qt,kt,!1))}const a=Ff(o);if(a?n=Vf(a):(i&&(n=he(n,i)),384&t.flags&&(32&Z_(t).flags||re(e.properties,(e=>!!(296&n_(e).flags))))&&(n=he(n,ci))),Is(e,o,r,r,n||r),8208&t.flags&&(e.callSignatures=Qp(t)),32&t.flags){const n=q_(t);let i=t.members?Qp(t.members.get("__constructor")):r;16&t.flags&&(i=be(i.slice(),G(e.callSignatures,(e=>JI(e.declaration)?Au(e.declaration,e.typeParameters,e.thisParameter,e.parameters,n,void 0,e.minArgumentCount,167&e.flags):void 0)))),i.length||(i=function(e){const t=Sp(I_(e),1),n=Yx(e.symbol),i=!!n&&fb(n,64);if(0===t.length)return[Au(void 0,e.localTypeParameters,void 0,r,e,void 0,0,i?4:0)];const o=P_(e),a=Tg(o),s=kg(o),c=v(s),l=[];for(const n of t){const t=Hp(n.typeParameters),r=v(n.typeParameters);if(a||c>=t&&c<=r){const o=r?xf(n,$p(s,n.typeParameters,t,a)):Iu(n);o.typeParameters=e.localTypeParameters,o.resolvedReturnType=e,o.flags=i?4|o.flags:-5&o.flags,l.push(o)}}return l}(n)),e.constructSignatures=i}}function fd(e,t,n){return nS(e,Dx([t.indexType,t.objectType],[mx(0),py([n])]))}function md(e){if(4194304&e.flags){const t=ep(e.type);return jT(t)?by(t):kv(t)}if(16777216&e.flags){if(e.root.isDistributive){const t=e.checkType,n=md(t);if(n!==t)return eS(e,jx(e.root.checkType,n,e.mapper))}return e}if(1048576&e.flags)return CN(e,md,!0);if(2097152&e.flags){const t=e.types;return 2===t.length&&76&t[0].flags&&t[1]===In?e:rv(q(e.types,md))}return e}function gd(e){return 4096&Jx(e)}function hd(e,t,n,r){for(const n of jd(e))r(gv(n,t));if(1&e.flags)r(qt);else for(const t of Lp(e))(!n||134217732&t.keyType.flags)&&r(t.keyType)}function yd(e){const t=op();let n;Is(e,k,r,r,r);const i=vd(e),o=bd(e),a=e.target||e,s=xd(a),c=!s||Pd(a),l=Sd(a),_=ep(Cd(e)),u=wd(e),d=ne?128:8576;function p(r){vN(s?nS(s,Mx(e.mapper,i,r)):r,(o=>function(r,o){if(fC(o)){const n=mC(o),i=t.get(n);if(i)i.links.nameType=Uy([i.links.nameType,o]),i.links.keyType=Uy([i.links.keyType,r]);else{const i=fC(r)?bp(_,mC(r)):void 0,a=!!(4&u||!(8&u)&&i&&16777216&i.flags),s=!!(1&u||!(2&u)&&i&&iL(i)),l=H&&!a&&i&&16777216&i.flags,d=Ao(4|(a?16777216:0),n,262144|(i?gd(i):0)|(s?8:0)|(l?524288:0));d.links.mappedType=e,d.links.nameType=o,d.links.keyType=r,i&&(d.links.syntheticOrigin=i,d.declarations=c?i.declarations:void 0),t.set(n,d)}}else if(Wf(o)||33&o.flags){const t=5&o.flags?qt:40&o.flags?Ut:o,a=nS(l,Mx(e.mapper,i,r)),s=Bp(_,o),c=jf(t,a,!!(1&u||!(2&u)&&(null==s?void 0:s.isReadonly)));n=dd(n,c,!0)}}(r,o)))}Td(e)?hd(_,d,ne,p):vN(md(o),p),Is(e,t,r,r,n||r)}function vd(e){return e.typeParameter||(e.typeParameter=G_(ds(e.declaration.typeParameter)))}function bd(e){return e.constraintType||(e.constraintType=Rd(vd(e))||Nt)}function xd(e){return e.declaration.nameType?e.nameType||(e.nameType=nS(Sx(e.declaration.nameType),e.mapper)):void 0}function Sd(e){return e.templateType||(e.templateType=e.declaration.type?nS(rl(Sx(e.declaration.type),!0,!!(4&wd(e))),e.mapper):Nt)}function kd(e){return Tl(e.declaration.typeParameter)}function Td(e){const t=kd(e);return 198===t.kind&&143===t.operator}function Cd(e){if(!e.modifiersType)if(Td(e))e.modifiersType=nS(Sx(kd(e).type),e.mapper);else{const t=bd(cb(e.declaration)),n=t&&262144&t.flags?Rd(t):t;e.modifiersType=n&&4194304&n.flags?nS(n.type,e.mapper):At}return e.modifiersType}function wd(e){const t=e.declaration;return(t.readonlyToken?41===t.readonlyToken.kind?2:1:0)|(t.questionToken?41===t.questionToken.kind?8:4:0)}function Nd(e){const t=wd(e);return 8&t?-1:4&t?1:0}function Dd(e){const t=Nd(e),n=Cd(e);return t||(Fd(n)?Nd(n):0)}function Fd(e){if(32&Zx(e)){const t=bd(e);if(Jv(t))return!0;const n=xd(e);if(n&&Jv(nS(n,Px(vd(e),t))))return!0}return!1}function Pd(e){const t=xd(e);return!!t&&bS(t,vd(e))}function Ad(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const t=gu(e.target),n=oe(t.typeParameters,[t.thisType]),r=mm(e);Eu(e,t,n,r.length===n.length?r:oe(r,[e]))}(e):3&e.objectFlags?function(e){Eu(e,gu(e),r,r)}(e):1024&e.objectFlags?function(e){const t=jp(e.source,qt),n=wd(e.mappedType),i=!(1&n),o=4&n?0:16777216,a=t?[jf(qt,tw(t.type,e.mappedType,e.constraintType),i&&t.isReadonly)]:r,s=op();for(const t of jd(e.source)){const n=8192|(i&&iL(t)?8:0),r=Ao(4|t.flags&o,t.escapedName,n);if(r.declarations=t.declarations,r.links.nameType=Uo(t).nameType,r.links.propertyType=n_(t),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const t=e.constraintType.type.objectType,n=fd(e.mappedType,e.constraintType.type,t);r.links.mappedType=n,r.links.constraintType=kv(t)}else r.links.mappedType=e.mappedType,r.links.constraintType=e.constraintType;s.set(t.escapedName,r)}Is(e,s,r,r,a)}(e):16&e.objectFlags?pd(e):32&e.objectFlags?yd(e):Sn.fail("Unhandled object type "+Sn.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=Ku(J(e.types,(e=>e===Qn?[oi]:Sp(e,0)))),n=Ku(J(e.types,(e=>Sp(e,1)))),r=sd(e.types);Is(e,k,t,n,r)}(e):2097152&e.flags?function(e){let t,n,i;const o=e.types,a=ld(o),s=j(a,(e=>e));for(let r=0;r<o.length;r++){const c=e.types[r];if(!a[r]){let e=Sp(c,1);e.length&&s>0&&(e=J(e,(e=>{const t=Iu(e);return t.resolvedReturnType=_d(of(e),o,a,r),t}))),n=ud(n,e)}t=ud(t,Sp(c,0)),i=Je(Lp(c),((e,t)=>dd(e,t,!1)),i)}Is(e,k,t||r,n||r,i||r)}(e):Sn.fail("Unhandled type "+Sn.formatTypeFlags(e.flags))),e}function Id(e){return 524288&e.flags?Ad(e).properties:r}function Od(e,t){if(524288&e.flags){const n=Ad(e).members.get(t);if(n&&Ss(n))return n}}function Ld(e){if(!e.resolvedProperties){const t=op();for(const n of e.types){for(const r of jd(n))if(!t.has(r.escapedName)){const n=cp(e,r.escapedName);n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===Lp(n).length)break}e.resolvedProperties=Es(t)}return e.resolvedProperties}function jd(e){return 3145728&(e=tp(e)).flags?Ld(e):Id(e)}function Md(e){return 262144&e.flags?Rd(e):8388608&e.flags?function(e){return $d(e)?function(e){if(Zd(e)||Fd(e.objectType))return rb(e.objectType,e.indexType);const t=Jd(e.indexType);if(t&&t!==e.indexType){const n=ab(e.objectType,t,e.accessFlags);if(n)return n}const n=Jd(e.objectType);if(n&&n!==e.objectType)return ab(n,e.indexType,e.accessFlags);return}(e):void 0}(e):16777216&e.flags?Vd(e):Wd(e)}function Rd(e){return $d(e)?rm(e):void 0}function Bd(e,t=0){var n;return t<5&&!(!e||!(262144&e.flags&&re(null==(n=e.symbol)?void 0:n.declarations,(e=>fb(e,4096)))||3145728&e.flags&&re(e.types,(e=>Bd(e,t)))||8388608&e.flags&&Bd(e.objectType,t+1)||16777216&e.flags&&Bd(Vd(e),t+1)||33554432&e.flags&&Bd(e.baseType,t)||jT(e)&&P(Ty(e),((n,r)=>!!(8&e.target.elementFlags[r])&&Bd(n,t)))>=0))}function Jd(e){const t=Vv(e,!1);return t!==e?t:Md(e)}function zd(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?nS(Sx(e.root.node.trueType),e.combinedMapper):Db(e))}(e),n=Fb(e);e.resolvedDefaultConstraint=zc(t)?n:zc(n)?t:Uy([t,n])}return e.resolvedDefaultConstraint}function qd(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=Vv(e.checkType,!1),n=t===e.checkType?Md(t):t;if(n&&n!==e.checkType){const t=eS(e,jx(e.root.checkType,n,e.mapper));if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function Ud(e){return qd(e)||zd(e)}function Vd(e){return $d(e)?Ud(e):void 0}function Wd(e){if(464781312&e.flags||jT(e)){const t=Kd(e);return t!==Rn&&t!==Bn?t:void 0}return 4194304&e.flags?vn:void 0}function Hd(e){return Wd(e)||e}function $d(e){return Kd(e)!==Bn}function Kd(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!xc(e,4))return Bn;let n;const i=Uk(e);if((t.length<10||t.length<50&&!I(t,i))&&(t.push(i),n=function(e){if(262144&e.flags){const t=rm(e);return e.isThisType||!t?t:r(t)}if(3145728&e.flags){const t=e.types,n=[];let i=!1;for(const e of t){const t=r(e);t?(t!==e&&(i=!0),n.push(t)):i=!0}return i?1048576&e.flags&&n.length===t.length?Uy(n):2097152&e.flags&&n.length?rv(n):void 0:e}if(4194304&e.flags)return vn;if(134217728&e.flags){const t=e.types,n=G(t,r);return n.length===t.length?Cv(e.texts,n):qt}if(268435456&e.flags){const t=r(e.type);return t&&t!==e.type?Nv(e.symbol,t):qt}if(8388608&e.flags){if(Zd(e))return r(rb(e.objectType,e.indexType));const t=r(e.objectType),n=r(e.indexType),i=t&&n&&ab(t,n,e.accessFlags);return i&&r(i)}if(16777216&e.flags){const t=Ud(e);return t&&r(t)}if(33554432&e.flags)return r(Jm(e));if(jT(e)){return py(J(Ty(e),((t,n)=>{const i=262144&t.flags&&8&e.target.elementFlags[n]&&r(t)||t;return i!==t&&xN(i,(e=>Xk(e)&&!jT(e)))?i:t})),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}return e}(Vv(e,!1)),t.pop()),!Ac()){if(262144&e.flags){const t=Kf(e);if(t){const n=To(t,Ea.Type_parameter_0_has_a_circular_constraint,rc(e));!o||Zh(t,o)||Zh(o,t)||pT(n,Bf(o,Ea.Circularity_originates_in_type_at_this_location))}}n=Bn}e.immediateBaseConstraint=n||Rn}return e.immediateBaseConstraint}function r(e){const t=n(e);return t!==Rn&&t!==Bn?t:void 0}}function Gd(e){if(e.default)e.default===Jn&&(e.default=Bn);else if(e.target){const t=Gd(e.target);e.default=t?nS(t,e.mapper):Rn}else{e.default=Jn;const t=e.symbol&&b(e.symbol.declarations,(e=>lD(e)&&e.default)),n=t?Sx(t):Rn;e.default===Jn&&(e.default=n)}return e.default}function Xd(e){const t=Gd(e);return t!==Rn&&t!==Bn?t:void 0}function Qd(e){return!(!e.symbol||!b(e.symbol.declarations,(e=>lD(e)&&e.default)))}function Yd(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=$x(e);if(t&&!e.declaration.nameType){const n=Rd(t);if(n&&xN(n,Xk))return nS(e,jx(t,n,e.mapper))}return e}(e))}function Zd(e){let t;return!(!(8388608&e.flags&&32&Zx(t=e.objectType)&&!Fd(t)&&Jv(e.indexType))||8&wd(t)||t.declaration.nameType)}function ep(e){const t=465829888&e.flags?Wd(e)||At:e,n=Zx(t);return 32&n?Yd(t):4&n&&t!==e?Fu(t,e):2097152&t.flags?function(e,t){return e.resolvedApparentType||(e.resolvedApparentType=Fu(e,t,!0))}(t,e):402653316&t.flags?nr:296&t.flags?rr:2112&t.flags?zr||(zr=Qg("BigInt",0,!1))||Pn:528&t.flags?ir:12288&t.flags?ch():67108864&t.flags?Pn:4194304&t.flags?vn:2&t.flags&&!H?Pn:t}function tp(e){return lp(ep(lp(e)))}function np(e,t,n){var r,i,o;let a,s,c;const l=1048576&e.flags;let _,u=4,d=l?0:8,p=!1;for(const r of e.types){const e=ep(r);if(!(Uc(e)||131072&e.flags)){const r=bp(e,t,n),i=r?zx(r):0;if(r){if(106500&r.flags&&(_??(_=l?0:16777216),l?_|=16777216&r.flags:_&=r.flags),a){if(r!==a){if((uR(r)||r)===(uR(a)||a)&&-1===Vk(a,r,((e,t)=>e===t?-1:0)))p=!!a.parent&&!!v(h_(a.parent));else{s||(s=new Map,s.set(EB(a),a));const e=EB(r);s.has(e)||s.set(e,r)}}}else a=r;l&&iL(r)?d|=8:l||iL(r)||(d&=-9),d|=(6&i?0:256)|(4&i?512:0)|(2&i?1024:0)|(256&i?2048:0),GE(r)||(u=2)}else if(l){const n=!yu(t)&&Jp(e,t);n?(d|=32|(n.isReadonly?8:0),c=he(c,LT(e)?BT(e)||Lt:n.type)):!Sw(e)||2097152&Zx(e)?d|=16:(d|=32,c=he(c,Lt))}}}if(!a||l&&(s||48&d)&&1536&d&&(!s||!function(e){let t;for(const n of e){if(!n.declarations)return;if(t){if(t.forEach((e=>{I(n.declarations,e)||t.delete(e)})),0===t.size)return}else t=new Set(n.declarations)}return t}(s.values())))return;if(!(s||16&d||c)){if(p){const t=null==(r=ft(a,ap))?void 0:r.links,n=NC(a,null==t?void 0:t.type);return n.parent=null==(o=null==(i=a.valueDeclaration)?void 0:i.symbol)?void 0:o.parent,n.links.containingType=e,n.links.mapper=null==t?void 0:t.mapper,n}return a}const f=s?$e(s.values()):[a];let m,g,h;const y=[];let b,x,S=!1;for(const e of f){x?e.valueDeclaration&&e.valueDeclaration!==x&&(S=!0):x=e.valueDeclaration,m=be(m,e.declarations);const t=n_(e);g||(g=t,h=Uo(e).nameType);const n=t_(e);(b||n!==t)&&(b=he(b||y.slice(),n)),t!==g&&(d|=64),(yT(t)||Mv(t))&&(d|=128),131072&t.flags&&t!==wn&&(d|=131072),y.push(t)}be(y,c);const k=Ao(4|(_??0),t,u|d);return k.links.containingType=e,!S&&x&&(k.valueDeclaration=x,x.symbol.parent&&(k.parent=x.symbol.parent)),k.declarations=m,k.links.nameType=h,y.length>2?(k.links.checkFlags|=65536,k.links.deferralParent=e,k.links.deferralConstituents=y,k.links.deferralWriteConstituents=b):(k.links.type=l?Uy(y):rv(y),b&&(k.links.writeType=l?Uy(b):rv(b))),k}function sp(e,t,n){var r,i;let o=(null==(r=e.propertyCacheWithoutObjectFunctionPropertyAugment)?void 0:r.get(t))||!n?null==(i=e.propertyCache)?void 0:i.get(t):void 0;if(!o&&(o=np(e,t,n),o)){(n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=op()):e.propertyCache||(e.propertyCache=op())).set(t,o)}return o}function cp(e,t,n){const r=sp(e,t,n);return!r||16&Jx(r)?void 0:r}function lp(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=q(e.types,lp);if(t===e.types)return e;const n=Uy(t);1048576&n.flags&&(n.resolvedReducedType=n);return n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(re(Ld(e),_p)?33554432:0)),33554432&e.objectFlags?rn:e):e}function _p(e){return up(e)||gp(e)}function up(e){return!(16777216&e.flags||192!=(131264&Jx(e))||!(131072&n_(e).flags))}function gp(e){return!e.valueDeclaration&&!!(1024&Jx(e))}function hp(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&re(e.types,hp)||2097152&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=nS(e,Nn));return lp(t)!==t}(e))}function yp(e,t){if(2097152&t.flags&&33554432&Zx(t)){const n=D(Ld(t),up);if(n)return LS(e,Ea.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,rc(t,void 0,536870912),tc(n));const r=D(Ld(t),gp);if(r)return LS(e,Ea.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,rc(t,void 0,536870912),tc(r))}return e}function bp(e,t,n,r){if(524288&(e=tp(e)).flags){const i=Ad(e),o=i.members.get(t);if(o&&Ss(o,r))return o;if(n)return;const a=i===Mn?Qn:i.callSignatures.length?Yn:i.constructSignatures.length?Zn:void 0;if(a){const e=Od(a,t);if(e)return e}return Od(Xn,t)}if(3145728&e.flags)return cp(e,t,n)}function xp(e,t){if(3670016&e.flags){const n=Ad(e);return 0===t?n.callSignatures:n.constructSignatures}return r}function Sp(e,t){const n=xp(tp(e),t);if(0===t&&!v(n)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(xN(e,(e=>{var t;return!!(null==(t=e.symbol)?void 0:t.parent)&&function(e){if(!e||!er.symbol||!tr.symbol)return!1;return!!bs(e,er.symbol)||!!bs(e,tr.symbol)}(e.symbol.parent)&&(r?r===e.symbol.escapedName:(r=e.symbol.escapedName,!0))}))){const n=Bh(CN(e,(e=>Fx((kp(e.symbol.parent)?tr:er).typeParameters[0],e.mapper))),bN(e,(e=>kp(e.symbol.parent))));return e.arrayFallbackSignatures=Sp(jc(n,r),t)}e.arrayFallbackSignatures=n}return n}function kp(e){return!(!e||!tr.symbol)&&!!bs(e,tr.symbol)}function Fp(e,t){return D(e,(e=>e.keyType===t))}function Pp(e,t){let n,r,i;for(const o of e)o.keyType===qt?n=o:Ep(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?jf(At,rv(J(i,(e=>e.type))),Je(i,((e,t)=>e&&t.isReadonly),!0)):r||(n&&Ep(t,qt)?n:void 0)}function Ep(e,t){return bS(e,t)||t===qt&&bS(e,Ut)||t===Ut&&(e===kn||!!(128&e.flags)&&HT(e.value))}function Ap(e){if(3670016&e.flags){return Ad(e).indexInfos}return r}function Lp(e){return Ap(tp(e))}function jp(e,t){return Fp(Lp(e),t)}function Mp(e,t){var n;return null==(n=jp(e,t))?void 0:n.type}function Rp(e,t){return Lp(e).filter((e=>Ep(t,e.keyType)))}function Bp(e,t){return Pp(Lp(e),t)}function Jp(e,t){return Bp(e,yu(t)?en:fx(Nc(t)))}function zp(e){var t;let n;for(const t of kl(e))n=Se(n,G_(t.symbol));return(null==n?void 0:n.length)?n:QF(e)?null==(t=Gp(e))?void 0:t.typeParameters:void 0}function qp(e){const t=[];return e.forEach(((e,n)=>{Ps(n)||t.push(e)})),t}function Up(e,t){if(Vs(e))return;const n=Xo(pe,'"'+e+'"',512);return n&&t?us(n):n}function Vp(e){if(yh(e)||ZT(e)||nC(e))return!0;if(e.initializer){const t=Kp(e.parent),n=e.parent.parameters.indexOf(e);return Sn.assert(n>=0),n>=kO(t,3)}const t=Ym(e.parent);return!!t&&(!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=yI(t).length)}function Wp(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function Hp(e){let t=0;if(e)for(let n=0;n<e.length;n++)Qd(e[n])||(t=n+1);return t}function $p(e,t,n,r){const i=v(t);if(!i)return[];const o=v(e);if(r||o>=n&&o<=i){const n=e?e.slice():[];for(let e=o;e<i;e++)n[e]=Nt;const a=Nw(r);for(let e=o;e<i;e++){let i=Xd(t[e]);r&&i&&(fS(i,At)||fS(i,Pn))&&(i=kt),n[e]=i?nS(i,Dx(t,n)):a}return n.length=t.length,n}return e&&e.slice()}function Kp(e){const t=Wo(e);if(!t.resolvedSignature){const n=[];let r,i=0,o=0,a=!1;const s=Ym(e),c=vh(e);!s&&Tg(e)&&Wh(e)&&!$c(e)&&!fl(e)&&(i|=32);for(let t=c?1:0;t<e.parameters.length;t++){const c=e.parameters[t];let l=c.symbol;const _=wE(c)?c.typeExpression&&c.typeExpression.type:c.type;if(l&&4&l.flags&&!R_(c.name)){l=ta(c,l.escapedName,111551,void 0,void 0,!1)}0===t&&"this"===l.escapedName?(a=!0,r=c.symbol):n.push(l),_&&201===_.kind&&(i|=2);ZT(c)||c.initializer||c.questionToken||ed(c)||s&&n.length>s.arguments.length&&!_||nC(c)||(o=n.length)}if((177===e.kind||178===e.kind)&&bu(e)&&(!a||!r)){const t=177===e.kind?178:177,n=rp(ds(e),t);n&&(r=function(e){const t=jJ(e);return t&&t.symbol}(n))}if(Tg(e)){const t=ll(e);t&&t.typeExpression&&(r=NC(Ao(1,"this"),Sx(t.typeExpression)))}const l=dE(e)?Lh(e):e,_=l&&hD(l)?q_(us(l.parent.symbol)):void 0,u=_?_.localTypeParameters:zp(e);(Zu(e)||Tg(e)&&function(e,t){if(dE(e)||!Xp(e))return!1;const n=Ae(e.parameters),r=n?qc(n):hl(e).filter(wE),i=S(r,(e=>e.typeExpression&&cE(e.typeExpression.type)?e.typeExpression.type:void 0)),o=Ao(3,"args",32768);i?o.links.type=Bh(Sx(i.type)):(o.links.checkFlags|=65536,o.links.deferralParent=rn,o.links.deferralConstituents=[sr],o.links.deferralWriteConstituents=[sr]);i&&t.pop();return t.push(o),!0}(e,n))&&(i|=1),(wD(e)&&fb(e,64)||hD(e)&&fb(e.parent,64))&&(i|=4),t.resolvedSignature=Au(e,u,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function Gp(e){if(!Tg(e)||!b_(e))return;const t=pl(e);return(null==t?void 0:t.typeExpression)&&tI(Sx(t.typeExpression))}function Xp(e){const t=Wo(e);return void 0===t.containsArgumentsReference&&(512&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function e(t){if(!t)return!1;switch(t.kind){case 80:return t.escapedText===Te.escapedName&&uJ(t)===Te;case 172:case 174:case 177:case 178:return 167===t.name.kind&&e(t.name);case 211:case 212:return e(t.expression);case 303:return e(t.initializer);default:return!Gy(t)&&!hm(t)&&!!KI(t,e)}}(e.body)),t.containsArgumentsReference}function Qp(e){if(!e||!e.declarations)return r;const t=[];for(let n=0;n<e.declarations.length;n++){const r=e.declarations[n];if(y_(r)){if(n>0&&r.body){const t=e.declarations[n-1];if(r.parent===t.parent&&r.kind===t.kind&&r.pos===t.end)continue}if(Tg(r)&&r.jsDoc){let e=!1;for(const n of r.jsDoc)if(n.tags)for(const i of n.tags)if(SE(i)){const n=i.typeExpression;void 0!==n.type||hD(r)||RC(n,kt),t.push(Kp(n)),e=!0}if(e)continue}t.push(!VT(r)&&!Am(r)&&Gp(r)||Kp(r))}}return t}function Zp(e){const t=Ka(e,e);if(t){const e=Ya(t);if(e)return n_(e)}return kt}function tf(e){if(e.thisParameter)return n_(e.thisParameter)}function nf(e){if(!e.resolvedTypePredicate){if(e.target){const r=nf(e.target);e.resolvedTypePredicate=r?(t=r,n=e.mapper,Wp(t.kind,t.parameterName,t.parameterIndex,nS(t.type,n))):ri}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=nf(i);if(e){if(0!==e.kind&&1!==e.kind||n&&!Qy(n,e))return;n=e,r.push(e.type)}else{const e=2097152!==t?of(i):void 0;if(e!==Ht&&e!==Kt)return}}if(!n)return;const i=rf(r,t);return Wp(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||ri;else{const t=e.declaration&&eb(e.declaration);let n;if(!t){const t=Gp(e.declaration);t&&e!==t&&(n=nf(t))}e.resolvedTypePredicate=t&&kD(t)?function(e,t){const n=e.parameterName,r=e.type&&Sx(e.type);return 197===n.kind?Wp(e.assertsModifier?2:0,void 0,void 0,r):Wp(e.assertsModifier?3:1,n.escapedText,P(t.parameters,(e=>e.escapedName===n.escapedText)),r)}(t,e):n||ri}Sn.assert(!!e.resolvedTypePredicate)}var t,n;return e.resolvedTypePredicate===ri?void 0:e.resolvedTypePredicate}function rf(e,t,n){return 2097152!==t?Uy(e,n):rv(e)}function of(e){if(!e.resolvedReturnType){if(!xc(e,3))return Nt;let t=e.target?nS(of(e.target),e.mapper):e.compositeSignatures?nS(rf(J(e.compositeSignatures,of),e.compositeKind,2),e.mapper):af(e.declaration)||(Ip(e.declaration.body)?kt:$O(e.declaration));if(8&e.flags?t=vC(t):16&e.flags&&(t=dC(t)),!Ac()){if(e.declaration){const t=eb(e.declaration);if(t)To(t,Ea.Return_type_annotation_circularly_references_itself);else if(Q){const t=e.declaration,n=Mc(t);n?To(n,Ea._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,If(n)):To(t,Ea.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=kt}e.resolvedReturnType=t}return e.resolvedReturnType}function af(e){if(176===e.kind)return q_(us(e.parent.symbol));const t=eb(e);if(dE(e)){const n=Mh(e);if(n&&hD(n.parent)&&!t)return q_(us(n.parent.parent.symbol))}if(vh(e))return Sx(e.parameters[0].type);if(t)return Sx(t);if(177===e.kind&&bu(e)){const t=Tg(e)&&tl(e);if(t)return t;const n=Ul(rp(ds(e),178));if(n)return n}return function(e){const t=Gp(e);return t&&of(t)}(e)}function uf(e){return e.compositeSignatures&&re(e.compositeSignatures,uf)||!e.resolvedReturnType&&Tc(e,3)>=0}function df(e){if(RB(e)){const t=n_(e.parameters[e.parameters.length-1]),n=LT(t)?BT(t):t;return n&&Mp(n,Ut)}}function hf(e,t,n,r){const i=bf(e,$p(t,e.typeParameters,Hp(e.typeParameters),n));if(r){const e=nI(of(i));if(e){const t=Iu(e);t.typeParameters=r;const n=Iu(i);return n.resolvedReturnType=Cf(t),n}}return i}function bf(e,t){const n=e.instantiations||(e.instantiations=new Map),r=om(t);let i=n.get(r);return i||n.set(r,i=xf(e,t)),i}function xf(e,t){return Bx(e,function(e,t){return Dx(e.typeParameters,t)}(e,t),!0)}function Sf(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return Bx(e,Ox(e.typeParameters),!0)}(e)):e}function kf(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=function(e){return hf(e,J(e.typeParameters,(e=>e.target&&!Rd(e.target)?e.target:e)),Tg(e.declaration))}(e)):e}function Tf(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=Ox(t),r=Dx(t,J(t,(e=>Rd(e)||At)));let i=J(t,(e=>nS(e,r)||At));for(let e=0;e<t.length-1;e++)i=Cx(i,r);return i=Cx(i,n),e.baseSignatureCache=Bx(e,Dx(t,i),!0)}return e}function Cf(e){var t;if(!e.isolatedSignatureType){const n=null==(t=e.declaration)?void 0:t.kind,i=void 0===n||176===n||180===n||185===n,o=Ds(16);o.members=k,o.properties=r,o.callSignatures=i?r:[e],o.constructSignatures=i?[e]:r,o.indexInfos=r,e.isolatedSignatureType=o}return e.isolatedSignatureType}function wf(e){return e.members?Ff(e.members):void 0}function Ff(e){return e.get("__index")}function jf(e,t,n,r){return{keyType:e,type:t,isReadonly:n,declaration:r}}function zf(e){const t=wf(e);return t?Vf(t):r}function Vf(e){if(e.declarations){const t=[];for(const n of e.declarations)if(1===n.parameters.length){const e=n.parameters[0];e.type&&vN(Sx(e.type),(e=>{Wf(e)&&!Fp(t,e)&&t.push(jf(e,n.type?Sx(n.type):kt,pb(n,8),n))}))}return t}return r}function Wf(e){return!!(4108&e.flags)||Mv(e)||!!(2097152&e.flags)&&!Rv(e)&&re(e.types,Wf)}function Kf(e){return G(M(e.symbol&&e.symbol.declarations,lD),Tl)[0]}function nm(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const n of e.symbol.declarations)if(195===n.parent.kind){const[i=n.parent,o]=Gh(n.parent.parent);if(183!==o.kind||t){if(169===o.kind&&o.dotDotDotToken||191===o.kind||202===o.kind&&o.dotDotDotToken)r=he(r,Bh(At));else if(204===o.kind)r=he(r,qt);else if(168===o.kind&&200===o.parent.kind)r=he(r,vn);else if(200===o.kind&&o.type&&Qh(o.type)===n.parent&&194===o.parent.kind&&o.parent.extendsType===o&&200===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=he(r,nS(Sx(e.type),Px(G_(ds(e.typeParameter)),e.typeParameter.constraint?Sx(e.typeParameter.constraint):vn)))}}else{const t=o,n=lj(t);if(n){const o=t.typeArguments.indexOf(i);if(o<n.length){const i=Rd(n[o]);if(i){const o=nS(i,Ax(n,n.map(((e,r)=>()=>aj(t,n,r)))));o!==e&&(r=he(r,o))}}}}}return r&&rv(r)}function rm(e){if(!e.constraint)if(e.target){const t=Rd(e.target);e.constraint=t?nS(t,e.mapper):Rn}else{const t=Kf(e);if(t){let n=Sx(t);1&n.flags&&!Uc(n)&&(n=200===t.parent.parent.kind?vn:At),e.constraint=n}else e.constraint=nm(e)||Rn}return e.constraint===Rn?void 0:e.constraint}function im(e){const t=rp(e.symbol,168),n=PE(t.parent)?Ih(t.parent):t.parent;return n&&fs(n)}function om(e){let t="";if(e){const n=e.length;let r=0;for(;r<n;){const i=e[r].id;let o=1;for(;r+o<n&&e[r+o].id===i+o;)o++;t.length&&(t+=","),t+=i,o>1&&(t+=":"+o),r+=o}}return t}function cm(e,t){return e?`@${EB(e)}`+(t?`:${om(t)}`:""):""}function _m(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=Zx(r));return 458752&n}function um(e,t){return re(t)&&e===jn?At:dm(e,t)}function dm(e,t){const n=om(t);let r=e.instantiations.get(n);return r||(r=Ds(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?_m(t):0,r.target=e,r.resolvedTypeArguments=t),r}function pm(e){const t=Cs(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function fm(e,t,n,r,i){if(!r){const e=Rb(r=Mb(t));i=n?Cx(e,n):e}const o=Ds(4,e.symbol);return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function mm(e){var t,n;if(!e.resolvedTypeArguments){if(!xc(e,6))return(null==(t=e.target.localTypeParameters)?void 0:t.map((()=>Nt)))||r;const i=e.node,a=i?183===i.kind?oe(e.target.outerTypeParameters,sj(i,e.target.localTypeParameters)):188===i.kind?[Sx(i.elementType)]:J(i.elements,Sx):r;Ac()?e.resolvedTypeArguments=e.mapper?Cx(a,e.mapper):a:(e.resolvedTypeArguments=(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>Nt)))||r,To(e.node||o,e.target.symbol?Ea.Type_arguments_for_0_circularly_reference_themselves:Ea.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&tc(e.target.symbol)))}return e.resolvedTypeArguments}function gm(e){return v(e.target.typeParameters)}function ym(e,t){const n=Z_(us(t)),r=n.localTypeParameters;if(r){const t=v(e.typeArguments),i=Hp(r),o=Tg(e);if(!(!Q&&o)&&(t<i||t>r.length)){const t=o&&bF(e)&&!pE(e.parent);if(To(e,i===r.length?t?Ea.Expected_0_type_arguments_provide_these_with_an_extends_tag:Ea.Generic_type_0_requires_1_type_argument_s:t?Ea.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Ea.Generic_type_0_requires_between_1_and_2_type_arguments,rc(n,void 0,2),i,r.length),!o)return Nt}if(183===e.kind&&ty(e,v(e.typeArguments)!==r.length))return fm(n,e,void 0);return dm(n,oe(n.outerTypeParameters,$p(kg(e),r,i,o)))}return cg(e,t)?n:Nt}function Pm(e,t,n,r){const i=Z_(e);if(i===Et&&TB.has(e.escapedName)&&t&&1===t.length)return Nv(e,t[0]);const o=Uo(e),a=o.typeParameters,s=om(t)+cm(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=rS(i,Dx(a,$p(t,a,Hp(a),Tg(e.valueDeclaration))),n,r)),c}function Em(e){var t;const n=null==(t=e.declarations)?void 0:t.find(xh);return!(!n||!zm(n))}function Lm(e){return e.parent?`${Lm(e.parent)}.${e.escapedName}`:e.escapedName}function jm(e){const t=(166===e.kind?e.right:211===e.kind?e.name:e).escapedText;if(t){const n=166===e.kind?jm(e.left):211===e.kind?jm(e.expression):void 0,r=n?`${Lm(n)}.${t}`:t;let i=bt.get(r);return i||(bt.set(r,i=Ao(524288,t,1048576)),i.parent=n,i.links.declaredType=Dt),i}return yt}function Mm(e,t,n){const r=function(e){switch(e.kind){case 183:return e.typeName;case 233:const t=e.expression;if(Kb(t))return t}}(e);if(!r)return yt;const i=Ha(r,t,n);return i&&i!==yt?i:n?yt:jm(r)}function Rm(e,t){if(t===yt)return Nt;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!Tg(t)||524288&e.flags||zg(t,!1))return;const n=GF(t)?Bg(t):Jg(t);if(n){const t=fs(n);if(t)return zI(t,e)}}(t)||t).flags)return ym(e,t);if(524288&t.flags)return function(e,t){if(1048576&Jx(t)){const n=kg(e),r=cm(t,n);let i=xt.get(r);return i||(i=Ns(1,"error",void 0,`alias ${r}`),i.aliasSymbol=t,i.aliasTypeArguments=n,xt.set(r,i)),i}const n=Z_(t),r=Uo(t).typeParameters;if(r){const n=v(e.typeArguments),i=Hp(r);if(n<i||n>r.length)return To(e,i===r.length?Ea.Generic_type_0_requires_1_type_argument_s:Ea.Generic_type_0_requires_between_1_and_2_type_arguments,tc(t),i,r.length),Nt;const o=Mb(e);let a,s=!o||!Em(t)&&Em(o)?void 0:o;if(s)a=Rb(s);else if(Gu(e)){const t=Mm(e,2097152,!0);if(t&&t!==yt){const n=Ma(t);n&&524288&n.flags&&(s=n,a=kg(e)||(r?[]:void 0))}}return Pm(t,kg(e),s,a)}return cg(e,t)?n:Nt}(e,t);const n=tu(t);if(n)return cg(e,t)?dx(n):Nt;if(111551&t.flags&&sg(e)){const n=function(e,t){const n=Wo(e);if(!n.resolvedJSDocType){const r=n_(t);let i=r;if(t.valueDeclaration){const n=205===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=Rm(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(Mm(e,788968),n_(t))}return Nt}function Bm(e,t){if(3&t.flags||t===e||1&e.flags)return e;const n=`${Cy(e)}>${Cy(t)}`,r=st.get(n);if(r)return r;const i=Ts(33554432);return i.baseType=e,i.constraint=t,st.set(n,i),i}function Jm(e){return rv([e.constraint,e.baseType])}function qm(e){return 189===e.kind&&1===e.elements.length}function Zm(e,t,n){return qm(t)&&qm(n)?Zm(e,t.elements[0],n.elements[0]):lb(Sx(t))===lb(e)?Sx(n):void 0}function sg(e){return!!(16777216&e.flags)&&(183===e.kind||205===e.kind)}function cg(e,t){return!e.typeArguments||(To(e,Ea.Type_0_is_not_generic,t?tc(t):e.typeName?If(e.typeName):fB),!1)}function lg(e){if(HN(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return cg(e),qt;case"Number":return cg(e),Ut;case"Boolean":return cg(e),Zt;case"Void":return cg(e),nn;case"Undefined":return cg(e),Lt;case"Null":return cg(e),Jt;case"Function":case"function":return cg(e),Qn;case"array":return t&&t.length||Q?void 0:sr;case"promise":return t&&t.length||Q?void 0:VO(kt);case"Object":if(t&&2===t.length){if(Dg(e)){const e=Sx(t[0]),n=Sx(t[1]),i=e===qt||e===Ut?[jf(e,n,!1)]:r;return Ls(void 0,k,r,r,i)}return kt}return cg(e),Q?void 0:kt}}}function dg(e){const t=Wo(e);if(!t.resolvedType){if(Ll(e)&&su(e.parent))return t.resolvedSymbol=yt,t.resolvedType=DL(e.parent.expression);let n,r;const i=788968;sg(e)&&(r=lg(e),r||(n=Mm(e,i,!0),n===yt?n=Mm(e,111551|i):Mm(e,i),r=Rm(e,n))),r||(n=Mm(e,i),r=Rm(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function kg(e){return J(e.typeArguments,Sx)}function wg(e){const t=Wo(e);if(!t.resolvedType){const n=sO(e);t.resolvedType=dx(LC(n))}return t.resolvedType}function Pg(e,t){function n(e){const t=e.declarations;if(t)for(const e of t)switch(e.kind){case 263:case 264:case 266:return e}}if(!e)return t?jn:Pn;const r=Z_(e);return 524288&r.flags?v(r.typeParameters)!==t?(To(n(e),Ea.Global_type_0_must_have_1_type_parameter_s,Pc(e),t),t?jn:Pn):r:(To(n(e),Ea.Global_type_0_must_be_a_class_or_interface_type,Pc(e)),t?jn:Pn)}function Ig(e,t){return Wg(e,111551,t?Ea.Cannot_find_global_value_0:void 0)}function Og(e,t){return Wg(e,788968,t?Ea.Cannot_find_global_type_0:void 0)}function jg(e,t,n){const r=Wg(e,788968,n?Ea.Cannot_find_global_type_0:void 0);if(!r||(Z_(r),v(Uo(r).typeParameters)===t))return r;To(r.declarations&&D(r.declarations,eP),Ea.Global_type_0_must_have_1_type_parameter_s,Pc(r),t)}function Wg(e,t,n){return ta(void 0,e,t,n,e,!1,!1,!1)}function Qg(e,t,n){const r=Og(e,n);return r||n?Pg(r,t):void 0}function Yg(){return Ir||(Ir=Qg("ImportMeta",0,!0)||Pn)}function Zg(){if(!Or){const e=Ao(0,"ImportMetaExpression"),t=Yg(),n=Ao(4,"meta",8);n.parent=e,n.links.type=t;const i=op([n]);e.members=i,Or=Ls(e,i,r,r,r)}return Or}function nh(e){return Lr||(Lr=Qg("ImportCallOptions",0,e))||Pn}function rh(e){return ur||(ur=Ig("Symbol",e))}function ch(){return pr||(pr=Qg("Symbol",0,!1))||Pn}function _h(e){return mr||(mr=Qg("Promise",1,e))||jn}function dh(e){return yr||(yr=Qg("PromiseLike",1,e))||jn}function ph(e){return vr||(vr=Ig("Promise",e))}function gh(e){return Nr||(Nr=Qg("AsyncIterable",1,e))||jn}function Sh(e){return xr||(xr=Qg("Iterable",1,e))||jn}function kh(e){return jr||(jr=Qg("Disposable",0,e))||Pn}function Ch(e,t=0){const n=Wg(e,788968,void 0);return n&&Pg(n,t)}function Dh(e){return Jr||(Jr=jg("Awaited",1,e)||(e?yt:void 0)),Jr===yt?void 0:Jr}function Fh(e,t){return e!==jn?dm(e,t):Pn}function Ph(e){return Fh(fr||(fr=Qg("TypedPropertyDescriptor",1,!0)||jn),[e])}function Eh(e){return Fh(Sh(!0),[e])}function Bh(e,t){return Fh(t?tr:er,[e])}function Jh(e){switch(e.kind){case 190:return 2;case 191:return Vh(e);case 202:return e.questionToken?2:e.dotDotDotToken?Vh(e):1;default:return 1}}function Vh(e){return xx(e.type)?4:8}function Hh(e){const t=function(e){return JD(e)&&148===e.operator}(e.parent);if(xx(e))return t?tr:er;return my(J(e.elements,Jh),t,J(e.elements,Xh))}function Xh(e){return ED(e)||_D(e)?e:void 0}function ty(e,t){return!!Mb(e)||ry(e)&&(188===e.kind?iy(e.elementType):189===e.kind?re(e.elements,iy):t||re(e.typeArguments,iy))}function ry(e){const t=e.parent;switch(t.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return ry(t);case 265:return!0}return!1}function iy(e){switch(e.kind){case 183:return sg(e)||!!(524288&Mm(e,788968).flags);case 186:return!0;case 198:return 158!==e.operator&&iy(e.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return iy(e.type);case 191:return 188!==e.type.kind||iy(e.type.elementType);case 192:case 193:return re(e.types,iy);case 199:return iy(e.objectType)||iy(e.indexType);case 194:return iy(e.checkType)||iy(e.extendsType)||iy(e.trueType)||iy(e.falseType)}return!1}function py(e,t,n=!1,r=[]){const i=my(t||J(e,(e=>1)),n,r);return i===jn?Pn:e.length?hy(i,e):i}function my(e,t,n){if(1===e.length&&4&e[0])return t?tr:er;const i=J(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(t?"R":"")+(re(n,(e=>!!e))?","+J(n,(e=>e?PB(e):"_")).join(","):"");let o=Ve.get(i);return o||Ve.set(i,o=function(e,t,n){const i=e.length,o=j(e,(e=>!!(9&e)));let a;const s=[];let c=0;if(i){a=new Array(i);for(let r=0;r<i;r++){const i=a[r]=Fs(),o=e[r];if(c|=o,!(12&c)){const e=Ao(4|(2&o?16777216:0),""+r,t?8:0);e.links.tupleLabelDeclaration=null==n?void 0:n[r],e.links.type=i,s.push(e)}}}const l=s.length,_=Ao(4,"length",t?8:0);if(12&c)_.links.type=Ut;else{const e=[];for(let t=o;t<=i;t++)e.push(mx(t));_.links.type=Uy(e)}s.push(_);const u=Ds(12);return u.typeParameters=a,u.outerTypeParameters=void 0,u.localTypeParameters=a,u.instantiations=new Map,u.instantiations.set(om(u.typeParameters),u),u.target=u,u.resolvedTypeArguments=u.typeParameters,u.thisType=Fs(),u.thisType.isThisType=!0,u.thisType.constraint=u,u.declaredProperties=s,u.declaredCallSignatures=r,u.declaredConstructSignatures=r,u.declaredIndexInfos=r,u.elementFlags=e,u.minLength=o,u.fixedLength=l,u.hasRestElement=!!(12&c),u.combinedFlags=c,u.readonly=t,u.labeledElementDeclarations=n,u}(e,t,n)),o}function hy(e,t){return 8&e.objectFlags?yy(e,t):dm(e,t)}function yy(e,t){var n,r,i;if(!(14&e.combinedFlags))return dm(e,t);if(8&e.combinedFlags){const n=P(t,((t,n)=>!!(8&e.elementFlags[n]&&1179648&t.flags)));if(n>=0)return sv(J(t,((t,n)=>8&e.elementFlags[n]?t:At)))?CN(t[n],(r=>yy(e,Me(t,n,r)))):Nt}const a=[],s=[],c=[];let l=-1,_=-1,u=-1;for(let s=0;s<t.length;s++){const c=t[s],l=e.elementFlags[s];if(8&l)if(58982400&c.flags||Fd(c))p(c,8,null==(n=e.labeledElementDeclarations)?void 0:n[s]);else if(LT(c)){const e=Ty(c);if(e.length+a.length>=1e4)return To(o,hm(o)?Ea.Type_produces_a_tuple_type_that_is_too_large_to_represent:Ea.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Nt;b(e,((e,t)=>{var n;return p(e,c.target.elementFlags[t],null==(n=c.target.labeledElementDeclarations)?void 0:n[t])}))}else p(Zk(c)&&Mp(c,Ut)||Nt,4,null==(r=e.labeledElementDeclarations)?void 0:r[s]);else p(c,l,null==(i=e.labeledElementDeclarations)?void 0:i[s])}for(let e=0;e<l;e++)2&s[e]&&(s[e]=1);_>=0&&_<u&&(a[_]=Uy(q(a.slice(_,u+1),((e,t)=>8&s[_+t]?ib(e,Ut):e))),a.splice(_+1,u-_),s.splice(_+1,u-_),c.splice(_+1,u-_));const d=my(s,e.readonly,c);return d===jn?Pn:s.length?dm(d,a):d;function p(e,t,n){1&t&&(l=s.length),4&t&&_<0&&(_=s.length),6&t&&(u=s.length),a.push(2&t?rl(e,!0):e),s.push(t),c.push(n)}}function vy(e,t,n=0){const i=e.target,o=gm(e)-n;return t>i.fixedLength?function(e){const t=BT(e);return t&&Bh(t)}(e)||py(r):py(mm(e).slice(t,o),i.elementFlags.slice(t,o),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(t,o))}function by(e){return Uy(he(He(e.target.fixedLength,(e=>fx(""+e))),kv(e.target.readonly?tr:er)))}function xy(e,t){return e.elementFlags.length-E(e.elementFlags,(e=>!(e&t)))-1}function Sy(e){return e.fixedLength+xy(e,3)}function Ty(e){const t=mm(e),n=gm(e);return t.length===n?t:t.slice(0,n)}function Cy(e){return e.id}function wy(e,t){return Re(e,t,Cy,It)>=0}function Dy(e,t){const n=Re(e,t,Cy,It);return n<0&&(e.splice(~n,0,t),!0)}function Py(e,t,n){const r=n.flags;if(!(131072&r))if(t|=473694207&r,465829888&r&&(t|=33554432),n===Ct&&(t|=8388608),!H&&98304&r)65536&Zx(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:Re(e,n,Cy,It);r<0&&e.splice(~r,0,n)}return t}function My(e,t,n){let r;for(const i of n)i!==r&&(t=1048576&i.flags?My(e,t|(Jy(i)?1048576:0),i.types):Py(e,t,i),r=i);return t}function Jy(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function zy(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?xe(e,n):t&&1048576&t.flags&&zy(e,t.types)}}function qy(e,t){const n=ws(e);return n.types=t,n}function Uy(e,t=1,n,r,i){if(0===e.length)return rn;if(1===e.length)return e[0];if(2===e.length&&!i&&(1048576&e[0].flags||1048576&e[1].flags)){const i=0===t?"N":2===t?"S":"L",o=e[0].id<e[1].id?0:1,a=e[o].id+i+e[1-o].id+cm(n,r);let s=Ke.get(a);return s||(s=Wy(e,t,n,r,void 0),Ke.set(a,s)),s}return Wy(e,t,n,r,i)}function Wy(e,t,n,r,i){let a=[];const s=My(a,0,e);if(0!==t){if(3&s)return 1&s?8388608&s?Ct:kt:65536&s||wy(a,At)?At:Ot;if(32768&s&&a.length>=2&&a[0]===Lt&&a[1]===Mt&&Yt(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||n&&32768&o&&16384&t||px(i)&&wy(e,i.regularType))&&Yt(e,r)}}(a,s,!!(2&t)),128&s&&134217728&s&&function(e){const t=M(e,(e=>!!(134217728&e.flags)&&Mv(e)));if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&re(t,(e=>pw(r,e)))&&Yt(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const r=om(e),i=ct.get(r);if(i)return i;const a=t&&re(e,(e=>!!(524288&e.flags)&&!Fd(e)&&VS(Ad(e)))),s=e.length;let c=s,l=0;for(;c>0;){c--;const t=e[c];if(a||469499904&t.flags){if(262144&t.flags&&1048576&Hd(t).flags){ok(t,Uy(J(e,(e=>e===t?rn:e))),lo)&&Yt(e,c);continue}const r=61603840&t.flags?D(jd(t),(e=>uT(n_(e)))):void 0,i=r&&dx(n_(r));for(const a of e)if(t!==a){if(1e5===l&&l/(s-c)*s>1e6)return null==(n=Fr)||n.instant(Fr.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:e.map((e=>e.id))}),void To(o,Ea.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,r&&61603840&a.flags){const e=jc(a,r.escapedName);if(e&&uT(e)&&dx(e)!==i)continue}if(ok(t,a,lo)&&(!(1&Zx(s_(t)))||!(1&Zx(s_(a)))||xS(t,a))){Yt(e,c);break}}}}return ct.set(r,e),e}(a,!!(524288&s)),!a))return Nt;if(0===a.length)return 65536&s?4194304&s?Jt:zt:32768&s?4194304&s?Lt:jt:rn}if(!i&&1048576&s){const t=[];zy(t,e);const r=[];for(const e of a)re(t,(t=>wy(t.types,e)))||r.push(e);if(!n&&1===t.length&&0===r.length)return t[0];if(Je(t,((e,t)=>e+t.types.length),0)+r.length===a.length){for(const e of t)Dy(r,e);i=qy(1048576,r)}}return Yy(a,(36323331&s?0:32768)|(2097152&s?16777216:0),n,r,i)}function Qy(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Yy(e,t,n,r,i){if(0===e.length)return rn;if(1===e.length)return e[0];const o=(i?1048576&i.flags?`|${om(i.types)}`:2097152&i.flags?`&${om(i.types)}`:`#${i.type.id}|${om(e)}`:om(e))+cm(n,r);let a=We.get(o);return a||(a=Ts(1048576),a.objectFlags=t|_m(e,98304),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),We.set(o,a)),a}function Zy(e,t,n){const r=n.flags;return 2097152&r?ev(e,t,n.types):(XS(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?n===Ct&&(t|=8388608):!H&&98304&r||(n===Mt&&(t|=262144,n=Lt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=473694207&r),t)}function ev(e,t,n){for(const r of n)t=Zy(e,t,dx(r));return t}function tv(e,t){for(const n of e)if(!wy(n.types,t)){const e=128&t.flags?qt:288&t.flags?Ut:2048&t.flags?Vt:8192&t.flags?en:void 0;if(!e||!wy(n.types,e))return!1}return!0}function nv(e,t){for(let n=0;n<e.length;n++)e[n]=SN(e[n],(e=>!(e.flags&t)))}function rv(e,t,n,r){const i=new Map,o=ev(i,0,e),a=$e(i.values());if(131072&o)return I(a,cn)?cn:rn;if(H&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return rn;if(134217728&o&&128&o&&function(e){let t=e.length;const n=M(e,(e=>!!(128&e.flags)));for(;t>0;){t--;const r=e[t];if(134217728&r.flags)for(const i of n){if(yS(i,r)){Yt(e,t);break}if(Mv(r))return!0}}return!1}(a))return rn;if(1&o)return 8388608&o?Ct:kt;if(!H&&98304&o)return 16777216&o?rn:32768&o?Lt:Jt;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(r||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||XS(r)&&470302716&t)&&Yt(e,n)}}(a,o)),262144&o&&(a[a.indexOf(Lt)]=Mt),0===a.length)return At;if(1===a.length)return a[0];const s=om(a)+cm(t,n);let c=Ge.get(s);if(!c){if(1048576&o)if(function(e){let t;const n=P(e,(e=>!!(32768&Zx(e))));if(n<0)return!1;let r=n+1;for(;r<e.length;){const i=e[r];32768&Zx(i)?((t||(t=[e[n]])).push(i),Yt(e,r)):r++}if(!t)return!1;const i=[],o=[];for(const e of t)for(const n of e.types)Dy(i,n)&&tv(t,n)&&Dy(o,n);return e[n]=Yy(o,32768),!0}(a))c=rv(a,t,n);else if(N(a,(e=>!!(1048576&e.flags&&32768&e.types[0].flags)))){const e=re(a,TC)?Mt:Lt;nv(a,32768),c=Uy([rv(a),e],1,t,n)}else if(N(a,(e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags)))))nv(a,65536),c=Uy([rv(a),Jt],1,t,n);else{if(!sv(a))return Nt;const e=function(e){const t=av(e),n=[];for(let r=0;r<t;r++){const t=e.slice();let i=r;for(let n=e.length-1;n>=0;n--)if(1048576&e[n].flags){const r=e[n].types,o=r.length;t[n]=r[i%o],i=Math.floor(i/o)}const o=rv(t);131072&o.flags||n.push(o)}return n}(a);c=Uy(e,1,t,n,re(e,(e=>!!(2097152&e.flags)))&&lv(e)>lv(a)?qy(2097152,a):void 0)}else c=function(e,t,n){const r=Ts(2097152);return r.objectFlags=_m(e,98304),r.types=e,r.aliasSymbol=t,r.aliasTypeArguments=n,r}(a,t,n);Ge.set(s,c)}return c}function av(e){return Je(e,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function sv(e){var t;const n=av(e);return!(n>=1e5)||(null==(t=Fr)||t.instant(Fr.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:n}),To(o,Ea.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function cv(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?cv(e.origin):lv(e.types):1}function lv(e){return Je(e,((e,t)=>e+cv(t)),0)}function uv(e,t){const n=Ts(4194304);return n.type=e,n.indexFlags=t,n}function dv(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=uv(e,1)):e.resolvedIndexType||(e.resolvedIndexType=uv(e,0))}function pv(e){if($N(e))return rn;if(NN(e))return dx($L(e));if(cD(e))return dx(KP(e));const t=Iy(e);return void 0!==t?fx(Nc(t)):au(e)?dx($L(e)):rn}function gv(e,t,n){if(n||!(6&zx(e))){let n=Uo(Du(e)).nameType;if(!n){const t=Mc(e.valueDeclaration);n="default"===e.escapedName?fx("default"):t&&pv(t)||(By(e)?void 0:fx(Pc(e)))}if(n&&n.flags&t)return n}return rn}function hv(e,t){return!!(e.flags&t||2097152&e.flags&&re(e.types,(e=>hv(e,t))))}function bv(e,t,n){const r=n&&(7&Zx(e)||e.aliasSymbol)?function(e){const t=ws(4194304);return t.type=e,t}(e):void 0;return Uy(oe(J(jd(e),(e=>gv(e,t))),J(Lp(e),(e=>e!==ci&&hv(e.keyType,t)?e.keyType===qt&&8&t?hn:e.keyType:rn))),1,void 0,void 0,r)}function xv(e,t=0){return!!(58982400&e.flags||jT(e)||Fd(e)&&!function(e){const t=vd(e);return function e(n){return!!(470810623&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?N(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(xd(e)||t)}(e)||1048576&e.flags&&!(4&t)&&hp(e)||2097152&e.flags&&uL(e,465829888)&&re(e.types,XS))}function kv(e,t=ie){return xv(e=lp(e),t)?dv(e,t):1048576&e.flags?rv(J(e.types,(e=>kv(e,t)))):2097152&e.flags?Uy(J(e.types,(e=>kv(e,t)))):32&Zx(e)?function(e,t){const n=vd(e),r=bd(e),i=xd(e.target||e);if(!(i||2&t))return r;const o=[];if(Td(e)){if(Jv(r))return dv(e,t);hd(ep(Cd(e)),8576,!!(1&t),s)}else vN(md(r),s);Jv(r)&&vN(r,s);const a=2&t?SN(Uy(o),(e=>!(5&e.flags))):Uy(o);return 1048576&a.flags&&1048576&r.flags&&om(a.types)===om(r.types)?r:a;function s(t){const r=i?nS(i,Mx(e.mapper,n,t)):t;o.push(r===qt?hn:r)}}(e,t):e===Ct?Ct:2&e.flags?rn:131073&e.flags?vn:bv(e,(2&t?128:402653316)|(1&t?0:12584),t===ie)}function Tv(e){if(ne)return e;const t=(Rr||(Rr=jg("Extract",2,!0)||yt),Rr===yt?void 0:Rr);return t?Pm(t,[e,qt]):qt}function Cv(e,t){const n=P(t,(e=>!!(1179648&e.flags)));if(n>=0)return sv(t)?CN(t[n],(r=>Cv(e,Me(t,n,r)))):Nt;if(I(t,Ct))return Ct;const r=[],i=[];let o=e[0];if(!function e(t,n){for(let a=0;a<n.length;a++){const s=n[a];if(101248&s.flags)o+=wv(s)||"",o+=t[a+1];else if(134217728&s.flags){if(o+=s.texts[0],!e(s.texts,s.types))return!1;o+=t[a+1]}else{if(!Jv(s)&&!jv(s))return!1;r.push(s),i.push(o),o=t[a+1]}}return!0}(e,t))return qt;if(0===r.length)return fx(o);if(i.push(o),N(i,(e=>""===e))){if(N(r,(e=>!!(4&e.flags))))return qt;if(1===r.length&&Mv(r[0]))return r[0]}const a=`${om(r)}|${J(i,(e=>e.length)).join(",")}|${i.join("")}`;let s=rt.get(a);return s||rt.set(a,s=function(e,t){const n=Ts(134217728);return n.texts=e,n.types=t,n}(i,r)),s}function wv(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?bT(e.value):98816&e.flags?e.intrinsicName:void 0}function Nv(e,t){return 1179648&t.flags?CN(t,(t=>Nv(e,t))):128&t.flags?fx(Dv(e,t.value)):134217728&t.flags?Cv(...function(e,t,n){switch(TB.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),n.map((t=>Nv(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),n.map((t=>Nv(e,t)))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[Nv(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]?[Nv(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||Jv(t)?Fv(e,t):jv(t)?Fv(e,Cv(["",""],[t])):t}function Dv(e,t){switch(TB.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 Fv(e,t){const n=`${EB(e)},${Cy(t)}`;let r=at.get(n);return r||at.set(n,r=function(e,t){const n=Cs(268435456,e);return n.type=t,n}(e,t)),r}function Pv(e){if(Q)return!1;if(4096&Zx(e))return!0;if(1048576&e.flags)return N(e.types,Pv);if(2097152&e.flags)return re(e.types,Pv);if(465829888&e.flags){const t=Kd(e);return t!==e&&Pv(t)}return!1}function Av(e,t){return fC(e)?mC(e):t&&g_(t)?Iy(t):void 0}function Iv(e,t){if(8208&t.flags){const n=kc(e.parent,(e=>!sS(e)))||e.parent;return Q_(n)?Y_(n)&&HN(e)&&$w(n,e):N(t.declarations,(e=>!y_(e)||Po(e)))}return!0}function Ov(e,t,n,r,i,o){const a=i&&212===i.kind?i:void 0,s=i&&$N(i)?void 0:Av(n,i);if(void 0!==s){if(256&o)return JF(t,s)||kt;const e=bp(t,s);if(e){if(64&o&&i&&e.declarations&&Fo(e)&&Iv(i,e)){Eo((null==a?void 0:a.argumentExpression)??(zD(i)?i.indexType:i),e.declarations,s)}if(a){if(MA(e,a,RA(a.expression,t.symbol)),oL(a,e,zh(a)))return void To(a.argumentExpression,Ea.Cannot_assign_to_0_because_it_is_a_read_only_property,tc(e));if(8&o&&(Wo(i).resolvedSymbol=e),bA(a,e))return Tt}const n=4&o?t_(e):n_(e);return a&&1!==zh(a)?QN(a,n):i&&zD(i)&&TC(n)?Uy([n,Lt]):n}if(xN(t,LT)&&HT(s)){const e=+s;if(i&&xN(t,(e=>!e.target.hasRestElement))&&!(16&o)){const n=Lv(i);if(LT(t)){if(e<0)return To(n,Ea.A_tuple_type_cannot_be_indexed_with_a_negative_value),Lt;To(n,Ea.Tuple_type_0_of_length_1_has_no_element_at_index_2,rc(t),gm(t),Nc(s))}else To(n,Ea.Property_0_does_not_exist_on_type_1,Nc(s),rc(t))}if(e>=0)return c(jp(t,Ut)),qT(t,e,1&o?Mt:void 0)}}if(!(98304&n.flags)&&dL(n,402665900)){if(131073&t.flags)return t;const l=Bp(t,n)||jp(t,qt);if(l){if(2&o&&l.keyType!==Ut)return void(a&&(4&o?To(a,Ea.Type_0_is_generic_and_can_only_be_indexed_for_reading,rc(e)):To(a,Ea.Type_0_cannot_be_used_to_index_type_1,rc(n),rc(e))));if(i&&l.keyType===qt&&!dL(n,12)){return To(Lv(i),Ea.Type_0_cannot_be_used_as_an_index_type,rc(n)),1&o?Uy([l.type,Mt]):l.type}return c(l),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&ms(n.symbol)===t.symbol)?Uy([l.type,Mt]):l.type}if(131072&n.flags)return rn;if(Pv(t))return kt;if(a&&!fL(t)){if(Sw(t)){if(Q&&384&n.flags)return oo.add(Bf(a,Ea.Property_0_does_not_exist_on_type_1,n.value,rc(t))),Lt;if(12&n.flags){return Uy(he(J(t.properties,(e=>n_(e))),Lt))}}if(t.symbol===me&&void 0!==s&&me.exports.has(s)&&418&me.exports.get(s).flags)To(a,Ea.Property_0_does_not_exist_on_type_1,Nc(s),rc(t));else if(Q&&!C.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==s&&NA(s,t)){const e=rc(t);To(a,Ea.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+Yp(a.argumentExpression)+"]")}else if(Mp(t,Ut))To(a.argumentExpression,Ea.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=EA(s,t)))void 0!==e&&To(a.argumentExpression,Ea.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,rc(t),e);else{const e=function(e,t,n){function r(t){const r=Od(e,t);if(r){const e=tI(n_(r));return!!e&&kO(e)>=1&&bS(n,vO(e,0))}return!1}const i=qh(t)?"set":"get";if(!r(i))return;let o=Yb(t.expression);void 0===o?o=i:o+="."+i;return o}(t,a,n);if(void 0!==e)To(a,Ea.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,rc(t),e);else{let e;if(1024&n.flags)e=LS(void 0,Ea.Property_0_does_not_exist_on_type_1,"["+rc(n)+"]",rc(t));else if(8192&n.flags){const r=Wa(n.symbol,a);e=LS(void 0,Ea.Property_0_does_not_exist_on_type_1,"["+r+"]",rc(t))}else 128&n.flags||256&n.flags?e=LS(void 0,Ea.Property_0_does_not_exist_on_type_1,n.value,rc(t)):12&n.flags&&(e=LS(void 0,Ea.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,rc(n),rc(t)));e=LS(e,Ea.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,rc(r),rc(t)),oo.add(qf(Cp(a),a,e))}}}return}}if(Pv(t))return kt;if(i){const e=Lv(i);384&n.flags?To(e,Ea.Property_0_does_not_exist_on_type_1,""+n.value,rc(t)):12&n.flags?To(e,Ea.Type_0_has_no_matching_index_signature_for_type_1,rc(t),rc(n)):To(e,Ea.Type_0_cannot_be_used_as_an_index_type,rc(n))}return zc(n)?n:void 0;function c(e){e&&e.isReadonly&&a&&(qh(a)||Yh(a))&&To(a,Ea.Index_signature_in_type_0_only_permits_reading,rc(t))}}function Lv(e){return 212===e.kind?e.argumentExpression:199===e.kind?e.indexType:167===e.kind?e.expression:e}function jv(e){if(2097152&e.flags){let t=!1;for(const n of e.types)if(101248&n.flags||jv(n))t=!0;else if(!(524288&n.flags))return!1;return t}return!!(77&e.flags)||Mv(e)}function Mv(e){return!!(134217728&e.flags)&&N(e.types,jv)||!!(268435456&e.flags)&&jv(e.type)}function Rv(e){return!!zv(e)}function Bv(e){return!!(4194304&zv(e))}function Jv(e){return!!(8388608&zv(e))}function zv(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Je(e.types,((e,t)=>e|zv(t)),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|zv(e.baseType)|zv(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||Fd(e)||jT(e)?4194304:0)|(465829888&e.flags&&!Mv(e)?8388608:0)}function Vv(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===Bn?e:e[n];e[n]=Bn;const r=Vv(e.objectType,t),i=Vv(e.indexType,t),o=function(e,t,n){if(1048576&t.flags){const r=J(t.types,(t=>Vv(ib(e,t),n)));return n?rv(r):Uy(r)}}(r,i,t);if(o)return e[n]=o;if(!(465829888&i.flags)){const o=Xv(r,i,t);if(o)return e[n]=o}if(jT(r)&&296&i.flags){const o=WT(r,8&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}if(Fd(r)&&(!xd(r)||Pd(r)))return e[n]=CN(rb(r,e.indexType),(e=>Vv(e,t)));return e[n]=e}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=Db(e),o=Fb(e);if(131072&o.flags&&lb(i)===lb(n)){if(1&n.flags||bS(oS(n),oS(r)))return Vv(i,t);if(Zv(n,r))return rn}else if(131072&i.flags&&lb(o)===lb(n)){if(!(1&n.flags)&&bS(oS(n),oS(r)))return rn;if(1&n.flags||Zv(n,r))return Vv(o,t)}return e}(e,t):e}function Xv(e,t,n){if(1048576&e.flags||2097152&e.flags&&!xv(e)){const r=J(e.types,(e=>Vv(ib(e,t),n)));return 2097152&e.flags||n?rv(r):Uy(r)}}function Zv(e,t){return!!(131072&Uy([cd(e,t),rn]).flags)}function rb(e,t){const n=Dx([vd(e)],[t]),r=Lx(e.mapper,n);return nS(Sd(e.target||e),r)}function ib(e,t,n=0,r,i,o){return ab(e,t,n,r,i,o)||(r?Nt:At)}function ob(e,t){return xN(e,(e=>{if(384&e.flags){const n=mC(e);if(HT(n)){const e=+n;return e>=0&&e<t}}return!1}))}function ab(e,t,n=0,r,i,o){if(e===Ct||t===Ct)return Ct;if(!ek(e=lp(e))||98304&t.flags||!dL(t,12)||(t=qt),C.noUncheckedIndexedAccess&&32&n&&(n|=1),Jv(t)||(r&&199!==r.kind?jT(e)&&!ob(t,Sy(e.target)):Bv(e)&&(!LT(e)||!ob(t,Sy(e.target)))||hp(e))){if(3&e.flags)return e;const r=1&n,a=e.id+","+t.id+","+r+cm(i,o);let s=nt.get(a);return s||nt.set(a,s=function(e,t,n,r,i){const o=Ts(8388608);return o.objectType=e,o.indexType=t,o.accessFlags=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}(e,t,r,i,o)),s}const a=tp(e);if(1048576&t.flags&&!(16&t.flags)){const s=[];let c=!1;for(const i of t.types){const o=Ov(e,a,i,t,r,n|(c?128:0));if(o)s.push(o);else{if(!r)return;c=!0}}if(c)return;return 4&n?rv(s,i,o):Uy(s,1,i,o)}return Ov(e,a,t,t,r,72|n)}function sb(e){const t=Wo(e);if(!t.resolvedType){const n=Sx(e.objectType),r=Sx(e.indexType),i=Mb(e);t.resolvedType=ib(n,r,0,e,i,Rb(i))}return t.resolvedType}function cb(e){const t=Wo(e);if(!t.resolvedType){const n=Ds(32,e.symbol);n.declaration=e,n.aliasSymbol=Mb(e),n.aliasTypeArguments=Rb(n.aliasSymbol),t.resolvedType=n,bd(n)}return t.resolvedType}function lb(e){return 33554432&e.flags?lb(e.baseType):8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?ib(lb(e.objectType),lb(e.indexType)):e}function _b(e){const t=Rd(e);return t&&(Bv(t)||Jv(t))?Rx(e):e}function Tb(e){return PD(e)&&v(e.elements)>0&&!re(e.elements,(e=>AD(e)||ID(e)||ED(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function Cb(e,t){return Rv(e)||t&&LT(e)&&re(Ty(e),Rv)}function Nb(e,t,n,r){let i,a,s=0;for(;;){if(1e3===s)return To(o,Ea.Type_instantiation_is_excessively_deep_and_possibly_infinite),Nt;const l=nS(lb(e.checkType),t),_=nS(e.extendsType,t);if(l===Nt||_===Nt)return Nt;if(l===Ct||_===Ct)return Ct;const u=Tb(e.node.checkType)&&Tb(e.node.extendsType)&&v(e.node.checkType.elements)===v(e.node.extendsType.elements),d=Cb(l,u);let p;if(e.inferTypeParameters){const n=q(e.inferTypeParameters,_b),r=n!==e.inferTypeParameters?Dx(e.inferTypeParameters,n):void 0,i=qC(n,void 0,0);if(r){const i=Lx(t,r);for(let t=0;t<n.length;t++)n[t]!==e.inferTypeParameters[t]&&(n[t].mapper=i)}d||vw(i.inferences,l,nS(_,r),1536);const o=Lx(r,i.mapper);p=t?Lx(o,t):o}const f=p?nS(e.extendsType,p):_;if(!d&&!Cb(f,u)){if(!(3&f.flags)&&(1&l.flags||!bS(iS(l),iS(f)))){1&l.flags&&(a||(a=[])).push(nS(Sx(e.node.trueType),p||t));const n=Sx(e.node.falseType);if(16777216&n.flags){const r=n.root;if(r.node.parent===e.node&&(!r.isDistributive||r.checkType===e.checkType)){e=r;continue}if(c(n,t))continue}i=nS(n,t);break}if(3&f.flags||bS(oS(l),oS(f))){const n=Sx(e.node.trueType),r=p||t;if(c(n,r))continue;i=nS(n,r);break}}i=Ts(16777216),i.root=e,i.checkType=nS(e.checkType,t),i.extendsType=nS(e.extendsType,t),i.mapper=t,i.combinedMapper=p,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:Cx(e.aliasTypeArguments,t);break}return a?Uy(he(a,i)):i;function c(i,o){if(16777216&i.flags&&o){const a=i.root;if(a.outerTypeParameters){const c=Lx(i.mapper,o),l=J(a.outerTypeParameters,(e=>Fx(e,c))),_=Dx(a.outerTypeParameters,l),u=a.isDistributive?Fx(a.checkType,_):void 0;if(!(u&&u!==a.checkType&&1179648&u.flags))return e=a,t=_,n=void 0,r=void 0,a.aliasSymbol&&s++,!0}}return!1}}function Db(e){return e.resolvedTrueType||(e.resolvedTrueType=nS(Sx(e.root.node.trueType),e.mapper))}function Fb(e){return e.resolvedFalseType||(e.resolvedFalseType=nS(Sx(e.root.node.falseType),e.mapper))}function Pb(e){let t;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(t=he(t,Z_(e)))})),t}function Eb(e){return HN(e)?[e]:he(Eb(e.left),e.right)}function Ab(e){var t;const n=Wo(e);if(!n.resolvedType){if(!lm(e))return To(e.argument,Ea.String_literal_expected),n.resolvedSymbol=yt,n.resolvedType=Nt;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,i=Ka(e,e.argument.literal);if(!i)return n.resolvedSymbol=yt,n.resolvedType=Nt;const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=Ya(i,!1);if(Ip(e.qualifier))if(a.flags&r)n.resolvedType=Lb(e,n,a,r);else{To(e,111551===r?Ea.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Ea.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),n.resolvedSymbol=yt,n.resolvedType=Nt}else{const t=Eb(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=us(ja(s)),l=e.isTypeOf||Tg(e)&&o?bp(n_(c),i.escapedText,!1,!0):void 0,_=(e.isTypeOf?void 0:Xo(as(c),i.escapedText,a))??l;if(!_)return To(i,Ea.Namespace_0_has_no_exported_member_1,Wa(s),If(i)),n.resolvedType=Nt;Wo(i).resolvedSymbol=_,Wo(i.parent).resolvedSymbol=_,s=_}n.resolvedType=Lb(e,n,s,r)}}return n.resolvedType}function Lb(e,t,n,r){const i=ja(n);return t.resolvedSymbol=i,111551===r?cO(n_(n),e):Rm(e,i)}function jb(e){const t=Wo(e);if(!t.resolvedType){const n=Mb(e);if(0!==wu(e.symbol).size||n){let r=Ds(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=Rb(n),uE(e)&&e.isArrayType&&(r=Bh(r)),t.resolvedType=r}else t.resolvedType=In}return t.resolvedType}function Mb(e){let t=e.parent;for(;RD(t)||XP(t)||JD(t)&&148===t.operator;)t=t.parent;return xh(t)?ds(t):void 0}function Rb(e){return e?h_(e):void 0}function qb(e){return!!(524288&e.flags)&&!Fd(e)}function Wb(e){return WS(e)||!!(474058748&e.flags)}function Hb(e,t){if(!(1048576&e.flags))return e;if(N(e.types,Wb))return D(e.types,WS)||Pn;const n=D(e.types,(e=>!Wb(e)));if(!n)return e;return D(e.types,(e=>e!==n&&!Wb(e)))?e:function(e){const n=op();for(const r of jd(e))if(6&zx(r));else if(ax(r)){const e=65536&r.flags&&!(32768&r.flags),i=Ao(16777220,r.escapedName,gd(r)|(t?8:0));i.links.type=e?Lt:rl(n_(r),!0),i.declarations=r.declarations,i.links.nameType=Uo(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}const i=Ls(e.symbol,n,r,r,Lp(e));return i.objectFlags|=131200,i}(n)}function ox(e,t,n,i,o){if(1&e.flags||1&t.flags)return kt;if(2&e.flags||2&t.flags)return At;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=Hb(e,o)).flags)return sv([e,t])?CN(e,(e=>ox(e,t,n,i,o))):Nt;if(1048576&(t=Hb(t,o)).flags)return sv([e,t])?CN(t,(t=>ox(e,t,n,i,o))):Nt;if(473960444&t.flags)return e;if(Bv(e)||Bv(t)){if(WS(e))return t;if(2097152&e.flags){const r=e.types,a=r[r.length-1];if(qb(a)&&qb(t))return rv(oe(r.slice(0,r.length-1),[ox(a,t,n,i,o)]))}return rv([e,t])}const a=op(),s=new Set,c=e===Pn?Lp(t):sd([e,t]);for(const e of jd(t))6&zx(e)?s.add(e.escapedName):ax(e)&&a.set(e.escapedName,lx(e,o));for(const t of jd(e))if(!s.has(t.escapedName)&&ax(t))if(a.has(t.escapedName)){const e=a.get(t.escapedName),n=n_(e);if(16777216&e.flags){const r=oe(t.declarations,e.declarations),i=Ao(4|16777216&t.flags,t.escapedName),o=n_(t),s=CC(o),c=CC(n);i.links.type=s===c?o:Uy([o,c],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=Uo(t).nameType,a.set(t.escapedName,i)}}else a.set(t.escapedName,lx(t,o));const l=Ls(n,a,r,r,q(c,(e=>function(e,t){return e.isReadonly!==t?jf(e.keyType,e.type,t,e.declaration):e}(e,o))));return l.objectFlags|=2228352|i,l}function ax(e){var t;return!(re(e.declarations,l_)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some((e=>w_(e.parent)))))}function lx(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===iL(e))return e;const r=Ao(4|16777216&e.flags,e.escapedName,gd(e)|(t?8:0));return r.links.type=n?Lt:n_(e),r.declarations=e.declarations,r.links.nameType=Uo(e).nameType,r.links.syntheticOrigin=e,r}function _x(e,t,n,r){const i=Cs(e,n);return i.value=t,i.regularType=r||i,i}function ux(e){if(2976&e.flags){if(!e.freshType){const t=_x(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function dx(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=CN(e,dx)):e}function px(e){return!!(2976&e.flags)&&e.freshType===e}function fx(e){let t;return Xe.get(e)||(Xe.set(e,t=_x(128,e)),t)}function mx(e){let t;return Qe.get(e)||(Qe.set(e,t=_x(256,e)),t)}function gx(e){let t;const n=bT(e);return et.get(n)||(et.set(n,t=_x(2048,e)),t)}function hx(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=1024|("string"==typeof e?128:256);return tt.get(i)||(tt.set(i,r=_x(o,e,n)),r)}function yx(e){if(Dm(e)){const t=Nm(e)?fs(e.left):fs(e);if(t){const e=Uo(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=Cs(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${EB(t.symbol)}`,t}(t))}}return en}function vx(e){const t=Wo(e);return t.resolvedType||(t.resolvedType=function(e){const t=$m(e,!1,!1),n=t&&t.parent;if(n&&(w_(n)||264===n.kind)&&!mb(t)&&(!hD(t)||Zh(e,t.body)))return q_(ds(n)).thisType;if(n&&QD(n)&&pF(n.parent)&&6===Gg(n.parent))return q_(fs(n.parent.left).parent).thisType;const r=16777216&e.flags?Oh(e):void 0;return r&&oF(r)&&pF(r.parent)&&3===Gg(r.parent)?q_(fs(r.parent.left).parent).thisType:JI(t)&&Zh(e,t.body)?q_(ds(t)).thisType:(To(e,Ea.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Nt)}(e)),t.resolvedType}function bx(e){return Sx(xx(e.type)||e.type)}function xx(e){switch(e.kind){case 196:return xx(e.type);case 189:if(1===e.elements.length&&(191===(e=e.elements[0]).kind||202===e.kind&&e.dotDotDotToken))return xx(e.type);break;case 188:return e.elementType}}function Sx(e){return function(e,t){let n,r=!0;for(;t&&!Pu(t)&&327!==t.kind;){const i=t.parent;if(169===i.kind&&(r=!r),(r||8650752&e.flags)&&194===i.kind&&t===i.trueType){const t=Zm(e,i.checkType,i.extendsType);t&&(n=he(n,t))}else if(262144&e.flags&&200===i.kind&&t===i.type){const t=Sx(i);if(vd(t)===lb(e)){const e=$x(t);if(e){const t=Rd(e);t&&xN(t,Xk)&&(n=he(n,Uy([Ut,kn])))}}}t=i}return n?Bm(e,rv(n)):e}(kx(e),e)}function kx(e){switch(e.kind){case 133:case 319:case 320:return kt;case 159:return At;case 154:return qt;case 150:return Ut;case 163:return Vt;case 136:return Zt;case 155:return en;case 116:return nn;case 157:return Lt;case 106:return Jt;case 146:return rn;case 151:return 524288&e.flags&&!Q?kt:mn;case 141:return Et;case 197:case 110:return vx(e);case 201:return function(e){if(106===e.literal.kind)return Jt;const t=Wo(e);return t.resolvedType||(t.resolvedType=dx($L(e.literal))),t.resolvedType}(e);case 183:case 233:return dg(e);case 182:return e.assertsModifier?nn:Zt;case 186:return wg(e);case 188:case 189:return function(e){const t=Wo(e);if(!t.resolvedType){const n=Hh(e);if(n===jn)t.resolvedType=Pn;else if(189===e.kind&&re(e.elements,(e=>!!(8&Jh(e))))||!ty(e)){const r=188===e.kind?[Sx(e.elementType)]:J(e.elements,Sx);t.resolvedType=hy(n,r)}else t.resolvedType=189===e.kind&&0===e.elements.length?n:fm(n,e,void 0)}return t.resolvedType}(e);case 190:return function(e){return rl(Sx(e.type),!0)}(e);case 192:return function(e){const t=Wo(e);if(!t.resolvedType){const n=Mb(e);t.resolvedType=Uy(J(e.types,Sx),1,n,Rb(n))}return t.resolvedType}(e);case 193:return function(e){const t=Wo(e);if(!t.resolvedType){const n=Mb(e),r=J(e.types,Sx),i=2===r.length?r.indexOf(In):-1,o=i>=0?r[1-i]:At,a=!!(76&o.flags||134217728&o.flags&&Mv(o));t.resolvedType=rv(r,n,Rb(n),a)}return t.resolvedType}(e);case 321:return function(e){const t=Sx(e.type);return H?_C(t,65536):t}(e);case 323:return rl(Sx(e.type));case 202:return function(e){const t=Wo(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?bx(e):rl(Sx(e.type),!0,!!e.questionToken))}(e);case 196:case 322:case 316:return Sx(e.type);case 191:return bx(e);case 325:return function(e){const t=Sx(e.type),{parent:n}=e,r=e.parent.parent;if(XP(e.parent)&&wE(r)){const e=Oh(r),n=gE(r.parent.parent);if(e||n){const i=Ae(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Ah(r);if(!i||o&&i.symbol===o&&ed(i))return Bh(t)}}if(_D(n)&&sE(n.parent))return Bh(t);return rl(t)}(e);case 184:case 185:case 187:case 329:case 324:case 330:return jb(e);case 198:return function(e){const t=Wo(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=kv(Sx(e.type));break;case 158:t.resolvedType=155===e.type.kind?yx($h(e.parent)):Nt;break;case 148:t.resolvedType=Sx(e.type);break;default:Sn.assertNever(e.operator)}return t.resolvedType}(e);case 199:return sb(e);case 200:return cb(e);case 194:return function(e){const t=Wo(e);if(!t.resolvedType){const n=Sx(e.checkType),r=Mb(e),i=Rb(r),o=d_(e,!0),a=i?o:M(o,(t=>Hx(t,e))),s={node:e,checkType:n,extendsType:Sx(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:Pb(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=Nb(s,void 0),a&&(s.instantiations=new Map,s.instantiations.set(om(a),t.resolvedType))}return t.resolvedType}(e);case 195:return function(e){const t=Wo(e);return t.resolvedType||(t.resolvedType=G_(ds(e.typeParameter))),t.resolvedType}(e);case 203:return function(e){const t=Wo(e);return t.resolvedType||(t.resolvedType=Cv([e.head.text,...J(e.templateSpans,(e=>e.literal.text))],J(e.templateSpans,(e=>Sx(e.type))))),t.resolvedType}(e);case 205:return Ab(e);case 80:case 166:case 211:const t=cB(e);return t?Z_(t):Nt;default:return Nt}}function Tx(e,t,n){if(e&&e.length)for(let r=0;r<e.length;r++){const i=e[r],o=n(i,t);if(i!==o){const i=0===r?[]:e.slice(0,r);for(i.push(o),r++;r<e.length;r++)i.push(n(e[r],t));return i}}return e}function Cx(e,t){return Tx(e,t,nS)}function wx(e,t){return Tx(e,t,Bx)}function Nx(e,t){return Tx(e,t,cS)}function Dx(e,t){return 1===e.length?Px(e[0],t?t[0]:kt):function(e,t){return Sn.attachDebugPrototypeIfDebug({kind:1,sources:e,targets:t})}(e,t)}function Fx(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:{const n=t.sources,r=t.targets;for(let t=0;t<n.length;t++)if(e===n[t])return r?r[t]:kt;return e}case 2:{const n=t.sources,r=t.targets;for(let t=0;t<n.length;t++)if(e===n[t])return r[t]();return e}case 3:return t.func(e);case 4:case 5:const n=Fx(e,t.mapper1);return n!==e&&4===t.kind?nS(n,t.mapper2):Fx(n,t.mapper2)}}function Px(e,t){return Sn.attachDebugPrototypeIfDebug({kind:0,source:e,target:t})}function Ex(e,t){return Sn.attachDebugPrototypeIfDebug({kind:3,func:e,debugInfo:Sn.isDebugging?t:void 0})}function Ax(e,t){return Sn.attachDebugPrototypeIfDebug({kind:2,sources:e,targets:t})}function Ix(e,t,n){return Sn.attachDebugPrototypeIfDebug({kind:e,mapper1:t,mapper2:n})}function Ox(e){return Dx(e,void 0)}function Lx(e,t){return e?Ix(4,e,t):t}function jx(e,t,n){return n?Ix(5,Px(e,t),n):Px(e,t)}function Mx(e,t,n){return e?Ix(5,e,Px(t,n)):Px(t,n)}function Rx(e){const t=Fs(e.symbol);return t.target=e,t}function Bx(e,t,n){let r;if(e.typeParameters&&!n){r=J(e.typeParameters,Rx),t=Lx(Dx(e.typeParameters,r),t);for(const e of r)e.mapper=t}const i=Au(e.declaration,r,e.thisParameter&&qx(e.thisParameter,t),Tx(e.parameters,t,qx),void 0,void 0,e.minArgumentCount,167&e.flags);return i.target=e,i.mapper=t,i}function qx(e,t){const n=Uo(e);if(n.type&&!GC(n.type)){if(!(65536&e.flags))return e;if(n.writeType&&!GC(n.writeType))return e}1&Jx(e)&&(e=n.target,t=Lx(n.mapper,t));const r=Ao(e.flags,e.escapedName,1|53256&Jx(e));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 Hx(e,t){if(e.symbol&&e.symbol.declarations&&1===e.symbol.declarations.length){const r=e.symbol.declarations[0].parent;for(let e=t;e!==r;e=e.parent)if(!e||241===e.kind||194===e.kind&&KI(e.extendsType,n))return!0;return n(t)}return!0;function n(t){switch(t.kind){case 197:return!!e.isThisType;case 80:return!e.isThisType&&hm(t)&&function(e){return!(183===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||205===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(t)&&kx(t)===e;case 186:const r=Gb(t.exprName);if(!$v(r)){const i=Pw(r),o=e.symbol.declarations[0],a=168===o.kind?o.parent:e.isThisType?o:void 0;if(i.declarations&&a)return re(i.declarations,(e=>Zh(e,a)))||re(t.typeArguments,n)}return!0;case 174:case 173:return!t.type&&!!t.body||re(t.typeParameters,n)||re(t.parameters,n)||!!t.type&&n(t.type)}return!!KI(t,n)}}function $x(e){const t=bd(e);if(4194304&t.flags){const e=lb(t.type);if(262144&e.flags)return e}}function Kx(e,t,n,r){const i=$x(e);if(i){const o=nS(i,t);if(i!==o)return wN(lp(o),(n=>{if(61603843&n.flags&&n!==Ct&&!Uc(n)){if(!e.declaration.nameType){let r;if(Kk(n)||1&n.flags&&Tc(i,4)<0&&(r=Rd(i))&&xN(r,Xk))return function(e,t,n){const r=Xx(t,Ut,!0,n);return Uc(r)?Nt:Bh(r,Gx(Gk(e),wd(t)))}(n,e,jx(i,n,t));if(jT(n))return function(e,t,n,r){const i=e.target.elementFlags,o=J(Ty(e),((e,o)=>{const a=8&i[o]?e:4&i[o]?Bh(e):py([e],[i[o]]);return a===n?t:Kx(t,jx(n,a,r))})),a=Gx(e.target.readonly,wd(t));return py(o,J(o,(e=>8)),a)}(n,e,i,t);if(LT(n))return function(e,t,n){const r=e.target.elementFlags,i=J(Ty(e),((e,i)=>Xx(t,fx(""+i),!!(2&r[i]),n))),o=wd(t),a=4&o?J(r,(e=>1&e?2:e)):8&o?J(r,(e=>2&e?1:e)):r,s=Gx(e.target.readonly,o);return I(i,Nt)?Nt:py(i,a,s,e.target.labeledElementDeclarations)}(n,e,jx(i,n,t))}return Qx(e,jx(i,n,t))}return n}),n,r)}return nS(bd(e),t)===Ct?Ct:Qx(e,t,n,r)}function Gx(e,t){return!!(1&t)||!(2&t)&&e}function Xx(e,t,n,r){const i=Mx(r,vd(e),t),o=nS(Sd(e.target||e),i),a=wd(e);return H&&4&a&&!uL(o,49152)?dC(o,!0):H&&8&a&&n?eN(o,524288):o}function Qx(e,t,n,r){const i=Ds(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=vd(e),r=Rx(n);i.typeParameter=r,t=Lx(Px(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:Cx(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?_m(i.aliasTypeArguments):0,i}function eS(e,t,n,r){const i=e.root;if(i.outerTypeParameters){const e=J(i.outerTypeParameters,(e=>Fx(e,t))),o=om(e)+cm(n,r);let a=i.instantiations.get(o);if(!a){const t=Dx(i.outerTypeParameters,e),s=i.checkType,c=i.isDistributive?Fx(s,t):void 0;a=c&&s!==c&&1179648&c.flags?wN(lp(c),(e=>Nb(i,jx(s,e,t))),n,r):Nb(i,t,n,r),i.instantiations.set(o,a)}return a}return e}function nS(e,t){return e&&t?rS(e,t,void 0,void 0):e}function rS(e,t,n,i){var a;if(!GC(e))return e;if(100===h||g>=5e6)return null==(a=Fr)||a.instant(Fr.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:h,instantiationCount:g}),To(o,Ea.Type_instantiation_is_excessively_deep_and_possibly_infinite),Nt;m++,g++,h++;const s=function(e,t,n,i){const o=e.flags;if(262144&o)return Fx(e,t);if(524288&o){const o=e.objectFlags;if(52&o){if(4&o&&!e.node){const n=e.resolvedTypeArguments,r=Cx(n,t);return r!==n?hy(e.target,r):e}return 1024&o?function(e,t){const n=nS(e.mappedType,t);if(!(32&Zx(n)))return e;const r=nS(e.constraintType,t);if(!(4194304&r.flags))return e;const i=ZC(nS(e.source,t),n,r);if(i)return i;return e}(e,t):function(e,t,n,i){const o=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],a=Wo(o),s=4&e.objectFlags?a.resolvedType:64&e.objectFlags?e.target:e;let c=a.outerTypeParameters;if(!c){let t=d_(o,!0);JI(o)&&(t=be(t,zp(o))),c=t||r;const n=8388612&e.objectFlags?[o]:e.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?M(c,(e=>re(n,(t=>Hx(e,t))))):c,a.outerTypeParameters=c}if(c.length){const r=Lx(e.mapper,t),o=J(c,(e=>Fx(e,r))),a=n||e.aliasSymbol,l=n?i:Cx(e.aliasTypeArguments,t),_=om(o)+cm(a,l);s.instantiations||(s.instantiations=new Map,s.instantiations.set(om(c)+cm(s.aliasSymbol,s.aliasTypeArguments),s));let u=s.instantiations.get(_);if(!u){const t=Dx(c,o);u=4&s.objectFlags?fm(e.target,e.node,t,a,l):32&s.objectFlags?Kx(s,t,a,l):Qx(s,t,a,l),s.instantiations.set(_,u);const n=Zx(u);if(3899393&u.flags&&!(524288&n)){const e=re(o,GC);524288&Zx(u)||(u.objectFlags|=52&n?524288|(e?1048576:0):e?0:524288)}}return u}return e}(e,t,n,i)}return e}if(3145728&o){const r=1048576&e.flags?e.origin:void 0,a=r&&3145728&r.flags?r.types:e.types,s=Cx(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,l=n?i:Cx(e.aliasTypeArguments,t);return 2097152&o||r&&2097152&r.flags?rv(s,c,l):Uy(s,1,c,l)}if(4194304&o)return kv(nS(e.type,t));if(134217728&o)return Cv(e.texts,Cx(e.types,t));if(268435456&o)return Nv(e.symbol,nS(e.type,t));if(8388608&o){const r=n||e.aliasSymbol,o=n?i:Cx(e.aliasTypeArguments,t);return ib(nS(e.objectType,t),nS(e.indexType,t),e.accessFlags,void 0,r,o)}if(16777216&o)return eS(e,Lx(e.mapper,t),n,i);if(33554432&o){const n=nS(e.baseType,t),r=nS(e.constraint,t);return 8650752&n.flags&&Rv(r)?Bm(n,r):3&r.flags||bS(oS(n),oS(r))?n:8650752&n.flags?Bm(n,r):rv([r,n])}return e}(e,t,n,i);return h--,s}function iS(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=nS(e,Cn))}function oS(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=nS(e,Tn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function cS(e,t){return jf(e.keyType,nS(e.type,t),e.isReadonly,e.declaration)}function lS(e){switch(Sn.assert(174!==e.kind||Am(e)),e.kind){case 218:case 219:case 174:case 262:return _S(e);case 210:return re(e.properties,lS);case 209:return re(e.elements,lS);case 227:return lS(e.whenTrue)||lS(e.whenFalse);case 226:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(lS(e.left)||lS(e.right));case 303:return lS(e.initializer);case 217:return lS(e.expression);case 292:return re(e.properties,lS)||DP(e.parent)&&re(e.parent.parent.children,lS);case 291:{const{initializer:t}=e;return!!t&&lS(t)}case 294:{const{expression:t}=e;return!!t&&lS(t)}}return!1}function _S(e){return JT(e)||function(e){if(e.typeParameters||eb(e)||!e.body)return!1;if(241!==e.body.kind)return lS(e.body);return!!vm(e.body,(e=>!!e.expression&&lS(e.expression)))}(e)}function dS(e){return(VT(e)||Am(e))&&_S(e)}function pS(e){if(524288&e.flags){const t=Ad(e);if(t.constructSignatures.length||t.callSignatures.length){const n=Ds(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=r,n.constructSignatures=r,n.indexInfos=r,n}}else if(2097152&e.flags)return rv(J(e.types,pS));return e}function fS(e,t){return ok(e,t,po)}function mS(e,t){return ok(e,t,po)?-1:0}function gS(e,t){return ok(e,t,_o)?-1:0}function hS(e,t){return ok(e,t,co)?-1:0}function yS(e,t){return ok(e,t,co)}function vS(e,t){return ok(e,t,lo)}function bS(e,t){return ok(e,t,_o)}function xS(e,t){return 1048576&e.flags?N(e.types,(e=>xS(e,t))):1048576&t.flags?re(t.types,(t=>xS(e,t))):2097152&e.flags?re(e.types,(e=>xS(e,t))):58982400&e.flags?xS(Wd(e)||At,t):XS(t)?!!(67633152&e.flags):t===Xn?!!(67633152&e.flags)&&!XS(e):t===Qn?!!(524288&e.flags)&&Xw(e):c_(e,s_(t))||Kk(t)&&!Gk(t)&&xS(e,tr)}function SS(e,t){return ok(e,t,uo)}function kS(e,t){return SS(e,t)||SS(t,e)}function TS(e,t,n,r,i,o){return hk(e,t,_o,n,r,i,o)}function CS(e,t,n,r,i,o){return wS(e,t,_o,n,r,i,o,void 0)}function wS(e,t,n,r,i,o,a,s){return!!ok(e,t,n)||(!r||!DS(i,e,t,n,o,a,s))&&hk(e,t,n,r,o,a,s)}function NS(e){return!!(16777216&e.flags||2097152&e.flags&&re(e.types,NS))}function DS(e,t,n,r,i,o,a){if(!e||NS(n))return!1;if(!hk(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=Sp(t,0),c=Sp(t,1);for(const l of[c,s])if(re(l,(e=>{const t=of(e);return!(131073&t.flags)&&hk(t,n,r,void 0)}))){const r=a||{};TS(t,n,e,i,o,r);return pT(r.errors[r.errors.length-1],Bf(e,l===c?Ea.Did_you_mean_to_use_new_with_this_expression:Ea.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 234:if(!ea(e))break;case 294:case 217:return DS(e.expression,t,n,r,i,o,a);case 226:switch(e.operatorToken.kind){case 64:case 28:return DS(e.right,t,n,r,i,o,a)}break;case 210:return function(e,t,n,r,i,o){return!(402915324&n.flags)&&OS(function*(e){if(!v(e.properties))return;for(const t of e.properties){if(VP(t))continue;const e=gv(ds(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 178:case 177:case 174:case 304:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 303:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:Lf(t.name)?Ea.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:Sn.assertNever(t)}}}(e),t,n,r,i,o)}(e,t,n,r,o,a);case 209:return function(e,t,n,r,i,o){if(402915324&n.flags)return!1;if(oT(t))return OS(BS(e,n),t,n,r,i,o);dP(e,n,!1);const a=RP(e,1,!0);if(pP(),oT(a))return OS(BS(e,n),a,n,r,i,o);return!1}(e,t,n,r,o,a);case 292:return function(e,t,n,r,i,o){let a,s=OS(function*(e){if(!v(e.properties))return;for(const t of e.properties)LP(t)||fE(lC(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:fx(lC(t.name))})}(e),t,n,r,i,o);if(DP(e.parent)&&wP(e.parent.parent)){const a=e.parent.parent,l=AE(CE(e)),_=void 0===l?"children":Nc(l),u=fx(_),d=ib(n,u),p=iv(a.children);if(!v(p))return s;const f=v(p)>1;let m,g;if(Sh(!1)!==jn){const e=Eh(kt);m=SN(d,(t=>bS(t,e))),g=SN(d,(t=>!bS(t,e)))}else m=SN(d,sT),g=SN(d,(e=>!sT(e)));if(f){if(m!==rn){const e=py(yE(a,0)),t=function*(e,t){if(!v(e.children))return;let n=0;for(let r=0;r<e.children.length;r++){const i=MS(e.children[r],mx(r-n),t);i?yield i:n++}}(a,c);s=function(e,t,n,r,i,o){const a=SN(n,sT),s=SN(n,(e=>!sT(e))),c=s!==rn?CM(13,0,s,void 0):void 0;let l=!1;for(let n=e.next();!n.done;n=e.next()){const{errorNode:e,innerExpression:s,nameType:_,errorMessage:u}=n.value;let d=c;const p=a!==rn?FS(t,a,_):void 0;if(!p||8388608&p.flags||(d=c?Uy([c,p]):p),!d)continue;let f=ab(t,_);if(!f)continue;const m=Av(_,void 0);if(!hk(f,d,r,void 0)){if(l=!0,!(s&&DS(s,f,d,r,void 0,i,o))){const n=o||{},c=s?PS(s,f):f;if(le&&bk(c,d)){const t=Bf(e,Ea.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,rc(c),rc(d));oo.add(t),n.errors=[t]}else{const o=!!(m&&16777216&(bp(a,m)||yt).flags),s=!!(m&&16777216&(bp(t,m)||yt).flags);d=kC(d,o),f=kC(f,o&&s);hk(c,d,r,e,u,i,n)&&c!==f&&hk(f,d,r,e,u,i,n)}}}}return l}(t,e,m,r,i,o)||s}else if(!ok(ib(t,u),d,r)){s=!0;const e=To(a.openingElement.tagName,Ea.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,_,rc(d));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(g!==rn){const e=MS(p[0],u,c);e&&(s=OS(function*(){yield e}(),t,n,r,i,o)||s)}else if(!ok(ib(t,u),d,r)){s=!0;const e=To(a.openingElement.tagName,Ea.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,_,rc(d));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=Yp(e.parent.tagName),r=AE(CE(e)),i=void 0===r?"children":Nc(r),o=ib(n,fx(i)),s=Ea._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;a={...s,key:"!!ALREADY FORMATTED!!",message:AS(s,t,i,rc(o))}}return a}}(e,t,n,r,o,a);case 219:return function(e,t,n,r,i,o){if(PF(e.body))return!1;if(re(e.parameters,Wu))return!1;const a=tI(t);if(!a)return!1;const s=Sp(n,0);if(!v(s))return!1;const c=e.body,l=of(a),_=Uy(J(s,of));if(!hk(l,_,r,void 0)){const t=c&&DS(c,l,_,r,void 0,i,o);if(t)return t;const a=o||{};if(hk(l,_,r,c,void 0,i,a),a.errors)return n.symbol&&v(n.symbol.declarations)&&pT(a.errors[a.errors.length-1],Bf(n.symbol.declarations[0],Ea.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&Ny(e))&&!jc(l,"then")&&hk(VO(l),_,r,void 0)&&pT(a.errors[a.errors.length-1],Bf(e,Ea.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function FS(e,t,n){const r=ab(t,n);if(r)return r;if(1048576&t.flags){const r=Tk(e,t);if(r)return ab(r,n)}}function PS(e,t){dP(e,t,!1);const n=OL(e,1);return pP(),n}function OS(e,t,n,r,i,o){let a=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:l,errorMessage:_}=s;let u=FS(t,n,l);if(!u||8388608&u.flags)continue;let d=ab(t,l);if(!d)continue;const p=Av(l,void 0);if(!hk(d,u,r,void 0)){if(a=!0,!(c&&DS(c,d,u,r,void 0,i,o))){const a=o||{},s=c?PS(c,d):d;if(le&&bk(s,u)){const t=Bf(e,Ea.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,rc(s),rc(u));oo.add(t),a.errors=[t]}else{const o=!!(p&&16777216&(bp(n,p)||yt).flags),c=!!(p&&16777216&(bp(t,p)||yt).flags);u=kC(u,o),d=kC(d,o&&c);hk(s,u,r,e,_,i,a)&&s!==d&&hk(d,u,r,e,_,i,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=fC(l)?mC(l):void 0,r=void 0!==t?bp(n,t):void 0;let i=!1;if(!r){const t=Bp(n,l);t&&t.declaration&&!Cp(t.declaration).hasNoDefaultLib&&(i=!0,pT(e,Bf(t.declaration,Ea.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&v(r.declarations)||n.symbol&&v(n.symbol.declarations))){const i=r&&v(r.declarations)?r.declarations[0]:n.symbol.declarations[0];Cp(i).hasNoDefaultLib||pT(e,Bf(i,Ea.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&l.flags?rc(l):Nc(t),rc(n)))}}}}}return a}function MS(e,t,n){switch(e.kind){case 294:return{errorNode:e,innerExpression:e.expression,nameType:t};case 12:if(e.containsOnlyTriviaWhiteSpaces)break;return{errorNode:e,innerExpression:void 0,nameType:t,errorMessage:n()};case 284:case 285:case 288:return{errorNode:e,innerExpression:e,nameType:t};default:return Sn.assertNever(e,"Found invalid jsx child")}}function*BS(e,t){const n=v(e.elements);if(n)for(let r=0;r<n;r++){if(oT(t)&&!bp(t,""+r))continue;const n=e.elements[r];if(vF(n))continue;const i=mx(r);yield{errorNode:n,innerExpression:n,nameType:i}}}function JS(e,t,n,r,i){return hk(e,t,uo,n,r,i)}function zS(e){if(!e.typeParameters&&(!e.thisParameter||zc(pO(e.thisParameter)))&&1===e.parameters.length&&RB(e)){const t=pO(e.parameters[0]);return!!(131073&(Kk(t)?mm(t)[0]:t).flags&&3&of(e).flags)}return!1}function qS(e,t,n,r,i,o,a,s){if(e===t)return-1;if(!(16&n&&zS(e))&&zS(t))return-1;if(16&n&&zS(e)&&!zS(t))return 0;const c=SO(t);if(!TO(t)&&(8&n?TO(e)||SO(e)>c:kO(e)>c))return!r||8&n||i(Ea.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,kO(e),c),0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=iI(e,t=kf(t),void 0,a));const l=SO(e),_=wO(e),u=wO(t);(_||u)&&nS(_||u,s);const d=t.declaration?t.declaration.kind:0,p=!(3&n)&&$&&174!==d&&173!==d&&176!==d;let f=-1;const m=tf(e);if(m&&m!==nn){const e=tf(t);if(e){const t=!p&&a(m,e,!1)||a(e,m,r);if(!t)return r&&i(Ea.The_this_types_of_each_signature_are_incompatible),0;f&=t}}const g=_||u?Math.min(l,c):Math.max(l,c),h=_||u?g-1:-1;for(let c=0;c<g;c++){const l=c===h?xO(e,c):bO(e,c),_=c===h?xO(t,c):bO(t,c);if(l&&_){const u=3&n?void 0:tI(yC(l)),d=3&n?void 0:tI(yC(_));let m=u&&d&&!nf(u)&&!nf(d)&&Qw(l,50331648)===Qw(_,50331648)?qS(d,u,8&n|(p?2:1),r,i,o,a,s):!(3&n)&&!p&&a(l,_,!1)||a(_,l,r);if(m&&8&n&&c>=kO(e)&&c<kO(t)&&a(l,_,!1)&&(m=0),!m)return r&&i(Ea.Types_of_parameters_0_and_1_are_incompatible,Nc(mO(e,c)),Nc(mO(t,c))),0;f&=m}}if(!(4&n)){const s=uf(t)?kt:t.declaration&&JI(t.declaration)?q_(us(t.declaration.symbol)):of(t);if(s===nn||s===kt)return f;const c=uf(e)?kt:e.declaration&&JI(e.declaration)?q_(us(e.declaration.symbol)):of(e),l=nf(t);if(l){const t=nf(e);if(t)f&=function(e,t,n,r,i){if(e.kind!==t.kind)return n&&(r(Ea.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),r(Ea.Type_predicate_0_is_not_assignable_to_1,lc(e),lc(t))),0;if((1===e.kind||3===e.kind)&&e.parameterIndex!==t.parameterIndex)return n&&(r(Ea.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,t.parameterName),r(Ea.Type_predicate_0_is_not_assignable_to_1,lc(e),lc(t))),0;const o=e.type===t.type?-1:e.type&&t.type?i(e.type,t.type,n):0;0===o&&n&&r(Ea.Type_predicate_0_is_not_assignable_to_1,lc(e),lc(t));return o}(t,l,r,i,a);else if(Om(l))return r&&i(Ea.Signature_0_must_be_a_type_predicate,nc(e)),0}else f&=1&n&&a(s,c,!1)||a(c,s,r),!f&&r&&o&&o(c,s)}return f}function US(e,t){const n=Sf(e),r=Sf(t),i=of(n),o=of(r);return!(o!==nn&&!ok(o,i,_o)&&!ok(i,o,_o))&&0!==qS(n,r,!0?4:0,!1,void 0,void 0,gS,void 0)}function VS(e){return e!==Mn&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function WS(e){return 524288&e.flags?!Fd(e)&&VS(Ad(e)):!!(67108864&e.flags)||(1048576&e.flags?re(e.types,WS):!!(2097152&e.flags)&&N(e.types,WS))}function XS(e){return!!(16&Zx(e)&&(e.members&&VS(e)||e.symbol&&2048&e.symbol.flags&&0===wu(e.symbol).size))}function ZS(e){return!!(32768&(1048576&e.flags?e.types[0]:e).flags)}function ek(e){return 524288&e.flags&&!Fd(e)&&0===jd(e).length&&1===Lp(e).length&&!!jp(e,qt)||3145728&e.flags&&N(e.types,ek)||!1}function tk(e,t,n){const r=8&e.flags?ms(e):e,i=8&t.flags?ms(t):t;if(r===i)return!0;if(!(r.escapedName===i.escapedName&&256&r.flags&&256&i.flags))return!1;const o=EB(r)+","+EB(i),a=fo.get(o);if(void 0!==a&&(4&a||!(2&a)||!n))return!!(1&a);const s=n_(i);for(const e of jd(n_(r)))if(8&e.flags){const t=bp(s,e.escapedName);if(!(t&&8&t.flags))return n?(n(Ea.Property_0_is_missing_in_type_1,Pc(e),rc(Z_(i),void 0,64)),fo.set(o,6)):fo.set(o,2),!1}return fo.set(o,1),!0}function nk(e,t,n,r){const i=e.flags,o=t.flags;if(1&o||131072&i||e===Ct)return!0;if(2&o&&!(n===lo&&1&i))return!0;if(131072&o)return!1;if(402653316&i&&4&o)return!0;if(128&i&&1024&i&&128&o&&!(1024&o)&&e.value===t.value)return!0;if(296&i&&8&o)return!0;if(256&i&&1024&i&&256&o&&!(1024&o)&&e.value===t.value)return!0;if(2112&i&&64&o)return!0;if(528&i&&16&o)return!0;if(12288&i&&4096&o)return!0;if(32&i&&32&o&&e.symbol.escapedName===t.symbol.escapedName&&tk(e.symbol,t.symbol,r))return!0;if(1024&i&&1024&o){if(1048576&i&&1048576&o&&tk(e.symbol,t.symbol,r))return!0;if(2944&i&&2944&o&&e.value===t.value&&tk(e.symbol,t.symbol,r))return!0}if(32768&i&&(!H&&!(3145728&o)||49152&o))return!0;if(65536&i&&(!H&&!(3145728&o)||65536&o))return!0;if(524288&i&&67108864&o&&(n!==lo||!XS(e)||8192&Zx(e)))return!0;if(n===_o||n===uo){if(1&i)return!0;if(8&i&&(32&o||256&o&&1024&o))return!0;if(256&i&&!(1024&i)&&(32&o||256&o&&1024&o&&e.value===t.value))return!0;if(function(e){if(H&&1048576&e.flags){if(!(33554432&e.objectFlags)){const t=e.types;e.objectFlags|=33554432|(t.length>=3&&32768&t[0].flags&&65536&t[1].flags&&re(t,XS)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function ok(e,t,n){if(px(e)&&(e=e.regularType),px(t)&&(t=t.regularType),e===t)return!0;if(n!==po){if(n===uo&&!(131072&t.flags)&&nk(t,e,n)||nk(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get(Lk(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&hk(e,t,n,void 0)}function sk(e,t){return 2048&Zx(e)&&fE(t.escapedName)}function ck(e,t){for(;;){const n=px(e)?e.regularType:jT(e)?fk(e,t):4&Zx(e)?e.node?dm(e.target,mm(e)):nT(e)||e:3145728&e.flags?dk(e,t):33554432&e.flags?t?e.baseType:Jm(e):25165824&e.flags?Vv(e,t):e;if(n===e)return n;e=n}}function dk(e,t){const n=lp(e);if(n!==e)return n;if(2097152&e.flags&&re(e.types,XS)){const n=q(e.types,(e=>ck(e,t)));if(n!==e.types)return rv(n)}return e}function fk(e,t){const n=Ty(e),r=q(n,(e=>25165824&e.flags?Vv(e,t):e));return n!==r?yy(e.target,r):e}function hk(e,t,n,i,a,s,c){var l;let _,u,d,p,f,m,g,h,y=0,b=0,x=0,S=0,k=!1,T=0,w=0,N=16e6-n.size>>3;Sn.assert(n!==po||!i,"no error reporting in identity checking");const D=U(e,t,3,!!i,a);if(h&&O(),k){const r=Lk(e,t,0,n,!1);n.set(r,6),null==(l=Fr)||l.instant(Fr.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:e.id,targetId:t.id,depth:b,targetDepth:x});const a=N<=0?Ea.Excessive_complexity_comparing_types_0_and_1:Ea.Excessive_stack_depth_comparing_types_0_and_1,s=To(i||o,a,rc(e),rc(t));c&&(c.errors||(c.errors=[])).push(s)}else if(_){if(s){const e=s();e&&(jS(e,_),_=e)}let r;if(a&&i&&!D&&e.symbol){const i=Uo(e.symbol);if(i.originatingImport&&!sm(i.originatingImport)){if(hk(n_(i.target),t,n,void 0)){r=he(r,Bf(i.originatingImport,Ea.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))}}}const o=qf(Cp(i),i,_,r);u&&pT(o,...u),c&&(c.errors||(c.errors=[])).push(o),c&&c.skipLogging||oo.add(o)}return i&&c&&c.skipLogging&&0===D&&Sn.assert(!!c.errors,"missed opportunity to interact with error."),0!==D;function F(e){_=e.errorInfo,g=e.lastSkippedInfo,h=e.incompatibleStack,T=e.overrideNextErrorInfo,w=e.skipParentCounter,u=e.relatedInfo}function E(){return{errorInfo:_,lastSkippedInfo:g,incompatibleStack:null==h?void 0:h.slice(),overrideNextErrorInfo:T,skipParentCounter:w,relatedInfo:null==u?void 0:u.slice()}}function A(e,...t){T++,g=void 0,(h||(h=[])).push([e,...t])}function O(){const e=h||[];h=void 0;const t=g;if(g=void 0,1===e.length)return L(...e[0]),void(t&&R(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case Ea.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?`${e}`:Os(e,HS(C))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case Ea.Call_signature_return_types_0_and_1_are_incompatible.code:case Ea.Construct_signature_return_types_0_and_1_are_incompatible.code:case Ea.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case Ea.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===Ea.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=Ea.Call_signature_return_types_0_and_1_are_incompatible:t.code===Ea.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=Ea.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else{n=`${t.code===Ea.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===Ea.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===Ea.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===Ea.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`}break;case Ea.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([Ea.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case Ea.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([Ea.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 Sn.fail(`Unhandled Diagnostic: ${t.code}`)}}n?L(")"===n[n.length-1]?Ea.The_types_returned_by_0_are_incompatible_between_these_types:Ea.The_types_of_0_are_incompatible_between_these_types,n):r.shift();for(const[e,...t]of r){const n=e.elidedInCompatabilityPyramid;e.elidedInCompatabilityPyramid=!1,L(e,...t),e.elidedInCompatabilityPyramid=n}t&&R(void 0,...t)}function L(e,...t){Sn.assert(!!i),h&&O(),e.elidedInCompatabilityPyramid||(0===w?_=LS(_,e,...t):w--)}function j(e,...t){L(e,...t),w++}function M(e){Sn.assert(!!_),u?u.push(e):u=[e]}function R(e,t,r){h&&O();const[i,o]=ic(t,r);let a=t,s=i;yT(t)&&!yk(r)&&(a=xT(t),Sn.assert(!bS(a,r),"generalized source shouldn't be assignable"),s=oc(a));if(262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==Vn&&r!==Wn){const e=Wd(r);let n;e&&(bS(a,e)||(n=bS(t,e)))?L(Ea._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,n?i:s,o,rc(e)):(_=void 0,L(Ea._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===Ea.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&le&&vk(t,r).length&&(e=Ea.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===uo)e=Ea.Type_0_is_not_comparable_to_type_1;else if(i===o)e=Ea.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(le&&vk(t,r).length)e=Ea.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(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter((e=>!!(128&e.flags)));return Wt(e.value,n,(e=>e.value))}(t,r);if(e)return void L(Ea.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,rc(e))}e=Ea.Type_0_is_not_assignable_to_type_1}L(e,s,o)}function B(e,t,n){return LT(e)?e.target.readonly&&Qk(t)?(n&&L(Ea.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,rc(e),rc(t)),!1):Xk(t):Gk(e)&&Qk(t)?(n&&L(Ea.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,rc(e),rc(t)),!1):!LT(t)||Kk(e)}function z(e,t,n){return U(e,t,3,n)}function U(e,t,r=3,o=!1,a,s=0){if(e===t)return-1;if(524288&e.flags&&402784252&t.flags)return n===uo&&!(131072&t.flags)&&nk(t,e,n)||nk(e,t,n,o?L:void 0)?-1:(o&&V(e,t,e,t,a),0);const c=ck(e,!1);let l=ck(t,!0);if(c===l)return-1;if(n===po)return c.flags!==l.flags?0:67358815&c.flags?-1:(W(c,l),ee(c,l,!1,0,r));if(262144&c.flags&&Md(c)===l)return-1;if(470302716&c.flags&&1048576&l.flags){const e=l.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(l=ck(t,!0),c===l))return-1}if(n===uo&&!(131072&l.flags)&&nk(l,c,n)||nk(c,l,n,o?L:void 0))return-1;if(469499904&c.flags||469499904&l.flags){if(!(2&s)&&Sw(c)&&8192&Zx(c)&&function(e,t,r){var o;if(!HE(t)||!Q&&4096&Zx(t))return!1;const a=!!(2048&Zx(e));if((n===_o||n===uo)&&(yN(Xn,t)||!a&&WS(t)))return!1;let s,c=t;1048576&t.flags&&(c=ez(e,t,U)||function(e){if(uL(e,67108864)){const t=SN(e,(e=>!(402784252&e.flags)));if(!(131072&t.flags))return t}return e}(t),s=1048576&c.flags?c.types:[c]);for(const t of jd(e))if(K(t,e.symbol)&&!sk(e,t)){if(!WE(c,t.escapedName,a)){if(r){const n=SN(c,HE);if(!i)return Sn.fail();if(OP(i)||Mu(i)||Mu(i.parent)){t.valueDeclaration&&IP(t.valueDeclaration)&&Cp(i)===Cp(t.valueDeclaration.name)&&(i=t.valueDeclaration.name);const e=tc(t),r=PA(e,n),o=r?tc(r):void 0;o?L(Ea.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,rc(n),o):L(Ea.Property_0_does_not_exist_on_type_1,e,rc(n))}else{const r=(null==(o=e.symbol)?void 0:o.declarations)&&De(e.symbol.declarations);let a;if(t.valueDeclaration&&kc(t.valueDeclaration,(e=>e===r))&&Cp(r)===Cp(i)){const e=t.valueDeclaration;Sn.assertNode(e,L_);const r=e.name;i=r,HN(r)&&(a=EA(r,n))}void 0!==a?j(Ea.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,tc(t),rc(n),a):j(Ea.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,tc(t),rc(n))}}return!0}if(s&&!U(n_(t),$(s,t.escapedName),3,r))return r&&A(Ea.Types_of_property_0_are_incompatible,tc(t)),!0}return!1}(c,l,o))return o&&R(a,c,t.aliasSymbol?t:l),0;const _=(n!==uo||uT(c))&&!(2&s)&&405405692&c.flags&&c!==Xn&&2621440&l.flags&&wk(l)&&(jd(c).length>0||vB(c)),u=!!(2048&Zx(c));if(_&&!function(e,t,n){for(const r of jd(e))if(WE(t,r.escapedName,n))return!0;return!1}(c,l,u)){if(o){const n=rc(e.aliasSymbol?e:c),r=rc(t.aliasSymbol?t:l),i=Sp(c,0),o=Sp(c,1);i.length>0&&U(of(i[0]),l,1,!1)||o.length>0&&U(of(o[0]),l,1,!1)?L(Ea.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):L(Ea.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}W(c,l);const d=1048576&c.flags&&c.types.length<4&&!(1048576&l.flags)||1048576&l.flags&&l.types.length<4&&!(469499904&c.flags)?G(c,l,o,s):ee(c,l,o,s,r);if(d)return d}return o&&V(e,t,c,l,a),0}function V(e,t,n,r,o){var a,s;const c=!!nT(e),l=!!nT(t);n=e.aliasSymbol||c?e:n,r=t.aliasSymbol||l?t:r;let u=T>0;if(u&&T--,524288&n.flags&&524288&r.flags){const e=_;B(n,r,!0),_!==e&&(u=!!_)}if(524288&n.flags&&402784252&r.flags)!function(e,t){const n=ac(e.symbol)?rc(e,e.symbol.valueDeclaration):rc(e),r=ac(t.symbol)?rc(t,t.symbol.valueDeclaration):rc(t);(nr===e&&qt===t||rr===e&&Ut===t||ir===e&&Zt===t||ch()===e&&en===t)&&L(Ea._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,r);else if(n.symbol&&524288&n.flags&&Xn===n)L(Ea.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&Zx(n)&&2097152&r.flags){const e=r.types,t=xE(wB.IntrinsicAttributes,i),n=xE(wB.IntrinsicClassAttributes,i);if(!Uc(t)&&!Uc(n)&&(I(e,t)||I(e,n)))return}else _=yp(_,t);if(o||!u){if(R(o,n,r),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!Md(n)){const e=Rx(n);if(e.constraint=nS(r,Px(n,e)),$d(e)){const e=rc(r,n.symbol.declarations[0]);M(Bf(n.symbol.declarations[0],Ea.This_type_parameter_might_need_an_extends_0_constraint,e))}}}else g=[n,r]}function W(e,t){if(Fr&&3145728&e.flags&&3145728&t.flags){const n=e,r=t;if(n.objectFlags&r.objectFlags&32768)return;const o=n.types.length,a=r.types.length;o*a>1e6&&Fr.instant(Fr.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:e.id,sourceSize:o,targetId:t.id,targetSize:a,pos:null==i?void 0:i.pos,end:null==i?void 0:i.end})}}function $(e,t){return Uy(Je(e,((e,n)=>{var r;const i=3145728&(n=ep(n)).flags?cp(n,t):Od(n,t);return he(e,i&&n_(i)||(null==(r=Jp(n,t))?void 0:r.type)||Lt)}),void 0)||r)}function K(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function G(e,t,r,i){if(1048576&e.flags){if(1048576&t.flags){const n=e.origin;if(n&&2097152&n.flags&&t.aliasSymbol&&I(n.types,t))return-1;const r=t.origin;if(r&&1048576&r.flags&&e.aliasSymbol&&I(r.types,e))return-1}return n===uo?Z(e,t,r&&!(402784252&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){if(1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags)return DN(t,-32769);return t}(e,t);for(let e=0;e<o.length;e++){const s=o[e];if(1048576&a.flags&&o.length>=a.types.length&&o.length%a.types.length==0){const t=U(s,a.types[e%a.types.length],3,!1,void 0,r);if(t){i&=t;continue}}const c=U(s,t,1,n,void 0,r);if(!c)return 0;i&=c}return i}(e,t,r&&!(402784252&e.flags),i)}if(1048576&t.flags)return Y(DC(e),t,r&&!(402784252&e.flags)&&!(402784252&t.flags));if(2097152&t.flags)return function(e,t,n,r){let i=-1;const o=t.types;for(const t of o){const o=U(e,t,2,n,void 0,r);if(!o)return 0;i&=o}return i}(e,t,r,2);if(n===uo&&402784252&t.flags){const n=q(e.types,(e=>465829888&e.flags?Wd(e)||At:e));if(n!==e.types){if(131072&(e=rv(n)).flags)return 0;if(!(2097152&e.flags))return U(e,t,1,!1)||U(t,e,1,!1)}}return Z(e,t,!1,1)}function X(e,t){let n=-1;const r=e.types;for(const e of r){const r=Y(e,t,!1);if(!r)return 0;n&=r}return n}function Y(e,t,r){const i=t.types;if(1048576&t.flags){if(wy(i,e))return-1;if(n!==uo&&32768&Zx(t)&&!(1024&e.flags)&&(2688&e.flags||(n===co||n===lo)&&256&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=128&e.flags?qt:256&e.flags?Ut:2048&e.flags?Vt:void 0;return n&&wy(i,n)||t&&wy(i,t)?-1:0}const r=Ww(t,e);if(r){const t=U(e,r,2,!1);if(t)return t}}for(const t of i){const n=U(e,t,2,!1);if(n)return n}if(r){const n=Tk(e,t,U);n&&U(e,n,2,!0)}return 0}function Z(e,t,n,r){const i=e.types;if(1048576&e.flags&&wy(i,t))return-1;const o=i.length;for(let e=0;e<o;e++){const a=U(i[e],t,1,n&&e===o-1,void 0,r);if(a)return a}return 0}function ee(e,t,i,o,a){var s,c,l;if(k)return 0;const u=Lk(e,t,o,n,!1),g=n.get(u);if(void 0!==g&&(!(i&&2&g)||4&g)){if(Qt){const t=24&g;8&t&&nS(e,Fn),16&t&&nS(e,Dn)}return 1&g?-1:0}if(N<=0)return k=!0,0;if(d){if(p.has(u))return 3;const r=u.startsWith("*")?Lk(e,t,o,n,!0):void 0;if(r&&p.has(r))return 3;if(100===b||100===x)return k=!0,0}else d=[],p=new Set,f=[],m=[];const h=y;d[y]=u,p.add(u),y++;const v=S;let T;1&a&&(f[b]=e,b++,1&S||!Jk(e,f,b)||(S|=1)),2&a&&(m[x]=t,x++,2&S||!Jk(t,m,x)||(S|=2));let C,w=0;return Qt&&(T=Qt,Qt=e=>(w|=e?16:8,T(e))),3===S?(null==(s=Fr)||s.instant(Fr.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:e.id,sourceIdStack:f.map((e=>e.id)),targetId:t.id,targetIdStack:m.map((e=>e.id)),depth:b,targetDepth:x}),C=3):(null==(c=Fr)||c.push(Fr.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:e.id,targetId:t.id}),C=function(e,t,i,o){const a=E();let s=function(e,t,i,o,a){let s,c,l=!1,u=e.flags;const d=t.flags;if(n===po){if(3145728&u){let n=X(e,t);return n&&(n&=X(t,e)),n}if(4194304&u)return U(e.type,t.type,3,!1);if(8388608&u&&(s=U(e.objectType,t.objectType,3,!1))&&(s&=U(e.indexType,t.indexType,3,!1)))return s;if(16777216&u&&e.root.isDistributive===t.root.isDistributive&&(s=U(e.checkType,t.checkType,3,!1))&&(s&=U(e.extendsType,t.extendsType,3,!1))&&(s&=U(Db(e),Db(t),3,!1))&&(s&=U(Fb(e),Fb(t),3,!1)))return s;if(33554432&u&&(s=U(e.baseType,t.baseType,3,!1))&&(s&=U(e.constraint,t.constraint,3,!1)))return s;if(!(524288&u))return 0}else if(3145728&u||3145728&d){if(s=G(e,t,i,o))return s;if(!(465829888&u||524288&u&&1048576&d||2097152&u&&467402752&d))return 0}if(17301504&u&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!Ek(e)&&!Ek(t)){const n=Dk(e.aliasSymbol);if(n===r)return 1;const i=Uo(e.aliasSymbol).typeParameters,a=Hp(i),s=y($p(e.aliasTypeArguments,i,a,Tg(e.aliasSymbol.valueDeclaration)),$p(t.aliasTypeArguments,i,a,Tg(e.aliasSymbol.valueDeclaration)),n,o);if(void 0!==s)return s}if(RT(e)&&!e.target.readonly&&(s=U(mm(e)[0],t,1))||RT(t)&&(t.target.readonly||Qk(Wd(e)||e))&&(s=U(e,mm(t)[0],2)))return s;if(262144&d){if(32&Zx(e)&&!e.declaration.nameType&&U(kv(t),bd(e),3)&&!(4&wd(e))){const n=Sd(e),r=ib(t,vd(e));if(s=U(n,r,3,i))return s}if(n===uo&&262144&u){let n=Rd(e);if(n&&$d(e))for(;n&&bN(n,(e=>!!(262144&e.flags)));){if(s=U(n,t,1,!1))return s;n=Rd(n)}return 0}}else if(4194304&d){const n=t.type;if(4194304&u&&(s=U(n,e.type,3,!1)))return s;if(LT(n)){if(s=U(e,by(n),2,i))return s}else{const r=Jd(n);if(r){if(-1===U(e,kv(r,4|t.indexFlags),2,i))return-1}else if(Fd(n)){const t=xd(n),r=bd(n);let o;if(t&&Td(n)){const e=ep(Cd(n)),r=[];hd(e,8576,!1,(e=>{r.push(nS(t,Mx(n.mapper,vd(n),e)))})),o=Uy([...r,t])}else o=t||r;if(-1===U(e,o,2,i))return-1}}}else if(8388608&d){if(8388608&u){if((s=U(e.objectType,t.objectType,3,i))&&(s&=U(e.indexType,t.indexType,3,i)),s)return s;i&&(c=_)}if(n===_o||n===uo){const n=t.objectType,r=t.indexType,l=Wd(n)||n,u=Wd(r)||r;if(!Bv(l)&&!Jv(u)){const t=ab(l,u,4|(l!==n?2:0));if(t){if(i&&c&&F(a),s=U(e,t,2,i,void 0,o))return s;i&&c&&_&&(_=h([c])<=h([_])?c:_)}}}i&&(c=void 0)}else if(Fd(t)&&n!==po){const n=!!t.declaration.nameType,r=Sd(t),o=wd(t);if(!(8&o)){if(!n&&8388608&r.flags&&r.objectType===e&&r.indexType===vd(t))return-1;if(!Fd(e)){const r=n?xd(t):bd(t),l=kv(e,2),u=4&o,d=u?cd(r,l):void 0;if(u?!(131072&d.flags):U(r,l,3)){const o=Sd(t),a=vd(t),c=DN(o,-98305);if(!n&&8388608&c.flags&&c.indexType===a){if(s=U(e,c.objectType,2,i))return s}else{const t=ib(e,n?d||r:d?rv([d,a]):a);if(s=U(t,o,3,i))return s}}c=_,F(a)}}}else if(16777216&d){if(Jk(t,m,x,10))return 3;const n=t;if(!(n.root.inferTypeParameters||(p=n.root,p.isDistributive&&(Hx(p.checkType,p.node.trueType)||Hx(p.checkType,p.node.falseType)))||16777216&e.flags&&e.root===n.root)){const t=!bS(iS(n.checkType),iS(n.extendsType)),r=!t&&bS(oS(n.checkType),oS(n.extendsType));if((s=t?-1:U(e,Db(n),2,!1,void 0,o))&&(s&=r?-1:U(e,Fb(n),2,!1,void 0,o),s))return s}}else if(134217728&d){if(134217728&u){if(n===uo)return function(e,t){const n=e.texts[0],r=t.texts[0],i=e.texts[e.texts.length-1],o=t.texts[t.texts.length-1],a=Math.min(n.length,r.length),s=Math.min(i.length,o.length);return n.slice(0,a)!==r.slice(0,a)||i.slice(i.length-s)!==o.slice(o.length-s)}(e,t)?0:-1;nS(e,Dn)}if(pw(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&_w(e,t))return-1;var p;if(8650752&u){if(!(8388608&u&&8388608&d)){const n=Md(e)||At;if(s=U(n,t,1,!1,void 0,o))return s;if(s=U(Fu(n,e),t,1,i&&n!==At&&!(d&u&262144),void 0,o))return s;if(Zd(e)){const n=Md(e.indexType);if(n&&(s=U(ib(e.objectType,n),t,1,i)))return s}}}else if(4194304&u){if(s=U(vn,t,1,i))return s}else if(134217728&u&&!(524288&d)){if(!(134217728&d)){const n=Wd(e);if(n&&n!==e&&(s=U(n,t,1,i)))return s}}else if(268435456&u)if(268435456&d){if(e.symbol!==t.symbol)return 0;if(s=U(e.type,t.type,3,i))return s}else{const n=Wd(e);if(n&&(s=U(n,t,1,i)))return s}else if(16777216&u){if(Jk(e,f,b,10))return 3;if(16777216&d){const n=e.root.inferTypeParameters;let r,o=e.extendsType;if(n){const e=qC(n,void 0,0,z);vw(e.inferences,t.extendsType,o,1536),o=nS(o,e.mapper),r=e.mapper}if(fS(o,t.extendsType)&&(U(e.checkType,t.checkType,3)||U(t.checkType,e.checkType,3))&&((s=U(nS(Db(e),r),Db(t),3,i))&&(s&=U(Fb(e),Fb(t),3,i)),s))return s}else{const n=$d(e)?qd(e):void 0;if(n&&(s=U(n,t,1,i)))return s}const n=zd(e);if(n&&(s=U(n,t,1,i)))return s}else{if(n!==co&&n!==lo&&(32&Zx(g=t)&&4&wd(g))&&WS(e))return-1;if(Fd(t))return Fd(e)&&(s=function(e,t,r){const i=n===uo||(n===po?wd(e)===wd(t):Dd(e)<=Dd(t));if(i){let n;if(n=U(bd(t),nS(bd(e),Dd(e)<0?Fn:Dn),3,r)){const i=Dx([vd(e)],[vd(t)]);if(nS(xd(e),i)===nS(xd(t),i))return n&U(nS(Sd(e),i),Sd(t),3,r)}}return 0}(e,t,i))?s:0;const p=!!(402784252&u);if(n!==po)u=(e=ep(e)).flags;else if(Fd(e))return 0;if(4&Zx(e)&&4&Zx(t)&&e.target===t.target&&!LT(e)&&!Ek(e)&&!Ek(t)){if(iT(e))return-1;const n=Nk(e.target);if(n===r)return 1;const i=y(mm(e),mm(t),n,o);if(void 0!==i)return i}else{if(Gk(t)?xN(e,Xk):Kk(t)&&xN(e,(e=>LT(e)&&!e.target.readonly)))return n!==po?U(Mp(e,Ut)||kt,Mp(t,Ut)||kt,3,i):0;if(jT(e)&&LT(t)&&!jT(t)){const n=Hd(e);if(n!==e)return U(n,t,1,i)}else if((n===co||n===lo)&&WS(t)&&8192&Zx(t)&&!WS(e))return 0}if(2621440&u&&524288&d){const n=i&&_===a.errorInfo&&!p;if(s=ie(e,t,n,void 0,!1,o),s&&(s&=oe(e,t,0,n,o),s&&(s&=oe(e,t,1,n,o),s&&(s&=ue(e,t,p,n,o)))),l&&s)_=c||_||a.errorInfo;else if(s)return s}if(2621440&u&&1048576&d){const r=DN(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const i=jd(e),o=qw(i,t);if(!o)return 0;let a=1;for(const n of o)if(a*=TN(i_(n)),a>25)return null==(r=Fr)||r.instant(Fr.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:e.id,targetId:t.id,numCombinations:a}),0;const s=new Array(o.length),c=new Set;for(let e=0;e<o.length;e++){const t=o[e],n=i_(t);s[e]=1048576&n.flags?n.types:[n],c.add(t.escapedName)}const l=gn(s),_=[];for(const r of l){let i=!1;e:for(const a of t.types){for(let i=0;i<o.length;i++){const s=o[i],c=bp(a,s.escapedName);if(!c)continue e;if(s===c)continue;if(!ne(e,t,s,c,(e=>r[i]),!1,0,H||n===uo))continue e}xe(_,a,Ft),i=!0}if(!i)return 0}let u=-1;for(const t of _)if(u&=ie(e,t,!1,c,!1,0),u&&(u&=oe(e,t,0,!1,0),u&&(u&=oe(e,t,1,!1,0),!u||LT(e)&&LT(t)||(u&=ue(e,t,!1,!1,0)))),!u)return u;return u}(e,r);if(t)return t}}}var g;return 0;function h(e){return e?Je(e,((e,t)=>e+1+h(t.next)),0):0}function y(e,t,o,u){if(s=function(e=r,t=r,i=r,o,a){if(e.length!==t.length&&n===po)return 0;const s=e.length<=t.length?e.length:t.length;let c=-1;for(let r=0;r<s;r++){const s=r<i.length?i[r]:1,l=7&s;if(4!==l){const i=e[r],_=t[r];let u=-1;if(8&s?u=n===po?U(i,_,3,!1):mS(i,_):1===l?u=U(i,_,3,o,void 0,a):2===l?u=U(_,i,3,o,void 0,a):3===l?(u=U(_,i,3,!1),u||(u=U(i,_,3,o,void 0,a))):(u=U(i,_,3,o,void 0,a),u&&(u&=U(_,i,3,o,void 0,a))),!u)return 0;c&=u}}return c}(e,t,o,i,u))return s;if(re(o,(e=>!!(24&e))))return c=void 0,void F(a);const d=t&&function(e,t){for(let n=0;n<t.length;n++)if(1==(7&t[n])&&16384&e[n].flags)return!0;return!1}(t,o);if(l=!d,o!==r&&!d){if(l&&(!i||!re(o,(e=>0==(7&e)))))return 0;c=_,F(a)}}}(e,t,i,o,a);if(n!==po){if(!s&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(465829888&i.flags){let e=Md(i);for(;e&&21233664&e.flags;)e=Md(e);e&&(n=he(n,e),t&&(n=he(n,i)))}else(469892092&i.flags||XS(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||XS(t))&&(n=he(n,t));return ck(rv(n),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&xN(n,(t=>t!==e))&&(s=U(n,t,1,!1,void 0,o))}s&&!(2&o)&&2097152&t.flags&&!Bv(t)&&2621440&e.flags?(s&=ie(e,t,i,void 0,!1,0),s&&Sw(e)&&8192&Zx(e)&&(s&=ue(e,t,!1,i,0))):s&&qb(t)&&!Xk(t)&&2097152&e.flags&&3670016&ep(e).flags&&!re(e.types,(e=>e===t||!!(262144&Zx(e))))&&(s&=ie(e,t,i,void 0,!0,o))}s&&F(a);return s}(e,t,i,o),null==(l=Fr)||l.pop()),Qt&&(Qt=T),1&a&&b--,2&a&&x--,S=v,C?(-1===C||0===b&&0===x)&&D(-1===C||3===C):(n.set(u,2|(i?4:0)|w),N--,D(!1)),C;function D(e){for(let t=h;t<y;t++)p.delete(d[t]),e&&(n.set(d[t],1|w),N--);y=h}}function te(e,t){if(!t||0===e.length)return e;let n;for(let r=0;r<e.length;r++)t.has(e[r].escapedName)?n||(n=e.slice(0,r)):n&&n.push(e[r]);return n||e}function ne(e,t,r,i,o,a,s,c){const l=zx(r),_=zx(i);if(2&l||2&_){if(r.valueDeclaration!==i.valueDeclaration)return a&&(2&l&&2&_?L(Ea.Types_have_separate_declarations_of_a_private_property_0,tc(i)):L(Ea.Property_0_is_private_in_type_1_but_not_in_type_2,tc(i),rc(2&l?e:t),rc(2&l?t:e))),0}else if(4&_){if(!function(e,t){return!jk(t,(t=>{return!!(4&zx(t))&&(n=e,r=Mk(t),!jk(n,(e=>{const t=Mk(e);return!!t&&c_(t,r)})));var n,r}))}(r,i))return a&&L(Ea.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,tc(i),rc(Mk(r)||e),rc(Mk(i)||t)),0}else if(4&l)return a&&L(Ea.Property_0_is_protected_in_type_1_but_public_in_type_2,tc(i),rc(e),rc(t)),0;if(n===lo&&iL(r)&&!iL(i))return 0;const u=function(e,t,n,r,i){const o=H&&!!(48&Jx(t)),a=rl(i_(t),!1,o);return U(n(e),a,3,r,void 0,i)}(r,i,o,a,s);return u?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&L(Ea.Property_0_is_optional_in_type_1_but_required_in_type_2,tc(i),rc(e),rc(t)),0):u:(a&&A(Ea.Types_of_property_0_are_incompatible,tc(i)),0)}function ie(e,t,r,i,o,s){if(n===po)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=te(Id(e),n),i=te(Id(t),n);if(r.length!==i.length)return 0;let o=-1;for(const e of r){const n=Od(t,e.escapedName);if(!n)return 0;const r=Vk(e,n,U);if(!r)return 0;o&=r}return o}(e,t,i);let c=-1;if(LT(t)){if(Xk(e)){if(!t.target.readonly&&(Gk(e)||LT(e)&&e.target.readonly))return 0;const n=gm(e),o=gm(t),a=LT(e)?4&e.target.combinedFlags:4,l=4&t.target.combinedFlags,_=LT(e)?e.target.minLength:0,u=t.target.minLength;if(!a&&n<u)return r&&L(Ea.Source_has_0_element_s_but_target_requires_1,n,u),0;if(!l&&o<_)return r&&L(Ea.Source_has_0_element_s_but_target_allows_only_1,_,o),0;if(!l&&(a||o<n))return r&&(_<u?L(Ea.Target_requires_0_element_s_but_source_may_have_fewer,u):L(Ea.Target_allows_only_0_element_s_but_source_may_have_more,o)),0;const d=mm(e),p=mm(t),f=function(e,t){const n=P(e.elementFlags,(e=>!(e&t)));return n>=0?n:e.elementFlags.length}(t.target,11),m=xy(t.target,11),g=t.target.hasRestElement;let h=!!i;for(let a=0;a<n;a++){const l=LT(e)?e.target.elementFlags[a]:4,_=n-1-a,u=g&&a>=f?o-1-Math.min(_,m):a,y=t.target.elementFlags[u];if(8&y&&!(8&l))return r&&L(Ea.Source_provides_no_match_for_variadic_element_at_position_0_in_target,u),0;if(8&l&&!(12&y))return r&&L(Ea.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,a,u),0;if(1&y&&!(1&l))return r&&L(Ea.Source_provides_no_match_for_required_element_at_position_0_in_target,u),0;if(h&&((12&l||12&y)&&(h=!1),h&&(null==i?void 0:i.has(""+a))))continue;const v=kC(d[a],!!(l&y&2)),b=p[u],x=U(v,8&l&&4&y?Bh(b):kC(b,!!(2&y)),3,r,void 0,s);if(!x)return r&&(o>1||n>1)&&(g&&a>=f&&_>=m&&f!==n-m-1?A(Ea.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,n-m-1,u):A(Ea.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,a,u)),0;c&=x}return c}if(12&t.target.combinedFlags)return 0}const l=!(n!==co&&n!==lo||Sw(e)||iT(e)||LT(e)),u=iw(e,t,l,!1);if(u)return r&&function(e,t){const n=xp(e,0),r=xp(e,1),i=Id(e);if((n.length||r.length)&&!i.length)return!!(Sp(t,0).length&&n.length||Sp(t,1).length&&r.length);return!0}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&Lc(n.valueDeclaration)&&$N(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=Ry(e.symbol,r);if(i&&bp(e,i)){const n=AC.getDeclarationName(e.symbol.valueDeclaration),i=AC.getDeclarationName(t.symbol.valueDeclaration);return void L(Ea.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,aa(r),aa(""===n.escapedText?fB:n),aa(""===i.escapedText?fB:i))}}const o=$e(nw(e,t,r,!1));if((!a||a.code!==Ea.Class_0_incorrectly_implements_interface_1.code&&a.code!==Ea.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(i=!0),1===o.length){const r=tc(n,void 0,0,20);L(Ea.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...ic(e,t)),v(n.declarations)&&M(Bf(n.declarations[0],Ea._0_is_declared_here,r)),i&&_&&T++}else B(e,t,!1)&&(o.length>5?L(Ea.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,rc(e),rc(t),J(o.slice(0,4),(e=>tc(e))).join(", "),o.length-4):L(Ea.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,rc(e),rc(t),J(o,(e=>tc(e))).join(", ")),i&&_&&T++)}(e,t,u,l),0;if(Sw(t))for(const n of te(jd(e),i))if(!Od(t,n.escapedName)){if(!(32768&n_(n).flags))return r&&L(Ea.Property_0_does_not_exist_on_type_1,tc(n),rc(t)),0}const d=jd(t),p=LT(e)&&LT(t);for(const a of te(d,i)){const i=a.escapedName;if(!(4194304&a.flags)&&(!p||HT(i)||"length"===i)&&(!o||16777216&a.flags)){const o=bp(e,i);if(o&&o!==a){const i=ne(e,t,o,a,i_,r,s,n===uo);if(!i)return 0;c&=i}}}return c}function oe(e,t,r,i,o){var a,s;if(n===po)return function(e,t,n){const r=Sp(e,n),i=Sp(t,n);if(r.length!==i.length)return 0;let o=-1;for(let e=0;e<r.length;e++){const t=Wk(r[e],i[e],!1,!1,!1,U);if(!t)return 0;o&=t}return o}(e,t,r);if(t===Mn||e===Mn)return-1;const c=e.symbol&&JI(e.symbol.valueDeclaration),l=t.symbol&&JI(t.symbol.valueDeclaration),_=Sp(e,c&&1===r?0:r),u=Sp(t,l&&1===r?0:r);if(1===r&&_.length&&u.length){const e=!!(4&_[0].flags),t=!!(4&u[0].flags);if(e&&!t)return i&&L(Ea.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(e,t,n){if(!e.declaration||!t.declaration)return!0;const r=kb(e.declaration,6),i=kb(t.declaration,6);if(2===i)return!0;if(4===i&&2!==r)return!0;if(4!==i&&!r)return!0;n&&L(Ea.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,_c(r),_c(i));return!1}(_[0],u[0],i))return 0}let d=-1;const p=1===r?se:ae,f=Zx(e),m=Zx(t);if(64&f&&64&m&&e.symbol===t.symbol||4&f&&4&m&&e.target===t.target)for(let e=0;e<u.length;e++){const t=ce(_[e],u[e],!0,i,o,p(_[e],u[e]));if(!t)return 0;d&=t}else if(1===_.length&&1===u.length){const e=n===uo||!!C.noStrictGenericChecks,t=Pe(_),c=Pe(u);if(d=ce(t,c,e,i,o,p(t,c)),!d&&i&&1===r&&f&m&&(176===(null==(a=c.declaration)?void 0:a.kind)||176===(null==(s=t.declaration)?void 0:s.kind))){const e=e=>nc(e,void 0,262144,r);return L(Ea.Type_0_is_not_assignable_to_type_1,e(t),e(c)),L(Ea.Types_of_construct_signatures_are_incompatible),d}}else e:for(const t of u){const n=E();let a=i;for(const e of _){const r=ce(e,t,!0,a,o,p(e,t));if(r){d&=r,F(n);continue e}a=!1}return a&&L(Ea.Type_0_provides_no_match_for_the_signature_1,rc(e),nc(t,void 0,void 0,r)),0}return d}function ae(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>A(Ea.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,rc(e),rc(t)):(e,t)=>A(Ea.Call_signature_return_types_0_and_1_are_incompatible,rc(e),rc(t))}function se(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>A(Ea.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,rc(e),rc(t)):(e,t)=>A(Ea.Construct_signature_return_types_0_and_1_are_incompatible,rc(e),rc(t))}function ce(e,t,r,i,o,a){const s=n===co?16:n===lo?24:0;return qS(r?Sf(e):e,r?Sf(t):t,s,i,L,a,(function(e,t,n){return U(e,t,3,n,void 0,o)}),Dn)}function _e(e,t,n,r){const i=U(e.type,t.type,3,n,void 0,r);return!i&&n&&(e.keyType===t.keyType?L(Ea._0_index_signatures_are_incompatible,rc(e.keyType)):L(Ea._0_and_1_index_signatures_are_incompatible,rc(e.keyType),rc(t.keyType))),i}function ue(e,t,r,i,o){if(n===po)return function(e,t){const n=Lp(e),r=Lp(t);if(n.length!==r.length)return 0;for(const t of r){const n=jp(e,t.keyType);if(!n||!U(n.type,t.type,3)||n.isReadonly!==t.isReadonly)return 0}return-1}(e,t);const a=Lp(t),s=re(a,(e=>e.keyType===qt));let c=-1;for(const t of a){const a=n!==lo&&!r&&s&&1&t.type.flags?-1:Fd(e)&&s?U(Sd(e),t.type,3,i):de(e,t,i,o);if(!a)return 0;c&=a}return c}function de(e,t,r,i){const o=Bp(e,t.keyType);return o?_e(o,t,r,i):1&i||!(n!==lo||8192&Zx(e))||!wC(e)?(r&&L(Ea.Index_signature_for_type_0_is_missing_in_type_1,rc(t.keyType),rc(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=2097152&e.flags?Ld(e):Id(e);for(const s of a)if(!sk(e,s)&&Ep(gv(s,8576),o)){const e=i_(s),a=U(le||32768&e.flags||o===Ut||!(16777216&s.flags)?e:eN(e,524288),t.type,3,n,void 0,r);if(!a)return n&&L(Ea.Property_0_is_incompatible_with_index_signature,tc(s)),0;i&=a}for(const a of Lp(e))if(Ep(a.keyType,o)){const e=_e(a,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function yk(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!b(e.types,yk);if(465829888&e.flags){const t=Md(e);if(t&&t!==e)return yk(t)}return uT(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function vk(e,t){return LT(e)&&LT(t)?r:jd(t).filter((t=>bk(jc(e,t.escapedName),n_(t))))}function bk(e,t){return!!e&&!!t&&uL(e,32768)&&!!TC(t)}function Tk(e,t,n=gS){return ez(e,t,n)||function(e,t){const n=Zx(e);if(20&n&&1048576&t.flags)return D(t.types,(t=>{if(524288&t.flags){const r=n&Zx(t);if(4&r)return e.target===t.target;if(16&r)return!!e.aliasSymbol&&e.aliasSymbol===t.aliasSymbol}return!1}))}(e,t)||function(e,t){if(128&Zx(e)&&bN(t,Zk))return D(t.types,(e=>!Zk(e)))}(e,t)||function(e,t){let n=0;const r=Sp(e,n).length>0||(n=1,Sp(e,n).length>0);if(r)return D(t.types,(e=>Sp(e,n).length>0))}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const i of t.types)if(!(406978556&i.flags)){const t=rv([kv(e),kv(i)]);if(4194304&t.flags)return i;if(uT(t)||1048576&t.flags){const e=1048576&t.flags?j(t.types,uT):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function Ck(e,t,n){const r=e.types,i=r.map((e=>402784252&e.flags?0:-1));for(const[e,o]of t){let t=!1;for(let a=0;a<r.length;a++)if(i[a]){const s=Rc(r[a],o);s&&n(e(),s)?t=!0:i[a]=3}for(let e=0;e<r.length;e++)3===i[e]&&(i[e]=t?0:-1)}const o=I(i,0)?Uy(r.filter(((e,t)=>i[t])),0):e;return 131072&o.flags?e:o}function wk(e){if(524288&e.flags){const t=Ad(e);return 0===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.indexInfos.length&&t.properties.length>0&&N(t.properties,(e=>!!(16777216&e.flags)))}return!!(2097152&e.flags)&&N(e.types,wk)}function Nk(e){return e===er||e===tr||8&e.objectFlags?T:Fk(e.symbol,e.typeParameters)}function Dk(e){return Fk(e,Uo(e).typeParameters)}function Fk(e,t=r){var n,i;const o=Uo(e);if(!o.variances){null==(n=Fr)||n.push(Fr.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:Cy(Z_(e))});const a=Bi;Bi||(Bi=!0,Ri=Li.length),o.variances=r;const s=[];for(const n of t){const t=Ak(n);let r=16384&t?8192&t?0:1:8192&t?2:void 0;if(void 0===r){let t=!1,i=!1;const o=Qt;Qt=e=>e?i=!0:t=!0;const a=Pk(e,n,zn),s=Pk(e,n,qn);r=(bS(s,a)?1:0)|(bS(a,s)?2:0),3===r&&bS(Pk(e,n,Un),a)&&(r=4),Qt=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}s.push(r)}a||(Bi=!1,Ri=0),o.variances=s,null==(i=Fr)||i.pop({variances:s.map(Sn.formatVariance)})}return o.variances}function Pk(e,t,n){const r=Px(t,n),i=Z_(e);if(Uc(i))return i;const o=524288&e.flags?Pm(e,Cx(Uo(e).typeParameters,r)):dm(i,Cx(i.typeParameters,r));return ht.add(Cy(o)),o}function Ek(e){return ht.has(Cy(e))}function Ak(e){var t;return 28672&Je(null==(t=e.symbol)?void 0:t.declarations,((e,t)=>e|wb(t)),0)}function Ik(e){return 262144&e.flags&&!Rd(e)}function Ok(e){return function(e){return!!(4&Zx(e))&&!e.node}(e)&&re(mm(e),(e=>!!(262144&e.flags)||Ok(e)))}function Lk(e,t,n,r,i){if(r===po&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return Ok(e)&&Ok(t)?function(e,t,n,r){const i=[];let o="";const a=c(e,0),s=c(t,0);return`${o}${a},${s}${n}`;function c(e,t=0){let n=""+e.target.id;for(const a of mm(e)){if(262144&a.flags){if(r||Ik(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&Ok(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function jk(e,t){if(!(6&Jx(e)))return t(e);for(const n of e.links.containingType.types){const r=bp(n,e.escapedName),i=r&&jk(r,t);if(i)return i}}function Mk(e){return e.parent&&32&e.parent.flags?Z_(ms(e)):void 0}function Rk(e){const t=Mk(e),n=t&&M_(t)[0];return n&&jc(n,e.escapedName)}function Bk(e,t,n){return jk(t,(t=>!!(4&zx(t,n))&&!c_(e,Mk(t))))?void 0:e}function Jk(e,t,n,r=3){if(n>=r){if(96==(96&Zx(e))&&(e=zk(e)),2097152&e.flags)return re(e.types,(e=>Jk(e,t,n,r)));const i=Uk(e);let o=0,a=0;for(let e=0;e<n;e++){const n=t[e];if(qk(n,i)){if(n.id>=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function zk(e){let t;for(;96==(96&Zx(e))&&(t=Cd(e))&&(t.symbol||2097152&t.flags&&re(t.types,(e=>!!e.symbol)));)e=t;return e}function qk(e,t){return 96==(96&Zx(e))&&(e=zk(e)),2097152&e.flags?re(e.types,(e=>qk(e,t))):Uk(e)===t}function Uk(e){if(524288&e.flags&&!kw(e)){if(4&Zx(e)&&e.node)return e.node;if(e.symbol&&!(16&Zx(e)&&32&e.symbol.flags))return e.symbol;if(LT(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function Vk(e,t,n){if(e===t)return-1;const r=6&zx(e);if(r!==(6&zx(t)))return 0;if(r){if(uR(e)!==uR(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return iL(e)!==iL(t)?0:n(n_(e),n_(t))}function Wk(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=SO(e),i=SO(t),o=kO(e),a=kO(t),s=TO(e),c=TO(t);return r===i&&o===a&&s===c||!!(n&&o<=a)}(e,t,n))return 0;if(v(e.typeParameters)!==v(t.typeParameters))return 0;if(t.typeParameters){const n=Dx(e.typeParameters,t.typeParameters);for(let r=0;r<t.typeParameters.length;r++){const i=e.typeParameters[r],a=t.typeParameters[r];if(!(i===a||o(nS(rm(i),n)||At,rm(a)||At)&&o(nS(Xd(i),n)||At,Xd(a)||At)))return 0}e=Bx(e,n,!0)}let a=-1;if(!r){const n=tf(e);if(n){const e=tf(t);if(e){const t=o(n,e);if(!t)return 0;a&=t}}}const s=SO(t);for(let n=0;n<s;n++){const r=vO(e,n),i=o(vO(t,n),r);if(!i)return 0;a&=i}if(!i){const n=nf(e),r=nf(t);a&=n||r?function(e,t,n){return e&&t&&Qy(e,t)?e.type===t.type?-1:e.type&&t.type?n(e.type,t.type):0:0}(n,r,o):o(of(e),of(t))}return a}function Hk(e){return Je(e,((e,t)=>e|(1048576&t.flags?Hk(t.types):t.flags)),0)}function $k(e){if(1===e.length)return e[0];const t=H?q(e,(e=>SN(e,(e=>!(98304&e.flags))))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=xT(n);if(t??(t=e),e===n||e!==t)return!1}return!0}(t)?Uy(t):Je(t,((e,t)=>yS(e,t)?t:e));return t===e?n:_C(n,98304&Hk(e))}function Kk(e){return!!(4&Zx(e))&&(e.target===er||e.target===tr)}function Gk(e){return!!(4&Zx(e))&&e.target===tr}function Xk(e){return Kk(e)||LT(e)}function Qk(e){return Kk(e)&&!Gk(e)||LT(e)&&!e.target.readonly}function Yk(e){return Kk(e)?mm(e)[0]:void 0}function Zk(e){return Kk(e)||!(98304&e.flags)&&bS(e,lr)}function tT(e){return Qk(e)||!(98305&e.flags)&&bS(e,sr)}function nT(e){if(!(4&Zx(e)&&3&Zx(e.target)))return;if(33554432&Zx(e))return 67108864&Zx(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&Zx(t)){const e=P_(t);if(e&&80!==e.expression.kind&&211!==e.expression.kind)return}const n=M_(t);if(1!==n.length)return;if(wu(e.symbol).size)return;let r=v(t.typeParameters)?nS(n[0],Dx(t.typeParameters,mm(e).slice(0,t.typeParameters.length))):n[0];return v(mm(e))>v(t.typeParameters)&&(r=Fu(r,Ie(mm(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function rT(e){return H?e===ln:e===jt}function iT(e){const t=Yk(e);return!!t&&rT(t)}function oT(e){let t;return LT(e)||!!bp(e,"0")||Zk(e)&&!!(t=jc(e,"length"))&&xN(t,(e=>!!(256&e.flags)))}function sT(e){return Zk(e)||oT(e)}function cT(e){return!(240544&e.flags)}function uT(e){return!!(109472&e.flags)}function dT(e){const t=Hd(e);return 2097152&t.flags?re(t.types,uT):uT(t)}function yT(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||N(e.types,uT):uT(e))}function xT(e){return 1056&e.flags?V_(e):402653312&e.flags?qt:256&e.flags?Ut:2048&e.flags?Vt:512&e.flags?Zt:1048576&e.flags?function(e){const t=`B${Cy(e)}`;return ho(t)??yo(t,CN(e,xT))}(e):e}function NT(e){return 402653312&e.flags?qt:288&e.flags?Ut:2048&e.flags?Vt:512&e.flags?Zt:1048576&e.flags?CN(e,NT):e}function DT(e){return 1056&e.flags&&px(e)?V_(e):128&e.flags&&px(e)?qt:256&e.flags&&px(e)?Ut:2048&e.flags&&px(e)?Vt:512&e.flags&&px(e)?Zt:1048576&e.flags?CN(e,DT):e}function PT(e){return 8192&e.flags?en:1048576&e.flags?CN(e,PT):e}function IT(e,t){return AL(e,t)||(e=PT(DT(e))),dx(e)}function OT(e,t,n,r){if(e&&uT(e)){e=IT(e,t?$M(n,t,r):void 0)}return e}function LT(e){return!!(4&Zx(e)&&8&e.target.objectFlags)}function jT(e){return LT(e)&&!!(8&e.target.combinedFlags)}function RT(e){return jT(e)&&1===e.target.elementFlags.length}function BT(e){return WT(e,e.target.fixedLength)}function qT(e,t,n){return CN(e,(e=>{const r=e,i=BT(r);return i?n&&t>=Sy(r.target)?Uy([i,n]):i:Lt}))}function WT(e,t,n=0,r=!1,i=!1){const o=gm(e)-n;if(t<o){const n=mm(e),a=[];for(let r=t;r<o;r++){const t=n[r];a.push(8&e.target.elementFlags[r]?ib(t,Ut):t)}return r?rv(a):Uy(a,i?0:1)}}function GT({value:e}){return"0"===e.base10Value}function XT(e){return SN(e,(e=>Yw(e,4194304)))}function tC(e){return 4&e.flags?Ai:8&e.flags?Ii:64&e.flags?Oi:e===Kt||e===Ht||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&GT(e)?e:rn}function _C(e,t){const n=t&~e.flags&98304;return 0===n?e:Uy(32768===n?[e,Lt]:65536===n?[e,Jt]:[e,Lt,Jt])}function dC(e,t=!1){Sn.assert(H);const n=t?Rt:Lt;return e===n||1048576&e.flags&&e.types[0]===n?e:Uy([e,n])}function yC(e){return H?tN(e,2097152):e}function vC(e){return H?Uy([e,Bt]):e}function bC(e){return H?kN(e,Bt):e}function xC(e,t,n){return n?Il(t)?dC(e):vC(e):e}function SC(e,t){return Al(t)?yC(e):Pl(t)?bC(e):e}function kC(e,t){return le&&t?kN(e,Mt):e}function TC(e){return e===Mt||!!(1048576&e.flags)&&e.types[0]===Mt}function CC(e){return le?kN(e,Mt):eN(e,524288)}function wC(e){const t=Zx(e);return 2097152&e.flags?N(e.types,wC):!(!e.symbol||0==(7040&e.symbol.flags)||32&e.symbol.flags||vB(e))||!!(4194304&t)||!!(1024&t&&wC(e.source))}function NC(e,t){const n=Ao(e.flags,e.escapedName,8&Jx(e));n.declarations=e.declarations,n.parent=e.parent,n.links.type=t,n.links.target=e,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration);const r=Uo(e).nameType;return r&&(n.links.nameType=r),n}function DC(e){if(!(Sw(e)&&8192&Zx(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=op();for(const r of Id(e)){const e=n_(r),i=t(e);n.set(r.escapedName,i===e?r:NC(r,i))}return n}(e,DC),i=Ls(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function FC(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function PC(e){if(!e.siblings){const t=[];for(const n of PC(e.parent))if(Sw(n)){const r=Od(n,e.propertyName);r&&vN(n_(r),(e=>{t.push(e)}))}e.siblings=t}return e.siblings}function EC(e){if(!e.resolvedProperties){const t=new Map;for(const n of PC(e))if(Sw(n)&&!(2097152&Zx(n)))for(const e of jd(n))t.set(e.escapedName,e);e.resolvedProperties=$e(t.values())}return e.resolvedProperties}function IC(e,t){if(!(4&e.flags))return e;const n=n_(e),r=jC(n,t&&FC(t,e.escapedName,void 0));return r===n?e:NC(e,r)}function OC(e){const t=gt.get(e.escapedName);if(t)return t;const n=NC(e,Rt);return n.flags|=16777216,gt.set(e.escapedName,n),n}function LC(e){return jC(e,void 0)}function jC(e,t){if(196608&Zx(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=kt;else if(Sw(e))n=function(e,t){const n=op();for(const r of Id(e))n.set(r.escapedName,IC(r,t));if(t)for(const e of EC(t))n.has(e.escapedName)||n.set(e.escapedName,OC(e));const i=Ls(e.symbol,n,r,r,q(Lp(e),(e=>jf(e.keyType,LC(e.type),e.isReadonly))));return i.objectFlags|=266240&Zx(e),i}(e,t);else if(1048576&e.flags){const r=t||FC(void 0,void 0,e.types),i=q(e.types,(e=>98304&e.flags?e:jC(e,r)));n=Uy(i,re(i,WS)?2:1)}else 2097152&e.flags?n=rv(q(e.types,LC)):Xk(e)&&(n=dm(e.target,q(mm(e),LC)));return n&&void 0===t&&(e.widened=n),n||e}return e}function MC(e){let t=!1;if(65536&Zx(e)){if(1048576&e.flags)if(re(e.types,WS))t=!0;else for(const n of e.types)MC(n)&&(t=!0);if(Xk(e))for(const n of mm(e))MC(n)&&(t=!0);if(Sw(e))for(const n of Id(e)){const e=n_(n);65536&Zx(e)&&(MC(e)||To(n.valueDeclaration,Ea.Object_literal_s_property_0_implicitly_has_an_1_type,tc(n),rc(LC(e))),t=!0)}}return t}function RC(e,t,n){const r=rc(LC(t));if(Tg(e)&&!_T(Cp(e),C))return;let i;switch(e.kind){case 226:case 172:case 171:i=Q?Ea.Member_0_implicitly_has_an_1_type:Ea.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const t=e;if(HN(t.name)){const n=Fc(t.name);if((bD(t.parent)||fD(t.parent)||CD(t.parent))&&t.parent.parameters.includes(t)&&(ta(t,t.name.escapedText,788968,void 0,t.name.escapedText,!0)||n&&aS(n))){const n="arg"+t.parent.parameters.indexOf(t),r=If(t.name)+(t.dotDotDotToken?"[]":"");return void wo(Q,e,Ea.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?Q?Ea.Rest_parameter_0_implicitly_has_an_any_type:Ea.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Q?Ea.Parameter_0_implicitly_has_an_1_type:Ea.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(i=Ea.Binding_element_0_implicitly_has_an_1_type,!Q)return;break;case 324:return void To(e,Ea.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 330:return void(Q&&SE(e.parent)&&To(e.parent.tagName,Ea.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Q&&!e.name)return void To(e,3===n?Ea.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:Ea.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=Q?3===n?Ea._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:Ea._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:Ea._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:return void(Q&&To(e,Ea.Mapped_object_type_implicitly_has_an_any_template_type));default:i=Q?Ea.Variable_0_implicitly_has_an_1_type:Ea.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}wo(Q,e,i,If(Mc(e)),r)}function BC(e,t,n){c((()=>{!(Q&&65536&Zx(t))||n&&PP(e)||MC(t)||RC(e,t,n)}))}function JC(e,t,n){const r=SO(e),i=SO(t),o=CO(e),a=CO(t),s=a?i-1:i,c=o?s:Math.min(r,s),l=tf(e);if(l){const e=tf(t);e&&n(l,e)}for(let r=0;r<c;r++)n(vO(e,r),vO(t,r));a&&n(xO(e,c,Bd(a)&&!bN(a,tT)),a)}function zC(e,t,n){const r=nf(e),i=nf(t);r&&i&&Qy(r,i)&&r.type&&i.type?n(r.type,i.type):n(of(e),of(t))}function qC(e,t,n,r){return UC(e.map(HC),t,n,r||gS)}function UC(e,t,n,r){const i={inferences:e,signature:t,flags:n,compareTypes:r,mapper:Fn,nonFixingMapper:Fn};return i.mapper=function(e){return Ax(J(e.inferences,(e=>e.typeParameter)),J(e.inferences,((t,n)=>()=>(t.isFixed||(!function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=174===t.kind?zF(t,2):_P(t,2);r&&vw(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),VC(e.inferences),t.isFixed=!0),ww(e,n)))))}(i),i.nonFixingMapper=function(e){return Ax(J(e.inferences,(e=>e.typeParameter)),J(e.inferences,((t,n)=>()=>ww(e,n))))}(i),i}function VC(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function WC(e,t,n){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:n})}function HC(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function $C(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 KC(e){return e&&e.mapper}function GC(e){const t=Zx(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!XC(e)&&(4&t&&(e.node||re(mm(e),GC))||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!XC(e)&&re(e.types,GC));return 3899393&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function XC(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=rp(e.aliasSymbol,265);return!(!t||!kc(t.parent,(e=>312===e.kind||267!==e.kind&&"quit")))}return!1}function QC(e,t,n=0){return!!(e===t||3145728&e.flags&&re(e.types,(e=>QC(e,t,n)))||n<3&&16777216&e.flags&&(QC(Db(e),t,n+1)||QC(Fb(e),t,n+1)))}function ZC(e,t,n){const r=e.id+","+t.id+","+n.id;if(gi.has(r))return gi.get(r);const i=e.id+","+(t.target||t).id;if(I(hi,i))return;hi.push(i);const o=function(e,t,n){if(!(jp(e,qt)||0!==jd(e).length&&ew(e)))return;if(Kk(e))return Bh(tw(mm(e)[0],t,n),Gk(e));if(LT(e)){return py(J(Ty(e),(e=>tw(e,t,n))),4&wd(t)?q(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=Ds(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return hi.pop(),gi.set(r,o),o}function ew(e){return!(262144&Zx(e))||Sw(e)&&re(jd(e),(e=>ew(n_(e))))||LT(e)&&re(Ty(e),ew)}function tw(e,t,n){const r=ib(n.type,vd(t)),i=Sd(t),o=HC(r);return vw([o],e,i),ow(o)||At}function*nw(e,t,n,r){const i=jd(t);for(const t of i)if(!mu(t)&&(n||!(16777216&t.flags||48&Jx(t)))){const n=bp(e,t.escapedName);if(n){if(r){const e=n_(t);if(109472&e.flags){const r=n_(n);1&r.flags||dx(r)===dx(e)||(yield t)}}}else yield t}}function iw(e,t,n,r){return Fe(nw(e,t,n,r))}function ow(e){return e.candidates?Uy(e.candidates,2):e.contraCandidates?rv(e.contraCandidates):void 0}function aw(e){return!!Wo(e).skipDirectInference}function sw(e){return!(!e.symbol||!re(e.symbol.declarations,aw))}function cw(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function lw(e){return gx(ST(e))}function _w(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return bS(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return Je(n,((e,t)=>Nv(t,e)),e)===e&&_w(e,t)}return!1}function uw(e,t){if(e===t||5&t.flags)return!0;if(2097152&t.flags)return N(t.types,(t=>t===In||uw(e,t)));if(128&e.flags){const n=e.value;return!!(8&t.flags&&cw(n,!1)||64&t.flags&&kT(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&_w(fx(n),t)||134217728&t.flags&&pw(e,t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&bS(e.types[0],t)}return bS(e,t)}function dw(e,t){return 128&e.flags?yw([e.value],r,t):134217728&e.flags?O(e.texts,t.texts)?J(e.types,mw):yw(e.texts,e.types,t):void 0}function pw(e,t){const n=dw(e,t);return!!n&&N(n,((e,n)=>uw(e,t.types[n])))}function mw(e){return 402653317&e.flags?e:Cv(["",""],[e])}function yw(e,t,n){const r=e.length-1,i=e[0],o=e[r],a=n.texts,s=a.length-1,c=a[0],l=a[s];if(0===r&&i.length<c.length+l.length||!i.startsWith(c)||!o.endsWith(l))return;const _=o.slice(0,o.length-l.length),u=[];let d=0,p=c.length;for(let t=1;t<s;t++){const n=a[t];if(n.length>0){let t=d,r=p;for(;r=f(t).indexOf(n,r),!(r>=0);){if(t++,t===e.length)return;r=0}m(t,r),p+=n.length}else if(p<f(d).length)m(d,p+1);else{if(!(d<r))return;m(d+1,0)}}return m(r,f(r).length),u;function f(t){return t<r?e[t]:_}function m(n,r){const i=n===d?fx(f(n).slice(p,r)):Cv([e[d].slice(p),...e.slice(d+1,n),f(n).slice(0,r)],t.slice(d,n));u.push(i),d=n,p=r}}function vw(e,t,n,i=0,o=!1){let a,s,c,l,_=!1,u=2048,d=0;function p(t,s){if(GC(s)){if(t===Ct||t===wt){const e=a;return a=t,p(s,s),void(a=e)}if(t.aliasSymbol&&t.aliasSymbol===s.aliasSymbol){if(t.aliasTypeArguments){const e=Uo(t.aliasSymbol).typeParameters,n=Hp(e);h($p(t.aliasTypeArguments,e,n,Tg(t.aliasSymbol.valueDeclaration)),$p(s.aliasTypeArguments,e,n,Tg(t.aliasSymbol.valueDeclaration)),Dk(t.aliasSymbol))}}else if(t===s&&3145728&t.flags)for(const e of t.types)p(e,e);else{if(1048576&s.flags){const[e,n]=g(1048576&t.flags?t.types:[t],s.types,bw),[r,i]=g(e,n,xw);if(0===i.length)return;if(s=Uy(i),0===r.length)return void f(t,s,1);t=Uy(r)}else if(2097152&s.flags&&!N(s.types,qb)){if(!(1048576&t.flags)){const[e,n]=g(2097152&t.flags?t.types:[t],s.types,fS);if(0===e.length||0===n.length)return;t=rv(e),s=rv(n)}}else 41943040&s.flags&&(s=lb(s));if(8650752&s.flags){if(sw(t))return;const r=b(s);if(r){if(262144&Zx(t)||t===Pt)return;if(!r.isFixed){const c=a||t;if(c===wt)return;(void 0===r.priority||i<r.priority)&&(r.candidates=void 0,r.contraCandidates=void 0,r.topLevel=!0,r.priority=i),i===r.priority&&(o&&!_?I(r.contraCandidates,c)||(r.contraCandidates=he(r.contraCandidates,c),VC(e)):I(r.candidates,c)||(r.candidates=he(r.candidates,c),VC(e))),!(128&i)&&262144&s.flags&&r.topLevel&&!QC(n,s)&&(r.topLevel=!1,VC(e))}return void(u=Math.min(u,i))}const c=Vv(s,!1);if(c!==s)p(t,c);else if(8388608&s.flags){const e=Vv(s.indexType,!1);if(465829888&e.flags){const n=Xv(Vv(s.objectType,!1),e,!1);n&&n!==s&&p(t,n)}}}if(!(4&Zx(t)&&4&Zx(s)&&(t.target===s.target||Kk(t)&&Kk(s)))||t.node&&s.node)if(4194304&t.flags&&4194304&s.flags)y(t.type,s.type);else if((yT(t)||4&t.flags)&&4194304&s.flags){!function(e,t,n){const r=i;i|=n,y(e,t),i=r}(function(e){const t=op();vN(e,(e=>{if(!(128&e.flags))return;const n=wc(e.value),r=Ao(4,n);r.links.type=kt,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}));const n=4&e.flags?[jf(qt,Pn,!1)]:r;return Ls(void 0,t,r,r,n)}(t),s.type,256)}else if(8388608&t.flags&&8388608&s.flags)p(t.objectType,s.objectType),p(t.indexType,s.indexType);else if(268435456&t.flags&&268435456&s.flags)t.symbol===s.symbol&&p(t.type,s.type);else if(33554432&t.flags)p(t.baseType,s),f(Jm(t),s,4);else if(16777216&s.flags)m(t,s,k);else if(3145728&s.flags)x(t,s.types,s.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)p(t,s)}else if(134217728&s.flags)!function(e,t){const n=dw(e,t),r=t.types;if(n||N(t.texts,(e=>0===e.length)))for(let e=0;e<r.length;e++){const t=n?n[e]:rn,i=r[e];if(128&t.flags&&8650752&i.flags){const e=b(i),n=e?Wd(e.typeParameter):void 0;if(n&&!zc(n)){const e=1048576&n.flags?n.types:[n];let r=Je(e,((e,t)=>e|t.flags),0);if(!(4&r)){const n=t.value;296&r&&!cw(n,!0)&&(r&=-297),2112&r&&!kT(n,!0)&&(r&=-2113);const o=Je(e,((e,i)=>i.flags&r?4&e.flags?e:4&i.flags?t:134217728&e.flags?e:134217728&i.flags&&pw(t,i)?t:268435456&e.flags?e:268435456&i.flags&&n===Dv(i.symbol,n)?t:128&e.flags?e:128&i.flags&&i.value===n?i:8&e.flags?e:8&i.flags?mx(+n):32&e.flags?e:32&i.flags?mx(+n):256&e.flags?e:256&i.flags&&i.value===+n?i:64&e.flags?e:64&i.flags?lw(n):2048&e.flags?e:2048&i.flags&&bT(i.value)===n?i:16&e.flags?e:16&i.flags?"true"===n?Gt:"false"===n?Ht:Zt:512&e.flags?e:512&i.flags&&i.intrinsicName===n?i:32768&e.flags?e:32768&i.flags&&i.intrinsicName===n?i:65536&e.flags?e:65536&i.flags&&i.intrinsicName===n?i:e:e),rn);if(!(131072&o.flags)){p(o,i);continue}}}}p(t,i)}}(t,s);else{if(t=lp(t),!(512&i&&467927040&t.flags)){const e=ep(t);if(e!==t&&!(2621440&e.flags))return p(e,s);t=e}2621440&t.flags&&m(t,s,T)}else h(mm(t),mm(s),Nk(t.target))}}}function f(e,t,n){const r=i;i|=n,p(e,t),i=r}function m(e,t,n){const r=e.id+","+t.id,i=s&&s.get(r);if(void 0!==i)return void(u=Math.min(u,i));(s||(s=new Map)).set(r,-1);const o=u;u=2048;const a=d;(c??(c=[])).push(e),(l??(l=[])).push(t),Jk(e,c,c.length,2)&&(d|=1),Jk(t,l,l.length,2)&&(d|=2),3!==d?n(e,t):u=-1,l.pop(),c.pop(),d=a,s.set(r,u),u=Math.min(u,o)}function g(e,t,n){let r,i;for(const o of t)for(const t of e)n(t,o)&&(p(t,o),r=Se(r,t),i=Se(i,o));return[r?M(e,(e=>!I(r,e))):e,i?M(t,(e=>!I(i,e))):t]}function h(e,t,n){const r=e.length<t.length?e.length:t.length;for(let i=0;i<r;i++)i<n.length&&2==(7&n[i])?y(e[i],t[i]):p(e[i],t[i])}function y(e,t){o=!o,p(e,t),o=!o}function v(e,t){$||1024&i?y(e,t):p(e,t)}function b(t){if(8650752&t.flags)for(const n of e)if(t===n.typeParameter)return n}function x(e,t,n){let r=0;if(1048576&n){let n;const o=1048576&e.flags?e.types:[e],a=new Array(o.length);let s=!1;for(const e of t)if(b(e))n=e,r++;else for(let t=0;t<o.length;t++){const n=u;u=2048,p(o[t],e),u===i&&(a[t]=!0),s=s||-1===u,u=Math.min(u,n)}if(0===r){const n=function(e){let t;for(const n of e){const e=2097152&n.flags&&D(n.types,(e=>!!b(e)));if(!e||t&&e!==t)return;t=e}return t}(t);return void(n&&f(e,n,1))}if(1===r&&!s){const e=V(o,((e,t)=>a[t]?void 0:e));if(e.length)return void p(Uy(e),n)}}else for(const n of t)b(n)?r++:p(e,n);if(2097152&n?1===r:r>0)for(const n of t)b(n)&&f(e,n,1)}function S(e,t,n){if(1048576&n.flags){let r=!1;for(const i of n.types)r=S(e,t,i)||r;return r}if(4194304&n.flags){const r=b(n.type);if(r&&!r.isFixed&&!sw(e)){const i=ZC(e,t,n);i&&f(i,r.typeParameter,262144&Zx(e)?16:8)}return!0}if(262144&n.flags){f(kv(e,e.pattern?2:0),n,32);const r=Md(n);if(r&&S(e,t,r))return!0;return p(Uy(oe(J(jd(e),n_),J(Lp(e),(e=>e!==ci?e.type:rn)))),Sd(t)),!0}return!1}function k(e,t){if(16777216&e.flags)p(e.checkType,t.checkType),p(e.extendsType,t.extendsType),p(Db(e),Db(t)),p(Fb(e),Fb(t));else{!function(e,t,n,r){const o=i;i|=r,x(e,t,n),i=o}(e,[Db(t),Fb(t)],t.flags,o?64:0)}}function T(e,t){var n,r;if(4&Zx(e)&&4&Zx(t)&&(e.target===t.target||Kk(e)&&Kk(t)))h(mm(e),mm(t),Nk(e.target));else{if(Fd(e)&&Fd(t)){p(bd(e),bd(t)),p(Sd(e),Sd(t));const n=xd(e),r=xd(t);n&&r&&p(n,r)}if(32&Zx(t)&&!t.declaration.nameType){if(S(e,t,bd(t)))return}if(!function(e,t){return LT(e)&&LT(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength<e.target.fixedLength)}(e,t):!!iw(e,t,!1,!0)&&!!iw(t,e,!1,!1)}(e,t)){if(Xk(e)){if(LT(t)){const a=gm(e),s=gm(t),c=mm(t),l=t.target.elementFlags;if(LT(e)&&(o=t,gm(i=e)===gm(o)&&N(i.target.elementFlags,((e,t)=>(12&e)==(12&o.target.elementFlags[t]))))){for(let t=0;t<s;t++)p(mm(e)[t],c[t]);return}const _=LT(e)?Math.min(e.target.fixedLength,t.target.fixedLength):0,u=Math.min(LT(e)?xy(e.target,3):0,t.target.hasRestElement?xy(t.target,3):0);for(let t=0;t<_;t++)p(mm(e)[t],c[t]);if(!LT(e)||a-_-u==1&&4&e.target.elementFlags[_]){const t=mm(e)[_];for(let e=_;e<s-u;e++)p(8&l[e]?Bh(t):t,c[e])}else{const i=s-_-u;if(2===i){if(l[_]&l[_+1]&8){const t=b(c[_]);t&&void 0!==t.impliedArity&&(p(vy(e,_,u+a-t.impliedArity),c[_]),p(vy(e,_+t.impliedArity,u),c[_+1]))}else if(8&l[_]&&4&l[_+1]){const t=null==(n=b(c[_]))?void 0:n.typeParameter,r=t&&Wd(t);if(r&&LT(r)&&!r.target.hasRestElement){const t=r.target.fixedLength;p(vy(e,_,a-(_+t)),c[_]),p(WT(e,_+t,u),c[_+1])}}else if(4&l[_]&&8&l[_+1]){const n=null==(r=b(c[_+1]))?void 0:r.typeParameter,i=n&&Wd(n);if(i&&LT(i)&&!i.target.hasRestElement){const n=i.target.fixedLength,r=a-xy(t.target,3),o=r-n,s=py(mm(e).slice(o,r),e.target.elementFlags.slice(o,r),!1,e.target.labeledElementDeclarations&&e.target.labeledElementDeclarations.slice(o,r));p(WT(e,_,u+n),c[_]),p(s,c[_+1])}}}else if(1===i&&8&l[_]){const n=2&t.target.elementFlags[s-1];f(vy(e,_,u),c[_],n?2:0)}else if(1===i&&4&l[_]){const t=WT(e,_,u);t&&p(t,c[_])}}for(let t=0;t<u;t++)p(mm(e)[a-t-1],c[s-t-1]);return}if(Kk(t))return void F(e,t)}!function(e,t){const n=Id(t);for(const t of n){const n=bp(e,t.escapedName);n&&!re(n.declarations,aw)&&p(n_(n),n_(t))}}(e,t),C(e,t,0),C(e,t,1),F(e,t)}var i,o}}function C(e,t,n){const r=Sp(e,n),i=r.length;if(i>0){const e=Sp(t,n),o=e.length;for(let t=0;t<o;t++){w(Tf(r[Math.max(i-o+t,0)]),Sf(e[t]))}}}function w(e,t){if(!(64&e.flags)){const n=_,r=t.declaration?t.declaration.kind:0;_=_||174===r||173===r||176===r,JC(e,t,v),_=n}zC(e,t,p)}function F(e,t){const n=Zx(e)&Zx(t)&32?8:0,r=Lp(t);if(wC(e))for(const t of r){const r=[];for(const n of jd(e))if(Ep(gv(n,8576),t.keyType)){const e=n_(n);r.push(16777216&n.flags?CC(e):e)}for(const n of Lp(e))Ep(n.keyType,t.keyType)&&r.push(n.type);r.length&&f(Uy(r),t.type,n)}for(const t of r){const r=Bp(e,t.keyType);r&&f(r.type,t.type,n)}}p(t,n)}function bw(e,t){return t===Mt?e===t:fS(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function xw(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function Sw(e){return!!(128&Zx(e))}function kw(e){return!!(16512&Zx(e))}function Tw(e){return 416&e.priority?rv(e.contraCandidates):Je(e.contraCandidates,((e,t)=>yS(t,e)?t:e))}function Cw(e,t){const n=function(e){if(e.length>1){const t=M(e,kw);if(t.length){const n=Uy(t,2);return oe(M(e,(e=>!kw(e))),[n])}}return e}(e.candidates),r=function(e){const t=Rd(e);return!!t&&uL(16777216&t.flags?zd(t):t,406978556)}(e.typeParameter)||Bd(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=nf(e);return n?!!n.type&&QC(n.type,t):QC(of(e),t)}(t,e.typeParameter)),o=r?q(n,dx):i?q(n,DT):n;return LC(416&e.priority?Uy(o,2):$k(o))}function ww(e,t){const n=e.inferences[t];if(!n.inferredType){let o,a;if(e.signature){const s=n.candidates?Cw(n,e.signature):void 0,c=n.contraCandidates?Tw(n):void 0;if(s||c){const t=s&&(!c||!(131072&s.flags)&&re(n.contraCandidates,(e=>yS(s,e)))&&N(e.inferences,(e=>e!==n&&Rd(e.typeParameter)!==n.typeParameter||N(e.candidates,(e=>yS(e,s))))));o=t?s:c,a=t?c:s}else if(1&e.flags)o=cn;else{const a=Xd(n.typeParameter);a&&(o=nS(a,(r=function(e,t){const n=e.inferences.slice(t);return Dx(J(n,(e=>e.typeParameter)),J(n,(()=>At)))}(e,t),i=e.nonFixingMapper,r?Ix(5,r,i):i)))}}else o=ow(n);n.inferredType=o||Nw(!!(2&e.flags));const s=Rd(n.typeParameter);if(s){const t=nS(s,e.nonFixingMapper);o&&e.compareTypes(o,Fu(t,o))||(n.inferredType=a&&e.compareTypes(a,Fu(t,a))?a:t)}}var r,i;return n.inferredType}function Nw(e){return e?kt:At}function Dw(e){const t=[];for(let n=0;n<e.inferences.length;n++)t.push(ww(e,n));return t}function Fw(e){switch(e.escapedText){case"document":case"console":return Ea.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return C.types?Ea.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:Ea.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return C.types?Ea.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:Ea.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return C.types?Ea.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:Ea.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return Ea.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(eF(e.parent))return Ea.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return 304===e.parent.kind?Ea.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:Ea.Cannot_find_name_0}}function Pw(e){const t=Wo(e);return t.resolvedSymbol||(t.resolvedSymbol=!Ip(e)&&ta(e,e.escapedText,1160127,Fw(e),e,!Vx(e),!1)||yt),t.resolvedSymbol}function Ew(e){return!!(33554432&e.flags||kc(e,(e=>ZF(e)||eP(e)||DD(e))))}function Aw(e,t,n,r){switch(e.kind){case 80:if(!Gv(e)){const i=Pw(e);return i!==yt?`${r?PB(r):"-1"}|${Cy(t)}|${Cy(n)}|${EB(i)}`:void 0}case 110:return`0|${r?PB(r):"-1"}|${Cy(t)}|${Cy(n)}`;case 235:case 217:return Aw(e.expression,t,n,r);case 166:const i=Aw(e.left,t,n,r);return i&&i+"."+e.right.escapedText;case 211:case 212:const o=jw(e);if(void 0!==o){const i=Aw(e.expression,t,n,r);return i&&i+"."+o}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${PB(e)}#${Cy(t)}`}}function Iw(e,t){switch(t.kind){case 217:case 235:return Iw(e,t.expression);case 226:return Vb(t)&&Iw(e,t.left)||pF(t)&&28===t.operatorToken.kind&&Iw(e,t.right)}switch(e.kind){case 236:return 236===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return Gv(e)?110===t.kind:80===t.kind&&Pw(e)===Pw(t)||(GF(t)||GD(t))&&xs(Pw(e))===ds(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 235:case 217:return Iw(e.expression,t);case 211:case 212:const n=jw(e),r=sS(t)?jw(t):void 0;return void 0!==n&&void 0!==r&&r===n&&Iw(e.expression,t.expression);case 166:return sS(t)&&e.right.escapedText===jw(t)&&Iw(e.left,t.expression);case 226:return pF(e)&&28===e.operatorToken.kind&&Iw(e.right,t)}return!1}function jw(e){if(YD(e))return e.name.escapedText;if(ZD(e))return Fy((t=e).argumentExpression)?wc(t.argumentExpression.text):Kb(t.argumentExpression)?function(e){const t=Ha(e,111551,!0);if(!t||!(tD(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=Bl(n);if(r){const e=Mw(r);if(void 0!==e)return e}if($u(n)&&Qo(n,e)){const e=Rg(n);if(e)return Mw(VL(e));if(WP(n))return Mf(n.name)}}(t.argumentExpression):void 0;var t;if(GD(e)){const t=Yc(e);return t?wc(t):void 0}return _D(e)?""+e.parent.parameters.indexOf(e):void 0}function Mw(e){return 8192&e.flags?e.escapedName:384&e.flags?wc(""+e.value):void 0}function Rw(e,t){for(;sS(e);)if(Iw(e=e.expression,t))return!0;return!1}function Jw(e,t){for(;Pl(e);)if(Iw(e=e.expression,t))return!0;return!1}function zw(e,t){if(e&&1048576&e.flags){const n=sp(e,t);if(n&&2&Jx(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=192==(192&n.links.checkFlags)&&!Rv(n_(n))),!!n.links.isDiscriminantProperty}return!1}function qw(e,t){let n;for(const r of e)if(zw(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function Uw(e){const t=e.types;if(!(t.length<10||32768&Zx(e)||j(t,(e=>!!(59506688&e.flags)))<10)){if(void 0===e.keyPropertyName){const n=b(t,(e=>59506688&e.flags?b(jd(e),(e=>uT(n_(e))?e.escapedName:void 0)):void 0)),r=n&&function(e,t){const n=new Map;let r=0;for(const i of e)if(61603840&i.flags){const e=jc(i,t);if(e){if(!yT(e))return;let t=!1;vN(e,(e=>{const r=Cy(dx(e)),o=n.get(r);o?o!==At&&(n.set(r,At),t=!0):n.set(r,i)})),t||r++}}return r>=10&&2*r>=e.length?n:void 0}(t,n);e.keyPropertyName=r?n:"",e.constituentMap=r}return e.keyPropertyName.length?e.keyPropertyName:void 0}}function Vw(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(Cy(dx(t)));return r!==At?r:void 0}function Ww(e,t){const n=Uw(e),r=n&&jc(t,n);return r&&Vw(e,r)}function Hw(e,t){return Iw(e,t)||Rw(e,t)}function $w(e,t){if(e.arguments)for(const n of e.arguments)if(Hw(t,n)||Jw(n,t))return!0;return!(211!==e.expression.kind||!Hw(t,e.expression.expression))}function Kw(e){return(!e.id||e.id<0)&&(e.id=yB,yB++),e.id}function Gw(e,t){if(e===t)return e;if(131072&t.flags)return t;const n=`A${Cy(e)},${Cy(t)}`;return ho(n)??yo(n,function(e,t){const n=SN(e,(e=>function(e,t){if(!(1048576&e.flags))return bS(e,t);for(const n of e.types)if(bS(n,t))return!0;return!1}(t,e))),r=512&t.flags&&px(t)?CN(n,ux):n;return bS(t,r)?r:e}(e,t))}function Xw(e){const t=Ad(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&yS(e,Qn))}function Qw(e,t){return Zw(e,t)&t}function Yw(e,t){return 0!==Qw(e,t)}function Zw(e,t){467927040&e.flags&&(e=Wd(e)||At);const n=e.flags;if(268435460&n)return H?16317953:16776705;if(134217856&n){const t=128&n&&""===e.value;return H?t?12123649:7929345:t?12582401:16776705}if(40&n)return H?16317698:16776450;if(256&n){const t=0===e.value;return H?t?12123394:7929090:t?12582146:16776450}if(64&n)return H?16317188:16775940;if(2048&n){const t=GT(e);return H?t?12122884:7928580:t?12581636:16775940}if(16&n)return H?16316168:16774920;if(528&n)return H?e===Ht||e===Kt?12121864:7927560:e===Ht||e===Kt?12580616:16774920;if(524288&n){return 0==(t&(H?83427327:83886079))?0:16&Zx(e)&&WS(e)?H?83427327:83886079:Xw(e)?H?7880640:16728e3:H?7888800:16736160}return 16384&n?9830144:32768&n?26607360:65536&n?42917664:12288&n?H?7925520:16772880:67108864&n?H?7888800:16736160:131072&n?0:1048576&n?Je(e.types,((e,n)=>e|Zw(n,t)),0):2097152&n?function(e,t){const n=uL(e,402784252);let r=0,i=134217727;for(const o of e.types)if(!(n&&524288&o.flags)){const e=Zw(o,t);r|=e,i&=e}return 8256&r|134209471&i}(e,t):83886079}function eN(e,t){return SN(e,(e=>Yw(e,t)))}function tN(e,t){const n=nN(eN(H&&2&e.flags?Ln:e,t));if(H)switch(t){case 524288:return CN(n,(e=>Yw(e,65536)?rv([e,Yw(e,131072)&&!uL(n,65536)?Uy([Pn,Jt]):Pn]):e));case 1048576:return CN(n,(e=>Yw(e,131072)?rv([e,Yw(e,65536)&&!uL(n,32768)?Uy([Pn,Lt]):Pn]):e));case 2097152:case 4194304:return CN(n,(e=>Yw(e,262144)?function(e){return _r||(_r=Wg("NonNullable",524288,void 0)||yt),_r!==yt?Pm(_r,[e]):rv([e,Pn])}(e):e))}return n}function nN(e){return e===Ln?At:e}function rN(e,t){return t?Uy([Kc(e),VL(t)]):e}function iN(e,t){var n;const r=pv(t);if(!fC(r))return Nt;const i=mC(r);return jc(e,i)||aN(null==(n=Jp(e,i))?void 0:n.type)||Nt}function oN(e,t){return xN(e,oT)&&function(e,t){const n=jc(e,""+t);return n||(xN(e,LT)?qT(e,t,C.noUncheckedIndexedAccess?Lt:void 0):void 0)}(e,t)||aN(kM(65,e,Lt,void 0))||Nt}function aN(e){return e&&C.noUncheckedIndexedAccess?Uy([e,Mt]):e}function sN(e){return Bh(kM(65,e,Lt,void 0)||Nt)}function cN(e){return 226===e.parent.kind&&e.parent.left===e||250===e.parent.kind&&e.parent.initializer===e}function lN(e){return iN(_N(e.parent),e.name)}function _N(e){const{parent:t}=e;switch(t.kind){case 249:return qt;case 250:return SM(t)||Nt;case 226:return function(e){return 209===e.parent.kind&&cN(e.parent)||303===e.parent.kind&&cN(e.parent.parent)?rN(_N(e),e.right):VL(e.right)}(t);case 220:return Lt;case 209:return function(e,t){return oN(_N(e),e.elements.indexOf(t))}(t,e);case 230:return function(e){return sN(_N(e.parent))}(t);case 303:return lN(t);case 304:return function(e){return rN(lN(e),e.objectAssignmentInitializer)}(t)}return Nt}function uN(e){return Wo(e).resolvedType||VL(e)}function dN(e){return 260===e.kind?function(e){return e.initializer?uN(e.initializer):249===e.parent.parent.kind?qt:250===e.parent.parent.kind&&SM(e.parent.parent)||Nt}(e):function(e){const t=e.parent,n=dN(t.parent);return rN(206===t.kind?iN(n,e.propertyName||e.name):e.dotDotDotToken?sN(n):oN(n,t.elements.indexOf(e)),e.initializer)}(e)}function pN(e){switch(e.kind){case 217:return pN(e.expression);case 226:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return pN(e.left);case 28:return pN(e.right)}}return e}function fN(e){const{parent:t}=e;return 217===t.kind||226===t.kind&&64===t.operatorToken.kind&&t.left===e||226===t.kind&&28===t.operatorToken.kind&&t.right===e?fN(t):e}function mN(e){return 296===e.kind?dx(VL(e.expression)):rn}function gN(e){const t=Wo(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(mN(n))}return t.switchTypes}function hN(e){if(re(e.caseBlock.clauses,(e=>296===e.kind&&!Qu(e.expression))))return;const t=[];for(const n of e.caseBlock.clauses){const e=296===n.kind?n.expression.text:void 0;t.push(e&&!I(t,e)?e:void 0)}return t}function yN(e,t){return!!(e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!wy(t.types,n))return!1;return!0}if(1056&e.flags&&V_(e)===t)return!0;return wy(t.types,e)}(e,t))}function vN(e,t){return 1048576&e.flags?b(e.types,t):t(e)}function bN(e,t){return 1048576&e.flags?re(e.types,t):t(e)}function xN(e,t){return 1048576&e.flags?N(e.types,t):t(e)}function SN(e,t){if(1048576&e.flags){const n=e.types,r=M(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&1048576&i.flags){const e=i.types,a=M(e,(e=>!!(1048576&e.flags)||t(e)));if(e.length-a.length==n.length-r.length){if(1===a.length)return a[0];o=qy(1048576,a)}}return Yy(r,16809984&e.objectFlags,void 0,void 0,o)}return 131072&e.flags||t(e)?e:rn}function kN(e,t){return SN(e,(e=>e!==t))}function TN(e){return 1048576&e.flags?e.types.length:1}function CN(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let o,a=!1;for(const e of i){const r=1048576&e.flags?CN(e,t,n):t(e);a||(a=e!==r),r&&(o?o.push(r):o=[r])}return a?o&&Uy(o,n?0:1):e}function wN(e,t,n,r){return 1048576&e.flags&&n?Uy(J(e.types,t),1,n,r):CN(e,t)}function DN(e,t){return SN(e,(e=>0!=(e.flags&t)))}function PN(e,t){return uL(e,134217804)&&uL(t,402655616)?CN(e,(e=>4&e.flags?DN(t,402653316):Mv(e)&&!uL(t,402653188)?DN(t,128):8&e.flags?DN(t,264):64&e.flags?DN(t,2112):e)):e}function EN(e){return 0===e.flags}function AN(e){return 0===e.flags?e.type:e}function IN(e,t){return t?{flags:0,type:131072&e.flags?cn:e}:e}function ON(e){return pt[e.id]||(pt[e.id]=function(e){const t=Ds(256);return t.elementType=e,t}(e))}function LN(e,t){const n=DC(xT(HL(t)));return yN(n,e.elementType)?e:ON(Uy([e.elementType,n]))}function jN(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?cr:Bh(1048576&t.flags?Uy(t.types,2):t));var t}function MN(e){return 256&Zx(e)?jN(e):e}function RN(e){return 256&Zx(e)?e.elementType:rn}function BN(e){const t=fN(e),n=t.parent,r=YD(n)&&("length"===n.name.escapedText||213===n.parent.kind&&HN(n.name)&&Hy(n.name)),i=212===n.kind&&n.expression===t&&226===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!qh(n.parent)&&dL(VL(n.argumentExpression),296);return r||i}function JN(e,t){if(8752&(e=ja(e)).flags)return n_(e);if(7&e.flags){if(262144&Jx(e)){const t=e.links.syntheticOrigin;if(t&&JN(t))return n_(e)}const r=e.valueDeclaration;if(r){if((GF(n=r)||pD(n)||dD(n)||_D(n))&&(Yv(n)||Tg(n)&&Hu(n)&&n.initializer&&VT(n.initializer)&&eb(n.initializer)))return n_(e);if(GF(r)&&250===r.parent.parent.kind){const e=r.parent.parent,t=zN(e.expression,void 0);if(t){return kM(e.awaitModifier?15:13,t,Lt,void 0)}}t&&pT(t,Bf(r,Ea._0_needs_an_explicit_type_annotation,tc(e)))}}var n}function zN(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return JN(xs(Pw(e)),t);case 110:return function(e){const t=$m(e,!1,!1);if(y_(t)){const e=Kp(t);if(e.thisParameter)return JN(e.thisParameter)}if(w_(t.parent)){const e=ds(t.parent);return mb(t)?n_(e):Z_(e).thisType}}(e);case 108:return sF(e);case 211:{const n=zN(e.expression,t);if(n){const r=e.name;let i;if($N(r)){if(!n.symbol)return;i=bp(n,Ry(n.symbol,r.escapedText))}else i=bp(n,r.escapedText);return i&&JN(i,t)}return}case 217:return zN(e.expression,t)}}function qN(e){const t=Wo(e);let n=t.effectsSignature;if(void 0===n){let r;if(pF(e)){r=gL(ZE(e.right))}else 244===e.parent.kind?r=zN(e.expression,void 0):108!==e.expression.kind&&(r=Pl(e)?aA(SC($L(e.expression),e.expression),e.expression):ZE(e.expression));const i=Sp(r&&ep(r)||At,0),o=1!==i.length||i[0].typeParameters?re(i,UN)?BI(e):void 0:i[0];n=t.effectsSignature=o&&UN(o)?o:oi}return n===oi?void 0:n}function UN(e){return!!(nf(e)||e.declaration&&131072&(af(e.declaration)||At).flags)}function VN(e){const t=KN(e,!1);return Yr=e,Zr=t,t}function WN(e){const t=Qh(e,!0);return 97===t.kind||226===t.kind&&(56===t.operatorToken.kind&&(WN(t.left)||WN(t.right))||57===t.operatorToken.kind&&WN(t.left)&&WN(t.right))}function KN(e,t){for(;;){if(e===Yr)return Zr;const n=e.flags;if(4096&n){if(!t){const t=Kw(e),n=Qi[t];return void 0!==n?n:Qi[t]=KN(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=qN(e.node);if(t){const n=nf(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&WN(t))return!1}if(131072&of(t).flags)return!1}e=e.antecedent}else{if(4&n)return re(e.antecedents,(e=>KN(e,!1)));if(8&n){const t=e.antecedents;if(void 0===t||0===t.length)return!1;e=t[0]}else{if(!(128&n)){if(1024&n){Yr=void 0;const t=e.target,n=t.antecedents;t.antecedents=e.antecedents;const r=KN(e.antecedent,!1);return t.antecedents=n,r}return!(1&n)}if(e.clauseStart===e.clauseEnd&&QO(e.switchStatement))return!1;e=e.antecedent}}}}function GN(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=Kw(e),n=Yi[t];return void 0!==n?n:Yi[t]=GN(e,!0)}t=!1}if(496&n)e=e.antecedent;else if(512&n){if(108===e.node.expression.kind)return!0;e=e.antecedent}else{if(4&n)return N(e.antecedents,(e=>GN(e,!1)));if(!(8&n)){if(1024&n){const t=e.target,n=t.antecedents;t.antecedents=e.antecedents;const r=GN(e.antecedent,!1);return t.antecedents=n,r}return!!(1&n)}e=e.antecedents[0]}}}function XN(e){switch(e.kind){case 110:return!0;case 80:if(!Gv(e)){const t=Pw(e);return tD(t)||UT(t)&&!ZN(t)}break;case 211:case 212:return XN(e.expression)&&iL(Wo(e).resolvedSymbol||yt)}return!1}function QN(e,t,n=t,r,i=(t=>null==(t=ft(e,wh))?void 0:t.flowNode)()){let o,a=!1,s=0;if(Si)return Nt;if(!i)return t;ki++;const c=xi,l=AN(d(i));xi=c;const _=256&Zx(l)&&BN(e)?cr:MN(l);return _===pn||e.parent&&235===e.parent.kind&&!(131072&_.flags)&&131072&eN(_,2097152).flags?t:_===Ot?At:_;function u(){return a?o:(a=!0,o=Aw(e,t,n,r))}function d(i){var o;if(2e3===s)return null==(o=Fr)||o.instant(Fr.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:i.id}),Si=!0,function(e){const t=kc(e,T_),n=Cp(e),r=Gf(n,t.statements.pos);oo.add(ES(n,r.start,r.length,Ea.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Nt;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;e<xi;e++)if(Gi[e]===i)return s--,Xi[e];a=i}let l;if(16&o){if(l=f(i),!l){i=i.antecedent;continue}}else if(512&o){if(l=g(i),!l){i=i.antecedent;continue}}else if(96&o)l=v(i);else if(128&o)l=b(i);else if(12&o){if(1===i.antecedents.length){i=i.antecedents[0];continue}l=4&o?x(i):S(i)}else if(256&o){if(l=h(i),!l){i=i.antecedent;continue}}else if(1024&o){const e=i.target,t=e.antecedents;e.antecedents=i.antecedents,l=d(i.antecedent),e.antecedents=t}else if(2&o){const t=i.node;if(t&&t!==r&&211!==e.kind&&212!==e.kind&&(110!==e.kind||219===t.kind)){i=t.flowNode;continue}l=n}else l=lM(t);return a&&(Gi[xi]=a,Xi[xi]=l,xi++),s--,l}}function p(t){const n=t.node;return aD(260===n.kind||208===n.kind?dN(n):_N(n),e)}function f(n){const r=n.node;if(Iw(e,r)){if(!VN(n))return pn;if(2===zh(r)){const e=d(n.antecedent);return IN(xT(AN(e)),EN(e))}if(t===Tt||t===cr){if(function(e){return 260===e.kind&&e.initializer&&nl(e.initializer)||208!==e.kind&&226===e.parent.kind&&nl(e.parent.right)}(r))return ON(rn);const e=DT(p(n));return bS(e,t)?e:sr}const e=Uh(r)?xT(t):t;return 1048576&e.flags?Gw(e,p(n)):e}if(Rw(e,r)){if(!VN(n))return pn;if(GF(r)&&(Tg(r)||iz(r))){const e=Bg(r);if(e&&(218===e.kind||219===e.kind))return d(n.antecedent)}return t}if(GF(r)&&249===r.parent.parent.kind&&(Iw(e,r.parent.parent.expression)||Jw(r.parent.parent.expression,e)))return tA(MN(AN(d(n.antecedent))))}function m(e,t){const n=Qh(t,!0);if(97===n.kind)return pn;if(226===n.kind){if(56===n.operatorToken.kind)return m(m(e,n.left),n.right);if(57===n.operatorToken.kind)return Uy([m(e,n.left),m(e,n.right)])}return Z(e,n,!0)}function g(e){const t=qN(e.node);if(t){const n=nf(t);if(n&&(2===n.kind||3===n.kind)){const t=d(e.antecedent),r=MN(AN(t)),i=n.type?Y(r,n,e.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex<e.node.arguments.length?m(r,e.node.arguments[n.parameterIndex]):r;return i===r?t:IN(i,EN(t))}if(131072&of(t).flags)return pn}}function h(n){if(t===Tt||t===cr){const t=n.node,r=213===t.kind?t.expression.expression:t.left.expression;if(Iw(e,pN(r))){const e=d(n.antecedent),r=AN(e);if(256&Zx(r)){let n=r;if(213===t.kind)for(const e of t.arguments)n=LN(n,e);else{dL(HL(t.left.argumentExpression),296)&&(n=LN(n,t.right))}return n===r?e:IN(n,EN(e))}return e}}}function v(e){const t=d(e.antecedent),n=AN(t);if(131072&n.flags)return t;const r=0!=(32&e.flags),i=MN(n),o=Z(i,e.node,r);return o===i?t:IN(o,EN(t))}function b(t){const n=Qh(t.switchStatement.expression),r=d(t.antecedent);let i=AN(r);if(Iw(e,n))i=V(i,t.switchStatement,t.clauseStart,t.clauseEnd);else if(221===n.kind&&Iw(e,n.expression))i=function(e,t,n,r){const i=hN(t);if(!i)return e;const o=P(t.caseBlock.clauses,(e=>297===e.kind));if(n===r||o>=n&&o<r){const t=XO(n,r,i);return SN(e,(e=>Qw(e,t)===t))}return Uy(J(i.slice(n,r),(t=>t?W(e,t):rn)))}(i,t.switchStatement,t.clauseStart,t.clauseEnd);else if(112===n.kind)i=function(e,t,n,r){const i=P(t.caseBlock.clauses,(e=>297===e.kind)),o=n===r||i>=n&&i<r;for(let r=0;r<n;r++){const n=t.caseBlock.clauses[r];296===n.kind&&(e=Z(e,n.expression,!1))}if(o){for(let n=r;n<t.caseBlock.clauses.length;n++){const r=t.caseBlock.clauses[n];296===r.kind&&(e=Z(e,r.expression,!1))}return e}return Uy(J(t.caseBlock.clauses.slice(n,r),(t=>296===t.kind?Z(e,t.expression,!0):rn)))}(i,t.switchStatement,t.clauseStart,t.clauseEnd);else{H&&(Jw(n,e)?i=U(i,t.switchStatement,t.clauseStart,t.clauseEnd,(e=>!(163840&e.flags))):221===n.kind&&Jw(n.expression,e)&&(i=U(i,t.switchStatement,t.clauseStart,t.clauseEnd,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));const r=T(n,i);r&&(i=function(e,t,n,r,i){if(r<i&&1048576&e.flags&&Uw(e)===jw(t)){const t=Uy(J(gN(n).slice(r,i),(t=>Vw(e,t)||At)));if(t!==At)return t}return C(e,t,(e=>V(e,n,r,i)))}(i,r,t.switchStatement,t.clauseStart,t.clauseEnd))}return IN(i,EN(r))}function x(e){const r=[];let i,o=!1,a=!1;for(const s of e.antecedents){if(!i&&128&s.flags&&s.clauseStart===s.clauseEnd){i=s;continue}const e=d(s),c=AN(e);if(c===t&&t===n)return c;xe(r,c),yN(c,n)||(o=!0),EN(e)&&(a=!0)}if(i){const e=d(i),s=AN(e);if(!(131072&s.flags||I(r,s)||QO(i.switchStatement))){if(s===t&&t===n)return s;r.push(s),yN(s,n)||(o=!0),EN(e)&&(a=!0)}}return IN(k(r,o?2:1),a)}function S(e){const r=Kw(e),i=Wi[r]||(Wi[r]=new Map),o=u();if(!o)return t;const a=i.get(o);if(a)return a;for(let t=vi;t<bi;t++)if(Hi[t]===e&&$i[t]===o&&Ki[t].length)return IN(k(Ki[t],1),!0);const s=[];let c,l=!1;for(const r of e.antecedents){let a;if(c){Hi[bi]=e,$i[bi]=o,Ki[bi]=s,bi++;const t=ei;ei=void 0,a=d(r),ei=t,bi--;const n=i.get(o);if(n)return n}else a=c=d(r);const _=AN(a);if(xe(s,_),yN(_,n)||(l=!0),_===t)break}const _=k(s,l?2:1);return EN(c)?IN(_,!0):(i.set(o,_),_)}function k(e,n){if(function(e){let t=!1;for(const n of e)if(!(131072&n.flags)){if(!(256&Zx(n)))return!1;t=!0}return t}(e))return ON(Uy(J(e,RN)));const r=nN(Uy(q(e,MN),n));return r!==t&&r.flags&t.flags&1048576&&O(r.types,t.types)?t:r}function T(n,r){if(1048576&t.flags||1048576&r.flags){const i=function(t){if(R_(e)||VT(e)||Am(e)){if(HN(t)){const n=Pw(t).valueDeclaration;if(n&&(GD(n)||_D(n))&&e===n.parent&&!n.initializer&&!n.dotDotDotToken)return n}}else if(sS(t)){if(Iw(e,t.expression))return t}else if(HN(t)){const n=Pw(t);if(tD(n)){const t=n.valueDeclaration;if(GF(t)&&!t.type&&t.initializer&&sS(t.initializer)&&Iw(e,t.initializer.expression))return t.initializer;if(GD(t)&&!t.initializer){const n=t.parent.parent;if(GF(n)&&!n.type&&n.initializer&&(HN(n.initializer)||sS(n.initializer))&&Iw(e,n.initializer))return t}}}}(n);if(i){const e=jw(i);if(e){if(zw(1048576&t.flags&&yN(r,t)?t:r,e))return i}}}}function C(e,t,n){const r=jw(t);if(void 0===r)return e;const i=Pl(t),o=H&&(i||iC(t))&&uL(e,98304);let a=jc(o?eN(e,2097152):e,r);if(!a)return e;a=o&&i?dC(a):a;const s=n(a);return SN(e,(e=>{const t=Rc(e,r)||At;return!(131072&t.flags)&&!(131072&s.flags)&&kS(s,t)}))}function w(e,t,n,r,i){if((37===n||38===n)&&1048576&e.flags){const o=Uw(e);if(o&&o===jw(t)){const t=Vw(e,VL(r));if(t)return n===(i?37:38)?t:uT(jc(t,o)||At)?kN(e,t):e}}return C(e,t,(e=>R(e,n,r,i)))}function F(t,n,r){if(Iw(e,n))return tN(t,r?4194304:8388608);H&&r&&Jw(n,e)&&(t=tN(t,2097152));const i=T(n,t);return i?C(t,i,(e=>eN(e,r?4194304:8388608))):t}function E(e,t,n){const r=bp(e,t);return r?!!(16777216&r.flags||48&Jx(r))||n:!!Jp(e,t)||!n}function A(e,t,n){const r=mC(t);if(bN(e,(e=>E(e,r,!0))))return SN(e,(e=>E(e,r,n)));if(n){const n=(Ur||(Ur=jg("Record",2,!0)||yt),Ur===yt?void 0:Ur);if(n)return rv([e,Pm(n,[t,At])])}return e}function L(e,t,n,r,i){return Z(e,t,i=i!==(112===n.kind)!=(38!==r&&36!==r))}function j(t,n,r){switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return F(Z(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const i=n.operatorToken.kind,o=pN(n.left),a=pN(n.right);if(221===o.kind&&Qu(a))return B(t,o,i,a,r);if(221===a.kind&&Qu(o))return B(t,a,i,o,r);if(Iw(e,o))return R(t,i,a,r);if(Iw(e,a))return R(t,i,o,r);H&&(Jw(o,e)?t=M(t,i,a,r):Jw(a,e)&&(t=M(t,i,o,r)));const s=T(o,t);if(s)return w(t,s,i,a,r);const c=T(a,t);if(c)return w(t,c,i,o,r);if(K(o))return G(t,i,a,r);if(K(a))return G(t,i,o,r);if(x_(a)&&!sS(o))return L(t,o,a,i,r);if(x_(o)&&!sS(a))return L(t,a,o,i,r);break;case 104:return function(t,n,r){const i=pN(n.left);if(!Iw(e,i))return r&&H&&Jw(i,e)?tN(t,2097152):t;const o=n.right,a=VL(o);if(!xS(a,Xn))return t;const s=qN(n),c=s&&nf(s);if(c&&1===c.kind&&0===c.parameterIndex)return Q(t,c.type,r,!0);if(!xS(a,Qn))return t;const l=CN(a,X);if(zc(t)&&(l===Xn||l===Qn)||!r&&(!(524288&l.flags)||XS(l)))return t;return Q(t,l,r,!0)}(t,n,r);case 103:if($N(n.left))return function(t,n,r){const i=pN(n.right);if(!Iw(e,i))return t;Sn.assertNode(n.left,$N);const o=yA(n.left);if(void 0===o)return t;const a=o.parent,s=gb(Sn.checkDefined(o.valueDeclaration,"should always have a declaration"))?n_(a):Z_(a);return Q(t,s,r,!0)}(t,n,r);const l=pN(n.right);if(TC(t)&&sS(e)&&Iw(e.expression,l)){const i=VL(n.left);if(fC(i)&&jw(e)===mC(i))return eN(t,r?524288:65536)}if(Iw(e,l)){const e=VL(n.left);if(fC(e))return A(t,e,r)}break;case 28:return Z(t,n.right,r);case 56:return r?Z(Z(t,n.left,!0),n.right,!0):Uy([Z(t,n.left,!1),Z(t,n.right,!1)]);case 57:return r?Uy([Z(t,n.left,!0),Z(t,n.right,!0)]):Z(Z(t,n.left,!1),n.right,!1)}return t}function M(e,t,n,r){const i=35===t||37===t,o=35===t||36===t?98304:32768,a=VL(n);return i!==r&&xN(a,(e=>!!(e.flags&o)))||i===r&&xN(a,(e=>!(e.flags&(3|o))))?tN(e,2097152):e}function R(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const i=VL(n),o=35===t||36===t;if(98304&i.flags){if(!H)return e;return tN(e,o?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288)}if(r){if(!o&&(2&e.flags||bN(e,XS))){if(469893116&i.flags||XS(i))return i;if(524288&i.flags)return mn}return PN(SN(e,(e=>{return kS(e,i)||o&&(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t})),i)}return uT(i)?SN(e,(e=>!(dT(e)&&kS(e,i)))):e}function B(t,n,r,i,o){36!==r&&38!==r||(o=!o);const a=pN(n.expression);if(!Iw(e,a)){H&&Jw(a,e)&&o===("undefined"!==i.text)&&(t=tN(t,2097152));const n=T(a,t);return n?C(t,n,(e=>z(e,i,o))):t}return z(t,i,o)}function z(e,t,n){return n?W(e,t.text):tN(e,bB.get(t.text)||32768)}function U(e,t,n,r,i){return n!==r&&N(gN(t).slice(n,r),i)?eN(e,2097152):e}function V(e,t,n,r){const i=gN(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||I(o,rn);if(2&e.flags&&!a){let t;for(let n=0;n<o.length;n+=1){const r=o[n];if(469893116&r.flags)void 0!==t&&t.push(r);else{if(!(524288&r.flags))return e;void 0===t&&(t=o.slice(0,n)),t.push(mn)}}return Uy(void 0===t?o:t)}const s=Uy(o),c=131072&s.flags?rn:PN(SN(e,(e=>kS(s,e))),s);if(!a)return c;const l=SN(e,(e=>!(dT(e)&&I(i,dx(function(e){return 2097152&e.flags&&D(e.types,uT)||e}(e))))));return 131072&c.flags?l:Uy([c,l])}function W(e,t){switch(t){case"string":return $(e,qt,1);case"number":return $(e,Ut,2);case"bigint":return $(e,Vt,4);case"boolean":return $(e,Zt,8);case"symbol":return $(e,en,16);case"object":return 1&e.flags?e:Uy([$(e,mn,32),$(e,Jt,131072)]);case"function":return 1&e.flags?e:$(e,Qn,64);case"undefined":return $(e,Lt,65536)}return $(e,mn,128)}function $(e,t,n){return CN(e,(e=>ok(e,t,lo)?Yw(e,n)?e:rn:yS(t,e)?t:Yw(e,n)?rv([e,t]):rn))}function K(t){return(YD(t)&&"constructor"===Dc(t.name)||ZD(t)&&Qu(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&Iw(e,t.expression)}function G(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const i=VL(n);if(!oJ(i)&&!k_(i))return e;const o=bp(i,"prototype");if(!o)return e;const a=n_(o),s=zc(a)?void 0:a;return s&&s!==Xn&&s!==Qn?zc(e)?s:SN(e,(e=>function(e,t){if(524288&e.flags&&1&Zx(e)||524288&t.flags&&1&Zx(t))return e.symbol===t.symbol;return yS(e,t)}(e,s))):e}function X(e){const t=jc(e,"prototype");if(t&&!zc(t))return t;const n=Sp(e,1);return n.length?Uy(J(n,(e=>of(Sf(e))))):Pn}function Q(e,t,n,r){const i=1048576&e.flags?`N${Cy(e)},${Cy(t)},${(n?1:0)|(r?2:0)}`:void 0;return ho(i)??yo(i,function(e,t,n,r){if(!n){if(r)return SN(e,(e=>!xS(e,t)));const n=Q(e,t,!0,!1);return SN(e,(e=>!yN(e,n)))}if(3&e.flags)return t;const i=r?xS:yS,o=1048576&e.flags?Uw(e):void 0,a=CN(t,(t=>{const n=o&&jc(t,o),a=CN(n&&Vw(e,n)||e,r?e=>xS(e,t)?e:xS(t,e)?t:rn:e=>vS(e,t)?e:vS(t,e)?t:yS(e,t)?e:yS(t,e)?t:rn);return 131072&a.flags?CN(e,(e=>uL(e,465829888)&&i(t,Wd(e)||At)?rv([e,t]):rn)):a}));return 131072&a.flags?yS(t,e)?t:bS(e,t)?e:bS(t,e)?t:rv([e,t]):a}(e,t,n,r))}function Y(t,n,r,i){if(n.type&&(!zc(t)||n.type!==Xn&&n.type!==Qn)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=Qh(t.expression);return sS(n)?Qh(n.expression):void 0}(n,r);if(o){if(Iw(e,o))return Q(t,n.type,i,!1);H&&Jw(o,e)&&(i&&!Yw(n.type,65536)||!i&&xN(n.type,eA))&&(t=tN(t,2097152));const r=T(o,t);if(r)return C(t,r,(e=>Q(e,n.type,i,!1)))}}return t}function Z(t,n,r){if(Al(n)||pF(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(Iw(e,n))return tN(t,r?2097152:262144);const i=T(n,t);if(i)return C(t,i,(e=>eN(e,r?2097152:262144)));return t}(t,n,r);switch(n.kind){case 80:if(!Iw(e,n)&&y<5){const i=Pw(n);if(tD(i)){const n=i.valueDeclaration;if(n&&GF(n)&&!n.type&&n.initializer&&XN(e)){y++;const e=Z(t,n.initializer,r);return y--,e}}}case 110:case 108:case 211:case 212:return F(t,n,r);case 213:return function(t,n,r){if($w(n,e)){const e=r||!Fl(n)?qN(n):void 0,i=e&&nf(e);if(i&&(0===i.kind||1===i.kind))return Y(t,i,n,r)}if(TC(t)&&sS(e)&&YD(n.expression)){const i=n.expression;if(Iw(e.expression,pN(i.expression))&&HN(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(Qu(i)&&jw(e)===wc(i.text))return eN(t,r?524288:65536)}}return t}(t,n,r);case 217:case 235:return Z(t,n.expression,r);case 226:return j(t,n,r);case 224:if(54===n.operator)return Z(t,n.operand,!r)}return t}}function YN(e){return kc(e.parent,(e=>y_(e)&&!Ym(e)||268===e.kind||312===e.kind||172===e.kind))}function ZN(e){if(!e.valueDeclaration)return!1;const t=Ky(e.valueDeclaration).parent,n=Wo(t);return 131072&n.flags||(n.flags|=131072,kc(t.parent,(e=>(y_(e)||zP(e))&&!!(131072&Wo(e).flags)))||eD(t)),e.isAssigned||!1}function eD(e){if(80===e.kind){if(qh(e)){const t=Pw(e);UT(t)&&(t.isAssigned=!0)}}else KI(e,eD)}function tD(e){return 3&e.flags&&0!=(6&KE(e))}function nD(e,t){const n=H&&169===t.kind&&t.initializer&&Yw(e,16777216)&&!function(e){const t=Wo(e);if(void 0===t.parameterInitializerContainsUndefined){if(!xc(e,9))return Yl(e.symbol),!0;const n=!!Yw(PL(e,0),16777216);if(!Ac())return Yl(e.symbol),!0;t.parameterInitializerContainsUndefined=n}return t.parameterInitializerContainsUndefined}(t);return n?eN(e,524288):e}function rD(e){return 2097152&e.flags?re(e.types,rD):!!(465829888&e.flags&&1146880&Hd(e).flags)}function iD(e){return 2097152&e.flags?re(e.types,iD):!(!(465829888&e.flags)||uL(Hd(e),98304))}function aD(e,t,n){const r=!(n&&2&n)&&bN(e,rD)&&(function(e,t){const n=t.parent;return 211===n.kind||166===n.kind||213===n.kind&&n.expression===t||212===n.kind&&n.expression===t&&!(bN(e,iD)&&Jv(VL(n.argumentExpression)))}(e,t)||function(e,t){const n=(HN(e)||YD(e)||ZD(e))&&!((DP(e.parent)||NP(e.parent))&&e.parent.tagName===e)&&_P(e,t&&32&t?8:void 0);return n&&!Rv(n)}(t,n));return r?CN(e,Hd):e}function SD(e){return!!kc(e,(e=>{const t=e.parent;return void 0===t?"quit":yP(t)?t.expression===e&&Kb(e):!!xP(t)&&(t.name===e||t.propertyName===e)}))}function FD(e,t){if(Oe&&La(e,111551)&&!Kv(t)){const n=Ma(e);1160127&Ra(e,!0)&&(YS(C)||uk(C)&&SD(t)||!$B(xs(n))?Ua(e):function(e){const t=Uo(e);t.constEnumReferenced||(t.constEnumReferenced=!0)}(e))}}function OD(e,t){if(Gv(e))return WD(e);const n=Pw(e);if(n===yt)return Nt;if(n===Te){if(TA(e))return To(e,Ea.arguments_cannot_be_referenced_in_property_initializers),Nt;const t=zm(e);return w<2&&(219===t.kind?To(e,Ea.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):fb(t,1024)&&To(e,Ea.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Wo(t).flags|=512,n_(n)}(function(e){var t;const n=e.parent;if(n){if(YD(n)&&n.expression===e)return!1;if(xP(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&vP(r)&&r.isTypeOnly)return!1}return!0})(e)&&FD(n,e);const r=xs(n),i=PR(r,e);Fo(i)&&Iv(e,i)&&i.declarations&&Eo(e,i.declarations,e.escapedText);let o=r.valueDeclaration;if(o&&32&r.flags&&w_(o)&&o.name!==e){let t=$m(e,!1,!1);for(;312!==t.kind&&t.parent!==o;)t=$m(t,!1,!1);312!==t.kind&&(Wo(o).flags|=262144,Wo(t).flags|=262144,Wo(e).flags|=536870912)}!function(e,t){if(w>=2||0==(34&t.flags)||!t.valueDeclaration||$P(t.valueDeclaration)||299===t.valueDeclaration.parent.kind)return;const n=Ef(t.valueDeclaration),r=function(e,t){return!!kc(e,(e=>e===t?"quit":y_(e)||e.parent&&pD(e.parent)&&!gb(e.parent)&&e.parent.initializer===e))}(e,n),i=LD(n);if(i){if(r){let r=!0;if(MF(n)){const i=gy(t.valueDeclaration,261);if(i&&i.parent===n){const i=function(e,t){return kc(e,(e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement))}(e.parent,n);if(i){const e=Wo(i);e.flags|=8192;xe(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&(Wo(i).flags|=4096)}if(MF(n)){const r=gy(t.valueDeclaration,261);r&&r.parent===n&&function(e,t){let n=e;for(;217===n.parent.kind;)n=n.parent;let r=!1;if(qh(n))r=!0;else if(224===n.parent.kind||225===n.parent.kind){const e=n.parent;r=46===e.operator||47===e.operator}if(!r)return!1;return!!kc(n,(e=>e===t?"quit":e===t.statement))}(e,n)&&(Wo(t.valueDeclaration).flags|=65536)}Wo(t.valueDeclaration).flags|=32768}r&&(Wo(t.valueDeclaration).flags|=16384)}(e,n);let a=function(e,t){var n;const r=n_(e),i=e.valueDeclaration;if(i){if(GD(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const n=i.parent.parent;if(260===n.kind&&6&rz(i)||169===n.kind){const r=Wo(n);if(!(4194304&r.flags)){r.flags|=4194304;const o=Vc(n,0),a=o&&CN(o,Hd);if(r.flags&=-4194305,a&&1048576&a.flags&&(169!==n.kind||!ZN(e))){const e=QN(i.parent,a,a,void 0,t.flowNode);return 131072&e.flags?rn:el(i,e,!0)}}}}if(_D(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const r=i.parent;if(r.parameters.length>=2&&dS(r)){const o=AP(r);if(o&&1===o.parameters.length&&RB(o)){const a=tp(nS(n_(o.parameters[0]),null==(n=gP(r))?void 0:n.nonFixingMapper));if(1048576&a.flags&&xN(a,LT)&&!ZN(e))return ib(QN(r,a,a,void 0,t.flowNode),mx(r.parameters.indexOf(i)-(Wv(r)?1:0)))}}}}return r}(r,e);const s=zh(e);if(s){if(!(3&r.flags||Tg(e)&&512&r.flags)){return To(e,384&r.flags?Ea.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?Ea.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?Ea.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?Ea.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?Ea.Cannot_assign_to_0_because_it_is_an_import:Ea.Cannot_assign_to_0_because_it_is_not_a_variable,tc(n)),Nt}if(iL(r))return 3&r.flags?To(e,Ea.Cannot_assign_to_0_because_it_is_a_constant,tc(n)):To(e,Ea.Cannot_assign_to_0_because_it_is_a_read_only_property,tc(n)),Nt}const c=2097152&r.flags;if(3&r.flags){if(1===s)return Uh(e)?xT(a):a}else{if(!c)return a;o=ma(n)}if(!o)return a;a=aD(a,e,t);const l=169===Ky(o).kind,_=YN(o);let u=YN(e);const d=u!==_,p=e.parent&&e.parent.parent&&VP(e.parent)&&cN(e.parent.parent),f=134217728&n.flags,m=a===Tt||a===cr,g=m&&235===e.parent.kind;for(;u!==_&&(218===u.kind||219===u.kind||Im(u))&&(tD(r)&&a!==cr||l&&!ZN(r));)u=YN(u);const h=l||c||d||p||f||function(e,t){if(GD(t)){const n=kc(e,GD);return n&&Ky(n)===Ky(t)}}(e,o)||a!==Tt&&a!==cr&&(!H||0!=(16387&a.flags)||Kv(e)||Ew(e)||281===e.parent.kind)||235===e.parent.kind||260===o.kind&&o.exclamationToken||33554432&o.flags,y=g?Lt:h?l?nD(a,o):a:m?Lt:dC(a),v=g?yC(QN(e,a,y,u)):QN(e,a,y,u);if(BN(e)||a!==Tt&&a!==cr){if(!h&&!ZS(a)&&ZS(v))return To(e,Ea.Variable_0_is_used_before_being_assigned,tc(n)),a}else if(v===Tt||v===cr)return Q&&(To(Mc(o),Ea.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,tc(n),rc(v)),To(e,Ea.Variable_0_implicitly_has_an_1_type,tc(n),rc(v))),lM(v);return s?xT(v):v}function LD(e){return kc(e,(e=>!e||Gy(e)?"quit":lu(e,!1)))}function jD(e,t){if(Wo(e).flags|=2,172===t.kind||176===t.kind){Wo(t.parent).flags|=4}else Wo(t).flags|=4}function MD(e){return am(e)?e:y_(e)?void 0:KI(e,MD)}function BD(e){return I_(Z_(ds(e)))===zt}function qD(e,t,n){const r=t.parent;uy(r)&&!BD(r)&&wh(e)&&e.flowNode&&!GN(e.flowNode,!1)&&To(e,n)}function WD(e){const t=Kv(e);let n=$m(e,!0,!0),r=!1,i=!1;for(176===n.kind&&qD(e,n,Ea.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);219===n.kind&&(n=$m(n,!1,!i),r=!0),167===n.kind;)n=$m(n,!r,!1),i=!0;if(function(e,t){pD(t)&&gb(t)&&L&&t.initializer&&Xs(t.initializer,e.pos)&&Sb(t.parent)&&To(e,Ea.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)To(e,Ea.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 267:To(e,Ea.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:To(e,Ea.this_cannot_be_referenced_in_current_location);break;case 176:rF(e,n)&&To(e,Ea.this_cannot_be_referenced_in_constructor_arguments)}!t&&r&&w<2&&jD(e,n);const o=HD(e,!0,n);if(ee){const t=n_(me);if(o===t&&r)To(e,Ea.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=To(e,Ea.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!$P(n)){const e=HD(n);e&&e!==t&&pT(r,Bf(n,Ea.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||kt}function HD(e,t=!0,n=$m(e,!1,!1)){const r=Tg(e);if(y_(n)&&(!kF(e)||Wv(n))){let t=tf(Kp(n))||r&&function(e){const t=ll(e);if(t&&t.typeExpression)return Sx(t.typeExpression);const n=Gp(e);if(n)return tf(n)}(n);if(!t){const e=function(e){if(218===e.kind&&pF(e.parent)&&3===Gg(e.parent))return e.parent.left.expression.expression;if(174===e.kind&&210===e.parent.kind&&pF(e.parent.parent)&&6===Gg(e.parent.parent))return e.parent.parent.left.expression;if(218===e.kind&&303===e.parent.kind&&210===e.parent.parent.kind&&pF(e.parent.parent.parent)&&6===Gg(e.parent.parent.parent))return e.parent.parent.parent.left.expression;if(218===e.kind&&qP(e.parent)&&HN(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&QD(e.parent.parent)&&eF(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===Gg(e.parent.parent.parent))return e.parent.parent.parent.arguments[0].expression;if(mD(e)&&HN(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&QD(e.parent)&&eF(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===Gg(e.parent.parent))return e.parent.parent.arguments[0].expression}(n);if(r&&e){const n=$L(e).symbol;n&&n.members&&16&n.flags&&(t=Z_(n).thisType)}else JI(n)&&(t=Z_(us(n.symbol)).thisType);t||(t=gF(n))}if(t)return QN(e,t)}if(w_(n.parent)){const t=ds(n.parent);return QN(e,mb(n)?n_(t):Z_(t).thisType)}if($P(n)){if(n.commonJsModuleIndicator){const e=ds(n);return e&&n_(e)}if(n.externalModuleIndicator)return Lt;if(t)return n_(me)}}function rF(e,t){return!!kc(e,(e=>b_(e)?"quit":169===e.kind&&e.parent===t))}function sF(e){const t=213===e.parent.kind&&e.parent.expression===e,n=Qm(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&219===r.kind;)fb(r,1024)&&(o=!0),r=Qm(r,!0),i=w<2;r&&fb(r,1024)&&(o=!0)}let a=0;if(!r||!function(e){if(t)return 176===e.kind;if(w_(e.parent)||210===e.parent.kind)return mb(e)?174===e.kind||173===e.kind||177===e.kind||178===e.kind||172===e.kind||175===e.kind:174===e.kind||173===e.kind||177===e.kind||178===e.kind||172===e.kind||171===e.kind||176===e.kind;return!1}(r)){const n=kc(e,(e=>e===r?"quit":167===e.kind));return n&&167===n.kind?To(e,Ea.super_cannot_be_referenced_in_a_computed_property_name):t?To(e,Ea.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(w_(r.parent)||210===r.parent.kind)?To(e,Ea.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):To(e,Ea.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Nt}if(t||176!==n.kind||qD(e,r,Ea.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),mb(r)||t?(a=32,!t&&w>=2&&w<=8&&(pD(r)||gD(r))&&Af(e.parent,(e=>{$P(e)&&!Yf(e)||(Wo(e).flags|=2097152)}))):a=16,Wo(e).flags|=a,174===r.kind&&o&&(eg(e.parent)&&qh(e.parent)?Wo(r).flags|=256:Wo(r).flags|=128),i&&jD(e.parent,r),210===r.parent.kind)return w<2?(To(e,Ea.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Nt):kt;const s=r.parent;if(!uy(s))return To(e,Ea.super_can_only_be_referenced_in_a_derived_class),Nt;if(BD(s))return t?Nt:zt;const c=Z_(ds(s)),l=c&&M_(c)[0];return l?176===r.kind&&rF(e,r)?(To(e,Ea.super_cannot_be_referenced_in_constructor_arguments),Nt):32===a?I_(c):Fu(l,c.thisType):Nt}function lF(e){return 174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind?218===e.kind&&303===e.parent.kind?e.parent.parent:void 0:e.parent}function dF(e){return 4&Zx(e)&&e.target===ar?mm(e)[0]:void 0}function fF(e){return CN(e,(e=>2097152&e.flags?b(e.types,dF):dF(e)))}function mF(e,t){let n=e,r=t;for(;r;){const e=fF(r);if(e)return e;if(303!==n.parent.kind)break;n=n.parent.parent,r=KF(n,void 0)}}function gF(e){if(219===e.kind)return;if(dS(e)){const t=AP(e);if(t){const e=t.thisParameter;if(e)return n_(e)}}const t=Tg(e);if(ee||t){const n=lF(e);if(n){const e=KF(n,void 0),t=mF(n,e);return t?nS(t,KC(gP(n))):LC(e?yC(e):DL(n))}const r=Kh(e.parent);if(Vb(r)){const e=r.left;if(sS(e)){const{expression:n}=e;if(t&&HN(n)){const e=Cp(r);if(e.commonJsModuleIndicator&&Pw(n)===e.symbol)return}return LC(DL(n))}}}}function xF(e){const t=e.parent;if(!dS(t))return;const n=Ym(t);if(n&&n.arguments){const r=yI(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return uI(r,i,r.length,kt,void 0,0);const o=Wo(n),a=o.resolvedSignature;o.resolvedSignature=ii;const s=i<r.length?DT($L(r[i])):e.initializer?void 0:jt;return o.resolvedSignature=a,s}const r=AP(t);if(r){const n=t.parameters.indexOf(e)-(Wv(t)?1:0);return e.dotDotDotToken&&Ae(t.parameters)===e?xO(r,n):bO(r,n)}}function SF(e,t){const n=Yv(e)||(Tg(e)?sC(e):void 0);if(n)return Sx(n);switch(e.kind){case 169:return xF(e);case 208:return function(e,t){const n=e.parent.parent,r=e.propertyName||e.name,i=SF(n,t)||208!==n.kind&&n.initializer&&PL(n,e.dotDotDotToken?32:0);if(!i||R_(r)||Lf(r))return;if(207===n.name.kind){const t=ef(e.parent.elements,e);if(t<0)return;return UF(i,t)}const o=pv(r);if(fC(o)){return jc(i,mC(o))}}(e,t);case 172:if(mb(e))return function(e,t){const n=au(e.parent)&&_P(e.parent,t);return n?JF(n,ds(e).escapedName):void 0}(e,t)}}function kF(e){let t=!1;for(;e.parent&&!y_(e.parent);){if(_D(e.parent)&&(t||e.parent.initializer===e))return!0;GD(e.parent)&&e.parent.initializer===e&&(t=!0),e=e.parent}return!1}function CF(e,t){const n=!!(2&Ny(t)),r=wF(t,void 0);if(r)return $M(e,r,n)||void 0}function wF(e,t){const n=af(e);if(n)return n;const r=PP(e);if(r&&!uf(r)){const t=of(r),n=Ny(e);return 1&n?SN(t,(e=>!!(58998787&e.flags)||YL(e,n,void 0))):2&n?SN(t,(e=>!!(58998787&e.flags)||!!vj(e))):t}const i=Ym(e);return i?_P(i,t):void 0}function NF(e,t){const n=yI(e).indexOf(t);return-1===n?void 0:FF(e,n)}function FF(e,t){if(sm(e))return 0===t?qt:1===t?nh(!1):kt;const n=Wo(e).resolvedSignature===ai?ai:BI(e);if(Mu(e)&&0===t)return SP(n,e);const r=n.parameters.length-1;return RB(n)&&t>=r?ib(n_(n.parameters[r]),mx(t-r),256):vO(n,t)}function AF(e,t){const n=e.parent,{left:r,operatorToken:i,right:o}=n;switch(i.kind){case 64:case 77:case 76:case 78:return e===o?function(e){var t,n;const r=Gg(e);switch(r){case 0:case 4:const i=function(e){if(ku(e)&&e.symbol)return e.symbol;if(HN(e))return Pw(e);if(YD(e)){const n=VL(e.expression);return $N(e.name)?t(n,e.name):bp(n,e.name.escapedText)}if(ZD(e)){const t=DL(e.argumentExpression);if(!fC(t))return;return bp(VL(e.expression),mC(t))}return;function t(e,t){const n=gA(t.escapedText,t);return n&&vA(e,n)}}(e.left),o=i&&i.valueDeclaration;if(o&&(pD(o)||dD(o))){const t=Yv(o);return t&&nS(Sx(t),Uo(i).mapper)||(pD(o)?o.initializer&&VL(e.left):void 0)}return 0===r?VL(e.left):jF(e);case 5:if(LF(e,r))return jF(e);if(ku(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=mt(e.left,sS),r=Yv(t);if(r)return Sx(r);if(HN(n.expression)){const e=n.expression,t=ta(e,e.escapedText,111551,void 0,e.escapedText,!0);if(t){const e=t.valueDeclaration&&Yv(t.valueDeclaration);if(e){const t=ih(n);if(void 0!==t)return JF(Sx(e),t)}return}}return Tg(t)||t===e.left?void 0:VL(e.left)}return VL(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=ku(e.left)?null==(t=e.left.symbol)?void 0:t.valueDeclaration:void 0),a||(a=null==(n=e.symbol)?void 0:n.valueDeclaration);const s=a&&Yv(a);return s?Sx(s):void 0;case 7:case 8:case 9:return Sn.fail("Does not apply");default:return Sn.assertNever(r)}}(n):void 0;case 57:case 61:const i=_P(n,t);return e===o&&(i&&i.pattern||!i&&!qg(n))?VL(r):i;case 56:case 28:return e===o?_P(n,t):void 0;default:return}}function LF(e,t=Gg(e)){if(4===t)return!0;if(!Tg(e)||5!==t||!HN(e.left.expression))return!1;const n=e.left.expression.escapedText,r=ta(e.left,n,111551,void 0,void 0,!0,!0);return ng(null==r?void 0:r.valueDeclaration)}function jF(e){if(!e.symbol)return VL(e.left);if(e.symbol.valueDeclaration){const t=Yv(e.symbol.valueDeclaration);if(t){const e=Sx(t);if(e)return e}}const t=mt(e.left,sS);if(!Am($m(t.expression,!1,!1)))return;const n=WD(t.expression),r=ih(t);return void 0!==r&&JF(n,r)||void 0}function JF(e,t,n){return CN(e,(e=>{var r,i;if(Fd(e)&&!e.declaration.nameType){const r=bd(e),i=Wd(r)||r,o=n||fx(Nc(t));if(bS(o,i))return rb(e,o)}else if(3670016&e.flags){const o=bp(e,t);if(o)return 262144&Jx(i=o)&&!i.links.type&&Tc(i,0)>=0?void 0:kC(n_(o),!!(o&&16777216&o.flags));if(LT(e)&&HT(t)&&+t>=0){const t=WT(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=Pp(Ap(e),n||fx(Nc(t))))?void 0:r.type}}),!0)}function zF(e,t){if(Sn.assert(Am(e)),!(67108864&e.flags))return qF(e,t)}function qF(e,t){const n=e.parent,r=qP(e)&&SF(e,t);if(r)return r;const i=KF(n,t);if(i){if(bu(e)){const t=ds(e);return JF(i,t.escapedName,Uo(t).nameType)}if(Ey(e)){const t=Mc(e);if(t&&cD(t)){const e=$L(t.expression),n=fC(e)&&JF(i,mC(e));if(n)return n}}if(e.name){const t=pv(e.name);return CN(i,(e=>{var n;return null==(n=Pp(Ap(e),t))?void 0:n.type}),!0)}}}function UF(e,t,n,r,i){return e&&CN(e,(e=>{if(LT(e)){if((void 0===r||t<r)&&t<e.target.fixedLength)return kC(mm(e)[t],!!e.target.elementFlags[t]);const o=void 0!==n&&(void 0===i||t>i)?n-t:0,a=o>0&&e.target.hasRestElement?xy(e.target,3):0;return o>0&&o<=a?mm(e)[gm(e)-o]:WT(e,void 0===r?e.target.fixedLength:Math.min(e.target.fixedLength,r),void 0===n||void 0===i?a:Math.min(a,n-i),!1,!0)}return(!r||t<r)&&JF(e,""+t)||TM(1,e,Lt,void 0,!1)}),!0)}function VF(e,t){const n=e.parent;return Lu(n)?_P(e,t):wP(n)?function(e,t,n){const r=KF(e.openingElement.attributes,n),i=AE(CE(e));if(!r||zc(r)||!i||""===i)return;const o=iv(e.children),a=o.indexOf(t),s=JF(r,i);return s&&(1===o.length?s:CN(s,(e=>Zk(e)?ib(e,mx(a)):e),!0))}(n,e,t):void 0}function WF(e,t){if(IP(e)){const n=KF(e.parent,t);if(!n||zc(n))return;return JF(n,cC(e.name))}return _P(e.parent,t)}function HF(e){switch(e.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return HF(e.expression);case 294:return!e.expression||HF(e.expression)}return!1}function $F(e,t){return function(e,t){const n=Uw(e),r=n&&D(t.properties,(e=>e.symbol&&303===e.kind&&e.symbol.escapedName===n&&HF(e.initializer))),i=r&&HL(r.initializer);return i&&Vw(e,i)}(t,e)||Ck(t,oe(J(M(e.properties,(e=>!!e.symbol&&(303===e.kind?HF(e.initializer)&&zw(t,e.symbol.escapedName):304===e.kind&&zw(t,e.symbol.escapedName)))),(e=>[()=>HL(303===e.kind?e.initializer:e.name),e.symbol.escapedName])),J(M(jd(t),(n=>{var r;return!!(16777216&n.flags)&&!!(null==(r=null==e?void 0:e.symbol)?void 0:r.members)&&!e.symbol.members.has(n.escapedName)&&zw(t,n.escapedName)})),(e=>[()=>Lt,e.escapedName]))),bS)}function KF(e,t){const n=iP(Am(e)?zF(e,t):_P(e,t),e,t);if(n&&!(t&&2&t&&8650752&n.flags)){const t=CN(n,(e=>32&Zx(e)?e:ep(e)),!0);return 1048576&t.flags&&QD(e)?$F(e,t):1048576&t.flags&&OP(e)?function(e,t){const n=AE(CE(e));return Ck(t,oe(J(M(e.properties,(e=>!!e.symbol&&291===e.kind&&zw(t,e.symbol.escapedName)&&(!e.initializer||HF(e.initializer)))),(e=>[e.initializer?()=>HL(e.initializer):()=>Gt,e.symbol.escapedName])),J(M(jd(t),(r=>{var i;if(!(16777216&r.flags&&(null==(i=null==e?void 0:e.symbol)?void 0:i.members)))return!1;const o=e.parent.parent;return(r.escapedName!==n||!wP(o)||!iv(o.children).length)&&!e.symbol.members.has(r.escapedName)&&zw(t,r.escapedName)})),(e=>[()=>Lt,e.escapedName]))),bS)}(e,t):t}}function iP(e,t,n){if(e&&uL(e,465829888)){const r=gP(t);if(r&&1&n&&re(r.inferences,JL))return lP(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=lP(e,r.returnMapper);return 1048576&t.flags&&wy(t.types,Kt)&&wy(t.types,Xt)?SN(t,(e=>e!==Kt&&e!==Xt)):t}}return e}function lP(e,t){return 465829888&e.flags?nS(e,t):1048576&e.flags?Uy(J(e.types,(e=>lP(e,t))),0):2097152&e.flags?rv(J(e.types,(e=>lP(e,t)))):e}function _P(e,t){var n;if(67108864&e.flags)return;const r=fP(e,!t);if(r>=0)return Ci[r];const{parent:i}=e;switch(i.kind){case 260:case 169:case 172:case 171:case 208:return function(e,t){const n=e.parent;if(Hu(n)&&e===n.initializer){const e=SF(n,t);if(e)return e;if(!(8&t)&&R_(n.name)&&n.name.elements.length>0)return Nl(n.name,!0,!1)}}(e,t);case 219:case 253:return function(e,t){const n=zm(e);if(n){let e=wF(n,t);if(e){const t=Ny(n);if(1&t){const n=0!=(2&t);1048576&e.flags&&(e=SN(e,(e=>!!$M(1,e,n))));const r=$M(1,e,0!=(2&t));if(!r)return;e=r}if(2&t){const t=CN(e,Dj);return t&&Uy([t,WO(t)])}return e}}}(e,t);case 229:return function(e,t){const n=zm(e);if(n){const r=Ny(n);let i=wF(n,t);if(i){const t=0!=(2&r);return!e.asteriskToken&&1048576&i.flags&&(i=SN(i,(e=>!!$M(1,e,t)))),e.asteriskToken?i:$M(0,i,t)}}}(i,t);case 223:return function(e,t){const n=_P(e,t);if(n){const e=Dj(n);return e&&Uy([e,WO(e)])}}(i,t);case 213:case 214:return NF(i,e);case 170:return function(e){const t=UO(e);return t?Cf(t):void 0}(i);case 216:case 234:return Ll(i.type)?_P(i,t):Sx(i.type);case 226:return AF(e,t);case 303:case 304:return qF(i,t);case 305:return _P(i.parent,t);case 209:{const r=i,o=KF(r,t),a=ef(r.elements,e),s=(n=Wo(r)).spreadIndices??(n.spreadIndices=function(e){let t,n;for(let r=0;r<e.length;r++)hF(e[r])&&(t??(t=r),n=r);return{first:t,last:n}}(r.elements));return UF(o,a,r.elements.length,s.first,s.last)}case 227:return function(e,t){const n=e.parent;return e===n.whenTrue||e===n.whenFalse?_P(n,t):void 0}(e,t);case 239:return Sn.assert(228===i.parent.kind),function(e,t){if(215===e.parent.kind)return NF(e.parent,t)}(i.parent,e);case 217:if(Tg(i)){if(oC(i))return Sx(aC(i));const e=pl(i);if(e&&!Ll(e.typeExpression.type))return Sx(e.typeExpression.type)}return _P(i,t);case 235:return _P(i,t);case 238:return Sx(i.type);case 277:return Bl(i);case 294:return VF(i,t);case 291:case 293:return WF(i,t);case 286:case 285:return function(e,t){if(DP(e)&&4!==t){const n=fP(e.parent,!t);if(n>=0)return Ci[n]}return FF(e,0)}(i,t)}}function uP(e){dP(e,_P(e,void 0),!0)}function dP(e,t,n){Ti[Ni]=e,Ci[Ni]=t,wi[Ni]=n,Ni++}function pP(){Ni--}function fP(e,t){for(let n=Ni-1;n>=0;n--)if(e===Ti[n]&&(t||!wi[n]))return n;return-1}function gP(e){for(let t=Ei-1;t>=0;t--)if(Zh(e,Di[t]))return Fi[t]}function SP(e,t){return 0!==pI(t)?function(e,t){let n=DO(e,At);n=kP(t,CE(t),n);const r=xE(wB.IntrinsicAttributes,t);Uc(r)||(n=cd(r,n));return n}(e,t):function(e,t){const n=CE(t),r=(i=n,DE(wB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?DO(e,At):""===r?of(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=of(r);if(zc(e))return e;const i=jc(e,t);if(!i)return;n.push(i)}return rv(n)}const n=of(e);return zc(n)?n:jc(n,t)}(e,r);if(!o)return r&&v(t.attributes.properties)&&To(t,Ea.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Nc(r)),At;if(o=kP(t,n,o),zc(o))return o;{let n=o;const r=xE(wB.IntrinsicClassAttributes,t);if(!Uc(r)){const i=h_(r.symbol),o=of(e);let a;if(i){a=nS(r,Dx(i,$p([o],i,Hp(i),Tg(t))))}else a=r;n=cd(a,n)}const i=xE(wB.IntrinsicAttributes,t);return Uc(i)||(n=cd(i,n)),n}}(e,t)}function kP(e,t,n){const r=(i=t)&&Xo(i.exports,wB.LibraryManagedAttributes,788968);var i;if(r){const t=function(e){if(mE(e.tagName))return Cf(jI(e,ME(e)));const t=DL(e.tagName);if(128&t.flags){const n=jE(t,e);return n?Cf(jI(e,n)):Nt}return t}(e),i=UE(r,Tg(e),t,n);if(i)return i}return n}function TP(e){return pk(C,"noImplicitAny")?Je(e,((e,t)=>e!==t&&e?Xu(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=Dx(t.typeParameters,e.typeParameters));const i=e.declaration,o=function(e,t,n){const r=SO(e),i=SO(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=TO(e)||TO(t),l=c&&!TO(o),_=new Array(s+(l?1:0));for(let u=0;u<s;u++){let d=bO(o,u);o===t&&(d=nS(d,n));let p=bO(a,u)||At;a===t&&(p=nS(p,n));const f=Uy([d,p]),m=c&&!l&&u===s-1,g=u>=kO(o)&&u>=kO(a),h=u>=r?void 0:mO(e,u),y=u>=i?void 0:mO(t,u),v=Ao(1|(g&&!m?16777216:0),(h===y?h:h?y?void 0:h:y)||`arg${u}`);v.links.type=m?Bh(f):f,_[u]=v}if(l){const e=Ao(1,"args");e.links.type=Bh(vO(a,s)),a===t&&(e.links.type=nS(e.links.type,n)),_[s]=e}return _}(e,t,r),a=function(e,t,n){if(!e||!t)return e||t;const r=Uy([n_(e),nS(n_(t),n)]);return NC(e,r)}(e.thisParameter,t.thisParameter,r),s=Math.max(e.minArgumentCount,t.minArgumentCount),c=Au(i,n,a,o,void 0,void 0,s,167&(e.flags|t.flags));c.compositeKind=2097152,c.compositeSignatures=oe(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(c.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?Lx(e.mapper,r):r);return c}(e,t):void 0:e)):void 0}function FP(e,t){const n=M(Sp(e,0),(e=>!function(e,t){let n=0;for(;n<t.parameters.length;n++){const e=t.parameters[n];if(e.initializer||e.questionToken||e.dotDotDotToken||nC(e))break}t.parameters.length&&Hv(t.parameters[0])&&n--;return!TO(e)&&SO(e)<n}(e,t)));return 1===n.length?n[0]:TP(n)}function PP(e){return VT(e)||Am(e)?AP(e):void 0}function AP(e){Sn.assert(174!==e.kind||Am(e));const t=Gp(e);if(t)return t;const n=KF(e,1);if(!n)return;if(!(1048576&n.flags))return FP(n,e);let r;const i=n.types;for(const t of i){const n=FP(t,e);if(n)if(r){if(!Wk(r[0],n,!1,!0,!0,mS))return;r.push(n)}else r=[n]}return r?1===r.length?r[0]:Ou(r[0],r):void 0}function jP(e){return 208===e.kind&&!!e.initializer||226===e.kind&&64===e.operatorToken.kind}function RP(e,t,n){const r=e.elements,i=r.length,o=[],a=[];uP(e);const s=qh(e),c=IL(e),l=KF(e,void 0),_=function(e){const t=Kh(e.parent);return hF(t)&&Y_(t.parent)}(e)||!!l&&bN(l,oT);let u=!1;for(let c=0;c<i;c++){const i=r[c];if(230===i.kind){w<2&&vJ(i,C.downlevelIteration?1536:1024);const e=$L(i.expression,t,n);if(Zk(e))o.push(e),a.push(8);else if(s){const t=Mp(e,Ut)||TM(65,e,Lt,void 0,!1)||At;o.push(t),a.push(4)}else o.push(kM(33,e,Lt,i.expression)),a.push(4)}else if(le&&232===i.kind)u=!0,o.push(Rt),a.push(2);else{const r=OL(i,t,n);if(o.push(rl(r,!0,u)),a.push(u?2:1),_&&t&&2&t&&!(4&t)&&lS(i)){const t=gP(e);Sn.assert(t),WC(t,i,r)}}}return pP(),s?py(o,a):BP(n||c||_?py(o,a,c&&!(l&&bN(l,tT))):Bh(o.length?Uy(q(o,((e,t)=>8&a[t]?ab(e,Ut)||kt:e)),2):H?ln:jt,c))}function BP(e){if(!(4&Zx(e)))return e;let t=e.literalType;return t||(t=e.literalType=pm(e),t.objectFlags|=147456),t}function HP(e){switch(e.kind){case 167:return function(e){return dL(KP(e),296)}(e);case 80:return HT(e.escapedText);case 9:case 11:return HT(e.text);default:return!1}}function KP(e){const t=Wo(e.expression);if(!t.resolvedType){if((DD(e.parent.parent)||w_(e.parent.parent)||ZF(e.parent.parent))&&pF(e.expression)&&103===e.expression.operatorToken.kind&&177!==e.parent.kind&&178!==e.parent.kind)return t.resolvedType=Nt;if(t.resolvedType=$L(e.expression),pD(e.parent)&&!gb(e.parent)&&yF(e.parent.parent)){const t=LD(Ef(e.parent.parent));t&&(Wo(t).flags|=4096,Wo(e).flags|=32768,Wo(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!dL(t.resolvedType,402665900)&&!bS(t.resolvedType,yn))&&To(e,Ea.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function GP(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return HT(e.escapedName)||n&&Lc(n)&&HP(n.name)}function ZP(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return By(e)||n&&Lc(n)&&cD(n.name)&&dL(KP(n.name),4096)}function eE(e,t,n,r){const i=[];for(let e=t;e<n.length;e++){const t=n[e];(r===qt&&!ZP(t)||r===Ut&&GP(t)||r===en&&ZP(t))&&i.push(n_(n[e]))}return jf(r,i.length?Uy(i,2):Lt,IL(e))}function tE(e){Sn.assert(0!=(2097152&e.flags),"Should only get Alias here.");const t=Uo(e);if(!t.immediateTarget){const n=ma(e);if(!n)return Sn.fail();t.immediateTarget=Oa(n,!0)}return t.immediateTarget}function lE(e,t=0){var n;const i=qh(e);!function(e,t){const n=new Map;for(const r of e.properties){if(305===r.kind){if(t){const e=Qh(r.expression);if(XD(e)||QD(e))return GJ(r.expression,Ea.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(167===e.kind&&PJ(e),304===r.kind&&!t&&r.objectAssignmentInitializer&&GJ(r.equalsToken,Ea.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),81===e.kind&&GJ(e,Ea.Private_identifiers_are_not_allowed_outside_class_bodies),lI(r)&&r.modifiers)for(const e of r.modifiers)!f_(e)||134===e.kind&&174===r.kind||GJ(e,Ea._0_modifier_cannot_be_used_here,Yp(e));else if(IA(r)&&r.modifiers)for(const e of r.modifiers)f_(e)&&GJ(e,Ea._0_modifier_cannot_be_used_here,Yp(e));let i;switch(r.kind){case 304:case 303:IJ(r.exclamationToken,Ea.A_definite_assignment_assertion_is_not_permitted_in_this_context),AJ(r.questionToken,Ea.An_object_member_cannot_be_declared_optional),9===e.kind&&YJ(e),i=4;break;case 174:i=8;break;case 177:i=1;break;case 178:i=2;break;default:Sn.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!t){const t=tz(e);if(void 0===t)continue;const r=n.get(t);if(r)if(8&i&&8&r)GJ(e,Ea.Duplicate_identifier_0,Yp(e));else if(4&i&&4&r)GJ(e,Ea.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Yp(e));else{if(!(3&i&&3&r))return GJ(e,Ea.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||i===r)return GJ(e,Ea.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(t,i|r)}else n.set(t,i)}}}(e,i);const o=H?op():void 0;let a=op(),s=[],c=Pn;uP(e);const l=KF(e,void 0),_=l&&l.pattern&&(206===l.pattern.kind||210===l.pattern.kind),u=IL(e),d=u?8:0,p=Tg(e)&&!Cg(e),f=p?cl(e):void 0,m=!l&&p&&!f;let g=ae,h=!1,y=!1,v=!1,b=!1;for(const t of e.properties)t.name&&cD(t.name)&&KP(t.name);let x=0;for(const n of e.properties){let r=ds(n);const m=n.name&&167===n.name.kind?KP(n.name):void 0;if(303===n.kind||304===n.kind||Am(n)){let a=303===n.kind?LL(n,t):304===n.kind?OL(!i&&n.objectAssignmentInitializer?n.objectAssignmentInitializer:n.name,t):jL(n,t);if(p){const e=tl(n);e?(TS(a,e,n),a=e):f&&f.typeExpression&&TS(a,Sx(f.typeExpression),n)}g|=458752&Zx(a);const s=m&&fC(m)?m:void 0,c=s?Ao(4|r.flags,mC(s),4096|d):Ao(4|r.flags,r.escapedName,d);if(s&&(c.links.nameType=s),i){(303===n.kind&&jP(n.initializer)||304===n.kind&&n.objectAssignmentInitializer)&&(c.flags|=16777216)}else if(_&&!(512&Zx(l))){const e=bp(l,r.escapedName);e?c.flags|=16777216&e.flags:C.suppressExcessPropertyErrors||jp(l,qt)||To(n.name,Ea.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,tc(r),rc(l))}if(c.declarations=r.declarations,c.parent=r.parent,r.valueDeclaration&&(c.valueDeclaration=r.valueDeclaration),c.links.type=a,c.links.target=r,r=c,null==o||o.set(c.escapedName,c),l&&2&t&&!(4&t)&&(303===n.kind||174===n.kind)&&lS(n)){const t=gP(e);Sn.assert(t);WC(t,303===n.kind?n.initializer:n,a)}}else{if(305===n.kind){w<2&&vJ(n,2),s.length>0&&(c=ox(c,S(),e.symbol,g,u),s=[],a=op(),y=!1,v=!1,b=!1);const r=lp($L(n.expression,2&t));if(_E(r)){const t=Hb(r,u);if(o&&vE(t,o,n),x=s.length,Uc(c))continue;c=ox(c,t,e.symbol,g,u)}else To(n,Ea.Spread_types_may_only_be_created_from_object_types),c=Nt;continue}Sn.assert(177===n.kind||178===n.kind),HR(n)}!m||8576&m.flags?a.set(r.escapedName,r):bS(m,yn)&&(bS(m,Ut)?v=!0:bS(m,en)?b=!0:y=!0,i&&(h=!0)),s.push(r)}if(pP(),_){const t=kc(l.pattern.parent,(e=>260===e.kind||226===e.kind||169===e.kind));if(305!==kc(e,(e=>e===t||305===e.kind)).kind)for(const e of jd(l))a.get(e.escapedName)||bp(c,e.escapedName)||(16777216&e.flags||To(e.valueDeclaration||(null==(n=ft(e,ap))?void 0:n.links.bindingElement),Ea.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(e.escapedName,e),s.push(e))}return Uc(c)?Nt:c!==Pn?(s.length>0&&(c=ox(c,S(),e.symbol,g,u),s=[],a=op(),y=!1,v=!1),CN(c,(e=>e===Pn?S():e))):S();function S(){const t=[];y&&t.push(eE(e,x,s,qt)),v&&t.push(eE(e,x,s,Ut)),b&&t.push(eE(e,x,s,en));const n=Ls(e.symbol,a,r,r,t);return n.objectFlags|=131200|g,m&&(n.objectFlags|=4096),h&&(n.objectFlags|=512),i&&(n.pattern=e),n}}function _E(e){const t=XT(CN(e,Hd));return!!(126615553&t.flags||3145728&t.flags&&N(t.types,_E))}function fE(e){return e.includes("-")}function mE(e){return HN(e)&&mv(e.escapedText)||MP(e)}function hE(e,t){return e.initializer?OL(e.initializer,t):Gt}function yE(e,t){const n=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||n.push(qt);else{if(294===r.kind&&!r.expression)continue;n.push(OL(r,t))}return n}function vE(e,t,n){for(const r of jd(e))if(!(16777216&r.flags)){const e=t.get(r.escapedName);if(e){pT(To(e.valueDeclaration,Ea._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Nc(e.escapedName)),Bf(n,Ea.This_spread_always_overwrites_this_property))}}}function bE(e,t){return function(e,t=0){const n=e.attributes,i=_P(n,0),o=H?op():void 0;let a,s=op(),c=En,l=!1,_=!1,u=2048;const d=AE(CE(e));for(const e of n.properties){const r=e.symbol;if(IP(e)){const a=hE(e,t);u|=458752&Zx(a);const c=Ao(4|r.flags,r.escapedName);if(c.declarations=r.declarations,c.parent=r.parent,r.valueDeclaration&&(c.valueDeclaration=r.valueDeclaration),c.links.type=a,c.links.target=r,s.set(c.escapedName,c),null==o||o.set(c.escapedName,c),cC(e.name)===d&&(_=!0),i){const t=bp(i,r.escapedName);t&&t.declarations&&Fo(t)&&HN(e.name)&&Eo(e.name,t.declarations,e.name.escapedText)}if(i&&2&t&&!(4&t)&&lS(e)){const t=gP(n);Sn.assert(t),WC(t,e.initializer.expression,a)}}else{Sn.assert(293===e.kind),s.size>0&&(c=ox(c,f(),n.symbol,u,!1),s=op());const r=lp($L(e.expression,2&t));zc(r)&&(l=!0),_E(r)?(c=ox(c,r,n.symbol,u,!1),o&&vE(r,o,e)):(To(e.expression,Ea.Spread_types_may_only_be_created_from_object_types),a=a?rv([a,r]):r)}}l||s.size>0&&(c=ox(c,f(),n.symbol,u,!1));const p=284===e.parent.kind?e.parent:void 0;if(p&&p.openingElement===e&&iv(p.children).length>0){const i=yE(p,t);if(!l&&d&&""!==d){_&&To(n,Ea._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Nc(d));const t=KF(e.attributes,void 0),o=t&&JF(t,d),a=Ao(4,d);a.links.type=1===i.length?i[0]:o&&bN(o,oT)?py(i):Bh(Uy(i)),a.valueDeclaration=AC.createPropertySignature(void 0,Nc(d),void 0,void 0),AT(a.valueDeclaration,n),a.valueDeclaration.symbol=a;const s=op();s.set(d,a),c=ox(c,Ls(n.symbol,s,r,r,r),n.symbol,u,!1)}}return l?kt:a&&c!==En?rv([a,c]):a||(c===En?f():c);function f(){u|=ae;const e=Ls(n.symbol,s,r,r,r);return e.objectFlags|=131200|u,e}}(e.parent,t)}function xE(e,t){const n=CE(t),r=n&&as(n),i=r&&Xo(r,e,788968);return i?Z_(i):Nt}function kE(e){const t=Wo(e);if(!t.resolvedSymbol){const n=xE(wB.IntrinsicElements,e);if(Uc(n))return Q&&To(e,Ea.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Nc(wB.IntrinsicElements)),t.resolvedSymbol=yt;{if(!HN(e.tagName)&&!MP(e.tagName))return Sn.fail();const r=MP(e.tagName)?uC(e.tagName):e.tagName.escapedText,i=bp(n,r);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;const o=aB(n,fx(Nc(r)));return o?(t.jsxFlags|=2,t.resolvedSymbol=o):Rc(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(To(e,Ea.Property_0_does_not_exist_on_type_1,pC(e.tagName),"JSX."+wB.IntrinsicElements),t.resolvedSymbol=yt)}}return t.resolvedSymbol}function TE(e){const t=e&&Cp(e),n=t&&Wo(t);if(n&&!1===n.jsxImplicitImportContainer)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;const r=kk(Sk(C,t),C);if(!r)return;const i=Xa(e,r,1===GS(C)?Ea.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:Ea.Cannot_find_module_0_or_its_corresponding_type_declarations,e),o=i&&i!==yt?us(ja(i)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}function CE(e){const t=e&&Wo(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){let n=TE(e);if(!n||n===yt){const t=vo(e);n=ta(e,t,1920,void 0,t,!1)}if(n){const e=ja(Xo(as(ja(n)),wB.JSX,1920));if(e&&e!==yt)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}const n=ja(Wg(wB.JSX,1920,void 0));return n!==yt?n:void 0}function DE(e,t){const n=t&&Xo(t.exports,e,788968),r=n&&Z_(n),i=r&&jd(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&n.declarations&&To(n.declarations[0],Ea.The_global_type_JSX_0_may_not_have_more_than_one_property,Nc(e))}}function AE(e){return DE(wB.ElementChildrenAttributeNameContainer,e)}function OE(e,t){if(4&e.flags)return[ii];if(128&e.flags){const n=jE(e,t);if(n){return[jI(t,n)]}return To(t,Ea.Property_0_does_not_exist_on_type_1,e.value,"JSX."+wB.IntrinsicElements),r}const n=ep(e);let i=Sp(n,1);return 0===i.length&&(i=Sp(n,0)),0===i.length&&1048576&n.flags&&(i=Ku(J(n.types,(e=>OE(e,t))))),i}function jE(e,t){const n=xE(wB.IntrinsicElements,t);if(!Uc(n)){const t=bp(n,wc(e.value));if(t)return n_(t);const r=Mp(n,qt);return r||void 0}return kt}function ME(e){var t;Sn.assert(mE(e.tagName));const n=Wo(e);if(!n.resolvedJsxElementAttributesType){const r=kE(e);if(1&n.jsxFlags)return n.resolvedJsxElementAttributesType=n_(r)||Nt;if(2&n.jsxFlags){const r=MP(e.tagName)?uC(e.tagName):e.tagName.escapedText;return n.resolvedJsxElementAttributesType=(null==(t=Jp(xE(wB.IntrinsicElements,e),r))?void 0:t.type)||Nt}return n.resolvedJsxElementAttributesType=Nt}return n.resolvedJsxElementAttributesType}function RE(e){const t=xE(wB.ElementClass,e);if(!Uc(t))return t}function BE(e){return xE(wB.Element,e)}function JE(e){const t=BE(e);if(t)return Uy([t,Jt])}function qE(e){const t=CE(e);if(!t)return;const n=(r=t)&&Xo(r.exports,wB.ElementType,788968);var r;if(!n)return;const i=UE(n,Tg(e));return i&&!Uc(i)?i:void 0}function UE(e,t,...n){const r=Z_(e);if(524288&e.flags){const i=Uo(e).typeParameters;if(v(i)>=n.length){const o=$p(n,i,n.length,t);return 0===v(o)?r:Pm(e,o)}}if(v(r.typeParameters)>=n.length){return dm(r,$p(n,r.typeParameters,n.length,t))}}function VE(e){const t=Mu(e);var n;if(t&&function(e){(function(e){if(YD(e)&&MP(e.expression))return GJ(e.expression,Ea.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(MP(e)&&xk(C)&&!mv(e.namespace.escapedText))GJ(e,Ea.React_components_cannot_include_JSX_namespace_names)})(e.tagName),NJ(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(293===n.kind)continue;const{name:e,initializer:r}=n,i=cC(e);if(t.get(i))return GJ(e,Ea.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),r&&294===r.kind&&!r.expression)return GJ(r,Ea.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(C.jsx||0)&&To(n,Ea.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===BE(n)&&Q&&To(n,Ea.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!TE(e)){const n=oo&&2===C.jsx?Ea.Cannot_find_name_0:void 0,r=vo(e),i=t?e.tagName:e;let o;if(EP(e)&&"null"===r||(o=ta(i,r,111551,n,r,!0)),o&&(o.isReferenced=67108863,Oe&&2097152&o.flags&&!za(o)&&Ua(o)),EP(e)){const t=bo(Cp(e));t&&ta(i,t,111551,n,t,!0)}}if(t){const t=e,n=BI(t);UI(n,e);const r=qE(t);if(void 0!==r){const e=t.tagName;hk(mE(e)?fx(pC(e)):$L(e),r,_o,e,Ea.Its_type_0_is_not_a_valid_JSX_element_type,(()=>{const t=Yp(e);return LS(void 0,Ea._0_cannot_be_used_as_a_JSX_component,t)}))}else!function(e,t,n){if(1===e){const e=JE(n);e&&hk(t,e,_o,n.tagName,Ea.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=RE(n);e&&hk(t,e,_o,n.tagName,Ea.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=JE(n),i=RE(n);if(!e||!i)return;hk(t,Uy([e,i]),_o,n.tagName,Ea.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=Yp(n.tagName);return LS(void 0,Ea._0_cannot_be_used_as_a_JSX_component,e)}}(pI(t),of(n),t)}}function WE(e,t,n){if(524288&e.flags){if(Od(e,t)||Jp(e,t)||yu(t)&&jp(e,qt)||n&&fE(t))return!0}else if(3145728&e.flags&&HE(e))for(const r of e.types)if(WE(r,t,n))return!0;return!1}function HE(e){return!!(524288&e.flags&&!(512&Zx(e))||67108864&e.flags||1048576&e.flags&&re(e.types,HE)||2097152&e.flags&&N(e.types,HE))}function $E(e,t){if(function(e){if(e.expression&&sA(e.expression))GJ(e.expression,Ea.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=$L(e.expression,t);return e.dotDotDotToken&&n!==kt&&!Kk(n)&&To(e,Ea.JSX_spread_child_must_be_an_array_type),n}return Nt}function KE(e){return e.valueDeclaration?rz(e.valueDeclaration):0}function GE(e){if(8192&e.flags||4&Jx(e))return!0;if(Tg(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&pF(t)&&3===Gg(t)}}function XE(e,t,n,r,i,o=!0){return QE(e,t,n,r,i,o?166===e.kind?e.right:205===e.kind?e:208===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function QE(e,t,n,r,i,o){var a;const s=zx(i,n);if(t){if(w<2&&YE(i))return o&&To(o,Ea.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return o&&To(o,Ea.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,tc(i),rc(Mk(i))),!1;if(!(256&s)&&(null==(a=i.declarations)?void 0:a.some(F_)))return o&&To(o,Ea.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,tc(i)),!1}if(64&s&&YE(i)&&(tg(e)||rg(e)||$D(e.parent)&&ng(e.parent.parent))){const t=Yx(ms(i));if(t&&kc(e,(e=>!!(hD(e)&&Op(e.body)||pD(e))||!(!w_(e)&&!b_(e))&&"quit")))return o&&To(o,Ea.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,tc(i),Ly(t.name)),!1}if(!(6&s))return!0;if(2&s){return!!rB(e,Yx(ms(i)))||(o&&To(o,Ea.Property_0_is_private_and_only_accessible_within_class_1,tc(i),rc(Mk(i))),!1)}if(t)return!0;let c=nB(e,(e=>Bk(Z_(ds(e)),i,n)));return!c&&(c=function(e){const t=function(e){const t=$m(e,!1,!1);return t&&y_(t)?Wv(t):void 0}(e);let n=(null==t?void 0:t.type)&&Sx(t.type);n&&262144&n.flags&&(n=Rd(n));if(n&&7&Zx(n))return s_(n);return}(e),c=c&&Bk(c,i,n),256&s||!c)?(o&&To(o,Ea.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,tc(i),rc(Mk(i)||r)),!1):!!(256&s)||(262144&r.flags&&(r=r.isThisType?Rd(r):Wd(r)),!(!r||!c_(r,c))||(o&&To(o,Ea.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,tc(i),rc(c),rc(r)),!1))}function YE(e){return!!jk(e,(e=>!(8192&e.flags)))}function ZE(e){return aA($L(e),e)}function eA(e){return Yw(e,50331648)}function tA(e){return eA(e)?yC(e):e}function nA(e,t){const n=Kb(e)?Rf(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(HN(e)&&"undefined"===n)return void To(e,Ea.The_value_0_cannot_be_used_here,"undefined");To(e,16777216&t?33554432&t?Ea._0_is_possibly_null_or_undefined:Ea._0_is_possibly_undefined:Ea._0_is_possibly_null,n)}else To(e,16777216&t?33554432&t?Ea.Object_is_possibly_null_or_undefined:Ea.Object_is_possibly_undefined:Ea.Object_is_possibly_null);else To(e,Ea.The_value_0_cannot_be_used_here,"null")}function rA(e,t){To(e,16777216&t?33554432&t?Ea.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:Ea.Cannot_invoke_an_object_which_is_possibly_undefined:Ea.Cannot_invoke_an_object_which_is_possibly_null)}function oA(e,t,n){if(H&&2&e.flags){if(Kb(t)){const e=Rf(t);if(e.length<100)return To(t,Ea._0_is_of_type_unknown,e),Nt}return To(t,Ea.Object_is_of_type_unknown),Nt}const r=Qw(e,50331648);if(50331648&r){n(t,r);const i=yC(e);return 229376&i.flags?Nt:i}return e}function aA(e,t){return oA(e,t,nA)}function _A(e,t){const n=aA(e,t);if(16384&n.flags){if(Kb(t)){const e=Rf(t);if(HN(t)&&"undefined"===e)return To(t,Ea.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return To(t,Ea._0_is_possibly_undefined,e),n}To(t,Ea.Object_is_possibly_undefined)}return n}function pA(e,t,n){return 64&e.flags?function(e,t){const n=$L(e.expression),r=SC(n,e.expression);return xC(xA(e,e.expression,aA(r,e.expression),e.name,t),e,r!==n)}(e,t):xA(e,e.expression,ZE(e.expression),e.name,t,n)}function fA(e,t){const n=gg(e)&&$v(e.left)?aA(WD(e.left),e.left):ZE(e.left);return xA(e,e.left,n,e.right,t)}function mA(e){for(;217===e.parent.kind;)e=e.parent;return Y_(e.parent)&&e.parent.expression===e}function gA(e,t){for(let n=Hm(t);n;n=Um(n)){const{symbol:t}=n,r=Ry(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function hA(e){!function(e){if(!Um(e))return GJ(e,Ea.Private_identifiers_are_not_allowed_outside_class_bodies);if(!RF(e.parent)){if(!fg(e))return GJ(e,Ea.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const t=pF(e.parent)&&103===e.parent.operatorToken.kind;if(!yA(e)&&!t)return GJ(e,Ea.Cannot_find_name_0,Dc(e))}}(e);const t=yA(e);return t&&MA(t,void 0,!1),kt}function yA(e){if(!fg(e))return;const t=Wo(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=gA(e.escapedText,e)),t.resolvedSymbol}function vA(e,t){return bp(e,t.escapedName)}function bA(e,t){return(ol(t)||tg(e)&&sl(t))&&$m(e,!0,!1)===_l(t)}function xA(e,t,n,r,i,o){const a=Wo(t).resolvedSymbol,s=zh(e),c=ep(0!==s||mA(e)?LC(n):n),l=zc(c)||c===cn;let _,u;if($N(r)){w<99&&(0!==s&&vJ(e,1048576),1!==s&&vJ(e,524288));const t=gA(r.escapedText,r);if(s&&t&&t.valueDeclaration&&mD(t.valueDeclaration)&&GJ(r,Ea.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,Dc(r)),l){if(t)return Uc(c)?Nt:c;if(void 0===Hm(r))return GJ(r,Ea.Private_identifiers_are_not_allowed_outside_class_bodies),kt}if(_=t&&vA(n,t),void 0===_){if(function(e,t,n){let r;const i=jd(e);i&&b(i,(e=>{const n=e.valueDeclaration;if(n&&Lc(n)&&$N(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0}));const o=aa(t);if(r){const i=Sn.checkDefined(r.valueDeclaration),a=Sn.checkDefined(Um(i));if(null==n?void 0:n.valueDeclaration){const r=n.valueDeclaration,s=Um(r);if(Sn.assert(!!s),kc(s,(e=>a===e)))return pT(To(t,Ea.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,rc(e)),Bf(r,Ea.The_shadowing_declaration_of_0_is_defined_here,o),Bf(i,Ea.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return To(t,Ea.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,aa(a.name||fB)),!0}return!1}(n,r,t))return Nt;const e=Hm(r);e&&Np(Cp(e),C.checkJs)&&GJ(r,Ea.Private_field_0_must_be_declared_in_an_enclosing_class,Dc(r))}else{65536&_.flags&&!(32768&_.flags)&&1!==s&&To(e,Ea.Private_accessor_was_defined_without_a_getter)}}else{if(l)return HN(t)&&a&&FD(a,e),Uc(c)?Nt:c;_=bp(c,r.escapedText,fL(c),166===e.kind)}if(HN(t)&&a&&(YS(C)||!_||!($B(_)||8&_.flags&&306===e.parent.kind)||uk(C)&&SD(e))&&FD(a,e),_){const n=PR(_,r);if(Fo(n)&&Iv(e,n)&&n.declarations&&Eo(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||Cp(t).isDeclarationFile)return;let i;const o=Dc(n);!TA(t)||function(e){return pD(e)&&!bb(e)&&e.questionToken}(r)||sS(t)&&sS(t.expression)||Qo(r,n)||mD(r)&&256&nz(r)||!R&&function(e){if(!(32&e.parent.flags))return!1;let t=n_(e.parent);for(;;){if(t=t.symbol&&CA(t),!t)return!1;const n=bp(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?263!==r.kind||183===t.parent.kind||33554432&r.flags||Qo(r,n)||(i=To(n,Ea.Class_0_used_before_its_declaration,o)):i=To(n,Ea.Property_0_is_used_before_its_initialization,o);i&&pT(i,Bf(r,Ea._0_is_declared_here,o))}(_,e,r),MA(_,e,RA(t,a)),Wo(e).resolvedSymbol=_,XE(e,108===t.kind,Wx(e),c,_),oL(e,_,s))return To(r,Ea.Cannot_assign_to_0_because_it_is_a_read_only_property,Dc(r)),Nt;u=bA(e,_)?Tt:o||Vx(e)?t_(_):n_(_)}else{const t=$N(r)||0!==s&&Bv(n)&&!KT(n)?void 0:Jp(c,r.escapedText);if(!t||!t.type){const t=SA(e,n.symbol,!0);return!t&&Pv(n)?kt:n.symbol===me?(me.exports.has(r.escapedText)&&418&me.exports.get(r.escapedText).flags?To(r,Ea.Property_0_does_not_exist_on_type_1,Nc(r.escapedText),rc(n)):Q&&To(r,Ea.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,rc(n)),kt):(r.escapedText&&!la(e)&&wA(r,KT(n)?c:n,t),Nt)}t.isReadonly&&(qh(e)||Yh(e))&&To(e,Ea.Index_signature_in_type_0_only_permits_reading,rc(c)),u=C.noUncheckedIndexedAccess&&!qh(e)?Uy([t.type,Mt]):t.type,C.noPropertyAccessFromIndexSignature&&YD(e)&&To(r,Ea.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Nc(r.escapedText)),t.declaration&&Po(t.declaration)&&Eo(r,[t.declaration],r.escapedText)}return kA(e,_,u,r,i)}function SA(e,t,n){var r;const i=Cp(e);if(i&&void 0===C.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){const o=b(null==t?void 0:t.declarations,Cp),a=!(null==t?void 0:t.valueDeclaration)||!w_(t.valueDeclaration)||(null==(r=t.valueDeclaration.heritageClauses)?void 0:r.length)||_g(!1,t.valueDeclaration);return!(i!==o&&o&&Go(o)||n&&t&&32&t.flags&&a||e&&n&&YD(e)&&110===e.expression.kind&&a)}return!1}function kA(e,t,n,r,i){const o=zh(e);if(1===o)return kC(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!zR(t.declarations))return n;if(n===Tt)return dl(e,t);n=aD(n,e,i);let a=!1;if(H&&X&&sS(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&pR(n)&&!mb(n)){const t=YN(e);176!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else H&&t&&t.valueDeclaration&&YD(t.valueDeclaration)&&oh(t.valueDeclaration)&&YN(e)===YN(t.valueDeclaration)&&(a=!0);const s=QN(e,n,a?dC(n):n);return a&&!ZS(n)&&ZS(s)?(To(r,Ea.Property_0_is_used_before_being_assigned,tc(t)),n):o?xT(s):s}function TA(e){return!!kc(e,(e=>{switch(e.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return!(!PF(e.parent)||!gD(e.parent.parent))||"quit";default:return!fg(e)&&"quit"}}))}function CA(e){const t=M_(e);if(0!==t.length)return rv(t)}function wA(e,t,n){let r,i;if(!$N(e)&&1048576&t.flags&&!(402784252&t.flags))for(const n of t.types)if(!bp(n,e.escapedText)&&!Jp(n,e.escapedText)){r=LS(r,Ea.Property_0_does_not_exist_on_type_1,If(e),rc(n));break}if(NA(e.escapedText,t)){const n=If(e),i=rc(t);r=LS(r,Ea.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,n,i,i+"."+n)}else{const o=bj(t);if(o&&bp(o,e.escapedText))r=LS(r,Ea.Property_0_does_not_exist_on_type_1,If(e),rc(t)),i=Bf(e,Ea.Did_you_forget_to_use_await);else{const o=If(e),a=rc(t),s=function(e,t){const n=ep(t).symbol;if(!n)return;const r=Pc(n),i=ad().get(r);if(i)for(const[t,n]of i)if(I(n,e))return t}(o,t);if(void 0!==s)r=LS(r,Ea.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,o,a,s);else{const s=FA(e,t);if(void 0!==s){const e=Pc(s);r=LS(r,n?Ea.Property_0_may_not_exist_on_type_1_Did_you_mean_2:Ea.Property_0_does_not_exist_on_type_1_Did_you_mean_2,o,a,e),i=s.valueDeclaration&&Bf(s.valueDeclaration,Ea._0_is_declared_here,e)}else{const e=function(e){return C.lib&&!C.lib.includes("dom")&&(t=e,n=e=>e.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Nc(e.symbol.escapedName)),3145728&t.flags?N(t.types,n):n(t))&&WS(e);var t,n}(t)?Ea.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:Ea.Property_0_does_not_exist_on_type_1;r=LS(yp(r,t),e,o,a)}}}}const o=qf(Cp(e),e,r);i&&pT(o,i),Co(!n||r.code!==Ea.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,o)}function NA(e,t){const n=t.symbol&&bp(n_(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&mb(n.valueDeclaration)}function DA(e,t){return jA(e,jd(t),106500)}function FA(e,t){let n=jd(t);if("string"!=typeof e){const r=e.parent;YD(r)&&(n=M(n,(e=>BA(r,t,e)))),e=Dc(e)}return jA(e,n,111551)}function PA(e,t){const n=dt(e)?e:Dc(e),r=jd(t);return("for"===n?D(r,(e=>"htmlFor"===Pc(e))):"class"===n?D(r,(e=>"className"===Pc(e))):void 0)??jA(n,r,111551)}function EA(e,t){const n=FA(e,t);return n&&Pc(n)}function OA(e,t,n){Sn.assert(void 0!==t,"outername should always be defined");return na(e,t,n,void 0,t,!1,!1,!0,((e,n,r)=>{Sn.assertEqual(t,n,"name should equal outerName");const i=Xo(e,n,r);if(i)return i;let o;if(e===pe){o=G(["string","number","boolean","object","bigint","symbol"],(t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?Ao(524288,t):void 0)).concat($e(e.values()))}else o=$e(e.values());return jA(Nc(n),o,r)}))}function LA(e,t){return t.exports&&jA(Dc(e),rs(t),2623475)}function jA(e,t,n){return Wt(e,t,(function(e){const t=Pc(e);if(an(t,'"'))return;if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(Uo(e).aliasTarget!==vt)return Ma(e)}(e);if(r&&r.flags&n)return t}return}))}function MA(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=pb(r,2),o=e.valueDeclaration&&Lc(e.valueDeclaration)&&$N(e.valueDeclaration.name);if((i||o)&&(!t||!Vx(t)||65536&e.flags)){if(n){const n=kc(t,b_);if(n&&n.symbol===e)return}(1&Jx(e)?Uo(e).target:e).isReferenced=67108863}}function RA(e,t){return 110===e.kind||!!t&&Kb(e)&&t===Pw(Gb(e))}function BA(e,t,n){return zA(e,211===e.kind&&108===e.expression.kind,!1,t,n)}function JA(e,t,n,r){if(zc(r))return!0;const i=bp(r,n);return!!i&&zA(e,t,!1,r,i)}function zA(e,t,n,r,i){if(zc(r))return!0;if(i.valueDeclaration&&l_(i.valueDeclaration)){const t=Um(i.valueDeclaration);return!Pl(e)&&!!kc(e,(e=>e===t))}return QE(e,t,n,r,i)}function qA(e){const t=e.initializer;if(261===t.kind){const e=t.declarations[0];if(e&&!R_(e.name))return ds(e)}else if(80===t.kind)return Pw(t)}function UA(e,t){return 64&e.flags?function(e,t){const n=$L(e.expression),r=SC(n,e.expression);return xC(VA(e,aA(r,e.expression),t),e,r!==n)}(e,t):VA(e,ZE(e.expression),t)}function VA(e,t,n){const r=0!==zh(e)||mA(e)?LC(t):t,i=e.argumentExpression,o=$L(i);if(Uc(r)||r===cn)return r;if(fL(r)&&!Qu(i))return To(i,Ea.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Nt;const a=function(e){const t=Qh(e);if(80===t.kind){const r=Pw(t);if(3&r.flags){let t=e,i=e.parent;for(;i;){if(249===i.kind&&t===i.statement&&qA(i)===r&&1===Lp(n=VL(i.expression)).length&&jp(n,Ut))return!0;t=i,i=i.parent}}}var n;return!1}(i)?Ut:o,s=ab(r,a,qh(e)?4|(Bv(r)&&!KT(r)?2:0):32,e)||Nt;return dj(kA(e,Wo(e).resolvedSymbol,s,i,n),e)}function HA(e){return Y_(e)||nF(e)||Mu(e)}function $A(e){return HA(e)&&b(e.typeArguments,qR),215===e.kind?$L(e.template):Mu(e)?$L(e.attributes):pF(e)?$L(e.left):Y_(e)&&b(e.arguments,(e=>{$L(e)})),ii}function KA(e){return $A(e),oi}function GA(e){return!!e&&(230===e.kind||237===e.kind&&e.isSpread)}function XA(e){return P(e,GA)}function QA(e){return!!(16384&e.flags)}function YA(e){return!!(49155&e.flags)}function ZA(e,t,n,r=!1){let i,o=!1,a=SO(n),s=kO(n);if(215===e.kind)if(i=t.length,228===e.template.kind){const t=Ie(e.template.templateSpans);o=Ip(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;Sn.assert(15===t.kind),o=!!t.isUnterminated}else if(170===e.kind)i=vI(e,n);else if(226===e.kind)i=1;else if(Mu(e)){if(o=e.attributes.end===e.end,o)return!0;i=0===s?t.length:1,a=0===t.length?a:1,s=Math.min(s,1)}else{if(!e.arguments)return Sn.assert(214===e.kind),0===kO(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=XA(t);if(a>=0)return a>=kO(n)&&(TO(n)||a<SO(n))}}if(!TO(n)&&i>a)return!1;if(o||i>=s)return!0;for(let t=i;t<s;t++){if(131072&SN(vO(n,t),Tg(e)&&!H?YA:QA).flags)return!1}return!0}function eI(e,t){const n=v(e.typeParameters),r=Hp(e.typeParameters);return!re(t)||t.length>=r&&t.length<=n}function tI(e){return rI(e,0,!1)}function nI(e){return rI(e,0,!1)||rI(e,1,!1)}function rI(e,t,n){if(524288&e.flags){const r=Ad(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function iI(e,t,n,r){const i=qC(e.typeParameters,e,0,r),o=CO(t),a=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return JC(a?Bx(t,a):t,e,((e,t)=>{vw(i.inferences,e,t)})),n||zC(t,e,((e,t)=>{vw(i.inferences,e,t,128)})),hf(e,Dw(i),Tg(t.declaration))}function oI(e){if(!e)return nn;const t=$L(e);return ix(e)?t:El(e.parent)?yC(t):Pl(e.parent)?bC(t):t}function aI(e,t,n,r,i){if(Mu(e))return function(e,t,n,r){const i=SP(t,e),o=NL(e.attributes,i,r,n);return vw(r.inferences,o,i),Dw(r)}(e,t,r,i);if(170!==e.kind&&226!==e.kind){const n=N(t.typeParameters,(e=>!!Xd(e))),r=_P(e,n?8:0);if(r){const o=of(t);if(GC(o)){const a=gP(e);if(!(!n&&_P(e,8)!==r)){const e=KC(function(e,t=0){return e&&UC(J(e.inferences,$C),e.signature,e.flags|t,e.compareTypes)}(a,1)),t=nS(r,e),n=tI(t),s=n&&n.typeParameters?Cf(bf(n,n.typeParameters)):t;vw(i.inferences,s,o,128)}const s=qC(t.typeParameters,t,i.flags),c=nS(r,a&&a.returnMapper);vw(s.inferences,c,o),i.returnMapper=re(s.inferences,BL)?KC(function(e){const t=M(e.inferences,BL);return t.length?UC(J(t,$C),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=wO(t),a=o?Math.min(SO(t)-1,n.length):n.length;if(o&&262144&o.flags){const e=D(i.inferences,(e=>e.typeParameter===o));e&&(e.impliedArity=P(n,GA,a)<0?n.length-a:void 0)}const s=tf(t);if(s&&GC(s)){const t=mI(e);vw(i.inferences,oI(t),s)}for(let e=0;e<a;e++){const o=n[e];if(232!==o.kind){const n=vO(t,e);if(GC(n)){const e=NL(o,n,i,r);vw(i.inferences,e,n)}}}if(o&&GC(o)){const e=uI(n,a,n.length,o,i,r);vw(i.inferences,e,o)}return Dw(i)}function sI(e){return 1048576&e.flags?CN(e,sI):1&e.flags||Qk(Wd(e)||e)?e:LT(e)?py(Ty(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):py([e],[8])}function uI(e,t,n,r,i,o){const a=Bd(r);if(t>=n-1){const t=e[n-1];if(GA(t)){const e=237===t.kind?t.type:NL(t.expression,r,i,o);return Zk(e)?sI(e):Bh(kM(33,e,Lt,230===t.kind?t.expression:t),a)}}const s=[],c=[],l=[];for(let _=t;_<n;_++){const u=e[_];if(GA(u)){const e=237===u.kind?u.type:$L(u.expression);Zk(e)?(s.push(e),c.push(8)):(s.push(kM(33,e,Lt,230===u.kind?u.expression:u)),c.push(4))}else{const e=LT(r)?UF(r,_-t,n-t)||At:ib(r,mx(_-t),256),l=NL(u,e,i,o),d=a||uL(e,406978556);s.push(d?dx(l):DT(l)),c.push(1)}237===u.kind&&u.tupleNameSource?l.push(u.tupleNameSource):l.push(void 0)}return py(s,c,a&&!bN(r,tT),l)}function dI(e,t,n,r){const i=Tg(e.declaration),o=e.typeParameters,a=$p(J(t,Sx),o,Hp(o),i);let s;for(let e=0;e<t.length;e++){Sn.assert(void 0!==o[e],"Should not call checkTypeArguments with too many type arguments");const i=Rd(o[e]);if(i){const c=n&&r?()=>LS(void 0,Ea.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||Ea.Type_0_does_not_satisfy_the_constraint_1;s||(s=Dx(o,a));const _=a[e];if(!TS(_,Fu(nS(i,s),_),n?t[e]:void 0,l,c))return}}return a}function pI(e){if(mE(e.tagName))return 2;const t=ep($L(e.tagName));return v(Sp(t,1))?0:v(Sp(t,0))?1:2}function fI(e,t,n,i,o,a,s){const c={errors:void 0,skipLogging:!0};if(Mu(e))return function(e,t,n,r,i,o,a){const s=SP(t,e),c=NL(e.attributes,s,void 0,r),l=4&r?DC(c):c;return function(){var t;if(TE(e))return!0;const n=!DP(e)&&!NP(e)||mE(e.tagName)||MP(e.tagName)?void 0:$L(e.tagName);if(!n)return!0;const r=Sp(n,0);if(!v(r))return!0;const o=gJ(e);if(!o)return!0;const s=Ha(o,111551,!0,!1,e);if(!s)return!0;const c=Sp(n_(s),0);if(!v(c))return!0;let l=!1,_=0;for(const e of c){const t=Sp(vO(e,0),0);if(v(t))for(const e of t){if(l=!0,TO(e))return!0;const t=SO(e);t>_&&(_=t)}}if(!l)return!0;let u=1/0;for(const e of r){const t=kO(e);t<u&&(u=t)}if(u<=_)return!0;if(i){const n=Bf(e.tagName,Ea.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Rf(e.tagName),u,Rf(o),_),r=null==(t=cB(e.tagName))?void 0:t.valueDeclaration;r&&pT(n,Bf(r,Ea._0_is_declared_here,Rf(e.tagName))),a&&a.skipLogging&&(a.errors||(a.errors=[])).push(n),a.skipLogging||oo.add(n)}return!1}()&&wS(l,s,n,i?e.tagName:void 0,e.attributes,void 0,o,a)}(e,n,i,o,a,s,c)?void 0:(Sn.assert(!a||!!c.errors,"jsx should have errors when reporting errors"),c.errors||r);const l=tf(n);if(l&&l!==nn&&!(tF(e)||eF(e)&&eg(e.expression))){const t=mI(e),n=oI(t),o=a?t||e:void 0,_=Ea.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!hk(n,l,i,o,_,s,c))return Sn.assert(!a||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||r}const _=Ea.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,u=wO(n),d=u?Math.min(SO(n)-1,t.length):t.length;for(let e=0;e<d;e++){const l=t[e];if(232!==l.kind){const t=vO(n,e),u=NL(l,t,void 0,o),d=4&o?DC(u):u;if(!wS(d,t,i,a?l:void 0,l,_,s,c))return Sn.assert(!a||!!c.errors,"parameter should have errors when reporting errors"),p(l,d,t),c.errors||r}}if(u){const n=uI(t,d,t.length,u,void 0,o),s=t.length-d,l=a?0===s?e:1===s?t[d]:FT(gI(e,n),t[d].pos,t[t.length-1].end):void 0;if(!hk(n,u,i,l,_,void 0,c))return Sn.assert(!a||!!c.errors,"rest parameter should have errors when reporting errors"),p(l,n,u),c.errors||r}return;function p(e,t,n){if(e&&a&&c.errors&&c.errors.length){if(vj(n))return;const r=vj(t);r&&ok(r,n,i)&&pT(c.errors[0],Bf(e,Ea.Did_you_forget_to_use_await))}}}function mI(e){if(226===e.kind)return e.right;const t=213===e.kind?e.expression:215===e.kind?e.tag:170!==e.kind||L?void 0:e.expression;if(t){const e=uA(t);if(sS(e))return e.expression}}function gI(e,t,n,r){const i=hI.createSyntheticExpression(t,n,r);return cI(i,e),AT(i,e),i}function yI(e){if(215===e.kind){const t=e.template,n=[gI(t,Ar||(Ar=Qg("TemplateStringsArray",0,!0)||Pn))];return 228===t.kind&&b(t.templateSpans,(e=>{n.push(e.expression)})),n}if(170===e.kind)return function(e){const t=e.expression,n=UO(e);if(n){const e=[];for(const r of n.parameters){const n=n_(r);e.push(gI(t,n))}return e}return Sn.fail()}(e);if(226===e.kind)return[e.left];if(Mu(e))return e.attributes.properties.length>0||DP(e)&&e.parent.children.length>0?[e.attributes]:r;const t=e.arguments||r,n=XA(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r<t.length;r++){const n=t[r],i=230===n.kind&&(bi?$L(n.expression):DL(n.expression));i&&LT(i)?b(Ty(i),((t,r)=>{var o;const a=i.target.elementFlags[r],s=gI(n,4&a?Bh(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)})):e.push(n)}return e}return t}function vI(e,t){return C.experimentalDecorators?function(e,t){switch(e.parent.kind){case 263:case 231:return 1;case 172:return bb(e.parent)?3:2;case 174:case 177:case 178:return 0===w||t.parameters.length<=2?2:3;case 169:return 3;default:return Sn.fail()}}(e,t):2}function bI(e,t){let n,r;const i=Cp(e);if(YD(e.expression)){const o=Qf(i,e.expression.name);n=o.start,r=t?o.length:e.end-n}else{const o=Qf(i,e.expression);n=o.start,r=t?o.length:e.end-n}return{start:n,length:r,sourceFile:i}}function xI(e,t,...n){if(eF(e)){const{sourceFile:r,start:i,length:o}=bI(e);return"message"in t?ES(r,i,o,t,...n):Hf(r,t)}return"message"in t?Bf(e,t,...n):qf(Cp(e),e,t)}function SI(e,t,n,r){var i;const o=XA(n);if(o>-1)return Bf(n[o],Ea.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let a,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,_=Number.POSITIVE_INFINITY;for(const e of t){const t=kO(e),r=SO(e);t<s&&(s=t,a=e),c=Math.max(c,r),t<n.length&&t>l&&(l=t),n.length<r&&r<_&&(_=r)}const u=re(t,TO),d=u?s:s<c?s+"-"+c:s,p=!u&&1===d&&0===n.length&&function(e){if(!eF(e)||!HN(e.expression))return!1;const t=ta(e.expression,e.expression.escapedText,111551,void 0,void 0,!1),n=null==t?void 0:t.valueDeclaration;if(!(n&&_D(n)&&VT(n.parent)&&tF(n.parent.parent)&&HN(n.parent.parent.expression)))return!1;const r=ph(!1);return!!r&&cB(n.parent.parent.expression,!0)===r}(e);if(p&&Tg(e))return xI(e,Ea.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const f=uD(e)?u?Ea.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:Ea.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:u?Ea.Expected_at_least_0_arguments_but_got_1:p?Ea.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:Ea.Expected_0_arguments_but_got_1;if(s<n.length&&n.length<c){if(r){let t=LS(void 0,Ea.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,_);return t=LS(t,r),xI(e,t)}return xI(e,Ea.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,_)}if(n.length<s){let t;if(r){let i=LS(void 0,f,d,n.length);i=LS(i,r),t=xI(e,i)}else t=xI(e,f,d,n.length);const o=null==(i=null==a?void 0:a.declaration)?void 0:i.parameters[a.thisParameter?n.length+1:n.length];if(o){return pT(t,Bf(o,...R_(o.name)?[Ea.An_argument_matching_this_binding_pattern_was_not_provided]:ed(o)?[Ea.Arguments_for_the_rest_parameter_0_were_not_provided,Dc(Gb(o.name))]:[Ea.An_argument_for_0_was_not_provided,o.name?Dc(Gb(o.name)):n.length]))}return t}{const t=AC.createNodeArray(n.slice(c)),i=Pe(t).pos;let o=Ie(t).end;if(o===i&&o++,FT(t,i,o),r){let i=LS(void 0,f,d,n.length);return i=LS(i,r),Uf(Cp(e),t,i)}return Jf(Cp(e),t,f,d,n.length)}}function kI(e,t,n,i,o,a){const s=215===e.kind,c=170===e.kind,l=Mu(e),_=226===e.kind,u=!x&&!n;let d;c||_||am(e)||(d=e.typeArguments,(s||l||108!==e.expression.kind)&&b(d,qR));const p=n||[];!function(e,t,n){let r,i,o,a,s=0,c=-1;Sn.assert(!t.length);for(const l of e){const e=l.declaration&&ds(l.declaration),_=l.declaration&&l.declaration.parent;i&&e!==i?(o=s=t.length,r=_):r&&_===r?o+=1:(r=_,o=s),i=e,BB(l)?(c++,a=c,s++):a=o,t.splice(a,0,n?ju(l,n):l)}}(t,p,o),Sn.assert(p.length,"Revert #54442 and add a testcase with whatever triggered this");const f=yI(e),m=1===p.length&&!p[0].typeParameters;let g,h,y,S,k=c||m||!re(f,lS)?0:4;const T=!!(16&i)&&213===e.kind&&e.arguments.hasTrailingComma;if(p.length>1&&(S=w(p,co,m,T)),S||(S=w(p,_o,m,T)),S)return S;if(S=function(e,t,n,r,i){return Sn.assert(t.length>0),HR(e),r||1===t.length||t.some((e=>!!e.typeParameters))?function(e,t,n,r){const i=function(e,t){let n=-1,r=-1;for(let i=0;i<e.length;i++){const o=e[i],a=SO(o);if(TO(o)||a>=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===ye?n.length:ye),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=HA(e)?e.typeArguments:void 0,c=s?xf(o,function(e,t,n){const r=e.map(lB);for(;r.length>t.length;)r.pop();for(;r.length<t.length;)r.push(Xd(t[r.length])||Rd(t[r.length])||Nw(n));return r}(s,a,Tg(e))):function(e,t,n,r,i){const o=qC(t,n,Tg(e)?2:0),a=aI(e,n,r,12|i,o);return xf(n,a)}(e,a,o,n,r);return t[i]=c,c}(e,t,n,i):function(e){const t=G(e,(e=>e.thisParameter));let n;t.length&&(n=CI(t,t.map(pO)));const{min:r,max:i}=fT(e,TI),o=[];for(let t=0;t<i;t++){const n=G(e,(e=>RB(e)?t<e.parameters.length-1?e.parameters[t]:Ie(e.parameters):t<e.parameters.length?e.parameters[t]:void 0));Sn.assert(0!==n.length),o.push(CI(n,G(e,(e=>bO(e,t)))))}const a=G(e,(e=>RB(e)?Ie(e.parameters):void 0));let s=128;if(0!==a.length){const t=Bh(Uy(G(e,df),2));o.push(wI(a,t)),s|=1}e.some(BB)&&(s|=2);return Au(e[0].declaration,void 0,n,o,rv(e.map(of)),void 0,r,s)}(t)}(e,p,f,!!n,i),Wo(e).resolvedSignature=S,u)if(!a&&_&&(a=Ea.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),g)if(1===g.length||g.length>3){const t=g[g.length-1];let n;g.length>3&&(n=LS(n,Ea.The_last_overload_gave_the_following_error),n=LS(n,Ea.No_overload_matches_this_call)),a&&(n=LS(n,a));const r=fI(e,f,t,_o,0,!0,(()=>n));if(r)for(const e of r)t.declaration&&g.length>3&&pT(e,Bf(t.declaration,Ea.The_last_overload_is_declared_here)),C(t,e),oo.add(e);else Sn.fail("No error for last overload signature")}else{const t=[];let n=0,r=Number.MAX_VALUE,i=0,o=0;for(const a of g){const s=fI(e,f,a,_o,0,!0,(()=>LS(void 0,Ea.Overload_0_of_1_2_gave_the_following_error,o+1,p.length,nc(a))));s?(s.length<=r&&(r=s.length,i=o),n=Math.max(n,s.length),t.push(s)):Sn.fail("No error for 3 or fewer overload signatures"),o++}const s=n>1?t[i]:U(t);Sn.assert(s.length>0,"No errors reported for 3 or fewer overload signatures");let c=LS(J(s,$f),Ea.No_overload_matches_this_call);a&&(c=LS(c,a));const l=[...V(s,(e=>e.relatedInformation))];let _;if(N(s,(e=>e.start===s[0].start&&e.length===s[0].length&&e.file===s[0].file))){const{file:e,start:t,length:n}=s[0];_={file:e,start:t,length:n,code:c.code,category:c.category,messageText:c,relatedInformation:l}}else _=qf(Cp(e),e,c,l);C(g[0],_),oo.add(_)}else if(h)oo.add(SI(e,[h],f,a));else if(y)dI(y,e.typeArguments,!0,a);else{const n=M(t,(e=>eI(e,d)));0===n.length?oo.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=Hp(o.typeParameters),s=v(o.typeParameters);if(r){let t=LS(void 0,Ea.Expected_0_type_arguments_but_got_1,a<s?a+"-"+s:a,i);return t=LS(t,r),Uf(Cp(e),n,t)}return Jf(Cp(e),n,Ea.Expected_0_type_arguments_but_got_1,a<s?a+"-"+s:a,i)}let o=-1/0,a=1/0;for(const e of t){const t=Hp(e.typeParameters),n=v(e.typeParameters);t>i?a=Math.min(a,t):n<i&&(o=Math.max(o,n))}if(o!==-1/0&&a!==1/0){if(r){let t=LS(void 0,Ea.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,o,a);return t=LS(t,r),Uf(Cp(e),n,t)}return Jf(Cp(e),n,Ea.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,o,a)}if(r){let t=LS(void 0,Ea.Expected_0_type_arguments_but_got_1,o===-1/0?a:o,i);return t=LS(t,r),Uf(Cp(e),n,t)}return Jf(Cp(e),n,Ea.Expected_0_type_arguments_but_got_1,o===-1/0?a:o,i)}(e,t,d,a)):oo.add(SI(e,n,f,a))}return S;function C(e,t){var n,i;const o=g,a=h,s=y,c=(null==(i=null==(n=e.declaration)?void 0:n.symbol)?void 0:i.declarations)||r,l=c.length>1?D(c,(e=>b_(e)&&Op(e.body))):void 0;if(l){const e=Kp(l),n=!e.typeParameters;w([e],_o,n)&&pT(t,Bf(l,Ea.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}g=o,h=a,y=s}function w(t,n,r,i=!1){if(g=void 0,h=void 0,y=void 0,r){const r=t[0];if(re(d)||!ZA(e,f,r,i))return;return fI(e,f,r,n,0,!1,void 0)?void(g=[r]):r}for(let r=0;r<t.length;r++){const o=t[r];if(!eI(o,d)||!ZA(e,f,o,i))continue;let a,s;if(o.typeParameters){let t;if(re(d)){if(t=dI(o,d,!1),!t){y=o;continue}}else s=qC(o.typeParameters,o,Tg(e)?2:0),t=aI(e,o,f,8|k,s),k|=4&s.flags?8:0;if(a=hf(o,t,Tg(o.declaration),s&&s.inferredTypeParameters),wO(o)&&!ZA(e,f,a,i)){h=a;continue}}else a=o;if(!fI(e,f,a,n,k,!1,void 0)){if(k){if(k=0,s){if(a=hf(o,aI(e,o,f,k,s),Tg(o.declaration),s.inferredTypeParameters),wO(o)&&!ZA(e,f,a,i)){h=a;continue}}if(fI(e,f,a,n,k,!1,void 0)){(g||(g=[])).push(a);continue}}return t[r]=a,a}(g||(g=[])).push(a)}}}function TI(e){const t=e.parameters.length;return RB(e)?t-1:t}function CI(e,t){return wI(e,Uy(t,2))}function wI(e,t){return NC(Pe(e),t)}function NI(e){return!(!e.typeParameters||!oJ(of(e)))}function DI(e,t,n,r){return zc(e)||zc(t)&&!!(262144&e.flags)||!n&&!r&&!(1048576&t.flags)&&!(131072&lp(t).flags)&&bS(e,Qn)}function FI(e,t,n){if(e.arguments&&w<1){const t=XA(e.arguments);t>=0&&To(e.arguments[t],Ea.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let r=ZE(e.expression);if(r===cn)return si;if(r=ep(r),Uc(r))return KA(e);if(zc(r))return e.typeArguments&&To(e,Ea.Untyped_function_calls_may_not_accept_type_arguments),$A(e);const i=Sp(r,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;const n=t.declaration,r=kb(n,6);if(!r||176!==n.kind)return!0;const i=Yx(n.parent.symbol),o=Z_(n.parent.symbol);if(!rB(e,i)){const t=Um(e);if(t&&4&r){const e=lB(t);if(EI(n.parent.symbol,e))return!0}return 2&r&&To(e,Ea.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,rc(o)),4&r&&To(e,Ea.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,rc(o)),!1}return!0}(e,i[0]))return KA(e);if(PI(i,(e=>!!(4&e.flags))))return To(e,Ea.Cannot_create_an_instance_of_an_abstract_class),KA(e);const o=r.symbol&&Yx(r.symbol);return o&&fb(o,64)?(To(e,Ea.Cannot_create_an_instance_of_an_abstract_class),KA(e)):kI(e,i,t,n,0)}const o=Sp(r,0);if(o.length){const r=kI(e,o,t,n,0);return Q||(r.declaration&&!JI(r.declaration)&&of(r)!==nn&&To(e,Ea.Only_a_void_function_can_be_called_with_the_new_keyword),tf(r)===nn&&To(e,Ea.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return II(e.expression,r,1),KA(e)}function PI(e,t){return _t(e)?re(e,(e=>PI(e,t))):1048576===e.compositeKind?re(e.compositeSignatures,t):t(e)}function EI(e,t){const n=M_(t);if(!v(n))return!1;const r=n[0];if(2097152&r.flags){const t=ld(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&Zx(i)){if(i.symbol===e)return!0;if(EI(e,i))return!0}n++}return!1}return r.symbol===e||EI(e,r)}function AI(e,t,n){let r;const i=0===n,o=Nj(t),a=o&&Sp(o,n).length>0;if(1048576&t.flags){const e=t.types;let o=!1;for(const a of e){if(0!==Sp(a,n).length){if(o=!0,r)break}else if(r||(r=LS(r,i?Ea.Type_0_has_no_call_signatures:Ea.Type_0_has_no_construct_signatures,rc(a)),r=LS(r,i?Ea.Not_all_constituents_of_type_0_are_callable:Ea.Not_all_constituents_of_type_0_are_constructable,rc(t))),o)break}o||(r=LS(void 0,i?Ea.No_constituent_of_type_0_is_callable:Ea.No_constituent_of_type_0_is_constructable,rc(t))),r||(r=LS(r,i?Ea.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:Ea.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,rc(t)))}else r=LS(r,i?Ea.Type_0_has_no_call_signatures:Ea.Type_0_has_no_construct_signatures,rc(t));let s=i?Ea.This_expression_is_not_callable:Ea.This_expression_is_not_constructable;if(eF(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=Wo(e);t&&32768&t.flags&&(s=Ea.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:LS(r,s),relatedMessage:a?Ea.Did_you_forget_to_use_await:void 0}}function II(e,t,n,r){const{messageChain:i,relatedMessage:o}=AI(e,t,n),a=qf(Cp(e),e,i);if(o&&pT(a,Bf(e,o)),eF(e.parent)){const{start:t,length:n}=bI(e.parent,!0);a.start=t,a.length=n}oo.add(a),OI(t,n,r?pT(a,r):a)}function OI(e,t,n){if(!e.symbol)return;const r=Uo(e.symbol).originatingImport;if(r&&!sm(r)){const i=Sp(n_(Uo(e.symbol).target),t);if(!i||!i.length)return;pT(n,Bf(r,Ea.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 LI(e,t,n){const r=$L(e.expression),i=ep(r);if(Uc(i))return KA(e);const o=Sp(i,0),a=Sp(i,1).length;if(DI(r,i,o.length,a))return $A(e);if(s=e,(c=o).length&&N(c,(e=>0===e.minArgumentCount&&!RB(e)&&e.parameters.length<vI(s,e)))&&!iF(e.expression)){const t=Yp(e.expression,!1);return To(e,Ea._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,t),KA(e)}var s,c;const l=function(e){switch(e.parent.kind){case 263:case 231:return Ea.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return Ea.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return Ea.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return Ea.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return Sn.fail()}}(e);if(!o.length){const t=AI(e.expression,i,0),n=LS(t.messageChain,l),r=qf(Cp(e.expression),e.expression,n);return t.relatedMessage&&pT(r,Bf(e.expression,t.relatedMessage)),oo.add(r),OI(i,0,r),KA(e)}return kI(e,o,t,n,0,l)}function jI(e,t){const n=CE(e),r=n&&as(n),i=r&&Xo(r,wB.Element,788968),o=i&&de.symbolToEntityName(i,788968,e),a=AC.createFunctionTypeNode(void 0,[AC.createParameterDeclaration(void 0,void 0,"props",void 0,de.typeToTypeNode(t,e))],o?AC.createTypeReferenceNode(o,void 0):AC.createKeywordTypeNode(133)),s=Ao(1,"props");return s.links.type=t,Au(a,void 0,void 0,[s],i?Z_(i):Nt,void 0,1,0)}function MI(e,t,n){if(mE(e.tagName)){const t=ME(e),n=jI(e,t);return CS(NL(e.attributes,SP(n,e),void 0,0),t,e.tagName,e.attributes),v(e.typeArguments)&&(b(e.typeArguments,qR),oo.add(Jf(Cp(e),e.typeArguments,Ea.Expected_0_type_arguments_but_got_1,0,v(e.typeArguments)))),n}const r=$L(e.tagName),i=ep(r);if(Uc(i))return KA(e);const o=OE(r,e);return DI(r,i,o.length,0)?$A(e):0===o.length?(To(e.tagName,Ea.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Yp(e.tagName)),KA(e)):kI(e,o,t,n,0)}function RI(e,t,n){switch(e.kind){case 213:return function(e,t,n){if(108===e.expression.kind){const r=sF(e.expression);if(zc(r)){for(const t of e.arguments)$L(t);return ii}if(!Uc(r)){const i=_y(Um(e));if(i)return kI(e,A_(r,i.typeArguments,i),t,n,0)}return $A(e)}let r,i=$L(e.expression);if(Fl(e)){const t=SC(i,e.expression);r=t===i?0:Il(e)?16:8,i=t}else r=0;if(i=oA(i,e.expression,rA),i===cn)return si;const o=ep(i);if(Uc(o))return KA(e);const a=Sp(o,0),s=Sp(o,1).length;if(DI(i,o,a.length,s))return!Uc(i)&&e.typeArguments&&To(e,Ea.Untyped_function_calls_may_not_accept_type_arguments),$A(e);if(!a.length){if(s)To(e,Ea.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,rc(i));else{let t;if(1===e.arguments.length){const n=Cp(e).text;ps(n.charCodeAt(ys(n,e.expression.end,!0)-1))&&(t=Bf(e.expression,Ea.Are_you_missing_a_semicolon))}II(e.expression,o,0,t)}return KA(e)}return 8&n&&!e.typeArguments&&a.some(NI)?(RL(e,n),ai):a.some((e=>Tg(e.declaration)&&!!Xc(e.declaration)))?(To(e,Ea.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,rc(i)),KA(e)):kI(e,a,t,n,r)}(e,t,n);case 214:return FI(e,t,n);case 215:return function(e,t,n){const r=$L(e.tag),i=ep(r);if(Uc(i))return KA(e);const o=Sp(i,0),a=Sp(i,1).length;if(DI(r,i,o.length,a))return $A(e);if(!o.length){if(XD(e.parent)){const t=Bf(e.tag,Ea.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 oo.add(t),KA(e)}return II(e.tag,i,0),KA(e)}return kI(e,o,t,n,0)}(e,t,n);case 170:return LI(e,t,n);case 286:case 285:return MI(e,t,n);case 226:return function(e,t,n){const r=$L(e.right);if(!zc(r)){const i=gL(r);if(i){const r=ep(i);if(Uc(r))return KA(e);const o=Sp(r,0),a=Sp(r,1);if(DI(i,r,o.length,a.length))return $A(e);if(o.length)return kI(e,o,t,n,0)}else if(!vB(r)&&!yS(r,Qn))return To(e.right,Ea.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),KA(e)}return ii}(e,t,n)}Sn.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function BI(e,t,n){const r=Wo(e),i=r.resolvedSignature;if(i&&i!==ai&&!t)return i;r.resolvedSignature=ai;let o=RI(e,t,n||0);return o!==ai&&(r.resolvedSignature!==ai&&(o=r.resolvedSignature),r.resolvedSignature=vi===bi?o:i),o}function JI(e){var t;if(!e||!Tg(e))return!1;const n=QF(e)||oF(e)?e:(GF(e)||qP(e))&&e.initializer&&oF(e.initializer)?e.initializer:void 0;if(n){if(Xc(e))return!0;if(qP(Kh(n.parent)))return!1;const r=ds(n);return!!(null==(t=null==r?void 0:r.members)?void 0:t.size)}return!1}function zI(e,t){var n,r;if(t){const i=Uo(t);if(!i.inferredClassSymbol||!i.inferredClassSymbol.has(EB(e))){const o=ap(e)?e:Mo(e);return o.exports=o.exports||op(),o.members=o.members||op(),o.flags|=32&t.flags,(null==(n=t.exports)?void 0:n.size)&&zo(o.exports,t.exports),(null==(r=t.members)?void 0:r.size)&&zo(o.members,t.members),(i.inferredClassSymbol||(i.inferredClassSymbol=new Map)).set(EB(o),o),o}return i.inferredClassSymbol.get(EB(e))}}function qI(e,t){if(!e.parent)return;let n,r;if(GF(e.parent)&&e.parent.initializer===e){if(!(Tg(e)||iz(e.parent)&&b_(e)))return;n=e.parent.name,r=e.parent}else if(pF(e.parent)){const i=e.parent,o=e.parent.operatorToken.kind;if(64!==o||!t&&i.right!==e){if(!(57!==o&&61!==o||(GF(i.parent)&&i.parent.initializer===i?(n=i.parent.name,r=i.parent):pF(i.parent)&&64===i.parent.operatorToken.kind&&(t||i.parent.right===i)&&(n=i.parent.left,r=n),n&&th(n)&&Vg(n,i.left))))return}else n=i.left,r=n}else t&&QF(e)&&(n=e.name,r=e);return r&&n&&(t||zg(e,Zb(n)))?fs(r):void 0}function UI(e,t){var n,r,i,o;if(!(128&e.flags)&&(e.declaration&&536870912&e.declaration.flags)){const a=VI(t),s=Yb(og(t));n=a,r=e.declaration,i=s,o=nc(e),Do(r,i?Bf(n,Ea.The_signature_0_of_1_is_deprecated,o,i):Bf(n,Ea._0_is_deprecated,o))}}function VI(e){switch((e=Qh(e)).kind){case 213:case 170:case 214:return VI(e.expression);case 215:return VI(e.tag);case 286:case 285:return VI(e.tagName);case 212:return e.argumentExpression;case 211:return e.name;case 183:const t=e;return sD(t.typeName)?t.typeName.right:t;default:return e}}function WI(e){if(!eF(e))return!1;let t=e.expression;if(YD(t)&&"for"===t.name.escapedText&&(t=t.expression),!HN(t)||"Symbol"!==t.escapedText)return!1;const n=rh(!1);return!!n&&n===ta(t,"Symbol",111551,void 0,void 0,!1)}function HI(e){if(function(e){if(C.verbatimModuleSyntax&&1===A)return GJ(e,Ea.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===A)return GJ(e,Ea.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(e.typeArguments)return GJ(e,Ea.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const t=e.arguments;if(99!==A&&199!==A&&100!==A&&(kJ(t),t.length>1)){return GJ(t[1],Ea.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(0===t.length||t.length>2)return GJ(e,Ea.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const n=D(t,hF);if(n)return GJ(n,Ea.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return HO(e,kt);const t=e.arguments[0],n=DL(t),r=e.arguments.length>1?DL(e.arguments[1]):void 0;for(let t=2;t<e.arguments.length;++t)DL(e.arguments[t]);if((32768&n.flags||65536&n.flags||!bS(n,qt))&&To(t,Ea.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,rc(n)),r){const t=nh(!0);t!==Pn&&TS(r,_C(t,32768),e.arguments[1])}const i=Ka(e,t);if(i){const n=Za(i,t,!0,!1);if(n)return HO(e,XI(n_(n),n,i,t)||QI(n_(n),n,i,t))}return HO(e,kt)}function $I(e,t,n){const i=op(),o=Ao(2097152,"default");return o.parent=t,o.links.nameType=fx("default"),o.links.aliasTarget=ja(e),i.set("default",o),Ls(n,i,r,r,r)}function XI(e,t,n,r){if(Ta(r)&&e&&!Uc(e)){const r=e;if(!r.defaultOnlyType){const e=$I(t,n);r.defaultOnlyType=e}return r.defaultOnlyType}}function QI(e,t,n,r){var i;if(W&&e&&!Uc(e)){const o=e;if(!o.syntheticType){if(Ca(null==(i=n.declarations)?void 0:i.find($P),n,!1,r)){const r=Ao(2048,"__type"),i=$I(t,n,r);r.links.type=i,o.syntheticType=_E(e)?ox(e,i,r,0,!1):i}else o.syntheticType=e}return o.syntheticType}return e}function YI(e){if(!Fg(e,!0))return!1;if(!HN(e.expression))return Sn.fail();const t=ta(e.expression,e.expression.escapedText,111551,void 0,void 0,!0);if(t===Ce)return!0;if(2097152&t.flags)return!1;const n=16&t.flags?262:3&t.flags?260:0;if(0!==n){const e=rp(t,n);return!!e&&!!(33554432&e.flags)}return!1}function eO(e){(function(e){if(e.questionDotToken||64&e.flags)return GJ(e.template,Ea.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1})(e)||NJ(e,e.typeArguments),w<2&&vJ(e,262144);const t=BI(e);return UI(t,e),of(t)}function nO(e){switch(e.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return nO(e.expression);case 224:const t=e.operator,n=e.operand;return 41===t&&(9===n.kind||10===n.kind)||40===t&&9===n.kind;case 211:case 212:const r=Qh(e.expression),i=Kb(r)?Ha(r,111551,!0):void 0;return!!(i&&384&i.flags)}return!1}function rO(e,t){const{type:n,expression:r}=iO(e),i=$L(r,t);if(Ll(n))return nO(r)||To(r,Ea.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),dx(i);return Wo(e).assertionExpressionType=i,qR(n),HR(e),Sx(n)}function iO(e){let t,n;switch(e.kind){case 234:case 216:t=e.type,n=e.expression;break;case 217:t=lA(e),n=e.expression}return{type:t,expression:n}}function aO(e){return 64&e.flags?function(e){const t=$L(e.expression),n=SC(t,e.expression);return xC(yC(n),e,n!==t)}(e):yC($L(e.expression))}function sO(e){if(FJ(e),b(e.typeArguments,qR),233===e.kind){const t=Kh(e.parent);226===t.kind&&104===t.operatorToken.kind&&Zh(e,t.right)&&To(e,Ea.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}return cO(233===e.kind?$L(e.expression):$v(e.exprName)?WD(e.exprName):$L(e.exprName),e)}function cO(e,t){const n=t.typeArguments;if(e===cn||Uc(e)||!re(n))return e;let r,i=!1;const o=function e(n){let o=!1,a=!1;const c=l(n);i||(i=a),o&&!a&&(r??(r=n));return c;function l(n){if(524288&n.flags){const e=Ad(n),r=s(e.callSignatures),i=s(e.constructSignatures);if(o||(o=0!==e.callSignatures.length||0!==e.constructSignatures.length),a||(a=0!==r.length||0!==i.length),r!==e.callSignatures||i!==e.constructSignatures){const n=Ls(void 0,e.members,r,i,e.indexInfos);return n.objectFlags|=8388608,n.node=t,n}}else if(58982400&n.flags){const e=Wd(n);if(e){const t=l(e);if(t!==e)return t}}else{if(1048576&n.flags)return CN(n,e);if(2097152&n.flags)return rv(q(n.types,l))}return n}}(e),a=i?r:e;return a&&oo.add(Jf(Cp(t),n,Ea.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,rc(a))),o;function s(e){return q(M(e,(e=>!!e.typeParameters&&eI(e,n))),(e=>{const t=dI(e,n,!0);return t?hf(e,t,Tg(e.declaration)):e}))}}function lO(e,t,n){const r=$L(e,n),i=Sx(t);if(Uc(i))return i;return CS(r,i,kc(t.parent,(e=>238===e.kind||357===e.kind)),e,Ea.Type_0_does_not_satisfy_the_expected_type_1),r}function _O(e){return function(e){const t=e.name.escapedText;switch(e.keywordToken){case 105:if("target"!==t)return GJ(e.name,Ea._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Nc(e.name.escapedText),ts(e.keywordToken),"target");break;case 102:if("meta"!==t)GJ(e.name,Ea._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Nc(e.name.escapedText),ts(e.keywordToken),"meta")}}(e),105===e.keywordToken?dO(e):102===e.keywordToken?function(e){100===A||199===A?99!==Cp(e).impliedNodeFormat&&To(e,Ea.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):A<6&&4!==A&&To(e,Ea.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const t=Cp(e);return Sn.assert(!!(8388608&t.flags),"Containing file is missing import meta node flag."),"meta"===e.name.escapedText?Yg():Nt}(e):Sn.assertNever(e.keywordToken)}function uO(e){switch(e.keywordToken){case 102:return Zg();case 105:const t=dO(e);return Uc(t)?Nt:function(e){const t=Ao(0,"NewTargetExpression"),n=Ao(4,"target",8);n.parent=t,n.links.type=e;const i=op([n]);return t.members=i,Ls(t,i,r,r,r)}(t);default:Sn.assertNever(e.keywordToken)}}function dO(e){const t=Xm(e);if(t){if(176===t.kind){return n_(ds(t.parent))}return n_(ds(t))}return To(e,Ea.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Nt}function pO(e){const t=e.valueDeclaration;return rl(n_(e),!1,!!t&&(Hu(t)||rC(t)))}function fO(e,t,n="arg"){return e?(Sn.assert(HN(e.name)),e.name.escapedText):`${n}_${t}`}function mO(e,t,n){const r=e.parameters.length-(RB(e)?1:0);if(t<r)return e.parameters[t].escapedName;const i=e.parameters[r]||yt,o=n||n_(i);if(LT(o)){const e=o.target.labeledElementDeclarations,n=t-r;return fO(null==e?void 0:e[n],n,i.escapedName)}return i.escapedName}function gO(e){return e.valueDeclaration&&_D(e.valueDeclaration)&&HN(e.valueDeclaration.name)&&e.valueDeclaration.name}function hO(e){return 202===e.kind||_D(e)&&e.name&&HN(e.name)}function yO(e,t){const n=e.parameters.length-(RB(e)?1:0);if(t<n){const n=e.parameters[t].valueDeclaration;return n&&hO(n)?n:void 0}const r=e.parameters[n]||yt,i=n_(r);if(LT(i)){const e=i.target.labeledElementDeclarations;return e&&e[t-n]}return r.valueDeclaration&&hO(r.valueDeclaration)?r.valueDeclaration:void 0}function vO(e,t){return bO(e,t)||kt}function bO(e,t){const n=e.parameters.length-(RB(e)?1:0);if(t<n)return pO(e.parameters[t]);if(RB(e)){const r=n_(e.parameters[n]),i=t-n;if(!LT(r)||r.target.hasRestElement||i<r.target.fixedLength)return ib(r,mx(i))}}function xO(e,t,n){const r=SO(e),i=kO(e),o=CO(e);if(o&&t>=r-1)return t===r-1?o:Bh(ib(o,Ut));const a=[],s=[],c=[];for(let n=t;n<r;n++)!o||n<r-1?(a.push(vO(e,n)),s.push(n<i?1:2)):(a.push(o),s.push(8)),c.push(yO(e,n));return py(a,s,n,c)}function SO(e){const t=e.parameters.length;if(RB(e)){const n=n_(e.parameters[t-1]);if(LT(n))return t+n.target.fixedLength-(n.target.hasRestElement?0:1)}return t}function kO(e,t){const n=1&t,r=2&t;if(r||void 0===e.resolvedMinArgumentCount){let t;if(RB(e)){const n=n_(e.parameters[e.parameters.length-1]);if(LT(n)){const r=P(n.target.elementFlags,(e=>!(1&e))),i=r<0?n.target.fixedLength:r;i>0&&(t=e.parameters.length-1+i)}}if(void 0===t){if(!n&&32&e.flags)return 0;t=e.minArgumentCount}if(r)return t;for(let n=t-1;n>=0;n--){if(131072&SN(vO(e,n),QA).flags)break;t=n}e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function TO(e){if(RB(e)){const t=n_(e.parameters[e.parameters.length-1]);return!LT(t)||t.target.hasRestElement}return!1}function CO(e){if(RB(e)){const t=n_(e.parameters[e.parameters.length-1]);if(!LT(t))return t;if(t.target.hasRestElement)return vy(t,t.target.fixedLength)}}function wO(e){const t=CO(e);return!t||Kk(t)||zc(t)?void 0:t}function NO(e){return DO(e,rn)}function DO(e,t){return e.parameters.length>0?vO(e,0):t}function FO(e,t,n){const r=e.parameters.length-(RB(e)?1:0);for(let i=0;i<r;i++){const r=e.parameters[i].valueDeclaration,o=Yv(r);if(o){const e=rl(Sx(o),!1,rC(r)),a=vO(t,i);vw(n.inferences,e,a)}}}function PO(e,t){const n=Uo(e);if(n.type)t&&Sn.assertEqual(n.type,t,"Parameter symbol already has a cached type which differs from newly assigned type");else{const r=e.valueDeclaration;n.type=rl(t||(r?Dl(r,!0):n_(e)),!1,!!r&&!r.initializer&&rC(r)),r&&80!==r.name.kind&&(n.type===At&&(n.type=Nl(r.name)),EO(r.name,n.type))}}function EO(e,t){for(const n of e.elements)if(!vF(n)){const e=el(n,t,!1);80===n.name.kind?Uo(ds(n)).type=e:EO(n.name,e)}}function AO(e){return um((t=!0,Vr??(Vr=Qg("ClassDecoratorContext",1,t))??jn),[e]);var t}function IO(e,t){return um((n=!0,Wr??(Wr=Qg("ClassMethodDecoratorContext",2,n))??jn),[e,t]);var n}function OO(e,t){return um((n=!0,Hr??(Hr=Qg("ClassGetterDecoratorContext",2,n))??jn),[e,t]);var n}function LO(e,t){return um((n=!0,$r??($r=Qg("ClassSetterDecoratorContext",2,n))??jn),[e,t]);var n}function jO(e,t){return um((n=!0,Kr??(Kr=Qg("ClassAccessorDecoratorContext",2,n))??jn),[e,t]);var n}function MO(e,t){return um((n=!0,Qr??(Qr=Qg("ClassFieldDecoratorContext",2,n))??jn),[e,t]);var n}function RO(e,t,n){const i=gb(e),o=$N(e.name),a=o?fx(Dc(e.name)):pv(e.name),s=mD(e)?IO(t,n):yD(e)?OO(t,n):vD(e)?LO(t,n):D_(e)?jO(t,n):pD(e)?MO(t,n):Sn.failBadSyntaxKind(e),c=function(e,t,n){const i=`${t?"p":"P"}${n?"s":"S"}${e.id}`;let o=lt.get(i);if(!o){const a=op();a.set("name",Oo("name",e)),a.set("private",Oo("private",t?Gt:Ht)),a.set("static",Oo("static",n?Gt:Ht)),o=Ls(void 0,a,r,r,r),lt.set(i,o)}return o}(a,o,i);return rv([s,c])}function BO(e,t){return um((n=!0,Gr??(Gr=Qg("ClassAccessorDecoratorTarget",2,n))??jn),[e,t]);var n}function JO(e,t){return um((n=!0,Xr??(Xr=Qg("ClassAccessorDecoratorResult",2,n))??jn),[e,t]);var n}function zO(e,t,n){return Pj(void 0,void 0,[Io("target",e),Io("context",t)],Uy([n,nn]))}function qO(e){const{parent:t}=e,n=Wo(t);if(!n.decoratorSignature)switch(n.decoratorSignature=ii,t.kind){case 263:case 231:{const e=n_(ds(t)),r=AO(e);n.decoratorSignature=zO(e,r,e);break}case 174:case 177:case 178:{const e=t;if(!w_(e.parent))break;const r=mD(e)?Cf(Kp(e)):lB(e),i=gb(e)?n_(ds(e.parent)):q_(ds(e.parent)),o=yD(e)?Aj(r):vD(e)?Ij(r):r,a=RO(e,i,r),s=yD(e)?Aj(r):vD(e)?Ij(r):r;n.decoratorSignature=zO(o,a,s);break}case 172:{const e=t;if(!w_(e.parent))break;const r=lB(e),i=gb(e)?n_(ds(e.parent)):q_(ds(e.parent)),o=bb(e)?BO(i,r):Lt,a=RO(e,i,r),s=bb(e)?JO(i,r):function(e,t){return Ej(void 0,Io("this",e),[Io("value",t)],t,void 0,1)}(i,r);n.decoratorSignature=zO(o,a,s);break}}return n.decoratorSignature===ii?void 0:n.decoratorSignature}function UO(e){return L?function(e){const{parent:t}=e,n=Wo(t);if(!n.decoratorSignature)switch(n.decoratorSignature=ii,t.kind){case 263:case 231:{const e=n_(ds(t)),r=Io("target",e);n.decoratorSignature=Pj(void 0,void 0,[r],Uy([e,nn]));break}case 169:{const e=t;if(!hD(e.parent)&&!(mD(e.parent)||vD(e.parent)&&w_(e.parent.parent)))break;if(Wv(e.parent)===e)break;const r=Wv(e.parent)?e.parent.parameters.indexOf(e)-1:e.parent.parameters.indexOf(e);Sn.assert(r>=0);const i=hD(e.parent)?n_(ds(e.parent.parent)):dB(e.parent),o=hD(e.parent)?Lt:mB(e.parent),a=mx(r),s=Io("target",i),c=Io("propertyKey",o),l=Io("parameterIndex",a);n.decoratorSignature=Pj(void 0,void 0,[s,c,l],nn);break}case 174:case 177:case 178:case 172:{const e=t;if(!w_(e.parent))break;const r=Io("target",dB(e)),i=Io("propertyKey",mB(e)),o=pD(e)?nn:Ph(lB(e));if(0===w||pD(t)&&!bb(t))n.decoratorSignature=Pj(void 0,void 0,[r,i],Uy([o,nn]));else{const t=Io("descriptor",Ph(lB(e)));n.decoratorSignature=Pj(void 0,void 0,[r,i,t],Uy([o,nn]))}break}}return n.decoratorSignature===ii?void 0:n.decoratorSignature}(e):qO(e)}function VO(e){const t=_h(!0);return t!==jn?dm(t,[e=Dj(Tj(e))||At]):At}function WO(e){const t=dh(!0);return t!==jn?dm(t,[e=Dj(Tj(e))||At]):At}function HO(e,t){const n=VO(t);return n===At?(To(e,sm(e)?Ea.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Ea.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Nt):(ph(!0)||To(e,sm(e)?Ea.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:Ea.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),n)}function $O(e,t){if(!e.body)return Nt;const n=Ny(e),r=0!=(2&n),i=0!=(1&n);let o,a,s,c=nn;if(241!==e.body.kind)o=DL(e.body,t&&-9&t),r&&(o=Tj(xj(o,!1,e,Ea.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(i){const n=ZO(e,t);n?n.length>0&&(o=Uy(n,2)):c=rn;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=0!=(2&Ny(e));return bm(e.body,(e=>{const o=e.expression?$L(e.expression,t):jt;let a;if(xe(n,GO(e,o,kt,i)),e.asteriskToken){const t=PM(o,i?19:17,e.expression);a=t&&t.nextType}else a=_P(e,void 0);a&&xe(r,a)})),{yieldTypes:n,nextTypes:r}}(e,t);a=re(r)?Uy(r,2):void 0,s=re(i)?rv(i):void 0}else{const r=ZO(e,t);if(!r)return 2&n?HO(e,rn):rn;if(0===r.length){const t=wF(e,void 0),r=t&&32768&(XM(t,n)||nn).flags?Lt:nn;return 2&n?HO(e,r):r}o=Uy(r,2)}if(o||a||s){if(a&&BC(e,a,3),o&&BC(e,o,1),s&&BC(e,s,2),o&&uT(o)||a&&uT(a)||s&&uT(s)){const t=PP(e),n=t?t===Kp(e)?i?void 0:o:iP(of(t),e,void 0):void 0;i?(a=OT(a,n,0,r),o=OT(o,n,1,r),s=OT(s,n,2,r)):o=function(e,t,n){e&&uT(e)&&(e=IT(e,t?n?bj(t):t:void 0));return e}(o,n,r)}a&&(a=LC(a)),o&&(o=LC(o)),s&&(s=LC(s))}return i?KO(a||rn,o||c,s||CF(2,e)||At,r):r?VO(o||c):o||c}function KO(e,t,n,r){const i=r?fi:mi,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||At,t=i.resolveIterationType(t,void 0)||At,n=i.resolveIterationType(n,void 0)||At,o===jn){const r=i.getGlobalIterableIteratorType(!1),o=r!==jn?OM(r,i):void 0,a=o?o.returnType:kt,s=o?o.nextType:Lt;return bS(t,a)&&bS(s,n)?r!==jn?Fh(r,[e]):(i.getGlobalIterableIteratorType(!0),Pn):(i.getGlobalGeneratorType(!0),Pn)}return Fh(o,[e,t,n])}function GO(e,t,n,r){const i=e.expression||e,o=e.asteriskToken?kM(r?19:17,t,n,i):t;return r?Nj(o,i,e.asteriskToken?Ea.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Ea.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function XO(e,t,n){let r=0;for(let i=0;i<n.length;i++){const o=i<e||i>=t?n[i]:void 0;r|=void 0!==o?bB.get(o)||32768:0}return r}function QO(e){const t=Wo(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(221===e.expression.kind){const t=hN(e);if(!t)return!1;const n=Hd(DL(e.expression.expression)),r=XO(0,0,t);return 3&n.flags?556800==(556800&r):!bN(n,(e=>Qw(e,r)===r))}const t=DL(e.expression);if(!yT(t))return!1;const n=gN(e);if(!n.length||re(n,cT))return!1;return r=CN(t,dx),i=n,1048576&r.flags?!b(r.types,(e=>!I(i,e))):I(i,r);var r,i}(e);0===t.isExhaustive&&(t.isExhaustive=n)}else 0===t.isExhaustive&&(t.isExhaustive=!1);return t.isExhaustive}function YO(e){return e.endFlowNode&&VN(e.endFlowNode)}function ZO(e,t){const n=Ny(e),r=[];let i=YO(e),o=!1;if(vm(e.body,(a=>{let s=a.expression;if(s){if(s=Qh(s,!0),2&n&&223===s.kind&&(s=Qh(s.expression,!0)),213===s.kind&&80===s.expression.kind&&DL(s.expression).symbol===e.symbol)return void(o=!0);let i=DL(s,t&&-9&t);2&n&&(i=Tj(xj(i,!1,e,Ea.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(o=!0),xe(r,i)}else i=!0})),0!==r.length||i||!o&&!function(e){switch(e.kind){case 218:case 219:return!0;case 174:return 210===e.parent.kind;default:return!1}}(e))return!(H&&r.length&&i)||JI(e)&&r.some((t=>t.symbol===e.symbol))||xe(r,Lt),r}function eL(e,t){return void c((function(){const n=Ny(e),r=t&&XM(t,n);if(r&&(uL(r,16384)||32769&r.flags))return;if(173===e.kind||Ip(e.body)||241!==e.body.kind||!YO(e))return;const i=1024&e.flags,o=eb(e)||e;if(r&&131072&r.flags)To(o,Ea.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)To(o,Ea.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&H&&!bS(Lt,r))To(o,Ea.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(C.noImplicitReturns){if(!r){if(!i)return;const t=of(Kp(e));if(QM(e,t))return}To(o,Ea.Not_all_code_paths_return_a_value)}}))}function tL(e,t){if(Sn.assert(174!==e.kind||Am(e)),HR(e),oF(e)&&cM(e,e.name),t&&4&t&&lS(e)){if(!eb(e)&&!JT(e)){const n=AP(e);if(n&&GC(of(n))){const n=Wo(e);if(n.contextFreeType)return n.contextFreeType;const i=$O(e,t),o=Au(void 0,void 0,void 0,r,i,void 0,0,64),a=Ls(e.symbol,k,[o],r,r);return a.objectFlags|=262144,n.contextFreeType=a}}return Mn}return wJ(e)||218!==e.kind||EJ(e),function(e,t){const n=Wo(e);if(!(64&n.flags)){const r=AP(e);if(!(64&n.flags)){n.flags|=64;const i=De(Sp(n_(ds(e)),0));if(!i)return;if(lS(e))if(r){const n=gP(e);let o;if(t&&2&t){FO(i,r,n);const e=CO(r);e&&262144&e.flags&&(o=Bx(r,n.nonFixingMapper))}o||(o=n?Bx(r,n.mapper):r),function(e,t){if(t.typeParameters){if(e.typeParameters)return;e.typeParameters=t.typeParameters}if(t.thisParameter){const n=e.thisParameter;(!n||n.valueDeclaration&&!n.valueDeclaration.type)&&(n||(e.thisParameter=NC(t.thisParameter,void 0)),PO(e.thisParameter,n_(t.thisParameter)))}const n=e.parameters.length-(RB(e)?1:0);for(let r=0;r<n;r++){const n=e.parameters[r];Yv(n.valueDeclaration)||PO(n,bO(t,r))}if(RB(e)){const r=Ie(e.parameters);(r.valueDeclaration?!Yv(r.valueDeclaration):65536&Jx(r))&&PO(r,xO(t,n))}}(i,o)}else!function(e){e.thisParameter&&PO(e.thisParameter);for(const t of e.parameters)PO(t)}(i);else if(r&&!e.typeParameters&&r.parameters.length>e.parameters.length){const n=gP(e);t&&2&t&&FO(i,r,n)}if(r&&!af(e)&&!i.resolvedReturnType){const n=$O(e,t);i.resolvedReturnType||(i.resolvedReturnType=n)}QL(e)}}}(e,t),n_(ds(e))}function nL(e,t,n,r=!1){if(!bS(t,bn)){const i=r&&vj(t);return No(e,!!i&&bS(i,bn),n),!1}return!0}function rL(e){if(!eF(e))return!1;if(!Xg(e))return!1;const t=DL(e.arguments[2]);if(jc(t,"value")){const e=bp(t,"writable"),n=e&&n_(e);if(!n||n===Ht||n===Kt)return!0;if(e&&e.valueDeclaration&&qP(e.valueDeclaration)){const t=$L(e.valueDeclaration.initializer);if(t===Ht||t===Kt)return!0}return!1}return!bp(t,"set")}function iL(e){return!!(8&Jx(e)||4&e.flags&&8&zx(e)||3&e.flags&&6&KE(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||re(e.declarations,rL))}function oL(e,t,n){var r,i;if(0===n)return!1;if(iL(t)){if(4&t.flags&&sS(e)&&110===e.expression.kind){const n=zm(e);if(!n||176!==n.kind&&!JI(n))return!0;if(t.valueDeclaration){const e=pF(t.valueDeclaration),o=n.parent===t.valueDeclaration.parent,a=n===t.valueDeclaration.parent,s=e&&(null==(r=t.parent)?void 0:r.valueDeclaration)===n.parent,c=e&&(null==(i=t.parent)?void 0:i.valueDeclaration)===n;return!(o||a||s||c)}}return!0}if(sS(e)){const t=Qh(e.expression);if(80===t.kind){const e=Wo(t).resolvedSymbol;if(2097152&e.flags){const t=ma(e);return!!t&&274===t.kind}}}return!1}function aL(e,t,n){const r=uA(e,7);return 80===r.kind||sS(r)?!(64&r.flags)||(To(e,n),!1):(To(e,t),!1)}function sL(e){$L(e.expression);const t=Qh(e.expression);if(!sS(t))return To(t,Ea.The_operand_of_a_delete_operator_must_be_a_property_reference),Zt;YD(t)&&$N(t.name)&&To(t,Ea.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const n=xs(Wo(t).resolvedSymbol);return n&&(iL(n)?To(t,Ea.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):function(e,t){const n=n_(t);!H||131075&n.flags||(le?16777216&t.flags:Yw(n,16777216))||To(e,Ea.The_operand_of_a_delete_operator_must_be_optional)}(t,n)),Zt}function cL(e){let t=!1;const n=Wm(e);if(n&&gD(n)){To(e,_F(e)?Ea.await_expression_cannot_be_used_inside_a_class_static_block:Ea.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0}else if(!(65536&e.flags))if(Gm(e)){const n=Cp(e);if(!HJ(n)){let r;if(!vf(n,C)){r??(r=Gf(n,e.pos));const i=_F(e)?Ea.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:Ea.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,o=ES(n,r.start,r.length,i);oo.add(o),t=!0}switch(A){case 100:case 199:if(1===n.impliedNodeFormat){r??(r=Gf(n,e.pos)),oo.add(ES(n,r.start,r.length,Ea.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),t=!0;break}case 7:case 99:case 4:if(w>=4)break;default:r??(r=Gf(n,e.pos));const i=_F(e)?Ea.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:Ea.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher;oo.add(ES(n,r.start,r.length,i)),t=!0}}}else{const r=Cp(e);if(!HJ(r)){const i=Gf(r,e.pos),o=_F(e)?Ea.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:Ea.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=ES(r,i.start,i.length,o);if(n&&176!==n.kind&&0==(2&Ny(n))){pT(a,Bf(n,Ea.Did_you_mean_to_mark_this_function_as_async))}oo.add(a),t=!0}}return _F(e)&&kF(e)&&(To(e,Ea.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function lL(e){return uL(e,2112)?dL(e,3)||uL(e,296)?bn:Vt:Ut}function _L(e,t){if(uL(e,t))return!0;const n=Hd(e);return!!n&&uL(n,t)}function uL(e,t){if(e.flags&t)return!0;if(3145728&e.flags){const n=e.types;for(const e of n)if(uL(e,t))return!0}return!1}function dL(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&bS(e,Ut)||!!(2112&t)&&bS(e,Vt)||!!(402653316&t)&&bS(e,qt)||!!(528&t)&&bS(e,Zt)||!!(16384&t)&&bS(e,nn)||!!(131072&t)&&bS(e,rn)||!!(65536&t)&&bS(e,Jt)||!!(32768&t)&&bS(e,Lt)||!!(4096&t)&&bS(e,en)||!!(67108864&t)&&bS(e,mn))}function pL(e,t,n){return 1048576&e.flags?N(e.types,(e=>pL(e,t,n))):dL(e,t,n)}function fL(e){return!!(16&Zx(e))&&!!e.symbol&&mL(e.symbol)}function mL(e){return 0!=(128&e.flags)}function gL(e){const t=Od(e,jM("hasInstance"));if(t){const e=n_(t);if(e&&0!==Sp(e,0).length)return e}}function hL(e,t,n,r){if(n===cn||r===cn)return cn;if($N(e)){if(w<99&&vJ(e,2097152),!Wo(e).resolvedSymbol&&Um(e)){wA(e,r,SA(e,r.symbol,!0))}}else TS(aA(n,e),yn,e);return TS(aA(r,t),mn,t)&&bN(r,(e=>e===On||!!(2097152&e.flags)&&XS(Hd(e))))&&To(t,Ea.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,rc(r)),Zt}function yL(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(303===a.kind||304===a.kind){const e=a.name,n=pv(e);if(fC(n)){const e=bp(t,mC(n));e&&(MA(e,a,i),XE(a,!1,!0,t,e))}const r=Gc(a,ib(t,n,32,e));return bL(304===a.kind?a:a.initializer,r)}if(305===a.kind){if(!(n<o.length-1)){w<99&&vJ(a,4);const e=[];if(r)for(const t of r)VP(t)||e.push(t.name);const n=Wc(t,e,t.symbol);return kJ(r,Ea.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),bL(a.expression,n)}To(a,Ea.A_rest_element_must_be_last_in_a_destructuring_pattern)}else To(a,Ea.Property_assignment_expected)}function vL(e,t,n,r,i){const o=e.elements,a=o[n];if(232!==a.kind){if(230!==a.kind){const e=mx(n);if(Zk(t)){const n=ab(t,e,32|(jP(a)?16:0),gI(a,e))||Nt;return bL(a,Gc(a,jP(a)?eN(n,524288):n),i)}return bL(a,r,i)}if(n<o.length-1)To(a,Ea.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const o=a.expression;if(226!==o.kind||64!==o.operatorToken.kind){kJ(e.elements,Ea.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);return bL(o,xN(t,LT)?CN(t,(e=>vy(e,n))):Bh(r),i)}To(o.operatorToken,Ea.A_rest_element_cannot_have_an_initializer)}}}function bL(e,t,n,r){let i;if(304===e.kind){const r=e;r.objectAssignmentInitializer&&(H&&!Yw($L(r.objectAssignmentInitializer),16777216)&&(t=eN(t,524288)),function(e,t,n,r,i){const o=t.kind;if(64===o&&(210===e.kind||209===e.kind))return bL(e,$L(n,r),r,110===n.kind);let a;a=Bb(o)?bM(e,r):$L(e,r);const s=$L(n,r);kL(e,t,n,a,s,r,i)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 226===i.kind&&64===i.operatorToken.kind&&(_e(i,n),i=i.left,H&&(t=eN(t,524288))),210===i.kind?function(e,t,n){const r=e.properties;if(H&&0===r.length)return aA(t,e);for(let i=0;i<r.length;i++)yL(e,t,i,r,n);return t}(i,t,r):209===i.kind?function(e,t,n){const r=e.elements;w<2&&C.downlevelIteration&&vJ(e,512);const i=kM(193,t,Lt,e)||Nt;let o=C.noUncheckedIndexedAccess?void 0:i;for(let a=0;a<r.length;a++){let r=i;230===e.elements[a].kind&&(r=o=o??(kM(65,t,Lt,e)||Nt)),vL(e,t,a,r,n)}return t}(i,t,n):function(e,t,n){const r=$L(e,n),i=305===e.parent.kind?Ea.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Ea.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,o=305===e.parent.kind?Ea.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:Ea.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;aL(e,i,o)&&CS(t,r,e,e);__(e)&&vJ(e.parent,1048576);return t}(i,t,n)}function xL(e){switch((e=Qh(e)).kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return xL(e.whenTrue)&&xL(e.whenFalse);case 226:return!zb(e.operatorToken.kind)&&(xL(e.left)&&xL(e.right));case 224:case 225:switch(e.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}function SL(e,t){return 0!=(98304&t.flags)||SS(e,t)}function kL(e,t,n,r,i,o,a){const s=t.kind;switch(s){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(r===cn||i===cn)return cn;let c;if(r=aA(r,e),i=aA(i,n),528&r.flags&&528&i.flags&&void 0!==(c=function(e){switch(e){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}(t.kind)))return To(a||t,Ea.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,ts(t.kind),ts(c)),Ut;{const t=nL(e,r,Ea.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),o=nL(n,i,Ea.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let c;if(dL(r,3)&&dL(i,3)||!uL(r,2112)&&!uL(i,2112))c=Ut;else if(u(r,i)){switch(s){case 50:case 73:m();break;case 43:case 68:w<3&&To(a,Ea.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}c=Vt}else m(u),c=Nt;return t&&o&&p(c),c}case 40:case 65:if(r===cn||i===cn)return cn;let h;if(dL(r,402653316)||dL(i,402653316)||(r=aA(r,e),i=aA(i,n)),dL(r,296,!0)&&dL(i,296,!0)?h=Ut:dL(r,2112,!0)&&dL(i,2112,!0)?h=Vt:dL(r,402653316,!0)||dL(i,402653316,!0)?h=qt:(zc(r)||zc(i))&&(h=Uc(r)||Uc(i)?Nt:kt),h&&!d(s))return h;if(!h){const e=402655727;return m(((t,n)=>dL(t,e)&&dL(n,e))),kt}return 65===s&&p(h),h;case 30:case 32:case 33:case 34:return d(s)&&(r=NT(aA(r,e)),i=NT(aA(i,n)),f(((e,t)=>{if(zc(e)||zc(t))return!0;const n=bS(e,bn),r=bS(t,bn);return n&&r||!n&&!r&&kS(e,t)}))),Zt;case 35:case 36:case 37:case 38:if(!(o&&64&o)){if((Xl(e)||Xl(n))&&(!Tg(e)||37===s||38===s)){const e=35===s||37===s;To(a,Ea.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,e?"false":"true")}!function(e,t,n,r){const i=g(Qh(n)),o=g(Qh(r));if(i||o){const a=To(e,Ea.This_condition_will_always_return_0,ts(37===t||35===t?97:112));if(i&&o)return;const s=38===t||36===t?ts(54):"",c=i?r:n,l=Qh(c);pT(a,Bf(c,Ea.Did_you_mean_0,`${s}Number.isNaN(${Kb(l)?Rf(l):"..."})`))}}(a,s,e,n),f(((e,t)=>SL(e,t)||SL(t,e)))}return Zt;case 104:return function(e,t,n,r,i){if(n===cn||r===cn)return cn;!zc(n)&&pL(n,402784252)&&To(e,Ea.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Sn.assert(rx(e.parent));const o=BI(e.parent,void 0,i);return o===ai?cn:(TS(of(o),Zt,t,Ea.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),Zt)}(e,n,r,i,o);case 103:return hL(e,n,r,i);case 56:case 77:{const e=Yw(r,4194304)?Uy([(_=H?r:xT(i),CN(_,tC)),i]):r;return 77===s&&p(i),e}case 57:case 76:{const e=Yw(r,8388608)?Uy([yC(XT(r)),i],2):r;return 76===s&&p(i),e}case 61:case 78:{const e=Yw(r,262144)?Uy([yC(r),i],2):r;return 78===s&&p(i),e}case 64:const y=pF(e.parent)?Gg(e.parent):0;return function(e,t){if(2===e)for(const e of Id(t)){const t=n_(e);if(t.symbol&&32&t.symbol.flags){const t=e.escapedName,n=ta(e.valueDeclaration,t,788968,void 0,t,!1);(null==n?void 0:n.declarations)&&n.declarations.some(EE)&&(Bo(n,Ea.Duplicate_identifier_0,Nc(t),e),Bo(e,Ea.Duplicate_identifier_0,Nc(t),n))}}}(y,i),function(t){var r;switch(t){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const t=fs(e),i=Jg(n);return!!i&&QD(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(y)?(524288&i.flags&&(2===y||6===y||WS(i)||Xw(i)||1&Zx(i))||p(i),r):(p(i),i);case 28:if(!C.allowUnreachableCode&&xL(e)&&!(217===(l=e.parent).parent.kind&&NN(l.left)&&"0"===l.left.text&&(eF(l.parent.parent)&&l.parent.parent.expression===l.parent||215===l.parent.parent.kind)&&(sS(l.right)||HN(l.right)&&"eval"===l.right.escapedText))){const t=Cp(e),n=ys(t.text,e.pos);t.parseDiagnostics.some((e=>e.code===Ea.JSX_expressions_must_have_one_parent_element.code&&Gs(e,n)))||To(e,Ea.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return i;default:return Sn.fail()}var l,_;function u(e,t){return dL(e,2112)&&dL(t,2112)}function d(t){const o=_L(r,12288)?e:_L(i,12288)?n:void 0;return!o||(To(o,Ea.The_0_operator_cannot_be_applied_to_type_symbol,ts(t)),!1)}function p(i){zb(s)&&c((function(){let o=r;LJ(t.kind)&&211===e.kind&&(o=pA(e,void 0,!0));if(aL(e,Ea.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,Ea.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;if(le&&YD(e)&&uL(i,32768)){const n=jc(VL(e.expression),e.name.escapedText);bk(i,n)&&(t=Ea.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}CS(i,o,e,n,t)}}))}function f(e){return!e(r,i)&&(m(e),!0)}function m(e){let n=!1;const o=a||t;if(e){const t=Dj(r),o=Dj(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let s=r,c=i;!n&&e&&([s,c]=function(e,t,n){let r=e,i=t;const o=xT(e),a=xT(t);n(o,a)||(r=o,i=a);return[r,i]}(r,i,e));const[l,_]=ic(s,c);(function(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return No(e,n,Ea.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,n,l,_)||No(o,n,Ea.Operator_0_cannot_be_applied_to_types_1_and_2,ts(t.kind),l,_)}function g(e){if(HN(e)&&"NaN"===e.escapedText){const t=qr||(qr=Ig("NaN",!1));return!!t&&t===Pw(e)}return!1}}function TL(e){const t=e.parent;return iF(t)&&TL(t)||ZD(t)&&t.argumentExpression===e}function CL(e){const t=[e.head.text],n=[];for(const r of e.templateSpans){const e=$L(r.expression);_L(e,12288)&&To(r.expression,Ea.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(bS(e,xn)?e:qt)}if(IL(e)||TL(e)||bN(_P(e,void 0)||At,wL))return Cv(t,n);const r=215!==e.parent.kind&&xR(e);return r?ux(fx(r)):qt}function wL(e){return!!(134217856&e.flags||58982400&e.flags&&uL(Wd(e)||At,402653316))}function NL(e,t,n,r){const i=function(e){return OP(e)&&!NP(e.parent)?e.parent.parent:e}(e);dP(i,t,!1),function(e,t){Di[Ei]=e,Fi[Ei]=t,Ei++}(i,n);const o=$L(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=uL(o,2944)&&AL(o,iP(t,e,void 0))?dx(o):o;return Ei--,pP(),a}function DL(e,t){if(t)return $L(e,t);const n=Wo(e);if(!n.resolvedType){const r=vi,i=ei;vi=bi,ei=void 0,n.resolvedType=$L(e,t),ei=i,vi=r}return n.resolvedType}function FL(e){return 216===(e=Qh(e,!0)).kind||234===e.kind||cA(e)}function PL(e,t,n){const r=Rg(e);if(Tg(e)){const n=sC(e);if(n)return lO(r,n,t)}const i=WL(r)||(n?NL(r,n,void 0,t||0):DL(r,t));return _D(e)&&207===e.name.kind&&LT(i)&&!i.target.hasRestElement&&gm(i)<e.name.elements.length?function(e,t){const n=t.elements,r=Ty(e).slice(),i=e.target.elementFlags.slice();for(let t=gm(e);t<n.length;t++){const e=n[t];(t<n.length-1||208!==e.kind||!e.dotDotDotToken)&&(r.push(!vF(e)&&jP(e)?Cl(e,!1,!1):kt),i.push(2),vF(e)||jP(e)||RC(e,kt))}return py(r,i,e.target.readonly)}(i,e.name):i}function EL(e,t){const n=6&rz(e)||tm(e)?t:DT(t);if(Tg(e)){if(rT(n))return RC(e,kt),kt;if(iT(n))return RC(e,sr),sr}return n}function AL(e,t){if(t){if(3145728&t.flags){return re(t.types,(t=>AL(e,t)))}if(58982400&t.flags){const n=Wd(t)||At;return uL(n,4)&&uL(e,128)||uL(n,8)&&uL(e,256)||uL(n,64)&&uL(e,2048)||uL(n,4096)&&uL(e,8192)||AL(e,n)}return!!(406847616&t.flags&&uL(e,128)||256&t.flags&&uL(e,256)||2048&t.flags&&uL(e,2048)||512&t.flags&&uL(e,512)||8192&t.flags&&uL(e,8192))}return!1}function IL(e){const t=e.parent;return su(t)&&Ll(t.type)||cA(t)&&Ll(lA(t))||nO(e)&&Bd(_P(e,0))||(iF(t)||XD(t)||hF(t))&&IL(t)||(qP(t)||UP(t)||DF(t))&&IL(t.parent)}function OL(e,t,n){const r=$L(e,t,n);return IL(e)||wm(e)?dx(r):FL(e)?r:IT(r,iP(_P(e,void 0),e,void 0))}function LL(e,t){return 167===e.name.kind&&KP(e.name),OL(e.initializer,t)}function jL(e,t){RJ(e),167===e.name.kind&&KP(e.name);return ML(e,tL(e,t),t)}function ML(e,t,n){if(n&&10&n){const r=rI(t,0,!0),i=rI(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=KF(e,2);if(t){const i=rI(yC(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return RL(e,n),Mn;const t=gP(e),r=t.signature&&of(t.signature),a=r&&nI(r);if(a&&!a.typeParameters&&!N(t.inferences,BL)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(zL(e.inferredTypeParameters,t)||zL(n,t)){const a=Fs(Ao(262144,qL(oe(e.inferredTypeParameters,n),t)));a.target=o,r=he(r,o),i=he(i,a),n.push(a)}else n.push(o)}if(i){const e=Dx(r,i);for(const t of i)t.mapper=e}return n}(t,o.typeParameters),n=bf(o,e),r=J(t.inferences,(e=>HC(e.typeParameter)));if(JC(n,i,((e,t)=>{vw(r,e,t,0,!0)})),re(r,BL)&&(zC(n,i,((e,t)=>{vw(r,e,t)})),!function(e,t){for(let n=0;n<e.length;n++)if(BL(e[n])&&BL(t[n]))return!0;return!1}(t.inferences,r)))return function(e,t){for(let n=0;n<e.length;n++)!BL(e[n])&&BL(t[n])&&(e[n]=t[n])}(t.inferences,r),t.inferredTypeParameters=oe(t.inferredTypeParameters,e),Cf(n)}return Cf(iI(o,i,t))}}}}return t}function RL(e,t){if(2&t){gP(e).flags|=4}}function BL(e){return!(!e.candidates&&!e.contraCandidates)}function JL(e){return!!(e.candidates||e.contraCandidates||Qd(e.typeParameter))}function zL(e,t){return re(e,(e=>e.symbol.escapedName===t))}function qL(e,t){let n=t.length;for(;n>1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;const r=t.slice(0,n);for(let t=1;;t++){const n=r+t;if(!zL(e,n))return n}}function UL(e){const t=tI(e);if(t&&!t.typeParameters)return of(t)}function VL(e){const t=WL(e);if(t)return t;if(268435456&e.flags&&ei){const t=ei[PB(e)];if(t)return t}const n=ki,r=$L(e,64);if(ki!==n){(ei||(ei=[]))[PB(e)]=r,ET(e,268435456|e.flags)}return r}function WL(e){let t=Qh(e,!0);if(cA(t)){const e=lA(t);if(!Ll(e))return Sx(e)}if(t=Qh(e),_F(t)){const e=WL(t.expression);return e?Nj(e):void 0}return!eF(t)||108===t.expression.kind||Fg(t,!0)||WI(t)?su(t)&&!Ll(t.type)?Sx(t.type):Gl(e)||x_(e)?$L(e):void 0:Fl(t)?function(e){const t=$L(e.expression),n=SC(t,e.expression),r=UL(t);return r&&xC(r,e,n!==t)}(t):UL(ZE(t.expression))}function HL(e){const t=Wo(e);if(t.contextFreeType)return t.contextFreeType;dP(e,kt,!1);const n=t.contextFreeType=$L(e,4);return pP(),n}function $L(e,n,i){var a,s;null==(a=Fr)||a.push(Fr.Phase.Check,"checkExpression",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const l=o;o=e,g=0;const _=function(e,n,i){const o=e.kind;if(t)switch(o){case 231:case 218:case 219:t.throwIfCancellationRequested()}switch(o){case 80:return OD(e,n);case 81:return hA(e);case 110:return WD(e);case 108:return sF(e);case 106:return zt;case 15:case 11:return aw(e)?wt:ux(fx(e.text));case 9:return YJ(e),ux(mx(+e.text));case 10:return function(e){const t=UD(e.parent)||uF(e.parent)&&UD(e.parent.parent);if(!t&&w<7&&GJ(e,Ea.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(e),ux(gx({negative:!1,base10Value:vT(e.text)}));case 112:return Gt;case 97:return Ht;case 228:return CL(e);case 14:return or;case 209:return RP(e,n,i);case 210:return lE(e,n);case 211:return pA(e,n);case 166:return fA(e,n);case 212:return UA(e,n);case 213:if(102===e.expression.kind)return HI(e);case 214:return function(e,t){var n,i,o;NJ(e,e.typeArguments);const a=BI(e,void 0,t);if(a===ai)return cn;if(UI(a,e),108===e.expression.kind)return nn;if(214===e.kind){const t=a.declaration;if(t&&176!==t.kind&&180!==t.kind&&185!==t.kind&&(!dE(t)||176!==(null==(i=null==(n=Mh(t))?void 0:n.parent)?void 0:i.kind))&&!vh(t)&&!JI(t))return Q&&To(e,Ea.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),kt}if(Tg(e)&&ak(C)&&YI(e))return Zp(e.arguments[0]);const s=of(a);if(12288&s.flags&&WI(e))return yx(Kh(e.parent));if(213===e.kind&&!e.questionDotToken&&244===e.parent.kind&&16384&s.flags&&nf(a))if(Xb(e.expression)){if(!qN(e)){const t=To(e.expression,Ea.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);zN(e.expression,t)}}else To(e.expression,Ea.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(Tg(e)){const t=qI(e,!1);if(null==(o=null==t?void 0:t.exports)?void 0:o.size){const e=Ls(t,t.exports,r,r,r);return e.objectFlags|=4096,rv([s,e])}}return s}(e,n);case 215:return eO(e);case 217:return function(e,t){if(Vu(e)){if(oC(e))return lO(e.expression,aC(e),t);if(cA(e))return rO(e,t)}return $L(e.expression,t)}(e,n);case 231:return function(e){return sR(e),HR(e),function(e){if(e.name)return;const t=dA(e);if(!Vy(t))return;let n;n=!L&&w<99&&_g(!1,e)?De(Bc(e))??e:aR(e);n&&(vJ(n,8388608),(qP(t)||pD(t)||GD(t))&&cD(t.name)&&vJ(n,16777216))}(e),n_(ds(e))}(e);case 218:case 219:return tL(e,n);case 221:return function(e){return $L(e.expression),so}(e);case 216:case 234:return function(e,t){if(216===e.kind){const t=Cp(e);t&&Ko(t.fileName,[".cts",".mts"])&&GJ(e,Ea.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return rO(e,t)}(e,n);case 235:return aO(e);case 233:return sO(e);case 238:return function(e){return qR(e.type),lO(e.expression,e.type)}(e);case 236:return _O(e);case 220:return sL(e);case 222:return function(e){return HR(e),jt}(e);case 223:return function(e){c((()=>cL(e)));const t=$L(e.expression),n=xj(t,!0,e,Ea.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||Uc(n)||3&t.flags||Co(!1,Bf(e,Ea.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 224:return function(e){const t=$L(e.operand);if(t===cn)return cn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return ux(mx(-e.operand.text));case 40:return ux(mx(+e.operand.text))}break;case 10:if(41===e.operator)return ux(gx({negative:!0,base10Value:vT(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return aA(t,e.operand),_L(t,12288)&&To(e.operand,Ea.The_0_operator_cannot_be_applied_to_type_symbol,ts(e.operator)),40===e.operator?(_L(t,2112)&&To(e.operand,Ea.Operator_0_cannot_be_applied_to_type_1,ts(e.operator),rc(xT(t))),Ut):lL(t);case 54:vM(t,e.operand);const n=Qw(t,12582912);return 4194304===n?Ht:8388608===n?Gt:Zt;case 46:case 47:return nL(e.operand,aA(t,e.operand),Ea.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&aL(e.operand,Ea.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Ea.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),lL(t)}return Nt}(e);case 225:return function(e){const t=$L(e.operand);return t===cn?cn:(nL(e.operand,aA(t,e.operand),Ea.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&aL(e.operand,Ea.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,Ea.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),lL(t))}(e);case 226:return _e(e,n);case 227:return function(e,t){const n=bM(e.condition,t);return yM(e.condition,n,e.whenTrue),Uy([$L(e.whenTrue,t),$L(e.whenFalse,t)],2)}(e,n);case 230:return function(e,t){return w<2&&vJ(e,C.downlevelIteration?1536:1024),kM(33,$L(e.expression,t),Lt,e.expression)}(e,n);case 232:return jt;case 229:return function(e){c((function(){16384&e.flags||$J(e,Ea.A_yield_expression_is_only_allowed_in_a_generator_body),kF(e)&&To(e,Ea.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));const t=zm(e);if(!t)return kt;const n=Ny(t);if(!(1&n))return kt;const r=0!=(2&n);e.asteriskToken&&(r&&w<99&&vJ(e,26624),!r&&w<2&&C.downlevelIteration&&vJ(e,256));let i=af(t);i&&1048576&i.flags&&(i=SN(i,(e=>YL(e,n,void 0))));const o=i&&KM(i,r),a=o&&o.yieldType||kt,s=o&&o.nextType||kt,l=r?Nj(s)||kt:s,_=e.expression?$L(e.expression):jt,u=GO(e,_,l,r);if(i&&u&&CS(u,a,e.expression||e,e.expression),e.asteriskToken)return CM(r?19:17,1,_,e.expression)||kt;if(i)return $M(2,i,r)||kt;let d=CF(2,t);return d||(d=kt,c((()=>{if(Q&&!MT(e)){const t=_P(e,void 0);t&&!zc(t)||To(e,Ea.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),d}(e);case 237:return function(e){return e.isSpread?ib(e.type,Ut):e.type}(e);case 294:return $E(e,n);case 284:case 285:return function(e,t){return HR(e),BE(e)||kt}(e);case 288:return function(e){VE(e.openingFragment);const t=Cp(e);return!xk(C)||!C.jsxFactory&&!t.pragmas.has("jsx")||C.jsxFragmentFactory||t.pragmas.has("jsxfrag")||To(e,C.jsxFactory?Ea.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:Ea.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),yE(e),BE(e)||kt}(e);case 292:return bE(e,n);case 286:Sn.fail("Shouldn't ever directly check a JsxOpeningElement")}return Nt}(e,n,i),u=ML(e,_,n);return fL(u)&&function(e,t){const n=211===e.parent.kind&&e.parent.expression===e||212===e.parent.kind&&e.parent.expression===e||(80===e.kind||166===e.kind)&&iB(e)||186===e.parent.kind&&e.parent.exprName===e||281===e.parent.kind;n||To(e,Ea.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);if(YS(C)){Sn.assert(!!(128&t.symbol.flags));33554432&t.symbol.valueDeclaration.flags&&!TT(e)&&To(e,Ea.Cannot_access_ambient_const_enums_when_0_is_enabled,we)}}(e,u),o=l,null==(s=Fr)||s.pop(),u}function KL(e){xJ(e),e.expression&&$J(e.expression,Ea.Type_expected),qR(e.constraint),qR(e.default);const t=G_(ds(e));Wd(t),function(e){return Gd(e)!==Bn}(t)||To(e.default,Ea.Type_parameter_0_has_a_circular_default,rc(t));const n=Rd(t),r=Xd(t);n&&r&&TS(r,Fu(nS(n,Px(t,r)),r),e.default,Ea.Type_0_does_not_satisfy_the_constraint_1),HR(e),c((()=>nR(e.name,Ea.Type_parameter_name_cannot_be_0)))}function GL(e){xJ(e),uM(e);const t=zm(e);fb(e,31)&&(176===t.kind&&Op(t.body)||To(e,Ea.A_parameter_property_is_only_allowed_in_a_constructor_implementation),176===t.kind&&HN(e.name)&&"constructor"===e.name.escapedText&&To(e.name,Ea.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&rC(e)&&R_(e.name)&&t.body&&To(e,Ea.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&HN(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&To(e,Ea.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),176!==t.kind&&180!==t.kind&&185!==t.kind||To(e,Ea.A_constructor_cannot_have_a_this_parameter),219===t.kind&&To(e,Ea.An_arrow_function_cannot_have_a_this_parameter),177!==t.kind&&178!==t.kind||To(e,Ea.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||R_(e.name)||bS(lp(n_(e.symbol)),lr)||To(e,Ea.A_rest_parameter_must_be_of_an_array_type)}function XL(e,t,n){for(const r of e.elements){if(vF(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return To(t,Ea.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((207===e.kind||206===e.kind)&&XL(e,t,n))return!0}}function QL(e){181===e.kind?function(e){xJ(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return GJ(t?t.name:e,Ea.An_index_signature_must_have_exactly_one_parameter);if(kJ(e.parameters,Ea.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return GJ(t.dotDotDotToken,Ea.An_index_signature_cannot_have_a_rest_parameter);if(ub(t))return GJ(t.name,Ea.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return GJ(t.questionToken,Ea.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return GJ(t.name,Ea.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return GJ(t.name,Ea.An_index_signature_parameter_must_have_a_type_annotation);const n=Sx(t.type);if(bN(n,(e=>!!(8576&e.flags)))||Rv(n))return GJ(t.name,Ea.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);if(!xN(n,Wf))return GJ(t.name,Ea.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type);if(!e.type)return GJ(e,Ea.An_index_signature_must_have_a_type_annotation)}(e)}(e):184!==e.kind&&262!==e.kind&&185!==e.kind&&179!==e.kind&&176!==e.kind&&180!==e.kind||wJ(e);const t=Ny(e);4&t||(3==(3&t)&&w<99&&vJ(e,6144),2==(3&t)&&w<4&&vJ(e,64),0!=(3&t)&&w<2&&vJ(e,128)),rR(kl(e)),function(e){const t=M(hl(e),wE);if(!v(t))return;const n=Tg(e),r=new Set,i=new Set;b(e.parameters,(({name:e},t)=>{HN(e)&&r.add(e.escapedText),R_(e)&&i.add(t)}));const o=Xp(e);if(o){const e=t.length-1,o=t[e];n&&o&&HN(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!Kk(Sx(o.typeExpression.type))&&To(o.name,Ea.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,Dc(o.name))}else b(t,(({name:e,isNameFirst:t},o)=>{i.has(o)||HN(e)&&r.has(e.escapedText)||(sD(e)?n&&To(e,Ea.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Rf(e),Rf(e.left)):t||wo(n,e,Ea.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Dc(e)))}))}(e),b(e.parameters,GL),e.type&&qR(e.type),c((function(){!function(e){if(w>=2||!Zu(e)||33554432&e.flags||Ip(e.body))return;b(e.parameters,(e=>{e.name&&!R_(e.name)&&e.name.escapedText===Te.escapedName&&So("noEmit",e,Ea.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);let t=eb(e),n=t;if(Tg(e)){const r=pl(e);if(r&&r.typeExpression&&TD(r.typeExpression.type)){const e=tI(Sx(r.typeExpression));e&&e.declaration&&(t=eb(e.declaration),n=r.typeExpression.type)}}if(Q&&!t)switch(e.kind){case 180:To(e,Ea.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:To(e,Ea.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=Ny(e);if(1==(5&r)){const e=Sx(t);e===nn?To(n,Ea.A_generator_cannot_have_a_void_type_annotation):YL(e,r,n)}else 2==(3&r)&&function(e,t,n){const r=Sx(t);if(w>=2){if(Uc(r))return;const e=_h(!0);if(e!==jn&&!o_(r,e))return void o(Ea.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,rc(Dj(r)||nn))}else{if(function(e){Oj(e&&ig(e),!1)}(t),Uc(r))return;const a=ig(t);if(void 0===a)return void o(Ea.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,rc(r));const s=Ha(a,111551,!0),c=s?n_(s):Nt;if(Uc(c))return void(80===a.kind&&"Promise"===a.escapedText&&s_(r)===_h(!1)?To(n,Ea.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):o(Ea.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Rf(a)));const l=(i=!0,br||(br=Qg("PromiseConstructorLike",0,i))||Pn);if(l===Pn)return void o(Ea.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,t,n,Rf(a));const _=Ea.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!TS(c,l,n,_,(()=>t===n?void 0:LS(void 0,Ea.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type))))return;const u=a&&Gb(a),d=Xo(e.locals,u.escapedText,111551);if(d)return void To(d.valueDeclaration,Ea.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Dc(u),Rf(a))}var i;function o(e,t,n,r){if(t===n)To(n,e,r);else{pT(To(n,Ea.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Bf(t,e,r))}}xj(r,!1,e,Ea.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}181!==e.kind&&324!==e.kind&&qj(e)}))}function YL(e,t,n){const r=$M(0,e,0!=(2&t))||kt;return TS(KO(r,$M(1,e,0!=(2&t))||r,$M(2,e,0!=(2&t))||At,!!(2&t)),e,n)}function ZL(e){const t=new Map;for(const n of e.members)if(171===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=Dc(r);break;default:continue}t.get(e)?(To(Mc(n.symbol.valueDeclaration),Ea.Duplicate_identifier_0,e),To(n.name,Ea.Duplicate_identifier_0,e)):t.set(e,!0)}}function ej(e){if(264===e.kind){const t=ds(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=wf(ds(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)1===n.parameters.length&&n.parameters[0].type&&vN(Sx(n.parameters[0].type),(t=>{const r=e.get(Cy(t));r?r.declarations.push(n):e.set(Cy(t),{type:t,declarations:[n]})}));e.forEach((e=>{if(e.declarations.length>1)for(const t of e.declarations)To(t,Ea.Duplicate_index_signature_for_type_0,rc(e.type))}))}}function tj(e){xJ(e)||function(e){if(cD(e.name)&&pF(e.name.expression)&&103===e.name.expression.operatorToken.kind)return GJ(e.parent.members[0],Ea.A_mapped_type_may_not_declare_properties_or_methods);if(w_(e.parent)){if(FN(e.name)&&"constructor"===e.name.text)return GJ(e.name,Ea.Classes_may_not_have_a_field_named_constructor);if(MJ(e.name,Ea.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(w<2&&$N(e.name))return GJ(e.name,Ea.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(w<2&&D_(e))return GJ(e.name,Ea.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(D_(e)&&AJ(e.questionToken,Ea.An_accessor_property_cannot_be_declared_optional))return!0}else if(264===e.parent.kind){if(MJ(e.name,Ea.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(Sn.assertNode(e,dD),e.initializer)return GJ(e.initializer,Ea.An_interface_property_cannot_have_an_initializer)}else if(DD(e.parent)){if(MJ(e.name,Ea.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(Sn.assertNode(e,dD),e.initializer)return GJ(e.initializer,Ea.A_type_literal_property_cannot_have_an_initializer)}33554432&e.flags&&JJ(e);if(pD(e)&&e.exclamationToken&&(!w_(e.parent)||!e.type||e.initializer||33554432&e.flags||mb(e)||yb(e))){const t=e.initializer?Ea.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?Ea.A_definite_assignment_assertion_is_not_permitted_in_this_context:Ea.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return GJ(e.exclamationToken,t)}}(e)||PJ(e.name),uM(e),nj(e),fb(e,64)&&172===e.kind&&e.initializer&&To(e,Ea.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,If(e.name))}function nj(e){if($N(e.name)&&w<99){for(let t=Ef(e);t;t=Ef(t))Wo(t).flags|=1048576;if(yF(e.parent)){const t=LD(e.parent);t&&(Wo(e.name).flags|=32768,Wo(t).flags|=4096)}}}function rj(e){QL(e),function(e){const t=Tg(e)?tb(e):void 0,n=e.typeParameters||t&&De(t);if(n){const t=n.pos===n.end?n.pos:ys(Cp(e).text,n.pos);return KJ(e,t,n.end-t,Ea.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const t=e.type||eb(e);if(t)GJ(t,Ea.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),qR(e.body);const t=ds(e),n=rp(t,e.kind);function r(e){return!!l_(e)||172===e.kind&&!mb(e)&&!!e.initializer}e===n&&hj(t),Ip(e.body)||c((function(){const t=e.parent;if(uy(t)){jD(e.parent,t);const n=BD(t),i=MD(e.body);if(i){n&&To(i,Ea.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);if(!z&&(re(e.parent.members,r)||re(e.parameters,(e=>fb(e,31)))))if(function(e,t){const n=Kh(e.parent);return IF(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(IF(n)&&am(uA(n.expression))){t=n;break}if(ij(n))break}void 0===t&&To(e,Ea.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 To(i,Ea.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 n||To(e,Ea.Constructors_for_derived_classes_must_contain_a_super_call)}}))}function ij(e){return 108===e.kind||110===e.kind||!Km(e)&&!!KI(e,ij)}function oj(e){HN(e.name)&&"constructor"===Dc(e.name)&&w_(e.parent)&&To(e.name,Ea.Class_constructor_may_not_be_an_accessor),c((function(){wJ(e)||function(e){if(!(33554432&e.flags)&&187!==e.parent.kind&&264!==e.parent.kind){if(w<1)return GJ(e.name,Ea.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(w<2&&$N(e.name))return GJ(e.name,Ea.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!fb(e,64))return KJ(e,e.end-1,1,Ea._0_expected,"{")}if(e.body){if(fb(e,64))return GJ(e,Ea.An_abstract_accessor_cannot_have_an_implementation);if(187===e.parent.kind||264===e.parent.kind)return GJ(e.body,Ea.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return GJ(e.name,Ea.An_accessor_cannot_have_type_parameters);if(!function(e){return jJ(e)||e.parameters.length===(177===e.kind?0:1)}(e))return GJ(e.name,177===e.kind?Ea.A_get_accessor_cannot_have_parameters:Ea.A_set_accessor_must_have_exactly_one_parameter);if(178===e.kind){if(e.type)return GJ(e.name,Ea.A_set_accessor_cannot_have_a_return_type_annotation);const t=Sn.checkDefined(Uv(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return GJ(t.dotDotDotToken,Ea.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return GJ(t.questionToken,Ea.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return GJ(e.name,Ea.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||PJ(e.name);Bj(e),QL(e),177===e.kind&&!(33554432&e.flags)&&Op(e.body)&&512&e.flags&&(1024&e.flags||To(e.name,Ea.A_get_accessor_must_return_a_value));167===e.name.kind&&KP(e.name);if(bu(e)){const t=ds(e),n=rp(t,177),r=rp(t,178);if(n&&r&&!(1&tJ(n))){Wo(n).flags|=1;const e=wb(n),t=wb(r);(64&e)!=(64&t)&&(To(n.name,Ea.Accessors_must_both_be_abstract_or_non_abstract),To(r.name,Ea.Accessors_must_both_be_abstract_or_non_abstract)),(4&e&&!(6&t)||2&e&&!(2&t))&&(To(n.name,Ea.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),To(r.name,Ea.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const t=Vl(ds(e));177===e.kind&&eL(e,t)})),qR(e.body),nj(e)}function aj(e,t,n){return e.typeArguments&&n<e.typeArguments.length?Sx(e.typeArguments[n]):sj(e,t)[n]}function sj(e,t){return $p(J(e.typeArguments,Sx),t,Hp(t),Tg(e))}function cj(e,t){let n,r,i=!0;for(let o=0;o<t.length;o++){const a=Rd(t[o]);a&&(n||(n=sj(e,t),r=Dx(t,n)),i=i&&TS(n[o],nS(a,r),e.typeArguments[o],Ea.Type_0_does_not_satisfy_the_constraint_1))}return i}function lj(e){const t=Sx(e);if(!Uc(t)){const n=Wo(e).resolvedSymbol;if(n)return function(e,t){if(!Uc(e))return 524288&t.flags&&Uo(t).typeParameters||(4&Zx(e)?e.target.localTypeParameters:void 0)}(t,n)}}function _j(e){if(NJ(e,e.typeArguments),183===e.kind&&!Tg(e)&&!Ng(e)&&e.typeArguments&&e.typeName.end!==e.typeArguments.pos){const t=Cp(e);25===Xf(t,e.typeName.end)&&KJ(e,ys(t.text,e.typeName.end),1,Ea.JSDoc_types_can_only_be_used_inside_documentation_comments)}b(e.typeArguments,qR),uj(e)}function uj(e){if(!Uc(Sx(e))){e.typeArguments&&c((()=>{const t=lj(e);t&&cj(e,t)}));const t=Wo(e).resolvedSymbol;t&&re(t.declarations,(e=>QT(e)&&!!(536870912&e.flags)))&&Eo(VI(e),t.declarations,t.escapedName)}}function dj(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType;if(bS(r,kv(n,0)))return 212===t.kind&&qh(t)&&32&Zx(n)&&1&wd(n)&&To(t,Ea.Index_signature_in_type_0_only_permits_reading,rc(n)),e;const i=ep(n);if(jp(i,Ut)&&dL(r,296))return e;if(Bv(n)){const e=Av(r,t);if(e){const n=vN(i,(t=>bp(t,e)));if(n&&6&zx(n))return To(t,Ea.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Nc(e)),Nt}}return To(t,Ea.Type_0_cannot_be_used_to_index_type_1,rc(r),rc(n)),Nt}function pj(e){!function(e){var t;if(null==(t=e.members)?void 0:t.length)GJ(e.members[0],Ea.A_mapped_type_may_not_declare_properties_or_methods)}(e),qR(e.typeParameter),qR(e.nameType),qR(e.type),e.type||RC(e,kt);const t=cb(e),n=xd(t);if(n)TS(n,vn,e.nameType);else{TS(bd(t),vn,Tl(e.typeParameter))}}function fj(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return GJ(e.type,Ea._0_expected,ts(155));let t=$h(e.parent);if(Tg(t)&&XP(t)){const e=jh(t);e&&(t=Th(e)||e)}switch(t.kind){case 260:const n=t;if(80!==n.name.kind)return GJ(e,Ea.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Cm(n))return GJ(e,Ea.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return GJ(t.name,Ea.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!mb(t)||!xb(t))return GJ(t.name,Ea.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!fb(t,8))return GJ(t.name,Ea.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:GJ(e,Ea.unique_symbol_types_are_not_allowed_here)}}else if(148===e.operator&&188!==e.type.kind&&189!==e.type.kind)$J(e,Ea.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,ts(155))}(e),qR(e.type)}function mj(e){return(pb(e,2)||l_(e))&&!!(33554432&e.flags)}function gj(e,t){let n=nz(e);if(264!==e.parent.kind&&263!==e.parent.kind&&231!==e.parent.kind&&33554432&e.flags){const t=Pf(e);!(t&&128&t.flags)||128&n||rP(e.parent)&&nP(e.parent.parent)&&mf(e.parent.parent)||(n|=32),n|=128}return n&t}function hj(e){c((()=>function(e){function t(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function n(e,n,r,i,o){if(0!==(i^o)){const i=gj(t(e,n),r);b(e,(e=>{const t=gj(e,r)^i;32&t?To(Mc(e),Ea.Overload_signatures_must_all_be_exported_or_non_exported):128&t?To(Mc(e),Ea.Overload_signatures_must_all_be_ambient_or_non_ambient):6&t?To(Mc(e)||e,Ea.Overload_signatures_must_all_be_public_private_or_protected):64&t&&To(Mc(e),Ea.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}function r(e,n,r,i){if(r!==i){const r=yh(t(e,n));b(e,(e=>{yh(e)!==r&&To(Mc(e),Ea.Overload_signatures_must_all_be_optional_or_required)}))}}const i=230;let o,a,s,c=0,l=i,_=!1,u=!0,d=!1;const p=e.declarations,f=0!=(16384&e.flags);function m(e){if(e.name&&Ip(e.name))return;let t=!1;const n=KI(e.parent,(n=>{if(t)return n;t=n===e}));if(n&&n.pos===e.end&&n.kind===e.kind){const t=n.name||n,r=n.name;if(e.name&&r&&($N(e.name)&&$N(r)&&e.name.escapedText===r.escapedText||cD(e.name)&&cD(r)&&fS(KP(e.name),KP(r))||Oy(e.name)&&Oy(r)&&jy(e.name)===jy(r))){if((174===e.kind||173===e.kind)&&mb(e)!==mb(n)){To(t,mb(e)?Ea.Function_overload_must_be_static:Ea.Function_overload_must_not_be_static)}return}if(Op(n.body))return void To(t,Ea.Function_implementation_name_must_be_0,If(e.name))}const r=e.name||e;f?To(r,Ea.Constructor_implementation_is_missing):fb(e,64)?To(r,Ea.All_declarations_of_an_abstract_method_must_be_consecutive):To(r,Ea.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let g=!1,h=!1,y=!1;const v=[];if(p)for(const e of p){const t=e,n=33554432&t.flags,r=t.parent&&(264===t.parent.kind||187===t.parent.kind)||n;if(r&&(s=void 0),263!==t.kind&&231!==t.kind||n||(y=!0),262===t.kind||174===t.kind||173===t.kind||176===t.kind){v.push(t);const e=gj(t,i);c|=e,l&=e,_=_||yh(t),u=u&&yh(t);const n=Op(t.body);n&&o?f?h=!0:g=!0:(null==s?void 0:s.parent)===t.parent&&s.end!==t.pos&&m(s),n?o||(o=t):d=!0,s=t,r||(a=t)}if(Tg(e)&&y_(e)&&e.jsDoc)for(const t of e.jsDoc)if(t.tags)for(const e of t.tags)SE(e)&&(d=!0)}h&&b(v,(e=>{To(e,Ea.Multiple_constructor_implementations_are_not_allowed)}));g&&b(v,(e=>{To(Mc(e)||e,Ea.Duplicate_function_implementation)}));if(y&&!f&&16&e.flags&&p){const t=M(p,(e=>263===e.kind)).map((e=>Bf(e,Ea.Consider_adding_a_declare_modifier_to_this_class)));b(p,(n=>{const r=263===n.kind?Ea.Class_declaration_cannot_implement_overload_list_for_0:262===n.kind?Ea.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&pT(To(Mc(n)||n,r,Pc(e)),...t)}))}!a||a.body||fb(a,64)||a.questionToken||m(a);if(d&&(p&&(n(p,o,i,c,l),r(p,o,_,u)),o)){const t=Qp(e),n=Kp(o);for(const e of t)if(!US(n,e)){pT(To(e.declaration&&dE(e.declaration)?e.declaration.parent.tagName:e.declaration,Ea.This_overload_signature_is_not_compatible_with_its_implementation_signature),Bf(o,Ea.The_implementation_signature_is_declared_here));break}}}(e)))}function yj(e){c((()=>function(e){let t=e.localSymbol;if(!t&&(t=ds(e),!t.exportSymbol))return;if(rp(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const e of t.declarations){const t=s(e),o=gj(e,2080);32&o?2048&o?i|=t:n|=t:r|=t}const o=n&r,a=i&(n|r);if(o||a)for(const e of t.declarations){const t=s(e),n=Mc(e);t&a?To(n,Ea.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,If(n)):t&o&&To(n,Ea.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,If(n))}function s(e){let t=e;switch(t.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return lf(t)||0!==CR(t)?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const e=t,n=yP(e)?e.expression:e.right;if(!Kb(n))return 1;t=n;case 271:case 274:case 273:let r=0;return b(Ma(ds(t)).declarations,(e=>{r|=s(e)})),r;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return Sn.failBadSyntaxKind(t)}}}(e)))}function vj(e,t,n,...r){const i=bj(e,t);return i&&Nj(i,t,n,...r)}function bj(e,t,n){if(zc(e))return;const i=e;if(i.promisedTypeOfPromise)return i.promisedTypeOfPromise;if(o_(e,_h(!1)))return i.promisedTypeOfPromise=mm(e)[0];if(pL(Hd(e),402915324))return;const o=jc(e,"then");if(zc(o))return;const a=o?Sp(o,0):r;if(0===a.length)return void(t&&To(t,Ea.A_promise_must_have_a_then_method));let s,c;for(const t of a){const n=tf(t);n&&n!==nn&&!ok(e,n,co)?s=n:c=he(c,t)}if(!c)return Sn.assertIsDefined(s),n&&(n.value=s),void(t&&To(t,Ea.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,rc(e),rc(s)));const l=eN(Uy(J(c,NO)),2097152);if(zc(l))return;const _=Sp(l,0);if(0!==_.length)return i.promisedTypeOfPromise=Uy(J(_,NO),2);t&&To(t,Ea.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function xj(e,t,n,r,...i){return(t?Nj(e,n,r,...i):Dj(e,n,r,...i))||Nt}function Sj(e){if(pL(Hd(e),402915324))return!1;const t=jc(e,"then");return!!t&&Sp(eN(t,2097152),0).length>0}function kj(e){var t;if(16777216&e.flags){const n=Dh(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function Tj(e){return 1048576&e.flags?CN(e,Tj):kj(e)?e.aliasTypeArguments[0]:e}function Cj(e){if(zc(e)||kj(e))return!1;if(Bv(e)){const t=Wd(e);if(t?3&t.flags||WS(t)||bN(t,Sj):uL(e,8650752))return!0}return!1}function wj(e){if(Cj(e)){const t=function(e){const t=Dh(!0);if(t)return Pm(t,[Tj(e)])}(e);if(t)return t}return Sn.assert(kj(e)||void 0===bj(e),"type provided should not be a non-generic 'promise'-like."),e}function Nj(e,t,n,...r){const i=Dj(e,t,n,...r);return i&&wj(i)}function Dj(e,t,n,...r){if(zc(e))return e;if(kj(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(io.lastIndexOf(e.id)>=0)return void(t&&To(t,Ea.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>Dj(e,t,n,...r):Dj;io.push(e.id);const a=CN(e,o);return io.pop(),i.awaitedTypeOfType=a}if(Cj(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=bj(e,void 0,o);if(a){if(e.id===a.id||io.lastIndexOf(a.id)>=0)return void(t&&To(t,Ea.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));io.push(e.id);const o=Dj(a,t,n,...r);if(io.pop(),!o)return;return i.awaitedTypeOfType=o}if(!Sj(e))return i.awaitedTypeOfType=e;if(t){let i;Sn.assertIsDefined(n),o.value&&(i=LS(i,Ea.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,rc(e),rc(o.value))),i=LS(i,n,...r),oo.add(qf(Cp(t),t,i))}}function Fj(e){const t=BI(e);UI(t,e);const n=of(t);if(1&n.flags)return;const r=UO(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 263:case 231:i=Ea.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!L){i=Ea.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:i=Ea.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:i=Ea.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return Sn.failBadSyntaxKind(e.parent)}TS(n,o,e.expression,i)}function Pj(e,t,n,i,o,a=n.length,s=0){return Au(AC.createFunctionTypeNode(void 0,r,AC.createKeywordTypeNode(133)),e,t,n,i,o,a,s)}function Ej(e,t,n,r,i,o,a){return Cf(Pj(e,t,n,r,i,o,a))}function Aj(e){return Ej(void 0,void 0,r,e)}function Ij(e){return Ej(void 0,void 0,[Io("value",e)],nn)}function Oj(e,t){if(!e)return;const n=Gb(e),i=2097152|(80===e.kind?788968:1920),o=ta(n,n.escapedText,i,void 0,void 0,!0);if(o&&2097152&o.flags)if(Oe&&Ss(o)&&!$B(Ma(o))&&!za(o))Ua(o);else if(t&&YS(C)&&$S(C)>=5&&!Ss(o)&&!re(o.declarations,r_)){const t=To(e,Ea.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),i=D(o.declarations||r,ga);i&&pT(t,Bf(i,Ea._0_was_imported_here,Dc(n)))}}function Lj(e){const t=jj(e);t&&m_(t)&&Oj(t,!0)}function jj(e){if(e)switch(e.kind){case 193:case 192:return Mj(e.types);case 194:return Mj([e.trueType,e.falseType]);case 196:case 202:return jj(e.type);case 183:return e.typeName}}function Mj(e){let t;for(let n of e){for(;196===n.kind||202===n.kind;)n=n.type;if(146===n.kind)continue;if(!H&&(201===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=jj(n);if(!e)return;if(t){if(!HN(t)||!HN(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function Rj(e){const t=Yv(e);return ed(e)?xm(t):t}function Bj(e){if(!(_I(e)&&Sb(e)&&e.modifiers&&ag(L,e,e.parent,e.parent.parent)))return;const t=D(e.modifiers,uD);if(t){if(L)vJ(t,8),169===e.kind&&vJ(t,32);else if(w<99)if(vJ(t,8),YF(e))if(e.name){aR(e)&&vJ(t,8388608)}else vJ(t,8388608);else yF(e)||($N(e.name)&&(mD(e)||N_(e)||D_(e))&&vJ(t,8388608),cD(e.name)&&vJ(t,16777216));if(C.emitDecoratorMetadata)switch(vJ(t,16),e.kind){case 263:const t=qv(e);if(t)for(const e of t.parameters)Lj(Rj(e));break;case 177:case 178:const n=177===e.kind?178:177,r=rp(ds(e),n);Lj(zl(e)||r&&zl(r));break;case 174:for(const t of e.parameters)Lj(Rj(t));Lj(eb(e));break;case 172:Lj(Yv(e));break;case 169:Lj(Rj(e));const i=e.parent;for(const e of i.parameters)Lj(Rj(e));Lj(eb(i))}for(const t of e.modifiers)uD(t)&&Fj(t)}}function Jj(e){switch(e.kind){case 80:return e;case 211:return e.name;default:return}}function zj(e){var t;Bj(e),QL(e);const n=Ny(e);if(e.name&&167===e.name.kind&&KP(e.name),bu(e)){const n=ds(e),r=e.localSymbol||n,i=null==(t=r.declarations)?void 0:t.find((t=>t.kind===e.kind&&!(524288&t.flags)));e===i&&hj(r),n.parent&&hj(n)}const r=173===e.kind?void 0:e.body;if(qR(r),eL(e,af(e)),c((function(){eb(e)||(Ip(r)&&!mj(e)&&RC(e,kt),1&n&&Op(r)&&of(Kp(e)))})),Tg(e)){const t=pl(e);t&&t.typeExpression&&!FP(Sx(t.typeExpression),e)&&To(t.typeExpression.type,Ea.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function qj(e){c((function(){const t=Cp(e);let n=yi.get(t.path);n||(n=[],yi.set(t.path,n));n.push(e)}))}function Uj(e,t){for(const n of e)switch(n.kind){case 263:case 231:Hj(n,t),Kj(n,t);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:Zj(n,t);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:n.body&&Zj(n,t),Kj(n,t);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Kj(n,t);break;case 195:$j(n,t);break;default:Sn.assertNever(n,"Node should not have been registered for unused identifiers check")}}function Vj(e,t,n){n(e,0,Bf(Mc(e)||e,QT(e)?Ea._0_is_declared_but_never_used:Ea._0_is_declared_but_its_value_is_never_read,t))}function Wj(e){return HN(e)&&95===Dc(e).charCodeAt(0)}function Hj(e,t){for(const n of e.members)switch(n.kind){case 174:case 172:case 177:case 178:if(178===n.kind&&32768&n.symbol.flags)break;const e=ds(n);e.isReferenced||!(pb(n,2)||Lc(n)&&$N(n.name))||33554432&n.flags||t(n,0,Bf(n.name,Ea._0_is_declared_but_its_value_is_never_read,tc(e)));break;case 176:for(const e of n.parameters)!e.symbol.isReferenced&&fb(e,2)&&t(e,0,Bf(e.name,Ea.Property_0_is_declared_but_its_value_is_never_read,Pc(e.symbol)));break;case 181:case 240:case 175:break;default:Sn.fail("Unexpected class member")}}function $j(e,t){const{typeParameter:n}=e;Gj(n)&&t(e,1,Bf(e,Ea._0_is_declared_but_its_value_is_never_read,Dc(n.name)))}function Kj(e,t){const n=ds(e).declarations;if(!n||Ie(n)!==e)return;const r=kl(e),i=new Set;for(const e of r){if(!Gj(e))continue;const n=Dc(e.name),{parent:r}=e;if(195!==r.kind&&r.typeParameters.every(Gj)){if(Z(i,r)){const i=Cp(r),o=PE(r)?mT(r):gT(i,r.typeParameters),a=1===r.typeParameters.length?[Ea._0_is_declared_but_its_value_is_never_read,n]:[Ea.All_type_parameters_are_unused];t(e,1,ES(i,o.pos,o.end-o.pos,...a))}}else t(e,1,Bf(e,Ea._0_is_declared_but_its_value_is_never_read,n))}}function Gj(e){return!(262144&us(e.symbol).isReferenced||Wj(e.name))}function Xj(e,t,n,r){const i=String(r(t)),o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function Qj(e){return ft(Ky(e),_D)}function Yj(e){return GD(e)?$D(e.parent)?!(!e.propertyName||!Wj(e.name)):Wj(e.name):lf(e)||(GF(e)&&fu(e.parent.parent)||tM(e))&&Wj(e.name)}function Zj(e,t){const n=new Map,r=new Map,i=new Map;e.locals.forEach((e=>{var o;if(!(262144&e.flags?!(3&e.flags)||3&e.isReferenced:e.isReferenced||e.exportSymbol)&&e.declarations)for(const a of e.declarations)if(!Yj(a))if(tM(a))Xj(n,273===(o=a).kind?o:274===o.kind?o.parent:o.parent.parent,a,PB);else if(GD(a)&&$D(a.parent)){a!==Ie(a.parent.elements)&&Ie(a.parent.elements).dotDotDotToken||Xj(r,a.parent,a,PB)}else if(GF(a)){const e=7&rz(a),t=Mc(a);(4===e||6===e)&&t&&Wj(t)||Xj(i,a.parent,a,PB)}else{const n=e.valueDeclaration&&Qj(e.valueDeclaration),i=e.valueDeclaration&&Mc(e.valueDeclaration);n&&i?dc(n,n.parent)||Hv(n)||Wj(i)||(GD(a)&&KD(a.parent)?Xj(r,a.parent,a,PB):t(n,1,Bf(i,Ea._0_is_declared_but_its_value_is_never_read,Pc(e)))):Vj(a,Pc(e),t)}})),n.forEach((([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?274===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?Bf(r,Ea._0_is_declared_but_its_value_is_never_read,Dc(Pe(n).name)):Bf(r,Ea.All_imports_in_import_declaration_are_unused));else for(const e of n)Vj(e,Dc(e.name),t)})),r.forEach((([e,n])=>{const r=Qj(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&260===e.parent.kind&&261===e.parent.parent.kind?Xj(i,e.parent.parent,e.parent,PB):t(e,r,1===n.length?Bf(e,Ea._0_is_declared_but_its_value_is_never_read,eM(Pe(n).name)):Bf(e,Ea.All_destructured_elements_are_unused));else for(const e of n)t(e,r,Bf(e,Ea._0_is_declared_but_its_value_is_never_read,eM(e.name)))})),i.forEach((([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?Bf(Pe(n).name,Ea._0_is_declared_but_its_value_is_never_read,eM(Pe(n).name)):Bf(243===e.parent.kind?e.parent:e,Ea.All_variables_are_unused));else for(const e of n)t(e,0,Bf(e,Ea._0_is_declared_but_its_value_is_never_read,eM(e.name)))}))}function eM(e){switch(e.kind){case 80:return Dc(e);case 207:case 206:return eM(mt(Pe(e.elements),GD).name);default:return Sn.assertNever(e)}}function tM(e){return 273===e.kind||276===e.kind||274===e.kind}function nM(e){if(241===e.kind&&QJ(e),T_(e)){const t=Si;b(e.statements,qR),Si=t}else b(e.statements,qR);e.locals&&qj(e)}function rM(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(172===e.kind||171===e.kind||174===e.kind||173===e.kind||177===e.kind||178===e.kind||303===e.kind)return!1;if(33554432&e.flags)return!1;if((cP(e)||aP(e)||hP(e))&&r_(e))return!1;const r=Ky(e);return!_D(r)||!Ip(r.parent.body)}function iM(e){kc(e,(t=>{if(4&tJ(t)){return 80!==e.kind?To(Mc(e),Ea.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):To(e,Ea.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1}))}function oM(e){kc(e,(t=>{if(8&tJ(t)){return 80!==e.kind?To(Mc(e),Ea.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):To(e,Ea.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1}))}function aM(e){1048576&tJ(Ef(e))&&(Sn.assert(Lc(e)&&HN(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),So("noEmit",e,Ea.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function sM(e){let t=!1;if(yF(e)){for(const n of e.members)if(2097152&tJ(n)){t=!0;break}}else if(oF(e))2097152&tJ(e)&&(t=!0);else{const n=Ef(e);n&&2097152&tJ(n)&&(t=!0)}t&&(Sn.assert(Lc(e)&&HN(e.name),"The target of a Reflect collision check should be an identifier"),So("noEmit",e,Ea.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,If(e.name),"Reflect"))}function cM(e,t){t&&(function(e,t){if(A>=5&&!(A>=100&&1===Cp(e).impliedNodeFormat))return;if(!t||!rM(e,t,"require")&&!rM(e,t,"exports"))return;if(nP(e)&&1!==CR(e))return;const n=Oc(e);312===n.kind&&Yf(n)&&So("noEmit",t,Ea.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,If(t),If(t))}(e,t),function(e,t){if(!t||w>=4||!rM(e,t,"Promise"))return;if(nP(e)&&1!==CR(e))return;const n=Oc(e);312===n.kind&&Yf(n)&&4096&n.flags&&So("noEmit",t,Ea.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,If(t),If(t))}(e,t),function(e,t){w<=8&&(rM(e,t,"WeakMap")||rM(e,t,"WeakSet"))&&to.push(e)}(e,t),function(e,t){t&&w>=2&&w<=8&&rM(e,t,"Reflect")&&no.push(e)}(e,t),w_(e)?(nR(t,Ea.Class_name_cannot_be_0),33554432&e.flags||function(e){w>=1&&"Object"===e.escapedText&&(A<5||1===Cp(e).impliedNodeFormat)&&To(e,Ea.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Pi[A])}(t)):tP(e)&&nR(t,Ea.Enum_name_cannot_be_0))}function lM(e){return e===Tt?kt:e===cr?sr:e}function uM(e){var t;if(Bj(e),GD(e)||qR(e.type),!e.name)return;if(167===e.name.kind&&(KP(e.name),$u(e)&&e.initializer&&DL(e.initializer)),GD(e)){if(e.propertyName&&HN(e.name)&&$y(e)&&Ip(zm(e).body))return void ro.push(e);$D(e.parent)&&e.dotDotDotToken&&w<5&&vJ(e,4),e.propertyName&&167===e.propertyName.kind&&KP(e.propertyName);const t=e.parent.parent,n=Vc(t,e.dotDotDotToken?32:0),r=e.propertyName||e.name;if(n&&!R_(r)){const i=pv(r);if(fC(i)){const r=bp(n,mC(i));r&&(MA(r,void 0,!1),XE(e,!!t.initializer&&108===t.initializer.kind,!1,n,r))}}}if(R_(e.name)&&(207===e.name.kind&&w<2&&C.downlevelIteration&&vJ(e,512),b(e.name.elements,qR)),e.initializer&&$y(e)&&Ip(zm(e).body))return void To(e,Ea.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);if(R_(e.name)){if(Ew(e))return;const t=$u(e)&&e.initializer&&249!==e.parent.parent.kind,n=!re(e.name.elements,dn(vF));if(t||n){const r=Dl(e);if(t){const t=DL(e.initializer);H&&n?_A(t,e):CS(t,Dl(e),e,e.initializer)}n&&(KD(e.name)?kM(65,r,Lt,e):H&&_A(r,e))}return}const n=ds(e);if(2097152&n.flags&&(Eg(e)||Ag(e)))return void DR(e);const r=lM(n_(n));if(e===n.valueDeclaration){const o=$u(e)&&Rg(e);if(o){if(!(Tg(e)&&QD(o)&&(0===o.properties.length||Zb(e.name))&&!!(null==(t=n.exports)?void 0:t.size))&&249!==e.parent.parent.kind){const t=DL(o);CS(t,r,e,o,void 0);const n=7&rz(e);if(6===n){const e=(i=!0,Mr||(Mr=Qg("AsyncDisposable",0,i))||Pn),n=kh(!0);if(e!==Pn&&n!==Pn){TS(t,Uy([e,n,Jt,Lt]),o,Ea.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(4===n){const e=kh(!0);if(e!==Pn){TS(t,Uy([e,Jt,Lt]),o,Ea.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}}n.declarations&&n.declarations.length>1&&re(n.declarations,(t=>t!==e&&km(t)&&!pM(t,e)))&&To(e.name,Ea.All_declarations_of_0_must_have_identical_modifiers,If(e.name))}else{const t=lM(Dl(e));Uc(r)||Uc(t)||fS(r,t)||67108864&n.flags||dM(n.valueDeclaration,r,e,t),$u(e)&&e.initializer&&CS(DL(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!pM(e,n.valueDeclaration)&&To(e.name,Ea.All_declarations_of_0_must_have_identical_modifiers,If(e.name))}var i;172!==e.kind&&171!==e.kind&&(yj(e),260!==e.kind&&208!==e.kind||function(e){if(0!=(7&rz(e))||$y(e))return;const t=ds(e);if(1&t.flags){if(!HN(e.name))return Sn.fail();const n=ta(e,e.name.escapedText,3,void 0,void 0,!1);if(n&&n!==t&&2&n.flags&&7&KE(n)){const t=gy(n.valueDeclaration,261),r=243===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(241===r.kind&&y_(r.parent)||268===r.kind||267===r.kind||312===r.kind)){const t=tc(n);To(e,Ea.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),cM(e,e.name))}function dM(e,t,n,r){const i=Mc(n),o=172===n.kind||171===n.kind?Ea.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Ea.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=If(i),s=To(i,o,a,rc(t),rc(r));e&&pT(s,Bf(e,Ea._0_was_also_declared_here,a))}function pM(e,t){if(169===e.kind&&260===t.kind||260===e.kind&&169===t.kind)return!0;if(yh(e)!==yh(t))return!1;return kb(e,1358)===kb(t,1358)}function fM(e){var t,n;null==(t=Fr)||t.push(Fr.Phase.Check,"checkVariableDeclaration",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath}),function(e){const t=rz(e),n=7&t;if(R_(e.name))switch(n){case 6:return GJ(e,Ea._0_declarations_may_not_have_binding_patterns,"await using");case 4:return GJ(e,Ea._0_declarations_may_not_have_binding_patterns,"using")}if(249!==e.parent.parent.kind&&250!==e.parent.parent.kind)if(33554432&t)JJ(e);else if(!e.initializer){if(R_(e.name)&&!R_(e.parent))return GJ(e,Ea.A_destructuring_declaration_must_have_an_initializer);switch(n){case 6:return GJ(e,Ea._0_declarations_must_be_initialized,"await using");case 4:return GJ(e,Ea._0_declarations_must_be_initialized,"using");case 2:return GJ(e,Ea._0_declarations_must_be_initialized,"const")}}if(e.exclamationToken&&(243!==e.parent.parent.kind||!e.type||e.initializer||33554432&t)){const t=e.initializer?Ea.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?Ea.A_definite_assignment_assertion_is_not_permitted_in_this_context:Ea.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return GJ(e.exclamationToken,t)}!(A<5||1===Cp(e).impliedNodeFormat)||4===A||33554432&e.parent.parent.flags||!fb(e.parent.parent,32)||zJ(e.name);!!n&&qJ(e.name)}(e),uM(e),null==(n=Fr)||n.pop()}function mM(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==Ie(t))return GJ(e,Ea.A_rest_element_must_be_last_in_a_destructuring_pattern);if(kJ(t,Ea.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return GJ(e.name,Ea.A_rest_element_cannot_have_a_property_name)}if(e.dotDotDotToken&&e.initializer)KJ(e,e.initializer.pos-1,1,Ea.A_rest_element_cannot_have_an_initializer)}(e),uM(e)}function gM(e){const t=7&vc(e);4!==t&&6!==t||vJ(e,33554432),b(e.declarations,qR)}function hM(e){xJ(e)||VJ(e.declarationList)||function(e){if(!WJ(e.parent)){const t=7&rz(e.declarationList);if(t){const n=1===t?"let":2===t?"const":4===t?"using":6===t?"await using":Sn.fail("Unknown BlockScope flag");GJ(e,Ea._0_declarations_can_only_be_declared_inside_a_block,n)}}}(e),gM(e.declarationList)}function yM(e,t,n){function r(e,t){for(i(e=Qh(e),t);pF(e)&&(57===e.operatorToken.kind||61===e.operatorToken.kind);)i(e=Qh(e.left),t)}function i(e,n){const i=Jb(e)?Qh(e.right):e;if(Kg(i))return;if(Jb(i))return void r(i,n);const o=i===e?t:bM(i),a=YD(i)&&FL(i.expression);if(!Yw(o,4194304)||a)return;const s=Sp(o,0),c=!!vj(o);if(0===s.length&&!c)return;const l=HN(i)?i:YD(i)?i.name:void 0,_=l&&cB(l);if(!_&&!c)return;const u=_&&pF(e.parent)&&function(e,t){for(;pF(e)&&56===e.operatorToken.kind;){if(KI(e.right,(function e(n){if(HN(n)){const e=cB(n);if(e&&e===t)return!0}return KI(n,e)})))return!0;e=e.parent}return!1}(e.parent,_)||_&&n&&function(e,t,n,r){return!!KI(t,(function t(i){if(HN(i)){const t=cB(i);if(t&&t===r){if(HN(e)||HN(n)&&pF(n.parent))return!0;let t=n.parent,r=i.parent;for(;t&&r;){if(HN(t)&&HN(r)||110===t.kind&&110===r.kind)return cB(t)===cB(r);if(YD(t)&&YD(r)){if(cB(t.name)!==cB(r.name))return!1;r=r.expression,t=t.expression}else{if(!eF(t)||!eF(r))return!1;r=r.expression,t=t.expression}}}}return KI(i,t)}))}(e,n,l,_);u||(c?No(i,!0,Ea.This_condition_will_always_return_true_since_this_0_is_always_defined,oc(o)):To(i,Ea.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}H&&r(e,n)}function vM(e,t){return 16384&e.flags&&To(t,Ea.An_expression_of_type_void_cannot_be_tested_for_truthiness),e}function bM(e,t){return vM($L(e,t),e)}function xM(e){OJ(e);const t=tA($L(e.expression));if(261===e.initializer.kind){const t=e.initializer.declarations[0];t&&R_(t.name)&&To(t.name,Ea.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),gM(e.initializer)}else{const n=e.initializer,r=$L(n);209===n.kind||210===n.kind?To(n,Ea.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):bS(function(e){const t=Tv(kv(e));return 131072&t.flags?qt:t}(t),r)?aL(n,Ea.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,Ea.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):To(n,Ea.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}t!==rn&&dL(t,126091264)||To(e.expression,Ea.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,rc(t)),qR(e.statement),e.locals&&qj(e)}function SM(e){return kM(e.awaitModifier?15:13,ZE(e.expression),Lt,e.expression)}function kM(e,t,n,r){return zc(t)?t:TM(e,t,n,r,!0)||kt}function TM(e,t,n,r,i){const o=0!=(2&e);if(t===rn)return void RM(r,t,o);const a=w>=2,s=!a&&C.downlevelIteration,c=C.noUncheckedIndexedAccess&&!!(128&e);if(a||s||o){const o=PM(t,e,a?r:void 0);if(i&&o){const t=8&e?Ea.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?Ea.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?Ea.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?Ea.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&&TS(n,o.nextType,r,t)}if(o||a)return c?aN(o&&o.yieldType):o&&o.yieldType}let l=t,_=!1,u=!1;if(4&e){if(1048576&l.flags){const e=t.types,n=M(e,(e=>!(402653316&e.flags)));n!==e&&(l=Uy(n,2))}else 402653316&l.flags&&(l=rn);if(u=l!==t,u&&(w<1&&r&&(To(r,Ea.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),131072&l.flags))return c?aN(qt):qt}if(!Zk(l)){if(r&&!_){const n=!!(4&e)&&!u,[i,o]=function(n,r){var i;if(r)return n?[Ea.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[Ea.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if(CM(e,0,t,void 0))return[Ea.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1];if(function(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}(null==(i=t.symbol)?void 0:i.escapedName))return[Ea.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return n?[Ea.Type_0_is_not_an_array_type_or_a_string_type,!0]:[Ea.Type_0_is_not_an_array_type,!0]}(n,s);No(r,o&&!!vj(l),i,rc(l))}return u?c?aN(qt):qt:void 0}const d=Mp(l,Ut);return u&&d?402653316&d.flags&&!C.noUncheckedIndexedAccess?qt:Uy(c?[d,qt,Lt]:[d,qt],2):128&e?aN(d):d}function CM(e,t,n,r){if(zc(n))return;const i=PM(n,e,r);return i&&i[MB(t)]}function wM(e=rn,t=rn,n=At){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=om([e,t,n]);let i=li.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},li.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function NM(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==_i){if(i===ui)return ui;t=he(t,i.yieldType),n=he(n,i.returnType),r=he(r,i.nextType)}return t||n||r?wM(t&&Uy(t),n&&Uy(n),r&&rv(r)):_i}function DM(e,t){return e[t]}function FM(e,t,n){return e[t]=n}function PM(e,t,n){var r,i;if(zc(e))return ui;if(!(1048576&e.flags)){const i=n?{errors:void 0}:void 0,o=AM(e,t,n,i);if(o===_i){if(n){const r=RM(n,e,!!(2&t));(null==i?void 0:i.errors)&&pT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)oo.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=DM(e,o);if(a)return a===_i?void 0:a;let s;for(const r of e.types){const a=n?{errors:void 0}:void 0,c=AM(r,t,n,a);if(c===_i){if(n){const r=RM(n,e,!!(2&t));(null==a?void 0:a.errors)&&pT(r,...a.errors)}return void FM(e,o,_i)}if(null==(i=null==a?void 0:a.errors)?void 0:i.length)for(const e of a.errors)oo.add(e);s=he(s,c)}const c=s?NM(s):_i;return FM(e,o,c),c===_i?void 0:c}function EM(e,t){if(e===_i)return _i;if(e===ui)return ui;const{yieldType:n,returnType:r,nextType:i}=e;return t&&Dh(!0),wM(Nj(n,t)||kt,Nj(r,t)||kt,i)}function AM(e,t,n,r){if(zc(e))return ui;let i=!1;if(2&t){const r=IM(e,fi)||LM(e,fi);if(r){if(r!==_i||!n)return 8&t?EM(r,n):r;i=!0}}if(1&t){let r=IM(e,mi)||LM(e,mi);if(r)if(r===_i&&n)i=!0;else{if(!(2&t))return r;if(r!==_i)return r=EM(r,n),i?r:FM(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=MM(e,fi,n,r,i);if(t!==_i)return t}if(1&t){let o=MM(e,mi,n,r,i);if(o!==_i)return 2&t?(o=EM(o,n),i?o:FM(e,"iterationTypesOfAsyncIterable",o)):o}return _i}function IM(e,t){return DM(e,t.iterableCacheKey)}function OM(e,t){const n=IM(e,t)||MM(e,t,void 0,void 0,!1);return n===_i?pi:n}function LM(e,t){let n;if(o_(e,n=t.getGlobalIterableType(!1))||o_(e,n=t.getGlobalIterableIteratorType(!1))){const[r]=mm(e),{returnType:i,nextType:o}=OM(n,t);return FM(e,t.iterableCacheKey,wM(t.resolveIterationType(r,void 0)||r,t.resolveIterationType(i,void 0)||i,o))}if(o_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=mm(e);return FM(e,t.iterableCacheKey,wM(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function jM(e){const t=rh(!1),n=t&&jc(n_(t),wc(e));return n&&fC(n)?mC(n):`__@${e}`}function MM(e,t,n,r,i){const o=bp(e,jM(t.iteratorSymbolName)),a=!o||16777216&o.flags?void 0:n_(o);if(zc(a))return i?ui:FM(e,t.iterableCacheKey,ui);const s=a?Sp(a,0):void 0;if(!re(s))return i?_i:FM(e,t.iterableCacheKey,_i);const c=BM(rv(J(s,of)),t,n,r,i)??_i;return i?c:FM(e,t.iterableCacheKey,c)}function RM(e,t,n){const r=n?Ea.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Ea.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return No(e,!!vj(t)||!n&&BF(e.parent)&&e.parent.expression===e&&gh(!1)!==jn&&bS(t,gh(!1)),r,rc(t))}function BM(e,t,n,r,i){if(zc(e))return ui;let o=JM(e,t)||function(e,t){const n=t.getGlobalIterableIteratorType(!1);if(o_(e,n)){const[r]=mm(e),i=JM(n,t)||HM(n,t,void 0,void 0,!1),{returnType:o,nextType:a}=i===_i?pi:i;return FM(e,t.iteratorCacheKey,wM(r,o,a))}if(o_(e,t.getGlobalIteratorType(!1))||o_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=mm(e);return FM(e,t.iteratorCacheKey,wM(n,r,i))}}(e,t);return o===_i&&n&&(o=void 0,i=!0),o??(o=HM(e,t,n,r,i)),o===_i?void 0:o}function JM(e,t){return DM(e,t.iteratorCacheKey)}function zM(e,t){const n=jc(e,"done")||Ht;return bS(0===t?Ht:Gt,n)}function qM(e){return zM(e,0)}function UM(e){return zM(e,1)}function VM(e){if(zc(e))return ui;const t=DM(e,"iterationTypesOfIteratorResult");if(t)return t;if(o_(e,(n=!1,Cr||(Cr=Qg("IteratorYieldResult",1,n))||jn))){return FM(e,"iterationTypesOfIteratorResult",wM(mm(e)[0],void 0,void 0))}var n;if(o_(e,function(e){return wr||(wr=Qg("IteratorReturnResult",1,e))||jn}(!1))){return FM(e,"iterationTypesOfIteratorResult",wM(void 0,mm(e)[0],void 0))}const r=SN(e,qM),i=r!==rn?jc(r,"value"):void 0,o=SN(e,UM),a=o!==rn?jc(o,"value"):void 0;return FM(e,"iterationTypesOfIteratorResult",i||a?wM(i,a||nn,void 0):_i)}function WM(e,t,n,i,o){var a,s,c,l;const _=bp(e,n);if(!_&&"next"!==n)return;const u=!_||"next"===n&&16777216&_.flags?void 0:"next"===n?n_(_):eN(n_(_),2097152);if(zc(u))return"next"===n?ui:di;const d=u?Sp(u,0):r;if(0===d.length){if(i){const e="next"===n?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;o?(o.errors??(o.errors=[]),o.errors.push(Bf(i,e,n))):To(i,e,n)}return"next"===n?_i:void 0}if((null==u?void 0:u.symbol)&&1===d.length){const e=t.getGlobalGeneratorType(!1),r=t.getGlobalIteratorType(!1),i=(null==(s=null==(a=e.symbol)?void 0:a.members)?void 0:s.get(n))===u.symbol,o=!i&&(null==(l=null==(c=r.symbol)?void 0:c.members)?void 0:l.get(n))===u.symbol;if(i||o){const t=i?e:r,{mapper:o}=u;return wM(Fx(t.typeParameters[0],o),Fx(t.typeParameters[1],o),"next"===n?Fx(t.typeParameters[2],o):void 0)}}let p,f,m,g,h;for(const e of d)"throw"!==n&&re(e.parameters)&&(p=he(p,vO(e,0))),f=he(f,of(e));if("throw"!==n){const e=p?Uy(p):At;if("next"===n)g=e;else if("return"===n){m=he(m,t.resolveIterationType(e,i)||kt)}}const y=f?rv(f):rn,v=VM(t.resolveIterationType(y,i)||kt);return v===_i?(i&&(o?(o.errors??(o.errors=[]),o.errors.push(Bf(i,t.mustHaveAValueDiagnostic,n))):To(i,t.mustHaveAValueDiagnostic,n)),h=kt,m=he(m,kt)):(h=v.yieldType,m=he(m,v.returnType)),wM(h,Uy(m),g)}function HM(e,t,n,r,i){const o=NM([WM(e,t,"next",n,r),WM(e,t,"return",n,r),WM(e,t,"throw",n,r)]);return i?o:FM(e,t.iteratorCacheKey,o)}function $M(e,t,n){if(zc(t))return;const r=KM(t,n);return r&&r[MB(e)]}function KM(e,t){if(zc(e))return ui;const n=t?fi:mi;return PM(e,t?2:1,void 0)||function(e,t,n,r){return BM(e,t,n,r,!1)}(e,n,void 0,void 0)}function GM(e){QJ(e)||function(e){let t=e;for(;t;){if(v_(t))return GJ(e,Ea.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 256:if(e.label&&t.label.escapedText===e.label.escapedText){return!!(251===e.kind&&!lu(t.statement,!0))&&GJ(e,Ea.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 255:if(252===e.kind&&!e.label)return!1;break;default:if(lu(t,!1)&&!e.label)return!1}t=t.parent}if(e.label){return GJ(e,252===e.kind?Ea.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Ea.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}GJ(e,252===e.kind?Ea.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Ea.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(e)}function XM(e,t){const n=!!(2&t);if(!!(1&t)){const t=$M(1,e,n);return t?n?Dj(Tj(t)):t:Nt}return n?Dj(e)||Nt:e}function QM(e,t){const n=XM(t,Ny(e));return!(!n||!(uL(n,16384)||32769&n.flags))}function YM(e){QJ(e)||HN(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=Cp(e);if(!HJ(r)){const i=Gf(r,e.pos);return oo.add(ES(r,$s(i),0,t,...n)),!0}}(e,Ea.Line_break_not_permitted_here),e.expression&&$L(e.expression)}function ZM(e,t,n){const r=Lp(e);if(0===r.length)return;for(const t of Id(e))n&&4194304&t.flags||eR(e,t,gv(t,8576,!0),i_(t));const i=t.valueDeclaration;if(i&&w_(i))for(const t of i.members)if(!mb(t)&&!bu(t)){const n=ds(t);eR(e,n,VL(t.name.expression),i_(n))}if(r.length>1)for(const t of r)tR(e,t)}function eR(e,t,n,r){const i=t.valueDeclaration,o=Mc(i);if(o&&$N(o))return;const a=Rp(e,n),s=2&Zx(e)?rp(e.symbol,264):void 0,c=i&&226===i.kind||o&&167===o.kind?i:void 0,l=ms(t)===e.symbol?i:void 0;for(const n of a){const i=n.declaration&&ms(ds(n.declaration))===e.symbol?n.declaration:void 0,o=l||i||(s&&!re(M_(e),(e=>!!Od(e,t.escapedName)&&!!Mp(e,n.keyType)))?s:void 0);if(o&&!bS(r,n.type)){const e=ko(o,Ea.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,tc(t),rc(r),rc(n.keyType),rc(n.type));c&&o!==c&&pT(e,Bf(c,Ea._0_is_declared_here,tc(t))),oo.add(e)}}}function tR(e,t){const n=t.declaration,r=Rp(e,t.keyType),i=2&Zx(e)?rp(e.symbol,264):void 0,o=n&&ms(ds(n))===e.symbol?n:void 0;for(const n of r){if(n===t)continue;const r=n.declaration&&ms(ds(n.declaration))===e.symbol?n.declaration:void 0,a=o||r||(i&&!re(M_(e),(e=>!!jp(e,t.keyType)&&!!Mp(e,n.keyType)))?i:void 0);a&&!bS(t.type,n.type)&&To(a,Ea._0_index_type_1_is_not_assignable_to_2_index_type_3,rc(t.keyType),rc(t.type),rc(n.keyType),rc(n.type))}}function nR(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":To(e,t,e.escapedText)}}function rR(e){let t=!1;if(e)for(let t=0;t<e.length;t++){const r=e[t];KL(r),c(n(r,t))}function n(n,r){return()=>{n.default?(t=!0,function(e,t,n){function r(e){if(183===e.kind){const r=dg(e);if(262144&r.flags)for(let i=n;i<t.length;i++)r.symbol===ds(t[i])&&To(e,Ea.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}KI(e,r)}r(e)}(n.default,e,r)):t&&To(n,Ea.Required_type_parameters_may_not_follow_optional_type_parameters);for(let t=0;t<r;t++)e[t].symbol===n.symbol&&To(n.name,Ea.Duplicate_identifier_0,If(n.name))}}}function iR(e){if(e.declarations&&1===e.declarations.length)return;const t=Uo(e);if(!t.typeParametersChecked){t.typeParametersChecked=!0;const n=function(e){return M(e.declarations,(e=>263===e.kind||264===e.kind))}(e);if(!n||n.length<=1)return;if(!oR(n,Z_(e).localTypeParameters,kl)){const t=tc(e);for(const e of n)To(e.name,Ea.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function oR(e,t,n){const r=v(t),i=Hp(t);for(const o of e){const e=n(o),a=e.length;if(a<i||a>r)return!1;for(let n=0;n<a;n++){const r=e[n],i=t[n];if(r.name.escapedText!==i.symbol.escapedName)return!1;const o=Tl(r),a=o&&Sx(o),s=Rd(i);if(a&&s&&!fS(a,s))return!1;const c=r.default&&Sx(r.default),l=Xd(i);if(c&&l&&!fS(c,l))return!1}}return!0}function aR(e){const t=!L&&w<99&&_g(!1,e),n=w<=9,r=!z;if(t||n)for(const i of e.members){if(t&&ug(!1,i,e))return De(Bc(e))??e;if(n){if(gD(i))return i;if(mb(i)&&(l_(i)||r&&UJ(i)))return i}}}function sR(e){!function(e){const t=Cp(e);(function(e){let t=!1,n=!1;if(!xJ(e)&&e.heritageClauses)for(const r of e.heritageClauses){if(96===r.token){if(t)return $J(r,Ea.extends_clause_already_seen);if(n)return $J(r,Ea.extends_clause_must_precede_implements_clause);if(r.types.length>1)return $J(r.types[1],Ea.Classes_can_only_extend_a_single_class);t=!0}else{if(Sn.assert(119===r.token),n)return $J(r,Ea.implements_clause_already_seen);n=!0}DJ(r)}})(e)||TJ(e.typeParameters,t)}(e),Bj(e),cM(e,e.name),rR(kl(e)),yj(e);const t=ds(e),n=Z_(t),r=Fu(n),i=n_(t);iR(t),hj(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(176===o.kind)for(const e of o.parameters)dc(e,o)&&!R_(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=mb(o),a=o.name;if(!a)continue;const s=$N(a),c=s&&e?16:0,l=s?r:e?n:t,_=a&&tz(a);if(_)switch(o.kind){case 177:i(l,a,_,1|c);break;case 178:i(l,a,_,2|c);break;case 172:i(l,a,_,3|c);break;case 174:i(l,a,_,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))To(t,Ea.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Yp(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&To(t,Ea.Duplicate_identifier_0,Yp(t)):i&r&-17?To(t,Ea.Duplicate_identifier_0,Yp(t)):e.set(n,i|r)}else e.set(n,r)}}(e);!!(33554432&e.flags)||function(e){for(const t of e.members){const n=t.name;if(mb(t)&&n){const t=tz(n);switch(t){case"name":case"length":case"caller":case"arguments":if(R)break;case"prototype":To(n,Ea.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,gc(ds(e)))}}}}(e);const o=_y(e);if(o){b(o.typeArguments,qR),w<2&&vJ(o.parent,1);const t=uy(e);t&&t!==o&&$L(t.expression);const a=M_(n);a.length&&c((()=>{const t=a[0],s=I_(n),c=ep(s);if(function(e,t){const n=Sp(e,1);if(n.length){const r=n[0].declaration;if(r&&pb(r,2)){rB(t,Yx(e.symbol))||To(t,Ea.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Wa(e.symbol))}}}(c,o),qR(o.expression),re(o.typeArguments)){b(o.typeArguments,qR);for(const e of E_(c,o.typeArguments,o))if(!cj(o,e.typeParameters))break}const l=Fu(t,n.thisType);if(TS(r,l,void 0)?TS(i,pS(c),e.name||e,Ea.Class_static_side_0_incorrectly_extends_base_class_static_side_1):_R(e,r,l,Ea.Class_0_incorrectly_extends_base_class_1),8650752&s.flags)if(S_(i)){Sp(s,1).some((e=>4&e.flags))&&!fb(e,64)&&To(e.name||e,Ea.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}else To(e.name||e,Ea.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);if(!(c.symbol&&32&c.symbol.flags||8650752&s.flags)){b(A_(c,o.typeArguments,o),(e=>!JI(e.declaration)&&!fS(of(e),t)))&&To(o.expression,Ea.Base_constructors_must_all_have_the_same_return_type)}!function(e,t){var n,r,i,o;const a=jd(t);let s;e:for(const c of a){const a=uR(c);if(4194304&a.flags)continue;const l=Od(e,a.escapedName);if(!l)continue;const _=uR(l),u=zx(a);if(Sn.assert(!!_,"derived should point to something, even if it is the base class' declaration."),_===a){const n=Yx(e.symbol);if(64&u&&(!n||!fb(n,64))){for(const n of M_(e)){if(n===t)continue;const e=Od(n,a.escapedName),r=e&&uR(e);if(r&&r!==a)continue e}s||(s=To(n,Ea.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,rc(e),rc(t))),231===n.kind?pT(s,Bf(c.valueDeclaration??(c.declarations&&Pe(c.declarations))??n,Ea.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,tc(c),rc(t))):pT(s,Bf(c.valueDeclaration??(c.declarations&&Pe(c.declarations))??n,Ea.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,rc(e),tc(c),rc(t)))}}else{const s=zx(_);if(2&u||2&s)continue;let c;const l=98308&a.flags,d=98308&_.flags;if(l&&d){if((6&Jx(a)?null==(n=a.declarations)?void 0:n.some((e=>dR(e,u))):null==(r=a.declarations)?void 0:r.every((e=>dR(e,u))))||262144&Jx(a)||_.valueDeclaration&&pF(_.valueDeclaration))continue;const c=4!==l&&4===d;if(c||4===l&&4!==d){const n=c?Ea._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:Ea._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;To(Mc(_.valueDeclaration)||_.valueDeclaration,n,tc(a),rc(t),rc(e))}else if(R){const n=null==(i=_.declarations)?void 0:i.find((e=>172===e.kind&&!e.initializer));if(n&&!(33554432&_.flags)&&!(64&u)&&!(64&s)&&!(null==(o=_.declarations)?void 0:o.some((e=>!!(33554432&e.flags))))){const r=ks(Yx(e.symbol)),i=n.name;if(n.exclamationToken||!r||!HN(i)||!H||!fR(i,e,r)){const e=Ea.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;To(Mc(_.valueDeclaration)||_.valueDeclaration,e,tc(a),rc(t))}}}continue}if(GE(a)){if(GE(_)||4&_.flags)continue;Sn.assert(!!(98304&_.flags)),c=Ea.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&a.flags?Ea.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Ea.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;To(Mc(_.valueDeclaration)||_.valueDeclaration,c,rc(t),tc(a),rc(e))}}}(n,t)}))}!function(e,t,n,r){const i=_y(e),o=i&&M_(t),a=(null==o?void 0:o.length)?Fu(Pe(o),t.thisType):void 0,s=I_(t);for(const i of e.members)vb(i)||(hD(i)&&b(i.parameters,(o=>{dc(o,i)&&cR(e,r,s,a,t,n,o,!0)})),cR(e,r,s,a,t,n,i,!1))}(e,n,r,i);const a=dy(e);if(a)for(const e of a)Kb(e.expression)&&!Pl(e.expression)||To(e.expression,Ea.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),_j(e),c(s(e));function s(t){return()=>{const i=lp(Sx(t));if(!Uc(i))if(z_(i)){const t=i.symbol&&32&i.symbol.flags?Ea.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Ea.Class_0_incorrectly_implements_interface_1,o=Fu(i,n.thisType);TS(r,o,void 0)||_R(e,r,o,t)}else To(t,Ea.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}c((()=>{ZM(n,t),ZM(i,t,!0),ej(e),function(e){if(!H||!X||33554432&e.flags)return;const t=ks(e);for(const n of e.members)if(!(128&wb(n))&&!mb(n)&&pR(n)){const e=n.name;if(HN(e)||$N(e)||cD(e)){const r=n_(ds(n));3&r.flags||ZS(r)||t&&fR(e,r,t)||To(n.name,Ea.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,If(e))}}}(e)}))}function cR(e,t,n,r,i,o,a,s,c=!0){const l=a.name&&cB(a.name)||cB(a);return l?lR(e,t,n,r,i,o,hb(a),yb(a),mb(a),s,Pc(l),c?a:void 0):0}function lR(e,t,n,r,i,o,a,s,c,l,_,u){const d=Tg(e),p=!!(33554432&e.flags);if(r&&(a||C.noImplicitOverride)){const e=wc(_),i=c?n:r,f=bp(c?t:o,e),m=bp(i,e),g=rc(r);if(f&&!m&&a){if(u){const e=DA(_,i);e?To(u,d?Ea.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:Ea.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,g,tc(e)):To(u,d?Ea.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:Ea.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,g)}return 2}if(f&&(null==m?void 0:m.declarations)&&C.noImplicitOverride&&!p){const e=re(m.declarations,yb);if(a)return 0;if(!e){if(u){To(u,l?d?Ea.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Ea.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?Ea.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:Ea.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,g)}return 1}if(s&&e)return u&&To(u,Ea.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(a){if(u){const e=rc(i);To(u,d?Ea.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:Ea.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function _R(e,t,n,r){let i=!1;for(const r of e.members){if(mb(r))continue;const e=r.name&&cB(r.name)||cB(r);if(e){const o=bp(t,e.escapedName),a=bp(n,e.escapedName);if(o&&a){const s=()=>LS(void 0,Ea.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,tc(e),rc(t),rc(n));TS(n_(o),n_(a),r.name||r,void 0,s)||(i=!0)}}}i||TS(t,n,e.name||e,r)}function uR(e){return 1&Jx(e)?e.links.target:e}function dR(e,t){return 64&t&&(!pD(e)||!e.initializer)||ZF(e.parent)}function pR(e){return 172===e.kind&&!yb(e)&&!e.exclamationToken&&!e.initializer}function fR(e,t,n){const r=cD(e)?AC.createElementAccessExpression(AC.createThis(),e.expression):AC.createPropertyAccessExpression(AC.createThis(),e);AT(r.expression,r),AT(r,n),r.flowNode=n.returnFlowNode;return!ZS(QN(r,t,dC(t)))}function mR(e){xJ(e)||function(e){let t=!1;if(e.heritageClauses)for(const n of e.heritageClauses){if(96!==n.token)return Sn.assert(119===n.token),$J(n,Ea.Interface_declaration_cannot_have_implements_clause);if(t)return $J(n,Ea.extends_clause_already_seen);t=!0,DJ(n)}}(e),rR(e.typeParameters),c((()=>{nR(e.name,Ea.Interface_name_cannot_be_0),yj(e);const t=ds(e);iR(t);const n=rp(t,264);if(e===n){const n=Z_(t),r=Fu(n);if(function(e,t){const n=M_(e);if(n.length<2)return!0;const r=new Map;b(gu(e).declaredProperties,(t=>{r.set(t.escapedName,{prop:t,containingType:e})}));let i=!0;for(const o of n){const n=jd(Fu(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&0===Vk(n.prop,a,mS)){i=!1;const r=rc(n.containingType),s=rc(o);let c=LS(void 0,Ea.Named_property_0_of_types_1_and_2_are_not_identical,tc(a),r,s);c=LS(c,Ea.Interface_0_cannot_simultaneously_extend_types_1_and_2,rc(e),r,s),oo.add(qf(Cp(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of M_(n))TS(r,Fu(t,n.thisType),e.name,Ea.Interface_0_incorrectly_extends_interface_1);ZM(n,t)}}ZL(e)})),b(fy(e),(e=>{Kb(e.expression)&&!Pl(e.expression)||To(e.expression,Ea.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),_j(e)})),b(e.members,qR),c((()=>{ej(e),qj(e)}))}function hR(e){const t=Wo(e);if(!(1024&t.flags)){t.flags|=1024;let n=0;for(const t of e.members){const e=yR(t,n);Wo(t).enumMemberValue=e,n="number"==typeof e?e+1:void 0}}}function yR(e,t){if(Lf(e.name))To(e.name,Ea.Computed_property_names_are_not_allowed_in_enums);else{const t=Mf(e.name);HT(t)&&!zT(t)&&To(e.name,Ea.An_enum_member_cannot_have_a_numeric_name)}return e.initializer?function(e){const t=em(e.parent),n=e.initializer,r=vR(n,e);void 0!==r?t&&"number"==typeof r&&!isFinite(r)&&To(n,isNaN(r)?Ea.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Ea.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):t?To(n,Ea.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?To(n,Ea.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):TS($L(n),Ut,n,Ea.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values);return r}(e):33554432&e.parent.flags&&!em(e.parent)?void 0:void 0!==t?t:void To(e.name,Ea.Enum_member_must_have_initializer)}function vR(e,t){switch(e.kind){case 224:const n=vR(e.operand,t);if("number"==typeof n)switch(e.operator){case 40:return n;case 41:return-n;case 55:return~n}break;case 226:const r=vR(e.left,t),i=vR(e.right,t);if("number"==typeof r&&"number"==typeof i)switch(e.operatorToken.kind){case 52:return r|i;case 51:return r&i;case 49:return r>>i;case 50:return r>>>i;case 48:return r<<i;case 53:return r^i;case 42:return r*i;case 44:return r/i;case 40:return r+i;case 41:return r-i;case 45:return r%i;case 43:return r**i}else if(!("string"!=typeof r&&"number"!=typeof r||"string"!=typeof i&&"number"!=typeof i||40!==e.operatorToken.kind))return""+r+i;break;case 11:case 15:return e.text;case 228:return xR(e,t);case 9:return YJ(e),+e.text;case 217:return vR(e.expression,t);case 80:{const t=e;if(zT(t.escapedText)&&Ha(t,111551,!0)===Wg(t.escapedText,111551,void 0))return+t.escapedText}case 211:if(Kb(e)){const n=Ha(e,111551,!0);if(n){if(8&n.flags)return t?bR(e,n,t):nJ(n.valueDeclaration);if(tD(n)){const e=n.valueDeclaration;if(e&&GF(e)&&!e.type&&e.initializer&&(!t||e!==t&&Qo(e,t)))return vR(e.initializer,e)}}}break;case 212:const o=e.expression;if(Kb(o)&&Qu(e.argumentExpression)){const n=Ha(o,111551,!0);if(n&&384&n.flags){const r=wc(e.argumentExpression.text),i=n.exports.get(r);if(i)return t?bR(e,i,t):nJ(i.valueDeclaration)}}}}function bR(e,t,n){const r=t.valueDeclaration;if(r&&r!==n)return Qo(r,n)?nJ(r):(To(e,Ea.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);To(e,Ea.Property_0_is_used_before_being_assigned,tc(t))}function xR(e,t){let n=e.head.text;for(const r of e.templateSpans){const e=vR(r.expression,t);if(void 0===e)return;n+=e,n+=r.literal.text}return n}function SR(e){c((()=>function(e){xJ(e),cM(e,e.name),yj(e),e.members.forEach(kR),hR(e);const t=ds(e),n=rp(t,e.kind);if(e===n){if(t.declarations&&t.declarations.length>1){const n=em(e);b(t.declarations,(e=>{tP(e)&&em(e)!==n&&To(Mc(e),Ea.Enum_declarations_must_all_be_const_or_non_const)}))}let n=!1;b(t.declarations,(e=>{if(266!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?To(r.name,Ea.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)}))}}(e)))}function kR(e){$N(e.name)&&To(e,Ea.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&$L(e.initializer)}function TR(e){e.body&&(qR(e.body),mf(e)||qj(e)),c((function(){var t,n;const r=mf(e),i=33554432&e.flags;r&&!i&&To(e.name,Ea.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const o=lf(e),a=o?Ea.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Ea.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(LR(e,a))return;xJ(e)||i||11!==e.name.kind||GJ(e.name,Ea.Only_ambient_modules_can_use_quoted_names);HN(e.name)&&cM(e,e.name);yj(e);const s=ds(e);if(512&s.flags&&!i&&AB(e,uk(C))){if(YS(C)&&!Cp(e).externalModuleIndicator&&To(e.name,Ea.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,we),(null==(t=s.declarations)?void 0:t.length)>1){const t=function(e){const t=e.declarations;if(t)for(const e of t)if((263===e.kind||262===e.kind&&Op(e.body))&&!(33554432&e.flags))return e}(s);t&&(Cp(e)!==Cp(t)?To(e.name,Ea.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos<t.pos&&To(e.name,Ea.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const n=rp(s,263);n&&function(e,t){const n=Ef(e),r=Ef(t);return Go(n)?Go(r):!Go(r)&&n===r}(e,n)&&(Wo(e).flags|=2048)}if(C.verbatimModuleSyntax&&312===e.parent.kind&&(1===A||1===e.parent.impliedNodeFormat)){const t=null==(n=e.modifiers)?void 0:n.find((e=>95===e.kind));t&&To(t,Ea.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(o)if(gf(e)){if((r||33554432&ds(e).flags)&&e.body)for(const t of e.body.statements)wR(t,r)}else Go(e.parent)?r?To(e.name,Ea.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Vs(Ly(e.name))&&To(e.name,Ea.Ambient_module_declaration_cannot_specify_relative_module_name):To(e.name,r?Ea.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Ea.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}function wR(e,t){switch(e.kind){case 243:for(const n of e.declarationList.declarations)wR(n,t);break;case 277:case 278:$J(e,Ea.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:$J(e,Ea.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const n=e.name;if(R_(n)){for(const e of n.elements)wR(e,t);break}case 263:case 266:case 262:case 264:case 267:case 265:if(t)return}}function NR(e){const t=fh(e);if(!t||Ip(t))return!1;if(!FN(t))return To(t,Ea.String_literal_expected),!1;const n=268===e.parent.kind&&lf(e.parent.parent);if(312!==e.parent.kind&&!n)return To(t,278===e.kind?Ea.Export_declarations_are_not_permitted_in_a_namespace:Ea.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&Vs(t.text)&&!uc(e))return To(e,Ea.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!aP(e)&&e.attributes){const t=118===e.attributes.token?Ea.Import_attribute_values_must_be_string_literal_expressions:Ea.Import_assertion_values_must_be_string_literal_expressions;let n=!1;for(const r of e.attributes.elements)FN(r.value)||(n=!0,To(r.value,t));return!n}return!0}function DR(e){var t,n,r,i;let o=ds(e);const a=Ma(o);if(a!==yt){if(o=us(o.exportSymbol||o),Tg(e)&&!(111551&a.flags)&&!r_(e)){const s=e_(e)?e.propertyName||e.name:Lc(e)?e.name:e;if(Sn.assert(280!==e.kind),281===e.kind){const i=To(s,Ea.Types_cannot_appear_in_export_declarations_in_JavaScript_files),o=null==(n=null==(t=Cp(e).symbol)?void 0:t.exports)?void 0:n.get((e.propertyName||e.name).escapedText);if(o===a){const e=null==(r=o.declarations)?void 0:r.find(Bu);e&&pT(i,Bf(e,Ea._0_is_automatically_exported_here,Nc(o.escapedName)))}}else{Sn.assert(260!==e.kind);const t=kc(e,un(sP,aP)),n=(t&&(null==(i=uh(t))?void 0:i.text))??"...",r=Nc(HN(s)?s.escapedText:o.escapedName);To(s,Ea._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,r,`import("${n}").${r}`)}return}const s=Ra(a);if(s&((1160127&o.flags?111551:0)|(788968&o.flags?788968:0)|(1920&o.flags?1920:0))){To(e,281===e.kind?Ea.Export_declaration_conflicts_with_exported_declaration_of_0:Ea.Import_declaration_conflicts_with_local_declaration_of_0,tc(o))}if(YS(C)&&!r_(e)&&!(33554432&e.flags)){const t=za(o),n=!(111551&s);if(n||t)switch(e.kind){case 273:case 276:case 271:if(C.preserveValueImports||C.verbatimModuleSyntax){Sn.assertIsDefined(e.name,"An ImportClause with a symbol should have a name");const r=C.verbatimModuleSyntax&&xg(e)?Ea.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:n?C.verbatimModuleSyntax?Ea._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Ea._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:C.verbatimModuleSyntax?Ea._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:Ea._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,i=Dc(276===e.kind&&e.propertyName||e.name);ra(To(e,r,i),n?void 0:t,i)}n&&271===e.kind&&pb(e,32)&&To(e,Ea.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,we);break;case 281:if(C.verbatimModuleSyntax||Cp(t)!==Cp(e)){const r=Dc(e.propertyName||e.name);ra(n?To(e,Ea.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,we):To(e,Ea._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,r,we),n?void 0:t,r);break}}!C.verbatimModuleSyntax||271===e.kind||Tg(e)||1!==A&&1!==Cp(e).impliedNodeFormat||To(e,Ea.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(hP(e)){const t=PR(o,e);Fo(t)&&t.declarations&&Eo(e,t.declarations,t.escapedName)}}}function PR(e,t){if(!(2097152&e.flags)||Fo(e)||!ma(e))return e;const n=Ma(e);if(n===yt)return n;for(;2097152&e.flags;){const r=tE(e);if(!r)break;if(r===n)break;if(r.declarations&&v(r.declarations)){if(Fo(r)){Eo(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function ER(e){cM(e,e.name),DR(e),276===e.kind&&"default"===Dc(e.propertyName||e.name)&&rk(C)&&4!==A&&(A<5||1===Cp(e).impliedNodeFormat)&&vJ(e,131072)}function AR(e){var t;const n=e.attributes;if(n){const r=wV(e),i=DV(n,r?GJ:void 0),o=118===e.attributes.token;if(r&&i)return;if(99!==(199===A&&e.moduleSpecifier&&Sa(e.moduleSpecifier))&&99!==A){return GJ(n,o?199===A?Ea.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Ea.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:199===A?Ea.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:Ea.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext)}if(sP(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly)return GJ(n,o?Ea.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:Ea.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(i)return GJ(n,Ea.resolution_mode_can_only_be_set_for_type_only_imports)}}function IR(e){if(!LR(e,Tg(e)?Ea.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Ea.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!xJ(e)&&ub(e)&&$J(e,Ea.An_import_declaration_cannot_have_modifiers),NR(e)){const t=e.importClause;if(t&&!function(e){var t;if(e.isTypeOnly&&e.name&&e.namedBindings)return GJ(e,Ea.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(e.isTypeOnly&&275===(null==(t=e.namedBindings)?void 0:t.kind))return ZJ(e.namedBindings);return!1}(t)&&(t.name&&ER(t),t.namedBindings))if(274===t.namedBindings.kind)ER(t.namedBindings),4!==A&&(A<5||1===Cp(e).impliedNodeFormat)&&rk(C)&&vJ(e,65536);else{Ka(e,e.moduleSpecifier)&&b(t.namedBindings.elements,ER)}}AR(e)}}function OR(e){if(!LR(e,Tg(e)?Ea.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:Ea.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!xJ(e)&&db(e)&&$J(e,Ea.An_export_declaration_cannot_have_modifiers),e.moduleSpecifier&&e.exportClause&&bP(e.exportClause)&&v(e.exportClause.elements)&&0===w&&vJ(e,4194304),function(e){var t;if(e.isTypeOnly&&279===(null==(t=e.exportClause)?void 0:t.kind))return ZJ(e.exportClause)}(e),!e.moduleSpecifier||NR(e))if(e.exportClause&&!mP(e.exportClause)){b(e.exportClause.elements,BR);const t=268===e.parent.kind&&lf(e.parent.parent),n=!t&&268===e.parent.kind&&!e.moduleSpecifier&&33554432&e.flags;312===e.parent.kind||t||n||To(e,Ea.Export_declarations_are_not_permitted_in_a_namespace)}else{const t=Ka(e,e.moduleSpecifier);t&&ns(t)?To(e.moduleSpecifier,Ea.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,tc(t)):e.exportClause&&DR(e.exportClause),4!==A&&(A<5||1===Cp(e).impliedNodeFormat)&&(e.exportClause?rk(C)&&vJ(e,65536):vJ(e,32768))}AR(e)}}function LR(e,t){const n=312===e.parent.kind||268===e.parent.kind||267===e.parent.kind;return n||$J(e,t),!n}function MR(e){return sP(e)&&e.importClause&&!e.importClause.isTypeOnly&&hh(e.importClause,(e=>!!ds(e).isReferenced))&&!KB(e.importClause,!0)&&!function(e){return hh(e,(e=>!!Uo(ds(e)).constEnumReferenced))}(e.importClause)}function RR(e){return aP(e)&&CP(e.moduleReference)&&!e.isTypeOnly&&ds(e).isReferenced&&!KB(e,!1)&&!Uo(ds(e)).constEnumReferenced}function BR(e){if(DR(e),_k(C)&&bc(e.propertyName||e.name,!0),e.parent.parent.moduleSpecifier)rk(C)&&4!==A&&(A<5||1===Cp(e).impliedNodeFormat)&&"default"===Dc(e.propertyName||e.name)&&vJ(e,131072);else{const t=e.propertyName||e.name,n=ta(t,t.escapedText,2998271,void 0,void 0,!0);if(n&&(n===fe||n===me||n.declarations&&Go(Oc(n.declarations[0]))))To(t,Ea.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Dc(t));else{e.isTypeOnly||e.parent.parent.isTypeOnly||qa(e);const t=n&&(2097152&n.flags?Ma(n):n);(!t||111551&Ra(t))&&DL(e.propertyName||e.name)}}}function JR(e){const t=ds(e),n=Uo(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return dp(e.exports,((e,t)=>"export="!==t))}(t)){const t=ma(e)||e.valueDeclaration;!t||uc(t)||Tg(t)||To(t,Ea.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=ss(t);r&&r.forEach((({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=j(e,_n(kB,dn(ZF)));if(!(524288&t&&r<=2)&&r>1&&!zR(e))for(const t of e)LB(t)&&oo.add(Bf(t,Ea.Cannot_redeclare_exported_variable_0,Nc(n)))})),n.exportsChecked=!0}}function zR(e){return e&&e.length>1&&e.every((e=>Tg(e)&&sS(e)&&(Hg(e.expression)||Kg(e.expression))))}function qR(e){if(e){const n=o;o=e,g=0,function(e){Nh(e)&&b(e.jsDoc,(({comment:t,tags:n})=>{UR(t),b(n,(t=>{UR(t.comment),Tg(e)&&qR(t)}))}));const n=e.kind;if(t)switch(n){case 267:case 263:case 264:case 262:t.throwIfCancellationRequested()}n>=243&&n<=259&&wh(e)&&e.flowNode&&!VN(e.flowNode)&&wo(!1===C.allowUnreachableCode,e,Ea.Unreachable_code_detected);switch(n){case 168:return KL(e);case 169:return GL(e);case 172:return tj(e);case 171:return function(e){return $N(e.name)&&To(e,Ea.Private_identifiers_are_not_allowed_outside_class_bodies),tj(e)}(e);case 185:case 184:case 179:case 180:case 181:return QL(e);case 174:case 173:return function(e){RJ(e)||PJ(e.name),mD(e)&&e.asteriskToken&&HN(e.name)&&"constructor"===Dc(e.name)&&To(e.name,Ea.Class_constructor_may_not_be_a_generator),zj(e),fb(e,64)&&174===e.kind&&e.body&&To(e,Ea.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,If(e.name)),$N(e.name)&&!Um(e)&&To(e,Ea.Private_identifiers_are_not_allowed_outside_class_bodies),nj(e)}(e);case 175:return function(e){xJ(e),KI(e,qR)}(e);case 176:return rj(e);case 177:case 178:return oj(e);case 183:return _j(e);case 182:return function(e){const t=function(e){switch(e.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void To(e,Ea.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=Kp(t),r=nf(n);if(!r)return;qR(e.type);const{parameterName:i}=e;if(0===r.kind||2===r.kind)vx(i);else if(r.parameterIndex>=0){if(RB(n)&&r.parameterIndex===n.parameters.length-1)To(i,Ea.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>LS(void 0,Ea.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);TS(r.type,n_(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if(R_(e)&&XL(e,i,r.parameterName)){n=!0;break}n||To(e.parameterName,Ea.Cannot_find_parameter_0,r.parameterName)}}(e);case 186:return function(e){wg(e)}(e);case 187:return function(e){b(e.members,qR),c((function(){const t=jb(e);ZM(t,t.symbol),ej(e),ZL(e)}))}(e);case 188:return function(e){qR(e.elementType)}(e);case 189:return function(e){const t=e.elements;let n=!1,r=!1;for(const e of t){const t=Jh(e);if(8&t){const t=Sx(e.type);if(!Zk(t)){To(e,Ea.A_rest_element_type_must_be_an_array_type);break}(Kk(t)||LT(t)&&4&t.target.combinedFlags)&&(r=!0)}else if(4&t){if(r){GJ(e,Ea.A_rest_element_cannot_follow_another_rest_element);break}r=!0}else if(2&t){if(r){GJ(e,Ea.An_optional_element_cannot_follow_a_rest_element);break}n=!0}else if(n){GJ(e,Ea.A_required_element_cannot_follow_an_optional_element);break}}b(e.elements,qR),Sx(e)}(e);case 192:case 193:return function(e){b(e.types,qR),Sx(e)}(e);case 196:case 190:case 191:return qR(e.type);case 197:return function(e){vx(e)}(e);case 198:return fj(e);case 194:return function(e){KI(e,qR)}(e);case 195:return function(e){kc(e,(e=>e.parent&&194===e.parent.kind&&e.parent.extendsType===e))||GJ(e,Ea.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),qR(e.typeParameter);const t=ds(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=Uo(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=G_(t),r=ip(t,168);if(!oR(r,[n],(e=>[e]))){const e=tc(t);for(const t of r)To(t.name,Ea.All_declarations_of_0_must_have_identical_constraints,e)}}}qj(e)}(e);case 203:return function(e){for(const t of e.templateSpans)qR(t.type),TS(Sx(t.type),xn,t.type);Sx(e)}(e);case 205:return function(e){qR(e.argument),e.attributes&&DV(e.attributes,GJ),uj(e)}(e);case 202:return function(e){e.dotDotDotToken&&e.questionToken&&GJ(e,Ea.A_tuple_member_cannot_be_both_optional_and_rest),190===e.type.kind&&GJ(e.type,Ea.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),191===e.type.kind&&GJ(e.type,Ea.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),qR(e.type),Sx(e)}(e);case 335:return function(e){const t=Lh(e);if(!t||!YF(t)&&!yF(t))return void To(t,Ea.JSDoc_0_is_not_attached_to_a_class,Dc(e.tagName));const n=hl(t).filter(pE);Sn.assert(n.length>0),n.length>1&&To(n[1],Ea.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=Jj(e.class.expression),i=uy(t);if(i){const t=Jj(i.expression);t&&r.escapedText!==t.escapedText&&To(r,Ea.JSDoc_0_1_does_not_match_the_extends_2_clause,Dc(e.tagName),Dc(r),Dc(t))}}(e);case 336:return function(e){const t=Lh(e);t&&(YF(t)||yF(t))||To(t,Ea.JSDoc_0_is_not_attached_to_a_class,Dc(e.tagName))}(e);case 353:case 345:case 347:return function(e){e.typeExpression||To(e.name,Ea.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&nR(e.name,Ea.Type_alias_name_cannot_be_0),qR(e.typeExpression),rR(kl(e))}(e);case 352:return function(e){qR(e.constraint);for(const t of e.typeParameters)qR(t)}(e);case 351:return function(e){qR(e.typeExpression)}(e);case 331:case 332:case 333:return function(e){e.name&&sB(e.name,!0)}(e);case 348:case 355:return function(e){qR(e.typeExpression)}(e);case 324:!function(e){c((function(){e.type||vh(e)||RC(e,kt)})),QL(e)}(e);case 322:case 321:case 319:case 320:case 329:return VR(e),void KI(e,qR);case 325:return void function(e){VR(e),qR(e.type);const{parent:t}=e;if(_D(t)&&sE(t.parent))return void(Ie(t.parent.parameters)!==t&&To(e,Ea.A_rest_parameter_must_be_last_in_a_parameter_list));XP(t)||To(e,Ea.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!wE(n))return void To(e,Ea.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Ah(n);if(!r)return;const i=Oh(n);i&&Ie(i.parameters).symbol===r||To(e,Ea.A_rest_parameter_must_be_last_in_a_parameter_list)}(e);case 316:return qR(e.type);case 340:case 342:case 341:return function(e){const t=jh(e);t&&l_(t)&&To(e,Ea.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(e);case 357:return function(e){qR(e.typeExpression);const t=Lh(e);if(t){const e=bl(t,LE);if(v(e)>1)for(let t=1;t<v(e);t++){const n=e[t].tagName;To(n,Ea._0_tag_already_specified,Dc(n))}}}(e);case 350:return function(e){const t=Lh(e);t&&aF(t)&&To(e.tagName,Ea.An_arrow_function_cannot_have_a_this_parameter)}(e);case 199:return function(e){qR(e.objectType),qR(e.indexType),dj(sb(e),e)}(e);case 200:return pj(e);case 262:return function(e){c((function(){zj(e),EJ(e),cM(e,e.name)}))}(e);case 241:case 268:return nM(e);case 243:return hM(e);case 244:return function(e){QJ(e),$L(e.expression)}(e);case 245:return function(e){QJ(e);const t=bM(e.expression);yM(e.expression,t,e.thenStatement),qR(e.thenStatement),242===e.thenStatement.kind&&To(e.thenStatement,Ea.The_body_of_an_if_statement_cannot_be_the_empty_statement),qR(e.elseStatement)}(e);case 246:return function(e){QJ(e),qR(e.statement),bM(e.expression)}(e);case 247:return function(e){QJ(e),bM(e.expression),qR(e.statement)}(e);case 248:return function(e){QJ(e)||e.initializer&&261===e.initializer.kind&&VJ(e.initializer),e.initializer&&(261===e.initializer.kind?gM(e.initializer):$L(e.initializer)),e.condition&&bM(e.condition),e.incrementor&&$L(e.incrementor),qR(e.statement),e.locals&&qj(e)}(e);case 249:return xM(e);case 250:return function(e){OJ(e);const t=Wm(e);e.awaitModifier?t&&gD(t)?GJ(e.awaitModifier,Ea.for_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&Ny(t))&&w<99&&vJ(e,16384):C.downlevelIteration&&w<2&&vJ(e,256);if(261===e.initializer.kind)gM(e.initializer);else{const t=e.initializer,n=SM(e);if(209===t.kind||210===t.kind)bL(t,n||Nt);else{const r=$L(t);aL(t,Ea.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,Ea.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),n&&CS(n,r,t,e.expression)}}qR(e.statement),e.locals&&qj(e)}(e);case 251:case 252:return GM(e);case 253:return function(e){if(QJ(e))return;const t=Wm(e);if(t&&gD(t))return void $J(e,Ea.A_return_statement_cannot_be_used_inside_a_class_static_block);if(!t)return void $J(e,Ea.A_return_statement_can_only_be_used_within_a_function_body);const n=of(Kp(t)),r=Ny(t);if(H||e.expression||131072&n.flags){const i=e.expression?DL(e.expression):Lt;if(178===t.kind)e.expression&&To(e,Ea.Setters_cannot_return_a_value);else if(176===t.kind)e.expression&&!CS(i,n,e,e.expression)&&To(e,Ea.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(af(t)){const t=XM(n,r)??n,o=2&r?xj(i,!1,e,Ea.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i;t&&CS(o,t,e,e.expression)}}else 176!==t.kind&&C.noImplicitReturns&&!QM(t,n)&&To(e,Ea.Not_all_code_paths_return_a_value)}(e);case 254:return function(e){QJ(e)||65536&e.flags&&$J(e,Ea.with_statements_are_not_allowed_in_an_async_function_block),$L(e.expression);const t=Cp(e);if(!HJ(t)){const n=Gf(t,e.pos).start;KJ(t,n,e.statement.pos-n,Ea.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(e);case 255:return function(e){let t;QJ(e);let n=!1;const r=$L(e.expression);b(e.caseBlock.clauses,(e=>{var i;297!==e.kind||n||(void 0===t?t=e:(GJ(e,Ea.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),296===e.kind&&c((i=e,()=>{const e=$L(i.expression);SL(r,e)||JS(e,r,i.expression,void 0)})),b(e.statements,qR),C.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&VN(e.fallthroughFlowNode)&&To(e,Ea.Fallthrough_case_in_switch)})),e.caseBlock.locals&&qj(e.caseBlock)}(e);case 256:return function(e){QJ(e)||kc(e.parent,(t=>y_(t)?"quit":256===t.kind&&t.label.escapedText===e.label.escapedText&&(GJ(e.label,Ea.Duplicate_label_0,Yp(e.label)),!0))),qR(e.statement)}(e);case 257:return YM(e);case 258:return function(e){QJ(e),nM(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;uM(e);const n=Yv(e);if(n){const e=Sx(n);!e||3&e.flags||$J(n,Ea.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)$J(e.initializer,Ea.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&pp(t.locals,(t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&0!=(2&n.flags)&&GJ(n.valueDeclaration,Ea.Cannot_redeclare_identifier_0_in_catch_clause,Nc(t))}))}}nM(t.block)}e.finallyBlock&&nM(e.finallyBlock)}(e);case 260:return fM(e);case 208:return mM(e);case 263:return function(e){const t=D(e.modifiers,uD);L&&t&&re(e.members,(e=>gb(e)&&l_(e)))&&GJ(t,Ea.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||fb(e,2048)||$J(e,Ea.A_class_declaration_without_the_default_modifier_must_have_a_name),sR(e),b(e.members,qR),qj(e)}(e);case 264:return mR(e);case 265:return function(e){xJ(e),nR(e.name,Ea.Type_alias_name_cannot_be_0),yj(e),rR(e.typeParameters),141===e.type.kind?TB.has(e.name.escapedText)&&1===v(e.typeParameters)||To(e.type,Ea.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(qR(e.type),qj(e))}(e);case 266:return SR(e);case 267:return TR(e);case 272:return IR(e);case 271:return function(e){if(!LR(e,Tg(e)?Ea.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:Ea.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(xJ(e),xg(e)||NR(e)))if(ER(e),fb(e,32)&&qa(e),283!==e.moduleReference.kind){const t=Ma(ds(e));if(t!==yt){const n=Ra(t);if(111551&n){const t=Gb(e.moduleReference);1920&Ha(t,112575).flags||To(t,Ea.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,If(t))}788968&n&&nR(e.name,Ea.Import_name_cannot_be_0)}e.isTypeOnly&&GJ(e,Ea.An_import_alias_cannot_use_import_type)}else!(A>=5&&void 0===Cp(e).impliedNodeFormat)||e.isTypeOnly||33554432&e.flags||GJ(e,Ea.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(e);case 278:return OR(e);case 277:return function(e){if(LR(e,e.isExportEquals?Ea.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:Ea.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;const t=312===e.parent.kind?e.parent:e.parent.parent;if(267===t.kind&&!lf(t))return void(e.isExportEquals?To(e,Ea.An_export_assignment_cannot_be_used_in_a_namespace):To(e,Ea.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!xJ(e)&&ub(e)&&$J(e,Ea.An_export_assignment_cannot_have_modifiers);const n=Yv(e);n&&TS(DL(e.expression),Sx(n),e.expression);const r=!e.isExportEquals&&!(33554432&e.flags)&&C.verbatimModuleSyntax&&(1===A||1===Cp(e).impliedNodeFormat);if(80===e.expression.kind){const t=e.expression,n=xs(Ha(t,67108863,!0,!0,e));n?(FD(n,t),111551&Ra(n)?(DL(t),r||33554432&e.flags||!C.verbatimModuleSyntax||!za(n,111551)||To(t,e.isExportEquals?Ea.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:Ea.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,Dc(t))):r||33554432&e.flags||!C.verbatimModuleSyntax||To(t,e.isExportEquals?Ea.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:Ea.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,Dc(t))):DL(t),_k(C)&&bc(t,!0)}else DL(e.expression);r&&To(e,Ea.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),JR(t),33554432&e.flags&&!Kb(e.expression)&&GJ(e.expression,Ea.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),e.isExportEquals&&(A>=5&&(33554432&e.flags&&99===Cp(e).impliedNodeFormat||!(33554432&e.flags)&&1!==Cp(e).impliedNodeFormat)?GJ(e,Ea.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==A||33554432&e.flags||GJ(e,Ea.Export_assignment_is_not_supported_when_module_flag_is_system))}(e);case 242:case 259:return void QJ(e);case 282:(function(e){Bj(e)})(e)}}(e),o=n}}function UR(e){_t(e)&&b(e,(e=>{Yu(e)&&qR(e)}))}function VR(e){if(!Tg(e))if(oE(e)||iE(e)){const t=ts(oE(e)?54:58),n=e.postfix?Ea._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:Ea._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=Sx(e.type);GJ(e,n,t,rc(iE(e)&&r!==rn&&r!==nn?Uy(he([r,Lt],e.postfix?void 0:Jt)):r))}else GJ(e,Ea.JSDoc_types_can_only_be_used_inside_documentation_comments)}function HR(e){const t=Wo(Cp(e));1&t.flags?Sn.assert(!t.deferredNodes,"A type-checked file should have no deferred nodes."):(t.deferredNodes||(t.deferredNodes=new Set),t.deferredNodes.add(e))}function $R(e){var t,n;null==(t=Fr)||t.push(Fr.Phase.Check,"checkDeferredNode",{kind:e.kind,pos:e.pos,end:e.end,path:e.tracingPath});const r=o;switch(o=e,g=0,e.kind){case 213:case 214:case 215:case 170:case 286:$A(e);break;case 218:case 219:case 174:case 173:!function(e){Sn.assert(174!==e.kind||Am(e));const t=Ny(e),n=af(e);if(eL(e,n),e.body)if(eb(e)||of(Kp(e)),241===e.body.kind)qR(e.body);else{const r=$L(e.body),i=n&&XM(n,t);i&&CS(2==(3&t)?xj(r,!1,e.body,Ea.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r,i,e.body,e.body)}}(e);break;case 177:case 178:oj(e);break;case 231:!function(e){b(e.members,qR),qj(e)}(e);break;case 168:!function(e){var t,n;if(ZF(e.parent)||w_(e.parent)||eP(e.parent)){const r=G_(ds(e)),i=24576&Ak(r);if(i){const o=ds(e.parent);if(!eP(e.parent)||48&Zx(Z_(o))){if(8192===i||16384===i){null==(t=Fr)||t.push(Fr.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Cy(Z_(o)),id:Cy(r)});const s=Pk(o,r,16384===i?Wn:Vn),c=Pk(o,r,16384===i?Vn:Wn),l=r;a=r,TS(s,c,e,Ea.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),a=l,null==(n=Fr)||n.pop()}}else To(e,Ea.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 285:!function(e){VE(e)}(e);break;case 284:!function(e){VE(e.openingElement),mE(e.closingElement.tagName)?kE(e.closingElement):$L(e.closingElement.tagName),yE(e)}(e);break;case 216:case 234:case 217:!function(e){const{type:t}=iO(e),n=iF(e)?t:e,r=Wo(e);Sn.assertIsDefined(r.assertionExpressionType);const i=DC(xT(r.assertionExpressionType)),o=Sx(t);Uc(o)||c((()=>{const e=LC(i);SS(o,e)||JS(i,o,n,Ea.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)}))}(e);break;case 222:$L(e.expression);break;case 226:rx(e)&&$A(e)}o=r,null==(n=Fr)||n.pop()}function KR(t){var n,r;null==(n=Fr)||n.push(Fr.Phase.Check,"checkSourceFile",{path:t.path},!0),gr("beforeCheck"),function(t){const n=Wo(t);if(!(1&n.flags)){if(hT(t,C,e))return;!function(e){!!(33554432&e.flags)&&function(e){for(const t of e.statements)if((Nu(t)||243===t.kind)&&XJ(t))return!0}(e)}(t),B(Zi),B(eo),B(to),B(no),B(ro),b(t.statements,qR),qR(t.endOfFileToken),function(e){const t=Wo(e);t.deferredNodes&&t.deferredNodes.forEach($R),t.deferredNodes=void 0}(t),Yf(t)&&qj(t),c((()=>{t.isDeclarationFile||!C.noUnusedLocals&&!C.noUnusedParameters||Uj(QR(t),((e,t,n)=>{!Tp(e)&&XR(t,!!(33554432&e.flags))&&oo.add(n)})),t.isDeclarationFile||function(){var e;for(const t of ro)if(!(null==(e=ds(t))?void 0:e.isReferenced)){const e=mc(t);Sn.assert($y(e),"Only parameter declaration should be checked here");const n=Bf(t.name,Ea._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,If(t.name),If(t.propertyName));e.type||pT(n,ES(Cp(e),e.end,1,Ea.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,If(t.propertyName))),oo.add(n)}}()})),2===C.importsNotUsedAsValues&&!t.isDeclarationFile&&tO(t)&&function(e){if(Oe)for(const t of e.statements)(MR(t)||RR(t))&&To(t,Ea.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}(t),Yf(t)&&JR(t),Zi.length&&(b(Zi,iM),B(Zi)),eo.length&&(b(eo,oM),B(eo)),to.length&&(b(to,aM),B(to)),no.length&&(b(no,sM),B(no)),n.flags|=1}}(t),gr("afterCheck"),hr("Check","beforeCheck","afterCheck"),null==(r=Fr)||r.pop()}function XR(e,t){if(t)return!1;switch(e){case 0:return!!C.noUnusedLocals;case 1:return!!C.noUnusedParameters;default:return Sn.assertNever(e)}}function QR(e){return yi.get(e.path)||r}function YR(n,r){try{return t=r,function(t){if(t){ZR();const e=oo.getGlobalDiagnostics(),n=e.length;eB(t);const r=oo.getDiagnostics(t.fileName),i=oo.getGlobalDiagnostics();if(i!==e){return oe(ge(e,i,RS),r)}return 0===n&&i.length>0?oe(i,r):r}return b(e.getSourceFiles(),eB),oo.getDiagnostics()}(n)}finally{t=void 0}}function ZR(){for(const e of s)e();s=[]}function eB(e){ZR();const t=c;c=e=>e(),KR(e),c=t}function tB(e){for(;166===e.parent.kind;)e=e.parent;return 183===e.parent.kind}function nB(e,t){let n,r=Um(e);for(;r&&!(n=t(r));)r=Um(r);return n}function rB(e,t){return!!nB(e,(e=>e===t))}function iB(e){return void 0!==function(e){for(;166===e.parent.kind;)e=e.parent;return 271===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:277===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function oB(e){if(ey(e))return fs(e.parent);if(Tg(e)&&211===e.parent.kind&&e.parent===e.parent.parent.left&&!$N(e)&&!YP(e)&&!function(e){if(110===e.expression.kind){const t=$m(e,!1,!1);if(y_(t)){const e=lF(t);if(e){const t=mF(e,KF(e,void 0));return t&&!zc(t)}}}}(e.parent)){const t=function(e){switch(Gg(e.parent.parent)){case 1:case 3:return fs(e.parent);case 4:case 2:case 5:return ds(e.parent.parent)}}(e);if(t)return t}if(277===e.parent.kind&&Kb(e)){const t=Ha(e,2998271,!0);if(t&&t!==yt)return t}else if(m_(e)&&iB(e)){const t=gy(e,271);return Sn.assert(void 0!==t),Va(e,!0)}if(m_(e)){const t=function(e){let t=e.parent;for(;sD(t);)e=t,t=t.parent;if(t&&205===t.kind&&t.qualifier===e)return t}(e);if(t){Sx(t);const n=Wo(e).resolvedSymbol;return n===yt?void 0:n}}for(;nx(e);)e=e.parent;if(function(e){for(;211===e.parent.kind;)e=e.parent;return 233===e.parent.kind}(e)){let t=0;233===e.parent.kind?(t=hm(e)?788968:111551,$b(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=Kb(e)?Ha(e,t,!0):void 0;if(n)return n}if(348===e.parent.kind)return Ah(e.parent);if(168===e.parent.kind&&352===e.parent.parent.kind){Sn.assert(!Tg(e));const t=Rh(e.parent);return t&&t.symbol}if(fg(e)){if(Ip(e))return;const t=kc(e,un(Yu,QP,YP)),n=t?901119:111551;if(80===e.kind){if(pg(e)&&mE(e)){const t=kE(e.parent);return t===yt?void 0:t}const r=Ha(e,n,!0,!0,Oh(e));if(!r&&t){const t=kc(e,un(w_,ZF));if(t)return sB(e,!0,ds(t))}if(r&&t){const t=jh(e);if(t&&WP(t)&&t===r.valueDeclaration)return Ha(e,n,!0,!0,Cp(t))||r}return r}if($N(e))return yA(e);if(211===e.kind||166===e.kind){const n=Wo(e);return n.resolvedSymbol?n.resolvedSymbol:(211===e.kind?(pA(e,0),n.resolvedSymbol||(n.resolvedSymbol=aB(DL(e.expression),pv(e.name)))):fA(e,0),!n.resolvedSymbol&&t&&sD(e)?sB(e):n.resolvedSymbol)}if(YP(e))return sB(e)}else if(tB(e)){const t=Ha(e,183===e.parent.kind?788968:1920,!1,!0);return t&&t!==yt?t:jm(e)}return 182===e.parent.kind?Ha(e,1):void 0}function aB(e,t){const n=Rp(e,t);if(n.length&&e.members){const t=Ff(Ad(e).members);if(n===Lp(e))return t;if(t){const r=Uo(t),i=J(G(n,(e=>e.declaration)),PB).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(i))return r.filteredIndexSymbolCache.get(i);{const t=Ao(131072,"__index");return t.declarations=G(n,(e=>e.declaration)),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:cB(t.declarations[0].parent),r.filteredIndexSymbolCache.set(i,t),t}}}}function sB(e,t,n){if(m_(e)){const r=901119;let i=Ha(e,r,t,!0,Oh(e));if(!i&&HN(e)&&n&&(i=us(Xo(as(n),e.escapedText,r))),i)return i}const r=HN(e)?n:sB(e.left,t,n),i=HN(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&bp(n_(r),"prototype");return bp(e?n_(e):Z_(r),i)}}function cB(e,t){if($P(e))return tO(e)?us(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(67108864&e.flags)){if(jB(e)){const t=ds(n);return e_(e.parent)&&e.parent.propertyName===e?tE(t):t}if(ny(e))return ds(n.parent);if(80===e.kind){if(iB(e))return oB(e);if(208===n.kind&&206===r.kind&&e===n.propertyName){const t=bp(lB(r),e.escapedText);if(t)return t}else if(TF(n)&&n.name===e)return 105===n.keywordToken&&"target"===Dc(e)?dO(n).symbol:102===n.keywordToken&&"meta"===Dc(e)?Zg().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 211:case 166:if(!Gv(e))return oB(e);case 110:const i=$m(e,!1,!1);if(y_(i)){const e=Kp(i);if(e.thisParameter)return e.thisParameter}if(mg(e))return $L(e).symbol;case 197:return vx(e).symbol;case 108:return $L(e).symbol;case 137:const o=e.parent;return o&&176===o.kind?o.parent.symbol:void 0;case 11:case 15:if(yg(e.parent.parent)&&vg(e.parent.parent)===e||(272===e.parent.kind||278===e.parent.kind)&&e.parent.moduleSpecifier===e||Tg(e)&&100!==GS(C)&&Fg(e.parent,!1)||sm(e.parent)||UD(e.parent)&&lm(e.parent.parent)&&e.parent.parent.argument===e.parent)return Ka(e,e,t);if(eF(n)&&Xg(n)&&n.arguments[1]===e)return ds(n);case 9:const a=ZD(n)?n.argumentExpression===e?VL(n.expression):void 0:UD(n)&&zD(r)?Sx(r.objectType):void 0;return a&&bp(a,wc(e.text));case 90:case 100:case 39:case 86:return fs(e.parent);case 205:return lm(e)?cB(e.argument.literal,t):void 0;case 95:return yP(e.parent)?Sn.checkDefined(e.parent.symbol):void 0;case 102:case 105:return TF(e.parent)?uO(e.parent).symbol:void 0;case 104:if(pF(e.parent)){const t=VL(e.parent.right),n=gL(t);return(null==n?void 0:n.symbol)??t.symbol}return;case 236:return $L(e).symbol;case 295:if(pg(e)&&mE(e)){const t=kE(e.parent);return t===yt?void 0:t}default:return}}}function lB(e){if($P(e)&&!tO(e))return Nt;if(67108864&e.flags)return Nt;const t=Ub(e),n=t&&q_(ds(t.class));if(hm(e)){const t=Sx(e);return n?Fu(t,n.thisType):t}if(fg(e))return uB(e);if(n&&!t.isImplements){const e=De(M_(n));return e?Fu(e,n.thisType):Nt}if(QT(e)){return Z_(ds(e))}if(80===(r=e).kind&&QT(r.parent)&&Mc(r.parent)===r){const t=cB(e);return t?Z_(t):Nt}var r;if(GD(e))return il(e,!0,0)||Nt;if(Nu(e)){const t=ds(e);return t?n_(t):Nt}if(jB(e)){const t=cB(e);return t?n_(t):Nt}if(R_(e))return il(e.parent,!0,0)||Nt;if(iB(e)){const t=cB(e);if(t){const e=Z_(t);return Uc(e)?n_(t):e}}return TF(e.parent)&&e.parent.keywordToken===e.kind?uO(e.parent):Nt}function _B(e){if(Sn.assert(210===e.kind||209===e.kind),250===e.parent.kind){return bL(e,SM(e.parent)||Nt)}if(226===e.parent.kind){return bL(e,VL(e.parent.right)||Nt)}if(303===e.parent.kind){const t=mt(e.parent.parent,QD);return yL(t,_B(t)||Nt,ef(t.properties,e.parent))}const t=mt(e.parent,XD),n=_B(t)||Nt,r=kM(65,n,Lt,e.parent)||Nt;return vL(t,n,t.elements.indexOf(e),r)}function uB(e){return ex(e)&&(e=e.parent),dx(VL(e))}function dB(e){const t=fs(e.parent);return mb(e)?n_(t):Z_(t)}function mB(e){const t=e.name;switch(t.kind){case 80:return fx(Dc(t));case 9:case 11:return fx(t.text);case 167:const e=KP(t);return dL(e,12288)?e:qt;default:return Sn.fail("Unsupported property name.")}}function gB(e){const t=op(jd(e=ep(e))),n=Sp(e,0).length?Yn:Sp(e,1).length?Zn:void 0;return n&&b(jd(n),(e=>{t.has(e.escapedName)||t.set(e.escapedName,e)})),Es(t)}function vB(e){return 0!==Sp(e,0).length||0!==Sp(e,1).length}function xB(e){if(a_(e))return!1;const t=Cc(e,HN);if(!t)return!1;const n=t.parent;if(!n)return!1;return!((YD(n)||qP(n))&&n.name===t)&&uJ(t)===Te}function SB(e){let t=Ka(e.parent,e);if(!t||pf(t))return!0;const n=ns(t);t=Ya(t);const r=Uo(t);return void 0===r.exportsSomeValue&&(r.exportsSomeValue=n?!!(111551&t.flags):dp(ss(t),(function(e){return(e=ja(e))&&!!(111551&Ra(e))}))),r.exportsSomeValue}function DB(e,t){var n;const r=Cc(e,HN);if(r){let e=uJ(r,function(e){return Su(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=us(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=ms(e);if(i){if(512&i.flags&&312===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==Cp(r)?void 0:e}return kc(r.parent,(e=>Su(e)&&ds(e)===i))}}}}function IB(e){const t=Bw(e);if(t)return t;const n=Cc(e,HN);if(n){const e=function(e){const t=Wo(e).resolvedSymbol;if(t&&t!==yt)return t;return ta(e,e.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}(n);if(La(e,111551)&&!za(e,111551))return ma(e)}}function OB(e){if(418&e.flags&&e.valueDeclaration&&!$P(e.valueDeclaration)){const t=Uo(e);if(void 0===t.isDeclarationWithCollidingName){const n=Ef(e.valueDeclaration);if(Dp(n)||function(e){return e.valueDeclaration&&GD(e.valueDeclaration)&&299===mc(e.valueDeclaration).parent.kind}(e)){const r=Wo(e.valueDeclaration);if(ta(n.parent,e.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(16384&r.flags){const e=32768&r.flags,i=lu(n,!1),o=241===n.kind&&lu(n.parent,!1);t.isDeclarationWithCollidingName=!(ff(n)||e&&(i||o))}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function JB(e){if(!a_(e)){const t=Cc(e,HN);if(t){const e=uJ(t);if(e&&OB(e))return e.valueDeclaration}}}function zB(e){const t=Cc(e,Nu);if(t){const e=ds(t);if(e)return OB(e)}return!1}function VB(e){switch(Sn.assert(Oe),e.kind){case 271:return HB(ds(e));case 273:case 274:case 276:case 281:const t=ds(e);return!!t&&HB(t,!0);case 278:const n=e.exportClause;return!!n&&(mP(n)||re(n.elements,VB));case 277:return!e.expression||80!==e.expression.kind||HB(ds(e))}return!1}function WB(e){const t=Cc(e,aP);if(void 0===t||312!==t.parent.kind||!xg(t))return!1;return HB(ds(t))&&t.moduleReference&&!Ip(t.moduleReference)}function HB(e,t){if(!e)return!1;const n=xs(Ma(e));return n===yt?!t||!za(e):!!(111551&Ra(e,t,!0))&&(uk(C)||!$B(n))}function $B(e){return mL(e)||!!e.constEnumOnlyModule}function KB(e,t){if(Sn.assert(Oe),ga(e)){const t=ds(e),n=t&&Uo(t);if(null==n?void 0:n.referenced)return!0;const r=Uo(t).aliasTarget;if(r&&32&wb(e)&&111551&Ra(r)&&(uk(C)||!$B(r)))return!0}return!!t&&!!KI(e,(e=>KB(e,t)))}function GB(e){if(Op(e.body)){if(Uu(e)||qu(e))return!1;const t=Qp(ds(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function XB(e){return!(!H||Vp(e)||wE(e)||!e.initializer||fb(e,31))}function QB(e){return H&&Vp(e)&&!e.initializer&&fb(e,31)}function ZB(e){const t=Cc(e,QF);if(!t)return!1;const n=ds(t);return!!(n&&16&n.flags)&&!!dp(as(n),(e=>111551&e.flags&&gC(e.valueDeclaration)))}function eJ(e){const t=Cc(e,QF);if(!t)return r;const n=ds(t);return n&&jd(n_(n))||r}function tJ(e){var t;const n=e.id||0;return n<0||n>=Vi.length?0:(null==(t=Vi[n])?void 0:t.flags)||0}function nJ(e){return hR(e.parent),Wo(e).enumMemberValue}function rJ(e){switch(e.kind){case 306:case 211:case 212:return!0}return!1}function iJ(e){if(306===e.kind)return nJ(e);const t=Wo(e).resolvedSymbol;if(t&&8&t.flags){const e=t.valueDeclaration;if(em(e.parent))return nJ(e)}}function oJ(e){return!!(524288&e.flags)&&Sp(e,0).length>0}function aJ(e,t){var n;const r=Cc(e,m_);if(!r)return 0;if(t&&!(t=Cc(t)))return 0;let i=!1;if(sD(r)){const e=Ha(Gb(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(r_))}const o=Ha(r,111551,!0,!0,t),a=o&&2097152&o.flags?Ma(o):o;i||(i=!(!o||!za(o,111551)));const s=Ha(r,788968,!0,!1,t);if(a&&a===s){const e=ph(!1);if(e&&a===e)return 9;const t=n_(a);if(t&&k_(t))return i?10:1}if(!s)return i?11:0;const c=Z_(s);return Uc(c)?i?11:0:3&c.flags?11:dL(c,245760)?2:dL(c,528)?6:dL(c,296)?3:dL(c,2112)?4:dL(c,402653316)?5:LT(c)?7:dL(c,12288)?8:oJ(c)?10:Kk(c)?7:11}function sJ(e,t,n,r,i){const o=Cc(e,Tm);if(!o)return AC.createToken(133);const a=ds(o);let s=!a||133120&a.flags?Nt:DT(n_(a));return 8192&s.flags&&s.symbol===a&&(n|=1048576),i&&(s=dC(s)),de.typeToTypeNode(s,t,1024|n,r)}function cJ(e,t,n,r){const i=Cc(e,y_);if(!i)return AC.createToken(133);const o=Kp(i);return de.typeToTypeNode(of(o),t,1024|n,r)}function lJ(e,t,n,r){const i=Cc(e,au);if(!i)return AC.createToken(133);const o=LC(uB(i));return de.typeToTypeNode(o,t,1024|n,r)}function _J(e){return pe.has(wc(e))}function uJ(e,t){const n=Wo(e).resolvedSymbol;if(n)return n;let r=e;if(t){const t=e.parent;Nu(t)&&e===t.name&&(r=Oc(t))}return ta(r,e.escapedText,3257279,void 0,void 0,!0)}function dJ(e){if(!a_(e)){const t=Cc(e,HN);if(t){const e=uJ(t);if(e)return xs(e).valueDeclaration}}}function pJ(e){if(!a_(e)){const t=Cc(e,HN);if(t){const e=uJ(t);if(e)return M(xs(e).declarations,(e=>{switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1}))}}}function fJ(e){return!!(tm(e)||GF(e)&&iz(e))&&px(n_(ds(e)))}function mJ(e,t){return function(e,t,n){const r=1056&e.flags?de.symbolToExpression(e.symbol,111551,t,void 0,n):e===Gt?AC.createTrue():e===Ht&&AC.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?AC.createBigIntLiteral(i):"number"==typeof i?AC.createNumericLiteral(i):AC.createStringLiteral(i)}(n_(ds(e)),e,t)}function gJ(e){return e?(vo(e),Cp(e).localJsxFactory||ni):ni}function hJ(e){if(e){const t=Cp(e);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;const e=t.pragmas.get("jsxfrag"),n=_t(e)?e[0]:e;if(n)return t.localJsxFragmentFactory=ZI(n.arguments.factory,w),t.localJsxFragmentFactory}}if(C.jsxFragmentFactory)return ZI(C.jsxFragmentFactory,w)}function yJ(e){const t=267===e.kind?ft(e.name,FN):fh(e),n=Ga(t,t,void 0);if(n)return rp(n,312)}function vJ(e,t){if((n&t)!==t&&C.importHelpers){const r=Cp(e);if(vf(r,C)&&!(33554432&e.flags)){const o=function(e,t){i||(i=Xa(e,nd,Ea.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||yt);return i}(r,e);if(o!==yt){const r=t&~n;for(let t=1;t<=33554432;t<<=1)if(r&t)for(const n of bJ(t)){if(l.has(n))continue;l.add(n);const r=ja(Xo(ss(o),wc(n),111551));r?524288&t?re(Qp(r),(e=>SO(e)>3))||To(e,Ea.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,nd,n,4):1048576&t?re(Qp(r),(e=>SO(e)>4))||To(e,Ea.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,nd,n,5):1024&t&&(re(Qp(r),(e=>SO(e)>2))||To(e,Ea.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,nd,n,3)):To(e,Ea.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,nd,n)}}n|=t}}}function bJ(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return L?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return Sn.fail("Unrecognized helper")}}function xJ(e){const t=function(e){const t=function(e){return AA(e)?D(e.modifiers,uD):void 0}(e);return t&&$J(t,Ea.Decorators_are_not_valid_here)}(e)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return D(e.modifiers,f_);default:if(268===e.parent.kind||312===e.parent.kind)return;switch(e.kind){case 262:return SJ(e,134);case 263:case 185:return SJ(e,128);case 231:case 264:case 265:return D(e.modifiers,f_);case 243:return 4&e.declarationList.flags?SJ(e,135):D(e.modifiers,f_);case 266:return SJ(e,87);default:Sn.assertNever(e)}}}(e);return t&&$J(t,Ea.Modifiers_cannot_appear_here)}(e);if(void 0!==t)return t;if(_D(e)&&Hv(e))return $J(e,Ea.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const n=EF(e)?7&e.declarationList.flags:0;let r,i,o,a,s,c=0,l=!1,_=!1;for(const t of e.modifiers)if(uD(t)){if(!ag(L,e,e.parent,e.parent.parent))return 174!==e.kind||Op(e.body)?$J(e,Ea.Decorators_are_not_valid_here):$J(e,Ea.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(L&&(177===e.kind||178===e.kind)){const t=Qv(e.parent.members,e);if(Sb(t.firstAccessor)&&e===t.secondAccessor)return $J(e,Ea.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&c)return GJ(t,Ea.Decorators_are_not_valid_here);if(_&&98303&c){Sn.assertIsDefined(s);return!HJ(Cp(t))&&(pT(To(t,Ea.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Bf(s,Ea.Decorator_used_before_export_here)),!0)}c|=32768,98303&c?32&c&&(l=!0):_=!0,s??(s=t)}else{if(148!==t.kind){if(171===e.kind||173===e.kind)return GJ(t,Ea._0_modifier_cannot_appear_on_a_type_member,ts(t.kind));if(181===e.kind&&(126!==t.kind||!w_(e.parent)))return GJ(t,Ea._0_modifier_cannot_appear_on_an_index_signature,ts(t.kind))}if(103!==t.kind&&147!==t.kind&&87!==t.kind&&168===e.kind)return GJ(t,Ea._0_modifier_cannot_appear_on_a_type_parameter,ts(t.kind));switch(t.kind){case 87:if(266!==e.kind&&168!==e.kind)return GJ(e,Ea.A_class_member_cannot_have_the_0_keyword,ts(87));const _=e.parent;if(168===e.kind&&!(b_(_)||w_(_)||CD(_)||wD(_)||bD(_)||xD(_)||fD(_)))return GJ(t,Ea._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,ts(t.kind));break;case 164:if(16&c)return GJ(t,Ea._0_modifier_already_seen,"override");if(128&c)return GJ(t,Ea._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"override","readonly");if(512&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"override","async");c|=16,a=t;break;case 125:case 124:case 123:const u=_c(Ob(t.kind));if(7&c)return GJ(t,Ea.Accessibility_modifier_already_seen);if(16&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,u,"override");if(256&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,u,"static");if(512&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,u,"accessor");if(8&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,u,"readonly");if(1024&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,u,"async");if(268===e.parent.kind||312===e.parent.kind)return GJ(t,Ea._0_modifier_cannot_appear_on_a_module_or_namespace_element,u);if(64&c)return 123===t.kind?GJ(t,Ea._0_modifier_cannot_be_used_with_1_modifier,u,"abstract"):GJ(t,Ea._0_modifier_must_precede_1_modifier,u,"abstract");if(l_(e))return GJ(t,Ea.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);c|=Ob(t.kind);break;case 126:if(256&c)return GJ(t,Ea._0_modifier_already_seen,"static");if(8&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"static","async");if(512&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"static","accessor");if(268===e.parent.kind||312===e.parent.kind)return GJ(t,Ea._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(169===e.kind)return GJ(t,Ea._0_modifier_cannot_appear_on_a_parameter,"static");if(64&c)return GJ(t,Ea._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"static","override");c|=256,r=t;break;case 129:if(512&c)return GJ(t,Ea._0_modifier_already_seen,"accessor");if(8&c)return GJ(t,Ea._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&c)return GJ(t,Ea._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(172!==e.kind)return GJ(t,Ea.accessor_modifier_can_only_appear_on_a_property_declaration);c|=512;break;case 148:if(8&c)return GJ(t,Ea._0_modifier_already_seen,"readonly");if(172!==e.kind&&171!==e.kind&&181!==e.kind&&169!==e.kind)return GJ(t,Ea.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&c)return GJ(t,Ea._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");c|=8;break;case 95:if(C.verbatimModuleSyntax&&!(33554432&e.flags)&&265!==e.kind&&264!==e.kind&&267!==e.kind&&312===e.parent.kind&&(1===A||1===Cp(e).impliedNodeFormat))return GJ(t,Ea.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&c)return GJ(t,Ea._0_modifier_already_seen,"export");if(128&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"export","declare");if(64&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"export","async");if(w_(e.parent))return GJ(t,Ea._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(169===e.kind)return GJ(t,Ea._0_modifier_cannot_appear_on_a_parameter,"export");if(4===n)return GJ(t,Ea._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===n)return GJ(t,Ea._0_modifier_cannot_appear_on_an_await_using_declaration,"export");c|=32;break;case 90:const d=312===e.parent.kind?e.parent:e.parent.parent;if(267===d.kind&&!lf(d))return GJ(t,Ea.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===n)return GJ(t,Ea._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===n)return GJ(t,Ea._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&c))return GJ(t,Ea._0_modifier_must_precede_1_modifier,"export","default");if(l)return GJ(s,Ea.Decorators_are_not_valid_here);c|=2048;break;case 138:if(128&c)return GJ(t,Ea._0_modifier_already_seen,"declare");if(1024&c)return GJ(t,Ea._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&c)return GJ(t,Ea._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(w_(e.parent)&&!pD(e))return GJ(t,Ea._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(169===e.kind)return GJ(t,Ea._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===n)return GJ(t,Ea._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===n)return GJ(t,Ea._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&e.parent.flags&&268===e.parent.kind)return GJ(t,Ea.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(l_(e))return GJ(t,Ea._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&c)return GJ(t,Ea._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");c|=128,i=t;break;case 128:if(64&c)return GJ(t,Ea._0_modifier_already_seen,"abstract");if(263!==e.kind&&185!==e.kind){if(174!==e.kind&&172!==e.kind&&177!==e.kind&&178!==e.kind)return GJ(t,Ea.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(263!==e.parent.kind||!fb(e.parent,64)){return GJ(t,172===e.kind?Ea.Abstract_properties_can_only_appear_within_an_abstract_class:Ea.Abstract_methods_can_only_appear_within_an_abstract_class)}if(256&c)return GJ(t,Ea._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&c)return GJ(t,Ea._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&c&&o)return GJ(o,Ea._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"abstract","override");if(512&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Lc(e)&&81===e.name.kind)return GJ(t,Ea._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");c|=64;break;case 134:if(1024&c)return GJ(t,Ea._0_modifier_already_seen,"async");if(128&c||33554432&e.parent.flags)return GJ(t,Ea._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(169===e.kind)return GJ(t,Ea._0_modifier_cannot_appear_on_a_parameter,"async");if(64&c)return GJ(t,Ea._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");c|=1024,o=t;break;case 103:case 147:const p=103===t.kind?8192:16384,f=103===t.kind?"in":"out";if(168!==e.kind||!(ZF(e.parent)||w_(e.parent)||eP(e.parent)))return GJ(t,Ea._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,f);if(c&p)return GJ(t,Ea._0_modifier_already_seen,f);if(8192&p&&16384&c)return GJ(t,Ea._0_modifier_must_precede_1_modifier,"in","out");c|=p}}return 176===e.kind?256&c?GJ(r,Ea._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&c?GJ(a,Ea._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&c)&&GJ(o,Ea._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(272===e.kind||271===e.kind)&&128&c?GJ(i,Ea.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):169===e.kind&&31&c&&R_(e.name)?GJ(e,Ea.A_parameter_property_may_not_be_declared_using_a_binding_pattern):169===e.kind&&31&c&&e.dotDotDotToken?GJ(e,Ea.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&c)&&function(e,t){switch(e.kind){case 174:case 262:case 218:case 219:return!1}return GJ(t,Ea._0_modifier_cannot_be_used_here,"async")}(e,o)}function SJ(e,t){const n=D(e.modifiers,f_);return n&&n.kind!==t?n:void 0}function kJ(e,t=Ea.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&KJ(e[0],e.end-1,1,t)}function TJ(e,t){if(e&&0===e.length){const n=e.pos-1;return KJ(t,n,ys(t.text,e.end)+1-n,Ea.Type_parameter_list_cannot_be_empty)}return!1}function CJ(e){if(w>=3){const t=e.body&&PF(e.body)&&iA(e.body.statements);if(t){const n=M(e.parameters,(e=>!!e.initializer||R_(e.name)||ed(e)));if(v(n)){b(n,(e=>{pT(To(e,Ea.This_parameter_is_not_allowed_with_use_strict_directive),Bf(t,Ea.use_strict_directive_used_here))}));const e=n.map(((e,t)=>Bf(e,0===t?Ea.Non_simple_parameter_declared_here:Ea.and_here)));return pT(To(t,Ea.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}function wJ(e){const t=Cp(e);return xJ(e)||TJ(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r<n;r++){const i=e[r];if(i.dotDotDotToken){if(r!==n-1)return GJ(i.dotDotDotToken,Ea.A_rest_parameter_must_be_last_in_a_parameter_list);if(33554432&i.flags||kJ(e,Ea.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),i.questionToken)return GJ(i.questionToken,Ea.A_rest_parameter_cannot_be_optional);if(i.initializer)return GJ(i.name,Ea.A_rest_parameter_cannot_have_an_initializer)}else if(Vp(i)){if(t=!0,i.questionToken&&i.initializer)return GJ(i.name,Ea.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!i.initializer)return GJ(i.name,Ea.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,t){if(!aF(e))return!1;e.typeParameters&&!(v(e.typeParameters)>1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&Ko(t.fileName,[".mts",".cts"])&&GJ(e.typeParameters[0],Ea.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e,r=_s(t,n.pos).line,i=_s(t,n.end).line;return r!==i&&GJ(n,Ea.Line_terminator_not_permitted_before_arrow)}(e,t)||b_(e)&&CJ(e)}function NJ(e,t){return kJ(t)||function(e,t){if(t&&0===t.length){const n=Cp(e),r=t.pos-1;return KJ(n,r,ys(n.text,t.end)+1-r,Ea.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function DJ(e){const t=e.types;if(kJ(t))return!0;if(t&&0===t.length){const n=ts(e.token);return KJ(e,t.pos,0,Ea._0_list_cannot_be_empty,n)}return re(t,FJ)}function FJ(e){return bF(e)&&oD(e.expression)&&e.typeArguments?GJ(e,Ea.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):NJ(e,e.typeArguments)}function PJ(e){if(167!==e.kind)return!1;const t=e;return 226===t.expression.kind&&28===t.expression.operatorToken.kind&&GJ(t.expression,Ea.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function EJ(e){if(e.asteriskToken){if(Sn.assert(262===e.kind||218===e.kind||174===e.kind),33554432&e.flags)return GJ(e.asteriskToken,Ea.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return GJ(e.asteriskToken,Ea.An_overload_signature_cannot_be_declared_as_a_generator)}}function AJ(e,t){return!!e&&GJ(e,t)}function IJ(e,t){return!!e&&GJ(e,t)}function OJ(e){if(QJ(e))return!0;if(250===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=Cp(e);if(Gm(e)){if(!HJ(t))switch(vf(t,C)||oo.add(Bf(e.awaitModifier,Ea.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)),A){case 100:case 199:if(1===t.impliedNodeFormat){oo.add(Bf(e.awaitModifier,Ea.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(w>=4)break;default:oo.add(Bf(e.awaitModifier,Ea.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!HJ(t)){const t=Bf(e.awaitModifier,Ea.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=zm(e);if(n&&176!==n.kind){Sn.assert(0==(2&Ny(n)),"Enclosing function should never be an async function.");pT(t,Bf(n,Ea.Did_you_mean_to_mark_this_function_as_async))}return oo.add(t),!0}return!1}if(BF(e)&&!(65536&e.flags)&&HN(e.initializer)&&"async"===e.initializer.escapedText)return GJ(e.initializer,Ea.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(261===e.initializer.kind){const t=e.initializer;if(!VJ(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=249===e.kind?Ea.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Ea.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return $J(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=249===e.kind?Ea.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Ea.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return GJ(r.name,t)}if(r.type){return GJ(r,249===e.kind?Ea.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Ea.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}}return!1}function jJ(e){if(e.parameters.length===(177===e.kind?1:2))return Wv(e)}function MJ(e,t){if(function(e){return Ay(e)&&!hu(e)}(e))return GJ(e,t)}function RJ(e){if(wJ(e))return!0;if(174===e.kind){if(210===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==Pe(e.modifiers).kind))return $J(e,Ea.Modifiers_cannot_appear_here);if(AJ(e.questionToken,Ea.An_object_member_cannot_be_declared_optional))return!0;if(IJ(e.exclamationToken,Ea.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return KJ(e,e.end-1,1,Ea._0_expected,"{")}if(EJ(e))return!0}if(w_(e.parent)){if(w<2&&$N(e.name))return GJ(e.name,Ea.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return MJ(e.name,Ea.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(174===e.kind&&!e.body)return MJ(e.name,Ea.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(264===e.parent.kind)return MJ(e.name,Ea.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(187===e.parent.kind)return MJ(e.name,Ea.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 BJ(e){return Fy(e)||224===e.kind&&41===e.operator&&9===e.operand.kind}function JJ(e){const t=e.initializer;if(t){const r=!(BJ(t)||function(e){if((YD(e)||ZD(e)&&BJ(e.argumentExpression))&&Kb(e.expression))return!!(1056&DL(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||224===n.kind&&41===n.operator&&10===n.operand.kind));if(!(tm(e)||GF(e)&&iz(e))||e.type)return GJ(t,Ea.Initializers_are_not_allowed_in_ambient_contexts);if(r)return GJ(t,Ea.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function zJ(e){if(80===e.kind){if("__esModule"===Dc(e))return function(e,t,n,...r){if(!HJ(Cp(t)))return So(e,t,n,...r),!0;return!1}("noEmit",e,Ea.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!vF(e))return zJ(e.name)}return!1}function qJ(e){if(80===e.kind){if("let"===e.escapedText)return GJ(e,Ea.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const t=e.elements;for(const e of t)vF(e)||qJ(e.name)}return!1}function VJ(e){const t=e.declarations;if(kJ(e.declarations))return!0;if(!e.declarations.length)return KJ(e,t.pos,t.end-t.pos,Ea.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;return 4!==n&&6!==n||!RF(e.parent)?6===n&&cL(e):GJ(e,4===n?Ea.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:Ea.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration)}function WJ(e){switch(e.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return WJ(e.parent)}return!0}function HJ(e){return e.parseDiagnostics.length>0}function $J(e,t,...n){const r=Cp(e);if(!HJ(r)){const i=Gf(r,e.pos);return oo.add(ES(r,i.start,i.length,t,...n)),!0}return!1}function KJ(e,t,n,r,...i){const o=Cp(e);return!HJ(o)&&(oo.add(ES(o,t,n,r,...i)),!0)}function GJ(e,t,...n){return!HJ(Cp(e))&&(oo.add(Bf(e,t,...n)),!0)}function XJ(e){return 264!==e.kind&&265!==e.kind&&272!==e.kind&&271!==e.kind&&278!==e.kind&&277!==e.kind&&270!==e.kind&&!fb(e,2208)&&$J(e,Ea.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function QJ(e){if(33554432&e.flags){if(!Wo(e).hasReportedStatementInAmbientContext&&(y_(e.parent)||N_(e.parent)))return Wo(e).hasReportedStatementInAmbientContext=$J(e,Ea.An_implementation_cannot_be_declared_in_ambient_contexts);if(241===e.parent.kind||268===e.parent.kind||312===e.parent.kind){const t=Wo(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=$J(e,Ea.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function YJ(e){const t=Yp(e).includes("."),n=16&e.numericLiteralFlags;if(t||n)return;+e.text<=2**53-1||Co(!1,Bf(e,Ea.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function ZJ(e){return!!b(e.elements,(e=>{if(e.isTypeOnly)return $J(e,276===e.kind?Ea.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:Ea.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function ez(e,t,n){if(1048576&t.flags&&2621440&e.flags){const r=Ww(t,e);if(r)return r;const i=jd(e);if(i){const e=qw(i,t);if(e){const r=Ck(t,J(e,(e=>[()=>n_(e),e.escapedName])),n);if(r!==t)return r}}}}function tz(e){const t=Iy(e);return t||(cD(e)?Mw(VL(e.expression)):void 0)}function nz(e){return ke===e?je:(ke=e,je=hc(e))}function rz(e){return ve===e?Le:(ve=e,Le=vc(e))}function iz(e){const t=7&rz(e);return 2===t||4===t||6===t}}function OB(e){return!N_(e)}function LB(e){return 262!==e.kind&&174!==e.kind||!!e.body}function jB(e){switch(e.parent.kind){case 276:case 281:return HN(e);default:return ey(e)}}function MB(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function RB(e){return!!(1&e.flags)}function BB(e){return!!(2&e.flags)}var JB,zB=g({"src/compiler/checker.ts"(){var e;OK(),DB(),Zi(),pB=/^".+"$/,fB="(anonymous)",mB=1,gB=1,hB=1,yB=1,vB=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(vB||{}),bB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),xB=(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))(xB||{}),SB=(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))(SB||{}),kB=_n(LB,OB),TB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),CB=class{},(e=wB||(wB={})).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",NB=class e{constructor(t,n,r){var i;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=!!(null==(i=this.inner)?void 0:i.trackSymbol)}trackSymbol(e,t,n){var r,i;if((null==(r=this.inner)?void 0:r.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,n))return this.onDiagnosticReported(),!0;262144&e.flags||((i=this.context).trackedSymbols??(i.trackedSymbols=[])).push([e,t,n])}return!1}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(e,t){var n;(null==(n=this.inner)?void 0:n.trackReferencedAmbientModule)&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(e,t))}trackExternalModuleSymbolOfImportTypeNode(e){var t;(null==(t=this.inner)?void 0:t.trackExternalModuleSymbolOfImportTypeNode)&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(e))}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function qB(e,t,n,r){if(void 0===e)return e;const i=t(e);let o;return void 0!==i?(o=_t(i)?(r||ZB)(i):i,Sn.assertNode(o,n),o):void 0}function UB(e,t,n,r,i){if(void 0===e)return e;const o=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r);let s=-1,c=-1;r>0||i<o?a=e.hasTrailingComma&&r+i===o:(s=e.pos,c=e.end,a=e.hasTrailingComma);const l=WB(e,t,n,r,i);if(l!==e){const e=AC.createNodeArray(l,a);return FT(e,s,c),e}return e}function VB(e,t,n,r,i){if(void 0===e)return e;const o=e.length;return(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r),WB(e,t,n,r,i)}function WB(e,t,n,r,i){let o;const a=e.length;(r>0||i<a)&&(o=[]);for(let a=0;a<i;a++){const i=e[a+r],s=void 0!==i?t?t(i):i:void 0;if((void 0!==o||void 0===s||s!==i)&&(void 0===o&&(o=e.slice(0,a),Sn.assertEachNode(o,n)),s))if(_t(s))for(const e of s)Sn.assertNode(e,n),o.push(e);else Sn.assertNode(s,n),o.push(s)}return o||(Sn.assertEachNode(e,n),e)}function HB(e,t,n,r,i,o=UB){return n.startLexicalEnvironment(),e=o(e,t,Pu,r),i&&(e=n.factory.ensureUseStrict(e)),AC.mergeLexicalEnvironment(e,n.endLexicalEnvironment())}function $B(e,t,n,r=UB){let i;return n.startLexicalEnvironment(),e&&(n.setLexicalEnvironmentFlags(1,!0),i=r(e,t,_D),2&n.getLexicalEnvironmentFlags()&&HS(n.getCompilerOptions())>=2&&(i=function(e,t){let n;for(let r=0;r<e.length;r++){const i=e[r],o=KB(i,t);(n||o!==i)&&(n||(n=e.slice(0,r)),n[r]=o)}if(n)return cI(t.factory.createNodeArray(n,e.hasTrailingComma),e);return e}(i,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),i}function KB(e,t){return e.dotDotDotToken?e:R_(e.name)?function(e,t){const{factory:n}=t;return t.addInitializationStatement(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e.name,void 0,e.type,e.initializer?n.createConditionalExpression(n.createStrictEquality(n.getGeneratedNameForNode(e),n.createVoidZero()),void 0,e.initializer,void 0,n.getGeneratedNameForNode(e)):n.getGeneratedNameForNode(e))]))),n.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,n.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(e,t):e.initializer?function(e,t,n,r){const i=r.factory;return r.addInitializationStatement(i.createIfStatement(i.createTypeCheck(i.cloneNode(t),"undefined"),rw(cI(i.createBlock([i.createExpressionStatement(rw(cI(i.createAssignment(rw(i.cloneNode(t),96),rw(n,3168|tf(n))),e),3072))]),e),3905))),i.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}(e,e.name,e.initializer,t):e}function GB(e,t,n,r=qB){n.resumeLexicalEnvironment();const i=r(e,t,mu),o=n.endLexicalEnvironment();if(re(o)){if(!i)return n.factory.createBlock(o);const e=n.factory.converters.convertToFunctionBlock(i),t=AC.mergeLexicalEnvironment(e.statements,o);return n.factory.updateBlock(e,t)}return i}function XB(e,t,n,r=qB){n.startBlockScope();const i=r(e,t,Pu,n.factory.liftToBlock);Sn.assert(i);const o=n.endBlockScope();return re(o)?PF(i)?(o.push(...i.statements),n.factory.updateBlock(i,o)):(o.push(i),n.factory.createBlock(o)):i}function QB(e,t,n=t){if(n===t||e.length<=1)return UB(e,t,au);let r=0;const i=e.length;return UB(e,(e=>{const o=r<i-1;return r++,o?n(e):t(e)}),au)}function YB(e,t,n,r=UB,i,o=qB){if(void 0===e)return;const a=JB[e.kind];return void 0===a?e:a(e,t,n,r,o,i)}function ZB(e){return Sn.assert(e.length<=1,"Too many nodes written to output."),Oe(e)}var eJ,tJ,nJ,rJ,iJ=g({"src/compiler/visitorPublic.ts"(){OK(),JB={166:function(e,t,n,r,i,o){return n.factory.updateQualifiedName(e,Sn.checkDefined(i(e.left,t,m_)),Sn.checkDefined(i(e.right,t,HN)))},167:function(e,t,n,r,i,o){return n.factory.updateComputedPropertyName(e,Sn.checkDefined(i(e.expression,t,au)))},168:function(e,t,n,r,i,o){return n.factory.updateTypeParameterDeclaration(e,r(e.modifiers,t,f_),Sn.checkDefined(i(e.name,t,HN)),i(e.constraint,t,j_),i(e.default,t,j_))},169:function(e,t,n,r,i,o){return n.factory.updateParameterDeclaration(e,r(e.modifiers,t,A_),o?i(e.dotDotDotToken,o,jN):e.dotDotDotToken,Sn.checkDefined(i(e.name,t,h_)),o?i(e.questionToken,o,qN):e.questionToken,i(e.type,t,j_),i(e.initializer,t,au))},170:function(e,t,n,r,i,o){return n.factory.updateDecorator(e,Sn.checkDefined(i(e.expression,t,au)))},171:function(e,t,n,r,i,o){return n.factory.updatePropertySignature(e,r(e.modifiers,t,f_),Sn.checkDefined(i(e.name,t,g_)),o?i(e.questionToken,o,qN):e.questionToken,i(e.type,t,j_))},172:function(e,t,n,r,i,o){return n.factory.updatePropertyDeclaration(e,r(e.modifiers,t,A_),Sn.checkDefined(i(e.name,t,g_)),o?i(e.questionToken??e.exclamationToken,o,OA):e.questionToken??e.exclamationToken,i(e.type,t,j_),i(e.initializer,t,au))},173:function(e,t,n,r,i,o){return n.factory.updateMethodSignature(e,r(e.modifiers,t,f_),Sn.checkDefined(i(e.name,t,g_)),o?i(e.questionToken,o,qN):e.questionToken,r(e.typeParameters,t,lD),r(e.parameters,t,_D),i(e.type,t,j_))},174:function(e,t,n,r,i,o){return n.factory.updateMethodDeclaration(e,r(e.modifiers,t,A_),o?i(e.asteriskToken,o,JN):e.asteriskToken,Sn.checkDefined(i(e.name,t,g_)),o?i(e.questionToken,o,qN):e.questionToken,r(e.typeParameters,t,lD),$B(e.parameters,t,n,r),i(e.type,t,j_),GB(e.body,t,n,i))},176:function(e,t,n,r,i,o){return n.factory.updateConstructorDeclaration(e,r(e.modifiers,t,A_),$B(e.parameters,t,n,r),GB(e.body,t,n,i))},177:function(e,t,n,r,i,o){return n.factory.updateGetAccessorDeclaration(e,r(e.modifiers,t,A_),Sn.checkDefined(i(e.name,t,g_)),$B(e.parameters,t,n,r),i(e.type,t,j_),GB(e.body,t,n,i))},178:function(e,t,n,r,i,o){return n.factory.updateSetAccessorDeclaration(e,r(e.modifiers,t,A_),Sn.checkDefined(i(e.name,t,g_)),$B(e.parameters,t,n,r),GB(e.body,t,n,i))},175:function(e,t,n,r,i,o){return n.startLexicalEnvironment(),n.suspendLexicalEnvironment(),n.factory.updateClassStaticBlockDeclaration(e,GB(e.body,t,n,i))},179:function(e,t,n,r,i,o){return n.factory.updateCallSignature(e,r(e.typeParameters,t,lD),r(e.parameters,t,_D),i(e.type,t,j_))},180:function(e,t,n,r,i,o){return n.factory.updateConstructSignature(e,r(e.typeParameters,t,lD),r(e.parameters,t,_D),i(e.type,t,j_))},181:function(e,t,n,r,i,o){return n.factory.updateIndexSignature(e,r(e.modifiers,t,A_),r(e.parameters,t,_D),Sn.checkDefined(i(e.type,t,j_)))},182:function(e,t,n,r,i,o){return n.factory.updateTypePredicateNode(e,i(e.assertsModifier,t,QN),Sn.checkDefined(i(e.parameterName,t,LA)),i(e.type,t,j_))},183:function(e,t,n,r,i,o){return n.factory.updateTypeReferenceNode(e,Sn.checkDefined(i(e.typeName,t,m_)),r(e.typeArguments,t,j_))},184:function(e,t,n,r,i,o){return n.factory.updateFunctionTypeNode(e,r(e.typeParameters,t,lD),r(e.parameters,t,_D),Sn.checkDefined(i(e.type,t,j_)))},185:function(e,t,n,r,i,o){return n.factory.updateConstructorTypeNode(e,r(e.modifiers,t,f_),r(e.typeParameters,t,lD),r(e.parameters,t,_D),Sn.checkDefined(i(e.type,t,j_)))},186:function(e,t,n,r,i,o){return n.factory.updateTypeQueryNode(e,Sn.checkDefined(i(e.exprName,t,m_)),r(e.typeArguments,t,j_))},187:function(e,t,n,r,i,o){return n.factory.updateTypeLiteralNode(e,r(e.members,t,I_))},188:function(e,t,n,r,i,o){return n.factory.updateArrayTypeNode(e,Sn.checkDefined(i(e.elementType,t,j_)))},189:function(e,t,n,r,i,o){return n.factory.updateTupleTypeNode(e,r(e.elements,t,j_))},190:function(e,t,n,r,i,o){return n.factory.updateOptionalTypeNode(e,Sn.checkDefined(i(e.type,t,j_)))},191:function(e,t,n,r,i,o){return n.factory.updateRestTypeNode(e,Sn.checkDefined(i(e.type,t,j_)))},192:function(e,t,n,r,i,o){return n.factory.updateUnionTypeNode(e,r(e.types,t,j_))},193:function(e,t,n,r,i,o){return n.factory.updateIntersectionTypeNode(e,r(e.types,t,j_))},194:function(e,t,n,r,i,o){return n.factory.updateConditionalTypeNode(e,Sn.checkDefined(i(e.checkType,t,j_)),Sn.checkDefined(i(e.extendsType,t,j_)),Sn.checkDefined(i(e.trueType,t,j_)),Sn.checkDefined(i(e.falseType,t,j_)))},195:function(e,t,n,r,i,o){return n.factory.updateInferTypeNode(e,Sn.checkDefined(i(e.typeParameter,t,lD)))},205:function(e,t,n,r,i,o){return n.factory.updateImportTypeNode(e,Sn.checkDefined(i(e.argument,t,j_)),i(e.attributes,t,dP),i(e.qualifier,t,m_),r(e.typeArguments,t,j_),e.isTypeOf)},302:function(e,t,n,r,i,o){return n.factory.updateImportTypeAssertionContainer(e,Sn.checkDefined(i(e.assertClause,t,_P)),e.multiLine)},202:function(e,t,n,r,i,o){return n.factory.updateNamedTupleMember(e,o?i(e.dotDotDotToken,o,jN):e.dotDotDotToken,Sn.checkDefined(i(e.name,t,HN)),o?i(e.questionToken,o,qN):e.questionToken,Sn.checkDefined(i(e.type,t,j_)))},196:function(e,t,n,r,i,o){return n.factory.updateParenthesizedType(e,Sn.checkDefined(i(e.type,t,j_)))},198:function(e,t,n,r,i,o){return n.factory.updateTypeOperatorNode(e,Sn.checkDefined(i(e.type,t,j_)))},199:function(e,t,n,r,i,o){return n.factory.updateIndexedAccessTypeNode(e,Sn.checkDefined(i(e.objectType,t,j_)),Sn.checkDefined(i(e.indexType,t,j_)))},200:function(e,t,n,r,i,o){return n.factory.updateMappedTypeNode(e,o?i(e.readonlyToken,o,jA):e.readonlyToken,Sn.checkDefined(i(e.typeParameter,t,lD)),i(e.nameType,t,j_),o?i(e.questionToken,o,MA):e.questionToken,i(e.type,t,j_),r(e.members,t,I_))},201:function(e,t,n,r,i,o){return n.factory.updateLiteralTypeNode(e,Sn.checkDefined(i(e.literal,t,ou)))},203:function(e,t,n,r,i,o){return n.factory.updateTemplateLiteralType(e,Sn.checkDefined(i(e.head,t,IN)),r(e.templateSpans,t,WD))},204:function(e,t,n,r,i,o){return n.factory.updateTemplateLiteralTypeSpan(e,Sn.checkDefined(i(e.type,t,j_)),Sn.checkDefined(i(e.literal,t,Zl)))},206:function(e,t,n,r,i,o){return n.factory.updateObjectBindingPattern(e,r(e.elements,t,GD))},207:function(e,t,n,r,i,o){return n.factory.updateArrayBindingPattern(e,r(e.elements,t,J_))},208:function(e,t,n,r,i,o){return n.factory.updateBindingElement(e,o?i(e.dotDotDotToken,o,jN):e.dotDotDotToken,i(e.propertyName,t,g_),Sn.checkDefined(i(e.name,t,h_)),i(e.initializer,t,au))},209:function(e,t,n,r,i,o){return n.factory.updateArrayLiteralExpression(e,r(e.elements,t,au))},210:function(e,t,n,r,i,o){return n.factory.updateObjectLiteralExpression(e,r(e.properties,t,L_))},211:function(e,t,n,r,i,o){return Nl(e)?n.factory.updatePropertyAccessChain(e,Sn.checkDefined(i(e.expression,t,au)),o?i(e.questionDotToken,o,VN):e.questionDotToken,Sn.checkDefined(i(e.name,t,Cl))):n.factory.updatePropertyAccessExpression(e,Sn.checkDefined(i(e.expression,t,au)),Sn.checkDefined(i(e.name,t,Cl)))},212:function(e,t,n,r,i,o){return Dl(e)?n.factory.updateElementAccessChain(e,Sn.checkDefined(i(e.expression,t,au)),o?i(e.questionDotToken,o,VN):e.questionDotToken,Sn.checkDefined(i(e.argumentExpression,t,au))):n.factory.updateElementAccessExpression(e,Sn.checkDefined(i(e.expression,t,au)),Sn.checkDefined(i(e.argumentExpression,t,au)))},213:function(e,t,n,r,i,o){return Fl(e)?n.factory.updateCallChain(e,Sn.checkDefined(i(e.expression,t,au)),o?i(e.questionDotToken,o,VN):e.questionDotToken,r(e.typeArguments,t,j_),r(e.arguments,t,au)):n.factory.updateCallExpression(e,Sn.checkDefined(i(e.expression,t,au)),r(e.typeArguments,t,j_),r(e.arguments,t,au))},214:function(e,t,n,r,i,o){return n.factory.updateNewExpression(e,Sn.checkDefined(i(e.expression,t,au)),r(e.typeArguments,t,j_),r(e.arguments,t,au))},215:function(e,t,n,r,i,o){return n.factory.updateTaggedTemplateExpression(e,Sn.checkDefined(i(e.tag,t,au)),r(e.typeArguments,t,j_),Sn.checkDefined(i(e.template,t,Z_)))},216:function(e,t,n,r,i,o){return n.factory.updateTypeAssertion(e,Sn.checkDefined(i(e.type,t,j_)),Sn.checkDefined(i(e.expression,t,au)))},217:function(e,t,n,r,i,o){return n.factory.updateParenthesizedExpression(e,Sn.checkDefined(i(e.expression,t,au)))},218:function(e,t,n,r,i,o){return n.factory.updateFunctionExpression(e,r(e.modifiers,t,f_),o?i(e.asteriskToken,o,JN):e.asteriskToken,i(e.name,t,HN),r(e.typeParameters,t,lD),$B(e.parameters,t,n,r),i(e.type,t,j_),GB(e.body,t,n,i))},219:function(e,t,n,r,i,o){return n.factory.updateArrowFunction(e,r(e.modifiers,t,f_),r(e.typeParameters,t,lD),$B(e.parameters,t,n,r),i(e.type,t,j_),o?Sn.checkDefined(i(e.equalsGreaterThanToken,o,WN)):e.equalsGreaterThanToken,GB(e.body,t,n,i))},220:function(e,t,n,r,i,o){return n.factory.updateDeleteExpression(e,Sn.checkDefined(i(e.expression,t,au)))},221:function(e,t,n,r,i,o){return n.factory.updateTypeOfExpression(e,Sn.checkDefined(i(e.expression,t,au)))},222:function(e,t,n,r,i,o){return n.factory.updateVoidExpression(e,Sn.checkDefined(i(e.expression,t,au)))},223:function(e,t,n,r,i,o){return n.factory.updateAwaitExpression(e,Sn.checkDefined(i(e.expression,t,au)))},224:function(e,t,n,r,i,o){return n.factory.updatePrefixUnaryExpression(e,Sn.checkDefined(i(e.operand,t,au)))},225:function(e,t,n,r,i,o){return n.factory.updatePostfixUnaryExpression(e,Sn.checkDefined(i(e.operand,t,au)))},226:function(e,t,n,r,i,o){return n.factory.updateBinaryExpression(e,Sn.checkDefined(i(e.left,t,au)),o?Sn.checkDefined(i(e.operatorToken,o,VA)):e.operatorToken,Sn.checkDefined(i(e.right,t,au)))},227:function(e,t,n,r,i,o){return n.factory.updateConditionalExpression(e,Sn.checkDefined(i(e.condition,t,au)),o?Sn.checkDefined(i(e.questionToken,o,qN)):e.questionToken,Sn.checkDefined(i(e.whenTrue,t,au)),o?Sn.checkDefined(i(e.colonToken,o,UN)):e.colonToken,Sn.checkDefined(i(e.whenFalse,t,au)))},228:function(e,t,n,r,i,o){return n.factory.updateTemplateExpression(e,Sn.checkDefined(i(e.head,t,IN)),r(e.templateSpans,t,DF))},229:function(e,t,n,r,i,o){return n.factory.updateYieldExpression(e,o?i(e.asteriskToken,o,JN):e.asteriskToken,i(e.expression,t,au))},230:function(e,t,n,r,i,o){return n.factory.updateSpreadElement(e,Sn.checkDefined(i(e.expression,t,au)))},231:function(e,t,n,r,i,o){return n.factory.updateClassExpression(e,r(e.modifiers,t,A_),i(e.name,t,HN),r(e.typeParameters,t,lD),r(e.heritageClauses,t,JP),r(e.members,t,C_))},233:function(e,t,n,r,i,o){return n.factory.updateExpressionWithTypeArguments(e,Sn.checkDefined(i(e.expression,t,au)),r(e.typeArguments,t,j_))},234:function(e,t,n,r,i,o){return n.factory.updateAsExpression(e,Sn.checkDefined(i(e.expression,t,au)),Sn.checkDefined(i(e.type,t,j_)))},238:function(e,t,n,r,i,o){return n.factory.updateSatisfiesExpression(e,Sn.checkDefined(i(e.expression,t,au)),Sn.checkDefined(i(e.type,t,j_)))},235:function(e,t,n,r,i,o){return Pl(e)?n.factory.updateNonNullChain(e,Sn.checkDefined(i(e.expression,t,au))):n.factory.updateNonNullExpression(e,Sn.checkDefined(i(e.expression,t,au)))},236:function(e,t,n,r,i,o){return n.factory.updateMetaProperty(e,Sn.checkDefined(i(e.name,t,HN)))},239:function(e,t,n,r,i,o){return n.factory.updateTemplateSpan(e,Sn.checkDefined(i(e.expression,t,au)),Sn.checkDefined(i(e.literal,t,Zl)))},241:function(e,t,n,r,i,o){return n.factory.updateBlock(e,r(e.statements,t,Pu))},243:function(e,t,n,r,i,o){return n.factory.updateVariableStatement(e,r(e.modifiers,t,A_),Sn.checkDefined(i(e.declarationList,t,XF)))},244:function(e,t,n,r,i,o){return n.factory.updateExpressionStatement(e,Sn.checkDefined(i(e.expression,t,au)))},245:function(e,t,n,r,i,o){return n.factory.updateIfStatement(e,Sn.checkDefined(i(e.expression,t,au)),Sn.checkDefined(i(e.thenStatement,t,Pu,n.factory.liftToBlock)),i(e.elseStatement,t,Pu,n.factory.liftToBlock))},246:function(e,t,n,r,i,o){return n.factory.updateDoStatement(e,XB(e.statement,t,n,i),Sn.checkDefined(i(e.expression,t,au)))},247:function(e,t,n,r,i,o){return n.factory.updateWhileStatement(e,Sn.checkDefined(i(e.expression,t,au)),XB(e.statement,t,n,i))},248:function(e,t,n,r,i,o){return n.factory.updateForStatement(e,i(e.initializer,t,hu),i(e.condition,t,au),i(e.incrementor,t,au),XB(e.statement,t,n,i))},249:function(e,t,n,r,i,o){return n.factory.updateForInStatement(e,Sn.checkDefined(i(e.initializer,t,hu)),Sn.checkDefined(i(e.expression,t,au)),XB(e.statement,t,n,i))},250:function(e,t,n,r,i,o){return n.factory.updateForOfStatement(e,o?i(e.awaitModifier,o,YN):e.awaitModifier,Sn.checkDefined(i(e.initializer,t,hu)),Sn.checkDefined(i(e.expression,t,au)),XB(e.statement,t,n,i))},251:function(e,t,n,r,i,o){return n.factory.updateContinueStatement(e,i(e.label,t,HN))},252:function(e,t,n,r,i,o){return n.factory.updateBreakStatement(e,i(e.label,t,HN))},253:function(e,t,n,r,i,o){return n.factory.updateReturnStatement(e,i(e.expression,t,au))},254:function(e,t,n,r,i,o){return n.factory.updateWithStatement(e,Sn.checkDefined(i(e.expression,t,au)),Sn.checkDefined(i(e.statement,t,Pu,n.factory.liftToBlock)))},255:function(e,t,n,r,i,o){return n.factory.updateSwitchStatement(e,Sn.checkDefined(i(e.expression,t,au)),Sn.checkDefined(i(e.caseBlock,t,iP)))},256:function(e,t,n,r,i,o){return n.factory.updateLabeledStatement(e,Sn.checkDefined(i(e.label,t,HN)),Sn.checkDefined(i(e.statement,t,Pu,n.factory.liftToBlock)))},257:function(e,t,n,r,i,o){return n.factory.updateThrowStatement(e,Sn.checkDefined(i(e.expression,t,au)))},258:function(e,t,n,r,i,o){return n.factory.updateTryStatement(e,Sn.checkDefined(i(e.tryBlock,t,PF)),i(e.catchClause,t,zP),i(e.finallyBlock,t,PF))},260:function(e,t,n,r,i,o){return n.factory.updateVariableDeclaration(e,Sn.checkDefined(i(e.name,t,h_)),o?i(e.exclamationToken,o,zN):e.exclamationToken,i(e.type,t,j_),i(e.initializer,t,au))},261:function(e,t,n,r,i,o){return n.factory.updateVariableDeclarationList(e,r(e.declarations,t,GF))},262:function(e,t,n,r,i,o){return n.factory.updateFunctionDeclaration(e,r(e.modifiers,t,f_),o?i(e.asteriskToken,o,JN):e.asteriskToken,i(e.name,t,HN),r(e.typeParameters,t,lD),$B(e.parameters,t,n,r),i(e.type,t,j_),GB(e.body,t,n,i))},263:function(e,t,n,r,i,o){return n.factory.updateClassDeclaration(e,r(e.modifiers,t,A_),i(e.name,t,HN),r(e.typeParameters,t,lD),r(e.heritageClauses,t,JP),r(e.members,t,C_))},264:function(e,t,n,r,i,o){return n.factory.updateInterfaceDeclaration(e,r(e.modifiers,t,A_),Sn.checkDefined(i(e.name,t,HN)),r(e.typeParameters,t,lD),r(e.heritageClauses,t,JP),r(e.members,t,I_))},265:function(e,t,n,r,i,o){return n.factory.updateTypeAliasDeclaration(e,r(e.modifiers,t,A_),Sn.checkDefined(i(e.name,t,HN)),r(e.typeParameters,t,lD),Sn.checkDefined(i(e.type,t,j_)))},266:function(e,t,n,r,i,o){return n.factory.updateEnumDeclaration(e,r(e.modifiers,t,A_),Sn.checkDefined(i(e.name,t,HN)),r(e.members,t,WP))},267:function(e,t,n,r,i,o){return n.factory.updateModuleDeclaration(e,r(e.modifiers,t,A_),Sn.checkDefined(i(e.name,t,RA)),i(e.body,t,yu))},268:function(e,t,n,r,i,o){return n.factory.updateModuleBlock(e,r(e.statements,t,Pu))},269:function(e,t,n,r,i,o){return n.factory.updateCaseBlock(e,r(e.clauses,t,Ru))},270:function(e,t,n,r,i,o){return n.factory.updateNamespaceExportDeclaration(e,Sn.checkDefined(i(e.name,t,HN)))},271:function(e,t,n,r,i,o){return n.factory.updateImportEqualsDeclaration(e,r(e.modifiers,t,A_),e.isTypeOnly,Sn.checkDefined(i(e.name,t,HN)),Sn.checkDefined(i(e.moduleReference,t,Au)))},272:function(e,t,n,r,i,o){return n.factory.updateImportDeclaration(e,r(e.modifiers,t,A_),i(e.importClause,t,cP),Sn.checkDefined(i(e.moduleSpecifier,t,au)),i(e.attributes,t,dP))},300:function(e,t,n,r,i,o){return n.factory.updateImportAttributes(e,r(e.elements,t,pP),e.multiLine)},301:function(e,t,n,r,i,o){return n.factory.updateImportAttribute(e,Sn.checkDefined(i(e.name,t,o_)),Sn.checkDefined(i(e.value,t,au)))},273:function(e,t,n,r,i,o){return n.factory.updateImportClause(e,e.isTypeOnly,i(e.name,t,HN),i(e.namedBindings,t,xu))},274:function(e,t,n,r,i,o){return n.factory.updateNamespaceImport(e,Sn.checkDefined(i(e.name,t,HN)))},280:function(e,t,n,r,i,o){return n.factory.updateNamespaceExport(e,Sn.checkDefined(i(e.name,t,HN)))},275:function(e,t,n,r,i,o){return n.factory.updateNamedImports(e,r(e.elements,t,hP))},276:function(e,t,n,r,i,o){return n.factory.updateImportSpecifier(e,e.isTypeOnly,i(e.propertyName,t,HN),Sn.checkDefined(i(e.name,t,HN)))},277:function(e,t,n,r,i,o){return n.factory.updateExportAssignment(e,r(e.modifiers,t,A_),Sn.checkDefined(i(e.expression,t,au)))},278:function(e,t,n,r,i,o){return n.factory.updateExportDeclaration(e,r(e.modifiers,t,A_),e.isTypeOnly,i(e.exportClause,t,Bl),i(e.moduleSpecifier,t,au),i(e.attributes,t,dP))},279:function(e,t,n,r,i,o){return n.factory.updateNamedExports(e,r(e.elements,t,xP))},281:function(e,t,n,r,i,o){return n.factory.updateExportSpecifier(e,e.isTypeOnly,i(e.propertyName,t,HN),Sn.checkDefined(i(e.name,t,HN)))},283:function(e,t,n,r,i,o){return n.factory.updateExternalModuleReference(e,Sn.checkDefined(i(e.expression,t,au)))},284:function(e,t,n,r,i,o){return n.factory.updateJsxElement(e,Sn.checkDefined(i(e.openingElement,t,DP)),r(e.children,t,Ou),Sn.checkDefined(i(e.closingElement,t,FP)))},285:function(e,t,n,r,i,o){return n.factory.updateJsxSelfClosingElement(e,Sn.checkDefined(i(e.tagName,t,Iu)),r(e.typeArguments,t,j_),Sn.checkDefined(i(e.attributes,t,OP)))},286:function(e,t,n,r,i,o){return n.factory.updateJsxOpeningElement(e,Sn.checkDefined(i(e.tagName,t,Iu)),r(e.typeArguments,t,j_),Sn.checkDefined(i(e.attributes,t,OP)))},287:function(e,t,n,r,i,o){return n.factory.updateJsxClosingElement(e,Sn.checkDefined(i(e.tagName,t,Iu)))},295:function(e,t,n,r,i,o){return n.factory.updateJsxNamespacedName(e,Sn.checkDefined(i(e.namespace,t,HN)),Sn.checkDefined(i(e.name,t,HN)))},288:function(e,t,n,r,i,o){return n.factory.updateJsxFragment(e,Sn.checkDefined(i(e.openingFragment,t,EP)),r(e.children,t,Ou),Sn.checkDefined(i(e.closingFragment,t,AP)))},291:function(e,t,n,r,i,o){return n.factory.updateJsxAttribute(e,Sn.checkDefined(i(e.name,t,_C)),i(e.initializer,t,ju))},292:function(e,t,n,r,i,o){return n.factory.updateJsxAttributes(e,r(e.properties,t,Lu))},293:function(e,t,n,r,i,o){return n.factory.updateJsxSpreadAttribute(e,Sn.checkDefined(i(e.expression,t,au)))},294:function(e,t,n,r,i,o){return n.factory.updateJsxExpression(e,i(e.expression,t,au))},296:function(e,t,n,r,i,o){return n.factory.updateCaseClause(e,Sn.checkDefined(i(e.expression,t,au)),r(e.statements,t,Pu))},297:function(e,t,n,r,i,o){return n.factory.updateDefaultClause(e,r(e.statements,t,Pu))},298:function(e,t,n,r,i,o){return n.factory.updateHeritageClause(e,r(e.types,t,bF))},299:function(e,t,n,r,i,o){return n.factory.updateCatchClause(e,i(e.variableDeclaration,t,GF),Sn.checkDefined(i(e.block,t,PF)))},303:function(e,t,n,r,i,o){return n.factory.updatePropertyAssignment(e,Sn.checkDefined(i(e.name,t,g_)),Sn.checkDefined(i(e.initializer,t,au)))},304:function(e,t,n,r,i,o){return n.factory.updateShorthandPropertyAssignment(e,Sn.checkDefined(i(e.name,t,HN)),i(e.objectAssignmentInitializer,t,au))},305:function(e,t,n,r,i,o){return n.factory.updateSpreadAssignment(e,Sn.checkDefined(i(e.expression,t,au)))},306:function(e,t,n,r,i,o){return n.factory.updateEnumMember(e,Sn.checkDefined(i(e.name,t,g_)),i(e.initializer,t,au))},312:function(e,t,n,r,i,o){return n.factory.updateSourceFile(e,HB(e.statements,t,n))},360:function(e,t,n,r,i,o){return n.factory.updatePartiallyEmittedExpression(e,Sn.checkDefined(i(e.expression,t,au)))},361:function(e,t,n,r,i,o){return n.factory.updateCommaListExpression(e,r(e.elements,t,au))}}}});function oJ(e,t,n,r,i){var o,a,{enter:s,exit:c}=i.extendedDiagnostics?mr("Source Map","beforeSourcemap","afterSourcemap"):ar,l=[],_=[],u=new Map,d=[],p=[],f="",m=0,g=0,h=0,y=0,v=0,b=0,x=!1,S=0,k=0,T=0,C=0,w=0,N=0,D=!1,F=!1,P=!1;return{getSources:()=>l,addSource:E,setSourceContent:A,addName:I,addMapping:O,appendSourceMap:function(e,t,n,r,i,o){Sn.assert(e>=S,"generatedLine cannot backtrack"),Sn.assert(t>=0,"generatedCharacter cannot be negative"),s();const a=[];let l;const _=uJ(n.mappings);for(const s of _){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLine<i.line||i.line===s.generatedLine&&s.generatedCharacter<i.character))continue;let c,_,u,d;if(void 0!==s.sourceIndex){if(c=a[s.sourceIndex],void 0===c){const e=n.sources[s.sourceIndex],t=n.sourceRoot?sa(n.sourceRoot,e):e,i=sa(Zo(r),t);a[s.sourceIndex]=c=E(i),n.sourcesContent&&"string"==typeof n.sourcesContent[s.sourceIndex]&&A(c,n.sourcesContent[s.sourceIndex])}_=s.sourceLine,u=s.sourceCharacter,n.names&&void 0!==s.nameIndex&&(l||(l=[]),d=l[s.nameIndex],void 0===d&&(l[s.nameIndex]=d=I(n.names[s.nameIndex])))}const p=s.generatedLine-(i?i.line:0),f=p+e,m=i&&i.line===s.generatedLine?s.generatedCharacter-i.character:s.generatedCharacter;O(f,0===p?m+t:m,c,_,u,d)}c()},toJSON:R,toString:()=>JSON.stringify(R())};function E(t){s();const n=Da(r,t,e.getCurrentDirectory(),e.getCanonicalFileName,!0);let i=u.get(n);return void 0===i&&(i=_.length,_.push(n),l.push(t),u.set(n,i)),c(),i}function A(e,t){if(s(),null!==t){for(o||(o=[]);o.length<e;)o.push(null);o[e]=t}c()}function I(e){s(),a||(a=new Map);let t=a.get(e);return void 0===t&&(t=d.length,d.push(e),a.set(e,t)),c(),t}function O(e,t,n,r,i,o){Sn.assert(e>=S,"generatedLine cannot backtrack"),Sn.assert(t>=0,"generatedCharacter cannot be negative"),Sn.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),Sn.assert(void 0===r||r>=0,"sourceLine cannot be negative"),Sn.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),s(),(function(e,t){return!D||S!==e||k!==t}(e,t)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&T===e&&(C>t||C===t&&w>n)}(n,r,i))&&(j(),S=e,k=t,F=!1,P=!1,D=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,w=i,F=!0,void 0!==o&&(N=o,P=!0)),c()}function L(e){p.push(e),p.length>=1024&&M()}function j(){if(D&&(!x||m!==S||g!==k||h!==T||y!==C||v!==w||b!==N)){if(s(),m<S){do{L(59),m++}while(m<S);g=0}else Sn.assertEqual(m,S,"generatedLine cannot backtrack"),x&&L(44);B(k-g),g=k,F&&(B(T-h),h=T,B(C-y),y=C,B(w-v),v=w,P&&(B(N-b),b=N)),x=!0,c()}}function M(){p.length>0&&(f+=String.fromCharCode.apply(void 0,p),p.length=0)}function R(){return j(),M(),{version:3,file:t,sourceRoot:n,sources:_,names:d,mappings:f,sourcesContent:o}}function B(e){e<0?e=1+(-e<<1):e<<=1;do{let n=31&e;(e>>=5)>0&&(n|=32),L((t=n)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:Sn.fail(`${t}: not a base64 value`))}while(e>0);var t}}function aJ(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function sJ(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=tJ.exec(n);if(r)return r[1].trimEnd();if(!n.match(nJ))break}}function cJ(e){return"string"==typeof e||null===e}function lJ(e){return null!==e&&"object"==typeof e&&3===e.version&&"string"==typeof e.file&&"string"==typeof e.mappings&&_t(e.sources)&&N(e.sources,dt)&&(void 0===e.sourceRoot||null===e.sourceRoot||"string"==typeof e.sourceRoot)&&(void 0===e.sourcesContent||null===e.sourcesContent||_t(e.sourcesContent)&&N(e.sourcesContent,cJ))&&(void 0===e.names||null===e.names||_t(e.names)&&N(e.names,dt))}function _J(e){try{const t=JSON.parse(e);if(lJ(t))return t}catch{}}function uJ(e){let t,n=!1,r=0,i=0,o=0,a=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return t},get state(){return _(!0,!0)},next(){for(;!n&&r<e.length;){const t=e.charCodeAt(r);if(59===t){i++,o=0,r++;continue}if(44===t){r++;continue}let d=!1,h=!1;if(o+=g(),f())return u();if(o<0)return p("Invalid generatedCharacter found");if(!m()){if(d=!0,a+=g(),f())return u();if(a<0)return p("Invalid sourceIndex found");if(m())return p("Unsupported Format: No entries after sourceIndex");if(s+=g(),f())return u();if(s<0)return p("Invalid sourceLine found");if(m())return p("Unsupported Format: No entries after sourceLine");if(c+=g(),f())return u();if(c<0)return p("Invalid sourceCharacter found");if(!m()){if(h=!0,l+=g(),f())return u();if(l<0)return p("Invalid nameIndex found");if(!m())return p("Unsupported Error Format: Entries after nameIndex")}}return{value:_(d,h),done:n}}return u()},[Symbol.iterator](){return this}};function _(e,t){return{generatedLine:i,generatedCharacter:o,sourceIndex:e?a:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?l:void 0}}function u(){return n=!0,{value:void 0,done:!0}}function d(e){void 0===t&&(t=e)}function p(e){return d(e),u()}function f(){return void 0!==t}function m(){return r===e.length||44===e.charCodeAt(r)||59===e.charCodeAt(r)}function g(){let t=!0,n=0,i=0;for(;t;r++){if(r>=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const a=(o=e.charCodeAt(r))>=65&&o<=90?o-65:o>=97&&o<=122?o-97+26:o>=48&&o<=57?o-48+52:43===o?62:47===o?63:-1;if(-1===a)return d("Invalid character in VLQ"),-1;t=0!=(32&a),i|=(31&a)<<n,n+=5}var o;return 0==(1&i)?i>>=1:(i>>=1,i=-i),i}}function dJ(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 pJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function fJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function mJ(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function gJ(e,t){return Sn.assert(e.sourceIndex===t.sourceIndex),It(e.sourcePosition,t.sourcePosition)}function hJ(e,t){return It(e.generatedPosition,t.generatedPosition)}function yJ(e){return e.sourcePosition}function vJ(e){return e.generatedPosition}function bJ(e,t,n){const i=Zo(n),o=t.sourceRoot?_a(t.sourceRoot,i):i,a=_a(t.file,i),s=e.getSourceFileLike(a),c=t.sources.map((e=>_a(e,o))),l=new Map(c.map(((t,n)=>[e.getCanonicalFileName(t),n])));let _,u,d;return{getSourcePosition:function(e){const t=function(){if(void 0===u){const e=[];for(const t of f())e.push(t);u=ue(e,hJ,mJ)}return u}();if(!re(t))return e;let n=Be(t,e.pos,vJ,It);n<0&&(n=~n);const r=t[n];if(void 0===r||!fJ(r))return e;return{fileName:c[r.sourceIndex],pos:r.sourcePosition}},getGeneratedPosition:function(t){const n=l.get(e.getCanonicalFileName(t.fileName));if(void 0===n)return t;const r=function(e){if(void 0===d){const e=[];for(const t of f()){if(!fJ(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map((e=>ue(e,gJ,mJ)))}return d[e]}(n);if(!re(r))return t;let i=Be(r,t.pos,yJ,It);i<0&&(i=~i);const o=r[i];if(void 0===o||o.sourceIndex!==n)return t;return{fileName:a,pos:o.generatedPosition}}};function p(n){const r=void 0!==s?is(s,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(pJ(n)){const r=e.getSourceFileLike(c[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?is(r,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:r,source:i,sourceIndex:n.sourceIndex,sourcePosition:o,nameIndex:n.nameIndex}}function f(){if(void 0===_){const n=uJ(t.mappings),i=$e(n,p);void 0!==n.error?(e.log&&e.log(`Encountered error while decoding sourcemap: ${n.error}`),_=r):_=i}return _}}var xJ,SJ,kJ=g({"src/compiler/sourcemap.ts"(){OK(),Zi(),eJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,tJ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,nJ=/^\s*(\/\/[@#] .*)?$/,rJ={getSourcePosition:bt,getGeneratedPosition:bt}}});function TJ(e){return(e=Sc(e))?PB(e):0}function CJ(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function wJ(e,t){return function(n){return 312===n.kind?t(n):function(n){return e.factory.createBundle(J(n.sourceFiles,t),n.prepends)}(n)}}function NJ(e){return!!mh(e)}function DJ(e){if(mh(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!gP(t))return!1;let n=0;for(const e of t.elements)CJ(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&gh(e)}function FJ(e){return!DJ(e)&&(gh(e)||!!e.importClause&&gP(e.importClause.namedBindings)&&function(e){return!!e&&!!gP(e)&&re(e.elements,CJ)}(e.importClause.namedBindings))}function PJ(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],o=new SJ,a=[],s=new Map;let c,l,_=!1,u=!1,d=!1,p=!1;for(const n of t.statements)switch(n.kind){case 272:i.push(n),!d&&DJ(n)&&(d=!0),!p&&FJ(n)&&(p=!0);break;case 271:283===n.moduleReference.kind&&i.push(n);break;case 278:if(n.moduleSpecifier)if(n.exportClause)if(i.push(n),bP(n.exportClause))m(n);else{const e=n.exportClause.name;s.get(Dc(e))||(AJ(a,TJ(n),e),s.set(Dc(e),!0),c=he(c,e)),d=!0}else i.push(n),u=!0;else m(n);break;case 277:n.isExportEquals&&!l&&(l=n);break;case 243:if(fb(n,32))for(const e of n.declarationList.declarations)c=EJ(e,s,c,a);break;case 262:if(fb(n,32))if(fb(n,2048))_||(AJ(a,TJ(n),e.factory.getDeclarationName(n)),_=!0);else{const e=n.name;s.get(Dc(e))||(AJ(a,TJ(n),e),s.set(Dc(e),!0),c=he(c,e))}break;case 263:if(fb(n,32))if(fb(n,2048))_||(AJ(a,TJ(n),e.factory.getDeclarationName(n)),_=!0);else{const e=n.name;e&&!s.get(Dc(e))&&(AJ(a,TJ(n),e),s.set(Dc(e),!0),c=he(c,e))}}const f=hA(e.factory,e.getEmitHelperFactory(),t,r,u,d,p);return f&&i.unshift(f),{externalImports:i,exportSpecifiers:o,exportEquals:l,hasExportStarsToExportValues:u,exportedBindings:a,exportedNames:c,externalHelpersImportDeclaration:f};function m(e){for(const t of mt(e.exportClause,bP).elements)if(!s.get(Dc(t.name))){const r=t.propertyName||t.name;e.moduleSpecifier||o.add(r,t);const i=n.getReferencedImportDeclaration(r)||n.getReferencedValueDeclaration(r);i&&AJ(a,TJ(i),t.name),s.set(Dc(t.name),!0),c=he(c,t.name)}}}function EJ(e,t,n,r){if(R_(e.name))for(const i of e.name.elements)vF(i)||(n=EJ(i,t,n,r));else if(!a_(e.name)){const i=Dc(e.name);t.get(i)||(t.set(i,!0),n=he(n,e.name),tA(e.name)&&AJ(r,TJ(e),e.name))}return n}function AJ(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}function IJ(e){return Qu(e)||9===e.kind||hy(e.kind)||HN(e)}function OJ(e){return!HN(e)&&IJ(e)}function LJ(e){return e>=65&&e<=79}function jJ(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 MJ(e){if(!IF(e))return;const t=Qh(e.expression);return am(t)?t:void 0}function RJ(e,t,n){for(let r=t;r<e.length;r+=1){const t=e[r];if(MJ(t))return n.unshift(r),!0;if($F(t)&&RJ(t.tryBlock.statements,0,n))return n.unshift(r),!0}return!1}function BJ(e,t){const n=[];return RJ(e,t,n),n}function JJ(e,t,n){return M(e.members,(e=>function(e,t,n){return pD(e)&&(!!e.initializer||!t)&&gb(e)===n}(e,t,n)))}function zJ(e){return pD(t=e)&&gb(t)||gD(e);var t}function qJ(e){return M(e.members,zJ)}function UJ(e){return 172===e.kind&&void 0!==e.initializer}function VJ(e){return!mb(e)&&(P_(e)||D_(e))&&$N(e.name)}function WJ(e){let t;if(e){const n=e.parameters,r=n.length>0&&Hv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;e<o;e++){const r=n[e+i];(t||Sb(r))&&(t||(t=new Array(o)),t[e]=Bc(r))}}return t}function HJ(e){const t=Bc(e),n=WJ(qv(e));if(re(t)||re(n))return{decorators:t,parameters:n}}function $J(e,t,n){switch(e.kind){case 177:case 178:return n?function(e,t){if(!e.body)return;const{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}=Qv(t.members,e),a=Sb(n)?n:r&&Sb(r)?r:void 0;if(!a||e!==a)return;const s=Bc(a),c=WJ(o);if(!re(s)&&!re(c))return;return{decorators:s,parameters:c,getDecorators:i&&Bc(i),setDecorators:o&&Bc(o)}}(e,t):KJ(e);case 174:return KJ(e);case 172:return function(e){const t=Bc(e);if(!re(t))return;return{decorators:t}}(e);default:return}}function KJ(e){if(!e.body)return;const t=Bc(e),n=WJ(e);return re(t)||re(n)?{decorators:t,parameters:n}:void 0}function GJ(e,t){for(;e;){const n=t(e);if(void 0!==n)return n;e=e.previous}}function XJ(e){return{data:e}}function QJ(e,t){var n,r;return s_(t)?null==(n=null==e?void 0:e.generatedIdentifiers)?void 0:n.get(XA(t)):null==(r=null==e?void 0:e.identifiers)?void 0:r.get(t.escapedText)}function YJ(e,t,n){s_(t)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(XA(t),n)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(t.escapedText,n))}function ZJ(e,t){return GJ(e,(e=>QJ(e.privateEnv,t)))}var ez,tz=g({"src/compiler/transformers/utilities.ts"(){OK(),xJ=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){var n;return(null==(n=this._map)?void 0:n.delete(e.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(s_(t)||a_(t)){const n=t.emitNode.autoGenerate;if(4==(7&n.flags)){const r=XA(t),i=Cl(r)&&r!==t?e.toKey(r):`(generated@${PB(r)})`;return ZA(!1,n.prefix,i,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return ZA(!1,n.prefix,t,n.suffix,e.toKey)}}return $N(t)?Dc(t).slice(1):Dc(t)}},SJ=class extends xJ{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){const n=this.get(e);n&&(en(n,t),n.length||this.delete(e))}}}});function nz(e,t,n,r,i,o){let a,s,c=e;if(Hb(e))for(a=e.right;ax(e.left)||ox(e.left);){if(!Hb(a))return Sn.checkDefined(qB(a,t,au));c=e=a,a=e.right}const l={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:_,emitBindingOrAssignment:function(e,r,i,a){Sn.assertNode(e,o?HN:au);const s=o?o(e,r,i):cI(n.factory.createAssignment(Sn.checkDefined(qB(e,t,au)),r),i);s.original=a,_(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return Sn.assertEachNode(t,$_),e.createArrayLiteralExpression(J(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return Sn.assertEachNode(t,W_),e.createObjectLiteralExpression(J(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:_z,visitor:t};if(a&&(a=qB(a,t,au),Sn.assert(a),HN(a)&&rz(e,a.escapedText)||iz(e)?a=lz(l,a,!1,c):i?a=lz(l,a,!0,c):Xy(e)&&(c=a)),az(l,e,a,c,Hb(e)),a&&i){if(!re(s))return a;s.push(a)}return n.factory.inlineExpressions(s)||n.factory.createOmittedExpression();function _(e){s=he(s,e)}}function rz(e,t){const n=kA(e);return U_(n)?function(e,t){const n=DA(e);for(const e of n)if(rz(e,t))return!0;return!1}(n,t):!!HN(n)&&n.escapedText===t}function iz(e){const t=wA(e);if(t&&cD(t)&&!Gl(t.expression))return!0;const n=kA(e);return!!n&&U_(n)&&!!b(DA(n),iz)}function oz(e,t,n,r,i,o=!1,a){let s;const c=[],l=[],_={context:n,level:r,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:function(e){s=he(s,e)},emitBindingOrAssignment:u,createArrayBindingOrAssignmentPattern:e=>function(e,t){return Sn.assertEachNode(t,J_),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return Sn.assertEachNode(t,GD),e.createObjectBindingPattern(t)}(n.factory,e),createArrayBindingOrAssignmentElement:e=>function(e,t){return e.createBindingElement(void 0,void 0,t)}(n.factory,e),visitor:t};if(GF(e)){let t=SA(e);t&&(HN(t)&&rz(e,t.escapedText)||iz(e))&&(t=lz(_,Sn.checkDefined(qB(t,_.visitor,au)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(az(_,e,i,e,a),s){const e=n.factory.createTempVariable(void 0);if(o){const t=n.factory.inlineExpressions(s);s=void 0,u(e,t,void 0,void 0)}else{n.hoistVariableDeclaration(e);const t=Ie(c);t.pendingExpressions=he(t.pendingExpressions,n.factory.createAssignment(e,t.value)),be(t.pendingExpressions,s),t.value=e}}for(const{pendingExpressions:e,name:t,value:r,location:i,original:o}of c){const a=n.factory.createVariableDeclaration(t,void 0,void 0,e?n.factory.inlineExpressions(he(e,r)):r);a.original=o,cI(a,i),l.push(a)}return l;function u(e,t,r,i){Sn.assertNode(e,h_),s&&(t=n.factory.inlineExpressions(he(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function az(e,t,n,r,i){const o=kA(t);if(!i){const i=qB(SA(t),e.visitor,au);i?n?(n=function(e,t,n,r){return t=lz(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!OJ(i)&&U_(o)&&(n=lz(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}V_(o)?function(e,t,n,r,i){const o=DA(n),a=o.length;if(1!==a){r=lz(e,r,!z_(t)||0!==a,i)}let s,c;for(let t=0;t<a;t++){const l=o[t];if(TA(l)){if(t===a-1){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const t=e.context.getEmitHelperFactory().createRestHelper(r,o,c,n);az(e,l,t,l)}}else{const t=CA(l);if(!(e.level>=1)||98304&l.transformFlags||98304&kA(l).transformFlags||cD(t)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const o=cz(e,r,t);cD(t)&&(c=he(c,o.argumentExpression)),az(e,l,o,l)}else s=he(s,qB(l,e.visitor,q_))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):H_(o)?function(e,t,n,r,i){const o=DA(n),a=o.length;if(e.level<1&&e.downlevelIteration)r=lz(e,cI(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&TA(o[a-1])?void 0:a),i),!1,i);else if(1!==a&&(e.level<1||0===a)||N(o,vF)){r=lz(e,r,!z_(t)||0!==a,i)}let s,c;for(let t=0;t<a;t++){const n=o[t];if(e.level>=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!sz(n)){e.hasTransformedPriorElement=!0;const t=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(t),c=he(c,[t,n]),s=he(s,e.createArrayBindingOrAssignmentElement(t))}else s=he(s,n);else{if(vF(n))continue;if(TA(n)){if(t===a-1){const i=e.context.factory.createArraySliceCall(r,t);az(e,n,i,n)}}else{const i=e.context.factory.createElementAccessExpression(r,t);az(e,n,i,n)}}}s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n);if(c)for(const[t,n]of c)az(e,n,t,n)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function sz(e){const t=kA(e);if(!t||vF(t))return!0;const n=wA(e);if(n&&!Oy(n))return!1;const r=SA(e);return!(r&&!OJ(r))&&(U_(t)?N(DA(t),sz):HN(t))}function cz(e,t,n){const{factory:r}=e.context;if(cD(n)){const r=lz(e,Sn.checkDefined(qB(n.expression,e.visitor,au)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(Fy(n)){const i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}{const r=e.context.factory.createIdentifier(Dc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function lz(e,t,n,r){if(HN(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(cI(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function _z(e){return e}var uz=g({"src/compiler/transformers/destructuring.ts"(){OK(),ez=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(ez||{})}});function dz(e,t,n=e.createThis()){const r=e.createAssignment(t,n),i=e.createExpressionStatement(r),o=e.createBlock([i],!1),a=e.createClassStaticBlockDeclaration(o);return ew(a).classThis=t,a}function pz(e){var t;if(!gD(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return IF(n)&&Vb(n.expression,!0)&&HN(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function fz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&re(e.members,pz)}function mz(e,t,n,r){if(fz(t))return t;const i=dz(e,n,r);t.name&&cw(i.body.statements[0],t.name);const o=e.createNodeArray([i,...t.members]);cI(o,t.members);const a=YF(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return ew(a).classThis=n,a}var gz=g({"src/compiler/transformers/classThis.ts"(){OK()}});function hz(e,t,n){const r=Sc(uA(n));return(YF(r)||QF(r))&&!r.name&&fb(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function yz(e,t,n){const{factory:r}=e;if(void 0!==n){return{assignedName:r.createStringLiteral(n),name:t}}if(Oy(t)||$N(t)){return{assignedName:r.createStringLiteralFromNode(t),name:t}}if(Oy(t.expression)&&!HN(t.expression)){return{assignedName:r.createStringLiteralFromNode(t.expression),name:t}}const i=r.getGeneratedNameForNode(t);e.hoistVariableDeclaration(i);const o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),a=r.createAssignment(i,o);return{assignedName:i,name:r.updateComputedPropertyName(t,a)}}function vz(e,t,n=e.factory.createThis()){const{factory:r}=e,i=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=r.createExpressionStatement(i),a=r.createBlock([o],!1),s=r.createClassStaticBlockDeclaration(a);return ew(s).assignedName=t,s}function bz(e){var t;if(!gD(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return IF(n)&&CN(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function xz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&re(e.members,bz)}function Sz(e){return!!e.name||xz(e)}function kz(e,t,n,r){if(xz(t))return t;const{factory:i}=e,o=vz(e,n,r);t.name&&cw(o.body.statements[0],t.name);const a=P(t.members,pz)+1,s=t.members.slice(0,a),c=t.members.slice(a),l=i.createNodeArray([...s,o,...c]);return cI(l,t.members),ew(t=YF(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)).assignedName=n,t}function Tz(e,t,n,r){if(r&&FN(n)&&dg(n))return t;const{factory:i}=e,o=uA(t),a=yF(o)?mt(kz(e,o,n),yF):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return i.restoreOuterExpressions(t,a)}function Cz(e,t,n,r){switch(t.kind){case 303:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=yz(e,t.name,r),s=Tz(e,t.initializer,o,n);return i.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 304:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):hz(i,t.name,t.objectAssignmentInitializer),a=Tz(e,t.objectAssignmentInitializer,o,n);return i.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 260:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):hz(i,t.name,t.initializer),a=Tz(e,t.initializer,o,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 169:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):hz(i,t.name,t.initializer),a=Tz(e,t.initializer,o,n);return i.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,a)}(e,t,n,r);case 208:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):hz(i,t.name,t.initializer),a=Tz(e,t.initializer,o,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 172:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=yz(e,t.name,r),s=Tz(e,t.initializer,o,n);return i.updatePropertyDeclaration(t,t.modifiers,a,t.questionToken??t.exclamationToken,t.type,s)}(e,t,n,r);case 226:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):hz(i,t.left,t.right),a=Tz(e,t.right,o,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 277:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):i.createStringLiteral(t.isExportEquals?"":"default"),a=Tz(e,t.expression,o,n);return i.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var wz,Nz=g({"src/compiler/transformers/namedEvaluation.ts"(){OK()}});function Dz(e,t,n,r,i,o){const a=qB(t.tag,n,au);Sn.assert(a);const s=[void 0],c=[],l=[],_=t.template;if(0===o&&!sv(_))return YB(t,n,e);const{factory:u}=e;if(AN(_))c.push(Fz(u,_)),l.push(Pz(u,_,r));else{c.push(Fz(u,_.head)),l.push(Pz(u,_.head,r));for(const e of _.templateSpans)c.push(Fz(u,e.literal)),l.push(Pz(u,e.literal,r)),s.push(Sn.checkDefined(qB(e.expression,n,au)))}const d=e.getEmitHelperFactory().createTemplateObjectHelper(u.createArrayLiteralExpression(c),u.createArrayLiteralExpression(l));if(tO(r)){const e=u.createUniqueName("templateObject");i(e),s[0]=u.createLogicalOr(e,u.createAssignment(e,d))}else s[0]=d;return u.createCallExpression(a,void 0,s)}function Fz(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function Pz(e,t,n){let r=t.rawText;if(void 0===r){Sn.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),r=Gp(n,t);const e=15===t.kind||18===t.kind;r=r.substring(1,r.length-(e?1:2))}return r=r.replace(/\r\n?/g,"\n"),cI(e.createStringLiteral(r),t)}var Ez,Az=g({"src/compiler/transformers/taggedTemplate.ts"(){OK(),wz=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(wz||{})}});function Iz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=HS(c),_=$S(c),u=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?Rz(e):void 0,p=e.onEmitNode,f=e.onSubstituteNode;let m,g,h,y,v,b,x,S;return e.onEmitNode=function(e,t,n){const r=S,i=m;$P(t)&&(m=t);2&x&&function(e){return 267===Sc(e).kind}(t)&&(S|=2);8&x&&function(e){return 266===Sc(e).kind}(t)&&(S|=8);p(e,t,n),S=r,m=i},e.onSubstituteNode=function(e,n){if(n=f(e,n),1===e)return function(e){switch(e.kind){case 80:return function(e){return Ne(e)||e}(e);case 211:case 212:return function(e){return De(e)}(e)}return e}(n);if(UP(n))return function(e){if(2&x){const n=e.name,r=Ne(n);if(r){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return cI(t.createPropertyAssignment(n,i),e)}return cI(t.createPropertyAssignment(n,r),e)}}return e}(n);return n},e.enableSubstitution(211),e.enableSubstitution(212),function(e){if(313===e.kind)return function(e){return t.createBundle(e.sourceFiles.map(k),G(e.prepends,(e=>315===e.kind?$C(e,"js"):e)))}(e);return k(e)};function k(t){if(t.isDeclarationFile)return t;m=t;const n=T(t,R);return Cw(n,e.readEmitHelpers()),m=void 0,n}function T(e,t){const n=y,r=v,i=b;!function(e){switch(e.kind){case 312:case 269:case 268:case 241:y=e,v=void 0;break;case 263:case 262:if(fb(e,128))break;e.name?se(e):Sn.assert(263===e.kind||fb(e,2048))}}(e);const o=t(e);return y!==n&&(v=r),y=n,b=i,o}function C(e){return T(e,w)}function w(e){return 1&e.transformFlags?j(e):e}function N(e){return T(e,D)}function D(n){switch(n.kind){case 272:case 271:case 277:case 278:return function(n){const r=Cc(n);if(r!==n)return 1&n.transformFlags?YB(n,C,e):n;switch(n.kind){case 272:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=qB(e.importClause,de,cP);return n||1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}(n);case 271:return ge(n);case 277:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?YB(t,C,e):void 0}(n);case 278:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||mP(e.exportClause))return e;const n=c.verbatimModuleSyntax||!!e.moduleSpecifier&&(1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues),r=qB(e.exportClause,(e=>function(e,n){return mP(e)?function(e){return t.updateNamespaceExport(e,Sn.checkDefined(qB(e.name,C,HN)))}(e):function(e,n){const r=UB(e.elements,me,xP);return n||re(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n)),Bl);return r?t.updateExportDeclaration(e,void 0,e.isTypeOnly,r,e.moduleSpecifier,e.attributes):void 0}(n);default:Sn.fail("Unhandled ellided statement")}}(n);default:return w(n)}}function F(e){return T(e,P)}function P(e){if(278!==e.kind&&272!==e.kind&&273!==e.kind&&(271!==e.kind||283!==e.moduleReference.kind))return 1&e.transformFlags||fb(e,32)?j(e):e}function E(n){return r=>T(r,(r=>function(n,r){switch(n.kind){case 176:return function(n){if(!X(n))return;return t.updateConstructorDeclaration(n,void 0,$B(n.parameters,C,e),function(n,r){const a=r&&M(r.parameters,(e=>dc(e,r)));if(!re(a))return GB(n,C,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,C),l=BJ(n.statements,c),_=G(a,Y);l.length?Q(s,n.statements,c,l,0,_):(be(s,_),be(s,UB(n.statements,C,Pu,c)));s=t.mergeLexicalEnvironment(s,o());const u=t.createBlock(cI(t.createNodeArray(s),n.statements),!0);return cI(u,n),YC(u,n),u}(n.body,n))}(n);case 172:return function(e,n){const r=33554432&e.flags||fb(e,64);if(r&&(!u||!Sb(e)))return;let i=w_(n)?UB(e.modifiers,r?O:C,A_):UB(e.modifiers,I,A_);if(i=U(i,e,n),r)return t.updatePropertyDeclaration(e,oe(i,t.createModifiersFromModifierFlags(128)),Sn.checkDefined(qB(e.name,C,g_)),void 0,void 0,void 0);return t.updatePropertyDeclaration(e,i,K(e),void 0,void 0,qB(e.initializer,C,au))}(n,r);case 177:return te(n,r);case 178:return ne(n,r);case 174:return Z(n,r);case 175:return YB(n,C,e);case 240:return n;case 181:return;default:return Sn.failBadSyntaxKind(n)}}(r,n)))}function A(e){return t=>T(t,(t=>function(e,t){switch(e.kind){case 303:case 304:case 305:return C(e);case 177:return te(e,t);case 178:return ne(e,t);case 174:return Z(e,t);default:return Sn.failBadSyntaxKind(e)}}(t,e)))}function I(e){return uD(e)?void 0:C(e)}function O(e){return f_(e)?void 0:C(e)}function L(e){if(!uD(e)&&!(28895&Ob(e.kind)||g&&95===e.kind))return e}function j(n){if(Pu(n)&&fb(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 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:case 270:return;case 265:case 264:return t.createNotEmittedStatement(n);case 263:return function(n){const r=function(e){let t=0;re(JJ(e,!0,!0))&&(t|=1);const n=_y(e);n&&106!==uA(n.expression).kind&&(t|=64);_g(u,e)&&(t|=2);lg(u,e)&&(t|=4);ye(e)?t|=8:!function(e){return ve(e)&&fb(e,2048)}(e)?xe(e)&&(t|=16):t|=32;return t}(n),i=l<=1&&!!(7&r);if(!function(e){return Sb(e)||re(e.typeParameters)||re(e.heritageClauses,B)||re(e.members,B)}(n)&&!_g(u,n)&&!ye(n))return t.updateClassDeclaration(n,UB(n.modifiers,L,f_),n.name,void 0,UB(n.heritageClauses,C,JP),UB(n.members,E(n),C_));i&&e.startLexicalEnvironment();const o=i||8&r;let a=UB(n.modifiers,o?O:C,A_);2&r&&(a=q(a,n));const s=o&&!n.name||4&r||1&r,c=s?n.name??t.getGeneratedNameForNode(n):n.name,_=t.updateClassDeclaration(n,a,c,void 0,UB(n.heritageClauses,C,JP),z(n));let d,p=tf(n);1&r&&(p|=64);if(rw(_,p),i){const r=[_],i=Sx(ys(m.text,n.members.end),20),o=t.getInternalName(n),a=t.createPartiallyEmittedExpression(o);DT(a,i.end),rw(a,3072);const s=t.createReturnStatement(a);NT(s,i.pos),rw(s,3840),r.push(s),Jp(r,e.endLexicalEnvironment());const c=t.createImmediatelyInvokedArrowFunction(r);ow(c,1);const l=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,c);YC(l,n);const u=t.createVariableStatement(void 0,t.createVariableDeclarationList([l],1));YC(u,n),fw(u,n),cw(u,vx(n)),fA(u),d=u}else d=_;if(o){if(8&r)return[d,Se(n)];if(32&r)return[d,t.createExportDefault(t.getLocalName(n,!1,!0))];if(16&r)return[d,t.createExternalModuleExport(t.getDeclarationName(n,!1,!0))]}return d}(n);case 231:return function(e){let n=UB(e.modifiers,O,A_);_g(u,e)&&(n=q(n,e));return t.updateClassExpression(e,n,e.name,void 0,UB(e.heritageClauses,C,JP),z(e))}(n);case 298:return function(t){if(119===t.token)return;return YB(t,C,e)}(n);case 233:return function(e){return t.updateExpressionWithTypeArguments(e,Sn.checkDefined(qB(e.expression,C,eu)),void 0)}(n);case 210:return function(e){return t.updateObjectLiteralExpression(e,UB(e.properties,A(e),L_))}(n);case 176:case 172:case 174:case 177:case 178:case 175:return Sn.fail("Class and object literal elements must be visited with their respective visitors");case 262:return function(n){if(!X(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,UB(n.modifiers,L,f_),n.asteriskToken,n.name,void 0,$B(n.parameters,C,e),void 0,GB(n.body,C,e)||t.createBlock([]));if(ye(n)){const e=[r];return function(e,t){e.push(Se(t))}(e,n),e}return r}(n);case 218:return function(n){if(!X(n))return t.createOmittedExpression();const r=t.updateFunctionExpression(n,UB(n.modifiers,L,f_),n.asteriskToken,n.name,void 0,$B(n.parameters,C,e),void 0,GB(n.body,C,e)||t.createBlock([]));return r}(n);case 219:return function(n){const r=t.updateArrowFunction(n,UB(n.modifiers,L,f_),void 0,$B(n.parameters,C,e),void 0,n.equalsGreaterThanToken,GB(n.body,C,e));return r}(n);case 169:return function(e){if(Hv(e))return;const n=t.updateParameterDeclaration(e,UB(e.modifiers,(e=>uD(e)?C(e):void 0),A_),e.dotDotDotToken,Sn.checkDefined(qB(e.name,C,h_)),void 0,void 0,qB(e.initializer,C,au));n!==e&&(fw(n,e),cI(n,bx(e)),cw(n,bx(e)),rw(n.name,64));return n}(n);case 217:return function(n){const r=uA(n.expression,-7);if(su(r)){const e=qB(n.expression,C,au);return Sn.assert(e),t.createPartiallyEmittedExpression(e,n)}return YB(n,C,e)}(n);case 216:case 234:return function(e){const n=qB(e.expression,C,au);return Sn.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 238:return function(e){const n=qB(e.expression,C,au);return Sn.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 213:return function(e){return t.updateCallExpression(e,Sn.checkDefined(qB(e.expression,C,au)),void 0,UB(e.arguments,C,au))}(n);case 214:return function(e){return t.updateNewExpression(e,Sn.checkDefined(qB(e.expression,C,au)),void 0,UB(e.arguments,C,au))}(n);case 215:return function(e){return t.updateTaggedTemplateExpression(e,Sn.checkDefined(qB(e.tag,C,au)),void 0,Sn.checkDefined(qB(e.template,C,Z_)))}(n);case 235:return function(e){const n=qB(e.expression,C,eu);return Sn.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 266:return function(e){if(!function(e){return!em(e)||uk(c)}(e))return t.createNotEmittedStatement(e);const n=[];let i=4;const a=le(n,e);a&&(4===_&&y===m||(i|=1024));const s=Ce(e),l=we(e),u=ye(e)?t.getExternalModuleOrNamespaceExportName(h,e,!1,!0):t.getDeclarationName(e,!1,!0);let d=t.createLogicalOr(u,t.createAssignment(u,t.createObjectLiteralExpression()));if(ye(e)){const n=t.getLocalName(e,!1,!0);d=t.createAssignment(n,d)}const p=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,s)],void 0,function(e,n){const i=h;h=n;const a=[];r();const s=J(e.members,ae);return Jp(a,o()),be(a,s),h=i,t.createBlock(cI(t.createNodeArray(a),e.members),!0)}(e,l)),void 0,[d]));YC(p,e),a&&(gw(p,void 0),vw(p,void 0));return cI(p,e),iw(p,i),n.push(p),n}(n);case 243:return function(n){if(ye(n)){const e=jx(n.declarationList);if(0===e.length)return;return cI(t.createExpressionStatement(t.inlineExpressions(J(e,ie))),n)}return YB(n,C,e)}(n);case 260:return function(e){const n=t.updateVariableDeclaration(e,Sn.checkDefined(qB(e.name,C,h_)),void 0,void 0,qB(e.initializer,C,au));e.type&&Aw(n.name,e.type);return n}(n);case 267:return _e(n);case 271:return ge(n);case 285:return function(e){return t.updateJsxSelfClosingElement(e,Sn.checkDefined(qB(e.tagName,C,Iu)),void 0,Sn.checkDefined(qB(e.attributes,C,OP)))}(n);case 286:return function(e){return t.updateJsxOpeningElement(e,Sn.checkDefined(qB(e.tagName,C,Iu)),void 0,Sn.checkDefined(qB(e.attributes,C,OP)))}(n);default:return YB(n,C,e)}}function R(n){const r=pk(c,"alwaysStrict")&&!(tO(n)&&_>=5)&&!Zf(n);return t.updateSourceFile(n,HB(n.statements,N,e,0,r))}function B(e){return!!(8192&e.transformFlags)}function z(e){const n=UB(e.members,E(e),C_);let r;const i=qv(e),o=i&&M(i.parameters,(e=>dc(e,i)));if(o)for(const e of o){const n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);YC(n,e),r=he(r,n)}return r?(r=be(r,n),cI(t.createNodeArray(r),e.members)):n}function q(e,n){const r=V(n,n);if(re(r)){const n=[];be(n,yn(e,$A)),be(n,M(e,uD)),be(n,r),be(n,M(vn(e,$A),f_)),e=cI(t.createNodeArray(n),e)}return e}function U(e,n,r){if(w_(r)&&ug(u,n,r)){const i=V(n,r);if(re(i)){const n=[];be(n,M(e,uD)),be(n,i),be(n,M(e,f_)),e=cI(t.createNodeArray(n),e)}}return e}function V(e,r){if(u)return Ez?function(e,r){if(d){let i;if(W(e)){i=he(i,t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))}if($(e)){i=he(i,t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r))))}if(H(e)){i=he(i,t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e))))}if(i){const e=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(i,!0));return[t.createDecorator(e)]}}}(e,r):function(e,r){if(d){let i;if(W(e)){const o=n().createMetadataHelper("design:type",d.serializeTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=he(i,t.createDecorator(o))}if($(e)){const o=n().createMetadataHelper("design:paramtypes",d.serializeParameterTypesOfNode({currentLexicalScope:y,currentNameScope:r},e,r));i=he(i,t.createDecorator(o))}if(H(e)){const o=n().createMetadataHelper("design:returntype",d.serializeReturnTypeOfNode({currentLexicalScope:y,currentNameScope:r},e));i=he(i,t.createDecorator(o))}return i}}(e,r)}function W(e){const t=e.kind;return 174===t||177===t||178===t||172===t}function H(e){return 174===e.kind}function $(e){switch(e.kind){case 263:case 231:return void 0!==qv(e);case 174:case 177:case 178:return!0}return!1}function K(e){const n=e.name;if(cD(n)&&(!gb(e)&&b||Sb(e)&&u)){const e=qB(n.expression,C,au);Sn.assert(e);if(!OJ(jl(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return Sn.checkDefined(qB(n,C,g_))}function X(e){return!Ip(e.body)}function Q(e,n,r,i,o,a){const s=i[o],c=n[s];if(be(e,UB(n,C,Pu,r,s-r)),$F(c)){const n=[];Q(n,c.tryBlock.statements,0,i,o+1,a);cI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),qB(c.catchClause,C,zP),qB(c.finallyBlock,C,PF)))}else be(e,UB(n,C,Pu,s,1)),be(e,a);be(e,UB(n,C,Pu,s+1))}function Y(e){const n=e.name;if(!HN(n))return;const r=AT(cI(t.cloneNode(n),n),n.parent);rw(r,3168);const i=AT(cI(t.cloneNode(n),n),n.parent);return rw(i,3072),fA(nw(cI(YC(t.createExpressionStatement(t.createAssignment(cI(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),yx(e,-1))))}function Z(n,r){if(!(1&n.transformFlags))return n;if(!X(n))return;let i=w_(r)?UB(n.modifiers,C,A_):UB(n.modifiers,I,A_);return i=U(i,n,r),t.updateMethodDeclaration(n,i,n.asteriskToken,K(n),void 0,void 0,$B(n.parameters,C,e),void 0,GB(n.body,C,e))}function ee(e){return!(Ip(e.body)&&fb(e,64))}function te(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let i=w_(r)?UB(n.modifiers,C,A_):UB(n.modifiers,I,A_);return i=U(i,n,r),t.updateGetAccessorDeclaration(n,i,K(n),$B(n.parameters,C,e),void 0,GB(n.body,C,e)||t.createBlock([]))}function ne(n,r){if(!(1&n.transformFlags))return n;if(!ee(n))return;let i=w_(r)?UB(n.modifiers,C,A_):UB(n.modifiers,I,A_);return i=U(i,n,r),t.updateSetAccessorDeclaration(n,i,K(n),$B(n.parameters,C,e),GB(n.body,C,e)||t.createBlock([]))}function ie(n){const r=n.name;return R_(r)?nz(n,C,e,0,!1,ke):cI(t.createAssignment(Te(r),Sn.checkDefined(qB(n.initializer,C,au))),n)}function ae(n){const r=function(e,n){const r=e.name;return $N(r)?t.createIdentifier(""):cD(r)?n&&!OJ(r.expression)?t.getGeneratedNameForNode(r):r.expression:HN(r)?t.createStringLiteral(Dc(r)):t.cloneNode(r)}(n,!1),i=function(n){const r=s.getConstantValue(n);return void 0!==r?"string"==typeof r?t.createStringLiteral(r):t.createNumericLiteral(r):(0==(8&x)&&(x|=8,e.enableSubstitution(80)),n.initializer?Sn.checkDefined(qB(n.initializer,C,au)):t.createVoidZero())}(n),o=t.createAssignment(t.createElementAccessExpression(h,r),i),a=11===i.kind?o:t.createAssignment(t.createElementAccessExpression(h,o),r);return cI(t.createExpressionStatement(cI(a,n)),n)}function se(e){v||(v=new Map);const t=ce(e);v.has(t)||v.set(t,e)}function ce(e){return Sn.assertNode(e.name,HN),e.name.escapedText}function le(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=312===y.kind?0:1,o=t.createVariableStatement(UB(n.modifiers,L,f_),t.createVariableDeclarationList([r],i));return YC(r,n),gw(r,void 0),vw(r,void 0),YC(o,n),se(n),!!function(e){if(v){const t=ce(e);return v.get(t)===e}return!0}(n)&&(266===n.kind?cw(o.declarationList,n):cw(o,n),fw(o,n),iw(o,2048),e.push(o),!0)}function _e(n){if(!function(e){const t=Cc(e,nP);return!t||AB(t,uk(c))}(n))return t.createNotEmittedStatement(n);Sn.assertNode(n.name,HN,"A TypeScript namespace should have an Identifier name."),0==(2&x)&&(x|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267));const i=[];let a=4;const s=le(i,n);s&&(4===_&&y===m||(a|=1024));const l=Ce(n),u=we(n),d=ye(n)?t.getExternalModuleOrNamespaceExportName(h,n,!1,!0):t.getDeclarationName(n,!1,!0);let p=t.createLogicalOr(d,t.createAssignment(d,t.createObjectLiteralExpression()));if(ye(n)){const e=t.getLocalName(n,!1,!0);p=t.createAssignment(e,p)}const f=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,l)],void 0,function(e,n){const i=h,a=g,s=v;h=n,g=e,v=void 0;const c=[];let l,_;if(r(),e.body)if(268===e.body.kind)T(e.body,(e=>be(c,UB(e.statements,F,Pu)))),l=e.body.statements,_=e.body;else{const t=_e(e.body);t&&(_t(t)?be(c,t):c.push(t));l=yx(ue(e).body.statements,-1)}Jp(c,o()),h=i,g=a,v=s;const u=t.createBlock(cI(t.createNodeArray(c),l),!0);cI(u,_),e.body&&268===e.body.kind||rw(u,3072|tf(u));return u}(n,u)),void 0,[p]));return YC(f,n),s&&(gw(f,void 0),vw(f,void 0)),cI(f,n),iw(f,a),i.push(f),i}function ue(e){if(267===e.body.kind){return ue(e.body)||e.body}}function de(e){Sn.assert(!e.isTypeOnly);const n=Fe(e)?e.name:void 0,r=qB(e.namedBindings,pe,xu);return n||r?t.updateImportClause(e,!1,n,r):void 0}function pe(e){if(274===e.kind)return Fe(e)?e:void 0;{const n=c.verbatimModuleSyntax||c.preserveValueImports&&(1===c.importsNotUsedAsValues||2===c.importsNotUsedAsValues),r=UB(e.elements,fe,hP);return n||re(r)?t.updateNamedImports(e,r):void 0}}function fe(e){return!e.isTypeOnly&&Fe(e)?e:void 0}function me(e){return e.isTypeOnly||!c.verbatimModuleSyntax&&!s.isValueAliasDeclaration(e)?void 0:e}function ge(n){if(n.isTypeOnly)return;if(yg(n)){const r=Fe(n);return r||1!==c.importsNotUsedAsValues?r?YB(n,C,e):void 0:YC(cI(t.createImportDeclaration(void 0,void 0,n.moduleReference.expression,void 0),n),n)}if(!function(e){return Fe(e)||!tO(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=XE(t,n.moduleReference);return rw(r,7168),xe(n)||!ye(n)?YC(cI(t.createVariableStatement(UB(n.modifiers,L,f_),t.createVariableDeclarationList([YC(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):YC((i=n.name,o=r,a=n,cI(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,i,!1,!0),o)),a)),n);var i,o,a}function ye(e){return void 0!==g&&fb(e,32)}function ve(e){return void 0===g&&fb(e,32)}function xe(e){return ve(e)&&!fb(e,2048)}function Se(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));cw(n,gx(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return cw(r,gx(-1,e.end)),r}function ke(e,n,r){return cI(t.createAssignment(Te(e),n),r)}function Te(e){return t.getNamespaceMemberName(h,e,!1,!0)}function Ce(e){const n=t.getGeneratedNameForNode(e);return cw(n,e.name),n}function we(e){return t.getGeneratedNameForNode(e)}function Ne(e){if(x&S&&!a_(e)&&!tA(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&312!==n.kind){if(2&S&&267===n.kind||8&S&&266===n.kind)return cI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}}function De(e){const n=function(e){if(YS(c))return;return YD(e)||ZD(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){kw(e,n);const i="string"==typeof n?t.createStringLiteral(n):n<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(Math.abs(n))):t.createNumericLiteral(n);if(!c.removeComments){const t=Sc(e,sS);bw(i,3,` ${r=Yp(t),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}function Fe(e){return c.verbatimModuleSyntax||Tg(e)||(c.preserveValueImports?s.isValueAliasDeclaration(e):s.isReferencedAliasDeclaration(e))}}var Oz=g({"src/compiler/transformers/ts.ts"(){OK(),Ez=!1}});function Lz(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),_=HS(l),u=mk(l),d=!!l.experimentalDecorators,p=!u,f=u&&_<9,m=p||f,g=_<9,h=_<99?-1:u?0:3,y=_<9,v=y&&_>=2,b=m||g||-1===h,x=e.onSubstituteNode;e.onSubstituteNode=function(e,n){if(n=x(e,n),1===e)return function(e){switch(e.kind){case 80:return function(e){return function(e){if(1&k&&536870912&c.getNodeCheckFlags(e)){const n=c.getReferencedValueDeclaration(e);if(n){const r=T[n.id];if(r){const n=t.cloneNode(r);return cw(n,e),fw(n,e),n}}}return}(e)||e}(e);case 110:return function(e){if(2&k&&(null==N?void 0:N.data)&&!E.has(e)){const{facts:n,classConstructor:r,classThis:i}=N.data,o=O?i??r:r;if(o)return cI(YC(t.cloneNode(o),e),e);if(1&n&&d)return t.createParenthesizedExpression(t.createVoidZero())}return e}(e)}return e}(n);return n};const S=e.onEmitNode;e.onEmitNode=function(e,t,n){const r=Sc(t),i=P.get(r);if(i){const o=N,a=L;return N=i,L=O,O=!(gD(r)&&32&nf(r)),S(e,t,n),O=L,L=a,void(N=o)}switch(t.kind){case 218:if(aF(r)||524288&tf(t))break;case 262:case 176:case 177:case 178:case 174:case 172:{const r=N,i=L;return N=void 0,L=O,O=!1,S(e,t,n),O=L,L=i,void(N=r)}case 167:{const r=N,i=O;return N=null==N?void 0:N.previous,O=L,S(e,t,n),O=i,void(N=r)}}S(e,t,n)};let k,T,C,w,N,F=!1;const P=new Map,E=new Set;let A,I,O=!1,L=!1;return wJ(e,(function(t){if(t.isDeclarationFile)return t;if(N=void 0,F=!!(32&nf(t)),!b&&!F)return t;const n=YB(t,R,e);return Cw(n,e.readEmitHelpers()),n}));function j(e){return 129===e.kind?te()?void 0:e:ft(e,f_)}function R(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 129:return Sn.fail("Use `modifierVisitor` instead.");case 263:return function(e){return ge(e,ye)}(n);case 231:return function(e){return ge(e,ve)}(n);case 175:case 172:return Sn.fail("Use `classElementVisitor` instead.");case 303:case 260:case 169:case 208:return function(t){Wy(t,_e)&&(t=Cz(e,t));return YB(t,R,e)}(n);case 243:return function(t){const n=w;w=[];const r=YB(t,R,e),i=re(w)?[r,...w]:r;return w=n,i}(n);case 277:return function(t){Wy(t,_e)&&(t=Cz(e,t,!0,t.isExportEquals?"":"default"));return YB(t,R,e)}(n);case 81:return function(e){if(!g)return e;if(Pu(e.parent))return e;return YC(t.createIdentifier(""),e)}(n);case 211:return function(n){if($N(n.name)){const e=Re(n.name);if(e)return cI(YC(oe(e,n.expression),n),n)}if(v&&I&&eg(n)&&HN(n.name)&&jz(I)&&(null==N?void 0:N.data)){const{classConstructor:e,superClassReference:r,facts:i}=N.data;if(1&i)return Fe(n);if(e&&r){const i=t.createReflectGetCall(r,t.createStringLiteralFromNode(n.name),e);return YC(i,n.expression),cI(i,n.expression),i}}return YB(n,R,e)}(n);case 212:return function(n){if(v&&I&&eg(n)&&jz(I)&&(null==N?void 0:N.data)){const{classConstructor:e,superClassReference:r,facts:i}=N.data;if(1&i)return Fe(n);if(e&&r){const i=t.createReflectGetCall(r,qB(n.argumentExpression,R,au),e);return YC(i,n.expression),cI(i,n.expression),i}}return YB(n,R,e)}(n);case 224:case 225:return se(n,!1);case 226:return ue(n,!1);case 217:return de(n,!1);case 213:return function(n){var i;if(__(n.expression)&&Re(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,_);return Fl(n)?t.updateCallChain(n,t.createPropertyAccessChain(qB(i,R,au),n.questionDotToken,"call"),void 0,void 0,[qB(e,R,au),...UB(n.arguments,R,au)]):t.updateCallExpression(n,t.createPropertyAccessExpression(qB(i,R,au),"call"),void 0,[qB(e,R,au),...UB(n.arguments,R,au)])}if(v&&I&&eg(n.expression)&&jz(I)&&(null==(i=null==N?void 0:N.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall(qB(n.expression,R,au),N.data.classConstructor,UB(n.arguments,R,au));return YC(e,n),cI(e,n),e}return YB(n,R,e)}(n);case 244:return function(e){return t.updateExpressionStatement(e,qB(e.expression,z,au))}(n);case 215:return function(n){var i;if(__(n.tag)&&Re(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,_);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(qB(i,R,au),"bind"),void 0,[qB(e,R,au)]),void 0,qB(n.template,R,Z_))}if(v&&I&&eg(n.tag)&&jz(I)&&(null==(i=null==N?void 0:N.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall(qB(n.tag,R,au),N.data.classConstructor,[]);return YC(e,n),cI(e,n),t.updateTaggedTemplateExpression(n,e,void 0,qB(n.template,R,Z_))}return YB(n,R,e)}(n);case 248:return function(n){return t.updateForStatement(n,qB(n.initializer,z,hu),qB(n.condition,R,au),qB(n.incrementor,z,au),XB(n.statement,R,e))}(n);case 110:return function(e){if(y&&I&&gD(I)&&(null==N?void 0:N.data)){const{classThis:t,classConstructor:n}=N.data;return t??n??e}return e}(n);case 262:case 218:return Q(void 0,B,n);case 176:case 174:case 177:case 178:return Q(n,B,n);default:return B(n)}}function B(t){return YB(t,R,e)}function z(e){switch(e.kind){case 224:case 225:return se(e,!0);case 226:return ue(e,!0);case 361:return function(e,n){const r=n?QB(e.elements,z):QB(e.elements,R,z);return t.updateCommaListExpression(e,r)}(e,!0);case 217:return de(e,!0);default:return R(e)}}function q(n){switch(n.kind){case 298:return YB(n,q,e);case 233:return function(n){var i;if(4&((null==(i=null==N?void 0:N.data)?void 0:i.facts)||0)){const e=t.createTempVariable(r,!0);return Pe().superClassReference=e,t.updateExpressionWithTypeArguments(n,t.createAssignment(e,qB(n.expression,R,au)),void 0)}return YB(n,R,e)}(n);default:return R(n)}}function U(e){switch(e.kind){case 210:case 209:return Ue(e);default:return R(e)}}function V(e){switch(e.kind){case 176:return Q(e,K,e);case 177:case 178:case 174:return Q(e,X,e);case 172:return Q(e,ne,e);case 175:return Q(e,xe,e);case 167:return $(e);case 240:return e;default:return A_(e)?j(e):R(e)}}function W(e){return 167===e.kind?$(e):R(e)}function H(e){switch(e.kind){case 172:return ee(e);case 177:case 178:return V(e);default:Sn.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function $(e){const n=qB(e.expression,R,au);return t.updateComputedPropertyName(e,function(e){return re(C)&&(iF(e)?(C.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(C))):(C.push(e),e=t.inlineExpressions(C)),C=void 0),e}(n))}function K(e){return A?ke(e,A):B(e)}function G(e){return!!g||!!(gb(e)&&32&nf(e))}function X(n){if(Sn.assert(!Sb(n)),!l_(n)||!G(n))return YB(n,V,e);const r=Re(n.name);if(Sn.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n;const i=function(e){Sn.assert($N(e.name));const t=Re(e.name);if(Sn.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(Uu(e))return t.getterName;if(qu(e))return t.setterName}}(n);i&&Ae().push(t.createAssignment(i,t.createFunctionExpression(M(n.modifiers,(e=>f_(e)&&!eD(e)&&!rD(e))),n.asteriskToken,i,void 0,$B(n.parameters,R,e),void 0,GB(n.body,R,e))))}function Q(e,t,n){if(e!==I){const r=I;I=e;const i=t(n);return I=r,i}return t(n)}function Y(e){const n=pw(e),i=sw(e),o=e.name;let a=o,s=o;if(cD(o)&&!OJ(o.expression)){const e=rI(o);if(e)a=t.updateComputedPropertyName(o,qB(o.expression,R,au)),s=t.updateComputedPropertyName(o,e.left);else{const e=t.createTempVariable(r);cw(e,o.expression);const n=qB(o.expression,R,au),i=t.createAssignment(e,n);cw(i,o.expression),a=t.updateComputedPropertyName(o,i),s=t.updateComputedPropertyName(o,e)}}const c=UB(e.modifiers,j,f_),l=eI(t,e,c,e.initializer);YC(l,e),rw(l,3072),cw(l,i);const _=mb(e)?function(){const e=Pe(),t=e.classThis??e.classConstructor??(null==A?void 0:A.name);return Sn.checkDefined(t)}():t.createThis(),u=tI(t,e,c,a,_);YC(u,e),fw(u,n),cw(u,i);const d=t.createModifiersFromModifierFlags(Ib(c)),p=nI(t,e,d,s,_);return YC(p,e),rw(p,3072),cw(p,i),VB([l,u,p],H,C_)}function Z(e){if(!m||D_(e))return t.updatePropertyDeclaration(e,UB(e.modifiers,j,f_),qB(e.name,W,g_),void 0,void 0,qB(e.initializer,R,au));{const n=function(e,n){if(cD(e)){const i=rI(e),o=qB(e.expression,R,au),a=jl(o),l=OJ(a);if(!(!!i||Vb(a)&&a_(a.left))&&!l&&n){const n=t.getGeneratedNameForNode(e);return 32768&c.getNodeCheckFlags(e)?s(n):r(n),t.createAssignment(n,o)}return l||HN(a)?void 0:o}}(e.name,!!e.initializer||u);if(n&&Ae().push(...oI(n)),mb(e)&&!g){const n=we(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return YC(r,e),fw(r,e),fw(n,{pos:-1,end:-1}),gw(n,void 0),vw(n,void 0),r}}}}function ee(n){return Sn.assert(!Sb(n),"Decorators should already have been transformed and elided."),l_(n)?function(n){if(!G(n))return p&&!mb(n)&&(null==N?void 0:N.data)&&16&N.data.facts?t.updatePropertyDeclaration(n,UB(n.modifiers,R,A_),n.name,void 0,void 0,void 0):(Wy(n,_e)&&(n=Cz(e,n)),t.updatePropertyDeclaration(n,UB(n.modifiers,j,f_),qB(n.name,W,g_),void 0,void 0,qB(n.initializer,R,au)));{const e=Re(n.name);if(Sn.assert(e,"Undeclared private name for property declaration."),!e.isValid)return n;if(e.isStatic&&!g){const e=we(n,t.createThis());if(e)return t.createClassStaticBlockDeclaration(t.createBlock([e],!0))}}}(n):Z(n)}function te(){return-1===h||3===h&&!!(null==N?void 0:N.data)&&!!(16&N.data.facts)}function ne(e){return D_(e)&&(te()||gb(e)&&32&nf(e))?Y(e):ee(e)}function ie(e){if(I&&gb(I)&&N_(I)&&D_(Sc(I))){const t=uA(e);110===t.kind&&E.add(t)}}function oe(e,t){return ie(t=qB(t,R,au)),ae(e,t)}function ae(e,t){switch(fw(t,yx(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 Sn.fail("Access helpers should not be created for untransformed private elements");default:Sn.assertNever(e,"Unknown private element type")}}function se(n,i){if(46===n.operator||47===n.operator){const e=Qh(n.operand);if(__(e)){let o;if(o=Re(e.name)){const a=qB(e.expression,R,au);ie(a);const{readExpression:s,initializeExpression:c}=ce(a);let l=oe(o,s);const _=uF(n)||i?void 0:t.createTempVariable(r);return l=ZE(t,n,l,r,_),l=pe(o,c||s,l,64),YC(l,n),cI(l,n),_&&(l=t.createComma(l,_),cI(l,n)),l}}else if(v&&I&&eg(e)&&jz(I)&&(null==N?void 0:N.data)){const{classConstructor:o,superClassReference:a,facts:s}=N.data;if(1&s){const r=Fe(e);return uF(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(YD(e)?HN(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):OJ(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,qB(e.argumentExpression,R,au))),s&&c){let l=t.createReflectGetCall(a,c,o);cI(l,e);const _=i?void 0:t.createTempVariable(r);return l=ZE(t,n,l,r,_),l=t.createReflectSetCall(a,s,l,o),YC(l,n),cI(l,n),_&&(l=t.createComma(l,_),cI(l,n)),l}}}}return YB(n,R,e)}function ce(e){const n=Xy(e)?e:t.cloneNode(e);if(110===e.kind&&E.has(e)&&E.add(n),OJ(e))return{readExpression:n,initializeExpression:void 0};const i=t.createTempVariable(r);return{readExpression:i,initializeExpression:t.createAssignment(i,n)}}function le(e){if(N&&P.set(Sc(e),N),g){if(pz(e)){const t=qB(e.body.statements[0].expression,R,au);if(Vb(t,!0)&&t.left===t.right)return;return t}if(bz(e))return qB(e.body.statements[0].expression,R,au);o();let n=Q(e,(e=>UB(e,R,Pu)),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return YC(Qh(r.expression),e),iw(Qh(r.expression),4),YC(r,e),cI(r,e),r}}function _e(e){if(yF(e)&&!e.name){const t=qJ(e);if(re(t,bz))return!1;return(g||!!nf(e))&&re(t,(e=>gD(e)||l_(e)||m&&UJ(e)))}return!1}function ue(i,o){if(Hb(i)){const e=C;C=void 0,i=t.updateBinaryExpression(i,qB(i.left,U,au),i.operatorToken,qB(i.right,R,au));const n=re(C)?t.inlineExpressions(me([...C,i])):i;return C=e,n}if(Vb(i)){Wy(i,_e)&&(i=Cz(e,i),Sn.assertNode(i,Vb));const n=uA(i.left,9);if(__(n)){const e=Re(n.name);if(e)return cI(YC(pe(e,n.expression,i.right,i.operatorToken.kind),i),i)}else if(v&&I&&eg(i.left)&&jz(I)&&(null==N?void 0:N.data)){const{classConstructor:e,superClassReference:n,facts:a}=N.data;if(1&a)return t.updateBinaryExpression(i,Fe(i.left),i.operatorToken,qB(i.right,R,au));if(e&&n){let a=ZD(i.left)?qB(i.left.argumentExpression,R,au):HN(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=qB(i.right,R,au);if(LJ(i.operatorToken.kind)){let o=a;OJ(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);YC(c,i.left),cI(c,i.left),s=t.createBinaryExpression(c,jJ(i.operatorToken.kind),s),cI(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),cI(c,i)),s=t.createReflectSetCall(n,a,s,e),YC(s,i),cI(s,i),c&&(s=t.createComma(s,c),cI(s,i)),s}}}}return function(e){return $N(e.left)&&103===e.operatorToken.kind}(i)?function(t){const r=Re(t.left);if(r){const e=qB(t.right,R,au);return YC(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return YB(t,R,e)}(i):YB(i,R,e)}function de(e,n){const r=n?z:R,i=qB(e.expression,r,au);return t.updateParenthesizedExpression(e,i)}function pe(e,r,i,o){if(r=qB(r,R,au),i=qB(i,R,au),ie(r),LJ(o)){const{readExpression:n,initializeExpression:a}=ce(r);r=a||n,i=t.createBinaryExpression(ae(e,n),jJ(o),i)}switch(fw(r,yx(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 Sn.fail("Access helpers should not be created for untransformed private elements");default:Sn.assertNever(e,"Unknown private element type")}}function fe(e){return M(e.members,VJ)}function ge(n,r){var i;const o=A,a=C,s=N;A=n,C=void 0,N={previous:N,data:void 0};const l=32&nf(n);if(g||l){const e=Mc(n);if(e&&HN(e))Ee().data.className=e;else if((null==(i=n.emitNode)?void 0:i.assignedName)&&FN(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&HN(n.emitNode.assignedName.textSourceNode))Ee().data.className=n.emitNode.assignedName.textSourceNode;else if(Os(n.emitNode.assignedName.text,_)){const e=t.createIdentifier(n.emitNode.assignedName.text);Ee().data.className=e}}if(g){const e=fe(n);re(e)&&(Ee().data.weakSetName=je("instances",e[0].name))}const u=function(e){var t;let n=0;const r=Sc(e);YF(r)&&_g(d,r)&&(n|=1),g&&(fz(e)||xz(e))&&(n|=2);let i=!1,o=!1,a=!1,s=!1;for(const r of e.members)mb(r)?(r.name&&($N(r.name)||D_(r))&&g?n|=2:!D_(r)||-1!==h||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(pD(r)||gD(r))&&(y&&16384&r.transformFlags&&(n|=8,1&n||(n|=2)),v&&134217728&r.transformFlags&&(1&n||(n|=6)))):yb(Sc(r))||(D_(r)?(s=!0,a||(a=l_(r))):l_(r)?(a=!0,262144&c.getNodeCheckFlags(r)&&(n|=2)):pD(r)&&(i=!0,o||(o=!!r.initializer)));return(f&&i||p&&o||g&&a||g&&s&&-1===h)&&(n|=16),n}(n);u&&(Pe().facts=u),8&u&&0==(2&k)&&(k|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167));const m=r(n,u);return N=null==N?void 0:N.previous,Sn.assert(N===s),A=o,C=a,m}function ye(e,n){var i,o;let a;if(2&n)if(g&&(null==(i=e.emitNode)?void 0:i.classThis))Pe().classConstructor=e.emitNode.classThis,a=t.createAssignment(e.emitNode.classThis,t.getInternalName(e));else{const n=t.createTempVariable(r,!0);Pe().classConstructor=t.cloneNode(n),a=t.createAssignment(n,t.getInternalName(e))}(null==(o=e.emitNode)?void 0:o.classThis)&&(Pe().classThis=e.emitNode.classThis);const s=262144&c.getNodeCheckFlags(e),l=fb(e,32),_=fb(e,2048);let u=UB(e.modifiers,j,f_);const d=UB(e.heritageClauses,q,JP),{members:f,prologue:m}=Se(e),h=[];if(a&&Ae().unshift(a),re(C)&&h.push(t.createExpressionStatement(t.inlineExpressions(C))),p||g||32&nf(e)){const n=qJ(e);re(n)&&Ce(h,n,t.getInternalName(e))}h.length>0&&l&&_&&(u=UB(u,(e=>$A(e)?void 0:e),f_),h.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=Pe().classConstructor;s&&y&&(De(),T[TJ(e)]=y);const v=t.updateClassDeclaration(e,u,e.name,void 0,d,f);return h.unshift(v),m&&h.unshift(t.createExpressionStatement(m)),h}function ve(e,n){var i,o,a;const l=!!(1&n),_=qJ(e),u=c.getNodeCheckFlags(e),d=262144&u;let p;function f(){var n;if(g&&(null==(n=e.emitNode)?void 0:n.classThis))return Pe().classConstructor=e.emitNode.classThis;const i=32768&u,o=t.createTempVariable(i?s:r,!0);return Pe().classConstructor=t.cloneNode(o),o}(null==(i=e.emitNode)?void 0:i.classThis)&&(Pe().classThis=e.emitNode.classThis),2&n&&(p??(p=f()));const h=UB(e.modifiers,j,f_),y=UB(e.heritageClauses,q,JP),{members:v,prologue:b}=Se(e),x=t.updateClassExpression(e,h,e.name,void 0,y,v),S=[];b&&S.push(b);if((g||32&nf(e))&&re(_,(e=>gD(e)||l_(e)||m&&UJ(e)))||re(C))if(l)Sn.assertIsDefined(w,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),re(C)&&be(w,J(C,t.createExpressionStatement)),re(_)&&Ce(w,_,(null==(o=e.emitNode)?void 0:o.classThis)??t.getInternalName(e)),p?S.push(t.createAssignment(p,x)):g&&(null==(a=e.emitNode)?void 0:a.classThis)?S.push(t.createAssignment(e.emitNode.classThis,x)):S.push(x);else{if(p??(p=f()),d){De();const n=t.cloneNode(p);n.emitNode.autoGenerate.flags&=-9,T[TJ(e)]=n}S.push(t.createAssignment(p,x)),be(S,C),be(S,function(e,t){const n=[];for(const r of e){const e=gD(r)?Q(r,le,r):Q(r,(()=>Ne(r,t)),void 0);e&&(fA(e),YC(e,r),iw(e,3072&tf(r)),cw(e,bx(r)),fw(e,r),n.push(e))}return n}(_,p)),S.push(t.cloneNode(p))}else S.push(x);return S.length>1&&(iw(x,131072),S.forEach(fA)),t.inlineExpressions(S)}function xe(t){if(!g)return YB(t,R,e)}function Se(e){const n=!!(32&nf(e));if(g||F){for(const t of e.members)if(l_(t))if(G(t))Le(t,t.name,Ie);else{YJ(Ee(),t.name,{kind:"untransformed"})}if(g&&re(fe(e))&&function(){const{weakSetName:e}=Ee().data;Sn.assert(e,"weakSetName should be set in private identifier environment"),Ae().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}(),te())for(const r of e.members)if(D_(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");if(g||n&&gb(r))Le(r,e,Oe);else{YJ(Ee(),e,{kind:"untransformed"})}}}let i,o,a,s=UB(e.members,V,C_);if(re(s,hD)||(i=ke(void 0,e)),!g&&re(C)){let e=t.createExpressionStatement(t.inlineExpressions(C));if(134234112&e.transformFlags){const 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,[]))}const n=t.createBlock([e]);a=t.createClassStaticBlockDeclaration(n),C=void 0}if(i||a){let n;const r=D(s,pz),o=D(s,bz);n=he(n,r),n=he(n,o),n=he(n,i),n=he(n,a);n=be(n,r||o?M(s,(e=>e!==r&&e!==o)):s),s=cI(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function ke(n,r){if(n=qB(n,R,hD),!((null==N?void 0:N.data)&&16&N.data.facts))return n;const o=_y(r),s=!(!o||106===uA(o.expression).kind),c=$B(n?n.parameters:void 0,R,e),l=function(n,r,o){const s=JJ(n,!1,!1);let c=s;u||(c=M(c,(e=>!!e.initializer||$N(e.name)||bb(e))));const l=fe(n),_=re(c)||re(l);if(!r&&!_)return GB(void 0,R,e);a();const d=!r&&o;let p=0,f=[];const m=[],h=t.createThis();if(function(e,n,r){if(!g||!re(n))return;const{weakSetName:i}=Ee().data;Sn.assert(i,"weakSetName should be set in private identifier environment"),e.push(t.createExpressionStatement(function(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}(t,r,i)))}(m,l,h),r){const e=M(s,(e=>dc(Sc(e),r))),t=M(c,(e=>!dc(Sc(e),r)));Ce(m,e,h),Ce(m,t,h)}else Ce(m,c,h);if(null==r?void 0:r.body){p=t.copyPrologue(r.body.statements,f,!1,R);const e=BJ(r.body.statements,p);if(e.length)Te(f,r.body.statements,p,e,0,m,r);else{for(;p<r.body.statements.length;){if(!dc(Sc(r.body.statements[p]),r))break;p++}be(f,m),be(f,UB(r.body.statements,R,Pu,p))}}else d&&f.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),be(f,m);if(f=t.mergeLexicalEnvironment(f,i()),0===f.length&&!r)return;const y=(null==r?void 0:r.body)&&r.body.statements.length>=f.length?r.body.multiLine??f.length>0:f.length>0;return cI(t.createBlock(cI(t.createNodeArray(f),r?r.body.statements:n.members),y),r?r.body:void 0)}(r,n,s);return l?n?(Sn.assert(c),t.updateConstructorDeclaration(n,void 0,c,l)):fA(YC(cI(t.createConstructorDeclaration(void 0,c??[],l),n||r),n)):n}function Te(e,n,r,i,o,a,s){const c=i[o],l=n[c];if(be(e,UB(n,R,Pu,r,c-r)),r=c+1,$F(l)){const n=[];Te(n,l.tryBlock.statements,0,i,o+1,a,s);cI(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),qB(l.catchClause,R,zP),qB(l.finallyBlock,R,PF)))}else{for(be(e,UB(n,R,Pu,c,1));r<n.length;){if(!dc(Sc(n[r]),s))break;r++}be(e,a)}be(e,UB(n,R,Pu,r))}function Ce(e,t,n){for(const r of t){if(mb(r)&&!g)continue;const t=we(r,n);t&&e.push(t)}}function we(e,n){const r=gD(e)?Q(e,le,e):Ne(e,n);if(!r)return;const i=t.createExpressionStatement(r);YC(i,e),iw(i,3072&tf(e)),fw(i,e);const o=Sc(e);return _D(o)?(cw(i,o),nw(i)):cw(i,bx(e)),gw(r,void 0),vw(r,void 0),bb(o)&&iw(i,3072),i}function Ne(n,r){var i;const o=I,a=function(n,r){const i=!u;Wy(n,_e)&&(n=Cz(e,n));const o=bb(n)?t.getGeneratedPrivateNameForNode(n.name):cD(n.name)&&!OJ(n.name.expression)?t.updateComputedPropertyName(n.name,t.getGeneratedNameForNode(n.name)):n.name;gb(n)&&(I=n);if($N(o)&&G(n)){const e=Re(o);if(e)return"f"===e.kind?e.isStatic?function(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}(t,e.variableName,qB(n.initializer,R,au)):function(e,t,n,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"set"),void 0,[t,n||e.createVoidZero()])}(t,r,qB(n.initializer,R,au),e.brandCheckIdentifier):void 0;Sn.fail("Undeclared private name for property declaration.")}if(($N(o)||gb(n))&&!n.initializer)return;const a=Sc(n);if(fb(a,64))return;let s=qB(n.initializer,R,au);if(dc(a,a.parent)&&HN(o)){const e=t.cloneNode(o);s?(iF(s)&&aA(s.expression)&&CN(s.expression.left,"___runInitializers")&&lF(s.expression.right)&&NN(s.expression.right.expression)&&(s=s.expression.left),s=t.inlineExpressions([s,e])):s=e,rw(o,3168),cw(e,a.name),rw(e,3072)}else s??(s=t.createVoidZero());if(i||$N(o)){const e=qE(t,r,o,o);iw(e,1024);return t.createAssignment(e,s)}{const e=cD(o)?o.expression:HN(o)?t.createStringLiteral(Nc(o.escapedText)):o,n=t.createPropertyDescriptor({value:s,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(r,e,n)}}(n,r);return a&&gb(n)&&(null==(i=null==N?void 0:N.data)?void 0:i.facts)&&(YC(a,n),iw(a,4),cw(a,sw(n.name)),P.set(Sc(n),N)),I=o,a}function De(){0==(1&k)&&(k|=1,e.enableSubstitution(80),T=[])}function Fe(e){return YD(e)?t.updatePropertyAccessExpression(e,t.createVoidZero(),e.name):t.updateElementAccessExpression(e,t.createVoidZero(),qB(e.argumentExpression,R,au))}function Pe(){return Sn.assert(N),N.data??(N.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Ee(){return Sn.assert(N),N.privateEnv??(N.privateEnv=XJ({className:void 0,weakSetName:void 0}))}function Ae(){return C??(C=[])}function Ie(e,t,n,r,i,o,a){D_(e)?function(e,t,n,r,i,o,a){const s=Me(t,"_get"),c=Me(t,"_set"),l=i?Sn.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):Sn.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");YJ(r,t,{kind:"a",getterName:s,setterName:c,brandCheckIdentifier:l,isStatic:i,isValid:o})}(0,t,n,r,i,o):pD(e)?Oe(e,t,n,r,i,o,a):mD(e)?function(e,t,n,r,i,o,a){const s=Me(t),c=i?Sn.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):Sn.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");YJ(r,t,{kind:"m",methodName:s,brandCheckIdentifier:c,isStatic:i,isValid:o})}(0,t,n,r,i,o):yD(e)?function(e,t,n,r,i,o,a){const s=Me(t,"_get"),c=i?Sn.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):Sn.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==i||a.getterName?YJ(r,t,{kind:"a",getterName:s,setterName:void 0,brandCheckIdentifier:c,isStatic:i,isValid:o}):a.getterName=s}(0,t,n,r,i,o,a):vD(e)&&function(e,t,n,r,i,o,a){const s=Me(t,"_set"),c=i?Sn.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):Sn.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==i||a.setterName?YJ(r,t,{kind:"a",getterName:void 0,setterName:s,brandCheckIdentifier:c,isStatic:i,isValid:o}):a.setterName=s}(0,t,n,r,i,o,a)}function Oe(e,n,r,i,o,a,s){if(o){YJ(i,n,{kind:"f",isStatic:!0,brandCheckIdentifier:Sn.checkDefined(r.classThis??r.classConstructor,"classConstructor should be set in private identifier environment"),variableName:Me(n),isValid:a})}else{const e=Me(n);YJ(i,n,{kind:"f",isStatic:!1,brandCheckIdentifier:e,isValid:a}),Ae().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Le(e,t,n){const r=Pe(),i=Ee(),o=QJ(i,t),a=gb(e),s=!function(e){return!s_(e)&&"#constructor"===e.escapedText}(t)&&void 0===o;n(e,t,r,i,a,s,o)}function je(e,n,i){const{className:o}=Ee().data,a=o?{prefix:"_",node:o,suffix:"_"}:"_",l="object"==typeof e?t.getGeneratedNameForNode(e,24,a,i):"string"==typeof e?t.createUniqueName(e,16,a,i):t.createTempVariable(void 0,!0,a,i);return 32768&c.getNodeCheckFlags(n)?s(l):r(l),l}function Me(e,t){const n=jf(e);return je((null==n?void 0:n.substring(1))??e,e,t)}function Re(e){const t=ZJ(N,e);return"untransformed"===(null==t?void 0:t.kind)?void 0:t}function Be(n){if(QD(n)||XD(n))return Ue(n);if(__(n))return function(n){const i=t.getGeneratedNameForNode(n),o=Re(n.name);if(!o)return YB(n,R,e);let a=n.expression;return(tg(n)||eg(n)||!IJ(n.expression))&&(a=t.createTempVariable(r,!0),Ae().push(t.createBinaryExpression(a,64,qB(n.expression,R,au)))),t.createAssignmentTargetWrapper(i,pe(o,a,i,64))}(n);if(v&&I&&eg(n)&&jz(I)&&(null==N?void 0:N.data)){const{classConstructor:e,superClassReference:r,facts:i}=N.data;if(1&i)return Fe(n);if(e&&r){const i=ZD(n)?qB(n.argumentExpression,R,au):HN(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(i){const n=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(n,t.createReflectSetCall(r,i,n,e))}}}return YB(n,R,e)}function Je(n){if(Wy(n,_e)&&(n=Cz(e,n)),Vb(n,!0)){const e=Be(n.left),r=qB(n.right,R,au);return t.updateBinaryExpression(n,e,n.operatorToken,r)}return Be(n)}function ze(n){if($_(n)){if(hF(n))return function(n){if(eu(n.expression)){const e=Be(n.expression);return t.updateSpreadElement(n,e)}return YB(n,R,e)}(n);if(!vF(n))return Je(n)}return YB(n,R,e)}function qe(n){return Sn.assertNode(n,W_),VP(n)?function(n){if(eu(n.expression)){const e=Be(n.expression);return t.updateSpreadAssignment(n,e)}return YB(n,R,e)}(n):UP(n)?function(t){return Wy(t,_e)&&(t=Cz(e,t)),YB(t,R,e)}(n):qP(n)?function(n){const r=qB(n.name,R,g_);if(Vb(n.initializer,!0)){const e=Je(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(eu(n.initializer)){const e=Be(n.initializer);return t.updatePropertyAssignment(n,r,e)}return YB(n,R,e)}(n):YB(n,R,e)}function Ue(e){return XD(e)?t.updateArrayLiteralExpression(e,UB(e.elements,ze,au)):t.updateObjectLiteralExpression(e,UB(e.properties,qe,L_))}}function jz(e){return gD(e)||function(e){return pD(e)&&gb(e)}(e)}var Mz=g({"src/compiler/transformers/classFields.ts"(){OK()}});function Rz(e){const{factory:t,hoistVariableDeclaration:n}=e,r=e.getEmitResolver(),i=e.getCompilerOptions(),o=HS(i),a=pk(i,"strictNullChecks");let s,c;return{serializeTypeNode:(e,t)=>l(e,p,t),serializeTypeOfNode:(e,t)=>l(e,_,t),serializeParameterTypesOfNode:(e,t,n)=>l(e,u,t,n),serializeReturnTypeOfNode:(e,t)=>l(e,d,t)};function l(e,t,n,r){const i=s,o=c;s=e.currentLexicalScope,c=e.currentNameScope;const a=void 0===r?t(n):t(n,r);return s=i,c=o,a}function _(e){switch(e.kind){case 172:case 169:return p(e.type);case 178:case 177:return p(function(e){const t=r.getAllAccessorDeclarations(e);return t.setAccessor&&Vv(t.setAccessor)||t.getAccessor&&eb(t.getAccessor)}(e));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function u(e,n){const r=w_(e)?qv(e):y_(e)&&Op(e.body)?e:void 0,i=[];if(r){const e=function(e,t){if(t&&177===e.kind){const{setAccessor:n}=Qv(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let n=0;n<t;n++){const t=e[n];0===n&&HN(t.name)&&"this"===t.name.escapedText||(t.dotDotDotToken?i.push(p(xm(t.type))):i.push(_(t)))}}return t.createArrayLiteralExpression(i)}function d(e){return y_(e)&&e.type?p(e.type):Dy(e)?t.createIdentifier("Promise"):t.createVoidZero()}function p(e){if(void 0===e)return t.createIdentifier("Object");switch((e=Xh(e)).kind){case 116:case 157:case 146:return t.createVoidZero();case 184:case 185:return t.createIdentifier("Function");case 188:case 189:return t.createIdentifier("Array");case 182:return e.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 203:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 201:return f(e.literal);case 150:return t.createIdentifier("Number");case 163:return b("BigInt",7);case 155:return b("Symbol",2);case 183:return function(e){const i=r.getTypeReferenceSerializationKind(e.typeName,c??s);switch(i){case 0:if(kc(e,(e=>e.parent&&jD(e.parent)&&(e.parent.trueType===e||e.parent.falseType===e))))return t.createIdentifier("Object");const r=y(e.typeName),o=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(o,r),"function"),void 0,o,void 0,t.createIdentifier("Object"));case 1:return v(e.typeName);case 2:return t.createVoidZero();case 4:return b("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 b("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return Sn.assertNever(i)}}(e);case 193:return m(e.types,!0);case 192:return m(e.types,!1);case 194:return m([e.trueType,e.falseType],!1);case 198:if(148===e.operator)return p(e.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:case 319:case 320:case 324:case 325:case 326:break;case 321:case 322:case 323:return p(e.type);default:return Sn.failBadSyntaxKind(e)}return t.createIdentifier("Object")}function f(e){switch(e.kind){case 11:case 15:return t.createIdentifier("String");case 224:{const t=e.operand;switch(t.kind){case 9:case 10:return f(t);default:return Sn.failBadSyntaxKind(t)}}case 9:return t.createIdentifier("Number");case 10:return b("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return Sn.failBadSyntaxKind(e)}}function m(e,n){let r;for(let i of e){if(i=Xh(i),146===i.kind){if(n)return t.createVoidZero();continue}if(159===i.kind){if(!n)return t.createIdentifier("Object");continue}if(133===i.kind)return t.createIdentifier("Object");if(!a&&(UD(i)&&106===i.literal.kind||157===i.kind))continue;const e=p(i);if(HN(e)&&"Object"===e.escapedText)return e;if(r){if(!g(r,e))return t.createIdentifier("Object")}else r=e}return r??t.createVoidZero()}function g(e,t){return a_(e)?a_(t):HN(e)?HN(t)&&e.escapedText===t.escapedText:YD(e)?YD(t)&&g(e.expression,t.expression)&&g(e.name,t.name):lF(e)?lF(t)&&NN(e.expression)&&"0"===e.expression.text&&NN(t.expression)&&"0"===t.expression.text:FN(e)?FN(t)&&e.text===t.text:cF(e)?cF(t)&&g(e.expression,t.expression):iF(e)?iF(t)&&g(e.expression,t.expression):fF(e)?fF(t)&&g(e.condition,t.condition)&&g(e.whenTrue,t.whenTrue)&&g(e.whenFalse,t.whenFalse):!!pF(e)&&(pF(t)&&e.operatorToken.kind===t.operatorToken.kind&&g(e.left,t.left)&&g(e.right,t.right))}function h(e,n){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(e),t.createStringLiteral("undefined")),n)}function y(e){if(80===e.kind){const t=v(e);return h(t,t)}if(80===e.left.kind)return h(v(e.left),v(e));const r=y(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 v(e){switch(e.kind){case 80:const n=AT(cI(hI.cloneNode(e),e),e.parent);return n.original=void 0,AT(n,Cc(s)),n;case 166:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return o<n?function(e){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(e),"function"),void 0,t.createIdentifier(e),void 0,t.createIdentifier("Object"))}(e):t.createIdentifier(e)}}var Bz=g({"src/compiler/transformers/typeSerializer.ts"(){OK()}});function Jz(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=HS(e.getCompilerOptions()),a=e.onSubstituteNode;let s;return e.onSubstituteNode=function(e,n){if(n=a(e,n),1===e)return function(e){if(80===e.kind)return function(e){return function(e){if(s&&536870912&i.getNodeCheckFlags(e)){const n=i.getReferencedValueDeclaration(e);if(n){const r=s[n.id];if(r){const n=t.cloneNode(r);return cw(n,e),fw(n,e),n}}}return}(e)??e}(e);return e}(n);return n},wJ(e,(function(t){const n=YB(t,l,e);return Cw(n,e.readEmitHelpers()),n}));function c(e){return uD(e)?void 0:e}function l(a){if(!(33554432&a.transformFlags))return a;switch(a.kind){case 170:return;case 263:return function(a){if(!_g(!0,a)&&!lg(!0,a))return YB(a,l,e);const _=_g(!0,a)?function(a,c){const _=fb(a,32),u=fb(a,2048),p=UB(a.modifiers,(e=>$A(e)||uD(e)?void 0:e),A_),f=bx(a),g=function(n){if(262144&i.getNodeCheckFlags(n)){s||(e.enableSubstitution(80),s=[]);const i=t.createUniqueName(n.name&&!a_(n.name)?Dc(n.name):"default");return s[TJ(n)]=i,r(i),i}}(a),h=o<2?t.getInternalName(a,!1,!0):t.getLocalName(a,!1,!0),y=UB(a.heritageClauses,l,JP);let v=UB(a.members,l,C_),b=[];({members:v,decorationStatements:b}=d(a,v));const x=o>=9&&!!g&&re(v,(e=>pD(e)&&fb(e,256)||gD(e)));x&&(v=cI(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(g,t.createThis()))])),...v]),v));const S=t.createClassExpression(p,c&&a_(c)?void 0:c,void 0,y,v);YC(S,a),cI(S,f);const k=g&&!x?t.createAssignment(g,S):S,T=t.createVariableDeclaration(h,void 0,void 0,k);YC(T,a);const C=t.createVariableDeclarationList([T],1),w=t.createVariableStatement(void 0,C);YC(w,a),cI(w,f),fw(w,a);const N=[w];if(be(N,b),function(e,r){const i=function(e){const r=HJ(e),i=m(r);if(!i)return;const a=s&&s[TJ(e)],c=o<2?t.getInternalName(e,!1,!0):t.getDeclarationName(e,!1,!0),l=n().createDecorateHelper(i,c),_=t.createAssignment(c,a?t.createAssignment(a,l):l);return rw(_,3072),cw(_,bx(e)),_}(r);i&&e.push(YC(t.createExpressionStatement(i),r))}(N,a),_)if(u){const e=t.createExportDefault(h);N.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(a));N.push(e)}return N}(a,a.name):function(e,n){const r=UB(e.modifiers,c,f_),i=UB(e.heritageClauses,l,JP);let o=UB(e.members,l,C_),a=[];({members:o,decorationStatements:a}=d(e,o));const s=t.updateClassDeclaration(e,r,n,void 0,i,o);return be([s],a)}(a,a.name);return je(_)}(a);case 231:return function(e){return t.updateClassExpression(e,UB(e.modifiers,c,f_),e.name,void 0,UB(e.heritageClauses,l,JP),UB(e.members,l,C_))}(a);case 176:return function(e){return t.updateConstructorDeclaration(e,UB(e.modifiers,c,f_),UB(e.parameters,l,_D),qB(e.body,l,PF))}(a);case 174:return function(e){return p(t.updateMethodDeclaration(e,UB(e.modifiers,c,f_),e.asteriskToken,Sn.checkDefined(qB(e.name,l,g_)),void 0,void 0,UB(e.parameters,l,_D),void 0,qB(e.body,l,PF)),e)}(a);case 178:return function(e){return p(t.updateSetAccessorDeclaration(e,UB(e.modifiers,c,f_),Sn.checkDefined(qB(e.name,l,g_)),UB(e.parameters,l,_D),qB(e.body,l,PF)),e)}(a);case 177:return function(e){return p(t.updateGetAccessorDeclaration(e,UB(e.modifiers,c,f_),Sn.checkDefined(qB(e.name,l,g_)),UB(e.parameters,l,_D),void 0,qB(e.body,l,PF)),e)}(a);case 172:return function(e){if(33554432&e.flags||fb(e,128))return;return p(t.updatePropertyDeclaration(e,UB(e.modifiers,c,f_),Sn.checkDefined(qB(e.name,l,g_)),void 0,void 0,qB(e.initializer,l,au)),e)}(a);case 169:return function(e){const n=t.updateParameterDeclaration(e,GA(t,e.modifiers),e.dotDotDotToken,Sn.checkDefined(qB(e.name,l,h_)),void 0,void 0,qB(e.initializer,l,au));n!==e&&(fw(n,e),cI(n,bx(e)),cw(n,bx(e)),rw(n.name,64));return n}(a);default:return YB(a,l,e)}}function _(e){return!!(536870912&e.transformFlags)}function u(e){return re(e,_)}function d(e,n){let r=[];return g(r,e,!1),g(r,e,!0),function(e){for(const t of e.members){if(!_I(t))continue;const n=$J(t,e,!0);if(re(null==n?void 0:n.decorators,_))return!0;if(re(null==n?void 0:n.parameters,u))return!0}return!1}(e)&&(n=cI(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function p(e,t){return e!==t&&(fw(e,t),cw(e,bx(t))),e}function f(e){return CN(e.expression,"___metadata")}function m(e){if(!e)return;const{false:t,true:n}=et(e.decorators,f),r=[];return be(r,J(t,y)),be(r,V(e.parameters,v)),be(r,J(n,y)),r}function g(e,n,r){be(e,J(function(e,t){const n=function(e,t){return M(e.members,(n=>{return i=t,cg(!0,r=n,e)&&i===mb(r);var r,i}))}(e,t);let r;for(const t of n)r=he(r,h(e,t));return r}(n,r),(e=>t.createExpressionStatement(e))))}function h(e,r){const i=m($J(r,e,!0));if(!i)return;const a=function(e,n){return mb(n)?t.getDeclarationName(e):function(e){return t.createPropertyAccessExpression(t.getDeclarationName(e),"prototype")}(e)}(e,r),s=function(e,n){const r=e.name;return $N(r)?t.createIdentifier(""):cD(r)?n&&!OJ(r.expression)?t.getGeneratedNameForNode(r):r.expression:HN(r)?t.createStringLiteral(Dc(r)):t.cloneNode(r)}(r,!fb(r,128)),c=o>0?pD(r)&&!bb(r)?t.createVoidZero():t.createNull():void 0,l=n().createDecorateHelper(i,a,s,c);return rw(l,3072),cw(l,bx(r)),l}function y(e){return Sn.checkDefined(qB(e.expression,l,au))}function v(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(y(i),t);cI(e,i.expression),rw(e,3072),r.push(e)}}return r}}var zz=g({"src/compiler/transformers/legacyDecorators.ts"(){OK()}});function qz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=HS(e.getCompilerOptions());let s,c,l,_,u,d;return wJ(e,(function(t){s=void 0,d=!1;const n=YB(t,b,e);Cw(n,e.readEmitHelpers()),d&&(aw(n,32),d=!1);return n}));function p(){switch(c=void 0,l=void 0,_=void 0,null==s?void 0:s.kind){case"class":c=s.classInfo;break;case"class-element":c=s.next.classInfo,l=s.classThis,_=s.classSuper;break;case"name":const e=s.next.next.next;"class-element"===(null==e?void 0:e.kind)&&(c=e.next.classInfo,l=e.classThis,_=e.classSuper)}}function f(e){s={kind:"class",next:s,classInfo:e,savedPendingExpressions:u},u=void 0,p()}function m(){Sn.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),u=s.savedPendingExpressions,s=s.next,p()}function g(e){var t,n;Sn.assert("class"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"class-element",next:s},(gD(e)||pD(e)&&gb(e))&&(s.classThis=null==(t=s.next.classInfo)?void 0:t.classThis,s.classSuper=null==(n=s.next.classInfo)?void 0:n.classSuper),p()}function h(){var e;Sn.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),Sn.assert("class"===(null==(e=s.next)?void 0:e.kind),"Incorrect value for top.next.kind.",(()=>{var e;return`Expected top.next.kind to be 'class' but got '${null==(e=s.next)?void 0:e.kind}' instead.`})),s=s.next,p()}function y(){Sn.assert("class-element"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'class-element' but got '${null==s?void 0:s.kind}' instead.`)),s={kind:"name",next:s},p()}function v(){Sn.assert("name"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'name' but got '${null==s?void 0:s.kind}' instead.`)),s=s.next,p()}function b(n){if(!function(e){return!!(33554432&e.transformFlags)||!!l&&!!(16384&e.transformFlags)||!!l&&!!_&&!!(134217728&e.transformFlags)}(n))return n;switch(n.kind){case 170:return Sn.fail("Use `modifierVisitor` instead.");case 263:return function(n){if(D(n)){const r=[],i=Sc(n,w_)??n,o=i.name?t.createStringLiteralFromNode(i.name):t.createStringLiteral("default"),a=fb(n,32),s=fb(n,2048);if(n.name||(n=kz(e,n,o)),a&&s){const e=N(n);if(n.name){const i=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);YC(i,n);const o=t.createVariableDeclarationList([i],1),a=t.createVariableStatement(void 0,o);r.push(a);const s=t.createExportDefault(t.getDeclarationName(n));YC(s,n),fw(s,pw(n)),cw(s,vx(n)),r.push(s)}else{const i=t.createExportDefault(e);YC(i,n),fw(i,pw(n)),cw(i,vx(n)),r.push(i)}}else{Sn.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=N(n),i=a?e=>KN(e)?void 0:S(e):S,o=UB(n.modifiers,i,f_),s=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(s,void 0,void 0,e);YC(c,n);const l=t.createVariableDeclarationList([c],1),_=t.createVariableStatement(o,l);if(YC(_,n),fw(_,pw(n)),r.push(_),a){const e=t.createExternalModuleExport(s);YC(e,n),r.push(e)}}return je(r)}{const e=UB(n.modifiers,S,f_),r=UB(n.heritageClauses,b,JP);f(void 0);const i=UB(n.members,k,C_);return m(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}(n);case 231:return function(e){if(D(e)){const t=N(e);return YC(t,e),t}{const n=UB(e.modifiers,S,f_),r=UB(e.heritageClauses,b,JP);f(void 0);const i=UB(e.members,k,C_);return m(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}(n);case 176:case 172:case 175:return Sn.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return function(n){Wy(n,I)&&(n=Cz(e,n,O(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,qB(n.name,b,h_),void 0,void 0,qB(n.initializer,b,au));r!==n&&(fw(r,n),cI(r,bx(n)),cw(r,bx(n)),rw(r.name,64));return r}(n);case 226:return L(n,!1);case 303:case 260:case 208:return function(t){Wy(t,I)&&(t=Cz(e,t,O(t.initializer)));return YB(t,b,e)}(n);case 277:return function(t){Wy(t,I)&&(t=Cz(e,t,O(t.expression)));return YB(t,b,e)}(n);case 110:return function(e){return l??e}(n);case 248:return function(n){return t.updateForStatement(n,qB(n.initializer,T,hu),qB(n.condition,b,au),qB(n.incrementor,T,au),XB(n.statement,b,e))}(n);case 244:return function(t){return YB(t,T,e)}(n);case 361:return M(n,!1);case 217:return H(n,!1);case 360:return function(e,n){const r=n?T:b,i=qB(e.expression,r,au);return t.updatePartiallyEmittedExpression(e,i)}(n,!1);case 213:return function(n){if(eg(n.expression)&&l){const e=qB(n.expression,b,au),r=UB(n.arguments,b,au),i=t.createFunctionCallCall(e,l,r);return YC(i,n),cI(i,n),i}return YB(n,b,e)}(n);case 215:return function(n){if(eg(n.tag)&&l){const e=qB(n.tag,b,au),r=t.createFunctionBindCall(e,l,[]);YC(r,n),cI(r,n);const i=qB(n.template,b,Z_);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return YB(n,b,e)}(n);case 224:case 225:return j(n,!1);case 211:return function(n){if(eg(n)&&HN(n.name)&&l&&_){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(_,e,l);return YC(r,n.expression),cI(r,n.expression),r}return YB(n,b,e)}(n);case 212:return function(n){if(eg(n)&&l&&_){const e=qB(n.argumentExpression,b,au),r=t.createReflectGetCall(_,e,l);return YC(r,n.expression),cI(r,n.expression),r}return YB(n,b,e)}(n);case 167:return B(n);case 174:case 178:case 177:case 218:case 262:{"other"===(null==s?void 0:s.kind)?(Sn.assert(!u),s.depth++):(s={kind:"other",next:s,depth:0,savedPendingExpressions:u},u=void 0,p());const t=YB(n,x,e);return Sn.assert("other"===(null==s?void 0:s.kind),"Incorrect value for top.kind.",(()=>`Expected top.kind to be 'other' but got '${null==s?void 0:s.kind}' instead.`)),s.depth>0?(Sn.assert(!u),s.depth--):(u=s.savedPendingExpressions,s=s.next,p()),t}default:return YB(n,x,e)}}function x(e){if(170!==e.kind)return b(e)}function S(e){if(170!==e.kind)return e}function k(a){switch(a.kind){case 176:return function(e){g(e);const n=UB(e.modifiers,S,f_),r=UB(e.parameters,b,_D);let i;if(e.body&&c){const n=F(c.class,c);if(n){const r=[],o=t.copyPrologue(e.body.statements,r,!1,b),a=BJ(e.body.statements,o);a.length>0?P(r,e.body.statements,o,a,0,n):(be(r,n),be(r,UB(e.body.statements,b,Pu))),i=t.createBlock(r,!0),YC(i,e.body),cI(i,e.body)}}return i??(i=qB(e.body,b,PF)),h(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 174:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=A(e,c,Q);if(i)return h(),E(function(e,n,r){return e=UB(e,(e=>eD(e)?e:void 0),f_),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=UB(e.parameters,b,_D),o=qB(e.body,b,PF);return h(),E(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 177:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=A(e,c,Y);if(i)return h(),E(te(n,r,i),e);{const i=UB(e.parameters,b,_D),o=qB(e.body,b,PF);return h(),E(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 178:return function(e){g(e);const{modifiers:n,name:r,descriptorName:i}=A(e,c,Z);if(i)return h(),E(ne(n,r,i),e);{const i=UB(e.parameters,b,_D),o=qB(e.body,b,PF);return h(),E(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 172:return function(a){Wy(a,I)&&(a=Cz(e,a,O(a.initializer)));g(a),Sn.assert(!xf(a),"Not yet implemented.");const{modifiers:s,name:l,initializersName:_,descriptorName:u,thisArg:d}=A(a,c,bb(a)?ee:void 0);r();let p=qB(a.initializer,b,au);_&&(p=n().createRunInitializersHelper(d??t.createThis(),_,p??t.createVoidZero()));mb(a)||!(null==c?void 0:c.instanceExtraInitializersName)||(null==c?void 0:c.hasInjectedInstanceInitializers)||(c.hasInjectedInstanceInitializers=!0,p??(p=t.createVoidZero()),p=t.createParenthesizedExpression(t.createComma(n().createRunInitializersHelper(t.createThis(),c.instanceExtraInitializersName),p)));mb(a)&&c&&p&&(c.hasStaticInitializers=!0);const f=i();re(f)&&(p=t.createImmediatelyInvokedArrowFunction([...f,t.createReturnStatement(p)]));if(h(),bb(a)&&u){const e=pw(a),n=sw(a),r=a.name;let i=r,c=r;if(cD(r)&&!OJ(r.expression)){const e=rI(r);if(e)i=t.updateComputedPropertyName(r,qB(r.expression,b,au)),c=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(o);cw(e,r.expression);const n=qB(r.expression,b,au),a=t.createAssignment(e,n);cw(a,r.expression),i=t.updateComputedPropertyName(r,a),c=t.updateComputedPropertyName(r,e)}}const l=UB(s,(e=>129!==e.kind?e:void 0),f_),_=eI(t,a,l,p);YC(_,a),rw(_,3072),cw(_,n),cw(_.name,a.name);const d=te(l,i,u);YC(d,a),fw(d,e),cw(d,n);const f=ne(l,c,u);return YC(f,a),rw(f,3072),cw(f,n),[_,d,f]}return E(t.updatePropertyDeclaration(a,s,l,void 0,void 0,p),a)}(a);case 175:return function(t){let n;if(g(t),bz(t))n=YB(t,b,e);else if(pz(t)){const r=l;l=void 0,n=YB(t,b,e),l=r}else c&&(c.hasStaticInitializers=!0),n=YB(t,b,e);return h(),n}(a);default:return b(a)}}function T(e){switch(e.kind){case 224:case 225:return j(e,!0);case 226:return L(e,!0);case 361:return M(e,!0);case 217:return H(e,!0);default:return b(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&HN(e.name)&&!a_(e.name)?Dc(e.name):e.name&&$N(e.name)&&!a_(e.name)?Dc(e.name).slice(1):e.name&&FN(e.name)&&Os(e.name.text,99)?e.name.text:w_(e)?"class":"member";return Uu(e)&&(t=`get_${t}`),qu(e)&&(t=`set_${t}`),e.name&&$N(e.name)&&(t=`private_${t}`),mb(e)&&(t=`static_${t}`),"_"+t}(e)}_${n}`,24)}function w(e,n){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n)],1))}function N(o){r(),!Sz(o)&&_g(!1,o)&&(o=kz(e,o,t.createStringLiteral("")));const a=t.getLocalName(o,!1,!1,!0),s=function(e){const n=t.createUniqueName("_metadata",48);let r,i,o=!1,a=!1,s=!1;for(const n of e.members)if(E_(n)&&cg(!1,n,e)&&(gb(n)?i??(i=t.createUniqueName("_staticExtraInitializers",48)):r??(r=t.createUniqueName("_instanceExtraInitializers",48))),gD(n)?bz(n)||(o=!0):pD(n)&&(gb(n)?o||(o=!!n.initializer||Sb(n)):a||(a=!xf(n))),(l_(n)||D_(n))&&gb(n)&&(s=!0),i&&r&&o&&a&&s)break;return{class:e,metadataReference:n,instanceExtraInitializersName:r,staticExtraInitializersName:i,hasStaticInitializers:o,hasNonAmbientInstanceFields:a,hasStaticPrivateClassElements:s}}(o),c=[];let l,_,p,g,h=!1;const y=K(HJ(o));if(y){s.classDecoratorsName=t.createUniqueName("_classDecorators",48),s.classDescriptorName=t.createUniqueName("_classDescriptor",48),s.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48);const e=re(o.members,(e=>(l_(e)||D_(e))&&gb(e)));s.classThis=t.createUniqueName("_classThis",e?24:48),c.push(w(s.classDecoratorsName,t.createArrayLiteralExpression(y)),w(s.classDescriptorName),w(s.classExtraInitializersName,t.createArrayLiteralExpression()),w(s.classThis)),s.hasStaticPrivateClassElements&&(h=!0,d=!0)}const v=my(o.heritageClauses,96),x=v&&De(v.types),S=x&&qB(x.expression,b,au);if(S){s.classSuper=t.createUniqueName("_classSuper",48);const e=uA(S),n=yF(e)&&!e.name||oF(e)&&!e.name||aF(e)?t.createComma(t.createNumericLiteral(0),S):S;c.push(w(s.classSuper,n));const r=t.updateExpressionWithTypeArguments(x,s.classSuper,void 0),i=t.updateHeritageClause(v,[r]);g=t.createNodeArray([i])}const T=s.classThis??t.createThis();f(s),l=he(l,function(e,n){const 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?ie(n):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([r],2))}(s.metadataReference,s.classSuper));let C=UB(o.members,k,C_);if(u){let n;for(let r of u){r=qB(r,(function r(i){return 16384&i.transformFlags?110===i.kind?(n||(n=t.createUniqueName("_outerThis",16),c.unshift(w(n,t.createThis()))),n):YB(i,r,e):i}),au);l=he(l,t.createExpressionStatement(r))}u=void 0}if(m(),s.instanceExtraInitializersName&&!qv(o)){const e=F(o,s);if(e){const n=_y(o),r=[];if(!(!n||106===uA(n.expression).kind)){const e=t.createSpreadElement(t.createIdentifier("arguments")),n=t.createCallExpression(t.createSuper(),void 0,[e]);r.push(t.createExpressionStatement(n))}be(r,e);const i=t.createBlock(r,!0);p=t.createConstructorDeclaration(void 0,[],i)}}if(s.staticExtraInitializersName&&c.push(w(s.staticExtraInitializersName,t.createArrayLiteralExpression())),s.instanceExtraInitializersName&&c.push(w(s.instanceExtraInitializersName,t.createArrayLiteralExpression())),s.memberInfos&&dp(s.memberInfos,((e,n)=>{mb(n)&&(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))})),s.memberInfos&&dp(s.memberInfos,((e,n)=>{mb(n)||(c.push(w(e.memberDecoratorsName)),e.memberInitializersName&&c.push(w(e.memberInitializersName,t.createArrayLiteralExpression())),e.memberDescriptorName&&c.push(w(e.memberDescriptorName)))})),l=be(l,s.staticNonFieldDecorationStatements),l=be(l,s.nonStaticNonFieldDecorationStatements),l=be(l,s.staticFieldDecorationStatements),l=be(l,s.nonStaticFieldDecorationStatements),s.classDescriptorName&&s.classDecoratorsName&&s.classExtraInitializersName&&s.classThis){l??(l=[]);const e=t.createPropertyAssignment("value",T),r=t.createObjectLiteralExpression([e]),i=t.createAssignment(s.classDescriptorName,r),c=t.createPropertyAccessExpression(T,"name"),_=n().createESDecorateHelper(t.createNull(),i,s.classDecoratorsName,{kind:"class",name:c,metadata:s.metadataReference},t.createNull(),s.classExtraInitializersName),u=t.createExpressionStatement(_);cw(u,vx(o)),l.push(u);const d=t.createPropertyAccessExpression(s.classDescriptorName,"value"),p=t.createAssignment(s.classThis,d),f=t.createAssignment(a,p);l.push(t.createExpressionStatement(f))}if(l.push(function(e,n){const r=t.createObjectDefinePropertyCall(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:n},!0));return rw(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(T,s.metadataReference)),s.staticExtraInitializersName){const e=n().createRunInitializersHelper(T,s.staticExtraInitializersName),r=t.createExpressionStatement(e);cw(r,o.name??vx(o)),l=he(l,r)}if(s.classExtraInitializersName){const e=n().createRunInitializersHelper(T,s.classExtraInitializersName),r=t.createExpressionStatement(e);cw(r,o.name??vx(o)),_=he(_,r)}l&&_&&!s.hasStaticInitializers&&(be(l,_),_=void 0);const N=l&&t.createClassStaticBlockDeclaration(t.createBlock(l,!0));N&&h&&ow(N,32);const D=_&&t.createClassStaticBlockDeclaration(t.createBlock(_,!0));if(N||p||D){const e=[],n=C.findIndex(bz);N?(be(e,C,0,n+1),e.push(N),be(e,C,n+1)):be(e,C),p&&e.push(p),D&&e.push(D),C=cI(t.createNodeArray(e),C)}const P=i();let E;if(y){E=t.createClassExpression(void 0,void 0,void 0,g,C),s.classThis&&(E=mz(t,E,s.classThis));const e=t.createVariableDeclaration(a,void 0,void 0,E),n=t.createVariableDeclarationList([e]),r=s.classThis?t.createAssignment(a,s.classThis):a;c.push(t.createVariableStatement(void 0,n),t.createReturnStatement(r))}else E=t.createClassExpression(void 0,o.name,void 0,g,C),c.push(t.createReturnStatement(E));if(h){aw(E,32);for(const e of E.members)(l_(e)||D_(e))&&gb(e)&&aw(e,32)}return YC(E,o),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(c,P))}function D(e){return _g(!1,e)||lg(!1,e)}function F(e,r){if(r.instanceExtraInitializersName&&!r.hasNonAmbientInstanceFields){const e=[];return e.push(t.createExpressionStatement(n().createRunInitializersHelper(t.createThis(),r.instanceExtraInitializersName))),e}}function P(e,n,r,i,o,a){const s=i[o],c=n[s];if(be(e,UB(n,b,Pu,r,s-r)),$F(c)){const n=[];P(n,c.tryBlock.statements,0,i,o+1,a);cI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),qB(c.catchClause,b,zP),qB(c.finallyBlock,b,PF)))}else be(e,UB(n,b,Pu,s,1)),be(e,a);be(e,UB(n,b,Pu,s+1))}function E(e,t){return e!==t&&(fw(e,t),cw(e,vx(t))),e}function A(e,r,i){let a,s,c,l,_;if(!r){const t=UB(e.modifiers,S,f_);return y(),s=R(e.name),v(),{modifiers:t,referencedName:a,name:s,initializersName:c,descriptorName:_,thisArg:l}}const d=K($J(e,r.class,!1)),p=UB(e.modifiers,S,f_);if(d){const f=C(e,"decorators"),m=t.createArrayLiteralExpression(d),g=t.createAssignment(f,m),h={memberDecoratorsName:f};r.memberInfos??(r.memberInfos=new Map),r.memberInfos.set(e,h),u??(u=[]),u.push(g);const x=P_(e)||D_(e)?mb(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):pD(e)&&!D_(e)?mb(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):Sn.fail(),S=yD(e)?"getter":vD(e)?"setter":mD(e)?"method":D_(e)?"accessor":pD(e)?"field":Sn.fail();let k;if(HN(e.name)||$N(e.name))k={computed:!1,name:e.name};else if(Oy(e.name))k={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;Oy(r)&&!HN(r)?k={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(Oy(e)||$N(e)){return{referencedName:t.createStringLiteralFromNode(e),name:qB(e,b,g_)}}if(Oy(e.expression)&&!HN(e.expression)){return{referencedName:t.createStringLiteralFromNode(e.expression),name:qB(e,b,g_)}}const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper(qB(e.expression,b,au)),a=t.createAssignment(r,i),s=t.updateComputedPropertyName(e,$(a));return{referencedName:r,name:s}}(e.name)),k={computed:!0,name:a},v())}const T={kind:S,name:k,static:mb(e),private:$N(e.name),access:{get:pD(e)||yD(e)||mD(e),set:pD(e)||vD(e)},metadata:r.metadataReference},w=mb(e)?r.staticExtraInitializersName??(r.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",48)):r.instanceExtraInitializersName??(r.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",48));if(P_(e)){let r;l_(e)&&i&&(r=i(e,UB(p,(e=>ft(e,XN)),f_)),h.memberDescriptorName=_=C(e,"descriptor"),r=t.createAssignment(_,r));const o=n().createESDecorateHelper(t.createThis(),r??t.createNull(),f,T,t.createNull(),w),a=t.createExpressionStatement(o);cw(a,vx(e)),x.push(a)}else if(pD(e)){let o;c=h.memberInitializersName??(h.memberInitializersName=C(e,"initializers")),mb(e)&&(l=r.classThis),l_(e)&&bb(e)&&i&&(o=i(e,void 0),h.memberDescriptorName=_=C(e,"descriptor"),o=t.createAssignment(_,o));const a=n().createESDecorateHelper(D_(e)?t.createThis():t.createNull(),o??t.createNull(),f,T,c,w),s=t.createExpressionStatement(a);cw(s,vx(e)),x.push(s)}}return void 0===s&&(y(),s=R(e.name),v()),re(p)||!mD(e)&&!pD(e)||rw(s,1024),{modifiers:p,referencedName:a,name:s,initializersName:c,descriptorName:_,thisArg:l}}function I(e){return yF(e)&&!e.name&&D(e)}function O(e){const t=uA(e);return yF(t)&&!t.name&&!_g(!1,t)}function L(n,r){if(Hb(n)){const e=W(n.left),r=qB(n.right,b,au);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(Vb(n)){if(Wy(n,I))return YB(n=Cz(e,n,O(n.right)),b,e);if(eg(n.left)&&l&&_){let e=ZD(n.left)?qB(n.left.argumentExpression,b,au):HN(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=qB(n.right,b,au);if(LJ(n.operatorToken.kind)){let r=e;OJ(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(_,r,l);YC(a,n.left),cI(a,n.left),i=t.createBinaryExpression(a,jJ(n.operatorToken.kind),i),cI(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),cI(a,n)),i=t.createReflectSetCall(_,e,i,l),YC(i,n),cI(i,n),a&&(i=t.createComma(i,a),cI(i,n)),i}}}if(28===n.operatorToken.kind){const e=qB(n.left,T,au),i=qB(n.right,r?T:b,au);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return YB(n,b,e)}function j(n,r){if(46===n.operator||47===n.operator){const e=Qh(n.operand);if(eg(e)&&l&&_){let i=ZD(e)?qB(e.argumentExpression,b,au):HN(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;OJ(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(_,e,l);YC(a,n),cI(a,n);const s=r?void 0:t.createTempVariable(o);return a=ZE(t,n,a,o,s),a=t.createReflectSetCall(_,i,a,l),YC(a,n),cI(a,n),s&&(a=t.createComma(a,s),cI(a,n)),a}}}return YB(n,b,e)}function M(e,n){const r=n?QB(e.elements,T):QB(e.elements,b,T);return t.updateCommaListExpression(e,r)}function R(e){return cD(e)?B(e):qB(e,b,g_)}function B(e){let n=qB(e.expression,b,au);return OJ(n)||(n=$(n)),t.updateComputedPropertyName(e,n)}function z(n){if(QD(n)||XD(n))return W(n);if(eg(n)&&l&&_){const e=ZD(n)?qB(n.argumentExpression,b,au):HN(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(e){const r=t.createTempVariable(void 0),i=t.createAssignmentTargetWrapper(r,t.createReflectSetCall(_,e,r,l));return YC(i,n),cI(i,n),i}}return YB(n,b,e)}function q(n){if(Vb(n,!0)){Wy(n,I)&&(n=Cz(e,n,O(n.right)));const r=z(n.left),i=qB(n.right,b,au);return t.updateBinaryExpression(n,r,n.operatorToken,i)}return z(n)}function U(n){return Sn.assertNode(n,$_),hF(n)?function(n){if(eu(n.expression)){const e=z(n.expression);return t.updateSpreadElement(n,e)}return YB(n,b,e)}(n):vF(n)?YB(n,b,e):q(n)}function V(n){return Sn.assertNode(n,W_),VP(n)?function(n){if(eu(n.expression)){const e=z(n.expression);return t.updateSpreadAssignment(n,e)}return YB(n,b,e)}(n):UP(n)?function(t){return Wy(t,I)&&(t=Cz(e,t,O(t.objectAssignmentInitializer))),YB(t,b,e)}(n):qP(n)?function(n){const r=qB(n.name,b,g_);if(Vb(n.initializer,!0)){const e=q(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(eu(n.initializer)){const e=z(n.initializer);return t.updatePropertyAssignment(n,r,e)}return YB(n,b,e)}(n):YB(n,b,e)}function W(e){if(XD(e)){const n=UB(e.elements,U,au);return t.updateArrayLiteralExpression(e,n)}{const n=UB(e.properties,V,L_);return t.updateObjectLiteralExpression(e,n)}}function H(e,n){const r=n?T:b,i=qB(e.expression,r,au);return t.updateParenthesizedExpression(e,i)}function $(e){return re(u)&&(iF(e)?(u.push(e.expression),e=t.updateParenthesizedExpression(e,t.inlineExpressions(u))):(u.push(e),e=t.inlineExpressions(u)),u=void 0),e}function K(e){if(!e)return;const t=[];return be(t,J(e.decorators,G)),t}function G(e){const n=qB(e.expression,b,au);rw(n,3072);if(sS(uA(n))){const{target:e,thisArg:r}=t.createCallBinding(n,o,a,!0);return t.restoreOuterExpressions(n,t.createFunctionBindCall(e,r,[]))}return n}function X(e,r,i,o,a,s,c){const l=t.createFunctionExpression(i,o,void 0,void 0,s,void 0,c??t.createBlock([]));YC(l,e),cw(l,vx(e)),rw(l,3072);const _="get"===a||"set"===a?a:void 0,u=t.createStringLiteralFromNode(r,void 0),d=n().createSetFunctionNameHelper(l,u,_),p=t.createPropertyAssignment(t.createIdentifier(a),d);return YC(p,e),cw(p,vx(e)),rw(p,3072),p}function Q(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,e.asteriskToken,"value",UB(e.parameters,b,_D),qB(e.body,b,PF))])}function Y(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,void 0,"get",[],qB(e.body,b,PF))])}function Z(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,void 0,"set",UB(e.parameters,b,_D),qB(e.body,b,PF))])}function ee(e,n){return t.createObjectLiteralExpression([X(e,e.name,n,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(e.name)))])),X(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 te(e,n,r){return e=UB(e,(e=>eD(e)?e:void 0),f_),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(r,t.createIdentifier("get")),t.createThis(),[]))]))}function ne(e,n,r){return e=UB(e,(e=>eD(e)?e:void 0),f_),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 ie(e){return t.createBinaryExpression(t.createElementAccessExpression(e,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var Uz=g({"src/compiler/transformers/esDecorators.ts"(){OK()}});function Vz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=HS(s);let l,_,u,d,p=0;const f=[];let m=0;const g=e.onEmitNode,h=e.onSubstituteNode;return e.onEmitNode=function(e,t,n){if(1&l&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=384&a.getNodeCheckFlags(t);if(r!==p){const i=p;return p=r,g(e,t,n),void(p=i)}}else if(l&&f[PB(t)]){const r=p;return p=0,g(e,t,n),void(p=r)}g(e,t,n)},e.onSubstituteNode=function(e,n){if(n=h(e,n),1===e&&p)return function(e){switch(e.kind){case 211:return V(e);case 212:return W(e);case 213:return function(e){const n=e.expression;if(eg(n)){const r=YD(n)?V(n):W(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n);return n},wJ(e,(function(t){if(t.isDeclarationFile)return t;y(1,!1),y(2,!bf(t,s));const n=YB(t,T,e);return Cw(n,e.readEmitHelpers()),n}));function y(e,t){m=t?m|e:m&~e}function v(e){return 0!=(m&e)}function x(){return v(2)}function S(e,t,n){const r=e&~m;if(r){y(r,!0);const e=t(n);return y(r,!1),e}return t(n)}function k(t){return YB(t,T,e)}function T(n){if(0==(256&n.transformFlags))return n;switch(n.kind){case 134:return;case 223:return function(n){if(!v(1))return YB(n,T,e);return YC(cI(t.createYieldExpression(void 0,qB(n.expression,T,au)),n),n)}(n);case 174:return S(3,N,n);case 262:return S(3,P,n);case 218:return S(3,E,n);case 219:return S(1,A,n);case 211:return u&&YD(n)&&108===n.expression.kind&&u.add(n.name.escapedText),YB(n,T,e);case 212:return u&&108===n.expression.kind&&(d=!0),YB(n,T,e);case 177:return S(3,D,n);case 178:return S(3,F,n);case 176:return S(3,w,n);case 263:case 231:return S(3,k,n);default:return YB(n,T,e)}}function C(n){if(Vh(n))switch(n.kind){case 243:return function(n){if(O(n.declarationList)){const e=L(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return YB(n,T,e)}(n);case 248:return function(n){const r=n.initializer;return t.updateForStatement(n,O(r)?L(r,!1):qB(n.initializer,T,hu),qB(n.condition,T,au),qB(n.incrementor,T,au),XB(n.statement,C,e))}(n);case 249:return function(n){return t.updateForInStatement(n,O(n.initializer)?L(n.initializer,!0):Sn.checkDefined(qB(n.initializer,T,hu)),Sn.checkDefined(qB(n.expression,T,au)),XB(n.statement,C,e))}(n);case 250:return function(n){return t.updateForOfStatement(n,qB(n.awaitModifier,T,YN),O(n.initializer)?L(n.initializer,!0):Sn.checkDefined(qB(n.initializer,T,hu)),Sn.checkDefined(qB(n.expression,T,au)),XB(n.statement,C,e))}(n);case 299:return function(t){const n=new Set;let r;if(I(t.variableDeclaration,n),n.forEach(((e,t)=>{_.has(t)&&(r||(r=new Set(_)),r.delete(t))})),r){const n=_;_=r;const i=YB(t,C,e);return _=n,i}return YB(t,C,e)}(n);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return YB(n,C,e);default:return Sn.assertNever(n,"Unhandled node.")}return T(n)}function w(n){return t.updateConstructorDeclaration(n,UB(n.modifiers,T,f_),$B(n.parameters,T,e),B(n))}function N(n){return t.updateMethodDeclaration(n,UB(n.modifiers,T,A_),n.asteriskToken,n.name,void 0,void 0,$B(n.parameters,T,e),void 0,2&Ny(n)?z(n):B(n))}function D(n){return t.updateGetAccessorDeclaration(n,UB(n.modifiers,T,A_),n.name,$B(n.parameters,T,e),void 0,B(n))}function F(n){return t.updateSetAccessorDeclaration(n,UB(n.modifiers,T,A_),n.name,$B(n.parameters,T,e),B(n))}function P(n){return t.updateFunctionDeclaration(n,UB(n.modifiers,T,A_),n.asteriskToken,n.name,void 0,$B(n.parameters,T,e),void 0,2&Ny(n)?z(n):GB(n.body,T,e))}function E(n){return t.updateFunctionExpression(n,UB(n.modifiers,T,f_),n.asteriskToken,n.name,void 0,$B(n.parameters,T,e),void 0,2&Ny(n)?z(n):GB(n.body,T,e))}function A(n){return t.updateArrowFunction(n,UB(n.modifiers,T,f_),void 0,$B(n.parameters,T,e),void 0,n.equalsGreaterThanToken,2&Ny(n)?z(n):GB(n.body,T,e))}function I({name:e},t){if(HN(e))t.add(e.escapedText);else for(const n of e.elements)vF(n)||I(n,t)}function O(e){return!!e&&XF(e)&&!(7&e.flags)&&e.declarations.some(R)}function L(e,n){!function(e){b(e.declarations,j)}(e);const r=jx(e);return 0===r.length?n?qB(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),T,au):void 0:t.inlineExpressions(J(r,M))}function j({name:e}){if(HN(e))o(e);else for(const t of e.elements)vF(t)||j(t)}function M(e){const n=cw(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return Sn.checkDefined(qB(n,T,au))}function R({name:e}){if(HN(e))return _.has(e.escapedText);for(const t of e.elements)if(!vF(t)&&R(t))return!0;return!1}function B(n){Sn.assertIsDefined(n.body);const r=u,i=d;u=new Set,d=!1;let o=GB(n.body,T,e);const s=Sc(n,b_);if(c>=2&&384&a.getNodeCheckFlags(n)&&3!=(3&Ny(s))){if(U(),u.size){const e=Wz(t,a,n,u);f[PB(e)]=!0;const r=o.statements.slice();Jp(r,[e]),o=t.updateBlock(o,r)}d&&(256&a.getNodeCheckFlags(n)?Tw(o,vN):128&a.getNodeCheckFlags(n)&&Tw(o,yN))}return u=r,d=i,o}function z(e){r();const o=Sc(e,y_).type,s=c<2?function(e){const t=e&&ig(e);if(t&&m_(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}return}(o):void 0,l=219===e.kind,p=0!=(512&a.getNodeCheckFlags(e)),m=_;_=new Set;for(const t of e.parameters)I(t,_);const g=u,h=d;let y;if(l||(u=new Set,d=!1),l){const r=n().createAwaiterHelper(x(),p,s,q(e.body)),o=i();if(re(o)){const e=t.converters.convertToFunctionBlock(r);y=t.updateBlock(e,cI(t.createNodeArray(oe(o,e.statements)),e.statements))}else y=r}else{const r=[],o=t.copyPrologue(e.body.statements,r,!1,T);r.push(t.createReturnStatement(n().createAwaiterHelper(x(),p,s,q(e.body,o)))),Jp(r,i());const l=c>=2&&384&a.getNodeCheckFlags(e);if(l&&(U(),u.size)){const n=Wz(t,a,e,u);f[PB(n)]=!0,Jp(r,[n])}const _=t.createBlock(r,!0);cI(_,e.body),l&&d&&(256&a.getNodeCheckFlags(e)?Tw(_,vN):128&a.getNodeCheckFlags(e)&&Tw(_,yN)),y=_}return _=m,l||(u=g,d=h),y}function q(e,n){return PF(e)?t.updateBlock(e,UB(e.statements,C,Pu,n)):t.converters.convertToFunctionBlock(Sn.checkDefined(qB(e,C,mu)))}function U(){0==(1&l)&&(l|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function V(e){return 108===e.expression.kind?cI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function W(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,cI(256&p?t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),"value"):t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[n]),r)):e;var n,r}}function Wz(e,t,n,r){const i=0!=(256&t.getNodeCheckFlags(n)),o=[];return r.forEach(((t,n)=>{const r=Nc(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,rw(e.createPropertyAccessExpression(rw(e.createSuper(),8),r),8)))),i&&a.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(rw(e.createPropertyAccessExpression(rw(e.createSuper(),8),r),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(r,e.createObjectLiteralExpression(a)))})),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(o,!0)]))],2))}var Hz=g({"src/compiler/transformers/es2017.ts"(){OK()}});function $z(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=HS(s),l=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&u&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===t}(t)){const r=384&a.getNodeCheckFlags(t);if(r!==v){const i=v;return v=r,l(e,t,n),void(v=i)}}else if(u&&x[PB(t)]){const r=v;return v=0,l(e,t,n),void(v=r)}l(e,t,n)};const _=e.onSubstituteNode;e.onSubstituteNode=function(e,n){if(n=_(e,n),1===e&&v)return function(e){switch(e.kind){case 211:return K(e);case 212:return G(e);case 213:return function(e){const n=e.expression;if(eg(n)){const r=YD(n)?K(n):G(n);return t.createCallExpression(t.createPropertyAccessExpression(r,"call"),void 0,[t.createThis(),...e.arguments])}return e}(e)}return e}(n);return n};let u,d,p,f,m,g,h,y=!1,v=0,b=0;const x=[];return wJ(e,(function(n){if(n.isDeclarationFile)return n;f=n;const r=function(n){const r=S(2,bf(n,s)?0:1);y=!1;const i=YB(n,C,e),o=oe(i.statements,m&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(m))]),a=t.updateSourceFile(i,cI(t.createNodeArray(o),n.statements));return k(r),a}(n);return Cw(r,e.readEmitHelpers()),f=void 0,m=void 0,r}));function S(e,t){const n=b;return b=3&(b&~e|t),n}function k(e){b=e}function T(e){m=he(m,t.createVariableDeclaration(e))}function C(e){return P(e,!1)}function w(e){return P(e,!0)}function N(e){if(134!==e.kind)return e}function D(e,t,n,r){if(function(e,t){return b!==(b&~e|t)}(n,r)){const i=S(n,r),o=e(t);return k(i),o}return e(t)}function F(t){return YB(t,C,e)}function P(r,i){if(0==(128&r.transformFlags))return r;switch(r.kind){case 223:return function(r){if(2&d&&1&d)return YC(cI(t.createYieldExpression(void 0,n().createAwaitHelper(qB(r.expression,C,au))),r),r);return YB(r,C,e)}(r);case 229:return function(r){if(2&d&&1&d){if(r.asteriskToken){const e=qB(Sn.checkDefined(r.expression),C,au);return YC(cI(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,cI(n().createAsyncDelegatorHelper(cI(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return YC(cI(t.createYieldExpression(void 0,O(r.expression?qB(r.expression,C,au):t.createVoidZero())),r),r)}return YB(r,C,e)}(r);case 253:return function(n){if(2&d&&1&d)return t.updateReturnStatement(n,O(n.expression?qB(n.expression,C,au):t.createVoidZero()));return YB(n,C,e)}(r);case 256:return function(n){if(2&d){const e=Pm(n);return 250===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel(qB(e,C,Pu,t.liftToBlock),n)}return YB(n,C,e)}(r);case 210:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(305===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push(qB(e,C,au))}else n=he(n,303===i.kind?t.createPropertyAssignment(i.name,qB(i.initializer,C,au)):qB(i,C,L_));n&&r.push(t.createObjectLiteralExpression(n));return r}(r.properties);e.length&&210!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t<e.length;t++)i=n().createAssignHelper([i,e[t]]);return i}return n().createAssignHelper(e)}return YB(r,C,e)}(r);case 226:return function(n,r){if(Hb(n)&&aI(n.left))return nz(n,C,e,1,!r);if(28===n.operatorToken.kind)return t.updateBinaryExpression(n,qB(n.left,w,au),n.operatorToken,qB(n.right,r?w:C,au));return YB(n,C,e)}(r,i);case 361:return function(n,r){if(r)return YB(n,w,e);let i;for(let e=0;e<n.elements.length;e++){const t=n.elements[e],r=qB(t,e<n.elements.length-1?w:C,au);(i||r!==t)&&(i||(i=n.elements.slice(0,e)),i.push(r))}const o=i?cI(t.createNodeArray(i),n.elements):n.elements;return t.updateCommaListExpression(n,o)}(r,i);case 299:return function(n){if(n.variableDeclaration&&R_(n.variableDeclaration.name)&&65536&n.variableDeclaration.name.transformFlags){const r=t.getGeneratedNameForNode(n.variableDeclaration.name),i=oz(t.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,void 0,r),C,e,1);let o=qB(n.block,C,PF);return re(i)&&(o=t.updateBlock(o,[t.createVariableStatement(void 0,i),...o.statements])),t.updateCatchClause(n,t.updateVariableDeclaration(n.variableDeclaration,r,void 0,void 0,void 0),o)}return YB(n,C,e)}(r);case 243:return function(t){if(fb(t,32)){const n=y;y=!0;const r=YB(t,C,e);return y=n,r}return YB(t,C,e)}(r);case 260:return function(e){if(y){const t=y;y=!1;const n=E(e,!0);return y=t,n}return E(e,!1)}(r);case 246:case 247:case 249:return D(F,r,0,2);case 250:return I(r,void 0);case 248:return D(A,r,0,2);case 222:case 244:return function(t){return YB(t,w,e)}(r);case 176:return D(R,r,2,1);case 174:return D(z,r,2,1);case 177:return D(B,r,2,1);case 178:return D(J,r,2,1);case 262:return D(q,r,2,1);case 218:return D(V,r,2,1);case 219:return D(U,r,2,0);case 169:return j(r);case 217:return function(t,n){return YB(t,n?w:C,e)}(r,i);case 215:return function(t){return Dz(e,t,C,f,T,0)}(r);case 211:return g&&YD(r)&&108===r.expression.kind&&g.add(r.name.escapedText),YB(r,C,e);case 212:return g&&108===r.expression.kind&&(h=!0),YB(r,C,e);case 263:case 231:return D(F,r,2,1);default:return YB(r,C,e)}}function E(t,n){return R_(t.name)&&65536&t.name.transformFlags?oz(t,C,e,1,void 0,n):YB(t,C,e)}function A(n){return t.updateForStatement(n,qB(n.initializer,w,hu),qB(n.condition,C,au),qB(n.incrementor,w,au),XB(n.statement,C,e))}function I(r,i){const a=S(0,2);(65536&r.initializer.transformFlags||B_(r.initializer)&&aI(r.initializer))&&(r=function(e){const n=Qh(e.initializer);if(XF(n)||B_(n)){let r,i;const o=t.createTempVariable(void 0),a=[KE(t,n,o)];return PF(e.statement)?(be(a,e.statement.statements),r=e.statement,i=e.statement.statements):e.statement&&(he(a,e.statement),r=e.statement,i=e.statement),t.updateForOfStatement(e,e.awaitModifier,cI(t.createVariableDeclarationList([cI(t.createVariableDeclaration(o),e.initializer)],1),e.initializer),e.expression,cI(t.createBlock(cI(t.createNodeArray(a),i),!0),r))}return e}(r));const s=r.awaitModifier?function(r,i,a){const s=qB(r.expression,C,au),c=HN(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=HN(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),_=t.createTempVariable(void 0),u=t.createTempVariable(o),d=t.createUniqueName("e"),p=t.getGeneratedNameForNode(d),f=t.createTempVariable(void 0),m=cI(n().createAsyncValuesHelper(s),r.expression),g=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]),h=t.createPropertyAccessExpression(l,"done"),y=t.createPropertyAccessExpression(l,"value"),v=t.createFunctionCallCall(f,c,[]);o(d),o(f);const b=2&a?t.inlineExpressions([t.createAssignment(d,t.createVoidZero()),m]):m,x=rw(cI(t.createForStatement(rw(cI(t.createVariableDeclarationList([t.createVariableDeclaration(_,void 0,void 0,t.createTrue()),cI(t.createVariableDeclaration(c,void 0,void 0,b),r.expression),t.createVariableDeclaration(l)]),r.expression),4194304),t.inlineExpressions([t.createAssignment(l,O(g)),t.createAssignment(u,h),t.createLogicalNot(u)]),t.createAssignment(_,t.createTrue()),function(n,r,i){const a=t.createTempVariable(o),s=t.createAssignment(a,r),c=t.createExpressionStatement(s);cw(c,n.expression);const l=t.createAssignment(i,t.createFalse()),_=t.createExpressionStatement(l);cw(_,n.expression);const u=[c,_],d=KE(t,n.initializer,a);let p,f;u.push(qB(d,C,Pu));const m=XB(n.statement,C,e);PF(m)?(be(u,m.statements),p=m,f=m.statements):u.push(m);return cI(t.createBlock(cI(t.createNodeArray(u),f),!0),p)}(r,y,_)),r),512);return YC(x,r),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(x,i)]),t.createCatchClause(t.createVariableDeclaration(p),rw(t.createBlock([t.createExpressionStatement(t.createAssignment(d,t.createObjectLiteralExpression([t.createPropertyAssignment("error",p)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([rw(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(_),t.createLogicalNot(u)),t.createAssignment(f,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(O(v))),1)]),void 0,rw(t.createBlock([rw(t.createIfStatement(d,t.createThrowStatement(t.createPropertyAccessExpression(d,"error"))),1)]),1))]))}(r,i,a):t.restoreEnclosingLabel(YB(r,C,e),i);return k(a),s}function O(e){return 1&d?t.createYieldExpression(void 0,n().createAwaitHelper(e)):t.createAwaitExpression(e)}function L(e){return Sn.assertNode(e,_D),j(e)}function j(n){return(null==p?void 0:p.has(n))?t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,R_(n.name)?t.getGeneratedNameForNode(n):n.name,void 0,void 0,void 0):65536&n.transformFlags?t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,t.getGeneratedNameForNode(n),void 0,void 0,qB(n.initializer,C,au)):YB(n,C,e)}function M(e){let t;for(const n of e.parameters)t?t.add(n):65536&n.transformFlags&&(t=new Set);return t}function R(n){const r=d,i=p;d=Ny(n),p=M(n);const o=t.updateConstructorDeclaration(n,n.modifiers,$B(n.parameters,L,e),H(n));return d=r,p=i,o}function B(n){const r=d,i=p;d=Ny(n),p=M(n);const o=t.updateGetAccessorDeclaration(n,n.modifiers,qB(n.name,C,g_),$B(n.parameters,L,e),void 0,H(n));return d=r,p=i,o}function J(n){const r=d,i=p;d=Ny(n),p=M(n);const o=t.updateSetAccessorDeclaration(n,n.modifiers,qB(n.name,C,g_),$B(n.parameters,L,e),H(n));return d=r,p=i,o}function z(n){const r=d,i=p;d=Ny(n),p=M(n);const o=t.updateMethodDeclaration(n,1&d?UB(n.modifiers,N,A_):n.modifiers,2&d?void 0:n.asteriskToken,qB(n.name,C,g_),qB(void 0,C,qN),void 0,$B(n.parameters,L,e),void 0,2&d&&1&d?W(n):H(n));return d=r,p=i,o}function q(n){const r=d,i=p;d=Ny(n),p=M(n);const o=t.updateFunctionDeclaration(n,1&d?UB(n.modifiers,N,f_):n.modifiers,2&d?void 0:n.asteriskToken,n.name,void 0,$B(n.parameters,L,e),void 0,2&d&&1&d?W(n):H(n));return d=r,p=i,o}function U(n){const r=d,i=p;d=Ny(n),p=M(n);const o=t.updateArrowFunction(n,n.modifiers,void 0,$B(n.parameters,L,e),void 0,n.equalsGreaterThanToken,H(n));return d=r,p=i,o}function V(n){const r=d,i=p;d=Ny(n),p=M(n);const o=t.updateFunctionExpression(n,1&d?UB(n.modifiers,N,f_):n.modifiers,2&d?void 0:n.asteriskToken,n.name,void 0,$B(n.parameters,L,e),void 0,2&d&&1&d?W(n):H(n));return d=r,p=i,o}function W(o){r();const s=[],l=t.copyPrologue(o.body.statements,s,!1,C);$(s,o);const _=g,d=h;g=new Set,h=!1;const p=t.createReturnStatement(n().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),o.name&&t.getGeneratedNameForNode(o.name),void 0,[],void 0,t.updateBlock(o.body,HB(o.body.statements,C,e,l))),!!(1&b))),f=c>=2&&384&a.getNodeCheckFlags(o);if(f){0==(1&u)&&(u|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243));const n=Wz(t,a,o,g);x[PB(n)]=!0,Jp(s,[n])}s.push(p),Jp(s,i());const m=t.updateBlock(o.body,s);return f&&h&&(256&a.getNodeCheckFlags(o)?Tw(m,vN):128&a.getNodeCheckFlags(o)&&Tw(m,yN)),g=_,h=d,m}function H(e){r();let n=0;const o=[],a=qB(e.body,C,mu)??t.createBlock([]);PF(a)&&(n=t.copyPrologue(a.statements,o,!1,C)),be(o,$(void 0,e));const s=i();if(n>0||re(o)||re(s)){const e=t.converters.convertToFunctionBlock(a,!0);return Jp(o,s),be(o,e.statements.slice(n)),t.updateBlock(e,cI(t.createNodeArray(o),e.statements))}return a}function $(n,r){let i=!1;for(const o of r.parameters)if(i){if(R_(o.name)){if(o.name.elements.length>0){const r=oz(o,C,e,0,t.getGeneratedNameForNode(o));if(re(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);rw(i,2097152),n=he(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=qB(o.initializer,C,au),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);rw(a,2097152),n=he(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);cI(e,o.name),rw(e,96);const r=qB(o.initializer,C,au);iw(r,3168);const i=t.createAssignment(e,r);cI(i,o),rw(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);cI(a,o),rw(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);fA(c),cI(c,o),rw(c,2101056),n=he(n,c)}}else if(65536&o.transformFlags){i=!0;const r=oz(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if(re(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);rw(i,2097152),n=he(n,i)}}return n}function K(e){return 108===e.expression.kind?cI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function G(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,cI(256&v?t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),"value"):t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[n]),r)):e;var n,r}}var Kz=g({"src/compiler/transformers/es2018.ts"(){OK()}});function Gz(e){const t=e.factory;return wJ(e,(function(t){if(t.isDeclarationFile)return t;return YB(t,n,e)}));function n(r){return 0==(64&r.transformFlags)?r:299===r.kind?function(r){if(!r.variableDeclaration)return t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),qB(r.block,n,PF));return YB(r,n,e)}(r):YB(r,n,e)}}var Xz=g({"src/compiler/transformers/es2019.ts"(){OK()}});function Qz(e){const{factory:t,hoistVariableDeclaration:n}=e;return wJ(e,(function(t){if(t.isDeclarationFile)return t;return YB(t,r,e)}));function r(i){if(0==(32&i.transformFlags))return i;switch(i.kind){case 213:{const e=o(i,!1);return Sn.assertNotNode(e,TP),e}case 211:case 212:if(Pl(i)){const e=s(i,!1,!1);return Sn.assertNotNode(e,TP),e}return YB(i,r,e);case 226:return 61===i.operatorToken.kind?function(e){let i=qB(e.left,r,au),o=i;IJ(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i));return cI(t.createConditionalExpression(c(i,o),void 0,o,void 0,qB(e.right,r,au)),e)}(i):YB(i,r,e);case 220:return function(e){return Pl(Qh(e.expression))?YC(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,qB(e.expression,r,au))}(i);default:return YB(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return TP(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(Pl(n))return s(n,o,!1);if(iF(n.expression)&&Pl(Qh(n.expression))){const e=i(n.expression,!0,!1),o=UB(n.arguments,r,au);return TP(e)?cI(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return YB(n,r,e)}function a(e,a,c){switch(e.kind){case 217:return i(e,a,c);case 211:case 212:return function(e,i,o){if(Pl(e))return s(e,i,o);let a,c=qB(e.expression,r,au);return Sn.assertNotNode(c,TP),i&&(IJ(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=211===e.kind?t.updatePropertyAccessExpression(e,c,qB(e.name,r,HN)):t.updateElementAccessExpression(e,c,qB(e.argumentExpression,r,au)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 213:return o(e,a);default:return qB(e,r,au)}}function s(e,i,o){const{expression:s,chain:l}=function(e){Sn.assertNotNode(e,Ml);const t=[e];for(;!e.questionDotToken&&!nF(e);)e=mt(jl(e.expression),Pl),Sn.assertNotNode(e,Ml),t.unshift(e);return{expression:e.expression,chain:t}}(e),_=a(jl(s),Fl(l[0]),!1);let u=TP(_)?_.thisArg:void 0,d=TP(_)?_.expression:_,p=t.restoreOuterExpressions(s,d,8);IJ(d)||(d=t.createTempVariable(n),p=t.createAssignment(d,p));let f,m=d;for(let e=0;e<l.length;e++){const o=l[e];switch(o.kind){case 211:case 212:e===l.length-1&&i&&(IJ(m)?f=m:(f=t.createTempVariable(n),m=t.createAssignment(f,m))),m=211===o.kind?t.createPropertyAccessExpression(m,qB(o.name,r,HN)):t.createElementAccessExpression(m,qB(o.argumentExpression,r,au));break;case 213:0===e&&u?(a_(u)||(u=t.cloneNode(u),iw(u,3072)),m=t.createFunctionCallCall(m,108===u.kind?t.createThis():u,UB(o.arguments,r,au))):m=t.createCallExpression(m,void 0,UB(o.arguments,r,au))}YC(m,o)}const g=o?t.createConditionalExpression(c(p,d,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(m)):t.createConditionalExpression(c(p,d,!0),void 0,t.createVoidZero(),void 0,m);return cI(g,e),f?t.createSyntheticReferenceExpression(g,f):g}function c(e,n,r){return t.createBinaryExpression(t.createBinaryExpression(e,t.createToken(r?37:38),t.createNull()),t.createToken(r?57:56),t.createBinaryExpression(n,t.createToken(r?37:38),t.createVoidZero()))}}var Yz=g({"src/compiler/transformers/es2020.ts"(){OK()}});function Zz(e){const{hoistVariableDeclaration:t,factory:n}=e;return wJ(e,(function(t){if(t.isDeclarationFile)return t;return YB(t,r,e)}));function r(i){return 0==(16&i.transformFlags)?i:Rb(i)?function(e){const i=jJ(e.operatorToken.kind);let o=Qh(qB(e.left,r,eu)),a=o;const s=Qh(qB(e.right,r,au));if(sS(o)){const e=IJ(o.expression),r=e?o.expression:n.createTempVariable(t),i=e?o.expression:n.createAssignment(r,o.expression);if(YD(o))a=n.createPropertyAccessExpression(r,o.name),o=n.createPropertyAccessExpression(i,o.name);else{const e=IJ(o.argumentExpression),s=e?o.argumentExpression:n.createTempVariable(t);a=n.createElementAccessExpression(r,s),o=n.createElementAccessExpression(i,e?o.argumentExpression:n.createAssignment(s,o.argumentExpression))}}return n.createBinaryExpression(o,i,n.createParenthesizedExpression(n.createAssignment(a,s)))}(i):YB(i,r,e)}}var eq=g({"src/compiler/transformers/es2021.ts"(){OK()}});function tq(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,startLexicalEnvironment:i,endLexicalEnvironment:o}=e;let a,s,c,l;return wJ(e,(function(t){if(t.isDeclarationFile)return t;const n=qB(t,_,$P);return Cw(n,e.readEmitHelpers()),s=void 0,a=void 0,c=void 0,n}));function _(n){if(0==(4&n.transformFlags))return n;switch(n.kind){case 312:return function(n){const r=aq(n.statements);if(r){i(),a=new xJ,s=[];const e=nq(n.statements),c=[];be(c,VB(n.statements,_,Pu,0,e));let d=e;for(;d<n.statements.length;){if(0!==oq(n.statements[d])){d>e&&be(c,UB(n.statements,_,Pu,e,d-e));break}d++}Sn.assert(d<n.statements.length,"Should have encountered at least one 'using' statement.");const p=m(),f=u(n.statements,d,n.statements.length,p,c);return a.size&&he(c,t.createExportDeclaration(void 0,!1,t.createNamedExports($e(a.values())))),be(c,o()),s.length&&c.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(s,1))),be(c,g(f,p,2===r)),l&&c.push(t.createExportAssignment(void 0,!0,l)),t.updateSourceFile(n,c)}return YB(n,_,e)}(n);case 241:return function(n){const r=aq(n.statements);if(r){const e=nq(n.statements),i=m();return t.updateBlock(n,[...VB(n.statements,_,Pu,0,e),...g(u(n.statements,e,n.statements.length,i,void 0),i,2===r)])}return YB(n,_,e)}(n);case 248:return function(n){if(n.initializer&&rq(n.initializer))return qB(t.createBlock([t.createVariableStatement(void 0,n.initializer),t.updateForStatement(n,void 0,n.condition,n.incrementor,n.statement)]),_,Pu);return YB(n,_,e)}(n);case 250:return function(n){if(rq(n.initializer)){const e=n.initializer;Sn.assertNode(e,rq),Sn.assert(1===e.declarations.length,"ForInitializer may only have one declaration");const r=e.declarations[0];Sn.assert(!r.initializer,"ForInitializer may not have an initializer");const i=2===iq(e),o=t.getGeneratedNameForNode(r.name),a=t.updateVariableDeclaration(r,r.name,void 0,void 0,o),s=t.createVariableDeclarationList([a],i?6:4),c=t.createVariableStatement(void 0,s);return qB(t.updateForOfStatement(n,n.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(o)],2),n.expression,PF(n.statement)?t.updateBlock(n.statement,[c,...n.statement.statements]):t.createBlock([c,n.statement],!0)),_,Pu)}return YB(n,_,e)}(n);case 255:return function(n){const r=function(e){let t=0;for(const n of e){const e=aq(n.statements);if(2===e)return 2;e>t&&(t=e)}return t}(n.caseBlock.clauses);if(r){const i=m();return g([t.updateSwitchStatement(n,qB(n.expression,_,au),t.updateCaseBlock(n.caseBlock,n.caseBlock.clauses.map((n=>function(n,r){if(0!==aq(n.statements))return RP(n)?t.updateCaseClause(n,qB(n.expression,_,au),u(n.statements,0,n.statements.length,r,void 0)):t.updateDefaultClause(n,u(n.statements,0,n.statements.length,r,void 0));return YB(n,_,e)}(n,i)))))],i,2===r)}return YB(n,_,e)}(n);default:return YB(n,_,e)}}function u(i,o,a,s,u){const m=[];for(let r=o;r<a;r++){const o=i[r],a=oq(o);if(a){Sn.assertNode(o,EF);const r=[];for(let i of o.declarationList.declarations){if(!HN(i.name)){r.length=0;break}Wy(i)&&(i=Cz(e,i));const o=qB(i.initializer,_,au)??t.createVoidZero();r.push(t.updateVariableDeclaration(i,i.name,void 0,void 0,n().createAddDisposableResourceHelper(s,o,2===a)))}if(r.length){const e=t.createVariableDeclarationList(r,2);YC(e,o.declarationList),cI(e,o.declarationList),g(t.updateVariableStatement(o,void 0,e));continue}}const c=_(o);_t(c)?c.forEach(g):c&&g(c)}return m;function g(n){Sn.assertNode(n,Pu),he(m,function(n){if(!u)return n;switch(n.kind){case 272:case 271:case 278:case 262:return function(e,t){return void t.push(e)}(n,u);case 277:return function(n){return n.isExportEquals?function(e){if(l)return e;l=t.createUniqueName("_default",56),r(l);const n=t.createAssignment(l,e.expression);return t.createExpressionStatement(n)}(n):function(n){if(c)return n;c=t.createUniqueName("_default",56),f(c,!0,"default",n);let r=n.expression,i=uA(r);Wy(i)&&(i=Cz(e,i,!1,"default"),r=t.restoreOuterExpressions(r,i));const o=t.createAssignment(c,r);return t.createExpressionStatement(o)}(n)}(n);case 263:return function(n){if(!n.name&&c)return n;const r=fb(n,32),i=fb(n,2048);let o=t.converters.convertToClassExpression(n);n.name&&(f(t.getLocalName(n),r&&!i,void 0,n),o=t.createAssignment(t.getDeclarationName(n),o),Wy(o)&&(o=Cz(e,o,!1)),YC(o,n),cw(o,n),fw(o,n));i&&!c&&(c=t.createUniqueName("_default",56),f(c,!0,"default",n),o=t.createAssignment(c,o),Wy(o)&&(o=Cz(e,o,!1,"default")),YC(o,n));return t.createExpressionStatement(o)}(n);case 243:return function(e){let n;const r=fb(e,32);for(const t of e.declarationList.declarations)p(t,r,t),t.initializer&&(n=he(n,d(t)));if(n){const r=t.createExpressionStatement(t.inlineExpressions(n));return YC(r,e),fw(r,e),cw(r,e),r}return}(n)}return n}(n))}}function d(e){let n;Sn.assertIsDefined(e.initializer),HN(e.name)?(n=t.cloneNode(e.name),rw(n,-114689&tf(n))):n=t.converters.convertToAssignmentPattern(e.name);const r=t.createAssignment(n,e.initializer);return YC(r,e),fw(r,e),cw(r,e),r}function p(e,t,n){if(R_(e.name))for(const r of e.name.elements)vF(r)||p(r,t,n);else f(e.name,t,void 0,n)}function f(e,n,i,o){const c=a_(e)?e:t.cloneNode(e);if(n){if(void 0===i&&!tA(c)){const e=t.createVariableDeclaration(c);return o&&YC(e,o),void s.push(e)}const e=void 0!==i?c:void 0,n=void 0!==i?i:c,r=t.createExportSpecifier(!1,e,n);o&&YC(r,o),a.set(c,r)}r(c)}function m(){return t.createUniqueName("env")}function g(e,r,i){const o=[],a=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),s=t.createVariableDeclaration(r,void 0,void 0,a),c=t.createVariableDeclarationList([s],2),l=t.createVariableStatement(void 0,c);o.push(l);const _=t.createBlock(e,!0),u=t.createUniqueName("e"),d=t.createCatchClause(u,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(r,"error"),u)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(r,"hasError"),t.createTrue()))],!0));let p;if(i){const e=t.createUniqueName("result");p=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n().createDisposeResourcesHelper(r))],2)),t.createIfStatement(e,t.createExpressionStatement(t.createAwaitExpression(e)))],!0)}else p=t.createBlock([t.createExpressionStatement(n().createDisposeResourcesHelper(r))],!0);const f=t.createTryStatement(_,d,p);return o.push(f),o}}function nq(e){for(let t=0;t<e.length;t++)if(!_m(e[t])&&!um(e[t]))return t;return 0}function rq(e){return XF(e)&&0!==iq(e)}function iq(e){return 6==(7&e.flags)?2:4==(7&e.flags)?1:0}function oq(e){return EF(e)?iq(e.declarationList):0}function aq(e){let t=0;for(const n of e){const e=oq(n);if(2===e)return 2;e>t&&(t=e)}return t}var sq,cq=g({"src/compiler/transformers/esnext.ts"(){OK()}});function lq(e){const{factory:t,getEmitHelperFactory:n}=e,i=e.getCompilerOptions();let o,a;return wJ(e,(function(n){if(n.isDeclarationFile)return n;o=n,a={},a.importSpecifier=Sk(i,n);let r=YB(n,_,e);Cw(r,e.readEmitHelpers());let s=r.statements;a.filenameDeclaration&&(s=Up(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([a.filenameDeclaration],2))));if(a.utilizedImplicitRuntimeImports)for(const[e,r]of $e(a.utilizedImplicitRuntimeImports.entries()))if(tO(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports($e(r.values()))),t.createStringLiteral(e),void 0);OT(n,!1),s=Up(s.slice(),n)}else if(Yf(n)){const 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));OT(n,!1),s=Up(s.slice(),n)}s!==r.statements&&(r=t.updateSourceFile(r,s));return a=void 0,r}));function s(){if(a.filenameDeclaration)return a.filenameDeclaration.name;const e=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return a.filenameDeclaration=e,a.filenameDeclaration.name}function c(e){const t=function(e){return 5===i.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return l(t)}function l(e){var n,r;const o="createElement"===e?a.importSpecifier:kk(a.importSpecifier,i),s=null==(r=null==(n=a.utilizedImplicitRuntimeImports)?void 0:n.get(o))?void 0:r.get(e);if(s)return s.name;a.utilizedImplicitRuntimeImports||(a.utilizedImplicitRuntimeImports=new Map);let c=a.utilizedImplicitRuntimeImports.get(o);c||(c=new Map,a.utilizedImplicitRuntimeImports.set(o,c));const l=t.createUniqueName(`_${e}`,112),_=t.createImportSpecifier(!1,t.createIdentifier(e),l);return Rw(l,_),c.set(e,_),l}function _(t){return 2&t.transformFlags?function(t){switch(t.kind){case 284:return f(t,!1);case 285:return m(t,!1);case 288:return g(t,!1);case 294:return E(t);default:return YB(t,_,e)}}(t):t}function u(e){switch(e.kind){case 12:return function(e){const n=function(e){let t,n=0,r=-1;for(let i=0;i<e.length;i++){const o=e.charCodeAt(i);ps(o)?(-1!==n&&-1!==r&&(t=N(t,e.substr(n,r-n+1))),n=-1):ds(o)||(r=i,-1===n&&(n=i))}return-1!==n?N(t,e.substr(n)):t}(e.text);return void 0===n?void 0:t.createStringLiteral(n)}(e);case 294:return E(e);case 284:return f(e,!0);case 285:return m(e,!0);case 288:return g(e,!0);default:return Sn.failBadSyntaxKind(e)}}function d(e){return e.properties.some((e=>qP(e)&&(HN(e.name)&&"__proto__"===Dc(e.name)||FN(e.name)&&"__proto__"===e.name.text)))}function p(e){return void 0===a.importSpecifier||function(e){let t=!1;for(const n of e.attributes.properties)if(!LP(n)||QD(n.expression)&&!n.expression.properties.some(VP)){if(t&&IP(n)&&HN(n.name)&&"key"===n.name.escapedText)return!0}else t=!0;return!1}(e)}function f(e,t){return(p(e.openingElement)?x:y)(e.openingElement,e.children,t,e)}function m(e,t){return(p(e)?x:y)(e,void 0,t,e)}function g(e,t){return(void 0===a.importSpecifier?k:S)(e.openingFragment,e.children,t,e)}function h(e){const n=iv(e);if(1===v(n)&&!n[0].dotDotDotToken){const e=u(n[0]);return e&&t.createPropertyAssignment("children",e)}const r=G(e,u);return v(r)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(r)):void 0}function y(e,n,i,o){const a=P(e),s=n&&n.length?h(n):void 0,c=D(e.attributes.properties,(e=>!!e.name&&HN(e.name)&&"key"===e.name.escapedText)),l=c?M(e.attributes.properties,(e=>e!==c)):e.attributes.properties;return b(a,v(l)?T(l,s):t.createObjectLiteralExpression(s?[s]:r),c,n||r,i,o)}function b(e,n,r,a,l,_){var u;const d=iv(a),p=v(d)>1||!!(null==(u=d[0])?void 0:u.dotDotDotToken),f=[e,n];if(r&&f.push(w(r.initializer)),5===i.jsx){const e=Sc(o);if(e&&$P(e)){void 0===r&&f.push(t.createVoidZero()),f.push(p?t.createTrue():t.createFalse());const n=_s(e,_.pos);f.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",s()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(n.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(n.character+1))])),f.push(t.createThis())}}const m=cI(t.createCallExpression(c(p),void 0,f),_);return l&&fA(m),m}function x(n,r,s,c){const _=P(n),d=n.attributes.properties,p=v(d)?T(d):t.createNull(),f=void 0===a.importSpecifier?WE(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,n):l("createElement"),m=HE(t,f,_,p,G(r,u),c);return s&&fA(m),m}function S(e,n,r,i){let o;if(n&&n.length){const e=function(e){const n=h(e);return n&&t.createObjectLiteralExpression([n])}(n);e&&(o=e)}return b(l("Fragment"),o||t.createObjectLiteralExpression([]),void 0,n,r,i)}function k(n,r,a,s){const c=$E(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,G(r,u),n,s);return a&&fA(c),c}function T(e,r){const o=HS(i);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=U(te(e,LP,((e,n)=>U(J(e,(e=>{return n?QD((r=e).expression)&&!d(r.expression)?q(r.expression.properties,(e=>Sn.checkDefined(qB(e,_,L_)))):t.createSpreadAssignment(Sn.checkDefined(qB(r.expression,_,au))):C(e);var r}))))));n&&r.push(n);return r}(e,r)):function(e,r){const i=[];let o=[];for(const t of e)if(LP(t)){if(QD(t.expression)&&!d(t.expression)){for(const e of t.expression.properties)VP(e)?(a(),i.push(Sn.checkDefined(qB(e.expression,_,au)))):o.push(Sn.checkDefined(qB(e,_)));continue}a(),i.push(Sn.checkDefined(qB(t.expression,_,au)))}else o.push(C(t));r&&o.push(r);a(),i.length&&!QD(i[0])&&i.unshift(t.createObjectLiteralExpression());return Oe(i)||n().createAssignHelper(i);function a(){o.length&&(i.push(t.createObjectLiteralExpression(o)),o=[])}}(e,r)}function C(e){const n=function(e){const n=e.name;if(HN(n)){const e=Dc(n);return/^[A-Za-z_]\w*$/.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(Dc(n.namespace)+":"+Dc(n.name))}(e),r=w(e.initializer);return t.createPropertyAssignment(n,r)}function w(e){if(void 0===e)return t.createTrue();if(11===e.kind){const n=void 0!==e.singleQuote?e.singleQuote:!jg(e,o);return cI(t.createStringLiteral(function(e){const t=F(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 294===e.kind?void 0===e.expression?t.createTrue():Sn.checkDefined(qB(e.expression,_,au)):wP(e)?f(e,!1):NP(e)?m(e,!1):PP(e)?g(e,!1):Sn.failBadSyntaxKind(e)}function N(e,t){const n=F(t);return void 0===e?n:e+" "+n}function F(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,((e,t,n,r,i,o,a)=>{if(i)return Bs(parseInt(i,10));if(o)return Bs(parseInt(o,16));{const t=sq.get(a);return t?Bs(t):e}}))}function P(e){if(284===e.kind)return P(e.openingElement);{const n=e.tagName;return HN(n)&&mv(n.escapedText)?t.createStringLiteral(Dc(n)):MP(n)?t.createStringLiteral(Dc(n.namespace)+":"+Dc(n.name)):XE(t,n)}}function E(e){const n=qB(e.expression,_,au);return e.dotDotDotToken?t.createSpreadElement(n):n}}var _q=g({"src/compiler/transformers/jsx.ts"(){OK(),sq=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 uq(e){const{factory:t,hoistVariableDeclaration:n}=e;return wJ(e,(function(t){if(t.isDeclarationFile)return t;return YB(t,r,e)}));function r(i){return 0==(512&i.transformFlags)?i:226===i.kind?function(i){switch(i.operatorToken.kind){case 68:return function(e){let i,o;const a=qB(e.left,r,au),s=qB(e.right,r,au);if(ZD(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=cI(t.createElementAccessExpression(cI(t.createAssignment(e,a.expression),a.expression),cI(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=cI(t.createElementAccessExpression(e,r),a)}else if(YD(a)){const e=t.createTempVariable(n);i=cI(t.createPropertyAccessExpression(cI(t.createAssignment(e,a.expression),a.expression),a.name),a),o=cI(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return cI(t.createAssignment(i,cI(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 43:return function(e){const n=qB(e.left,r,au),i=qB(e.right,r,au);return cI(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return YB(i,r,e)}}(i):YB(i,r,e)}}var dq=g({"src/compiler/transformers/es2016.ts"(){OK()}});function pq(e,t){return{kind:e,expression:t}}function fq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,c=e.getCompilerOptions(),l=e.getEmitResolver(),_=e.onSubstituteNode,u=e.onEmitNode;let d,p,f,m,g,h;function y(e){m=he(m,t.createVariableDeclaration(e))}return e.onEmitNode=function(e,t,n){if(1&h&&y_(t)){const r=v(32670,16&tf(t)?81:65);return u(e,t,n),void b(r,0,0)}u(e,t,n)},e.onSubstituteNode=function(e,n){if(n=_(e,n),1===e)return function(e){switch(e.kind){case 80:return function(e){if(2&h&&!eA(e)){const n=l.getReferencedDeclarationWithCollidingName(e);if(n&&(!w_(n)||!function(e,t){let n=Cc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=Ef(e);for(;n;){if(n===r||n===e)return!1;if(C_(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return cI(t.getGeneratedNameForNode(Mc(n)),e)}return e}(e);case 110:return function(e){if(1&h&&16&f)return cI(P(),e);return e}(e)}return e}(n);if(HN(n))return function(e){if(2&h&&!eA(e)){const n=Cc(e,HN);if(n&&function(e){switch(e.parent.kind){case 208:case 263:case 266:case 260:return e.parent.name===e&&l.isDeclarationWithCollidingName(e.parent)}return!1}(n))return cI(t.getGeneratedNameForNode(n),e)}return e}(n);return n},wJ(e,(function(n){if(n.isDeclarationFile)return n;d=n,p=n.text;const i=function(e){const n=v(8064,64),i=[],a=[];r();const s=t.copyPrologue(e.statements,i,!1,k);be(a,UB(e.statements,k,Pu,s)),m&&a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(m)));return t.mergeLexicalEnvironment(i,o()),ae(i,e),b(n,0,0),t.updateSourceFile(e,cI(t.createNodeArray(oe(i,a)),e.statements))}(n);return Cw(i,e.readEmitHelpers()),d=void 0,p=void 0,m=void 0,f=0,i}));function v(e,t){const n=f;return f=32767&(f&~e|t),n}function b(e,t,n){f=-32768&(f&~t|n)|e}function x(e){return 0!=(8192&f)&&253===e.kind&&!e.expression}function S(e){return 0!=(1024&e.transformFlags)||void 0!==g||8192&f&&function(e){return 4194304&e.transformFlags&&(qF(e)||OF(e)||UF(e)||VF(e)||iP(e)||RP(e)||BP(e)||$F(e)||zP(e)||WF(e)||lu(e,!1)||PF(e))}(e)||lu(e,!1)&&qe(e)||0!=(1&nf(e))}function k(e){return S(e)?D(e,!1):e}function T(e){return S(e)?D(e,!0):e}function C(e){if(S(e)){const t=Sc(e);if(pD(t)&&gb(t)){const t=v(32670,16449),n=D(e,!1);return b(t,229376,0),n}return D(e,!1)}return e}function w(e){return 108===e.kind?st(e,!0):k(e)}function D(n,r){switch(n.kind){case 126:return;case 263:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,A(e));YC(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(YC(i,e),cI(i,e),fA(i),r.push(i),fb(e,32)){const n=fb(e,2048)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));YC(n,i),r.push(n)}return je(r)}(n);case 231:return function(e){return A(e)}(n);case 169:return function(e){return e.dotDotDotToken?void 0:R_(e.name)?YC(cI(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?YC(cI(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 262:return function(n){const r=g;g=void 0;const i=v(32670,65),o=$B(n.parameters,k,e),a=me(n),s=32768&f?t.getLocalName(n):n.name;return b(i,229376,0),g=r,t.updateFunctionDeclaration(n,UB(n.modifiers,k,f_),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 219:return function(n){16384&n.transformFlags&&!(16384&f)&&(f|=131072);const r=g;g=void 0;const i=v(15232,66),o=t.createFunctionExpression(void 0,void 0,void 0,void 0,$B(n.parameters,k,e),void 0,me(n));return cI(o,n),YC(o,n),rw(o,16),b(i,0,0),g=r,o}(n);case 218:return function(n){const r=524288&tf(n)?v(32662,69):v(32670,65),i=g;g=void 0;const o=$B(n.parameters,k,e),a=me(n),s=32768&f?t.getLocalName(n):n.name;return b(r,229376,0),g=i,t.updateFunctionExpression(n,void 0,n.asteriskToken,s,void 0,o,void 0,a)}(n);case 260:return ve(n);case 80:return E(n);case 261:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&&ct();const e=UB(n.declarations,1&n.flags?ye:ve,GF),r=t.createVariableDeclarationList(e);return YC(r,n),cI(r,n),fw(r,n),524288&n.transformFlags&&(R_(n.declarations[0].name)||R_(Ie(n.declarations).name))&&cw(r,function(e){let t=-1,n=-1;for(const r of e)t=-1===t?r.pos:-1===r.pos?t:Math.min(t,r.pos),n=Math.max(n,r.end);return gx(t,n)}(e)),r}return YB(n,k,e)}(n);case 255:return function(t){if(void 0!==g){const n=g.allowedNonLabeledJumps;g.allowedNonLabeledJumps|=2;const r=YB(t,k,e);return g.allowedNonLabeledJumps=n,r}return YB(t,k,e)}(n);case 269:return function(t){const n=v(7104,0),r=YB(t,k,e);return b(n,0,0),r}(n);case 241:return function(t,n){if(n)return YB(t,k,e);const r=256&f?v(7104,512):v(6976,128),i=YB(t,k,e);return b(r,0,0),i}(n,!1);case 252:case 251:return function(n){if(g){const e=252===n.kind?2:4;if(!(n.label&&g.labels&&g.labels.get(Dc(n.label))||!n.label&&g.allowedNonLabeledJumps&e)){let e;const r=n.label;r?252===n.kind?(e=`break-${r.escapedText}`,Ge(g,!0,Dc(r),e)):(e=`continue-${r.escapedText}`,Ge(g,!1,Dc(r),e)):252===n.kind?(g.nonLocalJumps|=2,e="break"):(g.nonLocalJumps|=4,e="continue");let i=t.createStringLiteral(e);if(g.loopOutParameters.length){const e=g.loopOutParameters;let n;for(let r=0;r<e.length;r++){const i=$e(e[r],1);n=0===r?i:t.createBinaryExpression(n,28,i)}i=t.createBinaryExpression(n,28,i)}return t.createReturnStatement(i)}}return YB(n,k,e)}(n);case 256:return function(e){g&&!g.labels&&(g.labels=new Map);const n=Pm(e,g&&xe);return lu(n,!1)?function(e,t){switch(e.kind){case 246:case 247:return Te(e,t);case 248:return Ce(e,t);case 249:return we(e,t);case 250:return Ne(e,t)}}(n,e):t.restoreEnclosingLabel(Sn.checkDefined(qB(n,k,Pu,t.liftToBlock)),e,g&&Se)}(n);case 246:case 247:return Te(n,void 0);case 248:return Ce(n,void 0);case 249:return we(n,void 0);case 250:return Ne(n,void 0);case 244:case 222:return function(t){return YB(t,T,e)}(n);case 210:return function(n){const r=n.properties;let i=-1,o=!1;for(let e=0;e<r.length;e++){const t=r[e];if(1048576&t.transformFlags&&4&f||(o=167===Sn.checkDefined(t.name).kind)){i=e;break}}if(i<0)return YB(n,k,e);const s=t.createTempVariable(a),c=[],l=t.createAssignment(s,rw(t.createObjectLiteralExpression(UB(r,k,L_,0,i),n.multiLine),o?131072:0));n.multiLine&&fA(l);return c.push(l),function(e,t,n,r){const i=t.properties,o=i.length;for(let a=r;a<o;a++){const r=i[a];switch(r.kind){case 177:case 178:const i=Qv(t.properties,r);r===i.firstAccessor&&e.push(de(n,i,t,!!t.multiLine));break;case 174:e.push(et(r,n,t,t.multiLine));break;case 303:e.push(Ye(r,n,t.multiLine));break;case 304:e.push(Ze(r,n,t.multiLine));break;default:Sn.failBadSyntaxKind(t)}}}(c,n,s,i),c.push(n.multiLine?fA(AT(cI(t.cloneNode(s),s),s.parent)):s),t.inlineExpressions(c)}(n);case 299:return function(n){const r=v(7104,0);let i;if(Sn.assert(!!n.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),R_(n.variableDeclaration.name)){const r=t.createTempVariable(void 0),o=t.createVariableDeclaration(r);cI(o,n.variableDeclaration);const a=oz(n.variableDeclaration,k,e,0,r),s=t.createVariableDeclarationList(a);cI(s,n.variableDeclaration);const c=t.createVariableStatement(void 0,s);i=t.updateCatchClause(n,o,function(e,n){const r=UB(e.statements,k,Pu);return t.updateBlock(e,[n,...r])}(n.block,c))}else i=YB(n,k,e);return b(r,0,0),i}(n);case 304:return function(e){return cI(t.createPropertyAssignment(e.name,E(t.cloneNode(e.name))),e)}(n);case 167:case 229:return function(t){return YB(t,k,e)}(n);case 209:return function(t){if(re(t.elements,hF))return tt(t.elements,!1,!!t.multiLine,!!t.elements.hasTrailingComma);return YB(t,k,e)}(n);case 213:return function(n){if(1&nf(n))return function(e){const n=mt(mt(uA(e.expression),aF).body,PF),r=e=>EF(e)&&!!Pe(e.declarationList.declarations).initializer,i=g;g=void 0;const o=UB(n.statements,C,Pu);g=i;const a=M(o,r),c=M(o,(e=>!r(e))),l=mt(Pe(a),EF).declarationList.declarations[0],_=uA(l.initializer);let u=ft(_,Vb);!u&&pF(_)&&28===_.operatorToken.kind&&(u=ft(_.left,Vb));const d=mt(u?uA(u.right):_,eF),p=mt(uA(d.expression),oF),f=p.body.statements;let m=0,h=-1;const y=[];if(u){const e=ft(f[m],IF);e&&(y.push(e),m++),y.push(f[m]),m++,y.push(t.createExpressionStatement(t.createAssignment(u.left,mt(l.name,HN))))}for(;!qF(s(f,h));)h--;be(y,f,m,h),h<-1&&be(y,f,h+1);const v=ft(s(f,h),qF);for(const e of c)qF(e)&&(null==v?void 0:v.expression)&&!HN(v.expression)?y.push(v):y.push(e);return be(y,a,1),t.restoreOuterExpressions(e.expression,t.restoreOuterExpressions(l.initializer,t.restoreOuterExpressions(u&&u.right,t.updateCallExpression(d,t.restoreOuterExpressions(d.expression,t.updateFunctionExpression(p,void 0,void 0,void 0,void 0,p.parameters,void 0,t.updateBlock(p.body,y))),void 0,d.arguments))))}(n);const r=uA(n.expression);if(108===r.kind||eg(r)||re(n.arguments,hF))return function(n,r){if(32768&n.transformFlags||108===n.expression.kind||eg(uA(n.expression))){const{target:e,thisArg:i}=t.createCallBinding(n.expression,a);let o;if(108===n.expression.kind&&rw(i,8),o=32768&n.transformFlags?t.createFunctionApplyCall(Sn.checkDefined(qB(e,w,au)),108===n.expression.kind?i:Sn.checkDefined(qB(i,k,au)),tt(n.arguments,!0,!1,!1)):cI(t.createFunctionCallCall(Sn.checkDefined(qB(e,w,au)),108===n.expression.kind?i:Sn.checkDefined(qB(i,k,au)),UB(n.arguments,k,au)),n),108===n.expression.kind){const e=t.createLogicalOr(o,Q());o=r?t.createAssignment(P(),e):e}return YC(o,n)}am(n)&&(f|=131072);return YB(n,k,e)}(n,!0);return t.updateCallExpression(n,Sn.checkDefined(qB(n.expression,w,au)),void 0,UB(n.arguments,k,au))}(n);case 214:return function(n){if(re(n.arguments,hF)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(Sn.checkDefined(qB(e,k,au)),r,tt(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return YB(n,k,e)}(n);case 217:return function(t,n){return YB(t,n?T:k,e)}(n,r);case 226:return ge(n,r);case 361:return function(n,r){if(r)return YB(n,T,e);let i;for(let e=0;e<n.elements.length;e++){const t=n.elements[e],r=qB(t,e<n.elements.length-1?T:k,au);(i||r!==t)&&(i||(i=n.elements.slice(0,e)),Sn.assert(r),i.push(r))}const o=i?cI(t.createNodeArray(i),n.elements):n.elements;return t.updateCommaListExpression(n,o)}(n,r);case 15:case 16:case 17:case 18:return function(e){return cI(t.createStringLiteral(e.text),e)}(n);case 11:return function(e){if(e.hasExtendedUnicodeEscape)return cI(t.createStringLiteral(e.text),e);return e}(n);case 9:return function(e){if(384&e.numericLiteralFlags)return cI(t.createNumericLiteral(e.text),e);return e}(n);case 215:return function(t){return Dz(e,t,k,d,y,1)}(n);case 228:return function(e){let n=t.createStringLiteral(e.head.text);for(const r of e.templateSpans){const e=[Sn.checkDefined(qB(r.expression,k,au))];r.literal.text.length>0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return cI(n,e)}(n);case 230:return function(e){return qB(e.expression,k,au)}(n);case 108:return st(n,!1);case 110:return function(e){f|=65536,2&f&&!(16384&f)&&(f|=131072);if(g)return 2&f?(g.containsLexicalThis=!0,e):g.thisName||(g.thisName=t.createUniqueName("this"));return e}(n);case 236:return function(e){if(105===e.keywordToken&&"target"===e.name.escapedText)return f|=32768,t.createUniqueName("_newTarget",48);return e}(n);case 174:return function(e){Sn.assert(!cD(e.name));const n=pe(e,yx(e,-1),void 0,void 0);return rw(n,1024|tf(n)),cI(t.createPropertyAssignment(e.name,n),e)}(n);case 177:case 178:return function(n){Sn.assert(!cD(n.name));const r=g;g=void 0;const i=v(32670,65);let o;const a=$B(n.parameters,k,e),s=me(n);o=177===n.kind?t.updateGetAccessorDeclaration(n,n.modifiers,n.name,a,n.type,s):t.updateSetAccessorDeclaration(n,n.modifiers,n.name,a,s);return b(i,229376,0),g=r,o}(n);case 243:return function(n){const r=v(0,fb(n,32)?32:0);let i;if(g&&0==(7&n.declarationList.flags)&&!function(e){return 1===e.declarationList.declarations.length&&!!e.declarationList.declarations[0].initializer&&!!(1&nf(e.declarationList.declarations[0].initializer))}(n)){let r;for(const i of n.declarationList.declarations)if(Ve(g,i),i.initializer){let n;R_(i.name)?n=nz(i,k,e,0):(n=t.createBinaryExpression(i.name,64,Sn.checkDefined(qB(i.initializer,k,au))),cI(n,i)),r=he(r,n)}i=r?cI(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}else i=YB(n,k,e);return b(r,0,0),i}(n);case 253:return function(n){if(g)return g.nonLocalJumps|=8,x(n)&&(n=F(n)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),n.expression?Sn.checkDefined(qB(n.expression,k,au)):t.createVoidZero())]));if(x(n))return F(n);return YB(n,k,e)}(n);default:return YB(n,k,e)}}function F(e){return YC(t.createReturnStatement(P()),e)}function P(){return t.createUniqueName("_this",48)}function E(e){return g&&l.isArgumentsLocalBinding(e)?g.argumentsName||(g.argumentsName=t.createUniqueName("arguments")):256&e.flags?YC(cI(t.createIdentifier(Nc(e.escapedText)),e),e):e}function A(a){a.name&&ct();const s=uy(a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,s?[t.createParameterDeclaration(void 0,void 0,at())]:[],void 0,function(a,s){const c=[],l=t.getInternalName(a),_=Cy(l)?t.getGeneratedNameForNode(l):l;r(),function(e,r,i){i&&e.push(cI(t.createExpressionStatement(n().createExtendsHelper(t.getInternalName(r))),i))}(c,a,s),function(n,r,a,s){const c=g;g=void 0;const l=v(32662,73),_=qv(r),u=function(e,t){if(!e||!t)return!1;if(re(e.parameters))return!1;const n=De(e.body.statements);if(!n||!Xy(n)||244!==n.kind)return!1;const r=n.expression;if(!Xy(r)||213!==r.kind)return!1;const i=r.expression;if(!Xy(i)||108!==i.kind)return!1;const o=Oe(r.arguments);if(!o||!Xy(o)||230!==o.kind)return!1;const a=o.expression;return HN(a)&&"arguments"===a.escapedText}(_,void 0!==s),d=t.createFunctionDeclaration(void 0,void 0,a,void 0,function(t,n){return $B(t&&!n?t.parameters:void 0,k,e)||[]}(_,u),void 0,function(e,n,r,a){const s=!!r&&106!==uA(r.expression).kind;if(!e)return function(e,n){const r=[];i(),t.mergeLexicalEnvironment(r,o()),n&&r.push(t.createReturnStatement(t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(at(),t.createNull()),t.createFunctionApplyCall(at(),Q(),t.createIdentifier("arguments"))),Q())));const a=t.createNodeArray(r);cI(a,e.members);const s=t.createBlock(a,!0);return cI(s,e),rw(s,3072),s}(n,s);const c=[],l=[];i();const _=t.copyStandardPrologue(e.body.statements,c,0);(a||O(e.body))&&(f|=8192);be(l,UB(e.body.statements,k,Pu,_));const u=s||8192&f;Z(c,e),ie(c,e,a),ce(c,e),u?se(c,e,Q()):ae(c,e);t.mergeLexicalEnvironment(c,o()),u&&!X(e.body)&&l.push(t.createReturnStatement(P()));const d=t.createBlock(cI(t.createNodeArray([...c,...l]),e.body.statements),!0);return cI(d,e.body),function(e,n,r){const i=e;e=function(e){for(let n=0;n<e.statements.length-1;n++){const r=e.statements[n];if(!R(r))continue;const i=r.declarationList.declarations[0];if(110!==i.initializer.kind)continue;const o=n;let a=n+1;for(;a<e.statements.length;){const t=e.statements[a];if(IF(t)&&$(uA(t.expression)))break;if(!I(t))return e;a++}const s=e.statements[a];let c=s.expression;B(c)&&(c=c.right);const l=t.updateVariableDeclaration(i,i.name,void 0,void 0,c),_=t.updateVariableDeclarationList(r.declarationList,[l]),u=t.createVariableStatement(r.modifiers,_);YC(u,s),cI(u,s);const d=t.createNodeArray([...e.statements.slice(0,o),...e.statements.slice(o+1,a),u,...e.statements.slice(a+1)]);return cI(d,e.statements),t.updateBlock(e,d)}return e}(e),e=function(e,n){for(const t of n.statements)if(134217728&t.transformFlags&&!MJ(t))return e;const r=!(16384&n.transformFlags||65536&f||131072&f);for(let n=e.statements.length-1;n>0;n--){const i=e.statements[n];if(qF(i)&&i.expression&&L(i.expression)){const i=e.statements[n-1];let o;if(IF(i)&&H(uA(i.expression)))o=i.expression;else if(r&&R(i)){const e=i.declarationList.declarations[0];$(uA(e.initializer))&&(o=t.createAssignment(P(),e.initializer))}if(!o)break;const a=t.createReturnStatement(o);YC(a,i),cI(a,i);const s=t.createNodeArray([...e.statements.slice(0,n-1),a,...e.statements.slice(n+1)]);return cI(s,e.statements),t.updateBlock(e,s)}}return e}(e,n),e!==i&&(e=function(e,n){if(16384&n.transformFlags||65536&f||131072&f)return e;for(const t of n.statements)if(134217728&t.transformFlags&&!MJ(t))return e;return t.updateBlock(e,UB(e.statements,K,Pu))}(e,n));r&&(e=function(e){return t.updateBlock(e,UB(e.statements,G,Pu))}(e));return e}(d,e.body,a)}(_,r,s,u));cI(d,_||r),s&&rw(d,16);n.push(d),b(l,229376,0),g=c}(c,a,_,s),function(e,t){for(const n of t.members)switch(n.kind){case 240:e.push(le(n));break;case 174:e.push(_e(lt(t,n),n,t));break;case 177:case 178:const r=Qv(t.members,n);n===r.firstAccessor&&e.push(ue(lt(t,n),r,t));break;case 176:case 175:break;default:Sn.failBadSyntaxKind(n,d&&d.fileName)}}(c,a);const u=Sx(ys(p,a.members.end),20),m=t.createPartiallyEmittedExpression(_);DT(m,u.end),rw(m,3072);const h=t.createReturnStatement(m);NT(h,u.pos),rw(h,3840),c.push(h),Jp(c,o());const y=t.createBlock(cI(t.createNodeArray(c),a.members),!0);return rw(y,3072),y}(a,s));rw(c,131072&tf(a)|1048576);const l=t.createPartiallyEmittedExpression(c);DT(l,a.end),rw(l,3072);const _=t.createPartiallyEmittedExpression(l);DT(_,ys(p,a.pos)),rw(_,3072);const u=t.createParenthesizedExpression(t.createCallExpression(_,void 0,s?[Sn.checkDefined(qB(s.expression,k,au))]:[]));return hw(u,3,"* @class "),u}function I(e){return EF(e)&&N(e.declarationList.declarations,(e=>HN(e.name)&&!e.initializer))}function O(e){if(am(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const t=e;return!!cD(t.name)&&!!KI(t.name,O)}}return!!KI(e,O)}function L(e){return a_(e)&&"_this"===Dc(e)}function j(e){return a_(e)&&"_super"===Dc(e)}function R(e){return EF(e)&&1===e.declarationList.declarations.length&&function(e){return GF(e)&&L(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function B(e){return Vb(e,!0)&&L(e.left)}function z(e){return eF(e)&&YD(e.expression)&&j(e.expression.expression)&&HN(e.expression.name)&&("call"===Dc(e.expression.name)||"apply"===Dc(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function q(e){return pF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&z(e.left)}function V(e){return pF(e)&&56===e.operatorToken.kind&&pF(e.left)&&38===e.left.operatorToken.kind&&j(e.left.left)&&106===e.left.right.kind&&z(e.right)&&"apply"===Dc(e.right.expression.name)}function W(e){return pF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&V(e.left)}function H(e){return B(e)&&q(e.right)}function $(e){return z(e)||q(e)||H(e)||V(e)||W(e)||function(e){return B(e)&&W(e.right)}(e)}function K(e){if(R(e)){if(110===e.declarationList.declarations[0].initializer.kind)return}else if(B(e))return t.createPartiallyEmittedExpression(e.right,e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return cD(n.name)?t.replacePropertyName(n,YB(n.name,K,zq)):e}}return YB(e,K,zq)}function G(e){if(z(e)&&2===e.arguments.length&&HN(e.arguments[1])&&"arguments"===Dc(e.arguments[1]))return t.createLogicalAnd(t.createStrictInequality(at(),t.createNull()),e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return cD(n.name)?t.replacePropertyName(n,YB(n.name,G,zq)):e}}return YB(e,G,zq)}function X(e){if(253===e.kind)return!0;if(245===e.kind){const t=e;if(t.elseStatement)return X(t.thenStatement)&&X(t.elseStatement)}else if(241===e.kind){const t=Ae(e.statements);if(t&&X(t))return!0}return!1}function Q(){return rw(t.createThis(),8)}function Y(e){return void 0!==e.initializer||R_(e.name)}function Z(e,t){if(!re(t.parameters,Y))return!1;let n=!1;for(const r of t.parameters){const{name:t,initializer:i,dotDotDotToken:o}=r;o||(R_(t)?n=ee(e,r,t,i)||n:i&&(ne(e,r,t,i),n=!0))}return n}function ee(n,r,i,o){return i.elements.length>0?(Up(n,rw(t.createVariableStatement(void 0,t.createVariableDeclarationList(oz(r,k,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(Up(n,rw(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),Sn.checkDefined(qB(o,k,au)))),2097152)),!0)}function ne(e,n,r,i){i=Sn.checkDefined(qB(i,k,au));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),rw(cI(t.createBlock([t.createExpressionStatement(rw(cI(t.createAssignment(rw(AT(cI(t.cloneNode(r),r),r.parent),96),rw(i,3168|tf(i))),n),3072))]),n),3905));fA(o),cI(o,n),rw(o,2101056),Up(e,o)}function ie(n,r,i){const o=[],a=Ae(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(a,i))return!1;const s=80===a.name.kind?AT(cI(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);rw(s,96);const c=80===a.name.kind?t.cloneNode(a.name):s,l=r.parameters.length-1,_=t.createLoopVariable();o.push(rw(cI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const u=t.createForStatement(cI(t.createVariableDeclarationList([t.createVariableDeclaration(_,void 0,void 0,t.createNumericLiteral(l))]),a),cI(t.createLessThan(_,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),cI(t.createPostfixIncrement(_),a),t.createBlock([fA(cI(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===l?_:t.createSubtract(_,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier("arguments"),_))),a))]));return rw(u,2097152),fA(u),o.push(u),80!==a.name.kind&&o.push(rw(cI(t.createVariableStatement(void 0,t.createVariableDeclarationList(oz(a,k,e,0,c))),a),2097152)),zp(n,o),!0}function ae(e,n){return!!(131072&f&&219!==n.kind)&&(se(e,n,t.createThis()),!0)}function se(n,r,i){0==(1&h)&&(h|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262));const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(P(),void 0,void 0,i)]));rw(o,2100224),cw(o,r),Up(n,o)}function ce(e,n){if(32768&f){let r;switch(n.kind){case 219:return e;case 174:case 177:case 178:r=t.createVoidZero();break;case 176:r=t.createPropertyAccessExpression(rw(t.createThis(),8),"constructor");break;case 262:case 218:r=t.createConditionalExpression(t.createLogicalAnd(rw(t.createThis(),8),t.createBinaryExpression(rw(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(rw(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return Sn.failBadSyntaxKind(n)}const i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,r)]));rw(i,2100224),Up(e,i)}return e}function le(e){return cI(t.createEmptyStatement(),e)}function _e(n,r,i){const o=pw(r),a=sw(r),s=pe(r,r,void 0,i),c=qB(r.name,k,g_);let l;if(Sn.assert(c),!$N(c)&&mk(e.getCompilerOptions())){const e=cD(c)?c.expression:HN(c)?t.createStringLiteral(Nc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=qE(t,n,c,r.name);l=t.createAssignment(e,s)}rw(s,3072),cw(s,a);const _=cI(t.createExpressionStatement(l),r);return YC(_,r),fw(_,o),rw(_,96),_}function ue(e,n,r){const i=t.createExpressionStatement(de(e,n,r,!1));return rw(i,3072),cw(i,sw(n.firstAccessor)),i}function de(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=AT(cI(t.cloneNode(e),e),e.parent);rw(s,3136),cw(s,n.name);const c=qB(n.name,k,g_);if(Sn.assert(c),$N(c))return Sn.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=QE(t,c);rw(l,3104),cw(l,n.name);const _=[];if(r){const e=pe(r,void 0,void 0,o);cw(e,sw(r)),rw(e,1024);const n=t.createPropertyAssignment("get",e);fw(n,pw(r)),_.push(n)}if(i){const e=pe(i,void 0,void 0,o);cw(e,sw(i)),rw(e,1024);const n=t.createPropertyAssignment("set",e);fw(n,pw(i)),_.push(n)}_.push(t.createPropertyAssignment("enumerable",r||i?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));const u=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[s,l,t.createObjectLiteralExpression(_,!0)]);return a&&fA(u),u}function pe(n,r,i,o){const a=g;g=void 0;const s=o&&w_(o)&&!mb(n)?v(32670,73):v(32670,65),c=$B(n.parameters,k,e),l=me(n);return 32768&f&&!i&&(262===n.kind||218===n.kind)&&(i=t.getGeneratedNameForNode(n)),b(s,229376,0),g=a,YC(cI(t.createFunctionExpression(void 0,n.asteriskToken,i,void 0,c,void 0,l),r),n)}function me(e){let n,r,a=!1,s=!1;const c=[],l=[],_=e.body;let u;if(i(),PF(_)&&(u=t.copyStandardPrologue(_.statements,c,0,!1),u=t.copyCustomPrologue(_.statements,l,u,k,dm),u=t.copyCustomPrologue(_.statements,l,u,k,fm)),a=Z(l,e)||a,a=ie(l,e,!1)||a,PF(_))u=t.copyCustomPrologue(_.statements,l,u,k),n=_.statements,be(l,UB(_.statements,k,Pu,u)),!a&&_.multiLine&&(a=!0);else{Sn.assert(219===e.kind),n=hx(_,-1);const i=e.equalsGreaterThanToken;Xy(i)||Xy(_)||(Nx(i,_,d)?s=!0:a=!0);const o=qB(_,k,au),c=t.createReturnStatement(o);cI(c,_),xw(c,_),rw(c,2880),l.push(c),r=_}if(t.mergeLexicalEnvironment(c,o()),ce(c,e),ae(c,e),re(c)&&(a=!0),l.unshift(...c),PF(_)&&fe(l,_.statements))return _;const p=t.createBlock(cI(t.createNodeArray(l),n),a);return cI(p,e.body),!a&&s&&rw(p,1),r&&_w(p,20,r),YC(p,e.body),p}function ge(n,r){return Hb(n)?nz(n,k,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,Sn.checkDefined(qB(n.left,T,au)),n.operatorToken,Sn.checkDefined(qB(n.right,r?T:k,au))):YB(n,k,e)}function ye(n){return R_(n.name)?ve(n):!n.initializer&&function(e){const t=l.getNodeCheckFlags(e),n=16384&t,r=32768&t;return!(0!=(64&f)||n&&r&&0!=(512&f))&&0==(4096&f)&&(!l.isDeclarationWithCollidingName(e)||r&&!n&&0==(6144&f))}(n)?t.updateVariableDeclaration(n,n.name,void 0,void 0,t.createVoidZero()):YB(n,k,e)}function ve(t){const n=v(32,0);let r;return r=R_(t.name)?oz(t,k,e,0,void 0,0!=(32&n)):YB(t,k,e),b(n,0,0),r}function xe(e){g.labels.set(Dc(e.label),!0)}function Se(e){g.labels.set(Dc(e.label),!1)}function ke(n,i,a,s,c){const l=v(n,i),_=function(n,i,a,s){if(!qe(n)){let r;g&&(r=g.allowedNonLabeledJumps,g.allowedNonLabeledJumps=6);const o=s?s(n,i,void 0,a):t.restoreEnclosingLabel(MF(n)?function(e){return t.updateForStatement(e,qB(e.initializer,T,hu),qB(e.condition,k,au),qB(e.incrementor,T,au),Sn.checkDefined(qB(e.statement,k,Pu,t.liftToBlock)))}(n):YB(n,k,e),i,g&&Se);return g&&(g.allowedNonLabeledJumps=r),o}const c=function(e){let t;switch(e.kind){case 248:case 249:case 250:const n=e.initializer;n&&261===n.kind&&(t=n)}const n=[],r=[];if(t&&7&vc(t)){const i=Be(e)||Je(e)||ze(e);for(const o of t.declarations)Qe(e,o,n,r,i)}const i={loopParameters:n,loopOutParameters:r};g&&(g.argumentsName&&(i.argumentsName=g.argumentsName),g.thisName&&(i.thisName=g.thisName),g.hoistedLocalVariables&&(i.hoistedLocalVariables=g.hoistedLocalVariables));return i}(n),l=[],_=g;g=c;const u=Be(n)?function(e,n){const r=t.createUniqueName("_loop_init"),i=0!=(1048576&e.initializer.transformFlags);let o=0;n.containsLexicalThis&&(o|=16);i&&4&f&&(o|=524288);const a=[];a.push(t.createVariableStatement(void 0,e.initializer)),Ke(n.loopOutParameters,2,1,a);const s=t.createVariableStatement(void 0,rw(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,rw(t.createFunctionExpression(void 0,i?t.createToken(42):void 0,void 0,void 0,void 0,void 0,Sn.checkDefined(qB(t.createBlock(a,!0),k,PF))),o))]),4194304)),c=t.createVariableDeclarationList(J(n.loopOutParameters,He));return{functionName:r,containsYield:i,functionDeclaration:s,part:c}}(n,c):void 0,d=Ue(n)?function(e,n,i){const a=t.createUniqueName("_loop");r();const s=qB(e.statement,k,Pu,t.liftToBlock),c=o(),l=[];(Je(e)||ze(e))&&(n.conditionVariable=t.createUniqueName("inc"),e.incrementor?l.push(t.createIfStatement(n.conditionVariable,t.createExpressionStatement(Sn.checkDefined(qB(e.incrementor,k,au))),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))):l.push(t.createIfStatement(t.createLogicalNot(n.conditionVariable),t.createExpressionStatement(t.createAssignment(n.conditionVariable,t.createTrue())))),Je(e)&&l.push(t.createIfStatement(t.createPrefixUnaryExpression(54,Sn.checkDefined(qB(e.condition,k,au))),Sn.checkDefined(qB(t.createBreakStatement(),k,Pu)))));Sn.assert(s),PF(s)?be(l,s.statements):l.push(s);Ke(n.loopOutParameters,1,1,l),Jp(l,c);const _=t.createBlock(l,!0);PF(s)&&YC(_,s);const u=0!=(1048576&e.statement.transformFlags);let d=1048576;n.containsLexicalThis&&(d|=16);u&&0!=(4&f)&&(d|=524288);const p=t.createVariableStatement(void 0,rw(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,rw(t.createFunctionExpression(void 0,u?t.createToken(42):void 0,void 0,void 0,n.loopParameters,void 0,_),d))]),4194304)),m=function(e,n,r,i){const o=[],a=!(-5&n.nonLocalJumps||n.labeledNonLocalBreaks||n.labeledNonLocalContinues),s=t.createCallExpression(e,void 0,J(n.loopParameters,(e=>e.name))),c=i?t.createYieldExpression(t.createToken(42),rw(s,8388608)):s;if(a)o.push(t.createExpressionStatement(c)),Ke(n.loopOutParameters,1,0,o);else{const e=t.createUniqueName("state"),i=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,c)]));if(o.push(i),Ke(n.loopOutParameters,1,0,o),8&n.nonLocalJumps){let n;r?(r.nonLocalJumps|=8,n=t.createReturnStatement(e)):n=t.createReturnStatement(t.createPropertyAccessExpression(e,"value")),o.push(t.createIfStatement(t.createTypeCheck(e,"object"),n))}if(2&n.nonLocalJumps&&o.push(t.createIfStatement(t.createStrictEquality(e,t.createStringLiteral("break")),t.createBreakStatement())),n.labeledNonLocalBreaks||n.labeledNonLocalContinues){const i=[];Xe(n.labeledNonLocalBreaks,!0,e,r,i),Xe(n.labeledNonLocalContinues,!1,e,r,i),o.push(t.createSwitchStatement(e,t.createCaseBlock(i)))}}return o}(a,n,i,u);return{functionName:a,containsYield:u,functionDeclaration:p,part:m}}(n,c,_):void 0;g=_,u&&l.push(u.functionDeclaration);d&&l.push(d.functionDeclaration);(function(e,n,r){let i;n.argumentsName&&(r?r.argumentsName=n.argumentsName:(i||(i=[])).push(t.createVariableDeclaration(n.argumentsName,void 0,void 0,t.createIdentifier("arguments"))));n.thisName&&(r?r.thisName=n.thisName:(i||(i=[])).push(t.createVariableDeclaration(n.thisName,void 0,void 0,t.createIdentifier("this"))));if(n.hoistedLocalVariables)if(r)r.hoistedLocalVariables=n.hoistedLocalVariables;else{i||(i=[]);for(const e of n.hoistedLocalVariables)i.push(t.createVariableDeclaration(e))}if(n.loopOutParameters.length){i||(i=[]);for(const e of n.loopOutParameters)i.push(t.createVariableDeclaration(e.outParamName))}n.conditionVariable&&(i||(i=[]),i.push(t.createVariableDeclaration(n.conditionVariable,void 0,void 0,t.createFalse())));i&&e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(i)))})(l,c,_),u&&l.push(function(e,n){const r=t.createCallExpression(e,void 0,[]),i=n?t.createYieldExpression(t.createToken(42),rw(r,8388608)):r;return t.createExpressionStatement(i)}(u.functionName,u.containsYield));let p;if(d)if(s)p=s(n,i,d.part,a);else{const e=We(n,u,t.createBlock(d.part,!0));p=t.restoreEnclosingLabel(e,i,g&&Se)}else{const e=We(n,u,Sn.checkDefined(qB(n.statement,k,Pu,t.liftToBlock)));p=t.restoreEnclosingLabel(e,i,g&&Se)}return l.push(p),l}(a,s,l,c);return b(l,0,0),_}function Te(e,t){return ke(0,1280,e,t)}function Ce(e,t){return ke(5056,3328,e,t)}function we(e,t){return ke(3008,5376,e,t)}function Ne(e,t){return ke(3008,5376,e,t,c.downlevelIteration?Me:Le)}function Fe(n,r,i){const o=[],a=n.initializer;if(XF(a)){7&n.initializer.flags&&ct();const i=De(a.declarations);if(i&&R_(i.name)){const a=oz(i,k,e,0,r),s=cI(t.createVariableDeclarationList(a),n.initializer);YC(s,n.initializer),cw(s,gx(a[0].pos,Ie(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(cI(t.createVariableStatement(void 0,YC(cI(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),yx(a,-1)),a)),hx(a,-1)))}else{const e=t.createAssignment(a,r);Hb(e)?o.push(t.createExpressionStatement(ge(e,!0))):(DT(e,a.end),o.push(cI(t.createExpressionStatement(Sn.checkDefined(qB(e,k,au))),hx(a,-1))))}if(i)return Ee(be(o,i));{const e=qB(n.statement,k,Pu,t.liftToBlock);return Sn.assert(e),PF(e)?t.updateBlock(e,cI(t.createNodeArray(oe(o,e.statements)),e.statements)):(o.push(e),Ee(o))}}function Ee(e){return rw(t.createBlock(t.createNodeArray(e),!0),864)}function Le(e,n,r){const i=qB(e.expression,k,au);Sn.assert(i);const o=t.createLoopVariable(),a=HN(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);rw(i,96|tf(i));const s=cI(t.createForStatement(rw(cI(t.createVariableDeclarationList([cI(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),yx(e.expression,-1)),cI(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),cI(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),cI(t.createPostfixIncrement(o),e.expression),Fe(e,t.createElementAccessExpression(a,o),r)),e);return rw(s,512),cI(s,e),t.restoreEnclosingLabel(s,n,g&&Se)}function Me(e,r,i,o){const s=qB(e.expression,k,au);Sn.assert(s);const c=HN(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=HN(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),_=t.createUniqueName("e"),u=t.getGeneratedNameForNode(_),d=t.createTempVariable(void 0),p=cI(n().createValuesHelper(s),e.expression),f=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]);a(_),a(d);const m=1024&o?t.inlineExpressions([t.createAssignment(_,t.createVoidZero()),p]):p,h=rw(cI(t.createForStatement(rw(cI(t.createVariableDeclarationList([cI(t.createVariableDeclaration(c,void 0,void 0,m),e.expression),t.createVariableDeclaration(l,void 0,void 0,f)]),e.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(l,"done")),t.createAssignment(l,f),Fe(e,t.createPropertyAccessExpression(l,"value"),i)),e),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(h,r,g&&Se)]),t.createCatchClause(t.createVariableDeclaration(u),rw(t.createBlock([t.createExpressionStatement(t.createAssignment(_,t.createObjectLiteralExpression([t.createPropertyAssignment("error",u)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([rw(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(l,t.createLogicalNot(t.createPropertyAccessExpression(l,"done"))),t.createAssignment(d,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(t.createFunctionCallCall(d,c,[]))),1)]),void 0,rw(t.createBlock([rw(t.createIfStatement(_,t.createThrowStatement(t.createPropertyAccessExpression(_,"error"))),1)]),1))]))}function Re(e){return 0!=(8192&l.getNodeCheckFlags(e))}function Be(e){return MF(e)&&!!e.initializer&&Re(e.initializer)}function Je(e){return MF(e)&&!!e.condition&&Re(e.condition)}function ze(e){return MF(e)&&!!e.incrementor&&Re(e.incrementor)}function qe(e){return Ue(e)||Be(e)}function Ue(e){return 0!=(4096&l.getNodeCheckFlags(e))}function Ve(e,t){e.hoistedLocalVariables||(e.hoistedLocalVariables=[]),function t(n){if(80===n.kind)e.hoistedLocalVariables.push(n);else for(const e of n.elements)vF(e)||t(e.name)}(t.name)}function We(e,n,r){switch(e.kind){case 248:return function(e,n,r){const i=e.condition&&Re(e.condition),o=i||e.incrementor&&Re(e.incrementor);return t.updateForStatement(e,qB(n?n.part:e.initializer,T,hu),qB(i?void 0:e.condition,k,au),qB(o?void 0:e.incrementor,T,au),r)}(e,n,r);case 249:return function(e,n){return t.updateForInStatement(e,Sn.checkDefined(qB(e.initializer,k,hu)),Sn.checkDefined(qB(e.expression,k,au)),n)}(e,r);case 250:return function(e,n){return t.updateForOfStatement(e,void 0,Sn.checkDefined(qB(e.initializer,k,hu)),Sn.checkDefined(qB(e.expression,k,au)),n)}(e,r);case 246:return function(e,n){return t.updateDoStatement(e,n,Sn.checkDefined(qB(e.expression,k,au)))}(e,r);case 247:return function(e,n){return t.updateWhileStatement(e,Sn.checkDefined(qB(e.expression,k,au)),n)}(e,r);default:return Sn.failBadSyntaxKind(e,"IterationStatement expected")}}function He(e){return t.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function $e(e,n){const r=0===n?e.outParamName:e.originalName,i=0===n?e.originalName:e.outParamName;return t.createBinaryExpression(i,64,r)}function Ke(e,n,r,i){for(const o of e)o.flags&n&&i.push(t.createExpressionStatement($e(o,r)))}function Ge(e,t,n,r){t?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=new Map),e.labeledNonLocalBreaks.set(n,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=new Map),e.labeledNonLocalContinues.set(n,r))}function Xe(e,n,r,i,o){e&&e.forEach(((e,a)=>{const s=[];if(!i||i.labels&&i.labels.get(a)){const e=t.createIdentifier(a);s.push(n?t.createBreakStatement(e):t.createContinueStatement(e))}else Ge(i,n,a,e),s.push(t.createReturnStatement(r));o.push(t.createCaseClause(t.createStringLiteral(e),s))}))}function Qe(e,n,r,i,o){const a=n.name;if(R_(a))for(const t of a.elements)vF(t)||Qe(e,t,r,i,o);else{r.push(t.createParameterDeclaration(void 0,void 0,a));const s=l.getNodeCheckFlags(n);if(65536&s||o){const r=t.createUniqueName("out_"+Dc(a));let o=0;65536&s&&(o|=1),MF(e)&&(e.initializer&&l.isBindingCapturedByNode(e.initializer,n)&&(o|=2),(e.condition&&l.isBindingCapturedByNode(e.condition,n)||e.incrementor&&l.isBindingCapturedByNode(e.incrementor,n))&&(o|=1)),i.push({flags:o,originalName:a,outParamName:r})}}}function Ye(e,n,r){const i=t.createAssignment(qE(t,n,Sn.checkDefined(qB(e.name,k,g_))),Sn.checkDefined(qB(e.initializer,k,au)));return cI(i,e),r&&fA(i),i}function Ze(e,n,r){const i=t.createAssignment(qE(t,n,Sn.checkDefined(qB(e.name,k,g_))),t.cloneNode(e.name));return cI(i,e),r&&fA(i),i}function et(e,n,r,i){const o=t.createAssignment(qE(t,n,Sn.checkDefined(qB(e.name,k,g_))),pe(e,e,void 0,r));return cI(o,e),i&&fA(o),o}function tt(e,r,i,o){const a=e.length,s=U(te(e,nt,((e,t,n,r)=>t(e,i,o&&r===a))));if(1===s.length){const e=s[0];if(r&&!c.downlevelIteration||jT(e.expression)||CN(e.expression,"___spreadArray"))return e.expression}const l=n(),_=0!==s[0].kind;let u=_?t.createArrayLiteralExpression():s[0].expression;for(let e=_?0:1;e<s.length;e++){const t=s[e];u=l.createSpreadArrayHelper(u,t.expression,1===t.kind&&!r)}return u}function nt(e){return hF(e)?rt:ot}function rt(e){return J(e,it)}function it(e){Sn.assertNode(e,hF);let t=qB(e.expression,k,au);Sn.assert(t);const r=CN(t,"___read");let i=r||jT(t)?2:1;return!c.downlevelIteration||1!==i||XD(t)||r||(t=n().createReadHelper(t,void 0),i=2),pq(i,t)}function ot(e,n,r){return pq(0,t.createArrayLiteralExpression(UB(t.createNodeArray(e,r),k,au),n))}function at(){return t.createUniqueName("_super",48)}function st(e,n){const r=8&f&&!n?t.createPropertyAccessExpression(YC(at(),e),"prototype"):at();return YC(r,e),fw(r,e),cw(r,e),r}function ct(){0==(2&h)&&(h|=2,e.enableSubstitution(80))}function lt(e,n){return mb(n)?t.getInternalName(e):t.createPropertyAccessExpression(t.getInternalName(e),"prototype")}}var mq=g({"src/compiler/transformers/es2015.ts"(){OK()}});function gq(e){const{factory:t}=e,n=e.getCompilerOptions();let r,i;1!==n.jsx&&3!==n.jsx||(r=e.onEmitNode,e.onEmitNode=function(e,t,n){switch(t.kind){case 286:case 287:case 285:const e=t.tagName;i[TJ(e)]=!0}r(e,t,n)},e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),i=[]);const o=e.onSubstituteNode;return e.onSubstituteNode=function(e,n){if(n.id&&i&&i[n.id])return o(e,n);if(YD(n=o(e,n)))return function(e){if($N(e.name))return e;const n=a(e.name);if(n)return cI(t.createElementAccessExpression(e.expression,n),e);return e}(n);if(qP(n))return function(e){const n=HN(e.name)&&a(e.name);if(n)return t.updatePropertyAssignment(e,n,e.initializer);return e}(n);return n},e.enableSubstitution(211),e.enableSubstitution(303),wJ(e,(function(e){return e}));function a(e){const n=Fc(e);if(void 0!==n&&n>=83&&n<=118)return cI(t.createStringLiteralFromNode(e),e)}}var hq=g({"src/compiler/transformers/es5.ts"(){OK()}});function yq(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistFunctionDeclaration:o,hoistVariableDeclaration:a}=e,s=HS(e.getCompilerOptions()),c=e.getEmitResolver(),l=e.onSubstituteNode;let _,u,d,p,f,m,g,h,y,v;e.onSubstituteNode=function(e,n){if(n=l(e,n),1===e)return function(e){if(HN(e))return function(e){if(!a_(e)&&_&&_.has(Dc(e))){const n=Sc(e);if(HN(n)&&n.parent){const r=c.getReferencedValueDeclaration(n);if(r){const n=u[TJ(r)];if(n){const r=AT(cI(t.cloneNode(n),n),n.parent);return cw(r,e),fw(r,e),r}}}}return e}(e);return e}(n);return n};let x,S,k,T,C,w,N,D,F,P,E,A,I=1,O=0,L=0;return wJ(e,(function(t){if(t.isDeclarationFile||0==(2048&t.transformFlags))return t;const n=YB(t,j,e);return Cw(n,e.readEmitHelpers()),n}));function j(t){const n=t.transformFlags;return p?function(t){switch(t.kind){case 246:case 247:return function(t){return p?(oe(),t=YB(t,j,e),se(),t):YB(t,j,e)}(t);case 255:return function(t){p&&te({kind:2,isScript:!0,breakLabel:-1});t=YB(t,j,e),p&&ce();return t}(t);case 256:return function(t){p&&te({kind:4,isScript:!0,labelText:Dc(t.label),breakLabel:-1});t=YB(t,j,e),p&&le();return t}(t);default:return M(t)}}(t):d?M(t):b_(t)&&t.asteriskToken?function(e){switch(e.kind){case 262:return R(e);case 218:return B(e);default:return Sn.failBadSyntaxKind(e)}}(t):2048&n?YB(t,j,e):t}function M(r){switch(r.kind){case 262:return R(r);case 218:return B(r);case 177:case 178:return function(t){const n=d,r=p;return d=!1,p=!1,t=YB(t,j,e),d=n,p=r,t}(r);case 243:return function(e){if(1048576&e.transformFlags)return void $(e.declarationList);{if(2097152&tf(e))return e;for(const t of e.declarationList.declarations)a(t.name);const n=jx(e.declarationList);if(0===n.length)return;return cw(t.createExpressionStatement(t.inlineExpressions(J(n,K))),e)}}(r);case 248:return function(n){p&&oe();const r=n.initializer;if(r&&XF(r)){for(const e of r.declarations)a(e.name);const i=jx(r);n=t.updateForStatement(n,i.length>0?t.inlineExpressions(J(i,K)):void 0,qB(n.condition,j,au),qB(n.incrementor,j,au),XB(n.statement,j,e))}else n=YB(n,j,e);p&&se();return n}(r);case 249:return function(n){p&&oe();const r=n.initializer;if(XF(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,Sn.checkDefined(qB(n.expression,j,au)),Sn.checkDefined(qB(n.statement,j,Pu,t.liftToBlock)))}else n=YB(n,j,e);p&&se();return n}(r);case 252:return function(t){if(p){const e=fe(t.label&&Dc(t.label));if(e>0)return ye(e,t)}return YB(t,j,e)}(r);case 251:return function(t){if(p){const e=me(t.label&&Dc(t.label));if(e>0)return ye(e,t)}return YB(t,j,e)}(r);case 253:return function(e){return n=qB(e.expression,j,au),r=e,cI(t.createReturnStatement(t.createArrayLiteralExpression(n?[he(2),n]:[he(2)])),r);var n,r}(r);default:return 1048576&r.transformFlags?function(r){switch(r.kind){case 226:return function(n){const r=Yy(n);switch(r){case 0:return function(n){if(G(n.right))return jb(n.operatorToken.kind)?function(e){const t=Z(),n=Y();xe(n,Sn.checkDefined(qB(e.left,j,au)),e.left),56===e.operatorToken.kind?Te(t,n,e.left):ke(t,n,e.left);return xe(n,Sn.checkDefined(qB(e.right,j,au)),e.right),ee(t),n}(n):28===n.operatorToken.kind?q(n):t.updateBinaryExpression(n,Q(Sn.checkDefined(qB(n.left,j,au))),n.operatorToken,Sn.checkDefined(qB(n.right,j,au)));return YB(n,j,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if(G(i)){let e;switch(r.kind){case 211:e=t.updatePropertyAccessExpression(r,Q(Sn.checkDefined(qB(r.expression,j,eu))),r.name);break;case 212:e=t.updateElementAccessExpression(r,Q(Sn.checkDefined(qB(r.expression,j,eu))),Q(Sn.checkDefined(qB(r.argumentExpression,j,au))));break;default:e=Sn.checkDefined(qB(r,j,au))}const o=n.operatorToken.kind;return LJ(o)?cI(t.createAssignment(e,cI(t.createBinaryExpression(Q(e),jJ(o),Sn.checkDefined(qB(i,j,au))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,Sn.checkDefined(qB(i,j,au)))}return YB(n,j,e)}(n);default:return Sn.assertNever(r)}}(r);case 361:return function(e){let n=[];for(const r of e.elements)pF(r)&&28===r.operatorToken.kind?n.push(q(r)):(G(r)&&n.length>0&&(Ce(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(Sn.checkDefined(qB(r,j,au))));return t.inlineExpressions(n)}(r);case 227:return function(t){if(G(t.whenTrue)||G(t.whenFalse)){const e=Z(),n=Z(),r=Y();return Te(e,Sn.checkDefined(qB(t.condition,j,au)),t.condition),xe(r,Sn.checkDefined(qB(t.whenTrue,j,au)),t.whenTrue),Se(n),ee(e),xe(r,Sn.checkDefined(qB(t.whenFalse,j,au)),t.whenFalse),ee(n),r}return YB(t,j,e)}(r);case 229:return function(e){const r=Z(),i=qB(e.expression,j,au);if(e.asteriskToken){!function(e,t){Ce(7,[e],t)}(0==(8388608&tf(e.expression))?cI(n().createValuesHelper(i),e):i,e)}else!function(e,t){Ce(6,[e],t)}(i,e);return ee(r),function(e){return cI(t.createCallExpression(t.createPropertyAccessExpression(T,"sent"),void 0,[]),e)}(e)}(r);case 209:return function(e){return U(e.elements,void 0,void 0,e.multiLine)}(r);case 210:return function(e){const n=e.properties,r=e.multiLine,i=X(n),o=Y();xe(o,t.createObjectLiteralExpression(UB(n,j,L_,0,i),r));const a=Je(n,s,[],i);return a.push(r?fA(AT(cI(t.cloneNode(o),o),o.parent)):o),t.inlineExpressions(a);function s(n,i){G(i)&&n.length>0&&(be(t.createExpressionStatement(t.inlineExpressions(n))),n=[]);const a=qB(YE(t,e,i,o),j,au);return a&&(r&&fA(a),n.push(a)),n}}(r);case 212:return function(n){if(G(n.argumentExpression))return t.updateElementAccessExpression(n,Q(Sn.checkDefined(qB(n.expression,j,eu))),Sn.checkDefined(qB(n.argumentExpression,j,au)));return YB(n,j,e)}(r);case 213:return function(n){if(!sm(n)&&b(n.arguments,G)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,s,!0);return YC(cI(t.createFunctionApplyCall(Q(Sn.checkDefined(qB(e,j,eu))),r,U(n.arguments)),n),n)}return YB(n,j,e)}(r);case 214:return function(n){if(b(n.arguments,G)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return YC(cI(t.createNewExpression(t.createFunctionApplyCall(Q(Sn.checkDefined(qB(e,j,au))),r,U(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return YB(n,j,e)}(r);default:return YB(r,j,e)}}(r):4196352&r.transformFlags?YB(r,j,e):r}}function R(n){if(n.asteriskToken)n=YC(cI(t.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,$B(n.parameters,j,e),void 0,z(n.body)),n),n);else{const t=d,r=p;d=!1,p=!1,n=YB(n,j,e),d=t,p=r}return d?void o(n):n}function B(n){if(n.asteriskToken)n=YC(cI(t.createFunctionExpression(void 0,void 0,n.name,void 0,$B(n.parameters,j,e),void 0,z(n.body)),n),n);else{const t=d,r=p;d=!1,p=!1,n=YB(n,j,e),d=t,p=r}return n}function z(e){const o=[],a=d,s=p,c=f,l=m,_=g,u=h,b=y,M=v,R=I,B=x,J=S,z=k,q=T;d=!0,p=!1,f=void 0,m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,I=1,x=void 0,S=void 0,k=void 0,T=t.createTempVariable(void 0),r();const U=t.copyPrologue(e.statements,o,!1,j);V(e.statements,U);const W=function(){O=0,L=0,C=void 0,w=!1,N=!1,D=void 0,F=void 0,P=void 0,E=void 0,A=void 0;const e=function(){if(x){for(let e=0;e<x.length;e++)Fe(e);we(x.length)}else we(0);if(D){const e=t.createPropertyAccessExpression(T,"label");return[fA(t.createSwitchStatement(e,t.createCaseBlock(D)))]}if(F)return F;return[]}();return n().createGeneratorHelper(rw(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))}();return Jp(o,i()),o.push(t.createReturnStatement(W)),d=a,p=s,f=c,m=l,g=_,h=u,y=b,v=M,I=R,x=B,S=J,k=z,T=q,cI(t.createBlock(o,e.multiLine),e)}function q(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){pF(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(G(e)&&n.length>0&&(Ce(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(Sn.checkDefined(qB(e,j,au))))}}function U(e,n,r,i){const o=X(e);let a;if(o>0){a=Y();const r=UB(e,j,au,0,o);xe(a,t.createArrayLiteralExpression(n?[n,...r]:r)),n=void 0}const s=Je(e,(function(e,r){if(G(r)&&e.length>0){const r=void 0!==a;a||(a=Y()),xe(a,r?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(e,i)]):t.createArrayLiteralExpression(n?[n,...e]:e,i)),n=void 0,e=[]}return e.push(Sn.checkDefined(qB(r,j,au))),e}),[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):cI(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function V(e,t=0){const n=e.length;for(let r=t;r<n;r++)H(e[r])}function W(e){PF(e)?V(e.statements):H(e)}function H(n){const r=p;p||(p=G(n)),function(n){switch(n.kind){case 241:return function(e){G(e)?V(e.statements):be(qB(e,j,Pu))}(n);case 244:return function(e){be(qB(e,j,Pu))}(n);case 245:return function(e){if(G(e))if(G(e.thenStatement)||G(e.elseStatement)){const t=Z(),n=e.elseStatement?Z():void 0;Te(e.elseStatement?n:t,Sn.checkDefined(qB(e.expression,j,au)),e.expression),W(e.thenStatement),e.elseStatement&&(Se(t),ee(n),W(e.elseStatement)),ee(t)}else be(qB(e,j,Pu));else be(qB(e,j,Pu))}(n);case 246:return function(e){if(G(e)){const t=Z(),n=Z();ae(t),ee(n),W(e.statement),ee(t),ke(n,Sn.checkDefined(qB(e.expression,j,au))),se()}else be(qB(e,j,Pu))}(n);case 247:return function(e){if(G(e)){const t=Z(),n=ae(t);ee(t),Te(n,Sn.checkDefined(qB(e.expression,j,au))),W(e.statement),Se(t),se()}else be(qB(e,j,Pu))}(n);case 248:return function(e){if(G(e)){const n=Z(),r=Z(),i=ae(r);if(e.initializer){const n=e.initializer;XF(n)?$(n):be(cI(t.createExpressionStatement(Sn.checkDefined(qB(n,j,au))),n))}ee(n),e.condition&&Te(i,Sn.checkDefined(qB(e.condition,j,au))),W(e.statement),ee(r),e.incrementor&&be(cI(t.createExpressionStatement(Sn.checkDefined(qB(e.incrementor,j,au))),e.incrementor)),Se(n),se()}else be(qB(e,j,Pu))}(n);case 249:return function(e){if(G(e)){const n=Y(),r=Y(),i=Y(),o=t.createLoopVariable(),s=e.initializer;a(o),xe(n,Sn.checkDefined(qB(e.expression,j,au))),xe(r,t.createArrayLiteralExpression()),be(t.createForInStatement(i,n,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(r,"push"),void 0,[i])))),xe(o,t.createNumericLiteral(0));const c=Z(),l=Z(),_=ae(l);let u;if(ee(c),Te(_,t.createLessThan(o,t.createPropertyAccessExpression(r,"length"))),xe(i,t.createElementAccessExpression(r,o)),Te(l,t.createBinaryExpression(i,103,n)),XF(s)){for(const e of s.declarations)a(e.name);u=t.cloneNode(s.declarations[0].name)}else u=Sn.checkDefined(qB(s,j,au)),Sn.assert(eu(u));xe(u,i),W(e.statement),ee(l),be(t.createExpressionStatement(t.createPostfixIncrement(o))),Se(c),se()}else be(qB(e,j,Pu))}(n);case 251:return function(e){const t=me(e.label?Dc(e.label):void 0);t>0?Se(t,e):be(e)}(n);case 252:return function(e){const t=fe(e.label?Dc(e.label):void 0);t>0?Se(t,e):be(e)}(n);case 253:return function(e){t=qB(e.expression,j,au),n=e,Ce(8,[t],n);var t,n}(n);case 254:return function(e){G(e)?(function(e){const t=Z(),n=Z();ee(t),te({kind:1,expression:e,startLabel:t,endLabel:n})}(Q(Sn.checkDefined(qB(e.expression,j,au)))),W(e.statement),function(){Sn.assert(1===ie());ee(ne().endLabel)}()):be(qB(e,j,Pu))}(n);case 255:return function(e){if(G(e.caseBlock)){const n=e.caseBlock,r=n.clauses.length,i=function(){const e=Z();return te({kind:2,isScript:!1,breakLabel:e}),e}(),o=Q(Sn.checkDefined(qB(e.expression,j,au))),a=[];let s=-1;for(let e=0;e<r;e++){const t=n.clauses[e];a.push(Z()),297===t.kind&&-1===s&&(s=e)}let c=0,l=[];for(;c<r;){let e=0;for(let i=c;i<r;i++){const r=n.clauses[i];if(296===r.kind){if(G(r.expression)&&l.length>0)break;l.push(t.createCaseClause(Sn.checkDefined(qB(r.expression,j,au)),[ye(a[i],r.expression)]))}else e++}l.length&&(be(t.createSwitchStatement(o,t.createCaseBlock(l))),c+=l.length,l=[]),e>0&&(c+=e,e=0)}Se(s>=0?a[s]:i);for(let e=0;e<r;e++)ee(a[e]),V(n.clauses[e].statements);ce()}else be(qB(e,j,Pu))}(n);case 256:return function(e){G(e)?(!function(e){const t=Z();te({kind:4,isScript:!1,labelText:e,breakLabel:t})}(Dc(e.label)),W(e.statement),le()):be(qB(e,j,Pu))}(n);case 257:return function(e){n=Sn.checkDefined(qB(e.expression??t.createVoidZero(),j,au)),r=e,Ce(9,[n],r);var n,r}(n);case 258:return function(n){G(n)?(function(){const e=Z(),t=Z();ee(e),te({kind:0,state:0,startLabel:e,endLabel:t}),ve()}(),W(n.tryBlock),n.catchClause&&(!function(n){let r;if(Sn.assert(0===ie()),a_(n.name))r=n.name,a(n.name);else{const t=Dc(n.name);r=Y(t),_||(_=new Map,u=[],e.enableSubstitution(80)),_.set(t,!0),u[TJ(n)]=r}const i=re();Sn.assert(i.state<1);Se(i.endLabel);const o=Z();ee(o),i.state=1,i.catchVariable=r,i.catchLabel=o,xe(r,t.createCallExpression(t.createPropertyAccessExpression(T,"sent"),void 0,[])),ve()}(n.catchClause.variableDeclaration),W(n.catchClause.block)),n.finallyBlock&&(!function(){Sn.assert(0===ie());const e=re();Sn.assert(e.state<2);Se(e.endLabel);const t=Z();ee(t),e.state=2,e.finallyLabel=t}(),W(n.finallyBlock)),function(){Sn.assert(0===ie());const e=ne();e.state<2?Se(e.endLabel):Ce(10);ee(e.endLabel),ve(),e.state=3}()):be(YB(n,j,e))}(n);default:be(qB(n,j,Pu))}}(n),p=r}function $(e){for(const n of e.declarations){const e=t.cloneNode(n.name);fw(e,n.name),a(e)}const n=jx(e),r=n.length;let i=0,o=[];for(;i<r;){for(let e=i;e<r;e++){const t=n[e];if(G(t.initializer)&&o.length>0)break;o.push(K(t))}o.length&&(be(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function K(e){return cw(t.createAssignment(cw(t.cloneNode(e.name),e.name),Sn.checkDefined(qB(e.initializer,j,au))),e)}function G(e){return!!e&&0!=(1048576&e.transformFlags)}function X(e){const t=e.length;for(let n=0;n<t;n++)if(G(e[n]))return n;return-1}function Q(e){if(a_(e)||8192&tf(e))return e;const n=t.createTempVariable(a);return xe(n,e,e),n}function Y(e){const n=e?t.createUniqueName(e):t.createTempVariable(void 0);return a(n),n}function Z(){y||(y=[]);const e=I;return I++,y[e]=-1,e}function ee(e){Sn.assert(void 0!==y,"No labels were defined."),y[e]=x?x.length:0}function te(e){f||(f=[],g=[],m=[],h=[]);const t=g.length;return g[t]=0,m[t]=x?x.length:0,f[t]=e,h.push(e),t}function ne(){const e=re();if(void 0===e)return Sn.fail("beginBlock was never called.");const t=g.length;return g[t]=1,m[t]=x?x.length:0,f[t]=e,h.pop(),e}function re(){return Ae(h)}function ie(){const e=re();return e&&e.kind}function oe(){te({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ae(e){const t=Z();return te({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function se(){Sn.assert(3===ie());const e=ne(),t=e.breakLabel;e.isScript||ee(t)}function ce(){Sn.assert(2===ie());const e=ne(),t=e.breakLabel;e.isScript||ee(t)}function le(){Sn.assert(4===ie());const e=ne();e.isScript||ee(e.breakLabel)}function _e(e){return 2===e.kind||3===e.kind}function ue(e){return 4===e.kind}function de(e){return 3===e.kind}function pe(e,t){for(let n=t;n>=0;n--){const t=h[n];if(!ue(t))break;if(t.labelText===e)return!0}return!1}function fe(e){if(h)if(e)for(let t=h.length-1;t>=0;t--){const n=h[t];if(ue(n)&&n.labelText===e)return n.breakLabel;if(_e(n)&&pe(e,t-1))return n.breakLabel}else for(let e=h.length-1;e>=0;e--){const t=h[e];if(_e(t))return t.breakLabel}return 0}function me(e){if(h)if(e)for(let t=h.length-1;t>=0;t--){const n=h[t];if(de(n)&&pe(e,t-1))return n.continueLabel}else for(let e=h.length-1;e>=0;e--){const t=h[e];if(de(t))return t.continueLabel}return 0}function ge(e){if(void 0!==e&&e>0){void 0===v&&(v=[]);const n=t.createNumericLiteral(-1);return void 0===v[e]?v[e]=[n]:v[e].push(n),n}return t.createOmittedExpression()}function he(e){const n=t.createNumericLiteral(e);return bw(n,3,function(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}}(e)),n}function ye(e,n){return Sn.assertLessThan(0,e,"Invalid label"),cI(t.createReturnStatement(t.createArrayLiteralExpression([he(3),ge(e)])),n)}function ve(){Ce(0)}function be(e){e?Ce(1,[e]):ve()}function xe(e,t,n){Ce(2,[e,t],n)}function Se(e,t){Ce(3,[e],t)}function ke(e,t,n){Ce(4,[e,t],n)}function Te(e,t,n){Ce(5,[e,t],n)}function Ce(e,t,n){void 0===x&&(x=[],S=[],k=[]),void 0===y&&ee(Z());const r=x.length;x[r]=e,S[r]=t,k[r]=n}function we(e){(function(e){if(!N)return!0;if(!y||!v)return!1;for(let t=0;t<y.length;t++)if(y[t]===e&&v[t])return!0;return!1})(e)&&(De(e),A=void 0,Ee(void 0,void 0)),F&&D&&Ne(!1),function(){if(void 0!==v&&void 0!==C)for(let e=0;e<C.length;e++){const t=C[e];if(void 0!==t)for(const n of t){const t=v[n];if(void 0!==t)for(const n of t)n.text=String(e)}}}()}function Ne(e){if(D||(D=[]),F){if(A)for(let e=A.length-1;e>=0;e--){const n=A[e];F=[t.createWithStatement(n.expression,t.createBlock(F))]}if(E){const{startLabel:e,catchLabel:n,finallyLabel:r,endLabel:i}=E;F.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(T,"trys"),"push"),void 0,[t.createArrayLiteralExpression([ge(e),ge(n),ge(r),ge(i)])]))),E=void 0}e&&F.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(T,"label"),t.createNumericLiteral(L+1))))}D.push(t.createCaseClause(t.createNumericLiteral(L),F||[])),F=void 0}function De(e){if(y)for(let t=0;t<y.length;t++)y[t]===e&&(F&&(Ne(!w),w=!1,N=!1,L++),void 0===C&&(C=[]),void 0===C[L]?C[L]=[t]:C[L].push(t))}function Fe(e){if(De(e),function(e){if(f)for(;O<g.length&&m[O]<=e;O++){const e=f[O],t=g[O];switch(e.kind){case 0:0===t?(P||(P=[]),F||(F=[]),P.push(E),E=e):1===t&&(E=P.pop());break;case 1:0===t?(A||(A=[]),A.push(e)):1===t&&A.pop()}}}(e),w)return;w=!1,N=!1;const n=x[e];if(0===n)return;if(10===n)return w=!0,void Pe(t.createReturnStatement(t.createArrayLiteralExpression([he(7)])));const r=S[e];if(1===n)return Pe(r[0]);const i=k[e];switch(n){case 2:return o=r[0],a=r[1],s=i,void Pe(cI(t.createExpressionStatement(t.createAssignment(o,a)),s));case 3:return function(e,n){w=!0,Pe(rw(cI(t.createReturnStatement(t.createArrayLiteralExpression([he(3),ge(e)])),n),768))}(r[0],i);case 4:return function(e,n,r){Pe(rw(t.createIfStatement(n,rw(cI(t.createReturnStatement(t.createArrayLiteralExpression([he(3),ge(e)])),r),768)),1))}(r[0],r[1],i);case 5:return function(e,n,r){Pe(rw(t.createIfStatement(t.createLogicalNot(n),rw(cI(t.createReturnStatement(t.createArrayLiteralExpression([he(3),ge(e)])),r),768)),1))}(r[0],r[1],i);case 6:return function(e,n){w=!0,Pe(rw(cI(t.createReturnStatement(t.createArrayLiteralExpression(e?[he(4),e]:[he(4)])),n),768))}(r[0],i);case 7:return function(e,n){w=!0,Pe(rw(cI(t.createReturnStatement(t.createArrayLiteralExpression([he(5),e])),n),768))}(r[0],i);case 8:return Ee(r[0],i);case 9:return function(e,n){w=!0,N=!0,Pe(cI(t.createThrowStatement(e),n))}(r[0],i)}var o,a,s}function Pe(e){e&&(F?F.push(e):F=[e])}function Ee(e,n){w=!0,N=!0,Pe(rw(cI(t.createReturnStatement(t.createArrayLiteralExpression(e?[he(2),e]:[he(2)])),n),768))}}var vq,bq=g({"src/compiler/transformers/generators.ts"(){OK()}});function xq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=e.getEmitResolver(),l=e.getEmitHost(),_=HS(s),u=$S(s),d=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=function(e,n){if((n=d(e,n)).id&&h[n.id])return n;if(1===e)return function(e){switch(e.kind){case 80:return Q(e);case 213:return function(e){if(HN(e.expression)){const n=Q(e.expression);if(h[PB(n)]=!0,!(HN(n)||8192&tf(e.expression)))return aw(t.updateCallExpression(e,n,void 0,e.arguments),16)}return e}(e);case 215:return function(e){if(HN(e.tag)){const n=Q(e.tag);if(h[PB(n)]=!0,!(HN(n)||8192&tf(e.tag)))return aw(t.updateTaggedTemplateExpression(e,n,void 0,e.template),16)}return e}(e);case 226:return function(e){if(zb(e.operatorToken.kind)&&HN(e.left)&&(!a_(e.left)||c_(e.left))&&!tA(e.left)){const t=Y(e.left);if(t){let n=e;for(const r of t)h[PB(n)]=!0,n=K(r,n,e);return n}}return e}(e)}return e}(n);if(UP(n))return function(e){const n=e.name,r=Q(n);if(r!==n){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return cI(t.createPropertyAssignment(n,i),e)}return cI(t.createPropertyAssignment(n,r),e)}return e}(n);return n},e.onEmitNode=function(e,t,n){312===t.kind?(m=t,g=f[TJ(m)],p(e,t,n),m=void 0,g=void 0):p(e,t,n)},e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(312);const f=[];let m,g;const h=[];let y;return wJ(e,(function(t){if(t.isDeclarationFile||!(vf(t,s)||8388608&t.transformFlags||Zf(t)&&QS(s)&&Ev(s)))return t;m=t,g=PJ(e,t),f[TJ(t)]=g;const n=function(e){switch(e){case 2:return S;case 3:return k;default:return x}}(u)(t);return m=void 0,g=void 0,y=!1,n}));function b(){return!(g.exportEquals||!tO(m))}function x(n){i();const r=[],a=pk(s,"alwaysStrict")||!s.noImplicitUseStrict&&tO(m),c=t.copyPrologue(n.statements,r,a&&!Zf(n),D);if(b()&&he(r,H()),v(g.exportedNames)){const e=50;for(let n=0;n<g.exportedNames.length;n+=e)he(r,t.createExpressionStatement(Je(g.exportedNames.slice(n,n+e),((e,n)=>t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(Dc(n))),e)),t.createVoidZero())))}he(r,qB(g.externalHelpersImportDeclaration,D,Pu)),be(r,UB(n.statements,D,Pu,c)),N(r,!1),Jp(r,o());const l=t.updateSourceFile(n,cI(t.createNodeArray(r),n.statements));return Cw(l,e.readEmitHelpers()),l}function S(n){const i=t.createIdentifier("define"),o=xA(t,n,l,s),a=Zf(n)&&n,{aliasedModuleNames:c,unaliasedModuleNames:_,importAliasNames:u}=T(n,!0),d=t.updateSourceFile(n,cI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(i,void 0,[...o?[o]:[],t.createArrayLiteralExpression(a?r:[t.createStringLiteral("require"),t.createStringLiteral("exports"),...c,..._]),a?a.statements.length?a.statements[0].expression:t.createObjectLiteralExpression():t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...u],void 0,w(n))]))]),n.statements));return Cw(d,e.readEmitHelpers()),d}function k(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=T(n,!1),a=xA(t,n,l,s),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,cI(t.createBlock([t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("module"),"object"),t.createTypeCheck(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),"object")),t.createBlock([t.createVariableStatement(void 0,[t.createVariableDeclaration("v",void 0,void 0,t.createCallExpression(t.createIdentifier("factory"),void 0,[t.createIdentifier("require"),t.createIdentifier("exports")]))]),rw(t.createIfStatement(t.createStrictInequality(t.createIdentifier("v"),t.createIdentifier("undefined")),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),t.createIdentifier("v")))),1)]),t.createIfStatement(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("define"),"function"),t.createPropertyAccessExpression(t.createIdentifier("define"),"amd")),t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("define"),void 0,[...a?[a]:[],t.createArrayLiteralExpression([t.createStringLiteral("require"),t.createStringLiteral("exports"),...r,...i]),t.createIdentifier("factory")]))])))],!0),void 0)),_=t.updateSourceFile(n,cI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(c,void 0,[t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"require"),t.createParameterDeclaration(void 0,void 0,"exports"),...o],void 0,w(n))]))]),n.statements));return Cw(_,e.readEmitHelpers()),_}function T(e,n){const r=[],i=[],o=[];for(const n of e.amdDependencies)n.name?(r.push(t.createStringLiteral(n.path)),o.push(t.createParameterDeclaration(void 0,void 0,n.name))):i.push(t.createStringLiteral(n.path));for(const e of g.externalImports){const a=bA(t,e,m,l,c,s),_=vA(t,e,m);a&&(n&&_?(rw(_,8),r.push(a),o.push(t.createParameterDeclaration(void 0,void 0,_))):i.push(a))}return{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}}function C(e){if(aP(e)||vP(e)||!bA(t,e,m,l,c,s))return;const n=vA(t,e,m),r=M(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function w(e){i();const n=[],r=t.copyPrologue(e.statements,n,!s.noImplicitUseStrict,D);b()&&he(n,H()),v(g.exportedNames)&&he(n,t.createExpressionStatement(Je(g.exportedNames,((e,n)=>t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.createIdentifier(Dc(n))),e)),t.createVoidZero()))),he(n,qB(g.externalHelpersImportDeclaration,D,Pu)),2===u&&be(n,G(g.externalImports,C)),be(n,UB(e.statements,D,Pu,r)),N(n,!0),Jp(n,o());const a=t.createBlock(n,!0);return y&&Tw(a,vq),a}function N(e,n){if(g.exportEquals){const r=qB(g.exportEquals.expression,E,au);if(r)if(n){const n=t.createReturnStatement(r);cI(n,g.exportEquals),rw(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));cI(n,g.exportEquals),rw(n,3072),e.push(n)}}}function D(e){switch(e.kind){case 272:return function(e){let n;const r=mh(e);if(2!==u){if(!e.importClause)return YC(cI(t.createExpressionStatement(R(e)),e),e);{const i=[];r&&!gh(e)?i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,M(e,R(e)))):(i.push(t.createVariableDeclaration(t.getGeneratedNameForNode(e),void 0,void 0,M(e,R(e)))),r&&gh(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=he(n,YC(cI(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,_>=2?2:0)),e),e))}}else r&&gh(e)&&(n=he(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([YC(cI(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)),e),e)],_>=2?2:0))));return n=function(e,t){if(g.exportEquals)return e;const n=t.importClause;if(!n)return e;const r=new xJ;n.name&&(e=V(e,r,n));const i=n.namedBindings;if(i)switch(i.kind){case 274:e=V(e,r,i);break;case 275:for(const t of i.elements)e=V(e,r,t,!0)}return e}(n,e),je(n)}(e);case 271:return function(e){let n;Sn.assert(yg(e),"import= for internal module references should be handled in an earlier transformer."),2!==u?n=fb(e,32)?he(n,YC(cI(t.createExpressionStatement(K(e.name,R(e))),e),e)):he(n,YC(cI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,R(e))],_>=2?2:0)),e),e)):fb(e,32)&&(n=he(n,YC(cI(t.createExpressionStatement(K(t.getExportName(e),t.getLocalName(e))),e),e)));return n=function(e,t){if(g.exportEquals)return e;return V(e,new xJ,t)}(n,e),je(n)}(e);case 278:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&bP(e.exportClause)){const i=[];2!==u&&i.push(YC(cI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,R(e))])),e),e));for(const o of e.exportClause.elements)if(0===_)i.push(YC(cI(t.createExpressionStatement(n().createCreateBindingHelper(r,t.createStringLiteralFromNode(o.propertyName||o.name),o.propertyName?t.createStringLiteralFromNode(o.name):void 0)),o),o));else{const a=!(!rk(s)||2&nf(e)||"default"!==Dc(o.propertyName||o.name)),c=t.createPropertyAccessExpression(a?n().createImportDefaultHelper(r):r,o.propertyName||o.name);i.push(YC(cI(t.createExpressionStatement(K(t.getExportName(o),c,void 0,!0)),o),o))}return je(i)}if(e.exportClause){const i=[];return i.push(YC(cI(t.createExpressionStatement(K(t.cloneNode(e.exportClause.name),function(e,t){if(!rk(s)||2&nf(e))return t;if(NJ(e))return n().createImportStarHelper(t);return t}(e,2!==u?R(e):Xp(e)?r:t.createIdentifier(Dc(e.exportClause.name))))),e),e)),je(i)}return YC(cI(t.createExpressionStatement(n().createExportStarHelper(2!==u?R(e):r)),e),e)}(e);case 277:return function(e){if(e.isExportEquals)return;return $(t.createIdentifier("default"),qB(e.expression,E,au),e,!0)}(e);default:return F(e)}}function F(n){switch(n.kind){case 243:return function(n){let r,i,o;if(fb(n,32)){let e,a=!1;for(const r of n.declarationList.declarations)if(HN(r.name)&&tA(r.name))if(e||(e=UB(n.modifiers,X,f_)),r.initializer){i=he(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,K(r.name,qB(r.initializer,E,au))))}else i=he(i,r);else if(r.initializer)if(!R_(r.name)&&(aF(r.initializer)||oF(r.initializer)||yF(r.initializer))){const e=t.createAssignment(cI(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(Ly(r.name)));i=he(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,qB(r.initializer,E,au))),o=he(o,e),a=!0}else o=he(o,J(r));if(i&&(r=he(r,t.updateVariableStatement(n,e,t.updateVariableDeclarationList(n.declarationList,i)))),o){const e=YC(cI(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&nw(e),r=he(r,e)}}else r=he(r,YB(n,E,e));return r=function(e,t){return z(e,t.declarationList,!1)}(r,n),je(r)}(n);case 262:return function(n){let r;r=fb(n,32)?he(r,YC(cI(t.createFunctionDeclaration(UB(n.modifiers,X,f_),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,UB(n.parameters,E,_D),void 0,YB(n.body,E,e)),n),n)):he(r,YB(n,E,e));return r=U(r,n),je(r)}(n);case 263:return function(n){let r;r=fb(n,32)?he(r,YC(cI(t.createClassDeclaration(UB(n.modifiers,X,A_),t.getDeclarationName(n,!0,!0),void 0,UB(n.heritageClauses,E,JP),UB(n.members,E,C_)),n),n)):he(r,YB(n,E,e));return r=U(r,n),je(r)}(n);case 248:return O(n,!0);case 249:return function(n){if(XF(n.initializer)&&!(7&n.initializer.flags)){const r=z(void 0,n.initializer,!0);if(re(r)){const i=qB(n.initializer,A,hu),o=qB(n.expression,E,au),a=XB(n.statement,F,e),s=PF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);return t.updateForInStatement(n,i,o,s)}}return t.updateForInStatement(n,qB(n.initializer,A,hu),qB(n.expression,E,au),XB(n.statement,F,e))}(n);case 250:return function(n){if(XF(n.initializer)&&!(7&n.initializer.flags)){const r=z(void 0,n.initializer,!0),i=qB(n.initializer,A,hu),o=qB(n.expression,E,au);let a=XB(n.statement,F,e);return re(r)&&(a=PF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0)),t.updateForOfStatement(n,n.awaitModifier,i,o,a)}return t.updateForOfStatement(n,n.awaitModifier,qB(n.initializer,A,hu),qB(n.expression,E,au),XB(n.statement,F,e))}(n);case 246:return function(n){return t.updateDoStatement(n,XB(n.statement,F,e),qB(n.expression,E,au))}(n);case 247:return function(n){return t.updateWhileStatement(n,qB(n.expression,E,au),XB(n.statement,F,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,Sn.checkDefined(qB(e.statement,F,Pu,t.liftToBlock)))}(n);case 254:return function(e){return t.updateWithStatement(e,qB(e.expression,E,au),Sn.checkDefined(qB(e.statement,F,Pu,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,qB(e.expression,E,au),Sn.checkDefined(qB(e.thenStatement,F,Pu,t.liftToBlock)),qB(e.elseStatement,F,Pu,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,qB(e.expression,E,au),Sn.checkDefined(qB(e.caseBlock,F,iP)))}(n);case 269:return function(e){return t.updateCaseBlock(e,UB(e.clauses,F,Ru))}(n);case 296:return function(e){return t.updateCaseClause(e,qB(e.expression,E,au),UB(e.statements,F,Pu))}(n);case 297:case 258:return function(t){return YB(t,F,e)}(n);case 299:return function(e){return t.updateCatchClause(e,e.variableDeclaration,Sn.checkDefined(qB(e.block,F,PF)))}(n);case 241:return function(t){return t=YB(t,F,e),t}(n);default:return E(n)}}function P(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return O(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,qB(e.expression,A,au))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,qB(e.expression,n?A:E,au))}(n,r);case 360:return function(e,n){return t.updatePartiallyEmittedExpression(e,qB(e.expression,n?A:E,au))}(n,r);case 213:if(sm(n)&&void 0===m.impliedNodeFormat)return function(n){if(0===u&&_>=7)return YB(n,E,e);const r=bA(t,n,m,l,c,s),i=qB(De(n.arguments),E,au),o=!r||i&&FN(i)&&i.text===r.text?i:r,d=!!(16384&n.transformFlags);switch(s.module){case 2:return L(o,d);case 3:return function(e,n){if(y=!0,IJ(e)){const r=a_(e)?e:FN(e)?t.createStringLiteralFromNode(e):rw(cI(t.cloneNode(e),e),3072);return t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,j(e),void 0,L(r,n))}{const r=t.createTempVariable(a);return t.createComma(t.createAssignment(r,e),t.createConditionalExpression(t.createIdentifier("__syncRequire"),void 0,j(r,!0),void 0,L(r,n)))}}(o??t.createVoidZero(),d);default:return j(o)}}(n);break;case 226:if(Hb(n))return function(t,n){if(I(t.left))return nz(t,E,e,0,!n,B);return YB(t,E,e)}(n,r);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&HN(n.operand)&&!a_(n.operand)&&!tA(n.operand)&&!Lx(n.operand)){const e=Y(n.operand);if(e){let i,o=qB(n.operand,E,au);uF(n)?o=t.updatePrefixUnaryExpression(n,o):(o=t.updatePostfixUnaryExpression(n,o),r||(i=t.createTempVariable(a),o=t.createAssignment(i,o),cI(o,n)),o=t.createComma(o,t.cloneNode(n.operand)),cI(o,n));for(const t of e)h[PB(o)]=!0,o=K(t,o),cI(o,n);return i&&(h[PB(o)]=!0,o=t.createComma(o,i),cI(o,n)),o}}return YB(n,E,e)}(n,r)}return YB(n,E,e)}function E(e){return P(e,!1)}function A(e){return P(e,!0)}function I(e){if(QD(e))for(const t of e.properties)switch(t.kind){case 303:if(I(t.initializer))return!0;break;case 304:if(I(t.name))return!0;break;case 305:if(I(t.expression))return!0;break;case 174:case 177:case 178:return!1;default:Sn.assertNever(t,"Unhandled object member kind")}else if(XD(e)){for(const t of e.elements)if(hF(t)){if(I(t.expression))return!0}else if(I(t))return!0}else if(HN(e))return v(Y(e))>(nA(e)?1:0);return!1}function O(n,r){if(r&&n.initializer&&XF(n.initializer)&&!(7&n.initializer.flags)){const i=z(void 0,n.initializer,!1);if(i){const o=[],a=qB(n.initializer,A,XF),s=t.createVariableStatement(void 0,a);o.push(s),be(o,i);const c=qB(n.condition,E,au),l=qB(n.incrementor,A,au),_=XB(n.statement,r?F:E,e);return o.push(t.updateForStatement(n,void 0,c,l,_)),o}}return t.updateForStatement(n,qB(n.initializer,A,hu),qB(n.condition,E,au),qB(n.incrementor,A,au),XB(n.statement,r?F:E,e))}function L(e,r){const i=t.createUniqueName("resolve"),o=t.createUniqueName("reject"),a=[t.createParameterDeclaration(void 0,void 0,i),t.createParameterDeclaration(void 0,void 0,o)],c=t.createBlock([t.createExpressionStatement(t.createCallExpression(t.createIdentifier("require"),void 0,[t.createArrayLiteralExpression([e||t.createOmittedExpression()]),i,o]))]);let l;_>=2?l=t.createArrowFunction(void 0,void 0,a,void 0,void 0,c):(l=t.createFunctionExpression(void 0,void 0,void 0,void 0,a,void 0,c),r&&rw(l,16));const u=t.createNewExpression(t.createIdentifier("Promise"),void 0,[l]);return rk(s)?t.createCallExpression(t.createPropertyAccessExpression(u,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):u}function j(e,r){const i=e&&!OJ(e)&&!r,o=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Promise"),"resolve"),void 0,i?_>=2?[t.createTemplateExpression(t.createTemplateHead(""),[t.createTemplateSpan(e,t.createTemplateTail(""))])]:[t.createCallExpression(t.createPropertyAccessExpression(t.createStringLiteral(""),"concat"),void 0,[e])]:[]);let a=t.createCallExpression(t.createIdentifier("require"),void 0,i?[t.createIdentifier("s")]:e?[e]:[]);rk(s)&&(a=n().createImportStarHelper(a));const c=i?[t.createParameterDeclaration(void 0,void 0,"s")]:[];let l;l=_>=2?t.createArrowFunction(void 0,void 0,c,void 0,void 0,a):t.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,t.createBlock([t.createReturnStatement(a)]));return t.createCallExpression(t.createPropertyAccessExpression(o,"then"),void 0,[l])}function M(e,t){return!rk(s)||2&nf(e)?t:DJ(e)?n().createImportStarHelper(t):FJ(e)?n().createImportDefaultHelper(t):t}function R(e){const n=bA(t,e,m,l,c,s),r=[];return n&&r.push(n),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function B(e,n,r){const i=Y(e);if(i){let o=nA(e)?n:t.createAssignment(e,n);for(const e of i)rw(o,8),o=K(e,o,r);return o}return t.createAssignment(e,n)}function J(n){return R_(n.name)?nz(qB(n,E,Mx),E,e,0,!1,B):t.createAssignment(cI(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?qB(n.initializer,E,au):t.createVoidZero())}function z(e,t,n){if(g.exportEquals)return e;for(const r of t.declarations)e=q(e,r,n);return e}function q(e,t,n){if(g.exportEquals)return e;if(R_(t.name))for(const r of t.name.elements)vF(r)||(e=q(e,r,n));else a_(t.name)||GF(t)&&!t.initializer&&!n||(e=V(e,new xJ,t));return e}function U(e,n){if(g.exportEquals)return e;const r=new xJ;if(fb(n,32)){e=W(e,r,fb(n,2048)?t.createIdentifier("default"):t.getDeclarationName(n),t.getLocalName(n),n)}return n.name&&(e=V(e,r,n)),e}function V(e,n,r,i){const o=t.getDeclarationName(r),a=g.exportSpecifiers.get(o);if(a)for(const t of a)e=W(e,n,t.name,o,t.name,void 0,i);return e}function W(e,t,n,r,i,o,a){return t.has(n)||(t.set(n,!0),e=he(e,$(n,r,i,o,a))),e}function H(){let e;return e=0===_?t.createExpressionStatement(K(t.createIdentifier("__esModule"),t.createTrue())):t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteral("__esModule"),t.createObjectLiteralExpression([t.createPropertyAssignment("value",t.createTrue())])])),rw(e,2097152),e}function $(e,n,r,i,o){const a=cI(t.createExpressionStatement(K(e,n,void 0,o)),r);return fA(a),i||rw(a,3072),a}function K(e,n,r,i){return cI(i&&0!==_?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[t.createIdentifier("exports"),t.createStringLiteralFromNode(e),t.createObjectLiteralExpression([t.createPropertyAssignment("enumerable",t.createTrue()),t.createPropertyAssignment("get",t.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,t.createBlock([t.createReturnStatement(n)])))])]):t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),n),r)}function X(e){switch(e.kind){case 95:case 90:return}return e}function Q(e){var n,r;if(8192&tf(e)){const n=mA(m);return n?t.createPropertyAccessExpression(n,e):e}if((!a_(e)||64&e.emitNode.autoGenerate.flags)&&!tA(e)){const i=c.getReferencedExportContainer(e,nA(e));if(i&&312===i.kind)return cI(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=c.getReferencedImportDeclaration(e);if(o){if(cP(o))return cI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(hP(o)){const i=o.propertyName||o.name;return cI(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o),t.cloneNode(i)),e)}}}return e}function Y(e){if(a_(e)){if(c_(e)){const t=null==g?void 0:g.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}}else{const t=c.getReferencedImportDeclaration(e);if(t)return null==g?void 0:g.exportedBindings[TJ(t)];const n=new Set,r=c.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==g?void 0:g.exportedBindings[TJ(e)];if(t)for(const e of t)n.add(e)}if(n.size)return $e(n)}}}}var Sq=g({"src/compiler/transformers/module/module.ts"(){OK(),vq={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}});function kq(e){const{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:r,hoistVariableDeclaration:i}=e,o=e.getCompilerOptions(),a=e.getEmitResolver(),s=e.getEmitHost(),c=e.onSubstituteNode,l=e.onEmitNode;e.onSubstituteNode=function(e,n){if(function(e){return x&&e.id&&x[e.id]}(n=c(e,n)))return n;if(1===e)return function(e){switch(e.kind){case 80:return function(e){var n,r;if(8192&tf(e)){const n=mA(f);return n?t.createPropertyAccessExpression(n,e):e}if(!a_(e)&&!tA(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(cP(i))return cI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(hP(i))return cI(t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=i.parent)?void 0:n.parent)?void 0:r.parent)||i),t.cloneNode(i.propertyName||i.name)),e)}}return e}(e);case 226:return function(e){if(zb(e.operatorToken.kind)&&HN(e.left)&&(!a_(e.left)||c_(e.left))&&!tA(e.left)){const t=$(e.left);if(t){let n=e;for(const e of t)n=M(e,K(n));return n}}return e}(e);case 236:return function(e){if(cm(e))return t.createPropertyAccessExpression(h,t.createIdentifier("meta"));return e}(e)}return e}(n);if(4===e)return function(e){if(304===e.kind)return function(e){var n,r;const i=e.name;if(!a_(i)&&!tA(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(cP(o))return cI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(hP(o))return cI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode((null==(r=null==(n=o.parent)?void 0:n.parent)?void 0:r.parent)||o),t.cloneNode(o.propertyName||o.name))),e)}}return e}(e);return e}(n);return n},e.onEmitNode=function(e,t,n){if(312===t.kind){const r=TJ(t);f=t,m=_[r],g=u[r],x=d[r],h=p[r],x&&delete d[r],l(e,t,n),f=void 0,m=void 0,g=void 0,h=void 0,x=void 0}else l(e,t,n)},e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);const _=[],u=[],d=[],p=[];let f,m,g,h,y,v,x;return wJ(e,(function(i){if(i.isDeclarationFile||!(vf(i,o)||8388608&i.transformFlags))return i;const c=TJ(i);f=i,v=i,m=_[c]=PJ(e,i),g=t.createUniqueName("exports"),u[c]=g,h=p[c]=t.createUniqueName("context");const l=function(e){const n=new Map,r=[];for(const i of e){const e=bA(t,i,f,s,a,o);if(e){const t=e.text,o=n.get(t);void 0!==o?r[o].externalImports.push(i):(n.set(t,r.length),r.push({name:e,externalImports:[i]}))}}return r}(m.externalImports),b=function(e,i){const a=[];n();const s=pk(o,"alwaysStrict")||!o.noImplicitUseStrict&&tO(f),c=t.copyPrologue(e.statements,a,s,T);a.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(h,t.createPropertyAccessExpression(h,"id")))]))),qB(m.externalHelpersImportDeclaration,T,Pu);const l=UB(e.statements,T,Pu,c);be(a,y),Jp(a,r());const _=function(e){if(!m.hasExportStarsToExportValues)return;if(!m.exportedNames&&0===m.exportSpecifiers.size){let t=!1;for(const e of m.externalImports)if(278===e.kind&&e.exportClause){t=!0;break}if(!t){const t=S(void 0);return e.push(t),t.name}}const n=[];if(m.exportedNames)for(const e of m.exportedNames)"default"!==e.escapedText&&n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));const r=t.createUniqueName("exportedNames");e.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,t.createObjectLiteralExpression(n,!0))])));const i=S(r);return e.push(i),i.name}(a),u=2097152&e.transformFlags?t.createModifiersFromModifierFlags(1024):void 0,d=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",k(_,i)),t.createPropertyAssignment("execute",t.createFunctionExpression(u,void 0,void 0,void 0,[],void 0,t.createBlock(l,!0)))],!0);return a.push(t.createReturnStatement(d)),t.createBlock(a,!0)}(i,l),C=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,g),t.createParameterDeclaration(void 0,void 0,h)],void 0,b),w=xA(t,i,s,o),N=t.createArrayLiteralExpression(J(l,(e=>e.name))),D=rw(t.updateSourceFile(i,cI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,w?[w,N,C]:[N,C]))]),i.statements)),2048);Ev(o)||Dw(D,b,(e=>!e.scoped));x&&(d[c]=x,x=void 0);return f=void 0,m=void 0,g=void 0,h=void 0,y=void 0,v=void 0,D}));function S(e){const n=t.createUniqueName("exportStar"),r=t.createIdentifier("m"),i=t.createIdentifier("n"),o=t.createIdentifier("exports");let a=t.createStrictInequality(i,t.createStringLiteral("default"));return e&&(a=t.createLogicalAnd(a,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(o,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(i)]),r,t.createBlock([rw(t.createIfStatement(a,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(o,i),t.createElementAccessExpression(r,i)))),1)])),t.createExpressionStatement(t.createCallExpression(g,void 0,[o]))],!0))}function k(e,n){const r=[];for(const i of n){const n=b(i.externalImports,(e=>vA(t,e,f))),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const n of i.externalImports){const r=vA(t,n,f);switch(n.kind){case 272:if(!n.importClause)break;case 271:Sn.assert(void 0!==r),a.push(t.createExpressionStatement(t.createAssignment(r,o))),fb(n,32)&&a.push(t.createExpressionStatement(t.createCallExpression(g,void 0,[t.createStringLiteral(Dc(r)),o])));break;case 278:if(Sn.assert(void 0!==r),n.exportClause)if(bP(n.exportClause)){const e=[];for(const r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral(Dc(r.name)),t.createElementAccessExpression(o,t.createStringLiteral(Dc(r.propertyName||r.name)))));a.push(t.createExpressionStatement(t.createCallExpression(g,void 0,[t.createObjectLiteralExpression(e,!0)])))}else a.push(t.createExpressionStatement(t.createCallExpression(g,void 0,[t.createStringLiteral(Dc(n.exportClause.name)),o])));else a.push(t.createExpressionStatement(t.createCallExpression(e,void 0,[o])))}}r.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,o)],void 0,t.createBlock(a,!0)))}return t.createArrayLiteralExpression(r,!0)}function T(e){switch(e.kind){case 272:return function(e){let n;e.importClause&&i(vA(t,e,f));return je(function(e,t){if(m.exportEquals)return e;const n=t.importClause;if(!n)return e;n.name&&(e=O(e,n));const r=n.namedBindings;if(r)switch(r.kind){case 274:e=O(e,r);break;case 275:for(const t of r.elements)e=O(e,t)}return e}(n,e))}(e);case 271:return function(e){let n;return Sn.assert(yg(e),"import= for internal module references should be handled in an earlier transformer."),i(vA(t,e,f)),je(function(e,t){if(m.exportEquals)return e;return O(e,t)}(n,e))}(e);case 278:return function(e){return void Sn.assertIsDefined(e)}(e);case 277:return function(e){if(e.isExportEquals)return;const n=qB(e.expression,U,au);return j(t.createIdentifier("default"),n,!0)}(e);default:return R(e)}}function C(e){if(!N(e.declarationList))return qB(e,U,Pu);let n;if(rm(e.declarationList)||nm(e.declarationList)){const r=UB(e.modifiers,H,A_),i=[];for(const n of e.declarationList.declarations)i.push(t.updateVariableDeclaration(n,t.getGeneratedNameForNode(n.name),void 0,void 0,D(n,!1)));const o=t.updateVariableDeclarationList(e.declarationList,i);n=he(n,t.updateVariableStatement(e,r,o))}else{let r;const i=fb(e,32);for(const t of e.declarationList.declarations)t.initializer?r=he(r,D(t,i)):w(t);r&&(n=he(n,cI(t.createExpressionStatement(t.inlineExpressions(r)),e)))}return n=function(e,t,n){if(m.exportEquals)return e;for(const r of t.declarationList.declarations)(r.initializer||n)&&(e=A(e,r,n));return e}(n,e,!1),je(n)}function w(e){if(R_(e.name))for(const t of e.name.elements)vF(t)||w(t);else i(t.cloneNode(e.name))}function N(e){return 0==(4194304&tf(e))&&(312===v.kind||0==(7&Sc(e).flags))}function D(t,n){const r=n?F:P;return R_(t.name)?nz(t,U,e,0,!1,r):t.initializer?r(t.name,qB(t.initializer,U,au)):t.name}function F(e,t,n){return E(e,t,n,!0)}function P(e,t,n){return E(e,t,n,!1)}function E(e,n,r,o){return i(t.cloneNode(e)),o?M(e,K(cI(t.createAssignment(e,n),r))):K(cI(t.createAssignment(e,n),r))}function A(e,n,r){if(m.exportEquals)return e;if(R_(n.name))for(const t of n.name.elements)vF(t)||(e=A(e,t,r));else if(!a_(n.name)){let i;r&&(e=L(e,n.name,t.getLocalName(n)),i=Dc(n.name)),e=O(e,n,i)}return e}function I(e,n){if(m.exportEquals)return e;let r;if(fb(n,32)){const i=fb(n,2048)?t.createStringLiteral("default"):n.name;e=L(e,i,t.getLocalName(n)),r=Ly(i)}return n.name&&(e=O(e,n,r)),e}function O(e,n,r){if(m.exportEquals)return e;const i=t.getDeclarationName(n),o=m.exportSpecifiers.get(i);if(o)for(const t of o)t.name.escapedText!==r&&(e=L(e,t.name,i));return e}function L(e,t,n,r){return e=he(e,j(t,n,r))}function j(e,n,r){const i=t.createExpressionStatement(M(e,n));return fA(i),r||rw(i,3072),i}function M(e,n){const r=HN(e)?t.createStringLiteralFromNode(e):e;return rw(n,3072|tf(n)),fw(t.createCallExpression(g,void 0,[r,n]),n)}function R(n){switch(n.kind){case 243:return C(n);case 262:return function(n){y=fb(n,32)?he(y,t.updateFunctionDeclaration(n,UB(n.modifiers,H,A_),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,UB(n.parameters,U,_D),void 0,qB(n.body,U,PF))):he(y,YB(n,U,e)),y=I(y,n)}(n);case 263:return function(e){let n;const r=t.getLocalName(e);return i(r),n=he(n,cI(t.createExpressionStatement(t.createAssignment(r,cI(t.createClassExpression(UB(e.modifiers,H,A_),e.name,void 0,UB(e.heritageClauses,U,JP),UB(e.members,U,C_)),e))),e)),n=I(n,e),je(n)}(n);case 248:return B(n,!0);case 249:return function(n){const r=v;return v=n,n=t.updateForInStatement(n,z(n.initializer),qB(n.expression,U,au),XB(n.statement,R,e)),v=r,n}(n);case 250:return function(n){const r=v;return v=n,n=t.updateForOfStatement(n,n.awaitModifier,z(n.initializer),qB(n.expression,U,au),XB(n.statement,R,e)),v=r,n}(n);case 246:return function(n){return t.updateDoStatement(n,XB(n.statement,R,e),qB(n.expression,U,au))}(n);case 247:return function(n){return t.updateWhileStatement(n,qB(n.expression,U,au),XB(n.statement,R,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,Sn.checkDefined(qB(e.statement,R,Pu,t.liftToBlock)))}(n);case 254:return function(e){return t.updateWithStatement(e,qB(e.expression,U,au),Sn.checkDefined(qB(e.statement,R,Pu,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,qB(e.expression,U,au),Sn.checkDefined(qB(e.thenStatement,R,Pu,t.liftToBlock)),qB(e.elseStatement,R,Pu,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,qB(e.expression,U,au),Sn.checkDefined(qB(e.caseBlock,R,iP)))}(n);case 269:return function(e){const n=v;return v=e,e=t.updateCaseBlock(e,UB(e.clauses,R,Ru)),v=n,e}(n);case 296:return function(e){return t.updateCaseClause(e,qB(e.expression,U,au),UB(e.statements,R,Pu))}(n);case 297:case 258:return function(t){return YB(t,R,e)}(n);case 299:return function(e){const n=v;return v=e,e=t.updateCatchClause(e,e.variableDeclaration,Sn.checkDefined(qB(e.block,R,PF))),v=n,e}(n);case 241:return function(t){const n=v;return v=t,t=YB(t,R,e),v=n,t}(n);default:return U(n)}}function B(n,r){const i=v;return v=n,n=t.updateForStatement(n,qB(n.initializer,r?z:V,hu),qB(n.condition,U,au),qB(n.incrementor,V,au),XB(n.statement,r?R:U,e)),v=i,n}function z(e){if(function(e){return XF(e)&&N(e)}(e)){let n;for(const t of e.declarations)n=he(n,D(t,!1)),t.initializer||w(t);return n?t.inlineExpressions(n):t.createOmittedExpression()}return qB(e,V,hu)}function q(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return B(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,qB(e.expression,V,au))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,qB(e.expression,n?V:U,au))}(n,r);case 360:return function(e,n){return t.updatePartiallyEmittedExpression(e,qB(e.expression,n?V:U,au))}(n,r);case 226:if(Hb(n))return function(t,n){if(W(t.left))return nz(t,U,e,0,!n);return YB(t,U,e)}(n,r);break;case 213:if(sm(n))return function(e){const n=bA(t,e,f,s,a,o),r=qB(De(e.arguments),U,au),i=!n||r&&FN(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(h,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&HN(n.operand)&&!a_(n.operand)&&!tA(n.operand)&&!Lx(n.operand)){const e=$(n.operand);if(e){let o,a=qB(n.operand,U,au);uF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),cI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),cI(a,n));for(const t of e)a=M(t,K(a));return o&&(a=t.createComma(a,o),cI(a,n)),a}}return YB(n,U,e)}(n,r)}return YB(n,U,e)}function U(e){return q(e,!1)}function V(e){return q(e,!0)}function W(e){if(Vb(e,!0))return W(e.left);if(hF(e))return W(e.expression);if(QD(e))return re(e.properties,W);if(XD(e))return re(e.elements,W);if(UP(e))return W(e.name);if(qP(e))return W(e.initializer);if(HN(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&312===t.kind}return!1}function H(e){switch(e.kind){case 95:case 90:return}return e}function $(e){let n;const r=function(e){if(!a_(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==m?void 0:m.exportedBindings[TJ(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==m?void 0:m.exportedBindings[TJ(e)]))return e;return n}}(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&312===i.kind&&(n=he(n,t.getDeclarationName(r))),n=be(n,null==m?void 0:m.exportedBindings[TJ(r)])}else if(a_(e)&&c_(e)){const t=null==m?void 0:m.exportSpecifiers.get(e);if(t){const e=[];for(const n of t)e.push(n.name);return e}}return n}function K(e){return void 0===x&&(x=[]),x[PB(e)]=!0,e}}var Tq=g({"src/compiler/transformers/module/system.ts"(){OK()}});function Cq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=HS(o),s=e.onEmitNode,c=e.onSubstituteNode;let l,_,u;return e.onEmitNode=function(e,t,n){$P(t)?((tO(t)||YS(o))&&o.importHelpers&&(l=new Map),s(e,t,n),l=void 0):s(e,t,n)},e.onSubstituteNode=function(e,n){if(n=c(e,n),l&&HN(n)&&8192&tf(n))return function(e){const n=Dc(e);let r=l.get(n);r||l.set(n,r=t.createUniqueName(n,48));return r}(n);return n},e.enableEmitNotification(312),e.enableSubstitution(80),wJ(e,(function(r){if(r.isDeclarationFile)return r;if(tO(r)||YS(o)){_=r,u=void 0;let i=function(r){const i=hA(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return he(e,i),be(e,UB(r.statements,d,Pu,n)),t.updateSourceFile(r,cI(t.createNodeArray(e),r.statements))}return YB(r,d,e)}(r);return _=void 0,u&&(i=t.updateSourceFile(i,cI(t.createNodeArray(zp(i.statements.slice(),u)),i.statements))),!tO(r)||re(i.statements,pu)?i:t.updateSourceFile(i,cI(t.createNodeArray([...i.statements,zE(t)]),i.statements))}return r}));function d(e){switch(e.kind){case 271:return $S(o)>=100?function(e){let n;return Sn.assert(yg(e),"import= for internal module references should be handled in an earlier transformer."),n=he(n,YC(cI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,p(e))],a>=2?2:0)),e),e)),n=function(e,n){fb(n,32)&&(e=he(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,Dc(n.name))]))));return e}(n,e),je(n)}(e):void 0;case 277:return function(e){return e.isExportEquals?void 0:e}(e);case 278:return function(e){if(void 0!==o.module&&o.module>5)return e;if(!e.exportClause||!mP(e.exportClause)||!e.moduleSpecifier)return e;const n=e.exportClause.name,r=t.getGeneratedNameForNode(n),i=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(r)),e.moduleSpecifier,e.attributes);YC(i,e.exportClause);const a=Xp(e)?t.createExportDefault(r):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,r,n)]));return YC(a,e),[i,a]}(e)}return e}function p(e){const n=bA(t,e,Sn.checkDefined(_),r,i,o),s=[];if(n&&s.push(n),!u){const e=t.createUniqueName("_createRequire",48),n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),e)])),t.createStringLiteral("module"),void 0),r=t.createUniqueName("__require",48),i=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"))]))],a>=2?2:0));u=[n,i]}const c=u[1].declarationList.declarations[0].name;return Sn.assertNode(c,HN),t.createCallExpression(t.cloneNode(c),void 0,s)}}var wq=g({"src/compiler/transformers/module/esnextAnd2015.ts"(){OK()}});function Nq(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=Cq(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=xq(e),s=e.onSubstituteNode,c=e.onEmitNode;let l;return e.onSubstituteNode=function(e,n){return $P(n)?(l=n,t(e,n)):l?99===l.impliedNodeFormat?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){$P(t)&&(l=t);if(!l)return n(e,t,r);if(99===l.impliedNodeFormat)return o(e,t,r);return c(e,t,r)},e.enableSubstitution(312),e.enableEmitNotification(312),function(t){return 312===t.kind?_(t):function(t){return e.factory.createBundle(J(t.sourceFiles,_),t.prepends)}(t)};function _(e){if(e.isDeclarationFile)return e;l=e;const t=(99===e.impliedNodeFormat?r:a)(e);return l=void 0,Sn.assert($P(t)),t}}var Dq=g({"src/compiler/transformers/module/node.ts"(){OK()}});function Fq(e){return GF(e)||pD(e)||dD(e)||GD(e)||qu(e)||Uu(e)||xD(e)||bD(e)||mD(e)||fD(e)||QF(e)||_D(e)||lD(e)||bF(e)||aP(e)||eP(e)||hD(e)||SD(e)||YD(e)||ZD(e)||pF(e)||bh(e)}function Pq(e){return qu(e)||Uu(e)?function(t){const n=function(t){return mb(e)?t.errorModuleName?2===t.accessibility?Ea.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Ea.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Ea.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:fD(e)||mD(e)?function(t){const n=function(t){return mb(e)?t.errorModuleName?2===t.accessibility?Ea.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Ea.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Ea.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:Eq(e)}function Eq(e){return GF(e)||pD(e)||dD(e)||YD(e)||ZD(e)||pF(e)||GD(e)||hD(e)?t:qu(e)||Uu(e)?function(t){let n;n=178===e.kind?mb(e)?t.errorModuleName?Ea.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Ea.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:mb(e)?t.errorModuleName?2===t.accessibility?Ea.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?Ea.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:e.name,typeName:e.name}}:xD(e)||bD(e)||mD(e)||fD(e)||QF(e)||SD(e)?function(t){let n;switch(e.kind){case 180:n=t.errorModuleName?Ea.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ea.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:n=t.errorModuleName?Ea.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ea.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:n=t.errorModuleName?Ea.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ea.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:n=mb(e)?t.errorModuleName?2===t.accessibility?Ea.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Ea.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Ea.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:263===e.parent.kind?t.errorModuleName?2===t.accessibility?Ea.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Ea.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:Ea.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?Ea.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:Ea.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:n=t.errorModuleName?2===t.accessibility?Ea.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:Ea.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:Ea.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return Sn.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:n,errorNode:e.name||e}}:_D(e)?dc(e,e.parent)&&fb(e.parent,2)?t:function(t){const n=function(t){switch(e.parent.kind){case 176:return t.errorModuleName?2===t.accessibility?Ea.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return t.errorModuleName?Ea.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return t.errorModuleName?Ea.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return t.errorModuleName?Ea.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return mb(e.parent)?t.errorModuleName?2===t.accessibility?Ea.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?Ea.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Ea.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return t.errorModuleName?2===t.accessibility?Ea.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return t.errorModuleName?2===t.accessibility?Ea.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:Ea.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return Sn.fail(`Unknown parent for parameter: ${Sn.formatSyntaxKind(e.parent.kind)}`)}}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}:lD(e)?function(){let t;switch(e.parent.kind){case 263:t=Ea.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:t=Ea.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:t=Ea.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:t=Ea.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:t=Ea.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:t=mb(e.parent)?Ea.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?Ea.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:Ea.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:t=Ea.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:t=Ea.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:t=Ea.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return Sn.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:t,errorNode:e,typeName:e.name}}:bF(e)?function(){let t;t=YF(e.parent.parent)?JP(e.parent)&&119===e.parent.token?Ea.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?Ea.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:Ea.extends_clause_of_exported_class_has_or_is_using_private_name_0:Ea.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:t,errorNode:e,typeName:Mc(e.parent.parent)}}:aP(e)?function(){return{diagnosticMessage:Ea.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:eP(e)||bh(e)?function(t){return{diagnosticMessage:t.errorModuleName?Ea.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:Ea.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:bh(e)?Sn.checkDefined(e.typeExpression):e.type,typeName:bh(e)?Mc(e):e.name}}:Sn.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${Sn.formatSyntaxKind(e.kind)}`);function t(t){const n=function(t){return 260===e.kind||208===e.kind?t.errorModuleName?2===t.accessibility?Ea.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:Ea.Exported_variable_0_has_or_is_using_private_name_1:172===e.kind||211===e.kind||212===e.kind||226===e.kind||171===e.kind||169===e.kind&&fb(e.parent,2)?mb(e)?t.errorModuleName?2===t.accessibility?Ea.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind||169===e.kind?t.errorModuleName?2===t.accessibility?Ea.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:Ea.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:Ea.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?Ea.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:Ea.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(t);return void 0!==n?{diagnosticMessage:n,errorNode:e,typeName:e.name}:void 0}}var Aq,Iq=g({"src/compiler/transformers/declarations/diagnostics.ts"(){OK()}});function Oq(e,t,n){const r=e.getCompilerOptions();return Qq(t,e,AC,r,n?[n]:M(e.getSourceFiles(),wg),[Mq],!1).diagnostics}function Lq(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function jq(e,t){const n=Cc(e);if(n&&169===n.kind){const r=n.parent.parameters.indexOf(n),i=r>0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?oe(Ps(o,ys(o,i.end+1,!1,!0)),Fs(o,e.pos)):Ps(o,ys(o,e.pos,!1,!0));return a&&a.length&&Lq(Ie(a),t)}return!!b(n&&mm(n,t),(e=>Lq(e,t)))}function Mq(e){const t=()=>Sn.fail("Diagnostic emitted without context");let n,i,o,a,s,c,l=t,_=!0,u=!1,d=!1,p=!1,f=!1;const{factory:m}=e,g=e.getEmitHost(),h={trackSymbol:function(e,t,n){if(262144&e.flags)return!1;const r=O(w.isSymbolAccessible(e,t,n,!0));return P(w.getTypeReferenceDirectivesForSymbol(e,n)),r},reportInaccessibleThisError:function(){(y||x)&&e.addDiagnostic(Bf(y||x,Ea.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"this"))},reportInaccessibleUniqueSymbolError:function(){(y||x)&&e.addDiagnostic(Bf(y||x,Ea.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"unique symbol"))},reportCyclicStructureError:function(){(y||x)&&e.addDiagnostic(Bf(y||x,Ea.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,L()))},reportPrivateInBaseOfClassExpression:function(t){(y||x)&&e.addDiagnostic(Bf(y||x,Ea.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){(y||x)&&e.addDiagnostic(Bf(y||x,Ea.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,L(),t))},reportTruncationError:function(){(y||x)&&e.addDiagnostic(Bf(y||x,Ea.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:g,trackReferencedAmbientModule:E,trackExternalModuleSymbolOfImportTypeNode:function(e){u||(c||(c=[])).push(e)},reportNonlocalAugmentation:function(t,n,r){var i;const o=null==(i=n.declarations)?void 0:i.find((e=>Cp(e)===t)),a=M(r.declarations,(e=>Cp(e)!==t));if(o&&a)for(const t of a)e.addDiagnostic(pT(Bf(t,Ea.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Bf(o,Ea.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(y||x)&&e.addDiagnostic(Bf(y||x,Ea.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,t))}};let y,x,S,k,T,C;const w=e.getEmitResolver(),N=e.getCompilerOptions(),{noResolve:D,stripInternal:F}=N;return function(r){if(312===r.kind&&r.isDeclarationFile)return r;if(313===r.kind){u=!0,k=new Map,T=new Map;let i=!1;const c=m.createBundle(J(r.sourceFiles,(r=>{if(r.isDeclarationFile)return;if(i=i||r.hasNoDefaultLib,S=r,n=r,o=void 0,s=!1,a=new Map,l=t,p=!1,f=!1,R(r,k),B(r,T),Yf(r)||Zf(r)){d=!1,_=!1;const t=Sg(r)?m.createNodeArray(j(r,!0)):UB(r.statements,le,Pu);return m.updateSourceFile(r,[m.createModuleDeclaration([m.createModifier(138)],m.createStringLiteral(Sv(e.getEmitHost(),r)),m.createModuleBlock(cI(m.createNodeArray(se(t)),r.statements)))],!0,[],[],!1,[])}_=!0;const c=Sg(r)?m.createNodeArray(j(r)):UB(r.statements,le,Pu);return m.updateSourceFile(r,se(c),!0,[],[],!1,[])})),G(r.prepends,(e=>{if(315===e.kind){const t=$C(e,"dts",F);return i=i||!!t.hasNoDefaultLib,R(t,k),P(J(t.typeReferenceDirectives,(e=>[e.fileName,e.resolutionMode]))),B(t,T),t}return e})));c.syntheticFileReferences=[],c.syntheticTypeReferences=D(),c.syntheticLibReferences=w(),c.hasNoDefaultLib=i;const h=Zo(oa(lU(r,g,!0).declarationFilePath)),y=A(c.syntheticFileReferences,h);return k.forEach(y),c}_=!0,p=!1,f=!1,n=r,S=r,l=t,u=!1,d=!1,s=!1,o=void 0,a=new Map,i=void 0,k=R(S,new Map),T=B(S,new Map);const h=[],y=Zo(oa(lU(r,g,!0).declarationFilePath)),v=A(h,y);let b;if(Sg(S))b=m.createNodeArray(j(r)),k.forEach(v),C=M(b,Cf);else{const e=UB(r.statements,le,Pu);b=cI(m.createNodeArray(se(e)),r.statements),k.forEach(v),C=M(b,Cf),tO(r)&&(!d||p&&!f)&&(b=cI(m.createNodeArray([...b,zE(m)]),b))}const x=m.updateSourceFile(r,b,!0,h,D(),r.hasNoDefaultLib,w());return x.exportedModulesFromDeclarationEmit=c,x;function w(){return $e(T.keys(),(e=>({fileName:e,pos:-1,end:-1})))}function D(){return i?G($e(i.keys()),E):[]}function E([e,t]){if(C)for(const t of C)if(aP(t)&&CP(t.moduleReference)){const n=t.moduleReference.expression;if(Qu(n)&&n.text===e)return}else if(sP(t)&&FN(t.moduleSpecifier)&&t.moduleSpecifier.text===e)return;return{fileName:e,pos:-1,end:-1,...t?{resolutionMode:t}:void 0}}function A(e,t){return n=>{let i;if(n.isDeclarationFile)i=n.fileName;else{if(u&&I(r.sourceFiles,n))return;const e=lU(n,g,!0);i=e.declarationFilePath||e.jsFilePath||n.fileName}if(i){const n=JR(N,S,pa(t,g.getCurrentDirectory(),g.getCanonicalFileName),pa(i,g.getCurrentDirectory(),g.getCanonicalFileName),g);if(!Vo(n))return void P([[n,void 0]]);let r=Da(t,i,g.getCurrentDirectory(),g.getCanonicalFileName,!1);if(an(r,"./")&&Ho(r)&&(r=r.substring(2)),an(r,"node_modules/")||EM(r))return;e.push({pos:-1,end:-1,fileName:r})}}}};function P(e){if(e){i=i||new Set;for(const t of e)i.add(t)}}function E(e,t){const n=w.getTypeReferenceDirectivesForSymbol(t,67108863);if(v(n))return P(n);const r=Cp(e);k.set(TJ(r),r)}function A(e){const t=uh(e),n=t&&w.tryFindAmbientModule(t);if(null==n?void 0:n.declarations)for(const e of n.declarations)lf(e)&&Cp(e)!==S&&E(e,n)}function O(t){if(0===t.accessibility){if(t&&t.aliasesToMakeVisible)if(o)for(const e of t.aliasesToMakeVisible)xe(o,e);else o=t.aliasesToMakeVisible}else{const n=l(t);if(n)return n.typeName?e.addDiagnostic(Bf(t.errorNode||n.errorNode,n.diagnosticMessage,Yp(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(Bf(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function L(){return y?If(y):x&&Mc(x)?If(Mc(x)):x&&yP(x)?x.isExportEquals?"export=":"default":"(Missing)"}function j(e,t){const n=l;l=t=>t.errorNode&&Fq(t.errorNode)?Eq(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?Ea.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:Ea.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const r=w.getDeclarationStatementsForSourceFile(e,Aq,h,t);return l=n,r}function R(e,t){return D||!GP(e)&&Sg(e)||b(e.referencedFiles,(n=>{const r=g.getSourceFileFromReference(e,n);r&&t.set(TJ(r),r)})),t}function B(e,t){return b(e.libReferenceDirectives,(e=>{g.getLibFileFromReference(e)&&t.set(St(e.fileName),!0)})),t}function z(e){return 80===e.kind?e:207===e.kind?m.updateArrayBindingPattern(e,UB(e.elements,t,J_)):m.updateObjectBindingPattern(e,UB(e.elements,t,GD));function t(e){return 232===e.kind?e:(e.propertyName&&cD(e.propertyName)&&Kb(e.propertyName.expression)&&te(e.propertyName.expression,n),e.propertyName&&HN(e.propertyName)&&HN(e.name)&&!e.symbol.isReferenced&&!Cy(e.propertyName)?m.updateBindingElement(e,e.dotDotDotToken,void 0,e.propertyName,W(e)?e.initializer:void 0):m.updateBindingElement(e,e.dotDotDotToken,e.propertyName,z(e.name),W(e)?e.initializer:void 0))}}function q(e,t,n){let r;s||(r=l,l=Eq(e));const i=m.updateParameterDeclaration(e,function(e,t,n,r){return e.createModifiersFromModifierFlags(Rq(t,n,r))}(m,e,t),e.dotDotDotToken,z(e.name),w.isOptionalParameter(e)?e.questionToken||m.createToken(58):void 0,$(e,n||e.type,!0),H(e));return s||(l=r),i}function W(e){return function(e){switch(e.kind){case 172:case 171:return!pb(e,2);case 169:case 260:return!0}return!1}(e)&&w.isLiteralConstDeclaration(Cc(e))}function H(e){if(W(e))return w.createLiteralConstValue(Cc(e),h)}function $(e,t,r){if(!r&&pb(e,2))return;if(W(e))return;const i=169===e.kind&&(w.isRequiredInitializedParameter(e)||w.isOptionalUninitializedParameterProperty(e));if(t&&!i)return qB(t,ce,j_);if(!Cc(e))return t?qB(t,ce,j_):m.createKeywordTypeNode(133);if(178===e.kind)return m.createKeywordTypeNode(133);let o;return y=e.name,s||(o=l,l=Eq(e)),260===e.kind||208===e.kind?a(w.createTypeOfDeclaration(e,n,Aq,h)):169===e.kind||172===e.kind||171===e.kind?dD(e)||!e.initializer?a(w.createTypeOfDeclaration(e,n,Aq,h,i)):a(w.createTypeOfDeclaration(e,n,Aq,h,i)||w.createTypeOfExpression(e.initializer,n,Aq,h)):a(w.createReturnTypeOfSignatureDeclaration(e,n,Aq,h));function a(e){return y=void 0,s||(l=o),e||m.createKeywordTypeNode(133)}}function K(e){switch((e=Cc(e)).kind){case 262:case 267:case 264:case 263:case 265:case 266:return!w.isDeclarationVisible(e);case 260:return!X(e);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function X(e){return!vF(e)&&(R_(e.name)?re(e.name.elements,X):w.isDeclarationVisible(e))}function Q(e,t,n){if(pb(e,2))return m.createNodeArray();const r=J(t,(e=>q(e,n)));return r?m.createNodeArray(r,t.hasTrailingComma):m.createNodeArray()}function Y(e,t){let n;if(!t){const t=Wv(e);t&&(n=[q(t)])}if(vD(e)){let r;if(!t){const t=Uv(e);if(t){r=q(t,void 0,ve(e,w.getAllAccessorDeclarations(e)))}}r||(r=m.createParameterDeclaration(void 0,void 0,"value")),n=he(n,r)}return m.createNodeArray(n||r)}function Z(e,t){return pb(e,2)?void 0:UB(t,ce,lD)}function ee(e){return $P(e)||eP(e)||nP(e)||YF(e)||ZF(e)||y_(e)||SD(e)||qD(e)}function te(e,t){O(w.isEntityNameVisible(e,t)),P(w.getTypeReferenceDirectivesForEntityName(e))}function ne(e,t){return Vu(e)&&Vu(t)&&(e.jsDoc=t.jsDoc),fw(e,pw(t))}function ie(t,n){if(n){if(d=d||267!==t.kind&&205!==t.kind,Qu(n))if(u){const n=Tv(e.getEmitHost(),w,t);if(n)return m.createStringLiteral(n)}else{const e=w.getSymbolOfExternalModuleSpecifier(n);e&&(c||(c=[])).push(e)}return n}}function ae(e){const t=DV(e);return e&&void 0!==t?e:void 0}function se(e){for(;v(o);){const e=o.shift();if(!Nf(e))return Sn.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${Sn.formatSyntaxKind(e.kind)}`);const t=_;_=e.parent&&$P(e.parent)&&!(tO(e.parent)&&u);const n=de(e);_=t,a.set(TJ(e),n)}return UB(e,(function(e){if(Nf(e)){const t=TJ(e);if(a.has(t)){const n=a.get(t);return a.delete(t),n&&((_t(n)?re(n,du):du(n))&&(p=!0),$P(e.parent)&&(_t(n)?re(n,pu):pu(n))&&(d=!0)),n}}return e}),Pu)}function ce(t){if(fe(t))return;if(Nu(t)){if(K(t))return;if(Ey(t)&&!w.isLateBound(Cc(t)))return}if(y_(t)&&w.isImplementationOfOverload(t))return;if(FF(t))return;let r;ee(t)&&(r=n,n=t);const i=l,o=Fq(t),a=s;let c=(187===t.kind||200===t.kind)&&265!==t.parent.kind;if((mD(t)||fD(t))&&pb(t,2)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return u(m.createPropertyDeclaration(ye(t),t.name,void 0,void 0,void 0))}if(o&&!s&&(l=Eq(t)),ND(t)&&te(t.exprName,n),c&&(s=!0),function(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}(t))switch(t.kind){case 233:{(m_(t.expression)||Kb(t.expression))&&te(t.expression,n);const r=YB(t,ce,e);return u(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 183:{te(t.typeName,n);const r=YB(t,ce,e);return u(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 180:return u(m.updateConstructSignature(t,Z(t,t.typeParameters),Q(t,t.parameters),$(t,t.type)));case 176:return u(m.createConstructorDeclaration(ye(t),Q(t,t.parameters,0),void 0));case 174:if($N(t.name))return u(void 0);return u(m.createMethodDeclaration(ye(t),void 0,t.name,t.questionToken,Z(t,t.typeParameters),Q(t,t.parameters),$(t,t.type),void 0));case 177:{if($N(t.name))return u(void 0);const e=ve(t,w.getAllAccessorDeclarations(t));return u(m.updateGetAccessorDeclaration(t,ye(t),t.name,Y(t,pb(t,2)),$(t,e),void 0))}case 178:return $N(t.name)?u(void 0):u(m.updateSetAccessorDeclaration(t,ye(t),t.name,Y(t,pb(t,2)),void 0));case 172:return $N(t.name)?u(void 0):u(m.updatePropertyDeclaration(t,ye(t),t.name,t.questionToken,$(t,t.type),H(t)));case 171:return $N(t.name)?u(void 0):u(m.updatePropertySignature(t,ye(t),t.name,t.questionToken,$(t,t.type)));case 173:return $N(t.name)?u(void 0):u(m.updateMethodSignature(t,ye(t),t.name,t.questionToken,Z(t,t.typeParameters),Q(t,t.parameters),$(t,t.type)));case 179:return u(m.updateCallSignature(t,Z(t,t.typeParameters),Q(t,t.parameters),$(t,t.type)));case 181:return u(m.updateIndexSignature(t,ye(t),Q(t,t.parameters),qB(t.type,ce,j_)||m.createKeywordTypeNode(133)));case 260:return R_(t.name)?pe(t.name):(c=!0,s=!0,u(m.updateVariableDeclaration(t,t.name,void 0,$(t,t.type),H(t))));case 168:return 174===(_=t).parent.kind&&pb(_.parent,2)&&(t.default||t.constraint)?u(m.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):u(YB(t,ce,e));case 194:{const e=qB(t.checkType,ce,j_),r=qB(t.extendsType,ce,j_),i=n;n=t.trueType;const o=qB(t.trueType,ce,j_);n=i;const a=qB(t.falseType,ce,j_);return Sn.assert(e),Sn.assert(r),Sn.assert(o),Sn.assert(a),u(m.updateConditionalTypeNode(t,e,r,o,a))}case 184:return u(m.updateFunctionTypeNode(t,UB(t.typeParameters,ce,lD),Q(t,t.parameters),Sn.checkDefined(qB(t.type,ce,j_))));case 185:return u(m.updateConstructorTypeNode(t,ye(t),UB(t.typeParameters,ce,lD),Q(t,t.parameters),Sn.checkDefined(qB(t.type,ce,j_))));case 205:return lm(t)?(A(t),u(m.updateImportTypeNode(t,m.updateLiteralTypeNode(t.argument,ie(t,t.argument.literal)),t.attributes,t.qualifier,UB(t.typeArguments,ce,j_),t.isTypeOf))):u(t);default:Sn.assertNever(t,`Attempted to process unhandled node kind: ${Sn.formatSyntaxKind(t.kind)}`)}var _;return PD(t)&&_s(S,t.pos).line===_s(S,t.end).line&&rw(t,1),u(YB(t,ce,e));function u(e){return e&&o&&Ey(t)&&function(e){let t;s||(t=l,l=Pq(e));y=e.name,Sn.assert(w.isLateBound(Cc(e)));const r=e;te(r.name.expression,n),s||(l=t);y=void 0}(t),ee(t)&&(n=r),o&&!s&&(l=i),c&&(s=a),e===t?e:e&&YC(ne(e,t),t)}}function le(e){if(!function(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}(e))return;if(fe(e))return;switch(e.kind){case 278:return $P(e.parent)&&(d=!0),f=!0,A(e),m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,ie(e,e.moduleSpecifier),ae(e.attributes));case 277:if($P(e.parent)&&(d=!0),f=!0,80===e.expression.kind)return e;{const t=m.createUniqueName("_default",16);l=()=>({diagnosticMessage:Ea.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}),x=e;const n=m.createVariableDeclaration(t,void 0,w.createTypeOfExpression(e.expression,e,Aq,h),void 0);x=void 0;const r=m.createVariableStatement(_?[m.createModifier(138)]:[],m.createVariableDeclarationList([n],2));return ne(r,e),nw(e),[r,m.updateExportAssignment(e,e.modifiers,t)]}}const t=de(e);return a.set(TJ(e),t),e}function _e(e){if(aP(e)||pb(e,2048)||!lI(e))return e;const t=m.createModifiersFromModifierFlags(131039&wb(e));return m.replaceModifiers(e,t)}function ue(e,t,n,r){const i=m.updateModuleDeclaration(e,t,n,r);if(lf(i)||32&i.flags)return i;const o=m.createModuleDeclaration(i.modifiers,i.name,i.body,32|i.flags);return YC(o,i),cI(o,i),o}function de(e){if(o)for(;Qt(o,e););if(fe(e))return;switch(e.kind){case 271:{const t=function(e){if(w.isDeclarationVisible(e)){if(283===e.moduleReference.kind){const t=vg(e);return m.updateImportEqualsDeclaration(e,e.modifiers,e.isTypeOnly,e.name,m.updateExternalModuleReference(e.moduleReference,ie(e,t)))}{const t=l;return l=Eq(e),te(e.moduleReference,n),l=t,e}}}(e);return t&&A(e),t}case 272:{const t=function(e){if(!e.importClause)return m.updateImportDeclaration(e,e.modifiers,e.importClause,ie(e,e.moduleSpecifier),ae(e.attributes));const t=e.importClause&&e.importClause.name&&w.isDeclarationVisible(e.importClause)?e.importClause.name:void 0;if(!e.importClause.namedBindings)return t&&m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,void 0),ie(e,e.moduleSpecifier),ae(e.attributes));if(274===e.importClause.namedBindings.kind){const n=w.isDeclarationVisible(e.importClause.namedBindings)?e.importClause.namedBindings:void 0;return t||n?m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),ie(e,e.moduleSpecifier),ae(e.attributes)):void 0}const n=G(e.importClause.namedBindings.elements,(e=>w.isDeclarationVisible(e)?e:void 0));return n&&n.length||t?m.updateImportDeclaration(e,e.modifiers,m.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n&&n.length?m.updateNamedImports(e.importClause.namedBindings,n):void 0),ie(e,e.moduleSpecifier),ae(e.attributes)):w.isImportRequiredByAugmentation(e)?m.updateImportDeclaration(e,e.modifiers,void 0,ie(e,e.moduleSpecifier),ae(e.attributes)):void 0}(e);return t&&A(e),t}}if(Nu(e)&&K(e))return;if(y_(e)&&w.isImplementationOfOverload(e))return;let t;ee(e)&&(t=n,n=e);const r=Fq(e),i=l;r&&(l=Eq(e));const s=_;switch(e.kind){case 265:{_=!1;const t=c(m.updateTypeAliasDeclaration(e,ye(e),e.name,UB(e.typeParameters,ce,lD),Sn.checkDefined(qB(e.type,ce,j_))));return _=s,t}case 264:return c(m.updateInterfaceDeclaration(e,ye(e),e.name,Z(e,e.typeParameters),be(e.heritageClauses),UB(e.members,ce,I_)));case 262:{const t=c(m.updateFunctionDeclaration(e,ye(e),void 0,e.name,Z(e,e.typeParameters),Q(e,e.parameters),$(e,e.type),void 0));if(t&&w.isExpandoFunctionDeclaration(e)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter((e=>QF(e)&&!e.body));return!n||n.indexOf(e)===n.length-1}(e)){const r=w.getPropertiesOfContainerFunction(e),o=hI.createModuleDeclaration(void 0,t.name||m.createIdentifier("_default"),m.createModuleBlock([]),32);AT(o,n),o.locals=op(r),o.symbol=r[0].parent;const a=[];let s=G(r,(e=>{if(!gC(e.valueDeclaration))return;const t=Nc(e.escapedName);if(!Os(t,99))return;l=Eq(e.valueDeclaration);const n=w.createTypeOfDeclaration(e.valueDeclaration,o,Aq,h);l=i;const r=ky(t),s=r?m.getGeneratedNameForNode(e.valueDeclaration):m.createIdentifier(t);r&&a.push([s,t]);const c=m.createVariableDeclaration(s,void 0,n,void 0);return m.createVariableStatement(r?void 0:[m.createToken(95)],m.createVariableDeclarationList([c]))}));a.length?s.push(m.createExportDeclaration(void 0,!1,m.createNamedExports(J(a,(([e,t])=>m.createExportSpecifier(!1,e,t)))))):s=G(s,(e=>m.replaceModifiers(e,0)));const c=m.createModuleDeclaration(ye(e),e.name,m.createModuleBlock(s),32);if(!pb(t,2048))return[t,c];const _=m.createModifiersFromModifierFlags(-2081&wb(t)|128),u=m.updateFunctionDeclaration(t,_,void 0,t.name,t.typeParameters,t.parameters,t.type,void 0),p=m.updateModuleDeclaration(c,_,c.name,c.body),g=m.createExportAssignment(void 0,!1,c.name);return $P(e.parent)&&(d=!0),f=!0,[u,p,g]}return t}case 267:{_=!1;const t=e.body;if(t&&268===t.kind){const n=p,r=f;f=!1,p=!1;let i=se(UB(t.statements,le,Pu));33554432&e.flags&&(p=!1),mf(e)||function(e){return re(e,ge)}(i)||f||(i=p?m.createNodeArray([...i,zE(m)]):UB(i,_e,Pu));const o=m.updateModuleBlock(t,i);_=s,p=n,f=r;const a=ye(e);return c(ue(e,a,gf(e)?ie(e,e.name):e.name,o))}{_=s;const n=ye(e);_=!1,qB(t,le);const r=TJ(t),i=a.get(r);return a.delete(r),c(ue(e,n,e.name,i))}}case 263:{y=e.name,x=e;const t=m.createNodeArray(ye(e)),n=Z(e,e.typeParameters),r=qv(e);let i;if(r){const e=l;i=me(V(r.parameters,(e=>{if(fb(e,31)&&!fe(e))return l=Eq(e),80===e.name.kind?ne(m.createPropertyDeclaration(ye(e),e.name,e.questionToken,$(e,e.type),H(e)),e):function t(n){let r;for(const i of n.elements)vF(i)||(R_(i.name)&&(r=oe(r,t(i.name))),r=r||[],r.push(m.createPropertyDeclaration(ye(e),i.name,void 0,$(i,void 0),void 0)));return r}(e.name)}))),l=e}const o=oe(oe(re(e.members,(e=>!!e.name&&$N(e.name)))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,i),UB(e.members,ce,C_)),a=m.createNodeArray(o),s=_y(e);if(s&&!Kb(s.expression)&&106!==s.expression.kind){const r=e.name?Nc(e.name.escapedText):"default",i=m.createUniqueName(`${r}_base`,16);l=()=>({diagnosticMessage:Ea.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:s,typeName:e.name});const o=m.createVariableDeclaration(i,void 0,w.createTypeOfExpression(s.expression,e,Aq,h),void 0),u=m.createVariableStatement(_?[m.createModifier(138)]:[],m.createVariableDeclarationList([o],2)),d=m.createNodeArray(J(e.heritageClauses,(e=>{if(96===e.token){const t=l;l=Eq(e.types[0]);const n=m.updateHeritageClause(e,J(e.types,(e=>m.updateExpressionWithTypeArguments(e,i,UB(e.typeArguments,ce,j_)))));return l=t,n}return m.updateHeritageClause(e,UB(m.createNodeArray(M(e.types,(e=>Kb(e.expression)||106===e.expression.kind))),ce,bF))})));return[u,c(m.updateClassDeclaration(e,t,e.name,n,d,a))]}{const r=be(e.heritageClauses);return c(m.updateClassDeclaration(e,t,e.name,n,r,a))}}case 243:return c(function(e){if(!b(e.declarationList.declarations,X))return;const t=UB(e.declarationList.declarations,ce,GF);if(!v(t))return;const n=m.createNodeArray(ye(e));let r;rm(e.declarationList)||nm(e.declarationList)?(r=m.createVariableDeclarationList(t,2),YC(r,e.declarationList),cI(r,e.declarationList),fw(r,e.declarationList)):r=m.updateVariableDeclarationList(e.declarationList,t);return m.updateVariableStatement(e,n,r)}(e));case 266:return c(m.updateEnumDeclaration(e,m.createNodeArray(ye(e)),e.name,m.createNodeArray(G(e.members,(e=>{if(fe(e))return;const t=w.getConstantValue(e);return ne(m.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?m.createStringLiteral(t):m.createNumericLiteral(t):void 0),e)})))))}return Sn.assertNever(e,`Unhandled top-level node in declaration emit: ${Sn.formatSyntaxKind(e.kind)}`);function c(o){return ee(e)&&(n=t),r&&(l=i),267===e.kind&&(_=s),o===e?o:(x=void 0,y=void 0,o&&YC(ne(o,e),e))}}function pe(e){return U(G(e.elements,(e=>function(e){if(232===e.kind)return;if(e.name){if(!X(e))return;return R_(e.name)?pe(e.name):m.createVariableDeclaration(e.name,void 0,$(e,void 0),void 0)}}(e))))}function fe(e){return!!F&&!!e&&jq(e,S)}function ge(e){return yP(e)||vP(e)}function ye(e){const t=wb(e),n=function(e){let t=130030,n=_&&!function(e){if(264===e.kind)return!0;return!1}(e)?128:0;const r=312===e.parent.kind;(!r||u&&r&&tO(e.parent))&&(t^=128,n=0);return Rq(e,t,n)}(e);return t===n?VB(e.modifiers,(e=>ft(e,f_)),f_):m.createModifiersFromModifierFlags(n)}function ve(e,t){let n=Bq(e);return n||e===t.firstAccessor||(n=Bq(t.firstAccessor),l=Eq(t.firstAccessor)),!n&&t.secondAccessor&&e!==t.secondAccessor&&(n=Bq(t.secondAccessor),l=Eq(t.secondAccessor)),n}function be(e){return m.createNodeArray(M(J(e,(e=>m.updateHeritageClause(e,UB(m.createNodeArray(M(e.types,(t=>Kb(t.expression)||96===e.token&&106===t.expression.kind))),ce,bF)))),(e=>e.types&&!!e.types.length)))}}function Rq(e,t=131070,n=0){let r=wb(e)&t|n;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function Bq(e){if(e)return 177===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}var Jq,zq,qq=g({"src/compiler/transformers/declarations.ts"(){OK(),DB(),Aq=531469}});function Uq(e,t,n){return{scriptTransformers:Vq(e,t,n),declarationTransformers:Wq(t)}}function Vq(e,t,n){if(n)return r;const i=HS(e),o=$S(e),a=mk(e),s=[];return be(s,t&&J(t.before,$q)),s.push(Iz),e.experimentalDecorators&&s.push(Jz),xk(e)&&s.push(lq),i<99&&s.push(tq),e.experimentalDecorators||!(i<99)&&a||s.push(qz),s.push(Lz),i<8&&s.push(Zz),i<7&&s.push(Qz),i<6&&s.push(Gz),i<5&&s.push($z),i<4&&s.push(Vz),i<3&&s.push(uq),i<2&&(s.push(fq),s.push(yq)),s.push(function(e){switch(e){case 99:case 7:case 6:case 5:return Cq;case 4:return kq;case 100:case 199:return Nq;default:return xq}}(o)),i<1&&s.push(gq),be(s,t&&J(t.after,$q)),s}function Wq(e){const t=[];return t.push(Mq),be(t,e&&J(e.afterDeclarations,Kq)),t}function Hq(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>KP(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function $q(e){return Hq(e,wJ)}function Kq(e){return Hq(e,((e,t)=>t))}function Gq(e,t){return t}function Xq(e,t,n){n(e,t)}function Qq(e,t,n,r,i,o,a){var s,c;const l=new Array(363);let _,u,d,p,f,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,S=[],k=0,T=Gq,C=Xq,w=0;const N=[],D={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Tt((()=>xN(D))),startLexicalEnvironment:function(){Sn.assert(w>0,"Cannot modify the lexical environment during initialization."),Sn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),Sn.assert(!x,"Lexical environment is suspended."),g[b]=_,h[b]=u,y[b]=d,v[b]=m,b++,_=void 0,u=void 0,d=void 0,m=0},suspendLexicalEnvironment:function(){Sn.assert(w>0,"Cannot modify the lexical environment during initialization."),Sn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),Sn.assert(!x,"Lexical environment is already suspended."),x=!0},resumeLexicalEnvironment:function(){Sn.assert(w>0,"Cannot modify the lexical environment during initialization."),Sn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),Sn.assert(x,"Lexical environment is not suspended."),x=!1},endLexicalEnvironment:function(){let e;if(Sn.assert(w>0,"Cannot modify the lexical environment during initialization."),Sn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),Sn.assert(!x,"Lexical environment is suspended."),_||u||d){if(u&&(e=[...u]),_){const t=n.createVariableStatement(void 0,n.createVariableDeclarationList(_));rw(t,2097152),e?e.push(t):e=[t]}d&&(e=e?[...e,...d]:[...d])}b--,_=g[b],u=h[b],d=y[b],m=v[b],0===b&&(g=[],h=[],y=[],v=[]);return e},setLexicalEnvironmentFlags:function(e,t){m=t?m|e:m&~e},getLexicalEnvironmentFlags:function(){return m},hoistVariableDeclaration:function(e){Sn.assert(w>0,"Cannot modify the lexical environment during initialization."),Sn.assert(w<2,"Cannot modify the lexical environment after transformation has completed.");const t=rw(n.createVariableDeclaration(e),128);_?_.push(t):_=[t];1&m&&(m|=2)},hoistFunctionDeclaration:function(e){Sn.assert(w>0,"Cannot modify the lexical environment during initialization."),Sn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),rw(e,2097152),u?u.push(e):u=[e]},addInitializationStatement:function(e){Sn.assert(w>0,"Cannot modify the lexical environment during initialization."),Sn.assert(w<2,"Cannot modify the lexical environment after transformation has completed."),rw(e,2097152),d?d.push(e):d=[e]},startBlockScope:function(){Sn.assert(w>0,"Cannot start a block scope during initialization."),Sn.assert(w<2,"Cannot start a block scope after transformation has completed."),S[k]=p,k++,p=void 0},endBlockScope:function(){Sn.assert(w>0,"Cannot end a block scope during initialization."),Sn.assert(w<2,"Cannot end a block scope after transformation has completed.");const e=re(p)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(p.map((e=>n.createVariableDeclaration(e))),1))]:void 0;k--,p=S[k],0===k&&(S=[]);return e},addBlockScopedVariable:function(e){Sn.assert(k>0,"Cannot add a block scoped variable outside of an iteration body."),(p||(p=[])).push(e)},requestEmitHelper:function e(t){if(Sn.assert(w>0,"Cannot modify the transformation context during initialization."),Sn.assert(w<2,"Cannot modify the transformation context after transformation has completed."),Sn.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(const n of t.dependencies)e(n);f=he(f,t)},readEmitHelpers:function(){Sn.assert(w>0,"Cannot modify the transformation context during initialization."),Sn.assert(w<2,"Cannot modify the transformation context after transformation has completed.");const e=f;return f=void 0,e},enableSubstitution:function(e){Sn.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){Sn.assert(w<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:I,isEmitNotificationEnabled:O,get onSubstituteNode(){return T},set onSubstituteNode(e){Sn.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),Sn.assert(void 0!==e,"Value must not be 'undefined'"),T=e},get onEmitNode(){return C},set onEmitNode(e){Sn.assert(w<1,"Cannot modify transformation hooks after initialization has completed."),Sn.assert(void 0!==e,"Value must not be 'undefined'"),C=e},addDiagnostic(e){N.push(e)}};for(const e of i)tw(Cp(Cc(e)));gr("beforeTransform");const F=o.map((e=>e(D))),P=e=>{for(const t of F)e=t(e);return e};w=1;const E=[];for(const e of i)null==(s=Fr)||s.push(Fr.Phase.Emit,"transformNodes",312===e.kind?{path:e.path}:{kind:e.kind,pos:e.pos,end:e.end}),E.push((a?P:A)(e)),null==(c=Fr)||c.pop();return w=2,gr("afterTransform"),hr("transformTime","beforeTransform","afterTransform"),{transformed:E,substituteNode:function(e,t){return Sn.assert(w<3,"Cannot substitute a node after the result is disposed."),t&&I(t)&&T(e,t)||t},emitNodeWithNotification:function(e,t,n){Sn.assert(w<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),t&&(O(t)?C(e,t,n):n(e,t))},isEmitNotificationEnabled:O,dispose:function(){if(w<3){for(const e of i)tw(Cp(Cc(e)));_=void 0,g=void 0,u=void 0,h=void 0,T=void 0,C=void 0,f=void 0,w=3}},diagnostics:N};function A(e){return!e||$P(e)&&e.isDeclarationFile?e:P(e)}function I(e){return 0!=(1&l[e.kind])&&0==(8&tf(e))}function O(e){return 0!=(2&l[e.kind])||0!=(4&tf(e))}}var Yq,Zq,eU,tU,nU,rU,iU=g({"src/compiler/transformer.ts"(){OK(),Zi(),Jq={scriptTransformers:r,declarationTransformers:r},zq={factory:AC,getCompilerOptions:()=>({}),getEmitResolver:kt,getEmitHost:kt,getEmitHelperFactory:kt,startLexicalEnvironment:gt,resumeLexicalEnvironment:gt,suspendLexicalEnvironment:gt,endLexicalEnvironment:vt,setLexicalEnvironmentFlags:gt,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:gt,hoistFunctionDeclaration:gt,addInitializationStatement:gt,startBlockScope:gt,endBlockScope:vt,addBlockScopedVariable:gt,requestEmitHelper:gt,readEmitHelpers:kt,enableSubstitution:gt,enableEmitNotification:gt,isSubstitutionEnabled:kt,isEmitNotificationEnabled:kt,onSubstituteNode:Gq,onEmitNode:Xq,addDiagnostic:gt}}});function oU(e){return $o(e,".tsbuildinfo")}function aU(e,t,n,r=!1,i,o){const a=_t(n)?n:Iv(e,n,r),s=e.getCompilerOptions();if(Ev(s)){const n=e.getPrependNodes();if(a.length||n.length){const i=AC.createBundle(a,n),o=t(lU(i,e,r),i);if(o)return o}}else{if(!i)for(const n of a){const i=t(lU(n,e,r),n);if(i)return i}if(o){const e=sU(s);if(e)return t({buildInfoPath:e},void 0)}}}function sU(e){const t=e.configFilePath;if(!dk(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=Ev(e);let r;if(n)r=Yk(n);else{if(!t)return;const n=Yk(t);r=e.outDir?e.rootDir?ca(e.outDir,Ca(e.rootDir,n,!0)):sa(e.outDir,ea(n)):n}return r+".tsbuildinfo"}function cU(e,t){const n=Ev(e),r=e.emitDeclarationOnly?void 0:n,i=r&&_U(r,e),o=t||_k(e)?Yk(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&nk(e)?o+".map":void 0,buildInfoPath:sU(e)}}function lU(e,t,n){const r=t.getCompilerOptions();if(313===e.kind)return cU(r,n);{const i=wv(e.fileName,t,uU(e.fileName,r)),o=Zf(e),a=o&&0===xa(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||Zf(e)?void 0:_U(s,r),l=n||_k(r)&&!o?Nv(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&nk(r)?l+".map":void 0,buildInfoPath:void 0}}}function _U(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function uU(e,t){return $o(e,".json")?".json":1===t.jsx&&Ko(e,[".jsx",".tsx"])?".jsx":Ko(e,[".mts",".mjs"])?".mjs":Ko(e,[".cts",".cjs"])?".cjs":".js"}function dU(e,t,n,r,i){return r?ca(r,Ca(i?i():vU(t,n),e,n)):e}function pU(e,t,n,r){return tT(dU(e,t,n,t.options.declarationDir||t.options.outDir,r),Fv(e))}function fU(e,t,n,r){if(t.options.emitDeclarationOnly)return;const i=$o(e,".json"),o=tT(dU(e,t,n,t.options.outDir,r),uU(e,t.options));return i&&0===xa(e,o,Sn.checkDefined(t.options.configFilePath),n)?void 0:o}function mU(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||r}}}function gU(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o,buildInfoPath:a}=cU(e.options,!1);t(n),t(r),t(i),t(o),t(a)}function hU(e,t,n,r,i){if(oO(t))return;const o=fU(t,e,n,i);if(r(o),!$o(t,".json")&&(o&&e.options.sourceMap&&r(`${o}.map`),_k(e.options))){const o=pU(t,e,n,i);r(o),e.options.declarationMap&&r(`${o}.map`)}}function yU(e,t,n,r,i){let o;return e.rootDir?(o=_a(e.rootDir,n),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(o=Zo(oa(e.configFilePath)),null==i||i(o)):o=lV(t(),n,r),o&&o[o.length-1]!==Io&&(o+=Io),o}function vU({options:e,fileNames:t},n){return yU(e,(()=>M(t,(t=>!(e.noEmitForJsFiles&&Ko(t,$d)||oO(t))))),Zo(oa(Sn.checkDefined(e.configFilePath))),tn(!n))}function bU(e,t){const{addOutput:n,getOutputs:r}=mU();if(Ev(e.options))gU(e,n);else{const r=Tt((()=>vU(e,t)));for(const i of e.fileNames)hU(e,i,t,n,r);n(sU(e.options))}return r()}function xU(e,t,n){t=ua(t),Sn.assert(I(e.fileNames,t),"Expected fileName to be present in command line");const{addOutput:r,getOutputs:i}=mU();return Ev(e.options)?gU(e,r):hU(e,t,n,r),i()}function SU(e,t){if(Ev(e.options)){const{jsFilePath:t,declarationFilePath:n}=cU(e.options,!1);return Sn.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=Tt((()=>vU(e,t)));for(const r of e.fileNames){if(oO(r))continue;const i=fU(r,e,t,n);if(i)return i;if(!$o(r,".json")&&_k(e.options))return pU(r,e,t,n)}const r=sU(e.options);return r||Sn.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function kU(e,t,n,{scriptTransformers:r,declarationTransformers:i},o,a,s){var c,l=t.getCompilerOptions(),_=l.sourceMap||l.inlineSourceMap||nk(l)?[]:void 0,u=l.listEmittedFiles?[]:void 0,d=ov(),p=mx(l),f=yv(p),{enter:m,exit:g}=mr("printTime","beforePrint","afterPrint"),h=!1;return m(),aU(t,(function({jsFilePath:a,sourceMapFilePath:_,declarationFilePath:p,declarationMapPath:f,buildInfoPath:m},g){var x,S,k,T,C,w;let N;m&&g&&KP(g)&&(N=Zo(_a(m,t.getCurrentDirectory())),c={commonSourceDirectory:D(t.getCommonSourceDirectory()),sourceFiles:g.sourceFiles.map((e=>D(_a(e.fileName,t.getCurrentDirectory()))))});null==(x=Fr)||x.push(Fr.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:a}),function(n,i,a,s){if(!n||o||!i)return;if(t.isEmitBlocked(i)||l.noEmit)return void(h=!0);const _=Qq(e,t,AC,l,[n],r,!1),u=DU({removeComments:l.removeComments,newLine:l.newLine,noEmitHelpers:l.noEmitHelpers,module:l.module,target:l.target,sourceMap:l.sourceMap,inlineSourceMap:l.inlineSourceMap,inlineSources:l.inlineSources,extendedDiagnostics:l.extendedDiagnostics,writeBundleFileInfo:!!c,relativeToBuildInfo:s},{hasGlobalName:e.hasGlobalName,onEmitNode:_.emitNodeWithNotification,isEmitNotificationEnabled:_.isEmitNotificationEnabled,substituteNode:_.substituteNode});Sn.assert(1===_.transformed.length,"Should only see one output from the transform"),b(i,a,_,u,l),_.dispose(),c&&(c.js=u.bundleFileInfo)}(g,a,_,D),null==(S=Fr)||S.pop(),null==(k=Fr)||k.push(Fr.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:p}),function(n,r,a,_){if(!n||0===o)return;if(!r)return void((o||l.emitDeclarationOnly)&&(h=!0));const u=$P(n)?[n]:n.sourceFiles,p=s?u:M(u,wg),f=Ev(l)?[AC.createBundle(p,$P(n)?void 0:n.prepends)]:p;o&&!_k(l)&&p.forEach(y);const m=Qq(e,t,AC,l,f,i,!1);if(v(m.diagnostics))for(const e of m.diagnostics)d.add(e);const g={removeComments:l.removeComments,newLine:l.newLine,noEmitHelpers:!0,module:l.module,target:l.target,sourceMap:!s&&l.declarationMap,inlineSourceMap:l.inlineSourceMap,extendedDiagnostics:l.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!c,recordInternalSection:!!c,relativeToBuildInfo:_},x=DU(g,{hasGlobalName:e.hasGlobalName,onEmitNode:m.emitNodeWithNotification,isEmitNotificationEnabled:m.isEmitNotificationEnabled,substituteNode:m.substituteNode}),S=!!m.diagnostics&&!!m.diagnostics.length||!!t.isEmitBlocked(r)||!!l.noEmit;h=h||S,(!S||s)&&(Sn.assert(1===m.transformed.length,"Should only see one output from the decl transform"),b(r,a,m,x,{sourceMap:g.sourceMap,sourceRoot:l.sourceRoot,mapRoot:l.mapRoot,extendedDiagnostics:l.extendedDiagnostics}));m.dispose(),c&&(c.dts=x.bundleFileInfo)}(g,p,f,D),null==(T=Fr)||T.pop(),null==(C=Fr)||C.push(Fr.Phase.Emit,"emitBuildInfo",{buildInfoPath:m}),function(e,r){if(!r||n||h)return;if(t.isEmitBlocked(r))return void(h=!0);const i=t.getBuildInfo(e)||TU(void 0,e);Mv(t,d,r,CU(i),!1,void 0,{buildInfo:i})}(c,m),null==(w=Fr)||w.pop(),!h&&u&&(o||(a&&u.push(a),_&&u.push(_),m&&u.push(m)),0!==o&&(p&&u.push(p),f&&u.push(f)));function D(e){return ga(Ca(N,e,t.getCanonicalFileName))}}),Iv(t,n,s),s,a,!n),g(),{emitSkipped:h,diagnostics:d.getDiagnostics(),emittedFiles:u,sourceMaps:_};function y(t){yP(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):xP(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):KI(t,y)}function b(e,n,r,i,o){const a=r.transformed[0],s=313===a.kind?a:void 0,c=312===a.kind?a:void 0,u=s?s.sourceFiles:[c];let m,g;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(312!==t.kind||!$o(t.fileName,".json"))}(o,a)&&(m=oJ(t,ea(oa(e)),function(e){const t=oa(e.sourceRoot||"");return t?ma(t):t}(o),function(e,n,r){if(e.sourceRoot)return t.getCommonSourceDirectory();if(e.mapRoot){let n=oa(e.mapRoot);return r&&(n=Zo(Lv(r.fileName,t,n))),0===Yo(n)&&(n=sa(t.getCommonSourceDirectory(),n)),n}return Zo(ua(n))}(o,e,c),o)),s?i.writeBundle(s,f,m):i.writeFile(c,f,m),m){_&&_.push({inputSourceFileNames:m.getSources(),sourceMap:m.toJSON()});const r=function(e,n,r,i,o){if(e.inlineSourceMap){const e=n.toString();return`data:application/json;base64,${_x(uo,e)}`}const a=ea(oa(Sn.checkDefined(i)));if(e.mapRoot){let n=oa(e.mapRoot);return o&&(n=Zo(Lv(o.fileName,t,n))),0===Yo(n)?(n=sa(t.getCommonSourceDirectory(),n),encodeURI(Da(Zo(ua(r)),sa(n,a),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(sa(n,a))}return encodeURI(a)}(o,m,e,n,c);if(r&&(f.isAtStartOfLine()||f.rawWrite(p),g=f.getTextPos(),f.writeComment(`//# sourceMappingURL=${r}`)),n){const e=m.toString();Mv(t,d,n,e,!1,u),i.bundleFileInfo&&(i.bundleFileInfo.mapHash=LW(e,t))}}else f.writeLine();const h=f.getText();Mv(t,d,e,h,!!l.emitBOM,u,{sourceMapUrlPos:g,diagnostics:r.diagnostics}),i.bundleFileInfo&&(i.bundleFileInfo.hash=LW(h,t)),f.clear()}}function TU(e,n){return{bundle:n,program:e,version:t}}function CU(e){return JSON.stringify(e)}function wU(e,t){return dx(e,t)}function NU(e,t,n,r){var i,o;null==(i=Fr)||i.push(Fr.Phase.Emit,"emitUsingBuildInfo",{},!0),gr("beforeEmit");const a=function(e,t,n,r){const{buildInfoPath:i,jsFilePath:o,sourceMapFilePath:a,declarationFilePath:s,declarationMapPath:c}=cU(e.options,!1),l=t.getBuildInfo(i,e.options.configFilePath);if(!l)return i;if(!l.bundle||!l.bundle.js||s&&!l.bundle.dts)return i;const _=t.readFile(Sn.checkDefined(o));if(!_)return o;if(LW(_,t)!==l.bundle.js.hash)return o;const u=a&&t.readFile(a);if(a&&!u||e.options.inlineSourceMap)return a||"inline sourcemap decoding";if(a&&LW(u,t)!==l.bundle.js.mapHash)return a;const d=s&&t.readFile(s);if(s&&!d)return s;if(s&&LW(d,t)!==l.bundle.dts.hash)return s;const p=c&&t.readFile(c);if(c&&!p||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&LW(p,t)!==l.bundle.dts.mapHash)return c;const f=Zo(_a(i,t.getCurrentDirectory())),m=XC(o,_,a,u,s,d,c,p,i,l,!0),g=[],h=XV(e.projectReferences,n,(e=>t.readFile(e)),t),y=function(e,t,n){var r;const i=Sn.checkDefined(e.js),o=(null==(r=i.sources)?void 0:r.prologues)&&Xe(i.sources.prologues,(e=>e.file));return e.sourceFiles.map(((e,r)=>{const i=null==o?void 0:o.get(r),a=null==i?void 0:i.directives.map((e=>{const t=cI(AC.createStringLiteral(e.expression.text),e.expression),n=cI(AC.createExpressionStatement(t),e);return AT(t,n),n})),s=AC.createToken(1),c=AC.createSourceFile(a??[],s,0);return c.fileName=Ca(n.getCurrentDirectory(),_a(e,t),!n.useCaseSensitiveFileNames()),c.text=(null==i?void 0:i.text)??"",PT(c,0,(null==i?void 0:i.text.length)??0),IT(c.statements,c),PT(s,c.end,0),AT(s,c),c}))}(l.bundle,f,t);let v,b;const x={getPrependNodes:Tt((()=>[...h,m])),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>_a(l.bundle.commonSourceDirectory,f),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:vt,getSourceFileByPath:vt,getSourceFiles:()=>y,getLibFileFromReference:kt,isSourceFileFromExternalLibrary:ht,getResolvedProjectReferenceToRedirect:vt,getProjectReferenceRedirect:vt,isSourceOfProjectReferenceRedirect:ht,writeFile:(e,t,n,r,l,f)=>{switch(e){case o:if(_===t)return;break;case a:if(u===t)return;break;case i:break;case s:if(d===t)return;v=t,b=f;break;case c:if(p===t)return;break;default:Sn.fail(`Unexpected path: ${e}`)}g.push({name:e,text:t,writeByteOrderMark:n,data:f})},isEmitBlocked:ht,readFile:e=>t.readFile(e),fileExists:e=>t.fileExists(e),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:n=>{const r=l.program;r&&void 0!==v&&e.options.composite&&(r.outSignature=LW(v,t,b));const{js:i,dts:o,sourceFiles:a}=l.bundle;return n.js.sources=i.sources,o&&(n.dts.sources=o.sources),n.sourceFiles=a,TU(r,n)},getSourceFileFromReference:vt,redirectTargetsMap:ot(),getFileIncludeReasons:kt,createHash:it(t,t.createHash)};return kU(Zq,x,void 0,Uq(e.options,r)),g}(e,t,n,r);return gr("afterEmit"),hr("Emit","beforeEmit","afterEmit"),null==(o=Fr)||o.pop(),a}function DU(e={},t={}){var n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,v,x,S,k,T,C,w,D,F,{hasGlobalName:E,onEmitNode:A=Xq,isEmitNotificationEnabled:I,substituteNode:O=Gq,onBeforeEmitNode:L,onAfterEmitNode:j,onBeforeEmitNodeArray:M,onAfterEmitNodeArray:R,onBeforeEmitToken:B,onAfterEmitToken:J}=t,z=!!e.extendedDiagnostics,q=!!e.omitBraceSourceMapPositions,U=mx(e),V=$S(e),W=new Map,H=e.preserveSourceNewlines,$=function(e){y.write(e)},K=e.writeBundleFileInfo?{sections:[]}:void 0,G=K?Sn.checkDefined(e.relativeToBuildInfo):void 0,X=e.recordInternalSection,Q=0,Y="text",Z=!0,ee=-1,te=-1,ne=-1,ie=-1,oe=-1,ae=!1,se=!!e.removeComments,{enter:ce,exit:le}=fr(z,"commentTime","beforeComment","afterComment"),_e=AC.parenthesizer,ue={select:e=>0===e?_e.parenthesizeLeadingTypeArgument:void 0},de=function(){return WA((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=H,t.containerPosStack[t.stackIndex]=ne,t.containerEndStack[t.stackIndex]=ie,t.declarationListContainerEndStack[t.stackIndex]=oe;const n=t.shouldEmitCommentsStack[t.stackIndex]=Ue(e),r=t.shouldEmitSourceMapsStack[t.stackIndex]=Ve(e);null==L||L(e),n&&or(e),r&&Dr(e),Je(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(t,n,r){return e(t,r,"left")}),(function(e,t,n){const r=28!==e.kind,i=In(n,n.left,e),o=In(n,e,n.right);Tn(i,r),yr(e.pos),vn(e,103===e.kind?cn:ln),br(e.end,!0),Tn(o,!0)}),(function(t,n,r){return e(t,r,"right")}),(function(e,t){const n=In(e,e.left,e.operatorToken),r=In(e,e.operatorToken,e.right);if(Cn(n,r),t.stackIndex>0){const n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],o=t.declarationListContainerEndStack[t.stackIndex],a=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];ze(n),s&&Fr(e),a&&ar(e,r,i,o),null==j||j(e),t.stackIndex--}}),void 0);function e(e,t,n){const r="left"===n?_e.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):_e.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind);let i=We(0,1,e);if(i===Xe&&(Sn.assertIsDefined(D),i=He(1,1,e=r(mt(D,au))),D=void 0),(i===ir||i===Nr||i===Ke)&&pF(e))return e;F=r,i(1,e)}}();return Ee(),{printNode:function(e,t,n){switch(e){case 0:Sn.assert($P(t),"Expected a SourceFile node.");break;case 2:Sn.assert(HN(t),"Expected an Identifier node.");break;case 1:Sn.assert(au(t),"Expected an Expression node.")}switch(t.kind){case 312:return fe(t);case 313:return pe(t);case 314:return function(e,t){const n=y;Pe(t,void 0),Ne(4,e,void 0),Ee(),y=n}(t,Te()),Ce()}return me(e,t,n,Te()),Ce()},printList:function(e,t,n){return ge(e,t,n,Te()),Ce()},printFile:fe,printBundle:pe,writeNode:me,writeList:ge,writeFile:ke,writeBundle:Se,bundleFileInfo:K};function pe(e){return Se(e,Te(),void 0),Ce()}function fe(e){return ke(e,Te(),void 0),Ce()}function me(e,t,n,r){const i=y;Pe(r,void 0),Ne(e,t,n),Ee(),y=i}function ge(e,t,n,r){const i=y;Pe(r,void 0),n&&Fe(n),Zt(void 0,t,e),Ee(),y=i}function he(){return y.getTextPosWithWriteLine?y.getTextPosWithWriteLine():y.getTextPos()}function ye(e,t,n){const r=Ae(K.sections);r&&r.kind===n?r.end=t:K.sections.push({pos:e,end:t,kind:n})}function ve(e){if(X&&K&&n&&(Nu(e)||EF(e))&&jq(e,n)&&"internal"!==Y){const e=Y;return xe(y.getTextPos()),Q=he(),Y="internal",e}}function be(e){e&&(xe(y.getTextPos()),Q=he(),Y=e)}function xe(e){return Q<e&&(ye(Q,e,Y),!0)}function Se(t,n,r){x=!1;const i=y;Pe(n,r),Bt(t),Rt(t),Qe(t),function(e){Ot(!!e.hasNoDefaultLib,e.syntheticFileReferences||[],e.syntheticTypeReferences||[],e.syntheticLibReferences||[]);for(const t of e.prepends)if(GP(t)&&t.syntheticReferences)for(const e of t.syntheticReferences)je(e),mn()}(t);for(const e of t.prepends){mn();const t=y.getTextPos(),n=K&&K.sections;if(n&&(K.sections=[]),Ne(4,e,void 0),K){const r=K.sections;K.sections=n,e.oldFileOfCurrentEmit?K.sections.push(...r):(r.forEach((e=>Sn.assert(lS(e)))),K.sections.push({pos:t,end:y.getTextPos(),kind:"prepend",data:G(e.fileName),texts:r}))}}Q=he();for(const e of t.sourceFiles)Ne(0,e,e);if(K&&t.sourceFiles.length){if(xe(y.getTextPos())){const n=function(e){const t=new Set;let n;for(let r=0;r<e.sourceFiles.length;r++){const i=e.sourceFiles[r];let o,a=0;for(const e of i.statements){if(!_m(e))break;t.has(e.expression.text)||(t.add(e.expression.text),(o||(o=[])).push({pos:e.pos,end:e.end,expression:{pos:e.expression.pos,end:e.expression.end,text:e.expression.text}}),a=a<e.end?e.end:a)}o&&(n||(n=[])).push({file:r,text:i.text.substring(0,a),directives:o})}return n}(t);n&&(K.sources||(K.sources={}),K.sources.prologues=n);const r=function(t){let n;if(0===V||e.noEmitHelpers)return;const r=new Map;for(const e of t.sourceFiles){const t=void 0!==mA(e),i=Ye(e);if(i)for(const e of i)e.scoped||t||r.get(e.name)||(r.set(e.name,!0),(n||(n=[])).push(e.name))}return n}(t);r&&(K.sources||(K.sources={}),K.sources.helpers=r)}}Ee(),y=i}function ke(e,t,n){x=!0;const r=y;Pe(t,n),Bt(e),Rt(e),Ne(0,e,e),Ee(),y=r}function Te(){return v||(v=yv(U))}function Ce(){const e=v.getText();return v.clear(),e}function Ne(e,t,n){n&&Fe(n),qe(e,t,void 0)}function Fe(e){n=e,C=void 0,w=void 0,e&&Ir(e)}function Pe(t,n){t&&e.omitTrailingSemicolon&&(t=vv(t)),S=n,Z=!(y=t)||!S}function Ee(){r=[],i=[],o=[],a=new Set,s=[],c=new Map,l=[],_=0,u=[],d=0,p=[],f=void 0,m=[],g=void 0,n=void 0,C=void 0,w=void 0,Pe(void 0,void 0)}function Le(){return C||(C=as(Sn.checkDefined(n)))}function je(e,t){if(void 0===e)return;const n=ve(e);qe(4,e,t),be(n)}function Me(e){void 0!==e&&qe(2,e,void 0)}function Re(e,t){void 0!==e&&qe(1,e,t)}function Be(e){qe(FN(e)?6:4,e)}function Je(e){H&&4&nf(e)&&(H=!1)}function ze(e){H=e}function qe(e,t,n){F=n;We(0,e,t)(e,t),F=void 0}function Ue(e){return!se&&!$P(e)}function Ve(e){return!(Z||$P(e)||Cg(e)||GP(e)||HP(e))}function We(e,t,n){switch(e){case 0:if(A!==Xq&&(!I||I(n)))return $e;case 1:if(O!==Gq&&(D=O(t,n)||n)!==n)return F&&(D=F(D)),Xe;case 2:if(Ue(n))return ir;case 3:if(Ve(n))return Nr;case 4:return Ke;default:return Sn.assertNever(e)}}function He(e,t,n){return We(e+1,t,n)}function $e(e,t){const n=He(0,e,t);A(e,t,n)}function Ke(e,t){if(null==L||L(t),H){const n=H;Je(t),Ge(e,t),ze(n)}else Ge(e,t);null==j||j(t),F=void 0}function Ge(e,t,r=!0){if(r){const n=Fw(t);if(n)return function(e,t,n){switch(n.kind){case 1:!function(e,t,n){fn(`\${${n.order}:`),Ge(e,t,!1),fn("}")}(e,t,n);break;case 0:!function(e,t,n){Sn.assert(242===t.kind,`A tab stop cannot be attached to a node of kind ${Sn.formatSyntaxKind(t.kind)}.`),Sn.assert(5!==e,"A tab stop cannot be attached to an embedded statement."),fn(`$${n.order}`)}(e,t,n)}}(e,t,n)}if(0===e)return It(mt(t,$P));if(2===e)return nt(mt(t,HN));if(6===e)return Ze(mt(t,FN),!0);if(3===e)return function(e){je(e.name),dn(),cn("in"),dn(),je(e.constraint)}(mt(t,lD));if(5===e)return Sn.assertNode(t,AF),st(!0);if(4===e){switch(t.kind){case 16:case 17:case 18:return Ze(t,!1);case 80:return nt(t);case 81:return rt(t);case 166:return function(e){(function(e){80===e.kind?Re(e):je(e)})(e.left),an("."),je(e.right)}(t);case 167:return function(e){const t=_,n=g;qn(),an("["),Re(e.expression,_e.parenthesizeExpressionOfComputedPropertyName),an("]"),zn(t,n)}(t);case 168:return function(e){qt(e,e.modifiers),je(e.name),e.constraint&&(dn(),cn("extends"),dn(),je(e.constraint));e.default&&(dn(),ln("="),dn(),je(e.default))}(t);case 169:return function(e){zt(e,e.modifiers,!0),je(e.dotDotDotToken),Jt(e.name,_n),je(e.questionToken),e.parent&&324===e.parent.kind&&!e.name?je(e.type):Ut(e.type);Vt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.pos,e,_e.parenthesizeExpressionForDisallowedComma)}(t);case 170:return o=t,an("@"),void Re(o.expression,_e.parenthesizeLeftSideOfAccess);case 171:return function(e){qt(e,e.modifiers),Jt(e.name,pn),je(e.questionToken),Ut(e.type),sn()}(t);case 172:return function(e){zt(e,e.modifiers,!0),je(e.name),je(e.questionToken),je(e.exclamationToken),Ut(e.type),Vt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),sn()}(t);case 173:return function(e){Rn(e),qt(e,e.modifiers),je(e.name),je(e.questionToken),Gt(e,e.typeParameters),Xt(e,e.parameters),Ut(e.type),sn(),Bn(e)}(t);case 174:return function(e){zt(e,e.modifiers,!0),je(e.asteriskToken),je(e.name),je(e.questionToken),yt(e,vt)}(t);case 175:return function(e){cn("static"),bt(e.body)}(t);case 176:return function(e){zt(e,e.modifiers,!1),cn("constructor"),yt(e,vt)}(t);case 177:case 178:return function(e){const t=zt(e,e.modifiers,!0),n=177===e.kind?139:153;_t(n,t,cn,e),dn(),je(e.name),yt(e,vt)}(t);case 179:return function(e){Rn(e),Gt(e,e.typeParameters),Xt(e,e.parameters),Ut(e.type),sn(),Bn(e)}(t);case 180:return function(e){Rn(e),cn("new"),dn(),Gt(e,e.typeParameters),Xt(e,e.parameters),Ut(e.type),sn(),Bn(e)}(t);case 181:return function(e){zt(e,e.modifiers,!1),t=e,n=e.parameters,Zt(t,n,8848),Ut(e.type),sn();var t,n}(t);case 182:return function(e){e.assertsModifier&&(je(e.assertsModifier),dn());je(e.parameterName),e.type&&(dn(),cn("is"),dn(),je(e.type))}(t);case 183:return function(e){je(e.typeName),Kt(e,e.typeArguments)}(t);case 184:return function(e){Rn(e),Gt(e,e.typeParameters),Qt(e,e.parameters),dn(),an("=>"),dn(),je(e.type),Bn(e)}(t);case 185:return function(e){Rn(e),qt(e,e.modifiers),cn("new"),dn(),Gt(e,e.typeParameters),Xt(e,e.parameters),dn(),an("=>"),dn(),je(e.type),Bn(e)}(t);case 186:return function(e){cn("typeof"),dn(),je(e.exprName),Kt(e,e.typeArguments)}(t);case 187:return function(e){zn(0,void 0),an("{");const t=1&tf(e)?768:32897;Zt(e,e.members,524288|t),an("}"),qn()}(t);case 188:return function(e){je(e.elementType,_e.parenthesizeNonArrayTypeOfPostfixType),an("["),an("]")}(t);case 189:return function(e){_t(23,e.pos,an,e);const t=1&tf(e)?528:657;Zt(e,e.elements,524288|t,_e.parenthesizeElementTypeOfTupleType),_t(24,e.elements.end,an,e)}(t);case 190:return function(e){je(e.type,_e.parenthesizeTypeOfOptionalType),an("?")}(t);case 192:return function(e){Zt(e,e.types,516,_e.parenthesizeConstituentTypeOfUnionType)}(t);case 193:return function(e){Zt(e,e.types,520,_e.parenthesizeConstituentTypeOfIntersectionType)}(t);case 194:return function(e){je(e.checkType,_e.parenthesizeCheckTypeOfConditionalType),dn(),cn("extends"),dn(),je(e.extendsType,_e.parenthesizeExtendsTypeOfConditionalType),dn(),an("?"),dn(),je(e.trueType),dn(),an(":"),dn(),je(e.falseType)}(t);case 195:return function(e){cn("infer"),dn(),je(e.typeParameter)}(t);case 196:return function(e){an("("),je(e.type),an(")")}(t);case 233:return ot(t);case 197:return void cn("this");case 198:return function(e){bn(e.operator,cn),dn();const t=148===e.operator?_e.parenthesizeOperandOfReadonlyTypeOperator:_e.parenthesizeOperandOfTypeOperator;je(e.type,t)}(t);case 199:return function(e){je(e.objectType,_e.parenthesizeNonArrayTypeOfPostfixType),an("["),je(e.indexType),an("]")}(t);case 200:return function(e){const t=tf(e);an("{"),1&t?dn():(mn(),gn());e.readonlyToken&&(je(e.readonlyToken),148!==e.readonlyToken.kind&&cn("readonly"),dn());an("["),qe(3,e.typeParameter),e.nameType&&(dn(),cn("as"),dn(),je(e.nameType));an("]"),e.questionToken&&(je(e.questionToken),58!==e.questionToken.kind&&an("?"));an(":"),dn(),je(e.type),sn(),1&t?dn():(mn(),hn());Zt(e,e.members,2),an("}")}(t);case 201:return function(e){Re(e.literal)}(t);case 202:return function(e){je(e.dotDotDotToken),je(e.name),je(e.questionToken),_t(59,e.name.end,an,e),dn(),je(e.type)}(t);case 203:return function(e){je(e.head),Zt(e,e.templateSpans,262144)}(t);case 204:return function(e){je(e.type),je(e.literal)}(t);case 205:return function(e){e.isTypeOf&&(cn("typeof"),dn());if(cn("import"),an("("),je(e.argument),e.attributes){an(","),dn(),an("{"),dn(),cn(132===e.attributes.token?"assert":"with"),an(":"),dn();const t=e.attributes.elements;Zt(e.attributes,t,526226),dn(),an("}")}an(")"),e.qualifier&&(an("."),je(e.qualifier));Kt(e,e.typeArguments)}(t);case 206:return function(e){an("{"),Zt(e,e.elements,525136),an("}")}(t);case 207:return function(e){an("["),Zt(e,e.elements,524880),an("]")}(t);case 208:return function(e){je(e.dotDotDotToken),e.propertyName&&(je(e.propertyName),an(":"),dn());je(e.name),Vt(e.initializer,e.name.end,e,_e.parenthesizeExpressionForDisallowedComma)}(t);case 239:return function(e){Re(e.expression),je(e.literal)}(t);case 240:return void sn();case 241:return function(e){at(e,!e.multiLine&&On(e))}(t);case 243:return function(e){zt(e,e.modifiers,!1),je(e.declarationList),sn()}(t);case 242:return st(!1);case 244:return function(e){Re(e.expression,_e.parenthesizeExpressionOfExpressionStatement),n&&Zf(n)&&!Xy(e.expression)||sn()}(t);case 245:return function(e){const t=_t(101,e.pos,cn,e);dn(),_t(21,t,an,e),Re(e.expression),_t(22,e.expression.end,an,e),$t(e,e.thenStatement),e.elseStatement&&(xn(e,e.thenStatement,e.elseStatement),_t(93,e.thenStatement.end,cn,e),245===e.elseStatement.kind?(dn(),je(e.elseStatement)):$t(e,e.elseStatement))}(t);case 246:return function(e){_t(92,e.pos,cn,e),$t(e,e.statement),PF(e.statement)&&!H?dn():xn(e,e.statement,e.expression);ct(e,e.statement.end),sn()}(t);case 247:return function(e){ct(e,e.pos),$t(e,e.statement)}(t);case 248:return function(e){const t=_t(99,e.pos,cn,e);dn();let n=_t(21,t,an,e);lt(e.initializer),n=_t(27,e.initializer?e.initializer.end:n,an,e),Ht(e.condition),n=_t(27,e.condition?e.condition.end:n,an,e),Ht(e.incrementor),_t(22,e.incrementor?e.incrementor.end:n,an,e),$t(e,e.statement)}(t);case 249:return function(e){const t=_t(99,e.pos,cn,e);dn(),_t(21,t,an,e),lt(e.initializer),dn(),_t(103,e.initializer.end,cn,e),dn(),Re(e.expression),_t(22,e.expression.end,an,e),$t(e,e.statement)}(t);case 250:return function(e){const t=_t(99,e.pos,cn,e);dn(),function(e){e&&(je(e),dn())}(e.awaitModifier),_t(21,t,an,e),lt(e.initializer),dn(),_t(165,e.initializer.end,cn,e),dn(),Re(e.expression),_t(22,e.expression.end,an,e),$t(e,e.statement)}(t);case 251:return function(e){_t(88,e.pos,cn,e),Wt(e.label),sn()}(t);case 252:return function(e){_t(83,e.pos,cn,e),Wt(e.label),sn()}(t);case 253:return function(e){_t(107,e.pos,cn,e),Ht(e.expression&&pt(e.expression),pt),sn()}(t);case 254:return function(e){const t=_t(118,e.pos,cn,e);dn(),_t(21,t,an,e),Re(e.expression),_t(22,e.expression.end,an,e),$t(e,e.statement)}(t);case 255:return function(e){const t=_t(109,e.pos,cn,e);dn(),_t(21,t,an,e),Re(e.expression),_t(22,e.expression.end,an,e),dn(),je(e.caseBlock)}(t);case 256:return function(e){je(e.label),_t(59,e.label.end,an,e),dn(),je(e.statement)}(t);case 257:return function(e){_t(111,e.pos,cn,e),Ht(pt(e.expression),pt),sn()}(t);case 258:return function(e){_t(113,e.pos,cn,e),dn(),je(e.tryBlock),e.catchClause&&(xn(e,e.tryBlock,e.catchClause),je(e.catchClause));e.finallyBlock&&(xn(e,e.catchClause||e.tryBlock,e.finallyBlock),_t(98,(e.catchClause||e.tryBlock).end,cn,e),dn(),je(e.finallyBlock))}(t);case 259:return function(e){yn(89,e.pos,cn),sn()}(t);case 260:return function(e){var t,n,r;je(e.name),je(e.exclamationToken),Ut(e.type),Vt(e.initializer,(null==(t=e.type)?void 0:t.end)??(null==(r=null==(n=e.name.emitNode)?void 0:n.typeNode)?void 0:r.end)??e.name.end,e,_e.parenthesizeExpressionForDisallowedComma)}(t);case 261:return function(e){if(nm(e))cn("await"),dn(),cn("using");else{cn(om(e)?"let":im(e)?"const":rm(e)?"using":"var")}dn(),Zt(e,e.declarations,528)}(t);case 262:return function(e){ht(e)}(t);case 263:return function(e){kt(e)}(t);case 264:return function(e){zn(0,void 0),zt(e,e.modifiers,!1),cn("interface"),dn(),je(e.name),Gt(e,e.typeParameters),Zt(e,e.heritageClauses,512),dn(),an("{"),Zt(e,e.members,129),an("}"),qn()}(t);case 265:return function(e){zt(e,e.modifiers,!1),cn("type"),dn(),je(e.name),Gt(e,e.typeParameters),dn(),an("="),dn(),je(e.type),sn()}(t);case 266:return function(e){zt(e,e.modifiers,!1),cn("enum"),dn(),je(e.name),dn(),an("{"),Zt(e,e.members,145),an("}")}(t);case 267:return function(e){zt(e,e.modifiers,!1),2048&~e.flags&&(cn(32&e.flags?"namespace":"module"),dn());je(e.name);let t=e.body;if(!t)return sn();for(;t&&nP(t);)an("."),je(t.name),t=t.body;dn(),je(t)}(t);case 268:return function(e){Rn(e),b(e.statements,Vn),at(e,On(e)),Bn(e)}(t);case 269:return function(e){_t(19,e.pos,an,e),Zt(e,e.clauses,129),_t(20,e.clauses.end,an,e,!0)}(t);case 270:return function(e){let t=_t(95,e.pos,cn,e);dn(),t=_t(130,t,cn,e),dn(),t=_t(145,t,cn,e),dn(),je(e.name),sn()}(t);case 271:return function(e){zt(e,e.modifiers,!1),_t(102,e.modifiers?e.modifiers.end:e.pos,cn,e),dn(),e.isTypeOnly&&(_t(156,e.pos,cn,e),dn());je(e.name),dn(),_t(64,e.name.end,an,e),dn(),function(e){80===e.kind?Re(e):je(e)}(e.moduleReference),sn()}(t);case 272:return function(e){zt(e,e.modifiers,!1),_t(102,e.modifiers?e.modifiers.end:e.pos,cn,e),dn(),e.importClause&&(je(e.importClause),dn(),_t(161,e.importClause.end,cn,e),dn());Re(e.moduleSpecifier),e.attributes&&Wt(e.attributes);sn()}(t);case 273:return function(e){e.isTypeOnly&&(_t(156,e.pos,cn,e),dn());je(e.name),e.name&&e.namedBindings&&(_t(28,e.name.end,an,e),dn());je(e.namedBindings)}(t);case 274:return function(e){const t=_t(42,e.pos,an,e);dn(),_t(130,t,cn,e),dn(),je(e.name)}(t);case 280:return function(e){const t=_t(42,e.pos,an,e);dn(),_t(130,t,cn,e),dn(),je(e.name)}(t);case 275:case 279:return function(e){Tt(e)}(t);case 276:case 281:return function(e){Ct(e)}(t);case 277:return function(e){const t=_t(95,e.pos,cn,e);dn(),e.isExportEquals?_t(64,t,ln,e):_t(90,t,cn,e);dn(),Re(e.expression,e.isExportEquals?_e.getParenthesizeRightSideOfBinaryForOperator(64):_e.parenthesizeExpressionOfExportDefault),sn()}(t);case 278:return function(e){zt(e,e.modifiers,!1);let t=_t(95,e.pos,cn,e);dn(),e.isTypeOnly&&(t=_t(156,t,cn,e),dn());e.exportClause?je(e.exportClause):t=_t(42,t,an,e);if(e.moduleSpecifier){dn();_t(161,e.exportClause?e.exportClause.end:t,cn,e),dn(),Re(e.moduleSpecifier)}e.attributes&&Wt(e.attributes);sn()}(t);case 300:return function(e){_t(e.token,e.pos,cn,e),dn();const t=e.elements;Zt(e,t,526226)}(t);case 301:return function(e){je(e.name),an(":"),dn();const t=e.value;if(0==(1024&tf(t))){br(pw(t).pos)}je(t)}(t);case 282:case 326:case 337:case 338:case 340:case 341:case 342:case 343:case 359:return;case 283:return function(e){cn("require"),an("("),Re(e.expression),an(")")}(t);case 12:return function(e){y.writeLiteral(e.text)}(t);case 286:case 289:return function(e){if(an("<"),DP(e)){const t=Pn(e.tagName,e);wt(e.tagName),Kt(e,e.typeArguments),e.attributes.properties&&e.attributes.properties.length>0&&dn(),je(e.attributes),En(e.attributes,e),Cn(t)}an(">")}(t);case 287:case 290:return function(e){an("</"),FP(e)&&wt(e.tagName);an(">")}(t);case 291:return function(e){je(e.name),function(e,t,n,r){n&&(t(e),r(n))}("=",an,e.initializer,Be)}(t);case 292:return function(e){Zt(e,e.properties,262656)}(t);case 293:return function(e){an("{..."),Re(e.expression),an("}")}(t);case 294:return function(e){var t;if(e.expression||!se&&!Xy(e)&&(r=e.pos,function(e){let t=!1;return Cs((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r)||function(e){let t=!1;return Ts((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r))){const r=n&&!Xy(e)&&_s(n,e.pos).line!==_s(n,e.end).line;r&&y.increaseIndent();const i=_t(19,e.pos,an,e);je(e.dotDotDotToken),Re(e.expression),_t(20,(null==(t=e.expression)?void 0:t.end)||i,an,e),r&&y.decreaseIndent()}var r}(t);case 295:return function(e){Me(e.namespace),an(":"),Me(e.name)}(t);case 296:return function(e){_t(84,e.pos,cn,e),dn(),Re(e.expression,_e.parenthesizeExpressionForDisallowedComma),Nt(e,e.statements,e.expression.end)}(t);case 297:return function(e){const t=_t(90,e.pos,cn,e);Nt(e,e.statements,t)}(t);case 298:return function(e){dn(),bn(e.token,cn),dn(),Zt(e,e.types,528)}(t);case 299:return function(e){const t=_t(85,e.pos,cn,e);dn(),e.variableDeclaration&&(_t(21,t,an,e),je(e.variableDeclaration),_t(22,e.variableDeclaration.end,an,e),dn());je(e.block)}(t);case 303:return function(e){je(e.name),an(":"),dn();const t=e.initializer;if(0==(1024&tf(t))){br(pw(t).pos)}Re(t,_e.parenthesizeExpressionForDisallowedComma)}(t);case 304:return function(e){je(e.name),e.objectAssignmentInitializer&&(dn(),an("="),dn(),Re(e.objectAssignmentInitializer,_e.parenthesizeExpressionForDisallowedComma))}(t);case 305:return function(e){e.expression&&(_t(26,e.pos,an,e),Re(e.expression,_e.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){je(e.name),Vt(e.initializer,e.name.end,e,_e.parenthesizeExpressionForDisallowedComma)}(t);case 307:return et(t);case 314:case 308:return function(e){for(const t of e.texts)mn(),je(t)}(t);case 309:case 310:return function(e){const t=he();et(e),K&&ye(t,y.getTextPos(),309===e.kind?"text":"internal")}(t);case 311:return function(e){const t=he();if(et(e),K){const n=tt(e.section);n.pos=t,n.end=y.getTextPos(),K.sections.push(n)}}(t);case 312:return It(t);case 313:return Sn.fail("Bundles should be printed using printBundle");case 315:return Sn.fail("InputFiles should not be printed");case 316:return At(t);case 317:return function(e){dn(),an("{"),je(e.name),an("}")}(t);case 319:return an("*");case 320:return an("?");case 321:return function(e){an("?"),je(e.type)}(t);case 322:return function(e){an("!"),je(e.type)}(t);case 323:return function(e){je(e.type),an("=")}(t);case 324:return function(e){cn("function"),Xt(e,e.parameters),an(":"),je(e.type)}(t);case 191:case 325:return function(e){an("..."),je(e.type)}(t);case 327:return function(e){if($("/**"),e.comment){const t=Sl(e.comment);if(t){const e=t.split(/\r\n?|\n/g);for(const t of e)mn(),dn(),an("*"),dn(),$(t)}}e.tags&&(1!==e.tags.length||351!==e.tags[0].kind||e.comment?Zt(e,e.tags,33):(dn(),je(e.tags[0])));dn(),$("*/")}(t);case 329:return Dt(t);case 330:return Ft(t);case 334:case 339:case 344:return Pt((i=t).tagName),void Et(i.comment);case 335:case 336:return function(e){Pt(e.tagName),dn(),an("{"),je(e.class),an("}"),Et(e.comment)}(t);case 345:return function(e){Pt(e.tagName),e.name&&(dn(),je(e.name));Et(e.comment),Ft(e.typeExpression)}(t);case 346:return function(e){Et(e.comment),Ft(e.typeExpression)}(t);case 348:case 355:return function(e){Pt(e.tagName),At(e.typeExpression),dn(),e.isBracketed&&an("[");je(e.name),e.isBracketed&&an("]");Et(e.comment)}(t);case 347:case 349:case 350:case 351:case 356:case 357:return function(e){Pt(e.tagName),At(e.typeExpression),Et(e.comment)}(t);case 352:return function(e){Pt(e.tagName),At(e.constraint),dn(),Zt(e,e.typeParameters,528),Et(e.comment)}(t);case 353:return function(e){Pt(e.tagName),e.typeExpression&&(316===e.typeExpression.kind?At(e.typeExpression):(dn(),an("{"),$("Object"),e.typeExpression.isArrayType&&(an("["),an("]")),an("}")));e.fullName&&(dn(),je(e.fullName));Et(e.comment),e.typeExpression&&329===e.typeExpression.kind&&Dt(e.typeExpression)}(t);case 354:return function(e){Pt(e.tagName),je(e.name),Et(e.comment)}(t)}if(au(t)&&(e=1,O!==Gq)){const n=O(e,t)||t;n!==t&&(t=n,F&&(t=F(t)))}}var i,o;if(1===e)switch(t.kind){case 9:case 10:return function(e){Ze(e,!1)}(t);case 11:case 14:case 15:return Ze(t,!1);case 80:return nt(t);case 81:return rt(t);case 209:return function(e){const t=e.elements,n=e.multiLine?65536:0;en(e,t,8914|n,_e.parenthesizeExpressionForDisallowedComma)}(t);case 210:return function(e){zn(0,void 0),b(e.properties,Wn);const t=131072&tf(e);t&&gn();const r=e.multiLine?65536:0,i=n&&n.languageVersion>=1&&!Zf(n)?64:0;Zt(e,e.properties,526226|i|r),t&&hn();qn()}(t);case 211:return function(e){Re(e.expression,_e.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||FT(AC.createToken(25),e.expression.end,e.name.pos),n=In(e,e.expression,t),r=In(e,t,e.name);Tn(n,!1);const i=29!==t.kind&&function(e){if(NN(e=jl(e))){const t=Mn(e,!0,!1);return!(448&e.numericLiteralFlags||t.includes(ts(25))||t.includes(String.fromCharCode(69))||t.includes(String.fromCharCode(101)))}if(sS(e)){const t=Sw(e);return"number"==typeof t&&isFinite(t)&&t>=0&&Math.floor(t)===t}}(e.expression)&&!y.hasTrailingComment()&&!y.hasTrailingWhitespace();i&&an(".");e.questionDotToken?je(t):_t(t.kind,e.expression.end,an,e);Tn(r,!1),je(e.name),Cn(n,r)}(t);case 212:return function(e){Re(e.expression,_e.parenthesizeLeftSideOfAccess),je(e.questionDotToken),_t(23,e.expression.end,an,e),Re(e.argumentExpression),_t(24,e.argumentExpression.end,an,e)}(t);case 213:return function(e){const t=16&nf(e);t&&(an("("),rn("0"),an(","),dn());Re(e.expression,_e.parenthesizeLeftSideOfAccess),t&&an(")");je(e.questionDotToken),Kt(e,e.typeArguments),en(e,e.arguments,2576,_e.parenthesizeExpressionForDisallowedComma)}(t);case 214:return function(e){_t(105,e.pos,cn,e),dn(),Re(e.expression,_e.parenthesizeExpressionOfNew),Kt(e,e.typeArguments),en(e,e.arguments,18960,_e.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){const t=16&nf(e);t&&(an("("),rn("0"),an(","),dn());Re(e.tag,_e.parenthesizeLeftSideOfAccess),t&&an(")");Kt(e,e.typeArguments),dn(),Re(e.template)}(t);case 216:return function(e){an("<"),je(e.type),an(">"),Re(e.expression,_e.parenthesizeOperandOfPrefixUnary)}(t);case 217:return function(e){const t=_t(21,e.pos,an,e),n=Pn(e.expression,e);Re(e.expression,void 0),En(e.expression,e),Cn(n),_t(22,e.expression?e.expression.end:t,an,e)}(t);case 218:return function(e){Hn(e.name),ht(e)}(t);case 219:return function(e){qt(e,e.modifiers),yt(e,it)}(t);case 220:return function(e){_t(91,e.pos,cn,e),dn(),Re(e.expression,_e.parenthesizeOperandOfPrefixUnary)}(t);case 221:return function(e){_t(114,e.pos,cn,e),dn(),Re(e.expression,_e.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){_t(116,e.pos,cn,e),dn(),Re(e.expression,_e.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){_t(135,e.pos,cn,e),dn(),Re(e.expression,_e.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){bn(e.operator,ln),function(e){const t=e.operand;return 224===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&dn();Re(e.operand,_e.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){Re(e.operand,_e.parenthesizeOperandOfPostfixUnary),bn(e.operator,ln)}(t);case 226:return de(t);case 227:return function(e){const t=In(e,e.condition,e.questionToken),n=In(e,e.questionToken,e.whenTrue),r=In(e,e.whenTrue,e.colonToken),i=In(e,e.colonToken,e.whenFalse);Re(e.condition,_e.parenthesizeConditionOfConditionalExpression),Tn(t,!0),je(e.questionToken),Tn(n,!0),Re(e.whenTrue,_e.parenthesizeBranchOfConditionalExpression),Cn(t,n),Tn(r,!0),je(e.colonToken),Tn(i,!0),Re(e.whenFalse,_e.parenthesizeBranchOfConditionalExpression),Cn(r,i)}(t);case 228:return function(e){je(e.head),Zt(e,e.templateSpans,262144)}(t);case 229:return function(e){_t(127,e.pos,cn,e),je(e.asteriskToken),Ht(e.expression&&pt(e.expression),gt)}(t);case 230:return function(e){_t(26,e.pos,an,e),Re(e.expression,_e.parenthesizeExpressionForDisallowedComma)}(t);case 231:return function(e){Hn(e.name),kt(e)}(t);case 232:case 282:case 359:return;case 234:return function(e){Re(e.expression,void 0),e.type&&(dn(),cn("as"),dn(),je(e.type))}(t);case 235:return function(e){Re(e.expression,_e.parenthesizeLeftSideOfAccess),ln("!")}(t);case 233:return ot(t);case 238:return function(e){Re(e.expression,void 0),e.type&&(dn(),cn("satisfies"),dn(),je(e.type))}(t);case 236:return function(e){yn(e.keywordToken,e.pos,an),an("."),je(e.name)}(t);case 237:return Sn.fail("SyntheticExpression should never be printed.");case 284:return function(e){je(e.openingElement),Zt(e,e.children,262144),je(e.closingElement)}(t);case 285:return function(e){an("<"),wt(e.tagName),Kt(e,e.typeArguments),dn(),je(e.attributes),an("/>")}(t);case 288:return function(e){je(e.openingFragment),Zt(e,e.children,262144),je(e.closingFragment)}(t);case 358:return Sn.fail("SyntaxList should not be printed");case 360:return function(e){const t=tf(e);1024&t||e.pos===e.expression.pos||br(e.expression.pos);Re(e.expression),2048&t||e.end===e.expression.end||yr(e.expression.end)}(t);case 361:return function(e){en(e,e.elements,528,void 0)}(t);case 362:return Sn.fail("SyntheticReferenceExpression should not be printed")}return hy(t.kind)?vn(t,cn):Wl(t.kind)?vn(t,an):void Sn.fail(`Unhandled SyntaxKind: ${Sn.formatSyntaxKind(t.kind)}.`)}function Xe(e,t){const n=He(1,e,t);Sn.assertIsDefined(D),t=D,D=void 0,n(e,t)}function Qe(t){let r=!1;const i=313===t.kind?t:void 0;if(i&&0===V)return;const o=i?i.prepends.length:0,a=i?i.sourceFiles.length+o:1;for(let s=0;s<a;s++){const a=i?s<o?i.prepends[s]:i.sourceFiles[s-o]:t,c=$P(a)?a:GP(a)?void 0:n,l=e.noEmitHelpers||!!c&&gA(c),_=($P(a)||GP(a))&&!x,u=GP(a)?a.helpers:Ye(a);if(u)for(const e of u){if(e.scoped){if(i)continue}else{if(l)continue;if(_){if(W.get(e.name))continue;W.set(e.name,!0)}}const t=he();"string"==typeof e.text?kn(e.text):kn(e.text(er)),K&&K.sections.push({pos:t,end:y.getTextPos(),kind:"emitHelpers",data:e.name}),r=!0}}return r}function Ye(e){const t=Nw(e);return t&&we(t,SN)}function Ze(t,n){const r=Mn(t,e.neverAsciiEscape,n);var i;!e.sourceMap&&!e.inlineSourceMap||11!==t.kind&&!Ql(t.kind)?(i=r,y.writeStringLiteral(i)):rn(r)}function et(e){y.rawWrite(e.parent.text.substring(e.pos,e.end))}function nt(e){(e.symbol?on:$)(jn(e,!1),e.symbol),Zt(e,Lw(e),53776)}function rt(e){$(jn(e,!1))}function it(e){Gt(e,e.typeParameters),Qt(e,e.parameters),Ut(e.type),dn(),je(e.equalsGreaterThanToken)}function ot(e){Re(e.expression,_e.parenthesizeLeftSideOfAccess),Kt(e,e.typeArguments)}function at(e,t){_t(19,e.pos,an,e);const n=t||1&tf(e)?768:129;Zt(e,e.statements,n),_t(20,e.statements.end,an,e,!!(1&n))}function st(e){e?an(";"):sn()}function ct(e,t){const n=_t(117,t,cn,e);dn(),_t(21,n,an,e),Re(e.expression),_t(22,e.expression.end,an,e)}function lt(e){void 0!==e&&(261===e.kind?je(e):Re(e))}function _t(e,t,r,i,o){const a=Cc(i),s=a&&a.kind===i.kind,c=t;if(s&&n&&(t=ys(n.text,t)),s&&i.pos!==c){const e=o&&n&&!Ex(c,t,n);e&&gn(),yr(c),e&&hn()}if(t=q||19!==e&&20!==e?bn(e,r,t):yn(e,t,r,i),s&&i.end!==t){const e=294===i.kind;br(t,!e,e)}return t}function ut(e){return 2===e.kind||!!e.hasTrailingNewLine}function dt(e){return!!n&&(!!re(Fs(n.text,e.pos),ut)||(!!re(mw(e),ut)||!!wF(e)&&(!(e.pos===e.expression.pos||!re(Ps(n.text,e.expression.pos),ut))||dt(e.expression))))}function pt(e){if(!se&&wF(e)&&dt(e)){const t=Cc(e);if(t&&iF(t)){const n=AC.createParenthesizedExpression(e.expression);return YC(n,e),cI(n,t),n}return AC.createParenthesizedExpression(e)}return e}function gt(e){return pt(_e.parenthesizeExpressionForDisallowedComma(e))}function ht(e){zt(e,e.modifiers,!1),cn("function"),je(e.asteriskToken),dn(),Me(e.name),yt(e,vt)}function yt(e,t){const n=e.body;if(n)if(PF(n)){const r=131072&tf(e);r&&gn(),Rn(e),b(e.parameters,Vn),Vn(e.body),t(e),bt(n),Bn(e),r&&hn()}else t(e),dn(),Re(n,_e.parenthesizeConciseBodyOfArrowFunction);else t(e),sn()}function vt(e){Gt(e,e.typeParameters),Xt(e,e.parameters),Ut(e.type)}function bt(e){null==L||L(e),dn(),an("{"),gn();const t=function(e){if(1&tf(e))return!0;if(e.multiLine)return!1;if(!Xy(e)&&n&&!kx(e,n))return!1;if(wn(e,De(e.statements),2)||Dn(e,Ae(e.statements),2,e.statements))return!1;let t;for(const n of e.statements){if(Nn(t,n,2)>0)return!1;t=n}return!0}(e)?xt:St;ur(e,e.statements,t),hn(),yn(20,e.statements.end,an,e),null==j||j(e)}function xt(e){St(e,!0)}function St(e,t){const n=jt(e.statements),r=y.getTextPos();Qe(e),0===n&&r===y.getTextPos()&&t?(hn(),Zt(e,e.statements,768),gn()):Zt(e,e.statements,1,void 0,n)}function kt(e){zn(0,void 0),b(e.members,Wn),zt(e,e.modifiers,!0),_t(86,bx(e).pos,cn,e),e.name&&(dn(),Me(e.name));const t=131072&tf(e);t&&gn(),Gt(e,e.typeParameters),Zt(e,e.heritageClauses,0),dn(),an("{"),Zt(e,e.members,129),an("}"),t&&hn(),qn()}function Tt(e){an("{"),Zt(e,e.elements,525136),an("}")}function Ct(e){e.isTypeOnly&&(cn("type"),dn()),e.propertyName&&(je(e.propertyName),dn(),_t(130,e.propertyName.end,cn,e),dn()),je(e.name)}function wt(e){80===e.kind?Re(e):je(e)}function Nt(e,t,r){let i=163969;1===t.length&&(!n||Xy(e)||Xy(t[0])||Tx(e,t[0],n))?(yn(59,r,an,e),dn(),i&=-130):_t(59,r,an,e),Zt(e,t,i)}function Dt(e){Zt(e,AC.createNodeArray(e.jsDocPropertyTags),33)}function Ft(e){e.typeParameters&&Zt(e,AC.createNodeArray(e.typeParameters),33),e.parameters&&Zt(e,AC.createNodeArray(e.parameters),33),e.type&&(mn(),dn(),an("*"),dn(),je(e.type))}function Pt(e){an("@"),je(e)}function Et(e){const t=Sl(e);t&&(dn(),$(t))}function At(e){e&&(dn(),an("{"),je(e.type),an("}"))}function It(e){mn();const t=e.statements;0===t.length||!_m(t[0])||Xy(t[0])?ur(e,t,Lt):Lt(e)}function Ot(e,t,r,i){if(e){const e=y.getTextPos();un('/// <reference no-default-lib="true"/>'),K&&K.sections.push({pos:e,end:y.getTextPos(),kind:"no-default-lib"}),mn()}if(n&&n.moduleName&&(un(`/// <amd-module name="${n.moduleName}" />`),mn()),n&&n.amdDependencies)for(const e of n.amdDependencies)e.name?un(`/// <amd-dependency name="${e.name}" path="${e.path}" />`):un(`/// <amd-dependency path="${e.path}" />`),mn();for(const e of t){const t=y.getTextPos();un(`/// <reference path="${e.fileName}" />`),K&&K.sections.push({pos:t,end:y.getTextPos(),kind:"reference",data:e.fileName}),mn()}for(const e of r){const t=y.getTextPos(),r=e.resolutionMode&&e.resolutionMode!==(null==n?void 0:n.impliedNodeFormat)?`resolution-mode="${99===e.resolutionMode?"import":"require"}"`:"";un(`/// <reference types="${e.fileName}" ${r}/>`),K&&K.sections.push({pos:t,end:y.getTextPos(),kind:e.resolutionMode?99===e.resolutionMode?"type-import":"type-require":"type",data:e.fileName}),mn()}for(const e of i){const t=y.getTextPos();un(`/// <reference lib="${e.fileName}" />`),K&&K.sections.push({pos:t,end:y.getTextPos(),kind:"lib",data:e.fileName}),mn()}}function Lt(e){const t=e.statements;Rn(e),b(e.statements,Vn),Qe(e);const n=P(t,(e=>!_m(e)));!function(e){e.isDeclarationFile&&Ot(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(e),Zt(e,t,1,void 0,-1===n?t.length:n),Bn(e)}function jt(e,t,n,r){let i=!!t;for(let o=0;o<e.length;o++){const a=e[o];if(!_m(a))return o;if(!n||!n.has(a.expression.text)){i&&(i=!1,Fe(t)),mn();const e=y.getTextPos();je(a),r&&K&&K.sections.push({pos:e,end:y.getTextPos(),kind:"prologue",data:a.expression.text}),n&&n.add(a.expression.text)}}return e.length}function Mt(e,t){for(const n of e)if(!t.has(n.data)){mn();const e=y.getTextPos();je(n),K&&K.sections.push({pos:e,end:y.getTextPos(),kind:"prologue",data:n.data}),t&&t.add(n.data)}}function Rt(e){if($P(e))jt(e.statements,e);else{const t=new Set;for(const n of e.prepends)Mt(n.prologues,t);for(const n of e.sourceFiles)jt(n.statements,n,t,!0);Fe(void 0)}}function Bt(e){if($P(e)||GP(e)){const t=Es(e.text);if(t)return un(t),mn(),!0}else{for(const t of e.prepends)if(Sn.assertNode(t,GP),Bt(t))return!0;for(const t of e.sourceFiles)if(Bt(t))return!0}}function Jt(e,t){if(!e)return;const n=$;$=t,je(e),$=n}function zt(e,t,n){if(null==t?void 0:t.length){if(N(t,f_))return qt(e,t);if(N(t,uD))return n?function(e,t){Zt(e,t,2146305);const n=Ae(t);return n&&!iT(n.end)?n.end:e.pos}(e,t):e.pos;let r,i;null==M||M(t);let o,a=0,s=0;for(;a<t.length;){for(;s<t.length;){if(o=t[s],i=uD(o)?"decorators":"modifiers",void 0===r)r=i;else if(i!==r)break;s++}const c={pos:-1,end:-1};0===a&&(c.pos=t.pos),s===t.length-1&&(c.end=t.end),("modifiers"===r||n)&&nn(je,e,t,"modifiers"===r?2359808:2146305,void 0,a,s-a,!1,c),a=s,r=i,s++}if(null==R||R(t),o&&!iT(o.end))return o.end}return e.pos}function qt(e,t){Zt(e,t,2359808);const n=Ae(t);return n&&!iT(n.end)?n.end:e.pos}function Ut(e){e&&(an(":"),dn(),je(e))}function Vt(e,t,n,r){e&&(dn(),_t(64,t,ln,n),dn(),Re(e,r))}function Wt(e){e&&(dn(),je(e))}function Ht(e,t){e&&(dn(),Re(e,t))}function $t(e,t){PF(t)||1&tf(e)||H&&!wn(e,t,0)?(dn(),je(t)):(mn(),gn(),AF(t)?qe(5,t):je(t),hn())}function Kt(e,t){Zt(e,t,53776,ue)}function Gt(e,t){if(y_(e)&&e.typeArguments)return Kt(e,e.typeArguments);Zt(e,t,53776)}function Xt(e,t){Zt(e,t,2576)}function Qt(e,t){!function(e,t){const n=Oe(t);return n&&n.pos===e.pos&&aF(e)&&!e.type&&!re(e.modifiers)&&!re(e.typeParameters)&&!re(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&HN(n.name)}(e,t)?Xt(e,t):Zt(e,t,528)}function Yt(e){switch(60&e){case 0:break;case 16:an(",");break;case 4:dn(),an("|");break;case 32:dn(),an("*"),dn();break;case 8:dn(),an("&")}}function Zt(e,t,n,r,i,o){tn(je,e,t,n|(e&&2&tf(e)?65536:0),r,i,o)}function en(e,t,n,r,i,o){tn(Re,e,t,n,r,i,o)}function tn(e,t,r,i,o,a=0,s=(r?r.length-a:0)){if(void 0===r&&16384&i)return;const c=void 0===r||a>=r.length||0===s;if(c&&32768&i)return null==M||M(r),void(null==R||R(r));15360&i&&(an(function(e){return Yq[15360&e][0]}(i)),c&&r&&br(r.pos,!0)),null==M||M(r),c?!(1&i)||H&&(!t||n&&kx(t,n))?256&i&&!(524288&i)&&dn():mn():nn(e,t,r,i,o,a,s,r.hasTrailingComma,r),null==R||R(r),15360&i&&(c&&r&&yr(r.end),an(function(e){return Yq[15360&e][1]}(i)))}function nn(e,t,n,r,i,o,a,s,c){const l=0==(262144&r);let _=l;const u=wn(t,n[o],r);u?(mn(u),_=!1):256&r&&dn(),128&r&&gn();const d=function(e,t){return 1===e.length?FU:"object"==typeof t?PU:EU}(e,i);let p,f,m=!1;for(let s=0;s<a;s++){const a=n[o+s];if(32&r)mn(),Yt(r);else if(p){if(60&r&&p.end!==(t?t.end:-1)){2048&tf(p)||yr(p.end)}Yt(r),be(f);const e=Nn(p,a,r);if(e>0){if(0==(131&r)&&(gn(),m=!0),_&&60&r&&!iT(a.pos)){br(pw(a).pos,!!(512&r),!0)}mn(e),_=!1}else p&&512&r&&dn()}if(f=ve(a),_){br(pw(a).pos)}else _=l;h=a.pos,d(a,e,i,s),m&&(hn(),m=!1),p=a}const g=p?tf(p):0,y=se||!!(2048&g),v=s&&64&r&&16&r;v&&(p&&!y?_t(28,p.end,an,p):an(",")),p&&(t?t.end:-1)!==p.end&&60&r&&!y&&yr(v&&(null==c?void 0:c.end)?c.end:p.end),128&r&&hn(),be(f);const b=Dn(t,n[o+a-1],r,c);b?mn(b):2097408&r&&dn()}function rn(e){y.writeLiteral(e)}function on(e,t){y.writeSymbol(e,t)}function an(e){y.writePunctuation(e)}function sn(){y.writeTrailingSemicolon(";")}function cn(e){y.writeKeyword(e)}function ln(e){y.writeOperator(e)}function _n(e){y.writeParameter(e)}function un(e){y.writeComment(e)}function dn(){y.writeSpace(" ")}function pn(e){y.writeProperty(e)}function fn(e){y.nonEscapingWrite?y.nonEscapingWrite(e):y.write(e)}function mn(e=1){for(let t=0;t<e;t++)y.writeLine(t>0)}function gn(){y.increaseIndent()}function hn(){y.decreaseIndent()}function yn(e,t,n,r){return Z?bn(e,n,t):function(e,t,n,r,i){if(Z||e&&Cg(e))return i(t,n,r);const o=e&&e.emitNode,a=o&&o.flags||0,s=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],c=s&&s.source||k;r=Pr(c,s?s.pos:r),0==(256&a)&&r>=0&&Ar(c,r);r=i(t,n,r),s&&(r=s.end);0==(512&a)&&r>=0&&Ar(c,r);return r}(r,e,n,t,bn)}function vn(e,t){B&&B(e),t(ts(e.kind)),J&&J(e)}function bn(e,t,n){const r=ts(e);return t(r),n<0?n:n+r.length}function xn(e,t,n){if(1&tf(e))dn();else if(H){const r=In(e,t,n);r?mn(r):dn()}else mn()}function kn(e){const t=e.split(/\r\n?|\n/g),n=Xu(t);for(const e of t){const t=n?e.slice(n):e;t.length&&(mn(),$(t))}}function Tn(e,t){e?(gn(),mn(e)):t&&dn()}function Cn(e,t){e&&hn(),t&&hn()}function wn(e,t,r){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&kx(e,n)?0:1;if(t.pos===h)return 0;if(12===t.kind)return 0;if(n&&e&&!iT(e.pos)&&!Xy(t)&&(!t.parent||Sc(t.parent)===Sc(e)))return H?Fn((r=>Ix(t.pos,e.pos,n,r))):Tx(e,t,n)?0:1;if(An(t,r))return 1}return 1&r?1:0}function Nn(e,t,r){if(2&r||H){if(void 0===e||void 0===t)return 0;if(12===t.kind)return 0;if(n&&!Xy(e)&&!Xy(t))return H&&function(e,t){if(t.pos<e.end)return!1;e=Sc(e),t=Sc(t);const n=e.parent;if(!n||n!==t.parent)return!1;const r=BT(e),i=null==r?void 0:r.indexOf(e);return void 0!==i&&i>-1&&r.indexOf(t)===i+1}(e,t)?Fn((r=>Dx(e,t,n,r))):!H&&(o=t,(i=Sc(i=e)).parent&&i.parent===Sc(o).parent)?Nx(e,t,n)?0:1:65536&r?1:0;if(An(e,r)||An(t,r))return 1}else if(uw(t))return 1;var i,o;return 1&r?1:0}function Dn(e,t,r,i){if(2&r||H){if(65536&r)return 1;if(void 0===t)return!e||n&&kx(e,n)?0:1;if(n&&e&&!iT(e.pos)&&!Xy(t)&&(!t.parent||t.parent===e)){if(H){const r=i&&!iT(i.end)?i.end:t.end;return Fn((t=>Ox(r,e.end,n,t)))}return Cx(e,t,n)?0:1}if(An(t,r))return 1}return 1&r&&!(131072&r)?1:0}function Fn(e){Sn.assert(!!H);const t=e(!0);return 0===t?e(!1):t}function Pn(e,t){const n=H&&wn(t,e,0);return n&&Tn(n,!1),!!n}function En(e,t){const n=H&&Dn(t,e,0,void 0);n&&mn(n)}function An(e,t){if(Xy(e)){const n=uw(e);return void 0===n?0!=(65536&t):n}return 0!=(65536&t)}function In(e,t,r){return 262144&tf(e)?0:(e=Ln(e),t=Ln(t),uw(r=Ln(r))?1:!n||Xy(e)||Xy(t)||Xy(r)?0:H?Fn((e=>Dx(t,r,n,e))):Nx(t,r,n)?0:1)}function On(e){return 0===e.statements.length&&(!n||Nx(e,e,n))}function Ln(e){for(;217===e.kind&&Xy(e);)e=e.expression;return e}function jn(e,t){if(a_(e)||s_(e))return $n(e);if(FN(e)&&e.textSourceNode)return jn(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!Xy(e);if(Cl(e)){if(!i||Cp(e)!==Sc(r))return Dc(e)}else if(MP(e)){if(!i||Cp(e)!==Sc(r))return dC(e)}else if(Sn.assertNode(e,Gl),!i)return e.text;return Gp(r,e,t)}function Mn(t,r,i){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(HN(e)||$N(e)||NN(e)||MP(e)){const n=NN(e)?e.text:jn(e);return i?`"${pv(n)}"`:r||16777216&tf(t)?`"${_v(n)}"`:`"${uv(n)}"`}return Mn(e,r,i)}const o=(r?1:0)|(i?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&99===e.target?8:0);return rf(t,n,o)}function Rn(e){e&&1048576&tf(e)||(u.push(d),d=0,s.push(c),c=void 0,p.push(f))}function Bn(e){e&&1048576&tf(e)||(d=u.pop(),c=s.pop(),f=p.pop())}function Jn(e){f&&f!==Ae(p)||(f=new Set),f.add(e)}function zn(e,t){l.push(_),_=e,m.push(f),g=t}function qn(){_=l.pop(),g=m.pop()}function Un(e){g&&g!==Ae(m)||(g=new Set),g.add(e)}function Vn(e){if(e)switch(e.kind){case 241:case 296:case 297:b(e.statements,Vn);break;case 256:case 254:case 246:case 247:Vn(e.statement);break;case 245:Vn(e.thenStatement),Vn(e.elseStatement);break;case 248:case 250:case 249:Vn(e.initializer),Vn(e.statement);break;case 255:Vn(e.caseBlock);break;case 269:b(e.clauses,Vn);break;case 258:Vn(e.tryBlock),Vn(e.catchClause),Vn(e.finallyBlock);break;case 299:Vn(e.variableDeclaration),Vn(e.block);break;case 243:Vn(e.declarationList);break;case 261:b(e.declarations,Vn);break;case 260:case 169:case 208:case 263:case 274:case 280:Hn(e.name);break;case 262:Hn(e.name),1048576&tf(e)&&(b(e.parameters,Vn),Vn(e.body));break;case 206:case 207:case 275:b(e.elements,Vn);break;case 272:Vn(e.importClause);break;case 273:Hn(e.name),Vn(e.namedBindings);break;case 276:Hn(e.propertyName||e.name)}}function Wn(e){if(e)switch(e.kind){case 303:case 304:case 172:case 174:case 177:case 178:Hn(e.name)}}function Hn(e){e&&(a_(e)||s_(e)?$n(e):R_(e)&&Vn(e))}function $n(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return Kn(XA(e),$N(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=QA(t.prefix,$n),r=QA(t.suffix);switch(7&t.flags){case 1:return Yn(0,!!(8&t.flags),$N(e),n,r);case 2:return Sn.assertNode(e,HN),Yn(268435456,!!(8&t.flags),!1,n,r);case 3:return Zn(Dc(e),32&t.flags?Xn:Gn,!!(16&t.flags),!!(8&t.flags),$N(e),n,r)}return Sn.fail(`Unsupported GeneratedIdentifierKind: ${Sn.formatEnum(7&t.flags,Rr,!0)}.`)}(e))}}function Kn(e,t,n,o,a){const s=PB(e),c=t?i:r;return c[s]||(c[s]=rr(e,t,n??0,QA(o,$n),QA(a)))}function Gn(e,t){return Xn(e,t)&&!function(e,t){return t?!!(null==g?void 0:g.has(e)):!!(null==f?void 0:f.has(e))}(e,t)&&!a.has(e)}function Xn(e,t){return!n||Ap(n,e,E)}function Qn(e,t){switch(e){case"":d=t;break;case"#":_=t;break;default:c??(c=new Map),c.set(e,t)}}function Yn(e,t,n,r,i){r.length>0&&35===r.charCodeAt(0)&&(r=r.slice(1));const o=ZA(n,r,"",i);let a=function(e){switch(e){case"":return d;case"#":return _;default:return(null==c?void 0:c.get(e))??0}}(o);if(e&&!(a&e)){const s=ZA(n,r,268435456===e?"_i":"_n",i);if(Gn(s,n))return a|=e,n?Un(s):t&&Jn(s),Qn(o,a),s}for(;;){const e=268435455&a;if(a++,8!==e&&13!==e){const s=ZA(n,r,e<26?"_"+String.fromCharCode(97+e):"_"+(e-26),i);if(Gn(s,n))return n?Un(s):t&&Jn(s),Qn(o,a),s}}}function Zn(e,t=Gn,n,r,i,o,s){if(e.length>0&&35===e.charCodeAt(0)&&(e=e.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),n){const n=ZA(i,o,e,s);if(t(n,i))return i?Un(n):r?Jn(n):a.add(n),n}95!==e.charCodeAt(e.length-1)&&(e+="_");let c=1;for(;;){const n=ZA(i,o,e+c,s);if(t(n,i))return i?Un(n):r?Jn(n):a.add(n),n;c++}}function er(e){return Zn(e,Xn,!0,!1,!1,"","")}function tr(e){const t=jn(e.name);return function(e,t){for(let n=t;n&&Zh(n,t);n=n.nextContainer)if(Tu(n)&&n.locals){const t=n.locals.get(wc(e));if(t&&3257279&t.flags)return!1}return!0}(t,ft(e,Tu))?t:Zn(t,Gn,!1,!1,!1,"","")}function nr(){return Zn("default",Gn,!1,!1,!1,"","")}function rr(e,t,n,r,i){switch(e.kind){case 80:case 81:return Zn(jn(e),Gn,!!(16&n),!!(8&n),t,r,i);case 267:case 266:return Sn.assert(!r&&!i&&!t),tr(e);case 272:case 278:return Sn.assert(!r&&!i&&!t),function(e){const t=fh(e);return Zn(FN(t)?af(t.text):"module",Gn,!1,!1,!1,"","")}(e);case 262:case 263:{Sn.assert(!r&&!i&&!t);const o=e.name;return o&&!a_(o)?rr(o,!1,n,r,i):nr()}case 277:return Sn.assert(!r&&!i&&!t),nr();case 231:return Sn.assert(!r&&!i&&!t),Zn("class",Gn,!1,!1,!1,"","");case 174:case 177:case 178:return function(e,t,n,r){return HN(e.name)?Kn(e.name,t):Yn(0,!1,t,n,r)}(e,t,r,i);case 167:return Yn(0,!0,t,r,i);default:return Yn(0,!1,t,r,i)}}function ir(e,t){const n=He(2,e,t),r=ne,i=ie,o=oe;or(t),n(e,t),ar(t,r,i,o)}function or(e){const t=tf(e),n=pw(e);!function(e,t,n,r){ce(),ae=!1;const i=n<0||0!=(1024&t)||12===e.kind,o=r<0||0!=(2048&t)||12===e.kind;(n>0||r>0)&&n!==r&&(i||dr(n,359!==e.kind),(!i||n>=0&&0!=(1024&t))&&(ne=n),(!o||r>=0&&0!=(2048&t))&&(ie=r,261===e.kind&&(oe=r)));b(mw(e),cr),le()}(e,t,n.pos,n.end),4096&t&&(se=!0)}function ar(e,t,n,r){const i=tf(e),o=pw(e);4096&i&&(se=!1),sr(e,i,o.pos,o.end,t,n,r);const a=Iw(e);a&&sr(e,i,a.pos,a.end,t,n,r)}function sr(e,t,n,r,i,o,a){ce();const s=r<0||0!=(2048&t)||12===e.kind;b(yw(e),lr),(n>0||r>0)&&n!==r&&(ne=i,ie=o,oe=a,s||359===e.kind||function(e){Tr(e,vr)}(r)),le()}function cr(e){(e.hasLeadingNewline||2===e.kind)&&y.writeLine(),_r(e),e.hasTrailingNewLine||2===e.kind?y.writeLine():y.writeSpace(" ")}function lr(e){y.isAtStartOfLine()||y.writeSpace(" "),_r(e),e.hasTrailingNewLine&&y.writeLine()}function _r(e){const t=function(e){return 3===e.kind?`/*${e.text}*/`:`//${e.text}`}(e);cb(t,3===e.kind?rs(t):void 0,y,0,t.length,U)}function ur(e,t,r){ce();const{pos:i,end:o}=t,a=tf(e),s=se||o<0||0!=(2048&a);i<0||0!=(1024&a)||function(e){const t=n&&sb(n.text,Le(),y,Cr,e,U,se);t&&(w?w.push(t):w=[t])}(t),le(),4096&a&&!se?(se=!0,r(e),se=!1):r(e),ce(),s||(dr(t.end,!0),ae&&!y.isAtStartOfLine()&&y.writeLine()),le()}function dr(e,t){ae=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?kr(e,mr):kr(e,hr):0===e&&kr(e,pr)}function pr(e,t,n,r,i){wr(e,t)&&hr(e,t,n,r,i)}function mr(e,t,n,r,i){wr(e,t)||hr(e,t,n,r,i)}function gr(t,n){return!e.onlyPrintJsDocStyle||(NI(t,n)||Wp(t,n))}function hr(e,t,r,i,o){n&&gr(n.text,e)&&(ae||(ob(Le(),y,o,e),ae=!0),Er(e),cb(n.text,Le(),y,e,t,U),Er(t),i?y.writeLine():3===r&&y.writeSpace(" "))}function yr(e){se||-1===e||dr(e,!0)}function vr(e,t,r,i){n&&gr(n.text,e)&&(y.isAtStartOfLine()||y.writeSpace(" "),Er(e),cb(n.text,Le(),y,e,t,U),Er(t),i&&y.writeLine())}function br(e,t,n){se||(ce(),Tr(e,t?vr:n?xr:Sr),le())}function xr(e,t,r){n&&(Er(e),cb(n.text,Le(),y,e,t,U),Er(t),2===r&&y.writeLine())}function Sr(e,t,r,i){n&&(Er(e),cb(n.text,Le(),y,e,t,U),Er(t),i?y.writeLine():y.writeSpace(" "))}function kr(e,t){!n||-1!==ne&&e===ne||(function(e){return void 0!==w&&Ie(w).nodePos===e}(e)?function(e){if(!n)return;const t=Ie(w).detachedCommentEndPos;w.length-1?w.pop():w=void 0;Ts(n.text,t,e,t)}(t):Ts(n.text,e,t,e))}function Tr(e,t){n&&(-1===ie||e!==ie&&e!==oe)&&Cs(n.text,e,t)}function Cr(e,t,r,i,o,a){n&&gr(n.text,i)&&(Er(i),cb(e,t,r,i,o,a),Er(o))}function wr(e,t){return!!n&&Vp(n.text,e,t)}function Nr(e,t){const n=He(3,e,t);Dr(t),n(e,t),Fr(t)}function Dr(e){const t=tf(e),n=sw(e);if(zl(e)){Sn.assertIsDefined(e.parent,"UnparsedNodes must have parent pointers");const t=function(e){return void 0===e.parsedSourceMap&&void 0!==e.sourceMapText&&(e.parsedSourceMap=_J(e.sourceMapText)||!1),e.parsedSourceMap||void 0}(e.parent);t&&S&&S.appendSourceMap(y.getLine(),y.getColumn(),t,e.parent.sourceMapPath,e.parent.getLineAndCharacterOfPosition(e.pos),e.parent.getLineAndCharacterOfPosition(e.end))}else{const r=n.source||k;359!==e.kind&&0==(32&t)&&n.pos>=0&&Ar(n.source||k,Pr(r,n.pos)),128&t&&(Z=!0)}}function Fr(e){const t=tf(e),n=sw(e);zl(e)||(128&t&&(Z=!1),359!==e.kind&&0==(64&t)&&n.end>=0&&Ar(n.source||k,n.end))}function Pr(e,t){return e.skipTrivia?e.skipTrivia(t):ys(e.text,t)}function Er(e){if(Z||iT(e)||Or(k))return;const{line:t,character:n}=_s(k,e);S.addMapping(y.getLine(),y.getColumn(),ee,t,n,void 0)}function Ar(e,t){if(e!==k){const n=k,r=ee;Ir(e),Er(t),function(e,t){k=e,ee=t}(n,r)}else Er(t)}function Ir(t){Z||(k=t,t!==T?Or(t)||(ee=S.addSource(t.fileName),e.inlineSources&&S.setSourceContent(ee,t.text),T=t,te=ee):ee=te)}function Or(e){return $o(e.fileName,".json")}}function FU(e,t,n,r){t(e)}function PU(e,t,n,r){t(e,n.select(r))}function EU(e,t,n,r){t(e,n)}var AU,IU,OU=g({"src/compiler/emitter.ts"(){OK(),OK(),Zi(),Yq=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}(),Zq={hasGlobalName:kt,getReferencedExportContainer:kt,getReferencedImportDeclaration:kt,getReferencedDeclarationWithCollidingName:kt,isDeclarationWithCollidingName:kt,isValueAliasDeclaration:kt,isReferencedAliasDeclaration:kt,isTopLevelValueImportEqualsWithEntityName:kt,getNodeCheckFlags:kt,isDeclarationVisible:kt,isLateBound:e=>!1,collectLinkedAliases:kt,isImplementationOfOverload:kt,isRequiredInitializedParameter:kt,isOptionalUninitializedParameterProperty:kt,isExpandoFunctionDeclaration:kt,getPropertiesOfContainerFunction:kt,createTypeOfDeclaration:kt,createReturnTypeOfSignatureDeclaration:kt,createTypeOfExpression:kt,createLiteralConstValue:kt,isSymbolAccessible:kt,isEntityNameVisible:kt,getConstantValue:kt,getReferencedValueDeclaration:kt,getReferencedValueDeclarations:kt,getTypeReferenceSerializationKind:kt,isOptionalParameter:kt,moduleExportsSomeValue:kt,isArgumentsLocalBinding:kt,getExternalModuleFileFromDeclaration:kt,getTypeReferenceDirectivesForEntityName:kt,getTypeReferenceDirectivesForSymbol:kt,isLiteralConstDeclaration:kt,getJsxFactoryEntity:kt,getJsxFragmentFactoryEntity:kt,getAllAccessorDeclarations:kt,getSymbolOfExternalModuleSpecifier:kt,isBindingCapturedByNode:kt,getDeclarationStatementsForSourceFile:kt,isImportRequiredByAugmentation:kt,tryFindAmbientModule:kt},eU=Tt((()=>DU({}))),tU=Tt((()=>DU({removeComments:!0}))),nU=Tt((()=>DU({removeComments:!0,neverAsciiEscape:!0}))),rU=Tt((()=>DU({removeComments:!0,omitTrailingSemicolon:!0})))}});function LU(e,t,n){if(!e.getDirectories||!e.readDirectory)return;const i=new Map,o=tn(n);return{useCaseSensitiveFileNames:n,fileExists:function(t){const n=c(a(t));return n&&u(n.sortedAndCanonicalizedFiles,o(l(t)))||e.fileExists(t)},readFile:(t,n)=>e.readFile(t,n),directoryExists:e.directoryExists&&function(t){const n=a(t);return i.has(ma(n))||e.directoryExists(t)},getDirectories:function(t){const n=a(t),r=_(t,n);if(r)return r.directories.slice();return e.getDirectories(t)},readDirectory:function(i,o,s,c,u){const p=a(i),f=_(i,p);let m;if(void 0!==f)return Rk(i,o,s,c,n,t,u,(function(e){const t=a(e);if(t===p)return f||g(e,t);const n=_(e,t);return void 0!==n?n||g(e,t):tp}),d);return e.readDirectory(i,o,s,c,u);function g(t,n){if(m&&n===p)return m;const i={files:J(e.readDirectory(t,void 0,void 0,["*.*"]),l)||r,directories:e.getDirectories(t)||r};return n===p&&(m=i),i}},createDirectory:e.createDirectory&&function(t){const n=c(a(t));if(n){const e=l(t),r=o(e);_e(n.sortedAndCanonicalizedDirectories,r,Rt)&&n.directories.push(e)}e.createDirectory(t)},writeFile:e.writeFile&&function(t,n,r){const i=c(a(t));i&&p(i,l(t),!0);return e.writeFile(t,n,r)},addOrDeleteFileOrDirectory:function(t,n){if(void 0!==s(n))return void f();const r=c(n);if(!r)return;if(!e.directoryExists)return void f();const i=l(t),a={fileExists:e.fileExists(n),directoryExists:e.directoryExists(n)};a.directoryExists||u(r.sortedAndCanonicalizedDirectories,o(i))?f():p(r,i,a.fileExists);return a},addOrDeleteFile:function(e,t,n){if(1===n)return;const r=c(t);r&&p(r,l(e),0===n)},clearCache:f,realpath:e.realpath&&d};function a(e){return pa(e,t,o)}function s(e){return i.get(ma(e))}function c(e){const t=s(Zo(e));return t?(t.sortedAndCanonicalizedFiles||(t.sortedAndCanonicalizedFiles=t.files.map(o).sort(),t.sortedAndCanonicalizedDirectories=t.directories.map(o).sort()),t):t}function l(e){return ea(ua(e))}function _(t,n){const r=s(n=ma(n));if(r)return r;try{return function(t,n){var r;if(!e.realpath||ma(a(e.realpath(t)))===n){const r={files:J(e.readDirectory(t,void 0,void 0,["*.*"]),l)||[],directories:e.getDirectories(t)||[]};return i.set(ma(n),r),r}if(null==(r=e.directoryExists)?void 0:r.call(e,t))return i.set(n,!1),!1}(t,n)}catch(e){return void Sn.assert(!i.has(ma(n)))}}function u(e,t){return Re(e,t,bt,Rt)>=0}function d(t){return e.realpath?e.realpath(t):t}function p(e,t,n){const r=e.sortedAndCanonicalizedFiles,i=o(t);if(n)_e(r,i,Rt)&&e.files.push(t);else{const t=Re(r,i,bt,Rt);if(t>=0){r.splice(t,1);const n=e.files.findIndex((e=>o(e)===i));e.files.splice(n,1)}}}function f(){i.clear()}}function jU(e,t,n,i,o){var a;const s=Xe((null==(a=null==t?void 0:t.configFile)?void 0:a.extendedSourceFiles)||r,o);n.forEach(((t,n)=>{s.has(n)||(t.projects.delete(e),t.close())})),s.forEach(((t,r)=>{const o=n.get(r);o?o.projects.add(e):n.set(r,{projects:new Set([e]),watcher:i(t,r),close:()=>{const e=n.get(r);e&&0===e.projects.size&&(e.watcher.close(),n.delete(r))}})}))}function MU(e,t){t.forEach((t=>{t.projects.delete(e)&&t.close()}))}function RU(e,t,n){e.delete(t)&&e.forEach((({extendedResult:r},i)=>{var o;(null==(o=r.extendedSourceFiles)?void 0:o.some((e=>n(e)===t)))&&RU(e,i,n)}))}function BU(e,t,n){Xx(t,new Map(e),{createNewValue:n,onDeleteValue:Bx})}function JU(e,t,n){Xx(t,Xe(e.getMissingFilePaths(),bt,yt),{createNewValue:n,onDeleteValue:Bx})}function zU(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}Xx(e,t,{createNewValue:r,onDeleteValue:HU,onExistingValue:function(t,n,i){if(t.flags===n)return;t.watcher.close(),e.set(i,r(i,n))}})}function qU({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:r,options:i,program:o,extraFileExtensions:a,currentDirectory:s,useCaseSensitiveFileNames:c,writeLog:l,toPath:_,getScriptKind:u}){const d=GW(n);if(!d)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=d)===e)return!1;if(Ho(n)&&!Gk(t,i,a)&&!function(){if(!u)return!1;switch(u(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return fk(i);case 6:return lk(i);case 0:return!1}}())return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(hj(t,i.configFile.configFileSpecs,_a(Zo(r),s),c,s))return l(`Project: ${r} Detected excluded file: ${t}`),!0;if(!o)return!1;if(Ev(i)||i.outDir)return!1;if(oO(n)){if(i.declarationDir)return!1}else if(!Ko(n,$d))return!1;const p=Yk(n),f=_t(o)?void 0:function(e){return!!e.getState}(o)?o.getProgramOrUndefined():o,m=f||_t(o)?void 0:o;return!(!g(p+".ts")&&!g(p+".tsx"))&&(l(`Project: ${r} Detected output file: ${t}`),!0);function g(e){return f?!!f.getSourceFileByPath(e):m?m.getState().fileInfos.has(e):!!D(o,(t=>_(t)===e))}}function UU(e,t){return!!e&&e.isEmittedFile(t)}function VU(e,t,n,r){wo(2===t?n:gt);const i={watchFile:(t,n,r,i)=>e.watchFile(t,n,r,i),watchDirectory:(t,n,r,i)=>e.watchDirectory(t,n,0!=(1&r),i)},o=0!==t?{watchFile:l("watchFile"),watchDirectory:l("watchDirectory")}:void 0,a=2===t?{watchFile:function(e,t,i,a,s,c){n(`FileWatcher:: Added:: ${_(e,i,a,s,c,r)}`);const l=o.watchFile(e,t,i,a,s,c);return{close:()=>{n(`FileWatcher:: Close:: ${_(e,i,a,s,c,r)}`),l.close()}}},watchDirectory:function(e,t,i,a,s,c){const l=`DirectoryWatcher:: Added:: ${_(e,i,a,s,c,r)}`;n(l);const u=Yn(),d=o.watchDirectory(e,t,i,a,s,c),p=Yn()-u;return n(`Elapsed:: ${p}ms ${l}`),{close:()=>{const t=`DirectoryWatcher:: Close:: ${_(e,i,a,s,c,r)}`;n(t);const o=Yn();d.close();const l=Yn()-o;n(`Elapsed:: ${l}ms ${t}`)}}}}:o||i,s=2===t?function(e,t,i,o,a){return n(`ExcludeWatcher:: Added:: ${_(e,t,i,o,a,r)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${_(e,t,i,o,a,r)}`)}}:mH;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,l)=>{var _;return vj(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),(null==(_=e.getCurrentDirectory)?void 0:_.call(e))||"")?s(n,i,o,c,l):a[t].call(void 0,n,r,i,o,c,l)}}function l(e){return(t,o,a,s,c,l)=>i[e].call(void 0,t,((...i)=>{const u=`${"watchFile"===e?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${i[0]} ${void 0!==i[1]?i[1]:""}:: ${_(t,a,s,c,l,r)}`;n(u);const d=Yn();o.call(void 0,...i);const p=Yn()-d;n(`Elapsed:: ${p}ms ${u}`)}),a,s,c,l)}function _(e,t,n,r,i,o){return`WatchInfo: ${e} ${t} ${JSON.stringify(n)} ${o?o(r,i):void 0===i?r:`${r} ${i}`}`}}function WU(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function HU(e){e.watcher.close()}var $U,KU,GU,XU,QU,YU,ZU,eV,tV,nV,rV,iV,oV,aV=g({"src/compiler/watchUtilities.ts"(){OK(),AU=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(AU||{}),IU=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(IU||{})}});function sV(e,t,n="tsconfig.json"){return Fa(e,(e=>{const r=sa(e,n);return t(r)?r:void 0}))}function cV(e,t){const n=Zo(t);return ua(zo(e)?e:sa(n,e))}function lV(e,t,n){let r;return b(e,(e=>{const i=la(e,t);if(i.pop(),!r)return void(r=i);const o=Math.min(r.length,i.length);for(let e=0;e<o;e++)if(n(r[e])!==n(i[e])){if(0===e)return!0;r.length=e;break}i.length<r.length&&(r.length=i.length)}))?"":r?ia(r):t}function _V(e,t){return pV(e,t)}function uV(e,t,n){return(r,i,o)=>{let a;try{gr("beforeIORead"),a=e(r,t().charset),gr("afterIORead"),hr("I/O Read","beforeIORead","afterIORead")}catch(e){o&&o(e.message),a=""}return void 0!==a?YI(r,a,i,n):void 0}}function dV(e,t,n){return(r,i,o,a)=>{try{gr("beforeIOWrite"),Bv(r,i,o,e,t,n),gr("afterIOWrite"),hr("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}}function pV(e,t,n=uo){const r=new Map,i=tn(n.useCaseSensitiveFileNames);function o(){return Zo(ua(n.getExecutingFilePath()))}const a=mx(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:uV((e=>c.readFile(e)),(()=>e),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>sa(o(),Hs(e)),writeFile:dV(((e,t,r)=>n.writeFile(e,t,r)),(e=>(c.createDirectory||n.createDirectory)(e)),(e=>{return t=e,!!r.has(t)||!!(c.directoryExists||n.directoryExists)(t)&&(r.set(t,!0),!0);var t})),getCurrentDirectory:Tt((()=>n.getCurrentDirectory())),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:i,getNewLine:()=>a,fileExists:e=>n.fileExists(e),readFile:e=>n.readFile(e),trace:e=>n.write(e+a),directoryExists:e=>n.directoryExists(e),getEnvironmentVariable:e=>n.getEnvironmentVariable?n.getEnvironmentVariable(e):"",getDirectories:e=>n.getDirectories(e),realpath:s,readDirectory:(e,t,r,i,o)=>n.readDirectory(e,t,r,i,o),createDirectory:e=>n.createDirectory(e),createHash:it(n,n.createHash)};return c}function fV(e,t,n){const r=e.readFile,i=e.fileExists,o=e.directoryExists,a=e.createDirectory,s=e.writeFile,c=new Map,l=new Map,_=new Map,u=new Map,d=(t,n)=>{const i=r.call(e,n);return c.set(t,void 0!==i&&i),i};e.readFile=n=>{const i=t(n),o=c.get(i);return void 0!==o?!1!==o?o:void 0:$o(n,".json")||oU(n)?d(i,n):r.call(e,n)};const p=n?(e,r,i,o)=>{const a=t(e),s="object"==typeof r?r.impliedNodeFormat:void 0,c=u.get(s),l=null==c?void 0:c.get(a);if(l)return l;const _=n(e,r,i,o);return _&&(oO(e)||$o(e,".json"))&&u.set(s,(c||new Map).set(a,_)),_}:void 0;return e.fileExists=n=>{const r=t(n),o=l.get(r);if(void 0!==o)return o;const a=i.call(e,n);return l.set(r,!!a),a},s&&(e.writeFile=(n,r,...i)=>{const o=t(n);l.delete(o);const a=c.get(o);void 0!==a&&a!==r?(c.delete(o),u.forEach((e=>e.delete(o)))):p&&u.forEach((e=>{const t=e.get(o);t&&t.text!==r&&e.delete(o)})),s.call(e,n,r,...i)}),o&&(e.directoryExists=n=>{const r=t(n),i=_.get(r);if(void 0!==i)return i;const a=o.call(e,n);return _.set(r,!!a),a},a&&(e.createDirectory=n=>{const r=t(n);_.delete(r),a.call(e,n)})),{originalReadFile:r,originalFileExists:i,originalDirectoryExists:o,originalCreateDirectory:a,originalWriteFile:s,getSourceFileWithCache:p,readFileWithCache:e=>{const n=t(e),r=c.get(n);return void 0!==r?!1!==r?r:void 0:d(n,e)}}}function mV(e,t,n){let i;return i=be(i,e.getConfigFileParsingDiagnostics()),i=be(i,e.getOptionsDiagnostics(n)),i=be(i,e.getSyntacticDiagnostics(t,n)),i=be(i,e.getGlobalDiagnostics(n)),i=be(i,e.getSemanticDiagnostics(t,n)),_k(e.getCompilerOptions())&&(i=be(i,e.getDeclarationDiagnostics(t,n))),Ws(i||r)}function gV(e,t){let n="";for(const r of e)n+=hV(r,t);return n}function hV(e,t){const n=`${to(e)} TS${e.code}: ${kV(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=_s(e.file,e.start);return`${wa(e.file.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e)))}(${r+1},${i+1}): `+n}return n}function yV(e){switch(e){case 1:return"";case 0:return"";case 2:return Sn.fail("Should never get an Info diagnostic on the command line.");case 3:return""}}function vV(e,t){return t+e+XU}function bV(e,t,n,r,i,o){const{line:a,character:s}=_s(e,t),{line:c,character:l}=_s(e,t+n),_=_s(e,e.text.length).line,u=c-a>=4;let d=(c+1+"").length;u&&(d=Math.max(QU.length,d));let p="";for(let t=a;t<=c;t++){p+=o.getNewLine(),u&&a+1<t&&t<c-1&&(p+=r+vV(QU.padStart(d),KU)+GU+o.getNewLine(),t=c-1);const n=is(e,t,0),f=t<_?is(e,t+1,0):e.text.length;let m=e.text.slice(n,f);if(m=m.trimEnd(),m=m.replace(/\t/g," "),p+=r+vV((t+1+"").padStart(d),KU)+GU,p+=m+o.getNewLine(),p+=r+vV("".padStart(d),KU)+GU,p+=i,t===a){const e=t===c?l:void 0;p+=m.slice(0,s).replace(/\S/g," "),p+=m.slice(s,e).replace(/./g,"~")}else p+=t===c?m.slice(0,l).replace(/./g,"~"):m.replace(/./g,"~");p+=XU}return p}function xV(e,t,n,r=vV){const{line:i,character:o}=_s(e,t);let a="";return a+=r(n?wa(e.fileName,n.getCurrentDirectory(),(e=>n.getCanonicalFileName(e))):e.fileName,""),a+=":",a+=r(`${i+1}`,""),a+=":",a+=r(`${o+1}`,""),a}function SV(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=xV(e,i,t),n+=" - "}if(n+=vV(to(r),yV(r.category)),n+=vV(` TS${r.code}: `,""),n+=kV(r.messageText,t.getNewLine()),r.file&&r.code!==Ea.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=bV(r.file,r.start,r.length,"",yV(r.category),t)),r.relatedInformation){n+=t.getNewLine();for(const{file:e,start:i,length:o,messageText:a}of r.relatedInformation)e&&(n+=t.getNewLine(),n+=YU+xV(e,i,t),n+=bV(e,i,o,ZU,"",t)),n+=t.getNewLine(),n+=ZU+kV(a,t.getNewLine())}n+=t.getNewLine()}return n}function kV(e,t,n=0){if(dt(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;e<n;e++)r+=" "}if(r+=e.messageText,n++,e.next)for(const i of e.next)r+=kV(i,t,n);return r}function TV(e,t){return(dt(e)?t:e.resolutionMode)||t}function CV(e,t){return NV(e,eW(e,t))}function wV(e){var t;return vP(e)?e.isTypeOnly:!!(null==(t=e.importClause)?void 0:t.isTypeOnly)}function NV(e,t){var n;if(sP(t.parent)||vP(t.parent)){if(wV(t.parent)){const e=DV(t.parent.attributes);if(e)return e}}if(t.parent.parent&&VD(t.parent.parent)){const e=DV(t.parent.parent.attributes);if(e)return e}if(void 0===e.impliedNodeFormat)return;if(99!==e.impliedNodeFormat)return sm(Kh(t.parent))?99:1;const r=null==(n=Kh(t.parent))?void 0:n.parent;return r&&aP(r)?1:99}function DV(e,t){if(!e)return;if(1!==v(e.elements))return void(null==t||t(e,118===e.token?Ea.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:Ea.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require));const n=e.elements[0];if(Qu(n.name))if("resolution-mode"===n.name.text){if(Qu(n.value)){if("import"===n.value.text||"require"===n.value.text)return"import"===n.value.text?99:1;null==t||t(n.value,Ea.resolution_mode_should_be_either_require_or_import)}}else null==t||t(n.name,118===e.token?Ea.resolution_mode_is_the_only_valid_key_for_type_import_attributes:Ea.resolution_mode_is_the_only_valid_key_for_type_import_assertions)}function FV(e){return e.text}function PV(e,t,n,r,i){return{nameAndMode:tV,resolve:(o,a)=>xM(o,e,n,r,i,t,a)}}function EV(e){return dt(e)?e:St(e.fileName)}function AV(e,t,n,r,i){return{nameAndMode:nV,resolve:(o,a)=>tM(o,e,n,r,t,i,a)}}function IV(e,t,n,i,o,a,s,c){if(0===e.length)return r;const l=[],_=new Map,u=c(t,n,i,a,s);for(const t of e){const e=u.nameAndMode.getName(t),n=u.nameAndMode.getMode(t,o),r=_M(e,n);let i=_.get(r);i||_.set(r,i=u.resolve(e,n)),l.push(i)}return l}function OV(e,t){return LV(void 0,e,((e,n)=>e&&t(e,n)))}function LV(e,t,n,r){let i;return function e(t,o,a){if(r){const e=r(t,a);if(e)return e}return b(o,((t,r)=>{if(t&&(null==i?void 0:i.has(t.sourceFile.path)))return;const o=n(t,a,r);return o||!t?o:((i||(i=new Set)).add(t.sourceFile.path),e(t.commandLine.projectReferences,t.references,t))}))}(e,t,void 0)}function jV(e,t,n){return sa(e.configFilePath?Zo(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function MV(e){const t=e.split(".");let n=t[1],r=2;for(;t[r]&&"d"!==t[r];)n+=(2===r?"/":"-")+t[r],r++;return"@typescript/lib-"+n}function RV(e){const t=St(e.fileName);return{libName:t,libFileName:hO.get(t)}}function BV(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function JV(e){return void 0!==e.pos}function zV(e,t){var n,r,i,o;const a=Sn.checkDefined(e.getSourceFileByPath(t.file)),{kind:s,index:c}=t;let l,_,u,d;switch(s){case 3:const t=eW(a,c);if(u=null==(r=null==(n=e.getResolvedModule(a,t.text,CV(a,c)))?void 0:n.resolvedModule)?void 0:r.packageId,-1===t.pos)return{file:a,packageId:u,text:t.text};l=ys(a.text,t.pos),_=t.end;break;case 4:({pos:l,end:_}=a.referencedFiles[c]);break;case 5:({pos:l,end:_,resolutionMode:d}=a.typeReferenceDirectives[c]),u=null==(o=null==(i=e.getResolvedTypeReferenceDirective(a,St(a.typeReferenceDirectives[c].fileName),d||a.impliedNodeFormat))?void 0:i.resolvedTypeReferenceDirective)?void 0:o.packageId;break;case 7:({pos:l,end:_}=a.libReferenceDirectives[c]);break;default:return Sn.assertNever(s)}return{file:a,pos:l,end:_,packageId:u}}function qV(e,t,n,r,i,o,a,s,c,l){if(!e||(null==s?void 0:s()))return!1;if(!fe(e.getRootFileNames(),t))return!1;let _;if(!fe(e.getProjectReferences(),l,(function(t,n,r){return hp(t,n)&&d(e.getResolvedProjectReferences()[r],t)})))return!1;if(e.getSourceFiles().some((function(e){return!function(e){return e.version===r(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;if(e.getMissingFilePaths().some(i))return!1;const u=e.getCompilerOptions();return!!$x(u,n)&&((!e.resolvedLibReferences||!dp(e.resolvedLibReferences,((e,t)=>a(t))))&&(!u.configFile||!n.configFile||u.configFile.text===n.configFile.text));function d(e,t){if(e){if(I(_,e))return!0;const n=QV(t),r=c(n);return!!r&&(e.commandLine.options.configFile===r.options.configFile&&(!!fe(e.commandLine.fileNames,r.fileNames)&&((_||(_=[])).push(e),!b(e.references,((t,n)=>!d(t,e.commandLine.projectReferences[n]))))))}const n=QV(t);return!c(n)}}function UV(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function VV(e,t,n,r){const i=WV(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function WV(e,t,n,r){switch(GS(r)){case 3:case 99:return Ko(e,[".d.mts",".mts",".mjs"])?99:Ko(e,[".d.cts",".cts",".cjs"])?1:Ko(e,[".d.ts",".ts",".tsx",".js",".jsx"])?function(){const i=VM(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=WM(e,i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0;default:return}}function HV(t,n,i,o,a){var s,c,l,_,u,d,p,f,m,g,h,y,v,x,S,T;const C=_t(t)?function(e,t,n,r,i,o){return{rootNames:e,options:t,host:n,oldProgram:r,configFileParsingDiagnostics:i,typeScriptVersion:o}}(t,n,i,o,a):t,{rootNames:w,options:N,configFileParsingDiagnostics:F,projectReferences:E,typeScriptVersion:A}=C;let{oldProgram:O}=C;const L=Tt((()=>Un("ignoreDeprecations",Ea.Invalid_value_for_ignoreDeprecations)));let j,R,B,J,z,q,W;const H=new Map;let $=ot();const K={},Q={};let Y,Z,ee,te,ne,ie,ae,se,ce,le,_e=uM();const ue="number"==typeof N.maxNodeModuleJsDepth?N.maxNodeModuleJsDepth:0;let de=0;const pe=new Map,me=new Map;null==(s=Fr)||s.push(Fr.Phase.Program,"createProgram",{configFilePath:N.configFilePath,rootDir:N.rootDir},!0),gr("beforeProgram");const ge=C.host||_V(N),ye=GV(ge);let ve=N.noLib;const be=Tt((()=>ge.getDefaultLibFileName(N))),xe=ge.getDefaultLibLocation?ge.getDefaultLibLocation():Zo(be()),Se=ov(),ke=ge.getCurrentDirectory(),Te=Uk(N),Ce=Vk(N,Te),Ne=new Map;let De,Fe,Pe;const Ee=ge.hasInvalidatedResolutions||ht;let Ae;if(ge.resolveModuleNameLiterals?(Pe=ge.resolveModuleNameLiterals.bind(ge),Fe=null==(c=ge.getModuleResolutionCache)?void 0:c.call(ge)):ge.resolveModuleNames?(Pe=(e,t,n,r,i,o)=>ge.resolveModuleNames(e.map(FV),t,null==o?void 0:o.map(FV),n,r,i).map((e=>e?void 0!==e.extension?{resolvedModule:e}:{resolvedModule:{...e,extension:sT(e.resolvedFileName)}}:eV)),Fe=null==(l=ge.getModuleResolutionCache)?void 0:l.call(ge)):(Fe=gM(ke,Fn,N),Pe=(e,t,n,r,i)=>IV(e,t,n,r,i,ge,Fe,PV)),ge.resolveTypeReferenceDirectiveReferences)Ae=ge.resolveTypeReferenceDirectiveReferences.bind(ge);else if(ge.resolveTypeReferenceDirectives)Ae=(e,t,n,r,i)=>ge.resolveTypeReferenceDirectives(e.map(EV),t,n,r,null==i?void 0:i.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=hM(ke,Fn,void 0,null==Fe?void 0:Fe.getPackageJsonInfoCache(),null==Fe?void 0:Fe.optionsToRedirectsKey);Ae=(t,n,r,i,o)=>IV(t,n,r,i,o,ge,e,AV)}const Ie=ge.hasInvalidatedLibResolutions||ht;let Oe;if(ge.resolveLibrary)Oe=ge.resolveLibrary.bind(ge);else{const e=gM(ke,Fn,N,null==Fe?void 0:Fe.getPackageJsonInfoCache());Oe=(t,n,r)=>vM(t,n,r,ge,e)}const Le=new Map;let je=new Map,Me=ot(),Re=!1;const Be=new Map;let Je;const qe=ge.useCaseSensitiveFileNames()?new Map:void 0;let Ue,Ve,We,He;const Ke=!!(null==(_=ge.useSourceOfProjectReferenceRedirect)?void 0:_.call(ge))&&!N.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Ge,fileExists:Xe,directoryExists:Qe}=function(e){let t;const n=e.compilerHost.fileExists,r=e.compilerHost.directoryExists,i=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:gt,fileExists:c};let a;e.compilerHost.fileExists=c,r&&(a=e.compilerHost.directoryExists=n=>r.call(e.compilerHost,n)?(u(n),!0):!!e.getResolvedProjectReferences()&&(t||(t=new Set,e.forEachResolvedProjectReference((n=>{const r=Ev(n.commandLine.options);if(r)t.add(Zo(e.toPath(r)));else{const r=n.commandLine.options.declarationDir||n.commandLine.options.outDir;r&&t.add(e.toPath(r))}}))),d(n,!1)));i&&(e.compilerHost.getDirectories=t=>!e.getResolvedProjectReferences()||r&&r.call(e.compilerHost,t)?i.call(e.compilerHost,t):[]);o&&(e.compilerHost.realpath=t=>{var n;return(null==(n=e.getSymlinkCache().getSymlinkedFiles())?void 0:n.get(e.toPath(t)))||o.call(e.compilerHost,t)});return{onProgramCreateComplete:s,fileExists:c,directoryExists:a};function s(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=r,e.compilerHost.getDirectories=i}function c(t){return!!n.call(e.compilerHost,t)||!!e.getResolvedProjectReferences()&&(!!oO(t)&&d(t,!0))}function l(t){const r=e.getSourceOfProjectReferenceRedirect(e.toPath(t));return void 0!==r?!dt(r)||n.call(e.compilerHost,r):void 0}function _(n){const r=e.toPath(n),i=`${r}${Io}`;return pp(t,(e=>r===e||an(e,i)||an(r,`${e}/`)))}function u(t){var n;if(!e.getResolvedProjectReferences()||RT(t))return;if(!o||!t.includes(Ij))return;const r=e.getSymlinkCache(),i=ma(e.toPath(t));if(null==(n=r.getSymlinkedDirectories())?void 0:n.has(i))return;const a=ua(o.call(e.compilerHost,t));let s;a!==t&&(s=ma(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:ma(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}function d(t,n){var r;const i=n?e=>l(e):e=>_(e),o=i(t);if(void 0!==o)return o;const a=e.getSymlinkCache(),s=a.getSymlinkedDirectories();if(!s)return!1;const c=e.toPath(t);return!!c.includes(Ij)&&(!(!n||!(null==(r=a.getSymlinkedFiles())?void 0:r.has(c)))||(k(s.entries(),(([r,o])=>{if(!o||!an(c,r))return;const s=i(c.replace(r,o.realPath));if(n&&s){const n=_a(t,e.compilerHost.getCurrentDirectory());a.setSymlinkedFile(c,`${o.real}${n.replace(new RegExp(r,"i"),"")}`)}return s}))||!1))}}({compilerHost:ge,getSymlinkCache:Qn,useSourceOfProjectReferenceRedirect:Ke,toPath:vt,getResolvedProjectReferences:Dt,getSourceOfProjectReferenceRedirect:vn,forEachResolvedProjectReference:yn}),Ye=ge.readFile.bind(ge);null==(u=Fr)||u.push(Fr.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!O});const Ze=function(e,t){return!!e&&_p(e.getCompilerOptions(),t,DO)}(O,N);let et;if(null==(d=Fr)||d.pop(),null==(p=Fr)||p.push(Fr.Phase.Program,"tryReuseStructureFromOldProgram",{}),et=function(){var e;if(!O)return 0;const t=O.getCompilerOptions();if(sp(t,N))return 0;if(!fe(O.getRootFileNames(),w))return 0;if(LV(O.getProjectReferences(),O.getResolvedProjectReferences(),((e,t,n)=>{const r=An((t?t.commandLine.projectReferences:E)[n]);return e?!r||r.sourceFile!==e.sourceFile||!fe(e.commandLine.fileNames,r.commandLine.fileNames):void 0!==r}),((e,t)=>!fe(e,t?xn(t.sourceFile.path).commandLine.projectReferences:E,hp))))return 0;E&&(Ue=E.map(An));const n=[],r=[];if(et=2,O.getMissingFilePaths().some((e=>ge.fileExists(e))))return 0;const i=O.getSourceFiles();let o;a=o||(o={}),a[a.Exists=0]="Exists",a[a.Modified=1]="Modified";var a;const s=new Map;for(const t of i){const i=un(t.fileName,Fe,ge,N);let o,a=ge.getSourceFileByPath?ge.getSourceFileByPath(t.fileName,t.resolvedPath,i,void 0,Ze):ge.getSourceFile(t.fileName,i,void 0,Ze);if(!a)return 0;if(a.packageJsonLocations=(null==(e=i.packageJsonLocations)?void 0:e.length)?i.packageJsonLocations:void 0,a.packageJsonScope=i.packageJsonScope,Sn.assert(!a.redirectInfo,"Host should not return a redirect source file from `getSourceFile`"),t.redirectInfo){if(a!==t.redirectInfo.unredirected)return 0;o=!1,a=t}else if(O.redirectTargetsMap.has(t.path)){if(a!==t)return 0;o=!1}else o=a!==t;a.path=t.path,a.originalFileName=t.originalFileName,a.resolvedPath=t.resolvedPath,a.fileName=t.fileName;const c=O.sourceFileToPackageName.get(t.path);if(void 0!==c){const e=s.get(c),t=o?1:0;if(void 0!==e&&1===t||1===e)return 0;s.set(c,t)}if(o)t.impliedNodeFormat!==a.impliedNodeFormat?et=1:fe(t.libReferenceDirectives,a.libReferenceDirectives,Zt)?t.hasNoDefaultLib!==a.hasNoDefaultLib?et=1:fe(t.referencedFiles,a.referencedFiles,Zt)?(nn(a),fe(t.imports,a.imports,en)&&fe(t.moduleAugmentations,a.moduleAugmentations,en)?(12582912&t.flags)!=(12582912&a.flags)?et=1:fe(t.typeReferenceDirectives,a.typeReferenceDirectives,Zt)||(et=1):et=1):et=1:et=1,r.push(a);else if(Ee(t.path))et=1,r.push(a);else for(const e of t.ambientModuleNames)H.set(e,t.fileName);n.push(a)}if(2!==et)return et;for(const e of r){const t=ZV(e),n=kt(t,e);(ae??(ae=new Map)).set(e.path,n);kp(t,e,n,((t,n)=>O.getResolvedModule(e,t,n)),yp,tV)&&(et=1);const r=e.typeReferenceDirectives,i=Ct(r,e);(ce??(ce=new Map)).set(e.path,i);kp(r,e,i,((t,n)=>null==O?void 0:O.getResolvedTypeReferenceDirective(e,t,n)),Sp,nV)&&(et=1)}if(2!==et)return et;if(lp(t,N))return 1;if(O.resolvedLibReferences&&dp(O.resolvedLibReferences,((e,t)=>Nn(t).actual!==e.actual)))return 1;if(ge.hasChangedAutomaticTypeDirectiveNames){if(ge.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Z=oM(N,ge),!fe(O.getAutomaticTypeDirectiveNames(),Z))return 1;Je=O.getMissingFilePaths(),Sn.assert(n.length===O.getSourceFiles().length);for(const e of n)Be.set(e.path,e);return O.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?Be.set(t,Be.get(e.path)):O.isSourceFileFromExternalLibrary(e)&&me.set(e.path,!0):Be.set(t,e)})),B=n,$=O.getFileIncludeReasons(),Y=O.getFileProcessingDiagnostics(),_e=O.getResolvedTypeReferenceDirectives(),Z=O.getAutomaticTypeDirectiveNames(),ee=O.getAutomaticTypeDirectiveResolutions(),je=O.sourceFileToPackageName,Me=O.redirectTargetsMap,Re=O.usesUriStyleNodeCoreModules,ie=O.resolvedModules,se=O.resolvedTypeReferenceDirectiveNames,te=O.resolvedLibReferences,le=O.getCurrentPackagesMap(),2}(),null==(f=Fr)||f.pop(),2!==et){if(j=[],R=[],E&&(Ue||(Ue=E.map(An)),w.length&&(null==Ue||Ue.forEach(((e,t)=>{if(!e)return;const n=Ev(e.commandLine.options);if(Ke){if(n||0===$S(e.commandLine.options))for(const n of e.commandLine.fileNames)cn(n,{kind:1,index:t})}else if(n)cn(tT(n,".d.ts"),{kind:2,index:t});else if(0===$S(e.commandLine.options)){const n=Tt((()=>vU(e.commandLine,!ge.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)oO(r)||$o(r,".json")||cn(pU(r,e.commandLine,!ge.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})))),null==(m=Fr)||m.push(Fr.Phase.Program,"processRootFiles",{count:w.length}),b(w,((e,t)=>Yt(e,!1,!1,{kind:0,index:t}))),null==(g=Fr)||g.pop(),Z??(Z=w.length?oM(N,ge):r),ee=uM(),Z.length){null==(h=Fr)||h.push(Fr.Phase.Program,"processTypeReferences",{count:Z.length});const e=sa(N.configFilePath?Zo(N.configFilePath):ke,rV),t=Ct(Z,e);for(let e=0;e<Z.length;e++)ee.set(Z[e],void 0,t[e]),Cn(Z[e],void 0,t[e],{kind:8,typeReference:Z[e],packageId:null==(v=null==(y=t[e])?void 0:y.resolvedTypeReferenceDirective)?void 0:v.packageId});null==(x=Fr)||x.pop()}if(w.length&&!ve){const e=be();!N.lib&&e?Yt(e,!0,!1,{kind:6}):b(N.lib,((e,t)=>{Yt(wn(e),!0,!1,{kind:6,index:t})}))}Je=$e(X(Be.entries(),(([e,t])=>void 0===t?e:void 0))),B=we(j,(function(e,t){return It(yt(e),yt(t))})).concat(R),j=void 0,R=void 0}if(Sn.assert(!!Je),O&&ge.onReleaseOldSourceFile){const e=O.getSourceFiles();for(const t of e){const e=Mt(t.resolvedPath);(Ze||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&ge.onReleaseOldSourceFile(t,O.getCompilerOptions(),!!Mt(t.path))}ge.getParsedCommandLine||O.forEachResolvedProjectReference((e=>{xn(e.sourceFile.path)||ge.onReleaseOldSourceFile(e.sourceFile,O.getCompilerOptions(),!1)}))}O&&ge.onReleaseParsedCommandLine&&LV(O.getProjectReferences(),O.getResolvedProjectReferences(),((e,t,n)=>{const r=QV((null==t?void 0:t.commandLine.projectReferences[n])||O.getProjectReferences()[n]);(null==Ve?void 0:Ve.has(vt(r)))||ge.onReleaseParsedCommandLine(r,e,O.getCompilerOptions())})),O=void 0,ne=void 0,ae=void 0,ce=void 0;const tt={getRootFileNames:()=>w,getSourceFile:jt,getSourceFileByPath:Mt,getSourceFiles:()=>B,getMissingFilePaths:()=>Je,getModuleResolutionCache:()=>Fe,getFilesByNameMap:()=>Be,getCompilerOptions:()=>N,getSyntacticDiagnostics:function(e,t){return Rt(e,Jt,t)},getOptionsDiagnostics:function(){return Ws(oe(Se.getGlobalDiagnostics(),function(){if(!N.configFile)return r;let e=Se.getDiagnostics(N.configFile.fileName);return yn((t=>{e=oe(e,Se.getDiagnostics(t.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return w.length?Ws(Ot().getGlobalDiagnostics().slice()):r},getSemanticDiagnostics:function(e,t){return Rt(e,qt,t)},getCachedSemanticDiagnostics:function(e){var t;return e?null==(t=K.perFile)?void 0:t.get(e.path):K.allDiagnostics},getSuggestionDiagnostics:function(e,t){return zt((()=>Ot().getSuggestionDiagnostics(e,t)))},getDeclarationDiagnostics:function(e,t){const n=tt.getCompilerOptions();return!e||Ev(n)?$t(e,t):Rt(e,Qt,t)},getBindAndCheckDiagnostics:function(e,t){return Ut(e,t)},getProgramDiagnostics:Bt,getTypeChecker:Ot,getClassifiableNames:function(){var e;if(!W){Ot(),W=new Set;for(const t of B)null==(e=t.classifiableNames)||e.forEach((e=>W.add(e)))}return W},getCommonSourceDirectory:xt,emit:function(e,t,n,r,i,o){var a,s;null==(a=Fr)||a.push(Fr.Phase.Emit,"emit",{path:null==e?void 0:e.path},!0);const c=zt((()=>function(e,t,n,r,i,o,a){if(!a){const i=$V(e,t,n,r);if(i)return i}const s=Ot().getEmitResolver(Ev(N)?void 0:t,r);gr("beforeEmit");const c=kU(s,wt(n),t,Uq(N,o,i),i,!1,a);return gr("afterEmit"),hr("Emit","beforeEmit","afterEmit"),c}(tt,e,t,n,r,i,o)));return null==(s=Fr)||s.pop(),c},getCurrentDirectory:()=>ke,getNodeCount:()=>Ot().getNodeCount(),getIdentifierCount:()=>Ot().getIdentifierCount(),getSymbolCount:()=>Ot().getSymbolCount(),getTypeCount:()=>Ot().getTypeCount(),getInstantiationCount:()=>Ot().getInstantiationCount(),getRelationCacheSizes:()=>Ot().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Y,getResolvedTypeReferenceDirectives:()=>_e,getAutomaticTypeDirectiveNames:()=>Z,getAutomaticTypeDirectiveResolutions:()=>ee,isSourceFileFromExternalLibrary:At,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(!N.noLib)return!1;const t=ge.useCaseSensitiveFileNames()?Et:Pt;return N.lib?re(N.lib,(n=>t(e.fileName,te.get(n).actual))):t(e.fileName,be())},getSourceFileFromReference:function(e,t){return rn(cV(t.fileName,e.fileName),jt)},getLibFileFromReference:function(e){var t;const{libFileName:n}=RV(e),r=n&&(null==(t=null==te?void 0:te.get(n))?void 0:t.actual);return void 0!==r?jt(r):void 0},sourceFileToPackageName:je,redirectTargetsMap:Me,usesUriStyleNodeCoreModules:Re,resolvedModules:ie,resolvedTypeReferenceDirectiveNames:se,resolvedLibReferences:te,getResolvedModule:function(e,t,n){var r;return null==(r=null==ie?void 0:ie.get(e.path))?void 0:r.get(t,n)},getResolvedTypeReferenceDirective:function(e,t,n){var r;return null==(r=null==se?void 0:se.get(e.path))?void 0:r.get(t,n)},forEachResolvedModule:nt,forEachResolvedTypeReferenceDirective:rt,getCurrentPackagesMap:()=>le,typesPackageExists:function(e){return st().has(lR(e))},packageBundlesTypes:function(e){return!!st().get(e)},isEmittedFile:function(e){if(N.noEmit)return!1;const t=vt(e);if(Mt(t))return!1;const n=Ev(N);if(n)return Xn(t,n)||Xn(t,Yk(n)+".d.ts");if(N.declarationDir&&Sa(N.declarationDir,t,ke,!ge.useCaseSensitiveFileNames()))return!0;if(N.outDir)return Sa(N.outDir,t,ke,!ge.useCaseSensitiveFileNames());if(Ko(t,$d)||oO(t)){const e=Yk(t);return!!Mt(e+".ts")||!!Mt(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return F||r},getProjectReferences:function(){return E},getResolvedProjectReferences:Dt,getProjectReferenceRedirect:fn,getResolvedProjectReferenceToRedirect:hn,getResolvedProjectReferenceByPath:xn,forEachResolvedProjectReference:yn,isSourceOfProjectReferenceRedirect:bn,emitBuildInfo:function(e){var t,n;Sn.assert(!Ev(N)),null==(t=Fr)||t.push(Fr.Phase.Emit,"emitBuildInfo",{},!0),gr("beforeEmit");const r=kU(Zq,wt(e),void 0,Jq,!1,!0);return gr("afterEmit"),hr("Emit","beforeEmit","afterEmit"),null==(n=Fr)||n.pop(),r},fileExists:Xe,readFile:Ye,directoryExists:Qe,getSymlinkCache:Qn,realpath:null==(S=ge.realpath)?void 0:S.bind(ge),useCaseSensitiveFileNames:()=>ge.useCaseSensitiveFileNames(),getCanonicalFileName:Fn,getFileIncludeReasons:()=>$,structureIsReused:et,writeFile:Nt};return Ge(),null==Y||Y.forEach((e=>{switch(e.kind){case 1:return Se.add(On(e.file&&Mt(e.file),e.fileProcessingReason,e.diagnostic,e.args||r));case 0:const{file:t,pos:n,end:i}=zV(tt,e.reason);return Se.add(ES(t,Sn.checkDefined(n),Sn.checkDefined(i)-n,e.diagnostic,...e.args||r));case 2:return e.diagnostics.forEach((e=>Se.add(e)));default:Sn.assertNever(e)}})),function(){N.strictPropertyInitialization&&!pk(N,"strictNullChecks")&&qn(Ea.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");N.exactOptionalPropertyTypes&&!pk(N,"strictNullChecks")&&qn(Ea.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks");(N.isolatedModules||N.verbatimModuleSyntax)&&(N.out&&qn(Ea.Option_0_cannot_be_specified_with_option_1,"out",N.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),N.outFile&&qn(Ea.Option_0_cannot_be_specified_with_option_1,"outFile",N.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"));N.inlineSourceMap&&(N.sourceMap&&qn(Ea.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),N.mapRoot&&qn(Ea.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));N.composite&&(!1===N.declaration&&qn(Ea.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===N.incremental&&qn(Ea.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=Ev(N);N.tsBuildInfoFile?dk(N)||qn(Ea.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!N.incremental||e||N.configFilePath||Se.add(IS(Ea.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){In("5.0","5.5",(function(e,t,n,r,...i){if(n){const o=LS(void 0,Ea.Use_0_instead,n);Wn(!t,e,void 0,LS(o,r,...i))}else Wn(!t,e,void 0,r,...i)}),(e=>{0===N.target&&e("target","ES3"),N.noImplicitUseStrict&&e("noImplicitUseStrict"),N.keyofStringsOnly&&e("keyofStringsOnly"),N.suppressExcessPropertyErrors&&e("suppressExcessPropertyErrors"),N.suppressImplicitAnyIndexErrors&&e("suppressImplicitAnyIndexErrors"),N.noStrictGenericChecks&&e("noStrictGenericChecks"),N.charset&&e("charset"),N.out&&e("out",void 0,"outFile"),N.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),N.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")}))}(),function(){const e=N.suppressOutputPathCheck?void 0:sU(N);LV(E,Ue,((t,n,r)=>{const i=(n?n.commandLine.projectReferences:E)[r],o=n&&n.sourceFile;if(function(e,t,n){function r(e,r,i,o,...a){Vn(t,n,o,...a)}In("5.0","5.5",r,(t=>{e.prepend&&t("prepend")}))}(i,o,r),!t)return void Vn(o,r,Ea.File_0_not_found,i.path);const a=t.commandLine.options;if(!a.composite||a.noEmit){(n?n.commandLine.fileNames:w).length&&(a.composite||Vn(o,r,Ea.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&Vn(o,r,Ea.Referenced_project_0_may_not_disable_emit,i.path))}if(i.prepend){const e=Ev(a);e?ge.fileExists(e)||Vn(o,r,Ea.Output_file_0_from_project_1_does_not_exist,e,i.path):Vn(o,r,Ea.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)}!n&&e&&e===sU(a)&&(Vn(o,r,Ea.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),Ne.set(vt(e),!0))}))}(),N.composite){const e=new Set(w.map(vt));for(const t of B)Ov(t,tt)&&!e.has(t.path)&&jn(t,Ea.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[t.fileName,N.configFilePath||""])}if(N.paths)for(const e in N.paths)if(ze(N.paths,e))if(Tk(e)||Rn(!0,e,Ea.Pattern_0_can_have_at_most_one_Asterisk_character,e),_t(N.paths[e])){const t=N.paths[e].length;0===t&&Rn(!1,e,Ea.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;n<t;n++){const t=N.paths[e][n],r=typeof t;"string"===r?(Tk(t)||Mn(e,n,Ea.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,t,e),N.baseUrl||Vo(t)||Uo(t)||Mn(e,n,Ea.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Mn(e,n,Ea.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,t,e,r)}}else Rn(!1,e,Ea.Substitutions_for_pattern_0_should_be_an_array,e);N.sourceMap||N.inlineSourceMap||(N.inlineSources&&qn(Ea.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),N.sourceRoot&&qn(Ea.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));N.out&&N.outFile&&qn(Ea.Option_0_cannot_be_specified_with_option_1,"out","outFile");!N.mapRoot||N.sourceMap||N.declarationMap||qn(Ea.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");N.declarationDir&&(_k(N)||qn(Ea.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),e&&qn(Ea.Option_0_cannot_be_specified_with_option_1,"declarationDir",N.out?"out":"outFile"));N.declarationMap&&!_k(N)&&qn(Ea.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");N.lib&&N.noLib&&qn(Ea.Option_0_cannot_be_specified_with_option_1,"lib","noLib");N.noImplicitUseStrict&&pk(N,"alwaysStrict")&&qn(Ea.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");const t=HS(N),n=D(B,(e=>tO(e)&&!e.isDeclarationFile));if(N.isolatedModules||N.verbatimModuleSyntax)0===N.module&&t<2&&N.isolatedModules&&qn(Ea.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===N.preserveConstEnums&&qn(Ea.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,N.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===N.module){const e=Qf(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Se.add(ES(n,e.start,e.length,Ea.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!N.emitDeclarationOnly)if(N.module&&2!==N.module&&4!==N.module)qn(Ea.Only_amd_and_system_modules_are_supported_alongside_0,N.out?"out":"outFile","module");else if(void 0===N.module&&n){const e=Qf(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Se.add(ES(n,e.start,e.length,Ea.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,N.out?"out":"outFile"))}lk(N)&&(1===GS(N)?qn(Ea.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):QS(N)||qn(Ea.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module"));if(N.outDir||N.rootDir||N.sourceRoot||N.mapRoot){const e=xt();N.outDir&&""===e&&B.some((e=>Yo(e.fileName)>1))&&qn(Ea.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}N.useDefineForClassFields&&0===t&&qn(Ea.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");N.checkJs&&!fk(N)&&Se.add(IS(Ea.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));N.emitDeclarationOnly&&(_k(N)||qn(Ea.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),N.noEmit&&qn(Ea.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));N.emitDecoratorMetadata&&!N.experimentalDecorators&&qn(Ea.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");N.jsxFactory?(N.reactNamespace&&qn(Ea.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==N.jsx&&5!==N.jsx||qn(Ea.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",fO.get(""+N.jsx)),ZI(N.jsxFactory,t)||Un("jsxFactory",Ea.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,N.jsxFactory)):N.reactNamespace&&!Os(N.reactNamespace,t)&&Un("reactNamespace",Ea.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,N.reactNamespace);N.jsxFragmentFactory&&(N.jsxFactory||qn(Ea.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==N.jsx&&5!==N.jsx||qn(Ea.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",fO.get(""+N.jsx)),ZI(N.jsxFragmentFactory,t)||Un("jsxFragmentFactory",Ea.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,N.jsxFragmentFactory));N.reactNamespace&&(4!==N.jsx&&5!==N.jsx||qn(Ea.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",fO.get(""+N.jsx)));N.jsxImportSource&&2===N.jsx&&qn(Ea.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",fO.get(""+N.jsx));N.preserveValueImports&&$S(N)<5&&qn(Ea.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const r=$S(N);N.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||qn(Ea.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),N.preserveValueImports&&Kn("preserveValueImports","verbatimModuleSyntax"),N.importsNotUsedAsValues&&Kn("importsNotUsedAsValues","verbatimModuleSyntax"));!N.allowImportingTsExtensions||N.noEmit||N.emitDeclarationOnly||Un("allowImportingTsExtensions",Ea.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=GS(N);N.resolvePackageJsonExports&&!ok(i)&&qn(Ea.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports");N.resolvePackageJsonImports&&!ok(i)&&qn(Ea.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports");N.customConditions&&!ok(i)&&qn(Ea.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions");100!==i||KS(r)||Un("moduleResolution",Ea.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler");if(Pi[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){const e=Pi[r];Un("moduleResolution",Ea.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,e,e)}else if(Ci[i]&&3<=i&&i<=99&&!(100<=r&&r<=199)){const e=Ci[i];Un("module",Ea.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!N.noEmit&&!N.suppressOutputPathCheck){const e=wt(),t=new Set;aU(e,(e=>{N.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)}))}function o(e,t){if(e){const n=vt(e);if(Be.has(n)){let t;N.configFilePath||(t=LS(void 0,Ea.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=LS(t,Ea.Cannot_write_file_0_because_it_would_overwrite_input_file,e),Gn(e,OS(t))}const r=ge.useCaseSensitiveFileNames()?n:St(n);t.has(r)?Gn(e,IS(Ea.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),gr("afterProgram"),hr("Program","beforeProgram","afterProgram"),null==(T=Fr)||T.pop(),tt;function nt(e,t){at(ie,e,t)}function rt(e,t){at(se,e,t)}function at(e,t,n){var r;n?null==(r=null==e?void 0:e.get(n.path))||r.forEach(((e,r,i)=>t(e,r,i,n.path))):null==e||e.forEach(((e,n)=>e.forEach(((e,r,i)=>t(e,r,i,n)))))}function st(){return le||(le=new Map,nt((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&le.set(e.packageId.name,".d.ts"===e.extension||!!le.get(e.packageId.name))})),le)}function ct(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&(Y??(Y=[])).push({kind:2,diagnostics:e.resolutionDiagnostics})}function lt(e,t,n,r){if(ge.resolveModuleNameLiterals||!ge.resolveModuleNames)return ct(n);if(!Fe||Vs(t))return;const i=Zo(_a(e.originalFileName,ke)),o=ft(e),a=Fe.getFromNonRelativeNameCache(t,r,i,o);a&&ct(a)}function ut(e,t,n){var i,o;if(!e.length)return r;const a=_a(t.originalFileName,ke),s=ft(t);null==(i=Fr)||i.push(Fr.Phase.Program,"resolveModuleNamesWorker",{containingFileName:a}),gr("beforeResolveModule");const c=Pe(e,a,s,N,t,n);return gr("afterResolveModule"),hr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(o=Fr)||o.pop(),c}function pt(e,t,n){var r,i;if(!e.length)return[];const o=dt(t)?void 0:t,a=dt(t)?t:_a(t.originalFileName,ke),s=o&&ft(o);null==(r=Fr)||r.push(Fr.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),gr("beforeResolveTypeReference");const c=Ae(e,a,s,N,o,n);return gr("afterResolveTypeReference"),hr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=Fr)||i.pop(),c}function ft(e){const t=hn(e.originalFileName);if(t||!oO(e.originalFileName))return t;const n=mt(e.path);if(n)return n;if(!ge.realpath||!N.preserveSymlinks||!e.originalFileName.includes(Ij))return;const r=vt(ge.realpath(e.originalFileName));return r===e.path?void 0:mt(r)}function mt(e){const t=vn(e);return dt(t)?hn(t):t?yn((t=>{const n=Ev(t.commandLine.options);if(n)return vt(n)===e?t:void 0})):void 0}function yt(e){if(Sa(xe,e.fileName,!1)){const t=ea(e.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;const n=Kt(sn(t,"lib."),".d.ts"),r=gO.indexOf(n);if(-1!==r)return r+1}return gO.length+2}function vt(e){return pa(e,ke,Fn)}function xt(){if(void 0===z){const e=M(B,(e=>Ov(e,tt)));z=yU(N,(()=>G(e,(e=>e.isDeclarationFile?void 0:e.fileName))),ke,Fn,(t=>function(e,t){let n=!0;const r=ge.getCanonicalFileName(_a(t,ke));for(const i of e)if(!i.isDeclarationFile){0!==ge.getCanonicalFileName(_a(i.fileName,ke)).indexOf(r)&&(jn(i,Ea.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[i.fileName,t]),n=!1)}return n}(e,t)))}return z}function kt(e,t){if(0===et&&!t.ambientModuleNames.length)return ut(e,t,void 0);let n,i,o;const a=eV,s=O&&O.getSourceFile(t.fileName);for(let r=0;r<e.length;r++){const c=e[r];if(t===s&&!Ee(t.path)){const n=NV(t,c),a=null==O?void 0:O.getResolvedModule(t,c.text,n);if(null==a?void 0:a.resolvedModule){Mj(N,ge)&&jj(ge,a.resolvedModule.packageId?Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,c.text,_a(t.originalFileName,ke),a.resolvedModule.resolvedFileName,a.resolvedModule.packageId&&xp(a.resolvedModule.packageId)),(i??(i=new Array(e.length)))[r]=a,(o??(o=[])).push(c);continue}}let l=!1;I(t.ambientModuleNames,c.text)?(l=!0,Mj(N,ge)&&jj(ge,Ea.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,c.text,_a(t.originalFileName,ke))):l=_(c),l?(i||(i=new Array(e.length)))[r]=a:(n??(n=[])).push(c)}const c=n&&n.length?ut(n,t,o):r;if(!i)return Sn.assert(c.length===e.length),c;let l=0;for(let e=0;e<i.length;e++)i[e]||(i[e]=c[l],l++);return Sn.assert(l===c.length),i;function _(e){var n;const r=null==(n=null==O?void 0:O.getResolvedModule(t,e.text,NV(t,e)))?void 0:n.resolvedModule,i=r&&O.getSourceFile(r.resolvedFileName);if(r&&i)return!1;const o=H.get(e.text);return!!o&&(Mj(N,ge)&&jj(ge,Ea.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e.text,o),!0)}}function Ct(e,t){var n;if(0===et)return pt(e,t,void 0);let i,o,a;const s=dt(t)?void 0:t,c=dt(t)?void 0:O&&O.getSourceFile(t.fileName),l=dt(t)?!Ee(vt(t)):t===c&&!Ee(t.path);for(let r=0;r<e.length;r++){const c=e[r];if(l){const i=EV(c),l=TV(c,null==s?void 0:s.impliedNodeFormat),_=dt(t)?null==(n=null==O?void 0:O.getAutomaticTypeDirectiveResolutions())?void 0:n.get(i,l):null==O?void 0:O.getResolvedTypeReferenceDirective(t,i,l);if(null==_?void 0:_.resolvedTypeReferenceDirective){Mj(N,ge)&&jj(ge,_.resolvedTypeReferenceDirective.packageId?Ea.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ea.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,i,dt(t)?t:_a(t.originalFileName,ke),_.resolvedTypeReferenceDirective.resolvedFileName,_.resolvedTypeReferenceDirective.packageId&&xp(_.resolvedTypeReferenceDirective.packageId)),(o??(o=new Array(e.length)))[r]=_,(a??(a=[])).push(c);continue}}(i??(i=[])).push(c)}if(!i)return o||r;const _=pt(i,t,a);if(!o)return Sn.assert(_.length===e.length),_;let u=0;for(let e=0;e<o.length;e++)o[e]||(o[e]=_[u],u++);return Sn.assert(u===_.length),o}function wt(e){return{getPrependNodes:Ft,getCanonicalFileName:Fn,getCommonSourceDirectory:tt.getCommonSourceDirectory,getCompilerOptions:tt.getCompilerOptions,getCurrentDirectory:()=>ke,getSourceFile:tt.getSourceFile,getSourceFileByPath:tt.getSourceFileByPath,getSourceFiles:tt.getSourceFiles,getLibFileFromReference:tt.getLibFileFromReference,isSourceFileFromExternalLibrary:At,getResolvedProjectReferenceToRedirect:hn,getProjectReferenceRedirect:fn,isSourceOfProjectReferenceRedirect:bn,getSymlinkCache:Qn,writeFile:e||Nt,isEmitBlocked:Lt,readFile:e=>ge.readFile(e),fileExists:e=>{const t=vt(e);return!!Mt(t)||!I(Je,t)&&ge.fileExists(e)},useCaseSensitiveFileNames:()=>ge.useCaseSensitiveFileNames(),getBuildInfo:e=>{var t;return null==(t=tt.getBuildInfo)?void 0:t.call(tt,e)},getSourceFileFromReference:(e,t)=>tt.getSourceFileFromReference(e,t),redirectTargetsMap:Me,getFileIncludeReasons:tt.getFileIncludeReasons,createHash:it(ge,ge.createHash)}}function Nt(e,t,n,r,i,o){ge.writeFile(e,t,n,r,i,o)}function Dt(){return Ue}function Ft(){return XV(E,((e,t)=>{var n;return null==(n=Ue[t])?void 0:n.commandLine}),(e=>{const t=vt(e),n=Mt(t);return n?n.text:Be.has(t)?void 0:ge.readFile(t)}),ge)}function At(e){return!!me.get(e.path)}function Ot(){return q||(q=IB(tt))}function Lt(e){return Ne.has(vt(e))}function jt(e){return Mt(vt(e))}function Mt(e){return Be.get(e)||void 0}function Rt(e,t,n){return Ws(e?t(e,n):V(tt.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),t(e,n)))))}function Bt(e){var t;if(hT(e,N,tt))return r;const n=Se.getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Ht(e,e.commentDirectives,n).diagnostics:n}function Jt(e){return Sg(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return zt((()=>{const t=[];return n(e,e),GI(e,n,r),t;function n(e,n){switch(n.kind){case 169:case 172:case 174:if(n.questionToken===e)return t.push(a(e,Ea.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(n.type===e)return t.push(a(e,Ea.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 273:if(e.isTypeOnly)return t.push(a(n,Ea._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(e.isTypeOnly)return t.push(a(e,Ea._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(e.isTypeOnly)return t.push(a(e,Ea._0_declarations_can_only_be_used_in_TypeScript_files,hP(e)?"import...type":"export...type")),"skip";break;case 271:return t.push(a(e,Ea.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(e.isExportEquals)return t.push(a(e,Ea.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(119===e.token)return t.push(a(e,Ea.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const r=ts(120);return Sn.assertIsDefined(r),t.push(a(e,Ea._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 267:const i=32&e.flags?ts(145):ts(144);return Sn.assertIsDefined(i),t.push(a(e,Ea._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 265:return t.push(a(e,Ea.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return e.body?void 0:(t.push(a(e,Ea.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const o=Sn.checkDefined(ts(94));return t.push(a(e,Ea._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 235:return t.push(a(e,Ea.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return t.push(a(e.type,Ea.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return t.push(a(e.type,Ea.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:Sn.fail()}}function r(e,n){if(AA(n)){const e=D(n.modifiers,uD);e&&t.push(a(e,Ea.Decorators_are_not_valid_here))}else if(_I(n)&&n.modifiers){const e=P(n.modifiers,uD);if(e>=0)if(_D(n)&&!N.experimentalDecorators)t.push(a(n.modifiers[e],Ea.Decorators_are_not_valid_here));else if(YF(n)){const r=P(n.modifiers,KN);if(r>=0){const i=P(n.modifiers,GN);if(e>r&&i>=0&&e<i)t.push(a(n.modifiers[e],Ea.Decorators_are_not_valid_here));else if(r>=0&&e<r){const i=P(n.modifiers,uD,r);i>=0&&t.push(pT(a(n.modifiers[i],Ea.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),a(n.modifiers[e],Ea.Decorator_used_before_export_here)))}}}}switch(n.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(e===n.typeParameters)return t.push(o(e,Ea.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(e===n.modifiers)return i(n.modifiers,243===n.kind),"skip";break;case 172:if(e===n.modifiers){for(const n of e)f_(n)&&126!==n.kind&&129!==n.kind&&t.push(a(n,Ea.The_0_modifier_can_only_be_used_in_TypeScript_files,ts(n.kind)));return"skip"}break;case 169:if(e===n.modifiers&&re(e,f_))return t.push(o(e,Ea.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(e===n.typeArguments)return t.push(o(e,Ea.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}}function i(e,n){for(const 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(a(r,Ea.The_0_modifier_can_only_be_used_in_TypeScript_files,ts(r.kind)))}}function o(t,n,...r){const i=t.pos;return ES(e,i,t.end-i,n,...r)}function a(t,n,...r){return zf(e,t,n,...r)}}))}(e)),oe(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function zt(e){try{return e()}catch(e){throw e instanceof qr&&(q=void 0),e}}function qt(e,t){return oe(KV(Ut(e,t),N),Bt(e))}function Ut(e,t){return Xt(e,t,K,Vt)}function Vt(e,t){return zt((()=>{if(hT(e,N,tt))return r;const n=Ot();Sn.assert(!!e.bindDiagnostics);const i=(1===e.scriptKind||2===e.scriptKind)&&_T(e,N),o=Np(e,N.checkJs),a=!(!!e.checkJsDirective&&!1===e.checkJsDirective.enabled)&&(3===e.scriptKind||4===e.scriptKind||5===e.scriptKind||o||i||7===e.scriptKind);let s=a?e.bindDiagnostics:r,c=a?n.getDiagnostics(e,t):r;return o&&(s=M(s,(e=>iV.has(e.code))),c=M(c,(e=>iV.has(e.code)))),function(e,t,...n){var r;const i=U(n);if(!t||!(null==(r=e.commentDirectives)?void 0:r.length))return i;const{diagnostics:o,directives:a}=Ht(e,e.commentDirectives,i);for(const t of a.getUnusedExpectations())o.push(Kf(e,t.range,Ea.Unused_ts_expect_error_directive));return o}(e,a&&!o,s,c,i?e.jsDocDiagnostics:void 0)}))}function Ht(e,t,n){const r=Hp(e,t),i=n.filter((e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=as(n);let o=ss(i,r).line-1;for(;o>=0;){if(t.markUsed(o))return o;const e=n.text.slice(i[o],i[o+1]).trim();if(""!==e&&!/^(\s*)\/\/(.*)$/.test(e))return-1;o--}return-1}(e,r)));return{diagnostics:i,directives:r}}function $t(e,t){return Xt(e,t,Q,Gt)}function Gt(e,t){return zt((()=>{const n=Ot().getEmitResolver(e,t);return Oq(wt(gt),n,e)||r}))}function Xt(e,t,n,r){var i;const o=e?null==(i=n.perFile)?void 0:i.get(e.path):n.allDiagnostics;if(o)return o;const a=r(e,t);return e?(n.perFile||(n.perFile=new Map)).set(e.path,a):n.allDiagnostics=a,a}function Qt(e,t){return e.isDeclarationFile?[]:$t(e,t)}function Yt(e,t,n,r){on(ua(e),t,n,void 0,r)}function Zt(e,t){return e.fileName===t.fileName}function en(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function tn(e,t){const n=AC.createStringLiteral(e),r=AC.createImportDeclaration(void 0,void 0,n,void 0);return aw(r,2),AT(n,r),AT(r,t),n.flags&=-17,r.flags&=-17,n}function nn(e){if(e.imports)return;const t=Sg(e),n=tO(e);let i,o,a;if((YS(N)||n)&&!e.isDeclarationFile){N.importHelpers&&(i=[tn(nd,e)]);const t=kk(Sk(N,e),N);t&&(i||(i=[])).push(tn(t,e))}for(const t of e.statements)c(t,!1);const s=t&&ak(N);return(4194304&e.flags||s)&&function(e){const t=/import|require/g;for(;null!==t.exec(e.text);){const n=l(e,t.lastIndex);s&&Fg(n,!0)||sm(n)&&n.arguments.length>=1&&Qu(n.arguments[0])?(OT(n,!1),i=he(i,n.arguments[0])):lm(n)&&(OT(n,!1),i=he(i,n.argument.literal))}}(e),e.imports=i||r,e.moduleAugmentations=o||r,void(e.ambientModuleNames=a||r);function c(t,r){if(Ff(t)){const n=fh(t);!(n&&FN(n)&&n.text)||r&&Vs(n.text)||(OT(t,!1),i=he(i,n),Re||0!==de||e.isDeclarationFile||(Re=an(n.text,"node:")))}else if(nP(t)&&lf(t)&&(r||fb(t,128)||e.isDeclarationFile)){t.name.parent=t;const i=Ly(t.name);if(n||r&&!Vs(i))(o||(o=[])).push(t.name);else if(!r){e.isDeclarationFile&&(a||(a=[])).push(i);const n=t.body;if(n)for(const e of n.statements)c(e,!0)}}}function l(e,n){let r=e;const i=e=>{if(e.pos<=n&&(n<e.end||n===e.end&&1===e.kind))return e};for(;;){const e=t&&Vu(r)&&b(r.jsDoc,i)||KI(r,i);if(!e)return r;r=e}}}function rn(e,t,n,r){if(Ho(e)){const i=ge.getCanonicalFileName(e);if(!N.allowNonTsExtensions&&!b(U(Ce),(e=>$o(i,e))))return void(n&&(Wk(i)?n(Ea.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(Ea.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+U(Te).join("', '")+"'")));const o=t(e);if(n)if(o)BV(r)&&i===ge.getCanonicalFileName(Mt(r.file).fileName)&&n(Ea.A_file_cannot_have_a_reference_to_itself);else{const t=fn(e);t?n(Ea.Output_file_0_has_not_been_built_from_source_file_1,t,e):n(Ea.File_0_not_found,e)}return o}{const r=N.allowNonTsExtensions&&t(e);if(r)return r;if(n&&N.allowNonTsExtensions)return void n(Ea.File_0_not_found,e);const i=b(Te[0],(n=>t(e+n)));return n&&!i&&n(Ea.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+U(Te).join("', '")+"'"),i}}function on(e,t,n,r,i){rn(e,(e=>_n(e,t,n,i,r)),((e,...t)=>Ln(void 0,i,e,t)),i)}function cn(e,t){return on(e,!1,!1,void 0,t)}function ln(e,t,n){!BV(n)&&re($.get(t.path),BV)?Ln(t,n,Ea.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):Ln(t,n,Ea.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function _n(e,t,n,r,i){var o,a;null==(o=Fr)||o.push(Fr.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:Ur[r.kind]});const s=function(e,t,n,r,i){var o;const a=vt(e);if(Ke){let o=vn(a);if(!o&&ge.realpath&&N.preserveSymlinks&&oO(e)&&e.includes(Ij)){const t=vt(ge.realpath(e));t!==a&&(o=vn(t))}if(o){const e=dt(o)?_n(o,t,n,r,i):void 0;return e&&pn(e,a,void 0),e}}const s=e;if(Be.has(a)){const n=Be.get(a);if(dn(n||void 0,r),n&&!1!==N.forceConsistentCasingInFileNames){const t=n.fileName;vt(t)!==vt(e)&&(e=fn(e)||e);da(t,ke)!==da(e,ke)&&ln(e,n,r)}return n&&me.get(n.path)&&0===de?(me.set(n.path,!1),N.noResolve||(kn(n,t),Tn(n)),N.noLib||Dn(n),pe.set(n.path,!1),En(n)):n&&pe.get(n.path)&&de<ue&&(pe.set(n.path,!1),En(n)),n||void 0}let c;if(BV(r)&&!Ke){const t=mn(e);if(t){if(Ev(t.commandLine.options))return;const n=gn(t,e);e=n,c=vt(n)}}const l=un(e,Fe,ge,N),_=ge.getSourceFile(e,l,(t=>Ln(void 0,r,Ea.Cannot_read_file_0_Colon_1,[e,t])),Ze);if(i){const t=xp(i),n=Le.get(t);if(n){const t=function(e,t,n,r,i,o,a){var s;const c=hI.createRedirectedSourceFile({redirectTarget:e,unredirected:t});return c.fileName=n,c.path=r,c.resolvedPath=i,c.originalFileName=o,c.packageJsonLocations=(null==(s=a.packageJsonLocations)?void 0:s.length)?a.packageJsonLocations:void 0,c.packageJsonScope=a.packageJsonScope,me.set(r,de>0),c}(n,_,e,a,vt(e),s,l);return Me.add(n.path,e),pn(t,a,c),dn(t,r),je.set(a,bp(i)),R.push(t),t}_&&(Le.set(t,_),je.set(a,bp(i)))}if(pn(_,a,c),_){if(me.set(a,de>0),_.fileName=e,_.path=a,_.resolvedPath=vt(e),_.originalFileName=s,_.packageJsonLocations=(null==(o=l.packageJsonLocations)?void 0:o.length)?l.packageJsonLocations:void 0,_.packageJsonScope=l.packageJsonScope,dn(_,r),ge.useCaseSensitiveFileNames()){const t=St(a),n=qe.get(t);n?ln(e,n,r):qe.set(t,_)}ve=ve||_.hasNoDefaultLib&&!n,N.noResolve||(kn(_,t),Tn(_)),N.noLib||Dn(_),En(_),t?j.push(_):R.push(_)}return _}(e,t,n,r,i);return null==(a=Fr)||a.pop(),s}function un(e,t,n,r){const i=WV(_a(e,ke),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=HS(r),a=WS(r);return"object"==typeof i?{...i,languageVersion:o,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}:{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}}function dn(e,t){e&&$.add(e.path,t)}function pn(e,t,n){n?(Be.set(n,e),Be.set(t,e||!1)):Be.set(t,e)}function fn(e){const t=mn(e);return t&&gn(t,e)}function mn(e){if(Ue&&Ue.length&&!oO(e)&&!$o(e,".json"))return hn(e)}function gn(e,t){const n=Ev(e.commandLine.options);return n?tT(n,".d.ts"):pU(t,e.commandLine,!ge.useCaseSensitiveFileNames())}function hn(e){void 0===We&&(We=new Map,yn((e=>{vt(N.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>We.set(vt(t),e.sourceFile.path)))})));const t=We.get(vt(e));return t&&xn(t)}function yn(e){return OV(Ue,e)}function vn(e){if(oO(e))return void 0===He&&(He=new Map,yn((e=>{const t=Ev(e.commandLine.options);if(t){const e=tT(t,".d.ts");He.set(vt(e),!0)}else{const t=Tt((()=>vU(e.commandLine,!ge.useCaseSensitiveFileNames())));b(e.commandLine.fileNames,(n=>{if(!oO(n)&&!$o(n,".json")){const r=pU(n,e.commandLine,!ge.useCaseSensitiveFileNames(),t);He.set(vt(r),n)}}))}}))),He.get(e)}function bn(e){return Ke&&!!hn(e)}function xn(e){if(Ve)return Ve.get(e)||void 0}function kn(e,t){b(e.referencedFiles,((n,r)=>{on(cV(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})}))}function Tn(e){const t=e.typeReferenceDirectives;if(!t.length)return;const n=(null==ce?void 0:ce.get(e.path))||Ct(t,e),r=uM();(se??(se=new Map)).set(e.path,r);for(let i=0;i<t.length;i++){const t=e.typeReferenceDirectives[i],o=n[i],a=St(t.fileName);r.set(a,TV(t,e.impliedNodeFormat),o);Cn(a,t.resolutionMode||e.impliedNodeFormat,o,{kind:5,file:e.path,index:i})}}function Cn(e,t,n,r){var i,o;null==(i=Fr)||i.push(Fr.Phase.Program,"processTypeReferenceDirective",{directive:e,hasResolved:!!n.resolvedTypeReferenceDirective,refKind:r.kind,refPath:BV(r)?r.file:void 0}),function(e,t,n,r){var i;ct(n);const o=null==(i=_e.get(e,t))?void 0:i.resolvedTypeReferenceDirective;if(o&&o.primary)return;let a=!0;const{resolvedTypeReferenceDirective:s}=n;if(s){if(s.isExternalLibraryImport&&de++,s.primary)on(s.resolvedFileName,!1,!1,s.packageId,r);else if(o){if(s.resolvedFileName!==o.resolvedFileName){const t=ge.readFile(s.resolvedFileName),n=jt(o.resolvedFileName);t!==n.text&&Ln(n,r,Ea.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[e,s.resolvedFileName,o.resolvedFileName])}a=!1}else on(s.resolvedFileName,!1,!1,s.packageId,r);s.isExternalLibraryImport&&de--}else Ln(void 0,r,Ea.Cannot_find_type_definition_file_for_0,[e]);a&&_e.set(e,t,n)}(e,t,n,r),null==(o=Fr)||o.pop()}function wn(e){const t=null==te?void 0:te.get(e);if(t)return t.actual;const n=Nn(e);return(te??(te=new Map)).set(e,n),n.actual}function Nn(e){var t,n,r,i,o;const a=null==ne?void 0:ne.get(e);if(a)return a;if(0!==et&&O&&!Ie(e)){const i=null==(t=O.resolvedLibReferences)?void 0:t.get(e);if(i){if(i.resolution&&Mj(N,ge)){const t=MV(e),o=jV(N,ke,e);jj(ge,i.resolution.resolvedModule?i.resolution.resolvedModule.packageId?Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,_a(o,ke),null==(n=i.resolution.resolvedModule)?void 0:n.resolvedFileName,(null==(r=i.resolution.resolvedModule)?void 0:r.packageId)&&xp(i.resolution.resolvedModule.packageId))}return(ne??(ne=new Map)).set(e,i),i}}const s=MV(e),c=jV(N,ke,e);null==(i=Fr)||i.push(Fr.Phase.Program,"resolveLibrary",{resolveFrom:c}),gr("beforeResolveLibrary");const l=Oe(s,c,N,e);gr("afterResolveLibrary"),hr("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),null==(o=Fr)||o.pop();const _={resolution:l,actual:l.resolvedModule?l.resolvedModule.resolvedFileName:sa(xe,e)};return(ne??(ne=new Map)).set(e,_),_}function Dn(e){b(e.libReferenceDirectives,((t,n)=>{const{libName:r,libFileName:i}=RV(t);if(i)Yt(wn(i),!0,!0,{kind:7,file:e.path,index:n});else{const t=Wt(Kt(sn(r,"lib."),".d.ts"),gO,bt),i=t?Ea.Cannot_find_lib_definition_for_0_Did_you_mean_1:Ea.Cannot_find_lib_definition_for_0,o=t?[r,t]:[r];(Y||(Y=[])).push({kind:0,reason:{kind:7,file:e.path,index:n},diagnostic:i,args:o})}}))}function Fn(e){return ge.getCanonicalFileName(e)}function En(e){var t;if(nn(e),e.imports.length||e.moduleAugmentations.length){const n=ZV(e),r=(null==ae?void 0:ae.get(e.path))||kt(n,e);Sn.assert(r.length===n.length);const i=(Ke?null==(t=ft(e))?void 0:t.commandLine.options:void 0)||N,o=uM();(ie??(ie=new Map)).set(e.path,o);for(let t=0;t<n.length;t++){const a=r[t].resolvedModule,s=n[t].text,c=NV(e,n[t]);if(o.set(s,c,r[t]),lt(e,s,r[t],c),!a)continue;const l=a.isExternalLibraryImport,_=!aT(a.extension),u=l&&_,d=a.resolvedFileName;l&&de++;const p=u&&de>ue,f=d&&!YV(i,a,e)&&!i.noResolve&&t<e.imports.length&&!p&&!(_&&!fk(i))&&(Tg(e.imports[t])||!(16777216&e.imports[t].flags));p?pe.set(e.path,!0):f&&_n(d,!1,!1,{kind:3,file:e.path,index:t},a.packageId),l&&de--}}}function An(e){Ve||(Ve=new Map);const t=QV(e),n=vt(t),r=Ve.get(n);if(void 0!==r)return r||void 0;let i,o;if(ge.getParsedCommandLine){if(i=ge.getParsedCommandLine(t),!i)return pn(void 0,n,void 0),void Ve.set(n,!1);o=Sn.checkDefined(i.options.configFile),Sn.assert(!o.path||o.path===n),pn(o,n,void 0)}else{const e=_a(Zo(t),ke);if(o=ge.getSourceFile(t,100),pn(o,n,void 0),void 0===o)return void Ve.set(n,!1);i=HL(o,ye,e,void 0,t)}o.fileName=t,o.path=n,o.resolvedPath=n,o.originalFileName=t;const a={commandLine:i,sourceFile:o};return Ve.set(n,a),i.projectReferences&&(a.references=i.projectReferences.map(An)),a}function In(t,n,r,i){const o=new Pn(t),a=new Pn(n),s=new Pn(A||e),c=function(){const e=N.ignoreDeprecations;if(e){if("5.0"===e)return new Pn(e);L()}return Pn.zero}(),l=!(1===a.compareTo(s)),_=!l&&-1===c.compareTo(o);(l||_)&&i(((e,i,o)=>{l?void 0===i?r(e,i,o,Ea.Option_0_has_been_removed_Please_remove_it_from_your_configuration,e):r(e,i,o,Ea.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,e,i):void 0===i?r(e,i,o,Ea.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,e,n,t):r(e,i,o,Ea.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,e,i,n,t)}))}function On(e,t,n,i){var o;let a,s,c=BV(t)?t:void 0;e&&(null==(o=$.get(e.path))||o.forEach(p)),t&&p(t),c&&1===(null==a?void 0:a.length)&&(a=void 0);const l=c&&zV(tt,c),_=a&&LS(a,Ea.The_file_is_in_the_program_because_Colon),u=e&&EH(e),d=LS(u?_?[_,...u]:u:_,n,...i||r);return l&&JV(l)?Wf(l.file,l.pos,l.end-l.pos,d,s):OS(d,s);function p(e){(a||(a=[])).push(OH(tt,e)),!c&&BV(e)?c=e:c!==e&&(s=he(s,function(e){if(BV(e)){const t=zV(tt,e);let n;switch(e.kind){case 3:n=Ea.File_is_included_via_import_here;break;case 4:n=Ea.File_is_included_via_reference_here;break;case 5:n=Ea.File_is_included_via_type_library_reference_here;break;case 7:n=Ea.File_is_included_via_library_reference_here;break;default:Sn.assertNever(e)}return JV(t)?ES(t.file,t.pos,t.end-t.pos,n):void 0}if(!N.configFile)return;let t,n;switch(e.kind){case 0:if(!N.configFile.configFileSpecs)return;const i=_a(w[e.index],ke),o=AH(tt,i);if(o){t=Bm(N.configFile,"files",o),n=Ea.File_is_matched_by_files_list_specified_here;break}const a=IH(tt,i);if(!a||!dt(a))return;t=Bm(N.configFile,"include",a),n=Ea.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const s=Sn.checkDefined(null==Ue?void 0:Ue[e.index]),c=LV(E,Ue,((e,t,n)=>e===s?{sourceFile:(null==t?void 0:t.sourceFile)||N.configFile,index:n}:void 0));if(!c)return;const{sourceFile:l,index:_}=c,u=Jm(l,"references",(e=>XD(e.initializer)?e.initializer:void 0));return u&&u.elements.length>_?zf(l,u.elements[_],2===e.kind?Ea.File_is_output_from_referenced_project_specified_here:Ea.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!N.types)return;t=zn("types",e.typeReference),n=Ea.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==e.index){t=zn("lib",N.lib[e.index]),n=Ea.File_is_library_specified_here;break}const d=dp(bO.type,((e,t)=>e===HS(N)?t:void 0));t=d?(r=d,Bn("target",(e=>FN(e.initializer)&&e.initializer.text===r?e.initializer:void 0))):void 0,n=Ea.File_is_default_library_for_target_specified_here;break;default:Sn.assertNever(e)}var r;return t&&zf(N.configFile,t,n)}(e))),e===t&&(t=void 0)}}function Ln(e,t,n,r){(Y||(Y=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function jn(e,t,n){Se.add(On(e,void 0,t,n))}function Mn(e,t,n,...r){let i=!0;Jn((o=>{QD(o.initializer)&&jm(o.initializer,e,(e=>{const o=e.initializer;XD(o)&&o.elements.length>t&&(Se.add(zf(N.configFile,o.elements[t],n,...r)),i=!1)}))})),i&&Se.add(IS(n,...r))}function Rn(e,t,n,...r){let i=!0;Jn((o=>{QD(o.initializer)&&$n(o.initializer,e,t,void 0,n,...r)&&(i=!1)})),i&&Se.add(IS(n,...r))}function Bn(e,t){return jm(Hn(),e,t)}function Jn(e){return Bn("paths",e)}function zn(e,t){const n=Hn();return n&&Mm(n,e,t)}function qn(e,t,n,r){Wn(!0,t,n,e,t,n,r)}function Un(e,t,...n){Wn(!1,e,void 0,t,...n)}function Vn(e,t,n,...r){const i=Jm(e||N.configFile,"references",(e=>XD(e.initializer)?e.initializer:void 0));i&&i.elements.length>t?Se.add(zf(e||N.configFile,i.elements[t],n,...r)):Se.add(IS(n,...r))}function Wn(e,t,n,r,...i){const o=Hn();(!o||!$n(o,e,t,n,r,...i))&&("messageText"in r?Se.add(OS(r)):Se.add(IS(r,...i)))}function Hn(){return void 0===De&&(De=jm(Rm(N.configFile),"compilerOptions",(e=>QD(e.initializer)?e.initializer:void 0))||!1),De||void 0}function $n(e,t,n,r,i,...o){let a=!1;return jm(e,n,(e=>{"messageText"in i?Se.add(qf(N.configFile,t?e.name:e.initializer,i)):Se.add(zf(N.configFile,t?e.name:e.initializer,i,...o)),a=!0}),r),a}function Kn(e,t){const n=Hn();n?$n(n,!0,e,void 0,Ea.Option_0_is_redundant_and_cannot_be_specified_with_option_1,e,t):qn(Ea.Option_0_is_redundant_and_cannot_be_specified_with_option_1,e,t)}function Gn(e,t){Ne.set(vt(e),!0),Se.add(t)}function Xn(e,t){return 0===xa(e,t,ke,!ge.useCaseSensitiveFileNames())}function Qn(){return ge.getSymlinkCache?ge.getSymlinkCache():(J||(J=Ck(ke,Fn)),B&&!J.hasProcessedResolutions()&&J.setSymlinksFromResolutions(nt,rt,ee),J)}}function $V(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return e.getSemanticDiagnostics(t,r),t||Ev(i)?oV:e.emitBuildInfo(n,r);if(!i.noEmitOnError)return;let o,a=[...e.getOptionsDiagnostics(r),...e.getSyntacticDiagnostics(t,r),...e.getGlobalDiagnostics(r),...e.getSemanticDiagnostics(t,r)];if(0===a.length&&_k(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,r)),a.length){if(!t&&!Ev(i)){const 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 KV(e,t){return M(e,(e=>!e.skippedOn||!t[e.skippedOn]))}function GV(e,t=e){return{fileExists:e=>t.fileExists(e),readDirectory:(e,n,r,i,o)=>(Sn.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(e,n,r,i,o)),readFile:e=>t.readFile(e),directoryExists:it(t,t.directoryExists),getDirectories:it(t,t.getDirectories),realpath:it(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||vt,trace:e.trace?t=>e.trace(t):void 0}}function XV(e,t,n,i){if(!e)return r;let o;for(let r=0;r<e.length;r++){const a=e[r],s=t(a,r);if(a.prepend&&s&&s.options){if(!Ev(s.options))continue;const{jsFilePath:e,sourceMapFilePath:t,declarationFilePath:r,declarationMapPath:a,buildInfoPath:c}=cU(s.options,!0),l=GC(n,e,t,r,a,c,i,s.options);(o||(o=[])).push(l)}}return o||r}function QV(e){return r$(e.path)}function YV(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 lk(e)?void 0:Ea.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return n||e.allowArbitraryExtensions?void 0:Ea.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:Ea.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return fk(e)||!pk(e,"noImplicitAny")?void 0:Ea.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function ZV({imports:e,moduleAugmentations:t}){const n=e.map((e=>e));for(const e of t)11===e.kind&&n.push(e);return n}function eW({imports:e,moduleAugmentations:t},n){if(n<e.length)return e[n];let r=e.length;for(const e of t)if(11===e.kind){if(n===r)return e;r++}Sn.fail("should never ask for module name at index higher than possible module name")}var tW,nW=g({"src/compiler/program.ts"(){OK(),Zi(),$U=(e=>(e.Grey="",e.Red="",e.Yellow="",e.Blue="",e.Cyan="",e))($U||{}),KU="",GU=" ",XU="",QU="...",YU=" ",ZU=" ",eV={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},tV={getName:FV,getMode:(e,t)=>NV(t,e)},nV={getName:EV,getMode:(e,t)=>TV(e,null==t?void 0:t.impliedNodeFormat)},rV="__inferred type names__.ts",iV=new Set([Ea.Cannot_redeclare_block_scoped_variable_0.code,Ea.A_module_cannot_have_multiple_default_exports.code,Ea.Another_export_default_is_here.code,Ea.The_first_export_default_is_here.code,Ea.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,Ea.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,Ea.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,Ea.constructor_is_a_reserved_word.code,Ea.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,Ea.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,Ea.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,Ea.Invalid_use_of_0_in_strict_mode.code,Ea.A_label_is_not_allowed_here.code,Ea.with_statements_are_not_allowed_in_strict_mode.code,Ea.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,Ea.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,Ea.A_class_declaration_without_the_default_modifier_must_have_a_name.code,Ea.A_class_member_cannot_have_the_0_keyword.code,Ea.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,Ea.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,Ea.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Ea.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,Ea.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,Ea.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,Ea.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,Ea.A_destructuring_declaration_must_have_an_initializer.code,Ea.A_get_accessor_cannot_have_parameters.code,Ea.A_rest_element_cannot_contain_a_binding_pattern.code,Ea.A_rest_element_cannot_have_a_property_name.code,Ea.A_rest_element_cannot_have_an_initializer.code,Ea.A_rest_element_must_be_last_in_a_destructuring_pattern.code,Ea.A_rest_parameter_cannot_have_an_initializer.code,Ea.A_rest_parameter_must_be_last_in_a_parameter_list.code,Ea.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,Ea.A_return_statement_cannot_be_used_inside_a_class_static_block.code,Ea.A_set_accessor_cannot_have_rest_parameter.code,Ea.A_set_accessor_must_have_exactly_one_parameter.code,Ea.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Ea.An_export_declaration_cannot_have_modifiers.code,Ea.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,Ea.An_import_declaration_cannot_have_modifiers.code,Ea.An_object_member_cannot_be_declared_optional.code,Ea.Argument_of_dynamic_import_cannot_be_spread_element.code,Ea.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,Ea.Cannot_redeclare_identifier_0_in_catch_clause.code,Ea.Catch_clause_variable_cannot_have_an_initializer.code,Ea.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,Ea.Classes_can_only_extend_a_single_class.code,Ea.Classes_may_not_have_a_field_named_constructor.code,Ea.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,Ea.Duplicate_label_0.code,Ea.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,Ea.for_await_loops_cannot_be_used_inside_a_class_static_block.code,Ea.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,Ea.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,Ea.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,Ea.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,Ea.Jump_target_cannot_cross_function_boundary.code,Ea.Line_terminator_not_permitted_before_arrow.code,Ea.Modifiers_cannot_appear_here.code,Ea.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,Ea.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,Ea.Private_identifiers_are_not_allowed_outside_class_bodies.code,Ea.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,Ea.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,Ea.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,Ea.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,Ea.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,Ea.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,Ea.Trailing_comma_not_allowed.code,Ea.Variable_declaration_list_cannot_be_empty.code,Ea._0_and_1_operations_cannot_be_mixed_without_parentheses.code,Ea._0_expected.code,Ea._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,Ea._0_list_cannot_be_empty.code,Ea._0_modifier_already_seen.code,Ea._0_modifier_cannot_appear_on_a_constructor_declaration.code,Ea._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,Ea._0_modifier_cannot_appear_on_a_parameter.code,Ea._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,Ea._0_modifier_cannot_be_used_here.code,Ea._0_modifier_must_precede_1_modifier.code,Ea._0_declarations_can_only_be_declared_inside_a_block.code,Ea._0_declarations_must_be_initialized.code,Ea.extends_clause_already_seen.code,Ea.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,Ea.Class_constructor_may_not_be_a_generator.code,Ea.Class_constructor_may_not_be_an_accessor.code,Ea.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Ea.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Ea.Private_field_0_must_be_declared_in_an_enclosing_class.code,Ea.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),oV={diagnostics:r,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),rW=g({"src/compiler/builderStatePublic.ts"(){}});function iW(e,t,n,r,i,o){const a=[],{emitSkipped:s,diagnostics:c}=e.emit(t,(function(e,t,n){a.push({name:e,writeByteOrderMark:n,text:t})}),r,n,i,o);return{outputFiles:a,emitSkipped:s,diagnostics:c}}var oW,aW,sW=g({"src/compiler/builderState.ts"(){OK(),(e=>{function t(){return function(e,t,r){const i={getKeys:e=>t.get(e),getValues:t=>e.get(t),keys:()=>e.keys(),deleteKey:i=>{(r||(r=new Set)).add(i);const o=e.get(i);return!!o&&(o.forEach((e=>n(t,e,i))),e.delete(i),!0)},set:(o,a)=>{null==r||r.delete(o);const s=e.get(o);return e.set(o,a),null==s||s.forEach((e=>{a.has(e)||n(t,e,o)})),a.forEach((e=>{(null==s?void 0:s.has(e))||function(e,t,n){let r=e.get(t);r||(r=new Set,e.set(t,r));r.add(n)}(t,e,o)})),i}};return i}(new Map,new Map,void 0)}function n(e,t,n){const r=e.get(t);return!!(null==r?void 0:r.delete(n))&&(r.size||e.delete(t),!0)}function i(e){return G(e.declarations,(e=>{var t;return null==(t=Cp(e))?void 0:t.resolvedPath}))}function o(e,t){const n=e.getSymbolAtLocation(t);return n&&i(n)}function a(e,t,n,r){return pa(e.getProjectReferenceRedirect(t)||t,n,r)}function s(e,t,n){let r;if(t.imports&&t.imports.length>0){const n=e.getTypeChecker();for(const e of t.imports){const t=o(n,e);null==t||t.forEach(c)}}const i=Zo(t.resolvedPath);if(t.referencedFiles&&t.referencedFiles.length>0)for(const r of t.referencedFiles){c(a(e,r.fileName,i,n))}if(e.forEachResolvedTypeReferenceDirective((({resolvedTypeReferenceDirective:t})=>{if(!t)return;const r=t.resolvedFileName;c(a(e,r,i,n))}),t),t.moduleAugmentations.length){const n=e.getTypeChecker();for(const e of t.moduleAugmentations){if(!FN(e))continue;const t=n.getSymbolAtLocation(e);t&&s(t)}}for(const t of e.getTypeChecker().getAmbientModules())t.declarations&&t.declarations.length>1&&s(t);return r;function s(e){if(e.declarations)for(const n of e.declarations){const e=Cp(n);e&&e!==t&&c(e.resolvedPath)}}function c(e){(r||(r=new Set)).add(e)}}function c(e,t){return t&&!t.referencedMap==!e}function l(e,t,n,i,o){const a=t.getSourceFileByPath(n);return a?u(e,t,a,i,o)?(e.referencedMap?v:y)(e,t,a,i,o):[a]:r}function _(e,t,n,r,i){e.emit(t,((n,o,a,s,c,l)=>{Sn.assert(oO(n),`File extension for signature expected to be dts: Got:: ${n}`),i(OW(e,t,o,r,l),c)}),n,!0,void 0,!0)}function u(e,t,n,r,i,o=e.useFileVersionAsSignature){var a;if(null==(a=e.hasCalledUpdateShapeSignature)?void 0:a.has(n.resolvedPath))return!1;const s=e.fileInfos.get(n.resolvedPath),c=s.signature;let l;if(n.isDeclarationFile||o||_(t,n,r,i,((t,r)=>{l=t,l!==c&&d(e,n,r[0].exportedModulesFromDeclarationEmit)})),void 0===l&&(l=n.version,e.exportedModulesMap&&l!==c)){(e.oldExportedModulesMap||(e.oldExportedModulesMap=new Map)).set(n.resolvedPath,e.exportedModulesMap.getValues(n.resolvedPath)||!1);const t=e.referencedMap?e.referencedMap.getValues(n.resolvedPath):void 0;t?e.exportedModulesMap.set(n.resolvedPath,t):e.exportedModulesMap.deleteKey(n.resolvedPath)}return(e.oldSignatures||(e.oldSignatures=new Map)).set(n.resolvedPath,c||!1),(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n.resolvedPath),s.signature=l,l!==c}function d(e,t,n){if(!e.exportedModulesMap)return;(e.oldExportedModulesMap||(e.oldExportedModulesMap=new Map)).set(t.resolvedPath,e.exportedModulesMap.getValues(t.resolvedPath)||!1);const r=p(n);r?e.exportedModulesMap.set(t.resolvedPath,r):e.exportedModulesMap.deleteKey(t.resolvedPath)}function p(e){let t;return null==e||e.forEach((e=>i(e).forEach((e=>(t??(t=new Set)).add(e))))),t}function f(e,t){if(!e.allFileNames){const n=t.getSourceFiles();e.allFileNames=n===r?r:n.map((e=>e.fileName))}return e.allFileNames}function m(e,t){const n=e.referencedMap.getKeys(t);return n?$e(n.keys()):[]}function g(e){return function(e){return re(e.moduleAugmentations,(e=>mf(e.parent)))}(e)||!Yf(e)&&!Zf(e)&&!function(e){for(const t of e.statements)if(!_f(t))return!1;return!0}(e)}function h(e,t,n){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;let i;n&&o(n);for(const e of t.getSourceFiles())e!==n&&o(e);return e.allFilesExcludingDefaultLibraryFile=i||r,e.allFilesExcludingDefaultLibraryFile;function o(e){t.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}function y(e,t,n){const r=t.getCompilerOptions();return r&&Ev(r)?[n]:h(e,t,n)}function v(e,t,n,r,i){if(g(n))return h(e,t,n);const o=t.getCompilerOptions();if(o&&(YS(o)||Ev(o)))return[n];const a=new Map;a.set(n.resolvedPath,n);const s=m(e,n.resolvedPath);for(;s.length>0;){const n=s.pop();if(!a.has(n)){const o=t.getSourceFileByPath(n);a.set(n,o),o&&u(e,t,o,r,i)&&s.push(...m(e,o.resolvedPath))}}return $e(X(a.values(),(e=>e)))}e.createManyToManyPathMap=t,e.canReuseOldState=c,e.create=function(e,n,r){var i,o,a;const l=new Map,_=e.getCompilerOptions(),u=Ev(_),d=0===_.module||u?void 0:t(),p=d?t():void 0,f=c(d,n);e.getTypeChecker();for(const t of e.getSourceFiles()){const r=Sn.checkDefined(t.version,"Program intended to be used with Builder should have source files with versions set"),c=f?null==(i=n.oldSignatures)?void 0:i.get(t.resolvedPath):void 0,_=void 0===c?f?null==(o=n.fileInfos.get(t.resolvedPath))?void 0:o.signature:void 0:c||void 0;if(d){const r=s(e,t,e.getCanonicalFileName);if(r&&d.set(t.resolvedPath,r),f){const e=null==(a=n.oldExportedModulesMap)?void 0:a.get(t.resolvedPath),r=void 0===e?n.exportedModulesMap.getValues(t.resolvedPath):e||void 0;r&&p.set(t.resolvedPath,r)}}l.set(t.resolvedPath,{version:r,signature:_,affectsGlobalScope:u?void 0:g(t)||void 0,impliedFormat:t.impliedNodeFormat})}return{fileInfos:l,referencedMap:d,exportedModulesMap:p,useFileVersionAsSignature:!r&&!f}},e.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},e.getFilesAffectedBy=function(e,t,n,r,i){var o,a;const s=l(e,t,n,r,i);return null==(o=e.oldSignatures)||o.clear(),null==(a=e.oldExportedModulesMap)||a.clear(),s},e.getFilesAffectedByWithOldState=l,e.updateSignatureOfFile=function(e,t,n){e.fileInfos.get(n).signature=t,(e.hasCalledUpdateShapeSignature||(e.hasCalledUpdateShapeSignature=new Set)).add(n)},e.computeDtsSignature=_,e.updateShapeSignature=u,e.updateExportedModules=d,e.getExportedModules=p,e.getAllDependencies=function(e,t,n){if(Ev(t.getCompilerOptions()))return f(e,t);if(!e.referencedMap||g(n))return f(e,t);const r=new Set,i=[n.resolvedPath];for(;i.length;){const t=i.pop();if(!r.has(t)){r.add(t);const n=e.referencedMap.getValues(t);if(n)for(const e of n.keys())i.push(e)}}return $e(X(r.keys(),(e=>{var n;return(null==(n=t.getSourceFileByPath(e))?void 0:n.fileName)??e})))},e.getReferencedByPaths=m,e.getAllFilesExcludingDefaultLibraryFile=h})(tW||(tW={}))}});function cW(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),_k(e)&&(t|=8),e.declarationMap&&(t|=16),e.emitDeclarationOnly&&(t&=24),t}function lW(e,t){const n=t&&(pt(t)?t:cW(t)),r=pt(e)?e:cW(e);if(n===r)return 0;if(!n||!r)return r;const i=n^r;let o=0;return 7&i&&(o=7&r),24&i&&(o|=24&r),o}function _W(e,t){var n,i;const o=tW.create(e,t,!1);o.program=e;const a=e.getCompilerOptions();o.compilerOptions=a;const s=Ev(a);s?a.composite&&(null==t?void 0:t.outSignature)&&s===Ev(null==t?void 0:t.compilerOptions)&&(o.outSignature=t.outSignature&&dW(a,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=a.composite?null==t?void 0:t.latestChangedDtsFile:void 0;const c=tW.canReuseOldState(o.referencedMap,t),l=c?t.compilerOptions:void 0,_=c&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!hk(a,l),u=a.composite&&(null==t?void 0:t.emitSignatures)&&!s&&!vk(a,t.compilerOptions);c?(null==(n=t.changedFilesSet)||n.forEach((e=>o.changedFilesSet.add(e))),!s&&(null==(i=t.affectedFilesPendingEmit)?void 0:i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;const d=o.referencedMap,p=c?t.referencedMap:void 0,f=_&&!a.skipLibCheck==!l.skipLibCheck,m=f&&!a.skipDefaultLibCheck==!l.skipDefaultLibCheck;if(o.fileInfos.forEach(((n,i)=>{let s,l;if(!c||!(s=t.fileInfos.get(i))||s.version!==n.version||s.impliedFormat!==n.impliedFormat||(g=l=d&&d.getValues(i),h=p&&p.getValues(i),g!==h&&(void 0===g||void 0===h||g.size!==h.size||pp(g,(e=>!h.has(e)))))||l&&pp(l,(e=>!o.fileInfos.has(e)&&t.fileInfos.has(e))))uW(o,i);else if(_){const n=e.getSourceFileByPath(i);if(n.isDeclarationFile&&!f)return;if(n.hasNoDefaultLib&&!m)return;const a=t.semanticDiagnosticsPerFile.get(i);a&&(o.semanticDiagnosticsPerFile.set(i,t.hasReusableDiagnostic?function(e,t){if(!e.length)return r;let n;return e.map((e=>{const n=mW(e,t,i);n.reportsUnnecessary=e.reportsUnnecessary,n.reportsDeprecated=e.reportDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map((e=>mW(e,t,i))):[]:void 0,n}));function i(e){return n??(n=Zo(_a(sU(t.getCompilerOptions()),t.getCurrentDirectory()))),pa(e,n,t.getCanonicalFileName)}}(a,e):function(e,t){return e.length?q(e,(e=>{if(dt(e.messageText))return e;const n=pW(e.messageText,e.file,t,(e=>{var t;return null==(t=e.repopulateInfo)?void 0:t.call(e)}));return n===e.messageText?e:{...e,messageText:n}})):e}(a,e)),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new Set),o.semanticDiagnosticsFromOldState.add(i))}var g,h;if(u){const e=t.emitSignatures.get(i);e&&(o.emitSignatures??(o.emitSignatures=new Map)).set(i,dW(a,t.compilerOptions,e))}})),c&&dp(t.fileInfos,((e,t)=>!o.fileInfos.has(t)&&(!(!s&&!e.affectsGlobalScope)||(o.buildInfoEmitPending=!0,!1)))))tW.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach((e=>uW(o,e.resolvedPath)));else if(l){const t=yk(a,l)?cW(a):lW(a,l);0!==t&&(s?o.programEmitPending=o.programEmitPending?o.programEmitPending|t:t:(e.getSourceFiles().forEach((e=>{o.changedFilesSet.has(e.resolvedPath)||MW(o,e.resolvedPath,t)})),Sn.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return s&&!o.changedFilesSet.size&&(c&&(o.bundle=t.bundle),re(e.getProjectReferences(),(e=>!!e.prepend))&&(o.programEmitPending=cW(a))),o}function uW(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function dW(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:dt(n)?[n]:n[0]}function pW(e,t,n,r){const i=r(e);if(i)return{...vp(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:fW(e.next,t,n,r)};const o=fW(e.next,t,n,r);return o===e.next?e:{...e,next:o}}function fW(e,t,n,r){return q(e,(e=>pW(e,t,n,r)))}function mW(e,t,n){const{file:r}=e,i=r?t.getSourceFileByPath(n(r)):void 0;return{...e,file:i,messageText:dt(e.messageText)?e.messageText:pW(e.messageText,i,t,(e=>e.info))}}function gW(e,t){Sn.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function hW(e,t,n){for(var r,i;;){const{affectedFiles:o}=e;if(o){const a=e.seenAffectedFiles;let s=e.affectedFilesIndex;for(;s<o.length;){const r=o[s];if(!a.has(r.resolvedPath))return e.affectedFilesIndex=s,MW(e,r.resolvedPath,cW(e.compilerOptions)),vW(e,r,t,n),r;s++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,null==(r=e.oldSignatures)||r.clear(),null==(i=e.oldExportedModulesMap)||i.clear(),e.affectedFiles=void 0}const a=e.changedFilesSet.keys().next();if(a.done)return;const s=Sn.checkDefined(e.program);if(Ev(s.getCompilerOptions()))return Sn.assert(!e.semanticDiagnosticsPerFile),s;e.affectedFiles=tW.getFilesAffectedByWithOldState(e,s,a.value,t,n),e.currentChangedFilePath=a.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function yW(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=Sn.checkDefined(e.program),n=t.getCompilerOptions();b(t.getSourceFiles(),(r=>t.isSourceFileDefaultLibrary(r)&&!hT(r,n,t)&&xW(e,r.resolvedPath)))}}function vW(e,t,n,r){if(xW(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return yW(e),void tW.updateShapeSignature(e,Sn.checkDefined(e.program),t,n,r);e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(e,t,n,r){var i;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath))return;if(!SW(e,t.resolvedPath))return;if(YS(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=tW.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),kW(e,t,n,r))return;if(bW(e,t,n,r),SW(e,t)){const n=Sn.checkDefined(e.program).getSourceFileByPath(t);o.push(...tW.getReferencedByPaths(e,n.resolvedPath))}}}}const o=new Set;null==(i=e.exportedModulesMap.getKeys(t.resolvedPath))||i.forEach((t=>{if(kW(e,t,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&pp(i,(t=>TW(e,t,o,n,r)))}))}(e,t,n,r)}function bW(e,t,n,r){if(xW(e,t),!e.changedFilesSet.has(t)){const i=Sn.checkDefined(e.program),o=i.getSourceFileByPath(t);o&&(tW.updateShapeSignature(e,i,o,n,r,!0),_k(e.compilerOptions)&&MW(e,t,e.compilerOptions.declarationMap?24:8))}}function xW(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function SW(e,t){const n=Sn.checkDefined(e.oldSignatures).get(t)||void 0;return Sn.checkDefined(e.fileInfos.get(t)).signature!==n}function kW(e,t,n,r){var i;return!!(null==(i=e.fileInfos.get(t))?void 0:i.affectsGlobalScope)&&(tW.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((t=>bW(e,t.resolvedPath,n,r))),yW(e),!0)}function TW(e,t,n,r,i){var o,a;if(Z(n,t)){if(kW(e,t,r,i))return!0;bW(e,t,r,i),null==(o=e.exportedModulesMap.getKeys(t))||o.forEach((t=>TW(e,t,n,r,i))),null==(a=e.referencedMap.getKeys(t))||a.forEach((t=>!n.has(t)&&bW(e,t,r,i)))}}function CW(e,t,n){return oe(function(e,t,n){const r=t.resolvedPath;if(e.semanticDiagnosticsPerFile){const t=e.semanticDiagnosticsPerFile.get(r);if(t)return KV(t,e.compilerOptions)}const i=Sn.checkDefined(e.program).getBindAndCheckDiagnostics(t,n);e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(r,i);return KV(i,e.compilerOptions)}(e,t,n),Sn.checkDefined(e.program).getProgramDiagnostics(t))}function wW(e){return!!Ev(e.options||{})}function NW(e,t,n){if(e)if(Sn.assert("listOrElement"!==e.type),"list"===e.type){const r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);return t}function DW(e,t){return Sn.assert(!!e.length),e.map((e=>{const n=FW(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;const{relatedInformation:r}=e;return n.relatedInformation=r?r.length?r.map((e=>FW(e,t))):[]:void 0,n}))}function FW(e,t){const{file:n}=e;return{...e,file:n?t(n.resolvedPath):void 0,messageText:dt(e.messageText)?e.messageText:PW(e.messageText)}}function PW(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:EW(e.next)};const t=EW(e.next);return t===e.next?e:{...e,next:t}}function EW(e){return e&&b(e,((t,n)=>{const r=PW(t);if(t===r)return;const i=n>0?e.slice(0,n-1):[];i.push(r);for(let t=n+1;t<e.length;t++)i.push(PW(e[t]));return i}))||e}function AW(e,t,n,i,o,a){let s,c,l;return void 0===e?(Sn.assert(void 0===t),s=n,l=i,Sn.assert(!!l),c=l.getProgram()):_t(e)?(l=i,c=HV({rootNames:e,options:t,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:a}),s=n):(c=e,s=t,l=n,o=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:o||r}}function IW(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function OW(e,t,n,r,i){var o;let a;return n=IW(n,i),(null==(o=null==i?void 0:i.diagnostics)?void 0:o.length)&&(n+=i.diagnostics.map((n=>`${function(n){if(n.file.resolvedPath===t.resolvedPath)return`(${n.start},${n.length})`;void 0===a&&(a=Zo(t.resolvedPath));return`${ga(Ca(a,n.file.resolvedPath,e.getCanonicalFileName))}(${n.start},${n.length})`}(n)}${Ti[n.category]}${n.code}: ${s(n.messageText)}`)).join("\n")),(r.createHash??fo)(n);function s(e){return dt(e)?e:void 0===e?"":e.next?e.messageText+e.next.map(s).join("\n"):e.messageText}}function LW(e,t,n){return(t.createHash??fo)(IW(e,n))}function jW(e,{newProgram:t,host:n,oldProgram:i,configFileParsingDiagnostics:o}){let a=i&&i.getState();if(a&&t===a.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,a=void 0,i;const s=_W(t,a);t.getBuildInfo=e=>function(e,t){var n,i,o;const a=Sn.checkDefined(e.program).getCurrentDirectory(),s=Zo(_a(sU(e.compilerOptions),a)),c=e.latestChangedDtsFile?x(e.latestChangedDtsFile):void 0,l=[],_=new Map,u=[];if(Ev(e.compilerOptions)){const r=$e(e.fileInfos.entries(),(([e,t])=>(C(e,k(e)),t.impliedFormat?{version:t.version,impliedFormat:t.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:t.version))),o={fileNames:l,fileInfos:r,root:u,options:w(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:c,pendingEmit:e.programEmitPending?e.programEmitPending!==cW(e.compilerOptions)&&e.programEmitPending:void 0},{js:a,dts:s,commonSourceDirectory:_,sourceFiles:d}=t;return e.bundle=t={commonSourceDirectory:_,sourceFiles:d,js:a||(e.compilerOptions.emitDeclarationOnly||null==(n=e.bundle)?void 0:n.js),dts:s||(_k(e.compilerOptions)?null==(i=e.bundle)?void 0:i.dts:void 0)},TU(o,t)}let d,p,f;const m=$e(e.fileInfos.entries(),(([t,n])=>{var i,o;const a=k(t);C(t,a),Sn.assert(l[a-1]===S(t));const s=null==(i=e.oldSignatures)?void 0:i.get(t),c=void 0!==s?s||void 0:n.signature;if(e.compilerOptions.composite){const n=e.program.getSourceFileByPath(t);if(!Zf(n)&&Ov(n,e.program)){const n=null==(o=e.emitSignatures)?void 0:o.get(t);n!==c&&(f||(f=[])).push(void 0===n?a:[a,dt(n)||n[0]!==c?n:r])}}return n.version===c?n.affectsGlobalScope||n.impliedFormat?{version:n.version,signature:void 0,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:n.version:void 0!==c?void 0===s?n:{version:n.version,signature:c,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}:{version:n.version,signature:!1,affectsGlobalScope:n.affectsGlobalScope,impliedFormat:n.impliedFormat}}));let g,h,y,v,b;if(e.referencedMap&&(g=$e(e.referencedMap.keys()).sort(Rt).map((t=>[k(t),T(e.referencedMap.getValues(t))]))),e.exportedModulesMap&&(h=G($e(e.exportedModulesMap.keys()).sort(Rt),(t=>{var n;const r=null==(n=e.oldExportedModulesMap)?void 0:n.get(t);return void 0===r?[k(t),T(e.exportedModulesMap.getValues(t))]:r?[k(t),T(r)]:void 0}))),e.semanticDiagnosticsPerFile)for(const t of $e(e.semanticDiagnosticsPerFile.keys()).sort(Rt)){const n=e.semanticDiagnosticsPerFile.get(t);(y||(y=[])).push(n.length?[k(t),DW(n,S)]:k(t))}if(null==(o=e.affectedFilesPendingEmit)?void 0:o.size){const t=cW(e.compilerOptions),n=new Set;for(const r of $e(e.affectedFilesPendingEmit.keys()).sort(Rt))if(Z(n,r)){const n=e.program.getSourceFileByPath(r);if(!n||!Ov(n,e.program))continue;const i=k(r),o=e.affectedFilesPendingEmit.get(r);(v||(v=[])).push(o===t?i:8===o?[i]:[i,o])}}if(e.changedFilesSet.size)for(const t of $e(e.changedFilesSet.keys()).sort(Rt))(b||(b=[])).push(k(t));return TU({fileNames:l,fileInfos:m,root:u,options:w(e.compilerOptions),fileIdsList:d,referencedMap:g,exportedModulesMap:h,semanticDiagnosticsPerFile:y,affectedFilesPendingEmit:v,changeFileSet:b,emitSignatures:f,latestChangedDtsFile:c},t);function x(e){return S(_a(e,a))}function S(t){return ga(Ca(s,t,e.program.getCanonicalFileName))}function k(e){let t=_.get(e);return void 0===t&&(l.push(S(e)),_.set(e,t=l.length)),t}function T(e){const t=$e(e.keys(),k).sort(It),n=t.join();let r=null==p?void 0:p.get(n);return void 0===r&&((d||(d=[])).push(t),(p||(p=new Map)).set(n,r=d.length)),r}function C(t,n){const r=e.program.getSourceFile(t);if(!e.program.getFileIncludeReasons().get(r.path).some((e=>0===e.kind)))return;if(!u.length)return u.push(n);const i=u[u.length-1],o=_t(i);if(o&&i[1]===n-1)return i[1]=n;if(o||1===u.length||i!==n-1)return u.push(n);const a=u[u.length-2];return pt(a)&&a===i-1?(u[u.length-2]=[a,n],u.length=u.length-1):u.push(n)}function w(e){let t;const{optionsNameMap:n}=rL();for(const r of Ue(e).sort(Rt)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=NW(i,e[r],x))}return t}}(s,e),t=void 0,i=void 0,a=void 0;const c=()=>s,l=UW(c,o);return l.getState=c,l.saveEmitState=()=>function(e){const t=Ev(e.compilerOptions);return Sn.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0}}(s),l.restoreEmitState=e=>function(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}(s,e),l.hasChangedEmitSignature=()=>!!s.hasChangedEmitSignature,l.getAllDependencies=e=>tW.getAllDependencies(s,Sn.checkDefined(s.program),e),l.getSemanticDiagnostics=function(e,t){gW(s,e);if(Ev(Sn.checkDefined(s.program).getCompilerOptions()))return Sn.assert(!s.semanticDiagnosticsPerFile),Sn.checkDefined(s.program).getSemanticDiagnostics(e,t);if(e)return CW(s,e,t);for(;d(t););let n;for(const e of Sn.checkDefined(s.program).getSourceFiles())n=be(n,CW(s,e,t));return n||r},l.emit=function(t,n,i,o,a){1===e&&gW(s,t);const c=$V(l,t,n,i);if(c)return c;if(!t){if(1===e){let e,t,s=[],c=!1,l=[];for(;t=_(n,i,o,a);)c=c||t.result.emitSkipped,e=be(e,t.result.diagnostics),l=be(l,t.result.emittedFiles),s=be(s,t.result.sourceMaps);return{emitSkipped:c,diagnostics:e||r,emittedFiles:l,sourceMaps:s}}!function(e,t){var n;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size)t?e.affectedFilesPendingEmit.forEach(((t,n)=>{const r=7&t;r?e.affectedFilesPendingEmit.set(n,r):e.affectedFilesPendingEmit.delete(n)})):e.affectedFilesPendingEmit=void 0}(s,o)}return Sn.checkDefined(s.program).emit(t,u(n,a),i,o,a)},l.releaseProgram=()=>function(e){tW.releaseCache(e),e.program=void 0}(s),0===e?l.getSemanticDiagnosticsOfNextAffectedFile=d:1===e?(l.getSemanticDiagnosticsOfNextAffectedFile=d,l.emitNextAffectedFile=_,l.emitBuildInfo=function(e,t){if(s.buildInfoEmitPending){const r=Sn.checkDefined(s.program).emitBuildInfo(e||it(n,n.writeFile),t);return s.buildInfoEmitPending=!1,r}return oV}):kt(),l;function _(e,t,r,i){var o,a,c;let l=hW(s,t,n);const _=cW(s.compilerOptions);let d,p=r?24&_:_;if(!l)if(Ev(s.compilerOptions)){if(!s.programEmitPending)return;if(p=s.programEmitPending,r&&(p&=24),!p)return;l=s.program}else{const i=function(e,t){var n;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size)return dp(e.affectedFilesPendingEmit,((n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!Ov(o,e.program))return void e.affectedFilesPendingEmit.delete(r);let a=lW(n,null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath));return t&&(a&=24),a?{affectedFile:o,emitKind:a}:void 0}))}(s,r);if(!i){if(!s.buildInfoEmitPending)return;const r=s.program,i=r.emitBuildInfo(e||it(n,n.writeFile),t);return s.buildInfoEmitPending=!1,{result:i,affected:r}}({affectedFile:l,emitKind:p}=i)}7&p&&(d=0),24&p&&(d=void 0===d?1:void 0),l===s.program&&(s.programEmitPending=s.changedFilesSet.size?lW(_,p):s.programEmitPending?lW(s.programEmitPending,p):void 0);const f=s.program.emit(l===s.program?void 0:l,u(e,i),t,d,i);if(l!==s.program){const e=l;s.seenAffectedFiles.add(e.resolvedPath),void 0!==s.affectedFilesIndex&&s.affectedFilesIndex++,s.buildInfoEmitPending=!0;const t=(null==(o=s.seenEmittedFiles)?void 0:o.get(e.resolvedPath))||0;(s.seenEmittedFiles??(s.seenEmittedFiles=new Map)).set(e.resolvedPath,p|t);const n=lW((null==(a=s.affectedFilesPendingEmit)?void 0:a.get(e.resolvedPath))||_,p|t);n?(s.affectedFilesPendingEmit??(s.affectedFilesPendingEmit=new Map)).set(e.resolvedPath,n):null==(c=s.affectedFilesPendingEmit)||c.delete(e.resolvedPath)}else s.changedFilesSet.clear();return{result:f,affected:l}}function u(e,t){return _k(s.compilerOptions)?(r,i,o,a,c,l)=>{var _,u,d,p;if(oO(r))if(Ev(s.compilerOptions)){if(s.compilerOptions.composite){const e=f(s.outSignature,void 0);if(!e)return;s.outSignature=e}}else{let e;if(Sn.assert(1===(null==c?void 0:c.length)),!t){const t=c[0],r=s.fileInfos.get(t.resolvedPath);if(r.signature===t.version){const o=OW(s.program,t,i,n,l);if((null==(_=null==l?void 0:l.diagnostics)?void 0:_.length)||(e=o),o!==t.version)if(n.storeFilesChangingSignatureDuringEmit&&(s.filesChangingSignature??(s.filesChangingSignature=new Set)).add(t.resolvedPath),s.exportedModulesMap&&tW.updateExportedModules(s,t,t.exportedModulesFromDeclarationEmit),s.affectedFiles){void 0===(null==(u=s.oldSignatures)?void 0:u.get(t.resolvedPath))&&(s.oldSignatures??(s.oldSignatures=new Map)).set(t.resolvedPath,r.signature||!1),r.signature=o}else r.signature=o,null==(d=s.oldExportedModulesMap)||d.clear()}}if(s.compilerOptions.composite){const t=c[0].resolvedPath;if(e=f(null==(p=s.emitSignatures)?void 0:p.get(t),e),!e)return;(s.emitSignatures??(s.emitSignatures=new Map)).set(t,e)}}function f(e,t){const o=!e||dt(e)?e:e[0];if(t??(t=LW(i,n,l)),t===o){if(e===o)return;l?l.differsOnlyInMap=!0:l={differsOnlyInMap:!0}}else s.hasChangedEmitSignature=!0,s.latestChangedDtsFile=r;return t}e?e(r,i,o,a,c,l):n.writeFile?n.writeFile(r,i,o,a,c,l):s.program.writeFile(r,i,o,a,c,l)}:e||it(n,n.writeFile)}function d(e,t){for(;;){const r=hW(s,e,n);let i;if(!r)return;if(r!==s.program){const n=r;if(t&&t(n)||(i=CW(s,n,e)),s.seenAffectedFiles.add(n.resolvedPath),s.affectedFilesIndex++,s.buildInfoEmitPending=!0,!i)continue}else i=s.program.getSemanticDiagnostics(void 0,e),s.changedFilesSet.clear(),s.programEmitPending=cW(s.compilerOptions);return{result:i,affected:r}}}}function MW(e,t,n){var r;const i=(null==(r=e.affectedFilesPendingEmit)?void 0:r.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,i|n)}function RW(e){return dt(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:dt(e.signature)?e:{version:e.version,signature:!1===e.signature?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function BW(e,t){return pt(e)?t:e[1]||8}function JW(e,t){return e||cW(t||{})}function zW(e,t,n){var i,o,a,s;const c=e.program,l=Zo(_a(t,n.getCurrentDirectory())),_=tn(n.useCaseSensitiveFileNames());let u;const d=null==(i=c.fileNames)?void 0:i.map((function(e){return pa(e,l,_)}));let p;const f=c.latestChangedDtsFile?m(c.latestChangedDtsFile):void 0;if(wW(c)){const t=new Map;c.fileInfos.forEach(((e,n)=>{const r=g(n+1);t.set(r,dt(e)?{version:e,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:e)})),u={fileInfos:t,compilerOptions:c.options?UL(c.options,m):{},latestChangedDtsFile:f,outSignature:c.outSignature,programEmitPending:void 0===c.pendingEmit?void 0:JW(c.pendingEmit,c.options),bundle:e.bundle}}else{p=null==(o=c.fileIdsList)?void 0:o.map((e=>new Set(e.map(g))));const e=new Map,t=(null==(a=c.options)?void 0:a.composite)&&!Ev(c.options)?new Map:void 0;c.fileInfos.forEach(((n,r)=>{const i=g(r+1),o=RW(n);e.set(i,o),t&&o.signature&&t.set(i,o.signature)})),null==(s=c.emitSignatures)||s.forEach((e=>{if(pt(e))t.delete(g(e));else{const n=g(e[0]);t.set(n,dt(e[1])||e[1].length?e[1]:[t.get(n)])}}));const n=c.affectedFilesPendingEmit?cW(c.options||{}):void 0;u={fileInfos:e,compilerOptions:c.options?UL(c.options,m):{},referencedMap:h(c.referencedMap),exportedModulesMap:h(c.exportedModulesMap),semanticDiagnosticsPerFile:c.semanticDiagnosticsPerFile&&Xe(c.semanticDiagnosticsPerFile,(e=>g(pt(e)?e:e[0])),(e=>pt(e)?r:e[1])),hasReusableDiagnostic:!0,affectedFilesPendingEmit:c.affectedFilesPendingEmit&&Xe(c.affectedFilesPendingEmit,(e=>g(pt(e)?e:e[0])),(e=>BW(e,n))),changedFilesSet:new Set(J(c.changeFileSet,g)),latestChangedDtsFile:f,emitSignatures:(null==t?void 0:t.size)?t:void 0}}return{getState:()=>u,saveEmitState:gt,restoreEmitState:gt,getProgram:kt,getProgramOrUndefined:vt,releaseProgram:gt,getCompilerOptions:()=>u.compilerOptions,getSourceFile:kt,getSourceFiles:kt,getOptionsDiagnostics:kt,getGlobalDiagnostics:kt,getConfigFileParsingDiagnostics:kt,getSyntacticDiagnostics:kt,getDeclarationDiagnostics:kt,getSemanticDiagnostics:kt,emit:kt,getAllDependencies:kt,getCurrentDirectory:kt,emitNextAffectedFile:kt,getSemanticDiagnosticsOfNextAffectedFile:kt,emitBuildInfo:kt,close:gt,hasChangedEmitSignature:ht};function m(e){return _a(e,l)}function g(e){return d[e-1]}function h(e){if(!e)return;const t=tW.createManyToManyPathMap();return e.forEach((([e,n])=>t.set(g(e),p[n-1]))),t}}function qW(e,t,n){const r=Zo(_a(t,n.getCurrentDirectory())),i=tn(n.useCaseSensitiveFileNames()),o=new Map;let a=0;const s=[];return e.fileInfos.forEach(((t,n)=>{const c=pa(e.fileNames[n],r,i),l=dt(t)?t:t.version;if(o.set(c,l),a<e.root.length){const t=e.root[a],r=n+1;_t(t)?t[0]<=r&&r<=t[1]&&(s.push(c),t[1]===r&&a++):t===r&&(s.push(c),a++)}})),{fileInfos:o,roots:s}}function UW(e,t){return{getState:kt,saveEmitState:gt,restoreEmitState:gt,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,o)=>n().emit(e,t,r,i,o),emitBuildInfo:(e,t)=>n().emitBuildInfo(e,t),getAllDependencies:kt,getCurrentDirectory:()=>n().getCurrentDirectory(),close:gt};function n(){return Sn.checkDefined(e().program)}}var VW=g({"src/compiler/builder.ts"(){OK(),oW=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(oW||{}),aW=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(aW||{})}});function WW(e,t,n,r,i,o){return jW(0,AW(e,t,n,r,i,o))}function HW(e,t,n,r,i,o){return jW(1,AW(e,t,n,r,i,o))}function $W(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=AW(e,t,n,r,i,o);return UW((()=>({program:a,compilerOptions:a.getCompilerOptions()})),s)}var KW=g({"src/compiler/builderPublic.ts"(){OK()}});function GW(e){return $t(e,"/node_modules/.staging")?Kt(e,"/.staging"):re(co,(t=>e.includes(t)))?void 0:e}function XW(e,t){if(t<=1)return 1;let n=1,r=0===e[0].search(/[a-zA-Z]:/);if(e[0]!==Io&&!r&&0===e[1].search(/[a-zA-Z]\$$/)){if(2===t)return 2;n=2,r=!0}return r&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function QW(e,t){if(void 0===t&&(t=e.length),t<=2)return!1;return t>XW(e,t)+1}function YW(e){return eH(Zo(e))}function ZW(e,t){if(t.length<t.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function eH(e){return QW(ra(e))}function tH(e){return eH(e)}function nH(e,t,n,r,i,o){const a=ra(t),s=ra(e=zo(e)?ua(e):_a(e,o())),c=XW(a,a.length);if(a.length<=c+1)return;const l=a.indexOf("node_modules");return-1!==l&&l+1<=c+1?void 0:ZW(i,a)?a.length>i.length+1?iH(s,a,Math.max(i.length+1,c+1)):{dir:n,dirPath:r,nonRecursive:!0}:rH(s,a,a.length-1,c,l,i)}function rH(e,t,n,r,i,o){if(-1!==i)return iH(e,t,i+1);let a=!0,s=n;for(let e=0;e<n;e++)if(t[e]!==o[e]){a=!1,s=Math.max(e+1,r+1);break}return iH(e,t,s,a)}function iH(e,t,n,r){return{dir:ia(e,n),dirPath:ia(t,n),nonRecursive:r}}function oH(e,t,n,r,i,o){const a=ra(t);if(ZW(r,a))return n;const s=rH(ra(e=zo(e)?ua(e):_a(e,i())),a,a.length,XW(a,a.length),a.indexOf("node_modules"),r);return s&&o(s.dirPath)?s.dirPath:void 0}function aH(e,t){const n=_a(e,t());return qo(n)?n:fa(n)}function sH(e){return e.split(Io).length-(Go(e)?1:0)}function cH(e){var t;return(null==(t=e.getCompilerHost)?void 0:t.call(e))||e}function lH(e,t,n,r,i){return{nameAndMode:tV,resolve:(o,a)=>function(e,t,n,r,i,o,a){const s=cH(e),c=xM(n,r,i,s,t,o,a);if(!e.getGlobalCache)return c;const l=e.getGlobalCache();if(!(void 0===l||Vs(n)||c.resolvedModule&&oT(c.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:o,affectingLocations:a,resolutionDiagnostics:_}=hR(Sn.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,i,s,l,t);if(r)return c.resolvedModule=r,c.failedLookupLocations=Hj(c.failedLookupLocations,o),c.affectingLocations=Hj(c.affectingLocations,a),c.resolutionDiagnostics=Hj(c.resolutionDiagnostics,_),c}return c}(r,i,o,e,n,t,a)}}function _H(e,t,n){let i,o,a;const s=ot(),c=new Set,l=new Set,_=new Map,u=new Map;let d,p,f,m,g,h=!1,y=!1;const v=Tt((()=>e.getCurrentDirectory())),b=e.getCachedDirectoryStructureHost(),x=new Map,S=gM(v(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,C=hM(v(),e.getCanonicalFileName,e.getCompilationSettings(),S.getPackageJsonInfoCache(),S.optionsToRedirectsKey),w=new Map,N=gM(v(),e.getCanonicalFileName,yM(e.getCompilationSettings()),S.getPackageJsonInfoCache()),D=new Map,F=new Map,P=aH(t,v),E=e.toPath(P),A=ra(E),I=new Map;return{rootDirForResolution:t,resolvedModuleNames:x,resolvedTypeReferenceDirectives:T,resolvedLibraries:w,resolvedFileToResolution:_,resolutionsWithFailedLookups:c,resolutionsWithOnlyAffectingLocations:l,directoryWatchesOfFailedLookups:D,fileWatchesOfAffectingLocations:F,watchFailedLookupLocationsOfExternalModuleResolutions:z,getModuleResolutionCache:()=>S,startRecordingFilesWithChangedResolutions:function(){i=[]},finishRecordingFilesWithChangedResolutions:function(){const e=i;return i=void 0,e},startCachingPerDirectoryResolution:function(){S.isReadonly=void 0,C.isReadonly=void 0,N.isReadonly=void 0,S.getPackageJsonInfoCache().isReadonly=void 0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),N.clearAllExceptPackageJsonInfoCache(),s.forEach($),s.clear()},finishCachingPerDirectoryResolution:function(t,n){a=void 0,y=!1,s.forEach($),s.clear(),t!==n&&(!function(t){w.forEach(((n,r)=>{var i;(null==(i=null==t?void 0:t.resolvedLibReferences)?void 0:i.has(r))||(X(n,e.toPath(jV(e.getCompilationSettings(),v(),r)),O),w.delete(r))}))}(t),null==t||t.getSourceFiles().forEach((e=>{var t;const n=Yf(e)?(null==(t=e.packageJsonLocations)?void 0:t.length)??0:0,i=u.get(e.path)??r;for(let t=i.length;t<n;t++)W(e.packageJsonLocations[t],!1);if(i.length>n)for(let e=n;e<i.length;e++)F.get(i[e]).files--;n?u.set(e.path,e.packageJsonLocations):u.delete(e.path)})),u.forEach(((e,n)=>{(null==t?void 0:t.getSourceFileByPath(n))||(e.forEach((e=>F.get(e).files--)),u.delete(n))})));D.forEach(M),F.forEach(R),h=!1,S.isReadonly=!0,C.isReadonly=!0,N.isReadonly=!0,S.getPackageJsonInfoCache().isReadonly=!0},resolveModuleNameLiterals:function(t,r,i,o,a,s){return B({entries:t,containingFile:r,containingSourceFile:a,redirectedReference:i,options:o,reusedNames:s,perFileCache:x,loader:lH(r,i,o,e,S),getResolutionWithResolvedFileName:O,shouldRetryResolution:e=>!e.resolvedModule||!aT(e.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})},resolveTypeReferenceDirectiveReferences:function(t,n,r,i,o,a){return B({entries:t,containingFile:n,containingSourceFile:o,redirectedReference:r,options:i,reusedNames:a,perFileCache:T,loader:AV(n,r,i,cH(e),C),getResolutionWithResolvedFileName:L,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,i){const o=cH(e);let a=null==w?void 0:w.get(i);if(!a||a.isInvalidated){const s=a;a=vM(t,n,r,o,N);const c=e.toPath(n);z(t,a,c,O,!1),w.set(i,a),s&&X(s,c,O)}else if(Mj(r,o)){const e=O(a);jj(o,(null==e?void 0:e.resolvedFileName)?e.packageId?Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&xp(e.packageId))}return a},resolveSingleModuleNameWithoutWatching:function(t,n){var r,i;const o=e.toPath(n),a=x.get(o),s=null==a?void 0:a.get(t,void 0);if(s&&!s.isInvalidated)return s;const c=null==(r=e.beforeResolveSingleModuleNameWithoutWatching)?void 0:r.call(e,S),l=cH(e),_=xM(t,n,e.getCompilationSettings(),l,S);return null==(i=e.afterResolveSingleModuleNameWithoutWatching)||i.call(e,S,t,n,_,c),_},removeResolutionsFromProjectReferenceRedirects:function(t){if(!$o(t,".json"))return;const n=e.getCurrentProgram();if(!n)return;const r=n.getResolvedProjectReferenceByPath(t);if(!r)return;r.commandLine.fileNames.forEach((t=>ee(e.toPath(t))))},removeResolutionsOfFile:ee,hasChangedAutomaticTypeDirectiveNames:()=>h,invalidateResolutionOfFile:function(t){ee(t);const n=h;te(_.get(t),yt)&&h&&!n&&e.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:oe,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){Sn.assert(a===e||void 0===a),a=e},createHasInvalidatedResolutions:function(e,t){oe();const n=o;return o=void 0,{hasInvalidatedResolutions:t=>e(t)||y||!!(null==n?void 0:n.has(t))||j(t),hasInvalidatedLibResolutions:e=>{var n;return t(e)||!!(null==(n=null==w?void 0:w.get(e))?void 0:n.isInvalidated)}}},isFileWithInvalidatedNonRelativeUnresolvedImports:j,updateTypeRootsWatch:function(){const t=e.getCompilationSettings();if(t.types)return void le();const n=Yj(t,{getCurrentDirectory:v});n?Xx(I,Xe(n,(t=>e.toPath(t))),{createNewValue:_e,onDeleteValue:Bx}):le()},closeTypeRootsWatch:le,clear:function(){Kx(D,HU),Kx(F,HU),s.clear(),le(),x.clear(),T.clear(),_.clear(),c.clear(),l.clear(),f=void 0,m=void 0,g=void 0,p=void 0,d=void 0,y=!1,S.clear(),C.clear(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings()),N.clear(),u.clear(),w.clear(),h=!1},onChangesAffectModuleResolution:function(){y=!0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),S.update(e.getCompilationSettings()),C.update(e.getCompilationSettings())}};function O(e){return e.resolvedModule}function L(e){return e.resolvedTypeReferenceDirective}function j(e){if(!a)return!1;const t=a.get(e);return!!t&&!!t.length}function M(e,t){0===e.refCount&&(D.delete(t),e.watcher.close())}function R(e,t){var n;0!==e.files||0!==e.resolutions||(null==(n=e.symlinks)?void 0:n.size)||(F.delete(t),e.watcher.close())}function B({entries:t,containingFile:n,containingSourceFile:r,redirectedReference:o,options:a,perFileCache:s,reusedNames:c,loader:l,getResolutionWithResolvedFileName:_,deferWatchingNonRelativeResolution:u,shouldRetryResolution:d,logChanges:p}){const f=e.toPath(n),m=s.get(f)||s.set(f,uM()).get(f),g=[],h=p&&j(f),v=e.getCurrentProgram(),b=v&&v.getResolvedProjectReferenceToRedirect(n),S=b?!o||o.sourceFile.path!==b.sourceFile.path:!!o,k=uM();for(const o of t){const t=l.nameAndMode.getName(o),c=l.nameAndMode.getMode(o,r);let v=m.get(t,c);if(!k.has(t,c)&&(y||S||!v||v.isInvalidated||h&&!Vs(t)&&d(v))){const n=v;v=l.resolve(t,c),e.onDiscoveredSymlink&&uH(v)&&e.onDiscoveredSymlink(),m.set(t,c,v),v!==n&&(z(t,v,f,_,u),n&&X(n,f,_)),p&&i&&!T(n,v)&&(i.push(f),p=!1)}else{const r=cH(e);if(Mj(a,r)&&!k.has(t,c)){const e=_(v);jj(r,s===x?(null==e?void 0:e.resolvedFileName)?e.packageId?Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ea.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?Ea.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:Ea.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:Ea.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,t,n,null==e?void 0:e.resolvedFileName,(null==e?void 0:e.packageId)&&xp(e.packageId))}}Sn.assert(void 0!==v&&!v.isInvalidated),k.set(t,c,!0),g.push(v)}return null==c||c.forEach((e=>k.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,r),!0))),m.size()!==k.size()&&m.forEach(((e,t,n)=>{k.has(t,n)||(X(e,f,_),m.delete(t,n))})),g;function T(e,t){if(e===t)return!0;if(!e||!t)return!1;const n=_(e),r=_(t);return n===r||!(!n||!r)&&n.resolvedFileName===r.resolvedFileName}}function J(e){return $t(e,"/node_modules/@types")}function z(t,n,r,i,o){var a;if(n.refCount)n.refCount++,Sn.assertIsDefined(n.files);else{n.refCount=1,Sn.assert(!(null==(a=n.files)?void 0:a.size)),!o||Vs(t)?U(n):s.add(t,n);const r=i(n);if(r&&r.resolvedFileName){const t=e.toPath(r.resolvedFileName);let i=_.get(t);i||_.set(t,i=new Set),i.add(n)}}(n.files??(n.files=new Set)).add(r)}function q(t,n){const r=nH(t,e.toPath(t),P,E,A,v);if(r){const{dir:e,dirPath:t,nonRecursive:i}=r;t===E?(Sn.assert(i),n=!0):K(e,t,i)}return n}function U(e){Sn.assert(!!e.refCount);const{failedLookupLocations:t,affectingLocations:n,node10Result:r}=e;if(!(null==t?void 0:t.length)&&!(null==n?void 0:n.length)&&!r)return;((null==t?void 0:t.length)||r)&&c.add(e);let i=!1;if(t)for(const e of t)i=q(e,i);r&&(i=q(r,i)),i&&K(P,E,!0),V(e,!(null==t?void 0:t.length)&&!r)}function V(e,t){Sn.assert(!!e.refCount);const{affectingLocations:n}=e;if(null==n?void 0:n.length){t&&l.add(e);for(const e of n)W(e,!0)}}function W(t,n){const r=F.get(t);if(r)return void(n?r.resolutions++:r.files++);let i,o=t,a=!1;e.realpath&&(o=e.realpath(t),t!==o&&(a=!0,i=F.get(o)));const s=n?1:0,c=n?0:1;if(!a||!i){const t={watcher:tH(e.toPath(o))?e.watchAffectingFileLocation(o,((t,n)=>{null==b||b.addOrDeleteFile(t,e.toPath(o),n),H(o,S.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):fH,resolutions:a?0:s,files:a?0:c,symlinks:void 0};F.set(o,t),a&&(i=t)}if(a){Sn.assert(!!i);const e={watcher:{close:()=>{var e;const n=F.get(o);!(null==(e=null==n?void 0:n.symlinks)?void 0:e.delete(t))||n.symlinks.size||n.resolutions||n.files||(F.delete(o),n.watcher.close())}},resolutions:s,files:c,symlinks:void 0};F.set(t,e),(i.symlinks??(i.symlinks=new Set)).add(t)}}function H(t,n){var r;const i=F.get(t);(null==i?void 0:i.resolutions)&&(p??(p=new Set)).add(t),(null==i?void 0:i.files)&&(d??(d=new Set)).add(t),null==(r=null==i?void 0:i.symlinks)||r.forEach((e=>H(e,n))),null==n||n.delete(e.toPath(t))}function $(t,n){const r=e.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(n)?t.forEach((e=>V(e,!0))):t.forEach(U)}function K(e,t,n){const r=D.get(t);r?(Sn.assert(!!n==!!r.nonRecursive),r.refCount++):D.set(t,{watcher:Y(e,t,n),refCount:1,nonRecursive:n})}function G(t,n,r){const i=nH(t,e.toPath(t),P,E,A,v);if(i){const{dirPath:e}=i;e===E?n=!0:Q(e,r)}return n}function X(t,n,r,i){if(Sn.checkDefined(t.files).delete(n),t.refCount--,t.refCount)return;const o=r(t);if(o&&o.resolvedFileName){const n=e.toPath(o.resolvedFileName),r=_.get(n);(null==r?void 0:r.delete(t))&&!r.size&&_.delete(n)}const{failedLookupLocations:a,affectingLocations:s,node10Result:u}=t;if(c.delete(t)){let e=!1;if(a)for(const t of a)e=G(t,e,i);u&&(e=G(u,e,i)),e&&Q(E,i)}else(null==s?void 0:s.length)&&l.delete(t);if(s)for(const e of s){const t=F.get(e);t.resolutions--,i&&R(t,e)}}function Q(e,t){const n=D.get(e);n.refCount--,t&&M(n,e)}function Y(t,n,r){return e.watchDirectoryOfFailedLookupLocation(t,(t=>{const r=e.toPath(t);b&&b.addOrDeleteFileOrDirectory(t,r),ne(r,n===r)}),r?0:1)}function Z(e,t,n,r){const i=e.get(t);i&&(i.forEach((e=>X(e,t,n,r))),e.delete(t))}function ee(e,t){Z(x,e,O,t),Z(T,e,L,t)}function te(e,t){if(!e)return!1;let n=!1;return e.forEach((e=>{if(!e.isInvalidated&&t(e)){e.isInvalidated=n=!0;for(const t of Sn.checkDefined(e.files))(o??(o=new Set)).add(t),h=h||$t(t,rV)}})),n}function ne(t,n){if(n)(g||(g=new Set)).add(t);else{const n=GW(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=Zo(t);if(J(t)||Pa(t)||J(r)||Pa(r))(f||(f=new Set)).add(t),(m||(m=new Set)).add(t);else{if(UU(e.getCurrentProgram(),t))return!1;if($o(t,".map"))return!1;(f||(f=new Set)).add(t);const n=AM(t,!0);n&&(m||(m=new Set)).add(n)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function ie(){const e=S.getPackageJsonInfoCache().getInternalMap();e&&(f||m||g)&&e.forEach(((t,n)=>se(n)?e.delete(n):void 0))}function oe(){var t;if(y)return d=void 0,ie(),(f||m||g||p)&&te(w,ae),f=void 0,m=void 0,g=void 0,p=void 0,!0;let n=!1;return d&&(null==(t=e.getCurrentProgram())||t.getSourceFiles().forEach((e=>{re(e.packageJsonLocations,(e=>d.has(e)))&&((o??(o=new Set)).add(e.path),n=!0)})),d=void 0),f||m||g||p?(n=te(c,ae)||n,ie(),f=void 0,m=void 0,g=void 0,n=te(l,ce)||n,p=void 0,n):n}function ae(t){var n;return!!ce(t)||!!(f||m||g)&&((null==(n=t.failedLookupLocations)?void 0:n.some((t=>se(e.toPath(t)))))||!!t.node10Result&&se(e.toPath(t.node10Result)))}function se(e){return(null==f?void 0:f.has(e))||k((null==m?void 0:m.keys())||[],(t=>!!an(e,t)||void 0))||k((null==g?void 0:g.keys())||[],(t=>!(!(e.length>t.length&&an(e,t))||!qo(t)&&e[t.length]!==Io)||void 0))}function ce(e){var t;return!!p&&(null==(t=e.affectingLocations)?void 0:t.some((e=>p.has(e))))}function le(){Kx(I,Bx)}function _e(t,n){return function(t){return!!e.getCompilationSettings().typeRoots||YW(e.toPath(t))}(t)?e.watchTypeRootsDirectory(n,(r=>{const i=e.toPath(r);b&&b.addOrDeleteFileOrDirectory(r,i),h=!0,e.onChangedAutomaticTypeDirectiveNames();const o=oH(n,t,E,A,v,(e=>D.has(e)));o&&ne(i,o===i)}),1):fH}}function uH(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var dH,pH,fH,mH,gH,hH=g({"src/compiler/resolutionCache.ts"(){OK()}});function yH(e,t){const n=e===uo&&dH?dH:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:tn(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(hV(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(SV(r,n)+n.getNewLine()),r[0]=void 0}}function vH(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!I(pH,t.code))&&(e.clearScreen(),!0)}function bH(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(""," "):(new Date).toLocaleTimeString()}function xH(e,t){return t?(t,n,r)=>{vH(e,t,r);let i=`[${vV(bH(e),"")}] `;i+=`${kV(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";vH(e,t,r)||(i+=n),i+=`${bH(e)} - `,i+=`${kV(t.messageText,e.newLine)}${function(e,t){return I(pH,e.code)?t+t:t}(t,n)}`,e.write(i)}}function SH(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>WH(i,o,e);const s=yL(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function kH(e){return j(e,(e=>1===e.category))}function TH(e){return M(e,(e=>1===e.category)).map((e=>{if(void 0!==e.file)return`${e.file.fileName}`})).map((t=>{if(void 0===t)return;const n=D(e,(e=>void 0!==e.file&&e.file.fileName===t));if(void 0!==n){const{line:e}=_s(n.file,n.start);return{fileName:t,line:e+1}}}))}function CH(e){return 1===e?Ea.Found_1_error_Watching_for_file_changes:Ea.Found_0_errors_Watching_for_file_changes}function wH(e,t){const n=vV(":"+e.line,"");return Uo(e.fileName)&&Uo(t)?Ca(t,e.fileName,!1)+n:e.fileName+n}function NH(e,t,n,r){if(0===e)return"";const i=t.filter((e=>void 0!==e)),o=i.map((e=>`${e.fileName}:${e.line}`)).filter(((e,t,n)=>n.indexOf(e)===t)),a=i[0]&&wH(i[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[Ea.Found_1_error_in_0,a]:[Ea.Found_1_error]:0===o.length?[Ea.Found_0_errors,e]:1===o.length?[Ea.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[Ea.Found_0_errors_in_1_files,e,o.length];const c=IS(...s),l=o.length>1?function(e,t){const n=e.filter(((e,t,n)=>t===n.findIndex((t=>(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)))));if(0===n.length)return"";const r=e=>Math.log(e)*Math.LOG10E+1,i=n.map((t=>[t,j(e,(e=>e.fileName===t.fileName))])),o=i.reduce(((e,t)=>Math.max(e,t[1]||0)),0),a=Ea.Errors_Files.message,s=a.split(" ")[0].length,c=Math.max(s,r(o)),l=Math.max(r(o)-s,0);let _="";return _+=" ".repeat(l)+a+"\n",i.forEach((e=>{const[n,r]=e,i=Math.log(r)*Math.LOG10E+1|0,o=i<c?" ".repeat(c-i):"",a=wH(n,t.getCurrentDirectory());_+=`${o}${r} ${a}\n`})),_}(i,r):"";return`${n}${kV(c.messageText,n)}${n}${n}${l}`}function DH(e){return!!e.getState}function FH(e,t){const n=e.getCompilerOptions();n.explainFiles?PH(DH(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&b(e.getSourceFiles(),(e=>{t(e.fileName)}))}function PH(e,t){var n,r;const i=e.getFileIncludeReasons(),o=t=>wa(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${LH(a,o)}`),null==(n=i.get(a.path))||n.forEach((n=>t(` ${OH(e,n,o).messageText}`))),null==(r=EH(a,o))||r.forEach((e=>t(` ${e.messageText}`)))}function EH(e,t){var n;let r;if(e.path!==e.resolvedPath&&(r??(r=[])).push(LS(void 0,Ea.File_is_output_of_project_reference_source_0,LH(e.originalFileName,t))),e.redirectInfo&&(r??(r=[])).push(LS(void 0,Ea.File_redirects_to_file_0,LH(e.redirectInfo.redirectTarget,t))),Yf(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(r??(r=[])).push(LS(void 0,Ea.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,LH(Ie(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(r??(r=[])).push(LS(void 0,e.packageJsonScope.contents.packageJsonContent.type?Ea.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:Ea.File_is_CommonJS_module_because_0_does_not_have_field_type,LH(Ie(e.packageJsonLocations),t))):(null==(n=e.packageJsonLocations)?void 0:n.length)&&(r??(r=[])).push(LS(void 0,Ea.File_is_CommonJS_module_because_package_json_was_not_found))}return r}function AH(e,t){var n;const r=e.getCompilerOptions().configFile;if(!(null==(n=null==r?void 0:r.configFileSpecs)?void 0:n.validatedFilesSpec))return;const i=e.getCanonicalFileName(t),o=Zo(_a(r.fileName,e.getCurrentDirectory()));return D(r.configFileSpecs.validatedFilesSpec,(t=>e.getCanonicalFileName(_a(t,o))===i))}function IH(e,t){var n,r;const i=e.getCompilerOptions().configFile;if(!(null==(n=null==i?void 0:i.configFileSpecs)?void 0:n.validatedIncludeSpecs))return;if(i.configFileSpecs.isDefaultIncludeSpec)return!0;const o=$o(t,".json"),a=Zo(_a(i.fileName,e.getCurrentDirectory())),s=e.useCaseSensitiveFileNames();return D(null==(r=null==i?void 0:i.configFileSpecs)?void 0:r.validatedIncludeSpecs,(e=>{if(o&&!$t(e,".json"))return!1;const n=Ik(e,a,"files");return!!n&&Mk(`(${n})$`,s).test(t)}))}function OH(e,t,n){var r,i;const o=e.getCompilerOptions();if(BV(t)){const r=zV(e,t),i=JV(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(Sn.assert(JV(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=JV(r)?r.packageId?Ea.Imported_via_0_from_file_1_with_packageId_2:Ea.Imported_via_0_from_file_1:r.text===nd?r.packageId?Ea.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:Ea.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?Ea.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:Ea.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:Sn.assert(!r.packageId),o=Ea.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?Ea.Type_library_referenced_via_0_from_file_1_with_packageId_2:Ea.Type_library_referenced_via_0_from_file_1;break;case 7:Sn.assert(!r.packageId),o=Ea.Library_referenced_via_0_from_file_1;break;default:Sn.assertNever(t)}return LS(void 0,o,i,LH(r.file,n),r.packageId&&xp(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return LS(void 0,Ea.Root_file_specified_for_compilation);const a=_a(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(AH(e,a))return LS(void 0,Ea.Part_of_files_list_in_tsconfig_json);const s=IH(e,a);return dt(s)?LS(void 0,Ea.Matched_by_include_pattern_0_in_1,s,LH(o.configFile,n)):LS(void 0,s?Ea.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:Ea.Root_file_specified_for_compilation);case 1:case 2:const c=2===t.kind,l=Sn.checkDefined(null==(i=e.getResolvedProjectReferences())?void 0:i[t.index]);return LS(void 0,Ev(o)?c?Ea.Output_from_referenced_project_0_included_because_1_specified:Ea.Source_from_referenced_project_0_included_because_1_specified:c?Ea.Output_from_referenced_project_0_included_because_module_is_specified_as_none:Ea.Source_from_referenced_project_0_included_because_module_is_specified_as_none,LH(l.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return LS(void 0,...o.types?t.packageId?[Ea.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,xp(t.packageId)]:[Ea.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[Ea.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,xp(t.packageId)]:[Ea.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(void 0!==t.index)return LS(void 0,Ea.Library_0_specified_in_compilerOptions,o.lib[t.index]);const e=dp(bO.type,((e,t)=>e===HS(o)?t:void 0));return LS(void 0,...e?[Ea.Default_library_for_target_0,e]:[Ea.Default_library])}default:Sn.assertNever(t)}}function LH(e,t){const n=dt(e)?e:e.fileName;return t?t(n):n}function jH(e,t,n,i,o,a,s,c){const l=!!e.getCompilerOptions().listFilesOnly,_=e.getConfigFileParsingDiagnostics().slice(),u=_.length;be(_,e.getSyntacticDiagnostics(void 0,a)),_.length===u&&(be(_,e.getOptionsDiagnostics(a)),l||(be(_,e.getGlobalDiagnostics(a)),_.length===u&&be(_,e.getSemanticDiagnostics(void 0,a))));const d=l?{emitSkipped:!0,diagnostics:r}:e.emit(void 0,o,a,s,c),{emittedFiles:p,diagnostics:f}=d;be(_,f);const m=Ws(_);if(m.forEach(t),n){const t=e.getCurrentDirectory();b(p,(e=>{const r=_a(e,t);n(`TSFILE: ${r}`)})),FH(e,n)}return i&&i(kH(m),TH(m)),{emitResult:d,diagnostics:m}}function MH(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:l}=jH(e,t,n,r,i,o,a,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}function RH(e=uo,t){return{onWatchStatusChange:t||xH(e),watchFile:it(e,e.watchFile)||mH,watchDirectory:it(e,e.watchDirectory)||mH,setTimeout:it(e,e.setTimeout)||gt,clearTimeout:it(e,e.clearTimeout)||gt}}function BH(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):gt,i=VU(e,n,r);return i.writeLog=r,i}function JH(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:uV(((t,n)=>n?e.readFile(t,n):i.readFile(t)),t,void 0),getDefaultLibLocation:it(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:dV(((t,n,r)=>e.writeFile(t,n,r)),(t=>e.createDirectory(t)),(t=>e.directoryExists(t))),getCurrentDirectory:Tt((()=>e.getCurrentDirectory())),useCaseSensitiveFileNames:()=>r,getCanonicalFileName:tn(r),getNewLine:()=>mx(t()),fileExists:t=>e.fileExists(t),readFile:t=>e.readFile(t),trace:it(e,e.trace),directoryExists:it(n,n.directoryExists),getDirectories:it(n,n.getDirectories),realpath:it(e,e.realpath),getEnvironmentVariable:it(e,e.getEnvironmentVariable)||(()=>""),createHash:it(e,e.createHash),readDirectory:it(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return i}function zH(e,t){if(t.match(eJ)){let e=t.length,n=e;for(let r=e-1;r>=0;r--){const i=t.charCodeAt(r);switch(i){case 10:r&&13===t.charCodeAt(r-1)&&r--;case 13:break;default:if(i<127||!ps(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(tJ)){t=t.substring(0,n);break}if(!o.match(nJ))break;e=n}}return(e.createHash||fo)(t)}function qH(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=zH(e,r.text)),r}}function UH(e,t){const n=Tt((()=>Zo(ua(e.getExecutingFilePath()))));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Tt((()=>e.getCurrentDirectory())),getDefaultLibLocation:n,getDefaultLibFileName:e=>sa(n(),Hs(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,o)=>e.readDirectory(t,n,r,i,o),realpath:it(e,e.realpath),getEnvironmentVariable:it(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:it(e,e.createHash),createProgram:t||HW,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:it(e,e.now)}}function VH(e=uo,t,n,r){const i=t=>e.write(t+e.newLine),o=UH(e,t);return rt(o,RH(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=mx(t);jH(e,n,i,(e=>o.onWatchStatusChange(IS(CH(e),e),r,t,e)))},o}function WH(e,t,n){t(n),e.exit(1)}function HH({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||yH(i),l=VH(i,o,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>WH(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}function $H({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=VH(i,o,a||yH(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function KH(e){const t=e.system||uo,n=e.host||(e.host=QH(e.options,t)),r=YH(e),i=MH(r,e.reportDiagnostic||yH(t),(e=>n.trace&&n.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(NH(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}var GH=g({"src/compiler/watch.ts"(){OK(),dH=uo?{getCurrentDirectory:()=>uo.getCurrentDirectory(),getNewLine:()=>uo.newLine,getCanonicalFileName:tn(uo.useCaseSensitiveFileNames)}:void 0,pH=[Ea.Starting_compilation_in_watch_mode.code,Ea.File_change_detected_Starting_incremental_compilation.code],fH={close:gt},mH=()=>fH,gH={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 XH(e,n){const r=sU(e);if(!r)return;let i;if(n.getBuildInfo)i=n.getBuildInfo(r,e.configFilePath);else{const e=n.readFile(r);if(!e)return;i=wU(r,e)}return i&&i.version===t&&i.program?zW(i,r,n):void 0}function QH(e,t=uo){const n=pV(e,void 0,t);return n.createHash=it(t,t.createHash),n.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,qH(n),fV(n,(e=>pa(e,n.getCurrentDirectory(),n.getCanonicalFileName))),n}function YH({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||HW)(e,t,i=i||QH(t),XH(t,i),n,r)}function ZH(e,t,n,r,i,o,a,s){return _t(e)?$H({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):HH({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function e$(e){let t,n,r,i,o,a,s,c,l=e.extendedConfigCache,_=!1;const u=new Map;let d,p=!1;const f=e.useCaseSensitiveFileNames(),m=e.getCurrentDirectory(),{configFileName:g,optionsToExtend:h={},watchOptionsToExtend:y,extraFileExtensions:v,createProgram:b}=e;let x,S,{rootFiles:k,options:T,watchOptions:C,projectReferences:w}=e,N=!1,D=!1;const F=void 0===g?void 0:LU(e,m,f),P=F||e,E=GV(e,P);let A=K();g&&e.configFileParsingResult&&(se(e.configFileParsingResult),A=K()),Z(Ea.Starting_compilation_in_watch_mode),g&&!e.configFileParsingResult&&(A=mx(h),Sn.assert(!k),ae(),A=K()),Sn.assert(T),Sn.assert(k);const{watchFile:I,watchDirectory:O,writeLog:L}=BH(e,T),j=tn(f);let M;L(`Current directory: ${m} CaseSensitiveFileNames: ${f}`),g&&(M=I(g,(function(){Sn.assert(!!g),n=2,re()}),2e3,C,gH.ConfigFile));const R=JH(e,(()=>T),P);qH(R);const B=R.getSourceFile;R.getSourceFile=(e,...t)=>Q(e,G(e),...t),R.getSourceFileByPath=Q,R.getNewLine=()=>A,R.fileExists=function(e){const t=G(e);if(X(u.get(t)))return!1;return P.fileExists(e)},R.onReleaseOldSourceFile=function(e,t,n){const r=u.get(e.resolvedPath);void 0!==r&&(X(r)?(d||(d=[])).push(e.path):r.sourceFile===e&&(r.fileWatcher&&r.fileWatcher.close(),u.delete(e.resolvedPath),n||J.removeResolutionsOfFile(e.path)))},R.onReleaseParsedCommandLine=function(e){var t;const n=G(e),r=null==s?void 0:s.get(n);if(!r)return;s.delete(n),r.watchedDirectories&&Kx(r.watchedDirectories,HU);null==(t=r.watcher)||t.close(),MU(n,c)},R.toPath=G,R.getCompilationSettings=()=>T,R.useSourceOfProjectReferenceRedirect=it(e,e.useSourceOfProjectReferenceRedirect),R.watchDirectoryOfFailedLookupLocation=(e,t,n)=>O(e,t,n,C,gH.FailedLookupLocations),R.watchAffectingFileLocation=(e,t)=>I(e,t,2e3,C,gH.AffectingFileLocation),R.watchTypeRootsDirectory=(e,t,n)=>O(e,t,n,C,gH.TypeRoots),R.getCachedDirectoryStructureHost=()=>F,R.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!e.setTimeout||!e.clearTimeout)return J.invalidateResolutionsOfFailedLookupLocations();const t=te();L("Scheduling invalidateFailedLookup"+(t?", Cancelled earlier one":"")),a=e.setTimeout(ne,250,"timerToInvalidateFailedLookupResolutions")},R.onInvalidatedResolution=re,R.onChangedAutomaticTypeDirectiveNames=re,R.fileIsOpen=ht,R.getCurrentProgram=H,R.writeLog=L,R.getParsedCommandLine=ce;const J=_H(R,g?Zo(_a(g,m)):m,!1);R.resolveModuleNameLiterals=it(e,e.resolveModuleNameLiterals),R.resolveModuleNames=it(e,e.resolveModuleNames),R.resolveModuleNameLiterals||R.resolveModuleNames||(R.resolveModuleNameLiterals=J.resolveModuleNameLiterals.bind(J)),R.resolveTypeReferenceDirectiveReferences=it(e,e.resolveTypeReferenceDirectiveReferences),R.resolveTypeReferenceDirectives=it(e,e.resolveTypeReferenceDirectives),R.resolveTypeReferenceDirectiveReferences||R.resolveTypeReferenceDirectives||(R.resolveTypeReferenceDirectiveReferences=J.resolveTypeReferenceDirectiveReferences.bind(J)),R.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):J.resolveLibrary.bind(J),R.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?it(e,e.getModuleResolutionCache):()=>J.getModuleResolutionCache();const z=!!(e.resolveModuleNameLiterals||e.resolveTypeReferenceDirectiveReferences||e.resolveModuleNames||e.resolveTypeReferenceDirectives)?it(e,e.hasInvalidatedResolutions)||yt:ht,q=e.resolveLibrary?it(e,e.hasInvalidatedLibResolutions)||yt:ht;return t=XH(T,R),$(),fe(),g&&ge(G(g),T,C,gH.ExtendedConfigFile),g?{getCurrentProgram:W,getProgram:oe,close:U,getResolutionCache:V}:{getCurrentProgram:W,getProgram:oe,updateRootFileNames:function(e){Sn.assert(!g,"Cannot update root file names with config file watch mode"),k=e,re()},close:U,getResolutionCache:V};function U(){te(),J.clear(),Kx(u,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),M&&(M.close(),M=void 0),null==l||l.clear(),l=void 0,c&&(Kx(c,HU),c=void 0),i&&(Kx(i,HU),i=void 0),r&&(Kx(r,Bx),r=void 0),s&&(Kx(s,(e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&Kx(e.watchedDirectories,HU),e.watchedDirectories=void 0})),s=void 0)}function V(){return J}function W(){return t}function H(){return t&&t.getProgramOrUndefined()}function $(){L("Synchronizing program"),Sn.assert(T),Sn.assert(k),te();const n=W();p&&(A=K(),n&&sp(n.getCompilerOptions(),T)&&J.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=J.createHasInvalidatedResolutions(z,q),{originalReadFile:a,originalFileExists:s,originalDirectoryExists:c,originalCreateDirectory:l,originalWriteFile:f,readFileWithCache:m}=fV(R,G);return qV(H(),k,T,(e=>function(e,t){const n=u.get(e);if(!n)return;if(n.version)return n.version;const r=t(e);return void 0!==r?zH(R,r):void 0}(e,m)),(e=>R.fileExists(e)),i,o,ee,ce,w)?D&&(_&&Z(Ea.File_change_detected_Starting_incremental_compilation),t=b(void 0,void 0,R,t,S,w),D=!1):(_&&Z(Ea.File_change_detected_Starting_incremental_compilation),function(e,n){L("CreatingProgramWith::"),L(` roots: ${JSON.stringify(k)}`),L(` options: ${JSON.stringify(T)}`),w&&L(` projectReferences: ${JSON.stringify(w)}`);const i=p||!H();p=!1,D=!1,J.startCachingPerDirectoryResolution(),R.hasInvalidatedResolutions=e,R.hasInvalidatedLibResolutions=n,R.hasChangedAutomaticTypeDirectiveNames=ee;const o=H();t=b(k,T,R,t,S,w),J.finishCachingPerDirectoryResolution(t.getProgram(),o),JU(t.getProgram(),r||(r=new Map),de),i&&J.updateTypeRootsWatch();if(d){for(const e of d)r.has(e)||u.delete(e);d=void 0}}(i,o)),_=!1,e.afterProgramCreate&&n!==t&&e.afterProgramCreate(t),R.readFile=a,R.fileExists=s,R.directoryExists=c,R.createDirectory=l,R.writeFile=f,t}function K(){return mx(T||h)}function G(e){return pa(e,m,j)}function X(e){return"boolean"==typeof e}function Q(e,t,n,r,i){const o=u.get(t);if(X(o))return;const a="object"==typeof n?n.impliedNodeFormat:void 0;if(void 0===o||i||function(e){return"boolean"==typeof e.version}(o)||o.sourceFile.impliedNodeFormat!==a){const i=B(e,n,r);if(o)i?(o.sourceFile=i,o.version=i.version,o.fileWatcher||(o.fileWatcher=le(t,e,_e,250,C,gH.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),u.set(t,!1));else if(i){const n=le(t,e,_e,250,C,gH.SourceFile);u.set(t,{sourceFile:i,version:i.version,fileWatcher:n})}else u.set(t,!1);return i}return o.sourceFile}function Y(e){const t=u.get(e);void 0!==t&&(X(t)?u.set(e,{version:!1}):t.version=!1)}function Z(t){e.onWatchStatusChange&&e.onWatchStatusChange(IS(t),A,T||h)}function ee(){return J.hasChangedAutomaticTypeDirectiveNames()}function te(){return!!a&&(e.clearTimeout(a),a=void 0,!0)}function ne(){a=void 0,J.invalidateResolutionsOfFailedLookupLocations()&&re()}function re(){e.setTimeout&&e.clearTimeout&&(o&&e.clearTimeout(o),L("Scheduling update"),o=e.setTimeout(ie,250,"timerToUpdateProgram"))}function ie(){o=void 0,_=!0,oe()}function oe(){var e,t,r,i;switch(n){case 1:null==(e=rr)||e.logStartUpdateProgram("PartialConfigReload"),function(){L("Reloading new file names and options"),Sn.assert(T),Sn.assert(g),n=0,k=gj(T.configFile.configFileSpecs,_a(Zo(g),m),T,E,v),ej(k,_a(g,m),T.configFile.configFileSpecs,S,N)&&(D=!0);$()}();break;case 2:null==(t=rr)||t.logStartUpdateProgram("FullConfigReload"),function(){Sn.assert(g),L(`Reloading config file: ${g}`),n=0,F&&F.clearCache();ae(),p=!0,$(),fe(),ge(G(g),T,C,gH.ExtendedConfigFile)}();break;default:null==(r=rr)||r.logStartUpdateProgram("SynchronizeProgram"),$()}return null==(i=rr)||i.logStopUpdateProgram("Done"),W()}function ae(){Sn.assert(g),se(yL(g,h,E,l||(l=new Map),y,v))}function se(e){k=e.fileNames,T=e.options,C=e.watchOptions,w=e.projectReferences,x=e.wildcardDirectories,S=UV(e).slice(),N=ZL(e.raw),D=!0}function ce(t){const n=G(t);let r=null==s?void 0:s.get(n);if(r){if(!r.updateLevel)return r.parsedCommandLine;if(r.parsedCommandLine&&1===r.updateLevel&&!e.getParsedCommandLine){L("Reloading new file names and options"),Sn.assert(T);const e=gj(r.parsedCommandLine.options.configFile.configFileSpecs,_a(Zo(t),m),T,E);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:e},r.updateLevel=void 0,r.parsedCommandLine}}L(`Loading config file: ${t}`);const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=E.onUnRecoverableConfigFileDiagnostic;E.onUnRecoverableConfigFileDiagnostic=gt;const n=yL(e,void 0,E,l||(l=new Map),y);return E.onUnRecoverableConfigFileDiagnostic=t,n}(t);return r?(r.parsedCommandLine=i,r.updateLevel=void 0):(s||(s=new Map)).set(n,r={parsedCommandLine:i}),function(e,t,n){var r,i,o,a,c;n.watcher||(n.watcher=I(e,((n,r)=>{ue(e,t,r);const i=null==s?void 0:s.get(t);i&&(i.updateLevel=2),J.removeResolutionsFromProjectReferenceRedirects(t),re()}),2e3,(null==(r=n.parsedCommandLine)?void 0:r.watchOptions)||C,gH.ConfigFileOfReferencedProject)),(null==(i=n.parsedCommandLine)?void 0:i.wildcardDirectories)?zU(n.watchedDirectories||(n.watchedDirectories=new Map),new Map(Object.entries(null==(o=n.parsedCommandLine)?void 0:o.wildcardDirectories)),((r,i)=>{var o;return O(r,(n=>{const i=G(n);F&&F.addOrDeleteFileOrDirectory(n,i),Y(i);const o=null==s?void 0:s.get(t);(null==o?void 0:o.parsedCommandLine)&&(qU({watchedDirPath:G(r),fileOrDirectory:n,fileOrDirectoryPath:i,configFileName:e,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:m,useCaseSensitiveFileNames:f,writeLog:L,toPath:G})||2!==o.updateLevel&&(o.updateLevel=1,re()))}),i,(null==(o=n.parsedCommandLine)?void 0:o.watchOptions)||C,gH.WildcardDirectoryOfReferencedProject)})):n.watchedDirectories&&(Kx(n.watchedDirectories,HU),n.watchedDirectories=void 0);ge(t,null==(a=n.parsedCommandLine)?void 0:a.options,(null==(c=n.parsedCommandLine)?void 0:c.watchOptions)||C,gH.ExtendedConfigOfReferencedProject)}(t,n,r),i}function le(e,t,n,r,i,o){return I(t,((t,r)=>n(t,r,e)),r,i,o)}function _e(e,t,n){ue(e,n,t),2===t&&u.has(n)&&J.invalidateResolutionOfFile(n),Y(n),re()}function ue(e,t,n){F&&F.addOrDeleteFile(e,t,n)}function de(e){return(null==s?void 0:s.has(e))?fH:le(e,e,pe,500,C,gH.MissingFile)}function pe(e,t,n){ue(e,n,t),0===t&&r.has(n)&&(r.get(n).close(),r.delete(n),Y(n),re())}function fe(){x?zU(i||(i=new Map),new Map(Object.entries(x)),me):i&&Kx(i,HU)}function me(e,t){return O(e,(t=>{Sn.assert(g),Sn.assert(T);const r=G(t);F&&F.addOrDeleteFileOrDirectory(t,r),Y(r),qU({watchedDirPath:G(e),fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:g,extraFileExtensions:v,options:T,program:W()||k,currentDirectory:m,useCaseSensitiveFileNames:f,writeLog:L,toPath:G})||2!==n&&(n=1,re())}),t,C,gH.WildcardDirectory)}function ge(e,t,r,i){jU(e,t,c||(c=new Map),((e,t)=>I(e,((r,i)=>{var o;ue(e,t,i),l&&RU(l,t,G);const a=null==(o=c.get(t))?void 0:o.projects;(null==a?void 0:a.size)&&a.forEach((e=>{if(g&&G(g)===e)n=2;else{const t=null==s?void 0:s.get(e);t&&(t.updateLevel=2),J.removeResolutionsFromProjectReferenceRedirects(e)}re()}))}),2e3,r,i)),G)}}var t$,n$=g({"src/compiler/watchPublic.ts"(){OK()}});function r$(e){return $o(e,".json")?e:sa(e,"tsconfig.json")}var i$,o$,a$,s$=g({"src/compiler/tsbuild.ts"(){OK(),t$=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(t$||{})}});function c$(e,t){return function(e,t,n){const r=e.get(t);let i;return r||(i=n(),e.set(t,i)),r||i}(e,t,(()=>new Map))}function l$(e){return e.now?e.now():new Date}function _$(e){return!!e&&!!e.buildOrder}function u$(e){return _$(e)?e.buildOrder:e}function d$(e,t){return n=>{let r=t?`[${vV(bH(e),"")}] `:`${bH(e)} - `;r+=`${kV(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function p$(e,t,n,r){const i=UH(e,t);return i.getModifiedTime=e.getModifiedTime?t=>e.getModifiedTime(t):vt,i.setModifiedTime=e.setModifiedTime?(t,n)=>e.setModifiedTime(t,n):gt,i.deleteFile=e.deleteFile?t=>e.deleteFile(t):gt,i.reportDiagnostic=n||yH(e),i.reportSolutionBuilderStatus=r||d$(e),i.now=it(e,e.now),i}function f$(e=uo,t,n,r,i){const o=p$(e,t,n,r);return o.reportErrorSummary=i,o}function m$(e=uo,t,n,r,i){const o=p$(e,t,n,r);return rt(o,RH(e,i)),o}function g$(e,t,n){return pK(!1,e,t,n)}function h$(e,t,n,r){return pK(!0,e,t,n,r)}function y$(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return vO.forEach((n=>{ze(e,n.name)&&(t[n.name]=e[n.name])})),t}(r),c=JH(o,(()=>m.projectCompilerOptions));let l,_,u;qH(c),c.getParsedCommandLine=e=>k$(m,e,b$(m,e)),c.resolveModuleNameLiterals=it(o,o.resolveModuleNameLiterals),c.resolveTypeReferenceDirectiveReferences=it(o,o.resolveTypeReferenceDirectiveReferences),c.resolveLibrary=it(o,o.resolveLibrary),c.resolveModuleNames=it(o,o.resolveModuleNames),c.resolveTypeReferenceDirectives=it(o,o.resolveTypeReferenceDirectives),c.getModuleResolutionCache=it(o,o.getModuleResolutionCache),c.resolveModuleNameLiterals||c.resolveModuleNames||(l=gM(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>IV(e,t,n,r,i,o,l,PV),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(_=hM(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache(),null==l?void 0:l.optionsToRedirectsKey),c.resolveTypeReferenceDirectiveReferences=(e,t,n,r,i)=>IV(e,t,n,r,i,o,_,AV)),c.resolveLibrary||(u=gM(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveLibrary=(e,t,n)=>vM(e,t,n,o,u)),c.getBuildInfo=(e,t)=>K$(m,e,b$(m,t),void 0);const{watchFile:d,watchDirectory:p,writeLog:f}=BH(a,r),m={host:o,hostWithWatch:a,parseConfigFileHost:GV(o),write:it(o,o.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:_,libraryResolutionCache:u,buildOrder:void 0,readFileWithCache:e=>o.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:d,watchDirectory:p,writeLog:f};return m}function v$(e,t){return pa(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function b$(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=v$(e,t);return n.set(t,i),i}function x$(e){return!!e.options}function S$(e,t){const n=e.configFileCache.get(t);return n&&x$(n)?n:void 0}function k$(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return x$(i)?i:void 0;let o;gr("SolutionBuilder::beforeConfigFileParsing");const{parseConfigFileHost:a,baseCompilerOptions:s,baseWatchOptions:c,extendedConfigCache:l,host:_}=e;let u;return _.getParsedCommandLine?(u=_.getParsedCommandLine(t),u||(o=IS(Ea.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,u=yL(t,s,a,l,c),a.onUnRecoverableConfigFileDiagnostic=gt),r.set(n,u||o),gr("SolutionBuilder::afterConfigFileParsing"),hr("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),u}function T$(e,t){return r$(ca(e.compilerHost.getCurrentDirectory(),t))}function C$(e,t){const n=new Map,i=new Map,o=[];let a,s;for(const e of t)c(e);return s?{buildOrder:a||r,circularDiagnostics:s}:a||r;function c(t,r){const l=b$(e,t);if(i.has(l))return;if(n.has(l))return void(r||(s||(s=[])).push(IS(Ea.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join("\r\n"))));n.set(l,!0),o.push(t);const _=k$(e,t,l);if(_&&_.projectReferences)for(const t of _.projectReferences){c(T$(e,t.path),r||t.circular)}o.pop(),i.set(l,!0),(a||(a=[])).push(t)}}function w$(e){return e.buildOrder||function(e){const t=C$(e,e.rootNames.map((t=>T$(e,t))));e.resolvedConfigFilePaths.clear();const n=new Map(u$(t).map((t=>[b$(e,t),!0]))),r={onDeleteValue:gt};Gx(e.configFileCache,n,r),Gx(e.projectStatus,n,r),Gx(e.builderPrograms,n,r),Gx(e.diagnostics,n,r),Gx(e.projectPendingBuild,n,r),Gx(e.projectErrorsReported,n,r),Gx(e.buildInfoCache,n,r),Gx(e.outputTimeStamps,n,r),e.watch&&(Gx(e.allWatchedConfigFiles,n,{onDeleteValue:Bx}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),Gx(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(HU)}),Gx(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(Bx)}),Gx(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(Bx)}));return e.buildOrder=t}(e)}function N$(e,t,n){const r=t&&T$(e,t),i=w$(e);if(_$(i))return i;if(r){const t=b$(e,r);if(-1===P(i,(n=>b$(e,n)===t)))return}const o=r?C$(e,[r]):i;return Sn.assert(!_$(o)),Sn.assert(!n||void 0!==r),Sn.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function D$(e){e.cache&&F$(e);const{compilerHost:t,host:n}=e,r=e.readFileWithCache,i=t.getSourceFile,{originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:_,readFileWithCache:u}=fV(n,(t=>v$(e,t)),((...e)=>i.call(t,...e)));e.readFileWithCache=u,t.getSourceFile=_,e.cache={originalReadFile:o,originalFileExists:a,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,originalReadFileWithCache:r,originalGetSourceFile:i}}function F$(e){if(!e.cache)return;const{cache:t,host:n,compilerHost:r,extendedConfigCache:i,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:a,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(),null==o||o.clear(),null==a||a.clear(),null==s||s.clear(),e.cache=void 0}function P$(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function E$({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||r<n)&&e.set(t,n)}function A$(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&gK(e,Ea.Starting_compilation_in_watch_mode),D$(e);u$(w$(e)).forEach((t=>e.projectPendingBuild.set(b$(e,t),0))),t&&t.throwIfCancellationRequested()}function I$(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function O$(e,t,n,i,o,a,s){let c,l,_,u=0===e?0:4;return 0===e?{kind:e,project:n,projectPath:i,buildOrder:s,getCompilerOptions:()=>a.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>p(bt),getProgram:()=>p((e=>e.getProgramOrUndefined())),getSourceFile:e=>p((t=>t.getSourceFile(e))),getSourceFiles:()=>f((e=>e.getSourceFiles())),getOptionsDiagnostics:e=>f((t=>t.getOptionsDiagnostics(e))),getGlobalDiagnostics:e=>f((t=>t.getGlobalDiagnostics(e))),getConfigFileParsingDiagnostics:()=>f((e=>e.getConfigFileParsingDiagnostics())),getSyntacticDiagnostics:(e,t)=>f((n=>n.getSyntacticDiagnostics(e,t))),getAllDependencies:e=>f((t=>t.getAllDependencies(e))),getSemanticDiagnostics:(e,t)=>f((n=>n.getSemanticDiagnostics(e,t))),getSemanticDiagnosticsOfNextAffectedFile:(e,t)=>p((n=>n.getSemanticDiagnosticsOfNextAffectedFile&&n.getSemanticDiagnosticsOfNextAffectedFile(e,t))),emit:(e,r,i,o,a)=>e||o?p((s=>{var c,l;return s.emit(e,r,i,o,a||(null==(l=(c=t.host).getCustomTransformers)?void 0:l.call(c,n)))})):(k(2,i),5===u?b(r,i):3===u?v(r,i,a):void 0),done:d}:{kind:e,project:n,projectPath:i,buildOrder:s,getCompilerOptions:()=>a.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(e,t)=>4!==u?_:S(e,t),done:d};function d(n,r,o){return k(8,n,r,o),gr(0===e?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),I$(t,i)}function p(e){return k(0),c&&e(c)}function f(e){return p(e)||r}function m(){var e,r;if(Sn.assert(void 0===c),t.options.dry)return mK(t,Ea.A_non_dry_build_would_build_project_0,n),l=1,void(u=7);if(t.options.verbose&&mK(t,Ea.Building_project_0,n),0===a.fileNames.length)return yK(t,i,UV(a)),l=0,void(u=7);const{host:o,compilerHost:s}=t;t.projectCompilerOptions=a.options,null==(e=t.moduleResolutionCache)||e.update(a.options),null==(r=t.typeReferenceDirectiveResolutionCache)||r.update(a.options),c=o.createProgram(a.fileNames,a.options,s,function({options:e,builderPrograms:t,compilerHost:n},r,i){if(e.force)return;const o=t.get(r);return o||XH(i.options,n)}(t,i,a),UV(a),a.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&J(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),(([e,n])=>[t.host.realpath&&n?v$(t,t.host.realpath(e)):e,n]))),t.builderPrograms.set(i,c)),u++}function g(e,n,r){e.length?({buildResult:l,step:u}=z$(t,i,c,a,e,n,r)):u++}function h(e){Sn.assertIsDefined(c),g([...c.getConfigFileParsingDiagnostics(),...c.getOptionsDiagnostics(e),...c.getGlobalDiagnostics(e),...c.getSyntacticDiagnostics(void 0,e)],8,"Syntactic")}function y(e){g(Sn.checkDefined(c).getSemanticDiagnostics(void 0,e),16,"Semantic")}function v(e,r,o){var s,_,d;Sn.assertIsDefined(c),Sn.assert(3===u);const p=c.saveEmitState();let f;const m=[],{emitResult:g}=jH(c,(e=>(f||(f=[])).push(e)),void 0,void 0,((e,t,n,r,i,o)=>m.push({name:e,text:t,writeByteOrderMark:n,data:o})),r,!1,o||(null==(_=(s=t.host).getCustomTransformers)?void 0:_.call(s,n)));if(f)return c.restoreEmitState(p),({buildResult:l,step:u}=z$(t,i,c,a,f,32,"Declaration file")),{emitSkipped:!0,diagnostics:g.diagnostics};const{host:h,compilerHost:y}=t,v=(null==(d=c.hasChangedEmitSignature)?void 0:d.call(c))?0:2,b=ov(),S=new Map,k=c.getCompilerOptions(),T=dk(k);let C,w;return m.forEach((({name:n,text:r,writeByteOrderMark:o,data:a})=>{const s=v$(t,n);S.set(v$(t,n),n),(null==a?void 0:a.buildInfo)&&H$(t,a.buildInfo,i,k,v);const c=(null==a?void 0:a.differsOnlyInMap)?go(t.host,n):void 0;Mv(e?{writeFile:e}:y,b,n,r,o),(null==a?void 0:a.differsOnlyInMap)?t.host.setModifiedTime(n,c):!T&&t.watch&&(C||(C=W$(t,i))).set(s,w||(w=l$(t.host)))})),x(b,S,m.length?m[0].name:SU(a,!h.useCaseSensitiveFileNames()),v),g}function b(e,n){Sn.assertIsDefined(c),Sn.assert(5===u);const r=c.emitBuildInfo(((n,r,o,a,s,l)=>{(null==l?void 0:l.buildInfo)&&H$(t,l.buildInfo,i,c.getCompilerOptions(),2),e?e(n,r,o,a,s,l):t.compilerHost.writeFile(n,r,o,a,s,l)}),n);return r.diagnostics.length&&(hK(t,r.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...r.diagnostics]),l&=64),r.emittedFiles&&t.write&&r.emittedFiles.forEach((e=>B$(t,a,e))),J$(t,c,a),u=7,r}function x(e,n,r,o){const s=e.getDiagnostics();return s.length?(({buildResult:l,step:u}=z$(t,i,c,a,s,64,"Emit")),s):(t.write&&n.forEach((e=>B$(t,a,e))),Y$(t,a,i,Ea.Updating_unchanged_output_timestamps_of_project_0,n),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:r}),J$(t,c,a),u=7,l=o,s)}function S(r,c){var d,p,f,m;if(Sn.assert(1===e),t.options.dry)return mK(t,Ea.A_non_dry_build_would_update_output_of_project_0,n),l=1,void(u=7);t.options.verbose&&mK(t,Ea.Updating_output_of_project_0,n);const{compilerHost:g}=t;t.projectCompilerOptions=a.options,null==(p=(d=t.host).beforeEmitBundle)||p.call(d,a);const h=NU(a,g,(e=>{const n=T$(t,e.path);return k$(t,n,b$(t,n))}),c||(null==(m=(f=t.host).getCustomTransformers)?void 0:m.call(f,n)));if(dt(h))return mK(t,Ea.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,n,fK(t,h)),u=6,_=O$(0,t,n,i,o,a,s);Sn.assert(!!h.length);const y=ov(),v=new Map;let b=2;const S=t.buildInfoCache.get(i).buildInfo||void 0;h.forEach((({name:e,text:n,writeByteOrderMark:o,data:s})=>{var c,l;v.set(v$(t,e),e),(null==s?void 0:s.buildInfo)&&((null==(c=s.buildInfo.program)?void 0:c.outSignature)!==(null==(l=null==S?void 0:S.program)?void 0:l.outSignature)&&(b&=-3),H$(t,s.buildInfo,i,a.options,b)),Mv(r?{writeFile:r}:g,y,e,n,o)}));return{emitSkipped:!1,diagnostics:x(y,v,h[0].name,b)}}function k(e,r,c,d){for(;u<=e&&u<8;){const e=u;switch(u){case 0:m();break;case 1:h(r);break;case 2:y(r);break;case 3:v(c,r,d);break;case 5:b(c,r);break;case 4:S(c,d);break;case 6:Sn.checkDefined(_).done(r,c,d),u=8;break;case 7:tK(t,n,i,o,a,s,Sn.checkDefined(l)),u++}Sn.assert(u>e)}}}function L$({options:e},t,n){return!(3===t.type&&!e.force)||(0===n.fileNames.length||!!UV(n).length||!dk(n.options))}function j$(e,t,n){if(!e.projectPendingBuild.size)return;if(_$(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;o<t.length;o++){const a=t[o],s=b$(e,a),c=e.projectPendingBuild.get(s);if(void 0===c)continue;n&&(n=!1,xK(e,t));const l=k$(e,a,s);if(!l){vK(e,s),i.delete(s);continue}2===c?(cK(e,a,s,l),lK(e,s,l),_K(e,a,s,l),uK(e,a,s,l),dK(e,a,s,l)):1===c&&(l.fileNames=gj(l.options.configFile.configFileSpecs,Zo(a),l.options,e.parseConfigFileHost),ej(l.fileNames,a,l.options.configFile.configFileSpecs,l.errors,ZL(l.raw)),uK(e,a,s,l),dK(e,a,s,l));const _=Q$(e,l,s);if(!r.force){if(1===_.type){SK(e,a,_),yK(e,s,UV(l)),i.delete(s),r.dry&&mK(e,Ea.Project_0_is_up_to_date,a);continue}if(2===_.type||15===_.type)return yK(e,s,UV(l)),{kind:2,status:_,project:a,projectPath:s,projectIndex:o,config:l}}if(12!==_.type){if(16!==_.type)return{kind:L$(e,_,l)?0:1,status:_,project:a,projectPath:s,projectIndex:o,config:l};SK(e,a,_),yK(e,s,UV(l)),i.delete(s)}else SK(e,a,_),yK(e,s,UV(l)),i.delete(s),r.verbose&&mK(e,_.upstreamProjectBlocked?Ea.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:Ea.Skipping_build_of_project_0_because_its_dependency_1_has_errors,a,_.upstreamProjectName)}}function M$(e,t,n){return SK(e,t.project,t.status),2!==t.kind?O$(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,n):function(e,t,n,r,i){let o=!0;return{kind:2,project:t,projectPath:n,buildOrder:i,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{eK(e,r,n),o=!1},done:()=>(o&&eK(e,r,n),gr("SolutionBuilder::Timestamps only updates"),I$(e,n))}}(e,t.project,t.projectPath,t.config,n)}function R$(e,t,n){const r=j$(e,t,n);return r?M$(e,r,t):r}function B$({write:e},t,n){e&&t.options.listEmittedFiles&&e(`TSFILE: ${n}`)}function J$(e,t,n){t?(e.write&&FH(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(n),e.projectCompilerOptions=e.baseCompilerOptions}function z$(e,t,n,r,i,o,a){const s=n&&!Ev(n.getCompilerOptions());return yK(e,t,i),e.projectStatus.set(t,{type:0,reason:`${a} errors`}),s?{buildResult:o,step:5}:(J$(e,n,r),{buildResult:o,step:7})}function q$(e){return!!e.watcher}function U$(e,t){const n=v$(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!q$(r))return r;if(r.modifiedTime)return r.modifiedTime}const i=go(e.host,t);return e.watch&&(r?r.modifiedTime=i:e.filesWatched.set(n,i)),i}function V$(e,t,n,r,i,o,a){const s=v$(e,t),c=e.filesWatched.get(s);if(c&&q$(c))c.callbacks.push(n);else{const l=e.watchFile(t,((t,n,r)=>{const i=Sn.checkDefined(e.filesWatched.get(s));Sn.assert(q$(i)),i.modifiedTime=r,i.callbacks.forEach((e=>e(t,n,r)))}),r,i,o,a);e.filesWatched.set(s,{callbacks:[n],watcher:l,modifiedTime:c})}return{close:()=>{const t=Sn.checkDefined(e.filesWatched.get(s));Sn.assert(q$(t)),1===t.callbacks.length?(e.filesWatched.delete(s),HU(t)):en(t.callbacks,n)}}}function W$(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function H$(e,t,n,r,i){const o=sU(r),a=$$(e,o,n),s=l$(e.host);a?(a.buildInfo=t,a.modifiedTime=s,2&i||(a.latestChangedDtsTime=s)):e.buildInfoCache.set(n,{path:v$(e,o),buildInfo:t,modifiedTime:s,latestChangedDtsTime:2&i?void 0:s})}function $$(e,t,n){const r=v$(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function K$(e,t,n,r){const i=v$(e,t),o=e.buildInfoCache.get(n);if(void 0!==o&&o.path===i)return o.buildInfo||void 0;const a=e.readFileWithCache(t),s=a?wU(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||io}),s}function G$(e,t,n,r){if(n<U$(e,t))return{type:6,outOfDateOutputFileName:r,newerInputFileName:t}}function X$(e,t,n){return e.buildInfoCache.get(n).path===t.path}function Q$(e,n,i){if(void 0===n)return{type:0,reason:"File deleted mid-build"};const o=e.projectStatus.get(i);if(void 0!==o)return o;gr("SolutionBuilder::beforeUpToDateCheck");const a=function(e,n,i){var o,a;if(!n.fileNames.length&&!ZL(n.raw))return{type:16};let s;const c=!!e.options.force;if(n.projectReferences){e.projectStatus.set(i,{type:13});for(const t of n.projectReferences){const n=QV(t),r=b$(e,n),i=k$(e,n,r),o=Q$(e,i,r);if(13!==o.type&&16!==o.type){if(0===o.type||12===o.type)return{type:12,upstreamProjectName:t.path,upstreamProjectBlocked:12===o.type};if(1!==o.type)return{type:11,upstreamProjectName:t.path};c||(s||(s=[])).push({ref:t,refStatus:o,resolvedRefPath:r,resolvedConfig:i})}}}if(c)return{type:17};const{host:l}=e,_=sU(n.options);let u,d,p,f,m,g=o$;if(_){const r=$$(e,_,i);if(d=(null==r?void 0:r.modifiedTime)||go(l,_),d===io)return r||e.buildInfoCache.set(i,{path:v$(e,_),buildInfo:!1,modifiedTime:d}),{type:4,missingOutputFileName:_};const s=K$(e,_,i,d);if(!s)return{type:5,fileName:_};if((s.bundle||s.program)&&s.version!==t)return{type:14,version:s.version};if(s.program){if((null==(o=s.program.changeFileSet)?void 0:o.length)||(n.options.noEmit?re(s.program.semanticDiagnosticsPerFile,_t):null==(a=s.program.affectedFilesPendingEmit)?void 0:a.length))return{type:8,buildInfoFile:_};if(!n.options.noEmit&&lW(n.options,s.program.options||{}))return{type:9,buildInfoFile:_};p=s.program}g=d,u=_}let h=i$,y=!1;const v=new Set;for(const t of n.fileNames){const n=U$(e,t);if(n===io)return{type:0,reason:`${t} does not exist`};if(d&&d<n){let n,r;if(p){f||(f=qW(p,_,l)),n=f.fileInfos.get(v$(e,t));const i=n?e.readFileWithCache(t):void 0;r=void 0!==i?zH(l,i):void 0,n&&n===r&&(y=!0)}if(!n||n!==r)return{type:6,outOfDateOutputFileName:_,newerInputFileName:t}}n>h&&(m=t,h=n),p&&v.add(v$(e,t))}if(p){f||(f=qW(p,_,l));for(const e of f.roots)if(!v.has(e))return{type:10,buildInfoFile:_,inputFile:e}}if(!_){const t=bU(n,!l.useCaseSensitiveFileNames()),r=W$(e,i);for(const n of t){const t=v$(e,n);let i=null==r?void 0:r.get(t);if(i||(i=go(e.host,n),null==r||r.set(t,i)),i===io)return{type:4,missingOutputFileName:n};if(i<h)return{type:6,outOfDateOutputFileName:n,newerInputFileName:m};i<g&&(g=i,u=n)}}const x=e.buildInfoCache.get(i);let S,k=!1,T=!1;if(s)for(const{ref:t,refStatus:n,resolvedConfig:r,resolvedRefPath:i}of s){if(T=T||!!t.prepend,n.newestInputFileTime&&n.newestInputFileTime<=g)continue;if(x&&X$(e,x,i))return{type:7,outOfDateOutputFileName:_,newerProjectName:t.path};const o=Z$(e,r.options,i);if(!(o&&o<=g))return Sn.assert(void 0!==u,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:u,newerProjectName:t.path};k=!0,S=t.path}const C=G$(e,n.options.configFilePath,g,u);if(C)return C;const w=b(n.options.configFile.extendedSourceFiles||r,(t=>G$(e,t,g,u)));if(w)return w;const N=b(e.lastCachedPackageJsonLookups.get(i)||r,(([t])=>G$(e,t,g,u)));return N||(T&&k?{type:3,outOfDateOutputFileName:u,newerProjectName:S}:{type:k?2:y?15:1,newestInputFileTime:h,newestInputFileName:m,oldestOutputFileName:u})}(e,n,i);return gr("SolutionBuilder::afterUpToDateCheck"),hr("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(i,a),a}function Y$(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=sU(t.options);if(a)return(null==i?void 0:i.has(v$(e,a)))||(e.options.verbose&&mK(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=l$(e.host)),$$(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:s}=e,c=bU(t,!s.useCaseSensitiveFileNames()),l=W$(e,n),_=l?new Set:void 0;if(!i||c.length!==i.size){let n=!!e.options.verbose;for(const a of c){const c=v$(e,a);(null==i?void 0:i.has(c))||(n&&(n=!1,mK(e,r,t.options.configFilePath)),s.setModifiedTime(a,o||(o=l$(e.host))),l&&(l.set(c,o),_.add(c)))}}null==l||l.forEach(((e,t)=>{(null==i?void 0:i.has(t))||_.has(t)||l.delete(t)}))}function Z$(e,t,n){if(!t.composite)return;const r=Sn.checkDefined(e.buildInfoCache.get(n));if(void 0!==r.latestChangedDtsTime)return r.latestChangedDtsTime||void 0;const i=r.buildInfo&&r.buildInfo.program&&r.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(_a(r.buildInfo.program.latestChangedDtsFile,Zo(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function eK(e,t,n){if(e.options.dry)return mK(e,Ea.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);Y$(e,t,n,Ea.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:SU(t,!e.host.useCaseSensitiveFileNames())})}function tK(e,t,n,r,i,o,a){if(!(124&a)&&i.options.composite)for(let i=r+1;i<o.length;i++){const r=o[i],s=b$(e,r);if(e.projectPendingBuild.has(s))continue;const c=k$(e,r,s);if(c&&c.projectReferences)for(const r of c.projectReferences){if(b$(e,T$(e,r.path))!==n)continue;const i=e.projectStatus.get(s);if(i)switch(i.type){case 1:if(2&a){r.prepend?e.projectStatus.set(s,{type:3,outOfDateOutputFileName:i.oldestOutputFileName,newerProjectName:t}):i.type=2;break}case 15:case 2:case 3:2&a||e.projectStatus.set(s,{type:7,outOfDateOutputFileName:3===i.type?i.outOfDateOutputFileName:i.oldestOutputFileName,newerProjectName:t});break;case 12:b$(e,T$(e,i.upstreamProjectName))===n&&P$(e,s)}E$(e,s,0);break}}}function nK(e,t,n,r,i,o){gr("SolutionBuilder::beforeBuild");const a=function(e,t,n,r,i,o){const a=N$(e,t,o);if(!a)return 3;A$(e,n);let s=!0,c=0;for(;;){const t=R$(e,a,s);if(!t)break;s=!1,t.done(n,r,null==i?void 0:i(t.project)),e.diagnostics.has(t.projectPath)||c++}return F$(e),bK(e,a),function(e,t){if(!e.watchAllProjectsPending)return;gr("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const n of u$(t)){const t=b$(e,n),r=k$(e,n,t);cK(e,n,t,r),lK(e,t,r),r&&(_K(e,n,t,r),uK(e,n,t,r),dK(e,n,t,r))}gr("SolutionBuilder::afterWatcherCreation"),hr("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}(e,a),_$(a)?4:a.some((t=>e.diagnostics.has(b$(e,t))))?c?2:1:0}(e,t,n,r,i,o);return gr("SolutionBuilder::afterBuild"),hr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),a}function rK(e,t,n){gr("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=N$(e,t,n);if(!r)return 3;if(_$(r))return hK(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const t of r){const n=b$(e,t),r=k$(e,t,n);if(void 0===r){vK(e,n);continue}const i=bU(r,!o.useCaseSensitiveFileNames());if(!i.length)continue;const s=new Set(r.fileNames.map((t=>v$(e,t))));for(const t of i)s.has(v$(e,t))||o.fileExists(t)&&(a?a.push(t):(o.deleteFile(t),iK(e,n,0)))}a&&mK(e,Ea.A_non_dry_build_would_delete_the_following_files_Colon_0,a.map((e=>`\r\n * ${e}`)).join(""));return 0}(e,t,n);return gr("SolutionBuilder::afterClean"),hr("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),r}function iK(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,P$(e,t),E$(e,t,n),D$(e)}function oK(e,t,n){e.reportFileChangeDetected=!0,iK(e,t,n),aK(e,250,!0)}function aK(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(sK,t,"timerToBuildInvalidatedProject",e,n))}function sK(e,t,n){gr("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),gK(e,Ea.File_change_detected_Starting_incremental_compilation));let n=0;const r=w$(e),i=R$(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=j$(e,r,!1);if(!i)break;if(2!==i.kind&&(t||5===n))return void aK(e,100,!1);M$(e,i,r).done(),2!==i.kind&&n++}return F$(e),r}(t,n);gr("SolutionBuilder::afterBuild"),hr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&bK(t,r)}function cK(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,V$(e,t,(()=>oK(e,n,2)),2e3,null==r?void 0:r.watchOptions,gH.ConfigFile,t))}function lK(e,t,n){jU(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,((t,r)=>V$(e,t,(()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach((t=>oK(e,t,2)))}),2e3,null==n?void 0:n.watchOptions,gH.ExtendedConfigFile)),(t=>v$(e,t)))}function _K(e,t,n,r){e.watch&&zU(c$(e.allWatchedWildcardDirectories,n),new Map(Object.entries(r.wildcardDirectories)),((i,o)=>e.watchDirectory(i,(o=>{var a;qU({watchedDirPath:v$(e,i),fileOrDirectory:o,fileOrDirectoryPath:v$(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=S$(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>v$(e,t)})||oK(e,n,1)}),o,null==r?void 0:r.watchOptions,gH.WildcardDirectory,t)))}function uK(e,t,n,r){e.watch&&Xx(c$(e.allWatchedInputFiles,n),Xe(r.fileNames,(t=>v$(e,t))),{createNewValue:(i,o)=>V$(e,o,(()=>oK(e,n,0)),250,null==r?void 0:r.watchOptions,gH.SourceFile,t),onDeleteValue:Bx})}function dK(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&Xx(c$(e.allWatchedPackageJsonFiles,n),new Map(e.lastCachedPackageJsonLookups.get(n)),{createNewValue:(i,o)=>V$(e,i,(()=>oK(e,n,0)),2e3,null==r?void 0:r.watchOptions,gH.PackageJson,t),onDeleteValue:Bx})}function pK(e,t,n,r,i){const o=y$(e,t,n,r,i);return{build:(e,t,n,r)=>nK(o,e,t,n,r),clean:e=>rK(o,e),buildReferences:(e,t,n,r)=>nK(o,e,t,n,r,!0),cleanReferences:e=>rK(o,e,!0),getNextInvalidatedProject:e=>(A$(o,e),R$(o,w$(o),!1)),getBuildOrder:()=>w$(o),getUpToDateStatusOfProject:e=>{const t=T$(o,e),n=b$(o,t);return Q$(o,k$(o,t,n),n)},invalidateProject:(e,t)=>iK(o,e,t||0),close:()=>function(e){Kx(e.allWatchedConfigFiles,Bx),Kx(e.allWatchedExtendedConfigFiles,HU),Kx(e.allWatchedWildcardDirectories,(e=>Kx(e,HU))),Kx(e.allWatchedInputFiles,(e=>Kx(e,Bx))),Kx(e.allWatchedPackageJsonFiles,(e=>Kx(e,Bx)))}(o)}}function fK(e,t){return wa(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function mK(e,t,...n){e.host.reportSolutionBuilderStatus(IS(t,...n))}function gK(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,IS(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function hK({host:e},t){t.forEach((t=>e.reportDiagnostic(t)))}function yK(e,t,n){hK(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function vK(e,t){yK(e,t,[e.configFileCache.get(t)])}function bK(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e;let o=0,a=[];_$(t)?(xK(e,t.buildOrder),hK(e,t.circularDiagnostics),n&&(o+=kH(t.circularDiagnostics)),n&&(a=[...a,...TH(t.circularDiagnostics)])):(t.forEach((t=>{const n=b$(e,t);e.projectErrorsReported.has(n)||hK(e,i.get(n)||r)})),n&&i.forEach((e=>o+=kH(e))),n&&i.forEach((e=>[...a,...TH(e)]))),e.watch?gK(e,CH(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,a)}function xK(e,t){e.options.verbose&&mK(e,Ea.Projects_in_this_build_Colon_0,t.map((t=>"\r\n * "+fK(e,t))).join(""))}function SK(e,n,r){e.options.verbose&&function(e,n,r){switch(r.type){case 6:return mK(e,Ea.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,fK(e,n),fK(e,r.outOfDateOutputFileName),fK(e,r.newerInputFileName));case 7:return mK(e,Ea.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,fK(e,n),fK(e,r.outOfDateOutputFileName),fK(e,r.newerProjectName));case 4:return mK(e,Ea.Project_0_is_out_of_date_because_output_file_1_does_not_exist,fK(e,n),fK(e,r.missingOutputFileName));case 5:return mK(e,Ea.Project_0_is_out_of_date_because_there_was_error_reading_file_1,fK(e,n),fK(e,r.fileName));case 8:return mK(e,Ea.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,fK(e,n),fK(e,r.buildInfoFile));case 9:return mK(e,Ea.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,fK(e,n),fK(e,r.buildInfoFile));case 10:return mK(e,Ea.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,fK(e,n),fK(e,r.buildInfoFile),fK(e,r.inputFile));case 1:if(void 0!==r.newestInputFileTime)return mK(e,Ea.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,fK(e,n),fK(e,r.newestInputFileName||""),fK(e,r.oldestOutputFileName||""));break;case 3:return mK(e,Ea.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,fK(e,n),fK(e,r.newerProjectName));case 2:return mK(e,Ea.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,fK(e,n));case 15:return mK(e,Ea.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,fK(e,n));case 11:return mK(e,Ea.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,fK(e,n),fK(e,r.upstreamProjectName));case 12:return mK(e,r.upstreamProjectBlocked?Ea.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:Ea.Project_0_can_t_be_built_because_its_dependency_1_has_errors,fK(e,n),fK(e,r.upstreamProjectName));case 0:return mK(e,Ea.Failed_to_parse_file_0_Colon_1,fK(e,n),r.reason);case 14:return mK(e,Ea.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,fK(e,n),r.version,t);case 17:mK(e,Ea.Project_0_is_being_forcibly_rebuilt,fK(e,n))}}(e,n,r)}var kK,TK,CK,wK,NK,DK,FK,PK,EK,AK,IK=g({"src/compiler/tsbuildPublic.ts"(){OK(),Zi(),i$=new Date(-864e13),o$=new Date(864e13),a$=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(a$||{})}}),OK=g({"src/compiler/_namespaces/ts.ts"(){y(),Mn(),Rn(),Zn(),dr(),pr(),eo(),po(),Ro(),Aa(),Xa(),Us(),np(),yC(),xC(),TC(),OC(),ZC(),bN(),wN(),JE(),sI(),TI(),tL(),Lj(),TR(),LR(),MR(),zB(),iJ(),kJ(),tz(),uz(),gz(),Nz(),Az(),Oz(),Mz(),Bz(),zz(),Uz(),Hz(),Kz(),Xz(),Yz(),eq(),cq(),_q(),dq(),mq(),hq(),bq(),Sq(),Tq(),wq(),Dq(),Iq(),qq(),iU(),OU(),aV(),nW(),rW(),sW(),VW(),KW(),hH(),GH(),n$(),s$(),IK(),DB(),Zi()}});function LK(e){return uo.args.includes(e)}function jK(e){const t=uo.args.indexOf(e);return t>=0&&t<uo.args.length-1?uo.args[t+1]:void 0}function MK(){const e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}function RK(e){return AK+e.replace(/\n/g,AK)}function BK(e){return RK(JSON.stringify(e,void 0,2))}var JK,zK,qK,UK,VK,WK,HK=g({"src/jsTyping/shared.ts"(){var e;PG(),kK="action::set",TK="action::invalidate",CK="action::packageInstalled",wK="event::typesRegistry",NK="event::beginInstallTypes",DK="event::endInstallTypes",FK="event::initializationFailed",PK="action::watchTypingLocations",(e=EK||(EK={})).GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",AK="\n "}}),$K=g({"src/jsTyping/types.ts"(){}}),KK=g({"src/jsTyping/_namespaces/ts.server.ts"(){HK(),$K()}});function GK(t,n){return new Pn(qe(n,`ts${e}`)||qe(n,"latest")).compareTo(t.version)<=0}function XK(e){return UK.has(e)?"node":e}function QK(e,t){const n=vL(t,(t=>e.readFile(t)));return new Map(Object.entries(n.config))}function YK(e,t){var n;const r=vL(t,(t=>e.readFile(t)));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function ZK(e,t,n,r,i,o,a,s,c,l){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const _=new Map;n=G(n,(e=>{const t=ua(e);if(Wk(t))return t}));const u=[];a.include&&h(a.include,"Explicitly included types");const d=a.exclude||[];if(!l.types){const e=new Set(n.map(Zo));e.add(r),e.forEach((e=>{y(e,"bower.json","bower_components",u),y(e,"package.json","node_modules",u)}))}if(a.disableFilenameBasedTypeAcquisition||function(e){const n=G(e,(e=>{if(!Wk(e))return;const t=Xt(Yk(St(ea(e))));return i.get(t)}));n.length&&h(n,"Inferred typings from file names");re(e,(e=>$o(e,".jsx")))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),g("react"))}(n),s){h(ce(s.map(XK),Et,Rt),"Inferred typings from unresolved imports")}for(const e of d){_.delete(e)&&t&&t(`Typing for ${e} is in exclude list, will be ignored.`)}o.forEach(((e,t)=>{const n=c.get(t);!1===_.get(t)&&void 0!==n&&GK(e,n)&&_.set(t,e.typingLocation)}));const p=[],f=[];_.forEach(((e,t)=>{e?f.push(e):p.push(t)}));const m={cachedTypingPaths:f,newTypingNames:p,filesToWatch:u};return t&&t(`Finished typings discovery:${BK(m)}`),m;function g(e){_.has(e)||_.set(e,!1)}function h(e,n){t&&t(`${n}: ${JSON.stringify(e)}`),b(e,g)}function y(n,r,i,o){const a=sa(n,r);let s,c;e.fileExists(a)&&(o.push(a),s=vL(a,(t=>e.readFile(t))).config,c=V([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],Ue),h(c,`Typing names in '${a}' dependencies`));const l=sa(n,i);if(o.push(l),!e.directoryExists(l))return;const u=[],d=c?c.map((e=>sa(l,e,r))):e.readDirectory(l,[".json"],void 0,void 0,3).filter((e=>{if(ea(e)!==r)return!1;const t=ra(ua(e)),n="@"===t[t.length-3][0];return n&&St(t[t.length-4])===i||!n&&St(t[t.length-3])===i}));t&&t(`Searching for typing names in ${l}; all files: ${JSON.stringify(d)}`);for(const n of d){const r=ua(n),i=vL(r,(t=>e.readFile(t))).config;if(!i.name)continue;const o=i.types||i.typings;if(o){const n=_a(o,Zo(r));e.fileExists(n)?(t&&t(` Package '${i.name}' provides its own types.`),_.set(i.name,n)):t&&t(` Package '${i.name}' provides its own types but they are missing.`)}else u.push(i.name)}h(u," Found package names")}}function eG(e){return tG(e,!0)}function tG(e,t){if(!e)return 1;if(e.length>WK)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){const t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){const e=tG(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=tG(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function nG(e,t){return"object"==typeof e?rG(t,e.result,e.name,e.isScopeName):rG(t,e,t,!1)}function rG(e,t,n,r){const 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 ${WK} 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 Sn.fail();default:Sn.assertNever(t)}}var iG=g({"src/jsTyping/jsTyping.ts"(){PG(),KK(),zK=(JK=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"]).map((e=>`node:${e}`)),qK=[...JK,...zK],UK=new Set(qK),VK=(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))(VK||{}),WK=214}}),oG={};h(oG,{NameValidationResult:()=>VK,discoverTypings:()=>ZK,isTypingUpToDate:()=>GK,loadSafeList:()=>QK,loadTypesMap:()=>YK,nodeCoreModuleList:()=>qK,nodeCoreModules:()=>UK,nonRelativeModuleNameForTypingCache:()=>XK,prefixedNodeCoreModuleList:()=>zK,renderPackageNameValidationFailure:()=>nG,validatePackageName:()=>eG});var aG,sG,cG,lG,_G,uG,dG,pG,fG,mG,gG,hG,yG,vG,bG,xG,SG,kG,TG,CG,wG,NG,DG,FG=g({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){iG()}}),PG=g({"src/jsTyping/_namespaces/ts.ts"(){OK(),FG(),KK()}});function EG(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",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 AG,IG,OG,LG,jG,MG,RG,BG,JG,zG=g({"src/services/types.ts"(){(e=>{class t{constructor(e){this.text=e}getText(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)}getLength(){return this.text.length}getChangeRange(){}}e.fromString=function(e){return new t(e)}})(aG||(aG={})),sG=(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))(sG||{}),cG=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(cG||{}),lG=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(lG||{}),_G={},uG=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(uG||{}),dG=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(dG||{}),pG=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(pG||{}),fG=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(fG||{}),mG=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(mG||{}),gG=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(gG||{}),hG=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(hG||{}),yG=EG("\n"),vG=(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))(vG||{}),bG=(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))(bG||{}),xG=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(xG||{}),SG=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(SG||{}),kG=(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))(kG||{}),TG=(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))(TG||{}),CG=(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))(CG||{}),wG=(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))(wG||{}),NG=(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))(NG||{}),DG=(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))(DG||{})}});function qG(e){switch(e.kind){case 260:return Tg(e)&&cl(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return void 0===e.name?3:2;case 306:case 263:return 3;case 267:return lf(e)||1===CR(e)?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function UG(e){const t=(e=VX(e)).parent;return 312===e.kind?1:yP(t)||xP(t)||CP(t)||hP(t)||cP(t)||aP(t)&&e===t.name?7:VG(e)?function(e){const t=166===e.kind?e:sD(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&271===t.parent.kind?7:4}(e):ey(e)?qG(t):m_(e)&&kc(e,un(QP,Yu,YP))?7:function(e){ex(e)&&(e=e.parent);switch(e.kind){case 110:return!fg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return hm(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(166===t.parent.kind){for(;t.parent&&166===t.parent.kind;)t=t.parent;n=t.right===e}return 183===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(211===t.parent.kind){for(;t.parent&&211===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&233===t.parent.kind&&298===t.parent.parent.kind){const e=t.parent.parent.parent;return 263===e.kind&&119===t.parent.parent.token||264===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:lD(t)?(Sn.assert(PE(t.parent)),2):UD(t)?3:1}function VG(e){for(;166===e.parent.kind;)e=e.parent;return xg(e.parent)&&e.parent.moduleReference===e}function WG(e,t=!1,n=!1){return eX(e,eF,QG,t,n)}function HG(e,t=!1,n=!1){return eX(e,tF,QG,t,n)}function $G(e,t=!1,n=!1){return eX(e,Y_,QG,t,n)}function KG(e,t=!1,n=!1){return eX(e,nF,YG,t,n)}function GG(e,t=!1,n=!1){return eX(e,uD,QG,t,n)}function XG(e,t=!1,n=!1){return eX(e,Mu,ZG,t,n)}function QG(e){return e.expression}function YG(e){return e.tag}function ZG(e){return e.tagName}function eX(e,t,n,r,i){let o=r?nX(e):tX(e);return i&&(o=uA(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function tX(e){return _X(e)?e.parent:e}function nX(e){return _X(e)||uX(e)?e.parent:e}function rX(e,t){for(;e;){if(256===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function iX(e,t){return!!YD(e.expression)&&e.expression.name.text===t}function oX(e){var t;return HN(e)&&(null==(t=ft(e.parent,Rl))?void 0:t.label)===e}function aX(e){var t;return HN(e)&&(null==(t=ft(e.parent,WF))?void 0:t.label)===e}function sX(e){return aX(e)||oX(e)}function cX(e){var t;return(null==(t=ft(e.parent,zu))?void 0:t.tagName)===e}function lX(e){var t;return(null==(t=ft(e.parent,sD))?void 0:t.right)===e}function _X(e){var t;return(null==(t=ft(e.parent,YD))?void 0:t.name)===e}function uX(e){var t;return(null==(t=ft(e.parent,ZD))?void 0:t.argumentExpression)===e}function dX(e){var t;return(null==(t=ft(e.parent,nP))?void 0:t.name)===e}function pX(e){var t;return HN(e)&&(null==(t=ft(e.parent,y_))?void 0:t.name)===e}function fX(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Mc(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return 199===e.parent.parent.kind;default:return!1}}function mX(e){return yg(e.parent.parent)&&vg(e.parent.parent)===e}function gX(e){for(bh(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function hX(e){switch(e.kind){case 312:return tO(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(Ky(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:n}=e;return y_(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return fb(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const r=Gg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=hX(i);return""===e?"const":e;case 3:case 5:return oF(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return cP(e.parent)?"alias":"";case 277:const o=hX(e.expression);return""===o?"const":o;default:return""}function t(e){return im(e)?"const":om(e)?"let":"var"}}function yX(e){switch(e.kind){case 110:return!0;case 80:return Xv(e)&&169===e.parent.kind;default:return!1}}function vX(e,t){return as(t)[t.getLineAndCharacterOfPosition(e).line]}function bX(e,t){return TX(e.pos,e.end,t)}function xX(e,t){return kX(e,t.pos)&&kX(e,t.end)}function SX(e,t){return e.pos<=t&&t<=e.end}function kX(e,t){return e.pos<t&&t<e.end}function TX(e,t,n){return e<=n.pos&&t>=n.end}function CX(e,t,n){return e.pos<=t&&e.end>=n}function wX(e,t,n){return DX(e.pos,e.end,t,n)}function NX(e,t,n,r){return DX(e.getStart(t),e.end,n,r)}function DX(e,t,n,r){return Math.max(e,n)<Math.min(t,r)}function FX(e,t,n){return Sn.assert(e.pos<=t),t<e.end||!PX(e,n)}function PX(e,t){if(void 0===e||Ip(e))return!1;switch(e.kind){case 263:case 264:case 266:case 210:case 206:case 187:case 241:case 268:case 269:case 275:case 279:return EX(e,20,t);case 299:return PX(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return EX(e,22,t);case 184:case 185:return PX(e.type,t);case 176:case 177:case 178:case 262:case 218:case 174:case 173:case 180:case 179:case 219:return e.body?PX(e.body,t):e.type?PX(e.type,t):IX(e,22,t);case 267:return!!e.body&&PX(e.body,t);case 245:return e.elseStatement?PX(e.elseStatement,t):PX(e.thenStatement,t);case 244:return PX(e.expression,t)||IX(e,27,t);case 209:case 207:case 212:case 167:case 189:return EX(e,24,t);case 181:return e.type?PX(e.type,t):IX(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return PX(e.statement,t);case 246:return IX(e,117,t)?EX(e,22,t):PX(e.statement,t);case 186:return PX(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return PX(e.expression,t);case 215:return PX(e.template,t);case 228:return PX(Ae(e.templateSpans),t);case 239:return Op(e.literal);case 278:case 272:return Op(e.moduleSpecifier);case 224:return PX(e.operand,t);case 226:return PX(e.right,t);case 227:return PX(e.whenFalse,t);default:return!0}}function EX(e,t,n){const r=e.getChildren(n);if(r.length){const e=Ie(r);if(e.kind===t)return!0;if(27===e.kind&&1!==r.length)return r[r.length-2].kind===t}return!1}function AX(e){const t=LX(e);if(!t)return;return{listItemIndex:ef(t.getChildren(),e),list:t}}function IX(e,t,n){return!!OX(e,t,n)}function OX(e,t,n){return D(e.getChildren(n),(e=>e.kind===t))}function LX(e){const t=D(e.parent.getChildren(),(t=>ME(t)&&bX(t,e)));return Sn.assert(!t||I(t.getChildren(),e)),t}function jX(e){return 90===e.kind}function MX(e){return 86===e.kind}function RX(e){return 100===e.kind}function BX(e,t){if(16777216&e.flags)return;const n=yZ(e,t);if(n)return n;const r=function(e){let t;return kc(e,(e=>(j_(e)&&(t=e),!sD(e.parent)&&!j_(e.parent)&&!I_(e.parent)))),t}(e);return r&&t.getTypeAtLocation(r)}function JX(e,t){if(!t)switch(e.kind){case 263:case 231:return function(e){if(Lc(e))return e.name;if(YF(e)){const t=e.modifiers&&D(e.modifiers,jX);if(t)return t}if(yF(e)){const t=D(e.getChildren(),MX);if(t)return t}}(e);case 262:case 218:return function(e){if(Lc(e))return e.name;if(QF(e)){const t=D(e.modifiers,jX);if(t)return t}if(oF(e)){const t=D(e.getChildren(),RX);if(t)return t}}(e);case 176:return e}if(Lc(e))return e.name}function zX(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(gP(e.importClause.namedBindings)){const t=Oe(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(fP(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function qX(e,t){if(e.exportClause){if(bP(e.exportClause)){if(!Oe(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(mP(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function UX(e,t){const{parent:n}=e;if(f_(e)&&(t||90!==e.kind)?lI(n)&&I(n.modifiers,e):86===e.kind?YF(n)||yF(e):100===e.kind?QF(n)||oF(e):120===e.kind?ZF(n):94===e.kind?tP(n):156===e.kind?eP(n):145===e.kind||144===e.kind?nP(n):102===e.kind?aP(n):139===e.kind?yD(n):153===e.kind&&vD(n)){const e=JX(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&XF(n)&&1===n.declarations.length){const e=n.declarations[0];if(HN(e.name))return e.name}if(156===e.kind){if(cP(n)&&n.isTypeOnly){const e=zX(n.parent,t);if(e)return e}if(vP(n)&&n.isTypeOnly){const e=qX(n,t);if(e)return e}}if(130===e.kind){if(hP(n)&&n.propertyName||xP(n)&&n.propertyName||fP(n)||mP(n))return n.name;if(vP(n)&&n.exportClause&&mP(n.exportClause))return n.exportClause.name}if(102===e.kind&&sP(n)){const e=zX(n,t);if(e)return e}if(95===e.kind){if(vP(n)){const e=qX(n,t);if(e)return e}if(yP(n))return uA(n.expression)}if(149===e.kind&&CP(n))return n.expression;if(161===e.kind&&(sP(n)||vP(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&JP(n)&&n.token===e.kind){const e=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(e)return e}if(96===e.kind){if(lD(n)&&n.constraint&&TD(n.constraint))return n.constraint.typeName;if(jD(n)&&TD(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&MD(n))return n.typeParameter.name;if(103===e.kind&&lD(n)&&qD(n.parent))return n.name;if(143===e.kind&&JD(n)&&143===n.operator&&TD(n.type))return n.type.typeName;if(148===e.kind&&JD(n)&&148===n.operator&&FD(n.type)&&TD(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&tF(n)||116===e.kind&&lF(n)||114===e.kind&&cF(n)||135===e.kind&&_F(n)||127===e.kind&&gF(n)||91===e.kind&&sF(n))&&n.expression)return uA(n.expression);if((103===e.kind||104===e.kind)&&pF(n)&&n.operatorToken===e)return uA(n.right);if(130===e.kind&&xF(n)&&TD(n.type))return n.type.typeName;if(103===e.kind&&RF(n)||165===e.kind&&BF(n))return uA(n.expression)}return e}function VX(e){return UX(e,!1)}function WX(e){return UX(e,!0)}function HX(e,t){return $X(e,t,(e=>Oy(e)||hy(e.kind)||$N(e)))}function $X(e,t,n){return GX(e,t,!1,n,!1)}function KX(e,t){return GX(e,t,!0,void 0,!1)}function GX(e,t,n,r,i){let o,a=e;for(;;){const i=a.getChildren(e),c=Be(i,t,((e,t)=>t),((o,a)=>{const c=i[o].getEnd();if(c<t)return-1;const l=n?i[o].getFullStart():i[o].getStart(e,!0);return l>t?1:s(i[o],l,c)?i[o-1]&&s(i[o-1])?1:0:r&&l===t&&i[o-1]&&i[o-1].getEnd()===t&&s(i[o-1])?1:-1}));if(o)return o;if(!(c>=0&&i[c]))return a;a=i[c]}function s(a,s,c){if(c??(c=a.getEnd()),c<t)return!1;if(s??(s=n?a.getFullStart():a.getStart(e,!0)),s>t)return!1;if(t<c||t===c&&(1===a.kind||i))return!0;if(r&&c===t){const n=ZX(t,e,a);if(n&&r(n))return o=n,!0}return!1}}function XX(e,t){let n=KX(e,t);for(;oQ(n);){const t=YX(n,n.parent,e);if(!t)return;n=t}return n}function QX(e,t){const n=KX(e,t);return Hl(n)&&t>n.getStart(e)&&t<n.getEnd()?n:ZX(t,e)}function YX(e,t,n){return function t(r){if(Hl(r)&&r.pos===e.end)return r;return S(r.getChildren(n),(r=>(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&gQ(r,n)?t(r):void 0))}(t)}function ZX(e,t,n,r){const i=function i(o){if(eQ(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Be(a,e,((e,t)=>t),((t,n)=>e<a[t].end?!a[t-1]||e>=a[t-1].end?0:1:-1));if(s>=0&&a[s]){const n=a[s];if(e<n.end){if(n.getStart(t,!r)>=e||!gQ(n,t)||oQ(n)){const e=nQ(a,s,t,o.kind);return e?!r&&Ju(e)&&e.getChildren(t).length?i(e):tQ(e,t):void 0}return i(n)}}Sn.assert(void 0!==n||312===o.kind||1===o.kind||Ju(o));const c=nQ(a,a.length,t,o.kind);return c&&tQ(c,t)}(n||t);return Sn.assert(!(i&&oQ(i))),i}function eQ(e){return Hl(e)&&!oQ(e)}function tQ(e,t){if(eQ(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=nQ(n,n.length,t,e.kind);return r&&tQ(r,t)}function nQ(e,t,n,r){for(let i=t-1;i>=0;i--){if(oQ(e[i]))0!==i||12!==r&&285!==r||Sn.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(gQ(e[i],n))return e[i]}}function rQ(e,t,n=ZX(t,e)){if(n&&i_(n)){const r=n.getStart(e),i=n.getEnd();if(r<t&&t<i)return!0;if(t===i)return!!n.isUnterminated}return!1}function iQ(e,t){const n=KX(e,t);return!!n&&(12===n.kind||(30===n.kind&&12===n.parent.kind||(30===n.kind&&294===n.parent.kind||(!(!n||20!==n.kind||294!==n.parent.kind)||30===n.kind&&287===n.parent.kind))))}function oQ(e){return PN(e)&&e.containsOnlyTriviaWhiteSpaces}function aQ(e,t){const n=KX(e,t);return Ql(n.kind)&&t>n.getStart(e)}function sQ(e,t){const n=KX(e,t);return!!PN(n)||(!(19!==n.kind||!jP(n.parent)||!wP(n.parent.parent))||!(30!==n.kind||!Mu(n.parent)||!wP(n.parent.parent)))}function cQ(e,t){return function(n){for(;n;)if(n.kind>=285&&n.kind<=294||12===n.kind||30===n.kind||32===n.kind||80===n.kind||20===n.kind||19===n.kind||44===n.kind)n=n.parent;else{if(284!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(KX(e,t))}function lQ(e,t,n){const r=ts(e.kind),i=ts(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)<a){const e=ZX(a+1,n);if(e&&e.kind===t)return e}const s=e.kind;let c=0;for(;;){const r=ZX(e.getFullStart(),n);if(!r)return;if((e=r).kind===t){if(0===c)return e;c--}else e.kind===s&&c++}}function _Q(e,t,n){return t?e.getNonNullableType():n?e.getNonOptionalType():e}function uQ(e,t,n){const r=pQ(e,t);return void 0!==r&&(hm(r.called)||0!==dQ(r.called,r.nTypeArguments,n).length||uQ(r.called,t,n))}function dQ(e,t,n){let r=n.getTypeAtLocation(e);Pl(e.parent)&&(r=_Q(r,El(e.parent),!0));return(tF(e.parent)?r.getConstructSignatures():r.getCallSignatures()).filter((e=>!!e.typeParameters&&e.typeParameters.length>=t))}function pQ(e,t){if(-1===t.text.lastIndexOf("<",e?e.pos:t.text.length))return;let n=e,r=0,i=0;for(;n;){switch(n.kind){case 30:if(n=ZX(n.getFullStart(),t),n&&29===n.kind&&(n=ZX(n.getFullStart(),t)),!n||!HN(n))return;if(!r)return ey(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=lQ(n,19,t),!n)return;break;case 22:if(n=lQ(n,21,t),!n)return;break;case 24:if(n=lQ(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(j_(n))break;return}n=ZX(n.getFullStart(),t)}}function fQ(e,t,n){return Mge.getRangeOfEnclosingComment(e,t,void 0,n)}function mQ(e,t){return!!kc(KX(e,t),_E)}function gQ(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function hQ(e,t=0){const n=[],r=Nu(e)?yc(e)&~t:0;return 2&r&&n.push("private"),4&r&&n.push("protected"),1&r&&n.push("public"),(256&r||gD(e))&&n.push("static"),64&r&&n.push("abstract"),32&r&&n.push("export"),65536&r&&n.push("deprecated"),33554432&e.flags&&n.push("declare"),277===e.kind&&n.push("export"),n.length>0?n.join(","):""}function yQ(e){return 183===e.kind||213===e.kind?e.typeArguments:y_(e)||263===e.kind||264===e.kind?e.typeParameters:void 0}function vQ(e){return 2===e||3===e}function bQ(e){return!(11!==e&&14!==e&&!Ql(e))}function xQ(e,t,n){return!!(4&t.flags)&&e.isEmptyAnonymousObjectType(n)}function SQ(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(xQ(n,t[0],t[1])||xQ(n,t[1],t[0]))}function kQ(e,t,n){return Ql(e.kind)&&e.getStart(n)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function TQ(e){switch(e){case 125:case 123:case 124:return!0}return!1}function CQ(e){const t=tt(e);return $L(t,e&&e.configFile),t}function wQ(e){if(209===e.kind||210===e.kind){if(226===e.parent.kind&&e.parent.left===e&&64===e.parent.operatorToken.kind)return!0;if(250===e.parent.kind&&e.parent.initializer===e)return!0;if(wQ(303===e.parent.kind?e.parent.parent:e.parent))return!0}return!1}function NQ(e,t){return FQ(e,t,!0)}function DQ(e,t){return FQ(e,t,!1)}function FQ(e,t,n){const r=fQ(e,t,void 0);return!!r&&n===OG.test(e.text.substring(r.pos,r.end))}function PQ(e){if(e)switch(e.kind){case 11:case 15:return AQ(e);default:return EQ(e)}}function EQ(e,t,n){return ac(e.getStart(t),(n||e).getEnd())}function AQ(e){if(!e.isUnterminated)return ac(e.getStart()+1,e.getEnd()-1)}function IQ(e,t){return gx(e.getStart(t),e.end)}function OQ(e){return ac(e.pos,e.end)}function LQ(e){return gx(e.start,e.start+e.length)}function jQ(e,t,n){return MQ(oc(e,t),n)}function MQ(e,t){return{span:e,newText:t}}function RQ(e){return I(LG,e)}function BQ(e){return 156===e.kind}function JQ(e){return BQ(e)||HN(e)&&"type"===e.text}function zQ(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)}function qQ(){const e=[];return t=>{const n=PB(t);return!e[n]&&(e[n]=!0)}}function UQ(e){return e.getText(0,e.getLength())}function VQ(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function WQ(e){return e.isTypeParameter()&&e.getConstraint()||e}function HQ(e){return 167===e.kind?Fy(e.expression)?e.expression.text:void 0:$N(e)?Dc(e):Ly(e)}function $Q(e){return e.getSourceFiles().some((t=>!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)))}function KQ(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator))}function GQ(e){return!!e.module||HS(e)>=2||!!e.noEmit}function XQ(e,t){return{fileExists:t=>e.fileExists(t),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:it(t,t.readFile),useCaseSensitiveFileNames:it(t,t.useCaseSensitiveFileNames),getSymlinkCache:it(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:it(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var t;return null==(t=e.getModuleResolutionCache())?void 0:t.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:it(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),getNearestAncestorDirectoryWithPackageJson:it(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function QQ(e,t){return{...XQ(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function YQ(e){return 2===e||e>=3&&e<=99||100===e}function ZQ(e,t,n,r){return e||t&&t.length?eY(e,t,n,r):void 0}function eY(e,t,n,r,i){return AC.createImportDeclaration(void 0,e||t?AC.createImportClause(!!i,e,t&&t.length?AC.createNamedImports(t):void 0):void 0,"string"==typeof n?tY(n,r):n,void 0)}function tY(e,t){return AC.createStringLiteral(e,0===t)}function nY(e,t){return jg(e,t)?1:0}function rY(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=e.imports&&D(e.imports,(e=>FN(e)&&!Xy(e.parent)));return t?nY(t,e):1}}function iY(e){switch(e){case 0:return"'";case 1:return'"';default:return Sn.assertNever(e)}}function oY(e){const t=aY(e);return void 0===t?void 0:Nc(t)}function aY(e){return"default"!==e.escapedName?e.escapedName:S(e.declarations,(e=>{const t=Mc(e);return t&&80===t.kind?t.escapedText:void 0}))}function sY(e){return Qu(e)&&(CP(e.parent)||sP(e.parent)||Fg(e.parent,!1)&&e.parent.arguments[0]===e||sm(e.parent)&&e.parent.arguments[0]===e)}function cY(e){return GD(e)&&$D(e.parent)&&HN(e.name)&&!e.propertyName}function lY(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function _Y(e,t,n){if(e)for(;e.parent;){if($P(e.parent)||!uY(n,e.parent,t))return e;e=e.parent}}function uY(e,t,n){return Gs(e,t.getStart(n))&&t.getEnd()<=$s(e)}function dY(e,t){return lI(e)?D(e.modifiers,(e=>e.kind===t)):void 0}function pY(e,t,n,r,i){const o=243===(_t(n)?n[0]:n).kind?Og:Cf,a=M(t.statements,o);let s=_t(n)?Mde.detectImportDeclarationSorting(n,i):3;const c=Mde.getOrganizeImportsComparer(i,2===s),l=_t(n)?we(n,((e,t)=>Mde.compareImportsOrRequireStatements(e,t,c))):[n];if(a.length)if(a&&(s=Mde.detectImportDeclarationSorting(a,i))){const n=Mde.getOrganizeImportsComparer(i,2===s);for(const r of l){const i=Mde.getImportDeclarationInsertionIndex(a,r,n);if(0===i){const n=a[0]===t.statements[0]?{leadingTriviaOption:Pfe.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,a[0],r,!1,n)}else{const n=a[i-1];e.insertNodeAfter(t,n,r)}}}else{const n=Ae(a);n?e.insertNodesAfter(t,n,l):e.insertNodesAtTopOfFile(t,l,r)}else e.insertNodesAtTopOfFile(t,l,r)}function fY(e,t){return Sn.assert(e.isTypeOnly),mt(e.getChildAt(0,t),BQ)}function mY(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function gY(e,t){return e.fileName===t.fileName&&mY(e.textSpan,t.textSpan)}function hY(e,t){if(e)for(let n=0;n<e.length;n++)if(e.indexOf(e[n])===n){const r=t(e[n],n);if(r)return r}}function yY(e,t,n){for(let r=t;r<n;r++)if(!us(e.charCodeAt(r)))return!1;return!0}function vY(e,t,n){const r=t.tryGetSourcePosition(e);return r&&(!n||n(ua(r.fileName))?r:void 0)}function bY(e,t,n){const{fileName:r,textSpan:i}=e,o=vY({fileName:r,pos:i.start},t,n);if(!o)return;const a=vY({fileName:r,pos:i.start+i.length},t,n),s=a?a.pos-o.pos:i.length;return{fileName:o.fileName,textSpan:{start:o.pos,length:s},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:xY(e,t,n),originalContextSpan:e.contextSpan}}function xY(e,t,n){const r=e.contextSpan&&vY({fileName:e.fileName,pos:e.contextSpan.start},t,n),i=e.contextSpan&&vY({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,n);return r&&i?{start:r.pos,length:i.pos-r.pos}:void 0}function SY(e){return!!kc(e.declarations?De(e.declarations):void 0,(e=>!!_D(e)||!(GD(e)||$D(e)||KD(e))&&"quit"))}function kY(e,t){return TY(e,function(e){const t=e.flags;if(3&t)return SY(e)?13:9;return 4&t||32768&t||65536&t?14:8&t?19:16&t?20:32&t?1:64&t?4:384&t?2:1536&t?11:8192&t?10:262144&t?18:524288&t||2097152&t?0:17}(t))}function TY(e,t){return{text:e,kind:vG[t]}}function CY(){return TY(" ",16)}function wY(e){return TY(ts(e),5)}function NY(e){return TY(ts(e),15)}function DY(e){return TY(ts(e),12)}function FY(e){return TY(e,13)}function PY(e){return TY(e,14)}function EY(e){const t=ns(e);return void 0===t?AY(e):wY(t)}function AY(e){return TY(e,17)}function IY(e){return TY(e,0)}function OY(e){return TY(e,18)}function LY(e){return TY(e,24)}function jY(e,t){return{text:e,kind:vG[23],target:{fileName:Cp(t).fileName,textSpan:EQ(t)}}}function MY(e){return TY(e,22)}function RY(e,t){var n;const r=[MY(`{@${ZP(e)?"link":eE(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=function(e){let t=e.indexOf("://");if(0===t){for(;t<e.length&&124!==e.charCodeAt(t);)t++;return t}if(0===e.indexOf("()"))return 2;if("<"===e.charAt(0)){let t=0,n=0;for(;n<e.length;)if("<"===e[n]&&t++,">"===e[n]&&t--,n++,!t)return n}return 0}(e.text),a=Yp(e.name)+e.text.slice(0,o),s=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;t<e.length&&32===e.charCodeAt(t);)t++;return e.slice(t)}return e}(e.text.slice(o)),c=(null==i?void 0:i.valueDeclaration)||(null==(n=null==i?void 0:i.declarations)?void 0:n[0]);c?(r.push(jY(a,c)),s&&r.push(LY(s))):r.push(LY(a+(o?"":" ")+s))}else e.text&&r.push(LY(e.text));return r.push(MY("}")),r}function BY(e,t){var n;return(null==t?void 0:t.newLineCharacter)||(null==(n=e.getNewLine)?void 0:n.call(e))||RG}function JY(){return TY("\n",6)}function zY(e){try{return e(MG),MG.displayParts()}finally{MG.clear()}}function qY(e,t,n,r=0){return zY((i=>{e.writeType(t,n,17408|r,i)}))}function UY(e,t,n,r,i=0){return zY((o=>{e.writeSymbol(t,n,r,8|i,o)}))}function VY(e,t,n,r=0){return r|=25632,zY((i=>{e.writeSignature(t,n,r,void 0,i)}))}function WY(e,t){const n=t.getSourceFile();return zY((t=>{rU().writeNode(4,e,n,t)}))}function HY(e){return!!e.parent&&e_(e.parent)&&e.parent.propertyName===e}function $Y(e,t){return zk(e,t.getScriptKind&&t.getScriptKind(e))}function KY(e,t){let n=e;for(;GY(n)||ap(n)&&n.links.target;)n=ap(n)&&n.links.target?n.links.target:qx(n,t);return n}function GY(e){return 0!=(2097152&e.flags)}function XY(e,t){return EB(qx(e,t))}function QY(e,t){for(;us(e.charCodeAt(t));)t+=1;return t}function YY(e,t){for(;t>-1&&ds(e.charCodeAt(t));)t-=1;return t+1}function ZY(e,t=!0){const n=e&&tZ(e);return n&&!t&&iZ(n),n}function eZ(e,t,n){let r=n(e);return r?YC(r,e):r=tZ(e,n),r&&!t&&iZ(r),r}function tZ(e,t){const n=t?e=>eZ(e,!0,t):ZY,r=YB(e,n,zq,t?e=>e&&rZ(e,!0,t):e=>e&&nZ(e),n);if(r===e){return cI(FN(e)?YC(AC.createStringLiteralFromNode(e),e):NN(e)?YC(AC.createNumericLiteral(e.text,e.numericLiteralFlags),e):AC.cloneNode(e),e)}return r.parent=void 0,r}function nZ(e,t=!0){if(e){const n=AC.createNodeArray(e.map((e=>ZY(e,t))),e.hasTrailingComma);return cI(n,e),n}return e}function rZ(e,t,n){return AC.createNodeArray(e.map((e=>eZ(e,t,n))),e.hasTrailingComma)}function iZ(e){oZ(e),aZ(e)}function oZ(e){cZ(e,1024,lZ)}function aZ(e){cZ(e,2048,rS)}function sZ(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let e=n;e<r;e++)if(10===t.charCodeAt(e))return!0;return!1}(e,n.text)?fZ(e,t,n):dZ(e,t,n),pZ(e,t,n)}function cZ(e,t,n){iw(e,t);const r=n(e);r&&cZ(r,t,n)}function lZ(e){return e.forEachChild((e=>e))}function _Z(e,t){let n=e;for(let r=1;!Ap(t,n);r++)n=`${e}_${r}`;return n}function uZ(e,t,n,r){let i=0,o=-1;for(const{fileName:a,textChanges:s}of e){Sn.assert(a===t);for(const e of s){const{span:t,newText:a}=e,s=gZ(a,_v(n));if(-1!==s&&(o=t.start+i+s,!r))return o;i+=a.length-t.length}}return Sn.assert(r),Sn.assert(o>=0),o}function dZ(e,t,n,r,i){Ts(n.text,e.pos,mZ(t,n,r,i,hw))}function pZ(e,t,n,r,i){Cs(n.text,e.end,mZ(t,n,r,i,bw))}function fZ(e,t,n,r,i){Cs(n.text,e.pos,mZ(t,n,r,i,hw))}function mZ(e,t,n,r,i){return(o,a,s,c)=>{3===s?(o+=2,a-=2):o+=2,i(e,n||s,t.text.slice(o,a),void 0!==r?r:c)}}function gZ(e,t){if(an(e,t))return 0;let n=e.indexOf(" "+t);return-1===n&&(n=e.indexOf("."+t)),-1===n&&(n=e.indexOf('"'+t)),-1===n?-1:n+1}function hZ(e){return pF(e)&&28===e.operatorToken.kind||QD(e)||(xF(e)||SF(e))&&QD(e.expression)}function yZ(e,t,n){const r=Kh(e.parent);switch(r.kind){case 214:return t.getContextualType(r,n);case 226:{const{left:i,operatorToken:o,right:a}=r;return bZ(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 296:return kZ(r,t);default:return t.getContextualType(e,n)}}function vZ(e,t,n){const r=rY(e,t),i=JSON.stringify(n);return 0===r?`'${fv(i).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:i}function bZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function xZ(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function SZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function kZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function TZ(e,t,n,r){const i=n.getTypeChecker();let o=!0;const a=()=>o=!1,s=i.typeToTypeNode(e,t,1,{trackSymbol:(e,t,n)=>(o=o&&0===i.isSymbolAccessible(e,t,n,!1).accessibility,!o),reportInaccessibleThisError:a,reportPrivateInBaseOfClassExpression:a,reportInaccessibleUniqueSymbolError:a,moduleResolverHost:QQ(n,r)});return o?s:void 0}function CZ(e){return 179===e||180===e||181===e||171===e||173===e}function wZ(e){return 262===e||176===e||174===e||177===e||178===e}function NZ(e){return 267===e}function DZ(e){return 243===e||244===e||246===e||251===e||252===e||253===e||257===e||259===e||172===e||265===e||272===e||271===e||278===e||270===e||277===e}function FZ(e,t,n){const r=kc(t,(t=>t.end!==e?"quit":JG(t.kind)));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(CZ(e.kind)){if(n&&28===n.kind)return!1}else if(NZ(e.kind)){const n=Ie(e.getChildren(t));if(n&&rP(n))return!1}else if(wZ(e.kind)){const n=Ie(e.getChildren(t));if(n&&Em(n))return!1}else if(!DZ(e.kind))return!1;if(246===e.kind)return!0;const r=YX(e,kc(e,(e=>!e.parent)),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function PZ(e){let t=0,n=0;return KI(e,(function r(i){if(DZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(CZ(i.kind)){const r=i.getLastToken(e);if(27===(null==r?void 0:r.kind))t++;else if(r&&28!==r.kind){_s(e,r.getStart(e)).line!==_s(e,Gf(e,r.end).start).line&&n++}}return t+n>=5||KI(i,r)})),0===t&&n<=1||t/n>.2}function EZ(e,t){return jZ(e,e.getDirectories,t)||[]}function AZ(e,t,n,i,o){return jZ(e,e.readDirectory,t,n,i,o)||r}function IZ(e,t){return jZ(e,e.fileExists,t)}function OZ(e,t){return LZ((()=>fx(t,e)))||!1}function LZ(e){try{return e()}catch{return}}function jZ(e,t,...n){return LZ((()=>t&&t.apply(e,n)))}function MZ(e,t,n){const r=[];return Fa(e,(e=>{if(e===n)return!0;const i=sa(e,"package.json");IZ(t,i)&&r.push(i)})),r}function RZ(e,t){let n;return Fa(e,(e=>"node_modules"===e||(n=sV(e,(e=>IZ(t,e)),"package.json"),!!n||void 0))),n}function BZ(e,t){if(!t.fileExists)return[];const n=[];return Fa(Zo(e),(e=>{const r=sa(e,"package.json");if(t.fileExists(r)){const e=JZ(r,t);e&&n.push(e)}})),n}function JZ(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=function(e){try{return JSON.parse(e)}catch{return}}(t.readFile(e)||""),i={};if(r)for(const e of n){const t=r[e];if(!t)continue;const n=new Map;for(const e in t)n.set(e,t[e]);i[e]=n}const o=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return{...i,parseable:!!r,fileName:e,get:a,has:(e,t)=>!!a(e,t)};function a(e,t=15){for(const[n,r]of o)if(r&&t&n){const t=r.get(e);if(void 0!==t)return t}}}function zZ(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||BZ(e.fileName,n)).filter((e=>e.parseable));let i,o,a;return{allowsImportingAmbientModule:function(e,t){if(!r.length||!e.valueDeclaration)return!0;if(o){const t=o.get(e);if(void 0!==t)return t}else o=new Map;const n=fv(e.getName());if(c(n))return o.set(e,!0),!0;const i=l(e.valueDeclaration.getSourceFile().fileName,t);if(void 0===i)return o.set(e,!0),!0;const a=s(i)||s(n);return o.set(e,a),a},allowsImportingSourceFile:function(e,t){if(!r.length)return!0;if(a){const t=a.get(e);if(void 0!==t)return t}else a=new Map;const n=l(e.fileName,t);if(!n)return a.set(e,!0),!0;const i=s(n);return a.set(e,i),i},allowsImportingSpecifier:function(e){if(!r.length||c(e))return!0;if(Vo(e)||zo(e))return!0;return s(e)}};function s(e){const t=_(e);for(const e of r)if(e.has(t)||e.has(lR(t)))return!0;return!1}function c(t){return!!(Sg(e)&&oG.nodeCoreModules.has(t)&&(void 0===i&&(i=qZ(e)),i))}function l(r,i){if(!r.includes("node_modules"))return;const o=dB.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?Vo(o)||zo(o)?void 0:_(o):void 0}function _(e){const t=ra(uR(e)).slice(1);return an(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function qZ(e){return re(e.imports,(({text:e})=>oG.nodeCoreModules.has(e)))}function UZ(e){return I(ra(e),"node_modules")}function VZ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function WZ(e,t){const n=Be(t,EQ(e),bt,Ot);if(n>=0){const r=t[n];return Sn.assertEqual(r.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),mt(r,VZ)}}function HZ(e,t){var n;let r=Be(t,e.start,(e=>e.start),It);for(r<0&&(r=~r);(null==(n=t[r-1])?void 0:n.start)===e.start;)r--;const i=[],o=$s(e);for(;;){const n=ft(t[r],VZ);if(!n||n.start>o)break;Qs(e,n)&&i.push(n),r++}return i}function $Z({startPosition:e,endPosition:t}){return ac(e,void 0===t?e:t)}function KZ(e,t){return kc(KX(e,t.start),(n=>n.getStart(e)<t.start||n.getEnd()>$s(t)?"quit":au(n)&&mY(t,EQ(n,e))))}function GZ(e,t,n=bt){return e?_t(e)?n(J(e,t)):t(e,0):void 0}function XZ(e){return _t(e)?Pe(e):e}function QZ(e,t){if(ZZ(e)){const n=e0(e);if(n)return n;const r=Sce.moduleSymbolToValidIdentifier(t0(e),t,!1),i=Sce.moduleSymbolToValidIdentifier(t0(e),t,!0);return r===i?r:[r,i]}return e.name}function YZ(e,t,n){return ZZ(e)?e0(e)||Sce.moduleSymbolToValidIdentifier(t0(e),t,!!n):e.name}function ZZ(e){return!(33554432&e.flags||"export="!==e.escapedName&&"default"!==e.escapedName)}function e0(e){return S(e.declarations,(e=>{var t,n,r;return yP(e)?null==(t=ft(uA(e.expression),HN))?void 0:t.text:xP(e)&&2097152===e.symbol.flags?null==(n=ft(e.propertyName,HN))?void 0:n.text:null==(r=ft(Mc(e),HN))?void 0:r.text}))}function t0(e){var t;return Sn.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${Sn.formatSymbolFlags(e.flags)}. Declarations: ${null==(t=e.declarations)?void 0:t.map((e=>{const t=Sn.formatSyntaxKind(e.kind),n=Tg(e),{expression:r}=e;return(n?"[JS]":"")+t+(r?` (expression: ${Sn.formatSyntaxKind(r.kind)})`:"")})).join(", ")}.`)}function n0(e,t,n){const r=t.length;if(r+n>e.length)return!1;for(let i=0;i<r;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+n))return!1;return!0}function r0(e){return 95===e.charCodeAt(0)}function i0(e){return!o0(e)}function o0(e){const t=e.getSourceFile();return!(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)&&(Tg(e)||!kc(e,(e=>nP(e)&&mf(e))))}function a0(e){return!!(65536&yc(e))}function s0(e,t){return S(e.imports,(e=>{if(oG.nodeCoreModules.has(e.text))return an(e.text,"node:")}))??t.usesUriStyleNodeCoreModules}function c0(e){return"\n"===e?1:0}function l0(e){return _t(e)?kS(wS(e[0]),e.slice(1)):wS(e)}function _0({options:e},t){const n=!e.semicolons||"ignore"===e.semicolons,r="remove"===e.semicolons||n&&!PZ(t);return{...e,semicolons:r?"remove":"ignore"}}function u0(e){return 2===e||3===e}function d0(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function p0(e,t){const n=new Set,r=new Set,i=new Set;for(const a of t)if(!BP(a)){const t=Qh(a.expression);if(Gl(t))switch(t.kind){case 15:case 11:n.add(t.text);break;case 9:r.add(parseInt(t.text));break;case 10:const e=xT($t(t.text,"n")?t.text.slice(0,-1):t.text);e&&i.add(bT(e))}else{const t=e.getSymbolAtLocation(a.expression);if(t&&t.valueDeclaration&&WP(t.valueDeclaration)){const n=e.getConstantValue(t.valueDeclaration);void 0!==n&&o(n)}}}return{addValue:o,hasValue:function(e){switch(typeof e){case"string":return n.has(e);case"number":return r.has(e);case"object":return i.has(bT(e))}}};function o(e){switch(typeof e){case"string":n.add(e);break;case"number":r.add(e)}}}function f0(e,t,n,r){var i;if(!Wk("string"==typeof e?e:e.fileName))return!1;const o=t.getCompilerOptions(),a=$S(o),s="string"==typeof e?VV(pa(e,n.getCurrentDirectory(),xv(n)),null==(i=t.getPackageJsonInfoCache)?void 0:i.call(t),n,o):e.impliedNodeFormat;if(99===s)return!1;if(1===s)return!0;if(o.verbatimModuleSyntax&&1===a)return!0;if(o.verbatimModuleSyntax&&KS(a))return!1;if("object"==typeof e){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return r}var m0,g0,h0=g({"src/services/utilities.ts"(){zge(),AG=Ls(99,!0),IG=(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))(IG||{}),OG=/^\/\/\/\s*</,LG=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159],jG=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(jG||{}),MG=function(){const e=10*rd;let t,n,r,i;c();const o=e=>s(e,17);return{displayParts:()=>{const n=t.length&&t[t.length-1].text;return i>e&&n&&"..."!==n&&(us(n.charCodeAt(n.length-1))||t.push(TY(" ",16)),t.push(TY("...",15))),t},writeKeyword:e=>s(e,5),writeOperator:e=>s(e,12),writePunctuation:e=>s(e,15),writeTrailingSemicolon:e=>s(e,15),writeSpace:e=>s(e,16),writeStringLiteral:e=>s(e,8),writeParameter:e=>s(e,13),writeProperty:e=>s(e,14),writeLiteral:e=>s(e,8),writeSymbol:function(n,r){i>e||(a(),i+=n.length,t.push(kY(n,r)))},writeLine:function(){i>e||(i+=1,t.push(JY()),n=!0)},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:kt,getIndent:()=>r,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},clear:c};function a(){if(!(i>e)&&n){const e=gv(r);e&&(i+=e.length,t.push(TY(e,16))),n=!1}}function s(n,r){i>e||(a(),i+=n.length,t.push(TY(n,r)))}function c(){t=[],n=!0,r=0,i=0}}(),RG="\n",BG="anonymous function",JG=un(CZ,wZ,NZ,DZ)}});function y0(e){let t=1;const n=ot(),i=new Map,o=new Map;let a;const s={isUsableByFile:e=>e===a,isEmpty:()=>!n.size,clear:()=>{n.clear(),i.clear(),a=void 0},add:(e,r,c,l,_,u,d,p)=>{let f;if(e!==a&&(s.clear(),a=e),_){const t=GT(_.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i}=t;if(f=dR(uR(_.fileName.substring(r+1,i))),an(e,_.path.substring(0,n))){const e=o.get(f),t=_.fileName.substring(0,r+1);if(e){n>e.indexOf(Ij)&&o.set(f,t)}else o.set(f,t)}}}const m=1===u&&sx(r)||r,g=0===u||zQ(m)?Nc(c):QZ(m,void 0),h="string"==typeof g?g:g[0],y="string"==typeof g?void 0:g[1],v=fv(l.name),b=t++,x=qx(r,p),S=33554432&r.flags?void 0:r,k=33554432&l.flags?void 0:l;S&&k||i.set(b,[r,l]),n.add(function(e,t,n,r){const i=n||"";return`${e.length} ${EB(qx(t,r))} ${e} ${i}`}(h,r,Vs(v)?void 0:v,p),{id:b,symbolTableKey:c,symbolName:h,capitalizedSymbolName:y,moduleName:v,moduleFile:_,moduleFileName:null==_?void 0:_.fileName,packageName:f,exportKind:u,targetFlags:x.flags,isFromPackageJson:d,symbol:S,moduleSymbol:k})},get:(e,t)=>{if(e!==a)return;const r=n.get(t);return null==r?void 0:r.map(c)},search:(t,r,i,s)=>{if(t===a)return dp(n,((t,n)=>{const{symbolName:a,ambientModuleName:l}=function(e){const t=e.indexOf(" "),n=e.indexOf(" ",t+1),r=parseInt(e.substring(0,t),10),i=e.substring(n+1),o=i.substring(0,r),a=i.substring(r+1),s=""===a?void 0:a;return{symbolName:o,ambientModuleName:s}}(n),_=r&&t[0].capitalizedSymbolName||a;if(i(_,t[0].targetFlags)){const r=t.map(c).filter(((n,r)=>function(t,n){if(!n||!t.moduleFileName)return!0;const r=e.getGlobalTypingsCacheLocation();if(r&&an(t.moduleFileName,r))return!0;const i=o.get(n);return!i||an(t.moduleFileName,i)}(n,t[r].packageName)));if(r.length){const e=s(r,_,!!l,n);if(void 0!==e)return e}}}))},releaseSymbols:()=>{i.clear()},onFileChanged:(e,t,n)=>(!l(e)||!l(t))&&(a&&a!==t.path||n&&qZ(e)!==qZ(t)||!fe(e.moduleAugmentations,t.moduleAugmentations)||!function(e,t){if(!fe(e.ambientModuleNames,t.ambientModuleNames))return!1;let n=-1,r=-1;for(const i of t.ambientModuleNames){const o=e=>uf(e)&&e.name.text===i;if(n=P(e.statements,o,n+1),r=P(t.statements,o,r+1),e.statements[n]!==t.statements[r])return!1}return!0}(e,t)?(s.clear(),!0):(a=t.path,!1))};return Sn.isDebugging&&Object.defineProperty(s,"__cache",{value:n}),s;function c(t){if(t.symbol&&t.moduleSymbol)return t;const{id:n,exportKind:o,targetFlags:a,isFromPackageJson:s,moduleFileName:c}=t,[l,_]=i.get(n)||r;if(l&&_)return{symbol:l,moduleSymbol:_,moduleFileName:c,exportKind:o,targetFlags:a,isFromPackageJson:s};const u=(s?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),d=t.moduleSymbol||_||Sn.checkDefined(t.moduleFile?u.getMergedSymbol(t.moduleFile.symbol):u.tryFindAmbientModule(t.moduleName)),p=t.symbol||l||Sn.checkDefined(2===o?u.resolveExternalModuleSymbol(d):u.tryGetMemberInModuleExportsAndProperties(Nc(t.symbolTableKey),d),`Could not find symbol '${t.symbolName}' by key '${t.symbolTableKey}' in module ${d.name}`);return i.set(n,[p,d]),{symbol:p,moduleSymbol:d,moduleFileName:c,exportKind:o,targetFlags:a,isFromPackageJson:s}}function l(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function v0(e,t,n,r,i,o,a){var s;if(t===n)return!1;const c=null==a?void 0:a.get(t.path,n.path,r,{});if(void 0!==(null==c?void 0:c.isBlockedByPackageJsonDependencies))return!c.isBlockedByPackageJsonDependencies;const l=xv(o),_=null==(s=o.getGlobalTypingsCacheLocation)?void 0:s.call(o),u=!!dB.forEachFileNameOfModule(t.fileName,n.fileName,o,!1,(r=>{const i=e.getSourceFile(r);return(i===n||!i)&&function(e,t,n,r){const i=Fa(t,(e=>"node_modules"===ea(e)?e:void 0)),o=i&&Zo(n(i));return void 0===o||an(n(e),o)||!!r&&an(n(r),o)}(t.fileName,r,l,_)}));if(i){const e=u&&i.allowsImportingSourceFile(n,o);return null==a||a.setBlockedByPackageJsonDependencies(t.path,n.path,r,{},!e),e}return u}function b0(e,t,n,r,i){var o,a;const s=bv(t),c=n.autoImportFileExcludePatterns&&G(n.autoImportFileExcludePatterns,(e=>{const t=Ik(e,"","exclude");return t?Mk(t,s):void 0}));x0(e.getTypeChecker(),e.getSourceFiles(),c,((t,n)=>i(t,n,e,!1)));const l=r&&(null==(o=t.getPackageJsonAutoImportProvider)?void 0:o.call(t));if(l){const n=Yn(),r=e.getTypeChecker();x0(l.getTypeChecker(),l.getSourceFiles(),c,((t,n)=>{(n&&!e.getSourceFile(n.fileName)||!n&&!r.resolveName(t.name,void 0,1536,!1))&&i(t,n,l,!0)})),null==(a=t.log)||a.call(t,"forEachExternalModuleToImportFrom autoImportProvider: "+(Yn()-n))}}function x0(e,t,n,r){var i;const o=n&&(e=>n.some((t=>t.test(e))));for(const t of e.getAmbientModules())t.name.includes("*")||n&&(null==(i=t.declarations)?void 0:i.every((e=>o(e.getSourceFile().fileName))))||r(t,void 0);for(const n of t)Yf(n)&&!(null==o?void 0:o(n.fileName))&&r(e.getMergedSymbol(n.symbol),n)}function S0(e,t,n,r,i){var o,a,s,c,l;const _=Yn();null==(o=t.getPackageJsonAutoImportProvider)||o.call(t);const u=(null==(a=t.getCachedExportInfoMap)?void 0:a.call(t))||y0({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var e;return null==(e=t.getPackageJsonAutoImportProvider)?void 0:e.call(t)},getGlobalTypingsCacheLocation:()=>{var e;return null==(e=t.getGlobalTypingsCacheLocation)?void 0:e.call(t)}});if(u.isUsableByFile(e.path))return null==(s=t.log)||s.call(t,"getExportInfoMap: cache hit"),u;null==(c=t.log)||c.call(t,"getExportInfoMap: cache miss or empty; calculating new results");const d=n.getCompilerOptions();let p=0;try{b0(n,t,r,!0,((t,n,r,o)=>{++p%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Map,s=r.getTypeChecker(),c=k0(t,s,d);c&&T0(c.symbol,s)&&u.add(e.path,c.symbol,1===c.exportKind?"default":"export=",t,n,c.exportKind,o,s),s.forEachExportAndPropertyOfModule(t,((r,i)=>{r!==(null==c?void 0:c.symbol)&&T0(r,s)&&iS(a,i)&&u.add(e.path,r,i,t,n,0,o,s)}))}))}catch(e){throw u.clear(),e}return null==(l=t.log)||l.call(t,`getExportInfoMap: done in ${Yn()-_} ms`),u}function k0(e,t,n){const r=function(e,t){const n=t.resolveExternalModuleSymbol(e);if(n!==e)return{symbol:n,exportKind:2};const r=t.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,exportKind:1}}(e,t);if(!r)return;const{symbol:i,exportKind:o}=r,a=C0(i,t,n);return a&&{symbol:i,exportKind:o,...a}}function T0(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||By(e)||Jy(e))}function C0(e,t,n){const r=sx(e);if(r)return{resolvedSymbol:r,name:r.name};const i=(o=e).declarations&&S(o.declarations,(e=>{var t;return yP(e)?null==(t=ft(uA(e.expression),HN))?void 0:t.text:xP(e)?(Sn.assert("default"===e.name.text,"Expected the specifier to be a default export"),e.propertyName&&e.propertyName.text):void 0}));var o;if(void 0!==i)return{resolvedSymbol:e,name:i};if(2097152&e.flags){const r=t.getImmediateAliasedSymbol(e);if(r&&r.parent)return C0(r,t,n)}return"default"!==e.escapedName&&"export="!==e.escapedName?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:YZ(e,n.target)}}var w0,N0=g({"src/services/exportInfoMap.ts"(){zge(),m0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(m0||{}),g0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(g0||{})}});function D0(){const e=Ls(99,!1);function t(t,n,r){let i=0,o=0;const a=[],{prefix:s,pushTemplate:c}=function(e){switch(e){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return Sn.assertNever(e)}}(n);t=s+t;const l=s.length;c&&a.push(16),e.setText(t);let _=0;const u=[];let d=0;do{i=e.scan(),wy(i)||(p(),o=i);const n=e.getTokenEnd();if(P0(e.getTokenStart(),n,l,A0(i),u),n>=t.length){const t=F0(e,i,Ae(a));void 0!==t&&(_=t)}}while(1!==i);function p(){switch(i){case 44:case 69:w0[o]||14!==e.reScanSlashToken()||(i=14);break;case 30:80===o&&d++;break;case 32:d>0&&d--;break;case 133:case 154:case 150:case 136:case 155:d>0&&!r&&(i=80);break;case 16:a.push(i);break;case 19:a.length>0&&a.push(i);break;case 20:if(a.length>0){const t=Ae(a);16===t?(i=e.reScanTemplateToken(!1),18===i?a.pop():Sn.assertEqual(i,17,"Should have been a template middle.")):(Sn.assertEqual(t,19,"Should have been an open brace"),a.pop())}break;default:if(!hy(i))break;(25===o||hy(o)&&hy(i)&&!function(e,t){if(!TQ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}(o,i))&&(i=80)}}return{endOfLineState:_,spans:u}}return{getClassificationsForLine:function(e,n,r){return function(e,t){const n=[],r=e.spans;let i=0;for(let e=0;e<r.length;e+=3){const t=r[e],o=r[e+1],a=r[e+2];if(i>=0){const e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:o,classification:E0(a)}),i=t+o}const o=t.length-i;o>0&&n.push({length:o,classification:4});return{entries:n,finalLexState:e.endOfLineState}}(t(e,n,r),e)},getEncodedLexicalClassifications:t}}function F0(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;const t=e.getTokenText(),n=t.length-1;let r=0;for(;92===t.charCodeAt(n-r);)r++;if(0==(1&r))return;return 34===t.charCodeAt(0)?3:2}case 3:return e.isUnterminated()?1:void 0;default:if(Ql(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return Sn.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 16===n?6:void 0}}function P0(e,t,n,r,i){if(8===r)return;0===e&&n>0&&(e+=n);const o=t-e;o>0&&i.push(e-n,o,r)}function E0(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 A0(e){if(hy(e))return 3;if(function(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}}(e)||function(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}(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 Ql(e)?6:2}}function I0(e,t,n,r,i){return R0(L0(e,t,n,r,i))}function O0(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function L0(e,t,n,r,i){const o=[];return n.forEachChild((function a(s){if(s&&tc(i,s.pos,s.getFullWidth())){if(O0(t,s.kind),HN(s)&&!Ip(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&j0(t,UG(s),e);r&&function(e,t,n){const r=t-e;Sn.assert(r>0,`Classification had non-positive length of ${r}`),o.push(e),o.push(r),o.push(n)}(s.getStart(n),s.getEnd(),r)}s.forEachChild(a)}})),{spans:o,endOfLineState:0}}function j0(e,t,n){const r=e.getFlags();return 0==(2885600&r)?void 0:32&r?11:384&r?12:524288&r?16:1536&r?4&t||1&t&&function(e){return re(e.declarations,(e=>nP(e)&&1===CR(e)))}(e)?14:void 0:2097152&r?j0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0}function M0(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 R0(e){Sn.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let e=0;e<t.length;e+=3)n.push({textSpan:oc(t[e],t[e+1]),classificationType:M0(t[e+2])});return n}function B0(e,t,n){return R0(J0(e,t,n))}function J0(e,t,n){const r=n.start,i=n.length,o=Ls(99,!1,t.languageVariant,t.text),a=Ls(99,!1,t.languageVariant,t.text),s=[];return g(t),{spans:s,endOfLineState:0};function c(e,t,n){s.push(e),s.push(t),s.push(n)}function l(e,n,r,i){if(3===n){const n=rO(t.text,r,i);if(n&&n.jsDoc)return AT(n.jsDoc,e),void function(e){var t,n,r,i,o,a,s,l;let d=e.pos;if(e.tags)for(const f of e.tags){f.pos!==d&&_(d,f.pos-d),c(f.pos,1,10),c(f.tagName.pos,f.tagName.end-f.tagName.pos,18),d=f.tagName.end;let e=f.tagName.end;switch(f.kind){case 348:const c=f;p(c),e=c.isNameFirst&&(null==(t=c.typeExpression)?void 0:t.end)||c.name.end;break;case 355:const _=f;e=_.isNameFirst&&(null==(n=_.typeExpression)?void 0:n.end)||_.name.end;break;case 352:u(f),d=f.end,e=f.typeParameters.end;break;case 353:const m=f;e=316===(null==(r=m.typeExpression)?void 0:r.kind)&&(null==(i=m.fullName)?void 0:i.end)||(null==(o=m.typeExpression)?void 0:o.end)||e;break;case 345:case 350:case 347:e=f.typeExpression.end;break;case 351:g(f.typeExpression),d=f.end,e=f.typeExpression.end;break;case 349:g(f.typeExpression),d=f.end,e=(null==(a=f.typeExpression)?void 0:a.end)||e;break;case 354:e=(null==(s=f.name)?void 0:s.end)||e;break;case 335:case 336:e=f.class.end;break;case 356:g(f.typeExpression),d=f.end,e=(null==(l=f.typeExpression)?void 0:l.end)||e}"object"==typeof f.comment?_(f.comment.pos,f.comment.end-f.comment.pos):"string"==typeof f.comment&&_(e,f.end-e)}d!==e.end&&_(d,e.end-d);return;function p(e){e.isNameFirst&&(_(d,e.name.pos-d),c(e.name.pos,e.name.end-e.name.pos,17),d=e.name.end),e.typeExpression&&(_(d,e.typeExpression.pos-d),g(e.typeExpression),d=e.typeExpression.end),e.isNameFirst||(_(d,e.name.pos-d),c(e.name.pos,e.name.end-e.name.pos,17),d=e.name.end)}}(n.jsDoc)}else if(2===n&&function(e,n){const r=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=t.text.substr(e,n),a=r.exec(o);if(!a)return!1;if(!a[3]||!(a[3]in Qi))return!1;let s=e;_(s,a[1].length),s+=a[1].length,c(s,a[2].length,10),s+=a[2].length,c(s,a[3].length,21),s+=a[3].length;const l=a[4];let u=s;for(;;){const e=i.exec(l);if(!e)break;const t=s+e.index+e[1].length;t>u&&(_(u,t-u),u=t),c(u,e[2].length,22),u+=e[2].length,e[3].length&&(_(u,e[3].length),u+=e[3].length),c(u,e[4].length,5),u+=e[4].length,e[5].length&&(_(u,e[5].length),u+=e[5].length),c(u,e[6].length,24),u+=e[6].length}s+=a[4].length,s>u&&_(u,s-u);a[5]&&(c(s,a[5].length,10),s+=a[5].length);const d=e+n;s<d&&_(s,d-s);return!0}(r,i))return;_(r,i)}function _(e,t){c(e,t,1)}function u(e){for(const t of e.getChildren())g(t)}function d(e,t,n){let r;for(r=t;r<n&&!ps(e.charCodeAt(r));r++);for(c(t,r-t,1),a.resetTokenState(r);a.getTokenEnd()<n;)p()}function p(){const e=a.getTokenEnd(),t=a.scan(),n=a.getTokenEnd(),r=m(t);r&&c(e,n-e,r)}function f(e){if(_E(e))return!0;if(Ip(e))return!0;const n=function(e){switch(e.parent&&e.parent.kind){case 286:if(e.parent.tagName===e)return 19;break;case 287:if(e.parent.tagName===e)return 20;break;case 285:if(e.parent.tagName===e)return 21;break;case 291:if(e.parent.name===e)return 22}return}(e);if(!Hl(e)&&12!==e.kind&&void 0===n)return!1;const r=12===e.kind?e.pos:function(e){for(o.resetTokenState(e.pos);;){const n=o.getTokenEnd();if(!hs(t.text,n))return n;const r=o.scan(),i=o.getTokenEnd(),a=i-n;if(!wy(r))return n;switch(r){case 4:case 5:continue;case 2:case 3:l(e,r,n,a),o.resetTokenState(i);continue;case 7:const s=t.text,_=s.charCodeAt(n);if(60===_||62===_){c(n,a,1);continue}Sn.assert(124===_||61===_),d(s,n,i);break;case 6:break;default:Sn.assertNever(r)}}}(e),i=e.end-r;if(Sn.assert(i>=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(hy(e))return 3;if((30===e||32===e)&&t&&yQ(t.parent))return 10;if(yy(e)){if(t){const n=t.parent;if(64===e&&(260===n.kind||172===n.kind||169===n.kind||291===n.kind))return 5;if(226===n.kind||224===n.kind||225===n.kind||227===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&291===t.parent.kind?24:6;if(14===e)return 6;if(Ql(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 263:return t.parent.name===t?11:void 0;case 168:return t.parent.name===t?15:void 0;case 264:return t.parent.name===t?13:void 0;case 266:return t.parent.name===t?12:void 0;case 267:return t.parent.name===t?14:void 0;case 169:return t.parent.name===t?$v(t)?3:17:void 0}if(Ll(t.parent))return 3}return 2}}function g(n){if(n&&nc(r,i,n.pos,n.getFullWidth())){O0(e,n.kind);for(const e of n.getChildren(t))f(e)||g(e)}}}var z0,q0=g({"src/services/classifier.ts"(){zge(),w0=Qe([80,11,9,10,14,110,46,47,22,24,20,112,97],(e=>e),(()=>!0))}}),U0=g({"src/services/documentHighlights.ts"(){zge(),(e=>{function t(e,t){return{fileName:t.fileName,textSpan:EQ(e,t),kind:"none"}}function n(e){return HF(e)?[e]:$F(e)?oe(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):y_(e)?void 0:i(e,n)}function r(e){return Rl(e)?[e]:y_(e)?void 0:i(e,r)}function i(e,t){const n=[];return e.forEachChild((e=>{const r=t(e);void 0!==r&&n.push(...ut(r))})),n}function o(e,t){const n=a(t);return!!n&&n===e}function a(e){return kc(e,(t=>{switch(t.kind){case 255:if(251===e.kind)return!1;case 248:case 249:case 250:case 247:case 246:return!e.label||function(e,t){return!!kc(e.parent,(e=>WF(e)?e.label.escapedText===t:"quit"))}(t,e.label.escapedText);default:return y_(t)&&"quit"}}))}function s(e,t,...n){return!(!t||!I(n,t.kind))&&(e.push(t),!0)}function c(e){const t=[];if(s(t,e.getFirstToken(),99,117,92)&&246===e.kind){const n=e.getChildren();for(let e=n.length-1;e>=0&&!s(t,n[e],117);e--);}return b(r(e.statement),(n=>{o(e,n)&&s(t,n.getFirstToken(),83,88)})),t}function l(e){const t=a(e);if(t)switch(t.kind){case 248:case 249:case 250:case 246:case 247:return c(t);case 255:return _(t)}}function _(e){const t=[];return s(t,e.getFirstToken(),109),b(e.caseBlock.clauses,(n=>{s(t,n.getFirstToken(),84,90),b(r(n),(n=>{o(e,n)&&s(t,n.getFirstToken(),83)}))})),t}function u(e,t){const n=[];if(s(n,e.getFirstToken(),113),e.catchClause&&s(n,e.catchClause.getFirstToken(),85),e.finallyBlock){s(n,OX(e,98,t),98)}return n}function d(e,t){const r=function(e){let t=e;for(;t.parent;){const e=t.parent;if(Em(e)||312===e.kind)return e;if($F(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return b(n(r),(e=>{i.push(OX(e,111,t))})),Em(r)&&vm(r,(e=>{i.push(OX(e,107,t))})),i}function p(e,t){const r=zm(e);if(!r)return;const i=[];return vm(mt(r.body,PF),(e=>{i.push(OX(e,107,t))})),b(n(r.body),(e=>{i.push(OX(e,111,t))})),i}function f(e){const t=zm(e);if(!t)return;const n=[];return t.modifiers&&t.modifiers.forEach((e=>{s(n,e,134)})),KI(t,(e=>{m(e,(e=>{_F(e)&&s(n,e.getFirstToken(),135)}))})),n}function m(e,t){t(e),y_(e)||w_(e)||ZF(e)||nP(e)||eP(e)||j_(e)||KI(e,(e=>m(e,t)))}e.getDocumentHighlights=function(e,n,r,i,o){const a=HX(r,i);if(a.parent&&(DP(a.parent)&&a.parent.tagName===a||FP(a.parent))){const{openingElement:e,closingElement:n}=a.parent.parent,i=[e,n].map((({tagName:e})=>t(e,r)));return[{fileName:r.fileName,highlightSpans:i}]}return function(e,t,n,r,i){const o=new Set(i.map((e=>e.fileName))),a=mue.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=Ye(a.map(mue.toHighlightSpan),(e=>e.fileName),(e=>e.span)),c=tn(n.useCaseSensitiveFileNames());return $e(X(s.entries(),(([e,t])=>{if(!o.has(e)){if(!n.redirectTargetsMap.has(pa(e,n.getCurrentDirectory(),c)))return;const t=n.getSourceFile(e);e=D(i,(e=>!!e.redirectInfo&&e.redirectInfo.redirectTarget===t)).fileName,Sn.assert(o.has(e))}return{fileName:e,highlightSpans:t}})))}(i,a,e,n,o)||function(e,n){const r=function(e,n){switch(e.kind){case 101:case 93:return OF(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;OF(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){const r=e.getChildren(t);s(n,r[0],101);for(let e=r.length-1;e>=0&&!s(n,r[e],93);e--);if(!e.elseStatement||!OF(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let e=0;e<r.length;e++){if(93===r[e].kind&&e<r.length-1){const t=r[e],o=r[e+1];let a=!0;for(let e=o.getStart(n)-1;e>=t.end;e--)if(!ds(n.text.charCodeAt(e))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:ac(t.getStart(),o.end),kind:"reference"}),e++;continue}}i.push(t(r[e],n))}return i}(e.parent,n):void 0;case 107:return o(e.parent,qF,p);case 111:return o(e.parent,HF,d);case 113:case 85:case 98:return o(85===e.kind?e.parent.parent:e.parent,$F,u);case 109:return o(e.parent,VF,_);case 84:case 90:return BP(e.parent)||RP(e.parent)?o(e.parent.parent.parent,VF,_):void 0;case 83:case 88:return o(e.parent,Rl,l);case 99:case 117:case 92:return o(e.parent,(e=>lu(e,!0)),c);case 137:return i(hD,[137]);case 139:case 153:return i(N_,[139,153]);case 135:return o(e.parent,_F,f);case 134:return a(f(e));case 127:return a(function(e){const t=zm(e);if(!t)return;const n=[];return KI(t,(e=>{m(e,(e=>{gF(e)&&s(n,e.getFirstToken(),127)}))})),n}(e));case 103:return;default:return u_(e.kind)&&(Nu(e.parent)||EF(e.parent))?a((r=e.kind,G(function(e,t){const n=e.parent;switch(n.kind){case 268:case 312:case 241:case 296:case 297:return 64&t&&YF(e)?[...e.members,e]:n.statements;case 176:case 174:case 262:return[...n.parameters,...w_(n.parent)?n.parent.members:[]];case 263:case 231:case 264:case 187:const r=n.members;if(15&t){const e=D(n.members,hD);if(e)return[...r,...e.parameters]}else if(64&t)return[...r,n];return r;case 210:return;default:Sn.assertNever(n,"Invalid container kind.")}}(e.parent,Ob(r)),(e=>dY(e,r))))):void 0}var r;function i(t,r){return o(e.parent,t,(e=>{var i;return G(null==(i=ft(e,ku))?void 0:i.symbol.declarations,(e=>t(e)?D(e.getChildren(n),(e=>I(r,e.kind))):void 0))}))}function o(e,t,r){return t(e)?a(r(e,n)):void 0}function a(e){return e&&e.map((e=>t(e,n)))}}(e,n);return r&&[{fileName:n.fileName,highlightSpans:r}]}(a,r)}})(z0||(z0={}))}});function V0(e){return!!e.sourceFile}function W0(e,t,n){return H0(e,t,n)}function H0(e,t="",n,r){const i=new Map,o=tn(!!e);function a(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function s(e,t,n,r,i,o,a,s){return _(e,t,n,r,i,o,!0,a,s)}function c(e,t,n,r,i,o,s,c){return _(e,t,a(n),r,i,o,!1,s,c)}function l(e,t){const n=V0(e)?e:e.get(Sn.checkDefined(t,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return Sn.assert(void 0===t||!n||n.sourceFile.scriptKind===t,`Script kind should match provided ScriptKind:${t} and sourceFile.scriptKind: ${null==n?void 0:n.sourceFile.scriptKind}, !entry: ${!n}`),n}function _(e,t,o,s,c,_,u,d,p){var f,m,g,h;d=zk(e,d);const y=a(o),v=o===y?void 0:o,b=6===d?100:HS(y),x="object"==typeof p?p:{languageVersion:b,impliedNodeFormat:v&&VV(t,null==(h=null==(g=null==(m=null==(f=v.getCompilerHost)?void 0:f.call(v))?void 0:m.getModuleResolutionCache)?void 0:g.call(m))?void 0:h.getPackageJsonInfoCache(),v,y),setExternalModuleIndicator:WS(y),jsDocParsingMode:n};x.languageVersion=b,Sn.assertEqual(n,x.jsDocParsingMode);const S=i.size,k=K0(s,x.impliedNodeFormat),T=Y(i,k,(()=>new Map));if(Fr){i.size>S&&Fr.instant(Fr.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:y.configFilePath,key:k});const e=!oO(t)&&dp(i,((e,n)=>n!==k&&e.has(t)&&n));e&&Fr.instant(Fr.Phase.Session,"documentRegistryBucketOverlap",{path:t,key1:e,key2:k})}const C=T.get(t);let w=C&&l(C,d);if(!w&&r){const e=r.getDocument(k,t);e&&(Sn.assert(u),w={sourceFile:e,languageServiceRefCount:0},N())}if(w)w.sourceFile.version!==_&&(w.sourceFile=o5(w.sourceFile,c,_,c.getChangeRange(w.sourceFile.scriptSnapshot)),r&&r.setDocument(k,t,w.sourceFile)),u&&w.languageServiceRefCount++;else{const n=i5(e,c,x,_,!1,d);r&&r.setDocument(k,t,n),w={sourceFile:n,languageServiceRefCount:1},N()}return Sn.assert(0!==w.languageServiceRefCount),w.sourceFile;function N(){if(C)if(V0(C)){const e=new Map;e.set(C.sourceFile.scriptKind,C),e.set(d,w),T.set(t,e)}else C.set(d,w);else T.set(t,w)}}function u(e,t,n,r){const o=Sn.checkDefined(i.get(K0(t,r))),a=o.get(e),s=l(a,n);s.languageServiceRefCount--,Sn.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(V0(a)?o.delete(e):(a.delete(n),1===a.size&&o.set(e,k(a.values(),bt))))}return{acquireDocument:function(e,n,r,i,c,l){return s(e,pa(e,t,o),n,$0(a(n)),r,i,c,l)},acquireDocumentWithKey:s,updateDocument:function(e,n,r,i,s,l){return c(e,pa(e,t,o),n,$0(a(n)),r,i,s,l)},updateDocumentWithKey:c,releaseDocument:function(e,n,r,i){return u(pa(e,t,o),$0(n),r,i)},releaseDocumentWithKey:u,getKeyForCompilationSettings:$0,getDocumentRegistryBucketKeyWithMode:K0,reportStats:function(){const e=$e(i.keys()).filter((e=>e&&"_"===e.charAt(0))).map((e=>{const t=i.get(e),n=[];return t.forEach(((e,t)=>{V0(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)},getBuckets:()=>i}}function $0(e){return sM(e,DO)}function K0(e,t){return t?`${e}|${t}`:e}var G0=g({"src/services/documentRegistry.ts"(){zge()}});function X0(e,t,n,r,i,o,a){const s=bv(r),c=tn(s),l=Q0(t,n,c,a),_=Q0(n,t,c,a);return Pfe.ChangeTracker.with({host:r,formatContext:i,preferences:o},(i=>{!function(e,t,n,r,i,o,a){const{configFile:s}=e.getCompilerOptions();if(!s)return;const c=Zo(s.fileName),l=Rm(s);if(!l)return;function _(e){const t=XD(e.initializer)?e.initializer.elements:[e.initializer];let n=!1;for(const e of t)n=u(e)||n;return n}function u(e){if(!FN(e))return!1;const r=Y0(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,n1(e,s),d(i)),!0)}function d(e){return Ca(c,e,!a)}r1(l,((e,n)=>{switch(n){case"files":case"include":case"exclude":{if(_(e)||"include"!==n||!XD(e.initializer))return;const l=G(e.initializer.elements,(e=>FN(e)?e.text:void 0));if(0===l.length)return;const u=jk(c,[],l,a,o);return void(Mk(Sn.checkDefined(u.includeFilePattern),a).test(r)&&!Mk(Sn.checkDefined(u.includeFilePattern),a).test(i)&&t.insertNodeAfter(s,Ie(e.initializer.elements),AC.createStringLiteral(d(i))))}case"compilerOptions":return void r1(e.initializer,((e,t)=>{const n=pL(t);Sn.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?_(e):"paths"===t&&r1(e.initializer,(e=>{if(XD(e.initializer))for(const t of e.initializer.elements)u(t)}))}))}}))}(e,i,l,t,n,r.getCurrentDirectory(),s),function(e,t,n,r,i,o){const a=e.getSourceFiles();for(const s of a){const c=n(s.fileName),l=c??s.fileName,_=Zo(l),u=r(s.fileName),d=u||s.fileName,p=Zo(d),f=void 0!==c||void 0!==u;t1(s,t,(e=>{if(!Vo(e))return;const t=Y0(p,e),r=n(t);return void 0===r?void 0:ga(Ca(_,r,o))}),(t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>lf(e))))return;const c=void 0!==u?e1(t,xM(t.text,d,e.getCompilerOptions(),i),n,a):Z0(r,t,s,e,i,n);return void 0!==c&&(c.updated||f&&Vo(t.text))?dB.updateModuleSpecifier(e.getCompilerOptions(),s,o(l),c.newFileName,XQ(e,i),t.text):void 0}))}}(e,i,l,_,r,c)}))}function Q0(e,t,n,r){const i=n(e);return e=>{const o=r&&r.tryGetSourcePosition({fileName:e,pos:0}),a=function(e){if(n(e)===i)return t;const r=Nk(e,i,n);return void 0===r?void 0:t+"/"+r}(o?o.fileName:e);return o?void 0===a?void 0:function(e,t,n,r){const i=Na(e,t,r);return Y0(Zo(n),i)}(o.fileName,a,e,n):a}}function Y0(e,t){return ga(function(e,t){return ua(sa(e,t))}(e,t))}function Z0(e,t,n,r,i,o){if(e){const t=D(e.declarations,$P).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=NV(n,t);return e1(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?r.getResolvedModule(n,t.text,e):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function e1(e,t,n,r){if(!t)return;if(t.resolvedModule){const e=a(t.resolvedModule.resolvedFileName);if(e)return e}const i=b(t.failedLookupLocations,(function(e){const t=n(e);return t&&D(r,(e=>e.fileName===t))?o(e):void 0}))||Vo(e.text)&&b(t.failedLookupLocations,o);return i||t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(e){return $t(e,"/package.json")?void 0:a(e)}function a(e){const t=n(e);return t&&{newFileName:t,updated:!0}}}function t1(e,t,n,i){for(const i of e.referencedFiles||r){const r=n(i.fileName);void 0!==r&&r!==e.text.slice(i.pos,i.end)&&t.replaceRangeWithText(e,i,r)}for(const n of e.imports){const r=i(n);void 0!==r&&r!==n.text&&t.replaceRangeWithText(e,n1(n,e),r)}}function n1(e,t){return gx(e.getStart(t)+1,e.end-1)}function r1(e,t){if(QD(e))for(const n of e.properties)qP(n)&&FN(n.name)&&t(n,n.name.text)}var i1,o1=g({"src/services/getEditsForFileRename.ts"(){zge()}});function a1(e,t){return{kind:e,isCaseSensitive:t}}function s1(e){const t=new Map,n=e.trim().split(".").map((e=>{return{totalTextChunk:x1(t=e.trim()),subWordTextChunks:b1(t)};var t}));return 1===n.length&&""===n[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>a1(2,!0),getFullMatch:()=>a1(2,!0),patternContainsDots:!1}:n.some((e=>!e.subWordTextChunks.length))?void 0:{getFullMatch:(e,r)=>function(e,t,n,r){const i=_1(t,Ie(n),r);if(!i)return;if(n.length-1>e.length)return;let o;for(let t=n.length-2,i=e.length-1;t>=0;t-=1,i-=1)o=u1(o,_1(e[i],n[t],r));return o}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>_1(e,Ie(n),t),patternContainsDots:n.length>1}}function c1(e,t){let n=t.get(e);return n||t.set(e,n=k1(e)),n}function l1(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(P1(t,((t,n)=>h1(e.charCodeAt(n+r))===t)))return r;return-1}(e,t.textLowerCase);if(0===r)return a1(t.text.length===e.length?0:1,an(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=c1(e,n);for(const n of i)if(p1(e,n,t.text,!0))return a1(2,p1(e,n,t.text,!1));if(t.text.length<e.length&&m1(e.charCodeAt(r)))return a1(2,!1)}else{if(e.indexOf(t.text)>0)return a1(2,!0);if(t.characterSpans.length>0){const r=c1(e,n),i=!!f1(e,r,t,!1)||!f1(e,r,t,!0)&&void 0;if(void 0!==i)return a1(3,i)}}}function _1(e,t,n){if(P1(t.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=l1(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const t of r)i=u1(i,l1(e,t,n));return i}function u1(e,t){return Lt([e,t],d1)}function d1(e,t){return void 0===e?1:void 0===t?-1:It(e.kind,t.kind)||Vt(!e.isCaseSensitive,!t.isCaseSensitive)}function p1(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&F1(0,i.length,(o=>function(e,t,n){return n?h1(e)===h1(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r)))}function f1(e,t,n,r){const i=n.characterSpans;let o,a,s=0,c=0;for(;;){if(c===i.length)return!0;if(s===t.length)return!1;let l=t[s],_=!1;for(;c<i.length;c++){const t=i[c];if(_&&(!m1(n.text.charCodeAt(i[c-1].start))||!m1(n.text.charCodeAt(i[c].start))))break;if(!p1(e,l,n.text,r,t))break;_=!0,o=void 0===o?s:o,a=void 0===a||a,l=oc(l.start+t.length,l.length-t.length)}_||void 0===a||(a=!1),s++}}function m1(e){if(e>=65&&e<=90)return!0;if(e<127||!es(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function g1(e){if(e>=97&&e<=122)return!0;if(e<127||!es(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function h1(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function y1(e){return e>=48&&e<=57}function v1(e){return m1(e)||g1(e)||y1(e)||95===e||36===e}function b1(e){const t=[];let n=0,r=0;for(let i=0;i<e.length;i++){v1(e.charCodeAt(i))?(0===r&&(n=i),r++):r>0&&(t.push(x1(e.substr(n,r))),r=0)}return r>0&&t.push(x1(e.substr(n,r))),t}function x1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:S1(e)}}function S1(e){return T1(e,!1)}function k1(e){return T1(e,!0)}function T1(e,t){const n=[];let r=0;for(let i=1;i<e.length;i++){const o=y1(e.charCodeAt(i-1)),a=y1(e.charCodeAt(i)),s=D1(e,t,i),c=t&&N1(e,i,r);(C1(e.charCodeAt(i-1))||C1(e.charCodeAt(i))||o!==a||s||c)&&(w1(e,r,i)||n.push(oc(r,i-r)),r=i)}return w1(e,r,e.length)||n.push(oc(r,e.length-r)),n}function C1(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function w1(e,t,n){return P1(e,(e=>C1(e)&&95!==e),t,n)}function N1(e,t,n){return t!==n&&t+1<e.length&&m1(e.charCodeAt(t))&&g1(e.charCodeAt(t+1))&&P1(e,m1,n,t)}function D1(e,t,n){const r=m1(e.charCodeAt(n-1));return m1(e.charCodeAt(n))&&(!t||!r)}function F1(e,t,n){for(let r=e;r<t;r++)if(!n(r))return!1;return!0}function P1(e,t,n=0,r=e.length){return F1(n,r,(n=>t(e.charCodeAt(n),n)))}var E1=g({"src/services/patternMatcher.ts"(){zge(),i1=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(i1||{})}});function A1(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let o,a,s,c=0,l=!1;function _(){return a=s,s=AG.scan(),19===s?c++:20===s&&c--,s}function u(){const e=AG.getTokenValue(),t=AG.getTokenStart();return{fileName:e,pos:t,end:t+e.length}}function d(){i.push(u()),p()}function p(){0===c&&(l=!0)}function f(){let e=AG.getToken();return 138===e&&(e=_(),144===e&&(e=_(),11===e&&(o||(o=[]),o.push({ref:u(),depth:c}))),!0)}function m(){if(25===a)return!1;let e=AG.getToken();if(102===e){if(e=_(),21===e){if(e=_(),11===e||15===e)return d(),!0}else{if(11===e)return d(),!0;if(156===e){AG.lookAhead((()=>{const e=AG.scan();return 161!==e&&(42===e||19===e||80===e||hy(e))}))&&(e=_())}if(80===e||hy(e))if(e=_(),161===e){if(e=_(),11===e)return d(),!0}else if(64===e){if(h(!0))return!0}else{if(28!==e)return!0;e=_()}if(19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&(e=_(),161===e&&(e=_(),11===e&&d()))}else 42===e&&(e=_(),130===e&&(e=_(),(80===e||hy(e))&&(e=_(),161===e&&(e=_(),11===e&&d()))))}return!0}return!1}function g(){let e=AG.getToken();if(95===e){if(p(),e=_(),156===e){AG.lookAhead((()=>{const e=AG.scan();return 42===e||19===e}))&&(e=_())}if(19===e){for(e=_();20!==e&&1!==e;)e=_();20===e&&(e=_(),161===e&&(e=_(),11===e&&d()))}else if(42===e)e=_(),161===e&&(e=_(),11===e&&d());else if(102===e){if(e=_(),156===e){AG.lookAhead((()=>{const e=AG.scan();return 80===e||hy(e)}))&&(e=_())}if((80===e||hy(e))&&(e=_(),64===e&&h(!0)))return!0}return!0}return!1}function h(e,t=!1){let n=e?_():AG.getToken();return 149===n&&(n=_(),21===n&&(n=_(),(11===n||t&&15===n)&&d()),!0)}function y(){let e=AG.getToken();if(80===e&&"define"===AG.getTokenValue()){if(e=_(),21!==e)return!0;if(e=_(),11===e||15===e){if(e=_(),28!==e)return!0;e=_()}if(23!==e)return!0;for(e=_();24!==e&&1!==e;)11!==e&&15!==e||d(),e=_();return!0}return!1}if(t&&function(){for(AG.setText(e),_();1!==AG.getToken();){if(16===AG.getToken()){const e=[AG.getToken()];e:for(;v(e);){const t=AG.scan();switch(t){case 1:break e;case 102:m();break;case 16:e.push(t);break;case 19:v(e)&&e.push(t);break;case 20:v(e)&&(16===Ae(e)?18===AG.reScanTemplateToken(!1)&&e.pop():e.pop())}}_()}f()||m()||g()||n&&(h(!1,!0)||y())||_()}AG.setText(void 0)}(),aO(r,e),sO(r,gt),l){if(o)for(const e of o)i.push(e.ref);return{referencedFiles:r.referencedFiles,typeReferenceDirectives:r.typeReferenceDirectives,libReferenceDirectives:r.libReferenceDirectives,importedFiles:i,isLibFile:!!r.hasNoDefaultLib,ambientExternalModules:void 0}}{let e;if(o)for(const t of o)0===t.depth?(e||(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 I1,O1=g({"src/services/preProcess.ts"(){zge()}});function L1(e){const t=tn(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!oO(t.fileName))return;if(!s(t.fileName))return;const n=a(t.fileName).getSourcePosition(t);return n&&n!==t?e(n)||n:void 0},tryGetGeneratedPosition:function(r){if(oO(r.fileName))return;const i=s(r.fileName);if(!i)return;const o=e.getProgram();if(o.isSourceOfProjectReferenceRedirect(i.fileName))return;const c=Ev(o.getCompilerOptions()),l=c?Yk(c)+".d.ts":Dv(r.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),t);if(void 0===l)return;const _=a(l,r.fileName).getGeneratedPosition(r);return _===r?void 0:_},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){r.clear(),i.clear()}};function o(e){return pa(e,n,t)}function a(n,r){const a=o(n),s=i.get(a);if(s)return s;let c;if(e.getDocumentPositionMapper)c=e.getDocumentPositionMapper(n,r);else if(e.readFile){const r=l(n);c=r&&j1({getSourceFileLike:l,getCanonicalFileName:t,log:t=>e.log(t)},n,aJ(r.text,as(r)),(t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0))}return i.set(a,c||rJ),c||rJ}function s(t){const n=e.getProgram();if(!n)return;const r=o(t),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}function c(t){const n=o(t),i=r.get(n);if(void 0!==i)return i||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(n))return void r.set(n,!1);const a=e.readFile(n),s=!!a&&function(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(e){return ss(as(this),e)}}}(a);return r.set(n,s),s||void 0}function l(t){return e.getSourceFileLike?e.getSourceFileLike(t):s(t)||c(t)}}function j1(e,t,n,r){let i=sJ(n);if(i){const n=I1.exec(i);if(n){if(n[1]){const r=n[1];return M1(e,ux(uo,r),t)}i=void 0}}const o=[];i&&o.push(i),o.push(t+".map");const a=i&&_a(i,Zo(t));for(const n of o){const i=_a(n,Zo(t)),o=r(i,a);if(dt(o))return M1(e,o,i);if(void 0!==o)return o||void 0}}function M1(e,t,n){const r=_J(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(dt)))return bJ(e,r,n)}var R1,B1=g({"src/services/sourcemaps.ts"(){zge(),I1=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function J1(e,t,n){var r;t.getSemanticDiagnostics(e,n);const i=[],o=t.getTypeChecker();var a;!(1===e.impliedNodeFormat||Ko(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(KQ(t)||GQ(t.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 243:return e.declarationList.declarations.some((e=>!!e.initializer&&Fg(z1(e.initializer),!0)));case 244:{const{expression:t}=e;if(!pF(t))return Fg(t,!0);const n=Gg(t);return 1===n||2===n}default:return!1}}))}(e)&&i.push(Bf(pF(a=e.commonJsModuleIndicator)?a.left:a,Ea.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=Sg(e);if(R1.clear(),function t(n){if(s)(function(e,t){var n,r,i,o;if(oF(e)){if(GF(e.parent)&&(null==(n=e.symbol.members)?void 0:n.size))return!0;const o=t.getSymbolOfExpando(e,!1);return!(!o||!(null==(r=o.exports)?void 0:r.size)&&!(null==(i=o.members)?void 0:i.size))}if(QF(e))return!!(null==(o=e.symbol.members)?void 0:o.size);return!1})(n,o)&&i.push(Bf(GF(n.parent)?n.parent.name:n,Ea.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(EF(n)&&n.parent===e&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){const e=n.declarationList.declarations[0].initializer;e&&Fg(e,!0)&&i.push(Bf(e,Ea.require_call_may_be_converted_to_an_import))}const t=Sce.getJSDocTypedefNodes(n);for(const e of t)i.push(Bf(e,Ea.JSDoc_typedef_may_be_converted_to_TypeScript_type));Sce.parameterShouldGetTypeFromJSDoc(n)&&i.push(Bf(n.name||n,Ea.JSDoc_types_may_be_moved_to_TypeScript_types))}X1(n)&&function(e,t,n){(function(e,t){return!Dy(e)&&e.body&&PF(e.body)&&function(e,t){return!!vm(e,(e=>V1(e,t)))}(e.body,t)&&U1(e,t)})(e,t)&&!R1.has(G1(e))&&n.push(Bf(!e.name&&GF(e.parent)&&HN(e.parent.name)?e.parent.name:e,Ea.This_may_be_converted_to_an_async_function))}(n,o,i);n.forEachChild(t)}(e),ik(t.getCompilerOptions()))for(const n of e.imports){const o=q1(dh(n));if(!o)continue;const a=null==(r=t.getResolvedModule(e,n.text,NV(e,n)))?void 0:r.resolvedModule,s=a&&t.getSourceFile(a.resolvedFileName);s&&s.externalModuleIndicator&&!0!==s.externalModuleIndicator&&yP(s.externalModuleIndicator)&&s.externalModuleIndicator.isExportEquals&&i.push(Bf(o,Ea.Import_may_be_converted_to_a_default_import))}return be(i,e.bindSuggestionDiagnostics),be(i,t.getSuggestionDiagnostics(e,n)),i.sort(((e,t)=>e.start-t.start))}function z1(e){return YD(e)?z1(e.expression):e}function q1(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&274===t.namedBindings.kind&&FN(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function U1(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function V1(e,t){return qF(e)&&!!e.expression&&W1(e.expression,t)}function W1(e,t){if(!H1(e)||!$1(e)||!e.arguments.every((e=>K1(e,t))))return!1;let n=e.expression.expression;for(;H1(n)||YD(n);)if(eF(n)){if(!$1(n)||!n.arguments.every((e=>K1(e,t))))return!1;n=n.expression.expression}else n=n.expression;return!0}function H1(e){return eF(e)&&(iX(e,"then")||iX(e,"catch")||iX(e,"finally"))}function $1(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length<n||(1===n||re(e.arguments,(e=>106===e.kind||HN(e)&&"undefined"===e.text))))}function K1(e,t){switch(e.kind){case 262:case 218:if(1&Ny(e))return!1;case 219:R1.set(G1(e),!0);case 106:return!0;case 80:case 211:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||re(qx(n,t).declarations,(e=>y_(e)||Hu(e)&&!!e.initializer&&y_(e.initializer))))}default:return!1}}function G1(e){return`${e.pos.toString()}:${e.end.toString()}`}function X1(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var Q1,Y1,Z1=g({"src/services/suggestionDiagnostics.ts"(){zge(),R1=new Map}});function e2(e,t){const n=[],r=t.compilerOptions?n2(t.compilerOptions,n):{},i={target:1,jsx:1};for(const e in i)ze(i,e)&&void 0===r[e]&&(r[e]=i[e]);for(const e of PO)r.verbatimModuleSyntax&&Q1.has(e.name)||(r[e.name]=e.transpileOptionValue);r.suppressOutputPathCheck=!0,r.allowNonTsExtensions=!0;const o=mx(r),a={getSourceFile:e=>e===ua(s)?c:void 0,writeFile:(e,t)=>{$o(e,".map")?(Sn.assertEqual(_,void 0,"Unexpected multiple source map outputs, file:",e),_=t):(Sn.assertEqual(l,void 0,"Unexpected multiple outputs, file:",e),l=t)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:e=>e===s,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},s=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),c=YI(s,e,{languageVersion:HS(r),impliedNodeFormat:VV(pa(s,"",a.getCanonicalFileName),void 0,a,r),setExternalModuleIndicator:WS(r),jsDocParsingMode:t.jsDocParsingMode??0});let l,_;t.moduleName&&(c.moduleName=t.moduleName),t.renamedDependencies&&(c.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));const u=HV([s],r,a);return t.reportDiagnostics&&(be(n,u.getSyntacticDiagnostics(c)),be(n,u.getOptionsDiagnostics())),u.emit(void 0,void 0,void 0,void 0,t.transformers),void 0===l?Sn.fail("Output generation failed"):{outputText:l,diagnostics:n,sourceMapText:_}}function t2(e,t,n,r,i){const o=e2(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return be(r,o.diagnostics),o.outputText}function n2(e,t){Y1=Y1||M(kO,(e=>"object"==typeof e.type&&!dp(e.type,(e=>"number"!=typeof e)))),e=CQ(e);for(const n of Y1){if(!ze(e,n.name))continue;const r=e[n.name];dt(r)?e[n.name]=aL(n,r,t):dp(n.type,(e=>e===r))||t.push(iL(n))}return e}var r2=g({"src/services/transpile.ts"(){zge(),Q1=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function i2(e,t,n,i,o,a,s){const c=s1(i);if(!c)return r;const l=[],_=1===e.length?e[0]:void 0;for(const r of e)n.throwIfCancellationRequested(),a&&r.isDeclarationFile||o2(r,!!s,_)||r.getNamedDeclarations().forEach(((e,n)=>{a2(c,n,e,t,r.fileName,!!s,_,l)}));return l.sort(d2),(void 0===o?l:l.slice(0,o)).map(p2)}function o2(e,t,n){return e!==n&&t&&(UZ(e.path)||e.hasNoDefaultLib)}function a2(e,t,n,r,i,o,a,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c)for(const l of n)if(s2(l,r,o,a))if(e.patternContainsDots){const n=e.getFullMatch(u2(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 s2(e,t,n,r){var i;switch(e.kind){case 273:case 276:case 271:const o=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(o);return o.escapedName!==a.escapedName&&!(null==(i=a.declarations)?void 0:i.every((e=>o2(e.getSourceFile(),n,r))));default:return!0}}function c2(e,t){const n=Mc(e);return!!n&&(_2(n,t)||167===n.kind&&l2(n.expression,t))}function l2(e,t){return _2(e,t)||YD(e)&&(t.push(e.name.text),!0)&&l2(e.expression,t)}function _2(e,t){return Oy(e)&&(t.push(Ly(e)),!0)}function u2(e){const t=[],n=Mc(e);if(n&&167===n.kind&&!l2(n.expression,t))return r;t.shift();let i=gX(e);for(;i;){if(!c2(i,t))return r;i=gX(i)}return t.reverse()}function d2(e,t){return It(e.matchKind,t.matchKind)||qt(e.name,t.name)}function p2(e){const t=e.declaration,n=gX(t),r=n&&Mc(n);return{name:e.name,kind:hX(t),kindModifiers:hQ(t),matchKind:i1[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:EQ(t),containerName:r?r.text:"",containerKind:r?hX(n):""}}var f2=g({"src/services/navigateTo.ts"(){zge()}}),m2={};h(m2,{getNavigateToItems:()=>i2});var g2,h2,y2,v2,b2,x2,S2,k2,T2,C2,w2=g({"src/services/_namespaces/ts.NavigateTo.ts"(){f2()}});function N2(e,t){y2=t,v2=e;try{return J(function(e){const t=[];function n(e){if(r(e)&&(t.push(e),e.children))for(const t of e.children)n(t)}return n(e),t;function r(e){if(e.children)return!0;switch(E2(e)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(E2(e.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}(I2(e)),t6)}finally{F2()}}function D2(e,t){y2=t,v2=e;try{return e6(I2(e))}finally{F2()}}function F2(){v2=void 0,y2=void 0,b2=[],x2=void 0,T2=[]}function P2(e){return u6(e.getText(v2))}function E2(e){return e.node.kind}function A2(e,t){e.children?e.children.push(t):e.children=[t]}function I2(e){Sn.assert(!b2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};x2=t;for(const t of e.statements)V2(t);return J2(),Sn.assert(!x2&&!b2.length),t}function O2(e,t){A2(x2,L2(e,t))}function L2(e,t){return{node:e,name:t||(Nu(e)||au(e)?Mc(e):void 0),additionalNodes:void 0,parent:x2,children:void 0,indent:x2.indent+1}}function j2(e){k2||(k2=new Map),k2.set(e,!0)}function M2(e){for(let t=0;t<e;t++)J2()}function R2(e,t){const n=[];for(;!Oy(t);){const e=nh(t),r=ih(t);t=t.expression,"prototype"===r||$N(e)||n.push(e)}n.push(t);for(let t=n.length-1;t>0;t--){B2(e,n[t])}return[n.length-1,n[0]]}function B2(e,t){const n=L2(e,t);A2(x2,n),b2.push(x2),S2.push(k2),k2=void 0,x2=n}function J2(){x2.children&&(W2(x2.children,x2),X2(x2.children)),x2=b2.pop(),k2=S2.pop()}function z2(e,t,n){B2(e,n),V2(t),J2()}function q2(e){e.initializer&&function(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}(e.initializer)?(B2(e),KI(e.initializer,V2),J2()):z2(e,e.initializer)}function U2(e){const t=Mc(e);if(void 0===t)return!1;if(cD(t)){const e=t.expression;return Kb(e)||NN(e)||Fy(e)}return!!t}function V2(e){if(y2.throwIfCancellationRequested(),e&&!Hl(e))switch(e.kind){case 176:const t=e;z2(t,t.body);for(const e of t.parameters)dc(e,t)&&O2(e);break;case 174:case 177:case 178:case 173:U2(e)&&z2(e,e.body);break;case 172:U2(e)&&q2(e);break;case 171:U2(e)&&O2(e);break;case 273:const n=e;n.name&&O2(n.name);const{namedBindings:r}=n;if(r)if(274===r.kind)O2(r);else for(const e of r.elements)O2(e);break;case 304:z2(e,e.name);break;case 305:const{expression:i}=e;HN(i)?O2(e,i):O2(e);break;case 208:case 303:case 260:{const t=e;R_(t.name)?V2(t.name):q2(t);break}case 262:const o=e.name;o&&HN(o)&&j2(o.text),z2(e,e.body);break;case 219:case 218:z2(e,e.body);break;case 266:B2(e);for(const t of e.members)a6(t)||O2(t);J2();break;case 263:case 231:case 264:B2(e);for(const t of e.members)V2(t);J2();break;case 267:z2(e,o6(e).body);break;case 277:{const t=e.expression,n=QD(t)||eF(t)?t:aF(t)||oF(t)?t.body:void 0;n?(B2(e),V2(n),J2()):O2(e);break}case 281:case 271:case 181:case 179:case 180:case 265:O2(e);break;case 213:case 226:{const t=Gg(e);switch(t){case 1:case 2:return void z2(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return HN(i.expression)?(j2(i.expression.text),o=i.expression):[a,o]=R2(n,i.expression),6===t?QD(n.right)&&n.right.properties.length>0&&(B2(n,o),KI(n.right,V2),J2()):oF(n.right)||aF(n.right)?z2(e,n.right,o):(B2(n,o),z2(e,n.right,r.name),J2()),void M2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=R2(e,r);return B2(e,a),B2(e,cI(AC.createIdentifier(i.text),i)),V2(e.arguments[2]),J2(),J2(),void M2(o)}case 5:{const t=e,n=t.left,r=n.expression;if(HN(r)&&"prototype"!==ih(n)&&k2&&k2.has(r.text))return void(oF(t.right)||aF(t.right)?z2(e,t.right,r):Zg(n)&&(B2(t,r),z2(t.left,t.right,nh(n)),J2()));break}case 4:case 0:case 8:break;default:Sn.assertNever(t)}}default:Vu(e)&&b(e.jsDoc,(e=>{b(e.tags,(e=>{bh(e)&&O2(e)}))})),KI(e,V2)}}function W2(e,t){const n=new Map;R(e,((e,r)=>{const i=e.name||Mc(e.node),o=i&&P2(i);if(!o)return!0;const a=n.get(o);if(!a)return n.set(o,e),!0;if(a instanceof Array){for(const n of a)if(H2(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!H2(i,e,r,t)&&(n.set(o,[i,e]),!0)}}))}function H2(e,t,n,r){return!!function(e,t,n,r){function i(e){return oF(e)||QF(e)||GF(e)}const o=pF(t.node)||eF(t.node)?Gg(t.node):0,a=pF(e.node)||eF(e.node)?Gg(e.node):0;if(C2[o]&&C2[a]||i(e.node)&&C2[o]||i(t.node)&&C2[a]||YF(e.node)&&$2(e.node)&&C2[o]||YF(t.node)&&C2[a]||YF(e.node)&&$2(e.node)&&i(t.node)||YF(t.node)&&i(e.node)&&$2(e.node)){let o=e.additionalNodes&&Ae(e.additionalNodes)||e.node;if(!YF(e.node)&&!YF(t.node)||i(e.node)||i(t.node)){const n=i(e.node)?e.node:i(t.node)?t.node:void 0;if(void 0!==n){const r=L2(cI(AC.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?oe([r],t.children||[t]):oe(e.children||[{...e}],[r])}else(e.children||t.children)&&(e.children=oe(e.children||[{...e}],t.children||[t]),e.children&&(W2(e.children,e),X2(e.children)));o=e.node=cI(AC.createClassDeclaration(void 0,e.name||AC.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=oe(e.children,t.children),e.children&&W2(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?cI(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(cI(AC.createClassDeclaration(void 0,e.name||AC.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return 0!==o}(e,t,n,r)||!!function(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&(!K2(e,n)||!K2(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return mb(e)===mb(t);case 267:return G2(e,t)&&i6(e)===i6(t);default:return!0}}(e.node,t.node,r)&&(function(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes);e.children=oe(e.children,t.children),e.children&&(W2(e.children,e),X2(e.children))}(e,t),!0)}function $2(e){return!!(16&e.flags)}function K2(e,t){const n=rP(e.parent)?e.parent.parent:e.parent;return n===t.node||I(t.additionalNodes,n)}function G2(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(267!==e.body.kind||G2(e.body,t.body)):e.body===t.body}function X2(e){e.sort(Q2)}function Q2(e,t){return qt(Y2(e.node),Y2(t.node))||It(E2(e),E2(t))}function Y2(e){if(267===e.kind)return r6(e);const t=Mc(e);if(t&&g_(t)){const e=Iy(t);return e&&Nc(e)}switch(e.kind){case 218:case 219:case 231:return l6(e);default:return}}function Z2(e,t){if(267===e.kind)return u6(r6(e));if(t){const e=HN(t)?t.text:ZD(t)?`[${P2(t.argumentExpression)}]`:P2(t);if(e.length>0)return u6(e)}switch(e.kind){case 312:const t=e;return tO(t)?`"${_v(ea(Yk(ua(t.fileName))))}"`:"<global>";case 277:return yP(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return 2048&Db(e)?"default":l6(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function e6(e){return{text:Z2(e.node,e.name),kind:hX(e.node),kindModifiers:c6(e.node),spans:n6(e),nameSpan:e.name&&s6(e.name),childItems:J(e.children,e6)}}function t6(e){return{text:Z2(e.node,e.name),kind:hX(e.node),kindModifiers:c6(e.node),spans:n6(e),childItems:J(e.children,(function(e){return{text:Z2(e.node,e.name),kind:hX(e.node),kindModifiers:hQ(e.node),spans:n6(e),childItems:T2,indent:0,bolded:!1,grayed:!1}}))||T2,indent:e.indent,bolded:!1,grayed:!1}}function n6(e){const t=[s6(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(s6(n));return t}function r6(e){return lf(e)?Yp(e.name):i6(e)}function i6(e){const t=[Ly(e.name)];for(;e.body&&267===e.body.kind;)e=e.body,t.push(Ly(e.name));return t.join(".")}function o6(e){return e.body&&nP(e.body)?o6(e.body):e}function a6(e){return!e.name||167===e.name.kind}function s6(e){return 312===e.kind?OQ(e):EQ(e,v2)}function c6(e){return e.parent&&260===e.parent.kind&&(e=e.parent),hQ(e)}function l6(e){const{parent:t}=e;if(e.name&&gp(e.name)>0)return u6(If(e.name));if(GF(t))return u6(If(t.name));if(pF(t)&&64===t.operatorToken.kind)return P2(t.left).replace(g2,"");if(qP(t))return P2(t.name);if(2048&Db(e))return"default";if(w_(e))return"<class>";if(eF(t)){let e=_6(t.expression);if(void 0!==e){if(e=u6(e),e.length>h2)return`${e} callback`;return`${e}(${u6(G(t.arguments,(e=>Qu(e)?e.getText(v2):void 0)).join(", "))}) callback`}}return"<function>"}function _6(e){if(HN(e))return e.text;if(YD(e)){const t=_6(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function u6(e){return(e=e.length>h2?e.substring(0,h2)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var d6=g({"src/services/navigationBar.ts"(){zge(),g2=/\s+/g,h2=150,b2=[],S2=[],T2=[],C2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),p6={};h(p6,{getNavigationBarItems:()=>N2,getNavigationTree:()=>D2});var f6,m6=g({"src/services/_namespaces/ts.NavigationBar.ts"(){d6()}});function g6(e,t){f6.set(e,t)}function h6(e,t){return $e(H(f6.values(),(n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some((t=>$6(t,e.kind))))?void 0:n.getAvailableActions(e,t)})))}function y6(e,t,n,r){const i=f6.get(t);return i&&i.getEditsForAction(e,n,r)}var v6,b6,x6,S6=g({"src/services/refactorProvider.ts"(){zge(),x7(),f6=new Map}});function k6(e,t=!0){const{file:n,program:r}=e,i=$Z(e),o=KX(n,i.start),a=o.parent&&32&Db(o.parent)&&t?o.parent:_Y(o,n,i);if(!(a&&($P(a.parent)||rP(a.parent)&&lf(a.parent.parent))))return{error:wS(Ea.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if($P(e))return e.symbol;const n=e.parent.symbol;if(n.valueDeclaration&&gf(n.valueDeclaration))return t.getMergedSymbol(n);return n}(a.parent,s),l=Db(a)||(yP(a)&&!a.isExportEquals?2080:0),_=!!(2048&l);if(!(32&l)||!_&&c.exports.has("default"))return{error:wS(Ea.This_file_already_has_a_default_export)};const u=e=>HN(e)&&s.getSymbolAtLocation(e)?void 0:{error:wS(Ea.Can_only_convert_named_export)};switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const e=a;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:_,exportingModuleSymbol:c}}case 243:{const e=a;if(!(2&e.declarationList.flags)||1!==e.declarationList.declarations.length)return;const t=Pe(e.declarationList.declarations);if(!t.initializer)return;return Sn.assert(!_,"Can't have a default flag here"),u(t.name)||{exportNode:e,exportName:t.name,wasDefault:_,exportingModuleSymbol:c}}case 277:{const e=a;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:_,exportingModuleSymbol:c}}default:return}}function T6(e,t,n,r,i){!function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(yP(n)&&!n.isExportEquals){const t=n.expression,r=w6(t.text,t.text);i.replaceNode(e,n,AC.createExportDeclaration(void 0,!1,AC.createNamedExports([r])))}else i.delete(e,Sn.checkDefined(dY(n,90),"Should find a default keyword in modifier list"));else{const t=Sn.checkDefined(dY(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:i.insertNodeAfter(e,t,AC.createToken(90));break;case 243:const a=Pe(n.declarationList.declarations);if(!mue.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,AC.createExportDefault(Sn.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:i.deleteModifier(e,t),i.insertNodeAfter(e,n,AC.createExportDefault(AC.createIdentifier(r.text)));break;default:Sn.fail(`Unexpected exportNode kind ${n.kind}`)}}}(e,n,r,t.getTypeChecker()),function(e,{wasDefault:t,exportName:n,exportingModuleSymbol:r},i,o){const a=e.getTypeChecker(),s=Sn.checkDefined(a.getSymbolAtLocation(n),"Export name should resolve to a symbol");mue.Core.eachExportReference(e.getSourceFiles(),a,o,s,r,n.text,t,(e=>{if(n===e)return;const r=e.getSourceFile();t?function(e,t,n,r){const{parent:i}=t;switch(i.kind){case 211:n.replaceNode(e,t,AC.createIdentifier(r));break;case 276:case 281:{const t=i;n.replaceNode(e,t,C6(r,t.name.text));break}case 273:{const o=i;Sn.assert(o.name===t,"Import clause name should match provided ref");const a=C6(r,t.text),{namedBindings:s}=o;if(s)if(274===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=FN(o.parent.moduleSpecifier)?nY(o.parent.moduleSpecifier,e):1,a=eY(void 0,[C6(r,t.text)],o.parent.moduleSpecifier,i);n.insertNodeAfter(e,o.parent,a)}else n.delete(e,t),n.insertNodeAtEndOfList(e,s.elements,a);else n.replaceNode(e,t,AC.createNamedImports([a]));break}case 205:const o=i;n.replaceNode(e,i,AC.createImportTypeNode(o.argument,o.attributes,AC.createIdentifier(r),o.typeArguments,o.isTypeOf));break;default:Sn.failBadSyntaxKind(i)}}(r,e,i,n.text):function(e,t,n){const r=t.parent;switch(r.kind){case 211:n.replaceNode(e,t,AC.createIdentifier("default"));break;case 276:{const t=AC.createIdentifier(r.name.text);1===r.parent.elements.length?n.replaceNode(e,r.parent,t):(n.delete(e,r),n.insertNodeBefore(e,r.parent,t));break}case 281:n.replaceNode(e,r,w6("default",r.name.text));break;default:Sn.assertNever(r,`Unexpected parent kind ${r.kind}`)}}(r,e,i)}))}(t,n,r,i)}function C6(e,t){return AC.createImportSpecifier(!1,e===t?void 0:AC.createIdentifier(e),AC.createIdentifier(t))}function w6(e,t){return AC.createExportSpecifier(!1,e===t?void 0:AC.createIdentifier(e),AC.createIdentifier(t))}var N6,D6,F6=g({"src/services/refactors/convertExport.ts"(){zge(),x7(),v6="Convert export",b6={name:"Convert default export to named export",description:wS(Ea.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},x6={name:"Convert named export to default export",description:wS(Ea.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},g6(v6,{kinds:[b6.kind,x6.kind],getAvailableActions:function(e){const t=k6(e,"invoked"===e.triggerReason);if(!t)return r;if(!H6(t)){const e=t.wasDefault?b6:x6;return[{name:v6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:v6,description:wS(Ea.Convert_default_export_to_named_export),actions:[{...b6,notApplicableReason:t.error},{...x6,notApplicableReason:t.error}]}]:r},getEditsForAction:function(e,t){Sn.assert(t===b6.name||t===x6.name,"Unexpected action name");const n=k6(e);Sn.assert(n&&!H6(n),"Expected applicable refactor info");return{edits:Pfe.ChangeTracker.with(e,(t=>T6(e.file,e.program,n,t,e.cancellationToken))),renameFilename:void 0,renameLocation:void 0}}})}});function P6(e,t=!0){const{file:n}=e,r=$Z(e),i=KX(n,r.start),o=t?kc(i,sP):_Y(i,n,r);if(!o||!sP(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=YX(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;if(!c)return{error:wS(Ea.Could_not_find_import_clause)};if(!c.namedBindings)return{error:wS(Ea.Could_not_find_namespace_import_or_named_imports)};if(274===c.namedBindings.kind)return{convertTo:0,import:c.namedBindings};return E6(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}}function E6(e,t){return ik(e.getCompilerOptions())&&function(e,t){const n=t.resolveExternalModuleName(e);if(!n)return!1;const r=t.resolveExternalModuleSymbol(n);return n!==r}(t.parent.moduleSpecifier,e.getTypeChecker())}function A6(e,t,n,r){const i=t.getTypeChecker();0===r.convertTo?function(e,t,n,r,i){let o=!1;const a=[],s=new Map;mue.Core.eachSymbolReferenceInFile(r.name,t,e,(e=>{if(G_(e.parent)){const r=I6(e.parent).text;t.resolveName(r,e,67108863,!0)&&s.set(r,!0),Sn.assert((YD(n=e.parent)?n.expression:n.left)===e,"Parent expression should match id"),a.push(e.parent)}else o=!0;var n}));const c=new Map;for(const t of a){const r=I6(t).text;let i=c.get(r);void 0===i&&c.set(r,i=s.has(r)?_Z(r,e):r),n.replaceNode(e,t,AC.createIdentifier(i))}const l=[];c.forEach(((e,t)=>{l.push(AC.createImportSpecifier(!1,e===t?void 0:AC.createIdentifier(t),AC.createIdentifier(e)))}));const _=r.parent.parent;o&&!i?n.insertNodeAfter(e,_,L6(_,void 0,l)):n.replaceNode(e,_,L6(_,o?AC.createIdentifier(r.name.text):void 0,l))}(e,i,n,r.import,ik(t.getCompilerOptions())):O6(e,t,n,r.import,1===r.convertTo)}function I6(e){return YD(e)?e.name:e.right}function O6(e,t,n,r,i=E6(t,r.parent)){const o=t.getTypeChecker(),a=r.parent.parent,{moduleSpecifier:s}=a,c=new Set;r.elements.forEach((e=>{const t=o.getSymbolAtLocation(e.name);t&&c.add(t)}));const l=s&&FN(s)?Sce.moduleSpecifierToValidIdentifier(s.text,99):"module";const _=r.elements.some((function(t){return!!mue.Core.eachSymbolReferenceInFile(t.name,o,e,(e=>{const t=o.resolveName(l,e,67108863,!0);return!!t&&(!c.has(t)||xP(e.parent))}))}))?_Z(l,e):l,u=new Set;for(const t of r.elements){const r=(t.propertyName||t.name).text;mue.Core.eachSymbolReferenceInFile(t.name,o,e,(i=>{const o=AC.createPropertyAccessExpression(AC.createIdentifier(_),r);UP(i.parent)?n.replaceNode(e,i.parent,AC.createPropertyAssignment(i.text,o)):xP(i.parent)?u.add(t):n.replaceNode(e,i,o)}))}if(n.replaceNode(e,r,i?AC.createIdentifier(_):AC.createNamespaceImport(AC.createIdentifier(_))),u.size){const t=$e(u.values(),(e=>AC.createImportSpecifier(e.isTypeOnly,e.propertyName&&AC.createIdentifier(e.propertyName.text),AC.createIdentifier(e.name.text))));n.insertNodeAfter(e,r.parent.parent,L6(a,void 0,t))}}function L6(e,t,n){return AC.createImportDeclaration(void 0,AC.createImportClause(!1,t,n&&n.length?AC.createNamedImports(n):void 0),e.moduleSpecifier,void 0)}var j6,M6,R6,B6,J6=g({"src/services/refactors/convertImport.ts"(){zge(),x7(),N6="Convert import",D6={0:{name:"Convert namespace import to named imports",description:wS(Ea.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:wS(Ea.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:wS(Ea.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},g6(N6,{kinds:We(D6).map((e=>e.kind)),getAvailableActions:function(e){const t=P6(e,"invoked"===e.triggerReason);if(!t)return r;if(!H6(t)){const e=D6[t.convertTo];return[{name:N6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?We(D6).map((e=>({name:N6,description:e.description,actions:[{...e,notApplicableReason:t.error}]}))):r},getEditsForAction:function(e,t){Sn.assert(re(We(D6),(e=>e.name===t)),"Unexpected action name");const n=P6(e);Sn.assert(n&&!H6(n),"Expected applicable refactor info");return{edits:Pfe.ChangeTracker.with(e,(t=>A6(e.file,e.program,t,n))),renameFilename:void 0,renameLocation:void 0}}})}});function z6(e,t=!0){const{file:n,startPosition:i}=e,o=Sg(n),a=KX(n,i),s=LQ($Z(e)),c=s.pos===s.end&&t,l=NX(a,n,s.pos,s.end),_=kc(a,(e=>e.parent&&j_(e)&&!U6(s,e.parent,n)&&(c||l)));if(!_||!j_(_))return{error:wS(Ea.Selection_is_not_a_valid_type_node)};const u=e.program.getTypeChecker(),d=function(e,t){return kc(e,Pu)||(t?kc(e,_E):void 0)}(_,o);if(void 0===d)return{error:wS(Ea.No_type_could_be_extracted_from_this_type_node)};const p=function(e,t){return kc(e,(e=>e===t?"quit":!(!OD(e.parent)&&!LD(e.parent))))??e}(_,d);if(!j_(p))return{error:wS(Ea.Selection_is_not_a_valid_type_node)};const f=[];(OD(p.parent)||LD(p.parent))&&s.end>_.end&&be(f,p.parent.types.filter((e=>NX(e,n,s.pos,s.end))));const m=f.length>1?f:p,g=function(e,t,n,i){const o=[],a=ut(t),s={pos:a[0].pos,end:a[a.length-1].end};for(const e of a)if(c(e))return;return o;function c(t){if(TD(t)){if(HN(t.typeName)){const a=t.typeName,c=e.resolveName(a.text,a,262144,!0);for(const e of(null==c?void 0:c.declarations)||r)if(lD(e)&&e.getSourceFile()===i){if(e.name.escapedText===a.escapedText&&U6(e,s,i))return!0;if(U6(n,e,i)&&!U6(s,e,i)){xe(o,e);break}}}}else if(MD(t)){const e=kc(t,(e=>jD(e)&&U6(e.extendsType,t,i)));if(!e||!U6(s,e,i))return!0}else if(kD(t)||BD(t)){const e=kc(t.parent,y_);if(e&&e.type&&U6(e.type,t,i)&&!U6(s,e,i))return!0}else if(ND(t))if(HN(t.exprName)){const r=e.resolveName(t.exprName.text,t.exprName,111551,!1);if((null==r?void 0:r.valueDeclaration)&&U6(n,r.valueDeclaration,i)&&!U6(s,r.valueDeclaration,i))return!0}else if($v(t.exprName.left)&&!U6(s,t.parent,i))return!0;return i&&PD(t)&&_s(i,t.pos).line===_s(i,t.end).line&&rw(t,1),KI(t,c)}}(u,m,d,n);if(!g)return{error:wS(Ea.No_type_could_be_extracted_from_this_type_node)};return{isJS:o,selection:m,enclosingNode:d,typeParameters:g,typeElements:q6(u,m)}}function q6(e,t){if(t){if(_t(t)){const n=[];for(const r of t){const t=q6(e,r);if(!t)return;be(n,t)}return n}if(LD(t)){const n=[],r=new Map;for(const i of t.types){const t=q6(e,i);if(!t||!t.every((e=>e.name&&iS(r,HQ(e.name)))))return;be(n,t)}return n}return RD(t)?q6(e,t.type):DD(t)?t.members:void 0}}function U6(e,t,n){return CX(e,ys(n.text,t.pos),t.end)}function V6(e){return _t(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:OD(e.selection[0].parent)?AC.createUnionTypeNode(e.selection):AC.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}var W6=g({"src/services/refactors/extractType.ts"(){zge(),x7(),j6="Extract type",M6={name:"Extract to type alias",description:wS(Ea.Extract_to_type_alias),kind:"refactor.extract.type"},R6={name:"Extract to interface",description:wS(Ea.Extract_to_interface),kind:"refactor.extract.interface"},B6={name:"Extract to typedef",description:wS(Ea.Extract_to_typedef),kind:"refactor.extract.typedef"},g6(j6,{kinds:[M6.kind,R6.kind,B6.kind],getAvailableActions:function(e){const t=z6(e,"invoked"===e.triggerReason);return t?H6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:j6,description:wS(Ea.Extract_type),actions:[{...B6,notApplicableReason:t.error},{...M6,notApplicableReason:t.error},{...R6,notApplicableReason:t.error}]}]:r:[{name:j6,description:wS(Ea.Extract_type),actions:t.isJS?[B6]:he([M6],t.typeElements&&R6)}]:r},getEditsForAction:function(e,t){const{file:n}=e,r=z6(e);Sn.assert(r&&!H6(r),"Expected to find a range to extract");const i=_Z("NewType",n),o=Pfe.ChangeTracker.with(e,(o=>{switch(t){case M6.name:return Sn.assert(!r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r){const{enclosingNode:i,typeParameters:o}=r,{firstTypeNode:a,lastTypeNode:s,newTypeNode:c}=V6(r),l=AC.createTypeAliasDeclaration(void 0,n,o.map((e=>AC.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),c);e.insertNodeBefore(t,i,Ew(l),!0),e.replaceNodeRange(t,a,s,AC.createTypeReferenceNode(n,o.map((e=>AC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Pfe.LeadingTriviaOption.Exclude,trailingTriviaOption:Pfe.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case B6.name:return Sn.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;ut(i.selection).forEach((e=>{rw(e,7168)}));const{enclosingNode:a,typeParameters:s}=i,{firstTypeNode:c,lastTypeNode:l,newTypeNode:_}=V6(i),u=AC.createJSDocTypedefTag(AC.createIdentifier("typedef"),AC.createJSDocTypeExpression(_),AC.createIdentifier(r)),d=[];b(s,(e=>{const t=Tl(e),n=AC.createTypeParameterDeclaration(void 0,e.name),r=AC.createJSDocTemplateTag(AC.createIdentifier("template"),t&&mt(t,XP),[n]);d.push(r)}));const p=AC.createJSDocComment(void 0,AC.createNodeArray(oe(d,[u])));if(_E(a)){const r=a.getStart(n),i=BY(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),p,{suffix:i+i+n.text.slice(YY(n.text,r-1),r)})}else e.insertNodeBefore(n,a,p,!0);e.replaceNodeRange(n,c,l,AC.createTypeReferenceNode(r,s.map((e=>AC.createTypeReferenceNode(e.name,void 0)))))}(o,e,n,i,r);case R6.name:return Sn.assert(!r.isJS&&!!r.typeElements,"Invalid actionName/JS combo"),function(e,t,n,r){var i;const{enclosingNode:o,typeParameters:a,typeElements:s}=r,c=AC.createInterfaceDeclaration(void 0,n,a,void 0,s);cI(c,null==(i=s[0])?void 0:i.parent),e.insertNodeBefore(t,o,Ew(c),!0);const{firstTypeNode:l,lastTypeNode:_}=V6(r);e.replaceNodeRange(t,l,_,AC.createTypeReferenceNode(n,a.map((e=>AC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Pfe.LeadingTriviaOption.Exclude,trailingTriviaOption:Pfe.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:Sn.fail("Unexpected action name")}})),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:uZ(o,a,i,!1)}}})}});function H6(e){return void 0!==e.error}function $6(e,t){return!t||e.substr(0,t.length)===t}var K6,G6,X6,Q6=g({"src/services/refactors/helpers.ts"(){}});function Y6(e,t,n,r){var i,o;const a=r.getTypeChecker(),s=HX(e,t),c=s.parent;if(HN(s)){if(Mx(c)&&Cm(c)&&HN(c.name)){if(1!==(null==(i=a.getMergedSymbol(c.symbol).declarations)?void 0:i.length))return{error:wS(Ea.Variables_with_multiple_declarations_cannot_be_inlined)};if(Z6(c))return;const t=e3(c,a,e);return t&&{references:t,declaration:c,replacement:c.initializer}}if(n){let t=a.resolveName(s.text,s,111551,!1);if(t=t&&a.getMergedSymbol(t),1!==(null==(o=null==t?void 0:t.declarations)?void 0:o.length))return{error:wS(Ea.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!Mx(n)||!Cm(n)||!HN(n.name))return;if(Z6(n))return;const r=e3(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:wS(Ea.Could_not_find_variable_to_inline)}}}function Z6(e){return re(mt(e.parent.parent,EF).modifiers,KN)}function e3(e,t,n){const r=[],i=mue.Core.eachSymbolReferenceInFile(e.name,t,n,(t=>!!mue.isWriteAccessForReference(t)||(!(!xP(t.parent)&&!yP(t.parent))||(!!ND(t.parent)||(!!Xs(e,t.pos)||void r.push(t))))));return 0===r.length||i?void 0:r}function t3(e,t){t=ZY(t);const{parent:n}=e;return au(n)&&(ev(t)<ev(n)||hZ(n))||y_(t)&&(Q_(n)||YD(n))||YD(n)&&(NN(t)||QD(t))?AC.createParenthesizedExpression(t):t}var n3,r3,i3,o3=g({"src/services/refactors/inlineVariable.ts"(){zge(),x7(),K6="Inline variable",G6=wS(Ea.Inline_variable),g6(K6,{kinds:[(X6={name:K6,description:G6,kind:"refactor.inline.variable"}).kind],getAvailableActions(e){const{file:t,program:n,preferences:i,startPosition:o,triggerReason:a}=e,s=Y6(t,o,"invoked"===a,n);return s?g7.isRefactorErrorInfo(s)?i.provideRefactorNotApplicableReason?[{name:K6,description:G6,actions:[{...X6,notApplicableReason:s.error}]}]:r:[{name:K6,description:G6,actions:[X6]}]:r},getEditsForAction(e,t){Sn.assert(t===K6,"Unexpected refactor invoked");const{file:n,program:r,startPosition:i}=e,o=Y6(n,i,!0,r);if(!o||g7.isRefactorErrorInfo(o))return;const{references:a,declaration:s,replacement:c}=o;return{edits:Pfe.ChangeTracker.with(e,(e=>{for(const t of a)e.replaceNode(n,t,t3(t,c));e.delete(n,s)}))}}})}});function a3(e,t,n,r,i,o,a){const s=t.getTypeChecker(),c=J3(e,n.all,s),l=M3(e,t,a,i);r.createNewFile(e,l,function(e,t,n,r,i,o,a,s){const c=i.getTypeChecker(),l=yn(e.statements,_m);if(void 0===e.externalModuleIndicator&&void 0===e.commonJsModuleIndicator&&0===t.oldImportsNeededByTargetFile.size)return m3(e,r.ranges,n),[...l,...r.all];const _=!f0(a,i,o,!!e.commonJsModuleIndicator),u=rY(e,s),d=k3(e,t.oldFileImportsFromTargetFile,a,i,o,_,u);d&&pY(n,e,d,!0,s);g3(e,r.all,n,t.unusedImportsFromOldFile,c),m3(e,r.ranges,n),h3(n,i,o,e,t.movedSymbols,a,u);const p=function(e,t,n,r,i,o,a,s,c){const l=[];for(const n of e.statements)S3(n,(e=>{he(l,I3(e,x3(e),(e=>t.has(i.getSymbolAtLocation(e)))))}));let _;const u=[],d=qQ();return n.forEach((t=>{if(t.declarations)for(const n of t.declarations){if(!W3(n))continue;const t=O3(n);if(!t)continue;const i=L3(n);d(i)&&j3(e,i,t,r,s),fb(n,2048)?_=t:u.push(t.text)}})),he(l,T3(e,_,u,ea(e.fileName),o,a,s,c)),l}(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,n,c,i,o,_,u),f=w3(e,r.all,t.oldFileImportsFromTargetFile,_);if(p.length&&f.length)return[...l,...p,4,...f];return[...l,...p,...f]}(e,c,r,n,t,i,l,o)),f3(t,r,e.fileName,l,xv(i))}var s3,c3,l3,_3=g({"src/services/refactors/moveToNewFile.ts"(){zge(),x7(),n3="Move to a new file",r3=wS(Ea.Move_to_a_new_file),g6(n3,{kinds:[(i3={name:n3,description:r3,kind:"refactor.move.newFile"}).kind],getAvailableActions:function(e){const t=R3(e);return e.preferences.allowTextChangesInNewFiles&&t?[{name:n3,description:r3,actions:[i3]}]:e.preferences.provideRefactorNotApplicableReason?[{name:n3,description:r3,actions:[{...i3,notApplicableReason:wS(Ea.Selection_is_not_a_valid_statement_or_statements)}]}]:r},getEditsForAction:function(e,t){Sn.assert(t===n3,"Wrong refactor invoked");const n=Sn.checkDefined(R3(e));return{edits:Pfe.ChangeTracker.with(e,(t=>a3(e.file,e.program,n,t,e.host,e.preferences,e))),renameFilename:void 0,renameLocation:void 0}}})}});function u3(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function d3(e,t,n,r,i,o,a,s){const c=r.getTypeChecker();if(a.fileExists(n)){const l=Sn.checkDefined(r.getSourceFile(n)),_=Sce.createImportAdder(l,e.program,e.preferences,e.host);p3(t,l,J3(t,i.all,c,function(e,t){const n=new Set;for(const r of e.imports){const e=dh(r);if(sP(e)&&e.importClause&&e.importClause.namedBindings&&gP(e.importClause.namedBindings))for(const r of e.importClause.namedBindings.elements){const e=t.getSymbolAtLocation(r.propertyName||r.name);e&&n.add(qx(e,t))}if(Pg(e.parent)&&$D(e.parent.name))for(const r of e.parent.name.elements){const e=t.getSymbolAtLocation(r.propertyName||r.name);e&&n.add(qx(e,t))}}return n}(l,c)),o,i,r,a,s,_)}else o.createNewFile(t,n,p3(t,n,J3(t,i.all,c),o,i,r,a,s)),f3(r,o,t.fileName,n,xv(a))}function p3(e,t,n,r,i,o,a,s,c){const l=o.getTypeChecker(),_=yn(e.statements,_m);if(void 0===e.externalModuleIndicator&&void 0===e.commonJsModuleIndicator&&0===n.oldImportsNeededByTargetFile.size&&0===n.targetFileImportsFromOldFile.size&&"string"==typeof t)return m3(e,i.ranges,r),[..._,...i.all];const u="string"==typeof t?t:t.fileName,d=!f0(u,o,a,!!e.commonJsModuleIndicator),p=rY(e,s),f=k3(e,n.oldFileImportsFromTargetFile,u,o,a,d,p);f&&pY(r,e,f,!0,s),g3(e,i.all,r,n.unusedImportsFromOldFile,l),m3(e,i.ranges,r),h3(r,o,a,e,n.movedSymbols,u,p);const m=function(e,t,n,r,i,o,a,s,c,l,_){const u=[];if(_)n.forEach(((t,r)=>{try{_.addImportFromExportedSymbol(qx(r,o),t)}catch{for(const t of e.statements)S3(t,(e=>{he(u,I3(e,AC.createStringLiteral(x3(e).text),(e=>n.has(o.getSymbolAtLocation(e)))))}))}}));else{const r=a.getSourceFile(t);for(const t of e.statements)S3(t,(t=>{var i;const c=x3(t),_=a.getResolvedModule(e,c.text,NV(e,c)),d=null==(i=null==_?void 0:_.resolvedModule)?void 0:i.resolvedFileName;if(d&&r){const e=JR(a.getCompilerOptions(),r,r.path,d,XQ(a,s));he(u,I3(t,tY(e,l),(e=>n.has(o.getSymbolAtLocation(e)))))}else he(u,I3(t,AC.createStringLiteral(x3(t).text),(e=>n.has(o.getSymbolAtLocation(e)))))}))}const d=a.getSourceFile(t);let p;const f=[],m=qQ();return r.forEach((t=>{if(t.declarations)for(const n of t.declarations){if(!W3(n))continue;const r=O3(n);if(!r)continue;const a=L3(n);m(a)&&j3(e,a,r,i,c),_&&o.isUnknownSymbol(t)?_.addImportFromExportedSymbol(qx(t,o)):fb(n,2048)?p=r:f.push(r.text)}})),he(u,T3(d||e,p,f,e.fileName,a,s,c,l))}(e,u,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,r,l,o,a,d,p,c),g=w3(e,i.all,n.oldFileImportsFromTargetFile,d);return"string"!=typeof t&&(t.statements.length>0?function(e,t,n,r,i){var o;const a=new Set,s=null==(o=r.symbol)?void 0:o.exports;if(s){const n=t.getTypeChecker(),o=new Map;for(const e of i.all)F3(e)&&fb(e,32)&&q3(e,(e=>{var t;const n=S(ku(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,(e=>vP(e)?e:xP(e)?ft(e.parent.parent,vP):void 0));n&&n.moduleSpecifier&&o.set(n,(o.get(n)||new Set).add(e))}));for(const[t,i]of $e(o))if(t.exportClause&&bP(t.exportClause)&&v(t.exportClause.elements)){const o=t.exportClause.elements,s=M(o,(e=>void 0===D(qx(e.symbol,n).declarations,(e=>W3(e)&&i.has(e)))));if(0===v(s)){e.deleteNode(r,t),a.add(t);continue}v(s)<v(o)&&e.replaceNode(r,t,AC.updateExportDeclaration(t,t.modifiers,t.isTypeOnly,AC.updateNamedExports(t.exportClause,AC.createNodeArray(s,o.hasTrailingComma)),t.moduleSpecifier,t.attributes))}}const c=F(r.statements,(e=>vP(e)&&!!e.moduleSpecifier&&!a.has(e)));c?e.insertNodesBefore(r,c,n,!0):e.insertNodesAfter(r,r.statements[r.statements.length-1],n)}(r,o,g,t,i):r.insertNodesAtEndOfFile(t,g,!1),m.length>0&&pY(r,t,m,!0,s)),c&&c.writeFixes(r,p),m.length&&g.length?[..._,...m,4,...g]:[..._,...m,...g]}function f3(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=ua(sa(n,"..",r)),s=Na(o.fileName,a,i),c=o.statements[0]&&ft(o.statements[0].expression,QD),l=c&&D(c.properties,(e=>qP(e)&&FN(e.name)&&"files"===e.name.text));l&&XD(l.initializer)&&t.insertNodeInListAfter(o,Ie(l.initializer.elements),AC.createStringLiteral(s),l.initializer.elements)}function m3(e,t,n){for(const{first:r,afterLast:i}of t)n.deleteNodeRangeExcludingEnd(e,r,i)}function g3(e,t,n,r,i){for(const o of e.statements)I(t,o)||S3(o,(t=>D3(e,t,n,(e=>r.has(i.getSymbolAtLocation(e))))))}function h3(e,t,n,r,i,o,a){const s=t.getTypeChecker();for(const c of t.getSourceFiles())if(c!==r)for(const l of c.statements)S3(l,(_=>{if(s.getSymbolAtLocation(x3(_))!==r.symbol)return;const u=e=>{const t=GD(e.parent)?lY(s,e.parent):qx(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};D3(c,_,e,u);const d=ca(Zo(r.path),o),p=JR(t.getCompilerOptions(),c,c.path,d,XQ(t,n)),f=I3(_,tY(p,a),u);f&&e.insertNodeAfter(c,l,f);const m=y3(_);m&&v3(e,c,s,i,p,m,_,a)}))}function y3(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&274===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ft(e.name,HN);default:return Sn.assertNever(e,`Unexpected node kind ${e.kind}`)}}function v3(e,t,n,r,i,o,a,s){const c=Sce.moduleSpecifierToValidIdentifier(i,99);let l=!1;const _=[];if(mue.Core.eachSymbolReferenceInFile(o,n,t,(e=>{YD(e.parent)&&(l=l||!!n.resolveName(c,e,67108863,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&_.push(e))})),_.length){const n=l?_Z(c,t):c;for(const r of _)e.replaceNode(t,r,AC.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const i=AC.createIdentifier(t),o=tY(n,r);switch(e.kind){case 272:return AC.createImportDeclaration(void 0,AC.createImportClause(!1,void 0,AC.createNamespaceImport(i)),o,void 0);case 271:return AC.createImportEqualsDeclaration(void 0,!1,i,AC.createExternalModuleReference(o));case 260:return AC.createVariableDeclaration(i,void 0,void 0,b3(o));default:return Sn.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,c,i,s))}}function b3(e){return AC.createCallExpression(AC.createIdentifier("require"),void 0,[e])}function x3(e){return 272===e.kind?e.moduleSpecifier:271===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function S3(e,t){if(sP(e))FN(e.moduleSpecifier)&&t(e);else if(aP(e))CP(e.moduleReference)&&Qu(e.moduleReference.expression)&&t(e);else if(EF(e))for(const n of e.declarationList.declarations)n.initializer&&Fg(n.initializer,!0)&&t(n)}function k3(e,t,n,r,i,o,a){let s;const c=[];return t.forEach((e=>{"default"===e.escapedName?s=AC.createIdentifier(oY(e)):c.push(e.name)})),T3(e,s,c,n,r,i,o,a)}function T3(e,t,n,r,i,o,a,s){const c=ca(Zo(e.path),r),l=JR(i.getCompilerOptions(),e,e.path,c,XQ(i,o));if(a){return ZQ(t,n.map((e=>AC.createImportSpecifier(!1,void 0,AC.createIdentifier(e)))),l,s)}{Sn.assert(!t,"No default import should exist");const e=n.map((e=>AC.createBindingElement(void 0,void 0,e)));return e.length?C3(AC.createObjectBindingPattern(e),void 0,b3(tY(l,s))):void 0}}function C3(e,t,n,r=2){return AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(e,void 0,t,n)],r))}function w3(e,t,n,r){return V(t,(t=>{if(F3(t)&&!N3(e,t,r)&&q3(t,(e=>{var t;return n.has(Sn.checkDefined(null==(t=ft(e,ku))?void 0:t.symbol))}))){const e=function(e,t){return t?[P3(e)]:function(e){return[e,...A3(e).map(E3)]}(e)}(ZY(t),r);if(e)return e}return ZY(t)}))}function N3(e,t,n,r){var i;return n?!IF(t)&&fb(t,32)||!!(r&&e.symbol&&(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&A3(t).some((t=>e.symbol.exports.has(wc(t))))}function D3(e,t,n,r){switch(t.kind){case 272:!function(e,t,n,r){if(!t.importClause)return;const{name:i,namedBindings:o}=t.importClause,a=!i||r(i),s=!o||(274===o.kind?r(o.name):0!==o.elements.length&&o.elements.every((e=>r(e.name))));if(a&&s)n.delete(e,t);else if(i&&a&&n.delete(e,i),o)if(s)n.replaceNode(e,t.importClause,AC.updateImportClause(t.importClause,t.importClause.isTypeOnly,i,void 0));else if(275===o.kind)for(const t of o.elements)r(t.name)&&n.delete(e,t)}(e,t,n,r);break;case 271:r(t.name)&&n.delete(e,t);break;case 260:!function(e,t,n,r){const{name:i}=t;switch(i.kind){case 80:r(i)&&(t.initializer&&Fg(t.initializer,!0)?n.delete(e,XF(t.parent)&&1===v(t.parent.declarations)?t.parent.parent:t):n.delete(e,i));break;case 207:break;case 206:if(i.elements.every((e=>HN(e.name)&&r(e.name))))n.delete(e,XF(t.parent)&&1===t.parent.declarations.length?t.parent.parent:t);else for(const t of i.elements)HN(t.name)&&r(t.name)&&n.delete(e,t.name)}}(e,t,n,r);break;default:Sn.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function F3(e){return Sn.assert($P(e.parent),"Node parent should be a SourceFile"),$3(e)||EF(e)}function P3(e){const t=lI(e)?oe([AC.createModifier(95)],Jc(e)):void 0;switch(e.kind){case 262:return AC.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const n=_I(e)?Bc(e):void 0;return AC.updateClassDeclaration(e,oe(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return AC.updateVariableStatement(e,t,e.declarationList);case 267:return AC.updateModuleDeclaration(e,t,e.name,e.body);case 266:return AC.updateEnumDeclaration(e,t,e.name,e.members);case 265:return AC.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return AC.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return AC.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return Sn.fail();default:return Sn.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function E3(e){return AC.createExpressionStatement(AC.createBinaryExpression(AC.createPropertyAccessExpression(AC.createIdentifier("exports"),AC.createIdentifier(e)),64,AC.createIdentifier(e)))}function A3(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return G(e.declarationList.declarations,(e=>HN(e.name)?e.name.text:void 0));case 267:case 266:case 265:case 264:case 271:return r;case 244:return Sn.fail("Can't export an ExpressionStatement");default:return Sn.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function I3(e,t,n){switch(e.kind){case 272:{const r=e.importClause;if(!r)return;const i=r.name&&n(r.name)?r.name:void 0,o=r.namedBindings&&function(e,t){if(274===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter((e=>t(e.name)));return n.length?AC.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?AC.createImportDeclaration(void 0,AC.createImportClause(r.isTypeOnly,i,o),ZY(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const n=e.elements.filter((e=>e.propertyName||!HN(e.name)||t(e.name)));return n.length?AC.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?C3(r,e.type,b3(t),e.parent.flags):void 0}default:return Sn.assertNever(e,`Unexpected import kind ${e.kind}`)}}function O3(e){return IF(e)?ft(e.expression.left.name,HN):ft(e.name,HN)}function L3(e){switch(e.kind){case 260:return e.parent.parent;case 208:return L3(mt(e.parent.parent,(e=>GF(e)||GD(e))));default:return e}}function j3(e,t,n,r,i){if(!N3(e,t,i,n))if(i)IF(t)||r.insertExportModifier(e,t);else{const n=A3(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(E3))}}function M3(e,t,n,r){const i=t.getTypeChecker(),o=R3(n);let a;if(o){a=J3(e,o.all,i);const t=Zo(e.fileName),n=sT(e.fileName),l=sa(t,function(e,t,n,r){let i=e;for(let o=1;;o++){const a=sa(n,i+t);if(!r.fileExists(a))return i;i=`${e}.${o}`}}((s=a.oldFileImportsFromTargetFile,c=a.movedSymbols,pp(s,oY)||pp(c,oY)||"newFile"),n,t,r))+n;return l}var s,c;return""}function R3(e){const t=function(e){const{file:t}=e,n=LQ($Z(e)),{statements:r}=t;let i=P(r,(e=>e.end>n.pos));if(-1===i)return;const o=K3(t,r[i]);o&&(i=o.start);let a=P(r,(e=>e.end>=n.end),i);-1!==a&&n.end<=r[a].getStart()&&a--;const s=K3(t,r[a]);return s&&(a=s.end),{toMove:r.slice(i,-1===a?r.length:a+1),afterLast:-1===a?void 0:r[a+1]}}(e);if(void 0===t)return;const n=[],r=[],{toMove:i,afterLast:o}=t;return ie(i,B3,((e,t)=>{for(let r=e;r<t;r++)n.push(i[r]);r.push({first:i[e],afterLast:o})})),0===n.length?void 0:{all:n,ranges:r}}function B3(e){return!function(e){switch(e.kind){case 272:return!0;case 271:return!fb(e,32);case 243:return e.declarationList.declarations.every((e=>!!e.initializer&&Fg(e.initializer,!0)));default:return!1}}(e)&&!_m(e)}function J3(e,t,n,r=new Set){const i=new Set,o=new Map,a=new Set,s=function(e){if(void 0===e)return;const t=n.getJsxNamespace(e),r=n.resolveName(t,e,1920,!0);return r&&re(r.declarations,U3)?r:void 0}(D(t,(e=>!!(2&e.transformFlags))));s&&o.set(s,!1);for(const e of t)q3(e,(e=>{i.add(Sn.checkDefined(IF(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));const c=new Set;for(const s of t)z3(s,n,((t,s)=>{var l;if(t.declarations)if(r.has(qx(t,n)))c.add(t);else for(const n of t.declarations)if(U3(n)){const e=o.get(t);o.set(t,(void 0===e||e)&&s)}else W3(n)&&(GF(l=n)?l.parent.parent.parent:l.parent)===e&&!i.has(t)&&a.add(t)}));for(const e of o.keys())c.add(e);const l=new Set;for(const r of e.statements)I(t,r)||(s&&2&r.transformFlags&&c.delete(s),z3(r,n,(e=>{i.has(e)&&l.add(e),c.delete(e)})));return{movedSymbols:i,targetFileImportsFromOldFile:a,oldFileImportsFromTargetFile:l,oldImportsNeededByTargetFile:o,unusedImportsFromOldFile:c}}function z3(e,t,n){e.forEachChild((function e(r){if(HN(r)&&!ey(r)){const e=t.getSymbolAtLocation(r);e&&n(e,TT(r))}else r.forEachChild(e)}))}function q3(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return S(e.declarationList.declarations,(e=>H3(e.name,t)));case 244:{const{expression:n}=e;return pF(n)&&1===Gg(n)?t(e):void 0}}}function U3(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return V3(e);case 208:return GF(e.parent.parent)&&V3(e.parent.parent);default:return!1}}function V3(e){return $P(e.parent.parent.parent)&&!!e.initializer&&Fg(e.initializer,!0)}function W3(e){return $3(e)&&$P(e.parent)||GF(e)&&$P(e.parent.parent.parent)}function H3(e,t){switch(e.kind){case 80:return t(mt(e.parent,(e=>GF(e)||GD(e))));case 207:case 206:return S(e.elements,(e=>vF(e)?void 0:H3(e.name,t)));default:return Sn.assertNever(e,`Unexpected name kind ${e.kind}`)}}function $3(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function K3(e,t){if(b_(t)){const n=t.symbol.declarations;if(void 0===n||v(n)<=1||!I(n,t))return;const r=n[0],i=n[v(n)-1],o=G(n,(t=>Cp(t)===e&&Pu(t)?t:void 0)),a=P(e.statements,(e=>e.end>=i.end));return{toMove:o,start:P(e.statements,(e=>e.end>=r.end)),end:a}}}var G3,X3,Q3,Y3=g({"src/services/refactors/moveToFile.ts"(){uB(),zge(),S6(),s3="Move to file",c3=wS(Ea.Move_to_file),g6(s3,{kinds:[(l3={name:"Move to file",description:c3,kind:"refactor.move.file"}).kind],getAvailableActions:function(e,t){const n=R3(e);return t?e.preferences.allowTextChangesInNewFiles&&n?[{name:s3,description:c3,actions:[l3]}]:e.preferences.provideRefactorNotApplicableReason?[{name:s3,description:c3,actions:[{...l3,notApplicableReason:wS(Ea.Selection_is_not_a_valid_statement_or_statements)}]}]:r:r},getEditsForAction:function(e,t,n){Sn.assert(t===s3,"Wrong refactor invoked");const r=Sn.checkDefined(R3(e)),{host:i,program:o}=e;Sn.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(Wk(a)||Hk(a)){if(i.fileExists(a)&&void 0===o.getSourceFile(a))return u3(wS(Ea.Cannot_move_statements_to_the_selected_file));return{edits:Pfe.ChangeTracker.with(e,(t=>d3(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences))),renameFilename:void 0,renameLocation:void 0}}return u3(wS(Ea.Cannot_move_to_file_selected_file_is_invalid))}})}});function Z3(e){const{file:t,startPosition:n,program:i}=e;return n4(t,n,i)?[{name:G3,description:X3,actions:[Q3]}]:r}function e4(e){const{file:t,startPosition:n,program:r}=e,i=n4(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 173:s=AC.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,c(i),a.type);break;case 174:s=AC.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,c(i),a.type,a.body);break;case 179:s=AC.updateCallSignature(a,a.typeParameters,c(i),a.type);break;case 176:s=AC.updateConstructorDeclaration(a,a.modifiers,c(i),a.body);break;case 180:s=AC.updateConstructSignature(a,a.typeParameters,c(i),a.type);break;case 262:s=AC.updateFunctionDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.typeParameters,c(i),a.type,a.body);break;default:return Sn.failBadSyntaxKind(a,"Unhandled signature kind in overload list conversion refactoring")}if(s===a)return;return{renameFilename:void 0,renameLocation:void 0,edits:Pfe.ChangeTracker.with(e,(e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)}))};function c(e){const t=e[e.length-1];return b_(t)&&t.body&&(e=e.slice(0,e.length-1)),AC.createNodeArray([AC.createParameterDeclaration(void 0,AC.createToken(26),"args",void 0,AC.createUnionTypeNode(J(e,l)))])}function l(e){const t=J(e.parameters,_);return rw(AC.createTupleTypeNode(t),re(t,(e=>!!v(mw(e))))?0:1)}function _(e){Sn.assert(HN(e.name));const t=cI(AC.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||AC.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=e5(n);e.length&&gw(t,[{text:`*\n${e.split("\n").map((e=>` * ${e}`)).join("\n")}\n `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}}function t4(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function n4(e,t,n){const r=kc(KX(e,t),t4);if(!r)return;if(b_(r)&&r.body&&SX(r.body,t))return;const i=n.getTypeChecker(),o=r.symbol;if(!o)return;const a=o.declarations;if(v(a)<=1)return;if(!N(a,(t=>Cp(t)===e)))return;if(!t4(a[0]))return;const s=a[0].kind;if(!N(a,(e=>e.kind===s)))return;const c=a;if(re(c,(e=>!!e.typeParameters||re(e.parameters,(e=>!!e.modifiers||!HN(e.name))))))return;const l=G(c,(e=>i.getSignatureFromDeclaration(e)));if(v(l)!==v(a))return;const _=i.getReturnTypeOfSignature(l[0]);return N(l,(e=>i.getReturnTypeOfSignature(e)===_))?c:void 0}var r4,i4,o4,a4,s4=g({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){zge(),x7(),G3="Convert overload list to single signature",X3=wS(Ea.Convert_overload_list_to_single_signature),g6(G3,{kinds:[(Q3={name:G3,description:X3,kind:"refactor.rewrite.function.overloadList"}).kind],getEditsForAction:e4,getAvailableActions:Z3})}});function c4(e){const{file:t,startPosition:n,triggerReason:i}=e,o=_4(t,n,"invoked"===i);return o?H6(o)?e.preferences.provideRefactorNotApplicableReason?[{name:r4,description:i4,actions:[{...o4,notApplicableReason:o.error},{...a4,notApplicableReason:o.error}]}]:r:[{name:r4,description:i4,actions:[o.addBraces?o4:a4]}]:r}function l4(e,t){const{file:n,startPosition:r}=e,i=_4(n,r);Sn.assert(i&&!H6(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;if(t===o4.name){const e=AC.createReturnStatement(o);c=AC.createBlock([e],!0),dZ(o,e,n,3,!0)}else if(t===a4.name&&a){const e=o||AC.createVoidZero();c=hZ(e)?AC.createParenthesizedExpression(e):e,fZ(a,c,n,3,!1),dZ(a,c,n,3,!1),pZ(a,c,n,3,!1)}else Sn.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Pfe.ChangeTracker.with(e,(e=>{e.replaceNode(n,s.body,c)}))}}function _4(e,t,n=!0,r){const i=KX(e,t),o=zm(i);if(!o)return{error:wS(Ea.Could_not_find_a_containing_arrow_function)};if(!aF(o))return{error:wS(Ea.Containing_function_is_not_an_arrow_function)};if(bX(o,i)&&(!bX(o.body,i)||n)){if($6(o4.kind,r)&&au(o.body))return{func:o,addBraces:!0,expression:o.body};if($6(a4.kind,r)&&PF(o.body)&&1===o.body.statements.length){const e=Pe(o.body.statements);if(qF(e)){return{func:o,addBraces:!1,expression:e.expression&&QD(pS(e.expression,!1))?AC.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}}var u4,d4,p4,f4,m4,g4=g({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){zge(),x7(),r4="Add or remove braces in an arrow function",i4=wS(Ea.Add_or_remove_braces_in_an_arrow_function),o4={name:"Add braces to arrow function",description:wS(Ea.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},a4={name:"Remove braces from arrow function",description:wS(Ea.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},g6(r4,{kinds:[a4.kind],getEditsForAction:l4,getAvailableActions:c4})}}),h4={},y4=g({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){s4(),g4()}});function v4(e){const{file:t,startPosition:n,program:i,kind:o}=e,a=S4(t,n,i);if(!a)return r;const{selectedVariableDeclaration:s,func:c}=a,l=[],_=[];if($6(f4.kind,o)){const e=s||aF(c)&&GF(c.parent)?void 0:wS(Ea.Could_not_convert_to_named_function);e?_.push({...f4,notApplicableReason:e}):l.push(f4)}if($6(p4.kind,o)){const e=!s&&aF(c)?void 0:wS(Ea.Could_not_convert_to_anonymous_function);e?_.push({...p4,notApplicableReason:e}):l.push(p4)}if($6(m4.kind,o)){const e=oF(c)?void 0:wS(Ea.Could_not_convert_to_arrow_function);e?_.push({...m4,notApplicableReason:e}):l.push(m4)}return[{name:u4,description:d4,actions:0===l.length&&e.preferences.provideRefactorNotApplicableReason?_:l}]}function b4(e,t){const{file:n,startPosition:r,program:i}=e,o=S4(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case p4.name:s.push(...function(e,t){const{file:n}=e,r=k4(t.body),i=AC.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return Pfe.ChangeTracker.with(e,(e=>e.replaceNode(n,t,i)))}(e,a));break;case f4.name:const t=function(e){const t=e.parent;if(!GF(t)||!Cm(t))return;const n=t.parent,r=n.parent;return XF(n)&&EF(r)&&HN(t.name)?{variableDeclaration:t,variableDeclarationList:n,statement:r,name:t.name}:void 0}(a);if(!t)return;s.push(...function(e,t,n){const{file:r}=e,i=k4(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;oZ(s);const l=32&hc(o)|wb(t),_=AC.createModifiersFromModifierFlags(l),u=AC.createFunctionDeclaration(v(_)?_:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?Pfe.ChangeTracker.with(e,(e=>e.replaceNode(r,s,u))):Pfe.ChangeTracker.with(e,(e=>{e.delete(r,o),e.insertNodeAfter(r,s,u)}))}(e,a,t));break;case m4.name:if(!oF(a))return;s.push(...function(e,t){const{file:n}=e,r=t.body.statements,i=r[0];let o;!function(e,t){return 1===e.statements.length&&qF(t)&&!!t.expression}(t.body,i)?o=t.body:(o=i.expression,iZ(o),sZ(i,o));const a=AC.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,AC.createToken(39),o);return Pfe.ChangeTracker.with(e,(e=>e.replaceNode(n,t,a)))}(e,a));break;default:return Sn.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:s}}function x4(e){let t=!1;return e.forEachChild((function e(n){yX(n)?t=!0:w_(n)||QF(n)||oF(n)||KI(n,e)})),t}function S4(e,t,n){const r=KX(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return GF(e)||XF(e)&&1===e.declarations.length}(n))return;const r=(GF(n)?n:Pe(n.declarations)).initializer;if(r&&(aF(r)||oF(r)&&!T4(e,t,r)))return r;return}(e,i,r.parent);if(o&&!x4(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=zm(r);if(a&&(oF(a)||aF(a))&&!bX(a.body,r)&&!x4(a.body)&&!i.containsArgumentsReference(a)){if(oF(a)&&T4(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}function k4(e){if(au(e)){const t=AC.createReturnStatement(e),n=e.getSourceFile();return cI(t,e),iZ(t),fZ(e,t,n,void 0,!0),AC.createBlock([t],!0)}return e}function T4(e,t,n){return!!n.name&&mue.Core.isSymbolReferencedInFile(n.name,t,e)}var C4,w4,N4,D4,F4=g({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){zge(),x7(),u4="Convert arrow function or function expression",d4=wS(Ea.Convert_arrow_function_or_function_expression),p4={name:"Convert to anonymous function",description:wS(Ea.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},f4={name:"Convert to named function",description:wS(Ea.Convert_to_named_function),kind:"refactor.rewrite.function.named"},m4={name:"Convert to arrow function",description:wS(Ea.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},g6(u4,{kinds:[p4.kind,f4.kind,m4.kind],getEditsForAction:b4,getAvailableActions:v4})}}),P4={},E4=g({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){F4()}});function A4(e){const{file:t,startPosition:n}=e;if(Sg(t))return r;return J4(t,n,e.program.getTypeChecker())?[{name:C4,description:N4,actions:[D4]}]:r}function I4(e,t){Sn.assert(t===C4,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=J4(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 262:if(e.name)return[e.name];return[Sn.checkDefined(dY(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const t=Sn.checkDefined(OX(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");if(231===e.parent.kind){return[e.parent.parent.name,t]}return[t];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return Sn.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=hD(e)?function(e){switch(e.parent.kind){case 263:const t=e.parent;if(t.name)return[t.name];return[Sn.checkDefined(dY(t,90),"Nameless class declaration should be a default export")];case 231:const n=e.parent,r=e.parent.parent,i=n.name;return i?[i,r.name]:[r.name]}}(e):[],o=ce([...r,...i],Ft),a=t.getTypeChecker(),s=V(o,(e=>mue.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n))),c=l(s);N(c.declarations,(e=>I(o,e)))||(c.valid=!1);return c;function l(t){const n={accessExpressions:[],typeUsages:[]},o={functionCalls:[],declarations:[],classReferences:n,valid:!0},s=J(r,_),c=J(i,_),l=hD(e),u=J(r,(e=>O4(e,a)));for(const r of t){if(r.kind===mue.EntryKind.Span){o.valid=!1;continue}if(I(u,_(r.node))){if(z4(r.node.parent)){o.signature=r.node.parent;continue}const e=M4(r);if(e){o.functionCalls.push(e);continue}}const t=O4(r.node,a);if(t&&I(u,t)){const e=j4(r);if(e){o.declarations.push(e);continue}}if(I(s,_(r.node))||HG(r.node)){if(L4(r))continue;const e=j4(r);if(e){o.declarations.push(e);continue}const t=M4(r);if(t){o.functionCalls.push(t);continue}}if(l&&I(c,_(r.node))){if(L4(r))continue;const t=j4(r);if(t){o.declarations.push(t);continue}const i=R4(r);if(i){n.accessExpressions.push(i);continue}if(YF(e.parent)){const e=B4(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}return o}function _(e){const t=a.getSymbolAtLocation(e);return t&&KY(t,a)}}(s,i,o);if(c.valid){const t=Pfe.ChangeTracker.with(e,(e=>function(e,t,n,r,i,o){const a=o.signature,s=J(K4(i,t,n),(e=>ZY(e)));if(a){l(a,J(K4(a,t,n),(e=>ZY(e))))}l(i,s);const c=ue(o.functionCalls,((e,t)=>It(e.pos,t.pos)));for(const e of c)if(e.arguments&&e.arguments.length){const t=ZY($4(i,e.arguments),!0);r.replaceNodeRange(Cp(e),Pe(e.arguments),Ie(e.arguments),t,{leadingTriviaOption:Pfe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Pfe.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,Pe(t.parameters),Ie(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:Pfe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Pfe.TrailingTriviaOption.Include})}}(n,i,a,e,s,c)));return{renameFilename:void 0,renameLocation:void 0,edits:t}}return{edits:[]}}function O4(e,t){const n=c5(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&Jx(r)))return r}}function L4(e){const t=e.node;return hP(t.parent)||cP(t.parent)||aP(t.parent)||fP(t.parent)||xP(t.parent)||yP(t.parent)?t:void 0}function j4(e){if(Nu(e.node.parent))return e.node}function M4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 213:case 214:const e=ft(n,Y_);if(e&&e.expression===t)return e;break;case 211:const r=ft(n,YD);if(r&&r.parent&&r.name===t){const e=ft(r.parent,Y_);if(e&&e.expression===r)return e}break;case 212:const i=ft(n,ZD);if(i&&i.parent&&i.argumentExpression===t){const e=ft(i.parent,Y_);if(e&&e.expression===i)return e}}}}function R4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 211:const e=ft(n,YD);if(e&&e.expression===t)return e;break;case 212:const r=ft(n,ZD);if(r&&r.expression===t)return r}}}function B4(e){const t=e.node;if(2===UG(t)||$b(t.parent))return t}function J4(e,t,n){const r=$X(e,t),i=qm(r);if(!function(e){const t=kc(e,Bu);if(t){const e=kc(t,(e=>!Bu(e)));return!!e&&b_(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){if(W4(e))return e.length-1;return e.length}(e)>=w4&&N(e,(e=>function(e,t){if(ed(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&HN(e.name)}(e,t)))}(e.parameters,t))return!1;switch(e.kind){case 262:return U4(e)&&q4(e,t);case 174:if(QD(e.parent)){const r=O4(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&q4(e,t)}return q4(e,t);case 176:return YF(e.parent)?U4(e.parent)&&q4(e,t):V4(e.parent.parent)&&q4(e,t);case 218:case 219:return V4(e.parent)}return!1}(i,n)&&bX(i,r))||i.body&&bX(i.body,r)?void 0:i}function z4(e){return fD(e)&&(ZF(e.parent)||DD(e.parent))}function q4(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function U4(e){if(!e.name){return!!dY(e,90)}return!0}function V4(e){return GF(e)&&im(e)&&HN(e.name)&&!e.type}function W4(e){return e.length>0&&yX(e[0].name)}function H4(e){return W4(e)&&(e=AC.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function $4(e,t){const n=H4(e.parameters),r=ed(Ie(n)),i=J(r?t.slice(0,n.length-1):t,((e,t)=>{const r=G4(n[t]),i=(o=r,HN(a=e)&&Ly(a)===o?AC.createShorthandPropertyAssignment(o):AC.createPropertyAssignment(o,a));var o,a;return iZ(i.name),qP(i)&&iZ(i.initializer),sZ(e,i),i}));if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=AC.createPropertyAssignment(G4(Ie(n)),AC.createArrayLiteralExpression(e));i.push(r)}return AC.createObjectLiteralExpression(i,!1)}function K4(e,t,n){const r=t.getTypeChecker(),i=H4(e.parameters),o=J(i,(function(e){const t=AC.createBindingElement(void 0,void 0,G4(e),ed(e)&&u(e)?AC.createArrayLiteralExpression():e.initializer);iZ(t),e.initializer&&t.initializer&&sZ(e.initializer,t.initializer);return t})),a=AC.createObjectBindingPattern(o),s=function(e){const t=J(e,_);return iw(AC.createTypeLiteralNode(t),1)}(i);let c;N(i,u)&&(c=AC.createObjectLiteralExpression());const l=AC.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(W4(e.parameters)){const t=e.parameters[0],n=AC.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return iZ(n.name),sZ(t.name,n.name),t.type&&(iZ(n.type),sZ(t.type,n.type)),AC.createNodeArray([n,l])}return AC.createNodeArray([l]);function _(e){let i=e.type;var o;i||!e.initializer&&!ed(e)||(o=e,i=TZ(r.getTypeAtLocation(o),o,t,n));const a=AC.createPropertySignature(void 0,G4(e),u(e)?AC.createToken(58):e.questionToken,i);return iZ(a),sZ(e.name,a.name),e.type&&a.type&&sZ(e.type,a.type),a}function u(e){if(ed(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function G4(e){return Ly(e.name)}var X4,Q4,Y4,Z4,e8,t8=g({"src/services/refactors/convertParamsToDestructuredObject.ts"(){zge(),x7(),C4="Convert parameters to destructured object",w4=1,N4=wS(Ea.Convert_parameters_to_destructured_object),g6(C4,{kinds:[(D4={name:C4,description:N4,kind:"refactor.rewrite.parameters.toDestructured"}).kind],getEditsForAction:I4,getAvailableActions:A4})}}),n8={},r8=g({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){t8()}});function i8(e){const{file:t,startPosition:n}=e,i=c8(o8(t,n)),o=FN(i),a={name:X4,description:Q4,actions:[]};return o&&"invoked"!==e.triggerReason?r:fg(i)&&(o||pF(i)&&l8(i).isValidConcatenation)?(a.actions.push(Y4),[a]):e.preferences.provideRefactorNotApplicableReason?(a.actions.push({...Y4,notApplicableReason:wS(Ea.Can_only_convert_string_concatenations_and_string_literals)}),[a]):r}function o8(e,t){const n=KX(e,t),r=c8(n);return!l8(r).isValidConcatenation&&iF(r.parent)&&pF(r.parent.parent)?r.parent.parent:n}function a8(e,t){const{file:n,startPosition:r}=e,i=o8(n,r);return t===Q4?{edits:s8(e,i)}:Sn.fail("invalid action")}function s8(e,t){const n=c8(t),r=e.file,i=function({nodes:e,operators:t},n){const r=Z4(t,n),i=e8(e,n,r),[o,a,s,c]=u8(0,e);if(o===e.length){const e=AC.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const l=[],_=AC.createTemplateHead(a,s);i(c,_);for(let t=o;t<e.length;t++){const n=p8(e[t]);r(t,n);const[o,a,s,c]=u8(t+1,e);t=o-1;const _=t===e.length-1;if(mF(n)){const e=J(n.templateSpans,((e,t)=>{d8(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),o=_8(e.literal)+(r?s:"");return AC.createTemplateSpan(e.expression,_&&r?AC.createTemplateTail(i,o):AC.createTemplateMiddle(i,o))}));l.push(...e)}else{const e=_?AC.createTemplateTail(a,s):AC.createTemplateMiddle(a,s);i(c,e),l.push(AC.createTemplateSpan(n,e))}}return AC.createTemplateExpression(_,l)}(l8(n),r),o=Ps(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return Pfe.ChangeTracker.with(e,(e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)}))}return Pfe.ChangeTracker.with(e,(e=>e.replaceNode(r,n,i)))}function c8(e){return kc(e.parent,(e=>{switch(e.kind){case 211:case 212:return!1;case 228:case 226:return!(pF(e.parent)&&(t=e.parent,64!==t.operatorToken.kind&&65!==t.operatorToken.kind));default:return"quit"}var t}))||e}function l8(e){const t=e=>{if(!pF(e))return{nodes:[e],operators:[],validOperators:!0,hasString:FN(e)||AN(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||FN(e.right)||mF(e.right)))return{nodes:[e],operators:[],hasString:!1,validOperators:!0};const a=40===e.operatorToken.kind,s=o&&a;return n.push(e.right),r.push(e.operatorToken),{nodes:n,operators:r,hasString:!0,validOperators:s}},{nodes:n,operators:r,validOperators:i,hasString:o}=t(e);return{nodes:n,operators:r,isValidConcatenation:i&&o}}function _8(e){const t=IN(e)||ON(e)?-2:-1;return Yp(e).slice(1,t)}function u8(e,t){const n=[];let r="",i="";for(;e<t.length;){const o=t[e];if(!Qu(o)){if(mF(o)){r+=o.head.text,i+=_8(o.head);break}break}r+=o.text,i+=Yp(o).slice(1,-1).replace(/\\.|[$`]/g,(e=>"\\"===e[0]?e:"\\"+e)),n.push(e),e++}return[e,r,i,n]}function d8(e){const t=e.getSourceFile();pZ(e,e.expression,t,3,!1),fZ(e.expression,e.expression,t,3,!1)}function p8(e){return iF(e)&&(d8(e),e=e.expression),e}var f8,m8,g8,h8=g({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){zge(),x7(),X4="Convert to template string",Q4=wS(Ea.Convert_to_template_string),g6(X4,{kinds:[(Y4={name:X4,description:Q4,kind:"refactor.rewrite.string"}).kind],getEditsForAction:a8,getAvailableActions:i8}),Z4=(e,t)=>(n,r)=>{n<e.length&&pZ(e[n],r,t,3,!1)},e8=(e,t,n)=>(r,i)=>{for(;r.length>0;){const o=r.shift();pZ(e[o],i,t,3,!1),n(o,i)}}}}),y8={},v8=g({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){h8()}});function b8(e){const t=T8(e,"invoked"===e.triggerReason);return t?H6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:f8,description:m8,actions:[{...g8,notApplicableReason:t.error}]}]:r:[{name:f8,description:m8,actions:[g8]}]:r}function x8(e,t){const n=T8(e);Sn.assert(n&&!H6(n),"Expected applicable refactor info");const r=Pfe.ChangeTracker.with(e,(t=>function(e,t,n,r,i){const{finalExpression:o,occurrences:a,expression:s}=r,c=a[a.length-1],l=F8(t,o,a);l&&(YD(l)||ZD(l)||eF(l))&&(pF(s)?n.replaceNodeRange(e,c,o,l):fF(s)&&n.replaceNode(e,s,AC.createBinaryExpression(l,AC.createToken(61),s.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}function S8(e){return pF(e)||fF(e)}function k8(e){return S8(e)||function(e){return IF(e)||qF(e)||EF(e)}(e)}function T8(e,t=!0){const{file:n,program:r}=e,i=$Z(e),o=0===i.length;if(o&&!t)return;const a=KX(n,i.start),s=QX(n,i.start+i.length),c=ac(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),l=o?function(e){for(;e.parent;){if(k8(e)&&!k8(e.parent))return e;e=e.parent}return}(a):function(e,t){for(;e.parent;){if(k8(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(a,c),_=l&&k8(l)?function(e){if(S8(e))return e;if(EF(e)){const t=Th(e),n=null==t?void 0:t.initializer;return n&&S8(n)?n:void 0}return e.expression&&S8(e.expression)?e.expression:void 0}(l):void 0;if(!_)return{error:wS(Ea.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return fF(_)?function(e,t){const n=e.condition,r=D8(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:wS(Ea.Could_not_find_convertible_access_expression)};if((YD(n)||HN(n))&&w8(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(pF(n)){const t=C8(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:wS(Ea.Could_not_find_matching_access_expressions)}}}(_,u):function(e){if(56!==e.operatorToken.kind)return{error:wS(Ea.Can_only_convert_logical_AND_access_chains)};const t=D8(e.right);if(!t)return{error:wS(Ea.Could_not_find_convertible_access_expression)};const n=C8(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:wS(Ea.Could_not_find_matching_access_expressions)}}(_)}function C8(e,t){const n=[];for(;pF(t)&&56===t.operatorToken.kind;){const r=w8(Qh(e),Qh(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=w8(e,t);return r&&n.push(r),n.length>0?n:void 0}function w8(e,t){if(HN(t)||YD(t)||ZD(t))return function(e,t){for(;(eF(e)||YD(e)||ZD(e))&&N8(e)!==N8(t);)e=e.expression;for(;YD(e)&&YD(t)||ZD(e)&&ZD(t);){if(N8(e)!==N8(t))return!1;e=e.expression,t=t.expression}return HN(e)&&HN(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function N8(e){return HN(e)||Fy(e)?e.getText():YD(e)?N8(e.name):ZD(e)?N8(e.argumentExpression):void 0}function D8(e){return pF(e=Qh(e))?D8(e.left):(YD(e)||ZD(e)||eF(e))&&!Pl(e)?e:void 0}function F8(e,t,n){if(YD(t)||ZD(t)||eF(t)){const r=F8(e,t.expression,n),i=n.length>0?n[n.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&n.pop(),eF(t))return o?AC.createCallChain(r,AC.createToken(29),t.typeArguments,t.arguments):AC.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(YD(t))return o?AC.createPropertyAccessChain(r,AC.createToken(29),t.name):AC.createPropertyAccessChain(r,t.questionDotToken,t.name);if(ZD(t))return o?AC.createElementAccessChain(r,AC.createToken(29),t.argumentExpression):AC.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}var P8,E8,A8,I8,O8,L8=g({"src/services/refactors/convertToOptionalChainExpression.ts"(){zge(),x7(),f8="Convert to optional chain expression",m8=wS(Ea.Convert_to_optional_chain_expression),g6(f8,{kinds:[(g8={name:f8,description:m8,kind:"refactor.rewrite.expression.optionalChain"}).kind],getEditsForAction:x8,getAvailableActions:b8})}}),j8={},M8=g({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){L8()}});function R8(e){const t=e.kind,n=J8(e.file,$Z(e),"invoked"===e.triggerReason),i=n.targetRange;if(void 0===i){if(!n.errors||0===n.errors.length||!e.preferences.provideRefactorNotApplicableReason)return r;const i=[];return $6(A8.kind,t)&&i.push({name:P8,description:A8.description,actions:[{...A8,notApplicableReason:f(n.errors)}]}),$6(E8.kind,t)&&i.push({name:P8,description:E8.description,actions:[{...E8,notApplicableReason:f(n.errors)}]}),i}const o=function(e,t){const{scopes:n,readsAndWrites:{functionErrorsPerScope:r,constantErrorsPerScope:i}}=U8(e,t),o=n.map(((e,t)=>{const n=function(e){return b_(e)?"inner function":w_(e)?"method":"function"}(e),o=function(e){return w_(e)?"readonly field":"constant"}(e),a=b_(e)?function(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:BG;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:Sn.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):w_(e)?function(e){return 263===e.kind?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}(e):function(e){return 268===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=kS(wS(Ea.Extract_to_0_in_1_scope),[n,"global"]),c=kS(wS(Ea.Extract_to_0_in_1_scope),[o,"global"])):0===a?(s=kS(wS(Ea.Extract_to_0_in_1_scope),[n,"module"]),c=kS(wS(Ea.Extract_to_0_in_1_scope),[o,"module"])):(s=kS(wS(Ea.Extract_to_0_in_1),[n,a]),c=kS(wS(Ea.Extract_to_0_in_1),[o,a])),0!==t||w_(e)||(c=kS(wS(Ea.Extract_to_0_in_enclosing_scope),[o])),{functionExtraction:{description:s,errors:r[t]},constantExtraction:{description:c,errors:i[t]}}}));return o}(i,e);if(void 0===o)return r;const a=[],s=new Map;let c;const l=[],_=new Map;let u,d=0;for(const{functionExtraction:e,constantExtraction:n}of o){if($6(A8.kind,t)){const t=e.description;0===e.errors.length?s.has(t)||(s.set(t,!0),a.push({description:t,name:`function_scope_${d}`,kind:A8.kind})):c||(c={description:t,name:`function_scope_${d}`,notApplicableReason:f(e.errors),kind:A8.kind})}if($6(E8.kind,t)){const e=n.description;0===n.errors.length?_.has(e)||(_.set(e,!0),l.push({description:e,name:`constant_scope_${d}`,kind:E8.kind})):u||(u={description:e,name:`constant_scope_${d}`,notApplicableReason:f(n.errors),kind:E8.kind})}d++}const p=[];return a.length?p.push({name:P8,description:wS(Ea.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&c&&p.push({name:P8,description:wS(Ea.Extract_function),actions:[c]}),l.length?p.push({name:P8,description:wS(Ea.Extract_constant),actions:l}):e.preferences.provideRefactorNotApplicableReason&&u&&p.push({name:P8,description:wS(Ea.Extract_constant),actions:[u]}),p.length?p:r;function f(e){let t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function B8(e,t){const n=J8(e.file,$Z(e)).targetRange,i=/^function_scope_(\d+)$/.exec(t);if(i){const t=+i[1];return Sn.assert(isFinite(t),"Expected to parse a finite number from the function scope index"),function(e,t,n){const{scopes:i,readsAndWrites:{target:o,usagesPerScope:a,functionErrorsPerScope:s,exposedVariableDeclarations:c}}=U8(e,t);return Sn.assert(!s[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),function(e,t,{usages:n,typeParameterUsages:i,substitutions:o},a,s,c){const l=c.program.getTypeChecker(),_=HS(c.program.getCompilerOptions()),u=Sce.createImportAdder(c.file,c.program,c.preferences,c.host),d=t.getSourceFile(),p=_Z(w_(t)?"newMethod":"newFunction",d),f=Tg(t),m=AC.createIdentifier(p);let g;const h=[],y=[];let v;n.forEach(((e,n)=>{let r;if(!f){let n=l.getTypeOfSymbolAtLocation(e.symbol,e.node);n=l.getBaseTypeOfLiteralType(n),r=Sce.typeToAutoImportableTypeNode(l,u,n,t,_,1)}const i=AC.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(v||(v=[])).push(e),y.push(AC.createIdentifier(n))}));const b=$e(i.values(),(e=>({type:e,declaration:V8(e,c.startPosition)}))),x=b.sort(W8),S=0===x.length?void 0:G(x,(({declaration:e})=>e)),k=void 0!==S?S.map((e=>AC.createTypeReferenceNode(e.name,void 0))):void 0;if(au(e)&&!f){const n=l.getContextualType(e);g=l.typeToTypeNode(n,t,1)}const{body:T,returnValueProperty:C}=function(e,t,n,r,i){const o=void 0!==n||t.length>0;if(PF(e)&&!o&&0===r.size)return{body:AC.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=AC.createNodeArray(PF(e)?e.statements.slice(0):[Pu(e)?e:AC.createReturnStatement(Qh(e))]);if(o||r.size){const r=UB(c,l,Pu).slice();if(o&&!i&&Pu(e)){const e=H8(t,n);1===e.length?r.push(AC.createReturnStatement(e[0].name)):r.push(AC.createReturnStatement(AC.createObjectLiteralExpression(e)))}return{body:AC.createBlock(r,!0),returnValueProperty:a}}return{body:AC.createBlock(c,!0),returnValueProperty:void 0};function l(e){if(!s&&qF(e)&&o){const r=H8(t,n);return e.expression&&(a||(a="__return"),r.unshift(AC.createPropertyAssignment(a,qB(e.expression,l,au)))),1===r.length?AC.createReturnStatement(r[0].name):AC.createReturnStatement(AC.createObjectLiteralExpression(r))}{const t=s;s=s||b_(e)||w_(e);const n=r.get(PB(e).toString()),i=n?ZY(n):YB(e,l,zq);return s=t,i}}}(e,a,v,o,!!(1&s.facts));let w;iZ(T);const N=!!(16&s.facts);if(w_(t)){const e=f?[]:[AC.createModifier(123)];32&s.facts&&e.push(AC.createModifier(126)),4&s.facts&&e.push(AC.createModifier(134)),w=AC.createMethodDeclaration(e.length?e:void 0,2&s.facts?AC.createToken(42):void 0,m,void 0,S,h,g,T)}else N&&h.unshift(AC.createParameterDeclaration(void 0,void 0,"this",void 0,l.typeToTypeNode(l.getTypeAtLocation(s.thisNode),t,1),void 0)),w=AC.createFunctionDeclaration(4&s.facts?[AC.createToken(134)]:void 0,2&s.facts?AC.createToken(42):void 0,m,S,h,g,T);const F=Pfe.ChangeTracker.fromContext(c),P=function(e,t){return D(function(e){if(b_(e)){const t=e.body;if(PF(t))return t.statements}else{if(rP(e)||$P(e))return e.statements;if(w_(e))return e.members}return r}(t),(t=>t.pos>=e&&b_(t)&&!hD(t)))}(($8(s.range)?Ie(s.range):s.range).end,t);P?F.insertNodeBefore(c.file,P,w,!0):F.insertNodeAtEndOfScope(c.file,t,w);u.writeFixes(F);const E=[],A=function(e,t,n){const r=AC.createIdentifier(n);if(w_(e)){const n=32&t.facts?AC.createIdentifier(e.name.text):AC.createThis();return AC.createPropertyAccessExpression(n,r)}return r}(t,s,p);N&&y.unshift(AC.createIdentifier("this"));let I=AC.createCallExpression(N?AC.createPropertyAccessExpression(A,"call"):A,k,y);2&s.facts&&(I=AC.createYieldExpression(AC.createToken(42),I));4&s.facts&&(I=AC.createAwaitExpression(I));X8(e)&&(I=AC.createJsxExpression(void 0,I));if(a.length&&!v)if(Sn.assert(!C,"Expected no returnValueProperty"),Sn.assert(!(1&s.facts),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){const e=a[0];E.push(AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(ZY(e.name),void 0,ZY(e.type),I)],e.parent.flags)))}else{const e=[],n=[];let r=a[0].parent.flags,i=!1;for(const o of a){e.push(AC.createBindingElement(void 0,void 0,ZY(o.name)));const a=l.typeToTypeNode(l.getBaseTypeOfLiteralType(l.getTypeAtLocation(o)),t,1);n.push(AC.createPropertySignature(void 0,o.symbol.name,void 0,a)),i=i||void 0!==o.type,r&=o.parent.flags}const o=i?AC.createTypeLiteralNode(n):void 0;o&&rw(o,1),E.push(AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(AC.createObjectBindingPattern(e),void 0,o,I)],r)))}else if(a.length||v){if(a.length)for(const e of a){let t=e.parent.flags;2&t&&(t=-3&t|1),E.push(AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(e.symbol.name,void 0,M(e.type))],t)))}C&&E.push(AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(C,void 0,M(g))],1)));const e=H8(a,v);C&&e.unshift(AC.createShorthandPropertyAssignment(C)),1===e.length?(Sn.assert(!C,"Shouldn't have returnValueProperty here"),E.push(AC.createExpressionStatement(AC.createAssignment(e[0].name,I))),1&s.facts&&E.push(AC.createReturnStatement())):(E.push(AC.createExpressionStatement(AC.createAssignment(AC.createObjectLiteralExpression(e),I))),C&&E.push(AC.createReturnStatement(AC.createIdentifier(C))))}else 1&s.facts?E.push(AC.createReturnStatement(I)):$8(s.range)?E.push(AC.createExpressionStatement(I)):E.push(I);$8(s.range)?F.replaceNodeRangeWithNodes(c.file,Pe(s.range),Ie(s.range),E):F.replaceNodeWithNodes(c.file,s.range,E);const O=F.getChanges(),L=($8(s.range)?Pe(s.range):s.range).getSourceFile().fileName,j=uZ(O,L,p,!1);return{renameFilename:L,renameLocation:j,edits:O};function M(e){if(void 0===e)return;const t=ZY(e);let n=t;for(;RD(n);)n=n.type;return OD(n)&&D(n.types,(e=>157===e.kind))?t:AC.createUnionTypeNode([t,AC.createKeywordTypeNode(157)])}}(o,i[n],a[n],c,e,t)}(n,e,t)}const o=/^constant_scope_(\d+)$/.exec(t);if(o){const t=+o[1];return Sn.assert(isFinite(t),"Expected to parse a finite number from the constant scope index"),function(e,t,n){const{scopes:r,readsAndWrites:{target:i,usagesPerScope:o,constantErrorsPerScope:a,exposedVariableDeclarations:s}}=U8(e,t);Sn.assert(!a[n].length,"The extraction went missing? How?"),Sn.assert(0===s.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();return function(e,t,{substitutions:n},r,i){const o=i.program.getTypeChecker(),a=t.getSourceFile(),s=!YD(e)||w_(t)||o.resolveName(e.name.text,e,111551,!1)||$N(e.name)||Fc(e.name)?_Z(w_(t)?"newProperty":"newLocal",a):e.name.text,c=Tg(t);let l=c||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),_=function(e,t){return t.size?n(e):e;function n(e){const r=t.get(PB(e).toString());return r?ZY(r):YB(e,n,zq)}}(Qh(e),n);({variableType:l,initializer:_}=m(l,_)),iZ(_);const u=Pfe.ChangeTracker.fromContext(i);if(w_(t)){Sn.assert(!c,"Cannot extract to a JS class");const n=[];n.push(AC.createModifier(123)),32&r&&n.push(AC.createModifier(126)),n.push(AC.createModifier(148));const o=AC.createPropertyDeclaration(n,s,void 0,l,_);let a=AC.createPropertyAccessExpression(32&r?AC.createIdentifier(t.name.getText()):AC.createThis(),AC.createIdentifier(s));X8(e)&&(a=AC.createJsxExpression(void 0,a));const d=function(e,t){const n=t.members;let r;Sn.assert(n.length>0,"Found no members");let i=!0;for(const t of n){if(t.pos>e)return r||n[0];if(i&&!pD(t)){if(void 0!==r)return t;i=!1}r=t}return void 0===r?Sn.fail():r}(e.pos,t);u.insertNodeBefore(i.file,d,o,!0),u.replaceNode(i.file,e,a)}else{const n=AC.createVariableDeclaration(s,void 0,l,_),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(GF(e)&&e.initializer===n&&XF(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}(e,t);if(r){u.insertNodeBefore(i.file,r,n);const t=AC.createIdentifier(s);u.replaceNode(i.file,e,t)}else if(244===e.parent.kind&&t===kc(e,q8)){const t=AC.createVariableStatement(void 0,AC.createVariableDeclarationList([n],2));u.replaceNode(i.file,e.parent,t)}else{const r=AC.createVariableStatement(void 0,AC.createVariableDeclarationList([n],2)),o=function(e,t){let n;Sn.assert(!w_(t));for(let r=e;r!==t;r=r.parent)q8(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(G8(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&RP(r)?(Sn.assert(VF(r.parent.parent),"Grandparent isn't a switch statement"),r.parent.parent):Sn.checkDefined(t,"prevStatement failed to get set")}Sn.assert(r!==t,"Didn't encounter a block-like before encountering scope")}}(e,t);if(0===o.pos?u.insertNodeAtTopOfFile(i.file,r,!1):u.insertNodeBefore(i.file,o,r,!1),244===e.parent.kind)u.delete(i.file,e.parent);else{let t=AC.createIdentifier(s);X8(e)&&(t=AC.createJsxExpression(void 0,t)),u.replaceNode(i.file,e,t)}}}const d=u.getChanges(),p=e.getSourceFile().fileName,f=uZ(d,p,s,!0);return{renameFilename:p,renameLocation:f,edits:d};function m(n,r){if(void 0===n)return{variableType:n,initializer:r};if(!oF(r)&&!aF(r)||r.typeParameters)return{variableType:n,initializer:r};const i=o.getTypeAtLocation(e),a=Oe(o.getSignaturesOfType(i,0));if(!a)return{variableType:n,initializer:r};if(a.getTypeParameters())return{variableType:n,initializer:r};const s=[];let c=!1;for(const e of r.parameters)if(e.type)s.push(e);else{const n=o.getTypeAtLocation(e);n===o.getAnyType()&&(c=!0),s.push(AC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type||o.typeToTypeNode(n,t,1),e.initializer))}if(c)return{variableType:n,initializer:r};if(n=void 0,aF(r))r=AC.updateArrowFunction(r,lI(e)?Jc(e):void 0,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.equalsGreaterThanToken,r.body);else{if(a&&a.thisParameter){const n=De(s);if(!n||HN(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,AC.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1)))}}r=AC.updateFunctionExpression(r,lI(e)?Jc(e):void 0,r.asteriskToken,r.name,r.typeParameters,s,r.type||o.typeToTypeNode(a.getReturnType(),t,1),r.body)}return{variableType:n,initializer:r}}}(au(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}Sn.fail("Unrecognized action name")}function J8(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[ES(e,t.start,r,I8.cannotExtractEmpty)]};const i=0===r&&n,o=XX(e,t.start),a=QX(e,$s(t)),s=o&&a&&n?function(e,t,n){const r=e.getStart(n);let i=t.getEnd();59===n.text.charCodeAt(i)&&i++;return{start:r,length:i-r}}(o,a,e):t,c=i?function(e){return kc(e,(e=>e.parent&&K8(e)&&!pF(e.parent)))}(o):_Y(o,e,s),l=i?c:_Y(a,e,s);let _,u=0;if(!c||!l)return{errors:[ES(e,t.start,r,I8.cannotExtractRange)]};if(16777216&c.flags)return{errors:[ES(e,t.start,r,I8.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[ES(e,t.start,r,I8.cannotExtractRange)]};if(c!==l){if(!G8(c.parent))return{errors:[ES(e,t.start,r,I8.cannotExtractRange)]};const n=[];for(const e of c.parent.statements){if(e===c||n.length){const t=f(e);if(t)return{errors:t};n.push(e)}if(e===l)break}return n.length?{targetRange:{range:n,facts:u,thisNode:_}}:{errors:[ES(e,t.start,r,I8.cannotExtractRange)]}}if(qF(c)&&!c.expression)return{errors:[ES(e,t.start,r,I8.cannotExtractRange)]};const d=function(e){if(qF(e)){if(e.expression)return e.expression}else if(EF(e)||XF(e)){const t=EF(e)?e.declarationList.declarations:e.declarations;let n,r=0;for(const e of t)e.initializer&&(r++,n=e.initializer);if(1===r)return n}else if(GF(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(HN(IF(e)?e.expression:e))return[Bf(e,I8.cannotExtractIdentifier)];return}(d)||f(d);return p?{errors:p}:{targetRange:{range:z8(d),facts:u,thisNode:_}};function f(e){let n;var r;if((r=n||(n={}))[r.None=0]="None",r[r.Break=1]="Break",r[r.Continue=2]="Continue",r[r.Return=4]="Return",Sn.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),Sn.assert(!iT(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(Pu(e)||fg(e)&&K8(e)||Q8(e)))return[Bf(e,I8.statementOrExpressionExpected)];if(33554432&e.flags)return[Bf(e,I8.cannotExtractAmbientBlock)];const i=Um(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(172===n.kind){mb(n)&&(u|=32);break}if(169===n.kind){176===zm(n).kind&&(u|=32);break}174===n.kind&&mb(n)&&(u|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(Nu(n)){if(fb(260===n.kind?n.parent.parent:n,32))return(o||(o=[])).push(Bf(n,I8.cannotExtractExportedEntity)),!0}switch(n.kind){case 272:return(o||(o=[])).push(Bf(n,I8.cannotExtractImport)),!0;case 277:return(o||(o=[])).push(Bf(n,I8.cannotExtractExportedEntity)),!0;case 108:if(213===n.parent.kind){const e=Um(n);if(void 0===e||e.pos<t.start||e.end>=t.start+t.length)return(o||(o=[])).push(Bf(n,I8.cannotExtractSuper)),!0}else u|=8,_=n;break;case 219:KI(n,(function e(t){if(yX(t))u|=8,_=n;else{if(w_(t)||y_(t)&&!aF(t))return!1;KI(t,e)}}));case 263:case 262:$P(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(Bf(n,I8.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const r=s;switch(n.kind){case 245:s&=-5;break;case 258:s=0;break;case 241:n.parent&&258===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 297:case 296:s|=1;break;default:lu(n,!1)&&(s|=3)}switch(n.kind){case 197:case 110:u|=8,_=n;break;case 256:{const t=n.label;(a||(a=[])).push(t.escapedText),KI(n,e),a.pop();break}case 252:case 251:{const e=n.label;e?I(a,e.escapedText)||(o||(o=[])).push(Bf(n,I8.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(252===n.kind?1:2)||(o||(o=[])).push(Bf(n,I8.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:u|=4;break;case 229:u|=2;break;case 253:4&s?u|=1:(o||(o=[])).push(Bf(n,I8.cannotExtractRangeContainingConditionalReturnStatement));break;default:KI(n,e)}s=r}(e),8&u){const t=$m(e,!1,!1);(262===t.kind||174===t.kind&&210===t.parent.kind||218===t.kind)&&(u|=16)}return o}}function z8(e){return Pu(e)?[e]:fg(e)?IF(e.parent)?[e.parent]:e:Q8(e)?e:void 0}function q8(e){return aF(e)?gu(e.body):b_(e)||$P(e)||rP(e)||w_(e)}function U8(e,t){const{file:n}=t,r=function(e){let t=$8(e.range)?Pe(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=Um(t);if(e){const n=kc(t,b_);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,169===t.kind&&(t=kc(t,(e=>b_(e))).parent),q8(t)&&(n.push(t),312===t.kind))return n}(e),i=function(e,t){return $8(e.range)?{pos:Pe(e.range).getStart(t),end:Ie(e.range).getEnd()}:e.range}(e,n),o=function(e,t,n,r,i,o){const a=new Map,s=[],c=[],l=[],_=[],u=[],d=new Map,p=[];let f;const m=$8(e.range)?1===e.range.length&&IF(e.range[0])?e.range[0].expression:void 0:e.range;let g;if(void 0===m){const t=e.range,n=Pe(t).getStart(),i=Ie(t).end;g=ES(r,n,i-n,I8.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(g=Bf(m,I8.uselessConstantType));for(const e of t){s.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),c.push(new Map),l.push([]);const t=[];g&&t.push(g),w_(e)&&Tg(e)&&t.push(Bf(e,I8.cannotExtractToJSClass)),aF(e)&&!PF(e.body)&&t.push(Bf(e,I8.cannotExtractToExpressionArrowFunction)),_.push(t)}const h=new Map,y=$8(e.range)?AC.createBlock(e.range):e.range,v=$8(e.range)?Pe(e.range):e.range,b=x(v);if(k(y),b&&!$8(e.range)&&!IP(e.range)){S(i.getContextualType(e.range))}if(a.size>0){const e=new Map;let n=0;for(let r=v;void 0!==r&&n<t.length;r=r.parent)if(r===t[n]&&(e.forEach(((e,t)=>{s[n].typeParameterUsages.set(t,e)})),n++),kf(r))for(const t of kl(r)){const n=i.getTypeAtLocation(t);a.has(n.id.toString())&&e.set(n.id.toString(),n)}Sn.assert(n===t.length,"Should have iterated all scopes")}if(u.length){KI(Sf(t[0],t[0].parent)?t[0]:Ef(t[0]),w)}for(let n=0;n<t.length;n++){const r=s[n];if(n>0&&(r.usages.size>0||r.typeParameterUsages.size>0)){const t=$8(e.range)?e.range[0]:e.range;_[n].push(Bf(t,I8.cannotAccessVariablesFromNestedScopes))}16&e.facts&&w_(t[n])&&l[n].push(Bf(e.thisNode,I8.cannotExtractFunctionsContainingThisToMethod));let i,o=!1;if(s[n].usages.forEach((e=>{2===e.usage&&(o=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&pb(e.symbol.valueDeclaration,8)&&(i=e.symbol.valueDeclaration))})),Sn.assert($8(e.range)||0===p.length,"No variable declarations expected if something was extracted"),o&&!$8(e.range)){const t=Bf(e.range,I8.cannotWriteInExpression);l[n].push(t),_[n].push(t)}else if(i&&n>0){const e=Bf(i,I8.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[n].push(e),_[n].push(e)}else if(f){const e=Bf(f,I8.cannotExtractExportedEntity);l[n].push(e),_[n].push(e)}}return{target:y,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:_,exposedVariableDeclarations:p};function x(e){return!!kc(e,(e=>kf(e)&&0!==kl(e).length))}function S(e){const t=i.getSymbolWalker((()=>(o.throwIfCancellationRequested(),!0))),{visitedTypes:n}=t.walkType(e);for(const e of n)e.isTypeParameter()&&a.set(e.id.toString(),e)}function k(e,t=1){if(b){S(i.getTypeAtLocation(e))}if(Nu(e)&&e.symbol&&u.push(e),Vb(e))k(e.left,2),k(e.right);else if(iu(e))k(e.operand,2);else if(YD(e)||ZD(e))KI(e,k);else if(HN(e)){if(!e.parent)return;if(sD(e.parent)&&e!==e.parent.left)return;if(YD(e.parent)&&e!==e.parent.expression)return;T(e,t,hm(e))}else KI(e,k)}function T(e,n,r){const i=C(e,n,r);if(i)for(let n=0;n<t.length;n++){const t=c[n].get(i);t&&s[n].substitutions.set(PB(e).toString(),t)}}function C(o,a,u){const d=N(o);if(!d)return;const p=EB(d).toString(),f=h.get(p);if(f&&f>=a)return p;if(h.set(p,a),f){for(const e of s){e.usages.get(o.text)&&e.usages.set(o.text,{usage:a,symbol:d,node:o})}return p}const m=d.getDeclarations(),g=m&&D(m,(e=>e.getSourceFile()===r));if(g&&!CX(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=Bf(o,I8.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of l)t.push(e);for(const t of _)t.push(e)}for(let e=0;e<t.length;e++){const n=t[e];if(i.resolveName(d.name,n,d.flags,!1)!==d&&!c[e].has(p)){const t=F(d.exportSymbol||d,n,u);if(t)c[e].set(p,t);else if(u){if(!(262144&d.flags)){const t=Bf(o,I8.typeWillNotBeVisibleInTheNewScope);l[e].push(t),_[e].push(t)}}else s[e].usages.set(o.text,{usage:a,symbol:d,node:o})}}return p}}function w(t){if(t===e.range||$8(e.range)&&e.range.includes(t))return;const n=HN(t)?N(t):i.getSymbolAtLocation(t);if(n){const e=D(u,(e=>e.symbol===n));if(e)if(GF(e)){const t=e.symbol.id.toString();d.has(t)||(p.push(e),d.set(t,!0))}else f=f||e}KI(t,w)}function N(e){return e.parent&&UP(e.parent)&&e.parent.name===e?i.getShorthandAssignmentValueSymbol(e.parent):i.getSymbolAtLocation(e)}function F(e,t,n){if(!e)return;const r=e.getDeclarations();if(r&&r.some((e=>e.parent===t)))return AC.createIdentifier(e.name);const i=F(e.parent,t,n);return void 0!==i?n?AC.createQualifiedName(i,AC.createIdentifier(e.name)):AC.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,readsAndWrites:o}}function V8(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const e of r.declarations)(void 0===n||e.pos<n.pos)&&e.pos<t&&(n=e);return n}function W8({type:e,declaration:t},{type:n,declaration:r}){return Ut(t,r,"pos",It)||Rt(e.symbol?e.symbol.getName():"",n.symbol?n.symbol.getName():"")||It(e.id,n.id)}function H8(e,t){const n=J(e,(e=>AC.createShorthandPropertyAssignment(e.symbol.name))),r=J(t,(e=>AC.createShorthandPropertyAssignment(e.symbol.name)));return void 0===n?r:void 0===r?n:n.concat(r)}function $8(e){return _t(e)}function K8(e){const{parent:t}=e;if(306===t.kind)return!1;switch(e.kind){case 11:return 272!==t.kind&&276!==t.kind;case 230:case 206:case 208:return!1;case 80:return 208!==t.kind&&276!==t.kind&&281!==t.kind}return!0}function G8(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function X8(e){return Q8(e)||(wP(e)||NP(e)||PP(e))&&(wP(e.parent)||PP(e.parent))}function Q8(e){return FN(e)&&e.parent&&IP(e.parent)}var Y8=g({"src/services/refactors/extractSymbol.ts"(){zge(),x7(),P8="Extract Symbol",E8={name:"Extract Constant",description:wS(Ea.Extract_constant),kind:"refactor.extract.constant"},A8={name:"Extract Function",description:wS(Ea.Extract_function),kind:"refactor.extract.function"},g6(P8,{kinds:[E8.kind,A8.kind],getEditsForAction:B8,getAvailableActions:R8}),(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")})(I8||(I8={})),O8=(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))(O8||{})}}),Z8={};h(Z8,{Messages:()=>I8,RangeFacts:()=>O8,getRangeToExtract:()=>J8,getRefactorActionsToExtractSymbol:()=>R8,getRefactorEditsToExtractSymbol:()=>B8});var e7,t7,n7,r7,i7,o7,a7=g({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){Y8()}}),s7=g({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){zge(),x7(),e7="Generate 'get' and 'set' accessors",t7=wS(Ea.Generate_get_and_set_accessors),g6(e7,{kinds:[(n7={name:e7,description:t7,kind:"refactor.rewrite.property.generateAccessors"}).kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=Sce.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);Sn.assert(n&&!H6(n),"Expected applicable refactor info");const r=Sce.generateAccessorFromProperty(e.file,e.program,e.startPosition,e.endPosition,e,t);if(!r)return;const i=e.file.fileName,o=n.renameAccessor?n.accessorName:n.fieldName;return{renameFilename:i,renameLocation:(HN(o)?0:-1)+uZ(r,i,o.text,_D(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return r;const t=Sce.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?H6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:e7,description:t7,actions:[{...n7,notApplicableReason:t.error}]}]:r:[{name:e7,description:t7,actions:[n7]}]:r}})}}),c7={},l7=g({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){s7()}});function _7(e){const t=d7(e);if(t&&!H6(t)){return{renameFilename:void 0,renameLocation:void 0,edits:Pfe.ChangeTracker.with(e,(n=>function(e,t,n,r){const i=OX(n,22,e),o=aF(n)&&void 0===i,a=o?Pe(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,AC.createToken(21)),t.insertNodeAfter(e,a,AC.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode)))}}}function u7(e){const t=d7(e);return t?H6(t)?e.preferences.provideRefactorNotApplicableReason?[{name:r7,description:i7,actions:[{...o7,notApplicableReason:t.error}]}]:r:[{name:r7,description:i7,actions:[o7]}]:r}function d7(e){if(Tg(e.file)||!$6(o7.kind,e.kind))return;const t=kc(HX(e.file,e.startPosition),(e=>PF(e)||e.parent&&aF(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}(e)));if(!t||!t.body||t.type)return{error:wS(Ea.Return_type_must_be_inferred_from_a_function)};const n=e.program.getTypeChecker(),r=function(e,t){if(e.isImplementationOfOverload(t)){const n=e.getTypeAtLocation(t).getCallSignatures();if(n.length>1)return e.getUnionType(G(n,(e=>e.getReturnType())))}const n=e.getSignatureFromDeclaration(t);if(n)return e.getReturnTypeOfSignature(n)}(n,t);if(!r)return{error:wS(Ea.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1);return i?{declaration:t,returnTypeNode:i}:void 0}var p7=g({"src/services/refactors/inferFunctionReturnType.ts"(){zge(),x7(),r7="Infer function return type",i7=wS(Ea.Infer_function_return_type),g6(r7,{kinds:[(o7={name:r7,description:i7,kind:"refactor.rewrite.function.returnType"}).kind],getEditsForAction:_7,getAvailableActions:u7})}}),f7={},m7=g({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){p7()}}),g7={};h(g7,{addExportToChanges:()=>j3,addExports:()=>w3,addNewFileToTsconfig:()=>f3,addOrRemoveBracesToArrowFunction:()=>h4,convertArrowFunctionOrFunctionExpression:()=>P4,convertParamsToDestructuredObject:()=>n8,convertStringOrTemplateLiteral:()=>y8,convertToOptionalChainExpression:()=>j8,createNewFileName:()=>M3,createOldFileImportsFromTargetFile:()=>k3,deleteMovedStatements:()=>m3,deleteUnusedImports:()=>D3,deleteUnusedOldImports:()=>g3,doChangeNamedToNamespaceOrDefault:()=>O6,extractSymbol:()=>Z8,filterImport:()=>I3,forEachImportInStatement:()=>S3,generateGetAccessorAndSetAccessor:()=>c7,getApplicableRefactors:()=>h6,getEditsForRefactor:()=>y6,getStatementsToMove:()=>R3,getTopLevelDeclarationStatement:()=>L3,getUsageInfo:()=>J3,inferFunctionReturnType:()=>f7,isRefactorErrorInfo:()=>H6,isTopLevelDeclaration:()=>W3,makeImportOrRequire:()=>T3,moduleSpecifierFromImport:()=>x3,nameOfTopLevelDeclaration:()=>O3,refactorKindBeginsWith:()=>$6,registerRefactor:()=>g6,updateImportsInOtherFiles:()=>h3});var h7,y7,v7,b7,x7=g({"src/services/_namespaces/ts.refactor.ts"(){S6(),F6(),J6(),W6(),Q6(),o3(),_3(),Y3(),y4(),E4(),r8(),v8(),M8(),a7(),l7(),m7()}});function S7(e,t,n,r){const i=k7(e,t,n,r);Sn.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let e=0;e<o.length;e+=3)a.push({textSpan:oc(o[e],o[e+1]),classificationType:o[e+2]});return a}function k7(e,t,n,r){return{spans:T7(e,n,r,t),endOfLineState:0}}function T7(e,t,n,r){const i=[];return e&&t&&function(e,t,n,r,i){const o=e.getTypeChecker();let a=!1;function s(c){switch(c.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:i.throwIfCancellationRequested()}if(!c||!tc(n,c.pos,c.getFullWidth())||0===c.getFullWidth())return;const l=a;if((wP(c)||NP(c))&&(a=!0),jP(c)&&(a=!1),HN(c)&&!a&&!function(e){const t=e.parent;return t&&(cP(t)||hP(t)||fP(t))}(c)&&!zT(c.escapedText)){let n=o.getSymbolAtLocation(c);if(n){2097152&n.flags&&(n=o.getAliasedSymbol(n));let i=function(e,t){const n=e.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&t)return 2}else if(262144&n)return 4;let r=e.valueDeclaration||e.declarations&&e.declarations[0];r&&GD(r)&&(r=C7(r));return r&&b7.get(r.kind)}(n,UG(c));if(void 0!==i){let a=0;if(c.parent){(GD(c.parent)||b7.get(c.parent.kind)===i)&&c.parent.name===c&&(a=1)}6===i&&w7(c)&&(i=9),i=function(e,t,n){if(7===n||9===n||6===n){const r=e.getTypeAtLocation(t);if(r){const e=e=>e(r)||r.isUnion()&&r.types.some(e);if(6!==n&&e((e=>e.getConstructSignatures().length>0)))return 0;if(e((e=>e.getCallSignatures().length>0))&&!e((e=>e.getProperties().length>0))||function(e){for(;w7(e);)e=e.parent;return eF(e.parent)&&e.parent.expression===e}(t))return 9===n?11:10}}return n}(o,c,i);const s=n.valueDeclaration;if(s){const r=hc(s),o=vc(s);256&r&&(a|=2),1024&r&&(a|=4),0!==i&&2!==i&&(8&r||2&o||8&n.getFlags())&&(a|=8),7!==i&&10!==i||!function(e,t){GD(e)&&(e=C7(e));if(GF(e))return(!$P(e.parent.parent.parent)||zP(e.parent))&&e.getSourceFile()===t;if(QF(e))return!$P(e.parent)&&e.getSourceFile()===t;return!1}(s,t)||(a|=32),e.isSourceFileDefaultLibrary(s.getSourceFile())&&(a|=16)}else n.declarations&&n.declarations.some((t=>e.isSourceFileDefaultLibrary(t.getSourceFile())))&&(a|=16);r(c,i,a)}}}KI(c,s),a=l}s(t)}(e,t,n,((e,n,r)=>{i.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),r),i}function C7(e){for(;;){if(!GD(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function w7(e){return sD(e.parent)&&e.parent.right===e||YD(e.parent)&&e.parent.name===e}var N7,D7,F7,P7,E7,A7,I7,O7,L7,j7,M7,R7,B7,J7,z7,q7,U7,V7=g({"src/services/classifier2020.ts"(){zge(),h7=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(h7||{}),y7=(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))(y7||{}),v7=(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))(v7||{}),b7=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function W7(e,t,n,r){const i=Vl(e)?new D7(e,t,n):80===e?new A7(80,t,n):81===e?new I7(81,t,n):new E7(e,t,n);return i.parent=r,i.flags=101441536&r.flags,i}function H7(e,t){if(!Vl(e.kind))return r;const n=[];if(Ju(e))return e.forEachChild((e=>{n.push(e)})),n;AG.setText((t||e.getSourceFile()).text);let i=e.pos;const o=t=>{$7(n,i,t.pos,e),n.push(t),i=t.end};return b(e.jsDoc,o),i=e.pos,e.forEachChild(o,(t=>{$7(n,i,t.pos,e),n.push(function(e,t){const n=W7(358,e.pos,e.end,t);n._children=[];let r=e.pos;for(const i of e)$7(n._children,r,i.pos,t),n._children.push(i),r=i.end;return $7(n._children,r,e.end,t),n}(t,e)),i=t.end})),$7(n,i,e.end,e),AG.setText(void 0),n}function $7(e,t,n,r){for(AG.resetTokenState(t);t<n;){const i=AG.scan(),o=AG.getTokenEnd();if(o<=n){if(80===i){if(tC(r))continue;Sn.fail(`Did not expect ${Sn.formatSyntaxKind(r.kind)} to have an Identifier in its trivia`)}e.push(W7(i,t,o,r))}if(t=o,1===i)break}}function K7(e){return hl(e).some((e=>"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function G7(e,t){if(!e)return r;let n=sde.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(K7))){const r=new Set;for(const i of e){const e=Q7(t,i,(e=>{var n;if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualJsDocTags(i,t):1===(null==(n=e.declarations)?void 0:n.length)?e.getJsDocTags():void 0}));e&&(n=[...e,...n])}}return n}function X7(e,t){if(!e)return r;let n=sde.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(K7))){const r=new Set;for(const i of e){const e=Q7(t,i,(e=>{if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)}));e&&(n=0===n.length?e.slice():e.concat(JY(),n))}}return n}function Q7(e,t,n){var r;const i=176===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=gb(t);return S(py(i),(r=>{const i=e.getTypeAtLocation(r),a=o&&i.symbol?e.getTypeOfSymbol(i.symbol):i,s=e.getPropertyOfType(a,t.symbol.name);return s?n(s):void 0}))}function Y7(e){let t=!0;for(const n in e)if(ze(e,n)&&!Z7(n)){t=!1;break}if(t)return e;const n={};for(const t in e)if(ze(e,t)){n[Z7(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]}return n}function Z7(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function e5(e){return e?J(e,(e=>e.text)).join(""):""}function t5(){return{target:1,jsx:1}}function n5(){return Sce.getSupportedErrorCodes()}function r5(e,t,n){e.version=n,e.scriptSnapshot=t}function i5(e,t,n,r,i,o){const a=YI(e,UQ(t),n,i,o);return r5(a,t,r),a}function o5(e,t,n,r,i){if(r&&n!==e.version){let o;const a=0!==r.span.start?e.text.substr(0,r.span.start):"",s=$s(r.span)!==e.text.length?e.text.substr($s(r.span)):"";if(0===r.newLength)o=a&&s?a+s:a||s;else{const e=t.getText(r.span.start,r.span.start+r.newLength);o=a&&s?a+e+s:a?a+e:e+s}const c=nO(e,o,r,i);return r5(c,t,n),c.nameTable=void 0,e!==c&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),c}const o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return i5(e.fileName,t,o,n,!0,e.scriptKind)}function a5(e,t=W0(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),n){var i;let o;o=void 0===n?0:"boolean"==typeof n?n?2:0:n;const a=new R7(e);let s,c,l=0;const _=e.getCancellationToken?new J7(e.getCancellationToken()):B7,u=e.getCurrentDirectory();function d(t){e.log&&e.log(t)}CS(null==(i=e.getLocalizedDiagnosticMessages)?void 0:i.bind(e));const p=bv(e),f=tn(p),m=L1({useCaseSensitiveFileNames:()=>p,getCurrentDirectory:()=>u,getProgram:y,fileExists:it(e,e.fileExists),readFile:it(e,e.readFile),getDocumentPositionMapper:it(e,e.getDocumentPositionMapper),getSourceFileLike:it(e,e.getSourceFileLike),log:d});function g(e){const t=s.getSourceFile(e);if(!t){const t=new Error(`Could not find source file: '${e}'.`);throw t.ProgramFiles=s.getSourceFiles().map((e=>e.fileName)),t}return t}function h(){var n,r,i;if(Sn.assert(2!==o),e.getProjectVersion){const t=e.getProjectVersion();if(t){if(c===t&&!(null==(n=e.hasChangedAutomaticTypeDirectiveNames)?void 0:n.call(e)))return;c=t}}const a=e.getTypeRootsVersion?e.getTypeRootsVersion():0;l!==a&&(d("TypeRoots version has changed; provide new program"),s=void 0,l=a);const g=e.getScriptFileNames().slice(),h=e.getCompilationSettings()||{target:1,jsx:1},y=e.hasInvalidatedResolutions||ht,v=it(e,e.hasInvalidatedLibResolutions)||ht,b=it(e,e.hasChangedAutomaticTypeDirectiveNames),x=null==(r=e.getProjectReferences)?void 0:r.call(e);let S,k={getSourceFile:E,getSourceFileByPath:A,getCancellationToken:()=>_,getCanonicalFileName:f,useCaseSensitiveFileNames:()=>p,getNewLine:()=>mx(h),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:gt,getCurrentDirectory:()=>u,fileExists:t=>e.fileExists(t),readFile:t=>e.readFile&&e.readFile(t),getSymlinkCache:it(e,e.getSymlinkCache),realpath:it(e,e.realpath),directoryExists:t=>fx(t,e),getDirectories:t=>e.getDirectories?e.getDirectories(t):[],readDirectory:(t,n,r,i,o)=>(Sn.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(t,n,r,i,o)),onReleaseOldSourceFile:P,onReleaseParsedCommandLine:function(t,n,r){var i;e.getParsedCommandLine?null==(i=e.onReleaseParsedCommandLine)||i.call(e,t,n,r):n&&P(n.sourceFile,r)},hasInvalidatedResolutions:y,hasInvalidatedLibResolutions:v,hasChangedAutomaticTypeDirectiveNames:b,trace:it(e,e.trace),resolveModuleNames:it(e,e.resolveModuleNames),getModuleResolutionCache:it(e,e.getModuleResolutionCache),createHash:it(e,e.createHash),resolveTypeReferenceDirectives:it(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:it(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:it(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:it(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:it(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:F,jsDocParsingMode:e.jsDocParsingMode};const T=k.getSourceFile,{getSourceFileWithCache:C}=fV(k,(e=>pa(e,u,f)),((...e)=>T.call(k,...e)));k.getSourceFile=C,null==(i=e.setCompilerHost)||i.call(e,k);const w={useCaseSensitiveFileNames:p,fileExists:e=>k.fileExists(e),readFile:e=>k.readFile(e),directoryExists:e=>k.directoryExists(e),getDirectories:e=>k.getDirectories(e),realpath:k.realpath,readDirectory:(...e)=>k.readDirectory(...e),trace:k.trace,getCurrentDirectory:k.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:gt},N=t.getKeyForCompilationSettings(h);let D=new Set;if(qV(s,g,h,((t,n)=>e.getScriptVersion(n)),(e=>k.fileExists(e)),y,v,b,F,x))return k=void 0,S=void 0,void(D=void 0);return s=HV({rootNames:g,options:h,host:k,oldProgram:s,projectReferences:x}),k=void 0,S=void 0,D=void 0,m.clearCache(),void s.getTypeChecker();function F(t){const n=pa(t,u,f),r=null==S?void 0:S.get(n);if(void 0!==r)return r||void 0;const i=e.getParsedCommandLine?e.getParsedCommandLine(t):function(e){const t=E(e,100);return t?(t.path=pa(e,u,f),t.resolvedPath=t.path,t.originalFileName=t.fileName,HL(t,w,_a(Zo(e),u),void 0,_a(e,u))):void 0}(t);return(S||(S=new Map)).set(n,i||!1),i}function P(e,n){const r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind,e.impliedNodeFormat)}function E(e,t,n,r){return A(e,pa(e,u,f),t,n,r)}function A(n,r,i,o,a){Sn.assert(k,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const c=e.getScriptSnapshot(n);if(!c)return;const l=$Y(n,e),_=e.getScriptVersion(n);if(!a){const o=s&&s.getSourceFileByPath(r);if(o){if(l===o.scriptKind||D.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,N,c,_,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(s.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),D.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,N,c,_,l,i)}}function y(){if(2!==o)return h(),s;Sn.assert(void 0===s)}function v(){if(s){const e=t.getKeyForCompilationSettings(s.getCompilerOptions());b(s.getSourceFiles(),(n=>t.releaseDocumentWithKey(n.resolvedPath,e,n.scriptKind,n.impliedNodeFormat))),s=void 0}}function x(e,t,n,r){h();const i=n&&n.use===mue.FindReferencesUse.Rename?s.getSourceFiles().filter((e=>!s.isSourceFileDefaultLibrary(e))):s.getSourceFiles();return mue.findReferenceOrRenameEntries(s,_,i,e,t,n,r)}const S=new Map(Object.entries({19:20,21:22,23:24,32:30}));function k(t){return Sn.assertEqual(t.type,"install package"),e.installPackage?e.installPackage({fileName:(n=t.file,pa(n,u,f)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function T(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function C(e,t,n){const r=a.getCurrentSourceFile(e),i=[],{lineStarts:o,firstLine:s,lastLine:c}=T(r,t);let l=n||!1,_=Number.MAX_VALUE;const u=new Map,d=new RegExp(/\S/),p=cQ(r,o[s]),f=p?"{/*":"//";for(let e=s;e<=c;e++){const t=r.text.substring(o[e],r.getLineEndOfPosition(o[e])),i=d.exec(t);i&&(_=Math.min(_,i.index),u.set(e.toString(),i.index),t.substr(i.index,f.length)!==f&&(l=void 0===n||n))}for(let n=s;n<=c;n++){if(s!==c&&o[n]===t.end)continue;const a=u.get(n.toString());void 0!==a&&(p?i.push(...w(e,{pos:o[n]+_,end:r.getLineEndOfPosition(o[n])},l,p)):l?i.push({newText:f,span:{length:0,start:o[n]+_}}):r.text.substr(o[n]+a,f.length)===f&&i.push({newText:"",span:{length:f.length,start:o[n]+a}}))}return i}function w(e,t,n,r){var i;const o=a.getCurrentSourceFile(e),s=[],{text:c}=o;let l=!1,_=n||!1;const u=[];let{pos:d}=t;const p=void 0!==r?r:cQ(o,d),f=p?"{/*":"/*",m=p?"*/}":"*/",g=p?"\\{\\/\\*":"\\/\\*",h=p?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=fQ(o,d+(c.substr(d,f.length)===f?f.length:0));if(e)p&&(e.pos--,e.end++),u.push(e.pos),3===e.kind&&u.push(e.end),l=!0,d=e.end+1;else{const e=c.substring(d,t.end).search(`(${g})|(${h})`);_=void 0!==n?n:_||!yY(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(_||!l){2!==(null==(i=fQ(o,t.pos))?void 0:i.kind)&&_e(u,t.pos,It),_e(u,t.end,It);const e=u[0];c.substr(e,f.length)!==f&&s.push({newText:f,span:{length:0,start:e}});for(let e=1;e<u.length-1;e++)c.substr(u[e]-m.length,m.length)!==m&&s.push({newText:m,span:{length:0,start:u[e]}}),c.substr(u[e],f.length)!==f&&s.push({newText:f,span:{length:0,start:u[e]}});s.length%2!=0&&s.push({newText:m,span:{length:0,start:u[u.length-1]}})}else for(const e of u){const t=e-m.length>0?e-m.length:0,n=c.substr(t,m.length)===m?m.length:0;s.push({newText:"",span:{length:f.length,start:e-n}})}return s}function N({openingElement:e,closingElement:t,parent:n}){return!uO(e.tagName,t.tagName)||wP(n)&&uO(e.tagName,n.openingElement.tagName)&&N(n)}function D({closingFragment:e,parent:t}){return!!(262144&e.flags)||PP(t)&&D(t)}function F(t,n,r,i,o,a){const[s,c]="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:t,startPosition:s,endPosition:c,program:y(),host:e,formatContext:Mge.getFormatContext(i,e),cancellationToken:_,preferences:r,triggerReason:o,kind:a}}S.forEach(((e,t)=>S.set(e.toString(),Number(t))));const P={dispose:function(){v(),e=void 0},cleanupSemanticCache:v,getSyntacticDiagnostics:function(e){return h(),s.getSyntacticDiagnostics(g(e),_).slice()},getSemanticDiagnostics:function(e){h();const t=g(e),n=s.getSemanticDiagnostics(t,_);if(!_k(s.getCompilerOptions()))return n.slice();const r=s.getDeclarationDiagnostics(t,_);return[...n,...r]},getSuggestionDiagnostics:function(e){return h(),J1(g(e),s,_)},getCompilerOptionsDiagnostics:function(){return h(),[...s.getOptionsDiagnostics(_),...s.getGlobalDiagnostics(_)]},getSyntacticClassifications:function(e,t){return B0(_,a.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return h(),"2020"===(n||"original")?S7(s,_,g(e),t):I0(s.getTypeChecker(),_,g(e),s.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return J0(_,a.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return h(),"original"===(n||"original")?L0(s.getTypeChecker(),_,g(e),s.getClassifiableNames(),t):k7(s,_,g(e),t)},getCompletionsAtPosition:function(t,n,r=_G,i){const o={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return h(),C_e.getCompletionsAtPosition(e,s,d,g(t),n,o,r.triggerCharacter,r.triggerKind,_,i&&Mge.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,a=_G,c){return h(),C_e.getCompletionEntryDetails(s,d,g(t),n,{name:r,source:o,data:c},e,i&&Mge.getFormatContext(i,e),a,_)},getCompletionEntrySymbol:function(t,n,r,i,o=_G){return h(),C_e.getCompletionEntrySymbol(s,d,g(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=_G){h();const r=g(e);return Fpe.getSignatureHelpItems(s,r,t,n,_)},getQuickInfoAtPosition:function(e,t){h();const n=g(e),r=HX(n,t);if(r===n)return;const i=s.getTypeChecker(),o=function(e){if(tF(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;if(ED(e.parent)&&e.pos===e.parent.pos)return e.parent;if(cm(e.parent)&&e.parent.name===e)return e.parent;if(MP(e.parent))return e.parent;return e}(r),a=function(e,t){const n=c5(e);if(n){const e=t.getContextualType(n.parent),r=e&&l5(n,t,e,!1);if(r&&1===r.length)return Pe(r)}return t.getSymbolAtLocation(e)}(o,i);if(!a||i.isUnknownSymbol(a)){const e=function(e,t,n){switch(t.kind){case 80:return!sX(t)&&!cX(t)&&!Ll(t.parent);case 211:case 166:return!fQ(e,n);case 110:case 197:case 108:case 202:return!0;case 236:return cm(t);default:return!1}}(n,o,t)?i.getTypeAtLocation(o):void 0;return e&&{kind:"",kindModifiers:"",textSpan:EQ(o,n),displayParts:i.runWithCancellationToken(_,(t=>qY(t,e,gX(o)))),documentation:e.symbol?e.symbol.getDocumentationComment(i):void 0,tags:e.symbol?e.symbol.getJsDocTags(i):void 0}}const{symbolKind:c,displayParts:l,documentation:u,tags:d}=i.runWithCancellationToken(_,(e=>Zpe.getSymbolDisplayPartsDocumentationAndSymbolKind(e,a,n,gX(o),o)));return{kind:c,kindModifiers:Zpe.getSymbolModifiers(i,a),textSpan:EQ(o,n),displayParts:l,documentation:u,tags:d}},getDefinitionAtPosition:function(e,t,n,r){return h(),Oue.getDefinitionAtPosition(s,g(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return h(),Oue.getDefinitionAndBoundSpan(s,g(e),t)},getImplementationAtPosition:function(e,t){return h(),mue.getImplementationsAtPosition(s,_,s.getSourceFiles(),g(e),t)},getTypeDefinitionAtPosition:function(e,t){return h(),Oue.getTypeDefinitionAtPosition(s.getTypeChecker(),g(e),t)},getReferencesAtPosition:function(e,t){return h(),x(HX(g(e),t),t,{use:mue.FindReferencesUse.References},mue.toReferenceEntry)},findReferences:function(e,t){return h(),mue.findReferencedSymbols(s,_,s.getSourceFiles(),g(e),t)},getFileReferences:function(e){return h(),mue.Core.getReferencesForFileName(e,s,s.getSourceFiles()).map(mue.toReferenceEntry)},getDocumentHighlights:function(e,t,n){const r=ua(e);Sn.assert(n.some((e=>ua(e)===r))),h();const i=G(n,(e=>s.getSourceFile(e))),o=g(e);return z0.getDocumentHighlights(s,_,o,t,i)},getNameOrDottedNameSpan:function(e,t,n){const r=a.getCurrentSourceFile(e),i=HX(r,t);if(i===r)return;switch(i.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let o=i;for(;;)if(_X(o)||lX(o))o=o.parent;else{if(!dX(o))break;if(267!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return ac(o.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=a.getCurrentSourceFile(e);return g5.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1,i=!1){return h(),i2(n?[g(n)]:s.getSourceFiles(),s.getTypeChecker(),_,e,t,r,i)},getRenameInfo:function(e,t,n){return h(),rpe.getRenameInfo(s,g(e),t,n||{})},getSmartSelectionRange:function(e,t){return qpe.getSmartSelectionRange(t,a.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){h();const o=g(e),a=WX(HX(o,t));if(rpe.nodeIsEligibleForRename(a)){if(HN(a)&&(DP(a.parent)||FP(a.parent))&&mv(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map((e=>{const t=EQ(e.tagName,o);return{fileName:o.fileName,textSpan:t,...mue.toContextSpan(t,o,e.parent)}}))}{const e=rY(o,i??_G),s="boolean"==typeof i?i:null==i?void 0:i.providePrefixAndSuffixTextForRename;return x(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:mue.FindReferencesUse.Rename},((t,n,r)=>mue.toRenameLocation(t,n,r,s||!1,e)))}}},getNavigationBarItems:function(e){return N2(a.getCurrentSourceFile(e),_)},getNavigationTree:function(e){return D2(a.getCurrentSourceFile(e),_)},getOutliningSpans:function(e){const t=a.getCurrentSourceFile(e);return Kde.collectElements(t,_)},getTodoComments:function(e,t){h();const n=g(e);_.throwIfCancellationRequested();const r=n.text,i=[];if(t.length>0&&!n.fileName.includes("/node_modules/")){const e=function(){const e="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+J(t,(e=>"("+(e.text.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+")"))).join("|")+")";return new RegExp(e+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}();let a;for(;a=e.exec(r);){_.throwIfCancellationRequested();const e=3;Sn.assert(a.length===t.length+e);const s=a[1],c=a.index+s.length;if(!fQ(n,c))continue;let l;for(let n=0;n<t.length;n++)a[n+e]&&(l=t[n]);if(void 0===l)return Sn.fail();if((o=r.charCodeAt(c+l.text.length))>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57)continue;const u=a[2];i.push({descriptor:l,message:u,position:c})}}var o;return i},getBraceMatchingAtPosition:function(e,t){const n=a.getCurrentSourceFile(e),i=$X(n,t),o=i.getStart(n)===t?S.get(i.kind.toString()):void 0,s=o&&OX(i.parent,o,n);return s?[EQ(i,n),EQ(s,n)].sort(((e,t)=>e.start-t.start)):r},getIndentationAtPosition:function(e,t,n){let r=Yn();const i=Y7(n),o=a.getCurrentSourceFile(e);d("getIndentationAtPosition: getCurrentSourceFile: "+(Yn()-r)),r=Yn();const s=Mge.SmartIndenter.getIndentation(t,o,i);return d("getIndentationAtPosition: computeIndentation : "+(Yn()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const o=a.getCurrentSourceFile(t);return Mge.formatSelection(n,r,o,Mge.getFormatContext(Y7(i),e))},getFormattingEditsForDocument:function(t,n){return Mge.formatDocument(a.getCurrentSourceFile(t),Mge.getFormatContext(Y7(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const o=a.getCurrentSourceFile(t),s=Mge.getFormatContext(Y7(i),e);if(!fQ(o,n))switch(r){case"{":return Mge.formatOnOpeningCurly(n,o,s);case"}":return Mge.formatOnClosingCurly(n,o,s);case";":return Mge.formatOnSemicolon(n,o,s);case"\n":return Mge.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const o=i?Mge.getFormatContext(i,e).options:void 0;return sde.getDocCommentTemplateAtPosition(BY(e,o),a.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=a.getCurrentSourceFile(e);if(rQ(r,t))return!1;if(iQ(r,t))return 123===n;if(aQ(r,t))return!1;switch(n){case 39:case 34:case 96:return!fQ(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=a.getCurrentSourceFile(e),r=ZX(t,n);if(!r)return;const i=32===r.kind&&DP(r.parent)?r.parent.parent:PN(r)&&wP(r.parent)?r.parent:void 0;if(i&&N(i))return{newText:`</${i.openingElement.tagName.getText(n)}>`};const o=32===r.kind&&EP(r.parent)?r.parent.parent:PN(r)&&PP(r.parent)?r.parent:void 0;return o&&D(o)?{newText:"</>"}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=a.getCurrentSourceFile(e),r=ZX(t,n);if(!r||312===r.parent.kind)return;const i="[a-zA-Z0-9:\\-\\._$]*";if(PP(r.parent.parent)){const e=r.parent.parent.openingFragment,o=r.parent.parent.closingFragment;if(Tp(e)||Tp(o))return;const a=e.getStart(n)+1,s=o.getStart(n)+2;if(t!==a&&t!==s)return;return{ranges:[{start:a,length:0},{start:s,length:0}],wordPattern:i}}{const e=kc(r.parent,(e=>!(!DP(e)&&!FP(e))));if(!e)return;Sn.assert(DP(e)||FP(e),"tag should be opening or closing element");const o=e.parent.openingElement,a=e.parent.closingElement,s=o.tagName.getStart(n),c=o.tagName.end,l=a.tagName.getStart(n),_=a.tagName.end;if(!(s<=t&&t<=c||l<=t&&t<=_))return;if(o.tagName.getText(n)!==a.tagName.getText(n))return;return{ranges:[{start:s,length:c-s},{start:l,length:_-l}],wordPattern:i}}},getSpanOfEnclosingComment:function(e,t,n){const r=a.getCurrentSourceFile(e),i=Mge.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:OQ(i)},getCodeFixesAtPosition:function(t,n,r,i,o,a=_G){h();const c=g(t),l=ac(n,r),u=Mge.getFormatContext(o,e);return V(ce(i,Ft,It),(t=>(_.throwIfCancellationRequested(),Sce.getFixes({errorCode:t,sourceFile:c,span:l,program:s,host:e,cancellationToken:_,formatContext:u,preferences:a}))))},getCombinedCodeFix:function(t,n,r,i=_G){h(),Sn.assert("file"===t.type);const o=g(t.fileName),a=Mge.getFormatContext(r,e);return Sce.getAllFixes({fixId:n,sourceFile:o,program:s,host:e,cancellationToken:_,formatContext:a,preferences:i})},applyCodeActionCommand:function(e,t){const n="string"==typeof e?t:e;return _t(n)?Promise.all(n.map((e=>k(e)))):k(n)},organizeImports:function(t,n,r=_G){h(),Sn.assert("file"===t.type);const i=g(t.fileName),o=Mge.getFormatContext(n,e),a=t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":"All");return Mde.organizeImports(i,o,e,s,r,a)},getEditsForFileRename:function(t,n,r,i=_G){return X0(y(),t,n,e,Mge.getFormatContext(r,e),i,m)},getEmitOutput:function(t,n,r){h();const i=g(t),o=e.getCustomTransformers&&e.getCustomTransformers();return iW(s,i,!!n,_,o,r)},getNonBoundSourceFile:function(e){return a.getCurrentSourceFile(e)},getProgram:y,getCurrentProgram:()=>s,getAutoImportProvider:function(){var t;return null==(t=e.getPackageJsonAutoImportProvider)?void 0:t.call(e)},updateIsDefinitionOfReferencedSymbols:function(t,n){const r=s.getTypeChecker(),i=function(){for(const i of t)for(const t of i.references){if(n.has(t)){const e=o(t);return Sn.assertIsDefined(e),r.getSymbolAtLocation(e)}const i=bY(t,m,it(e,e.fileExists));if(i&&n.has(i)){const e=o(i);if(e)return r.getSymbolAtLocation(e)}}return}();if(!i)return!1;for(const r of t)for(const t of r.references){const r=o(t);if(Sn.assertIsDefined(r),n.has(t)||mue.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=bY(t,m,it(e,e.fileExists));r&&n.add(r)}else t.isDefinition=!1}return!0;function o(e){const t=s.getSourceFile(e.fileName);if(!t)return;const n=HX(t,e.textSpan.start);return mue.Core.getAdjustedNode(n,{use:mue.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=_G,r,i,o){h();const a=g(e);return g7.getApplicableRefactors(F(a,t,n,_G,r,i),o)},getEditsForRefactor:function(e,t,n,r,i,o=_G,a){h();const s=g(e);return g7.getEditsForRefactor(F(s,n,o,t),r,i,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=_G){h();const i=g(t),o=Sn.checkDefined(s.getSourceFiles()),a=sT(t),c=G(o,(e=>(null==s?void 0:s.isSourceFileFromExternalLibrary(i))||i===g(e.fileName)||".ts"===a&&".d.ts"===sT(e.fileName)||".d.ts"===a&&an(ea(e.fileName),"lib.")&&".d.ts"===sT(e.fileName)||a!==sT(e.fileName)?void 0:e.fileName));return{newFileName:M3(i,s,F(i,n,r,_G),e),files:c}},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:m.toLineColumnOffset(e,t)},getSourceMapper:()=>m,clearSourceMapperCache:()=>m.clearCache(),prepareCallHierarchy:function(e,t){h();const n=j5.resolveCallHierarchyDeclaration(s,HX(g(e),t));return n&&GZ(n,(e=>j5.createCallHierarchyItem(s,e)))},provideCallHierarchyIncomingCalls:function(e,t){h();const n=g(e),r=XZ(j5.resolveCallHierarchyDeclaration(s,0===t?n:HX(n,t)));return r?j5.getIncomingCalls(s,r,_):[]},provideCallHierarchyOutgoingCalls:function(e,t){h();const n=g(e),r=XZ(j5.resolveCallHierarchyDeclaration(s,0===t?n:HX(n,t)));return r?j5.getOutgoingCalls(s,r):[]},toggleLineComment:C,toggleMultilineComment:w,commentSelection:function(e,t){const n=a.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=T(n,t);return r===i&&t.pos!==t.end?w(e,t,!0):C(e,t,!0)},uncommentSelection:function(e,t){const n=a.getCurrentSourceFile(e),r=[],{pos:i}=t;let{end:o}=t;i===o&&(o+=cQ(n,i)?2:1);for(let t=i;t<=o;t++){const i=fQ(n,t);if(i){switch(i.kind){case 2:r.push(...C(e,{end:i.end,pos:i.pos+1},!1));break;case 3:r.push(...w(e,{end:i.end,pos:i.pos+1},!1))}t=i.end+1}}return r},provideInlayHints:function(t,n,r=_G){h();const i=g(t);return zue.provideInlayHints(function(t,n,r){return{file:t,program:y(),host:e,span:n,preferences:r,cancellationToken:_}}(i,n,r))},getSupportedCodeFixes:n5};switch(o){case 0:break;case 1:q7.forEach((e=>P[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:U7.forEach((e=>P[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:Sn.assertNever(o)}return P}function s5(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild((function e(n){if(HN(n)&&!cX(n)&&n.escapedText||Fy(n)&&function(e){return ey(e)||283===e.parent.kind||function(e){return e&&e.parent&&212===e.parent.kind&&e.parent.argumentExpression===e}(e)||ny(e)}(n)){const e=jy(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if($N(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(KI(n,e),Vu(n))for(const t of n.jsDoc)KI(t,e)}))}(e),e.nameTable}function c5(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(167===e.parent.kind)return Ku(e.parent.parent)?e.parent.parent:void 0;case 80:return!Ku(e.parent)||210!==e.parent.parent.kind&&292!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return t&&(QD(t.parent)||OP(t.parent))?t:void 0}function l5(e,t,n,i){const o=HQ(e.name);if(!o)return r;if(!n.isUnion()){const e=n.getProperty(o);return e?[e]:r}const a=G(n.types,(n=>(QD(e.parent)||OP(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(n,e.parent)?void 0:n.getProperty(o)));if(i&&(0===a.length||a.length===n.types.length)){const e=n.getProperty(o);if(e)return[e]}return 0===a.length?G(n.types,(e=>e.getProperty(o))):a}function _5(e){if(uo)return sa(Zo(ua(uo.getExecutingFilePath())),Hs(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var u5=g({"src/services/services.ts"(){zge(),w2(),m6(),x7(),q0(),V7(),N7="0.8",D7=class{constructor(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){Sn.assert(!iT(this.pos)&&!iT(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Cp(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||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=H7(this,e))}getFirstToken(e){this.assertHasRealPosition();const t=this.getChildren(e);if(!t.length)return;const n=D(t,(e=>e.kind<316||e.kind>357));return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=Ae(this.getChildren(e));if(t)return t.kind<166?t:t.getLastToken(e)}forEachChild(e,t){return KI(this,e,t)}},F7=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Cp(this)}getStart(e,t){return $p(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return 1===this.kind&&this.jsDoc||r}getFirstToken(){}getLastToken(){}forEachChild(){}},P7=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return Pc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=r,!this.declarations&&ap(this)&&this.links.target&&ap(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=X7([t],e)}else this.documentationComment=X7(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Uu(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=X7(M(this.declarations,Uu),t)),v(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(qu(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=X7(M(this.declarations,qu),t)),v(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return void 0===this.tags&&(this.tags=G7(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Uu(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=G7(M(this.declarations,Uu),t)),v(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(qu(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=G7(M(this.declarations,qu),t)),v(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},E7=class extends F7{constructor(e,t,n){super(t,n),this.kind=e}},(A7=class extends F7{constructor(e,t,n){super(t,n),this.kind=80}get text(){return Dc(this)}}).prototype.kind=80,(I7=class extends F7{constructor(e,t,n){super(t,n),this.kind=81}get text(){return Dc(this)}}).prototype.kind=81,O7=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(1048576&this.flags)}isIntersection(){return!!(2097152&this.flags)}isUnionOrIntersection(){return!!(3145728&this.flags)}isLiteral(){return!!(2432&this.flags)}isStringLiteral(){return!!(128&this.flags)}isNumberLiteral(){return!!(256&this.flags)}isTypeParameter(){return!!(262144&this.flags)}isClassOrInterface(){return!!(3&Zx(this))}isClass(){return!!(1&Zx(this))}isIndexType(){return!!(4194304&this.flags)}get typeArguments(){if(4&Zx(this))return this.checker.getTypeArguments(this)}},L7=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&KT(t.type)){const e=t.type.getConstraint();if(e)return this.checker.getIndexType(e)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=X7(fn(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=G7(fn(this.declaration),this.checker))}},j7=class extends D7{constructor(e,t,n){super(e,t,n),this.kind=312}update(e,t){return nO(this,e,t)}getLineAndCharacterOfPosition(e){return _s(this,e)}getLineStarts(){return as(this)}getPositionOfLineAndCharacter(e,t,n){return os(as(this),e,t,this.text,n)}getLineEndOfPosition(e){const{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts();let r;t+1>=n.length&&(r=this.getEnd()),r||(r=n[t+1]-1);const i=this.getFullText();return"\n"===i[r]&&"\r"===i[r-1]?r-1:r}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const e=ot();return this.forEachChild((function r(i){switch(i.kind){case 262:case 218:case 174:case 173:const o=i,a=n(o);if(a){const t=function(t){let n=e.get(t);n||e.set(t,n=[]);return n}(a),n=Ae(t);n&&o.parent===n.parent&&o.symbol===n.symbol?o.body&&!n.body&&(t[t.length-1]=o):t.push(o)}KI(i,r);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(i),KI(i,r);break;case 169:if(!fb(i,31))break;case 260:case 208:{const e=i;if(R_(e.name)){KI(e.name,r);break}e.initializer&&r(e.initializer)}case 306:case 172:case 171:t(i);break;case 278:const s=i;s.exportClause&&(bP(s.exportClause)?b(s.exportClause.elements,r):r(s.exportClause.name));break;case 272:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(274===c.namedBindings.kind?t(c.namedBindings):b(c.namedBindings.elements,r)));break;case 226:0!==Gg(i)&&t(i);default:KI(i,r)}})),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=jc(e);return t&&(cD(t)&&YD(t.expression)?t.expression.name.text:g_(t)?HQ(t):void 0)}}},M7=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}getLineAndCharacterOfPosition(e){return _s(this,e)}},R7=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,r,i,o,a,s,c;const l=this.host.getScriptSnapshot(e);if(!l)throw new Error("Could not find file: '"+e+"'.");const _=$Y(e,this.host),u=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e){d=i5(e,l,{languageVersion:99,impliedNodeFormat:VV(pa(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||xv(this.host)),null==(c=null==(s=null==(a=null==(o=(i=this.host).getCompilerHost)?void 0:o.call(i))?void 0:a.getModuleResolutionCache)?void 0:s.call(a))?void 0:c.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:WS(this.host.getCompilationSettings()),jsDocParsingMode:0},u,!0,_)}else if(this.currentFileVersion!==u){const e=l.getChangeRange(this.currentFileScriptSnapshot);d=o5(this.currentSourceFile,l,u,e)}return d&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=d),this.currentSourceFile}},B7={isCancellationRequested:ht,throwIfCancellationRequested:gt},J7=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Fr)||e.instant(Fr.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new qr}},z7=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){const e=Yn();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw null==(e=Fr)||e.instant(Fr.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new qr}},q7=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],U7=[...q7,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],SS({getNodeConstructor:()=>D7,getTokenConstructor:()=>E7,getIdentifierConstructor:()=>A7,getPrivateIdentifierConstructor:()=>I7,getSourceFileConstructor:()=>j7,getSymbolConstructor:()=>P7,getTypeConstructor:()=>O7,getSignatureConstructor:()=>L7,getSourceMapSourceConstructor:()=>M7})}});function d5(e,t,n){const r=[];n=n2(n,r);const i=_t(e)?e:[e],o=Qq(void 0,void 0,AC,n,i,t,!0);return o.diagnostics=oe(o.diagnostics,r),o}var p5=g({"src/services/transform.ts"(){zge()}});function f5(e,t){if(e.isDeclarationFile)return;let n=KX(e,t);const r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){const t=ZX(n.pos,e);if(!t||e.getLineAndCharacterOfPosition(t.getEnd()).line!==r)return;n=t}if(!(33554432&n.flags))return l(n);function i(t,n){const r=_I(t)?F(t.modifiers,uD):void 0;return ac(r?ys(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,YX(n,n.parent,e))}function a(t,n){return t&&r===e.getLineAndCharacterOfPosition(t.getStart(e)).line?l(t):l(n)}function s(t){return l(ZX(t.pos,e))}function c(t){return l(YX(t,t.parent,e))}function l(t){if(t){const{parent:n}=t;switch(t.kind){case 243:return r(t.declarationList.declarations[0]);case 260:case 172:case 171:return r(t);case 169:return function e(t){if(R_(t.name))return p(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||fb(e,3)}(t))return i(t);{const n=t.parent,r=n.parameters.indexOf(t);return Sn.assert(-1!==r),0!==r?e(n.parameters[r-1]):l(n.body)}}(t);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return function(e){if(!e.body)return;if(_(e))return i(e);return l(e.body)}(t);case 241:if(Em(t))return function(e){const t=e.statements.length?e.statements[0]:e.getLastToken();if(_(e.parent))return a(e.parent,t);return l(t)}(t);case 268:return u(t);case 299:return u(t.block);case 244:return i(t.expression);case 253:return i(t.getChildAt(0),t.expression);case 247:return o(t,t.expression);case 246:return l(t.statement);case 259:return i(t.getChildAt(0));case 245:return o(t,t.expression);case 256:return l(t.statement);case 252:case 251:return i(t.getChildAt(0),t.label);case 248:return function(e){if(e.initializer)return d(e);if(e.condition)return i(e.condition);if(e.incrementor)return i(e.incrementor)}(t);case 249:return o(t,t.expression);case 250:return d(t);case 255:return o(t,t.expression);case 296:case 297:return l(t.statements[0]);case 258:return u(t.tryBlock);case 257:case 277:return i(t,t.expression);case 271:return i(t,t.moduleReference);case 272:case 278:return i(t,t.moduleSpecifier);case 267:if(1!==CR(t))return;case 263:case 266:case 306:case 208:return i(t);case 254:return l(t.statement);case 170:return function(t,n,r){if(t){const i=t.indexOf(n);if(i>=0){let n=i,o=i+1;for(;n>0&&r(t[n-1]);)n--;for(;o<t.length&&r(t[o]);)o++;return ac(ys(e.text,t[n].pos),t[o-1].end)}}return i(n)}(n.modifiers,t,uD);case 206:case 207:return p(t);case 264:case 265:return;case 27:case 1:return a(ZX(t.pos,e));case 28:return s(t);case 19:return function(t){switch(t.parent.kind){case 266:const n=t.parent;return a(ZX(t.pos,e,t.parent),n.members.length?n.members[0]:n.getLastToken(e));case 263:const r=t.parent;return a(ZX(t.pos,e,t.parent),r.members.length?r.members[0]:r.getLastToken(e));case 269:return a(t.parent.parent,t.parent.clauses[0])}return l(t.parent)}(t);case 20:return function(e){switch(e.parent.kind){case 268:if(1!==CR(e.parent.parent))return;case 266:case 263:return i(e);case 241:if(Em(e.parent))return i(e);case 299:return l(Ae(e.parent.statements));case 269:const t=Ae(e.parent.clauses);return t?l(Ae(t.statements)):void 0;case 206:const n=e.parent;return l(Ae(n.elements)||n);default:if(wQ(e.parent)){const t=e.parent;return i(Ae(t.properties)||t)}return l(e.parent)}}(t);case 24:return function(e){if(207===e.parent.kind){const t=e.parent;return i(Ae(t.elements)||t)}if(wQ(e.parent)){const t=e.parent;return i(Ae(t.elements)||t)}return l(e.parent)}(t);case 21:return function(e){if(246===e.parent.kind||213===e.parent.kind||214===e.parent.kind)return s(e);if(217===e.parent.kind)return c(e);return l(e.parent)}(t);case 22:return function(e){switch(e.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return s(e);default:return l(e.parent)}}(t);case 59:return function(e){if(y_(e.parent)||303===e.parent.kind||169===e.parent.kind)return s(e);return l(e.parent)}(t);case 32:case 30:return function(e){if(216===e.parent.kind)return c(e);return l(e.parent)}(t);case 117:return function(e){if(246===e.parent.kind)return o(e,e.parent.expression);return l(e.parent)}(t);case 93:case 85:case 98:return c(t);case 165:return function(e){if(250===e.parent.kind)return c(e);return l(e.parent)}(t);default:if(wQ(t))return f(t);if((80===t.kind||230===t.kind||303===t.kind||304===t.kind)&&wQ(n))return i(t);if(226===t.kind){const{left:e,operatorToken:n}=t;if(wQ(e))return f(e);if(64===n.kind&&wQ(t.parent))return i(t);if(28===n.kind)return l(e)}if(fg(t))switch(n.kind){case 246:return s(t);case 170:return l(t.parent);case 248:case 250:return i(t);case 226:if(28===t.parent.operatorToken.kind)return i(t);break;case 219:if(t.parent.body===t)return i(t)}switch(t.parent.kind){case 303:if(t.parent.name===t&&!wQ(t.parent.parent))return l(t.parent.initializer);break;case 216:if(t.parent.type===t)return c(t.parent.type);break;case 260:case 169:{const{initializer:e,type:n}=t.parent;if(e===t||n===t||zb(t.kind))return s(t);break}case 226:{const{left:e}=t.parent;if(wQ(e)&&t!==e)return s(t);break}default:if(y_(t.parent)&&t.parent.type===t)return s(t)}return l(t.parent)}}function n(t){return XF(t.parent)&&t.parent.declarations[0]===t?i(ZX(t.pos,e,t.parent),t):i(t)}function r(t){if(249===t.parent.parent.kind)return l(t.parent.parent);const r=t.parent;return R_(t.name)?p(t.name):$u(t)&&t.initializer||fb(t,32)||250===r.parent.kind?n(t):XF(t.parent)&&t.parent.declarations[0]!==t?l(ZX(t.pos,e,t.parent)):void 0}function _(e){return fb(e,32)||263===e.parent.kind&&176!==e.kind}function u(t){switch(t.parent.kind){case 267:if(1!==CR(t.parent))return;case 247:case 245:case 249:return a(t.parent,t.statements[0]);case 248:case 250:return a(ZX(t.pos,e,t.parent),t.statements[0])}return l(t.statements[0])}function d(e){if(261!==e.initializer.kind)return l(e.initializer);{const t=e.initializer;if(t.declarations.length>0)return l(t.declarations[0])}}function p(e){const t=b(e.elements,(e=>232!==e.kind?e:void 0));return t?l(t):208===e.parent.kind?i(e.parent):n(e.parent)}function f(e){Sn.assert(207!==e.kind&&206!==e.kind);const t=b(209===e.kind?e.elements:e.properties,(e=>232!==e.kind?e:void 0));return t?l(t):i(226===e.parent.kind?e.parent:e)}}}var m5=g({"src/services/breakpoints.ts"(){zge()}}),g5={};h(g5,{spanInSourceFileAtLocation:()=>f5});var h5=g({"src/services/_namespaces/ts.BreakpointResolver.ts"(){m5()}});function y5(e){return(oF(e)||aF(e)||yF(e))&&GF(e.parent)&&e===e.parent.initializer&&HN(e.parent.name)&&!!(2&vc(e.parent))}function v5(e){return $P(e)||nP(e)||QF(e)||oF(e)||YF(e)||yF(e)||gD(e)||mD(e)||fD(e)||yD(e)||vD(e)}function b5(e){return $P(e)||nP(e)&&HN(e.name)||QF(e)||YF(e)||gD(e)||mD(e)||fD(e)||yD(e)||vD(e)||function(e){return(oF(e)||yF(e))&&Lc(e)}(e)||y5(e)}function x5(e){return $P(e)?e:Lc(e)?e.name:y5(e)?e.parent.name:Sn.checkDefined(e.modifiers&&D(e.modifiers,S5))}function S5(e){return 90===e.kind}function k5(e,t){const n=x5(t);return n&&e.getSymbolAtLocation(n)}function T5(e,t){if(t.body)return t;if(hD(t))return qv(t.parent);if(QF(t)||mD(t)){const n=k5(e,t);return n&&n.valueDeclaration&&b_(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function C5(e,t){const n=k5(e,t);let r;if(n&&n.declarations){const e=se(n.declarations),t=J(n.declarations,(e=>({file:e.getSourceFile().fileName,pos:e.pos})));e.sort(((e,n)=>Rt(t[e].file,t[n].file)||t[e].pos-t[n].pos));const i=J(e,(e=>n.declarations[e]));let o;for(const e of i)b5(e)&&(o&&o.parent===e.parent&&o.end===e.pos||(r=he(r,e)),o=e)}return r}function w5(e,t){return gD(t)?t:b_(t)?T5(e,t)??C5(e,t)??t:C5(e,t)??t}function N5(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(b5(t))return w5(n,t);if(v5(t)){const e=kc(t,b5);return e&&w5(n,e)}if(ey(t)){if(b5(t.parent))return w5(n,t.parent);if(v5(t.parent)){const e=kc(t.parent,b5);return e&&w5(n,e)}return GF(t.parent)&&t.parent.initializer&&y5(t.parent.initializer)?t.parent.initializer:void 0}if(hD(t))return b5(t.parent)?t.parent:void 0;if(126!==t.kind||!gD(t.parent)){if(GF(t)&&t.initializer&&y5(t.initializer))return t.initializer;if(!r){let e=n.getSymbolAtLocation(t);if(e&&(2097152&e.flags&&(e=n.getAliasedSymbol(e)),e.valueDeclaration)){r=!0,t=e.valueDeclaration;continue}}return}t=t.parent}}function D5(e,t){const n=t.getSourceFile(),r=function(e,t){if($P(t))return{text:t.fileName,pos:0,end:0};if((QF(t)||YF(t))&&!Lc(t)){const e=t.modifiers&&D(t.modifiers,S5);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(gD(t)){const n=ys(t.getSourceFile().text,bx(t).pos),r=n+6,i=e.getTypeChecker(),o=i.getSymbolAtLocation(t.parent);return{text:(o?`${i.symbolToString(o,t.parent)} `:"")+"static {}",pos:n,end:r}}const n=y5(t)?t.parent.name:Sn.checkDefined(Mc(t),"Expected call hierarchy item to have a name");let r=HN(n)?Dc(n):Fy(n)?n.text:cD(n)&&Fy(n.expression)?n.expression.text:void 0;if(void 0===r){const i=e.getTypeChecker(),o=i.getSymbolAtLocation(n);o&&(r=i.symbolToString(o,t))}if(void 0===r){const e=rU();r=mp((n=>e.writeNode(4,t,t.getSourceFile(),n)))}return{text:r,pos:n.getStart(),end:n.getEnd()}}(e,t),i=function(e){var t,n;if(y5(e))return rP(e.parent.parent.parent.parent)&&HN(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return 210===e.parent.kind?null==(t=Rc(e.parent))?void 0:t.getText():null==(n=Mc(e.parent))?void 0:n.getText();case 262:case 263:case 267:if(rP(e.parent)&&HN(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=hX(t),a=hQ(t),s=ac(ys(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=ac(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function F5(e){return void 0!==e}function P5(e){if(e.kind===mue.EntryKind.Node){const{node:t}=e;if($G(t,!0,!0)||KG(t,!0,!0)||GG(t,!0,!0)||XG(t,!0,!0)||_X(t)||uX(t)){const e=t.getSourceFile();return{declaration:kc(t,b5)||e,range:IQ(t,e)}}}}function E5(e){return PB(e.declaration)}function A5(e,t,n){if($P(t)||nP(t)||gD(t))return[];const r=x5(t),i=M(mue.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:mue.FindReferencesUse.References},P5),F5);return i?Ze(i,E5,(t=>function(e,t){return n=D5(e,t[0].declaration),r=J(t,(e=>OQ(e.range))),{from:n,fromSpans:r};var n,r}(e,t))):[]}function I5(e,t){const n=[],r=function(e,t){function n(n){const r=nF(n)?n.tag:Mu(n)?n.tagName:sS(n)||gD(n)?n:n.expression,i=N5(e,r);if(i){const e=IQ(r,n.getSourceFile());if(_t(i))for(const n of i)t.push({declaration:n,range:e});else t.push({declaration:i,range:e})}}return function e(t){if(t&&!(33554432&t.flags))if(b5(t)){if(w_(t))for(const n of t.members)n.name&&cD(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:return void n(t);case 216:case 234:case 238:return void e(t.expression);case 260:case 169:return e(t.name),void e(t.initializer);case 213:case 214:return n(t),e(t.expression),void b(t.arguments,e);case 215:return n(t),e(t.tag),void e(t.template);case 286:case 285:return n(t),e(t.tagName),void e(t.attributes);case 170:return n(t),void e(t.expression);case 211:case 212:n(t),KI(t,e)}hm(t)||KI(t,e)}}}(e,n);switch(t.kind){case 312:!function(e,t){b(e.statements,t)}(t,r);break;case 267:!function(e,t){!fb(e,128)&&e.body&&rP(e.body)&&b(e.body.statements,t)}(t,r);break;case 262:case 218:case 219:case 174:case 177:case 178:!function(e,t,n){const r=T5(e,t);r&&(b(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 263:case 231:!function(e,t){b(e.modifiers,t);const n=uy(e);n&&t(n.expression);for(const n of e.members)lI(n)&&b(n.modifiers,t),pD(n)?t(n.initializer):hD(n)&&n.body?(b(n.parameters,t),t(n.body)):gD(n)&&t(n)}(t,r);break;case 175:!function(e,t){t(e.body)}(t,r);break;default:Sn.assertNever(t)}return n}function O5(e,t){return 33554432&t.flags||fD(t)?[]:Ze(I5(e,t),E5,(t=>function(e,t){return n=D5(e,t[0].declaration),r=J(t,(e=>OQ(e.range))),{to:n,fromSpans:r};var n,r}(e,t)))}var L5=g({"src/services/callHierarchy.ts"(){zge()}}),j5={};h(j5,{createCallHierarchyItem:()=>D5,getIncomingCalls:()=>A5,getOutgoingCalls:()=>O5,resolveCallHierarchyDeclaration:()=>N5});var M5=g({"src/services/_namespaces/ts.CallHierarchy.ts"(){L5()}}),R5={};h(R5,{TokenEncodingConsts:()=>h7,TokenModifier:()=>v7,TokenType:()=>y7,getEncodedSemanticClassifications:()=>k7,getSemanticClassifications:()=>S7});var B5=g({"src/services/_namespaces/ts.classifier.v2020.ts"(){V7()}}),J5={};h(J5,{v2020:()=>R5});var z5,q5,U5,V5=g({"src/services/_namespaces/ts.classifier.ts"(){B5()}});function W5(e,t,n){return K5(e,l0(n),t,void 0,void 0)}function H5(e,t,n,r,i,o){return K5(e,l0(n),t,r,l0(i),o)}function $5(e,t,n,r,i,o){return K5(e,l0(n),t,r,i&&l0(i),o)}function K5(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function G5(e){for(const t of e.errorCodes)U5=void 0,z5.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)Sn.assert(!q5.has(t)),q5.set(t,e)}function X5(){return U5??(U5=$e(z5.keys()))}function Q5(e){const t=r9(e);return V(z5.get(String(e.errorCode)),(n=>J(n.getCodeActions(e),function(e,t){const{errorCodes:n}=e;let r=0;for(const e of t)if(I(n,e.code)&&r++,r>1)break;const i=r<2;return({fixId:e,fixAllDescription:t,...n})=>i?n:{...n,fixId:e,fixAllDescription:t}}(n,t))))}function Y5(e){return q5.get(mt(e.fixId,dt)).getAllCodeActions(e)}function Z5(e,t){return{changes:e,commands:t}}function e9(e,t){return{fileName:e,textChanges:t}}function t9(e,t,n){const r=[];return Z5(Pfe.ChangeTracker.with(e,(i=>n9(e,t,(e=>n(i,e,r))))),0===r.length?void 0:r)}function n9(e,t,n){for(const r of r9(e))I(t,r.code)&&n(r)}function r9({program:e,sourceFile:t,cancellationToken:n}){return[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...J1(t,e,n)]}var i9,o9,a9=g({"src/services/codeFixProvider.ts"(){zge(),z5=ot(),q5=new Map}});function s9(e,t,n){const r=xF(n)?AC.createAsExpression(n.expression,AC.createKeywordTypeNode(159)):AC.createTypeAssertion(AC.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function c9(e,t){if(!Tg(e))return kc(KX(e,t),(e=>xF(e)||rF(e)))}var l9,_9,u9=g({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){zge(),Ece(),i9="addConvertToUnknownForNonOverlappingTypes",G5({errorCodes:o9=[Ea.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],getCodeActions:function(e){const t=c9(e.sourceFile,e.span.start);if(void 0===t)return;const n=Pfe.ChangeTracker.with(e,(n=>s9(n,e.sourceFile,t)));return[H5(i9,n,Ea.Add_unknown_conversion_for_non_overlapping_types,i9,Ea.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[i9],getAllCodeActions:e=>t9(e,o9,((e,t)=>{const n=c9(t.file,t.start);n&&s9(e,t.file,n)}))})}}),d9=g({"src/services/codefixes/addEmptyExportDeclaration.ts"(){zge(),Ece(),G5({errorCodes:[Ea.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,Ea.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,Ea.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){const{sourceFile:t}=e;return[W5("addEmptyExportDeclaration",Pfe.ChangeTracker.with(e,(e=>{const n=AC.createExportDeclaration(void 0,!1,AC.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)})),Ea.Add_export_to_make_this_file_into_a_module)]}})}});function p9(e,t,n,r){const i=n((n=>function(e,t,n,r){if(r&&r.has(PB(n)))return;null==r||r.add(PB(n));const i=AC.replaceModifiers(ZY(n,!0),AC.createNodeArray(AC.createModifiersFromModifierFlags(1024|Db(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r)));return H5(l9,i,Ea.Add_async_modifier_to_containing_function,l9,Ea.Add_all_missing_async_modifiers)}function f9(e,t){if(!t)return;return kc(KX(e,t.start),(n=>n.getStart(e)<t.start||n.getEnd()>$s(t)?"quit":(aF(n)||mD(n)||oF(n)||QF(n))&&mY(t,EQ(n,e))))}var m9,g9,h9,y9,v9=g({"src/services/codefixes/addMissingAsync.ts"(){zge(),Ece(),l9="addMissingAsync",_9=[Ea.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Ea.Type_0_is_not_assignable_to_type_1.code,Ea.Type_0_is_not_comparable_to_type_1.code],G5({fixIds:[l9],errorCodes:_9,getCodeActions:function(e){const{sourceFile:t,errorCode:n,cancellationToken:r,program:i,span:o}=e,a=D(i.getTypeChecker().getDiagnostics(t,r),function(e,t){return({start:n,length:r,relatedInformation:i,code:o})=>pt(n)&&pt(r)&&mY({start:n,length:r},e)&&o===t&&!!i&&re(i,(e=>e.code===Ea.Did_you_mean_to_mark_this_function_as_async.code))}(o,n)),s=f9(t,a&&a.relatedInformation&&D(a.relatedInformation,(e=>e.code===Ea.Did_you_mean_to_mark_this_function_as_async.code)));if(!s)return;return[p9(e,s,(t=>Pfe.ChangeTracker.with(e,t)))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return t9(e,_9,((r,i)=>{const o=i.relatedInformation&&D(i.relatedInformation,(e=>e.code===Ea.Did_you_mean_to_mark_this_function_as_async.code)),a=f9(t,o);if(!a)return;return p9(e,a,(e=>(e(r),[])),n)}))}})}});function b9(e,t,n,r,i){const o=KZ(e,n);return o&&function(e,t,n,r,i){const o=i.getTypeChecker(),a=o.getDiagnostics(e,r);return re(a,(({start:e,length:r,relatedInformation:i,code:o})=>pt(e)&&pt(r)&&mY({start:e,length:r},n)&&o===t&&!!i&&re(i,(e=>e.code===Ea.Did_you_forget_to_use_await.code))))}(e,t,n,r,i)&&T9(o)?o:void 0}function x9(e,t,n,r,i,o){const{sourceFile:a,program:s,cancellationToken:c}=e,l=function(e,t,n,r,i){const o=function(e,t){if(YD(e.parent)&&HN(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(HN(e))return{identifiers:[e],isCompleteFix:!0};if(pF(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!HN(i)){r=!1;continue}(n||(n=[])).push(i)}}return n&&{identifiers:n,isCompleteFix:r}}}(e,i);if(!o)return;let a,s=o.isCompleteFix;for(const e of o.identifiers){const o=i.getSymbolAtLocation(e);if(!o)continue;const c=ft(o.valueDeclaration,GF),l=c&&ft(c.name,HN),_=gy(c,243);if(!c||!_||c.type||!c.initializer||_.getSourceFile()!==t||fb(_,32)||!l||!T9(c.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(t,n);mue.Core.eachSymbolReferenceInFile(l,i,t,(n=>e!==n&&!k9(n,u,t,i)))?s=!1:(a||(a=[])).push({expression:c.initializer,declarationSymbol:o})}return a&&{initializers:a,needsSecondPassForFixAll:!s}}(t,a,c,s,r);if(l){return W5("addMissingAwaitToInitializer",i((e=>{b(l.initializers,(({expression:t})=>C9(e,n,a,r,t,o))),o&&l.needsSecondPassForFixAll&&C9(e,n,a,r,t,o)})),1===l.initializers.length?[Ea.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:Ea.Add_await_to_initializers)}}function S9(e,t,n,r,i,o){const a=i((i=>C9(i,n,e.sourceFile,r,t,o)));return H5(m9,a,Ea.Add_await,m9,Ea.Fix_all_expressions_possibly_missing_await)}function k9(e,t,n,r){const i=YD(e.parent)?e.parent.name:pF(e.parent)?e.parent:e,o=D(t,(e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd()));return o&&I(y9,o.code)||1&r.getTypeAtLocation(i).flags}function T9(e){return 65536&e.flags||!!kc(e,(e=>e.parent&&aF(e.parent)&&e.parent.body===e||PF(e)&&(262===e.parent.kind||218===e.parent.kind||219===e.parent.kind||174===e.parent.kind)))}function C9(e,t,n,r,i,o){if(BF(i.parent)&&!i.parent.awaitModifier){const t=r.getTypeAtLocation(i),o=r.getAsyncIterableType();if(o&&r.isTypeAssignableTo(t,o)){const t=i.parent;return void e.replaceNode(n,t,AC.updateForOfStatement(t,AC.createToken(135),t.initializer,t.expression,t.statement))}}if(pF(i))for(const t of[i.left,i.right]){if(o&&HN(t)){const e=r.getSymbolAtLocation(t);if(e&&o.has(EB(e)))continue}const i=r.getTypeAtLocation(t),a=r.getPromisedTypeOfPromise(i)?AC.createAwaitExpression(t):t;e.replaceNode(n,t,a)}else if(t===g9&&YD(i.parent)){if(o&&HN(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(EB(e)))return}e.replaceNode(n,i.parent.expression,AC.createParenthesizedExpression(AC.createAwaitExpression(i.parent.expression))),w9(e,i.parent.expression,n)}else if(I(h9,t)&&Y_(i.parent)){if(o&&HN(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(EB(e)))return}e.replaceNode(n,i,AC.createParenthesizedExpression(AC.createAwaitExpression(i))),w9(e,i,n)}else{if(o&&GF(i.parent)&&HN(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!Z(o,EB(e)))return}e.replaceNode(n,i,AC.createAwaitExpression(i))}}function w9(e,t,n){const r=ZX(t.pos,n);r&&FZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}var N9,D9,F9=g({"src/services/codefixes/addMissingAwait.ts"(){zge(),Ece(),m9="addMissingAwait",g9=Ea.Property_0_does_not_exist_on_type_1.code,h9=[Ea.This_expression_is_not_callable.code,Ea.This_expression_is_not_constructable.code],y9=[Ea.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,Ea.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,Ea.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,Ea.Operator_0_cannot_be_applied_to_type_1.code,Ea.Operator_0_cannot_be_applied_to_types_1_and_2.code,Ea.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,Ea.This_condition_will_always_return_true_since_this_0_is_always_defined.code,Ea.Type_0_is_not_an_array_type.code,Ea.Type_0_is_not_an_array_type_or_a_string_type.code,Ea.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,Ea.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Ea.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Ea.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,Ea.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,Ea.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,g9,...h9],G5({fixIds:[m9],errorCodes:y9,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=b9(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>Pfe.ChangeTracker.with(e,t);return me([x9(e,a,n,s,c),S9(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return t9(e,y9,((a,s)=>{const c=b9(t,s.code,s,r,n);if(!c)return;const l=e=>(e(a),[]);return x9(e,c,s.code,i,l,o)||S9(e,c,s.code,i,l,o)}))}})}});function P9(e,t,n,r,i){const o=KX(t,n),a=kc(o,(e=>fu(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}(e)&&"quit"));if(a)return E9(e,a,t,i);const s=o.parent;if(pF(s)&&64===s.operatorToken.kind&&IF(s.parent))return E9(e,o,t,i);if(XD(s)){const n=r.getTypeChecker();if(!N(s.elements,(e=>function(e,t){const n=HN(e)?e:Vb(e,!0)&&HN(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n))))return;return E9(e,s,t,i)}const c=kc(o,(e=>!!IF(e.parent)||!function(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}(e)&&"quit"));if(c){if(!A9(c,r.getTypeChecker()))return;return E9(e,c,t,i)}}function E9(e,t,n,r){r&&!Z(r,t)||e.insertModifierBefore(n,87,t)}function A9(e,t){return!!pF(e)&&(28===e.operatorToken.kind?N([e.left,e.right],(e=>A9(e,t))):64===e.operatorToken.kind&&HN(e.left)&&!t.getSymbolAtLocation(e.left))}var I9,O9,L9=g({"src/services/codefixes/addMissingConst.ts"(){zge(),Ece(),N9="addMissingConst",G5({errorCodes:D9=[Ea.Cannot_find_name_0.code,Ea.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],getCodeActions:function(e){const t=Pfe.ChangeTracker.with(e,(t=>P9(t,e.sourceFile,e.span.start,e.program)));if(t.length>0)return[H5(N9,t,Ea.Add_const_to_unresolved_variable,N9,Ea.Add_const_to_all_unresolved_variables)]},fixIds:[N9],getAllCodeActions:e=>{const t=new Set;return t9(e,D9,((n,r)=>P9(n,r.file,r.start,e.program,t)))}})}});function j9(e,t,n,r){const i=KX(t,n);if(!HN(i))return;const o=i.parent;172!==o.kind||r&&!Z(r,o)||e.insertModifierBefore(t,138,o)}var M9,R9,B9=g({"src/services/codefixes/addMissingDeclareProperty.ts"(){zge(),Ece(),I9="addMissingDeclareProperty",G5({errorCodes:O9=[Ea.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],getCodeActions:function(e){const t=Pfe.ChangeTracker.with(e,(t=>j9(t,e.sourceFile,e.span.start)));if(t.length>0)return[H5(I9,t,Ea.Prefix_with_declare,I9,Ea.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[I9],getAllCodeActions:e=>{const t=new Set;return t9(e,O9,((e,n)=>j9(e,n.file,n.start,t)))}})}});function J9(e,t,n){const r=kc(KX(t,n),uD);Sn.assert(!!r,"Expected position to be owned by a decorator.");const i=AC.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}var z9,q9,U9=g({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){zge(),Ece(),M9="addMissingInvocationForDecorator",G5({errorCodes:R9=[Ea._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],getCodeActions:function(e){const t=Pfe.ChangeTracker.with(e,(t=>J9(t,e.sourceFile,e.span.start)));return[H5(M9,t,Ea.Call_decorator_expression,M9,Ea.Add_to_all_uncalled_decorators)]},fixIds:[M9],getAllCodeActions:e=>t9(e,R9,((e,t)=>J9(e,t.file,t.start)))})}});function V9(e,t,n){const r=KX(t,n),i=r.parent;if(!_D(i))return Sn.fail("Tried to add a parameter name to a non-parameter: "+Sn.formatSyntaxKind(r.kind));const o=i.parent.parameters.indexOf(i);Sn.assert(!i.type,"Tried to add a parameter name to a parameter that already had one."),Sn.assert(o>-1,"Parameter not found in parent parameter list.");let a=i.name.getEnd(),s=AC.createTypeReferenceNode(i.name,void 0),c=W9(t,i);for(;c;)s=AC.createArrayTypeNode(s),a=c.getEnd(),c=W9(t,c);const l=AC.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken&&!FD(s)?AC.createArrayTypeNode(s):s,i.initializer);e.replaceRange(t,gx(i.getStart(t),a),l)}function W9(e,t){const n=YX(t.name,t.parent,e);if(n&&23===n.kind&&KD(n.parent)&&_D(n.parent.parent))return n.parent.parent}var H9,$9=g({"src/services/codefixes/addNameToNamelessParameter.ts"(){zge(),Ece(),z9="addNameToNamelessParameter",G5({errorCodes:q9=[Ea.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],getCodeActions:function(e){const t=Pfe.ChangeTracker.with(e,(t=>V9(t,e.sourceFile,e.span.start)));return[H5(z9,t,Ea.Add_parameter_name,z9,Ea.Add_names_to_all_parameters_without_names)]},fixIds:[z9],getAllCodeActions:e=>t9(e,q9,((e,t)=>V9(e,t.file,t.start)))})}});function K9(e,t,n){var i,o;const a=G9(KZ(e,t),n);if(!a)return r;const{source:s,target:c}=a,l=function(e,t,n){return YD(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}(s,c,n)?n.getTypeAtLocation(c.expression):n.getTypeAtLocation(c);return(null==(o=null==(i=l.symbol)?void 0:i.declarations)?void 0:o.some((e=>Cp(e).fileName.match(/\.d\.ts$/))))?r:n.getExactOptionalProperties(l)}function G9(e,t){var n;if(e){if(pF(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(GF(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(eF(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!k_(n.valueDeclaration.kind))return;if(!au(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(HN(i))return{source:e,target:i}}else if(qP(e.parent)&&HN(e.parent.name)||UP(e.parent)){const r=G9(e.parent.parent,t);if(!r)return;const i=t.getPropertyOfType(t.getTypeAtLocation(r.target),e.parent.name.text),o=null==(n=null==i?void 0:i.declarations)?void 0:n[0];if(!o)return;return{source:qP(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}var X9,Q9,Y9=g({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){zge(),Ece(),H9="addOptionalPropertyUndefined",G5({errorCodes:[Ea.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,Ea.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Ea.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){const t=e.program.getTypeChecker(),n=K9(e.sourceFile,e.span,t);if(!n.length)return;const r=Pfe.ChangeTracker.with(e,(e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(dD(t)||pD(t))&&t.type){const n=AC.createUnionTypeNode([...192===t.type.kind?t.type.types:[t.type],AC.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n)));return[W5(H9,r,Ea.Add_undefined_to_optional_property_type)]},fixIds:[H9]})}});function Z9(e,t){const n=KX(e,t);return ft(_D(n.parent)?n.parent.parent:n.parent,eee)}function eee(e){return function(e){return b_(e)||260===e.kind||171===e.kind||172===e.kind}(e)&&tee(e)}function tee(e){return b_(e)?e.parameters.some(tee)||!e.type&&!!ml(e):!e.type&&!!fl(e)}function nee(e,t,n){if(b_(n)&&(ml(n)||n.parameters.some((e=>!!fl(e))))){if(!n.typeParameters){const r=tb(n);r.length&&e.insertTypeParameters(t,n,r)}const r=aF(n)&&!OX(n,21,t);r&&e.insertNodeBefore(t,Pe(n.parameters),AC.createToken(21));for(const r of n.parameters)if(!r.type){const n=fl(r);n&&e.tryInsertTypeAnnotation(t,r,qB(n,ree,j_))}if(r&&e.insertNodeAfter(t,Ie(n.parameters),AC.createToken(22)),!n.type){const r=ml(n);r&&e.tryInsertTypeAnnotation(t,n,qB(r,ree,j_))}}else{const r=Sn.checkDefined(fl(n),"A JSDocType for this declaration should exist");Sn.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,qB(r,ree,j_))}}function ree(e){switch(e.kind){case 319:case 320:return AC.createTypeReferenceNode("any",r);case 323:return function(e){return AC.createUnionTypeNode([qB(e.type,ree,j_),AC.createTypeReferenceNode("undefined",r)])}(e);case 322:return ree(e.type);case 321:return function(e){return AC.createUnionTypeNode([qB(e.type,ree,j_),AC.createTypeReferenceNode("null",r)])}(e);case 325:return function(e){return AC.createArrayTypeNode(qB(e.type,ree,j_))}(e);case 324:return function(e){return AC.createFunctionTypeNode(r,e.parameters.map(iee),e.type??AC.createKeywordTypeNode(133))}(e);case 183:return function(e){let t=e.typeName,n=e.typeArguments;if(HN(e.typeName)){if(Dg(e))return function(e){const t=AC.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,AC.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=AC.createTypeLiteralNode([AC.createIndexSignature(void 0,[t],e.typeArguments[1])]);return rw(n,1),n}(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}t=AC.createIdentifier(i),n="Array"!==i&&"Promise"!==i||e.typeArguments?UB(e.typeArguments,ree,j_):AC.createNodeArray([AC.createTypeReferenceNode("any",r)])}return AC.createTypeReferenceNode(t,n)}(e);case 329:return function(e){const t=AC.createTypeLiteralNode(J(e.jsDocPropertyTags,(e=>AC.createPropertySignature(void 0,HN(e.name)?e.name:e.name.right,ZT(e)?AC.createToken(58):void 0,e.typeExpression&&qB(e.typeExpression.type,ree,j_)||AC.createKeywordTypeNode(133)))));return rw(t,1),t}(e);default:const t=YB(e,ree,zq);return rw(t,1),t}}function iee(e){const t=e.parent.parameters.indexOf(e),n=325===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?AC.createToken(26):e.dotDotDotToken;return AC.createParameterDeclaration(e.modifiers,i,r,e.questionToken,qB(e.type,ree,j_),e.initializer)}var oee,aee,see=g({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){zge(),Ece(),X9="annotateWithTypeFromJSDoc",G5({errorCodes:Q9=[Ea.JSDoc_types_may_be_moved_to_TypeScript_types.code],getCodeActions(e){const t=Z9(e.sourceFile,e.span.start);if(!t)return;const n=Pfe.ChangeTracker.with(e,(n=>nee(n,e.sourceFile,t)));return[H5(X9,n,Ea.Annotate_with_type_from_JSDoc,X9,Ea.Annotate_everything_with_types_from_JSDoc)]},fixIds:[X9],getAllCodeActions:e=>t9(e,Q9,((e,t)=>{const n=Z9(t.file,t.start);n&&nee(e,t.file,n)}))})}});function cee(e,t,n,r,i,o){const a=r.getSymbolAtLocation(KX(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if(QF(s)||oF(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(AC.createConstructorDeclaration(void 0,e.parameters,e.body));const n=lee(e,95);return AC.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(GF(s)){const n=function(e){const t=e.initializer;if(!t||!oF(t)||!HN(e.name))return;const n=c(e.symbol);t.body&&n.unshift(AC.createConstructorDeclaration(void 0,t.parameters,t.body));const r=lee(e.parent.parent,95);return AC.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;XF(s.parent)&&s.parent.declarations.length>1?(e.delete(t,s),e.insertNodeAfter(t,r,n)):e.replaceNode(t,r,n)}function c(n){const r=[];return n.exports&&n.exports.forEach((e=>{if("prototype"===e.name&&e.declarations){const t=e.declarations[0];if(1===e.declarations.length&&YD(t)&&pF(t.parent)&&64===t.parent.operatorToken.kind&&QD(t.parent.right)){a(t.parent.right.symbol,void 0,r)}}else a(e,[AC.createToken(126)],r)})),n.members&&n.members.forEach(((i,o)=>{var s,c,l,_;if("constructor"===o&&i.valueDeclaration){const r=null==(_=null==(l=null==(c=null==(s=n.exports)?void 0:s.get("prototype"))?void 0:c.declarations)?void 0:l[0])?void 0:_.parent;r&&pF(r)&&QD(r.right)&&re(r.right.properties,_ee)||e.delete(t,i.valueDeclaration.parent)}else a(i,void 0,r)})),r;function a(n,r,a){if(!(8192&n.flags||4096&n.flags))return;const s=n.valueDeclaration,c=s.parent,l=c.right;if(u=l,!(sS(_=s)?YD(_)&&_ee(_)||y_(u):N(_.properties,(e=>!!(mD(e)||wl(e)||qP(e)&&oF(e.initializer)&&e.name||_ee(e))))))return;var _,u;if(re(a,(e=>{const t=Mc(e);return!(!t||!HN(t)||Dc(t)!==Pc(n))})))return;const d=c.parent&&244===c.parent.kind?c.parent:c;if(e.delete(t,d),l)if(sS(s)&&(oF(l)||aF(l))){const e=rY(t,i),n=function(e,t,n){if(YD(e))return e.name;const r=e.argumentExpression;if(NN(r))return r;if(Qu(r))return Os(r.text,HS(t))?AC.createIdentifier(r.text):AN(r)?AC.createStringLiteral(r.text,0===n):r;return}(s,o,e);n&&p(a,l,n)}else{if(!QD(l)){if(Sg(t))return;if(!YD(s))return;const e=AC.createPropertyDeclaration(r,s.name,void 0,void 0,l);return dZ(c.parent,e,t),void a.push(e)}b(l.properties,(e=>{(mD(e)||wl(e))&&a.push(e),qP(e)&&oF(e.initializer)&&p(a,e.initializer,e.name),_ee(e)}))}else a.push(AC.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function p(e,n,i){return oF(n)?function(e,n,i){const o=oe(r,lee(n,134)),a=AC.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return dZ(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;a=241===o.kind?o:AC.createBlock([AC.createReturnStatement(o)]);const s=oe(r,lee(n,134)),l=AC.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);dZ(c,l,t),e.push(l)}(e,n,i)}}}}function lee(e,t){return lI(e)?M(e.modifiers,(e=>e.kind===t)):void 0}function _ee(e){return!!e.name&&!(!HN(e.name)||"constructor"!==e.name.text)}var uee,dee,pee,fee=g({"src/services/codefixes/convertFunctionToEs6Class.ts"(){zge(),Ece(),oee="convertFunctionToEs6Class",G5({errorCodes:aee=[Ea.This_constructor_function_may_be_converted_to_a_class_declaration.code],getCodeActions(e){const t=Pfe.ChangeTracker.with(e,(t=>cee(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[H5(oee,t,Ea.Convert_function_to_an_ES2015_class,oee,Ea.Convert_all_constructor_functions_to_classes)]},fixIds:[oee],getAllCodeActions:e=>t9(e,aee,((t,n)=>cee(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))})}});function mee(e,t,n,i){const o=KX(t,n);let a;if(a=HN(o)&&GF(o.parent)&&o.parent.initializer&&b_(o.parent.initializer)?o.parent.initializer:ft(zm(KX(t,n)),X1),!a)return;const s=new Map,c=Tg(a),l=function(e,t){if(!e.body)return new Set;const n=new Set;return KI(e.body,(function e(r){gee(r,t,"then")?(n.add(PB(r)),b(r.arguments,e)):gee(r,t,"catch")||gee(r,t,"finally")?(n.add(PB(r)),KI(r,e)):vee(r,t)?n.add(PB(r)):KI(r,e)})),n}(a,i),_=function(e,t,n){const r=new Map,i=ot();return KI(e,(function e(o){if(!HN(o))return void KI(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=Aee(t.getTypeAtLocation(o),t),s=EB(a).toString();if(!e||_D(o.parent)||b_(o.parent)||n.has(s)){if(o.parent&&(_D(o.parent)||GF(o.parent)||GD(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some((e=>e!==a))){const t=bee(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=ZY(o);n.set(s,jee(t)),i.add(e,a)}}}else{const t=De(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&_D(t.valueDeclaration)&&ft(t.valueDeclaration.name,HN)||AC.createUniqueName("result",16),o=bee(r,i);n.set(s,o),i.add(r.text,a)}}})),eZ(e,!0,(e=>{if(GD(e)&&HN(e.name)&&$D(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(EB(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return AC.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(HN(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(String(EB(n)));if(i)return AC.createIdentifier(i.text)}}))}(a,i,s);if(!U1(_,i))return;const u=_.body&&PF(_.body)?function(e,t){const n=[];return vm(e,(e=>{V1(e,t)&&n.push(e)})),n}(_.body,i):r,d={checker:i,synthNamesMap:s,setOfExpressionsToReturn:l,isInJSFile:c};if(!u.length)return;const p=ys(t.text,bx(a).pos);e.insertModifierAt(t,p,134,{suffix:" "});for(const n of u)if(KI(n,(function r(i){if(eF(i)){const r=kee(i,i,d,!1);if(xee())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!y_(i)&&(KI(i,r),xee()))return!0})),xee())return}function gee(e,t,n){if(!eF(e))return!1;const r=iX(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function hee(e,t){return 0!=(4&Zx(e))&&e.target===t}function yee(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(hee(r,n.getPromiseType())||hee(r,n.getPromiseLikeType())){if("then"!==e.expression.name.escapedText)return s(e.typeArguments,0);if(t===s(e.arguments,0))return s(e.typeArguments,0);if(t===s(e.arguments,1))return s(e.typeArguments,1)}}function vee(e,t){return!!au(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function bee(e,t){const n=(t.get(e.text)||r).length;return jee(0===n?e:AC.createIdentifier(e.text+"_"+n))}function xee(){return!pee}function See(){return pee=!1,r}function kee(e,t,n,r,i){if(gee(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||Tee(r,t))return Nee(e,n,r,i,o);if(n&&!Tee(r,n))return See();const a=Oee(t,r),s=kee(e.expression.expression,e.expression.expression,r,!0,a);if(xee())return See();const c=Pee(t,i,o,a,e,r);return xee()?See():oe(s,c)}(t,s(t.arguments,0),s(t.arguments,1),n,r,i);if(gee(t,n.checker,"catch"))return Nee(t,s(t.arguments,0),n,r,i);if(gee(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||Tee(n,t))return kee(e,e.expression.expression,n,r,i);const o=Cee(e,n,i),a=kee(e,e.expression.expression,n,!0,o);if(xee())return See();const s=Pee(t,r,void 0,void 0,e,n);if(xee())return See();const c=AC.createBlock(a),l=AC.createBlock(s),_=AC.createTryStatement(c,void 0,l);return wee(e,n,_,o,i)}(t,s(t.arguments,0),n,r,i);if(YD(t))return kee(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(Sn.assertNode(Sc(t).parent,YD),function(e,t,n,r,i){if(qee(e,n)){let e=ZY(t);return r&&(e=AC.createAwaitExpression(e)),[AC.createReturnStatement(e)]}return Dee(i,AC.createAwaitExpression(t),void 0)}(e,t,n,r,i)):See()}function Tee({checker:e},t){if(106===t.kind)return!0;if(HN(t)&&!a_(t)&&"undefined"===Dc(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function Cee(e,t,n){let r;return n&&!qee(e,t)&&(zee(n)?(r=n,t.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,jee(AC.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i}))):r=jee(AC.createUniqueName("result",16),n.types),Jee(r)),r}function wee(e,t,n,r,i){const o=[];let a;if(r&&!qee(e,t)){a=ZY(Jee(r));const e=r.types,n=t.checker.getUnionType(e,2),i=t.isInJSFile?void 0:t.checker.typeToTypeNode(n,void 0,void 0),s=[AC.createVariableDeclaration(a,void 0,i)],c=AC.createVariableStatement(void 0,AC.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(ZY(Bee(i)),void 0,void 0,a)],2))),o}function Nee(e,t,n,r,i){if(!t||Tee(n,t))return kee(e,e.expression.expression,n,r,i);const o=Oee(t,n),a=Cee(e,n,i),s=kee(e,e.expression.expression,n,!0,a);if(xee())return See();const c=Pee(t,r,a,o,e,n);if(xee())return See();const l=AC.createBlock(s),_=AC.createCatchClause(o&&ZY(Ree(o)),AC.createBlock(c));return wee(e,n,AC.createTryStatement(l,_,void 0),a,i)}function Dee(e,t,n){return!e||Lee(e)?[AC.createExpressionStatement(t)]:zee(e)&&e.hasBeenDeclared?[AC.createExpressionStatement(AC.createAssignment(ZY(Mee(e)),t))]:[AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(ZY(Ree(e)),void 0,n,t)],2))]}function Fee(e,t){if(t&&e){const n=AC.createUniqueName("result",16);return[...Dee(jee(n),e,t),AC.createReturnStatement(n)]}return[AC.createReturnStatement(e)]}function Pee(e,t,n,i,o,a){var s;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;const c=AC.createCallExpression(ZY(e),void 0,zee(i)?[Mee(i)]:[]);if(qee(o,a))return Fee(c,yee(o,e,a.checker));const l=a.checker.getTypeAtLocation(e),_=a.checker.getSignaturesOfType(l,0);if(!_.length)return See();const u=_[0].getReturnType(),d=Dee(n,AC.createAwaitExpression(c),yee(o,e,a.checker));return n&&n.types.push(a.checker.getAwaitedType(u)||u),d;case 218:case 219:{const i=e.body,c=null==(s=Aee(a.checker.getTypeAtLocation(e),a.checker))?void 0:s.getReturnType();if(PF(i)){let r=[],s=!1;for(const l of i.statements)if(qF(l))if(s=!0,V1(l,a.checker))r=r.concat(Iee(a,l,t,n));else{const t=c&&l.expression?Eee(a.checker,c,l.expression):l.expression;r.push(...Fee(t,yee(o,e,a.checker)))}else{if(t&&vm(l,yt))return See();r.push(l)}return qee(o,a)?r.map((e=>ZY(e))):function(e,t,n,r){const i=[];for(const r of e)if(qF(r)){if(r.expression){const e=vee(r.expression,n.checker)?AC.createAwaitExpression(r.expression):r.expression;void 0===t?i.push(AC.createExpressionStatement(e)):zee(t)&&t.hasBeenDeclared?i.push(AC.createExpressionStatement(AC.createAssignment(Mee(t),e))):i.push(AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(Ree(t),void 0,void 0,e)],2)))}}else i.push(ZY(r));r||void 0===t||i.push(AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration(Ree(t),void 0,void 0,AC.createIdentifier("undefined"))],2)));return i}(r,n,a,s)}{const s=W1(i,a.checker)?Iee(a,AC.createReturnStatement(i),t,n):r;if(s.length>0)return s;if(c){const t=Eee(a.checker,c,i);if(qee(o,a))return Fee(t,yee(o,e,a.checker));{const e=Dee(n,t,void 0);return n&&n.types.push(a.checker.getAwaitedType(c)||c),e}}return See()}}default:return See()}return r}function Eee(e,t,n){const r=ZY(n);return e.getPromisedTypeOfPromise(t)?AC.createAwaitExpression(r):r}function Aee(e,t){return Ae(t.getSignaturesOfType(e,0))}function Iee(e,t,n,r){let i=[];return KI(t,(function t(o){if(eF(o)){const t=kee(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else y_(o)||KI(o,t)})),i}function Oee(e,t){const n=[];let i;if(b_(e)){if(e.parameters.length>0){i=function e(t){if(HN(t))return o(t);const n=V(t.elements,(t=>vF(t)?[]:[e(t.name)]));return function(e,t=r,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}(t,n)}(e.parameters[0].name)}}else HN(e)?i=o(e):YD(e)&&HN(e.name)&&(i=o(e.name));if(i&&(!("identifier"in i)||"undefined"!==i.identifier.text))return i;function o(e){var r;const i=function(e){var n;return(null==(n=ft(e,ku))?void 0:n.symbol)??t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);if(!i)return jee(e,n);return t.synthNamesMap.get(EB(i).toString())||jee(e,n)}}function Lee(e){return!e||(zee(e)?!e.identifier.text:N(e.elements,Lee))}function jee(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function Mee(e){return e.hasBeenReferenced=!0,e.identifier}function Ree(e){return zee(e)?Jee(e):Bee(e)}function Bee(e){for(const t of e.elements)Ree(t);return e.bindingPattern}function Jee(e){return e.hasBeenDeclared=!0,e.identifier}function zee(e){return 0===e.kind}function qee(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(PB(e.original))}var Uee=g({"src/services/codefixes/convertToAsyncFunction.ts"(){zge(),Ece(),uee="convertToAsyncFunction",dee=[Ea.This_may_be_converted_to_an_async_function.code],pee=!0,G5({errorCodes:dee,getCodeActions(e){pee=!0;const t=Pfe.ChangeTracker.with(e,(t=>mee(t,e.sourceFile,e.span.start,e.program.getTypeChecker())));return pee?[H5(uee,t,Ea.Convert_to_async_function,uee,Ea.Convert_all_to_async_functions)]:[]},fixIds:[uee],getAllCodeActions:e=>t9(e,dee,((t,n)=>mee(t,n.file,n.start,e.program.getTypeChecker())))})}});function Vee(e,t,n,r,i){var o;for(const a of e.imports){const s=null==(o=n.getResolvedModule(e,a.text,NV(e,a)))?void 0:o.resolvedModule;if(!s||s.resolvedFileName!==t.fileName)continue;const c=dh(a);switch(c.kind){case 271:r.replaceNode(e,c,eY(c.name,void 0,a,i));break;case 213:Fg(c,!1)&&r.replaceNode(e,c,AC.createPropertyAccessExpression(ZY(c),"default"))}}}function Wee(e,t,n,r,i){const o={original:Zee(e),additional:new Set},a=function(e,t,n){const r=new Map;return Hee(e,(e=>{const{text:i}=e.name;r.has(i)||!Cy(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,Yee(`_${i}`,n))})),r}(e,t,o);!function(e,t,n){Hee(e,((r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,AC.createIdentifier(t.get(o)||o))}))}(e,a,n);let s,c=!1;for(const a of M(e.statements,EF)){const c=Kee(e,a,n,t,o,r,i);c&&fp(c,s??(s=new Map))}for(const l of M(e.statements,(e=>!EF(e)))){const _=$ee(e,l,t,n,o,r,a,s,i);c=c||_}return null==s||s.forEach(((t,r)=>{n.replaceNode(e,r,t)})),c}function Hee(e,t){e.forEachChild((function n(r){if(YD(r)&&AR(e,r.expression)&&HN(r.name)){const{parent:e}=r;t(r,pF(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)}))}function $ee(e,t,n,r,o,a,s,c,l){switch(t.kind){case 243:return Kee(e,t,r,n,o,a,l),!1;case 244:{const{expression:o}=t;switch(o.kind){case 213:return Fg(o,!0)&&r.replaceNode(e,t,eY(void 0,void 0,o.arguments[0],l)),!1;case 226:{const{operatorToken:t}=o;return 64===t.kind&&function(e,t,n,r,o,a){const{left:s,right:c}=n;if(!YD(s))return!1;if(AR(e,s)){if(!AR(e,c)){const o=QD(c)?function(e,t){const n=K(e.properties,(e=>{switch(e.kind){case 177:case 178:case 304:case 305:return;case 303:return HN(e.name)?function(e,t,n){const r=[AC.createToken(95)];switch(t.kind){case 218:{const{name:n}=t;if(n&&n.text!==e)return i()}case 219:return tte(e,r,t,n);case 231:return function(e,t,n,r){return AC.createClassDeclaration(oe(t,nZ(n.modifiers)),e,nZ(n.typeParameters),nZ(n.heritageClauses),Qee(n.members,r))}(e,r,t,n);default:return i()}function i(){return ite(r,AC.createIdentifier(e),Qee(t,n))}}(e.name.text,e.initializer,t):void 0;case 174:return HN(e.name)?tte(e.name.text,[AC.createToken(95)],e,t):void 0;default:Sn.assertNever(e,`Convert to ES6 got invalid prop kind ${e.kind}`)}}));return n&&[n,!1]}(c,a):Fg(c,!0)?function(e,t){const n=e.text,r=t.getSymbolAtLocation(e),o=r?r.exports:i;return o.has("export=")?[[Xee(n)],!0]:o.has("default")?o.size>1?[[Gee(n),Xee(n)],!0]:[[Xee(n)],!0]:[[Gee(n)],!1]}(c.arguments[0],t):void 0;return o?(r.replaceNodeWithNodes(e,n.parent,o[0]),o[1]):(r.replaceRangeWithText(e,gx(s.getStart(e),c.pos),"export default"),!0)}r.delete(e,n.parent)}else AR(e,s.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[ite(void 0,o,t.right),ote([AC.createExportSpecifier(!1,o,i)])];n.replaceNodeWithNodes(e,t.parent,r)}else!function({left:e,right:t,parent:n},r,i){const o=e.name.text;if(!(oF(t)||aF(t)||yF(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,OX(e,25,r),[AC.createToken(95),AC.createToken(87)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},AC.createToken(95),{suffix:" "}),t.name||i.insertName(r,t,o);const a=OX(n,27,r);a&&i.delete(r,a)}}(t,e,n)}(e,n,r,o);return!1}(e,n,o,r,s,c)}}}default:return!1}}function Kee(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const l=J(s.declarations,(t=>{const{name:n,initializer:l}=t;if(l){if(AR(e,l))return c=!0,ate([]);if(Fg(l,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 206:{const n=K(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!HN(e.propertyName)||!HN(e.name)?void 0:rte(e.propertyName&&e.propertyName.text,e.name.text)));if(n)return ate([eY(void 0,n,t,o)])}case 207:{const n=Yee(Cne(t.text,i),r);return ate([eY(AC.createIdentifier(n),void 0,t,o),ite(void 0,ZY(e),AC.createIdentifier(n))])}case 80:return function(e,t,n,r,i){const o=n.getSymbolAtLocation(e),a=new Map;let s,c=!1;for(const t of r.original.get(e.text)){if(n.getSymbolAtLocation(t)!==o||t===e)continue;const{parent:i}=t;if(YD(i)){const{name:{text:e}}=i;if("default"===e){c=!0;const e=t.getText();(s??(s=new Map)).set(i,AC.createIdentifier(e))}else{Sn.assert(i.expression===t,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=Yee(e,r),a.set(e,n)),(s??(s=new Map)).set(i,AC.createIdentifier(n))}}else c=!0}const l=0===a.size?void 0:$e(z(a.entries(),(([e,t])=>AC.createImportSpecifier(!1,e===t?void 0:AC.createIdentifier(e),AC.createIdentifier(t)))));l||(c=!0);return ate([eY(c?ZY(e):void 0,l,t,i)],s)}(e,t,n,r,o);default:return Sn.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}(n,l.arguments[0],r,i,o,a);if(YD(l)&&Fg(l.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 206:case 207:{const o=Yee(t,r);return ate([nte(o,t,n,i),ite(void 0,e,AC.createIdentifier(o))])}case 80:return ate([nte(e.text,t,n,i)]);default:return Sn.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}(n,l.name.text,l.expression.arguments[0],i,a)}return ate([AC.createVariableStatement(void 0,AC.createVariableDeclarationList([t],s.flags))])}));if(c){let r;return n.replaceNodeWithNodes(e,t,V(l,(e=>e.newImports))),b(l,(e=>{e.useSitesToUnqualify&&fp(e.useSitesToUnqualify,r??(r=new Map))})),r}}function Gee(e){return ote(void 0,e)}function Xee(e){return ote([AC.createExportSpecifier(!1,void 0,"default")],e)}function Qee(e,t){return t&&re($e(t.keys()),(t=>bX(e,t)))?_t(e)?rZ(e,!0,n):eZ(e,!0,n):e;function n(e){if(211===e.kind){const n=t.get(e);return t.delete(e),n}}}function Yee(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function Zee(e){const t=ot();return ete(e,(e=>t.add(e.text,e))),t}function ete(e,t){HN(e)&&function(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:case 276:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild((e=>ete(e,t)))}function tte(e,t,n,r){return AC.createFunctionDeclaration(oe(t,nZ(n.modifiers)),ZY(n.asteriskToken),e,nZ(n.typeParameters),nZ(n.parameters),ZY(n.type),AC.converters.convertToFunctionBlock(Qee(n.body,r)))}function nte(e,t,n,r){return"default"===t?eY(AC.createIdentifier(e),void 0,n,r):eY(void 0,[rte(t,e)],n,r)}function rte(e,t){return AC.createImportSpecifier(!1,void 0!==e&&e!==t?AC.createIdentifier(e):void 0,AC.createIdentifier(t))}function ite(e,t,n){return AC.createVariableStatement(e,AC.createVariableDeclarationList([AC.createVariableDeclaration(t,void 0,void 0,n)],2))}function ote(e,t){return AC.createExportDeclaration(void 0,!1,e&&AC.createNamedExports(e),void 0===t?void 0:AC.createStringLiteral(t))}function ate(e,t){return{newImports:e,useSitesToUnqualify:t}}var ste,cte,lte=g({"src/services/codefixes/convertToEsModule.ts"(){zge(),Ece(),G5({errorCodes:[Ea.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){const{sourceFile:t,program:n,preferences:r}=e;return[W5("convertToEsModule",Pfe.ChangeTracker.with(e,(e=>{if(Wee(t,n.getTypeChecker(),e,HS(n.getCompilerOptions()),rY(t,r)))for(const i of n.getSourceFiles())Vee(i,t,n,e,rY(i,r))})),Ea.Convert_to_ES_module)]}})}});function _te(e,t){const n=kc(KX(e,t),sD);return Sn.assert(!!n,"Expected position to be owned by a qualified name."),HN(n.left)?n:void 0}function ute(e,t,n){const r=n.right.text,i=AC.createIndexedAccessTypeNode(AC.createTypeReferenceNode(n.left,void 0),AC.createLiteralTypeNode(AC.createStringLiteral(r)));e.replaceNode(t,n,i)}var dte,pte,fte=g({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){zge(),Ece(),ste="correctQualifiedNameToIndexedAccessType",G5({errorCodes:cte=[Ea.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],getCodeActions(e){const t=_te(e.sourceFile,e.span.start);if(!t)return;const n=Pfe.ChangeTracker.with(e,(n=>ute(n,e.sourceFile,t))),r=`${t.left.text}["${t.right.text}"]`;return[H5(ste,n,[Ea.Rewrite_as_the_indexed_access_type_0,r],ste,Ea.Rewrite_all_as_indexed_access_types)]},fixIds:[ste],getAllCodeActions:e=>t9(e,cte,((e,t)=>{const n=_te(t.file,t.start);n&&ute(e,t.file,n)}))})}});function mte(e,t){return ft(KX(t,e.start).parent,xP)}function gte(e,t,n){if(!t)return;const r=t.parent,i=r.parent,o=function(e,t){const n=e.parent;if(1===n.elements.length)return n.elements;const r=HZ(EQ(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return M(n.elements,(t=>{var n;return t===e||(null==(n=WZ(t,r))?void 0:n.code)===dte[0]}))}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=AC.updateExportDeclaration(i,i.modifiers,!1,AC.updateNamedExports(r,M(r.elements,(e=>!I(o,e)))),i.moduleSpecifier,void 0),a=AC.createExportDeclaration(void 0,!0,AC.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:Pfe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Pfe.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}var hte,yte,vte=g({"src/services/codefixes/convertToTypeOnlyExport.ts"(){zge(),Ece(),G5({errorCodes:dte=[Ea.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],getCodeActions:function(e){const t=Pfe.ChangeTracker.with(e,(t=>gte(t,mte(e.span,e.sourceFile),e)));if(t.length)return[H5(pte,t,Ea.Convert_to_type_only_export,pte,Ea.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[pte="convertToTypeOnlyExport"],getAllCodeActions:function(e){const t=new Map;return t9(e,dte,((n,r)=>{const i=mte(r,e.sourceFile);i&&iS(t,PB(i.parent.parent))&&gte(n,i,e)}))}})}});function bte(e,t){const{parent:n}=KX(e,t);return hP(n)||sP(n)&&n.importClause?n:void 0}function xte(e,t,n){if(e.parent.parent.name)return!1;const r=e.parent.elements.filter((e=>!e.isTypeOnly));if(1===r.length)return!0;const i=n.getTypeChecker();for(const e of r){if(mue.Core.eachSymbolReferenceInFile(e.name,i,t,(e=>!TT(e))))return!1}return!0}function Ste(e,t,n){var r;if(hP(n))e.replaceNode(t,n,AC.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[AC.createImportDeclaration(nZ(n.modifiers,!0),AC.createImportClause(!0,ZY(i.name,!0),void 0),ZY(n.moduleSpecifier,!0),ZY(n.attributes,!0)),AC.createImportDeclaration(nZ(n.modifiers,!0),AC.createImportClause(!0,void 0,ZY(i.namedBindings,!0)),ZY(n.moduleSpecifier,!0),ZY(n.attributes,!0))]);else{const o=275===(null==(r=i.namedBindings)?void 0:r.kind)?AC.updateNamedImports(i.namedBindings,q(i.namedBindings.elements,(e=>AC.updateImportSpecifier(e,!1,e.propertyName,e.name)))):i.namedBindings,a=AC.updateImportDeclaration(n,n.modifiers,AC.updateImportClause(i,!0,i.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}var kte,Tte,Cte=g({"src/services/codefixes/convertToTypeOnlyImport.ts"(){zge(),Ece(),G5({errorCodes:hte=[Ea.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,Ea._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],getCodeActions:function(e){var t;const n=bte(e.sourceFile,e.span.start);if(n){const r=Pfe.ChangeTracker.with(e,(t=>Ste(t,e.sourceFile,n))),i=276===n.kind&&xte(n,e.sourceFile,e.program)?Pfe.ChangeTracker.with(e,(t=>Ste(t,e.sourceFile,n.parent.parent.parent))):void 0,o=H5(yte,r,276===n.kind?[Ea.Use_type_0,(null==(t=n.propertyName)?void 0:t.text)??n.name.text]:Ea.Use_import_type,yte,Ea.Fix_all_with_type_only_imports);return re(i)?[W5(yte,i,Ea.Use_import_type),o]:[o]}},fixIds:[yte="convertToTypeOnlyImport"],getAllCodeActions:function(e){const t=new Set;return t9(e,hte,((n,r)=>{const i=bte(r.file,r.start);272!==(null==i?void 0:i.kind)||t.has(i)?276===(null==i?void 0:i.kind)&&!t.has(i.parent.parent.parent)&&xte(i,r.file,e.program)?(Ste(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):276===(null==i?void 0:i.kind)&&Ste(n,r.file,i):(Ste(n,r.file,i),t.add(i))}))}})}});function wte(e,t,n,r,i=!1){if(!EE(t))return;const o=function(e){var t;const{typeExpression:n}=e;if(!n)return;const r=null==(t=e.name)?void 0:t.getText();if(!r)return;if(329===n.kind)return function(e,t){const n=Dte(t);if(!re(n))return;return AC.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}(r,n);if(316===n.kind)return function(e,t){const n=ZY(t.type);if(!n)return;return AC.createTypeAliasDeclaration(void 0,AC.createIdentifier(e),void 0,n)}(r,n)}(t);if(!o)return;const a=t.parent,{leftSibling:s,rightSibling:c}=function(e){const t=e.parent,n=t.getChildCount()-1,r=t.getChildren().findIndex((t=>t.getStart()===e.getStart()&&t.getEnd()===e.getEnd())),i=r>0?t.getChildAt(r-1):void 0,o=r<n?t.getChildAt(r+1):void 0;return{leftSibling:i,rightSibling:o}}(t);let l=a.getStart(),_="";!s&&a.comment&&(l=Nte(a,a.getStart(),t.getStart()),_=`${r} */${r}`),s&&(i&&EE(s)?(l=t.getStart(),_=""):(l=Nte(a,s.getStart(),t.getStart()),_=`${r} */${r}`));let u=a.getEnd(),d="";c&&(i&&EE(c)?(u=c.getStart(),d=`${r}${r}`):(u=c.getStart(),d=`${r}/**${r} * `)),e.replaceRange(n,{pos:l,end:u},o,{prefix:_,suffix:d})}function Nte(e,t,n){const r=e.getText().substring(t-e.getStart(),n-e.getStart());for(let e=r.length;e>0;e--)if(!/[*/\s]/g.test(r.substring(e-1,e)))return t+e;return n}function Dte(e){const t=e.jsDocPropertyTags;if(!re(t))return;return G(t,(e=>{var t;const n=function(e){return 80===e.name.kind?e.name.text:e.name.right.text}(e),r=null==(t=e.typeExpression)?void 0:t.type,i=e.isBracketed;let o;if(r&&uE(r)){const e=Dte(r);o=AC.createTypeLiteralNode(e)}else r&&(o=ZY(r));if(o&&n){const e=i?AC.createToken(58):void 0;return AC.createPropertySignature(void 0,n,e,o)}}))}function Fte(e){return Vu(e)?V(e.jsDoc,(e=>{var t;return null==(t=e.tags)?void 0:t.filter((e=>EE(e)))})):[]}var Pte,Ete,Ate=g({"src/services/codefixes/convertTypedefToType.ts"(){zge(),Ece(),kte="convertTypedefToType",Tte=[Ea.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],G5({fixIds:[kte],errorCodes:Tte,getCodeActions(e){const t=BY(e.host,e.formatContext.options),n=KX(e.sourceFile,e.span.start);if(!n)return;const r=Pfe.ChangeTracker.with(e,(r=>wte(r,n,e.sourceFile,t)));return r.length>0?[H5(kte,r,Ea.Convert_typedef_to_TypeScript_type,kte,Ea.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>t9(e,Tte,((t,n)=>{const r=BY(e.host,e.formatContext.options),i=KX(n.file,n.start);i&&wte(t,i,n.file,r,!0)}))})}});function Ite(e,t){const n=KX(e,t);if(HN(n)){const t=mt(n.parent.parent,dD),r=n.getText(e);return{container:mt(t.parent,DD),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function Ote(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,AC.createMappedTypeNode(void 0,AC.createTypeParameterDeclaration(void 0,o,AC.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}var Lte,jte,Mte=g({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){zge(),Ece(),Pte="convertLiteralTypeToMappedType",G5({errorCodes:Ete=[Ea._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Ite(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=Pfe.ChangeTracker.with(e,(e=>Ote(e,t,r)));return[H5(Pte,a,[Ea.Convert_0_to_1_in_0,o,i],Pte,Ea.Convert_all_type_literals_to_mapped_type)]},fixIds:[Pte],getAllCodeActions:e=>t9(e,Ete,((e,t)=>{const n=Ite(t.file,t.start);n&&Ote(e,t.file,n)}))})}});function Rte(e,t){return Sn.checkDefined(Um(KX(e,t)),"There should be a containing class")}function Bte(e){return!(e.valueDeclaration&&2&wb(e.valueDeclaration))}function Jte(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=_y(e);if(!n)return op();const r=t.getTypeAtLocation(n),i=t.getPropertiesOfType(r);return op(i.filter(Bte))}(r,a),c=a.getTypeAtLocation(t),l=a.getPropertiesOfType(c).filter(_n(Bte,(e=>!s.has(e.escapedName)))),_=a.getTypeAtLocation(r),u=D(r.members,(e=>hD(e)));_.getNumberIndexType()||p(c,1),_.getStringIndexType()||p(c,0);const d=Wte(n,e.program,o,e.host);function p(t,i){const o=a.getIndexInfoOfType(t,i);o&&f(n,r,a.indexInfoToIndexSignatureDeclaration(o,r,void 0,Nae(e)))}function f(e,t,n){u?i.insertNodeAfter(e,u,n):i.insertMemberAtStart(e,t,n)}wae(r,l,n,e,o,d,(e=>f(n,r,e))),d.writeFixes(i)}var zte,qte,Ute,Vte=g({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){zge(),Ece(),G5({errorCodes:Lte=[Ea.Class_0_incorrectly_implements_interface_1.code,Ea.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Rte(t,n.start);return G(dy(r),(n=>{const i=Pfe.ChangeTracker.with(e,(i=>Jte(e,n,t,r,i,e.preferences)));return 0===i.length?void 0:H5(jte,i,[Ea.Implement_interface_0,n.getText(t)],jte,Ea.Implement_all_unimplemented_interfaces)}))},fixIds:[jte="fixClassIncorrectlyImplementsInterface"],getAllCodeActions(e){const t=new Map;return t9(e,Lte,((n,r)=>{const i=Rte(r.file,r.start);if(iS(t,PB(i)))for(const t of dy(i))Jte(e,t,r.file,i,n,e.preferences)}))}})}});function Wte(e,t,n,r,i){return Hte(e,t,!1,n,r,i)}function Hte(e,t,n,r,i,o){const a=t.getCompilerOptions(),s=[],c=[],l=new Map,_=new Map;return{addImportFromDiagnostic:function(e,t){const r=one(t,e.code,e.start,n);if(!r||!r.length)return;u(Pe(r))},addImportFromExportedSymbol:function(n,s){const c=Sn.checkDefined(n.parent),l=YZ(n,HS(a)),_=t.getTypeChecker(),d=_.getMergedSymbol(qx(n,_)),p=Yte(e,d,l,c,!1,t,i,r,o),f=rne(e,t),m=Xte(e,Sn.checkDefined(p),t,void 0,!!s,f,i,r);m&&u({fix:m,symbolName:l,errorIdentifierText:void 0})},writeFixes:function(t,n){let i,o;i=0===e.imports.length&&void 0!==n?n:rY(e,r);for(const n of s)mne(t,e,n);for(const n of c)gne(t,e,n,i);l.forEach((({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{fne(t,e,n,i,$e(o.entries(),(([e,t])=>({addAsTypeOnly:t,name:e}))),r)})),_.forEach((({useRequire:e,defaultImport:t,namedImports:n,namespaceLikeImport:s},c)=>{const l=(e?xne:bne)(c.slice(2),i,t,n&&$e(n.entries(),(([e,t])=>({addAsTypeOnly:t,name:e}))),s,a,r);o=ye(o,l)})),o&&pY(t,e,o,!0,r)},hasFixes:function(){return s.length>0||c.length>0||l.size>0||_.size>0}};function u(e){var t,n;const{fix:r,symbolName:i}=e;switch(r.kind){case 0:s.push(r);break;case 1:c.push(r);break;case 2:{const{importClauseOrBindingPattern:e,importKind:n,addAsTypeOnly:a}=r,s=String(PB(e));let c=l.get(s);if(c||l.set(s,c={importClauseOrBindingPattern:e,defaultImport:void 0,namedImports:new Map}),0===n){const e=null==c?void 0:c.namedImports.get(i);c.namedImports.set(i,o(e,a))}else Sn.assert(void 0===c.defaultImport||c.defaultImport.name===i,"(Add to Existing) Default import should be missing or match symbolName"),c.defaultImport={name:i,addAsTypeOnly:o(null==(t=c.defaultImport)?void 0:t.addAsTypeOnly,a)};break}case 3:{const{moduleSpecifier:e,importKind:t,useRequire:s,addAsTypeOnly:c}=r,l=function(e,t,n,r){const i=a(e,!0),o=a(e,!1),s=_.get(i),c=_.get(o),l={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};if(1===t&&2===r)return s||(_.set(i,l),l);if(1===r&&(s||c))return s||c;if(c)return c;return _.set(o,l),l}(e,t,s,c);switch(Sn.assert(l.useRequire===s,"(Add new) Tried to add an `import` and a `require` for the same module"),t){case 1:Sn.assert(void 0===l.defaultImport||l.defaultImport.name===i,"(Add new) Default import should be missing or match symbolName"),l.defaultImport={name:i,addAsTypeOnly:o(null==(n=l.defaultImport)?void 0:n.addAsTypeOnly,c)};break;case 0:const e=(l.namedImports||(l.namedImports=new Map)).get(i);l.namedImports.set(i,o(e,c));break;case 3:case 2:Sn.assert(void 0===l.namespaceLikeImport||l.namespaceLikeImport.name===i,"Namespacelike import shoudl be missing or match symbolName"),l.namespaceLikeImport={importKind:t,name:i,addAsTypeOnly:c}}break}case 4:break;default:Sn.assertNever(r,`fix wasn't never - got kind ${r.kind}`)}function o(e,t){return Math.max(e??0,t)}function a(e,t){return`${t?1:0}|${e}`}}}function $te(e,t,n,r){const i=zZ(e,r,n),o=nne(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:function(a,s,c,l){const{fixes:_,computedWithoutCacheCount:u}=ene(a,s,c,!1,t,e,n,r,o,l),d=ane(_,e,t,i,n);return d&&{...d,computedWithoutCacheCount:u}}}}function Kte(e,t,n,r,i,o,a,s,c,l,_,u){let d;n?(d=S0(r,a,s,_,u).get(r.path,n),Sn.assertIsDefined(d,"Some exportInfo should match the specified exportMapKey")):(d=Wo(fv(t.name))?[Zte(e,i,t,s,a)]:Yte(r,e,i,t,o,s,a,_,u),Sn.assertIsDefined(d,"Some exportInfo should match the specified symbol / moduleSymbol"));const p=rne(r,s),f=TT(KX(r,l)),m=Sn.checkDefined(Xte(r,d,s,l,f,p,a,_));return{moduleSpecifier:m.moduleSpecifier,codeAction:Qte(dne({host:a,formatContext:c,preferences:_},r,i,m,!1,s,_))}}function Gte(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=Le(une(e,n.getTypeChecker(),t,a)),c=_ne(e,t,s,n),l=s!==t.text;return c&&Qte(dne({host:r,formatContext:i,preferences:o},e,s,c,l,n,o))}function Xte(e,t,n,r,i,o,a,s){const c=zZ(e,s,a);return ane(ene(t,r,i,o,n,e,a,s).fixes,e,n,c,a)}function Qte({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function Yte(e,t,n,r,i,o,a,s,c){const l=ine(o,a);return S0(e,a,o,s,c).search(e.path,i,(e=>e===n),(e=>{if(qx(e[0].symbol,l(e[0].isFromPackageJson))===t&&e.some((e=>e.moduleSymbol===r||e.symbol.parent===r)))return e}))}function Zte(e,t,n,r,i){var o,a;const s=r.getCompilerOptions(),c=_(r.getTypeChecker(),!1);if(c)return c;const l=null==(a=null==(o=i.getPackageJsonAutoImportProvider)?void 0:o.call(i))?void 0:a.getTypeChecker();return Sn.checkDefined(l&&_(l,!0),"Could not find symbol in specified module for code actions");function _(r,i){const o=k0(n,r,s);if(o&&qx(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:o.exportKind,targetFlags:qx(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&qx(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:qx(e,r).flags,isFromPackageJson:i}:void 0}}function ene(e,t,n,i,o,a,s,c,l=nne(o.getTypeChecker(),a,o.getCompilerOptions()),_){const u=o.getTypeChecker(),d=V(e,l.getImportsForExportInfo),p=void 0!==t&&function(e,t){return S(e,(({declaration:e,importKind:n})=>{var r;if(0!==n)return;const i=function(e){var t,n,r;switch(e.kind){case 260:return null==(t=ft(e.name,HN))?void 0:t.text;case 271:return e.name.text;case 272:return null==(r=ft(null==(n=e.importClause)?void 0:n.namedBindings,fP))?void 0:r.name.text;default:return Sn.assertNever(e)}}(e),o=i&&(null==(r=uh(e))?void 0:r.text);return o?{kind:0,namespacePrefix:i,usagePosition:t,moduleSpecifier:o}:void 0}))}(d,t),f=function(e,t,n,r){let i;for(const t of e){const e=o(t);if(!e)continue;const n=t_(e.importClauseOrBindingPattern);if(4!==e.addAsTypeOnly&&n||4===e.addAsTypeOnly&&!n)return e;i??(i=e)}return i;function o({declaration:e,importKind:i,symbol:o,targetFlags:a}){if(3===i||2===i||271===e.kind)return;if(260===e.kind)return 0!==i&&1!==i||206!==e.name.kind?void 0:{kind:2,importClauseOrBindingPattern:e.name,importKind:i,moduleSpecifier:e.initializer.arguments[0].text,addAsTypeOnly:4};const{importClause:s}=e;if(!s||!Qu(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const _=tne(t,!1,o,a,n,r);return 1===i&&(c||2===_&&l)||0===i&&274===(null==l?void 0:l.kind)?void 0:{kind:2,importClauseOrBindingPattern:s,importKind:i,moduleSpecifier:e.moduleSpecifier.text,addAsTypeOnly:_}}}(d,n,u,o.getCompilerOptions());if(f)return{computedWithoutCacheCount:0,fixes:[...p?[p]:r,f]};const{fixes:m,computedWithoutCacheCount:g=0}=function(e,t,n,r,i,o,a,s,c,l){const _=S(t,(e=>function({declaration:e,importKind:t,symbol:n,targetFlags:r},i,o,a,s){var c;const l=null==(c=uh(e))?void 0:c.text;if(l){return{kind:3,moduleSpecifier:l,importKind:t,addAsTypeOnly:o?4:tne(i,!0,n,r,a,s),useRequire:o}}}(e,o,a,n.getTypeChecker(),n.getCompilerOptions())));return _?{fixes:[_]}:function(e,t,n,r,i,o,a,s,c){const l=Sg(t),_=e.getCompilerOptions(),u=XQ(e,a),d=ine(e,a),p=YQ(GS(_)),f=c?e=>({moduleSpecifiers:dB.tryGetModuleSpecifiersFromCache(e,t,u,s),computedWithoutCache:!1}):(e,n)=>dB.getModuleSpecifiersWithCacheInfo(e,n,_,t,u,s,void 0,!0);let m=0;const g=V(o,((e,o)=>{const a=d(e.isFromPackageJson),{computedWithoutCache:s,moduleSpecifiers:c}=f(e.moduleSymbol,a),u=!!(111551&e.targetFlags),g=tne(r,!0,e.symbol,e.targetFlags,a,_);return m+=s?1:0,G(c,(r=>{var s;if(p&&EM(r))return;if(!u&&l&&void 0!==n)return{kind:1,moduleSpecifier:r,usagePosition:n,exportInfo:e,isReExport:o>0};const c=lne(t,e.exportKind,_);let d;if(void 0!==n&&3===c&&0===e.exportKind){const t=a.resolveExternalModuleSymbol(e.moduleSymbol);let r;t!==e.moduleSymbol&&(r=null==(s=C0(t,a,_))?void 0:s.name),r||(r=Tne(e.moduleSymbol,HS(_),!1)),d={namespacePrefix:r,usagePosition:n}}return{kind:3,moduleSpecifier:r,importKind:c,useRequire:i,addAsTypeOnly:g,exportInfo:e,isReExport:o>0,qualification:d}}))}));return{computedWithoutCacheCount:m,fixes:g}}(n,r,i,o,a,e,s,c,l)}(e,d,o,a,t,n,i,s,c,_);return{computedWithoutCacheCount:g,fixes:[...p?[p]:r,...m]}}function tne(e,t,n,r,i,o){return e?t&&2===o.importsNotUsedAsValues?2:!ZS(o)||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function nne(e,t,n){let i;for(const n of t.imports){const t=dh(n);if(Pg(t.parent)){const r=e.resolveExternalModuleName(n);r&&(i||(i=ot())).add(EB(r),t.parent)}else if(272===t.kind||271===t.kind){const r=e.getSymbolAtLocation(n);r&&(i||(i=ot())).add(EB(r),t)}}return{getImportsForExportInfo:({moduleSymbol:e,exportKind:o,targetFlags:a,symbol:s})=>{if(!(111551&a)&&Sg(t))return r;const c=null==i?void 0:i.get(EB(e));if(!c)return r;const l=lne(t,o,n);return c.map((e=>({declaration:e,importKind:l,symbol:s,targetFlags:a})))}}}function rne(e,t){if(!Sg(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;const n=t.getCompilerOptions();if(n.configFile)return $S(n)<5;if(1===e.impliedNodeFormat)return!0;if(99===e.impliedNodeFormat)return!1;for(const n of t.getSourceFiles())if(n!==e&&Sg(n)&&!t.isSourceFileFromExternalLibrary(n)){if(n.commonJsModuleIndicator&&!n.externalModuleIndicator)return!0;if(n.externalModuleIndicator&&!n.commonJsModuleIndicator)return!1}return!0}function ine(e,t){return Ct((n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function one(e,t,n,r){const i=KX(e.sourceFile,n);let o;if(t===Ea._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function({sourceFile:e,program:t,host:n,preferences:r},i){const o=t.getTypeChecker(),a=function(e,t){const n=HN(e)?t.getSymbolAtLocation(e):void 0;if(tS(n))return n;const{parent:r}=e;if(Mu(r)&&r.tagName===e||EP(r)){const n=t.resolveName(t.getJsxNamespace(r),Mu(r)?e:r,111551,!1);if(tS(n))return n}return}(i,o);if(!a)return;const s=o.getAliasedSymbol(a),c=a.name,l=[{symbol:a,moduleSymbol:s,moduleFileName:void 0,exportKind:3,targetFlags:s.flags,isFromPackageJson:!1}],_=rne(e,t);return ene(l,void 0,!1,_,t,e,n,r).fixes.map((e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=ft(i,HN))?void 0:t.text}}))}(e,i);else{if(!HN(i))return;if(t===Ea._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=Le(une(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=_ne(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=function({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return V(une(e,s,o,c),(s=>{if("default"===s)return;const c=TT(o),l=rne(e,t),_=function(e,t,n,r,i,o,a,s,c){var l;const _=ot(),u=zZ(i,c,s),d=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),p=Ct((e=>XQ(e?s.getPackageJsonAutoImportProvider():o,s)));function f(e,t,n,r,o,a){const s=p(a);if(t&&v0(o,i,t,c,u,s,d)||!t&&u.allowsImportingAmbientModule(e,s)){const i=o.getTypeChecker();_.add(XY(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:qx(n,i).flags,isFromPackageJson:a})}}return b0(o,s,c,a,((i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const l=a.getCompilerOptions(),_=k0(i,c,l);_&&(_.name===e||Tne(i,HS(l),t)===e)&&kne(_.resolvedSymbol,n)&&f(i,o,_.symbol,_.exportKind,a,s);const u=c.tryGetMemberInModuleExportsAndProperties(e,i);u&&kne(u,n)&&f(i,o,u,0,a,s)})),_}(s,pg(o),UG(o),n,e,t,a,r,i);return $e(H(_.values(),(n=>ene(n,o.getStart(e),c,l,t,e,r,i).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text})))}))}(e,i,r)}const a=zZ(e.sourceFile,e.preferences,e.host);return o&&function(e,t,n,r,i){const o=e=>pa(e,i.getCurrentDirectory(),xv(i));return Te(e,((e,i)=>Vt(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||It(e.fix.kind,i.fix.kind)||sne(e.fix,i.fix,t,n,r.allowsImportingSpecifier,o)))}(o,e.sourceFile,e.program,a,e.host)}function ane(e,t,n,r,i){if(re(e))return 0===e[0].kind||2===e[0].kind?e[0]:e.reduce(((e,o)=>-1===sne(o,e,t,n,r.allowsImportingSpecifier,(e=>pa(e,i.getCurrentDirectory(),xv(i))))?o:e))}function sne(e,t,n,r,i,o){return 0!==e.kind&&0!==t.kind?Vt(i(t.moduleSpecifier),i(e.moduleSpecifier))||function(e,t,n,r){return an(e,"node:")&&!an(t,"node:")?s0(n,r)?-1:1:an(t,"node:")&&!an(e,"node:")?s0(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||Vt(cne(e,n,r.getCompilerOptions(),o),cne(t,n,r.getCompilerOptions(),o))||Qk(e.moduleSpecifier,t.moduleSpecifier):0}function cne(e,t,n,r){var i;if(e.isReExport&&(null==(i=e.exportInfo)?void 0:i.moduleFileName)&&2===GS(n)&&"index"===ea(e.exportInfo.moduleFileName,[".js",".jsx",".d.ts",".ts",".tsx"],!0)){const n=r(Zo(e.exportInfo.moduleFileName));return an(t.path,n)}return!1}function lne(e,t,n,r){if(n.verbatimModuleSyntax&&(1===$S(n)||1===e.impliedNodeFormat))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return function(e,t,n){const r=ik(t),i=Tg(e);if(!i&&$S(t)>=5)return r?1:2;if(i)return tO(e)||n?r?1:2:3;for(const t of e.statements)if(aP(t)&&!Ip(t.moduleReference))return 3;return r?1:3}(e,n,!!r);case 3:return function(e,t,n){if(ik(t))return 1;const r=$S(t);switch(r){case 2:case 1:case 3:return Tg(e)&&(tO(e)||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return 99===e.impliedNodeFormat?2:3;default:return Sn.assertNever(r,`Unexpected moduleKind ${r}`)}}(e,n,!!r);default:return Sn.assertNever(t)}}function _ne(e,t,n,r){const i=r.getTypeChecker(),o=i.resolveName(n,t,111551,!0);if(!o)return;const a=i.getTypeOnlyAliasDeclaration(o);return a&&Cp(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function une(e,t,n,r){const i=n.parent;if((Mu(i)||FP(i))&&i.tagName===n&&u0(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(mv(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||re(r.declarations,r_)&&!(111551&r.flags)}(r,n,t)){return!mv(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,r]:[r]}}return[n.text]}function dne(e,t,n,i,o,a,s){let c;const l=Pfe.ChangeTracker.with(e,(e=>{c=function(e,t,n,i,o,a,s){const c=rY(t,s);switch(i.kind){case 0:return mne(e,t,i),[Ea.Change_0_to_1,n,`${i.namespacePrefix}.${n}`];case 1:return gne(e,t,i,c),[Ea.Change_0_to_1,n,hne(i.moduleSpecifier,c)+n];case 2:{const{importClauseOrBindingPattern:a,importKind:c,addAsTypeOnly:l,moduleSpecifier:_}=i;fne(e,t,a,1===c?{name:n,addAsTypeOnly:l}:void 0,0===c?[{name:n,addAsTypeOnly:l}]:r,s);const u=fv(_);return o?[Ea.Import_0_from_1,n,u]:[Ea.Update_import_from_0,u]}case 3:{const{importKind:r,moduleSpecifier:l,addAsTypeOnly:_,useRequire:u,qualification:d}=i;return pY(e,t,(u?xne:bne)(l,c,1===r?{name:n,addAsTypeOnly:_}:void 0,0===r?[{name:n,addAsTypeOnly:_}]:void 0,2===r||3===r?{importKind:r,name:(null==d?void 0:d.namespacePrefix)||n,addAsTypeOnly:_}:void 0,a.getCompilerOptions(),s),!0,s),d&&mne(e,t,d),o?[Ea.Import_0_from_1,n,l]:[Ea.Add_import_from_0,l]}case 4:{const{typeOnlyAliasDeclaration:r}=i,o=function(e,t,n,r,i){const o=n.getCompilerOptions(),a=ZS(o);switch(t.kind){case 276:if(t.isTypeOnly){const n=Mde.detectImportSpecifierSorting(t.parent.elements,i);if(t.parent.elements.length>1&&n){const o=AC.updateImportSpecifier(t,!1,t.propertyName,t.name),a=Mde.getOrganizeImportsComparer(i,2===n),s=Mde.getImportSpecifierInsertionIndex(t.parent.elements,o,a);if(t.parent.elements.indexOf(t)!==s)return e.delete(r,t),e.insertImportSpecifierAtIndex(r,o,t.parent,s),t}return e.deleteRange(r,t.getFirstToken()),t}return Sn.assert(t.parent.parent.isTypeOnly),s(t.parent.parent),t.parent.parent;case 273:return s(t),t;case 274:return s(t.parent),t.parent;case 271:return e.deleteRange(r,t.getChildAt(1)),t;default:Sn.failBadSyntaxKind(t)}function s(s){var c;if(e.delete(r,fY(s,r)),!o.allowImportingTsExtensions){const t=uh(s.parent),i=t&&(null==(c=n.getResolvedModule(r,t.text,NV(r,t)))?void 0:c.resolvedModule);if(null==i?void 0:i.resolvedUsingTsExtension){const n=ha(t.text,uU(t.text,o));e.replaceNode(r,t,AC.createStringLiteral(n))}}if(a){const n=ft(s.namedBindings,gP);if(n&&n.elements.length>1){Mde.detectImportSpecifierSorting(n.elements,i)&&276===t.kind&&0!==n.elements.indexOf(t)&&(e.delete(r,t),e.insertImportSpecifierAtIndex(r,t,n,0));for(const i of n.elements)i===t||i.isTypeOnly||e.insertModifierBefore(r,156,i)}}}}(e,r,a,t,s);return 276===o.kind?[Ea.Remove_type_from_import_of_0_from_1,n,pne(o.parent.parent)]:[Ea.Remove_type_from_import_declaration_from_0,pne(o)]}default:return Sn.assertNever(i,`Unexpected fix kind ${i.kind}`)}}(e,t,n,i,o,a,s)}));return H5(zte,l,c,qte,Ea.Add_all_missing_imports)}function pne(e){var t,n;return 271===e.kind?(null==(n=ft(null==(t=ft(e.moduleReference,CP))?void 0:t.expression,Qu))?void 0:n.text)||e.moduleReference.getText():mt(e.parent.moduleSpecifier,FN).text}function fne(e,t,n,r,i,o){var a;if(206===n.kind){r&&l(n,r.name,"default");for(const e of i)l(n,e.name,void 0);return}const s=n.isTypeOnly&&re([r,...i],(e=>4===(null==e?void 0:e.addAsTypeOnly))),c=n.namedBindings&&(null==(a=ft(n.namedBindings,gP))?void 0:a.elements);if(r&&(Sn.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),AC.createIdentifier(r.name),{suffix:", "})),i.length){let r;if("boolean"==typeof o.organizeImportsIgnoreCase)r=o.organizeImportsIgnoreCase;else if(c){const e=Mde.detectImportSpecifierSorting(c,o);3!==e&&(r=2===e)}void 0===r&&(r=2===Mde.detectSorting(t,o));const a=Mde.getOrganizeImportsComparer(o,r),l=we(i.map((e=>AC.createImportSpecifier((!n.isTypeOnly||s)&&vne(e,o),void 0,AC.createIdentifier(e.name)))),((e,t)=>Mde.compareImportOrExportSpecifiers(e,t,a))),_=(null==c?void 0:c.length)&&Mde.detectImportSpecifierSorting(c,o);if(!_||r&&1===_){if(null==c?void 0:c.length)for(const n of l)e.insertNodeInListAfter(t,Ie(c),n,c);else if(l.length){const r=AC.createNamedImports(l);n.namedBindings?e.replaceNode(t,n.namedBindings,r):e.insertNodeAfter(t,Sn.checkDefined(n.name,"Import clause must have either named imports or a default import"),r)}}else for(const r of l){const i=s&&!r.isTypeOnly?0:Mde.getImportSpecifierInsertionIndex(c,r,a);e.insertImportSpecifierAtIndex(t,r,n.namedBindings,i)}}if(s&&(e.delete(t,fY(n,t)),c))for(const n of c)e.insertModifierBefore(t,156,n);function l(n,r,i){const o=AC.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,Ie(n.elements),o):e.replaceNode(t,n,AC.createObjectBindingPattern([o]))}}function mne(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function gne(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,hne(n,i))}function hne(e,t){const n=iY(t);return`import(${n}${e}${n}).`}function yne({addAsTypeOnly:e}){return 2===e}function vne(e,t){return yne(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function bne(e,t,n,r,i,o,a){const s=tY(e,t);let c;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||yne(n))&&N(r,yne)||(o.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!re(r,(e=>4===e.addAsTypeOnly));c=ye(c,eY(n&&AC.createIdentifier(n.name),null==r?void 0:r.map((e=>AC.createImportSpecifier(!i&&vne(e,a),void 0,AC.createIdentifier(e.name)))),e,t,i))}if(i){c=ye(c,3===i.importKind?AC.createImportEqualsDeclaration(void 0,vne(i,a),AC.createIdentifier(i.name),AC.createExternalModuleReference(s)):AC.createImportDeclaration(void 0,AC.createImportClause(vne(i,a),void 0,AC.createNamespaceImport(AC.createIdentifier(i.name))),s,void 0))}return Sn.checkDefined(c)}function xne(e,t,n,r,i){const o=tY(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e})=>AC.createBindingElement(void 0,void 0,e))))||[];n&&e.unshift(AC.createBindingElement(void 0,"default",n.name));a=ye(a,Sne(AC.createObjectBindingPattern(e),o))}if(i){a=ye(a,Sne(i.name,o))}return Sn.checkDefined(a)}function Sne(e,t){return AC.createVariableStatement(void 0,AC.createVariableDeclarationList([AC.createVariableDeclaration("string"==typeof e?AC.createIdentifier(e):e,void 0,void 0,AC.createCallExpression(AC.createIdentifier("require"),void 0,[t]))],2))}function kne({declarations:e},t){return re(e,(e=>!!(qG(e)&t)))}function Tne(e,t,n){return Cne(Yk(fv(e.name)),t,n)}function Cne(e,t,n){const r=ea(Kt(e,"/index"));let i="",o=!0;const a=r.charCodeAt(0);As(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let e=1;e<r.length;e++){const n=r.charCodeAt(e),a=Is(n,t);if(a){let e=String.fromCharCode(n);o||(e=e.toUpperCase()),i+=e}o=a}return ky(i)?`_${i}`:i||"_"}var wne,Nne,Dne=g({"src/services/codefixes/importFixes.ts"(){zge(),Ece(),zte="import",qte="fixMissingImport",G5({errorCodes:Ute=[Ea.Cannot_find_name_0.code,Ea.Cannot_find_name_0_Did_you_mean_1.code,Ea.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Ea.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Ea.Cannot_find_namespace_0.code,Ea._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,Ea._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,Ea.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,Ea._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code],getCodeActions(e){const{errorCode:t,preferences:n,sourceFile:r,span:i,program:o}=e,a=one(e,t,i.start,!0);if(a)return a.map((({fix:t,symbolName:i,errorIdentifierText:a})=>dne(e,r,i,t,i!==a,o,n)))},fixIds:[qte],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=Hte(t,n,!0,r,i,o);return n9(e,Ute,(t=>a.addImportFromDiagnostic(t,e))),Z5(Pfe.ChangeTracker.with(e,a.writeFixes))}})}});function Fne(e,t,n){const r=D(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=D(r.relatedInformation,(e=>e.code===Ea.This_type_parameter_might_need_an_extends_0_constraint.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;let o=Hae(i.file,oc(i.start,i.length));if(void 0!==o&&(HN(o)&&lD(o.parent)&&(o=o.parent),lD(o))){if(qD(o.parent))return;const r=KX(t,n.start),a=function(e,t){if(j_(t.parent))return e.getTypeArgumentConstraint(t.parent);const n=au(t)?e.getContextualType(t):void 0;return n||e.getTypeAtLocation(t)}(e.getTypeChecker(),r)||function(e){const[t,n]=kV(e,"\n",0).match(/`extends (.*)`/)||[];return n}(i.messageText);return{constraint:a,declaration:o,token:r}}}function Pne(e,t,n,r,i,o){const{declaration:a,constraint:s}=o,c=t.getTypeChecker();if(dt(s))e.insertText(i,a.name.end,` extends ${s}`);else{const o=HS(t.getCompilerOptions()),l=Nae({program:t,host:r}),_=Wte(i,t,n,r),u=Aae(c,_,s,void 0,o,void 0,l);u&&(e.replaceNode(i,a,AC.updateTypeParameterDeclaration(a,void 0,a.name,u,a.default)),_.writeFixes(e))}}var Ene,Ane,Ine,One,Lne,jne=g({"src/services/codefixes/fixAddMissingConstraint.ts"(){zge(),Ece(),wne="addMissingConstraint",G5({errorCodes:Nne=[Ea.Type_0_is_not_comparable_to_type_1.code,Ea.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Ea.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,Ea.Type_0_is_not_assignable_to_type_1.code,Ea.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,Ea.Property_0_is_incompatible_with_index_signature.code,Ea.Property_0_in_type_1_is_not_assignable_to_type_2.code,Ea.Type_0_does_not_satisfy_the_constraint_1.code],getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=Fne(r,t,n);if(void 0===a)return;const s=Pfe.ChangeTracker.with(e,(e=>Pne(e,r,i,o,t,a)));return[H5(wne,s,Ea.Add_extends_constraint,wne,Ea.Add_extends_constraint_to_all_type_parameters)]},fixIds:[wne],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Map;return Z5(Pfe.ChangeTracker.with(e,(o=>{n9(e,Nne,(e=>{const a=Fne(t,e.file,oc(e.start,e.length));if(a&&iS(i,PB(a.declaration)))return Pne(o,t,n,r,e.file,a)}))})))}})}});function Mne(e,t,n,i){switch(n){case Ea.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case Ea.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case Ea.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case Ea.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case Ea.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(e,t,n){const i=Bne(t,n);if(Sg(t))return void e.addJSDocTags(t,i,[AC.createJSDocOverrideTag(AC.createIdentifier("override"))]);const o=i.modifiers||r,a=D(o,eD),s=D(o,tD),c=D(o,(e=>TQ(e.kind))),l=F(o,uD),_=s?s.end:a?a.end:c?c.end:l?ys(t.text,l.end):i.getStart(t),u=c||a||s?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,_,164,u)}(e,t.sourceFile,i);case Ea.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case Ea.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case Ea.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case Ea.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(e,t,n){const r=Bne(t,n);if(Sg(t))return void e.filterJSDocTags(t,r,dn(xE));const i=D(r.modifiers,nD);Sn.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,i);default:Sn.fail("Unexpected error code: "+n)}}function Rne(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return dc(e,e.parent);default:return!1}}function Bne(e,t){const n=kc(KX(e,t),(e=>w_(e)?"quit":Rne(e)));return Sn.assert(n&&Rne(n)),n}var Jne,zne,qne=g({"src/services/codefixes/fixOverrideModifier.ts"(){zge(),Ece(),Ene="fixOverrideModifier",Ane="fixAddOverrideModifier",Ine="fixRemoveOverrideModifier",One=[Ea.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,Ea.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,Ea.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,Ea.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,Ea.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,Ea.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,Ea.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,Ea.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,Ea.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Lne={[Ea.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Ea.Add_override_modifier,fixId:Ane,fixAllDescriptions:Ea.Add_all_missing_override_modifiers},[Ea.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Ea.Add_override_modifier,fixId:Ane,fixAllDescriptions:Ea.Add_all_missing_override_modifiers},[Ea.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:Ea.Remove_override_modifier,fixId:Ine,fixAllDescriptions:Ea.Remove_all_unnecessary_override_modifiers},[Ea.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:Ea.Remove_override_modifier,fixId:Ine,fixAllDescriptions:Ea.Remove_override_modifier},[Ea.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:Ea.Add_override_modifier,fixId:Ane,fixAllDescriptions:Ea.Add_all_missing_override_modifiers},[Ea.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:Ea.Add_override_modifier,fixId:Ane,fixAllDescriptions:Ea.Add_all_missing_override_modifiers},[Ea.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:Ea.Add_override_modifier,fixId:Ane,fixAllDescriptions:Ea.Remove_all_unnecessary_override_modifiers},[Ea.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:Ea.Remove_override_modifier,fixId:Ine,fixAllDescriptions:Ea.Remove_all_unnecessary_override_modifiers},[Ea.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:Ea.Remove_override_modifier,fixId:Ine,fixAllDescriptions:Ea.Remove_all_unnecessary_override_modifiers}},G5({errorCodes:One,getCodeActions:function(e){const{errorCode:t,span:n}=e,i=Lne[t];if(!i)return r;const{descriptions:o,fixId:a,fixAllDescriptions:s}=i,c=Pfe.ChangeTracker.with(e,(r=>Mne(r,e,t,n.start)));return[$5(Ene,c,o,a,s)]},fixIds:[Ene,Ane,Ine],getAllCodeActions:e=>t9(e,One,((t,n)=>{const{code:r,start:i}=n,o=Lne[r];o&&o.fixId===e.fixId&&Mne(t,e,r,i)}))})}});function Une(e,t,n,r){const i=rY(t,r),o=AC.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,Nl(n)?AC.createElementAccessChain(n.expression,n.questionDotToken,o):AC.createElementAccessExpression(n.expression,o))}function Vne(e,t){return mt(KX(e,t).parent,YD)}var Wne,Hne,$ne=g({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){zge(),Ece(),Jne="fixNoPropertyAccessFromIndexSignature",G5({errorCodes:zne=[Ea.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],fixIds:[Jne],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=Vne(t,n.start),o=Pfe.ChangeTracker.with(e,(t=>Une(t,e.sourceFile,i,r)));return[H5(Jne,o,[Ea.Use_element_access_for_0,i.name.text],Jne,Ea.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>t9(e,zne,((t,n)=>Une(t,n.file,Vne(n.file,n.start),e.preferences)))})}});function Kne(e,t,n,r){const i=KX(t,n);if(!yX(i))return;const o=$m(i,!1,!1);if((QF(o)||oF(o))&&!$P($m(o,!1,!1))){const n=Sn.checkDefined(OX(o,100,t)),{name:i}=o,a=Sn.checkDefined(o.body);if(oF(o)){if(i&&mue.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[Ea.Convert_function_expression_0_to_arrow_function,i?i.text:BG]}return e.replaceNode(t,n,AC.createToken(87)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[Ea.Convert_function_declaration_0_to_arrow_function,i.text]}}var Gne,Xne,Qne=g({"src/services/codefixes/fixImplicitThis.ts"(){zge(),Ece(),Wne="fixImplicitThis",G5({errorCodes:Hne=[Ea.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],getCodeActions:function(e){const{sourceFile:t,program:n,span:i}=e;let o;const a=Pfe.ChangeTracker.with(e,(e=>{o=Kne(e,t,i.start,n.getTypeChecker())}));return o?[H5(Wne,a,o,Wne,Ea.Fix_all_implicit_this_errors)]:r},fixIds:[Wne],getAllCodeActions:e=>t9(e,Hne,((t,n)=>{Kne(t,n.file,n.start,e.program.getTypeChecker())}))})}});function Yne(e,t,n){var r,i;const o=KX(e,t);if(HN(o)){const t=kc(o,sP);if(void 0===t)return;const a=FN(t.moduleSpecifier)?t.moduleSpecifier.text:void 0;if(void 0===a)return;const s=null==(r=n.getResolvedModule(e,a,void 0))?void 0:r.resolvedModule;if(void 0===s)return;const c=n.getSourceFile(s.resolvedFileName);if(void 0===c||d0(n,c))return;const l=null==(i=ft(c.symbol.valueDeclaration,Tu))?void 0:i.locals;if(void 0===l)return;const _=l.get(o.escapedText);if(void 0===_)return;const u=function(e){if(void 0===e.valueDeclaration)return De(e.declarations);const t=e.valueDeclaration,n=GF(t)?ft(t.parent.parent,EF):void 0;return n&&1===v(n.declarationList.declarations)?n:t}(_);if(void 0===u)return;return{exportName:{node:o,isTypeOnly:QT(u)},node:u,moduleSourceFile:c,moduleSpecifier:a}}}function Zne(e,t,n,r,i){v(r)&&(i?tre(e,t,n,i,r):nre(e,t,n,r))}function ere(e,t){return F(e.statements,(e=>vP(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)))}function tre(e,t,n,r,i){const o=r.exportClause&&bP(r.exportClause)?r.exportClause.elements:AC.createNodeArray([]),a=!(r.isTypeOnly||!YS(t.getCompilerOptions())&&!D(o,(e=>e.isTypeOnly)));e.replaceNode(n,r,AC.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,AC.createNamedExports(AC.createNodeArray([...o,...rre(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function nre(e,t,n,r){e.insertNodeAtEndOfScope(n,n,AC.createExportDeclaration(void 0,!1,AC.createNamedExports(rre(r,YS(t.getCompilerOptions()))),void 0,void 0))}function rre(e,t){return AC.createNodeArray(J(e,(e=>AC.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node))))}var ire,ore=g({"src/services/codefixes/fixImportNonExportedMember.ts"(){zge(),Ece(),Gne="fixImportNonExportedMember",G5({errorCodes:Xne=[Ea.Module_0_declares_1_locally_but_it_is_not_exported.code],fixIds:[Gne],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=Yne(t,n.start,r);if(void 0===i)return;const o=Pfe.ChangeTracker.with(e,(e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=ere(i,n.isTypeOnly);o?tre(e,t,i,o,[n]):YT(r)?e.insertExportModifier(i,r):nre(e,t,i,[n])}(e,r,i)));return[H5(Gne,o,[Ea.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],Gne,Ea.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return Z5(Pfe.ChangeTracker.with(e,(n=>{const r=new Map;n9(e,Xne,(e=>{const i=Yne(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===ere(s,o.isTypeOnly)&&YT(a))n.insertExportModifier(s,a);else{const e=r.get(s)||{typeOnlyExports:[],exports:[]};o.isTypeOnly?e.typeOnlyExports.push(o):e.exports.push(o),r.set(s,e)}})),r.forEach(((e,r)=>{const i=ere(r,!0);i&&i.isTypeOnly?(Zne(n,t,r,e.typeOnlyExports,i),Zne(n,t,r,e.exports,ere(r,!1))):Zne(n,t,r,[...e.exports,...e.typeOnlyExports],i)}))})))}})}});var are,sre,cre=g({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){zge(),Ece(),ire="fixIncorrectNamedTupleSyntax",G5({errorCodes:[Ea.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,Ea.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=function(e,t){return kc(KX(e,t),(e=>202===e.kind))}(t,n.start),i=Pfe.ChangeTracker.with(e,(e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;190===r.kind||191===r.kind||196===r.kind;)190===r.kind?i=!0:191===r.kind&&(o=!0),r=r.type;const a=AC.updateNamedTupleMember(n,n.dotDotDotToken||(o?AC.createToken(26):void 0),n.name,n.questionToken||(i?AC.createToken(58):void 0),r);a!==n&&e.replaceNode(t,n,a)}(e,t,r)));return[H5(ire,i,Ea.Move_labeled_tuple_element_modifiers_to_labels,ire,Ea.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[ire]})}});function lre(e,t,n,r){const i=KX(e,t),o=i.parent;if((r===Ea.No_overload_matches_this_call.code||r===Ea.Type_0_is_not_assignable_to_type_1.code)&&!IP(o))return;const a=n.program.getTypeChecker();let s;if(YD(o)&&o.name===i){Sn.assert(Cl(i),"Expected an identifier for spelling (property access)");let e=a.getTypeAtLocation(o.expression);64&o.flags&&(e=a.getNonNullableType(e)),s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(pF(o)&&103===o.operatorToken.kind&&o.left===i&&$N(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(sD(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(hP(o)&&o.name===i){Sn.assertNode(i,HN,"Expected an identifier for spelling (import)");const t=function(e,t,n){var r;if(!n||!Qu(n.moduleSpecifier))return;const i=null==(r=t.program.getResolvedModule(e,n.moduleSpecifier.text,NV(e,n.moduleSpecifier)))?void 0:r.resolvedModule;return i?t.program.getSourceFile(i.resolvedFileName):void 0}(e,n,kc(i,sP));t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(IP(o)&&o.name===i){Sn.assertNode(i,HN,"Expected an identifier for JSX attribute");const e=kc(i,Mu),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(hb(o)&&C_(o)&&o.name===i){const e=kc(i,w_),t=e?_y(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(Yp(i),n))}else{const e=UG(i),t=Yp(i);Sn.assert(void 0!==t,"name should be defined"),s=a.getSuggestedSymbolForNonexistentSymbol(i,t,function(e){let t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(e))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}function _re(e,t,n,r,i){const o=Pc(r);if(!Os(o,i)&&YD(n.parent)){const i=r.valueDeclaration;i&&Lc(i)&&$N(i.name)?e.replaceNode(t,n,AC.createIdentifier(o)):e.replaceNode(t,n.parent,AC.createElementAccessExpression(n.parent.expression,AC.createStringLiteral(o)))}else e.replaceNode(t,n,AC.createIdentifier(o))}var ure,dre,pre,fre,mre,gre=g({"src/services/codefixes/fixSpelling.ts"(){zge(),Ece(),are="fixSpelling",G5({errorCodes:sre=[Ea.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Ea.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,Ea.Cannot_find_name_0_Did_you_mean_1.code,Ea.Could_not_find_name_0_Did_you_mean_1.code,Ea.Cannot_find_namespace_0_Did_you_mean_1.code,Ea.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Ea.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Ea._0_has_no_exported_member_named_1_Did_you_mean_2.code,Ea.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,Ea.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,Ea.No_overload_matches_this_call.code,Ea.Type_0_is_not_assignable_to_type_1.code],getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=lre(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=HS(e.host.getCompilationSettings());return[H5("spelling",Pfe.ChangeTracker.with(e,(e=>_re(e,t,i,o,a))),[Ea.Change_spelling_to_0,Pc(o)],are,Ea.Fix_all_detected_spelling_errors)]},fixIds:[are],getAllCodeActions:e=>t9(e,sre,((t,n)=>{const r=lre(n.file,n.start,e,n.code),i=HS(e.host.getCompilationSettings());r&&_re(t,e.sourceFile,r.node,r.suggestedSymbol,i)}))})}});function hre(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=op([r]);return e.createAnonymousType(void 0,i,[],[],[])}function yre(e,t,n,r){if(!t.body||!PF(t.body)||1!==v(t.body.statements))return;const i=Pe(t.body.statements);if(IF(i)&&vre(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(WF(i)&&IF(i.statement)){const o=AC.createObjectLiteralExpression([AC.createPropertyAssignment(i.label,i.statement.expression)]);if(vre(e,t,hre(e,i.label,i.statement.expression),n,r))return aF(t)?{declaration:t,kind:1,expression:o,statement:i,commentSource:i.statement.expression}:{declaration:t,kind:0,expression:o,statement:i,commentSource:i.statement.expression}}else if(PF(i)&&1===v(i.statements)){const o=Pe(i.statements);if(WF(o)&&IF(o.statement)){const a=AC.createObjectLiteralExpression([AC.createPropertyAssignment(o.label,o.statement.expression)]);if(vre(e,t,hre(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function vre(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){fb(t,1024)&&(n=e.createPromiseType(n));const i=e.createSignature(t,r.typeParameters,r.thisParameter,r.parameters,n,void 0,r.minArgumentCount,r.flags);n=e.createAnonymousType(void 0,op(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function bre(e,t,n,r){const i=KX(t,n);if(!i.parent)return;const o=kc(i.parent,b_);switch(r){case Ea.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&bX(o.type,i)))return;return yre(e,o,e.getTypeFromTypeNode(o.type),!1);case Ea.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!eF(o.parent)||!o.body)return;const t=o.parent.arguments.indexOf(o);if(-1===t)return;const n=e.getContextualTypeForArgumentAtIndex(o.parent,t);if(!n)return;return yre(e,o,n,!0);case Ea.Type_0_is_not_assignable_to_type_1.code:if(!ey(i)||!km(i.parent)&&!IP(i.parent))return;const r=function(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(jP(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}(i.parent);if(!r||!b_(r)||!r.body)return;return yre(e,r,e.getTypeAtLocation(i.parent),!0)}}function xre(e,t,n,r){iZ(n);const i=PZ(t);e.replaceNode(t,r,AC.createReturnStatement(n),{leadingTriviaOption:Pfe.LeadingTriviaOption.Exclude,trailingTriviaOption:Pfe.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function Sre(e,t,n,r,i,o){const a=o||hZ(r)?AC.createParenthesizedExpression(r):r;iZ(i),sZ(i,a),e.replaceNode(t,n.body,a)}function kre(e,t,n,r){e.replaceNode(t,n.body,AC.createParenthesizedExpression(r))}function Tre(e,t,n){const r=Pfe.ChangeTracker.with(e,(r=>xre(r,e.sourceFile,t,n)));return H5(ure,r,Ea.Add_a_return_statement,dre,Ea.Add_all_missing_return_statement)}function Cre(e,t,n){const r=Pfe.ChangeTracker.with(e,(r=>kre(r,e.sourceFile,t,n)));return H5(ure,r,Ea.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,fre,Ea.Wrap_all_object_literal_with_parentheses)}var wre,Nre,Dre,Fre,Pre,Ere=g({"src/services/codefixes/returnValueCorrect.ts"(){zge(),Ece(),ure="returnValueCorrect",dre="fixAddReturnStatement",pre="fixRemoveBracesFromArrowFunctionBody",fre="fixWrapTheBlockWithParen",G5({errorCodes:mre=[Ea.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,Ea.Type_0_is_not_assignable_to_type_1.code,Ea.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],fixIds:[dre,pre,fre],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=bre(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?he([Tre(e,o.expression,o.statement)],aF(o.declaration)?function(e,t,n,r){const i=Pfe.ChangeTracker.with(e,(i=>Sre(i,e.sourceFile,t,n,r,!1)));return H5(ure,i,Ea.Remove_braces_from_arrow_function_body,pre,Ea.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[Cre(e,o.declaration,o.expression)]},getAllCodeActions:e=>t9(e,mre,((t,n)=>{const r=bre(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case dre:xre(t,n.file,r.expression,r.statement);break;case pre:if(!aF(r.declaration))return;Sre(t,n.file,r.declaration,r.expression,r.commentSource,!1);break;case fre:if(!aF(r.declaration))return;kre(t,n.file,r.declaration,r.expression);break;default:Sn.fail(JSON.stringify(e.fixId))}}))})}});function Are(e,t,n,i,o){var a;const s=KX(e,t),c=s.parent;if(n===Ea.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==s.kind||!QD(c)||!eF(c.parent))return;const e=P(c.parent.arguments,(e=>e===c));if(e<0)return;const t=i.getResolvedSignature(c.parent);if(!(t&&t.declaration&&t.parameters[e]))return;const n=t.parameters[e].valueDeclaration;if(!(n&&_D(n)&&HN(n.name)))return;const r=$e(i.getUnmatchedProperties(i.getTypeAtLocation(c),i.getParameterType(t,e),!1,!1));if(!v(r))return;return{kind:3,token:n.name,properties:r,parentDeclaration:c}}if(!Cl(s))return;if(HN(s)&&Hu(c)&&c.initializer&&QD(c.initializer)){const e=i.getContextualType(s)||i.getTypeAtLocation(s),t=$e(i.getUnmatchedProperties(i.getTypeAtLocation(c.initializer),e,!1,!1));if(!v(t))return;return{kind:3,token:s,properties:t,parentDeclaration:c.initializer}}if(HN(s)&&Mu(s.parent)){const e=function(e,t,n){const i=e.getContextualType(n.attributes);if(void 0===i)return r;const o=i.getProperties();if(!v(o))return r;const a=new Set;for(const t of n.attributes.properties)if(IP(t)&&a.add(cC(t.name)),LP(t)){const n=e.getTypeAtLocation(t.expression);for(const e of n.getProperties())a.add(e.escapedName)}return M(o,(e=>Os(e.name,t,1)&&!(16777216&e.flags||48&Jx(e)||a.has(e.escapedName))))}(i,HS(o.getCompilerOptions()),s.parent);if(!v(e))return;return{kind:4,token:s,attributes:e,parentDeclaration:s.parent}}if(HN(s)){const t=null==(a=i.getContextualType(s))?void 0:a.getNonNullableType();if(t&&16&Zx(t)){const n=De(i.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:s,signature:n,sourceFile:e,parentDeclaration:Hre(s)}}if(eF(c)&&c.expression===s)return{kind:2,token:s,call:c,sourceFile:e,modifierFlags:0,parentDeclaration:Hre(s)}}if(!YD(c))return;const l=WQ(i.getTypeAtLocation(c.expression)),_=l.symbol;if(!_||!_.declarations)return;if(HN(s)&&eF(c.parent)){const t=D(_.declarations,nP),n=null==t?void 0:t.getSourceFile();if(t&&n&&!d0(o,n))return{kind:2,token:s,call:c.parent,sourceFile:e,modifierFlags:32,parentDeclaration:t};const r=D(_.declarations,$P);if(e.commonJsModuleIndicator)return;if(r&&!d0(o,r))return{kind:2,token:s,call:c.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const u=D(_.declarations,w_);if(!u&&$N(s))return;const d=u||D(_.declarations,(e=>ZF(e)||DD(e)));if(d&&!d0(o,d.getSourceFile())){const e=!DD(d)&&(l.target||l)!==i.getDeclaredTypeOfSymbol(_);if(e&&($N(s)||ZF(d)))return;const t=d.getSourceFile(),n=DD(d)?0:(e?256:0)|(r0(s.text)?2:0),r=Sg(t);return{kind:0,token:s,call:ft(c.parent,eF),modifierFlags:n,parentDeclaration:d,declSourceFile:t,isJSFile:r}}const p=D(_.declarations,tP);return!p||1056&l.flags||$N(s)||d0(o,p.getSourceFile())?void 0:{kind:1,token:s,parentDeclaration:p}}function Ire(e,t){return t.isJSFile?fn(function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){if(ZF(t)||DD(t))return;const o=Pfe.ChangeTracker.with(e,(e=>Ore(e,n,t,i,!!(256&r))));if(0===o.length)return;const a=256&r?Ea.Initialize_static_property_0:$N(i)?Ea.Declare_a_private_field_named_0:Ea.Initialize_property_0_in_the_constructor;return H5(wre,o,[a,i.text],wre,Ea.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=256&r,s=jre(e.program.getTypeChecker(),t,i),c=r=>Pfe.ChangeTracker.with(e,(e=>Mre(e,n,t,o,s,r))),l=[H5(wre,c(256&r),[a?Ea.Declare_static_property_0:Ea.Declare_property_0,o],wre,Ea.Add_all_missing_members)];if(a||$N(i))return l;2&r&&l.unshift(W5(wre,c(2),[Ea.Declare_private_property_0,o]));return l.push(function(e,t,n,r,i){const o=AC.createKeywordTypeNode(154),a=AC.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=AC.createIndexSignature(void 0,[a],i),c=Pfe.ChangeTracker.with(e,(e=>e.insertMemberAtStart(t,n,s)));return W5(wre,c,[Ea.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s)),l}(e,t)}function Ore(e,t,n,r,i){const o=r.text;if(i){if(231===n.kind)return;const r=n.name.getText(),i=Lre(AC.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if($N(r)){const r=AC.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=Rre(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=qv(n);if(!r)return;const i=Lre(AC.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function Lre(e,t){return AC.createExpressionStatement(AC.createAssignment(AC.createPropertyAccessExpression(e,t),Wre()))}function jre(e,t,n){let r;if(226===n.parent.parent.kind){const i=n.parent.parent,o=n.parent===i.left?i.right:i.left,a=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));r=e.typeToTypeNode(a,t,1)}else{const t=e.getContextualType(n.parent);r=t?e.typeToTypeNode(t,void 0,1):void 0}return r||AC.createKeywordTypeNode(133)}function Mre(e,t,n,r,i,o){const a=o?AC.createNodeArray(AC.createModifiersFromModifierFlags(o)):void 0,s=w_(n)?AC.createPropertyDeclaration(a,r,void 0,i,void 0):AC.createPropertySignature(void 0,r,void 0,i),c=Rre(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function Rre(e){let t;for(const n of e.members){if(!pD(n))break;t=n}return t}function Bre(e,t,n,r,i,o,a){const s=Wte(a,e.program,e.preferences,e.host),c=Pae(w_(o)?174:173,e,s,n,r,i,o),l=function(e,t){if(DD(e))return;const n=kc(t,(e=>mD(e)||hD(e)));return n&&n.parent===e?n:void 0}(o,n);l?t.insertNodeAfter(a,l,c):t.insertMemberAtStart(a,o,c),s.writeFixes(t)}function Jre(e,t,{token:n,parentDeclaration:r}){const i=re(r.members,(e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),o=AC.createEnumMember(n,i?AC.createStringLiteral(n.text):void 0);e.replaceNode(r.getSourceFile(),r,AC.updateEnumDeclaration(r,r.modifiers,r.name,oe(r.members,fn(o))),{leadingTriviaOption:Pfe.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Pfe.TrailingTriviaOption.Exclude})}function zre(e,t,n){const r=rY(t.sourceFile,t.preferences),i=Wte(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?Pae(262,t,i,n.call,Dc(n.token),n.modifierFlags,n.parentDeclaration):Fae(262,t,r,n.signature,Rae(Ea.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&Sn.fail("fixMissingFunctionDeclaration codefix got unexpected error."),qF(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function qre(e,t,n){const r=Wte(t.sourceFile,t.program,t.preferences,t.host),i=rY(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=re(a.properties,LP),c=J(n.attributes,(e=>{const a=Vre(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=AC.createIdentifier(e.name),c=AC.createJsxAttribute(s,AC.createJsxExpression(void 0,a));return AT(s,c),c})),l=AC.createJsxAttributes(s?[...c,...a.properties]:[...a.properties,...c]),_={prefix:a.pos===a.end?" ":void 0};e.replaceNode(t.sourceFile,a,l,_),r.writeFixes(e)}function Ure(e,t,n){const r=Wte(t.sourceFile,t.program,t.preferences,t.host),i=rY(t.sourceFile,t.preferences),o=HS(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=J(n.properties,(e=>{const s=Vre(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return AC.createPropertyAssignment(function(e,t,n,r){if(ap(e)){const t=r.symbolToNode(e,111551,void 0,1073741824);if(t&&cD(t))return t}return $T(e.name,t,0===n,!1,!1)}(e,o,i,a),s)})),c={leadingTriviaOption:Pfe.LeadingTriviaOption.Exclude,trailingTriviaOption:Pfe.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,AC.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function Vre(e,t,n,i,o,a){if(3&o.flags)return Wre();if(134217732&o.flags)return AC.createStringLiteral("",0===i);if(8&o.flags)return AC.createNumericLiteral(0);if(64&o.flags)return AC.createBigIntLiteral("0n");if(16&o.flags)return AC.createFalse();if(1056&o.flags){const e=o.symbol.exports?Fe(o.symbol.exports.values()):o.symbol,n=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return void 0===e||void 0===n?AC.createNumericLiteral(0):AC.createPropertyAccessExpression(n,t.symbolToString(e))}if(256&o.flags)return AC.createNumericLiteral(o.value);if(2048&o.flags)return AC.createBigIntLiteral(o.value);if(128&o.flags)return AC.createStringLiteral(o.value,0===i);if(512&o.flags)return o===t.getFalseType()||o===t.getFalseType(!0)?AC.createFalse():AC.createTrue();if(65536&o.flags)return AC.createNull();if(1048576&o.flags){return S(o.types,(r=>Vre(e,t,n,i,r,a)))??Wre()}if(t.isArrayLikeType(o))return AC.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&Zx(e)||e.symbol&&ft(Oe(e.symbol.declarations),DD))}(o)){const r=J(t.getPropertiesOfType(o),(r=>{const o=Vre(e,t,n,i,t.getTypeOfSymbol(r),a);return AC.createPropertyAssignment(r.name,o)}));return AC.createObjectLiteralExpression(r,!0)}if(16&Zx(o)){if(void 0===D(o.symbol.declarations||r,un(CD,fD,mD)))return Wre();const s=t.getSignaturesOfType(o,0);if(void 0===s)return Wre();return Fae(218,e,i,s[0],Rae(Ea.Function_not_implemented.message,i),void 0,void 0,void 0,a,n)??Wre()}if(1&Zx(o)){const e=Yx(o.symbol);if(void 0===e||yb(e))return Wre();const t=qv(e);return t&&v(t.parameters)?Wre():AC.createNewExpression(AC.createIdentifier(o.symbol.name),void 0,void 0)}return Wre()}function Wre(){return AC.createIdentifier("undefined")}function Hre(e){if(kc(e,jP)){const t=kc(e.parent,qF);if(t)return t}return Cp(e)}var $re,Kre,Gre=g({"src/services/codefixes/fixAddMissingMember.ts"(){zge(),Ece(),wre="fixMissingMember",Nre="fixMissingProperties",Dre="fixMissingAttributes",Fre="fixMissingFunctionDeclaration",G5({errorCodes:Pre=[Ea.Property_0_does_not_exist_on_type_1.code,Ea.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,Ea.Property_0_is_missing_in_type_1_but_required_in_type_2.code,Ea.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,Ea.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,Ea.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Ea.Cannot_find_name_0.code],getCodeActions(e){const t=e.program.getTypeChecker(),n=Are(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=Pfe.ChangeTracker.with(e,(t=>Ure(t,e,n)));return[H5(Nre,t,Ea.Add_missing_properties,Nre,Ea.Add_all_missing_properties)]}if(4===n.kind){const t=Pfe.ChangeTracker.with(e,(t=>qre(t,e,n)));return[H5(Dre,t,Ea.Add_missing_attributes,Dre,Ea.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=Pfe.ChangeTracker.with(e,(t=>zre(t,e,n)));return[H5(Fre,t,[Ea.Add_missing_function_declaration_0,n.token.text],Fre,Ea.Add_all_missing_function_declarations)]}if(1===n.kind){const t=Pfe.ChangeTracker.with(e,(t=>Jre(t,e.program.getTypeChecker(),n)));return[H5(wre,t,[Ea.Add_missing_enum_member_0,n.token.text],wre,Ea.Add_all_missing_members)]}return oe(function(e,t){const{parentDeclaration:n,declSourceFile:r,modifierFlags:i,token:o,call:a}=t;if(void 0===a)return;const s=o.text,c=t=>Pfe.ChangeTracker.with(e,(i=>Bre(e,i,a,o,t,n,r))),l=[H5(wre,c(256&i),[256&i?Ea.Declare_static_method_0:Ea.Declare_method_0,s],wre,Ea.Add_all_missing_members)];return 2&i&&l.unshift(W5(wre,c(2),[Ea.Declare_private_method_0,s])),l}(e,n),Ire(e,n))}},fixIds:[wre,Fre,Nre,Dre],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Map,o=new Map;return Z5(Pfe.ChangeTracker.with(e,(t=>{n9(e,Pre,(a=>{const s=Are(a.file,a.start,a.code,r,e.program);if(s&&iS(i,PB(s.parentDeclaration)+"#"+s.token.text))if(n!==Fre||2!==s.kind&&5!==s.kind){if(n===Nre&&3===s.kind)Ure(t,e,s);else if(n===Dre&&4===s.kind)qre(t,e,s);else if(1===s.kind&&Jre(t,r,s),0===s.kind){const{parentDeclaration:e,token:t}=s,n=Y(o,e,(()=>[]));n.some((e=>e.token.text===t.text))||n.push(s)}}else zre(t,e,s)})),o.forEach(((n,i)=>{const a=DD(i)?void 0:tse(i,r);for(const i of n){if(null==a?void 0:a.some((e=>{const t=o.get(e);return!!t&&t.some((({token:e})=>e.text===i.token.text))})))continue;const{parentDeclaration:n,declSourceFile:s,modifierFlags:c,token:l,call:_,isJSFile:u}=i;if(_&&!$N(l))Bre(e,t,_,l,256&c,n,s);else if(!u||ZF(n)||DD(n)){const e=jre(r,n,l);Mre(t,s,n,l.text,e,256&c)}else Ore(t,s,n,l,!!(256&c))}}))})))}})}});function Xre(e,t,n){const r=mt(function(e,t){let n=KX(e,t.start);const r=$s(t);for(;n.end<r;)n=n.parent;return n}(t,n),eF),i=AC.createNewExpression(r.expression,r.typeArguments,r.arguments);e.replaceNode(t,r,i)}var Qre,Yre,Zre,eie=g({"src/services/codefixes/fixAddMissingNewOperator.ts"(){zge(),Ece(),$re="addMissingNewOperator",G5({errorCodes:Kre=[Ea.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Pfe.ChangeTracker.with(e,(e=>Xre(e,t,n)));return[H5($re,r,Ea.Add_missing_new_operator_to_call,$re,Ea.Add_missing_new_operator_to_all_calls)]},fixIds:[$re],getAllCodeActions:e=>t9(e,Kre,((t,n)=>Xre(t,e.sourceFile,n)))})}});function tie(e,t){return{type:"install package",file:e,packageName:t}}function nie(e,t){const n=ft(KX(e,t),FN);if(!n)return;const r=n.text,{packageName:i}=XM(r);return Vs(i)?void 0:i}function rie(e,t,n){var r;return n===Yre?oG.nodeCoreModules.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?lR(e):void 0}var iie,oie,aie=g({"src/services/codefixes/fixCannotFindModule.ts"(){zge(),Ece(),"fixCannotFindModule",Qre="installTypesPackage",Yre=Ea.Cannot_find_module_0_or_its_corresponding_type_declarations.code,G5({errorCodes:Zre=[Yre,Ea.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r}}=e,i=nie(n,r);if(void 0===i)return;const o=rie(i,t,e.errorCode);return void 0===o?[]:[H5("fixCannotFindModule",[],[Ea.Install_0,o],Qre,Ea.Install_all_missing_types_packages,tie(n.fileName,o))]},fixIds:[Qre],getAllCodeActions:e=>t9(e,Zre,((t,n,r)=>{const i=nie(n.file,n.start);if(void 0!==i)switch(e.fixId){case Qre:{const t=rie(i,e.host,n.code);t&&r.push(tie(n.file.fileName,t));break}default:Sn.fail(`Bad fixId: ${e.fixId}`)}}))})}});function sie(e,t){return mt(KX(e,t).parent,w_)}function cie(e,t,n,r,i){const o=_y(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(lie),l=Wte(t,n.program,i,n.host);wae(e,c,t,n,i,l,(n=>r.insertMemberAtStart(t,e,n))),l.writeFixes(r)}function lie(e){const t=Db(Pe(e.getDeclarations()));return!(2&t||!(64&t))}var _ie,uie,die=g({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){zge(),Ece(),G5({errorCodes:iie=[Ea.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Pfe.ChangeTracker.with(e,(r=>cie(sie(t,n.start),t,e,r,e.preferences)));return 0===r.length?void 0:[H5(oie,r,Ea.Implement_inherited_abstract_class,oie,Ea.Implement_all_inherited_abstract_classes)]},fixIds:[oie="fixClassDoesntImplementInheritedAbstractMember"],getAllCodeActions:function(e){const t=new Map;return t9(e,iie,((n,r)=>{const i=sie(r.file,r.start);iS(t,PB(i))&&cie(i,e.sourceFile,e,n,e.preferences)}))}})}});function pie(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function fie(e,t){const n=KX(e,t);if(110!==n.kind)return;const r=zm(n),i=mie(r.body);return i&&!i.expression.arguments.some((e=>YD(e)&&e.expression===n))?{constructor:r,superCall:i}:void 0}function mie(e){return IF(e)&&am(e.expression)?e:y_(e)?void 0:KI(e,mie)}var gie,hie,yie=g({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){zge(),Ece(),_ie="classSuperMustPrecedeThisAccess",G5({errorCodes:uie=[Ea.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=fie(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=Pfe.ChangeTracker.with(e,(e=>pie(e,t,i,o)));return[H5(_ie,a,Ea.Make_super_call_the_first_statement_in_the_constructor,_ie,Ea.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[_ie],getAllCodeActions(e){const{sourceFile:t}=e,n=new Map;return t9(e,uie,((e,r)=>{const i=fie(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;iS(n,PB(o.parent))&&pie(e,t,o,a)}))}})}});function vie(e,t){const n=KX(e,t);return Sn.assert(hD(n.parent),"token should be at the constructor declaration"),n.parent}function bie(e,t,n){const i=AC.createExpressionStatement(AC.createCallExpression(AC.createSuper(),void 0,r));e.insertNodeAtConstructorStart(t,n,i)}var xie,Sie,kie=g({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){zge(),Ece(),gie="constructorForDerivedNeedSuperCall",G5({errorCodes:hie=[Ea.Constructors_for_derived_classes_must_contain_a_super_call.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=vie(t,n.start),i=Pfe.ChangeTracker.with(e,(e=>bie(e,t,r)));return[H5(gie,i,Ea.Add_missing_super_call,gie,Ea.Add_all_missing_super_calls)]},fixIds:[gie],getAllCodeActions:e=>t9(e,hie,((t,n)=>bie(t,e.sourceFile,vie(n.file,n.start))))})}});function Tie(e,t){Jae(e,t,"jsx",AC.createStringLiteral("react"))}var Cie,wie,Nie=g({"src/services/codefixes/fixEnableJsxFlag.ts"(){zge(),Ece(),xie="fixEnableJsxFlag",G5({errorCodes:Sie=[Ea.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=Pfe.ChangeTracker.with(e,(e=>Tie(e,t)));return[W5(xie,n,Ea.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[xie],getAllCodeActions:e=>t9(e,Sie,(t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&Tie(t,n)}))})}});function Die(e,t,n){const r=D(e.getSemanticDiagnostics(t),(e=>e.start===n.start&&e.length===n.length));if(void 0===r||void 0===r.relatedInformation)return;const i=D(r.relatedInformation,(e=>e.code===Ea.Did_you_mean_0.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=Hae(i.file,oc(i.start,i.length));return void 0!==o&&au(o)&&pF(o.parent)?{suggestion:Pie(i.messageText),expression:o.parent,arg:o}:void 0}function Fie(e,t,n,r){const i=AC.createCallExpression(AC.createPropertyAccessExpression(AC.createIdentifier("Number"),AC.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,38===o||36===o?AC.createPrefixUnaryExpression(54,i):i)}function Pie(e){const[t,n]=kV(e,"\n",0).match(/'(.*)'/)||[];return n}var Eie,Aie,Iie=g({"src/services/codefixes/fixNaNEquality.ts"(){zge(),Ece(),Cie="fixNaNEquality",G5({errorCodes:wie=[Ea.This_condition_will_always_return_0.code],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=Die(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=Pfe.ChangeTracker.with(e,(e=>Fie(e,t,s,a)));return[H5(Cie,c,[Ea.Use_0,o],Cie,Ea.Use_Number_isNaN_in_all_conditions)]},fixIds:[Cie],getAllCodeActions:e=>t9(e,wie,((t,n)=>{const r=Die(e.program,n.file,oc(n.start,n.length));r&&Fie(t,n.file,r.arg,r.expression)}))})}}),Oie=g({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){zge(),Ece(),G5({errorCodes:[Ea.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,Ea.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,Ea.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(e){const t=e.program.getCompilerOptions(),{configFile:n}=t;if(void 0===n)return;const r=[],i=$S(t);if(i>=5&&i<99){const t=Pfe.ChangeTracker.with(e,(e=>{Jae(e,n,"module",AC.createStringLiteral("esnext"))}));r.push(W5("fixModuleOption",t,[Ea.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=HS(t);if(o<4||o>99){const t=Pfe.ChangeTracker.with(e,(e=>{if(!Rm(n))return;const t=[["target",AC.createStringLiteral("es2017")]];1===i&&t.push(["module",AC.createStringLiteral("commonjs")]),Bae(e,n,t)}));r.push(W5("fixTargetOption",t,[Ea.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}})}});function Lie(e,t,n){e.replaceNode(t,n,AC.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function jie(e,t){return mt(KX(e,t).parent,UP)}var Mie,Rie,Bie=g({"src/services/codefixes/fixPropertyAssignment.ts"(){zge(),Ece(),Eie="fixPropertyAssignment",G5({errorCodes:Aie=[Ea.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],fixIds:[Eie],getCodeActions(e){const{sourceFile:t,span:n}=e,r=jie(t,n.start),i=Pfe.ChangeTracker.with(e,(t=>Lie(t,e.sourceFile,r)));return[H5(Eie,i,[Ea.Change_0_to_1,"=",":"],Eie,[Ea.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>t9(e,Aie,((e,t)=>Lie(e,t.file,jie(t.file,t.start))))})}});function Jie(e,t){const n=Um(KX(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function zie(e,t,n,r){if(e.replaceNode(t,n,AC.createToken(119)),2===r.length&&96===r[0].token&&119===r[1].token){const n=r[1].getFirstToken(),i=n.getFullStart();e.replaceRange(t,{pos:i,end:i},AC.createToken(28));const o=t.text;let a=n.end;for(;a<o.length&&ds(o.charCodeAt(a));)a++;e.deleteRange(t,{pos:n.getStart(),end:a})}}var qie,Uie,Vie,Wie=g({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){zge(),Ece(),Mie="extendsInterfaceBecomesImplements",G5({errorCodes:Rie=[Ea.Cannot_extend_an_interface_0_Did_you_mean_implements.code],getCodeActions(e){const{sourceFile:t}=e,n=Jie(t,e.span.start);if(!n)return;const{extendsToken:r,heritageClauses:i}=n,o=Pfe.ChangeTracker.with(e,(e=>zie(e,t,r,i)));return[H5(Mie,o,Ea.Change_extends_to_implements,Mie,Ea.Change_all_extended_interfaces_to_implements)]},fixIds:[Mie],getAllCodeActions:e=>t9(e,Rie,((e,t)=>{const n=Jie(t.file,t.start);n&&zie(e,t.file,n.extendsToken,n.heritageClauses)}))})}});function Hie(e,t,n){const r=KX(e,t);if(HN(r)||$N(r))return{node:r,className:n===Uie?Um(r).name.text:void 0}}function $ie(e,t,{node:n,className:r}){iZ(n),e.replaceNode(t,n,AC.createPropertyAccessExpression(r?AC.createIdentifier(r):AC.createThis(),n))}var Kie,Gie,Xie,Qie,Yie=g({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){zge(),Ece(),qie="forgottenThisPropertyAccess",Uie=Ea.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,G5({errorCodes:Vie=[Ea.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,Ea.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,Uie],getCodeActions(e){const{sourceFile:t}=e,n=Hie(t,e.span.start,e.errorCode);if(!n)return;const r=Pfe.ChangeTracker.with(e,(e=>$ie(e,t,n)));return[H5(qie,r,[Ea.Add_0_to_unresolved_variable,n.className||"this"],qie,Ea.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[qie],getAllCodeActions:e=>t9(e,Vie,((t,n)=>{const r=Hie(n.file,n.start,n.code);r&&$ie(t,e.sourceFile,r)}))})}});function Zie(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return ze(Qie,e)}(o))return;const a=i?Qie[o]:`{${vZ(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var eoe,toe,noe,roe=g({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){zge(),Ece(),Kie="fixInvalidJsxCharacters_expression",Gie="fixInvalidJsxCharacters_htmlEntity",G5({errorCodes:Xie=[Ea.Unexpected_token_Did_you_mean_or_gt.code,Ea.Unexpected_token_Did_you_mean_or_rbrace.code],fixIds:[Kie,Gie],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=Pfe.ChangeTracker.with(e,(e=>Zie(e,n,t,r.start,!1))),o=Pfe.ChangeTracker.with(e,(e=>Zie(e,n,t,r.start,!0)));return[H5(Kie,i,Ea.Wrap_invalid_character_in_an_expression_container,Kie,Ea.Wrap_all_invalid_characters_in_an_expression_container),H5(Gie,o,Ea.Convert_invalid_character_to_its_html_entity_code,Gie,Ea.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>t9(e,Xie,((t,n)=>Zie(t,e.preferences,n.file,n.start,e.fixId===Gie)))}),Qie={">":"&gt;","}":"&rbrace;"}}});function ioe(e,t){const n=KX(e,t);if(n.parent&&wE(n.parent)&&HN(n.parent.name)){const e=n.parent,t=jh(e),r=Oh(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}var ooe,aoe=g({"src/services/codefixes/fixUnmatchedParameter.ts"(){zge(),Ece(),eoe="deleteUnmatchedParameter",toe="renameUnmatchedParameter",noe=[Ea.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],G5({fixIds:[eoe,toe],errorCodes:noe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=ioe(t,n.start);if(i)return he(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=Pfe.ChangeTracker.with(e,(t=>t.filterJSDocTags(e.sourceFile,n,(e=>e!==r))));return H5(eoe,i,[Ea.Delete_unused_param_tag_0,t.getText(e.sourceFile)],eoe,Ea.Delete_all_unused_param_tags)}(e,i)),he(r,function(e,{name:t,jsDocHost:n,signature:r,jsDocParameterTag:i}){if(!v(r.parameters))return;const o=e.sourceFile,a=hl(r),s=new Set;for(const e of a)wE(e)&&HN(e.name)&&s.add(e.name.escapedText);const c=S(r.parameters,(e=>HN(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0));if(void 0===c)return;const l=AC.updateJSDocParameterTag(i,i.tagName,AC.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),_=Pfe.ChangeTracker.with(e,(e=>e.replaceJSDocComment(o,n,J(a,(e=>e===i?l:e)))));return W5(toe,_,[Ea.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return Z5(Pfe.ChangeTracker.with(e,(n=>{n9(e,noe,(({file:e,start:n})=>{const r=ioe(e,n);r&&t.set(r.signature,he(t.get(r.signature),r.jsDocParameterTag))})),t.forEach(((t,r)=>{if(e.fixId===eoe){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,(t=>!e.has(t)))}}))})))}})}});var soe,coe,loe,_oe,uoe,doe,poe=g({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){zge(),Ece(),ooe="fixUnreferenceableDecoratorMetadata",G5({errorCodes:[Ea.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=>{const t=function(e,t,n){const i=ft(KX(e,n),HN);if(!i||183!==i.parent.kind)return;const o=t.getTypeChecker().getSymbolAtLocation(i);return D((null==o?void 0:o.declarations)||r,un(cP,hP,aP))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Pfe.ChangeTracker.with(e,(n=>276===t.kind&&function(e,t,n,r){g7.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program))),i=Pfe.ChangeTracker.with(e,(n=>function(e,t,n,r){if(271===n.kind)return void e.insertModifierBefore(t,156,n.name);const i=273===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();hh(i,(e=>{if(111551&qx(e.symbol,o).flags)return!0}))||e.insertModifierBefore(t,156,i)}(n,e.sourceFile,t,e.program)));let o;return n.length&&(o=he(o,W5(ooe,n,Ea.Convert_named_imports_to_namespace_import))),i.length&&(o=he(o,W5(ooe,i,Ea.Use_import_type))),o},fixIds:[ooe]})}});function foe(e,t,n){e.replaceNode(t,n.parent,AC.createKeywordTypeNode(159))}function moe(e,t){return H5(soe,e,t,loe,Ea.Delete_all_unused_declarations)}function goe(e,t,n){e.delete(t,Sn.checkDefined(mt(n.parent,Tf).typeParameters,"The type parameter to delete should exist"))}function hoe(e){return 102===e.kind||80===e.kind&&(276===e.parent.kind||273===e.parent.kind)}function yoe(e){return 102===e.kind?ft(e.parent,sP):void 0}function voe(e,t){return XF(t.parent)&&Pe(t.parent.getChildren(e))===t}function boe(e,t,n){e.delete(t,243===n.parent.kind?n.parent:n)}function xoe(e,t,n,r){t!==Ea.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=mt(r.parent,MD).typeParameter.name),HN(r)&&function(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}(r)&&(e.replaceNode(n,r,AC.createIdentifier(`_${r.text}`)),_D(r.parent)&&qc(r.parent).forEach((t=>{HN(t.name)&&e.replaceNode(n,t.name,AC.createIdentifier(`_${t.name.text}`))}))))}function Soe(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(_D(c))!function(e,t,n,r,i,o,a,s=!1){if(function(e,t,n,r,i,o,a){const{parent:s}=n;switch(s.kind){case 174:case 176:const c=s.parameters.indexOf(n),l=mD(s)?s.name:s,_=mue.Core.getReferencedSymbolsForNode(s.pos,l,i,r,o);if(_)for(const e of _)for(const t of e.references)if(t.kind===mue.EntryKind.Node){const e=iD(t.node)&&eF(t.node.parent)&&t.node.parent.arguments.length>c,r=YD(t.node.parent)&&iD(t.node.parent.expression)&&eF(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(mD(t.node.parent)||fD(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 262:return!s.name||!function(e,t,n){return!!mue.Core.eachSymbolReferenceInFile(n,e,t,(e=>HN(e)&&eF(e.parent)&&e.parent.arguments.includes(e)))}(e,t,s.name)||Toe(s,n,a);case 218:case 219:return Toe(s,n,a);case 178:return!1;case 177:return!0;default:return Sn.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!HN(n.name)||mue.Core.isSymbolReferencedInFile(n.name,r,t)))for(const r of n.modifiers)f_(r)&&e.deleteModifier(t,r);else!n.initializer&&koe(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&HN(e)&&mue.Core.isSymbolReferencedInFile(e,r,n))){const r=cP(c)?e:cD(c)?c.parent:c;Sn.assert(r!==n,"should not delete whole source file"),t.delete(n,r)}}(t,n,e,r,i,o,a,s),HN(t)&&mue.Core.eachSymbolReferenceInFile(t,r,e,(t=>{var r;YD(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&((pF((r=t).parent)&&r.parent.left===r||(dF(r.parent)||uF(r.parent))&&r.parent.operand===r)&&IF(r.parent.parent))&&n.delete(e,t.parent.parent)}))}function koe(e,t,n){const r=e.parent.parameters.indexOf(e);return!mue.Core.someSignatureUsage(e.parent,n,t,((e,t)=>!t||t.arguments.length>r))}function Toe(e,t,n){const r=e.parameters,i=r.indexOf(t);return Sn.assert(-1!==i,"The parameter should already be in the list"),n?r.slice(i+1).every((e=>HN(e.name)&&!e.symbol.isReferenced)):i===r.length-1}var Coe,woe,Noe=g({"src/services/codefixes/fixUnusedIdentifier.ts"(){zge(),Ece(),soe="unusedIdentifier",coe="unusedIdentifier_prefix",loe="unusedIdentifier_delete",_oe="unusedIdentifier_deleteImports",uoe="unusedIdentifier_infer",G5({errorCodes:doe=[Ea._0_is_declared_but_its_value_is_never_read.code,Ea._0_is_declared_but_never_used.code,Ea.Property_0_is_declared_but_its_value_is_never_read.code,Ea.All_imports_in_import_declaration_are_unused.code,Ea.All_destructured_elements_are_unused.code,Ea.All_variables_are_unused.code,Ea.All_type_parameters_are_unused.code],getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=KX(n,e.span.start);if(PE(s))return[moe(Pfe.ChangeTracker.with(e,(e=>e.delete(n,s))),Ea.Remove_template_tag)];if(30===s.kind){return[moe(Pfe.ChangeTracker.with(e,(e=>goe(e,n,s))),Ea.Remove_type_parameters)]}const c=yoe(s);if(c){const t=Pfe.ChangeTracker.with(e,(e=>e.delete(n,c)));return[H5(soe,t,[Ea.Remove_import_from_0,nS(c)],_oe,Ea.Delete_all_unused_imports)]}if(hoe(s)){const t=Pfe.ChangeTracker.with(e,(e=>Soe(n,s,e,o,a,r,i,!1)));if(t.length)return[H5(soe,t,[Ea.Remove_unused_declaration_for_Colon_0,s.getText(n)],_oe,Ea.Delete_all_unused_imports)]}if($D(s.parent)||KD(s.parent)){if(_D(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?Ea.Remove_unused_declarations_for_Colon_0:Ea.Remove_unused_declaration_for_Colon_0,J(t,(e=>e.getText(n))).join(", ")];return[moe(Pfe.ChangeTracker.with(e,(e=>function(e,t,n){b(n.elements,(n=>e.delete(t,n)))}(e,n,s.parent))),r)]}return[moe(Pfe.ChangeTracker.with(e,(t=>function(e,t,n,{parent:r}){if(GF(r)&&r.initializer&&Q_(r.initializer))if(XF(r.parent)&&v(r.parent.declarations)>1){const i=r.parent.parent,o=i.getStart(n),a=i.end;t.delete(n,r),t.insertNodeAt(n,a,r.initializer,{prefix:BY(e.host,e.formatContext.options)+n.text.slice(YY(n.text,o-1),o),suffix:PZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent))),Ea.Remove_unused_destructuring_declaration)]}if(voe(n,s))return[moe(Pfe.ChangeTracker.with(e,(e=>boe(e,n,s.parent))),Ea.Remove_variable_statement)];const l=[];if(140===s.kind){const t=Pfe.ChangeTracker.with(e,(e=>foe(e,n,s))),r=mt(s.parent,MD).typeParameter.name.text;l.push(H5(soe,t,[Ea.Replace_infer_0_with_unknown,r],uoe,Ea.Replace_all_unused_infer_with_unknown))}else{const t=Pfe.ChangeTracker.with(e,(e=>Soe(n,s,e,o,a,r,i,!1)));if(t.length){const e=cD(s.parent)?s.parent:s;l.push(moe(t,[Ea.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const _=Pfe.ChangeTracker.with(e,(e=>xoe(e,t,n,s)));return _.length&&l.push(H5(soe,_,[Ea.Prefix_0_with_an_underscore,s.getText(n)],coe,Ea.Prefix_all_unused_declarations_with_where_possible)),l},fixIds:[coe,loe,_oe,uoe],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),o=n.getSourceFiles();return t9(e,doe,((a,s)=>{const c=KX(t,s.start);switch(e.fixId){case coe:xoe(a,s.code,t,c);break;case _oe:{const e=yoe(c);e?a.delete(t,e):hoe(c)&&Soe(t,c,a,i,o,n,r,!0);break}case loe:if(140===c.kind||hoe(c))break;if(PE(c))a.delete(t,c);else if(30===c.kind)goe(a,t,c);else if($D(c.parent)){if(c.parent.parent.initializer)break;_D(c.parent.parent)&&!koe(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if(KD(c.parent.parent)&&c.parent.parent.parent.initializer)break;voe(t,c)?boe(a,t,c.parent):Soe(t,c,a,i,o,n,r,!0)}break;case uoe:140===c.kind&&foe(a,t,c);break;default:Sn.fail(JSON.stringify(e.fixId))}}))}})}});function Doe(e,t,n,i,o){const a=KX(t,n),s=kc(a,Pu);if(s.getStart(t)!==a.getStart(t)){const e=JSON.stringify({statementKind:Sn.formatSyntaxKind(s.kind),tokenKind:Sn.formatSyntaxKind(a.kind),errorCode:o,start:n,length:i});Sn.fail("Token and statement should start at the same point. "+e)}const c=(PF(s.parent)?s.parent:s).parent;if(!PF(s.parent)||s===Pe(s.parent.statements))switch(c.kind){case 245:if(c.elseStatement){if(PF(s.parent))break;return void e.replaceNode(t,s,AC.createBlock(r))}case 247:case 248:return void e.delete(t,c)}if(PF(s.parent)){const r=n+i,o=Sn.checkDefined(function(e,t){let n;for(const r of e){if(!t(r))break;n=r}return n}(dT(s.parent.statements,s),(e=>e.pos<r)),"Some statement should be last");e.deleteNodeRange(t,s,o)}else e.delete(t,s)}var Foe,Poe,Eoe=g({"src/services/codefixes/fixUnreachableCode.ts"(){zge(),Ece(),Coe="fixUnreachableCode",G5({errorCodes:woe=[Ea.Unreachable_code_detected.code],getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const t=Pfe.ChangeTracker.with(e,(t=>Doe(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[H5(Coe,t,Ea.Remove_unreachable_code,Coe,Ea.Remove_all_unreachable_code)]},fixIds:[Coe],getAllCodeActions:e=>t9(e,woe,((e,t)=>Doe(e,t.file,t.start,t.length,t.code)))})}});function Aoe(e,t,n){const r=KX(t,n),i=mt(r.parent,WF),o=r.getStart(t),a=i.statement.getStart(t),s=Ex(o,a,t)?a:ys(t.text,OX(i,59,t).end,!0);e.deleteRange(t,{pos:o,end:s})}var Ioe,Ooe,Loe,joe=g({"src/services/codefixes/fixUnusedLabel.ts"(){zge(),Ece(),Foe="fixUnusedLabel",G5({errorCodes:Poe=[Ea.Unused_label.code],getCodeActions(e){const t=Pfe.ChangeTracker.with(e,(t=>Aoe(t,e.sourceFile,e.span.start)));return[H5(Foe,t,Ea.Remove_unused_label,Foe,Ea.Remove_all_unused_labels)]},fixIds:[Foe],getAllCodeActions:e=>t9(e,Poe,((e,t)=>Aoe(e,t.file,t.start)))})}});function Moe(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function Roe(e,t,n){const r=kc(KX(e,t),Boe),i=r&&r.type;return i&&{typeNode:i,type:Joe(n,i)}}function Boe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function Joe(e,t){if(iE(t)){const n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(he([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var zoe,qoe,Uoe=g({"src/services/codefixes/fixJSDocTypes.ts"(){zge(),Ece(),Ioe="fixJSDocTypes_plain",Ooe="fixJSDocTypes_nullable",G5({errorCodes:Loe=[Ea.JSDoc_types_can_only_be_used_inside_documentation_comments.code,Ea._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,Ea._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=Roe(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,Ioe,Ea.Change_all_jsdoc_style_types_to_TypeScript)];return 321===i.kind&&s.push(c(o,Ooe,Ea.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return H5("jdocTypes",Pfe.ChangeTracker.with(e,(e=>Moe(e,t,i,r,n))),[Ea.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[Ioe,Ooe],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return t9(e,Loe,((e,n)=>{const o=Roe(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=321===a.kind&&t===Ooe?i.getNullableType(s,32768):s;Moe(e,r,a,c,i)}))}})}});function Voe(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function Woe(e,t){const n=KX(e,t);if(YD(n.parent)){let e=n.parent;for(;YD(e.parent);)e=e.parent;return e.name}if(HN(n))return n}var Hoe,$oe,Koe=g({"src/services/codefixes/fixMissingCallParentheses.ts"(){zge(),Ece(),zoe="fixMissingCallParentheses",G5({errorCodes:qoe=[Ea.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],fixIds:[zoe],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Woe(t,n.start);if(!r)return;const i=Pfe.ChangeTracker.with(e,(t=>Voe(t,e.sourceFile,r)));return[H5(zoe,i,Ea.Add_missing_call_parentheses,zoe,Ea.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>t9(e,qoe,((e,t)=>{const n=Woe(t.file,t.start);n&&Voe(e,t.file,n)}))})}});function Goe(e,t){const n=zm(KX(e,t));if(!n)return;let r;switch(n.kind){case 174:r=n.name;break;case 262:case 218:r=OX(n,100,e);break;case 219:r=OX(n,n.typeParameters?30:21,e)||Pe(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:GF(i.parent)&&i.parent.type&&CD(i.parent.type)?i.parent.type.type:void 0)};var i}function Xoe(e,t,{insertBefore:n,returnType:r}){if(r){const n=ig(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,AC.createTypeReferenceNode("Promise",AC.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}var Qoe,Yoe,Zoe=g({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){zge(),Ece(),Hoe="fixAwaitInSyncFunction",G5({errorCodes:$oe=[Ea.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Ea.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Ea.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,Ea.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],getCodeActions(e){const{sourceFile:t,span:n}=e,r=Goe(t,n.start);if(!r)return;const i=Pfe.ChangeTracker.with(e,(e=>Xoe(e,t,r)));return[H5(Hoe,i,Ea.Add_async_modifier_to_containing_function,Hoe,Ea.Add_all_missing_async_modifiers)]},fixIds:[Hoe],getAllCodeActions:function(e){const t=new Map;return t9(e,$oe,((n,r)=>{const i=Goe(r.file,r.start);i&&iS(t,PB(i.insertBefore))&&Xoe(n,e.sourceFile,i)}))}})}});function eae(e,t,n,r,i){let o,a;if(r===Ea._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,a=t+n;else if(r===Ea._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const n=i.program.getTypeChecker(),r=KX(e,t).parent;Sn.assert(N_(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;Sn.assert(w_(s),"erroneous accessors should only be inside classes");const c=Oe(tse(s,n));if(!c)return[];const l=Nc(Mf(r.name)),_=n.getPropertyOfType(n.getTypeAtLocation(c),l);if(!_||!_.valueDeclaration)return[];o=_.valueDeclaration.pos,a=_.valueDeclaration.end,e=Cp(_.valueDeclaration)}else Sn.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return Kae(e,i.program,o,a,i,Ea.Generate_get_and_set_accessors.message)}var tae,nae,rae=g({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){zge(),Ece(),G5({errorCodes:Qoe=[Ea._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,Ea._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],getCodeActions(e){const t=eae(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[H5(Yoe,t,Ea.Generate_get_and_set_accessors,Yoe,Ea.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[Yoe="fixPropertyOverrideAccessor"],getAllCodeActions:e=>t9(e,Qoe,((t,n)=>{const r=eae(n.file,n.start,n.length,n.code,e);if(r)for(const n of r)t.pushRaw(e.sourceFile,n)}))})}});function iae(e,t){switch(e){case Ea.Parameter_0_implicitly_has_an_1_type.code:case Ea.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return vD(zm(t))?Ea.Infer_type_of_0_from_usage:Ea.Infer_parameter_types_from_usage;case Ea.Rest_parameter_0_implicitly_has_an_any_type.code:case Ea.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Ea.Infer_parameter_types_from_usage;case Ea.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return Ea.Infer_this_type_of_0_from_usage;default:return Ea.Infer_type_of_0_from_usage}}function oae(e,t,n,r,i,o,a,s,c){if(!d_(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:l}=n,_=Wte(t,i,c,s);switch(r=function(e){switch(e){case Ea.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return Ea.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case Ea.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Ea.Variable_0_implicitly_has_an_1_type.code;case Ea.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Ea.Parameter_0_implicitly_has_an_1_type.code;case Ea.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return Ea.Rest_parameter_0_implicitly_has_an_any_type.code;case Ea.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return Ea.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case Ea._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return Ea._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case Ea.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return Ea.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case Ea.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Ea.Member_0_implicitly_has_an_1_type.code}return e}(r)){case Ea.Member_0_implicitly_has_an_1_type.code:case Ea.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(GF(l)&&a(l)||pD(l)||dD(l))return aae(e,_,t,l,i,s,o),_.writeFixes(e),l;if(YD(l)){const n=TZ(uae(l.name,i,o),l,i,s);if(n){const r=AC.createJSDocTypeTag(void 0,AC.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,mt(l.parent.parent,IF),[r])}return _.writeFixes(e),l}return;case Ea.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&GF(t.valueDeclaration)&&a(t.valueDeclaration)?(aae(e,_,Cp(t.valueDeclaration),t.valueDeclaration,i,s,o),_.writeFixes(e),t.valueDeclaration):void 0}}const u=zm(n);if(void 0===u)return;let d;switch(r){case Ea.Parameter_0_implicitly_has_an_1_type.code:if(vD(u)){sae(e,_,t,u,i,s,o),d=u;break}case Ea.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(u)){const n=mt(l,_D);!function(e,t,n,r,i,o,a,s){if(!HN(r.name))return;const c=function(e,t,n,r){const i=dae(e,t,n,r);return i&&pae(n,i,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:HN(e.name)?uae(e.name,n,r):n.getTypeChecker().getAnyType()})))}(i,n,o,s);if(Sn.assert(i.parameters.length===c.length,"Parameter count and inference count should match"),Tg(i))lae(e,n,c,o,a);else{const r=aF(i)&&!OX(i,21,n);r&&e.insertNodeBefore(n,Pe(i.parameters),AC.createToken(21));for(const{declaration:r,type:i}of c)!r||r.type||r.initializer||cae(e,t,n,r,i,o,a);r&&e.insertNodeAfter(n,Ie(i.parameters),AC.createToken(22))}}(e,_,t,n,u,i,s,o),d=n}break;case Ea.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case Ea._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:yD(u)&&HN(u.name)&&(cae(e,_,t,u,uae(u.name,i,o),i,s),d=u);break;case Ea.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:vD(u)&&(sae(e,_,t,u,i,s,o),d=u);break;case Ea.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Pfe.isThisTypeAnnotatable(u)&&a(u)&&(!function(e,t,n,r,i,o){const a=dae(n,t,r,o);if(!a||!a.length)return;const s=pae(r,a,o).thisParameter(),c=TZ(s,n,r,i);if(!c)return;Tg(n)?function(e,t,n,r){e.addJSDocTags(t,n,[AC.createJSDocThisTag(void 0,AC.createJSDocTypeExpression(r))])}(e,t,n,c):e.tryInsertThisTypeAnnotation(t,n,c)}(e,t,u,i,s,o),d=u);break;default:return Sn.fail(String(r))}return _.writeFixes(e),d}function aae(e,t,n,r,i,o,a){HN(r.name)&&cae(e,t,n,r,uae(r.name,i,a),i,o)}function sae(e,t,n,r,i,o,a){const s=De(r.parameters);if(s&&HN(r.name)&&HN(s.name)){let c=uae(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=uae(s.name,i,a)),Tg(r)?lae(e,n,[{declaration:s,type:c}],i,o):cae(e,t,n,s,c,i,o)}}function cae(e,t,n,r,i,o,a){const s=TZ(i,r,o,a);if(s)if(Tg(n)&&171!==r.kind){const t=GF(r)?ft(r.parent.parent,EF):r;if(!t)return;const i=AC.createJSDocTypeExpression(s),o=yD(r)?AC.createJSDocReturnTag(void 0,i,void 0):AC.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=Uae(e,o);if(a&&r.tryInsertTypeAnnotation(n,t,a.typeNode))return b(a.symbols,(e=>i.addImportFromExportedSymbol(e,!0))),!0;return!1})(s,r,n,e,t,HS(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function lae(e,t,n,r,i){const o=n.length&&n[0].declaration.parent;if(!o)return;const a=G(n,(e=>{const t=e.declaration;if(t.initializer||fl(t)||!HN(t.name))return;const n=e.type&&TZ(e.type,t,r,i);if(n){return rw(AC.cloneNode(t.name),7168),{name:AC.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}}}));if(a.length)if(aF(o)||oF(o)){const n=aF(o)&&!OX(o,21,t);n&&e.insertNodeBefore(t,Pe(o.parameters),AC.createToken(21)),b(a,(({typeNode:n,param:r})=>{const i=AC.createJSDocTypeTag(void 0,AC.createJSDocTypeExpression(n)),o=AC.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})})),n&&e.insertNodeAfter(t,Ie(o.parameters),AC.createToken(22))}else{const n=J(a,(({name:e,typeNode:t,isOptional:n})=>AC.createJSDocParameterTag(void 0,e,!!n,AC.createJSDocTypeExpression(t),!1,void 0)));e.addJSDocTags(t,o,n)}}function _ae(e,t,n){return G(mue.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),(e=>e.kind!==mue.EntryKind.Span?ft(e.node,HN):void 0))}function uae(e,t,n){return pae(t,_ae(e,t,n),n).single()}function dae(e,t,n,r){let i;switch(e.kind){case 176:i=OX(e,137,t);break;case 219:case 218:const n=e.parent;i=(GF(n)||pD(n))&&HN(n.name)?n.name:e.name;break;case 262:case 174:case 173:i=e.name}if(i)return _ae(i,n,r)}function pae(e,t,n){const i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:e=>i.createArrayType(e),Promise:e=>i.createPromiseType(e)},a=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:function(){return d(c(t))},parameters:function(r){if(0===t.length||!r.parameters)return;const o={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};for(const e of t)n.throwIfCancellationRequested(),l(e,o);const a=[...o.constructs||[],...o.calls||[]];return r.parameters.map(((t,o)=>{const s=[],l=ed(t);let _=!1;for(const e of a)if(e.argumentTypes.length<=o)_=Tg(r),s.push(i.getUndefinedType());else if(l)for(let t=o;t<e.argumentTypes.length;t++)s.push(i.getBaseTypeOfLiteralType(e.argumentTypes[t]));else s.push(i.getBaseTypeOfLiteralType(e.argumentTypes[o]));if(HN(t.name)){const r=c(_ae(t.name,e,n));s.push(...l?G(r,i.getElementTypeOfArrayType):r)}const u=d(s);return{type:l?i.createArrayType(u):u,isOptional:_&&!l,declaration:t}}))},thisParameter:function(){const e={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};for(const r of t)n.throwIfCancellationRequested(),l(r,e);return d(e.candidateThisTypes||r)}};function s(e){const t=new Map;for(const n of e)n.properties&&n.properties.forEach(((e,n)=>{t.has(n)||t.set(n,[]),t.get(n).push(e)}));const 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:V(e,(e=>e.candidateTypes)),properties:n,calls:V(e,(e=>e.calls)),constructs:V(e,(e=>e.constructs)),numberIndex:b(e,(e=>e.numberIndex)),stringIndex:b(e,(e=>e.stringIndex)),candidateThisTypes:V(e,(e=>e.candidateThisTypes)),inferredTypes:void 0}}function c(e){const t={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};for(const r of e)n.throwIfCancellationRequested(),l(r,t);return p(t)}function l(e,t){for(;ex(e);)e=e.parent;switch(e.parent.kind){case 244:!function(e,t){h(t,eF(e)?i.getVoidType():i.getAnyType())}(e,t);break;case 225:t.isNumber=!0;break;case 224:!function(e,t){switch(e.operator){case 46:case 47:case 41:case 55:t.isNumber=!0;break;case 40:t.isNumberOrString=!0}}(e.parent,t);break;case 226:!function(e,t,n){switch(t.operatorToken.kind){case 43:case 42:case 44:case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 66:case 68:case 67:case 69:case 70:case 74:case 75:case 79:case 71:case 73:case 72:case 41:case 30:case 33:case 32:case 34:const r=i.getTypeAtLocation(t.left===e?t.right:t.left);1056&r.flags?h(n,r):n.isNumber=!0;break;case 65:case 40:const o=i.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?h(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:h(n,i.getTypeAtLocation(t.left===e?t.right:t.left));break;case 103:e===t.left&&(n.isString=!0);break;case 57:case 61:e!==t.left||260!==e.parent.parent.kind&&!Vb(e.parent.parent,!0)||h(n,i.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 296:case 297:!function(e,t){h(t,i.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 213:case 214:e.parent.expression===e?function(e,t){const n={argumentTypes:[],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}};if(e.arguments)for(const t of e.arguments)n.argumentTypes.push(i.getTypeAtLocation(t));l(e,n.return_),213===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):_(e,t);break;case 211:!function(e,t){const n=wc(e.name.text);t.properties||(t.properties=new Map);const r=t.properties.get(n)||{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};l(e,r),t.properties.set(n,r)}(e.parent,t);break;case 212:!function(e,t,n){if(t===e.argumentExpression)return void(n.isNumberOrString=!0);{const t=i.getTypeAtLocation(e.argumentExpression),r={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};l(e,r),296&t.flags?n.numberIndex=r:n.stringIndex=r}}(e.parent,e,t);break;case 303:case 304:!function(e,t){const n=GF(e.parent.parent)?e.parent.parent:e.parent;y(t,i.getTypeAtLocation(n))}(e.parent,t);break;case 172:!function(e,t){y(t,i.getTypeAtLocation(e.parent))}(e.parent,t);break;case 260:{const{name:n,initializer:r}=e.parent;if(e===n){r&&h(t,i.getTypeAtLocation(r));break}}default:return _(e,t)}}function _(e,t){fg(e)&&h(t,i.getContextualType(e))}function u(e){return d(p(e))}function d(e){if(!e.length)return i.getAnyType();const t=i.getUnionType([i.getStringType(),i.getNumberType()]);let n=function(e,t){const n=[];for(const r of e)for(const{high:e,low:i}of t)e(r)&&(Sn.assert(!i(r),"Priority can't have both low and high"),n.push(i));return e.filter((e=>n.every((t=>!t(e)))))}(e,[{high:e=>e===i.getStringType()||e===i.getNumberType(),low:e=>e===t},{high:e=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&Zx(e)),low:e=>!!(16&Zx(e))}]);const r=n.filter((e=>16&Zx(e)));return r.length&&(n=n.filter((e=>!(16&Zx(e)))),n.push(function(e){if(1===e.length)return e[0];const t=[],n=[],r=[],o=[];let a=!1,s=!1;const c=ot();for(const l of e){for(const e of i.getPropertiesOfType(l))c.add(e.escapedName,e.valueDeclaration?i.getTypeOfSymbolAtLocation(e,e.valueDeclaration):i.getAnyType());t.push(...i.getSignaturesOfType(l,0)),n.push(...i.getSignaturesOfType(l,1));const e=i.getIndexInfoOfType(l,0);e&&(r.push(e.type),a=a||e.isReadonly);const _=i.getIndexInfoOfType(l,1);_&&(o.push(_.type),s=s||_.isReadonly)}const l=ne(c,((t,n)=>{const r=n.length<e.length?16777216:0,o=i.createSymbol(4|r,t);return o.links.type=i.getUnionType(n),[t,o]})),_=[];r.length&&_.push(i.createIndexInfo(i.getStringType(),i.getUnionType(r),a));o.length&&_.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(o),s));return i.createAnonymousType(e[0].symbol,l,t,n,_)}(r))),i.getWidenedType(i.getUnionType(n.map(i.getBaseTypeOfLiteralType),2))}function p(e){var t,n,s;const c=[];e.isNumber&&c.push(i.getNumberType()),e.isString&&c.push(i.getStringType()),e.isNumberOrString&&c.push(i.getUnionType([i.getStringType(),i.getNumberType()])),e.numberIndex&&c.push(i.createArrayType(u(e.numberIndex))),((null==(t=e.properties)?void 0:t.size)||(null==(n=e.constructs)?void 0:n.length)||e.stringIndex)&&c.push(f(e));const l=(e.candidateTypes||[]).map((e=>i.getBaseTypeOfLiteralType(e))),_=(null==(s=e.calls)?void 0:s.length)?f(e):void 0;return _&&l?c.push(i.getUnionType([_,...l],2)):(_&&c.push(_),v(l)&&c.push(...l)),c.push(...function(e){if(!e.properties||!e.properties.size)return[];const t=a.filter((t=>function(e,t){return!!t.properties&&!dp(t.properties,((t,n)=>{const o=i.getTypeOfPropertyOfType(e,n);if(!o)return!0;if(t.calls){return!i.getSignaturesOfType(o,0).length||!i.isTypeAssignableTo(o,(a=t.calls,i.createAnonymousType(void 0,op(),[g(a)],r,r)))}return!i.isTypeAssignableTo(o,u(t));var a}))}(t,e)));if(0<t.length&&t.length<3)return t.map((t=>function(e,t){if(!(4&Zx(e)&&t.properties))return e;const n=e.target,r=Oe(n.typeParameters);if(!r)return e;const a=[];return t.properties.forEach(((e,t)=>{const o=i.getTypeOfPropertyOfType(n,t);Sn.assert(!!o,"generic should have all the properties of its reference."),a.push(...m(o,u(e),r))})),o[e.symbol.escapedName](d(a))}(t,e)));return[]}(e)),c}function f(e){const t=new Map;e.properties&&e.properties.forEach(((e,n)=>{const r=i.createSymbol(4,n);r.links.type=u(e),t.set(n,r)}));const n=e.calls?[g(e.calls)]:[],r=e.constructs?[g(e.constructs)]:[],o=e.stringIndex?[i.createIndexInfo(i.getStringType(),u(e.stringIndex),!1)]:[];return i.createAnonymousType(void 0,t,n,r,o)}function m(e,t,n){if(e===n)return[t];if(3145728&e.flags)return V(e.types,(e=>m(e,t,n)));if(4&Zx(e)&&4&Zx(t)){const r=i.getTypeArguments(e),o=i.getTypeArguments(t),a=[];if(r&&o)for(let e=0;e<r.length;e++)o[e]&&a.push(...m(r[e],o[e],n));return a}const r=i.getSignaturesOfType(e,0),o=i.getSignaturesOfType(t,0);return 1===r.length&&1===o.length?function(e,t,n){var r;const o=[];for(let a=0;a<e.parameters.length;a++){const s=e.parameters[a],c=t.parameters[a],l=e.declaration&&ed(e.declaration.parameters[a]);if(!c)break;let _=s.valueDeclaration?i.getTypeOfSymbolAtLocation(s,s.valueDeclaration):i.getAnyType();const u=l&&i.getElementTypeOfArrayType(_);u&&(_=u);const d=(null==(r=ft(c,ap))?void 0:r.links.type)||(c.valueDeclaration?i.getTypeOfSymbolAtLocation(c,c.valueDeclaration):i.getAnyType());o.push(...m(_,d,n))}const a=i.getReturnTypeOfSignature(e),s=i.getReturnTypeOfSignature(t);return o.push(...m(a,s,n)),o}(r[0],o[0],n):[]}function g(e){const t=[],n=Math.max(...e.map((e=>e.argumentTypes.length)));for(let r=0;r<n;r++){const n=i.createSymbol(1,wc(`arg${r}`));n.links.type=d(e.map((e=>e.argumentTypes[r]||i.getUndefinedType()))),e.some((e=>void 0===e.argumentTypes[r]))&&(n.flags|=16777216),t.push(n)}const r=u(s(e.map((e=>e.return_))));return i.createSignature(void 0,void 0,void 0,t,r,void 0,n,0)}function h(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function y(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}var fae,mae,gae=g({"src/services/codefixes/inferFromUsage.ts"(){zge(),Ece(),tae="inferFromUsage",G5({errorCodes:nae=[Ea.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,Ea.Variable_0_implicitly_has_an_1_type.code,Ea.Parameter_0_implicitly_has_an_1_type.code,Ea.Rest_parameter_0_implicitly_has_an_any_type.code,Ea.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,Ea._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,Ea.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,Ea.Member_0_implicitly_has_an_1_type.code,Ea.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,Ea.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Ea.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Ea.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,Ea.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,Ea._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,Ea.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,Ea.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,Ea.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=KX(t,r);let l;const _=Pfe.ChangeTracker.with(e,(e=>{l=oae(e,t,c,i,n,o,yt,a,s)})),u=l&&Mc(l);return u&&0!==_.length?[H5(tae,_,[iae(i,c),Yp(u)],tae,Ea.Infer_all_types_from_usage)]:void 0},fixIds:[tae],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=qQ();return t9(e,nae,((e,s)=>{oae(e,t,KX(s.file,s.start),s.code,n,r,a,i,o)}))}})}});function hae(e,t,n){if(Tg(e))return;const r=kc(KX(e,n),b_),i=null==r?void 0:r.type;if(!i)return;const o=t.getTypeFromTypeNode(i),a=t.getAwaitedType(o)||t.getVoidType(),s=t.typeToTypeNode(a,i,void 0);return s?{returnTypeNode:i,returnType:o,promisedTypeNode:s,promisedType:a}:void 0}function yae(e,t,n,r){e.replaceNode(t,n,AC.createTypeReferenceNode("Promise",[r]))}var vae,bae,xae,Sae=g({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){zge(),Ece(),fae="fixReturnTypeInAsyncFunction",G5({errorCodes:mae=[Ea.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],fixIds:[fae],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=hae(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:l}=o,_=Pfe.ChangeTracker.with(e,(e=>yae(e,t,a,c)));return[H5(fae,_,[Ea.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],fae,Ea.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>t9(e,mae,((t,n)=>{const r=hae(n.file,e.program.getTypeChecker(),n.start);r&&yae(t,n.file,r.returnTypeNode,r.promisedTypeNode)}))})}});function kae(e,t,n,r){const{line:i}=_s(t,n);r&&!Z(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}var Tae,Cae=g({"src/services/codefixes/disableJsDiagnostics.ts"(){zge(),Ece(),vae="disableJsDiagnostics",bae="disableJsDiagnostics",G5({errorCodes:xae=G(Object.keys(Ea),(e=>{const t=Ea[e];return 1===t.category?t.code:void 0})),getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!Tg(t)||!_T(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":BY(i,o.options),s=[W5(vae,[e9(t.fileName,[MQ(t.checkJsDirective?ac(t.checkJsDirective.pos,t.checkJsDirective.end):oc(0,0),`// @ts-nocheck${a}`)])],Ea.Disable_checking_for_this_file)];return Pfe.isValidLocationToAddComment(t,r.start)&&s.unshift(H5(vae,Pfe.ChangeTracker.with(e,(e=>kae(e,t,r.start))),Ea.Ignore_this_error_message,bae,Ea.Add_ts_ignore_to_all_error_messages)),s},fixIds:[bae],getAllCodeActions:e=>{const t=new Set;return t9(e,xae,((e,n)=>{Pfe.isValidLocationToAddComment(n.file,n.start)&&kae(e,n.file,n.start,t)}))}})}});function wae(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||Dae(c,e,n,r,i,o,a,void 0)}function Nae(e){return{trackSymbol:()=>!1,moduleResolverHost:QQ(e.program,e.host)}}function Dae(e,t,n,i,o,a,s,c,l=3,_=!1){const u=e.getDeclarations(),d=De(u),p=i.program.getTypeChecker(),f=HS(i.program.getCompilerOptions()),m=(null==d?void 0:d.kind)??171,g=function(e,t){if(262144&Jx(e)){const t=e.links.nameType;if(t&&fC(t))return AC.createIdentifier(Nc(mC(t)))}return ZY(Mc(t),!1)}(e,d),h=d?wb(d):0;let y=256&h;y|=1&h?1:4&h?4:0,d&&D_(d)&&(y|=512);const b=function(){let e;y&&(e=ye(e,AC.createModifiersFromModifierFlags(y)));i.program.getCompilerOptions().noImplicitOverride&&d&&yb(d)&&(e=he(e,AC.createToken(164)));return e&&AC.createNodeArray(e)}(),x=p.getWidenedType(p.getTypeOfSymbolAtLocation(e,t)),S=!!(16777216&e.flags),k=!!(33554432&t.flags)||_,T=rY(n,o);switch(m){case 171:case 172:const n=0===T?268435456:void 0;let o=p.typeToTypeNode(x,t,n,Nae(i));if(a){const e=Uae(o,f);e&&(o=e.typeNode,Wae(a,e.symbols))}s(AC.createPropertyDeclaration(b,d?w(g):e.getName(),S&&2&l?AC.createToken(58):void 0,o,void 0));break;case 177:case 178:{Sn.assertIsDefined(u);let e=p.typeToTypeNode(x,t,void 0,Nae(i));const n=Qv(u,d),o=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(a){const t=Uae(e,f);t&&(e=t.typeNode,Wae(a,t.symbols))}for(const t of o)if(yD(t))s(AC.createGetAccessorDeclaration(b,w(g),r,D(e),N(c,T,k)));else{Sn.assertNode(t,vD,"The counterpart to a getter should be a setter");const n=Uv(t),r=n&&HN(n.name)?Dc(n.name):void 0;s(AC.createSetAccessorDeclaration(b,w(g),jae(1,[r],[D(e)],1,!1),N(c,T,k)))}break}case 173:case 174:Sn.assertIsDefined(u);const _=x.isUnion()?V(x.types,(e=>e.getCallSignatures())):x.getCallSignatures();if(!re(_))break;if(1===u.length){Sn.assert(1===_.length,"One declaration implies one signature");const e=_[0];C(T,e,b,w(g),N(c,T,k));break}for(const e of _)C(T,e,b,w(g));if(!k)if(u.length>_.length){const e=p.getSignatureFromDeclaration(u[u.length-1]);C(T,e,b,w(g),N(c,T))}else Sn.assert(u.length===_.length,"Declarations and signatures should match count"),s(function(e,t,n,r,i,o,a,s,c){let l=r[0],_=r[0].minArgumentCount,u=!1;for(const e of r)_=Math.min(e.minArgumentCount,_),RB(e)&&(u=!0),e.parameters.length>=l.parameters.length&&(!RB(e)||RB(l))&&(l=e);const d=l.parameters.length-(RB(l)?1:0),p=l.parameters.map((e=>e.name)),f=jae(d,p,void 0,_,!1);if(u){const e=AC.createParameterDeclaration(void 0,AC.createToken(26),p[d]||"rest",d>=_?AC.createToken(58):void 0,AC.createArrayTypeNode(AC.createKeywordTypeNode(159)),void 0);f.push(e)}return function(e,t,n,r,i,o,a,s){return AC.createMethodDeclaration(e,void 0,t,n?AC.createToken(58):void 0,r,i,o,s||Mae(a))}(a,i,o,void 0,f,function(e,t,n,r){if(v(e)){const i=t.getUnionType(J(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,Nae(n))}}(r,e,t,n),s,c)}(p,i,t,_,w(g),S&&!!(1&l),b,T,c))}function C(e,n,r,o,c){const _=Fae(174,i,e,n,c,o,r,S&&!!(1&l),t,a);_&&s(_)}function w(e){return HN(e)&&"constructor"===e.escapedText?AC.createComputedPropertyName(AC.createStringLiteral(Dc(e),0===T)):ZY(e,!1)}function N(e,t,n){return n?void 0:ZY(e,!1)||Mae(t)}function D(e){return ZY(e,!1)}}function Fae(e,t,n,r,i,o,a,s,c,l){const _=t.program,u=_.getTypeChecker(),d=HS(_.getCompilerOptions()),p=Tg(c),f=524545|(0===n?268435456:0),m=u.signatureToSignatureDeclaration(r,e,c,f,Nae(t));if(!m)return;let g=p?void 0:m.typeParameters,h=m.parameters,y=p?void 0:m.type;if(l){if(g){const e=q(g,(e=>{let t=e.constraint,n=e.default;if(t){const e=Uae(t,d);e&&(t=e.typeNode,Wae(l,e.symbols))}if(n){const e=Uae(n,d);e&&(n=e.typeNode,Wae(l,e.symbols))}return AC.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)}));g!==e&&(g=cI(AC.createNodeArray(e,g.hasTrailingComma),g))}const e=q(h,(e=>{let t=p?void 0:e.type;if(t){const e=Uae(t,d);e&&(t=e.typeNode,Wae(l,e.symbols))}return AC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)}));if(h!==e&&(h=cI(AC.createNodeArray(e,h.hasTrailingComma),h)),y){const e=Uae(y,d);e&&(y=e.typeNode,Wae(l,e.symbols))}}const v=s?AC.createToken(58):void 0,b=m.asteriskToken;return oF(m)?AC.updateFunctionExpression(m,a,m.asteriskToken,ft(o,HN),g,h,y,i??m.body):aF(m)?AC.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,i??m.body):mD(m)?AC.updateMethodDeclaration(m,a,b,o??AC.createIdentifier(""),v,g,h,y,i):QF(m)?AC.updateFunctionDeclaration(m,a,m.asteriskToken,ft(o,HN),g,h,y,i??m.body):void 0}function Pae(e,t,n,r,i,o,a){const s=rY(t.sourceFile,t.preferences),c=HS(t.program.getCompilerOptions()),l=Nae(t),_=t.program.getTypeChecker(),u=Tg(a),{typeArguments:d,arguments:p,parent:f}=r,m=u?void 0:_.getContextualType(r),g=J(p,(e=>HN(e)?e.text:YD(e)&&HN(e.name)?e.name.text:void 0)),h=u?[]:J(p,(e=>_.getTypeAtLocation(e))),{argumentTypeNodes:y,argumentTypeParameters:v}=Oae(_,n,h,a,c,1,l),b=o?AC.createNodeArray(AC.createModifiersFromModifierFlags(o)):void 0,x=gF(f)?AC.createToken(42):void 0,S=u?void 0:function(e,t,n){const r=new Set(t.map((e=>e[0]))),i=new Map(t);if(n){const i=n.filter((n=>!t.some((t=>{var r;return e.getTypeAtLocation(n)===(null==(r=t[1])?void 0:r.argumentType)})))),o=r.size+i.length;for(let e=0;r.size<o;e+=1)r.add(Eae(e))}return $e(r.values(),(e=>{var t;return AC.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)}))}(_,v,d),k=jae(p.length,g,y,void 0,u),T=u||void 0===m?void 0:_.typeToTypeNode(m,a,void 0,l);switch(e){case 174:return AC.createMethodDeclaration(b,x,i,void 0,S,k,T,Mae(s));case 173:return AC.createMethodSignature(b,i,void 0,S,k,void 0===T?AC.createKeywordTypeNode(159):T);case 262:return Sn.assert("string"==typeof i||HN(i),"Unexpected name"),AC.createFunctionDeclaration(b,x,i,S,k,T,Rae(Ea.Function_not_implemented.message,s));default:Sn.fail("Unexpected kind")}}function Eae(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function Aae(e,t,n,r,i,o,a){let s=e.typeToTypeNode(n,r,o,a);if(s&&VD(s)){const e=Uae(s,i);e&&(Wae(t,e.symbols),s=e.typeNode)}return ZY(s)}function Iae(e){return e.isUnionOrIntersection()?e.types.some(Iae):262144&e.flags}function Oae(e,t,n,r,i,o,a){const s=[],c=new Map;for(let _=0;_<n.length;_+=1){const u=n[_];if(u.isUnionOrIntersection()&&u.types.some(Iae)){const e=Eae(_);s.push(AC.createTypeReferenceNode(e)),c.set(e,void 0);continue}const d=e.getBaseTypeOfLiteralType(u),p=Aae(e,t,d,r,i,o,a);if(!p)continue;s.push(p);const f=Lae(u),m=!u.isTypeParameter()||!u.constraint||524288&(l=u.constraint).flags&&16===l.objectFlags?void 0:Aae(e,t,u.constraint,r,i,o,a);f&&c.set(f,{argumentType:u,constraint:m})}var l;return{argumentTypeNodes:s,argumentTypeParameters:$e(c.entries())}}function Lae(e){var t;if(3145728&e.flags)for(const t of e.types){const e=Lae(t);if(e)return e}return 262144&e.flags?null==(t=e.getSymbol())?void 0:t.getName():void 0}function jae(e,t,n,r,i){const o=[],a=new Map;for(let s=0;s<e;s++){const e=(null==t?void 0:t[s])||`arg${s}`,c=a.get(e);a.set(e,(c||0)+1);const l=AC.createParameterDeclaration(void 0,void 0,e+(c||""),void 0!==r&&s>=r?AC.createToken(58):void 0,i?void 0:(null==n?void 0:n[s])||AC.createKeywordTypeNode(159),void 0);o.push(l)}return o}function Mae(e){return Rae(Ea.Method_not_implemented.message,e)}function Rae(e,t){return AC.createBlock([AC.createThrowStatement(AC.createNewExpression(AC.createIdentifier("Error"),void 0,[AC.createStringLiteral(e,0===t)]))],!0)}function Bae(e,t,n){const r=Rm(t);if(!r)return;const i=qae(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,zae("compilerOptions",AC.createObjectLiteralExpression(n.map((([e,t])=>zae(e,t))),!0)));const o=i.initializer;if(QD(o))for(const[r,i]of n){const n=qae(o,r);void 0===n?e.insertNodeAtObjectStart(t,o,zae(r,i)):e.replaceNode(t,n.initializer,i)}}function Jae(e,t,n,r){Bae(e,t,[[n,r]])}function zae(e,t){return AC.createPropertyAssignment(AC.createStringLiteral(e),t)}function qae(e,t){return D(e.properties,(e=>qP(e)&&!!e.name&&FN(e.name)&&e.name.text===t))}function Uae(e,t){let n;const r=qB(e,(function e(r){if(lm(r)&&r.qualifier){const i=Gb(r.qualifier),o=YZ(i.symbol,t),a=o!==i.text?Vae(r.qualifier,AC.createIdentifier(o)):r.qualifier;n=he(n,i.symbol);const s=UB(r.typeArguments,e,j_);return AC.createTypeReferenceNode(a,s)}return YB(r,e,zq)}),j_);if(n&&r)return{typeNode:r,symbols:n}}function Vae(e,t){return 80===e.kind?t:AC.createQualifiedName(Vae(e.left,t),e.right)}function Wae(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}function Hae(e,t){const n=$s(t);let r=KX(e,t.start);for(;r.end<n;)r=r.parent;return r}var $ae=g({"src/services/codefixes/helpers.ts"(){zge(),Tae=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Tae||{})}});function Kae(e,t,n,r,i,o){const a=Yae(e,t,n,r);if(!a||g7.isRefactorErrorInfo(a))return;const s=Pfe.ChangeTracker.fromContext(i),{isStatic:c,isReadonly:l,fieldName:_,accessorName:u,originalName:d,type:p,container:f,declaration:m}=a;let g,h;if(iZ(_),iZ(u),iZ(m),iZ(f),w_(f)){const t=wb(m);if(Sg(e)){const e=AC.createModifiersFromModifierFlags(t);g=e,h=e}else g=AC.createModifiersFromModifierFlags(function(e){e&=-9,e&=-3,4&e||(e|=1);return e}(t)),h=AC.createModifiersFromModifierFlags(function(e){return e&=-2,e&=-5,e|=2,e}(t));_I(m)&&(h=oe(Bc(m),h))}!function(e,t,n,r,i,o){pD(n)?function(e,t,n,r,i,o){const a=AC.updatePropertyDeclaration(n,o,i,n.questionToken||n.exclamationToken,r,n.initializer);e.replaceNode(t,n,a)}(e,t,n,r,i,o):qP(n)?function(e,t,n,r){let i=AC.updatePropertyAssignment(n,r,n.initializer);(i.modifiers||i.questionToken||i.exclamationToken)&&(i===n&&(i=AC.cloneNode(i)),i.modifiers=void 0,i.questionToken=void 0,i.exclamationToken=void 0);e.replacePropertyAssignment(t,n,i)}(e,t,n,i):e.replaceNode(t,n,AC.updateParameterDeclaration(n,o,n.dotDotDotToken,mt(i,HN),n.questionToken,n.type,n.initializer))}(s,e,m,p,_,h);const y=function(e,t,n,r,i,o){return AC.createGetAccessorDeclaration(r,t,[],n,AC.createBlock([AC.createReturnStatement(Qae(e,i,o))],!0))}(_,u,p,g,c,f);if(iZ(y),Zae(s,e,y,m,f),l){const t=qv(f);t&&function(e,t,n,r,i){if(!n.body)return;n.body.forEachChild((function n(o){ZD(o)&&110===o.expression.kind&&FN(o.argumentExpression)&&o.argumentExpression.text===i&&Wx(o)&&e.replaceNode(t,o.argumentExpression,AC.createStringLiteral(r)),YD(o)&&110===o.expression.kind&&o.name.text===i&&Wx(o)&&e.replaceNode(t,o.name,AC.createIdentifier(r)),y_(o)||w_(o)||o.forEachChild(n)}))}(s,e,t,_.text,d)}else{const t=function(e,t,n,r,i,o){return AC.createSetAccessorDeclaration(r,t,[AC.createParameterDeclaration(void 0,void 0,AC.createIdentifier("value"),void 0,n)],AC.createBlock([AC.createExpressionStatement(AC.createAssignment(Qae(e,i,o),AC.createIdentifier("value")))],!0))}(_,u,p,g,c,f);iZ(t),Zae(s,e,t,m,f)}return s.getChanges()}function Gae(e){return dc(e,e.parent)||pD(e)||qP(e)}function Xae(e,t){return HN(t)?AC.createIdentifier(e):AC.createStringLiteral(e)}function Qae(e,t,n){const r=t?n.name:AC.createThis();return HN(e)?AC.createPropertyAccessExpression(r,e):AC.createElementAccessExpression(r,AC.createStringLiteralFromNode(e))}function Yae(e,t,n,r,i=!0){const o=n===r&&i,a=kc(KX(e,n).parent,Gae);if(!a||!NX(a.name,e,n,r)&&!o)return{error:wS(Ea.Could_not_find_property_for_which_to_generate_accessor)};if(!function(e){return HN(e)||FN(e)}(a.name))return{error:wS(Ea.Name_is_not_valid)};if(271!=(98303&wb(a)|271))return{error:wS(Ea.Can_only_convert_property_with_modifier)};const s=a.name.text,c=r0(s),l=Xae(c?s:_Z(`_${s}`,e),a.name),_=Xae(c?_Z(s.substring(1),e):s,a.name);return{isStatic:gb(a),isReadonly:xb(a),type:ese(a,t),container:169===a.kind?a.parent.parent:a.parent,originalName:a.name.text,declaration:a,fieldName:l,accessorName:_,renameAccessor:c}}function Zae(e,t,n,r,i){dc(r,r.parent)?e.insertMemberAtStart(t,i,n):qP(r)?e.insertNodeAfterComma(t,r,n):e.insertNodeAfter(t,r,n)}function ese(e,t){const n=Zv(e);if(pD(e)&&n&&e.questionToken){const e=t.getTypeChecker(),r=e.getTypeFromTypeNode(n);if(!e.isTypeAssignableTo(e.getUndefinedType(),r)){const e=OD(n)?n.types:[n];return AC.createUnionTypeNode([...e,AC.createKeywordTypeNode(157)])}}return n}function tse(e,t){const n=[];for(;e;){const r=uy(e),i=r&&t.getSymbolAtLocation(r.expression);if(!i)break;const o=2097152&i.flags?t.getAliasedSymbol(i):i,a=o.declarations&&D(o.declarations,w_);if(!a)break;n.push(a),e=a}return n}var nse,rse=g({"src/services/codefixes/generateAccessors.ts"(){zge()}});function ise(e,t,n,r){const i=Pfe.ChangeTracker.with(e,(e=>e.replaceNode(t,n,r)));return W5(nse,i,[Ea.Replace_import_with_0,i[0].textChanges[0].newText])}function ose(e){const t=e.sourceFile,n=Ea.This_expression_is_not_callable.code===e.errorCode?213:214,r=kc(KX(t,e.span.start),(e=>e.kind===n));if(!r)return[];return sse(e,r.expression)}function ase(e){const t=kc(KX(e.sourceFile,e.span.start),(t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length));return t?sse(e,t):[]}function sse(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&ap(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(sm(i)||be(r,function(e,t){const n=Cp(t),r=mh(t),i=e.program.getCompilerOptions(),o=[];return o.push(ise(e,n,t,eY(r.name,void 0,t.moduleSpecifier,rY(n,e.preferences)))),1===$S(i)&&o.push(ise(e,n,t,AC.createImportEqualsDeclaration(void 0,!1,r.name,AC.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),au(t)&&(!Lc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=Pfe.ChangeTracker.with(e,(e=>e.replaceNode(n,t,AC.createPropertyAccessExpression(t,"default"),{})));r.push(W5(nse,i,Ea.Use_synthetic_default_member))}return r}var cse,lse,_se,use,dse,pse=g({"src/services/codefixes/fixInvalidImportSyntax.ts"(){zge(),Ece(),nse="invalidImportSyntax",G5({errorCodes:[Ea.This_expression_is_not_callable.code,Ea.This_expression_is_not_constructable.code],getCodeActions:ose}),G5({errorCodes:[Ea.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Ea.Type_0_does_not_satisfy_the_constraint_1.code,Ea.Type_0_is_not_assignable_to_type_1.code,Ea.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,Ea.Type_predicate_0_is_not_assignable_to_1.code,Ea.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,Ea._0_index_type_1_is_not_assignable_to_2_index_type_3.code,Ea.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,Ea.Property_0_in_type_1_is_not_assignable_to_type_2.code,Ea.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,Ea.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:ase})}});function fse(e,t){const n=KX(e,t);if(HN(n)&&pD(n.parent)){const e=Yv(n.parent);if(e)return{type:e,prop:n.parent,isJs:Tg(n.parent)}}}function mse(e,t,n){iZ(n);const r=AC.updatePropertyDeclaration(n,n.modifiers,n.name,AC.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function gse(e,t,n){const r=AC.createKeywordTypeNode(157),i=OD(n.type)?n.type.types.concat(r):[n.type,r],o=AC.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[AC.createJSDocTypeTag(void 0,AC.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function hse(e,t,n,r){iZ(n);const i=AC.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function yse(e,t){return vse(e,e.getTypeFromTypeNode(t.type))}function vse(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?AC.createFalse():AC.createTrue();if(t.isStringLiteral())return AC.createStringLiteral(t.value);if(t.isNumberLiteral())return AC.createNumericLiteral(t.value);if(2048&t.flags)return AC.createBigIntLiteral(t.value);if(t.isUnion())return S(t.types,(t=>vse(e,t)));if(t.isClass()){const e=Yx(t.symbol);if(!e||fb(e,64))return;const n=qv(e);if(n&&n.parameters.length)return;return AC.createNewExpression(AC.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?AC.createArrayLiteralExpression():void 0}var bse,xse,Sse=g({"src/services/codefixes/fixStrictClassInitialization.ts"(){zge(),Ece(),cse="strictClassInitialization",lse="addMissingPropertyDefiniteAssignmentAssertions",_se="addMissingPropertyUndefinedType",use="addMissingPropertyInitializer",G5({errorCodes:dse=[Ea.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],getCodeActions:function(e){const t=fse(e.sourceFile,e.span.start);if(!t)return;const n=[];return he(n,function(e,t){const n=Pfe.ChangeTracker.with(e,(n=>gse(n,e.sourceFile,t)));return H5(cse,n,[Ea.Add_undefined_type_to_property_0,t.prop.name.getText()],_se,Ea.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),he(n,function(e,t){if(t.isJs)return;const n=Pfe.ChangeTracker.with(e,(n=>mse(n,e.sourceFile,t.prop)));return H5(cse,n,[Ea.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],lse,Ea.Add_definite_assignment_assertions_to_all_uninitialized_properties)}(e,t)),he(n,function(e,t){if(t.isJs)return;const n=yse(e.program.getTypeChecker(),t.prop);if(!n)return;const r=Pfe.ChangeTracker.with(e,(r=>hse(r,e.sourceFile,t.prop,n)));return H5(cse,r,[Ea.Add_initializer_to_property_0,t.prop.name.getText()],use,Ea.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[lse,_se,use],getAllCodeActions:e=>t9(e,dse,((t,n)=>{const r=fse(n.file,n.start);if(r)switch(e.fixId){case lse:mse(t,n.file,r.prop);break;case _se:gse(t,n.file,r);break;case use:const i=yse(e.program.getTypeChecker(),r.prop);if(!i)return;hse(t,n.file,r.prop,i);break;default:Sn.fail(JSON.stringify(e.fixId))}}))})}});function kse(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,required:s}=n;e.replaceNode(t,a,i&&!r?AC.createImportEqualsDeclaration(void 0,!1,i,AC.createExternalModuleReference(s)):AC.createImportDeclaration(void 0,AC.createImportClause(!1,i,o),s,void 0))}function Tse(e,t,n){const{parent:r}=KX(e,n);Fg(r,!0)||Sn.failBadSyntaxKind(r);const i=mt(r.parent,GF),o=ft(i.name,HN),a=$D(i.name)?function(e){const t=[];for(const n of e.elements){if(!HN(n.name)||n.initializer)return;t.push(AC.createImportSpecifier(!1,ft(n.propertyName,HN),n.name))}if(t.length)return AC.createNamedImports(t)}(i.name):void 0;if(o||a)return{allowSyntheticDefaults:ik(t.getCompilerOptions()),defaultImportName:o,namedImports:a,statement:mt(i.parent.parent,EF),required:Pe(r.arguments)}}var Cse,wse,Nse=g({"src/services/codefixes/requireInTs.ts"(){zge(),Ece(),bse="requireInTs",G5({errorCodes:xse=[Ea.require_call_may_be_converted_to_an_import.code],getCodeActions(e){const t=Tse(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Pfe.ChangeTracker.with(e,(n=>kse(n,e.sourceFile,t)));return[H5(bse,n,Ea.Convert_require_to_import,bse,Ea.Convert_all_require_to_import)]},fixIds:[bse],getAllCodeActions:e=>t9(e,xse,((t,n)=>{const r=Tse(n.file,e.program,n.start);r&&kse(t,e.sourceFile,r)}))})}});function Dse(e,t){const n=KX(e,t);if(!HN(n))return;const{parent:r}=n;if(aP(r)&&CP(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(fP(r)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function Fse(e,t,n,r){e.replaceNode(t,n.importNode,eY(n.name,void 0,n.moduleSpecifier,rY(t,r)))}var Pse,Ese,Ase=g({"src/services/codefixes/useDefaultImport.ts"(){zge(),Ece(),Cse="useDefaultImport",G5({errorCodes:wse=[Ea.Import_may_be_converted_to_a_default_import.code],getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=Dse(t,n);if(!r)return;const i=Pfe.ChangeTracker.with(e,(n=>Fse(n,t,r,e.preferences)));return[H5(Cse,i,Ea.Convert_to_default_import,Cse,Ea.Convert_all_to_default_imports)]},fixIds:[Cse],getAllCodeActions:e=>t9(e,wse,((t,n)=>{const r=Dse(n.file,n.start);r&&Fse(t,n.file,r,e.preferences)}))})}});function Ise(e,t,n){const r=ft(KX(t,n.start),NN);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,AC.createBigIntLiteral(i))}var Ose,Lse,jse=g({"src/services/codefixes/useBigintLiteral.ts"(){zge(),Ece(),Pse="useBigintLiteral",G5({errorCodes:Ese=[Ea.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],getCodeActions:function(e){const t=Pfe.ChangeTracker.with(e,(t=>Ise(t,e.sourceFile,e.span)));if(t.length>0)return[H5(Pse,t,Ea.Convert_to_a_bigint_numeric_literal,Pse,Ea.Convert_all_to_bigint_numeric_literals)]},fixIds:[Pse],getAllCodeActions:e=>t9(e,Ese,((e,t)=>Ise(e,t.file,t)))})}});function Mse(e,t){const n=KX(e,t);return Sn.assert(102===n.kind,"This token should be an ImportKeyword"),Sn.assert(205===n.parent.kind,"Token parent should be an ImportType"),n.parent}function Rse(e,t,n){const r=AC.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}var Bse,Jse,zse=g({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){zge(),Ece(),"fixAddModuleReferTypeMissingTypeof",Ose="fixAddModuleReferTypeMissingTypeof",G5({errorCodes:Lse=[Ea.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Mse(t,n.start),i=Pfe.ChangeTracker.with(e,(e=>Rse(e,t,r)));return[H5(Ose,i,Ea.Add_missing_typeof,Ose,Ea.Add_missing_typeof)]},fixIds:[Ose],getAllCodeActions:e=>t9(e,Lse,((t,n)=>Rse(t,e.sourceFile,Mse(n.file,n.start))))})}});function qse(e,t){let n=KX(e,t).parent.parent;if((pF(n)||(n=n.parent,pF(n)))&&Ip(n.operatorToken))return n}function Use(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(pF(n)&&Ip(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),Ou(n.right))return t.push(n.right),t;if(pF(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,AC.createJsxFragment(AC.createJsxOpeningFragment(),r,AC.createJsxJsxClosingFragment()))}var Vse,Wse,Hse=g({"src/services/codefixes/wrapJsxInFragment.ts"(){zge(),Ece(),Bse="wrapJsxInFragment",G5({errorCodes:Jse=[Ea.JSX_expressions_must_have_one_parent_element.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=qse(t,n.start);if(!r)return;const i=Pfe.ChangeTracker.with(e,(e=>Use(e,t,r)));return[H5(Bse,i,Ea.Wrap_in_JSX_fragment,Bse,Ea.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Bse],getAllCodeActions:e=>t9(e,Jse,((t,n)=>{const r=qse(e.sourceFile,n.start);r&&Use(t,e.sourceFile,r)}))})}});function $se(e,t){const n=ft(KX(e,t).parent.parent,SD);if(!n)return;const r=ZF(n.parent)?n.parent:ft(n.parent.parent,eP);return r?{indexSignature:n,container:r}:void 0}function Kse(e,t,{indexSignature:n,container:i}){const o=(ZF(i)?i.members:i.type.members).filter((e=>!SD(e))),a=Pe(n.parameters),s=AC.createTypeParameterDeclaration(void 0,mt(a.name,HN),a.type),c=AC.createMappedTypeNode(xb(n)?AC.createModifier(148):void 0,s,void 0,n.questionToken,n.type,void 0),l=AC.createIntersectionTypeNode([...py(i),c,...o.length?[AC.createTypeLiteralNode(o)]:r]);var _,u;e.replaceNode(t,i,(_=i,u=l,AC.createTypeAliasDeclaration(_.modifiers,_.name,_.typeParameters,u)))}var Gse,Xse,Qse,Yse=g({"src/services/codefixes/convertToMappedObjectType.ts"(){zge(),Ece(),Vse="fixConvertToMappedObjectType",G5({errorCodes:Wse=[Ea.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=$se(t,n.start);if(!r)return;const i=Pfe.ChangeTracker.with(e,(e=>Kse(e,t,r))),o=Dc(r.container.name);return[H5(Vse,i,[Ea.Convert_0_to_mapped_object_type,o],Vse,[Ea.Convert_0_to_mapped_object_type,o])]},fixIds:[Vse],getAllCodeActions:e=>t9(e,Wse,((e,t)=>{const n=$se(t.file,t.start);n&&Kse(e,t.file,n)}))})}}),Zse=g({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){zge(),Ece(),Gse="removeAccidentalCallParentheses",G5({errorCodes:[Ea.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=kc(KX(e.sourceFile,e.span.start),eF);if(!t)return;const n=Pfe.ChangeTracker.with(e,(n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}));return[W5(Gse,n,Ea.Remove_parentheses)]},fixIds:[Gse]})}});function ece(e,t,n){const r=ft(KX(t,n.start),(e=>135===e.kind)),i=r&&ft(r.parent,_F);if(!i)return;let o=i;if(iF(i.parent)){if(HN(pS(i.expression,!1))){const e=ZX(i.parent.pos,t);e&&105!==e.kind&&(o=i.parent)}}e.replaceNode(t,o,i.expression)}var tce,nce,rce=g({"src/services/codefixes/removeUnnecessaryAwait.ts"(){zge(),Ece(),Xse="removeUnnecessaryAwait",G5({errorCodes:Qse=[Ea.await_has_no_effect_on_the_type_of_this_expression.code],getCodeActions:function(e){const t=Pfe.ChangeTracker.with(e,(t=>ece(t,e.sourceFile,e.span)));if(t.length>0)return[H5(Xse,t,Ea.Remove_unnecessary_await,Xse,Ea.Remove_all_unnecessary_uses_of_await)]},fixIds:[Xse],getAllCodeActions:e=>t9(e,Qse,((e,t)=>ece(e,t.file,t)))})}});function ice(e,t){return kc(KX(e,t.start),sP)}function oce(e,t,n){if(!t)return;const r=Sn.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,AC.updateImportDeclaration(t,t.modifiers,AC.updateImportClause(r,r.isTypeOnly,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,AC.createImportDeclaration(void 0,AC.updateImportClause(r,r.isTypeOnly,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}var ace,sce,cce=g({"src/services/codefixes/splitTypeOnlyImport.ts"(){zge(),Ece(),G5({errorCodes:tce=[Ea.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],fixIds:[nce="splitTypeOnlyImport"],getCodeActions:function(e){const t=Pfe.ChangeTracker.with(e,(t=>oce(t,ice(e.sourceFile,e.span),e)));if(t.length)return[H5(nce,t,Ea.Split_into_two_separate_import_declarations,nce,Ea.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>t9(e,tce,((t,n)=>{oce(t,ice(e.sourceFile,n),e)}))})}});function lce(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation(KX(e,t));if(void 0===i)return;const o=ft(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,XF);if(void 0===o)return;const a=OX(o,87,e);return void 0!==a?{symbol:i,token:a}:void 0}function _ce(e,t,n){e.replaceNode(t,n,AC.createToken(121))}var uce,dce,pce,fce=g({"src/services/codefixes/convertConstToLet.ts"(){zge(),Ece(),ace="fixConvertConstToLet",G5({errorCodes:sce=[Ea.Cannot_assign_to_0_because_it_is_a_constant.code],getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=lce(t,n.start,r);if(void 0===i)return;const o=Pfe.ChangeTracker.with(e,(e=>_ce(e,t,i.token)));return[$5(ace,o,Ea.Convert_const_to_let,ace,Ea.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Map;return Z5(Pfe.ChangeTracker.with(e,(r=>{n9(e,sce,(e=>{const i=lce(e.file,e.start,t);if(i&&iS(n,EB(i.symbol)))return _ce(r,e.file,i.token)}))})))},fixIds:[ace]})}});function mce(e,t,n){const r=KX(e,t);return 27===r.kind&&r.parent&&(QD(r.parent)||XD(r.parent))?{node:r}:void 0}function gce(e,t,{node:n}){const r=AC.createToken(28);e.replaceNode(t,n,r)}var hce,yce,vce=g({"src/services/codefixes/fixExpectedComma.ts"(){zge(),Ece(),uce="fixExpectedComma",dce=Ea._0_expected.code,G5({errorCodes:pce=[dce],getCodeActions(e){const{sourceFile:t}=e,n=mce(t,e.span.start,e.errorCode);if(!n)return;const r=Pfe.ChangeTracker.with(e,(e=>gce(e,t,n)));return[H5(uce,r,[Ea.Change_0_to_1,";",","],uce,[Ea.Change_0_to_1,";",","])]},fixIds:[uce],getAllCodeActions:e=>t9(e,pce,((t,n)=>{const r=mce(n.file,n.start,n.code);r&&gce(t,e.sourceFile,r)}))})}});function bce(e,t,n,r,i){const o=KX(t,n.start);if(!HN(o)||!eF(o.parent)||o.parent.expression!==o||0!==o.parent.arguments.length)return;const a=r.getTypeChecker(),s=a.getSymbolAtLocation(o),c=null==s?void 0:s.valueDeclaration;if(!c||!_D(c)||!tF(c.parent.parent))return;if(null==i?void 0:i.has(c))return;null==i||i.add(c);const l=function(e){var t;if(!Tg(e))return e.typeArguments;if(iF(e.parent)){const n=null==(t=pl(e.parent))?void 0:t.typeExpression.type;if(n&&TD(n)&&HN(n.typeName)&&"Promise"===Dc(n.typeName))return n.typeArguments}}(c.parent.parent);if(re(l)){const n=l[0],r=!OD(n)&&!RD(n)&&RD(AC.createUnionTypeNode([n,AC.createKeywordTypeNode(116)]).types[0]);r&&e.insertText(t,n.pos,"("),e.insertText(t,n.end,r?") | void":" | void")}else{const n=a.getResolvedSignature(o.parent),r=null==n?void 0:n.parameters[0],i=r&&a.getTypeOfSymbolAtLocation(r,c.parent.parent);Tg(c)?(!i||3&i.flags)&&(e.insertText(t,c.parent.parent.end,")"),e.insertText(t,ys(t.text,c.parent.parent.pos),"/** @type {Promise<void>} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"<void>")}}var xce=g({"src/services/codefixes/fixAddVoidToPromise.ts"(){zge(),Ece(),"addVoidToPromise",hce="addVoidToPromise",G5({errorCodes:yce=[Ea.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,Ea.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],fixIds:[hce],getCodeActions(e){const t=Pfe.ChangeTracker.with(e,(t=>bce(t,e.sourceFile,e.span,e.program)));if(t.length>0)return[H5("addVoidToPromise",t,Ea.Add_void_to_Promise_resolved_without_a_value,hce,Ea.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>t9(e,yce,((t,n)=>bce(t,n.file,n,e.program,new Set)))})}}),Sce={};h(Sce,{PreserveOptionalFlags:()=>Tae,addNewNodeForMemberSymbol:()=>Dae,codeFixAll:()=>t9,createCodeFixAction:()=>H5,createCodeFixActionMaybeFixAll:()=>$5,createCodeFixActionWithoutFixAll:()=>W5,createCombinedCodeActions:()=>Z5,createFileTextChanges:()=>e9,createImportAdder:()=>Wte,createImportSpecifierResolver:()=>$te,createJsonPropertyAssignment:()=>zae,createMissingMemberNodes:()=>wae,createSignatureDeclarationFromCallExpression:()=>Pae,createSignatureDeclarationFromSignature:()=>Fae,createStubbedBody:()=>Rae,eachDiagnostic:()=>n9,findAncestorMatchingSpan:()=>Hae,findJsonProperty:()=>qae,generateAccessorFromProperty:()=>Kae,getAccessorConvertiblePropertyAtPosition:()=>Yae,getAllFixes:()=>Y5,getAllSupers:()=>tse,getArgumentTypesAndTypeParameters:()=>Oae,getFixes:()=>Q5,getImportCompletionAction:()=>Kte,getImportKind:()=>lne,getJSDocTypedefNodes:()=>Fte,getNoopSymbolTrackerWithResolver:()=>Nae,getPromoteTypeOnlyCompletionAction:()=>Gte,getSupportedErrorCodes:()=>X5,importFixName:()=>zte,importSymbols:()=>Wae,moduleSpecifierToValidIdentifier:()=>Cne,moduleSymbolToValidIdentifier:()=>Tne,parameterShouldGetTypeFromJSDoc:()=>eee,registerCodeFix:()=>G5,setJsonCompilerOptionValue:()=>Jae,setJsonCompilerOptionValues:()=>Bae,tryGetAutoImportableReferenceFromTypeNode:()=>Uae,typeToAutoImportableTypeNode:()=>Aae});var kce,Tce,Cce,wce,Nce,Dce,Fce,Pce,Ece=g({"src/services/_namespaces/ts.codefix.ts"(){a9(),u9(),d9(),v9(),F9(),L9(),B9(),U9(),$9(),Y9(),see(),fee(),Uee(),lte(),fte(),vte(),Cte(),Ate(),Mte(),Vte(),Dne(),jne(),qne(),$ne(),Qne(),ore(),cre(),gre(),Ere(),Gre(),eie(),aie(),die(),yie(),kie(),Nie(),Iie(),Oie(),Bie(),Wie(),Yie(),roe(),aoe(),poe(),Noe(),Eoe(),joe(),Uoe(),Koe(),Zoe(),rae(),gae(),Sae(),Cae(),$ae(),rse(),pse(),Sse(),Nse(),Ase(),jse(),zse(),Hse(),Yse(),Zse(),rce(),cce(),fce(),vce(),xce()}});function Ace(e){return!!(e&&4&e.kind)}function Ice(e){return!(!e||32!==e.kind)}function Oce(e){return(Ace(e)||Ice(e))&&!!e.isFromPackageJson}function Lce(e){return!!(e&&64&e.kind)}function jce(e){return!!(e&&128&e.kind)}function Mce(e){return!!(e&&512&e.kind)}function Rce(e,t,n,r,i,o,a,s,c){var l,_,u;const d=Yn(),p=a||ok(GS(r.getCompilerOptions()));let f=!1,m=0,g=0,h=0,y=0;const v=c({tryResolve:function(e,t){if(t){const t=n.getModuleSpecifierForBestExportInfo(e,i,s);return t&&m++,t||"failed"}const r=p||o.allowIncompleteCompletions&&g<kce,a=!r&&o.allowIncompleteCompletions&&y<Tce,c=r||a?n.getModuleSpecifierForBestExportInfo(e,i,s,a):void 0;(!r&&!a||a&&!c)&&(f=!0);g+=(null==c?void 0:c.computedWithoutCacheCount)||0,h+=e.length-((null==c?void 0:c.computedWithoutCacheCount)||0),a&&y++;return c||(p?"failed":"skipped")},skippedAny:()=>f,resolvedAny:()=>g>0,resolvedBeyondLimit:()=>g>kce}),b=y?` (${(h/y*100).toFixed(1)}% hit rate)`:"";return null==(l=t.log)||l.call(t,`${e}: resolved ${g} module specifiers, plus ${m} ambient and ${h} from cache${b}`),null==(_=t.log)||_.call(t,`${e}: response is ${f?"incomplete":"complete"}`),null==(u=t.log)||u.call(t,`${e}: ${Yn()-d}`),v}function Bce(e,t,n,r,i,o,a,s,c,l,_=!1){var u;const{previousToken:d}=vle(i,r);if(a&&!rQ(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&xZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&$N(n)&&!!Um(n);case"<":return!!n&&30===n.kind&&(!pF(n.parent)||Ile(n.parent));case"/":return!!n&&(Qu(n)?!!ph(n):44===n.kind&&FP(n.parent));case" ":return!!n&&oD(n)&&312===n.parent.kind;default:return Sn.assertNever(t)}}(r,a,d,i))return;if(" "===a)return o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;const p=t.getCompilerOptions(),f=t.getTypeChecker(),m=o.allowIncompleteCompletions?null==(u=e.getIncompleteCompletionsCache)?void 0:u.call(e):void 0;if(m&&3===s&&d&&HN(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const l=HX(t,s),_=n.text.toLowerCase(),u=S0(t,i,r,o,a),d=Rce("continuePreviousIncompleteResponse",i,Sce.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,TT(n),(e=>{const n=G(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||zce(n.data))return n;if(!Ule(n.name,_))return;const{origin:a}=Sn.checkDefined(ble(n.name,n.data,r,i)),s=u.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!Vs(fv(a.moduleSymbol.name)));if("skipped"===c)return n;if(!c||"failed"===c)return void(null==(o=i.log)||o.call(i,`Unexpected failure resolving auto import for '${n.name}' from '${n.source}'`));const l={...a,kind:32,moduleSpecifier:c.moduleSpecifier};return n.data=ole(l),n.source=lle(l),n.sourceDisplay=[AY(l.moduleSpecifier)],n}));return e.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=$ce(l),c}(m,r,d,t,e,o,c,i);if(n)return n}else null==m||m.clear();const g=k_e.getStringLiteralCompletions(r,i,d,p,e,t,n,o,_);if(g)return g;if(d&&Rl(d.parent)&&(83===d.kind||88===d.kind||80===d.kind))return function(e){const t=function(e){const t=[],n=new Map;let r=e;for(;r&&!y_(r);){if(WF(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:Cce.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}(d.parent);const h=yle(t,n,r,p,i,o,void 0,e,l,c);var y;if(h)switch(h.kind){case 0:const a=function(e,t,n,r,i,o,a,s,c,l){const{symbols:_,contextToken:u,completionKind:d,isInSnippetScope:p,isNewIdentifierLocation:f,location:m,propertyAccessToConvert:g,keywordFilters:h,symbolToOriginInfoMap:y,recommendedCompletion:v,isJsxInitializer:b,isTypeOnlyLocation:x,isJsxIdentifierExpected:S,isRightOfOpenTag:k,isRightOfDotOrQuestionDot:T,importStatementCompletion:C,insideJsDocTagTypeExpression:w,symbolToSortTextMap:N,hasUnresolvedAutoImports:D}=o;let F=o.literals;const P=n.getTypeChecker();if(1===zS(e.scriptKind)){const t=function(e,t){const n=kc(e,(e=>{switch(e.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}}));if(n){const e=!!OX(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:EQ(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:Cce.LocationPriority}]}}return}(m,e);if(t)return t}const E=kc(u,RP);if(E&&(aD(u)||Zh(u,E.expression))){const e=p0(P,E.parent.clauses);F=F.filter((t=>!e.hasValue(t))),_.forEach(((t,n)=>{if(t.valueDeclaration&&WP(t.valueDeclaration)){const r=P.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}}))}const A=[],I=Kce(e,r);if(I&&!f&&(!_||0===_.length)&&0===h)return;const O=_le(_,A,void 0,u,m,c,e,t,n,HS(r),i,d,a,r,s,x,g,S,b,C,v,y,N,S,k,l);if(0!==h)for(const t of Sle(h,!w&&Sg(e)))(x&&RQ(ns(t.name))||!x&&Wle(t.name)||!O.has(t.name))&&(O.add(t.name),_e(A,t,Jce,!0));for(const e of function(e,t){const n=[];if(e){const r=e.getSourceFile(),i=e.parent,o=r.getLineAndCharacterOfPosition(e.end).line,a=r.getLineAndCharacterOfPosition(t).line;(sP(i)||vP(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:ts(132),kind:"keyword",kindModifiers:"",sortText:Cce.GlobalsOrKeywords})}return n}(u,c))O.has(e.name)||(O.add(e.name),_e(A,e,Jce,!0));for(const t of F){const n=ele(e,a,t);O.add(n.name),_e(A,n,Jce,!0)}I||function(e,t,n,r,i){s5(e).forEach(((e,o)=>{if(e===t)return;const a=Nc(o);!n.has(a)&&Os(a,r)&&(n.add(a),_e(i,{name:a,kind:"warning",kindModifiers:"",sortText:Cce.JavascriptIdentifiers,isFromUncheckedFile:!0},Jce))}))}(e,m.pos,O,HS(r),A);let L;if(a.includeCompletionsWithInsertText&&u&&!k&&!T&&(L=kc(u,iP))){const i=Gce(L,e,a,r,t,n,s);i&&A.push(i.entry)}return{flags:o.flags,isGlobalCompletion:p,isIncomplete:!(!a.allowIncompleteCompletions||!D)||void 0,isMemberCompletion:Yce(d),isNewIdentifierLocation:f,optionalReplacementSpan:$ce(m),entries:A}}(r,e,t,p,n,h,o,l,i,_);return(null==a?void 0:a.isIncomplete)&&(null==m||m.set(a)),a;case 1:return qce([...sde.getJSDocTagNameCompletions(),...Uce(r,i,f,p,o,!0)]);case 2:return qce([...sde.getJSDocTagCompletions(),...Uce(r,i,f,p,o,!1)]);case 3:return qce(sde.getJSDocParameterNameCompletions(h.tag));case 4:return y=h.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:h.isNewIdentifierLocation,entries:y.slice()};default:return Sn.assertNever(h)}}function Jce(e,t){var n,r;let i=qt(e.sortText,t.sortText);return 0===i&&(i=qt(e.name,t.name)),0===i&&(null==(n=e.data)?void 0:n.moduleSpecifier)&&(null==(r=t.data)?void 0:r.moduleSpecifier)&&(i=Qk(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function zce(e){return!!(null==e?void 0:e.moduleSpecifier)}function qce(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function Uce(e,t,n,r,i,o){const a=KX(e,t);if(!zu(a)&&!_E(a))return[];const s=_E(a)?a:a.parent;if(!_E(s))return[];const c=s.parent;if(!y_(c))return[];const l=Sg(e),_=i.includeCompletionsWithSnippetText||void 0,u=j(s.tags,(e=>wE(e)&&e.getEnd()<=t));return G(c.parameters,(e=>{if(!qc(e).length){if(HN(e.name)){const t={tabstop:1},a=e.name.text;let s=Wce(a,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=_?Wce(a,e.initializer,e.dotDotDotToken,l,!1,!0,n,r,i,t):void 0;return o&&(s=s.slice(1),c&&(c=c.slice(1))),{name:s,kind:"parameter",sortText:Cce.LocationPriority,insertText:_?c:void 0,isSnippet:_}}if(e.parent.parameters.indexOf(e)===u){const t=`param${u}`,a=Vce(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=_?Vce(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0;let c=a.join(mx(r)+"* "),d=null==s?void 0:s.join(mx(r)+"* ");return o&&(c=c.slice(1),d&&(d=d.slice(1))),{name:c,kind:"parameter",sortText:Cce.LocationPriority,insertText:_?d:void 0,isSnippet:_}}}}))}function Vce(e,t,n,r,i,o,a,s,c){return i?l(e,t,n,r,{tabstop:1}):[Wce(e,n,r,i,!1,o,a,s,c,{tabstop:1})];function l(e,t,n,r,l){if($D(t)&&!r){const u={tabstop:l.tabstop},d=Wce(e,n,r,i,!0,o,a,s,c,u);let p=[];for(const n of t.elements){const t=_(e,n,u);if(!t){p=void 0;break}p.push(...t)}if(p)return l.tabstop=u.tabstop,[d,...p]}return[Wce(e,n,r,i,!1,o,a,s,c,l)]}function _(e,t,n){if(!t.propertyName&&HN(t.name)||HN(t.name)){const r=t.propertyName?jf(t.propertyName):t.name.text;if(!r)return;return[Wce(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,o,a,s,c,n)]}if(t.propertyName){const r=jf(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function Wce(e,t,n,r,i,o,a,s,c,l){if(o&&Sn.assertIsDefined(l),t&&(e=function(e,t){const n=t.getText().trim();if(n.includes("\n")||n.length>80)return`[${e}]`;return`[${e}=${n}]`}(e,t)),o&&(e=WT(e)),r){let r="*";if(i)Sn.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),r="Object";else{if(t){const e=a.getTypeAtLocation(t.parent);if(!(16385&e.flags)){const n=t.getSourceFile(),i=0===rY(n,c)?268435456:0,l=a.typeToTypeNode(e,kc(t,y_),i);if(l){const e=o?ile({removeComments:!0,module:s.module,target:s.target}):DU({removeComments:!0,module:s.module,target:s.target});rw(l,1),r=e.printNode(4,l,n)}}}o&&"*"===r&&(r=`\${${l.tabstop++}:${r}}`)}return`@param {${!i&&n?"...":""}${r}} ${e} ${o?`\${${l.tabstop++}}`:""}`}return`@param ${e} ${o?`\${${l.tabstop++}}`:""}`}function Hce(e,t,n){return{kind:4,keywordCompletions:Sle(e,t),isNewIdentifierLocation:n}}function $ce(e){return 80===(null==e?void 0:e.kind)?EQ(e):void 0}function Kce(e,t){return!Sg(e)||!!_T(e,t)}function Gce(e,t,n,r,i,o,a){const s=e.clauses,c=o.getTypeChecker(),l=c.getTypeAtLocation(e.parent.expression);if(l&&l.isUnion()&&N(l.types,(e=>e.isLiteral()))){const _=p0(c,s),u=HS(r),d=rY(t,n),p=Sce.createImportAdder(t,o,n,i),f=[];for(const t of l.types)if(1024&t.flags){Sn.assert(t.symbol,"An enum member type should have a symbol"),Sn.assert(t.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const n=t.symbol.valueDeclaration&&c.getConstantValue(t.symbol.valueDeclaration);if(void 0!==n){if(_.hasValue(n))continue;_.addValue(n)}const r=Sce.typeToAutoImportableTypeNode(c,p,t,e,u);if(!r)return;const i=Xce(r,u,d);if(!i)return;f.push(i)}else if(!_.hasValue(t.value))switch(typeof t.value){case"object":f.push(t.value.negative?AC.createPrefixUnaryExpression(41,AC.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):AC.createBigIntLiteral(t.value));break;case"number":f.push(t.value<0?AC.createPrefixUnaryExpression(41,AC.createNumericLiteral(-t.value)):AC.createNumericLiteral(t.value));break;case"string":f.push(AC.createStringLiteral(t.value,0===d))}if(0===f.length)return;const m=J(f,(e=>AC.createCaseClause(e,[]))),g=BY(i,null==a?void 0:a.options),h=ile({removeComments:!0,module:r.module,target:r.target,newLine:c0(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=J(m,((e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`)).join(g);return{entry:{name:`${h.printNode(4,m[0],t)} ...`,kind:"",sortText:Cce.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function Xce(e,t,n){switch(e.kind){case 183:return Qce(e.typeName,t,n);case 199:const r=Xce(e.objectType,t,n),i=Xce(e.indexType,t,n);return r&&i&&AC.createElementAccessExpression(r,i);case 201:const o=e.literal;switch(o.kind){case 11:return AC.createStringLiteral(o.text,0===n);case 9:return AC.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 196:const a=Xce(e.type,t,n);return a&&(HN(a)?a:AC.createParenthesizedExpression(a));case 186:return Qce(e.exprName,t,n);case 205:Sn.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Qce(e,t,n){if(HN(e))return e;const r=Nc(e.right.escapedText);return eC(r,t)?AC.createPropertyAccessExpression(Qce(e.left,t,n),r):AC.createElementAccessExpression(Qce(e.left,t,n),AC.createStringLiteral(r,0===n))}function Yce(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function Zce(e,t,n){return"object"==typeof n?bT(n)+"n":dt(n)?vZ(e,t,n):JSON.stringify(n)}function ele(e,t,n){return{name:Zce(e,t,n),kind:"string",kindModifiers:"",sortText:Cce.LocationPriority}}function tle(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,v,b,x,S,k){var T,C;let w,F,P,E,A,I,O,L=PQ(n),j=lle(u);const M=c.getTypeChecker(),R=u&&function(e){return!!(16&e.kind)}(u),B=u&&function(e){return!!(2&e.kind)}(u)||_;if(u&&function(e){return!!(1&e.kind)}(u))w=_?`this${R?"?.":""}[${sle(a,y,l)}]`:`this${R?"?.":"."}${l}`;else if((B||R)&&p){w=B?_?`[${sle(a,y,l)}]`:`[${l}]`:l,(R||p.questionDotToken)&&(w=`?.${w}`);const e=OX(p,25,a)||OX(p,29,a);if(!e)return;const t=an(l,p.name.text)?p.name.end:e.end;L=ac(e.getStart(a),t)}if(f&&(void 0===w&&(w=l),w=`{${w}}`,"boolean"!=typeof f&&(L=EQ(f,a))),u&&function(e){return!!(8&e.kind)}(u)&&p){void 0===w&&(w=l);const e=ZX(p.pos,a);let t="";e&&FZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${p.expression.getText()})`,w=_?`${t}${w}`:`${t}${R?"?.":"."}${w}`;L=ac((ft(p.parent,_F)?p.parent:p.expression).getStart(a),p.end)}if(Ice(u)&&(A=[AY(u.moduleSpecifier)],m&&(({insertText:w,replacementSpan:L}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=WT(vZ(i,a,n.moduleSpecifier)),l=n.isDefaultExport?1:"export="===n.exportName?2:0,_=a.includeCompletionsWithSnippetText?"$1":"",u=Sce.getImportKind(i,l,o,!0),d=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${ts(156)} `:" ",f=d?`${ts(156)} `:"",m=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${p}${WT(e)}${_} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${WT(e)}${_} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${WT(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${WT(e)}${_} } from ${c}${m}`}}}(l,m,u,g,a,h,y)),E=!!y.includeCompletionsWithSnippetText||void 0)),64===(null==u?void 0:u.kind)&&(I=!0),0===v&&r&&28!==(null==(T=ZX(r.pos,a,r))?void 0:T.kind)&&(mD(r.parent.parent)||yD(r.parent.parent)||vD(r.parent.parent)||VP(r.parent)||(null==(C=kc(r.parent,qP))?void 0:C.getLastToken(a))===r||UP(r.parent)&&_s(a,r.getEnd()).line!==_s(a,o).line)&&(j="ObjectLiteralMemberWithComma/",I=!0),y.includeCompletionsWithClassMemberSnippets&&y.includeCompletionsWithInsertText&&3===v&&function(e,t,n){if(Tg(t))return!1;const r=106500;return!!(e.flags&r)&&(w_(t)||t.parent&&t.parent.parent&&C_(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&w_(t.parent.parent)||t.parent&&ME(t)&&w_(t.parent))}(e,i,a)){let t;const n=nle(s,c,h,y,l,e,i,o,r,b);if(!n)return;({insertText:w,filterText:F,isSnippet:E,importAdder:t}=n),(null==t?void 0:t.hasFixes())&&(I=!0,j="ClassMemberSnippet/")}if(u&&jce(u)&&(({insertText:w,isSnippet:E,labelDetails:O}=u),y.useLabelDetailsInCompletionEntries||(l+=O.detail,O=void 0),j="ObjectLiteralMethodSnippet/",t=Cce.SortBelow(t)),x&&!S&&y.includeCompletionsWithSnippetText&&y.jsxAttributeCompletionStyle&&"none"!==y.jsxAttributeCompletionStyle&&(!IP(i.parent)||!i.parent.initializer)){let t="braces"===y.jsxAttributeCompletionStyle;const n=M.getTypeOfSymbolAtLocation(e,i);"auto"!==y.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&D(n.types,(e=>!!(528&e.flags)))||(402653316&n.flags||1048576&n.flags&&N(n.types,(e=>!!(402686084&e.flags||SQ(e))))?(w=`${WT(l)}=${vZ(a,y,"$1")}`,E=!0):t=!0),t&&(w=`${WT(l)}={$1}`,E=!0)}if(void 0!==w&&!y.includeCompletionsWithInsertText)return;(Ace(u)||Ice(u))&&(P=ole(u),I=!m);const J=kc(i,_S);if(275===(null==J?void 0:J.kind)){const e=ns(l);J&&e&&(135===e||xy(e))&&(w=`${l} as ${l}_`)}return{name:l,kind:Zpe.getSymbolKind(M,e,i),kindModifiers:Zpe.getSymbolModifiers(M,e),sortText:t,source:j,hasAction:!!I||void 0,isRecommended:cle(e,d,M)||void 0,insertText:w,filterText:F,replacementSpan:L,sourceDisplay:A,labelDetails:O,isSnippet:E,isPackageJsonImport:Oce(u)||void 0,isImportStatementCompletion:!!m||void 0,data:P,...k?{symbol:e}:void 0}}function nle(e,t,n,r,i,o,a,s,c,l){const _=kc(a,w_);if(!_)return;let u,d=i;const p=i,f=t.getTypeChecker(),m=a.getSourceFile(),g=ile({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:c0(BY(e,null==l?void 0:l.options))}),h=Sce.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=AC.createEmptyStatement();y=AC.createBlock([e],!0),Pw(e,{kind:0,order:0})}else y=AC.createBlock([],!0);let v=0;const{modifiers:b,range:x,decorators:S}=function(e,t,n){if(!e||_s(t,n).line>_s(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;const a={pos:n,end:n};pD(e.parent)&&e.parent.modifiers&&(o|=98303&Ib(e.parent.modifiers),r=e.parent.modifiers.filter(uD)||[],a.pos=Math.min(a.pos,e.parent.modifiers.pos));if(i=function(e){if(f_(e))return e.kind;if(HN(e)){const t=Fc(e);if(t&&u_(t))return t}return}(e)){const t=Ob(i);o&t||(o|=t,a.pos=Math.min(a.pos,e.pos))}return{modifiers:o,decorators:r,range:a.pos!==n?a:void 0}}(c,m,s),k=64&b&&64&_.modifierFlagsCache;let T=[];if(Sce.addNewNodeForMemberSymbol(o,_,m,{program:t,host:e},r,h,(e=>{let t=0;k&&(t|=64),C_(e)&&1===f.getMemberOverrideModifierStatus(_,e,o)&&(t|=16),T.length||(v=e.modifierFlagsCache|t),e=AC.replaceModifiers(e,v),T.push(e)}),y,Sce.PreserveOptionalFlags.Property,!!k),T.length){const e=8192&o.flags;let t=17|v;t|=e?1024:136;const n=b&t;if(b&~t)return;if(4&v&&1&n&&(v&=-5),0===n||1&n||(v&=-2),v|=n,T=T.map((e=>AC.replaceModifiers(e,v))),null==S?void 0:S.length){const e=T[T.length-1];_I(e)&&(T[T.length-1]=AC.replaceDecoratorsAndModifiers(e,S.concat(Jc(e)||[])))}const r=131073;d=l?g.printAndFormatSnippetList(r,AC.createNodeArray(T),m,l):g.printSnippetList(r,AC.createNodeArray(T),m)}return{insertText:d,filterText:p,isSnippet:u,importAdder:h,eraseRange:x}}function rle(e,t,n,r,i,o,a,s){const c=a.includeCompletionsWithSnippetText||void 0;let l=t;const _=n.getSourceFile(),u=function(e,t,n,r,i,o){const a=e.getDeclarations();if(!a||!a.length)return;const s=r.getTypeChecker(),c=a[0],l=ZY(Mc(c),!1),_=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=rY(n,o),d=33554432|(0===u?268435456:0);switch(c.kind){case 171:case 172:case 173:case 174:{let e=1048576&_.flags&&_.types.length<10?s.getUnionType(_.types,2):_;if(1048576&e.flags){const t=M(e.types,(e=>s.getSignaturesOfType(e,0).length>0));if(1!==t.length)return;e=t[0]}if(1!==s.getSignaturesOfType(e,0).length)return;const n=s.typeToTypeNode(e,t,d,Sce.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!CD(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=AC.createEmptyStatement();a=AC.createBlock([e],!0),Pw(e,{kind:0,order:0})}else a=AC.createBlock([],!0);const c=n.parameters.map((e=>AC.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return AC.createMethodDeclaration(void 0,void 0,l,void 0,void 0,c,void 0,a)}default:return}}(e,n,_,r,i,a);if(!u)return;const d=ile({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:c0(BY(i,null==s?void 0:s.options))});l=s?d.printAndFormatSnippetList(80,AC.createNodeArray([u],!0),_,s):d.printSnippetList(80,AC.createNodeArray([u],!0),_);const p=DU({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),f=AC.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:c,insertText:l,labelDetails:{detail:p.printNode(4,f,_)}}}function ile(e){let t;const n=Pfe.createWriter(mx(e)),r=DU(e,n),i={...n,write:e=>o(e,(()=>n.write(e))),nonEscapingWrite:n.write,writeLiteral:e=>o(e,(()=>n.writeLiteral(e))),writeStringLiteral:e=>o(e,(()=>n.writeStringLiteral(e))),writeSymbol:(e,t)=>o(e,(()=>n.writeSymbol(e,t))),writeParameter:e=>o(e,(()=>n.writeParameter(e))),writeComment:e=>o(e,(()=>n.writeComment(e))),writeProperty:e=>o(e,(()=>n.writeProperty(e)))};return{printSnippetList:function(e,n,r){const i=a(e,n,r);return t?Pfe.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return _s(this,e)}},s=_0(i,r),c=V(n,(e=>{const t=Pfe.assignPositionsToNode(e);return Mge.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,{...i,options:s})})),l=t?we(oe(c,t),((e,t)=>Ot(e.span,t.span))):c;return Pfe.applyChanges(o.text,l)},printNode:function(e,n,r){const i=s(e,n,r);return t?Pfe.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return _s(this,e)}},a=_0(i,r),c=Pfe.assignPositionsToNode(n),l=Mge.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,{...i,options:a}),_=t?we(oe(l,t),((e,t)=>Ot(e.span,t.span))):l;return Pfe.applyChanges(o.text,_)}};function o(e,r){const i=WT(e);if(i!==e){const e=n.getTextPos();r();const o=n.getTextPos();t=he(t||(t=[]),{newText:i,span:{start:e,length:o-e}})}else r()}function a(e,n,o){return t=void 0,i.clear(),r.writeList(e,n,o,i),i.getText()}function s(e,n,o){return t=void 0,i.clear(),r.writeNode(e,n,o,i),i.getText()}}function ole(e){const t=e.fileName?void 0:fv(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;if(Ice(e)){return{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}}return{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:fv(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function ale(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;if(zce(e)){return{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}return{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function sle(e,t,n){return/^\d+$/.test(n)?n:vZ(e,t,n)}function cle(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function lle(e){return Ace(e)?fv(e.moduleSymbol.name):Ice(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function _le(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m,g,h,y,v,b,x,S,k,T,C=!1){const w=Yn(),N=function(e,t){if(!e)return;const n=kc(e,(e=>Em(e)||Jle(e)||R_(e)?"quit":(_D(e)||lD(e))&&!SD(e.parent))),r=kc(t,(e=>Em(e)||Jle(e)||R_(e)?"quit":GF(e)));return n||r}(r,i),D=PZ(a),F=c.getTypeChecker(),P=new Map;for(let _=0;_<e.length;_++){const m=e[_],w=null==x?void 0:x[_],N=xle(m,l,w,u,!!h);if(!N||P.get(N.name)&&(!w||!jce(w))||1===u&&S&&!E(m,S))continue;const{name:A,needsConvertPropertyAccess:I}=N,O=(null==S?void 0:S[EB(m)])??Cce.LocationPriority,L=tle(m,qle(m,F)?Cce.Deprecated(O):O,n,r,i,o,a,s,c,A,I,w,b,g,y,v,D,p,d,u,f,k,T,C);if(!L)continue;const j=(!w||Lce(w))&&!(void 0===m.parent&&!re(m.declarations,(e=>e.getSourceFile()===i.getSourceFile())));P.set(A,j),_e(t,L,Jce,!0)}return _("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Yn()-w)),{has:e=>P.has(e),add:e=>P.set(e,!0)};function E(e,t){var n;let r=e.flags;if(!$P(i)){if(yP(i.parent))return!0;if(ft(N,GF)&&e.valueDeclaration===N)return!1;const o=e.valueDeclaration??(null==(n=e.declarations)?void 0:n[0]);if(N&&o&&(lD(N)&&lD(o)||_D(N)&&_D(o))){const e=o.pos,t=_D(N)?N.parent.parameters:MD(N.parent)?void 0:N.parent.typeParameters;if(e>=N.pos&&t&&e<t.end)return!1}const s=qx(e,F);if(a.externalModuleIndicator&&!p.allowUmdGlobalAccess&&t[EB(e)]===Cce.GlobalsOrKeywords&&(t[EB(s)]===Cce.AutoImportSuggestions||t[EB(s)]===Cce.LocationPriority))return!1;if(r|=Ux(s),VG(i))return!!(1920&r);if(m)return zle(e,F)}return!!(111551&r)}}function ule(e,t,n,r,i,o,a){if("SwitchCases/"===i.source)return{type:"cases"};if(i.data){const t=ble(i.name,i.data,e,o);if(t){const{contextToken:e,previousToken:i}=vle(r,n);return{type:"symbol",symbol:t.symbol,location:HX(n,r),previousToken:i,contextToken:e,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:t.origin}}}const s=e.getCompilerOptions(),c=yle(e,t,n,s,r,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i,o,void 0);if(!c)return{type:"none"};if(0!==c.kind)return{type:"request",request:c};const{symbols:l,literals:_,location:u,completionKind:d,symbolToOriginInfoMap:p,contextToken:f,previousToken:m,isJsxInitializer:g,isTypeOnlyLocation:h}=c,y=D(_,(e=>Zce(n,a,e)===i.name));return void 0!==y?{type:"literal",literal:y}:S(l,((e,t)=>{const n=p[t],r=xle(e,HS(s),n,d,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||lle(n)===i.source||"ObjectLiteralMemberWithComma/"===i.source)?{type:"symbol",symbol:e,location:u,origin:n,contextToken:f,previousToken:m,isJsxInitializer:g,isTypeOnlyLocation:h}:void 0}))||{type:"none"}}function dle(e,t,n,r,i,o,a,s,c){const l=e.getTypeChecker(),_=e.getCompilerOptions(),{name:u,source:d,data:p}=i,{previousToken:f,contextToken:m}=vle(r,n);if(rQ(n,r,f))return k_e.getStringLiteralCompletionDetails(u,n,r,f,l,_,o,c,s);const g=ule(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return sde.getJSDocTagNameCompletionDetails(u);case 2:return sde.getJSDocTagCompletionDetails(u);case 3:return sde.getJSDocParameterNameCompletionDetails(u);case 4:return re(e.keywordCompletions,(e=>e.name===u))?ple(u,"keyword",5):void 0;default:return Sn.assertNever(e)}}case"symbol":{const{symbol:t,location:i,contextToken:f,origin:m,previousToken:h}=g,{codeActions:y,sourceDisplay:v}=function(e,t,n,r,i,o,a,s,c,l,_,u,d,p,f,m){if((null==p?void 0:p.moduleSpecifier)&&_&&Ole(n||_,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[AY(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r,eraseRange:_}=nle(a,o,s,d,e,i,t,l,n,u);if(r||_){return{sourceDisplay:void 0,codeActions:[{changes:Pfe.ChangeTracker.with({host:a,formatContext:u,preferences:d},(e=>{r&&r.writeFixes(e),_&&e.deleteRange(c,_)})),description:l0([Ea.Includes_imports_of_types_referenced_by_0,e])}]}}}if(Lce(r)){const e=Sce.getPromoteTypeOnlyCompletionAction(c,r.declaration.name,o,a,u,d);return Sn.assertIsDefined(e,"Expected to have a code action for promoting type-only alias"),{codeActions:[e],sourceDisplay:void 0}}if("ObjectLiteralMemberWithComma/"===f&&n){const t=Pfe.ChangeTracker.with({host:a,formatContext:u,preferences:d},(e=>e.insertText(c,n.end,",")));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:l0([Ea.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!Ace(r)&&!Ice(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(qx(i.exportSymbol||i,g)),v=30===(null==n?void 0:n.kind)&&Mu(n.parent),{moduleSpecifier:b,codeAction:x}=Sce.getImportCompletionAction(y,h,null==p?void 0:p.exportMapKey,c,e,v,a,o,u,_&&HN(_)?_.getStart(c):l,d,m);return Sn.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[AY(b)],codeActions:[x]}}(u,i,f,m,t,e,o,_,n,r,h,a,s,p,d,c);return fle(t,Mce(m)?m.symbolName:t.name,l,n,i,c,y,v)}case"literal":{const{literal:e}=g;return ple(Zce(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const t=Gce(m.parent,n,s,e.getCompilerOptions(),o,e,void 0);if(null==t?void 0:t.importAdder.hasFixes()){const{entry:e,importAdder:n}=t,r=Pfe.ChangeTracker.with({host:o,formatContext:a,preferences:s},n.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:l0([Ea.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:u,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Pce().some((e=>e.name===u))?ple(u,"keyword",5):void 0;default:Sn.assertNever(g)}}function ple(e,t,n){return mle(e,"",t,[TY(e,n)])}function fle(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:l,symbolKind:_,tags:u}=n.runWithCancellationToken(o,(t=>Zpe.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7)));return mle(t,Zpe.getSymbolModifiers(n,e),_,c,l,u,a,s)}function mle(e,t,n,r,i,o,a,s){return{name:e,kindModifiers:t,kind:n,displayParts:r,documentation:i,tags:o,codeActions:a,source:s,sourceDisplay:s}}function gle(e,t,n,r,i,o,a){const s=ule(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}function hle(e,t,n){const r=n.getAccessibleSymbolChain(e,t,67108863,!1);return r?Pe(r):e.parent&&(function(e){var t;return!!(null==(t=e.declarations)?void 0:t.some((e=>312===e.kind)))}(e.parent)?e:hle(e.parent,t,n))}function yle(e,t,n,r,i,o,a,s,c,l){const _=e.getTypeChecker(),u=Kce(n,r);let d=Yn(),p=KX(n,i);t("getCompletionData: Get current token: "+(Yn()-d)),d=Yn();const f=fQ(n,i,p);t("getCompletionData: Is inside comment: "+(Yn()-d));let m=!1,g=!1;if(f){if(mQ(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=vX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return kc(e,(e=>!(!zu(e)||!SX(e,t))||!!_E(e)&&"quit"))}(p,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};const t=function(e){if(function(e){switch(e.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!e.constraint;default:return!1}}(e)){const t=PE(e)?e.constraint:e.typeExpression;return t&&316===t.kind?t:void 0}if(pE(e)||OE(e))return e.class;return}(e);if(t&&(p=KX(n,i),p&&(ey(p)||355===p.parent.kind&&p.parent.name===p)||(m=ge(t))),!m&&wE(e)&&(Ip(e.name)||e.name.pos<=i&&i<=e.name.end))return{kind:3,tag:e}}if(!m)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}d=Yn();const h=!m&&Sg(n),y=vle(i,n),v=y.previousToken;let x=y.contextToken;t("getCompletionData: Get previous token: "+(Yn()-d));let k,T,C=p,w=!1,N=!1,F=!1,P=!1,E=!1,A=!1,I=HX(n,i),O=0,L=!1,j=0;if(x){const e=Ole(x,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(R=e.keywordCompletion,{name:ts(R),kind:"keyword",kindModifiers:"",sortText:Cce.GlobalsOrKeywords})],isNewIdentifierLocation:e.isNewIdentifierLocation};O=function(e){if(156===e)return 8;Sn.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(e.keywordCompletion)}if(e.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(j|=2,T=e,L=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=Yn(),o=function(e){return(EN(e)||i_(e))&&(kX(e,i)||i===e.end&&(!!e.isUnterminated||EN(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 260===r||261===(o=e).parent.kind&&!uQ(o,n,_)||243===r||266===r||de(r)||264===r||207===r||265===r||w_(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 207===r;case 59:return 208===r;case 21:return 299===r||de(r);case 19:return 266===r;case 30:return 263===r||231===r||264===r||265===r||k_(r);case 126:return 172===r&&!w_(t.parent);case 26:return 169===r||!!t.parent&&207===t.parent.kind;case 125:case 123:case 124:return 169===r&&!hD(t.parent);case 130:return 276===r||281===r||274===r;case 139:case 153:return!Ale(e);case 80:if(276===r&&e===t.name&&"type"===e.text)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 276!==r;case 42:return y_(e.parent)&&!mD(e.parent)}var o;if(Cle(Nle(e))&&Ale(e))return!1;if(_e(e)&&(!HN(e)||d_(Nle(e))||ge(e)))return!1;switch(Nle(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 pD(e.parent)}const a=kc(e.parent,w_);if(a&&e===v&&ue(e,i))return!1;const s=gy(e.parent,172);if(s&&e!==v&&w_(v.parent.parent)&&i<=v.end){if(ue(e,v.end))return!1;if(64!==e.kind&&(UJ(s)||Wu(s)))return!0}return ey(e)&&!UP(e.parent)&&!IP(e.parent)&&!((w_(e.parent)||ZF(e.parent)||lD(e.parent))&&(e!==v||i>v.end))}(e)||function(e){if(9===e.kind){const t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(e)||function(e){if(12===e.kind)return!0;if(32===e.kind&&e.parent){if(I===e.parent&&(286===I.kind||285===I.kind))return!1;if(286===e.parent.kind)return 286!==I.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(e)||DN(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Yn()-r)),o}(x))return t("Returning an empty list because completion was requested in an invalid position."),O?Hce(O,h,le()):void 0;let r=x.parent;if(25===x.kind||29===x.kind)switch(w=25===x.kind,N=29===x.kind,r.kind){case 211:k=r,C=k.expression;if(Ip(uS(k))||(eF(C)||y_(C))&&C.end===x.pos&&C.getChildCount(n)&&22!==Ie(C.getChildren(n)).kind)return;break;case 166:C=r.left;break;case 267:C=r.name;break;case 205:C=r;break;case 236:C=r.getFirstToken(n),Sn.assert(102===C.kind||105===C.kind);break;default:return}else if(!T){if(r&&211===r.kind&&(x=r,r=r.parent),p.parent===I)switch(p.kind){case 32:284!==p.parent.kind&&286!==p.parent.kind||(I=p);break;case 44:285===p.parent.kind&&(I=p)}switch(r.kind){case 287:44===x.kind&&(P=!0,I=x);break;case 226:if(!Ile(r))break;case 285:case 284:case 286:A=!0,30===x.kind&&(F=!0,I=x);break;case 294:case 293:(20===v.kind||80===v.kind&&291===v.parent.kind)&&(A=!0);break;case 291:if(r.initializer===v&&v.end<i){A=!0;break}switch(v.kind){case 64:E=!0;break;case 80:A=!0,r!==v.parent&&!r.initializer&&OX(r,64,n)&&(E=v)}}}}var R;const B=Yn();let J,z=5,q=!1,U=!1,W=[];const H=[],$=[],K=new Map,X=m||!!T&&r_(I.parent)||!((Q=x)&&(114===Q.kind&&(186===Q.parent.kind||cF(Q.parent))||131===Q.kind&&182===Q.parent.kind))&&(uQ(x,n,_)||hm(I)||function(e){if(e){const t=e.parent.kind;switch(e.kind){case 59:return 172===t||171===t||169===t||260===t||k_(t);case 64:return 265===t;case 130:return 234===t;case 30:return 183===t||216===t;case 96:return 168===t;case 152:return 238===t}}return!1}(x));var Q;const Y=Ct((t=>XQ(t?s.getPackageJsonAutoImportProvider():e,s)));if(w||N)!function(){z=2;const e=lm(C),t=e&&!C.isTypeOf||hm(C.parent)||uQ(x,n,_),r=VG(C);if(m_(C)||e||YD(C)){const n=nP(C.parent);n&&(L=!0);let i=_.getSymbolAtLocation(C);if(i&&(i=qx(i,_),1920&i.flags)){const a=_.getExportsOfModule(i);Sn.assertEachIsDefined(a,"getExportsOfModule() should all be defined");const s=t=>_.isValidPropertyAccess(e?C:C.parent,t.name),c=e=>zle(e,_),l=n?e=>{var t;return!!(1920&e.flags)&&!(null==(t=e.declarations)?void 0:t.every((e=>e.parent===C.parent)))}:r?e=>c(e)||s(e):t||m?c:s;for(const e of a)l(e)&&W.push(e);if(!t&&!m&&i.declarations&&i.declarations.some((e=>312!==e.kind&&267!==e.kind&&266!==e.kind))){let e=_.getTypeOfSymbolAtLocation(i,C).getNonOptionalType(),t=!1;if(e.isNullableType()){const n=w&&!N&&!1!==o.includeAutomaticOptionalChainCompletions;(n||N)&&(e=e.getNonNullableType(),n&&(t=!0))}ne(e,!!(65536&C.flags),t)}return}}if(!t||Kv(C)){_.tryGetThisTypeAt(C,!1);let e=_.getTypeAtLocation(C).getNonOptionalType();if(t)ne(e.getNonNullableType(),!1,!1);else{let t=!1;if(e.isNullableType()){const n=w&&!N&&!1!==o.includeAutomaticOptionalChainCompletions;(n||N)&&(e=e.getNonNullableType(),n&&(t=!0))}ne(e,!!(65536&C.flags),t)}}}();else if(F)W=_.getJsxIntrinsicTagNamesAt(I),Sn.assertEachIsDefined(W,"getJsxIntrinsicTagNames() should all be defined"),se(),z=1,O=0;else if(P){const e=x.parent.parent.openingElement.tagName,t=_.getSymbolAtLocation(e);t&&(W=[t]),z=1,O=0}else if(!se())return O?Hce(O,h,L):void 0;t("getCompletionData: Semantic work: "+(Yn()-B));const Z=v&&function(e,t,n,r){const{parent:i}=e;switch(e.kind){case 80:return yZ(e,r);case 64:switch(i.kind){case 260:return r.getContextualType(i.initializer);case 226:return r.getTypeAtLocation(i.left);case 291:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:const o=ft(i,RP);return o?kZ(o,r):void 0;case 19:return!jP(i)||wP(i.parent)||PP(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=Fpe.getArgumentInfoForCompletions(e,t,n);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex+(28===e.kind?1:0)):bZ(e.kind)&&pF(i)&&bZ(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}(v,i,n,_),ee=!ft(v,Qu)&&!A?G(Z&&(Z.isUnion()?Z.types:[Z]),(e=>!e.isLiteral()||1024&e.flags?void 0:e.value)):[],te=v&&Z&&function(e,t,n){return S(t&&(t.isUnion()?t.types:[t]),(t=>{const r=t&&t.symbol;return r&&424&r.flags&&!Qx(r)?hle(r,e,n):void 0}))}(v,Z,_);return{kind:0,symbols:W,completionKind:z,isInSnippetScope:g,propertyAccessToConvert:k,isNewIdentifierLocation:L,location:I,keywordFilters:O,literals:ee,symbolToOriginInfoMap:H,recommendedCompletion:te,previousToken:v,contextToken:x,isJsxInitializer:E,insideJsDocTagTypeExpression:m,symbolToSortTextMap:$,isTypeOnlyLocation:X,isJsxIdentifierExpected:A,isRightOfOpenTag:F,isRightOfDotOrQuestionDot:w||N,importStatementCompletion:T,hasUnresolvedAutoImports:U,flags:j};function ne(e,t,n){L=!!e.getStringIndexType(),N&&re(e.getCallSignatures())&&(L=!0);const r=205===C.kind?C:C.parent;if(u)for(const t of e.getApparentProperties())_.isValidPropertyAccessForCompletions(r,e,t)&&ie(t,!1,n);else W.push(...M(Ple(e,_),(t=>_.isValidPropertyAccessForCompletions(r,e,t))));if(t&&o.includeCompletionsWithInsertText){const t=_.getPromisedTypeOfPromise(e);if(t)for(const e of t.getApparentProperties())_.isValidPropertyAccessForCompletions(r,t,e)&&ie(e,!0,n)}}function ie(t,r,a){var c;const l=S(t.declarations,(e=>ft(Mc(e),cD)));if(l){const r=ae(l.expression),a=r&&_.getSymbolAtLocation(r),f=a&&hle(a,x,_),m=f&&EB(f);if(m&&iS(K,m)){const t=W.length;W.push(f);const r=f.parent;if(r&&zQ(r)&&_.tryGetMemberInModuleExportsAndProperties(f.name,r)===f){const a=Vs(fv(r.name))?null==(c=wp(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(J||(J=Sce.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:f,targetFlags:qx(f,_).flags}],i,TT(I))||{};if(l){const e={kind:p(6),moduleSymbol:r,isDefaultExport:!1,symbolName:f.name,exportName:f.name,fileName:a,moduleSpecifier:l};H[t]=e}}else H[t]={kind:p(2)}}else if(o.includeCompletionsWithInsertText){if(m&&K.has(m))return;d(t),u(t),W.push(t)}}else d(t),u(t),W.push(t);function u(e){(function(e){return!!(e.valueDeclaration&&256&wb(e.valueDeclaration)&&w_(e.valueDeclaration.parent))})(e)&&($[EB(e)]=Cce.LocalDeclarationPriority)}function d(e){o.includeCompletionsWithInsertText&&(r&&iS(K,EB(e))?H[W.length]={kind:p(8)}:a&&(H[W.length]={kind:16}))}function p(e){return a?16|e:e}}function ae(e){return HN(e)?e:YD(e)?ae(e.expression):void 0}function se(){const t=function(){const e=function(e){if(!e)return;const t=e.parent;switch(e.kind){case 19:if(DD(t))return t;break;case 27:case 28:case 80:if(171===t.kind&&DD(t.parent))return t.parent}return}(x);if(!e)return 0;const t=(LD(e.parent)?e.parent:void 0)||e,n=Ele(t,_);if(!n)return 0;const r=_.getTypeFromTypeNode(t),i=Ple(n,_),o=Ple(r,_),a=new Set;return o.forEach((e=>a.add(e.escapedName))),W=oe(W,M(i,(e=>!a.has(e.escapedName)))),z=0,L=!0,1}()||function(){const t=W.length,a=function(e,t,n){var r;if(e){const{parent:i}=e;switch(e.kind){case 19:case 28:if(QD(i)||$D(i))return i;break;case 42:return mD(i)?ft(i.parent,QD):void 0;case 134:return ft(i.parent,QD);case 80:if("async"===e.text&&UP(e.parent))return e.parent.parent;{if(QD(e.parent.parent)&&(VP(e.parent)||UP(e.parent)&&_s(n,e.getEnd()).line!==_s(n,t).line))return e.parent.parent;const r=kc(i,qP);if((null==r?void 0:r.getLastToken(n))===e&&QD(r.parent))return r.parent}break;default:if((null==(r=i.parent)?void 0:r.parent)&&(mD(i.parent)||yD(i.parent)||vD(i.parent))&&QD(i.parent.parent))return i.parent.parent;if(VP(i)&&QD(i.parent))return i.parent;const o=kc(i,qP);if(59!==e.kind&&(null==o?void 0:o.getLastToken(n))===e&&QD(o.parent))return o.parent}}return}(x,i,n);if(!a)return 0;let l,u;if(z=0,210===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=Kh(e.parent);if(pF(r)&&64===r.operatorToken.kind&&e===r.left)return t.getTypeAtLocation(r);if(au(r))return t.getContextualType(r);return}(a,_);if(void 0===e)return 67108864&a.flags?2:(q=!0,0);const t=_.getContextualType(a,4),n=(t||e).getStringIndexType(),r=(t||e).getNumberIndexType();if(L=!!n||!!r,l=Dle(e,t,a,_),u=a.properties,0===l.length&&!r)return q=!0,0}else{Sn.assert(206===a.kind),L=!1;const e=Ky(a.parent);if(!km(e))return Sn.fail("Root declaration is not variable-like.");let t=Hu(e)||!!Yv(e)||250===e.parent.parent.kind;if(t||169!==e.kind||(au(e.parent)?t=!!_.getContextualType(e.parent):174!==e.parent.kind&&178!==e.parent.kind||(t=au(e.parent.parent)&&!!_.getContextualType(e.parent.parent))),t){const e=_.getTypeAtLocation(a);if(!e)return 2;l=_.getPropertiesOfType(e).filter((t=>_.isPropertyAccessible(a,!1,!1,e,t))),u=a.elements}}if(l&&l.length>0){const n=function(e,t){if(0===t.length)return e;const n=new Set,r=new Set;for(const e of t){if(303!==e.kind&&304!==e.kind&&208!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind&&305!==e.kind)continue;if(ge(e))continue;let t;if(VP(e))pe(e,n);else if(GD(e)&&e.propertyName)80===e.propertyName.kind&&(t=e.propertyName.escapedText);else{const n=Mc(e);t=n&&Oy(n)?jy(n):void 0}void 0!==t&&r.add(t)}const i=e.filter((e=>!r.has(e.escapedName)));return me(n,i),i}(l,Sn.checkDefined(u));W=oe(W,n),fe(),210===a.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){for(let t=e;t<W.length;t++){const e=W[t],n=EB(e),i=null==H?void 0:H[t],o=xle(e,HS(r),i,0,!1);if(o){const e=$[n]??Cce.LocationPriority,{name:t}=o;$[n]=Cce.ObjectLiteralProperty(e,t)}}}(t),function(t,n){if(Tg(I))return;t.forEach((t=>{if(!function(e){if(!(8196&e.flags))return!1;return!0}(t))return;const i=xle(t,HS(r),void 0,0,!1);if(!i)return;const{name:a}=i,l=rle(t,a,n,e,s,r,o,c);if(!l)return;const _={kind:128,...l};j|=32,H[W.length]=_,W.push(t)}))}(n,a))}return 1}()||(T?(L=!0,ce(),1):0)||function(){if(!x)return 0;const e=19===x.kind||28===x.kind?ft(x.parent,_S):JQ(x)?ft(x.parent.parent,_S):void 0;if(!e)return 0;JQ(x)||(O=8);const{moduleSpecifier:t}=275===e.kind?e.parent.parent:e.parent;if(!t)return L=!0,275===e.kind?2:0;const n=_.getSymbolAtLocation(t);if(!n)return L=!0,2;z=3,L=!1;const r=_.getExportsAndPropertiesOfModule(n),i=new Set(e.elements.filter((e=>!ge(e))).map((e=>(e.propertyName||e.name).escapedText))),o=r.filter((e=>"default"!==e.escapedName&&!i.has(e.escapedName)));W=oe(W,o),o.length||(O=0);return 1}()||function(){var e;const t=!x||19!==x.kind&&28!==x.kind?void 0:ft(x.parent,bP);if(!t)return 0;const n=kc(t,un($P,nP));return z=5,L=!1,null==(e=n.locals)||e.forEach(((e,t)=>{var r,i;W.push(e),(null==(i=null==(r=n.symbol)?void 0:r.exports)?void 0:i.has(t))&&($[EB(e)]=Cce.OptionalMember)})),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return hD(e.parent)?e.parent:void 0;default:if(_e(e))return t.parent}}}(x)?(z=5,L=!0,O=4,1):0)||function(){const e=function(e,t,n,r){switch(n.kind){case 358:return ft(n.parent,oS);case 1:const t=ft(Ae(mt(n.parent,$P).statements),oS);if(t&&!OX(t,20,e))return t;break;case 81:if(ft(n.parent,pD))return kc(n,w_);break;case 80:if(Fc(n))return;if(pD(n.parent)&&n.parent.initializer===n)return;if(Ale(n))return kc(n,oS)}if(!t)return;if(137===n.kind||HN(t)&&pD(t.parent)&&w_(n))return kc(t,w_);switch(t.kind){case 64:return;case 27:case 20:return Ale(n)&&n.parent.name===n?n.parent.parent:ft(n,oS);case 19:case 28:return ft(t.parent,oS);default:if(oS(n)){if(_s(e,t.getEnd()).line!==_s(e,r).line)return n;const i=w_(t.parent.parent)?Cle:Tle;return i(t.kind)||42===t.kind||HN(t)&&i(Fc(t)??0)?t.parent.parent:void 0}return}}(n,x,I,i);if(!e)return 0;if(z=3,L=!0,O=42===x.kind?0:w_(e)?2:3,!w_(e))return 1;const t=27===x.kind?x.parent.parent:x.parent;let r=C_(t)?wb(t):0;if(80===x.kind&&!ge(x))switch(x.getText()){case"private":r|=2;break;case"static":r|=256;break;case"override":r|=16}gD(t)&&(r|=256);if(!(2&r)){const t=V(w_(e)&&16&r?fn(_y(e)):py(e),(t=>{const n=_.getTypeAtLocation(t);return 256&r?(null==n?void 0:n.symbol)&&_.getPropertiesOfType(_.getTypeOfSymbolAtLocation(n.symbol,e)):n&&_.getPropertiesOfType(n)}));W=oe(W,function(e,t,n){const r=new Set;for(const e of t){if(172!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind)continue;if(ge(e))continue;if(pb(e,2))continue;if(mb(e)!==!!(256&n))continue;const t=Iy(e.name);t&&r.add(t)}return e.filter((e=>!(r.has(e.escapedName)||!e.declarations||2&zx(e)||e.valueDeclaration&&l_(e.valueDeclaration))))}(t,e.members,r)),b(W,((e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&C_(n)&&n.name&&cD(n.name)){const n={kind:512,symbolName:_.symbolToString(e)};H[t]=n}}))}return 1}()||function(){const e=function(e){if(e){const t=e.parent;switch(e.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(t&&(285===t.kind||286===t.kind)){if(32===e.kind){const r=ZX(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(291===t.kind)return t.parent.parent;break;case 11:if(t&&(291===t.kind||293===t.kind))return t.parent.parent;break;case 20:if(t&&294===t.kind&&t.parent&&291===t.parent.kind)return t.parent.parent.parent;if(t&&293===t.kind)return t.parent.parent}}return}(x),t=e&&_.getContextualType(e.attributes);if(!t)return 0;const r=e&&_.getContextualType(e.attributes,4);return W=oe(W,function(e,t){const n=new Set,r=new Set;for(const e of t)ge(e)||(291===e.kind?n.add(cC(e.name)):LP(e)&&pe(e,r));const i=e.filter((e=>!n.has(e.escapedName)));return me(r,i),i}(Dle(t,r,e.attributes,_),e.attributes.properties)),fe(),z=3,L=!1,1}()||(function(){O=function(e){if(e){let t;const n=kc(e.parent,(e=>w_(e)?"quit":!(!b_(e)||t!==e.body)||(t=e,!1)));return n&&n}}(x)?5:1,z=1,L=le(),v!==x&&Sn.assert(!!v,"Expected 'contextToken' to be defined when different from 'previousToken'.");const e=v!==x?v.getStart():i,t=function(e,t,n){let r=e;for(;r&&!FX(r,t,n);)r=r.parent;return r}(x,e,n)||n;g=function(e){switch(e.kind){case 312:case 228:case 294:case 241:return!0;default:return Pu(e)}}(t);const r=2887656|(X?0:111551),a=v&&!TT(v);W=oe(W,_.getSymbolsInScope(t,r)),Sn.assertEachIsDefined(W,"getSymbolsInScope() should all be defined");for(let e=0;e<W.length;e++){const t=W[e];if(_.isArgumentsSymbol(t)||re(t.declarations,(e=>e.getSourceFile()===n))||($[EB(t)]=Cce.GlobalsOrKeywords),a&&!(111551&t.flags)){const n=t.declarations&&D(t.declarations,t_);if(n){const t={kind:64,declaration:n};H[e]=t}}}if(o.includeCompletionsWithInsertText&&312!==t.kind){const e=_.tryGetThisTypeAt(t,!1,w_(t.parent)?t:void 0);if(e&&!function(e,t,n){const r=n.resolveName("self",void 0,111551,!1);if(r&&n.getTypeOfSymbolAtLocation(r,t)===e)return!0;const i=n.resolveName("global",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;const o=n.resolveName("globalThis",void 0,111551,!1);if(o&&n.getTypeOfSymbolAtLocation(o,t)===e)return!0;return!1}(e,n,_))for(const t of Ple(e,_))H[W.length]={kind:1},W.push(t),$[EB(t)]=Cce.SuggestedClassMembers}ce(),X&&(O=x&&su(x.parent)?6:7)}(),1);return 1===t}function ce(){var t,r;if(!(T||!q&&o.includeCompletionsForModuleExports&&(n.externalModuleIndicator||n.commonJsModuleIndicator||GQ(e.getCompilerOptions())||$Q(e))))return;if(Sn.assert(!(null==a?void 0:a.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),a&&!a.source)return;j|=1;const c=v===x&&T?"":v&&HN(v)?v.text.toLowerCase():"",_=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),u=S0(n,s,e,o,l),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=a?void 0:zZ(n,o,s);function f(t){const r=ft(t.moduleSymbol.valueDeclaration,$P);if(!r){const r=fv(t.moduleSymbol.name);return(!oG.nodeCoreModules.has(r)||an(r,"node:")===s0(n,e))&&(!p||p.allowsImportingAmbientModule(t.moduleSymbol,Y(t.isFromPackageJson)))}return v0(t.isFromPackageJson?d:e,n,r,o,p,Y(t.isFromPackageJson),_)}Rce("collectAutoImports",s,J||(J=Sce.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!T,TT(I),(e=>{u.search(n.path,F,((e,t)=>{if(!Os(e,HS(s.getCompilationSettings())))return!1;if(!a&&ky(e))return!1;if(!(X||T||111551&t))return!1;if(X&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!F||!(n<65||n>90))&&(!!a||Ule(e,c))}),((t,n,r,i)=>{if(a&&!re(t,(e=>a.source===fv(e.moduleSymbol.name))))return;if(!(t=M(t,f)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];"skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o);const l=1===c.exportKind;!function(e,t){const n=EB(e);if($[n]===Cce.GlobalsOrKeywords)return;H[W.length]=t,$[n]=T?Cce.LocationPriority:Cce.AutoImportSuggestions,W.push(e)}(l&&sx(c.symbol)||c.symbol,{kind:s?32:4,moduleSpecifier:s,symbolName:n,exportMapKey:i,exportName:2===c.exportKind?"export=":c.symbol.name,fileName:c.moduleFileName,isDefaultExport:l,moduleSymbol:c.moduleSymbol,isFromPackageJson:c.isFromPackageJson})})),U=e.skippedAny(),j|=e.resolvedAny()?8:0,j|=e.resolvedBeyondLimit()?16:0}))}function le(){if(x){const e=x.parent.kind,t=Nle(x);switch(t){case 28:return 213===e||176===e||214===e||209===e||226===e||184===e||210===e;case 21:return 213===e||176===e||214===e||217===e||196===e;case 23:return 209===e||181===e||167===e;case 144:case 145:case 102:return!0;case 25:return 267===e;case 19:return 263===e||210===e;case 64:return 260===e||226===e;case 16:return 228===e;case 17:return 239===e;case 134:return 174===e||304===e;case 42:return 174===e}if(Cle(t))return!0}return!1}function _e(e){return!!e.parent&&_D(e.parent)&&hD(e.parent.parent)&&(d_(e.kind)||ey(e))}function ue(e,t){return 64!==e.kind&&(27===e.kind||!Ex(e.end,t,n))}function de(e){return k_(e)&&176!==e}function pe(e,t){const n=e.expression,r=_.getSymbolAtLocation(n),i=r&&_.getTypeOfSymbolAtLocation(r,n),o=i&&i.properties;o&&o.forEach((e=>{t.add(e.name)}))}function fe(){W.forEach((e=>{if(16777216&e.flags){const t=EB(e);$[t]=$[t]??Cce.OptionalMember}}))}function me(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&($[EB(n)]=Cce.MemberDeclaredBySpreadAssignment)}function ge(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function vle(e,t){const n=ZX(e,t);if(n&&e<=n.end&&(Cl(n)||hy(n.kind))){return{contextToken:ZX(n.getFullStart(),t,void 0),previousToken:n}}return{contextToken:n,previousToken:n}}function ble(e,t,n,r){const i=t.isPackageJsonImport?r.getPackageJsonAutoImportProvider():n,o=i.getTypeChecker(),a=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(Sn.checkDefined(i.getSourceFile(t.fileName)).symbol):void 0;if(!a)return;let s="export="===t.exportName?o.resolveExternalModuleSymbol(a):o.tryGetMemberInModuleExportsAndProperties(t.exportName,a);if(!s)return;return s="default"===t.exportName&&sx(s)||s,{symbol:s,origin:ale(t,e,a)}}function xle(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return Ace(e)||Ice(e)||Mce(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&Lg(o.charCodeAt(0))||By(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(Os(o,t,i?1:0)||e.valueDeclaration&&l_(e.valueDeclaration))return a;switch(r){case 3:return Mce(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return a;default:Sn.assertNever(r)}}function Sle(e,t){if(!t)return kle(e);const n=e+8+1;return Fce[n]||(Fce[n]=kle(e).filter((e=>!function(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}}(ns(e.name)))))}function kle(e){return Fce[e]||(Fce[e]=Pce().filter((t=>{const n=ns(t.name);switch(e){case 0:return!1;case 1:return wle(n)||138===n||144===n||156===n||145===n||128===n||RQ(n)&&157!==n;case 5:return wle(n);case 2:return Cle(n);case 3:return Tle(n);case 4:return d_(n);case 6:return RQ(n)||87===n;case 7:return RQ(n);case 8:return 156===n;default:return Sn.assertNever(e)}})))}function Tle(e){return 148===e}function Cle(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return p_(e)}}function wle(e){return 134===e||135===e||130===e||152===e||156===e||!by(e)&&!Cle(e)}function Nle(e){return HN(e)?Fc(e)??0:e.kind}function Dle(e,t,n,r){const i=t&&t!==e,o=!i||3&t.flags?e:r.getUnionType([e,t]),a=function(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(M(e.types,(e=>!(402784252&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&Fle(e.getApparentProperties()))))):e.getApparentProperties()}(o,n,r);return o.isClass()&&Fle(a)?[]:i?M(a,(function(e){return!v(e.declarations)||re(e.declarations,(e=>e.parent!==n))})):a}function Fle(e){return re(e,(e=>!!(6&zx(e))))}function Ple(e,t){return e.isUnion()?Sn.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):Sn.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Ele(e,t){if(!e)return;if(j_(e)&&Gu(e.parent))return t.getTypeArgumentConstraint(e);const n=Ele(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function Ale(e){return e.parent&&O_(e.parent)&&oS(e.parent.parent)}function Ile({left:e}){return Ip(e)}function Ole(e,t){var n,r,i;let o,a=!1;const s=function(){const n=e.parent;if(aP(n)){const r=n.getLastToken(t);return HN(e)&&r!==e?(o=161,void(a=!0)):(o=156===e.kind?void 0:156,Ble(n.moduleReference)?n:void 0)}if(Mle(n,e)&&Rle(n.parent))return n;if(gP(n)||fP(n)){if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(o=156),Rle(n)){if(20!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,o=161}return}if(oD(e)&&$P(n))return o=156,e;if(oD(e)&&sP(n))return o=156,Ble(n.moduleSpecifier)?n:void 0;return}();return{isKeywordOnlyCompletion:a,keywordCompletion:o,isNewIdentifierLocation:!(!s&&156!==o),isTopLevelTypeOnly:!!(null==(r=null==(n=ft(s,sP))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(i=ft(s,aP))?void 0:i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&Mle(s,e),replacementSpan:Lle(s)}}function Lle(e){var t;if(!e)return;const n=kc(e,un(sP,aP))??e,r=n.getSourceFile();if(kx(n,r))return EQ(n,r);Sn.assert(102!==n.kind&&276!==n.kind);const i=272===n.kind?jle(null==(t=n.importClause)?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:i.pos};return kx(o,r)?OQ(o):void 0}function jle(e){var t;return D(null==(t=ft(e,gP))?void 0:t.elements,(t=>{var n;return!t.propertyName&&ky(t.name.text)&&28!==(null==(n=ZX(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)}))}function Mle(e,t){return hP(e)&&(e.isTypeOnly||t===e.name&&JQ(t))}function Rle(e){if(!Ble(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(gP(e)){const t=jle(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Ble(e){var t;return!!Ip(e)||!(null==(t=ft(CP(e)?e.expression:e,Qu))?void 0:t.text)}function Jle(e){return e.parent&&aF(e.parent)&&(e.parent.body===e||39===e.kind)}function zle(e,t,n=new Map){return r(e)||r(qx(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&iS(n,EB(e))&&t.getExportsOfModule(e).some((e=>zle(e,t,n)))}}function qle(e,t){const n=qx(e,t).declarations;return!!v(n)&&N(n,a0)}function Ule(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let a=0;a<o;a++){const o=e.charCodeAt(a),s=t.charCodeAt(i);if((o===s||o===Vle(s))&&(r||(r=void 0===n||97<=n&&n<=122&&65<=o&&o<=90||95===n&&95!==o),r&&i++,i===t.length))return!0;n=o}return!1}function Vle(e){return 97<=e&&e<=122?e-32:e}function Wle(e){return"abstract"===e||"async"===e||"await"===e||"declare"===e||"module"===e||"namespace"===e||"type"===e}var Hle,$le,Kle,Gle=g({"src/services/completions.ts"(){zge(),D_e(),kce=100,Tce=1e3,Cce={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:e=>"z"+e,ObjectLiteralProperty:(e,t)=>`${e}\0${t}\0`,SortBelow:e=>e+"1"},wce=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(wce||{}),Nce=(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))(Nce||{}),Dce=(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))(Dce||{}),Fce=[],Pce=Tt((()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:ts(t),kind:"keyword",kindModifiers:"",sortText:Cce.GlobalsOrKeywords});return e}))}});function Xle(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||Hle[n.kind]<Hle[t.kind])&&e.set(t.name,t)},has:e.has.bind(e),values:e.values.bind(e)}}function Qle(e,t,n,r,i,o,a,s,c){if(NQ(e,t)){const n=function(e,t,n,r){const i=KX(e,t),o=Fs(e.text,i.pos),a=o&&D(o,(e=>t>=e.pos&&t<=e.end));if(!a)return;const s=e.text.slice(a.pos,t),c=$le.exec(s);if(!c)return;const[,l,_,u]=c,d=Zo(e.path),p="path"===_?u_e(u,d,l_e(n,0,e),r,!0,e.path):"types"===_?b_e(r,n,d,g_e(u),l_e(n,1,e)):Sn.fail();return s_e(u,a.pos+l.length,$e(p.values()))}(e,t,r,i);return n&&Zle(n)}if(rQ(e,t,n)){if(!n||!Qu(n))return;return function(e,t,n,r,i,o,a,s,c,l){if(void 0===e)return;const _=AQ(t);switch(e.kind){case 0:return Zle(e.paths);case 1:{const u=[];return _le(e.symbols,u,t,t,n,c,n,r,i,99,o,4,s,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:_,entries:u}}case 2:{const n=15===t.kind?96:an(Yp(t),"'")?39:34,r=e.types.map((e=>({name:_v(e.value,n),kindModifiers:"",kind:"string",sortText:Cce.LocationPriority,replacementSpan:PQ(t)})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:_,entries:r}}default:return Sn.assertNever(e)}}(t_e(e,n,t,o.getTypeChecker(),r,i,s),n,e,i,o,a,r,s,t,c)}}function Yle(e,t,n,r,i,o,a,s,c){if(!r||!Qu(r))return;const l=t_e(t,r,n,i,o,a,c);return l&&function(e,t,n,r,i,o){switch(n.kind){case 0:{const t=D(n.paths,(t=>t.name===e));return t&&mle(e,e_e(t.extension),t.kind,[AY(e)])}case 1:{const a=D(n.symbols,(t=>t.name===e));return a&&fle(a,a.name,i,r,t,o)}case 2:return D(n.types,(t=>t.value===e))?mle(e,"","string",[AY(e)]):void 0;default:return Sn.assertNever(n)}}(e,r,l,t,i,s)}function Zle(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((({name:e,kind:t,span:n,extension:r})=>({name:e,kind:t,kindModifiers:e_e(r),sortText:Cce.LocationPriority,replacementSpan:n})))}}function e_e(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 Sn.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return Sn.assertNever(e)}}function t_e(e,t,n,r,i,o,a){const s=n_e(t.parent);switch(s.kind){case 201:{const c=n_e(s.parent);return 205===c.kind?{kind:0,paths:c_e(e,t,i,o,r,a)}:function e(t){switch(t.kind){case 233:case 183:{const e=kc(s,(e=>e.parent===t));return e?{kind:2,types:i_e(r.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 199:const{indexType:o,objectType:a}=t;if(!SX(o,n))return;return r_e(r.getTypeFromTypeNode(a));case 192:{const n=e(n_e(t.parent));if(!n)return;const r=(i=s,G(t.types,(e=>e!==i&&UD(e)&&FN(e.literal)?e.literal.text:void 0)));return 1===n.kind?{kind:1,symbols:n.symbols.filter((e=>!I(r,e.name))),hasIndexSignature:n.hasIndexSignature}:{kind:2,types:n.types.filter((e=>!I(r,e.value))),isNewIdentifier:!1}}default:return}var i}(c)}case 303:return QD(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;const r=e.getContextualType(t,4);return{kind:1,symbols:Dle(n,r,t,e),hasIndexSignature:SZ(n)}}(r,s.parent):c()||c(0);case 212:{const{expression:e,argumentExpression:n}=s;return t===Qh(n)?r_e(r.getTypeAtLocation(e)):void 0}case 213:case 214:case 291:if(!function(e){return eF(e.parent)&&De(e.parent.arguments)===e&&HN(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!sm(s)){const i=Fpe.getArgumentInfoForCompletions(291===s.kind?s.parent:t,n,e);return i&&function(e,t,n,r){let i=!1;const o=new Map,a=Mu(e)?Sn.checkDefined(kc(t.parent,IP)):t,s=V(r.getCandidateSignaturesForStringLiteralCompletions(e,a),(t=>{if(!RB(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(Mu(e)){const e=r.getTypeOfPropertyOfType(s,lC(a.name));e&&(s=e)}return i=i||!!(4&s.flags),i_e(s,o)}));return v(s)?{kind:2,types:s,isNewIdentifier:i}:void 0}(i.invocation,t,i,r)||c(0)}case 272:case 278:case 283:return{kind:0,paths:c_e(e,t,i,o,r,a)};case 296:const l=p0(r,s.parent.clauses),_=c();if(!_)return;return{kind:2,types:_.types.filter((e=>!l.hasValue(e.value))),isNewIdentifier:!1};default:return c()||c(0)}function c(e=4){const n=i_e(yZ(t,r,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function n_e(e){switch(e.kind){case 196:return $h(e);case 217:return Kh(e);default:return e}}function r_e(e){return e&&{kind:1,symbols:M(e.getApparentProperties(),(e=>!(e.valueDeclaration&&l_(e.valueDeclaration)))),hasIndexSignature:SZ(e)}}function i_e(e,t=new Map){return e?(e=WQ(e)).isUnion()?V(e.types,(e=>i_e(e,t))):!e.isStringLiteral()||1024&e.flags||!iS(t,e.value)?r:[e]:r}function o_e(e,t,n){return{name:e,kind:t,extension:n}}function a_e(e){return o_e(e,"directory",void 0)}function s_e(e,t,n){const r=function(e,t){const n=Math.max(e.lastIndexOf(Io),e.lastIndexOf(Oo)),r=-1!==n?n+1:0,i=e.length-r;return 0===i||Os(e.substr(r,i),99)?void 0:oc(t+r,i)}(e,t),i=0===e.length?void 0:oc(t,e.length);return n.map((({name:e,kind:t,extension:n})=>e.includes(Io)||e.includes(Oo)?{name:e,kind:t,extension:n,span:i}:{name:e,kind:t,extension:n,span:r}))}function c_e(e,t,n,i,o,a){return s_e(t.text,t.getStart(e)+1,function(e,t,n,i,o,a){const s=oa(t.text),c=Qu(t)?NV(e,t):void 0,l=e.path,_=Zo(l),u=l_e(n,1,e,o,a,c);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){const t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(s)||!n.baseUrl&&!n.paths&&(zo(s)||Jo(s))?function(e,t,n,r,i,o){return n.rootDirs?function(e,t,n,r,i,o,a){const s=i.project||o.getCurrentDirectory(),c=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),l=function(e,t,n,r){e=e.map((e=>ma(ua(zo(e)?e:sa(t,e)))));const i=S(e,(e=>Sa(e,n,t,r)?n.substr(e.length):void 0));return ce([...e.map((e=>sa(e,i))),n].map((e=>fa(e))),Et,Rt)}(e,s,n,c);return V(l,(e=>$e(u_e(t,e,r,o,!0,a).values())))}(n.rootDirs,e,t,o,n,r,i):$e(u_e(e,t,o,r,!0,i).values())}(s,_,n,i,l,u):function(e,t,n,i,o,a,s){const{baseUrl:c,paths:l}=i,_=Xle(),u=GS(i);if(c){const t=ua(sa(o.getCurrentDirectory(),c));u_e(e,t,a,o,!1,void 0,_)}if(l){const t=Av(i,o);p_e(_,e,t,a,o,l)}const d=g_e(e);for(const t of function(e,t,n){const r=n.getAmbientModules().map((e=>fv(e.name))).filter((t=>an(t,e)&&!t.includes("*")));if(void 0!==t){const e=ma(t);return r.map((t=>sn(t,e)))}return r}(e,d,s))_.add(o_e(t,"external module name",void 0));if(b_e(o,i,t,d,a,_),YQ(u)){let s=!1;if(void 0===d)for(const e of function(e,t){if(!e.readFile||!e.fileExists)return r;const n=[];for(const r of MZ(t,e)){const t=px(r,e);for(const e of Kle){const r=t[e];if(r)for(const e in r)ze(r,e)&&!an(e,"@types/")&&n.push(e)}}return n}(o,t)){const t=o_e(e,"external module name",void 0);_.has(t.name)||(s=!0,_.add(t))}if(!s){let r=t=>{const n=sa(t,"node_modules");OZ(o,n)&&u_e(e,n,a,o,!1,void 0,_)};if(d&&sk(i)){const t=r;r=r=>{const s=ra(e);s.shift();let c=s.shift();if(!c)return t(r);if(an(c,"@")){const e=s.shift();if(!e)return t(r);c=sa(c,e)}const l=sa(r,"node_modules",c),u=sa(l,"package.json");if(IZ(o,u)){const t=px(u,o).exports;if(t){if("object"!=typeof t||null===t)return;const r=Ue(t),c=s.join("/")+(s.length&&Go(e)?"/":""),u=rM(i,n);return void f_e(_,c,l,a,o,r,(e=>fn(m_e(t[e],u))),ZM)}}return t(r)}}Fa(t,r)}}return $e(_.values())}(s,_,c,n,i,u,o)}(e,t,n,i,o,a))}function l_e(e,t,n,r,i,o){return{extensionsToSearch:U(__e(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function __e(e,t){const n=t?G(t.getAmbientModules(),(e=>{const t=e.name.slice(1,-1);if(t.startsWith("*.")&&!t.includes("/"))return t.slice(1)})):[],r=[...Uk(e),n];return YQ(GS(e))?Vk(e,r):r}function u_e(e,t,n,r,i,o,a=Xle()){var s;void 0===e&&(e=""),Go(e=oa(e))||(e=Zo(e)),""===e&&(e="."+Io);const c=ca(t,e=ma(e)),l=Go(c)?c:Zo(c);if(!i){const e=RZ(l,r);if(e){const t=px(e,r).typesVersions;if("object"==typeof t){const i=null==(s=Qj(t))?void 0:s.paths;if(i){const t=Zo(e);if(p_e(a,c.slice(ma(t).length),t,n,r,i))return a}}}}const _=!(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames());if(!OZ(r,l))return a;const u=AZ(r,l,n.extensionsToSearch,void 0,["./*"]);if(u)for(let e of u){if(e=ua(e),o&&0===xa(e,o,t,_))continue;const{name:i,extension:s}=d_e(ea(e),r.getCompilationSettings(),n);a.add(o_e(i,"script",s))}const d=EZ(r,l);if(d)for(const e of d){const t=ea(ua(e));"@types"!==t&&a.add(a_e(t))}return a}function d_e(e,t,n){const r=dB.tryGetRealFileNameForNonJsDeclarationFileName(e);if(r)return{name:r,extension:lT(r)};if(0===n.referenceKind)return{name:e,extension:lT(e)};const i=Kk(n.endingPreference,n.resolutionMode,t,n.importingSourceFile);if(3===i){if(Ko(e,Qd))return{name:e,extension:lT(e)};const n=dB.tryGetJSExtensionForFile(e,t);return n?{name:tT(e,n),extension:n}:{name:e,extension:lT(e)}}if((0===i||1===i)&&Ko(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Yk(e),extension:lT(e)};const o=dB.tryGetJSExtensionForFile(e,t);return o?{name:tT(e,o),extension:o}:{name:e,extension:lT(e)}}function p_e(e,t,n,r,i,o){return f_e(e,t,n,r,i,Ue(o),(e=>o[e]),((e,t)=>{const n=nT(e),r=nT(t),i="object"==typeof n?n.prefix.length:e.length;return It("object"==typeof r?r.prefix.length:t.length,i)}))}function f_e(e,t,n,r,i,o,a,s){let c,l=[];for(const e of o){if("."===e)continue;const o=e.replace(/^\.\//,""),_=a(e);if(_){const a=nT(o);if(!a)continue;const u="object"==typeof a&&ln(a,t);u&&(void 0===c||-1===s(e,c))&&(c=e,l=l.filter((e=>!e.matchedPattern))),"string"!=typeof a&&void 0!==c&&1===s(e,c)||l.push({matchedPattern:u,results:h_e(o,_,t,n,r,i).map((({name:e,kind:t,extension:n})=>o_e(e,t,n)))})}}return l.forEach((t=>t.results.forEach((t=>e.add(t))))),void 0!==c}function m_e(e,t){if("string"==typeof e)return e;if(e&&"object"==typeof e&&!_t(e))for(const n in e)if("default"===n||t.includes(n)||nR(t,n)){return m_e(e[n],t)}}function g_e(e){return x_e(e)?Go(e)?e:Zo(e):void 0}function h_e(e,t,n,i,o,a){if(!$t(e,"*"))return e.includes("*")?r:l(e,"script");const s=e.slice(0,e.length-1),c=cn(n,s);if(void 0===c){return"/"===e[e.length-2]?l(s,"directory"):V(t,(e=>{var t;return null==(t=y_e("",i,e,o,a))?void 0:t.map((({name:e,...t})=>({name:s+e,...t})))}))}return V(t,(e=>y_e(c,i,e,o,a)));function l(e,t){return an(e,n)?[{name:fa(e),kind:t,extension:void 0}]:r}}function y_e(e,t,n,i,o){if(!o.readDirectory)return;const a=nT(n);if(void 0===a||dt(a))return;const s=ca(a.prefix),c=Go(a.prefix)?s:Zo(s),l=Go(a.prefix)?"":ea(s),_=x_e(e),u=_?Go(e)?e:Zo(e):void 0,d=_?sa(c,l+u):c,p=ua(a.suffix),f=p&&Fv("_"+p),m=f?[tT(p,f),p]:[p],g=ua(sa(t,d)),h=_?g:ma(g)+l,y=p?m.map((e=>"**/*"+e)):["./*"];return[...G(AZ(o,g,i.extensionsToSearch,void 0,y),(e=>{const t=(n=e,S(m,(e=>{const t=(r=ua(n),o=e,an(r,i=h)&&$t(r,o)?r.slice(i.length,r.length-o.length):void 0);var r,i,o;return void 0===t?void 0:v_e(t)})));var n;if(t){if(x_e(t))return a_e(ra(v_e(t))[1]);const{name:e,extension:n}=d_e(t,o.getCompilationSettings(),i);return o_e(e,"script",n)}})),...p?r:G(EZ(o,g),(e=>"node_modules"===e?void 0:a_e(e)))]}function v_e(e){return e[0]===Io?e.slice(1):e}function b_e(e,t,n,i,o,a=Xle()){const s=new Map,c=LZ((()=>Yj(t,e)))||r;for(const e of c)l(e);for(const t of MZ(n,e)){l(sa(Zo(t),"node_modules/@types"))}return a;function l(n){if(OZ(e,n))for(const r of EZ(e,n)){const c=dR(r);if(!t.types||I(t.types,c))if(void 0===i)s.has(c)||(a.add(o_e(c,"external module name",void 0)),s.set(c,!0));else{const t=sa(n,r),s=Nk(i,c,xv(e));void 0!==s&&u_e(s,t,o,e,!1,void 0,a)}}}}function x_e(e){return e.includes(Io)}var S_e=g({"src/services/stringCompletions.ts"(){zge(),D_e(),Hle={directory:0,script:1,"external module name":2},$le=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,Kle=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),k_e={};h(k_e,{getStringLiteralCompletionDetails:()=>Yle,getStringLiteralCompletions:()=>Qle});var T_e=g({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){S_e()}}),C_e={};h(C_e,{CompletionKind:()=>Dce,CompletionSource:()=>wce,SortText:()=>Cce,StringCompletions:()=>k_e,SymbolOriginInfoKind:()=>Nce,createCompletionDetails:()=>mle,createCompletionDetailsForSymbol:()=>fle,getCompletionEntriesFromSymbols:()=>_le,getCompletionEntryDetails:()=>dle,getCompletionEntrySymbol:()=>gle,getCompletionsAtPosition:()=>Bce,getPropertiesForObjectExpression:()=>Dle,moduleSpecifierResolutionCacheAttemptLimit:()=>Tce,moduleSpecifierResolutionLimit:()=>kce});var w_e,N_e,D_e=g({"src/services/_namespaces/ts.Completions.ts"(){Gle(),T_e()}});function F_e(e,t,n,r){const i=function(e,t,n){const r=new Map;for(const i of e)n&&n.throwIfCancellationRequested(),I_e(i,((e,n)=>{const i=t.getSymbolAtLocation(n);if(i){const t=EB(i).toString();let n=r.get(t);n||r.set(t,n=[]),n.push(e)}}));return r}(e,n,r);return(o,a,s)=>{const{directImports:c,indirectUsers:l}=function(e,t,n,{exportingModuleSymbol:r,exportKind:i},o,a){const s=qQ(),c=qQ(),l=[],_=!!r.globalExports,u=_?void 0:[];return p(r),{directImports:l,indirectUsers:d()};function d(){if(_)return e;if(r.declarations)for(const e of r.declarations)gf(e)&&t.has(e.getSourceFile().fileName)&&h(e);return u.map(Cp)}function p(e){const t=y(e);if(t)for(const e of t)if(s(e))switch(a&&a.throwIfCancellationRequested(),e.kind){case 213:if(sm(e)){f(e);break}if(!_){const t=e.parent;if(2===i&&260===t.kind){const{name:e}=t;if(80===e.kind){l.push(e);break}}}break;case 80:break;case 271:g(e,e.name,fb(e,32),!1);break;case 272:l.push(e);const t=e.importClause&&e.importClause.namedBindings;t&&274===t.kind?g(e,t.name,!1,!0):!_&&gh(e)&&h(M_e(e));break;case 278:e.exportClause?280===e.exportClause.kind?h(M_e(e),!0):l.push(e):p(j_e(e,o));break;case 205:!_&&e.isTypeOf&&!e.qualifier&&m(e)&&h(e.getSourceFile(),!0),l.push(e);break;default:Sn.failBadSyntaxKind(e,"Unexpected import kind.")}}function f(e){h(kc(e,R_e)||e.getSourceFile(),!!m(e,!0))}function m(e,t=!1){return kc(e,(e=>t&&R_e(e)?"quit":lI(e)&&re(e.modifiers,KN)))}function g(e,t,n,r){if(2===i)r||l.push(e);else if(!_){const r=M_e(e);Sn.assert(312===r.kind||267===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!A_e(e,(e=>{if(!vP(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&bP(t)&&t.elements.some((e=>n.getExportSpecifierLocalTargetSymbol(e)===r))}))}(r,t,o)?h(r,!0):h(r)}}function h(e,t=!1){Sn.assert(!_);if(!c(e))return;if(u.push(e),!t)return;const n=o.getMergedSymbol(e.symbol);if(!n)return;Sn.assert(!!(1536&n.flags));const r=y(n);if(r)for(const e of r)VD(e)||h(M_e(e),!0)}function y(e){return n.get(EB(e).toString())}}(e,t,i,a,n,r);return{indirectUsers:l,...P_e(c,o,a.exportKind,n,s)}}}function P_e(e,t,n,r,i){const o=[],a=[];function s(e,t){o.push([e,t])}if(e)for(const t of e)c(t);return{importSearches:o,singleReferences:a};function c(e){if(271===e.kind)return void(B_e(e)&&l(e.name));if(80===e.kind)return void l(e);if(205===e.kind){if(e.qualifier){const n=Gb(e.qualifier);n.escapedText===Pc(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(278===e.kind)return void(e.exportClause&&bP(e.exportClause)&&_(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 274:l(c.name);break;case 275:0!==n&&1!==n||_(c);break;default:Sn.assertNever(c)}if(o&&(1===n||2===n)&&(!i||o.escapedText===aY(t))){s(o,r.getSymbolAtLocation(o))}}function l(e){2!==n||i&&!u(e.escapedText)||s(e,r.getSymbolAtLocation(e))}function _(e){if(e)for(const n of e.elements){const{name:e,propertyName:o}=n;if(u((o||e).escapedText))if(o)a.push(o),i&&e.escapedText!==t.escapedName||s(e,r.getSymbolAtLocation(e));else{s(e,281===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e))}}}function u(e){return e===t.escapedName||0!==n&&"default"===e}}function E_e(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(312===(null==t?void 0:t.kind)){for(const n of a.referencedFiles)e.getSourceFileFromReference(a,n)===t&&i.push({kind:"reference",referencingFile:a,ref:n});for(const n of a.typeReferenceDirectives){const o=null==(r=e.getResolvedTypeReferenceDirectives().get(n.fileName,n.resolutionMode||a.impliedNodeFormat))?void 0:r.resolvedTypeReferenceDirective;void 0!==o&&o.resolvedFileName===t.fileName&&i.push({kind:"reference",referencingFile:a,ref:n})}}I_e(a,((e,t)=>{o.getSymbolAtLocation(t)===n&&i.push(Xy(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})}))}return i}function A_e(e,t){return b(312===e.kind?e.statements:e.body.statements,(e=>t(e)||R_e(e)&&b(e.body&&e.body.statements,t)))}function I_e(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(dh(n),n);else A_e(e,(e=>{switch(e.kind){case 278:case 272:{const n=e;n.moduleSpecifier&&FN(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 271:{const n=e;B_e(n)&&t(n,n.moduleReference.expression);break}}}))}function O_e(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&B_e(t);case 276:return!t.propertyName;case 273:case 274:return Sn.assert(t.name===e),!0;case 208:return Tg(e)&&Eg(t.parent.parent);default:return!1}}(e))return;let r=n.getImmediateAliasedSymbol(t);if(!r)return;if(r=function(e,t){if(e.declarations)for(const n of e.declarations){if(xP(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(YD(n)&&Kg(n.expression)&&!$N(n.name))return t.getSymbolAtLocation(n);if(UP(n)&&pF(n.parent.parent)&&2===Gg(n.parent.parent))return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}(r,n),"export="===r.escapedName&&(r=function(e,t){var n,r;if(2097152&e.flags)return t.getImmediateAliasedSymbol(e);const i=Sn.checkDefined(e.valueDeclaration);if(yP(i))return null==(n=ft(i.expression,ku))?void 0:n.symbol;if(pF(i))return null==(r=ft(i.right,ku))?void 0:r.symbol;if($P(i))return i.symbol;return}(r,n),void 0===r))return;const i=aY(r);if(void 0===i||"default"===i||i===t.escapedName)return{kind:0,symbol:r}}();function i(){var i;const{parent:s}=e,c=s.parent;if(t.exportSymbol)return 211===s.kind?(null==(i=t.declarations)?void 0:i.some((e=>e===s)))&&pF(c)?_(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=GF(e)?e:GD(e)?mc(e):void 0;return n?e.name!==t||zP(n.parent)?void 0:EF(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&fb(i,32)){if(aP(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(mP(s))return o(t,0);if(yP(s))return l(s);if(yP(c))return l(c);if(pF(s))return _(s,!0);if(pF(c))return _(c,!0);if(EE(s)||gE(s))return o(t,0)}function l(e){if(!e.symbol.parent)return;const n=e.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:n}}}function _(e,r){let i;switch(Gg(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(cS(mt(e.left,sS))):t;return a&&o(a,i)}}function o(e,t){const r=L_e(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return fb(e,2048)?1:0}}function L_e(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return zQ(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function j_e(e,t){return t.getMergedSymbol(M_e(e).symbol)}function M_e(e){if(213===e.kind)return e.getSourceFile();const{parent:t}=e;return 312===t.kind?t:(Sn.assert(268===t.kind),mt(t.parent,R_e))}function R_e(e){return 267===e.kind&&11===e.name.kind}function B_e(e){return 283===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var J_e,z_e,q_e,U_e,V_e=g({"src/services/importTracker.ts"(){zge(),w_e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(w_e||{}),N_e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(N_e||{})}});function W_e(e,t=1){return{kind:t,node:e.name||e,context:$_e(e)}}function H_e(e){return e&&void 0===e.kind}function $_e(e){if(Nu(e))return K_e(e);if(e.parent){if(!Nu(e.parent)&&!yP(e.parent)){if(Tg(e)){const t=pF(e.parent)?e.parent:sS(e.parent)&&pF(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==Gg(t))return K_e(t)}if(DP(e.parent)||FP(e.parent))return e.parent.parent;if(NP(e.parent)||WF(e.parent)||Rl(e.parent))return e.parent;if(Qu(e)){const t=ph(e);if(t){const e=kc(t,(e=>Nu(e)||Pu(e)||zu(e)));return Nu(e)?K_e(e):e}}const t=kc(e,cD);return t?K_e(t.parent):void 0}return e.parent.name===e||hD(e.parent)||yP(e.parent)||(e_(e.parent)||GD(e.parent))&&e.parent.propertyName===e||90===e.kind&&fb(e.parent,2080)?K_e(e.parent):void 0}}function K_e(e){if(e)switch(e.kind){case 260:return XF(e.parent)&&1===e.parent.declarations.length?EF(e.parent.parent)?e.parent.parent:fu(e.parent.parent)?K_e(e.parent.parent):e.parent:e;case 208:return K_e(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return IF(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return wQ(e.parent)?K_e(kc(e.parent,(e=>pF(e)||fu(e)))):e;default:return e}}function G_e(e,t,n){if(!n)return;const r=H_e(n)?_ue(n.start,t,n.end):_ue(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}function X_e(e,t,n,r,i){const o=HX(r,i),a={use:1},s=U_e.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),l=U_e.getAdjustedNode(o,a),_=function(e){return 90===e.kind||!!ty(e)||ny(e)||137===e.kind&&hD(e.parent)}(l)?c.getSymbolAtLocation(l):void 0;return s&&s.length?G(s,(({definition:e,references:n})=>e&&{definition:c.runWithCancellationToken(t,(t=>function(e,t,n){const r=(()=>{switch(e.type){case 0:{const{symbol:r}=e,{displayParts:i,kind:o}=rue(r,t,n),a=i.map((e=>e.text)).join(""),s=r.declarations&&De(r.declarations);return{...nue(s?Mc(s)||s:n),name:a,kind:o,displayParts:i,context:K_e(s)}}case 1:{const{node:t}=e;return{...nue(t),name:t.text,kind:"label",displayParts:[TY(t.text,17)]}}case 2:{const{node:t}=e,n=ts(t.kind);return{...nue(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&Zpe.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),gX(n),n).displayParts||[AY("this")];return{...nue(n),name:"this",kind:"var",displayParts:i}}case 4:{const{node:t}=e;return{...nue(t),name:t.text,kind:"var",displayParts:[TY(Yp(t),8)]}}case 5:return{textSpan:OQ(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[TY(`"${e.reference.fileName}"`,8)]};default:return Sn.assertNever(e)}})(),{sourceFile:i,textSpan:o,name:a,kind:s,displayParts:c,context:l}=r;return{containerKind:"",containerName:"",fileName:i.fileName,kind:s,name:a,textSpan:o,displayParts:c,...G_e(o,i,l)}}(e,t,o))),references:n.map((e=>function(e,t){const n=oue(e);return t?{...n,isDefinition:0!==e.kind&&pue(e.node,t)}:n}(e,_)))})):void 0}function Q_e(e,t,n,r,i){const o=HX(r,i);let a;const s=Y_e(e,t,n,o,i);if(211===o.parent.kind||208===o.parent.kind||212===o.parent.kind||108===o.kind)a=s&&[...s];else if(s){const r=ct(s),i=new Map;for(;!r.isEmpty();){const o=r.dequeue();if(!iS(i,PB(o.node)))continue;a=he(a,o);const s=Y_e(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return J(a,(e=>function(e,t){const n=aue(e);if(0!==e.kind){const{node:r}=e;return{...n,...cue(r,t)}}return{...n,kind:"",displayParts:[]}}(e,c)))}function Y_e(e,t,n,r,i){if(312===r.kind)return;const o=e.getTypeChecker();if(304===r.parent.kind){const e=[];return U_e.getReferenceEntriesForShorthandPropertyAssignment(r,o,(t=>e.push(W_e(t)))),e}if(108===r.kind||eg(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[W_e(e.valueDeclaration)]}return eue(i,r,e,n,t,{implementations:!0,use:1})}function Z_e(e,t,n,r,i,o,a){return J(tue(U_e.getReferencedSymbolsForNode(i,r,e,n,t,o)),(t=>a(t,r,e.getTypeChecker())))}function eue(e,t,n,r,i,o={},a=new Set(r.map((e=>e.fileName)))){return tue(U_e.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function tue(e){return e&&V(e,(e=>e.references))}function nue(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:_ue(cD(e)?e.expression:e,t)}}function rue(e,t,n){const r=U_e.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&De(e.declarations)||n,{displayParts:o,symbolKind:a}=Zpe.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function iue(e,t,n,r,i){return{...aue(e),...r&&sue(e,t,n,i)}}function oue(e){const t=aue(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:due(r),isInString:2===n||void 0}}function aue(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=_ue(e.node,t);return{textSpan:n,fileName:t.fileName,...G_e(n,t,e.context)}}}function sue(e,t,n,r){if(0!==e.kind&&HN(t)){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=UP(o);if(s||cY(o)&&o.name===r&&void 0===o.dotDotDotToken){const e={prefixText:a+": "},t={suffixText:": "+a};if(3===i)return e;if(4===i)return t;if(s){const n=o.parent;return QD(n)&&pF(n.parent)&&Kg(n.parent.left)?e:t}return e}if(hP(o)&&!o.propertyName){return I((xP(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:_G}if(xP(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&NN(e.node)&&sS(e.node.parent)){const e=iY(r);return{prefixText:e,suffixText:e}}return _G}function cue(e,t){const n=t.getSymbolAtLocation(Nu(e)&&e.name?e.name:e);return n?rue(n,t,e):210===e.kind?{kind:"interface",displayParts:[NY(21),AY("object literal"),NY(22)]}:231===e.kind?{kind:"local class",displayParts:[NY(21),AY("anonymous local class"),NY(22)]}:{kind:hX(e),displayParts:[]}}function lue(e){const t=aue(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=due(e.node),r={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:r}}function _ue(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return Qu(e)&&i-r>2&&(Sn.assert(void 0===n),r+=1,i-=1),ac(r,i)}function uue(e){return 0===e.kind?e.textSpan:_ue(e.node,e.node.getSourceFile())}function due(e){const t=ty(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!wQ(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||zP(e.parent);case 173:case 171:case 355:case 348:return!1;default:return Sn.failBadSyntaxKind(e)}}(t)||90===e.kind||Wx(e)}function pue(e,t){var n;if(!t)return!1;const r=ty(e)||(90===e.kind?e.parent:ny(e)||137===e.kind&&hD(e.parent)?e.parent.parent:void 0),i=r&&pF(r)?r.left:void 0;return!(!r||!(null==(n=t.declarations)?void 0:n.some((e=>e===r||e===i))))}var fue=g({"src/services/findAllReferences.ts"(){zge(),hue(),J_e=(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))(J_e||{}),z_e=(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))(z_e||{}),q_e=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(q_e||{}),(e=>{function t(e,t){return 1===t.use?e=VX(e):2===t.use&&(e=WX(e)),e}function n(e,t,n){let i;const o=t.get(e.path)||r;for(const e of o)if(BV(e)){const t=n.getSourceFileByPath(e.file),r=zV(n,e);JV(r)&&(i=he(i,{kind:0,fileName:t.fileName,textSpan:OQ(r)}))}return i}function i(e,t,n){if(e.parent&&oP(e.parent)){const e=n.getAliasedSymbol(t),r=n.getMergedSymbol(e);if(e!==r)return r}}function o(e,t,n,r,i,o){const s=1536&e.flags&&e.declarations&&D(e.declarations,$P);if(!s)return;const l=e.exports.get("export="),u=c(t,e,!!l,n,o);if(!l||!o.has(s.fileName))return u;const d=t.getTypeChecker();return a(t,u,_(e=qx(l,d),void 0,n,o,d,r,i))}function a(e,...t){let n;for(const r of t)if(r&&r.length)if(n)for(const t of r){if(!t.definition||0!==t.definition.type){n.push(t);continue}const r=t.definition.symbol,i=P(n,(e=>!!e.definition&&0===e.definition.type&&e.definition.symbol===r));if(-1===i){n.push(t);continue}const o=n[i];n[i]={definition:o.definition,references:o.references.concat(t.references).sort(((t,n)=>{const r=s(e,t),i=s(e,n);if(r!==i)return It(r,i);const o=uue(t),a=uue(n);return o.start!==a.start?It(o.start,a.start):It(o.length,a.length)}))}}else n=r;return n}function s(e,t){const n=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(n)}function c(e,t,n,i,o){Sn.assert(!!t.valueDeclaration);const a=G(E_e(e,i,t),(e=>{if("import"===e.kind){const t=e.literal.parent;if(UD(t)){const e=mt(t.parent,VD);if(n&&!e.qualifier)return}return W_e(e.literal)}if("implicit"===e.kind){return W_e(e.literal.text!==nd&&GI(e.referencingFile,(e=>2&e.transformFlags?wP(e)||NP(e)||PP(e)?e:void 0:"skip"))||e.referencingFile.statements[0]||e.referencingFile)}return{kind:0,fileName:e.referencingFile.fileName,textSpan:OQ(e.ref)}}));if(t.declarations)for(const e of t.declarations)switch(e.kind){case 312:break;case 267:o.has(e.getSourceFile().fileName)&&a.push(W_e(e.name));break;default:Sn.assert(!!(33554432&t.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const s=t.exports.get("export=");if(null==s?void 0:s.declarations)for(const e of s.declarations){const t=e.getSourceFile();if(o.has(t.fileName)){const n=pF(e)&&YD(e.left)?e.left.expression:yP(e)?Sn.checkDefined(OX(e,95,t)):Mc(e)||e;a.push(W_e(n))}}return a.length?[{definition:{type:0,symbol:t},references:a}]:r}function l(e){return 148===e.kind&&JD(e.parent)&&148===e.parent.operator}function _(e,t,n,r,i,o,a){const s=t&&function(e,t,n,r){const{parent:i}=t;if(xP(i)&&r)return A(t,e,i,n);return S(e.declarations,(r=>{if(!r.parent){if(33554432&e.flags)return;Sn.fail(`Unexpected symbol at ${Sn.formatSyntaxKind(t.kind)}: ${Sn.formatSymbol(e)}`)}return DD(r.parent)&&OD(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,t,i,!K(a))||e,c=t?W(t,s):7,l=[],_=new m(n,r,t?function(e){switch(e.kind){case 176:case 137:return 1;case 80:if(w_(e.parent))return Sn.assert(e.parent.name===e),2;default:return 0}}(t):0,i,o,c,a,l),d=K(a)&&s.declarations?D(s.declarations,xP):void 0;if(d)E(d.name,s,d,_.createSearch(t,e,void 0),_,!0,!0);else if(t&&90===t.kind&&"default"===s.escapedName&&s.parent)O(t,s,_),g(t,s,{exportingModuleSymbol:s.parent,exportKind:1},_);else{const e=_.createSearch(t,s,void 0,{allSearchSymbols:t?z(s,t,i,2===a.use,!!a.providePrefixAndSuffixTextForRename,!!a.implementations):[s]});u(s,_,e)}return l}function u(e,t,n){const r=function(e){const{declarations:t,flags:n,parent:r,valueDeclaration:i}=e;if(i&&(218===i.kind||231===i.kind))return i;if(!t)return;if(8196&n){const e=D(t,(e=>pb(e,2)||l_(e)));return e?gy(e,263):void 0}if(t.some(cY))return;const o=r&&!(262144&e.flags);if(o&&(!zQ(r)||r.globalExports))return;let a;for(const e of t){const t=gX(e);if(a&&a!==t)return;if(!t||312===t.kind&&!Yf(t))return;if(a=t,oF(a)){let e;for(;e=Eh(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)w(r,r.getSourceFile(),n,t,!($P(r)&&!I(t.sourceFiles,r)));else for(const e of t.sourceFiles)t.cancellationToken.throwIfCancellationRequested(),v(e,n,t)}let d;var p;function f(e){if(!(33555968&e.flags))return;const t=e.declarations&&D(e.declarations,(e=>!$P(e)&&!nP(e)));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,s,u,d,p,f={},m=new Set(d.map((e=>e.fileName)))){var g,h;if($P(s=t(s,f))){const t=Oue.getReferenceAtPosition(s,e,u);if(!(null==t?void 0:t.file))return;const i=u.getTypeChecker().getMergedSymbol(t.file.symbol);if(i)return c(u,i,!1,d,m);const o=u.getFileIncludeReasons();if(!o)return;return[{definition:{type:5,reference:t.reference,file:s},references:n(t.file,o,u)||r}]}if(!f.implementations){const e=function(e,t,n){if(RQ(e.kind)){if(116===e.kind&&lF(e.parent))return;if(148===e.kind&&!l(e))return;return function(e,t,n,r){const i=V(e,(e=>(n.throwIfCancellationRequested(),G(x(e,ts(t),e),(e=>{if(e.kind===t&&(!r||r(e)))return W_e(e)})))));return i.length?[{definition:{type:2,node:i[0].node},references:i}]:void 0}(t,e.kind,n,148===e.kind?l:void 0)}if(cm(e.parent)&&e.parent.name===e)return function(e,t){const n=V(e,(e=>(t.throwIfCancellationRequested(),G(x(e,"meta",e),(e=>{const t=e.parent;if(cm(t))return W_e(t)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(eD(e)&&gD(e.parent))return[{definition:{type:2,node:e},references:[W_e(e)]}];if(oX(e)){const t=rX(e.parent,e.text);return t&&T(t.parent,t)}if(aX(e))return T(e.parent,e);if(yX(e))return function(e,t,n){let r=$m(e,!1,!1),i=256;switch(r.kind){case 174:case 173:if(Am(r)){i&=Db(r),r=r.parent;break}case 172:case 171:case 176:case 177:case 178:i&=Db(r),r=r.parent;break;case 312:if(tO(r)||J(e))return;case 262:case 218:break;default:return}const o=V(312===r.kind?t:[r.getSourceFile()],(e=>(n.throwIfCancellationRequested(),x(e,"this",$P(r)?e:r).filter((e=>{if(!yX(e))return!1;const t=$m(e,!1,!1);if(!ku(t))return!1;switch(r.kind){case 218:case 262:return r.symbol===t.symbol;case 174:case 173:return Am(r)&&r.symbol===t.symbol;case 231:case 263:case 210:return t.parent&&ku(t.parent)&&r.symbol===t.parent.symbol&&mb(t)===!!i;case 312:return 312===t.kind&&!tO(t)&&!J(e)}}))))).map((e=>W_e(e))),a=S(o,(e=>_D(e.node.parent)?e.node:void 0));return[{definition:{type:3,node:a||e},references:o}]}(e,t,n);if(108===e.kind)return function(e){let t=Qm(e,!1);if(!t)return;let n=256;switch(t.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:n&=Db(t),t=t.parent;break;default:return}const r=G(x(t.getSourceFile(),"super",t),(e=>{if(108!==e.kind)return;const r=Qm(e,!1);return r&&mb(r)===!!n&&r.parent.symbol===t.symbol?W_e(e):void 0}));return[{definition:{type:0,symbol:t.symbol},references:r}]}(e);return}(s,d,p);if(e)return e}const y=u.getTypeChecker(),v=y.getSymbolAtLocation(hD(s)&&s.parent.name||s);if(!v){if(!f.implementations&&Qu(s)){if(sY(s)){const e=u.getFileIncludeReasons(),t=null==(h=null==(g=u.getResolvedModule(s.getSourceFile(),s.text,NV(s.getSourceFile(),s)))?void 0:g.resolvedModule)?void 0:h.resolvedFileName,i=t?u.getSourceFile(t):void 0;if(i)return[{definition:{type:4,node:s},references:n(i,e,u)||r}]}return function(e,t,n,r){const i=BX(e,n),o=V(t,(t=>(r.throwIfCancellationRequested(),G(x(t,e.text),(r=>{if(Qu(r)&&r.text===e.text){if(!i)return AN(r)&&!kx(r,t)?void 0:W_e(r,2);{const e=BX(r,n);if(i!==n.getStringType()&&i===e)return W_e(r,2)}}})))));return[{definition:{type:4,node:e},references:o}]}(s,d,y,p)}return}if("export="===v.escapedName)return c(u,v.parent,!1,d,m);const b=o(v,u,d,p,f,m);if(b&&!(33554432&v.flags))return b;const k=i(s,v,y),C=k&&o(k,u,d,p,f,m);return a(u,b,_(v,s,d,m,y,p,f),C)},e.getAdjustedNode=t,e.getReferencesForFileName=function(e,t,i,o=new Set(i.map((e=>e.fileName)))){var a,s;const l=null==(a=t.getSourceFile(e))?void 0:a.symbol;if(l)return(null==(s=c(t,l,!1,i,o)[0])?void 0:s.references)||r;const _=t.getFileIncludeReasons(),u=t.getSourceFile(e);return u&&_&&n(u,_,t)||r},(p=d||(d={}))[p.None=0]="None",p[p.Constructor=1]="Constructor",p[p.Class=2]="Class";class m{constructor(e,t,n,r,i,o,a,s){this.sourceFiles=e,this.sourceFilesSet=t,this.specialSearchKind=n,this.checker=r,this.cancellationToken=i,this.searchMeaning=o,this.options=a,this.result=s,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=qQ(),this.markSeenReExportRHS=qQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=F_e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=fv(Pc(sx(t)||f(t)||t)),allSearchSymbols:o=[t]}=r,a=wc(i),s=this.options.implementations&&e?function(e,t,n){const r=_X(e)?e.parent:void 0,i=r&&n.getTypeAtLocation(r.expression),o=G(i&&(i.isUnionOrIntersection()?i.types:i.symbol===t.parent?void 0:[i]),(e=>e.symbol&&96&e.symbol.flags?e.symbol:void 0));return 0===o.length?void 0:o}(e,t,this.checker):void 0;return{symbol:t,comingFrom:n,text:i,escapedText:a,parents:s,allSearchSymbols:o,includes:e=>I(o,e)}}referenceAdder(e){const t=EB(e);let n=this.symbolIdToReferences[t];return n||(n=this.symbolIdToReferences[t]=[],this.result.push({definition:{type:0,symbol:e},references:n})),(e,t)=>n.push(W_e(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=PB(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const e of t)i=Z(r,EB(e))||i;return i}}function g(e,t,n,r){const{importSearches:i,singleReferences:o,indirectUsers:a}=r.getImportSearches(t,n);if(o.length){const e=r.referenceAdder(t);for(const t of o)h(t,r)&&e(t)}for(const[e,t]of i)C(e.getSourceFile(),r.createSearch(e,t,1),r);if(a.length){let i;switch(n.exportKind){case 0:i=r.createSearch(e,t,1);break;case 1:i=2===r.options.use?void 0:r.createSearch(e,t,1,{text:"default"})}if(i)for(const e of a)v(e,i,r)}}function h(e,t){return!!N(e,t)&&(2!==t.options.use||!!HN(e)&&!(e_(e.parent)&&"default"===e.escapedText))}function y(e,t){if(e.declarations)for(const n of e.declarations){const r=n.getSourceFile();C(r,t.createSearch(n,e,0),t,t.includesSourceFile(r))}}function v(e,t,n){void 0!==s5(e).get(t.escapedText)&&C(e,t,n)}function b(e,t,n,r,i=n){const o=dc(e.parent,e.parent.parent)?Pe(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of x(n,o.name,i)){if(!HN(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||xP(a.parent)&&A(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function x(e,t,n=e){return G(k(e,t,n),(t=>{const n=HX(e,t);return n===e?void 0:n}))}function k(e,t,n=e){const r=[];if(!t||!t.length)return r;const i=e.text,o=i.length,a=t.length;let s=i.indexOf(t,n.pos);for(;s>=0&&!(s>n.end);){const e=s+a;0!==s&&Is(i.charCodeAt(s-1),99)||e!==o&&Is(i.charCodeAt(e),99)||r.push(s),s=i.indexOf(t,s+a+1)}return r}function T(e,t){const n=e.getSourceFile(),r=t.text,i=G(x(n,r,e),(e=>e===t||oX(e)&&rX(e,r)===t?W_e(e):void 0));return[{definition:{type:1,node:t},references:i}]}function C(e,t,n,r=!0){return n.cancellationToken.throwIfCancellationRequested(),w(e,e,t,n,r)}function w(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(const o of k(t,n.text,e))F(t,o,n,r,i)}function N(e,t){return!!(UG(e)&t.searchMeaning)}function F(e,t,n,r,i){const o=HX(e,t);if(!function(e,t){switch(e.kind){case 81:if(YP(e.parent))return!0;case 80:return e.text.length===t.length;case 15:case 11:{const n=e;return(fX(n)||dX(e)||mX(e)||eF(e.parent)&&Xg(e.parent)&&e.parent.arguments[1]===e)&&n.text.length===t.length}case 9:return fX(e)&&e.text.length===t.length;case 90:return 7===t.length;default:return!1}}(o,n.text))return void(!r.options.implementations&&(r.options.findInStrings&&rQ(e,t)||r.options.findInComments&&DQ(e,t))&&r.addStringOrCommentReference(e.fileName,oc(t,n.text.length)));if(!N(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(hP(s)&&s.propertyName===o)return;if(xP(s))return Sn.assert(80===o.kind),void E(o,a,s,n,r,i);const c=function(e,t,n,r){const{checker:i}=r;return q(t,n,i,!1,2!==r.options.use||!!r.options.providePrefixAndSuffixTextForRename,((n,r,i,o)=>(i&&U(t)!==U(i)&&(i=void 0),e.includes(i||r||n)?{symbol:!r||6&Jx(n)?n:r,kind:o}:void 0)),(t=>!(e.parents&&!e.parents.some((e=>B(t.parent,e,r.inheritsFromCache,i))))))}(n,a,o,r);if(c){switch(r.specialSearchKind){case 0:i&&O(o,c,r);break;case 1:!function(e,t,n,r){HG(e)&&O(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(w_(e.parent))Sn.assert(90===e.kind||e.parent.name===e),function(e,t,n){const r=L(e);if(r&&r.declarations)for(const e of r.declarations){const r=OX(e,137,t);Sn.assert(176===e.kind&&!!r),n(r)}e.exports&&e.exports.forEach((e=>{const t=e.valueDeclaration;if(t&&174===t.kind){const e=t.body;e&&$(e,110,(e=>{HG(e)&&n(e)}))}}))}(n.symbol,t,i());else{const t=qb(tX(e).parent);t&&(function(e,t){const n=L(e.symbol);if(!n||!n.declarations)return;for(const e of n.declarations){Sn.assert(176===e.kind);const n=e.body;n&&$(n,108,(e=>{WG(e)&&t(e)}))}}(t,i()),function(e,t){if(function(e){return!!L(e.symbol)}(e))return;const n=e.symbol,r=t.createSearch(void 0,n,void 0);u(n,t,r)}(t,r))}}(o,e,n,r);break;case 2:!function(e,t,n){O(e,t.symbol,n);const r=e.parent;if(2===n.options.use||!w_(r))return;Sn.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const e of r.members)P_(e)&&mb(e)&&e.body&&e.body.forEachChild((function e(t){110===t.kind?i(t):y_(t)||w_(t)||t.forEachChild(e)}))}(o,n,r);break;default:Sn.assertNever(r.specialSearchKind)}Tg(o)&&GD(o.parent)&&Eg(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=O_e(e,t,r.checker,1===n.comingFrom);if(!i)return;const{symbol:o}=i;0===i.kind?K(r.options)||y(o,r):g(e,o,i.exportInfo,r)}(o,a,n,r)}else!function({flags:e,valueDeclaration:t},n,r){const i=r.checker.getShorthandAssignmentValueSymbol(t),o=t&&Mc(t);33554432&e||!o||!n.includes(i)||O(o,i,r)}(a,n,r)}function E(e,t,n,r,i,o,a){Sn.assert(!a||!!i.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:s,propertyName:c,name:l}=n,_=s.parent,u=A(e,t,n,i.checker);if(a||r.includes(u)){if(c?e===c?(_.moduleSpecifier||d(),o&&2!==i.options.use&&i.markSeenReExportRHS(l)&&O(l,Sn.checkDefined(n.symbol),i)):i.markSeenReExportRHS(e)&&d():2===i.options.use&&"default"===l.escapedText||d(),!K(i.options)||a){const t="default"===e.escapedText||"default"===n.name.escapedText?1:0,r=Sn.checkDefined(n.symbol),o=L_e(r,t,i.checker);o&&g(e,r,o,i)}if(1!==r.comingFrom&&_.moduleSpecifier&&!c&&!K(i.options)){const e=i.checker.getExportSpecifierLocalTargetSymbol(n);e&&y(e,i)}}function d(){o&&O(e,u,i)}}function A(e,t,n,r){return function(e,t){const{parent:n,propertyName:r,name:i}=t;return Sn.assert(r===e||i===e),r?r===e:!n.parent.moduleSpecifier}(e,n)&&r.getExportSpecifierLocalTargetSymbol(n)||t}function O(e,t,n){const{kind:r,symbol:i}="kind"in t?t:{kind:void 0,symbol:t};if(2===n.options.use&&90===e.kind)return;const o=n.referenceAdder(i);n.options.implementations?function(e,t,n){if(ey(e)&&(r=e.parent,33554432&r.flags?!ZF(r)&&!eP(r):km(r)?Hu(r):b_(r)?r.body:w_(r)||Su(r)))return void t(e);var r;if(80!==e.kind)return;304===e.parent.kind&&H(e,n.checker,t);const i=j(e);if(i)return void t(i);const o=kc(e,(e=>!sD(e.parent)&&!j_(e.parent)&&!I_(e.parent))),a=o.parent;if(Wu(a)&&a.type===o&&n.markSeenContainingTypeReference(a))if(Hu(a))s(a.initializer);else if(y_(a)&&a.body){const e=a.body;241===e.kind?vm(e,(e=>{e.expression&&s(e.expression)})):s(e)}else su(a)&&s(a.expression);function s(e){R(e)&&t(e)}}(e,o,n):o(e,r)}function L(e){return e.members&&e.members.get("__constructor")}function j(e){return HN(e)||YD(e)?j(e.parent):bF(e)?ft(e.parent.parent,un(w_,ZF)):void 0}function R(e){switch(e.kind){case 217:return R(e.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function B(e,t,n,r){if(e===t)return!0;const i=EB(e)+","+EB(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some((e=>py(e).some((e=>{const i=r.getTypeAtLocation(e);return!!i&&!!i.symbol&&B(i.symbol,t,n,r)}))));return n.set(i,a),a}function J(e){return 80===e.kind&&169===e.parent.kind&&e.parent.name===e}function z(e,t,n,r,i,o){const a=[];return q(e,t,n,r,!(r&&i),((t,n,r)=>{r&&U(e)!==U(r)&&(r=void 0),a.push(r||n||t)}),(()=>!o)),a}function q(e,t,n,r,o,a,s){const c=c5(t);if(c){const e=n.getShorthandAssignmentValueSymbol(t.parent);if(e&&r)return a(e,void 0,void 0,3);const i=n.getContextualType(c.parent),o=i&&S(l5(c,n,i,!0),(e=>d(e,4)));if(o)return o;const s=function(e,t){return wQ(e.parent.parent)?t.getPropertySymbolOfDestructuringAssignment(e):void 0}(t,n),l=s&&a(s,void 0,void 0,4);if(l)return l;const _=e&&a(e,void 0,void 0,3);if(_)return _}const l=i(t,e,n);if(l){const e=a(l,void 0,void 0,1);if(e)return e}const _=d(e);if(_)return _;if(e.valueDeclaration&&dc(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(mt(e.valueDeclaration,_D),e.name);return Sn.assert(2===t.length&&!!(1&t[0].flags)&&!!(4&t[1].flags)),d(1&e.flags?t[1]:t[0])}const u=rp(e,281);if(!r||u&&!u.propertyName){const e=u&&n.getExportSpecifierLocalTargetSymbol(u);if(e){const t=a(e,void 0,void 0,1);if(t)return t}}if(!r){let r;return r=o?cY(t.parent)?lY(n,t.parent):void 0:p(e,n),r&&d(r,4)}Sn.assert(r);if(o){const t=p(e,n);return t&&d(t,4)}function d(e,t){return S(n.getRootSymbols(e),(r=>a(e,r,void 0,t)||(r.parent&&96&r.parent.flags&&s(r)?function(e,t,n,r){const i=new Map;return o(e);function o(e){if(96&e.flags&&iS(i,EB(e)))return S(e.declarations,(e=>S(py(e),(e=>{const i=n.getTypeAtLocation(e),a=i&&i.symbol&&n.getPropertyOfType(i,t);return i&&a&&(S(n.getRootSymbols(a),r)||o(i.symbol))}))))}}(r.parent,r.name,n,(n=>a(e,r,n,t))):void 0)))}function p(e,t){const n=rp(e,208);if(n&&cY(n))return lY(t,n)}}function U(e){if(!e.valueDeclaration)return!1;return!!(256&wb(e.valueDeclaration))}function W(e,t){let n=UG(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=qG(e);t&n&&(n|=t)}}while(n!==e)}return n}function H(e,t,n){const r=t.getSymbolAtLocation(e),i=t.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(i)for(const e of i.getDeclarations())1&qG(e)&&n(e)}function $(e,t,n){KI(e,(e=>{e.kind===t&&n(e),$(e,t,n)}))}function K(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}e.eachExportReference=function(e,t,n,r,i,o,a,s){const c=F_e(e,new Set(e.map((e=>e.fileName))),t,n),{importSearches:l,indirectUsers:_,singleReferences:u}=c(r,{exportKind:a?1:0,exportingModuleSymbol:i},!1);for(const[e]of l)s(e);for(const e of u)HN(e)&&VD(e.parent)&&s(e);for(const e of _)for(const n of x(e,a?"default":o)){const e=t.getSymbolAtLocation(n),i=re(null==e?void 0:e.declarations,(e=>!!ft(e,yP)));!HN(n)||e_(n.parent)||e!==r&&!i||s(n)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return b(e,t,n,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=b,e.getTopMostDeclarationNamesInFile=function(e,t){return M(x(t,e),(e=>!!ty(e))).reduce(((e,t)=>{const n=function(e){let t=0;for(;e;)e=gX(e),t++;return t}(t);return re(e.declarationNames)&&n!==e.depth?n<e.depth&&(e.declarationNames=[t],e.depth=n):(e.declarationNames.push(t),e.depth=n),e}),{depth:1/0,declarationNames:[]}).declarationNames},e.someSignatureUsage=function(e,t,n,r){if(!e.name||!HN(e.name))return!1;const i=Sn.checkDefined(n.getSymbolAtLocation(e.name));for(const o of t)for(const t of x(o,i.name)){if(!HN(t)||t===e.name||t.escapedText!==e.name.escapedText)continue;const o=tX(t),a=eF(o.parent)&&o.parent.expression===o?o.parent:void 0,s=n.getSymbolAtLocation(t);if(s&&n.getRootSymbols(s).some((e=>e===i))&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=W,e.getReferenceEntriesForShorthandPropertyAssignment=H})(U_e||(U_e={}))}}),mue={};h(mue,{Core:()=>U_e,DefinitionKind:()=>J_e,EntryKind:()=>z_e,ExportKind:()=>w_e,FindReferencesUse:()=>q_e,ImportExport:()=>N_e,createImportTracker:()=>F_e,findModuleReferences:()=>E_e,findReferenceOrRenameEntries:()=>Z_e,findReferencedSymbols:()=>X_e,getContextNode:()=>K_e,getExportInfo:()=>L_e,getImplementationsAtPosition:()=>Q_e,getImportOrExportSymbol:()=>O_e,getReferenceEntriesForNode:()=>eue,getTextSpanOfEntry:()=>uue,isContextWithStartAndEndNode:()=>H_e,isDeclarationOfSymbol:()=>pue,isWriteAccessForReference:()=>due,nodeEntry:()=>W_e,toContextSpan:()=>G_e,toHighlightSpan:()=>lue,toReferenceEntry:()=>oue,toRenameLocation:()=>iue});var gue,hue=g({"src/services/_namespaces/ts.FindAllReferences.ts"(){V_e(),fue()}});function yue(e,t,n,i,o){var a;const s=bue(t,n,e),c=s&&[(l=s.reference.fileName,_=s.fileName,u=s.unverified,{fileName:_,textSpan:ac(0,0),kind:"script",name:l,containerName:void 0,containerKind:void 0,unverified:u})]||r;var l,_,u;if(null==s?void 0:s.file)return c;const d=HX(t,n);if(d===t)return;const{parent:p}=d,f=e.getTypeChecker();if(164===d.kind||HN(d)&&xE(p)&&p.tagName===d)return function(e,t){const n=kc(t,C_);if(!n||!n.name)return;const r=kc(n,w_);if(!r)return;const i=_y(r);if(!i)return;const o=Qh(i.expression),a=yF(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=Nc(Mf(n.name)),c=gb(n)?e.getPropertyOfType(e.getTypeOfSymbol(a),s):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(a),s);if(!c)return;return Nue(e,c,t)}(f,d)||r;if(oX(d)){const e=rX(d.parent,d.text);return e?[Fue(f,e,"label",d.text,void 0)]:void 0}if(107===d.kind){const e=kc(d.parent,(e=>gD(e)?"quit":b_(e)));return e?[Eue(f,e)]:void 0}if(135===d.kind){const e=kc(d,(e=>b_(e)));return e&&re(e.modifiers,(e=>134===e.kind))?[Eue(f,e)]:void 0}if(127===d.kind){const e=kc(d,(e=>b_(e)));return e&&e.asteriskToken?[Eue(f,e)]:void 0}if(eD(d)&&gD(d.parent)){const e=d.parent.parent,{symbol:t,failedAliasResolution:n}=wue(e,f,o),r=M(e.members,gD),i=t?f.symbolToString(t,e):"",a=d.getSourceFile();return J(r,(e=>{let{pos:t}=bx(e);return t=ys(a.text,t),Fue(f,e,"constructor","static {}",i,!1,n,{start:t,length:6})}))}let{symbol:m,failedAliasResolution:g}=wue(d,f,o),h=d;if(i&&g){const e=b([d,...(null==m?void 0:m.declarations)||r],(e=>kc(e,wf))),t=e&&uh(e);t&&(({symbol:m,failedAliasResolution:g}=wue(t,f,o)),h=t)}if(!m&&sY(h)){const n=null==(a=e.getResolvedModule(t,h.text,NV(t,h)))?void 0:a.resolvedModule;if(n)return[{name:h.text,fileName:n.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:oc(0,0),failedAliasResolution:g,isAmbient:oO(n.resolvedFileName),unverified:h!==d}]}if(!m)return oe(c,function(e,t){return G(t.getIndexInfosAtLocation(e),(e=>e.declaration&&Eue(t,e.declaration)))}(d,f));if(i&&N(m.declarations,(e=>e.getSourceFile().fileName===t.fileName)))return;const y=function(e,t){const n=function(e){const t=kc(e,(e=>!_X(e))),n=null==t?void 0:t.parent;return n&&Q_(n)&&og(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return ft(r&&r.declaration,(e=>y_(e)&&!CD(e)))}(f,d);if(y&&(!Mu(d.parent)||!function(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}(y))){const e=Eue(f,y,g);if(f.getRootSymbols(m).some((e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||Vb(t.parent)||!Q_(t.parent)&&e===(null==(n=ft(t.parent,ku))?void 0:n.symbol)}(e,y))))return[e];{const t=Nue(f,m,d,g,y)||r;return 108===d.kind?[e,...t]:[...t,e]}}if(304===d.parent.kind){const e=f.getShorthandAssignmentValueSymbol(m.valueDeclaration);return oe((null==e?void 0:e.declarations)?e.declarations.map((t=>Due(t,f,e,d,!1,g))):r,vue(f,d))}if(g_(d)&&GD(p)&&$D(p.parent)&&d===(p.propertyName||p.name)){const e=HQ(d),t=f.getTypeAtLocation(p.parent);return void 0===e?r:V(t.isUnion()?t.types:[t],(t=>{const n=t.getProperty(e);return n&&Nue(f,n,d)}))}const v=vue(f,d);return oe(c,v.length?v:Nue(f,m,d,g))}function vue(e,t){const n=c5(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return V(l5(n,e,r,!1),(n=>Nue(e,n,t)))}return r}function bue(e,t,n){var r,i;const o=Aue(e.referencedFiles,t);if(o){const t=n.getSourceFileFromReference(e,o);return t&&{reference:o,fileName:t.fileName,file:t,unverified:!1}}const a=Aue(e.typeReferenceDirectives,t);if(a){const t=null==(r=n.getResolvedTypeReferenceDirectives().get(a.fileName,a.resolutionMode||e.impliedNodeFormat))?void 0:r.resolvedTypeReferenceDirective,i=t&&n.getSourceFile(t.resolvedFileName);return i&&{reference:a,fileName:i.fileName,file:i,unverified:!1}}const s=Aue(e.libReferenceDirectives,t);if(s){const e=n.getLibFileFromReference(s);return e&&{reference:s,fileName:e.fileName,file:e,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){const r=$X(e,t);let o;if(sY(r)&&Vs(r.text)&&(o=n.getResolvedModule(e,r.text,NV(e,r)))){const t=null==(i=o.resolvedModule)?void 0:i.resolvedFileName,a=t||ca(Zo(e.fileName),r.text);return{file:n.getSourceFile(a),fileName:a,reference:{pos:r.getStart(),end:r.getEnd(),fileName:r.text},unverified:!t}}}}function xue(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!gue.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function Sue(e,t,n,r){var i,o;if(4&Zx(t)&&function(e,t){const n=t.symbol.name;if(!gue.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return Tue(e.getTypeArguments(t)[0],e,n,r);if(xue(e,t)&&t.aliasTypeArguments)return Tue(t.aliasTypeArguments[0],e,n,r);if(32&Zx(t)&&t.target&&xue(e,t.target)){const a=null==(o=null==(i=t.aliasSymbol)?void 0:i.declarations)?void 0:o[0];if(a&&eP(a)&&TD(a.type)&&a.type.typeArguments)return Tue(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function kue(e,t,n){const r=HX(t,n);if(r===t)return;if(cm(r.parent)&&r.parent.name===r)return Tue(e.getTypeAtLocation(r.parent),e,r.parent,!1);const{symbol:i,failedAliasResolution:o}=wue(r,e,!1);if(!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&GF(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){const e=t.getCallSignatures();if(1===e.length)return n.getReturnTypeOfSignature(Pe(e))}return}(i,a,e),c=s&&Tue(s,e,r,o),[l,_]=c&&0!==c.length?[s,c]:[a,Tue(a,e,r,o)];return _.length?[...Sue(e,l,r,o),..._]:!(111551&i.flags)&&788968&i.flags?Nue(e,qx(i,e),r,o):void 0}function Tue(e,t,n,r){return V(!e.isUnion()||32&e.flags?[e]:e.types,(e=>e.symbol&&Nue(t,e.symbol,n,r)))}function Cue(e,t,n){const r=yue(e,t,n);if(!r||0===r.length)return;const i=Aue(t.referencedFiles,n)||Aue(t.typeReferenceDirectives,n)||Aue(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:OQ(i)};const o=HX(t,n);return{definitions:r,textSpan:oc(o.getStart(),o.getWidth())}}function wue(e,t,n){const r=t.getSymbolAtLocation(e);let i=!1;if((null==r?void 0:r.declarations)&&2097152&r.flags&&!n&&function(e,t){if(80!==e.kind)return!1;if(e.parent===t)return!0;if(274===t.kind)return!1;return!0}(e,r.declarations[0])){const e=t.getAliasedSymbol(r);if(e.declarations)return{symbol:e};i=!0}return{symbol:r,failedAliasResolution:i}}function Nue(e,t,n,r,i){const o=M(t.declarations,(e=>e!==i)),a=M(o,(e=>!function(e){if(!Mg(e))return!1;const t=kc(e,(e=>!!Vb(e)||!Mg(e)&&"quit"));return!!t&&5===Gg(t)}(e))),s=re(a)?a:o;return function(){if(32&t.flags&&!(19&t.flags)&&(HG(n)||137===n.kind)){return c((D(o,w_)||Sn.fail("Expected declaration to have at least one class-like declaration")).members,!0)}}()||($G(n)||pX(n)?c(o,!1):void 0)||J(s,(i=>Due(i,e,t,n,!1,r)));function c(i,o){if(!i)return;const a=i.filter(o?hD:y_),s=a.filter((e=>!!e.body));return a.length?0!==s.length?s.map((r=>Due(r,e,t,n))):[Due(Ie(a),e,t,n,!1,r)]:void 0}}function Due(e,t,n,r,i,o){const a=t.symbolToString(n),s=Zpe.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return Fue(t,e,s,a,c,i,o)}function Fue(e,t,n,r,i,o,a,s){const c=t.getSourceFile();if(!s){s=EQ(Mc(t)||t,c)}return{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...mue.toContextSpan(s,c,mue.getContextNode(t)),isLocal:!Pue(e,t),isAmbient:!!(33554432&t.flags),unverified:o,failedAliasResolution:a}}function Pue(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Hu(t.parent)&&t.parent.initializer===t)return Pue(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(pb(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return Pue(e,t.parent);default:return!1}}function Eue(e,t,n){return Due(t,e,t.symbol,t,!1,n)}function Aue(e,t){return D(e,(e=>Xs(e,t)))}var Iue=g({"src/services/goToDefinition.ts"(){zge(),gue=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),Oue={};h(Oue,{createDefinitionInfo:()=>Due,findReferenceInPosition:()=>Aue,getDefinitionAndBoundSpan:()=>Cue,getDefinitionAtPosition:()=>yue,getReferenceAtPosition:()=>bue,getTypeDefinitionAtPosition:()=>kue});var Lue,jue=g({"src/services/_namespaces/ts.GoToDefinition.ts"(){Iue()}});function Mue(e){return"literals"===e.includeInlayParameterNameHints}function Rue(e){return!0===e.interactiveInlayHints}function Bue(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=rY(t,o),l=n.getTypeChecker(),_=[];return function e(n){if(!n||0===n.getFullWidth())return;switch(n.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:i.throwIfCancellationRequested()}if(!tc(r,n.pos,n.getFullWidth()))return;if(j_(n)&&!bF(n))return;o.includeInlayVariableTypeHints&&GF(n)||o.includeInlayPropertyDeclarationTypeHints&&pD(n)?f(n):o.includeInlayEnumMemberValueHints&&WP(n)?function(e){if(e.initializer)return;const t=l.getConstantValue(e);void 0!==t&&(n=t.toString(),r=e.end,_.push({text:`= ${n}`,position:r,kind:"Enum",whitespaceBefore:!0}));var n,r}(n):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(o)&&(eF(n)||tF(n))?function(e){const t=e.arguments;if(!t||!t.length)return;const n=[],r=l.getResolvedSignatureForSignatureHelp(e,n);if(!r||!n.length)return;let i=0;for(const e of t){const t=Qh(e);if(Mue(o)&&!h(t)){i++;continue}let n=0;if(hF(t)){const e=l.getTypeAtLocation(t.expression);if(l.isTupleType(e)){const{elementFlags:t,fixedLength:r}=e.target;if(0===r)continue;const i=P(t,(e=>!(1&e)));(i<0?r:i)>0&&(n=i<0?r:i)}}const a=l.getParameterIdentifierInfoAtPosition(r,i);if(i+=n||1,a){const{parameter:n,parameterName:r,isRestParameter:i}=a;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!m(t,r))&&!i)continue;const s=Nc(r);if(g(t,s))continue;u(s,n,e.getStart(),i)}}}(n):(o.includeInlayFunctionParameterTypeHints&&b_(n)&&JT(n)&&function(e){const t=l.getSignatureFromDeclaration(e);if(!t)return;for(let n=0;n<e.parameters.length&&n<t.parameters.length;++n){const r=e.parameters[n];if(!b(r))continue;if(Yv(r))continue;const i=y(t.parameters[n]);i&&d(i,r.questionToken?r.questionToken.end:r.name.end)}}(n),o.includeInlayFunctionLikeReturnTypeHints&&function(e){return aF(e)||oF(e)||QF(e)||mD(e)||yD(e)}(n)&&function(e){if(aF(e)&&!OX(e,21,t))return;if(eb(e)||!e.body)return;const n=l.getSignatureFromDeclaration(e);if(!n)return;const r=l.getReturnTypeOfSignature(n);if(p(r))return;const i=v(r);i&&d(i,function(e){const n=OX(e,22,t);if(n)return n.end;return e.parameters.end}(e))}(n));return KI(n,e)}(t),_;function u(e,t,n,r){let i,a=`${r?"...":""}${e}`;Rue(o)?(i=[x(a,t),{text:":"}],a=""):a+=":",_.push({text:a,position:n,kind:"Parameter",whitespaceAfter:!0,displayParts:i})}function d(e,t){_.push({text:"string"==typeof e?`: ${e}`:"",displayParts:"string"==typeof e?void 0:[{text:": "},...e],position:t,kind:"Type",whitespaceBefore:!0})}function p(e){return e.symbol&&1536&e.symbol.flags}function f(e){if(!e.initializer||R_(e.name)||GF(e)&&!b(e))return;if(Yv(e))return;const t=l.getTypeAtLocation(e);if(p(t))return;const n=v(t);if(n){const t="string"==typeof n?n:n.map((e=>e.text)).join("");if(!1===o.includeInlayVariableTypeHintsWhenTypeMatchesName&&Pt(e.name.getText(),t))return;d(n,e.name.end)}}function m(e,t){return HN(e)?e.text===t:!!YD(e)&&e.name.text===t}function g(e,n){if(!Os(n,s.target,zS(t.scriptKind)))return!1;const r=Fs(a,e.pos);if(!(null==r?void 0:r.length))return!1;const i=Lue(n);return re(r,(e=>i.test(a.substring(e.pos,e.end))))}function h(e){switch(e.kind){case 224:{const t=e.operand;return Gl(t)||HN(t)&&zT(t.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||zT(t)}}return Gl(e)}function y(e){const t=e.valueDeclaration;if(!t||!_D(t))return;const n=l.getTypeOfSymbolAtLocation(e,t);return p(n)?void 0:v(n)}function v(e){if(!Rue(o))return function(e){const n=tU();return mp((r=>{const i=l.typeToTypeNode(e,void 0,71286784);Sn.assertIsDefined(i,"should always get typenode"),n.writeNode(4,i,t,r)}))}(e);const n=l.typeToTypeNode(e,void 0,71286784);Sn.assertIsDefined(n,"should always get typenode");const r=[];return i(n),r;function i(e){if(!e)return;const t=ts(e.kind);if(t)r.push({text:t});else if(Gl(e))r.push({text:s(e)});else switch(e.kind){case 80:const t=e,n=Dc(t),o=t.symbol&&t.symbol.declarations&&t.symbol.declarations.length&&Mc(t.symbol.declarations[0]);o?r.push(x(n,o)):r.push({text:n});break;case 166:const s=e;i(s.left),r.push({text:"."}),i(s.right);break;case 182:const c=e;c.assertsModifier&&r.push({text:"asserts "}),i(c.parameterName),c.type&&(r.push({text:" is "}),i(c.type));break;case 183:const l=e;i(l.typeName),l.typeArguments&&(r.push({text:"<"}),a(l.typeArguments,", "),r.push({text:">"}));break;case 168:const _=e;_.modifiers&&a(_.modifiers," "),i(_.name),_.constraint&&(r.push({text:" extends "}),i(_.constraint)),_.default&&(r.push({text:" = "}),i(_.default));break;case 169:const u=e;u.modifiers&&a(u.modifiers," "),u.dotDotDotToken&&r.push({text:"..."}),i(u.name),u.questionToken&&r.push({text:"?"}),u.type&&(r.push({text:": "}),i(u.type));break;case 185:const d=e;r.push({text:"new "}),d.typeParameters&&(r.push({text:"<"}),a(d.typeParameters,", "),r.push({text:">"})),r.push({text:"("}),a(d.parameters,", "),r.push({text:")"}),r.push({text:" => "}),i(d.type);break;case 186:const p=e;r.push({text:"typeof "}),i(p.exprName),p.typeArguments&&(r.push({text:"<"}),a(p.typeArguments,", "),r.push({text:">"}));break;case 187:const f=e;r.push({text:"{"}),f.members.length&&(r.push({text:" "}),a(f.members,"; "),r.push({text:" "})),r.push({text:"}"});break;case 188:i(e.elementType),r.push({text:"[]"});break;case 189:r.push({text:"["}),a(e.elements,", "),r.push({text:"]"});break;case 202:const m=e;m.dotDotDotToken&&r.push({text:"..."}),i(m.name),m.questionToken&&r.push({text:"?"}),r.push({text:": "}),i(m.type);break;case 190:i(e.type),r.push({text:"?"});break;case 191:r.push({text:"..."}),i(e.type);break;case 192:a(e.types," | ");break;case 193:a(e.types," & ");break;case 194:const g=e;i(g.checkType),r.push({text:" extends "}),i(g.extendsType),r.push({text:" ? "}),i(g.trueType),r.push({text:" : "}),i(g.falseType);break;case 195:r.push({text:"infer "}),i(e.typeParameter);break;case 196:r.push({text:"("}),i(e.type),r.push({text:")"});break;case 198:const h=e;r.push({text:`${ts(h.operator)} `}),i(h.type);break;case 199:const y=e;i(y.objectType),r.push({text:"["}),i(y.indexType),r.push({text:"]"});break;case 200:const v=e;r.push({text:"{ "}),v.readonlyToken&&(40===v.readonlyToken.kind?r.push({text:"+"}):41===v.readonlyToken.kind&&r.push({text:"-"}),r.push({text:"readonly "})),r.push({text:"["}),i(v.typeParameter),v.nameType&&(r.push({text:" as "}),i(v.nameType)),r.push({text:"]"}),v.questionToken&&(40===v.questionToken.kind?r.push({text:"+"}):41===v.questionToken.kind&&r.push({text:"-"}),r.push({text:"?"})),r.push({text:": "}),v.type&&i(v.type),r.push({text:"; }"});break;case 201:i(e.literal);break;case 184:const b=e;b.typeParameters&&(r.push({text:"<"}),a(b.typeParameters,", "),r.push({text:">"})),r.push({text:"("}),a(b.parameters,", "),r.push({text:")"}),r.push({text:" => "}),i(b.type);break;case 205:const S=e;S.isTypeOf&&r.push({text:"typeof "}),r.push({text:"import("}),i(S.argument),S.assertions&&(r.push({text:", { assert: "}),a(S.assertions.assertClause.elements,", "),r.push({text:" }"})),r.push({text:")"}),S.qualifier&&(r.push({text:"."}),i(S.qualifier)),S.typeArguments&&(r.push({text:"<"}),a(S.typeArguments,", "),r.push({text:">"}));break;case 171:const k=e;k.modifiers&&a(k.modifiers," "),i(k.name),k.questionToken&&r.push({text:"?"}),k.type&&(r.push({text:": "}),i(k.type));break;default:Sn.failBadSyntaxKind(e)}}function a(e,t){e.forEach(((e,n)=>{n>0&&r.push({text:t}),i(e)}))}function s(e){return FN(e)?0===c?`'${_v(e.text,39)}'`:`"${_v(e.text,34)}"`:e.text}}function b(e){if(($y(e)||GF(e)&&im(e))&&e.initializer){const t=Qh(e.initializer);return!(h(t)||tF(t)||QD(t)||su(t))}return!0}function x(e,t){const n=t.getSourceFile();return{text:e,span:EQ(t,n),file:n.fileName}}}var Jue=g({"src/services/inlayHints.ts"(){zge(),Lue=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),zue={};h(zue,{provideInlayHints:()=>Bue});var que,Uue,Vue,Wue,Hue=g({"src/services/_namespaces/ts.InlayHints.ts"(){Jue()}});function $ue(e,t){const n=[];return hY(e,(e=>{for(const r of function(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(SE(e.parent))return[e.parent.parent];default:return Dh(e)}}(e)){const i=_E(r)&&r.tags&&D(r.tags,(e=>334===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!i||_E(r)&&353!==e.kind&&345!==e.kind&&r.tags&&r.tags.some((e=>353===e.kind||345===e.kind))&&!r.tags.some((e=>348===e.kind||349===e.kind)))continue;let o=r.comment?Xue(r.comment,t):[];i&&i.comment&&(o=o.concat(Xue(i.comment,t))),I(n,o,Kue)||n.push(o)}})),U(w(n,[JY()]))}function Kue(e,t){return O(e,t,((e,t)=>e.kind===t.kind&&e.text===t.text))}function Gue(e,t){const n=[];return hY(e,(e=>{const r=hl(e);if(!r.some((e=>353===e.kind||345===e.kind))||r.some((e=>348===e.kind||349===e.kind)))for(const e of r)n.push({name:e.tagName.text,text:Que(e,t)}),ql(e)&&e.isNameFirst&&e.typeExpression&&uE(e.typeExpression.type)&&b(e.typeExpression.type.jsDocPropertyTags,(e=>{n.push({name:e.tagName.text,text:Que(e,t)})}))})),n}function Xue(e,t){return"string"==typeof e?[AY(e)]:V(e,(e=>328===e.kind?[AY(e.text)]:RY(e,t)))}function Que(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 348:return FY;case 355:return PY;case 352:return OY;case 353:case 345:return IY;default:return AY}}(r);switch(r){case 356:const r=e.typeExpression;return r?o(r):void 0===n?void 0:Xue(n,t);case 336:case 335:return o(e.class);case 352:const a=e,s=[];if(a.constraint&&s.push(AY(a.constraint.getText())),v(a.typeParameters)){v(s)&&s.push(CY());const e=a.typeParameters[a.typeParameters.length-1];b(a.typeParameters,(t=>{s.push(i(t.getText())),e!==t&&s.push(NY(28),CY())}))}return n&&s.push(CY(),...Xue(n,t)),s;case 351:case 357:return o(e.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:c}=e;return c?o(c):void 0===n?void 0:Xue(n,t);default:return void 0===n?void 0:Xue(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[AY(r),...Xue(n,t)]:[i(r),CY(),...Xue(n,t)]:[AY(r)];var r}}function Yue(){return Uue||(Uue=J(que,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:C_e.SortText.LocationPriority}))))}function Zue(){return Vue||(Vue=J(que,(e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:C_e.SortText.LocationPriority}))))}function ede(e){return{name:e,kind:"",kindModifiers:"",displayParts:[AY(e)],documentation:r,tags:void 0,codeActions:void 0}}function tde(e){if(!HN(e.name))return r;const t=e.name.text,n=e.parent,i=n.parent;return y_(i)?G(i.parameters,(r=>{if(!HN(r.name))return;const i=r.name.text;return n.tags.some((t=>t!==e&&wE(t)&&HN(t.name)&&t.name.escapedText===i))||void 0!==t&&!an(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:C_e.SortText.LocationPriority}})):[]}function nde(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[AY(e)],documentation:r,tags:void 0,codeActions:void 0}}function rde(e,t,n,r){const i=KX(t,n),o=kc(i,_E);if(o&&(void 0!==o.comment||v(o.tags)))return;const a=i.getStart(t);if(!o&&a<n)return;const s=function(e,t){return up(e,(e=>ide(e,t)))}(i,r);if(!s)return;const{commentOwner:c,parameters:l,hasReturn:_}=s,u=Ae(Vu(c)&&c.jsDoc?c.jsDoc:void 0);if(c.getStart(t)<n||u&&o&&u!==o)return;const d=function(e,t){const{text:n}=e,r=vX(t,e);let i=r;for(;i<=t&&ds(n.charCodeAt(i));i++);return n.slice(r,i)}(t,n),p=Wk(t.fileName),f=(l?function(e,t,n,r){return e.map((({name:e,dotDotDotToken:i},o)=>{const a=80===e.kind?e.text:"param"+o;return`${n} * @param ${t?i?"{...any} ":"{any} ":""}${a}${r}`})).join("")}(l||[],p,d,e):"")+(_?function(e,t){return`${e} * @returns${t}`}(d,e):""),m=v(hl(c))>0;if(f&&!m){const t="/**"+e+d+" * ";return{newText:t+e+f+d+" */"+(a===n?e+d:""),caretOffset:t.length}}return{newText:"/** */",caretOffset:3}}function ide(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:ode(n,t)};case 303:return ide(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const n=e;return n.type&&CD(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:ode(n.type,t)}:{commentOwner:e}}case 243:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;217===e.kind;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return D(e.members,hD)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:ode(r,t)}:{commentOwner:e}}case 312:return"quit";case 267:return 267===e.parent.kind?void 0:{commentOwner:e};case 244:return ide(e.expression,t);case 226:{const n=e;return 0===Gg(n)?"quit":y_(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:ode(n.right,t)}:{commentOwner:e}}case 172:const r=e.initializer;if(r&&(oF(r)||aF(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:ode(r,t)}}}function ode(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(CD(e)||aF(e)&&au(e.body)||b_(e)&&e.body&&PF(e.body)&&!!vm(e.body,(e=>e)))}var ade=g({"src/services/jsDoc.ts"(){zge(),que=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],Wue=ede}}),sde={};h(sde,{getDocCommentTemplateAtPosition:()=>rde,getJSDocParameterNameCompletionDetails:()=>nde,getJSDocParameterNameCompletions:()=>tde,getJSDocTagCompletionDetails:()=>ede,getJSDocTagCompletions:()=>Zue,getJSDocTagNameCompletionDetails:()=>Wue,getJSDocTagNameCompletions:()=>Yue,getJsDocCommentsFromDeclarations:()=>$ue,getJsDocTagsFromDeclarations:()=>Gue});var cde,lde=g({"src/services/_namespaces/ts.JsDoc.ts"(){ade()}});function _de(e,t,n,r,i,o){const a=Pfe.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s="SortAndCombine"===o||"All"===o,c=s,l="RemoveUnused"===o||"All"===o,_=ude(e,e.statements.filter(sP)),u=function(e,t){const n="boolean"==typeof e.organizeImportsIgnoreCase?e.organizeImportsIgnoreCase:(null==t?void 0:t())??!1;return Lde(e,n)}(i,s?()=>2===wde(_,i):void 0),d=t=>(l&&(t=function(e,t,n){const r=n.getTypeChecker(),i=n.getCompilerOptions(),o=r.getJsxNamespace(t),a=r.getJsxFragmentFactory(t),s=!!(2&t.transformFlags),c=[];for(const n of e){const{importClause:e,moduleSpecifier:r}=n;if(!e){c.push(n);continue}let{name:i,namedBindings:o}=e;if(i&&!l(i)&&(i=void 0),o)if(fP(o))l(o.name)||(o=void 0);else{const e=o.elements.filter((e=>l(e.name)));e.length<o.elements.length&&(o=e.length?AC.updateNamedImports(o,e):void 0)}i||o?c.push(vde(n,i,o)):pde(t,r)&&(t.isDeclarationFile?c.push(AC.createImportDeclaration(n.modifiers,void 0,r,void 0)):c.push(n))}return c;function l(e){return s&&(e.text===o||a&&e.text===a)&&u0(i.jsx)||mue.Core.isSymbolReferencedInFile(e,r,t)}}(t,e,r)),c&&(t=gde(t,u,e)),s&&(t=we(t,((e,t)=>Pde(e,t,u)))),t);_.forEach((e=>p(e,d))),"RemoveUnused"!==o&&function(e){const t=[],n=e.statements,r=v(n);let i=0,o=0;for(;i<r;)if(vP(n[i])){void 0===t[o]&&(t[o]=[]);const e=n[i];if(e.moduleSpecifier)t[o].push(e),i++;else{for(;i<r&&vP(n[i]);)t[o].push(n[i++]);o++}}else i++;return V(t,(t=>ude(e,t)))}(e).forEach((e=>p(e,(e=>yde(e,u)))));for(const t of e.statements.filter(lf)){if(!t.body)continue;if(ude(e,t.body.statements.filter(sP)).forEach((e=>p(e,d))),"RemoveUnused"!==o){p(t.body.statements.filter(vP),(e=>yde(e,u)))}}return a.getChanges();function p(r,i){if(0===v(r))return;rw(r[0],1024);const o=c?Ze(r,(e=>fde(e.moduleSpecifier))):[r],l=V(s?we(o,((e,t)=>kde(e[0].moduleSpecifier,t[0].moduleSpecifier,u))):o,(e=>fde(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?i(e):e));if(0===l.length)a.deleteNodes(e,r,{leadingTriviaOption:Pfe.LeadingTriviaOption.Exclude,trailingTriviaOption:Pfe.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:Pfe.LeadingTriviaOption.Exclude,trailingTriviaOption:Pfe.TrailingTriviaOption.Include,suffix:BY(n,t.options)};a.replaceNodeWithNodes(e,r[0],l,i);const o=a.nodeHasTrailingComment(e,r[0],i);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:Pfe.TrailingTriviaOption.Include},o)}}}function ude(e,t){const n=Ls(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&dde(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function dde(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenStart()<i;){if(4===n.scan()&&(o++,o>=2))return!0}return!1}function pde(e,t){const n=FN(t)&&t.text;return dt(n)&&re(e.moduleAugmentations,(e=>FN(e)&&e.text===n))}function fde(e){return void 0!==e&&Qu(e)?e.text:void 0}function mde(e,t,n){return gde(e,Ide(t),n)}function gde(e,t,n){if(0===e.length)return e;const{importWithoutClause:i,typeOnlyImports:o,regularImports:a}=function(e){let t;const n={defaultImports:[],namespaceImports:[],namedImports:[]},r={defaultImports:[],namespaceImports:[],namedImports:[]};for(const i of e){if(void 0===i.importClause){t=t||i;continue}const e=i.importClause.isTypeOnly?n:r,{name:o,namedBindings:a}=i.importClause;o&&e.defaultImports.push(i),a&&(fP(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}(e),s=[];i&&s.push(i);for(const e of[a,o]){const i=e===o,{defaultImports:a,namespaceImports:c,namedImports:l}=e;if(!i&&1===a.length&&1===c.length&&0===l.length){const e=a[0];s.push(vde(e,e.importClause.name,c[0].importClause.namedBindings));continue}const _=we(c,((e,n)=>t(e.importClause.namedBindings.name.text,n.importClause.namedBindings.name.text)));for(const e of _)s.push(vde(e,void 0,e.importClause.namedBindings));const u=De(a),d=De(l),p=u??d;if(!p)continue;let f;const m=[];if(1===a.length)f=a[0].importClause.name;else for(const e of a)m.push(AC.createImportSpecifier(!1,AC.createIdentifier("default"),e.importClause.name));m.push(...Ade(l));const g=AC.createNodeArray(bde(m,t),null==d?void 0:d.importClause.namedBindings.elements.hasTrailingComma),h=0===g.length?f?void 0:AC.createNamedImports(r):d?AC.updateNamedImports(d.importClause.namedBindings,g):AC.createNamedImports(g);n&&h&&(null==d?void 0:d.importClause.namedBindings)&&!kx(d.importClause.namedBindings,n)&&rw(h,2),i&&f&&h?(s.push(vde(p,f,void 0)),s.push(vde(d??p,void 0,h))):s.push(vde(p,f,h))}return s}function hde(e,t){return yde(e,Ide(t))}function yde(e,t){if(0===e.length)return e;const{exportWithoutClause:n,namedExports:i,typeOnlyExports:o}=function(e){let t;const n=[],r=[];for(const i of e)void 0===i.exportClause?t=t||i:i.isTypeOnly?r.push(i):n.push(i);return{exportWithoutClause:t,namedExports:n,typeOnlyExports:r}}(e),a=[];n&&a.push(n);for(const e of[i,o]){if(0===e.length)continue;const n=[];n.push(...V(e,(e=>e.exportClause&&bP(e.exportClause)?e.exportClause.elements:r)));const i=bde(n,t),o=e[0];a.push(AC.updateExportDeclaration(o,o.modifiers,o.isTypeOnly,o.exportClause&&(bP(o.exportClause)?AC.updateNamedExports(o.exportClause,i):AC.updateNamespaceExport(o.exportClause,o.exportClause.name)),o.moduleSpecifier,o.attributes))}return a}function vde(e,t,n){return AC.updateImportDeclaration(e,e.modifiers,AC.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function bde(e,t){return we(e,((e,n)=>xde(e,n,t)))}function xde(e,t,n){return Vt(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}function Sde(e,t,n){return kde(e,t,Ide(!!n))}function kde(e,t,n){const r=void 0===e?void 0:fde(e),i=void 0===t?void 0:fde(t);return Vt(void 0===r,void 0===i)||Vt(Vs(r),Vs(i))||n(r,i)}function Tde(e){var t;switch(e.kind){case 271:return null==(t=ft(e.moduleReference,CP))?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function Cde(e,t){return wde(ude(e,e.statements.filter(sP)),t)}function wde(e,t){const n=Lde(t,!1),r=Lde(t,!0);let i=3,o=!1;for(const a of e){if(a.length>1){const e=pe(a,(e=>{var t;return(null==(t=ft(e.moduleSpecifier,FN))?void 0:t.text)??""}),n,r);if(e&&(i&=e,o=!0),!i)return i}const e=D(a,(e=>{var t,n;return(null==(n=ft(null==(t=e.importClause)?void 0:t.namedBindings,gP))?void 0:n.elements.length)>1}));if(e){const n=cde(e.importClause.namedBindings.elements,t);if(n&&(i&=n,o=!0),!i)return i}if(3!==i)return i}return o?0:i}function Nde(e,t){return pe(e,(e=>fde(Tde(e))||""),Lde(t,!1),Lde(t,!0))}function Dde(e,t,n){const r=Re(e,t,bt,((e,t)=>Pde(e,t,n)));return r<0?~r:r}function Fde(e,t,n){const r=Re(e,t,bt,((e,t)=>xde(e,t,n)));return r<0?~r:r}function Pde(e,t,n){return kde(Tde(e),Tde(t),n)||function(e,t){return It(Ede(e),Ede(t))}(e,t)}function Ede(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:274===(null==(t=e.importClause.namedBindings)?void 0:t.kind)?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Ade(e){return V(e,(e=>J(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&gP(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&e.name.escapedText===e.propertyName.escapedText?AC.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function Ide(e){return e?Mt:Rt}function Ode(e,t){const n=function(e){let t=e.organizeImportsLocale;"auto"===t&&(t=Jt());void 0===t&&(t="en");const n=Intl.Collator.supportedLocalesOf(t),r=n.length?n[0]:"en";return r}(t),r=t.organizeImportsCaseFirst??!1,i=t.organizeImportsNumericCollation??!1,o=t.organizeImportsAccentCollation??!0,a=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(n,{usage:"sort",caseFirst:r||"false",sensitivity:a,numeric:i}).compare}function Lde(e,t){return"unicode"===(e.organizeImportsCollation??"ordinal")?Ode(t,e):Ide(t)}var jde=g({"src/services/organizeImports.ts"(){zge(),cde=Nt(((e,t)=>{if(!de(e,((e,t)=>Vt(e.isTypeOnly,t.isTypeOnly))))return 0;return pe(e,(e=>e.name.text),Lde(t,!1),Lde(t,!0))}),new class{has([e,t]){return!(this._lastPreferences!==t||!this._cache)&&this._cache.has(e)}get([e,t]){if(this._lastPreferences===t&&this._cache)return this._cache.get(e)}set([e,t],n){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,n)}})}}),Mde={};h(Mde,{coalesceExports:()=>hde,coalesceImports:()=>mde,compareImportOrExportSpecifiers:()=>xde,compareImportsOrRequireStatements:()=>Pde,compareModuleSpecifiers:()=>Sde,detectImportDeclarationSorting:()=>Nde,detectImportSpecifierSorting:()=>cde,detectSorting:()=>Cde,getImportDeclarationInsertionIndex:()=>Dde,getImportSpecifierInsertionIndex:()=>Fde,getOrganizeImportsComparer:()=>Lde,organizeImports:()=>_de});var Rde,Bde=g({"src/services/_namespaces/ts.OrganizeImports.ts"(){jde()}});function Jde(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=[...e.statements,e.endOfFileToken],a=o.length;for(;i<a;){for(;i<a&&!Cf(o[i]);)s(o[i]),i++;if(i===a)break;const t=i;for(;i<a&&Cf(o[i]);)s(o[i]),i++;const r=i-1;r!==t&&n.push(Vde(OX(o[t],102,e).getStart(e),o[r].getEnd(),"imports"))}function s(i){var o;if(0===r)return;t.throwIfCancellationRequested(),(Nu(i)||EF(i)||qF(i)||Y_(i)||1===i.kind)&&Ude(i,e,t,n),y_(i)&&pF(i.parent)&&YD(i.parent.left)&&Ude(i.parent.left,e,t,n),(PF(i)||rP(i))&&qde(i.statements.end,e,t,n),(w_(i)||ZF(i))&&qde(i.members.end,e,t,n);const a=function(e,t){switch(e.kind){case 241:if(y_(e.parent))return function(e,t,n){const r=function(e,t,n){if(Px(e.parameters,n)){const t=OX(e,21,n);if(t)return t}return OX(t,19,n)}(e,t,n),i=OX(t,20,n);return r&&i&&Wde(r,i,e,n,219!==e.kind)}(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return _(e.parent);case 258:const n=e.parent;if(n.tryBlock===e)return _(e.parent);if(n.finallyBlock===e){const e=OX(n,98,t);if(e)return _(e)}default:return Hde(EQ(e,t),"code")}case 268:return _(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return _(e);case 189:return _(e,!1,!PD(e.parent),23);case 296:case 297:return u(e.statements);case 210:return l(e);case 209:return l(e,23);case 284:return o(e);case 288:return a(e);case 285:case 286:return s(e.attributes);case 228:case 15:return c(e);case 207:return _(e,!1,!GD(e.parent),23);case 219:return i(e);case 213:return r(e);case 217:return d(e);case 275:case 279:case 300:return n(e)}function n(e){if(!e.elements.length)return;const n=OX(e,19,t),r=OX(e,20,t);return n&&r&&!Ex(n.pos,r.pos,t)?Wde(n,r,e,t,!1,!1):void 0}function r(e){if(!e.arguments.length)return;const n=OX(e,21,t),r=OX(e,22,t);return n&&r&&!Ex(n.pos,r.pos,t)?Wde(n,r,e,t,!1,!0):void 0}function i(e){if(PF(e.body)||iF(e.body)||Ex(e.body.getFullStart(),e.body.getEnd(),t))return;return Hde(ac(e.body.getFullStart(),e.body.getEnd()),"code",EQ(e))}function o(e){const n=ac(e.openingElement.getStart(t),e.closingElement.getEnd()),r=e.openingElement.tagName.getText(t);return Hde(n,"code",n,!1,"<"+r+">...</"+r+">")}function a(e){const n=ac(e.openingFragment.getStart(t),e.closingFragment.getEnd());return Hde(n,"code",n,!1,"<>...</>")}function s(e){if(0!==e.properties.length)return Vde(e.getStart(t),e.getEnd(),"code")}function c(e){if(15!==e.kind||0!==e.text.length)return Vde(e.getStart(t),e.getEnd(),"code")}function l(e,t=19){return _(e,!1,!XD(e.parent)&&!eF(e.parent),t)}function _(n,r=!1,i=!0,o=19,a=(19===o?20:24)){const s=OX(e,o,t),c=OX(e,a,t);return s&&c&&Wde(s,c,n,t,r,i)}function u(e){return e.length?Hde(OQ(e),"code"):void 0}function d(e){if(Ex(e.getStart(),e.getEnd(),t))return;return Hde(ac(e.getStart(),e.getEnd()),"code",EQ(e))}}(i,e);a&&n.push(a),r--,eF(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):OF(i)&&i.elseStatement&&OF(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=zde(e.text.substring(i,r));if(o&&!fQ(e,i))if(o[1]){const e=n.pop();e&&(e.textSpan.length=r-e.textSpan.start,e.hintSpan.length=r-e.textSpan.start,t.push(e))}else{const t=ac(e.text.indexOf("//",i),r);n.push(Hde(t,"region",t,!1,o[2]||"#region"))}}}(e,n),n.sort(((e,t)=>e.textSpan.start-t.textSpan.start))}function zde(e){return an(e=e.trimStart(),"//")?(e=e.slice(2).trim(),Rde.exec(e)):null}function qde(e,t,n,r){const i=Fs(t.text,e);if(!i)return;let o=-1,a=-1,s=0;const c=t.getFullText();for(const{kind:e,pos:t,end:_}of i)switch(n.throwIfCancellationRequested(),e){case 2:if(zde(c.slice(t,_))){l(),s=0;break}0===s&&(o=t),a=_,s++;break;case 3:l(),r.push(Vde(t,_,"comment")),s=0;break;default:Sn.assertNever(e)}function l(){s>1&&r.push(Vde(o,a,"comment"))}l()}function Ude(e,t,n,r){PN(e)||qde(e.pos,t,n,r)}function Vde(e,t,n){return Hde(ac(e,t),n)}function Wde(e,t,n,r,i=!1,o=!0){return Hde(ac(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",EQ(n,r),i)}function Hde(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var $de=g({"src/services/outliningElementsCollector.ts"(){zge(),Rde=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Kde={};h(Kde,{collectElements:()=>Jde});var Gde=g({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){$de()}});function Xde(e,t,n,r){const i=WX(HX(t,n));if(tpe(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(Qu(e)){const r=BX(e,t);if(r&&(128&r.flags||1048576&r.flags&&N(r.types,(e=>!!(128&e.flags)))))return Yde(e.text,e.text,"string","",e,n)}else if(sX(e)){const t=Yp(e);return Yde(t,t,"label","",e,n)}return}const{declarations:a}=o;if(!a||0===a.length)return;if(a.some((e=>function(e,t){const n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&$o(n.fileName,".d.ts")}(r,e))))return Zde(Ea.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(HN(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(Qu(e)&&ph(e))return i.allowRenameOfImportPath?function(e,t,n){if(!Vs(e.text))return Zde(Ea.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&D(n.declarations,$P);if(!r)return;const i=$t(e.text,"/index")||$t(e.text,"/index.js")?void 0:Gt(Yk(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1,c=oc(e.getStart(t)+1+s,e.text.length-s);return{canRename:!0,fileToRename:o,kind:a,displayName:o,fullDisplayName:o,kindModifiers:"",triggerSpan:c}}(e,n,o):void 0;const s=function(e,t,n,r){if(!r.providePrefixAndSuffixTextForRename&&2097152&t.flags){const e=t.declarations&&D(t.declarations,(e=>hP(e)));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=Qde(e.path);if(void 0===o)return re(i,(e=>UZ(e.getSourceFile().path)))?Ea.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const e of i){const t=Qde(e.getSourceFile().path);if(t){const e=Math.min(o.length,t.length);for(let n=0;n<=e;n++)if(0!==Rt(o[n],t[n]))return Ea.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}return}(n,o,t,i);if(s)return Zde(s);const c=Zpe.getSymbolKind(t,o,e),l=HY(e)||Fy(e)&&167===e.parent.kind?fv(Ly(e)):void 0,_=l||t.symbolToString(o),u=l||t.getFullyQualifiedName(o);return Yde(_,u,c,Zpe.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);if(n)return n}return Zde(Ea.You_cannot_rename_this_element)}function Qde(e){const t=ra(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function Yde(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:epe(i,o)}}function Zde(e){return{canRename:!1,localizedErrorMessage:wS(e)}}function epe(e,t){let n=e.getStart(t),r=e.getWidth(t);return Qu(e)&&(n+=1,r-=2),oc(n,r)}function tpe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return fX(e);default:return!1}}var npe=g({"src/services/rename.ts"(){zge()}}),rpe={};h(rpe,{getRenameInfo:()=>Xde,nodeIsEligibleForRename:()=>tpe});var ipe,ope,ape=g({"src/services/_namespaces/ts.Rename.ts"(){npe()}});function spe(e,t,n,r,i){const o=e.getTypeChecker(),a=QX(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(rQ(t,n,a)||fQ(t,n)))return;const c=!!r&&"invoked"===r.kind,l=function(e,t,n,r,i){for(let o=e;!$P(o)&&(i||!PF(o));o=o.parent){Sn.assert(bX(o.parent,o),"Not a subspan",(()=>`Child: ${Sn.formatSyntaxKind(o.kind)}, parent: ${Sn.formatSyntaxKind(o.parent.kind)}`));const e=dpe(o,t,n,r);if(e)return e}return}(a,n,t,o,c);if(!l)return;i.throwIfCancellationRequested();const _=function({invocation:e,argumentCount:t},n,r,i,o){switch(e.kind){case 0:{if(o&&!function(e,t,n){if(!Y_(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return I(r,e);case 28:{const t=LX(e);return!!t&&I(r,t)}case 30:return cpe(e,n,t.expression);default:return!1}}(i,e.node,r))return;const a=[],s=n.getResolvedSignatureForSignatureHelp(e.node,a,t);return 0===a.length?void 0:{kind:0,candidates:a,resolvedSignature:s}}case 1:{const{called:a}=e;if(o&&!cpe(i,r,HN(a)?a.parent:a))return;const s=dQ(a,t,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:Pe(s)};const c=n.getSymbolAtLocation(a);return c&&{kind:1,symbol:c}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return Sn.assertNever(e)}}(l,o,t,a,s);return i.throwIfCancellationRequested(),_?o.runWithCancellationToken(i,(e=>0===_.kind?Spe(_.candidates,_.resolvedSignature,l,t,e):function(e,{argumentCount:t,argumentsSpan:n,invocation:r,argumentIndex:i},o,a){const s=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(!s)return;const c=[kpe(e,s,a,xpe(r),o)];return{items:c,applicableSpan:n,selectedItemIndex:0,argumentIndex:i,argumentCount:t}}(_.symbol,l,t,e))):Sg(t)?function(e,t,n){if(2===e.invocation.kind)return;const r=bpe(e.invocation),i=YD(r)?r.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:S(t.getSourceFiles(),(t=>S(t.getNamedDeclarations().get(i),(r=>{const i=r.symbol&&o.getTypeOfSymbolAtLocation(r.symbol,r),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(n=>Spe(a,a[0],e,t,n,!0)))}))))}(l,e,i):void 0}function cpe(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=ZX(r,t,i,!0);if(e)return bX(n,e);i=i.parent}return Sn.fail("Could not find preceding token")}function lpe(e,t,n){const r=upe(e,t,n);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}}function _pe(e,t,n){const r=function(e,t){if(30===e.kind||21===e.kind)return{list:vpe(e.parent,e,t),argumentIndex:0};{const t=LX(e);return t&&{list:t,argumentIndex:gpe(t,e)}}}(e,n);if(!r)return;const{list:i,argumentIndex:o}=r,a=function(e,t){const n=e.getChildren();let r=j(n,(e=>28!==e.kind));!t&&n.length>0&&28===Ie(n).kind&&r++;return r}(i,rQ(n,t,e));0!==o&&Sn.assertLessThan(o,a);const s=function(e,t){const n=e.getFullStart(),r=ys(t.text,e.getEnd(),!1);return oc(n,r-n)}(i,n);return{list:i,argumentIndex:o,argumentCount:a,argumentsSpan:s}}function upe(e,t,n){const{parent:r}=e;if(Y_(r)){const i=r,o=_pe(e,t,n);if(!o)return;const{list:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o;return{isTypeParameterList:!!r.typeArguments&&r.typeArguments.pos===a.pos,invocation:{kind:0,node:i},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if(AN(e)&&nF(r))return kQ(e,t,n)?hpe(r,0,n):void 0;if(IN(e)&&215===r.parent.kind){const i=r,o=i.parent;Sn.assert(228===i.kind);return hpe(o,kQ(e,t,n)?0:1,n)}if(DF(r)&&nF(r.parent.parent)){const i=r,o=r.parent.parent;if(LN(e)&&!kQ(e,t,n))return;const a=function(e,t,n,r){if(Sn.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Yl(t))return kQ(t,n,r)?0:e+2;return e+1}(i.parent.templateSpans.indexOf(i),e,t,n);return hpe(o,a,n)}if(Mu(r)){const e=r.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:r},argumentsSpan:oc(e,ys(n.text,r.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=pQ(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:ac(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function dpe(e,t,n,r){return function(e,t,n,r){const i=function(e){switch(e.kind){case 21:case 28:return e;default:return kc(e.parent,(e=>!!_D(e)||!(GD(e)||$D(e)||KD(e))&&"quit"))}}(e);if(void 0===i)return;const o=function(e,t,n,r){const{parent:i}=e;switch(i.kind){case 217:case 174:case 218:case 219:const o=_pe(e,n,t);if(!o)return;const{argumentIndex:a,argumentCount:s,argumentsSpan:c}=o,l=mD(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return l&&{contextualType:l,argumentIndex:a,argumentCount:s,argumentsSpan:c};case 226:{const t=ppe(i),n=r.getContextualType(t),o=21===e.kind?0:fpe(i)-1,a=fpe(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:EQ(i)}}default:return}}(i,n,t,r);if(void 0===o)return;const{contextualType:a,argumentIndex:s,argumentCount:c,argumentsSpan:l}=o,_=a.getNonNullableType(),u=_.symbol;if(void 0===u)return;const d=Ae(_.getCallSignatures());if(void 0===d)return;return{isTypeParameterList:!1,invocation:{kind:2,signature:d,node:e,symbol:mpe(u)},argumentsSpan:l,argumentIndex:s,argumentCount:c}}(e,t,n,r)||upe(e,t,n)}function ppe(e){return pF(e.parent)?ppe(e.parent):e}function fpe(e){return pF(e.left)?fpe(e.left)+1:2}function mpe(e){return"__type"===e.name&&S(e.declarations,(e=>{var t;return CD(e)?null==(t=ft(e.parent,ku))?void 0:t.symbol:void 0}))||e}function gpe(e,t){let n=0;for(const r of e.getChildren()){if(r===t)break;28!==r.kind&&n++}return n}function hpe(e,t,n){const r=AN(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&Sn.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:ype(e,n),argumentIndex:t,argumentCount:r}}function ype(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();if(228===n.kind){0===Ie(n.templateSpans).literal.getFullWidth()&&(i=ys(t.text,i,!1))}return oc(r,i-r)}function vpe(e,t,n){const r=e.getChildren(n),i=r.indexOf(t);return Sn.assert(i>=0&&r.length>i+1),r[i+1]}function bpe(e){return 0===e.kind?og(e.node):e.called}function xpe(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}function Spe(e,t,{isTypeParameterList:n,argumentCount:i,argumentsSpan:o,invocation:a,argumentIndex:s},c,l,_){var u;const d=xpe(a),p=2===a.kind?a.symbol:l.getSymbolAtLocation(bpe(a))||_&&(null==(u=t.declaration)?void 0:u.symbol),f=p?UY(l,p,_?c:void 0,void 0):r,m=J(e,(e=>function(e,t,n,r,i,o){const a=(n?Cpe:wpe)(e,r,i,o);return J(a,(({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],l=[...s,...Tpe(e,i,r)],_=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:ope,parameters:o,documentation:_,tags:u}}))}(e,f,n,l,d,c)));0!==s&&Sn.assertLessThan(s,i);let g=0,h=0;for(let n=0;n<m.length;n++){const r=m[n];if(e[n]===t&&(g=h,r.length>1)){let e=0;for(const t of r){if(t.isVariadic||t.parameters.length>=i){g=h+e;break}e++}}h+=r.length}Sn.assert(-1!==g);const y={items:W(m,bt),applicableSpan:o,selectedItemIndex:g,argumentIndex:s,argumentCount:i},v=y.items[g];if(v.isVariadic){const e=P(v.parameters,(e=>!!e.isRest));-1<e&&e<v.parameters.length-1?y.argumentIndex=v.parameters.length:y.argumentIndex=Math.min(y.argumentIndex,v.parameters.length-1)}return y}function kpe(e,t,n,r,i){const o=UY(n,e),a=tU(),s=t.map((e=>Npe(e,n,r,i,a))),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,NY(30)],suffixDisplayParts:[NY(32)],separatorDisplayParts:ope,parameters:s,documentation:c,tags:l}}function Tpe(e,t,n){return zY((r=>{r.writePunctuation(":"),r.writeSpace(" ");const i=n.getTypePredicateOfSignature(e);i?n.writeTypePredicate(i,t,void 0,r):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,r)}))}function Cpe(e,t,n,i){const o=(e.target||e).typeParameters,a=tU(),s=(o||r).map((e=>Npe(e,t,n,i,a))),c=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,ipe)]:[];return t.getExpandedParameters(e).map((e=>{const r=AC.createNodeArray([...c,...J(e,(e=>t.symbolToParameterDeclaration(e,n,ipe)))]),o=zY((e=>{a.writeList(2576,r,i,e)}));return{isVariadic:!1,parameters:s,prefix:[NY(30)],suffix:[NY(32),...o]}}))}function wpe(e,t,n,r){const i=tU(),o=zY((o=>{if(e.typeParameters&&e.typeParameters.length){const a=AC.createNodeArray(e.typeParameters.map((e=>t.typeParameterToDeclaration(e,n,ipe))));i.writeList(53776,a,r,o)}})),a=t.getExpandedParameters(e),s=t.hasEffectiveRestParameter(e)?1===a.length?e=>!0:e=>{var t;return!!(e.length&&32768&(null==(t=ft(e[e.length-1],ap))?void 0:t.links.checkFlags))}:e=>!1;return a.map((e=>({isVariadic:s(e),parameters:e.map((e=>function(e,t,n,r,i){const o=zY((o=>{const a=t.symbolToParameterDeclaration(e,n,ipe);i.writeNode(4,a,r,o)})),a=t.isOptionalParameter(e.valueDeclaration),s=ap(e)&&!!(32768&e.links.checkFlags);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:a,isRest:s}}(e,t,n,r,i))),prefix:[...o,NY(21)],suffix:[NY(22)]})))}function Npe(e,t,n,r,i){const o=zY((o=>{const a=t.typeParameterToDeclaration(e,n,ipe);i.writeNode(4,a,r,o)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var Dpe=g({"src/services/signatureHelp.ts"(){zge(),ipe=70246400,ope=[NY(28),CY()]}}),Fpe={};h(Fpe,{getArgumentInfoForCompletions:()=>lpe,getSignatureHelpItems:()=>spe});var Ppe,Epe=g({"src/services/_namespaces/ts.SignatureHelp.ts"(){Dpe()}});function Ape(e,t){var n,r;let i={textSpan:ac(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=Ope(o);if(!i.length)break;for(let c=0;c<i.length;c++){const l=i[c-1],_=i[c],u=i[c+1];if($p(_,t,!0)>e)break e;const d=Oe(Ps(t.text,_.end));if(d&&2===d.kind&&s(d.pos,d.end),Ipe(t,e,_)){if(gu(_)&&b_(o)&&!Ex(_.getStart(t),_.getEnd(),t)&&a(_.getStart(t),_.getEnd()),PF(_)||DF(_)||IN(_)||LN(_)||l&&IN(l)||XF(_)&&EF(o)||ME(_)&&XF(o)||GF(_)&&ME(o)&&1===i.length||XP(_)||dE(_)||uE(_)){o=_;break}if(DF(o)&&u&&Zl(u)){a(_.getFullStart()-2,u.getStart()+1)}const e=ME(_)&&Rpe(l)&&Bpe(u)&&!Ex(l.getStart(),u.getStart(),t);let s=e?l.getEnd():_.getStart();const c=e?u.getStart():Jpe(t,_);if(Vu(_)&&(null==(n=_.jsDoc)?void 0:n.length)&&a(Pe(_.jsDoc).getStart(),c),ME(_)){const e=_.getChildren()[0];e&&Vu(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==_.pos&&(s=Math.min(s,Pe(e.jsDoc).getStart()))}a(s,c),(FN(_)||Z_(_))&&a(s+1,c-1),o=_;break}if(c===i.length-1)break e}}return i;function a(t,n){if(t!==n){const r=ac(t,n);(!i||!mY(r,i.textSpan)&&rc(r,e))&&(i={textSpan:r,...i&&{parent:i}})}}function s(e,n){a(e,n);let r=e;for(;47===t.text.charCodeAt(r);)r++;a(r,n)}}function Ipe(e,t,n){if(Sn.assert(n.pos<=t),t<n.end)return!0;return n.getEnd()===t&&HX(e,t).pos<n.end}function Ope(e){var t;if($P(e))return Lpe(e.getChildAt(0).getChildren(),Ppe);if(qD(e)){const[t,...n]=e.getChildren(),r=Sn.checkDefined(n.pop());Sn.assertEqual(t.kind,19),Sn.assertEqual(r.kind,20);const i=Lpe(n,(t=>t===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind));return[t,Mpe(jpe(Lpe(i,(({kind:e})=>23===e||168===e||24===e)),(({kind:e})=>59===e))),r]}if(dD(e)){const n=Lpe(e.getChildren(),(t=>t===e.name||I(e.modifiers,t))),r=327===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=jpe(r?n.slice(1):n,(({kind:e})=>59===e));return r?[r,Mpe(i)]:i}if(_D(e)){const t=Lpe(e.getChildren(),(t=>t===e.dotDotDotToken||t===e.name));return jpe(Lpe(t,(n=>n===t[0]||n===e.questionToken)),(({kind:e})=>64===e))}return GD(e)?jpe(e.getChildren(),(({kind:e})=>64===e)):e.getChildren()}function Lpe(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(Mpe(r)),r=void 0),n.push(i));return r&&n.push(Mpe(r)),n}function jpe(e,t,n=!0){if(e.length<2)return e;const r=P(e,t);if(-1===r)return e;const i=e.slice(0,r),o=e[r],a=Ie(e),s=n&&27===a.kind,c=e.slice(r+1,s?e.length-1:void 0),l=me([i.length?Mpe(i):void 0,o,c.length?Mpe(c):void 0]);return s?l.concat(a):l}function Mpe(e){return Sn.assertGreaterThanOrEqual(e.length,1),FT(hI.createSyntaxList(e),e[0].pos,Ie(e).end)}function Rpe(e){const t=e&&e.kind;return 19===t||23===t||21===t||286===t}function Bpe(e){const t=e&&e.kind;return 20===t||24===t||22===t||287===t}function Jpe(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var zpe=g({"src/services/smartSelection.ts"(){zge(),Ppe=un(sP,aP)}}),qpe={};h(qpe,{getSmartSelectionRange:()=>Ape});var Upe,Vpe=g({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){zpe()}});function Wpe(e,t,n){const r=Hpe(e,t,n);if(""!==r)return r;const i=Ux(t);return 32&i?rp(t,231)?"local class":"class":384&i?"enum":524288&i?"type":64&i?"interface":262144&i?"type parameter":8&i?"enum member":2097152&i?"alias":1536&i?"module":r}function Hpe(e,t,n){const r=e.getRootSymbols(t);if(1===r.length&&8192&Pe(r).flags&&0!==e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(110===n.kind&&au(n)||Gv(n))return"parameter";const i=Ux(t);if(3&i)return SY(t)?"parameter":t.valueDeclaration&&im(t.valueDeclaration)?"const":t.valueDeclaration&&rm(t.valueDeclaration)?"using":t.valueDeclaration&&nm(t.valueDeclaration)?"await using":b(t.declarations,om)?"let":Qpe(t)?"local var":"var";if(16&i)return Qpe(t)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(131072&i)return"index";if(4&i){if(33554432&i&&6&t.links.checkFlags){const r=b(e.getRootSymbols(t),(e=>{if(98311&e.getFlags())return"property"}));if(!r){return e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property"}return r}return"property"}return""}function $pe(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=hQ(t,v(n)&&a0(t)&&re(n,(e=>!a0(e)))?65536:0);if(r)return r.split(",")}return[]}function Kpe(e,t){if(!t)return"";const n=new Set($pe(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&b($pe(r),(e=>{n.add(e)}))}return 16777216&t.flags&&n.add("optional"),n.size>0?$e(n.values()).join(","):""}function Gpe(e,t,n,i,o,a,s,c){var l;const _=[];let u=[],d=[];const p=Ux(t);let f=1&s?Hpe(e,t,o):"",m=!1;const g=110===o.kind&&mg(o)||Gv(o);let h,y,v=!1;if(110===o.kind&&!g)return{displayParts:[wY(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==f||32&p||2097152&p){if("getter"===f||"setter"===f){const e=D(t.declarations,(e=>e.name===o));if(e)switch(e.kind){case 177:f="getter";break;case 178:f="setter";break;case 172:f="accessor";break;default:Sn.assertNever(e)}else f="property"}let n,r;if(a??(a=g?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&211===o.parent.kind){const e=o.parent.name;(e===o||e&&0===e.getFullWidth())&&(o=o.parent)}if(Y_(o)?r=o:(WG(o)||HG(o)||o.parent&&(Mu(o.parent)||nF(o.parent))&&y_(t.valueDeclaration))&&(r=o.parent),r){n=e.getResolvedSignature(r);const o=214===r.kind||eF(r)&&108===r.expression.kind,s=o?a.getConstructSignatures():a.getCallSignatures();if(!n||I(s,n.target)||I(s,n)||(n=s.length?s[0]:void 0),n){switch(o&&32&p?(f="constructor",N(a.symbol,f)):2097152&p?(f="alias",F(f),_.push(CY()),o&&(4&n.flags&&(_.push(wY(128)),_.push(CY())),_.push(wY(105)),_.push(CY())),w(t)):N(t,f),f){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":_.push(NY(59)),_.push(CY()),16&Zx(a)||!a.symbol||(be(_,UY(e,a.symbol,i,void 0,5)),_.push(JY())),o&&(4&n.flags&&(_.push(wY(128)),_.push(CY())),_.push(wY(105)),_.push(CY())),P(n,s,262144);break;default:P(n,s)}m=!0,v=s.length>1}}else if(pX(o)&&!(98304&p)||137===o.kind&&176===o.parent.kind){const r=o.parent;if(t.declarations&&D(t.declarations,(e=>e===(137===o.kind?r.parent:r)))){const i=176===r.kind?a.getNonNullableType().getConstructSignatures():a.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),176===r.kind?(f="constructor",N(a.symbol,f)):N(179!==r.kind||2048&a.symbol.flags||4096&a.symbol.flags?t:a.symbol,f),n&&P(n,i),m=!0,v=i.length>1}}}if(32&p&&!m&&!g&&(T(),rp(t,231)?F("local class"):_.push(wY(86)),_.push(CY()),w(t),E(t,n)),64&p&&2&s&&(k(),_.push(wY(120)),_.push(CY()),w(t),E(t,n)),524288&p&&2&s&&(k(),_.push(wY(156)),_.push(CY()),w(t),E(t,n),_.push(CY()),_.push(DY(64)),_.push(CY()),be(_,qY(e,o.parent&&Ll(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),384&p&&(k(),re(t.declarations,(e=>tP(e)&&em(e)))&&(_.push(wY(87)),_.push(CY())),_.push(wY(94)),_.push(CY()),w(t)),1536&p&&!g){k();const e=rp(t,267),n=e&&e.name&&80===e.name.kind;_.push(wY(n?145:144)),_.push(CY()),w(t)}if(262144&p&&2&s)if(k(),_.push(NY(21)),_.push(AY("type parameter")),_.push(NY(22)),_.push(CY()),w(t),t.parent)C(),w(t.parent,i),E(t.parent,i);else{const r=rp(t,168);if(void 0===r)return Sn.fail();const i=r.parent;if(i)if(y_(i)){C();const t=e.getSignatureFromDeclaration(i);180===i.kind?(_.push(wY(105)),_.push(CY())):179!==i.kind&&i.name&&w(i.symbol),be(_,VY(e,t,n,32))}else eP(i)&&(C(),_.push(wY(156)),_.push(CY()),w(i.symbol),E(i.symbol,n))}if(8&p){f="enum member",N(t,"enum member");const n=null==(l=t.declarations)?void 0:l[0];if(306===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(_.push(CY()),_.push(DY(64)),_.push(CY()),_.push(TY(of(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(k(),!m||0===u.length&&0===d.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const r=n.declarations[0],i=Mc(r);if(i&&!m){const o=_f(r)&&fb(r,128),c="default"!==t.name&&!o,l=Gpe(e,n,Cp(r),r,i,a,s,c?t:n);_.push(...l.displayParts),_.push(JY()),h=l.documentation,y=l.tags}else h=n.getContextualDocumentationComment(r,e),y=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:_.push(wY(95)),_.push(CY()),_.push(wY(145));break;case 277:_.push(wY(95)),_.push(CY()),_.push(wY(t.declarations[0].isExportEquals?64:90));break;case 281:_.push(wY(95));break;default:_.push(wY(102))}_.push(CY()),w(t),b(t.declarations,(t=>{if(271===t.kind){const n=t;if(yg(n))_.push(CY()),_.push(DY(64)),_.push(CY()),_.push(wY(149)),_.push(NY(21)),_.push(TY(Yp(vg(n)),8)),_.push(NY(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(_.push(CY()),_.push(DY(64)),_.push(CY()),w(t,i))}return!0}}))}if(!m)if(""!==f){if(a)if(g?(k(),_.push(wY(110))):N(t,f),"property"===f||"accessor"===f||"getter"===f||"setter"===f||"JSX attribute"===f||3&p||"local var"===f||"index"===f||"using"===f||"await using"===f||g){if(_.push(NY(59)),_.push(CY()),a.symbol&&262144&a.symbol.flags&&"index"!==f){const t=zY((t=>{const n=e.typeParameterToDeclaration(a,i,Upe);x().writeNode(4,n,Cp(Cc(i)),t)}));be(_,t)}else be(_,qY(e,a,i));if(ap(t)&&t.links.target&&ap(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;Sn.assertNode(e.name,HN),_.push(CY()),_.push(NY(21)),_.push(AY(Dc(e.name))),_.push(NY(22))}}else if(16&p||8192&p||16384&p||131072&p||98304&p||"method"===f){const e=a.getNonNullableType().getCallSignatures();e.length&&(P(e[0],e),v=e.length>1)}}else f=Wpe(e,t,o);if(0!==u.length||v||(u=t.getContextualDocumentationComment(i,e)),0===u.length&&4&p&&t.parent&&t.declarations&&b(t.parent.declarations,(e=>312===e.kind)))for(const n of t.declarations){if(!n.parent||226!==n.parent.kind)continue;const t=e.getSymbolAtLocation(n.parent.right);if(t&&(u=t.getDocumentationComment(e),d=t.getJsDocTags(e),u.length>0))break}if(0===u.length&&HN(o)&&t.valueDeclaration&&GD(t.valueDeclaration)){const n=t.valueDeclaration,i=n.parent,o=n.propertyName||n.name;if(HN(o)&&$D(i)){const t=Ly(o),n=e.getTypeAtLocation(i);u=S(n.isUnion()?n.types:[n],(n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0}))||r}}return 0!==d.length||v||(d=t.getContextualJsDocTags(i,e)),0===u.length&&h&&(u=h),0===d.length&&y&&(d=y),{displayParts:_,documentation:u,symbolKind:f,tags:0===d.length?void 0:d};function x(){return tU()}function k(){_.length&&_.push(JY()),T()}function T(){c&&(F("alias"),_.push(CY()))}function C(){_.push(CY()),_.push(wY(103)),_.push(CY())}function w(r,i){let o;c&&r===t&&(r=c),"index"===f&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=UY(e,r.parent)),a.push(NY(23)),o.forEach(((t,n)=>{a.push(...qY(e,t.keyType)),n!==o.length-1&&(a.push(CY()),a.push(NY(52)),a.push(CY()))})),a.push(NY(24))):a=UY(e,r,i||n,void 0,7),be(_,a),16777216&t.flags&&_.push(NY(58))}function N(e,t){k(),t&&(F(t),e&&!re(e.declarations,(e=>aF(e)||(oF(e)||yF(e))&&!e.name))&&(_.push(CY()),w(e)))}function F(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void _.push(EY(e));default:return _.push(NY(21)),_.push(EY(e)),void _.push(NY(22))}}function P(t,n,r=0){be(_,VY(e,t,i,32|r)),n.length>1&&(_.push(CY()),_.push(NY(21)),_.push(DY(40)),_.push(TY((n.length-1).toString(),7)),_.push(CY()),_.push(AY(2===n.length?"overload":"overloads")),_.push(NY(22))),u=t.getDocumentationComment(e),d=t.getJsDocTags(),n.length>1&&0===u.length&&0===d.length&&(u=n[0].getDocumentationComment(e),d=n[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function E(t,n){const r=zY((r=>{const i=e.symbolToTypeParameterDeclarations(t,n,Upe);x().writeList(53776,i,Cp(Cc(n)),r)}));be(_,r)}}function Xpe(e,t,n,r,i,o=UG(i),a){return Gpe(e,t,n,r,i,void 0,o,a)}function Qpe(e){return!e.parent&&b(e.declarations,(e=>{if(218===e.kind)return!0;if(260!==e.kind&&262!==e.kind)return!1;for(let t=e.parent;!Em(t);t=t.parent)if(312===t.kind||268===t.kind)return!1;return!0}))}var Ype=g({"src/services/symbolDisplay.ts"(){zge(),Upe=70246400}}),Zpe={};h(Zpe,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>Xpe,getSymbolKind:()=>Wpe,getSymbolModifiers:()=>Kpe});var efe,tfe,nfe,rfe,ife,ofe,afe,sfe=g({"src/services/_namespaces/ts.SymbolDisplay.ts"(){Ype()}});function cfe(e){const t=e.__pos;return Sn.assert("number"==typeof t),t}function lfe(e,t){Sn.assert("number"==typeof t),e.__pos=t}function _fe(e){const t=e.__end;return Sn.assert("number"==typeof t),t}function ufe(e,t){Sn.assert("number"==typeof t),e.__end=t}function dfe(e,t){return ys(e,t,!1,!0)}function pfe(e,t,n,r){return{pos:ffe(e,t,r),end:gfe(e,n,r)}}function ffe(e,t,n,r=!1){var i,o;const{leadingTriviaOption:a}=n;if(0===a)return t.getStart(e);if(3===a){const n=t.getStart(e),r=vX(n,e);return SX(t,r)?r:n}if(2===a){const n=gm(t,e.text);if(null==n?void 0:n.length)return vX(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const l=vX(s,e);if(vX(c,e)===l)return 1===a?s:c;if(r){const t=(null==(i=Fs(e.text,s))?void 0:i[0])||(null==(o=Ps(e.text,s))?void 0:o[0]);if(t)return ys(e.text,t.end,!0,!0)}const _=s>0?1:0;let u=Fp(Jv(e,l)+_,e);return u=dfe(e.text,u),Fp(Jv(e,u),e)}function mfe(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=Ps(e.text,r);if(n){const r=Jv(e,t.end);for(const t of n){if(2===t.kind||Jv(e,t.pos)>r)break;if(Jv(e,t.end)>r)return ys(e.text,t.end,!0,!0)}}}}function gfe(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=oe(Ps(e.text,i),Fs(e.text,i)),n=null==(r=null==t?void 0:t[t.length-1])?void 0:r.end;return n||i}const a=mfe(e,t,n);if(a)return a;const s=ys(e.text,i,!0);return s===i||2!==o&&!ps(e.text.charCodeAt(s-1))?i:s}function hfe(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&210===e.parent.kind)}function yfe(e){return oF(e)||QF(e)}function vfe(e,t){return ys(e.text,ffe(e,t,{leadingTriviaOption:1}),!1,!0)}function bfe(e,t,n,r){const i=vfe(e,r);if(void 0===n||Ex(gfe(e,t,{}),i,e))return i;const o=ZX(r.getStart(e),e);if(hfe(t,o)){const r=ZX(t.getStart(e),e);if(hfe(n,r)){const t=ys(e.text,o.getEnd(),!0,!0);if(Ex(r.getStart(e),o.getStart(e),e))return ps(e.text.charCodeAt(t-1))?t-1:t;if(ps(e.text.charCodeAt(t)))return t}}return i}function xfe(e){return QD(e)?e.properties:e.members}function Sfe(e,t){for(let n=t.length-1;n>=0;n--){const{span:r,newText:i}=t[n];e=`${e.substring(0,r.start)}${i}${e.substring($s(r))}`}return e}function kfe(e){const t=YB(e,kfe,ofe,Tfe,kfe),n=Xy(t)?t:Object.create(t);return FT(n,cfe(e),_fe(e)),n}function Tfe(e,t,n,r,i){const o=UB(e,t,n,r,i);if(!o)return o;Sn.assert(e);const a=o===e?AC.createNodeArray(o.slice(0)):o;return FT(a,cfe(e),_fe(e)),a}function Cfe(e){let t=0;const n=yv(e);function r(e,r){if(r||!function(e){return ys(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;us(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&lfe(e,t)},onAfterEmitNode:e=>{e&&ufe(e,t)},onBeforeEmitNodeArray:e=>{e&&lfe(e,t)},onAfterEmitNodeArray:e=>{e&&ufe(e,t)},onBeforeEmitToken:e=>{e&&lfe(e,t)},onAfterEmitToken:e=>{e&&ufe(e,t)},write:function(e){n.write(e),r(e,!1)},writeComment:function(e){n.writeComment(e)},writeKeyword:function(e){n.writeKeyword(e),r(e,!1)},writeOperator:function(e){n.writeOperator(e),r(e,!1)},writePunctuation:function(e){n.writePunctuation(e),r(e,!1)},writeTrailingSemicolon:function(e){n.writeTrailingSemicolon(e),r(e,!1)},writeParameter:function(e){n.writeParameter(e),r(e,!1)},writeProperty:function(e){n.writeProperty(e),r(e,!1)},writeSpace:function(e){n.writeSpace(e),r(e,!1)},writeStringLiteral:function(e){n.writeStringLiteral(e),r(e,!1)},writeSymbol:function(e,t){n.writeSymbol(e,t),r(e,!1)},writeLine:function(e){n.writeLine(e)},increaseIndent:function(){n.increaseIndent()},decreaseIndent:function(){n.decreaseIndent()},getText:function(){return n.getText()},rawWrite:function(e){n.rawWrite(e),r(e,!1)},writeLiteral:function(e){n.writeLiteral(e),r(e,!0)},getTextPos:function(){return n.getTextPos()},getLine:function(){return n.getLine()},getColumn:function(){return n.getColumn()},getIndent:function(){return n.getIndent()},isAtStartOfLine:function(){return n.isAtStartOfLine()},hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:function(){n.clear(),t=0}}}function wfe(e,t){return!(fQ(e,t)||rQ(e,t)||aQ(e,t)||sQ(e,t))}function Nfe(e,t,n,r={leadingTriviaOption:1}){const i=ffe(t,n,r),o=gfe(t,n,r);e.deleteRange(t,{pos:i,end:o})}function Dfe(e,t,n,r){const i=Sn.checkDefined(Mge.SmartIndenter.getContainingList(r,n)),o=ef(i,r);Sn.assert(-1!==o),1!==i.length?(Sn.assert(!t.has(r),"Deleting a node twice"),t.add(r),e.deleteRange(n,{pos:vfe(n,r),end:o===i.length-1?gfe(n,r,{}):bfe(n,r,i[o-1],i[o+1])})):Nfe(e,n,r)}var Ffe=g({"src/services/textChanges.ts"(){zge(),efe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(efe||{}),tfe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(tfe||{}),nfe={leadingTriviaOption:0,trailingTriviaOption:0},rfe=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(BY(t.host,t.formatContext.options),t.formatContext)}static with(t,n){const r=e.fromContext(t);return n(r),r.getChanges()}pushRaw(e,t){Sn.assertEqual(e.fileName,t.fileName);for(const n of t.textChanges)this.changes.push({kind:3,sourceFile:e,text:n.newText,range:LQ(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,pfe(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=ffe(e,i,n,r),o=gfe(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!mfe(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:ys(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=ffe(e,t,r),o=gfe(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=ffe(e,t,r),o=void 0===n?e.text.length:ffe(e,n,r);this.deleteRange(e,{pos:i,end:o})}replaceRange(e,t,n,r={}){this.changes.push({kind:1,sourceFile:e,range:t,options:r,node:n})}replaceNode(e,t,n,r=nfe){this.replaceRange(e,pfe(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=nfe){this.replaceRange(e,pfe(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=nfe){this.replaceRangeWithNodes(e,pfe(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,pfe(e,t,t,nfe),n)}replaceNodeRangeWithNodes(e,t,n,r,i=nfe){this.replaceRangeWithNodes(e,pfe(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=nfe){return!!mfe(e,t,n)}nextCommaToken(e,t){const n=YX(t,t.parent,e);return n&&28===n.kind?n:void 0}replacePropertyAssignment(e,t,n){const r=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,n,{suffix:r})}insertNodeAt(e,t,n,r={}){this.replaceRange(e,gx(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,gx(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){const r=function(e){let t;for(const n of e.statements){if(!_m(n))break;t=n}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=Es(r);void 0!==i&&(n=i.length,c());const o=Fs(r,n);if(!o)return n;let a,s;for(const t of o){if(3===t.kind){if(Wp(r,t.pos)){a={range:t,pinnedOrTripleSlash:!0};continue}}else if(Vp(r,t.pos,t.end)){a={range:t,pinnedOrTripleSlash:!0};continue}if(a){if(a.pinnedOrTripleSlash)break;if(e.getLineAndCharacterOfPosition(t.pos).line>=e.getLineAndCharacterOfPosition(a.range.end).line+2)break}if(e.statements.length&&(void 0===s&&(s=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line),s<e.getLineAndCharacterOfPosition(t.end).line+2))break;a={range:t,pinnedOrTripleSlash:!1}}return a&&(n=a.range.end,c()),n;function c(){if(n<r.length){const e=r.charCodeAt(n);ps(e)&&(n++,n<r.length&&13===e&&10===r.charCodeAt(n)&&n++)}}}(e),i={prefix:0===r?void 0:this.newLineCharacter,suffix:(ps(e.text.charCodeAt(r))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};_t(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){const 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||(this.newFileChanges=ot()),this.newFileChanges.add(e,{oldFile:n,statements:t})}insertFirstParameter(e,t,n){const r=De(t);r?this.insertNodeBefore(e,r,n):this.insertNodeAt(e,t.pos,n)}insertNodeBefore(e,t,n,r=!1,i={}){this.insertNodeAt(e,ffe(e,t,i),n,this.getOptionsForInsertNodeBefore(t,n,r))}insertNodesBefore(e,t,n,r=!1,i={}){this.insertNodesAt(e,ffe(e,t,i),n,this.getOptionsForInsertNodeBefore(t,Pe(n),r))}insertModifierAt(e,t,n,r={}){this.insertNodeAt(e,t,AC.createToken(n),r)}insertModifierBefore(e,t,n){return this.insertModifierAt(e,n.getStart(e),t,{suffix:" "})}insertCommentBeforeLine(e,t,n,r){const i=Fp(t,e),o=QY(e.text,i),a=wfe(e,o),s=$X(e,a?o:n),c=e.text.slice(i,o),l=`${a?"":this.newLineCharacter}//${r}${this.newLineCharacter}${c}`;this.insertText(e,s.getStart(e),l)}insertJsdocCommentBefore(e,t,n){const r=t.getStart(e);if(t.jsDoc)for(const n of t.jsDoc)this.deleteRange(e,{pos:vX(n.getStart(e),e),end:gfe(e,n,{})});const i=YY(e.text,r-1),o=e.text.slice(i,r);this.insertNodeAt(e,r,n,{suffix:this.newLineCharacter+o})}createJSDocText(e,t){const n=V(t.jsDoc,(e=>dt(e.comment)?AC.createJSDocText(e.comment):e.comment)),r=Oe(t.jsDoc);return r&&Ex(r.pos,r.end,e)&&0===v(n)?void 0:AC.createNodeArray(w(n,AC.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(219!==e.kind)return e;const t=172===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),AC.createJSDocComment(this.createJSDocText(e,t),AC.createNodeArray(n)))}addJSDocTags(e,t,n){const r=W(t.jsDoc,(e=>e.tags)),i=n.filter((e=>!r.some(((t,n)=>{const i=function(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{const n=e,r=t;return HN(n.name)&&HN(r.name)&&n.name.escapedText===r.name.escapedText?AC.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 349:return AC.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return AC.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}(t,e);return i&&(r[n]=i),!!i}))));this.replaceJSDocComment(e,t,[...r,...i])}filterJSDocTags(e,t,n){this.replaceJSDocComment(e,t,M(W(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,gx(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(y_(t)){if(r=OX(t,22,e),!r){if(!aF(t))return!1;r=Pe(t.parameters)}}else r=(260===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=OX(t,21,e).getStart(e)+1,i=t.parameters.length?", ":"";this.insertNodeAt(e,r,n,{prefix:"this: ",suffix:i})}insertTypeParameters(e,t,n){const r=(OX(t,21,e)||Pe(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return Pu(e)||C_(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:GF(e)?{suffix:", "}:_D(e)?_D(t)?{suffix:", "}:{}:FN(e)&&sP(e.parent)||gP(e)?{suffix:", "}:hP(e)?{suffix:","+(n?this.newLineCharacter:" ")}:Sn.failBadSyntaxKind(e)}insertNodeAtConstructorStart(e,t,n){const r=De(t.body.statements);r&&t.body.multiLine?this.insertNodeBefore(e,r,n):this.replaceConstructorBody(e,t,[n,...t.body.statements])}insertNodeAtConstructorStartAfterSuperCall(e,t,n){const r=D(t.body.statements,(e=>IF(e)&&am(e.expression)));r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}insertNodeAtConstructorEnd(e,t,n){const r=Ae(t.body.statements);r&&t.body.multiLine?this.insertNodeAfter(e,r,n):this.replaceConstructorBody(e,t,[...t.body.statements,n])}replaceConstructorBody(e,t,n){this.replaceNode(e,t.body,AC.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=ffe(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:ps(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){const r=this.guessIndentationFromExistingMembers(e,t)??this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,xfe(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of xfe(t)){if(Tx(r,i,e))return;const t=i.getStart(e),o=Mge.SmartIndenter.findFirstNonWhitespaceColumn(vX(t,e),t,e,this.formatContext.options);if(void 0===n)n=o;else if(o!==n)return;r=i}return n}computeIndentationForNewMember(e,t){const n=t.getStart(e);return Mge.SmartIndenter.findFirstNonWhitespaceColumn(vX(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===xfe(t).length,i=iS(this.classesWithNodesInsertedAtStart,PB(t),{node:t,sourceFile:e}),o=QD(t)&&(!Zf(e)||!r);return{indentation:n,prefix:(QD(t)&&Zf(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":ZF(t)&&r?";":""}}insertNodeAfterComma(e,t,n){const r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,n);this.insertNodeAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfter(e,t,n){const 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){const r=this.insertNodeAfterWorker(e,t,Pe(n));this.insertNodesAt(e,r,n,this.getInsertNodeAfterOptions(e,t))}insertNodeAfterWorker(e,t,n){var r,i;i=n,((dD(r=t)||pD(r))&&O_(i)&&167===i.name.kind||Fu(r)&&Fu(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,gx(t.end),AC.createToken(27));return gfe(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&Pu(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return Sn.assert(Pu(e)||O_(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(Sn.assert(!t.name),219===t.kind){const r=OX(t,39,e),i=OX(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[AC.createToken(100),AC.createIdentifier(n)],{joiner:" "}),Nfe(this,e,r)):(this.insertText(e,Pe(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,AC.createToken(22))),241!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[AC.createToken(19),AC.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[AC.createToken(27),AC.createToken(20)],{joiner:" "}))}else{const r=OX(t,218===t.kind?100:86,e).end;this.insertNodeAt(e,r,AC.createIdentifier(n),{prefix:" "})}}insertExportModifier(e,t){this.insertText(e,t.getStart(e),"export ")}insertImportSpecifierAtIndex(e,t,n,r){const i=n.elements[r-1];i?this.insertNodeInListAfter(e,i,t):this.insertNodeBefore(e,n.elements[0],t,!Ex(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=Mge.SmartIndenter.getContainingList(t,e)){if(!r)return void Sn.fail("node is not a list element");const i=ef(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=KX(e,t.end);if(o&&hfe(t,o)){const t=r[i+1],a=dfe(e.text,t.getFullStart()),s=`${ts(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=vX(a,e);let c,l=!1;if(1===r.length)c=28;else{const n=ZX(t.pos,e);c=hfe(t,n)?n.kind:28;l=vX(r[i-1].getStart(e),e)!==s}if(function(e,t){let n=t;for(;n<e.length;){const t=e.charCodeAt(n);if(!ds(t))return 47===t;n++}return!1}(e.text,t.end)&&(l=!0),l){this.replaceRange(e,gx(o),AC.createToken(c));const t=Mge.SmartIndenter.findFirstNonWhitespaceColumn(s,a,e,this.formatContext.options);let r=ys(e.text,o,!0,!1);for(;r!==o&&ps(e.text.charCodeAt(r-1));)r--;this.replaceRange(e,gx(r),n,{indentation:t,prefix:this.newLineCharacter})}else this.replaceRange(e,gx(o),n,{prefix:`${ts(c)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,mT(t),AC.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach((({node:e,sourceFile:t})=>{const[n,r]=function(e,t){const n=OX(e,19,t),r=OX(e,20,t);return[null==n?void 0:n.end,null==r?void 0:r.end]}(e,t);if(void 0!==n&&void 0!==r){const i=0===xfe(e).length,o=Ex(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,gx(n,r-1)),o&&this.insertText(t,r-1,this.newLineCharacter)}}))}finishDeleteDeclarations(){const e=new Set;for(const{sourceFile:t,node:n}of this.deletedNodes)this.deletedNodes.some((e=>e.sourceFile===t&&xX(e.node,n)))||(_t(n)?this.deleteRange(t,gT(t,n)):afe.deleteDeclaration(this,e,t,n));e.forEach((t=>{const n=t.getSourceFile(),r=Mge.SmartIndenter.getContainingList(t,n);if(t!==Ie(r))return;const i=E(r,(t=>!e.has(t)),r.length-2);-1!==i&&this.deleteRange(n,{pos:r[i].end,end:vfe(n,r[i+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=ife.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach(((e,n)=>{t.push(ife.newFileChanges(n,e,this.newLineCharacter,this.formatContext))})),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}},(e=>{function t(e,t,r,i){const o=V(t,(e=>e.statements.map((t=>4===t?"":n(t,e.oldFile,r).text)))).join(r),a=YI("any file name",o,{languageVersion:99,jsDocParsingMode:1},!0,e);return Sfe(o,Mge.formatDocument(a,i))+r}function n(e,t,n){const r=Cfe(n);return DU({newLine:c0(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:kfe(e)}}e.getTextChangesFromChanges=function(e,t,r,i){return G(Ze(e,(e=>e.sourceFile.path)),(e=>{const o=e[0].sourceFile,a=we(e,((e,t)=>e.range.pos-t.range.pos||e.range.end-t.range.end));for(let e=0;e<a.length-1;e++)Sn.assert(a[e].range.end<=a[e+1].range.pos,"Changes overlap",(()=>`${JSON.stringify(a[e].range)} and ${JSON.stringify(a[e+1].range)}`));const s=G(a,(e=>{const a=OQ(e.range),s=1===e.kind?Cp(Sc(e.node))??e.sourceFile:2===e.kind?Cp(Sc(e.nodes[0]))??e.sourceFile:e.sourceFile,c=function(e,t,r,i,o,a){var s;if(0===e.kind)return"";if(3===e.kind)return e.text;const{options:c={},range:{pos:l}}=e,_=e=>function(e,t,r,i,{indentation:o,prefix:a,delta:s},c,l,_){const{node:u,text:d}=n(e,t,c);_&&_(u,d);const p=_0(l,t),f=void 0!==o?o:Mge.SmartIndenter.getIndentation(i,r,p,a===c||vX(i,t)===i);void 0===s&&(s=Mge.SmartIndenter.shouldIndentChildNode(p,e)&&p.indentSize||0);const m={text:d,getLineAndCharacterOfPosition(e){return _s(this,e)}},g=Mge.formatNodeGivenIndentation(u,m,t.languageVariant,f,s,{...l,options:p});return Sfe(d,g)}(e,t,r,l,c,i,o,a),u=2===e.kind?e.nodes.map((e=>Kt(_(e),i))).join((null==(s=e.options)?void 0:s.joiner)||i):_(e.node),d=void 0!==c.indentation||vX(l,t)===l?u:u.replace(/^\s+/,"");return(c.prefix||"")+d+(!c.suffix||$t(d,c.suffix)?"":c.suffix)}(e,s,o,t,r,i);if(a.length!==c.length||!n0(s.text,c,a.start))return MQ(a,c)}));return s.length>0?{fileName:o.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,n,r,i){const o=t(qk(e),n,r,i);return{fileName:e,textChanges:[MQ(oc(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(ife||(ife={})),ofe={...zq,factory:jC(1|zq.factory.flags,zq.factory.baseFactory)},(e=>{function t(e,t,n){if(n.parent.name){const r=Sn.checkDefined(KX(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else{Nfe(e,t,gy(n,272))}}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 169:{const t=i.parent;aF(t)&&1===t.parameters.length&&!OX(t,21,r)?e.replaceNodeWithText(r,i,"()"):Dfe(e,n,r,i);break}case 272:case 271:Nfe(e,r,i,{leadingTriviaOption:r.imports.length&&i===Pe(r.imports).parent||i===D(r.statements,Cf)?0:Vu(i)?2:3});break;case 208:const o=i.parent;207===o.kind&&i!==Ie(o.elements)?Nfe(e,r,i):Dfe(e,n,r,i);break;case 260:!function(e,t,n,r){const{parent:i}=r;if(299===i.kind)return void e.deleteNodeRange(n,OX(i,21,n),OX(i,22,n));if(1!==i.declarations.length)return void Dfe(e,t,n,r);const o=i.parent;switch(o.kind){case 250:case 249:e.replaceNode(n,r,AC.createObjectLiteralExpression());break;case 248:Nfe(e,n,i);break;case 243:Nfe(e,n,o,{leadingTriviaOption:Vu(o)?2:3});break;default:Sn.assertNever(o)}}(e,n,r,i);break;case 168:Dfe(e,n,r,i);break;case 276:const a=i.parent;1===a.elements.length?t(e,r,a):Dfe(e,n,r,i);break;case 274:t(e,r,i);break;case 27:Nfe(e,r,i,{trailingTriviaOption:0});break;case 100:Nfe(e,r,i,{leadingTriviaOption:0});break;case 263:case 262:Nfe(e,r,i,{leadingTriviaOption:Vu(i)?2:3});break;default:i.parent?cP(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=KX(t,n.name.end);if(i&&28===i.kind){const n=ys(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else Nfe(e,t,n.name)}else Nfe(e,t,n.parent)}(e,r,i.parent):eF(i.parent)&&I(i.parent.arguments,i)?Dfe(e,n,r,i):Nfe(e,r,i):Nfe(e,r,i)}}})(afe||(afe={}))}}),Pfe={};h(Pfe,{ChangeTracker:()=>rfe,LeadingTriviaOption:()=>efe,TrailingTriviaOption:()=>tfe,applyChanges:()=>Sfe,assignPositionsToNode:()=>kfe,createWriter:()=>Cfe,deleteNode:()=>Nfe,isThisTypeAnnotatable:()=>yfe,isValidLocationToAddComment:()=>wfe});var Efe,Afe,Ife,Ofe,Lfe=g({"src/services/_namespaces/ts.textChanges.ts"(){Ffe()}}),jfe=g({"src/services/formatting/formattingContext.ts"(){zge(),Efe=(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))(Efe||{}),Afe=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,r,i){this.currentTokenSpan=Sn.checkDefined(e),this.currentTokenParent=Sn.checkDefined(t),this.nextTokenSpan=Sn.checkDefined(n),this.nextTokenParent=Sn.checkDefined(r),this.contextNode=Sn.checkDefined(i),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(void 0===this.tokensAreOnSameLine){const e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return void 0===this.nextNodeBlockIsOnOneLine&&(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){const t=OX(e,19,this.sourceFile),n=OX(e,20,this.sourceFile);if(t&&n){return this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}return!1}}}});function Mfe(e,t,n,r,i){const o=1===t?Ofe:Ife;o.setText(e),o.resetTokenState(n);let a,s,c,l,_,u=!0;const d=i({advance:function(){_=void 0;o.getTokenFullStart()!==n?u=!!s&&4===Ie(s).kind:o.scan();a=void 0,s=void 0;let e=o.getTokenFullStart();for(;e<r;){const t=o.getToken();if(!wy(t))break;o.scan();const n={pos:e,end:o.getTokenFullStart(),kind:t};e=o.getTokenFullStart(),a=he(a,n)}c=o.getTokenFullStart()},readTokenInfo:function(e){Sn.assert(p());const t=function(e){switch(e.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}(e)?1:(i=e,14===i.kind?2:function(e){return 17===e.kind||18===e.kind}(e)?3:function(e){if(e.parent)switch(e.parent.kind){case 291:case 286:case 287:case 285:return hy(e.kind)||80===e.kind}return!1}(e)?4:(n=e,PN(n)||wP(n)&&12===(null==_?void 0:_.token.kind)?5:function(e){return e.parent&&IP(e.parent)&&e.parent.initializer===e}(e)?6:0));var n;var i;if(_&&t===l)return m(_,e);o.getTokenFullStart()!==c&&(Sn.assert(void 0!==_),o.resetTokenState(c),o.scan());let u=function(e,t){const n=o.getToken();switch(l=0,t){case 1:if(32===n){l=1;const t=o.reScanGreaterToken();return Sn.assert(e.kind===t),t}break;case 2:if(44===(r=n)||69===r){l=2;const t=o.reScanSlashToken();return Sn.assert(e.kind===t),t}break;case 3:if(20===n)return l=3,o.reScanTemplateToken(!1);break;case 4:return l=4,o.scanJsxIdentifier();case 5:return l=5,o.reScanJsxToken(!1);case 6:return l=6,o.reScanJsxAttributeValue();case 0:break;default:Sn.assertNever(t)}var r;return n}(e,t);const d=yge(o.getTokenFullStart(),o.getTokenEnd(),u);s&&(s=void 0);for(;o.getTokenFullStart()<r&&(u=o.scan(),wy(u));){const e=yge(o.getTokenFullStart(),o.getTokenEnd(),u);if(s||(s=[]),s.push(e),4===u){o.scan();break}}return _={leadingTrivia:a,trailingTrivia:s,token:d},m(_,e)},readEOFTokenRange:function(){return Sn.assert(f()),yge(o.getTokenFullStart(),o.getTokenEnd(),1)},isOnToken:p,isOnEOF:f,getCurrentLeadingTrivia:()=>a,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:function(e){o.resetTokenState(e.end),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},skipToStartOf:function(e){o.resetTokenState(e.pos),c=o.getTokenFullStart(),l=void 0,_=void 0,u=!1,a=void 0,s=void 0},getTokenFullStart:()=>(null==_?void 0:_.token.pos)??o.getTokenStart(),getStartPos:()=>(null==_?void 0:_.token.pos)??o.getTokenStart()});return _=void 0,o.setText(void 0),d;function p(){const e=_?_.token.kind:o.getToken();return 1!==e&&!wy(e)}function f(){return 1===(_?_.token.kind:o.getToken())}function m(e,t){return Hl(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var Rfe,Bfe,Jfe,zfe=g({"src/services/formatting/formattingScanner.ts"(){zge(),Jge(),Ife=Ls(99,!1,0),Ofe=Ls(99,!1,1)}}),qfe=g({"src/services/formatting/rule.ts"(){zge(),Rfe=r,Bfe=(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))(Bfe||{}),Jfe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Jfe||{})}});function Ufe(){const e=[];for(let t=0;t<=165;t++)1!==t&&e.push(t);function t(...t){return{tokens:e.filter((e=>!t.some((t=>t===e)))),isSpecific:!1}}const n={tokens:e,isSpecific:!1},r=Wfe([...e,3]),i=Wfe([...e,1]),o=$fe(83,165),a=$fe(30,79),s=[103,104,165,130,142,152],c=[80,...LG],l=r,_=Wfe([80,3,86,95,102]),u=Wfe([22,3,92,113,98,93]);return[...[Vfe("IgnoreBeforeComment",n,[2,3],Rfe,1),Vfe("IgnoreAfterLineComment",2,n,Rfe,1),Vfe("NotSpaceBeforeColon",n,59,[Fme,rme,ime],16),Vfe("SpaceAfterColon",59,n,[Fme,rme,Lme],4),Vfe("NoSpaceBeforeQuestionMark",n,58,[Fme,rme,ime],16),Vfe("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Fme,sme],4),Vfe("NoSpaceAfterQuestionMark",58,n,[Fme,ame],16),Vfe("NoSpaceBeforeDot",n,[25,29],[Fme,nge],16),Vfe("NoSpaceAfterDot",[25,29],n,[Fme],16),Vfe("NoSpaceBetweenImportParenInImportType",102,21,[Fme,Dme],16),Vfe("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[Fme,rme],16),Vfe("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[Fme],16),Vfe("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[Fme],16),Vfe("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[Fme,Zme],16),Vfe("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[Fme,Zme],16),Vfe("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Fme,nme],4),Vfe("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Fme,nme],4),Vfe("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Fme,nme],4),Vfe("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Fme,nme],4),Vfe("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Fme,nme],4),Vfe("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Fme,nme],4),Vfe("NoSpaceAfterCloseBrace",20,[28,27],[Fme],16),Vfe("NewLineBeforeCloseBraceInBlockContext",r,20,[ume],8),Vfe("SpaceAfterCloseBrace",20,t(22),[Fme,bme],4),Vfe("SpaceBetweenCloseBraceAndElse",20,93,[Fme],4),Vfe("SpaceBetweenCloseBraceAndWhile",20,117,[Fme],4),Vfe("NoSpaceBetweenEmptyBraceBrackets",19,20,[Fme,Sme],16),Vfe("SpaceAfterConditionalClosingParen",22,23,[xme],4),Vfe("NoSpaceBetweenFunctionKeywordAndStar",100,42,[hme],16),Vfe("SpaceAfterStarInGeneratorDeclaration",42,80,[hme],4),Vfe("SpaceAfterFunctionInFuncDecl",100,n,[mme],4),Vfe("NewLineAfterOpenBraceInBlockContext",19,n,[ume],8),Vfe("SpaceAfterGetSetInMember",[139,153],80,[mme],4),Vfe("NoSpaceBetweenYieldKeywordAndStar",127,42,[Fme,Qme],16),Vfe("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Fme,Qme],4),Vfe("NoSpaceBetweenReturnAndSemicolon",107,27,[Fme],16),Vfe("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Fme],4),Vfe("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Fme,zme],4),Vfe("NoSpaceBeforeOpenParenInFuncCall",n,21,[Fme,kme,Tme],16),Vfe("SpaceBeforeBinaryKeywordOperator",n,s,[Fme,nme],4),Vfe("SpaceAfterBinaryKeywordOperator",s,n,[Fme,nme],4),Vfe("SpaceAfterVoidOperator",116,n,[Fme,Xme],4),Vfe("SpaceBetweenAsyncAndOpenParen",134,21,[Nme,Fme],4),Vfe("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Fme],4),Vfe("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Fme],16),Vfe("SpaceBeforeJsxAttribute",n,80,[Ime,Fme],4),Vfe("SpaceBeforeSlashInJsxOpeningElement",n,44,[Mme,Fme],4),Vfe("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[Mme,Fme],16),Vfe("NoSpaceBeforeEqualInJsxAttribute",n,64,[Ome,Fme],16),Vfe("NoSpaceAfterEqualInJsxAttribute",64,n,[Ome,Fme],16),Vfe("NoSpaceBeforeJsxNamespaceColon",80,59,[jme],16),Vfe("NoSpaceAfterJsxNamespaceColon",59,80,[jme],16),Vfe("NoSpaceAfterModuleImport",[144,149],21,[Fme],16),Vfe("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,[Fme],4),Vfe("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Fme],4),Vfe("SpaceAfterModuleName",11,19,[Ume],4),Vfe("SpaceBeforeArrow",n,39,[Fme],4),Vfe("SpaceAfterArrow",39,n,[Fme],4),Vfe("NoSpaceAfterEllipsis",26,80,[Fme],16),Vfe("NoSpaceAfterOptionalParameters",58,[22,28],[Fme,rme],16),Vfe("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Fme,Vme],16),Vfe("NoSpaceBeforeOpenAngularBracket",c,30,[Fme,$me],16),Vfe("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Fme,$me],16),Vfe("NoSpaceAfterOpenAngularBracket",30,n,[Fme,$me],16),Vfe("NoSpaceBeforeCloseAngularBracket",n,32,[Fme,$me],16),Vfe("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Fme,$me,gme,Gme],16),Vfe("SpaceBeforeAt",[22,80],60,[Fme],4),Vfe("NoSpaceAfterAt",60,n,[Fme],16),Vfe("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Bme],4),Vfe("NoSpaceBeforeNonNullAssertionOperator",n,54,[Fme,Yme],16),Vfe("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Fme,Wme],16),Vfe("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Fme],4)],...[Vfe("SpaceAfterConstructor",137,21,[Gfe("insertSpaceAfterConstructor"),Fme],4),Vfe("NoSpaceAfterConstructor",137,21,[Qfe("insertSpaceAfterConstructor"),Fme],16),Vfe("SpaceAfterComma",28,n,[Gfe("insertSpaceAfterCommaDelimiter"),Fme,Eme,Cme,wme],4),Vfe("NoSpaceAfterComma",28,n,[Qfe("insertSpaceAfterCommaDelimiter"),Fme,Eme],16),Vfe("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Gfe("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),mme],4),Vfe("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[Qfe("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),mme],16),Vfe("SpaceAfterKeywordInControl",o,21,[Gfe("insertSpaceAfterKeywordsInControlFlowStatements"),xme],4),Vfe("NoSpaceAfterKeywordInControl",o,21,[Qfe("insertSpaceAfterKeywordsInControlFlowStatements"),xme],16),Vfe("SpaceAfterOpenParen",21,n,[Gfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Fme],4),Vfe("SpaceBeforeCloseParen",n,22,[Gfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Fme],4),Vfe("SpaceBetweenOpenParens",21,21,[Gfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Fme],4),Vfe("NoSpaceBetweenParens",21,22,[Fme],16),Vfe("NoSpaceAfterOpenParen",21,n,[Qfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Fme],16),Vfe("NoSpaceBeforeCloseParen",n,22,[Qfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Fme],16),Vfe("SpaceAfterOpenBracket",23,n,[Gfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Fme],4),Vfe("SpaceBeforeCloseBracket",n,24,[Gfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Fme],4),Vfe("NoSpaceBetweenBrackets",23,24,[Fme],16),Vfe("NoSpaceAfterOpenBracket",23,n,[Qfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Fme],16),Vfe("NoSpaceBeforeCloseBracket",n,24,[Qfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Fme],16),Vfe("SpaceAfterOpenBrace",19,n,[Zfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),lme],4),Vfe("SpaceBeforeCloseBrace",n,20,[Zfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),lme],4),Vfe("NoSpaceBetweenEmptyBraceBrackets",19,20,[Fme,Sme],16),Vfe("NoSpaceAfterOpenBrace",19,n,[Xfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Fme],16),Vfe("NoSpaceBeforeCloseBrace",n,20,[Xfe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Fme],16),Vfe("SpaceBetweenEmptyBraceBrackets",19,20,[Gfe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Vfe("NoSpaceBetweenEmptyBraceBrackets",19,20,[Xfe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Fme],16),Vfe("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[Gfe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Pme],4,1),Vfe("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[Gfe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Fme],4),Vfe("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[Qfe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Pme],16,1),Vfe("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[Qfe("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Fme],16),Vfe("SpaceAfterOpenBraceInJsxExpression",19,n,[Gfe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Fme,Ame],4),Vfe("SpaceBeforeCloseBraceInJsxExpression",n,20,[Gfe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Fme,Ame],4),Vfe("NoSpaceAfterOpenBraceInJsxExpression",19,n,[Qfe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Fme,Ame],16),Vfe("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[Qfe("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Fme,Ame],16),Vfe("SpaceAfterSemicolonInFor",27,n,[Gfe("insertSpaceAfterSemicolonInForStatements"),Fme,eme],4),Vfe("NoSpaceAfterSemicolonInFor",27,n,[Qfe("insertSpaceAfterSemicolonInForStatements"),Fme,eme],16),Vfe("SpaceBeforeBinaryOperator",n,a,[Gfe("insertSpaceBeforeAndAfterBinaryOperators"),Fme,nme],4),Vfe("SpaceAfterBinaryOperator",a,n,[Gfe("insertSpaceBeforeAndAfterBinaryOperators"),Fme,nme],4),Vfe("NoSpaceBeforeBinaryOperator",n,a,[Qfe("insertSpaceBeforeAndAfterBinaryOperators"),Fme,nme],16),Vfe("NoSpaceAfterBinaryOperator",a,n,[Qfe("insertSpaceBeforeAndAfterBinaryOperators"),Fme,nme],16),Vfe("SpaceBeforeOpenParenInFuncDecl",n,21,[Gfe("insertSpaceBeforeFunctionParenthesis"),Fme,mme],4),Vfe("NoSpaceBeforeOpenParenInFuncDecl",n,21,[Qfe("insertSpaceBeforeFunctionParenthesis"),Fme,mme],16),Vfe("NewLineBeforeOpenBraceInControl",u,19,[Gfe("placeOpenBraceOnNewLineForControlBlocks"),xme,_me],8,1),Vfe("NewLineBeforeOpenBraceInFunction",l,19,[Gfe("placeOpenBraceOnNewLineForFunctions"),mme,_me],8,1),Vfe("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Gfe("placeOpenBraceOnNewLineForFunctions"),yme,_me],8,1),Vfe("SpaceAfterTypeAssertion",32,n,[Gfe("insertSpaceAfterTypeAssertion"),Fme,Kme],4),Vfe("NoSpaceAfterTypeAssertion",32,n,[Qfe("insertSpaceAfterTypeAssertion"),Fme,Kme],16),Vfe("SpaceBeforeTypeAnnotation",n,[58,59],[Gfe("insertSpaceBeforeTypeAnnotation"),Fme,ome],4),Vfe("NoSpaceBeforeTypeAnnotation",n,[58,59],[Qfe("insertSpaceBeforeTypeAnnotation"),Fme,ome],16),Vfe("NoOptionalSemicolon",27,i,[Kfe("semicolons","remove"),ege],32),Vfe("OptionalSemicolon",n,i,[Kfe("semicolons","insert"),tge],64)],...[Vfe("NoSpaceBeforeSemicolon",n,27,[Fme],16),Vfe("SpaceBeforeOpenBraceInControl",u,19,[Yfe("placeOpenBraceOnNewLineForControlBlocks"),xme,qme,cme],4,1),Vfe("SpaceBeforeOpenBraceInFunction",l,19,[Yfe("placeOpenBraceOnNewLineForFunctions"),mme,pme,qme,cme],4,1),Vfe("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Yfe("placeOpenBraceOnNewLineForFunctions"),yme,qme,cme],4,1),Vfe("NoSpaceBeforeComma",n,28,[Fme],16),Vfe("NoSpaceBeforeOpenBracket",t(134,84),23,[Fme],16),Vfe("NoSpaceAfterCloseBracket",24,n,[Fme,Rme],16),Vfe("SpaceAfterSemicolon",27,n,[Fme],4),Vfe("SpaceBetweenForAndAwaitKeyword",99,135,[Fme],4),Vfe("SpaceBetweenStatements",[22,92,93,84],n,[Fme,Eme,tme],4),Vfe("SpaceAfterTryCatchFinally",[113,85,98],19,[Fme],4)]]}function Vfe(e,t,n,r,i,o=0){return{leftTokenRange:Hfe(t),rightTokenRange:Hfe(n),rule:{debugName:e,context:r,action:i,flags:o}}}function Wfe(e){return{tokens:e,isSpecific:!0}}function Hfe(e){return"number"==typeof e?Wfe([e]):_t(e)?Wfe(e):e}function $fe(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)I(n,i)||r.push(i);return Wfe(r)}function Kfe(e,t){return n=>n.options&&n.options[e]===t}function Gfe(e){return t=>t.options&&ze(t.options,e)&&!!t.options[e]}function Xfe(e){return t=>t.options&&ze(t.options,e)&&!t.options[e]}function Qfe(e){return t=>!t.options||!ze(t.options,e)||!t.options[e]}function Yfe(e){return t=>!t.options||!ze(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Zfe(e){return t=>!t.options||!ze(t.options,e)||!!t.options[e]}function eme(e){return 248===e.contextNode.kind}function tme(e){return!eme(e)}function nme(e){switch(e.contextNode.kind){case 226:return 28!==e.contextNode.operatorToken.kind;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 249:case 168:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function rme(e){return!nme(e)}function ime(e){return!ome(e)}function ome(e){const t=e.contextNode.kind;return 172===t||171===t||169===t||260===t||k_(t)}function ame(e){return!function(e){return pD(e.contextNode)&&e.contextNode.questionToken}(e)}function sme(e){return 227===e.contextNode.kind||194===e.contextNode.kind}function cme(e){return e.TokensAreOnSameLine()||pme(e)}function lme(e){return 206===e.contextNode.kind||200===e.contextNode.kind||function(e){return dme(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function _me(e){return pme(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function ume(e){return dme(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function dme(e){return fme(e.contextNode)}function pme(e){return fme(e.nextTokenParent)}function fme(e){if(vme(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function mme(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function gme(e){return!mme(e)}function hme(e){return 262===e.contextNode.kind||218===e.contextNode.kind}function yme(e){return vme(e.contextNode)}function vme(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function bme(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||219!==t.kind&&218!==t.kind)return!0}}return!1}function xme(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function Sme(e){return 210===e.contextNode.kind}function kme(e){return function(e){return 213===e.contextNode.kind}(e)||function(e){return 214===e.contextNode.kind}(e)}function Tme(e){return 28!==e.currentTokenSpan.kind}function Cme(e){return 24!==e.nextTokenSpan.kind}function wme(e){return 22!==e.nextTokenSpan.kind}function Nme(e){return 219===e.contextNode.kind}function Dme(e){return 205===e.contextNode.kind}function Fme(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function Pme(e){return 12!==e.contextNode.kind}function Eme(e){return 284!==e.contextNode.kind&&288!==e.contextNode.kind}function Ame(e){return 294===e.contextNode.kind||293===e.contextNode.kind}function Ime(e){return 291===e.nextTokenParent.kind||295===e.nextTokenParent.kind&&291===e.nextTokenParent.parent.kind}function Ome(e){return 291===e.contextNode.kind}function Lme(e){return 295!==e.nextTokenParent.kind}function jme(e){return 295===e.nextTokenParent.kind}function Mme(e){return 285===e.contextNode.kind}function Rme(e){return!mme(e)&&!pme(e)}function Bme(e){return e.TokensAreOnSameLine()&&Sb(e.contextNode)&&Jme(e.currentTokenParent)&&!Jme(e.nextTokenParent)}function Jme(e){for(;e&&au(e);)e=e.parent;return e&&170===e.kind}function zme(e){return 261===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function qme(e){return 2!==e.formattingRequestKind}function Ume(e){return 267===e.contextNode.kind}function Vme(e){return 187===e.contextNode.kind}function Wme(e){return 180===e.contextNode.kind}function Hme(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function $me(e){return Hme(e.currentTokenSpan,e.currentTokenParent)||Hme(e.nextTokenSpan,e.nextTokenParent)}function Kme(e){return 216===e.contextNode.kind}function Gme(e){return!Kme(e)}function Xme(e){return 116===e.currentTokenSpan.kind&&222===e.currentTokenParent.kind}function Qme(e){return 229===e.contextNode.kind&&void 0!==e.contextNode.expression}function Yme(e){return 235===e.contextNode.kind}function Zme(e){return!function(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}(e)}function ege(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(wy(t)){const r=e.nextTokenParent===e.currentTokenParent?YX(e.currentTokenParent,kc(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?20===t||1===t:240!==t&&27!==t&&(264===e.contextNode.kind||265===e.contextNode.kind?!dD(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:pD(e.currentTokenParent)?!e.currentTokenParent.initializer:248!==e.currentTokenParent.kind&&242!==e.currentTokenParent.kind&&240!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&228!==t&&16!==t&&15!==t&&25!==t)}function tge(e){return FZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function nge(e){return!YD(e.contextNode)||!NN(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var rge,ige,oge,age,sge,cge=g({"src/services/formatting/rules.ts"(){zge(),Jge()}});function lge(e,t){return{options:e,getRules:_ge(),host:t}}function _ge(){return void 0===rge&&(rge=function(e){const t=function(e){const t=new Array(age*age),n=new Array(t.length);for(const r of e){const e=r.leftTokenRange.isSpecific&&r.rightTokenRange.isSpecific;for(const i of r.leftTokenRange.tokens)for(const o of r.rightTokenRange.tokens){const a=dge(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),pge(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[dge(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~uge(r);i.action&n&&N(i.context,(t=>t(e)))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(Ufe())),rge}function uge(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function dge(e,t){return Sn.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*age+t}function pge(e,t,n,r,i){const o=3&t.action?n?0:sge.StopRulesAny:t.context!==Rfe?n?sge.ContextRulesSpecific:sge.ContextRulesAny:n?sge.NoContextRulesSpecific:sge.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=ige)n+=e&oge,e>>=ige;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&oge);return Sn.assert((n&oge)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(oge<<t)|n<<t}(a,o)}var fge,mge,gge,hge=g({"src/services/formatting/rulesMap.ts"(){var e;zge(),Jge(),ige=5,oge=31,age=166,(e=sge||{})[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=1*ige]="StopRulesAny",e[e.ContextRulesSpecific=2*ige]="ContextRulesSpecific",e[e.ContextRulesAny=3*ige]="ContextRulesAny",e[e.NoContextRulesSpecific=4*ige]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*ige]="NoContextRulesAny",sge=e}});function yge(e,t,n){const r={pos:e,end:t,kind:n};return Sn.isDebugging&&Object.defineProperty(r,"__debugKind",{get:()=>Sn.formatSyntaxKind(n)}),r}function vge(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=Ep(r,t);for(;ds(t.text.charCodeAt(i));)i--;ps(t.text.charCodeAt(i))&&i--;return Pge({pos:Fp(r-1,t),end:i+1},t,n,2)}function bge(e,t,n){return Fge(wge(Cge(e,27,t)),t,n,3)}function xge(e,t,n){const r=Cge(e,19,t);if(!r)return[];return Pge({pos:vX(wge(r.parent).getStart(t),t),end:e},t,n,4)}function Sge(e,t,n){return Fge(wge(Cge(e,20,t)),t,n,5)}function kge(e,t){return Pge({pos:0,end:e.text.length},e,t,0)}function Tge(e,t,n,r){return Pge({pos:vX(e,n),end:t},n,r,1)}function Cge(e,t,n){const r=ZX(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function wge(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!Nge(t.parent,t);)t=t.parent;return t}function Nge(e,t){switch(e.kind){case 263:case 264:return bX(e.members,t);case 267:const n=e.body;return!!n&&268===n.kind&&bX(n.statements,t);case 312:case 241:case 268:return bX(e.statements,t);case 299:return bX(e.block.statements,t)}return!1}function Dge(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return Mfe(t.text,n,a.pos,a.end,(n=>Ege(a,e,r,i,n,o,1,(e=>!1),t)))}function Fge(e,t,n,r){if(!e)return[];return Pge({pos:vX(e.getStart(t),t),end:e.end},t,n,r)}function Pge(e,t,n,r){const i=function(e,t){return function n(r){const i=KI(r,(n=>TX(n.getStart(t),n.end,e)&&n));if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return Mfe(t.text,t.languageVariant,function(e,t,n){const r=e.getStart(n);if(r===t.pos&&e.end===t.end)return r;const i=ZX(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,(o=>Ege(e,i,Oge.getIndentationForNode(i,e,t,n.options),function(e,t,n){let r,i=-1;for(;e;){const o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==i&&o!==i)break;if(Oge.shouldIndentChildNode(t,e,r,n))return t.indentSize;i=o,r=e,e=e.parent}return 0}(i,n.options,t),o,n,r,function(e,t){if(!e.length)return i;const n=e.filter((e=>wX(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;const t=n[r];if(e.end<=t.start)return!1;if(DX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t)))}function Ege(e,t,n,r,i,{options:o,getRules:a,host:s},c,l,_){var u;const d=new Afe(_,c,o);let p,f,m,g,h,y=-1;const v=[];if(i.advance(),i.isOnToken()){const a=_.getLineAndCharacterOfPosition(t.getStart(_)).line;let s=a;Sb(t)&&(s=_.getLineAndCharacterOfPosition(Kp(t,_)).line),function t(n,r,a,s,c,u){if(!wX(e,n.getStart(_),n.getEnd()))return;const d=S(n,a,c,u);let m=r;KI(n,(e=>{g(e,-1,n,d,a,s,!1)}),(e=>{v(e,n,a,d)}));for(;i.isOnToken()&&i.getTokenFullStart()<e.end;){const t=i.readTokenInfo(n);if(t.token.end>Math.min(n.end,e.end))break;b(t,n,d,n)}function g(r,a,s,c,l,u,d,p){if(Sn.assert(!Xy(r)),Ip(r)||Lp(s,r))return a;const f=r.getStart(_),g=_.getLineAndCharacterOfPosition(f).line;let v=g;Sb(r)&&(v=_.getLineAndCharacterOfPosition(Kp(r,_)).line);let x=-1;if(d&&bX(e,s)&&(x=function(e,t,n,r,i){if(wX(r,e,t)||CX(r,e,t)){if(-1!==i)return i}else{const t=_.getLineAndCharacterOfPosition(e).line,r=vX(e,_),i=Oge.findFirstNonWhitespaceColumn(r,e,_,o);if(t!==n||e===i){const e=Oge.getBaseIndentation(o);return e>i?e:i}}return-1}(f,r.end,l,e,a),-1!==x&&(a=x)),!wX(e,r.pos,r.end))return r.end<e.pos&&i.skipToEndOf(r),a;if(0===r.getFullWidth())return a;for(;i.isOnToken()&&i.getTokenFullStart()<e.end;){const t=i.readTokenInfo(n);if(t.token.end>e.end)return a;if(t.token.end>f){t.token.pos>f&&i.skipToStartOf(r);break}b(t,n,c,n)}if(!i.isOnToken()||i.getTokenFullStart()>=e.end)return a;if(Hl(r)){const e=i.readTokenInfo(r);if(12!==r.kind)return Sn.assert(e.token.end===r.end,"Token end is child end"),b(e,n,c,r),a}const S=170===r.kind?g:u,k=function(e,t,n,r,i,a){const s=Oge.shouldIndentChildNode(o,e)?o.indentSize:0;return a===t?{indentation:t===h?y:i.getIndentation(),delta:Math.min(o.indentSize,i.getDelta(e)+s)}:-1===n?21===e.kind&&t===h?{indentation:y,delta:i.getDelta(e)}:Oge.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,_)||Oge.childIsUnindentedBranchOfConditionalExpression(r,e,t,_)||Oge.argumentStartsOnSameLineAsPreviousArgument(r,e,t,_)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:n,delta:s}}(r,g,x,n,c,S);return t(r,m,g,v,k.indentation,k.delta),m=n,p&&209===s.kind&&-1===a&&(a=k.indentation),a}function v(t,r,a,s){Sn.assert($l(t)),Sn.assert(!Xy(t));const c=function(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}(r,t);let l=s,u=a;if(!wX(e,t.pos,t.end))return void(t.end<e.pos&&i.skipToEndOf(t));if(0!==c)for(;i.isOnToken()&&i.getTokenFullStart()<e.end;){const e=i.readTokenInfo(r);if(e.token.end>t.pos)break;if(e.token.kind===c){let t;if(u=_.getLineAndCharacterOfPosition(e.token.pos).line,b(e,r,s,r),-1!==y)t=y;else{const n=vX(e.token.pos,_);t=Oge.findFirstNonWhitespaceColumn(n,e.token.pos,_,o)}l=S(r,a,t,o.indentSize)}else b(e,r,s,r)}let d=-1;for(let e=0;e<t.length;e++){d=g(t[e],d,n,l,u,u,!0,0===e)}const p=function(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}(c);if(0!==p&&i.isOnToken()&&i.getTokenFullStart()<e.end){let e=i.readTokenInfo(r);28===e.token.kind&&(b(e,r,l,r),e=i.isOnToken()?i.readTokenInfo(r):void 0),e&&e.token.kind===p&&bX(r,e.token)&&b(e,r,l,r,!0)}}function b(t,n,r,o,a){Sn.assert(bX(n,t.token));const s=i.lastTrailingTriviaWasNewLine();let c=!1;t.leadingTrivia&&T(t.leadingTrivia,n,m,r);let u=0;const d=bX(e,t.token),g=_.getLineAndCharacterOfPosition(t.token.pos);if(d){const e=l(t.token),i=f;if(u=C(t.token,g,n,m,r),!e)if(0===u){const e=i&&_.getLineAndCharacterOfPosition(i.end).line;c=s&&g.line!==e}else c=1===u}if(t.trailingTrivia&&(p=Ie(t.trailingTrivia).end,T(t.trailingTrivia,n,m,r)),c){const e=d&&!l(t.token)?r.getIndentationForToken(g.line,t.token.kind,o,!!a):-1;let n=!0;if(t.leadingTrivia){const i=r.getIndentationForComment(t.token.kind,e,o);n=k(t.leadingTrivia,i,n,(e=>N(e.pos,i,!1)))}-1!==e&&n&&(N(t.token.pos,e,1===u),h=g.line,y=e)}i.advance(),m=n}}(t,t,a,s,n,r)}const b=i.getCurrentLeadingTrivia();if(b){const r=Oge.nodeWillIndentChild(o,t,void 0,_,!1)?n+o.indentSize:n;k(b,r,!0,(e=>{C(e,_.getLineAndCharacterOfPosition(e.pos),t,t,void 0),N(e.pos,r,!1)})),!1!==o.trimTrailingWhitespace&&function(t){let n=f?f.end:e.pos;for(const e of t)vQ(e.kind)&&(n<e.pos&&I(n,e.pos-1,f),n=e.end+1);n<e.end&&I(n,e.end,f)}(b)}if(f&&i.getTokenFullStart()>=e.end){const e=i.isOnEOF()?i.readEOFTokenRange():i.isOnToken()?i.readTokenInfo(t).token:void 0;if(e&&e.pos===p){const n=(null==(u=ZX(e.end,_,t))?void 0:u.parent)||m;w(e,_.getLineAndCharacterOfPosition(e.pos).line,n,f,g,m,n,void 0)}}return v;function S(e,t,n,r){return{getIndentationForComment:(e,t,r)=>{switch(e){case 20:case 24:case 22:return n+i(r)}return-1!==t?t:n},getIndentationForToken:(r,o,a,s)=>!s&&function(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 286:case 287:case 285:return!1}break;case 23:case 24:if(200!==i.kind)return!1}return t!==n&&!(Sb(e)&&r===function(e){if(lI(e)){const t=D(e.modifiers,f_,P(e.modifiers,uD));if(t)return t.kind}switch(e.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(e.asteriskToken)return 42;case 172:case 169:const t=Mc(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{Oge.shouldIndentChildNode(o,i,e,_)&&(n+=t?o.indentSize:-o.indentSize,r=Oge.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return Oge.nodeWillIndentChild(o,e,t,_,!0)?r:0}}function k(t,n,r,i){for(const o of t){const t=bX(e,o);switch(o.kind){case 3:t&&F(o,n,!r),r=!1;break;case 2:r&&t&&i(o),r=!1;break;case 4:r=!0}}return r}function T(t,n,r,i){for(const o of t)if(vQ(o.kind)&&bX(e,o)){C(o,_.getLineAndCharacterOfPosition(o.pos),n,r,i)}}function C(t,n,r,i,o){let a=0;if(!l(t))if(f)a=w(t,n.line,r,f,g,m,i,o);else{E(_.getLineAndCharacterOfPosition(e.pos).line,n.line)}return f=t,p=t.end,m=r,g=n.line,a}function w(e,t,n,r,i,c,l,u){d.updateContext(r,c,e,n,l);const p=a(d);let f=!1!==d.options.trimTrailingWhitespace,m=0;return p?x(p,(a=>{if(m=function(e,t,n,r,i){const a=i!==n;switch(e.action){case 1:return 0;case 16:if(t.end!==r.pos)return O(t.end,r.pos-t.end),a?2:0;break;case 32:O(t.pos,t.end-t.pos);break;case 8:if(1!==e.flags&&n!==i)return 0;if(1!==i-n)return L(t.end,r.pos-t.end,BY(s,o)),a?0:1;break;case 4:if(1!==e.flags&&n!==i)return 0;if(1!==r.pos-t.end||32!==_.text.charCodeAt(t.end))return L(t.end,r.pos-t.end," "),a?2:0;break;case 64:c=t.end,(l=";")&&v.push(jQ(c,0,l))}var c,l;return 0}(a,r,i,e,t),u)switch(m){case 2:n.getStart(_)===e.pos&&u.recomputeIndentation(!1,l);break;case 1:n.getStart(_)===e.pos&&u.recomputeIndentation(!0,l);break;default:Sn.assert(0===m)}f=f&&!(16&a.action)&&1!==a.flags})):f=f&&1!==e.kind,t!==i&&f&&E(i,t,r),m}function N(e,t,n){const r=Ige(t,o);if(n)L(e,0,r);else{const n=_.getLineAndCharacterOfPosition(e),i=Fp(n.line,_);(t!==function(e,t){let n=0;for(let r=0;r<t;r++)9===_.text.charCodeAt(e+r)?n+=o.tabSize-n%o.tabSize:n++;return n}(i,n.character)||function(e,t){return e!==_.text.substr(t,e.length)}(r,i))&&L(i,n.character,r)}}function F(e,t,n,r=!0){let i=_.getLineAndCharacterOfPosition(e.pos).line;const a=_.getLineAndCharacterOfPosition(e.end).line;if(i===a)return void(n||N(e.pos,t,!1));const s=[];let c=e.pos;for(let e=i;e<a;e++){const t=Ep(e,_);s.push({pos:c,end:t}),c=Fp(e+1,_)}if(r&&s.push({pos:c,end:e.end}),0===s.length)return;const l=Fp(i,_),u=Oge.findFirstNonWhitespaceCharacterAndColumn(l,s[0].pos,_,o);let d=0;n&&(d=1,i++);const p=t-u.column;for(let e=d;e<s.length;e++,i++){const t=Fp(i,_),n=0===e?u:Oge.findFirstNonWhitespaceCharacterAndColumn(s[e].pos,s[e].end,_,o),r=n.column+p;if(r>0){const e=Ige(r,o);L(t,n.character,e)}else O(t,n.character)}}function E(e,t,n){for(let r=e;r<t;r++){const e=Fp(r,_),t=Ep(r,_);if(n&&(vQ(n.kind)||bQ(n.kind))&&n.pos<=t&&n.end>t)continue;const i=A(e,t);-1!==i&&(Sn.assert(i===e||!ds(_.text.charCodeAt(i-1))),O(i,t+1-i))}}function A(e,t){let n=t;for(;n>=e&&ds(_.text.charCodeAt(n));)n--;return n!==t?n+1:-1}function I(e,t,n){E(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(t).line+1,n)}function O(e,t){t&&v.push(jQ(e,t,""))}function L(e,t,n){(t||n)&&v.push(jQ(e,t,n))}}function Age(e,t,n,r=KX(e,t)){const i=kc(r,_E);i&&(r=i.parent);if(r.getStart(e)<=t&&t<r.getEnd())return;const o=oe((n=null===n?void 0:void 0===n?ZX(t,e):n)&&Ps(e.text,n.end),mm(r,e));return o&&D(o,(n=>kX(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth())))}function Ige(e,t){if((!fge||fge.tabSize!==t.tabSize||fge.indentSize!==t.indentSize)&&(fge={tabSize:t.tabSize,indentSize:t.indentSize},mge=gge=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return gge||(gge=[]),void 0===gge[r]?(n=VQ(" ",t.indentSize*r),gge[r]=n):n=gge[r],i?n+VQ(" ",i):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return mge||(mge=[]),void 0===mge[n]?mge[n]=i=VQ("\t",n):i=mge[n],r?i+VQ(" ",r):i}}var Oge,Lge=g({"src/services/formatting/formatting.ts"(){zge(),Jge()}}),jge=g({"src/services/formatting/smartIndenter.ts"(){zge(),Jge(),(e=>{let t;var n;function r(e){return e.baseIndentSize||0}function i(e,t,n,i,s,c,l){var f;let m=e.parent;for(;m;){let r=!0;if(n){const t=e.getStart(s);r=t<n.pos||t>n.end}const h=o(m,e,s),y=h.line===t.line||d(m,e,t.line,s);if(r){const n=null==(f=p(e,s))?void 0:f[0];let r=g(e,s,l,!!n&&_(n,s).line>h.line);if(-1!==r)return r+i;if(r=a(e,m,t,y,s,l),-1!==r)return r+i}S(l,m,e,s,c)&&!y&&(i+=l.indentSize);const v=u(m,e,t.line,s);m=(e=m).parent,t=v?s.getLineAndCharacterOfPosition(e.getStart(s)):h}return i+r(l)}function o(e,t,n){const r=p(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function a(e,t,n,r,i,o){return(Nu(e)||Fu(e))&&(312===t.kind||!r)?y(n,i,o):-1}let s;var c;function l(e,t,n,r){const i=YX(e,t,r);if(!i)return 0;if(19===i.kind)return 1;if(20===i.kind){return n===_(i,r).line?2:0}return 0}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function u(e,t,n,r){if(!eF(e)||!I(e.arguments,t))return!1;return _s(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(245===e.kind&&e.elseStatement===t){const t=OX(e,93,r);Sn.assert(void 0!==t);return _(t,r).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(e,t,n,r){switch(n.kind){case 183:return i(n.typeArguments);case 210:return i(n.properties);case 209:case 275:case 279:case 206:case 207:return i(n.elements);case 187:return i(n.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return i(n.typeParameters)||i(n.parameters);case 177:return i(n.parameters);case 263:case 231:case 264:case 265:case 352:return i(n.typeParameters);case 214:case 213:return i(n.typeArguments)||i(n.arguments);case 261:return i(n.declarations)}function i(i){return i&&CX(function(e,t,n){const r=e.getChildren(n);for(let e=1;e<r.length-1;e++)if(r[e].pos===t.pos&&r[e].end===t.end)return{pos:r[e-1].end,end:r[e+1].getStart(n)};return t}(n,i,r),e,t)?i:void 0}}function m(e,t,n){return e?y(t.getLineAndCharacterOfPosition(e.pos),t,n):-1}function g(e,t,n,r){if(e.parent&&261===e.parent.kind)return-1;const i=p(e,t);if(i){const o=i.indexOf(e);if(-1!==o){const e=h(i,o,t,n);if(-1!==e)return e}return m(i,t,n)+(r?n.indentSize:0)}return-1}function h(e,t,n,r){Sn.assert(t>=0&&t<e.length);let i=_(e[t],n);for(let o=t-1;o>=0;o--){if(28===e[o].kind)continue;if(n.getLineAndCharacterOfPosition(e[o].end).line!==i.line)return y(i,n,r);i=_(e[o],n)}return-1}function y(e,t,n){const r=t.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,t,n)}function v(e,t,n,r){let i=0,o=0;for(let a=e;a<t;a++){const e=n.text.charCodeAt(a);if(!ds(e))break;9===e?o+=r.tabSize+o%r.tabSize:o++,i++}return{column:o,character:i}}function b(e,t,n,r){return v(e,t,n,r).column}function x(e,t,n,r,i){const o=n?n.kind:0;switch(t.kind){case 244:case 263:case 231:case 264:case 266:case 265:case 209:case 241:case 268:case 210:case 187:case 200:case 189:case 217:case 211:case 213:case 214:case 243:case 277:case 253:case 227:case 207:case 206:case 286:case 289:case 285:case 294:case 173:case 179:case 180:case 169:case 184:case 185:case 196:case 215:case 223:case 279:case 275:case 281:case 276:case 172:case 296:case 297:return!0;case 269:return e.indentSwitchCase??!0;case 260:case 303:case 226:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&r&&210===o)return k(r,n);if(226===t.kind&&r&&n&&284===o){return r.getLineAndCharacterOfPosition(ys(r.text,t.pos)).line!==r.getLineAndCharacterOfPosition(ys(r.text,n.pos)).line}if(226!==t.kind)return!0;break;case 246:case 247:case 249:case 250:case 248:case 245:case 262:case 218:case 174:case 176:case 177:case 178:return 241!==o;case 219:return r&&217===o?k(r,n):241!==o;case 278:return 279!==o;case 272:return 273!==o||!!n.namedBindings&&275!==n.namedBindings.kind;case 284:return 287!==o;case 288:return 290!==o;case 193:case 192:if(187===o||189===o)return!1}return i}function S(e,t,n,r,i=!1){return x(e,t,n,r,!1)&&!(i&&n&&function(e,t){switch(e){case 253:case 257:case 251:case 252:return 241!==t.kind;default:return!1}}(n.kind,t))}function k(e,t){const n=ys(e.text,t.pos);return e.getLineAndCharacterOfPosition(n).line===e.getLineAndCharacterOfPosition(t.end).line}(n=t||(t={}))[n.Unknown=-1]="Unknown",e.getIndentation=function(e,t,n,o=!1){if(e>t.text.length)return r(n);if(0===n.indentStyle)return 0;const a=ZX(e,t,void 0,!0),s=Age(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=_s(e,t).line-1,o=_s(e,r.pos).line;if(Sn.assert(o>=0),i<=o)return b(Fp(o,e),t,e,n);const a=Fp(i,e),{column:s,character:c}=v(a,t,e,n);if(0===s)return s;const l=e.text.charCodeAt(a+c);return 42===l?s-1:s}(t,e,n,s);if(!a)return r(n);if(bQ(a.kind)&&a.getStart(t)<=e&&e<a.end)return 0;const c=t.getLineAndCharacterOfPosition(e).line,u=KX(t,e),d=19===u.kind&&210===u.parent.kind;if(1===n.indentStyle||d)return function(e,t,n){let r=t;for(;r>0;){if(!us(e.text.charCodeAt(r)))break;r--}const i=vX(r,e);return b(i,r,e,n)}(t,e,n);if(28===a.kind&&226!==a.parent.kind){const e=function(e,t,n){const r=AX(e);return r&&r.listItemIndex>0?h(r.list.getChildren(),r.listItemIndex-1,t,n):-1}(a,t,n);if(-1!==e)return e}const p=function(e,t,n){return t&&f(e,e,t,n)}(e,a.parent,t);if(p&&!bX(p,a)){const e=[218,219].includes(u.parent.kind)?0:n.indentSize;return m(p,t,n)+e}return function(e,t,n,o,a,s){let c,u=n;for(;u;){if(FX(u,t,e)&&S(s,u,c,e,!0)){const t=_(u,e),r=l(n,u,o,e);return i(u,t,void 0,0!==r?a&&2===r?s.indentSize:0:o!==t.line?s.indentSize:0,e,!0,s)}const r=g(u,e,s,!0);if(-1!==r)return r;c=u,u=u.parent}return r(s)}(t,e,a,c,o,n)},e.getIndentationForNode=function(e,t,n,r){const o=n.getLineAndCharacterOfPosition(e.getStart(n));return i(e,o,t,0,n,!1,r)},e.getBaseIndentation=r,(c=s||(s={}))[c.Unknown=0]="Unknown",c[c.OpenBrace=1]="OpenBrace",c[c.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=u,e.childStartsOnTheSameLineWithElseInIfStatement=d,e.childIsUnindentedBranchOfConditionalExpression=function(e,t,n,r){if(fF(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=_s(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=_(e.whenTrue,r).line,o=_s(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(Y_(e)){if(!e.arguments)return!1;const i=D(e.arguments,(e=>e.pos===t.pos));if(!i)return!1;const o=e.arguments.indexOf(i);if(0===o)return!1;if(n===_s(r,e.arguments[o-1].getEnd()).line)return!0}return!1},e.getContainingList=p,e.findFirstNonWhitespaceCharacterAndColumn=v,e.findFirstNonWhitespaceColumn=b,e.nodeWillIndentChild=x,e.shouldIndentChildNode=S})(Oge||(Oge={}))}}),Mge={};h(Mge,{FormattingContext:()=>Afe,FormattingRequestKind:()=>Efe,RuleAction:()=>Bfe,RuleFlags:()=>Jfe,SmartIndenter:()=>Oge,anyContext:()=>Rfe,createTextRangeWithKind:()=>yge,formatDocument:()=>kge,formatNodeGivenIndentation:()=>Dge,formatOnClosingCurly:()=>Sge,formatOnEnter:()=>vge,formatOnOpeningCurly:()=>xge,formatOnSemicolon:()=>bge,formatSelection:()=>Tge,getAllRules:()=>Ufe,getFormatContext:()=>lge,getFormattingScanner:()=>Mfe,getIndentationString:()=>Ige,getRangeOfEnclosingComment:()=>Age});var Rge,Bge,Jge=g({"src/services/_namespaces/ts.formatting.ts"(){jfe(),zfe(),qfe(),cge(),hge(),Lge(),jge()}}),zge=g({"src/services/_namespaces/ts.ts"(){OK(),PG(),zG(),h0(),N0(),q0(),U0(),G0(),o1(),E1(),O1(),B1(),Z1(),r2(),u5(),p5(),h5(),M5(),V5(),Ece(),D_e(),hue(),jue(),Hue(),lde(),w2(),m6(),Bde(),Gde(),x7(),ape(),Epe(),Vpe(),sfe(),Lfe(),Jge()}});function qge(e,t,n,r,i){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=r?`has been deprecated since v${r}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=i?` ${kS(i,[e])}`:"",o}function Uge(e,n={}){const r="string"==typeof n.typeScriptVersion?new Pn(n.typeScriptVersion):n.typeScriptVersion??Bge??(Bge=new Pn(t)),i="string"==typeof n.errorAfter?new Pn(n.errorAfter):n.errorAfter,o="string"==typeof n.warnAfter?new Pn(n.warnAfter):n.warnAfter,a="string"==typeof n.since?new Pn(n.since):n.since??o,s=n.error||i&&r.compareTo(i)>=0,c=!o||r.compareTo(o)>=0;return s?function(e,t,n,r){const i=qge(e,!0,t,n,r);return()=>{throw new TypeError(i)}}(e,i,a,n.message):c?function(e,t,n,r){let i=!1;return()=>{Rge&&!i&&(Sn.log.warn(qge(e,!1,t,n,r)),i=!0)}}(e,i,a,n.message):gt}function Vge(e,t){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(Uge((null==t?void 0:t.name)??Sn.getFunctionName(e),t),e)}var Wge=g({"src/deprecatedCompat/deprecate.ts"(){Yge(),Rge=!0}});function Hge(e,t,n,r){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),r)for(const n of Object.keys(r)){const i=+n;!isNaN(i)&&ze(t,`${i}`)&&(t[i]=Vge(t[i],{...r[i],name:e}))}const i=function(e,t){return n=>{for(let r=0;ze(e,`${r}`)&&ze(t,`${r}`);r++){if((0,t[r])(n))return r}}}(t,n);return o;function o(...e){const n=i(e),r=void 0!==n?t[n]:void 0;if("function"==typeof r)return r(...e);throw new TypeError("Invalid arguments")}}function $ge(e){return{overload:t=>({bind:n=>({finish:()=>Hge(e,t,n),deprecate:r=>({finish:()=>Hge(e,t,n,r)})})})}}var Kge,Gge,Xge=g({"src/deprecatedCompat/deprecations.ts"(){Yge(),Wge()}}),Qge=g({"src/deprecatedCompat/5.0/identifierProperties.ts"(){Yge(),Wge(),xS((e=>{const t=e.getIdentifierConstructor();ze(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Vge((function(){return Fc(this)}),{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),ze(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Vge((function(){return!!(4096&this.flags)||void 0}),{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})}))}}),Yge=g({"src/deprecatedCompat/_namespaces/ts.ts"(){OK(),Xge(),Qge()}}),Zge=g({"src/typingsInstallerCore/_namespaces/ts.ts"(){OK(),PG(),uhe()}});function ehe(e,t,n,r){try{const r=xM(t,sa(e,"index.d.ts"),{moduleResolution:2},n);return r.resolvedModule&&r.resolvedModule.resolvedFileName}catch(n){return void(r.isEnabled()&&r.writeLine(`Failed to resolve ${t} in folder '${e}': ${n.message}`))}}function the(e,t,n,r){let i=!1;for(let o=n.length;o>0;){const a=nhe(e,t,n,o);o=a.remaining,i=r(a.command)||i}return i}function nhe(e,t,n,r){const i=n.length-r;let o,a=r;for(;o=`${e} install --ignore-scripts ${(a===n.length?n:n.slice(i,i+a)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)a-=Math.floor(a/2);return{command:o,remaining:r-a}}function rhe(t){return`@types/${t}@ts${e}`}var ihe=g({"src/typingsInstallerCore/typingsInstaller.ts"(){Zge(),uhe(),Kge={isEnabled:()=>!1,writeLine:gt},Gge=class{constructor(e,t,n,r,i,o=Kge){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=r,this.throttleLimit=i,this.log=o,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)}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`);this.projectWatchers.get(e)?(this.projectWatchers.delete(e),this.sendResponse({kind:PK,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)):this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${BK(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),void 0===this.safeList&&this.initializeSafeList();const t=oG.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"))}initializeSafeList(){if(this.typesMapLocation){const e=oG.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e)return this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),void(this.safeList=e);this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=oG.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e))return void(this.log.isEnabled()&&this.log.writeLine("Cache location was already processed..."));const t=sa(e,"package.json"),n=sa(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){const 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}':${BK(r)}`),this.log.writeLine(`Loaded content of '${n}':${BK(i)}`)),r.devDependencies&&i.dependencies)for(const t in r.devDependencies){if(!ze(i.dependencies,t))continue;const n=ea(t);if(!n)continue;const r=ehe(e,n,this.installTypingHost,this.log);if(!r){this.missingTypingsSet.add(n);continue}const o=this.packageNameToTypingLocation.get(n);if(o){if(o.typingLocation===r)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${n} from '${r}' conflicts with existing typing file '${o}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${n}' => '${r}'`);const a=qe(i.dependencies,t),s=a&&a.version;if(!s)continue;const c={typingLocation:r,version:new Pn(s)};this.packageNameToTypingLocation.set(n,c)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return G(e,(e=>{const t=_R(e);if(this.missingTypingsSet.has(t))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`));const n=oG.validatePackageName(e);if(n!==oG.NameValidationResult.Ok)return this.missingTypingsSet.add(t),void(this.log.isEnabled()&&this.log.writeLine(oG.renderPackageNameValidationFailure(n,e)));if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!oG.isTypingUpToDate(this.packageNameToTypingLocation.get(t),this.typesRegistry.get(t)))return t;this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' already has an up-to-date typing - skipping...`)}else this.log.isEnabled()&&this.log.writeLine(`'${e}':: Entry for package '${t}' does not exist in local types registry - skipping...`)}))}ensurePackageDirectoryExists(e){const t=sa(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(n,r,i,o){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(o)}`);const a=this.filterTypings(o);if(0===a.length)return this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),void this.sendResponse(this.createSetTypings(n,i));this.ensurePackageDirectoryExists(r);const s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:NK,eventId:s,typingsInstallerVersion:t,projectName:n.projectName});const c=a.map(rhe);this.installTypingsAsync(s,c,r,(o=>{try{if(!o){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(a)}`);for(const e of a)this.missingTypingsSet.add(e);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);const t=[];for(const n of a){const i=ehe(r,n,this.installTypingHost,this.log);if(!i){this.missingTypingsSet.add(n);continue}const o=this.typesRegistry.get(n),a={typingLocation:i,version:new Pn(o[`ts${e}`]||o[this.latestDistTag])};this.packageNameToTypingLocation.set(n,a),t.push(i)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(t)}`),this.sendResponse(this.createSetTypings(n,i.concat(t)))}finally{const e={kind:DK,eventId:s,projectName:n.projectName,packagesToInstall:c,installSuccess:o,typingsInstallerVersion:t};this.sendResponse(e)}}))}ensureDirectoryExists(e,t){const n=Zo(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length)return void this.closeWatchers(e);const n=this.projectWatchers.get(e),r=new Set(t);!n||pp(r,(e=>!n.has(e)))||pp(n,(e=>!r.has(e)))?(this.projectWatchers.set(e,r),this.sendResponse({kind:PK,projectName:e,files:t})):this.sendResponse({kind:PK,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:kK}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;const e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,(t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()}))}}}}}),ohe={};h(ohe,{TypingsInstaller:()=>Gge,getNpmCommandForInstallation:()=>nhe,installNpmPackages:()=>the,typingsName:()=>rhe});var ahe,she,che,lhe,_he=g({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){ihe()}}),uhe=g({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){KK(),_he()}}),dhe=g({"src/server/types.ts"(){}});function phe(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"}}function fhe(e){return ua(e)}function mhe(e,t,n){return n(zo(e)?e:_a(e,t))}function ghe(e){return e}function hhe(){const e=new Map;return{get:t=>e.get(t),set(t,n){e.set(t,n)},contains:t=>e.has(t),remove(t){e.delete(t)}}}function yhe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function vhe(e){return`/dev/null/inferredProject${e}*`}function bhe(e){return`/dev/null/autoImportProviderProject${e}*`}function xhe(e){return`/dev/null/auxiliaryProject${e}*`}function She(){return[]}var khe,The,Che=g({"src/server/utilitiesPublic.ts"(){var e;lbe(),ahe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(ahe||{}),she=[],che=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(che||{}),(e=lhe||(lhe={})).ThrowNoProject=function(){throw new Error("No Project.")},e.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},e.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)}}});function whe(e){const t=ea(e);return"tsconfig.json"===t||"jsconfig.json"===t?t:void 0}function Nhe(e,t,n){if(!e||0===e.length)return;if(e[0]===t)return void e.splice(0,1);const r=Re(e,t,bt,n);r>=0&&e.splice(r,1)}var Dhe,Fhe,Phe,Ehe,Ahe,Ihe,Ohe,Lhe,jhe,Mhe,Rhe,Bhe,Jhe,zhe,qhe=g({"src/server/utilities.ts"(){lbe(),sbe(),khe=class e{constructor(e,t){this.host=e,this.pendingTimeouts=new Map,this.logger=t.hasLevel(3)?t:void 0}schedule(t,n,r){const 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){const t=this.pendingTimeouts.get(e);return!!t&&(this.host.clearTimeout(t),this.pendingTimeouts.delete(e))}static run(e,t,n){var r,i;null==(r=rr)||r.logStartScheduledOperation(e),t.pendingTimeouts.delete(e),t.logger&&t.logger.info(`Running: ${e}`),n(),null==(i=rr)||i.logStopScheduledOperation()}},The=class e{constructor(e,t,n){this.host=e,this.delay=t,this.logger=n}scheduleCollect(){this.host.gc&&void 0===this.timerId&&(this.timerId=this.host.setTimeout(e.run,this.delay,this))}static run(e){var t,n;e.timerId=void 0,null==(t=rr)||t.logStartScheduledOperation("GC collect");const r=e.logger.hasLevel(2),i=r&&e.host.getMemoryUsage();if(e.host.gc(),r){const t=e.host.getMemoryUsage();e.logger.perftrc(`GC::before ${i}, after ${t}`)}null==(n=rr)||n.logStopScheduledOperation()}}}}),Uhe=g({"src/server/protocol.ts"(){Dhe=(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.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))(Dhe||{}),Fhe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(Fhe||{}),Phe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(Phe||{}),Ehe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Ehe||{}),Ahe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(Ahe||{}),Ihe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Ihe||{}),Ohe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(Ohe||{}),Lhe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(Lhe||{}),jhe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(jhe||{}),Mhe=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e))(Mhe||{}),Rhe=(e=>(e.Classic="Classic",e.Node="Node",e))(Rhe||{}),Bhe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(Bhe||{}),Jhe=(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.ESNext="ESNext",e))(Jhe||{}),zhe=(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))(zhe||{})}}),Vhe={};h(Vhe,{ClassificationType:()=>zhe,CommandTypes:()=>Dhe,CompletionTriggerKind:()=>Ihe,IndentStyle:()=>Ohe,JsxEmit:()=>jhe,ModuleKind:()=>Mhe,ModuleResolutionKind:()=>Rhe,NewLineKind:()=>Bhe,OrganizeImportsMode:()=>Fhe,PollingWatchKind:()=>Ahe,ScriptTarget:()=>Jhe,SemicolonPreference:()=>Lhe,WatchDirectoryKind:()=>Ehe,WatchFileKind:()=>Phe});var Whe,Hhe,$he=g({"src/server/_namespaces/ts.server.protocol.ts"(){Uhe()}});function Khe(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===ea(e)[0]||e.includes(":^")&&!e.includes(Io)}function Ghe(e){return!e||yye(e)?lhe.ThrowNoProject():e}var Xhe,Qhe,Yhe=g({"src/server/scriptInfo.ts"(){lbe(),sbe(),Whe=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 void 0!==this.svc}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 Sn.assert(void 0!==e),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=UQ(this.svc.getSnapshot())),this.text!==e&&(this.useText(e),this.ownFileText=!1,!0)}reloadWithFileText(e){const{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,r}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText&&(this.pendingReloadFromDisk=!0)}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return(null==(e=this.tryUseScriptVersionCache())?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=aG.fromString(Sn.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){const t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);const 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){const t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);const n=this.getLineMap();return ac(n[e],e+1<n.length?n[e+1]:this.text.length)}lineOffsetToPosition(e,t,n){const r=this.tryUseScriptVersionCache();return r?r.lineOffsetToPosition(e,t):os(this.getLineMap(),e-1,t-1,this.text,n)}positionToLineOffset(e){const t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);const{line:n,character:r}=ss(this.getLineMap(),e);return{line:n+1,offset:r+1}}getFileTextAndSize(e){let t;const n=e||this.info.fileName,r=()=>void 0===t?t=this.host.readFile(n)||"":t;if(!Hk(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>bye){Sn.assert(!!this.info.containingProjects.length);return 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=Zve.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=Zve.fromString(Sn.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(void 0===this.text||this.pendingReloadFromDisk)&&(Sn.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return Sn.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=rs(Sn.checkDefined(this.text)))}getLineInfo(){const e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:t=>e.getAbsolutePositionAndLineText(t+1).lineText};const t=this.getLineMap();return aJ(this.text,t)}},Hhe=class{constructor(e,t,n,r,i,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=r,this.path=i,this.containingProjects=[],this.isDynamic=Khe(t),this.textStorage=new Whe(e,this,o),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||qk(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,void 0!==e&&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(void 0===this.realpath&&(this.realpath=this.path,this.host.realpath)){Sn.assert(!!this.containingProjects.length);const 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){const 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 I(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:en(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink())}}detachAllProjects(){for(const e of this.containingProjects){gye(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!mye(e)&&e.addMissingFileRoot(t.fileName)}B(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return lhe.ThrowNoProject();case 1:return Ghe(this.containingProjects[0]);default:let e,t,n,r,i;for(let o=0;o<this.containingProjects.length;o++){const a=this.containingProjects[o];if(gye(a)){if(!a.isSourceOfProjectReferenceRedirect(this.fileName)){if(void 0===i&&o!==this.containingProjects.length-1&&(i=a.projectService.findDefaultConfiguredProject(this)||!1),i===a)return a;r||(r=a)}t||(t=a)}else!e&&hye(a)?e=a:!n&&mye(a)&&(n=a)}return Ghe(i||r||t||e||n)}}registerFileUpdate(){for(const e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=EG(this.host.newLine),Ke(this.formatSettings,e))),t&&(this.preferences||(this.preferences=_G),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,UQ(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){Sn.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return!!this.textStorage.reloadWithFileText(e)&&(this.markContainingProjectsAsDirty(),!0)}editContent(e,t,n){this.textStorage.edit(e,t,n),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(const e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return!b(this.containingProjects,(e=>!e.isOrphan()))}isContainedByBackgroundProject(){return re(this.containingProjects,yye)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){!function(e){Sn.assert("number"==typeof e,`Expected position ${e} to be a number.`),Sn.assert(e>=0,"Expected position to be non-negative.")}(e);const t=this.textStorage.positionToLineOffset(e);return function(e){Sn.assert("number"==typeof e.line,`Expected line ${e.line} to be a number.`),Sn.assert("number"==typeof e.offset,`Expected offset ${e.offset} to be a number.`),Sn.assert(e.line>0,"Expected line to be non-"+(0===e.line?"zero":"negative")),Sn.assert(e.offset>0,"Expected offset to be non-"+(0===e.offset?"zero":"negative"))}(t),t}isJavaScript(){return 1===this.scriptKind||2===this.scriptKind}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!dt(this.sourceMapFilePath)&&(HU(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function Zhe(e,t){if(e===t)return!0;if(0===(e||she).length&&0===(t||she).length)return!0;const n=new Map;let r=0;for(const t of e)!0!==n.get(t)&&(n.set(t,!0),r++);for(const e of t){const t=n.get(e);if(void 0===t)return!1;!0===t&&(n.set(e,!1),r--)}return 0===r}var eye,tye,nye,rye,iye,oye,aye,sye,cye=g({"src/server/typingsCache.ts"(){lbe(),sbe(),Xhe={isKnownTypesPackageName:ht,installPackage:kt,enqueueInstallTypingsRequest:gt,attach:gt,onProjectClosed:gt,globalTypingsCacheLocation:void 0},Qhe=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,n){const r=e.getTypeAcquisition();if(!r||!r.enable)return;const i=this.perProjectCache.get(e.getProjectName());var o,a,s,c;!n&&i&&(s=r,c=i.typeAcquisition,s.enable===c.enable&&Zhe(s.include,c.include)&&Zhe(s.exclude,c.exclude))&&!function(e,t){return fk(e)!==fk(t)}(e.getCompilationSettings(),i.compilerOptions)&&(o=t,a=i.unresolvedImports,o===a||fe(o,a))||(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:r,typings:i?i.typings:she,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,r,t))}updateTypingsForProject(e,t,n,r,i){const o=Te(i);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:n,typings:o,unresolvedImports:r,poisoned:!1}),n&&n.enable?o:she}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName()),this.installer.onProjectClosed(e)}}}});function lye(e,t=!1){const 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(const r of e){const 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:oO(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}}return n}function _ye(e){const t=lye(e.getRootScriptInfos());return 0===t.ts&&0===t.tsx}function uye(e){const t=lye(e.getScriptInfos());return 0===t.ts&&0===t.tsx}function dye(e){return!e.some((e=>$o(e,".ts")&&!oO(e)||$o(e,".tsx")))}function pye(e){return void 0!==e.generatedFilePath}function fye(e,t){var n,r;const i=e.getSourceFiles();null==(n=Fr)||n.push(Fr.Phase.Session,"getUnresolvedImports",{count:i.length});const o=e.getTypeChecker().getAmbientModules().map((e=>fv(e.getName()))),a=ue(V(i,(n=>function(e,t,n,r){return Y(r,t.path,(()=>{let r;return e.forEachResolvedModule((({resolvedModule:e},t)=>{e&&aT(e.extension)||Vs(t)||n.some((e=>e===t))||(r=he(r,XM(t).packageName))}),t),r||she}))}(e,n,o,t))));return null==(r=Fr)||r.pop(),a}function mye(e){return 0===e.projectKind}function gye(e){return 1===e.projectKind}function hye(e){return 2===e.projectKind}function yye(e){return 3===e.projectKind||4===e.projectKind}var vye,bye,xye,Sye,kye,Tye,Cye,wye,Nye,Dye,Fye,Pye,Eye,Aye,Iye,Oye,Lye,jye,Mye,Rye,Bye,Jye,zye,qye,Uye=g({"src/server/project.ts"(){lbe(),lbe(),sbe(),eye=(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))(eye||{}),tye=class e{constructor(e,t,n,r,i,o,a,s,c,l,_){switch(this.projectKind=t,this.projectService=n,this.documentRegistry=r,this.compilerOptions=a,this.compileOnSaveEnabled=s,this.watchOptions=c,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=ht,this.dirty=!1,this.typingFiles=she,this.moduleSpecifierCache=gve(this),this.createHash=it(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=oG.nonRelativeModuleNameForTypingCache,this.projectName=e,this.directoryStructureHost=l,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(_),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new z7(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(i||fk(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:1,jsx:1},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:Sn.assertNever(n.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const u=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=e=>this.writeLog(e):u.trace&&(this.trace=e=>u.trace(e)),this.realpath=it(u,u.realpath),this.resolutionCache=_H(this,this.currentDirectory,!0),this.languageService=a5(this,this.documentRegistry,this.projectService.serverMode),o&&this.disableLanguageService(o),this.markAsDirty(),yye(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(e){}isNonTsProject(){return cve(this),uye(this)}isJsOnlyProject(){return cve(this),function(e){const t=lye(e.getScriptInfos());return t.js>0&&0===t.ts&&0===t.tsx}(this)}static resolveModule(t,n,r,i){return e.importServicePluginSync({name:t},[n],r,i).resolvedModule}static importServicePluginSync(e,t,n,r){let i,o;Sn.assertIsDefined(n.require);for(const a of t){const t=oa(n.resolvePath(sa(a,"node_modules")));r(`Loading ${e.name} from ${a} (resolved to ${t})`);const s=n.require(t,e.name);if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to load module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}static async importServicePluginAsync(e,t,n,r){let i,o;Sn.assertIsDefined(n.importPlugin);for(const a of t){const t=sa(a,"node_modules");let s;r(`Dynamically importing ${e.name} from ${a} (resolved to ${t})`);try{s=await n.importPlugin(t,e.name)}catch(e){s={module:void 0,error:e}}if(!s.error){o=s.module;break}const c=s.error.stack||s.error.message||JSON.stringify(s.error);(i??(i=[])).push(`Failed to dynamically import module '${e.name}' from ${t}: ${c}`)}return{pluginConfigEntry:e,resolvedModule:o,errorLogs:i}}isKnownTypesPackageName(e){return this.typingsCache.isKnownTypesPackageName(e)}installPackage(e){return this.typingsCache.installPackage({...e,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=Ck(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.rootFiles)return r;let e;return this.rootFilesMap.forEach((t=>{(this.languageServiceEnabled||t.info&&t.info.isScriptOpen())&&(e||(e=[])).push(t.fileName)})),be(e,this.typingFiles)||r}getOrCreateScriptInfoAndAttachToProject(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost);if(t){const e=this.rootFilesMap.get(t.path);e&&e.info!==t&&(this.rootFiles.push(t),e.info=t),t.attachToProject(this)}return t}getScriptKind(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&t.scriptKind}getScriptVersion(e){const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost);return t&&t.getLatestVersion()}getScriptSnapshot(e){const t=this.getOrCreateScriptInfoAndAttachToProject(e);if(t)return t.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){return sa(Zo(ua(this.projectService.getExecutingFilePath())),Hs(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){const t=this.toPath(e);return!this.isWatchedMissingFile(t)&&this.directoryStructureHost.fileExists(e)}resolveModuleNameLiterals(e,t,n,r,i,o){return this.resolutionCache.resolveModuleNameLiterals(e,t,n,r,i,o)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(e,t,n,r,i,o)}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 pa(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),gH.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),gH.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),gH.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}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(){0!==this.projectKind&&2!==this.projectKind||(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return M(this.projectErrors,(e=>!e.file))||she}getAllProjectErrors(){return this.projectErrors||she}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&cve(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?(cve(this),this.builderState=tW.create(this.program,this.builderState,!0),G(tW.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:she};const{emitSkipped:n,diagnostics:r,outputFiles:i}=this.getLanguageService().getEmitOutput(e.fileName);if(!n){for(const e of i){t(_a(e.name,this.currentDirectory),e.text,e.writeByteOrderMark)}if(this.builderState&&_k(this.compilerOptions)){const t=i.filter((e=>oO(e.name)));if(1===t.length){const n=this.program.getSourceFile(e.fileName),r=this.projectService.host.createHash?this.projectService.host.createHash(t[0].text):fo(t[0].text);tW.updateSignatureOfFile(this.builderState,r,n.resolvedPath)}}}return{emitSkipped:n,diagnostics:r}}enableLanguageService(){this.languageServiceEnabled||2===this.projectService.serverMode||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const 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&&(Sn.assert(2!==this.projectService.serverMode),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&&e.include?{...e,include:this.removeExistingTypings(e.include)}:e}getExternalFiles(e){return Te(V(this.plugins,(t=>{if("function"==typeof t.module.getExternalFiles)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){const t=this.program.getCompilerOptions();return e===t.configFilePath?t.configFile:this.getSourceFile(e)}close(){this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),b(this.externalFiles,(e=>this.detachScriptInfoIfNotRoot(e)));for(const e of this.rootFiles)e.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 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,this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(Kx(this.missingFilesMap,Bx),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(e){const t=this.projectService.getScriptInfo(e);t&&!this.isRoot(t)&&t.detachFromProject(this)}isClosed(){return void 0===this.rootFiles}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map((e=>e.fileName))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?J(this.program.getSourceFiles(),(e=>{const t=this.projectService.getScriptInfoForPath(e.resolvedPath);return Sn.assert(!!t,"getScriptInfo",(()=>`scriptInfo for a file '${e.fileName}' Path: '${e.path}' / '${e.resolvedPath}' is missing.`)),t})):this.rootFiles}getExcludedFiles(){return she}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const t=_5(this.compilerOptions);t&&(e||(e=[])).push(t)}return e}const n=[];for(const t of this.program.getSourceFiles())e&&this.program.isSourceFileFromExternalLibrary(t)||n.push(t.fileName);if(!t){const e=this.program.getCompilerOptions().configFile;if(e&&(n.push(e.fileName),e.extendedSourceFiles))for(const t of e.extendedSourceFiles)n.push(t)}return n}getFileNamesWithRedirectInfo(e){return this.getFileNames().map((t=>({fileName:t,isSourceOfProjectReferenceRedirect:e&&this.isSourceOfProjectReferenceRedirect(t)})))}hasConfigFile(e){if(this.program&&this.languageServiceEnabled){const t=this.program.getCompilerOptions().configFile;if(t){if(e===t.fileName)return!0;if(t.extendedSourceFiles)for(const n of t.extendedSourceFiles)if(e===n)return!0}}return!1}containsScriptInfo(e){if(this.isRoot(e))return!0;if(!this.program)return!1;const t=this.program.getSourceFileByPath(e.path);return!!t&&t.resolvedPath===e.path}containsFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(e);return!(!n||!n.isScriptOpen()&&t)&&this.containsScriptInfo(n)}isRoot(e){var t;return this.rootFilesMap&&(null==(t=this.rootFilesMap.get(e.path))?void 0:t.info)===e}addRoot(e,t){Sn.assert(!this.isRoot(e)),this.rootFiles.push(e),this.rootFilesMap.set(e.path,{fileName:t||e.fileName,info:e}),e.attachToProject(this),this.markAsDirty()}addMissingFileRoot(e){const 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||(this.updatedFileNames=new Set)).add(e)}markFileAsDirty(e){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(e)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var e;!1===this.autoImportProviderHost?this.autoImportProviderHost=void 0:null==(e=this.autoImportProviderHost)||e.markAsDirty()}onPackageJsonChange(e){var t;(null==(t=this.packageJsonsForAutoImport)?void 0:t.has(e))&&(this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty())}onFileAddedOrRemoved(e){this.hasAddedorRemovedFiles=!0,e&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateGraph(){var e,t,n,r,i;null==(e=Fr)||e.push(Fr.Phase.Session,"updateGraph",{name:this.projectName,kind:eye[this.projectKind]}),null==(t=rr)||t.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const o=this.updateGraphWorker(),a=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const s=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||she;for(const e of s)this.cachedUnresolvedImportsPerFile.delete(e);this.languageServiceEnabled&&0===this.projectService.serverMode?((o||s.length)&&(this.lastCachedUnresolvedImportsList=fye(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,a)):this.lastCachedUnresolvedImportsList=void 0;const c=0===this.projectProgramVersion&&o;return o&&this.projectProgramVersion++,a&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),null==(n=this.autoImportProviderHost)||n.markAsDirty()),c&&this.getPackageJsonAutoImportProvider(),null==(r=rr)||r.logStopUpdateGraph(),null==(i=Fr)||i.pop(),!o}updateTypingFiles(e){mn(e,this.typingFiles,Bt(!this.useCaseSensitiveFileNames()),gt,(e=>this.detachScriptInfoFromProject(e)))&&(this.typingFiles=e,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&Kx(this.typingWatchers,Bx),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:TK})}watchTypingLocations(e){if(!e)return void(this.typingWatchers.isInvoked=!1);if(!e.length)return void this.closeWatchingTypingLocations();const t=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const n=(e,n)=>{const r=this.toPath(e);t.delete(r),this.typingWatchers.has(r)||this.typingWatchers.set(r,"FileWatcher"===n?this.projectService.watchFactory.watchFile(e,(()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke()),2e3,this.projectService.getWatchOptions(this),gH.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(e,(e=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):$o(e,".json")?xa(e,sa(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames())?this.writeLog("Ignoring package.json change at global typings location"):void this.onTypingInstallerWatchInvoke():this.writeLog("Ignoring files that are not *.json")),1,this.projectService.getWatchOptions(this),gH.TypingInstallerLocationDirectory,this))};for(const t of e){const e=ea(t);if("package.json"!==e&&"bower.json"!==e)if(Sa(this.currentDirectory,t,this.currentDirectory,!this.useCaseSensitiveFileNames())){const e=t.indexOf(Io,this.currentDirectory.length+1);n(-1!==e?t.substr(0,e):t,"DirectoryWatcher")}else Sa(this.projectService.typingsInstaller.globalTypingsCacheLocation,t,this.currentDirectory,!this.useCaseSensitiveFileNames())?n(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher"):n(t,"DirectoryWatcher");else n(t,"FileWatcher")}t.forEach(((e,t)=>{e.close(),this.typingWatchers.delete(t)}))}getCurrentProgram(){return this.program}removeExistingTypings(e){const t=oM(this.getCompilerOptions(),this.directoryStructureHost);return e.filter((e=>!t.includes(e)))}updateGraphWorker(){var e,t;const n=this.languageService.getCurrentProgram();Sn.assert(n===this.program),Sn.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const r=Yn(),{hasInvalidatedResolutions:i,hasInvalidatedLibResolutions:o}=this.resolutionCache.createHasInvalidatedResolutions(ht,ht);this.hasInvalidatedResolutions=i,this.hasInvalidatedLibResolutions=o,this.resolutionCache.startCachingPerDirectoryResolution(),this.program=this.languageService.getProgram(),this.dirty=!1,null==(e=Fr)||e.push(Fr.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,n),null==(t=Fr)||t.pop(),Sn.assert(void 0===n||void 0!==this.program);let a=!1;if(this.program&&(!n||this.program!==n&&2!==this.program.structureIsReused)){if(a=!0,n){for(const e of n.getSourceFiles()){const t=this.program.getSourceFileByPath(e.resolvedPath);(!t||e.resolvedPath===e.path&&t.resolvedPath!==e.path)&&this.detachScriptInfoFromProject(e.fileName,!!this.program.getSourceFileByPath(e.path),!0)}n.forEachResolvedProjectReference((e=>{this.program.getResolvedProjectReferenceByPath(e.sourceFile.path)||this.detachScriptInfoFromProject(e.sourceFile.fileName,void 0,!0)}))}if(JU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(e=>this.addMissingFileWatcher(e))),this.generatedFilesMap){const e=Ev(this.compilerOptions);pye(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(Yk(e)+".d.ts",this.generatedFilesMap)||this.clearGeneratedFileWatch():e?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach(((e,t)=>{const n=this.program.getSourceFileByPath(t);n&&n.resolvedPath===t&&this.isValidGeneratedFileWatcher(Dv(n.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),e)||(HU(e),this.generatedFilesMap.delete(t))}))}this.languageServiceEnabled&&0===this.projectService.serverMode&&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&&pp(this.changedFilesForExportMapCache,(e=>{const t=n.getSourceFileByPath(e),r=this.program.getSourceFileByPath(e);return t&&r?this.exportMapCache.onFileChanged(t,r,!!this.getTypeAcquisition().enable):(this.exportMapCache.clear(),!0)}))),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const s=this.externalFiles||she;this.externalFiles=this.getExternalFiles(),mn(this.externalFiles,s,Bt(!this.useCaseSensitiveFileNames()),(e=>{const t=this.projectService.getOrCreateScriptInfoNotOpenedByClient(e,this.currentDirectory,this.directoryStructureHost);null==t||t.attachToProject(this)}),(e=>this.detachScriptInfoFromProject(e)));const c=Yn()-r;return this.sendPerformanceEvent("UpdateGraph",c),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} Version: ${this.getProjectVersion()} structureChanged: ${a}${this.program?` structureIsReused:: ${Hr[this.program.structureIsReused]}`:""} Elapsed: ${c}ms`),this.projectService.logger.isTestLogger?this.program!==n?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==n&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),a}sendPerformanceEvent(e,t){this.projectService.sendPerformanceEvent(e,t)}detachScriptInfoFromProject(e,t,n){const r=this.projectService.getScriptInfo(e);r&&(r.detachFromProject(this),t||this.resolutionCache.removeResolutionsOfFile(r.path,n))}addMissingFileWatcher(e){var t;if(gye(this)){const n=this.projectService.configFileExistenceInfoCache.get(e);if(null==(t=null==n?void 0:n.config)?void 0:t.projects.has(this.canonicalConfigFilePath))return fH}const n=this.projectService.watchFactory.watchFile(e,((t,r)=>{gye(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(t,e,r),0===r&&this.missingFilesMap.has(e)&&(this.missingFilesMap.delete(e),n.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}),500,this.projectService.getWatchOptions(this),gH.MissingFile,this);return n}isWatchedMissingFile(e){return!!this.missingFilesMap&&this.missingFilesMap.has(e)}addGeneratedFileWatch(e,t){if(Ev(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(e));else{const n=this.toPath(t);if(this.generatedFilesMap){if(pye(this.generatedFilesMap))return void Sn.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);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),gH.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(pye(this.generatedFilesMap)?HU(this.generatedFilesMap):Kx(this.generatedFilesMap,HU),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?lhe.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.isInitialLoadPending())return"\tFiles (0) InitialLoadPending\n";if(!this.program)return"\tFiles (0) NoProgram\n";const r=this.program.getSourceFiles();let i=`\tFiles (${r.length})\n`;if(e){for(const e of r)i+=`\t${e.fileName}${n?` ${e.version} ${JSON.stringify(e.text)}`:""}\n`;t&&(i+="\n\n",PH(this.program,(e=>i+=`\t${e}\n`)))}return i}print(e,t,n){this.writeLog(`Project '${this.projectName}' (${eye[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)}setCompilerOptions(e){var t;if(e){e.allowNonTsExtensions=!0;const n=this.compilerOptions;this.compilerOptions=e,this.setInternalCompilerOptionsForEmittingJsFiles(),null==(t=this.noDtsResolutionProject)||t.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),sp(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){var n,r;const i=t?e=>$e(e.entries(),(([e,t])=>({fileName:e,isSourceOfProjectReferenceRedirect:t}))):e=>$e(e.keys());this.isInitialLoadPending()||cve(this);const o={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:mye(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},a=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&e===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!a)return{info:o,projectErrors:this.getGlobalProjectErrors()};const e=this.lastReportedFileNames,r=(null==(n=this.externalFiles)?void 0:n.map((e=>({fileName:fhe(e),isSourceOfProjectReferenceRedirect:!1}))))||she,s=Xe(this.getFileNamesWithRedirectInfo(!!t).concat(r),(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),c=new Map,l=new Map,_=a?$e(a.keys()):[],u=[];return dp(s,((n,r)=>{e.has(r)?t&&n!==e.get(r)&&u.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):c.set(r,n)})),dp(e,((e,t)=>{s.has(t)||l.set(t,e)})),this.lastReportedFileNames=s,this.lastReportedVersion=this.projectProgramVersion,{info:o,changes:{added:i(c),removed:i(l),updated:t?_.map((e=>({fileName:e,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(e)}))):_,updatedRedirects:t?u:void 0},projectErrors:this.getGlobalProjectErrors()}}{const e=this.getFileNamesWithRedirectInfo(!!t),n=(null==(r=this.externalFiles)?void 0:r.map((e=>({fileName:fhe(e),isSourceOfProjectReferenceRedirect:!1}))))||she,i=e.concat(n);return this.lastReportedFileNames=Xe(i,(e=>e.fileName),(e=>e.isSourceOfProjectReferenceRedirect)),this.lastReportedVersion=this.projectProgramVersion,{info:o,files:t?i:i.map((e=>e.fileName)),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(e){Qt(this.rootFiles,e),this.rootFilesMap.delete(e.path)}isSourceOfProjectReferenceRedirect(e){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(e)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,sa(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(e){if(!this.projectService.globalPlugins.length)return;const t=this.projectService.host;if(!t.require&&!t.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const n=this.getGlobalPluginSearchPaths();for(const 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("function"!=typeof e)return void this.projectService.logger.info(`Skipped loading plugin ${t.name} because it did not expose a proper factory function`);const n={config:t,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},r=e({typescript:cbe}),i=r.create(n);for(const 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 0!==this.projectService.serverMode?she:this.projectService.getPackageJsonsVisibleToFile(e,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e)}getPackageJsonsForAutoImport(e){const t=this.getPackageJsonsVisibleToFile(sa(this.currentDirectory,rV),e);return this.packageJsonsForAutoImport=new Set(t.map((e=>e.fileName))),t}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=y0(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!UZ(this.currentDirectory)&&this.isDefaultProjectForOpenFiles()?this.projectService.includePackageJsonAutoImports():0}getHostForAutoImportProvider(){var e,t;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||(null==(e=this.projectService.host.realpath)?void 0:e.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:null==(t=this.projectService.host.trace)?void 0:t.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(!1===this.autoImportProviderHost)return;if(0!==this.projectService.serverMode)return void(this.autoImportProviderHost=!1);if(this.autoImportProviderHost)return cve(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()?(this.autoImportProviderHost.close(),void(this.autoImportProviderHost=void 0)):this.autoImportProviderHost.getCurrentProgram();const r=this.includePackageJsonAutoImports();if(r){null==(e=Fr)||e.push(Fr.Phase.Session,"getPackageJsonAutoImportProvider");const i=Yn();if(this.autoImportProviderHost=oye.create(r,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return cve(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Yn()-i),null==(t=Fr)||t.pop(),this.autoImportProviderHost.getCurrentProgram();null==(n=Fr)||n.pop()}}isDefaultProjectForOpenFiles(){return!!dp(this.projectService.openFiles,((e,t)=>this.projectService.tryGetDefaultProjectForFile(fhe(t))===this))}watchNodeModulesForPackageJsonChanges(e){return this.projectService.watchPackageJsonsInNodeModules(this.toPath(e),this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(e){return Sn.assert(0===this.projectService.serverMode),this.noDtsResolutionProject||(this.noDtsResolutionProject=new rye(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==e&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[e]),this.noDtsResolutionProject.rootFile=e),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:r,lib:r,noLib:!0}}},nye=class extends tye{constructor(e,t,n,r,i,o,a){super(e.newInferredProjectName(),0,e,t,void 0,void 0,n,!1,r,e.host,o),this._isJsInferredProject=!1,this.typeAcquisition=a,this.projectRootPath=i&&e.toCanonicalFileName(i),i||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;const t=CQ(e||this.getCompilationSettings());this._isJsInferredProject&&"number"!=typeof t.maxNodeModuleJsDepth?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){Sn.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.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&N(this.getRootScriptInfos(),(e=>!e.isJavaScript()))&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||1===this.getRootScriptInfos().length}close(){b(this.getRootScriptInfos(),(e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e))),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:_ye(this),include:r,exclude:r}}},rye=class extends tye{constructor(e,t,n,r){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,n,!1,void 0,e.host,r)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},(iye=class e extends tye{constructor(e,t,n,r){super(e.projectService.newAutoImportProviderProjectName(),3,e.projectService,n,!1,void 0,r,!1,e.getWatchOptions(),e.projectService.host,e.currentDirectory),this.hostProject=e,this.rootFileNames=t,this.useSourceOfProjectReferenceRedirect=it(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=it(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(e,t,n,i){var o,a;if(!e)return r;const s=t.getCurrentProgram();if(!s)return r;const c=Yn();let l,_;const u=sa(t.currentDirectory,rV),d=t.getPackageJsonsForAutoImport(sa(t.currentDirectory,u));for(const e of d)null==(o=e.dependencies)||o.forEach(((e,t)=>f(t))),null==(a=e.peerDependencies)||a.forEach(((e,t)=>f(t)));let p=0;if(l){const o=t.getSymlinkCache();for(const a of $e(l.keys())){if(2===e&&p>this.maxDependencies)return t.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),r;const c=iM(a,t.currentDirectory,i,n,s.getModuleResolutionCache());if(c){const e=m(c,s,o);if(e){_=oe(_,e),p+=e.length?1:0;continue}}if(!b([t.currentDirectory,t.getGlobalTypingsCacheLocation()],(e=>{if(e){const t=iM(`@types/${a}`,e,i,n,s.getModuleResolutionCache());if(t){const e=m(t,s,o);return _=oe(_,e),p+=(null==e?void 0:e.length)?1:0,!0}}}))&&(c&&i.allowJs&&i.maxNodeModuleJsDepth)){const e=m(c,s,o,!0);_=oe(_,e),p+=(null==e?void 0:e.length)?1:0}}}return(null==_?void 0:_.length)&&t.log(`AutoImportProviderProject: found ${_.length} root files in ${p} dependencies in ${Yn()-c} ms`),_||r;function f(e){an(e,"@types/")||(l||(l=new Set)).add(e)}function m(e,r,o,a){var s;const c=qM(e,i,n,r.getModuleResolutionCache(),a);if(c){const i=null==(s=n.realpath)?void 0:s.call(n,e.packageDirectory),a=i?t.toPath(i):void 0,l=a&&a!==t.toPath(e.packageDirectory);return l&&o.setSymlinkedDirectory(e.packageDirectory,{real:ma(i),realPath:ma(a)}),G(c,(t=>{const n=l?t.replace(e.packageDirectory,i):t;if(!(r.getSourceFile(n)||l&&r.getSourceFile(t)))return n}))}}}static create(t,n,r,i){if(0===t)return;const o={...n.getCompilerOptions(),...this.compilerOptionsOverrides},a=this.getRootFileNames(t,n,r,o);return a.length?new e(n,a,i,o):void 0}isEmpty(){return!re(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=e.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;const n=this.getCurrentProgram(),r=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),r}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var e;return!!(null==(e=this.rootFileNames)?void 0:e.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||r}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var e;return null==(e=this.hostProject.getCurrentProgram())?void 0:e.getModuleResolutionCache()}}).maxDependencies=10,iye.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:r,lib:r,noLib:!0},oye=iye,aye=class extends tye{constructor(e,t,n,r,i){super(e,1,n,r,!1,void 0,{},!1,void 0,i,Zo(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=yt,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){const t=ua(e),n=this.projectService.toCanonicalFileName(t);let 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&&0===this.projectService.serverMode&&this.projectService.watchWildcards(t,r,this),r.exists?r.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(ua(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){const e=this.isInitialLoadPending();this.isInitialLoadPending=ht;const t=this.pendingUpdateLevel;let n;switch(this.pendingUpdateLevel=0,t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const t=Sn.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,t,e,!1),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){Sn.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return null==(t=this.getCurrentProgram())?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!(null==(t=e.plugins)?void 0:t.length)&&!this.projectService.globalPlugins.length)return;const n=this.projectService.host;if(!n.require&&!n.importPlugin)return void this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");const r=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const e=Zo(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${e} to search paths`),r.unshift(e)}if(e.plugins)for(const t of e.plugins)this.enablePlugin(t,r);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return M(this.projectErrors,(e=>!e.file))||she}getAllProjectErrors(){return this.projectErrors||she}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()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return 0===this.getRootFilesMap().size&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return eve(this,e.path,(t=>sve(t,e)?t:void 0),0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!(null==(e=t.openFilesImpactedByConfigFile)?void 0:e.size):!!t.openFilesImpactedByConfigFile&&dp(t.openFilesImpactedByConfigFile,((e,t)=>{const n=this.projectService.getScriptInfoForPath(t);return this.containsScriptInfo(n)||!!eve(this,n.path,(e=>e.containsScriptInfo(n)),0)}))||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return Yj(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){ej(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},sye=class extends tye{constructor(e,t,n,r,i,o,a,s){super(e,2,t,n,!0,i,r,o,s,t.host,Zo(a||oa(e))),this.externalProjectName=e,this.compileOnSaveEnabled=o,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function Vye(e){const t=new Map;for(const n of e)if("object"==typeof n.type){const e=n.type;e.forEach((e=>{Sn.assert("number"==typeof e)})),t.set(n.name,e)}return t}function Wye(e){return dt(e.indentStyle)&&(e.indentStyle=Lye.get(e.indentStyle.toLowerCase()),Sn.assert(void 0!==e.indentStyle)),e}function Hye(e){return Iye.forEach(((t,n)=>{const r=e[n];dt(r)&&(e[n]=t.get(r.toLowerCase()))})),e}function $ye(e,t){let n,r;return yO.forEach((i=>{const o=e[i.name];if(void 0===o)return;const a=Oye.get(i.name);(n||(n={}))[i.name]=a?dt(o)?a.get(o.toLowerCase()):o:dj(i,o,t||"",r||(r=[]))})),n&&{watchOptions:n,errors:r}}function Kye(e){let t;return IO.forEach((n=>{const r=e[n.name];void 0!==r&&((t||(t={}))[n.name]=r)})),t}function Gye(e){return dt(e)?Xye(e):e}function Xye(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function Qye(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}function Yye(e,t){for(const n of t)if(n.getProjectName()===e)return n}function Zye(e){return!!e.containingProjects}function eve(e,t,n,r,i){var o;const a=null==(o=e.getCurrentProgram())?void 0:o.getResolvedProjectReferences();if(!a)return;let s;const c=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(c){const t=fhe(c.sourceFile.fileName),i=e.projectService.findConfiguredProjectByProjectName(t);if(i){const e=n(i);if(e)return e}else if(0!==r){s=new Map;const t=tve(a,e.getCompilerOptions(),((e,t)=>c===e?l(e,t):void 0),r,e.projectService,s);if(t)return t;s.clear()}}return tve(a,e.getCompilerOptions(),((e,t)=>c!==e?l(e,t):void 0),r,e.projectService,s);function l(t,r){const o=fhe(t.sourceFile.fileName),a=e.projectService.findConfiguredProjectByProjectName(o)||(0===r?void 0:1===r?e.projectService.createConfiguredProject(o):2===r?e.projectService.createAndLoadConfiguredProject(o,i):Sn.assertNever(r));return a&&n(a)}}function tve(e,t,n,r,i,o){const a=t.disableReferencedProjectLoad?0:r;return b(e,(e=>{if(!e)return;const t=fhe(e.sourceFile.fileName),r=i.toCanonicalFileName(t),s=null==o?void 0:o.get(r);if(void 0!==s&&s>=a)return;const c=n(e,a);return c||((o||(o=new Map)).set(r,a),e.references&&tve(e.references,e.commandLine.options,n,a,i,o))}))}function nve(e,t){return e.potentialProjectReferences&&pp(e.potentialProjectReferences,t)}function rve(e,t,n){const r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function ive(e,t){return function(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?nve(e,r):b(e.getProjectReferences(),n)}(e,(n=>rve(e,t,n.sourceFile.path)),(n=>rve(e,t,e.toPath(QV(n)))),(n=>rve(e,t,n)))}function ove(e,t){return`${dt(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function ave(e){return!e.isScriptOpen()&&void 0!==e.mTime}function sve(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function cve(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function lve(e){gye(e)&&(e.projectOptions=!0)}function _ve(e){let t=1;return()=>e(t++)}function uve(){return{idToCallbacks:new Map,pathToId:new Map}}function dve(e,t){if(!t||!e.eventHandler||!e.session)return;const n=uve(),r=uve(),i=uve();let o=1;return e.session.addProtocolHandler("watchChange",(e=>(function({id:e,path:t,eventType:o}){(function(e,t,r){var i;null==(i=n.idToCallbacks.get(e))||i.forEach((e=>{e(t,"create"===r?0:"delete"===r?2:1)}))})(e,t,o),s(r,e,t,o),s(i,e,t,o)}(e.arguments),{responseRequired:!1}))),{watchFile:function(e,t){return a(n,e,t,(t=>({eventName:Fye,data:{id:t,path:e}})))},watchDirectory:function(e,t,n){return a(n?i:r,e,t,(t=>({eventName:Pye,data:{id:t,path:e,recursive:!!n}})))},getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function a({pathToId:t,idToCallbacks:n},r,i,a){const s=e.toPath(r);let c=t.get(s);c||t.set(s,c=o++);let l=n.get(c);return l||(n.set(c,l=new Set),e.eventHandler(a(c))),l.add(i),{close(){const r=n.get(c);(null==r?void 0:r.delete(i))&&(r.size||(n.delete(c),t.delete(s),e.eventHandler({eventName:Eye,data:{id:c}})))}}}function s({idToCallbacks:e},t,n,r){var i;"update"!==r&&(null==(i=e.get(t))||i.forEach((e=>{e(n)})))}}function pve(e){return void 0!==e.kind}function fve(e){e.print(!1,!1,!1)}var mve=g({"src/server/editorServices.ts"(){lbe(),sbe(),Uhe(),vye=20971520,bye=4194304,xye="projectsUpdatedInBackground",Sye="projectLoadingStart",kye="projectLoadingFinish",Tye="largeFileReferenced",Cye="configFileDiag",wye="projectLanguageServiceState",Nye="projectInfo",Dye="openFileInfo",Fye="createFileWatcher",Pye="createDirectoryWatcher",Eye="closeFileWatcher",Aye="*ensureProjectForOpenFiles*",Iye=Vye(kO),Oye=Vye(yO),Lye=new Map(Object.entries({none:0,block:1,smart:2})),jye={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,"$"]]}},Mye={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){const r=na(e);r&&re(t,(e=>e.extension===r&&(n=e.scriptKind,!0)))}return n},hasMixedContent:(e,t)=>re(t,(t=>t.isMixedContent&&$o(e,t.extension)))},Rye={getFileName:e=>e.fileName,getScriptKind:e=>Gye(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},Bye={close:gt},Jye=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(Jye||{}),(zye=class e{constructor(e){var t;this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=_ve(vhe),this.newAutoImportProviderProjectName=_ve(bhe),this.newAuxiliaryProjectName=_ve(xhe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,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=jye,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.verifyDocumentRegistry=gt,this.verifyProgram=gt,this.onProjectCreation=gt,this.host=e.host,this.logger=e.logger,this.cancellationToken=e.cancellationToken,this.useSingleInferredProject=e.useSingleInferredProject,this.useInferredProjectPerProjectRoot=e.useInferredProjectPerProjectRoot,this.typingsInstaller=e.typingsInstaller||Xhe,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||she,this.pluginProbeLocations=e.pluginProbeLocations||she,this.allowLocalPluginLoads=!!e.allowLocalPluginLoads,this.typesMapLocation=void 0===e.typesMapLocation?sa(Zo(this.getExecutingFilePath()),"typesMap.json"):e.typesMapLocation,this.session=e.session,this.jsDocParsingMode=e.jsDocParsingMode,void 0!==e.serverMode?this.serverMode=e.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=ot()),this.currentDirectory=fhe(this.host.getCurrentDirectory()),this.toCanonicalFileName=tn(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?ma(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new khe(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new Qhe(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:EG(this.host.newLine),preferences:_G,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=H0(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const n=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,r=0!==n?e=>this.logger.info(e):gt;this.packageJsonCache=yve(this),this.watchFactory=0!==this.serverMode?{watchFile:mH,watchDirectory:mH}:VU(dve(this,e.canUseWatchEvents)||this.host,n,r,ove),null==(t=e.incrementalVerifier)||t.call(e,this)}toPath(e){return pa(e,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(e){return _a(e,this.host.getCurrentDirectory())}setDocument(e,t,n){Sn.checkDefined(this.getScriptInfoForPath(t)).cacheSourceFile={key:e,sourceFile:n}}getDocument(e,t){const 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;const n={eventName:wye,data:{project:e,languageServiceEnabled:t}};this.eventHandler(n)}loadTypesMap(){try{const e=this.host.readFile(this.typesMapLocation);if(void 0===e)return void this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);const t=JSON.parse(e);for(const e of Object.keys(t.typesMap))t.typesMap[e].match=new RegExp(t.typesMap[e].match,"i");this.safelist=t.typesMap;for(const e in t.simpleMap)ze(t.simpleMap,e)&&this.legacySafelist.set(e,t.simpleMap[e].toLowerCase())}catch(e){this.logger.info(`Error loading types map: ${e}`),this.safelist=jye,this.legacySafelist.clear()}}updateTypingsForProject(e){const t=this.findProject(e.projectName);if(t)switch(e.kind){case kK:return void t.updateTypingFiles(this.typingsCache.updateTypingsForProject(e.projectName,e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings));case TK:return void this.typingsCache.enqueueInstallTypingsForProject(t,t.lastCachedUnresolvedImportsList,!0)}}watchTypingLocations(e){var t;null==(t=this.findProject(e.projectName))||t.watchTypingLocations(e.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(Aye,2500,(()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())})))}delayUpdateProjectGraph(e){if(e.markAsDirty(),yye(e))return;const t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,(()=>{this.pendingProjectUpdates.delete(t)&&cve(e)}))}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:xye,data:{openFiles:$e(this.openFiles.keys(),(e=>this.getScriptInfoForPath(e).fileName))}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;const n={eventName:Tye,data:{file:e,fileSize:t,maxFileSize:bye}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const n={eventName:Sye,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const t={eventName:kye,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(const n of e)t&&n.clearSourceMapperCache(),this.delayUpdateProjectGraph(n);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(e,t){Sn.assert(void 0===t||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const n=Hye(e),r=$ye(e,t),i=Kye(e);n.allowNonTsExtensions=!0;const o=t&&this.toCanonicalFileName(t);o?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(o,n),this.watchOptionsForInferredProjectsPerProjectRoot.set(o,r||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(o,i)):(this.compilerOptionsForInferredProjects=n,this.watchOptionsForInferredProjects=r,this.typeAcquisitionForInferredProjects=i);for(const e of this.inferredProjects)(o?e.projectRootPath!==o:e.projectRootPath&&this.compilerOptionsForInferredProjectsPerProjectRoot.has(e.projectRootPath))||(e.setCompilerOptions(n),e.setTypeAcquisition(i),e.setWatchOptions(null==r?void 0:r.watchOptions),e.setProjectErrors(null==r?void 0:r.errors),e.compileOnSaveEnabled=n.compileOnSave,e.markAsDirty(),this.delayUpdateProjectGraph(e));this.delayEnsureProjectForOpenFiles()}findProject(e){if(void 0!==e)return yhe(e)?Yye(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(fhe(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){const t=dt(e)?this.getScriptInfoForNormalizedPath(e):e;return t&&!t.isOrphan()?t.getDefaultProject():void 0}ensureDefaultProjectForFile(e){return this.tryGetDefaultProjectForFile(e)||this.doEnsureDefaultProjectForFile(e)}doEnsureDefaultProjectForFile(e){this.ensureProjectStructuresUptoDate();const t=dt(e)?this.getScriptInfoForNormalizedPath(e):e;return t?t.getDefaultProject():(this.logErrorForScriptInfoNotFound(dt(e)?e:e.fileName),lhe.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const t=t=>{e=cve(t)||e};this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),e&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(e){const t=this.getScriptInfoForNormalizedPath(e);return t&&t.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(e){const t=this.getScriptInfoForNormalizedPath(e);return{...this.hostConfiguration.preferences,...t&&t.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(e,t){2===t?this.handleDeletedFile(e):e.isScriptOpen()||(e.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(e.containingProjects,!1),this.handleSourceMapProjects(e))}handleSourceMapProjects(e){if(e.sourceMapFilePath)if(dt(e.sourceMapFilePath)){const t=this.getScriptInfoForPath(e.sourceMapFilePath);this.delayUpdateSourceInfoProjects(t&&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){const t=this.getScriptInfoForPath(e);t&&this.delayUpdateProjectGraphs(t.containingProjects,!0)}handleDeletedFile(e){if(this.stopWatchingScriptInfo(e),!e.isScriptOpen()){this.deleteScriptInfo(e);const t=e.containingProjects.slice();if(e.detachAllProjects(),this.delayUpdateProjectGraphs(t,!1),this.handleSourceMapProjects(e),e.closeSourceMapFileWatcher(),e.declarationInfoPath){const t=this.getScriptInfoForPath(e.declarationInfoPath);t&&(t.sourceMapFilePath=void 0)}}}watchWildcardDirectory(e,t,n,r){return this.watchFactory.watchDirectory(e,(t=>{const i=this.toPath(t),o=r.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(t,i);"package.json"===ea(i)&&!UZ(i)&&(o&&o.fileExists||!o&&this.host.fileExists(i))&&(this.logger.info(`Config: ${n} Detected new package.json: ${t}`),this.onAddPackageJson(i));const a=this.findConfiguredProjectByProjectName(n);qU({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:i,configFileName:n,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:r.parsedCommandLine.options,program:(null==a?void 0:a.getCurrentProgram())||r.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:e=>this.logger.info(e),toPath:e=>this.toPath(e),getScriptKind:a?e=>a.getScriptKind(e):void 0})||(2!==r.updateLevel&&(r.updateLevel=1),r.projects.forEach(((e,t)=>{if(!e)return;const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);if(!n)return;const r=a===n?1:0;if(!(void 0!==n.pendingUpdateLevel&&n.pendingUpdateLevel>r))if(this.openFiles.has(i)){if(Sn.checkDefined(this.getScriptInfoForPath(i)).isAttached(n)){const e=Math.max(r,n.openFileWatchTriggered.get(i)||0);n.openFileWatchTriggered.set(i,e)}else n.pendingUpdateLevel=r,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(n)}else n.pendingUpdateLevel=r,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(n)})))}),t,this.getWatchOptionsFromProjectWatchOptions(r.parsedCommandLine.watchOptions),gH.WildcardDirectory,n)}delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,t){const n=this.configFileExistenceInfoCache.get(e);if(!(null==n?void 0:n.config))return!1;let r=!1;return n.config.updateLevel=2,n.config.projects.forEach(((n,i)=>{const o=this.getConfiguredProjectByCanonicalConfigFilePath(i);if(o)if(r=!0,i===e){if(o.isInitialLoadPending())return;o.pendingUpdateLevel=2,o.pendingUpdateReason=t,this.delayUpdateProjectGraph(o)}else o.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(e)),this.delayUpdateProjectGraph(o)})),r}onConfigFileChanged(e,t){var n;const r=this.configFileExistenceInfoCache.get(e);if(2===t){r.exists=!1;const t=(null==(n=r.config)?void 0:n.projects.has(e))?this.getConfiguredProjectByCanonicalConfigFilePath(e):void 0;t&&this.removeProject(t)}else r.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,"Change in config file detected"),this.reloadConfiguredProjectForFiles(r.openFilesImpactedByConfigFile,!1,!0,2!==t?bt:yt,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(e){switch(this.logger.info("`remove Project::"),e.print(!0,!0,!1),e.close(),Sn.shouldAssert(1)&&this.filenameToScriptInfo.forEach((t=>Sn.assert(!t.isAttached(e),"Found script Info still attached to project",(()=>`${e.projectName}: ScriptInfos still attached: ${JSON.stringify($e(X(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:en(this.externalProjects,e),this.projectToSizeMap.delete(e.getProjectName());break;case 1:this.configuredProjects.delete(e.canonicalConfigFilePath),this.projectToSizeMap.delete(e.canonicalConfigFilePath);break;case 0:en(this.inferredProjects,e)}}assignOrphanScriptInfoToInferredProject(e,t){Sn.assert(e.isOrphan());const n=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(e.isDynamic?t||this.currentDirectory:Zo(zo(e.fileName)?e.fileName:_a(e.fileName,t?this.getNormalizedAbsolutePath(t):this.currentDirectory)));if(n.addRoot(e),e.containingProjects[0]!==n&&(e.detachFromProject(n),e.containingProjects.unshift(n)),n.updateGraph(),!this.useSingleInferredProject&&!n.projectRootPath)for(const e of this.inferredProjects){if(e===n||e.isOrphan())continue;const t=e.getRootScriptInfos();Sn.assert(1===t.length||!!e.projectRootPath),1===t.length&&b(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)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(n,e)}))}closeOpenFile(e,t){const n=!e.isDynamic&&this.host.fileExists(e.fileName);e.close(n),this.stopWatchingConfigFilesForClosedScriptInfo(e);const r=this.toCanonicalFileName(e.fileName);this.openFilesWithNonRootedDiskPath.get(r)===e&&this.openFilesWithNonRootedDiskPath.delete(r);let i=!1;for(const t of e.containingProjects){if(gye(t)){e.hasMixedContent&&e.registerFileUpdate();const n=t.openFileWatchTriggered.get(e.path);void 0!==n&&(t.openFileWatchTriggered.delete(e.path),void 0!==t.pendingUpdateLevel&&t.pendingUpdateLevel<n&&(t.pendingUpdateLevel=n,t.markFileAsDirty(e.path)))}else mye(t)&&t.isRoot(e)&&(t.isProjectWithSingleRoot()&&(i=!0),t.removeFile(e,n,!0));t.languageServiceEnabled||t.markAsDirty()}return this.openFiles.delete(e.path),this.configFileForOpenFiles.delete(e.path),!t&&i&&this.assignOrphanScriptInfosToInferredProject(),n?this.watchClosedScriptInfo(e):this.handleDeletedFile(e),i}deleteScriptInfo(e){this.filenameToScriptInfo.delete(e.path),this.filenameToScriptInfoVersion.set(e.path,e.textStorage.version);const t=e.getRealpathIfDifferent();t&&this.realpathToScriptInfos.remove(t,e)}configFileExists(e,t,n){var r;let i=this.configFileExistenceInfoCache.get(t);if(i)return Zye(n)&&!(null==(r=i.openFilesImpactedByConfigFile)?void 0:r.has(n.path))&&(i.openFilesImpactedByConfigFile||(i.openFilesImpactedByConfigFile=new Map)).set(n.path,!1),i.exists;const o=this.host.fileExists(e);let a;return Zye(n)&&(a||(a=new Map)).set(n.path,!1),i={exists:o,openFilesImpactedByConfigFile:a},this.configFileExistenceInfoCache.set(t,i),o}createConfigFileWatcherForParsedConfig(e,t,n){var r,i;const o=this.configFileExistenceInfoCache.get(t);o.watcher&&o.watcher!==Bye||(o.watcher=this.watchFactory.watchFile(e,((e,n)=>this.onConfigFileChanged(t,n)),2e3,this.getWatchOptionsFromProjectWatchOptions(null==(i=null==(r=null==o?void 0:o.config)?void 0:r.parsedCommandLine)?void 0:i.watchOptions),gH.ConfigFile,n));const a=o.config.projects;a.set(n.canonicalConfigFilePath,a.get(n.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(e){return e.openFilesImpactedByConfigFile&&dp(e.openFilesImpactedByConfigFile,bt)}releaseParsedConfig(e,t){var n,r,i;const o=this.configFileExistenceInfoCache.get(e);(null==(n=o.config)?void 0:n.projects.delete(t.canonicalConfigFilePath))&&((null==(r=o.config)?void 0:r.projects.size)||(o.config=void 0,MU(e,this.sharedExtendedConfigFileWatchers),Sn.checkDefined(o.watcher),(null==(i=o.openFilesImpactedByConfigFile)?void 0:i.size)?this.configFileExistenceImpactsRootOfInferredProject(o)?QW(ra(Zo(e)))||(o.watcher.close(),o.watcher=Bye):(o.watcher.close(),o.watcher=void 0):(o.watcher.close(),this.configFileExistenceInfoCache.delete(e))))}closeConfigFileWatcherOnReleaseOfOpenFile(e){!e.watcher||e.config||this.configFileExistenceImpactsRootOfInferredProject(e)||(e.watcher.close(),e.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(e){Sn.assert(!e.isScriptOpen()),this.forEachConfigFileLocation(e,(t=>{var n,r,i;const o=this.configFileExistenceInfoCache.get(t);if(o){const a=null==(n=o.openFilesImpactedByConfigFile)?void 0:n.get(e.path);null==(r=o.openFilesImpactedByConfigFile)||r.delete(e.path),a&&this.closeConfigFileWatcherOnReleaseOfOpenFile(o),(null==(i=o.openFilesImpactedByConfigFile)?void 0:i.size)||o.config||(Sn.assert(!o.watcher),this.configFileExistenceInfoCache.delete(t))}}))}startWatchingConfigFilesForInferredProjectRoot(e){Sn.assert(e.isScriptOpen()),this.forEachConfigFileLocation(e,((t,n)=>{let r=this.configFileExistenceInfoCache.get(t);r||(r={exists:this.host.fileExists(n)},this.configFileExistenceInfoCache.set(t,r)),(r.openFilesImpactedByConfigFile||(r.openFilesImpactedByConfigFile=new Map)).set(e.path,!0),r.watcher||(r.watcher=QW(ra(Zo(t)))?this.watchFactory.watchFile(n,((e,n)=>this.onConfigFileChanged(t,n)),2e3,this.hostConfiguration.watchOptions,gH.ConfigFileForInferredRoot):Bye)}))}stopWatchingConfigFilesForInferredProjectRoot(e){this.forEachConfigFileLocation(e,(t=>{var n;const r=this.configFileExistenceInfoCache.get(t);(null==(n=null==r?void 0:r.openFilesImpactedByConfigFile)?void 0:n.has(e.path))&&(Sn.assert(e.isScriptOpen()),r.openFilesImpactedByConfigFile.set(e.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(r))}))}forEachConfigFileLocation(e,t){if(0!==this.serverMode)return;Sn.assert(!Zye(e)||this.openFiles.has(e.path));const n=this.openFiles.get(e.path);if(Sn.checkDefined(this.getScriptInfo(e.path)).isDynamic)return;let r=Zo(e.fileName);const i=()=>Sa(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),o=!n||!i();let a=!e.configFileInfo;do{if(a){const e=mhe(r,this.currentDirectory,this.toCanonicalFileName),n=sa(r,"tsconfig.json");let i=t(sa(e,"tsconfig.json"),n);if(i)return n;const o=sa(r,"jsconfig.json");if(i=t(sa(e,"jsconfig.json"),o),i)return o;if(Pa(e))break}const e=Zo(r);if(e===r)break;r=e,a=!0}while(o||i())}findDefaultConfiguredProject(e){if(!e.isScriptOpen())return;const t=this.getConfigFileNameForFile(e),n=t&&this.findConfiguredProjectByProjectName(t);return n&&sve(n,e)?n:null==n?void 0:n.getDefaultChildProjectFromProjectWithReferences(e)}getConfigFileNameForFile(e){if(Zye(e)){Sn.assert(e.isScriptOpen());const t=this.configFileForOpenFiles.get(e.path);if(void 0!==t)return t||void 0}this.logger.info(`Search path: ${Zo(e.fileName)}`);const t=this.forEachConfigFileLocation(e,((t,n)=>this.configFileExists(n,t,e)));return t?this.logger.info(`For info: ${e.fileName} :: Config file name: ${t}`):this.logger.info(`For info: ${e.fileName} :: No config files found.`),Zye(e)&&this.configFileForOpenFiles.set(e.path,t||!1),t}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(fve),this.configuredProjects.forEach(fve),this.inferredProjects.forEach(fve),this.logger.info("Open files: "),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);this.logger.info(`\tFileName: ${n.fileName} ProjectRootPath: ${e}`),this.logger.info(`\t\tProjects: ${n.containingProjects.map((e=>e.getProjectName()))}`)})),this.logger.endGroup())}findConfiguredProjectByProjectName(e){const t=this.toCanonicalFileName(e);return this.getConfiguredProjectByCanonicalConfigFilePath(t)}getConfiguredProjectByCanonicalConfigFilePath(e){return this.configuredProjects.get(e)}findExternalProjectByProjectName(e){return Yye(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let i=vye;this.projectToSizeMap.set(e,0),this.projectToSizeMap.forEach((e=>i-=e||0));let o=0;for(const e of n){const t=r.getFileName(e);if(!Hk(t)&&(o+=this.host.getFileSize(t),o>vye||o>i)){const e=n.map((e=>r.getFileName(e))).filter((e=>!Hk(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 (${o}). Largest files: ${e.map((e=>`${e.name}:${e.size}`)).join(", ")}`),t}}this.projectToSizeMap.set(e,o)}createExternalProject(e,t,n,r,i){const o=Hye(n),a=$ye(n,Zo(oa(e))),s=new sye(e,this,this.documentRegistry,o,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,o,t,Rye),void 0===n.compileOnSave||n.compileOnSave,void 0,null==a?void 0:a.watchOptions);return s.setProjectErrors(null==a?void 0:a.errors),s.excludedFiles=i,this.addFilesToNonInferredProject(s,t,Rye,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void lve(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void lve(e);const n=gye(e)?e.projectOptions:void 0;lve(e);const r={projectId:this.host.createSHA256Hash(e.projectName),fileStats:lye(e.getScriptInfos(),!0),compilerOptions:Nj(e.getCompilationSettings()),typeAcquisition:function({enable:e,include:t,exclude:n}){return{enable:e,include:void 0!==t&&0!==t.length,exclude:void 0!==n&&0!==n.length}}(e.getTypeAcquisition()),extends:n&&n.configHasExtendsProperty,files:n&&n.configHasFilesProperty,include:n&&n.configHasIncludeProperty,exclude:n&&n.configHasExcludeProperty,compileOnSave:e.compileOnSaveEnabled,configFileName:function(){if(!gye(e))return"other";return whe(e.getConfigFilePath())||"other"}(),projectType:e instanceof sye?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:t};this.eventHandler({eventName:Nye,data:r})}addFilesToNonInferredProject(e,t,n,r){this.updateNonInferredProjectFiles(e,t,n),e.setTypeAcquisition(r),e.markAsDirty()}createConfiguredProject(e){var t;null==(t=Fr)||t.instant(Fr.Phase.Session,"createConfiguredProject",{configFilePath:e}),this.logger.info(`Creating configuration project ${e}`);const n=this.toCanonicalFileName(e);let r=this.configFileExistenceInfoCache.get(n);r?r.exists=!0:this.configFileExistenceInfoCache.set(n,r={exists:!0}),r.config||(r.config={cachedDirectoryStructureHost:LU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const i=new aye(e,n,this,this.documentRegistry,r.config.cachedDirectoryStructureHost);return this.configuredProjects.set(n,i),this.createConfigFileWatcherForParsedConfig(e,n,i),i}createConfiguredProjectWithDelayLoad(e,t){const n=this.createConfiguredProject(e);return n.pendingUpdateLevel=2,n.pendingUpdateReason=t,n}createAndLoadConfiguredProject(e,t){const n=this.createConfiguredProject(e);return this.loadConfiguredProject(n,t),n}createLoadAndUpdateConfiguredProject(e,t){const n=this.createAndLoadConfiguredProject(e,t);return n.updateGraph(),n}loadConfiguredProject(e,t){var n,r;null==(n=Fr)||n.push(Fr.Phase.Session,"loadConfiguredProject",{configFilePath:e.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(e,t);const i=ua(e.getConfigFilePath()),o=this.ensureParsedConfigUptoDate(i,e.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath),e),a=o.config.parsedCommandLine;Sn.assert(!!a.fileNames);const s=a.options;e.projectOptions||(e.projectOptions={configHasExtendsProperty:void 0!==a.raw.extends,configHasFilesProperty:void 0!==a.raw.files,configHasIncludeProperty:void 0!==a.raw.include,configHasExcludeProperty:void 0!==a.raw.exclude}),e.canConfigFileJsonReportNoInputFiles=ZL(a.raw),e.setProjectErrors(a.options.configFile.parseDiagnostics),e.updateReferences(a.projectReferences);const c=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.canonicalConfigFilePath,s,a.fileNames,Mye);c?(e.disableLanguageService(c),this.configFileExistenceInfoCache.forEach(((t,n)=>this.stopWatchingWildCards(n,e)))):(e.setCompilerOptions(s),e.setWatchOptions(a.watchOptions),e.enableLanguageService(),this.watchWildcards(i,o,e)),e.enablePluginsWithOptions(s);const l=a.fileNames.concat(e.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(e,l,Mye,s,a.typeAcquisition,a.compileOnSave,a.watchOptions),null==(r=Fr)||r.pop()}ensureParsedConfigUptoDate(e,t,n,r){var i,o,a;if(n.config){if(!n.config.updateLevel)return n;if(1===n.config.updateLevel)return this.reloadFileNamesOfParsedConfig(e,n.config),n}const s=(null==(i=n.config)?void 0:i.cachedDirectoryStructureHost)||LU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),c=SL(e,(e=>this.host.readFile(e))),l=eO(e,dt(c)?c:""),_=l.parseDiagnostics;dt(c)||_.push(c);const u=HL(l,s,Zo(e),{},e,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);u.errors.length&&_.push(...u.errors),this.logger.info(`Config: ${e} : ${JSON.stringify({rootNames:u.fileNames,options:u.options,watchOptions:u.watchOptions,projectReferences:u.projectReferences},void 0," ")}`);const d=null==(o=n.config)?void 0:o.parsedCommandLine;return n.config?(n.config.parsedCommandLine=u,n.config.watchedDirectoriesStale=!0,n.config.updateLevel=void 0):n.config={parsedCommandLine:u,cachedDirectoryStructureHost:s,projects:new Map},d||yT(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(u.watchOptions))||(null==(a=n.watcher)||a.close(),n.watcher=void 0),this.createConfigFileWatcherForParsedConfig(e,t,r),jU(t,u.options,this.sharedExtendedConfigFileWatchers,((t,n)=>this.watchFactory.watchFile(t,(()=>{var e;RU(this.extendedConfigCache,n,(e=>this.toPath(e)));let r=!1;null==(e=this.sharedExtendedConfigFileWatchers.get(n))||e.projects.forEach((e=>{r=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(e,`Change in extended config file ${t} detected`)||r})),r&&this.delayEnsureProjectForOpenFiles()}),2e3,this.hostConfiguration.watchOptions,gH.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||(n.watchedDirectories=new Map),new Map(Object.entries(n.parsedCommandLine.wildcardDirectories)),((t,r)=>this.watchWildcardDirectory(t,r,e,n)))}else{if(n.watchedDirectoriesStale=!1,!n.watchedDirectories)return;Kx(n.watchedDirectories,HU),n.watchedDirectories=void 0}}stopWatchingWildCards(e,t){const n=this.configFileExistenceInfoCache.get(e);n.config&&n.config.projects.get(t.canonicalConfigFilePath)&&(n.config.projects.set(t.canonicalConfigFilePath,!1),dp(n.config.projects,bt)||(n.config.watchedDirectories&&(Kx(n.config.watchedDirectories,HU),n.config.watchedDirectories=void 0),n.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(e,t,n){const r=e.getRootFilesMap(),i=new Map;for(const o of t){const t=n.getFileName(o),a=fhe(t);let s;if(Khe(a)||e.fileExists(t)){const t=n.getScriptKind(o,this.hostConfiguration.extraFileExtensions),i=n.hasMixedContent(o,this.hostConfiguration.extraFileExtensions),c=Sn.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(a,e.currentDirectory,t,i,e.directoryStructureHost));s=c.path;const l=r.get(s);l&&l.info===c?l.fileName=a:(e.addRoot(c,a),c.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(c))}else{s=mhe(a,this.currentDirectory,this.toCanonicalFileName);const t=r.get(s);t?(t.info&&(e.removeFile(t.info,!1,!0),t.info=void 0),t.fileName=a):r.set(s,{fileName:a})}i.set(s,!0)}r.size>i.size&&r.forEach(((t,n)=>{i.has(n)||(t.info?e.removeFile(t.info,e.fileExists(n),!0):r.delete(n))}))}updateRootAndOptionsOfNonInferredProject(e,t,n,r,i,o,a){e.setCompilerOptions(r),e.setWatchOptions(a),void 0!==o&&(e.compileOnSaveEnabled=o),this.addFilesToNonInferredProject(e,t,n,i)}reloadFileNamesOfConfiguredProject(e){const t=this.reloadFileNamesOfParsedConfig(e.getConfigFilePath(),this.configFileExistenceInfoCache.get(e.canonicalConfigFilePath).config);return e.updateErrorOnNoInputFiles(t),this.updateNonInferredProjectFiles(e,t.concat(e.getExternalFiles(1)),Mye),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine.fileNames;Sn.assert(1===t.updateLevel);const n=gj(t.parsedCommandLine.options.configFile.configFileSpecs,Zo(e),t.parsedCommandLine.options,t.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return t.parsedCommandLine={...t.parsedCommandLine,fileNames:n},n}setFileNamesOfAutpImportProviderOrAuxillaryProject(e,t){this.updateNonInferredProjectFiles(e,t,Mye)}reloadConfiguredProject(e,t,n,r){const i=e.getCachedDirectoryStructureHost();r&&this.clearSemanticCache(e),i.clearCache();const o=e.getConfigFilePath();this.logger.info(`${n?"Loading":"Reloading"} configured project ${o}`),this.loadConfiguredProject(e,t),e.updateGraph(),this.sendConfigFileDiagEvent(e,o)}clearSemanticCache(e){e.resolutionCache.clear(),e.getLanguageService(!1).cleanupSemanticCache(),e.cleanupProgram(),e.markAsDirty()}sendConfigFileDiagEvent(e,t){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const n=e.getLanguageService().getCompilerOptionsDiagnostics();n.push(...e.getAllProjectErrors()),this.eventHandler({eventName:Cye,data:{configFileName:e.getConfigFilePath(),diagnostics:n,triggerFile:t}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(e,t){if(!this.useInferredProjectPerProjectRoot||e.isDynamic&&void 0===t)return;if(t){const e=this.toCanonicalFileName(t);for(const t of this.inferredProjects)if(t.projectRootPath===e)return t;return this.createInferredProject(t,!1,t)}let n;for(const t of this.inferredProjects)t.projectRootPath&&Sa(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&&void 0===this.inferredProjects[0].projectRootPath?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(e){Sn.assert(!this.useSingleInferredProject);const t=this.toCanonicalFileName(this.getNormalizedAbsolutePath(e));for(const e of this.inferredProjects)if(!e.projectRootPath&&e.isOrphan()&&e.canonicalCurrentDirectory===t)return e;return this.createInferredProject(e)}createInferredProject(e,t,n){const r=n&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(n)||this.compilerOptionsForInferredProjects;let i,o;n&&(i=this.watchOptionsForInferredProjectsPerProjectRoot.get(n),o=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(n)),void 0===i&&(i=this.watchOptionsForInferredProjects),void 0===o&&(o=this.typeAcquisitionForInferredProjects),i=i||void 0;const a=new nye(this,this.documentRegistry,r,null==i?void 0:i.watchOptions,n,e,o);return a.setProjectErrors(null==i?void 0:i.errors),t?this.inferredProjects.unshift(a):this.inferredProjects.push(a),a}getOrCreateScriptInfoNotOpenedByClient(e,t,n){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(fhe(e),t,void 0,void 0,n)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(fhe(e))}getScriptInfoOrConfig(e){const t=fhe(e),n=this.getScriptInfoForNormalizedPath(t);if(n)return n;const r=this.configuredProjects.get(this.toPath(e));return r&&r.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(e){const t=$e(this.filenameToScriptInfo.entries(),(([e,t])=>({path:e,fileName:t.fileName})));this.logger.msg(`Could not find file ${JSON.stringify(e)}.\nAll files are: ${JSON.stringify(t)}`,"Err")}getSymlinkedProjects(e){let t;if(this.realpathToScriptInfos){const t=e.getRealpathIfDifferent();t&&b(this.realpathToScriptInfos.get(t),n),b(this.realpathToScriptInfos.get(e.path),n)}return t;function n(n){if(n!==e)for(const r of n.containingProjects)!r.languageServiceEnabled||r.isOrphan()||r.getCompilerOptions().preserveSymlinks||e.isAttached(r)||(t?dp(t,((e,t)=>t!==n.path&&I(e,r)))||t.add(n.path,r):(t=ot(),t.add(n.path,r)))}}watchClosedScriptInfo(e){if(Sn.assert(!e.fileWatcher),!(e.isDynamicOrHasMixedContent()||this.globalCacheLocationDirectoryPath&&an(e.path,this.globalCacheLocationDirectoryPath))){const t=e.path.indexOf("/node_modules/");this.host.getModifiedTime&&-1!==t?(e.mTime=this.getModifiedTime(e),e.fileWatcher=this.watchClosedScriptInfoInNodeModules(e.path.substr(0,t))):e.fileWatcher=this.watchFactory.watchFile(e.fileName,((t,n)=>this.onSourceFileChanged(e,n)),500,this.hostConfiguration.watchOptions,gH.ClosedScriptInfo)}}createNodeModulesWatcher(e){const t=this.watchFactory.watchDirectory(e,(t=>{var r;const i=GW(this.toPath(t));if(!i)return;const o=ea(i);if(!(null==(r=n.affectedModuleSpecifierCacheProjects)?void 0:r.size)||"package.json"!==o&&"node_modules"!==o||n.affectedModuleSpecifierCacheProjects.forEach((e=>{var t,n;null==(n=null==(t=this.findProject(e))?void 0:t.getModuleSpecifierCache())||n.clear()})),n.refreshScriptInfoRefCount)if(e===i)this.refreshScriptInfosInDirectory(e);else{const e=this.getScriptInfoForPath(i);e?ave(e)&&this.refreshScriptInfo(e):Ho(i)||this.refreshScriptInfosInDirectory(i)}}),1,this.hostConfiguration.watchOptions,gH.NodeModules),n={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var r;n.refreshScriptInfoRefCount||(null==(r=n.affectedModuleSpecifierCacheProjects)?void 0:r.size)||(t.close(),this.nodeModulesWatchers.delete(e))}};return this.nodeModulesWatchers.set(e,n),n}watchPackageJsonsInNodeModules(e,t){const n=this.nodeModulesWatchers.get(e)||this.createNodeModulesWatcher(e);return(n.affectedModuleSpecifierCacheProjects||(n.affectedModuleSpecifierCacheProjects=new Set)).add(t.getProjectName()),{close:()=>{var e;null==(e=n.affectedModuleSpecifierCacheProjects)||e.delete(t.getProjectName()),n.close()}}}watchClosedScriptInfoInNodeModules(e){const t=e+"/node_modules",n=this.nodeModulesWatchers.get(t)||this.createNodeModulesWatcher(t);return n.refreshScriptInfoRefCount++,{close:()=>{n.refreshScriptInfoRefCount--,n.close()}}}getModifiedTime(e){return(this.host.getModifiedTime(e.path)||io).getTime()}refreshScriptInfo(e){const t=this.getModifiedTime(e);if(t!==e.mTime){const n=To(e.mTime,t);e.mTime=t,this.onSourceFileChanged(e,n)}}refreshScriptInfosInDirectory(e){e+=Io,this.filenameToScriptInfo.forEach((t=>{ave(t)&&an(t.path,e)&&this.refreshScriptInfo(t)}))}stopWatchingScriptInfo(e){e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(e,t,n,r,i){if(zo(e)||Khe(e))return this.getOrCreateScriptInfoWorker(e,t,!1,void 0,n,r,i);const o=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e));return o||void 0}getOrCreateScriptInfoOpenedByClientForNormalizedPath(e,t,n,r,i){return this.getOrCreateScriptInfoWorker(e,t,!0,n,r,i)}getOrCreateScriptInfoForNormalizedPath(e,t,n,r,i,o){return this.getOrCreateScriptInfoWorker(e,this.currentDirectory,t,n,r,i,o)}getOrCreateScriptInfoWorker(e,t,n,r,i,o,a){Sn.assert(void 0===r||n,"ScriptInfo needs to be opened by client to be able to set its user defined content");const s=mhe(e,t,this.toCanonicalFileName);let c=this.getScriptInfoForPath(s);if(!c){const r=Khe(e);if(Sn.assert(zo(e)||r||n,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:$e(this.openFilesWithNonRootedDiskPath.keys())})}\nScript info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`)),Sn.assert(!zo(e)||this.currentDirectory===t||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(e)),"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:$e(this.openFilesWithNonRootedDiskPath.keys())})}\nOpen script files with non rooted disk path opened with current directory context cannot have same canonical names`)),Sn.assert(!r||this.currentDirectory===t||this.useInferredProjectPerProjectRoot,"",(()=>`${JSON.stringify({fileName:e,currentDirectory:t,hostCurrentDirectory:this.currentDirectory,openKeys:$e(this.openFilesWithNonRootedDiskPath.keys())})}\nDynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`)),!n&&!r&&!(a||this.host).fileExists(e))return;c=new Hhe(this.host,e,i,!!o,s,this.filenameToScriptInfoVersion.get(s)),this.filenameToScriptInfo.set(c.path,c),this.filenameToScriptInfoVersion.delete(c.path),n?zo(e)||r&&this.currentDirectory===t||this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(e),c):this.watchClosedScriptInfo(c)}return n&&(this.stopWatchingScriptInfo(c),c.open(r),o&&c.registerFileUpdate()),c}getScriptInfoForNormalizedPath(e){return!zo(e)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(e))||this.getScriptInfoForPath(mhe(e,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(e){return this.filenameToScriptInfo.get(e)}getDocumentPositionMapper(e,t,n){const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host);if(!r)return void(n&&e.addGeneratedFileWatch(t,n));if(r.getSnapshot(),dt(r.sourceMapFilePath)){const t=this.getScriptInfoForPath(r.sourceMapFilePath);if(t&&(t.getSnapshot(),void 0!==t.documentPositionMapper))return t.sourceInfos=this.addSourceInfoToSourceMap(n,e,t.sourceInfos),t.documentPositionMapper?t.documentPositionMapper:void 0;r.sourceMapFilePath=void 0}else{if(r.sourceMapFilePath)return void(r.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(n,e,r.sourceMapFilePath.sourceInfos));if(void 0!==r.sourceMapFilePath)return}let i,o,a=(t,n)=>{const r=this.getOrCreateScriptInfoNotOpenedByClient(t,e.currentDirectory,this.host);if(!r)return void(o=n);i=r;const a=r.getSnapshot();return void 0!==r.documentPositionMapper?r.documentPositionMapper:UQ(a)};const s=e.projectName,c=j1({getCanonicalFileName:this.toCanonicalFileName,log:e=>this.logger.info(e),getSourceFileLike:e=>this.getSourceFileLike(e,s,r)},r.fileName,r.textStorage.getLineInfo(),a);return a=void 0,i?(r.sourceMapFilePath=i.path,i.declarationInfoPath=r.path,i.documentPositionMapper=c||!1,i.sourceInfos=this.addSourceInfoToSourceMap(n,e,i.sourceInfos)):r.sourceMapFilePath=!!o&&{watcher:this.addMissingSourceMapFile(e.currentDirectory===this.currentDirectory?o:_a(o,e.currentDirectory),r.path),sourceInfos:this.addSourceInfoToSourceMap(n,e)},c}addSourceInfoToSourceMap(e,t,n){if(e){const r=this.getOrCreateScriptInfoNotOpenedByClient(e,t.currentDirectory,t.directoryStructureHost);(n||(n=new Set)).add(r.path)}return n}addMissingSourceMapFile(e,t){return this.watchFactory.watchFile(e,(()=>{const e=this.getScriptInfoForPath(t);e&&e.sourceMapFilePath&&!dt(e.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(e.containingProjects,!0),this.delayUpdateSourceInfoProjects(e.sourceMapFilePath.sourceInfos),e.closeSourceMapFileWatcher())}),2e3,this.hostConfiguration.watchOptions,gH.MissingSourceMapFile)}getSourceFileLike(e,t,n){const r=t.projectName?t:this.findProject(t);if(r){const t=r.toPath(e),n=r.getSourceFile(t);if(n&&n.resolvedPath===t)return n}const i=this.getOrCreateScriptInfoNotOpenedByClient(e,(r||this).currentDirectory,r?r.directoryStructureHost:this.host);if(i){if(n&&dt(n.sourceMapFilePath)&&i!==n){const e=this.getScriptInfoForPath(n.sourceMapFilePath);e&&(e.sourceInfos||(e.sourceInfos=new Set)).add(i.path)}return i.cacheSourceFile?i.cacheSourceFile.sourceFile:(i.sourceFileLike||(i.sourceFileLike={get text(){return Sn.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:e=>{const 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){var t;if(e.file){const t=this.getScriptInfoForNormalizedPath(fhe(e.file));t&&(t.setOptions(Wye(e.formatOptions),e.preferences),this.logger.info(`Host configuration update for file ${e.file}`))}else{if(void 0!==e.hostInfo&&(this.hostConfiguration.hostInfo=e.hostInfo,this.logger.info(`Host information ${e.hostInfo}`)),e.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...Wye(e.formatOptions)},this.logger.info("Format host information updated")),e.preferences){const{lazyConfiguredProjectsFromExternalProject:t,includePackageJsonAutoImports:n}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...e.preferences},t&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.configuredProjects.forEach((e=>{e.hasExternalProjectRef()&&2===e.pendingUpdateLevel&&!this.pendingProjectUpdates.has(e.getProjectName())&&e.updateGraph()})),n!==e.preferences.includePackageJsonAutoImports&&this.invalidateProjectPackageJson(void 0)}e.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=e.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),e.watchOptions&&(this.hostConfiguration.watchOptions=null==(t=$ye(e.watchOptions))?void 0:t.watchOptions,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())}getWatchOptionsFromProjectWatchOptions(e){return e&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...e}:e||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach((e=>{this.openFiles.has(e.path)||e.fileWatcher&&this.onSourceFileChanged(e,this.host.fileExists(e.fileName)?1:2)})),this.pendingProjectUpdates.forEach(((e,t)=>{this.throttledOperations.cancel(t),this.pendingProjectUpdates.delete(t)})),this.throttledOperations.cancel(Aye),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach((e=>{e.config&&(e.config.updateLevel=2)})),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,yt,"User requested reload projects"),this.externalProjects.forEach((e=>{this.clearSemanticCache(e),e.updateGraph()})),this.inferredProjects.forEach((e=>this.clearSemanticCache(e))),this.ensureProjectForOpenFiles()}reloadConfiguredProjectForFiles(e,t,n,r,i){const o=new Map,a=e=>{o.has(e.canonicalConfigFilePath)||(o.set(e.canonicalConfigFilePath,!0),this.reloadConfiguredProject(e,i,!1,t))};null==e||e.forEach(((e,s)=>{if(this.configFileForOpenFiles.delete(s),!r(e))return;const c=this.getScriptInfoForPath(s);Sn.assert(c.isScriptOpen());const l=this.getConfigFileNameForFile(c);if(l){const e=this.findConfiguredProjectByProjectName(l)||this.createConfiguredProject(l);if(!o.has(e.canonicalConfigFilePath))if(o.set(e.canonicalConfigFilePath,!0),n)e.pendingUpdateLevel=2,e.pendingUpdateReason=i,t&&this.clearSemanticCache(e),this.delayUpdateProjectGraph(e);else if(this.reloadConfiguredProject(e,i,!1,t),!sve(e,c)){eve(e,c.path,(e=>(a(e),sve(e,c))),1)&&eve(e,void 0,a,0)}}}))}removeRootOfInferredProjectIfNowPartOfOtherProject(e){Sn.assert(e.containingProjects.length>0);const t=e.containingProjects[0];!t.isOrphan()&&mye(t)&&t.isRoot(e)&&b(e.containingProjects,(e=>e!==t&&!e.isOrphan()))&&t.removeFile(e,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach(((e,t)=>{const n=this.getScriptInfoForPath(t);n.isOrphan()?this.assignOrphanScriptInfoToInferredProject(n,e):this.removeRootOfInferredProjectIfNowPartOfOtherProject(n)})),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(cve),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath(fhe(e),t,n,!1,r?fhe(r):void 0)}getOriginalLocationEnsuringConfiguredProject(e,t){const n=e.isSourceOfProjectReferenceRedirect(t.fileName),r=n?t:e.getSourceMapper().tryGetSourcePosition(t);if(!r)return;const{fileName:i}=r,o=this.getScriptInfo(i);if(!o&&!this.host.fileExists(i))return;const a={fileName:fhe(i),path:this.toPath(i)},s=this.getConfigFileNameForFile(a);if(!s)return;let c=this.findConfiguredProjectByProjectName(s);if(!c){if(e.getCompilerOptions().disableReferencedProjectLoad)return n?t:(null==o?void 0:o.containingProjects.length)?r:t;c=this.createAndLoadConfiguredProject(s,`Creating project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`)}cve(c);const l=e=>{const t=this.getScriptInfo(i);return t&&sve(e,t)};if(c.isSolution()||!l(c)){if(c=eve(c,i,(e=>(cve(e),l(e)?e:void 0)),2,`Creating project referenced in solution ${c.projectName} to find possible configured project for original file: ${a.fileName}${t!==r?" for location: "+t.fileName:""}`),!c)return;if(c===e)return r}u(c);const _=this.getScriptInfo(i);if(_&&_.containingProjects.length)return _.containingProjects.forEach((e=>{gye(e)&&u(e)})),r;function u(t){e.originalConfiguredProjects||(e.originalConfiguredProjects=new Set),e.originalConfiguredProjects.add(t.canonicalConfigFilePath)}}fileExists(e){return!!this.getScriptInfoForNormalizedPath(e)||this.host.fileExists(e)}findExternalProjectContainingOpenScriptInfo(e){return D(this.externalProjects,(t=>(cve(t),t.containsScriptInfo(e))))}getOrCreateOpenScriptInfo(e,t,n,r,i){const o=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(e,i?this.getNormalizedAbsolutePath(i):this.currentDirectory,t,n,r);return this.openFiles.set(o.path,i),o}assignProjectToOpenedScriptInfo(e){let t,n,r,i,o=this.findExternalProjectContainingOpenScriptInfo(e),a=!1;return o||0!==this.serverMode||(t=this.getConfigFileNameForFile(e),t&&(o=this.findConfiguredProjectByProjectName(t),o?cve(o):(o=this.createLoadAndUpdateConfiguredProject(t,`Creating possible configured project for ${e.fileName} to open`),a=!0),i=o.containsScriptInfo(e)?o:void 0,r=o,sve(o,e)||eve(o,e.path,(t=>{if(cve(t),_t(r)?r.push(t):r=[o,t],sve(t,e))return i=t,t;!i&&t.containsScriptInfo(e)&&(i=t)}),2,`Creating project referenced in solution ${o.projectName} to find possible configured project for ${e.fileName} to open`),i?(t=i.getConfigFilePath(),(i!==o||a)&&(n=i.getAllProjectErrors(),this.sendConfigFileDiagEvent(i,e.fileName))):t=void 0,this.createAncestorProjects(e,o))),e.containingProjects.forEach(cve),e.isOrphan()&&(_t(r)?r.forEach((t=>this.sendConfigFileDiagEvent(t,e.fileName))):r&&this.sendConfigFileDiagEvent(r,e.fileName),Sn.assert(this.openFiles.has(e.path)),this.assignOrphanScriptInfoToInferredProject(e,this.openFiles.get(e.path))),Sn.assert(!e.isOrphan()),{configFileName:t,configFileErrors:n,retainProjects:r}}createAncestorProjects(e,t){if(e.isAttached(t))for(;;){if(!t.isInitialLoadPending()&&(!t.getCompilerOptions().composite||t.getCompilerOptions().disableSolutionSearching))return;const n=this.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0});if(!n)return;const r=this.findConfiguredProjectByProjectName(n)||this.createConfiguredProjectWithDelayLoad(n,`Creating project possibly referencing default composite project ${t.getProjectName()} of open file ${e.fileName}`);r.isInitialLoadPending()&&r.setPotentialProjectReference(t.canonicalConfigFilePath),t=r}}loadAncestorProjectTree(e){e=e||Q(this.configuredProjects,((e,t)=>t.isInitialLoadPending()?void 0:[e,!0]));const t=new Set;for(const n of $e(this.configuredProjects.values()))nve(n,(t=>e.has(t)))&&cve(n),this.ensureProjectChildren(n,e,t)}ensureProjectChildren(e,t,n){var r;if(!Z(n,e.canonicalConfigFilePath))return;if(e.getCompilerOptions().disableReferencedProjectLoad)return;const i=null==(r=e.getCurrentProgram())?void 0:r.getResolvedProjectReferences();if(i)for(const r of i){if(!r)continue;const i=OV(r.references,(e=>t.has(e.sourceFile.path)?e:void 0));if(!i)continue;const o=fhe(r.sourceFile.fileName),a=e.projectService.findConfiguredProjectByProjectName(o)||e.projectService.createAndLoadConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${i.sourceFile.fileName}`);cve(a),this.ensureProjectChildren(a,t,n)}}cleanupAfterOpeningFile(e){this.removeOrphanConfiguredProjects(e);for(const e of this.inferredProjects.slice())e.isOrphan()&&this.removeProject(e);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(e,t,n,r,i){const o=this.getOrCreateOpenScriptInfo(e,t,n,r,i),{retainProjects:a,...s}=this.assignProjectToOpenedScriptInfo(o);return this.cleanupAfterOpeningFile(a),this.telemetryOnOpenFile(o),this.printProjects(),s}removeOrphanConfiguredProjects(e){const t=new Map(this.configuredProjects),n=e=>{!e.isOrphan()&&e.originalConfiguredProjects&&e.originalConfiguredProjects.forEach(((e,t)=>{const n=this.getConfiguredProjectByCanonicalConfigFilePath(t);return n&&r(n)}))};function r(e){t.delete(e.canonicalConfigFilePath)&&(n(e),ive(e,r))}e&&(_t(e)?e.forEach(r):r(e)),this.inferredProjects.forEach(n),this.externalProjects.forEach(n),this.configuredProjects.forEach((e=>{e.hasOpenRef()?r(e):t.has(e.canonicalConfigFilePath)&&ive(e,(n=>function(e){return e.hasOpenRef()||!t.has(e.canonicalConfigFilePath)}(n)&&r(e)))})),t.forEach((e=>this.removeProject(e)))}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach((t=>{if(!t.isScriptOpen()&&t.isOrphan()&&!t.isContainedByBackgroundProject()){if(!t.sourceMapFilePath)return;let e;if(dt(t.sourceMapFilePath)){const n=this.getScriptInfoForPath(t.sourceMapFilePath);e=n&&n.sourceInfos}else e=t.sourceMapFilePath.sourceInfos;if(!e)return;if(!pp(e,(e=>{const t=this.getScriptInfoForPath(e);return!!t&&(t.isScriptOpen()||!t.isOrphan())})))return}if(e.delete(t.path),t.sourceMapFilePath){let n;if(dt(t.sourceMapFilePath)){e.delete(t.sourceMapFilePath);const r=this.getScriptInfoForPath(t.sourceMapFilePath);n=r&&r.sourceInfos}else n=t.sourceMapFilePath.sourceInfos;n&&n.forEach(((t,n)=>e.delete(n)))}})),e.forEach((e=>{this.stopWatchingScriptInfo(e),this.deleteScriptInfo(e),e.closeSourceMapFileWatcher()}))}telemetryOnOpenFile(e){if(0!==this.serverMode||!this.eventHandler||!e.isJavaScript()||!iS(this.allJsFilesForOpenFileTelemetry,e.path))return;const t=this.ensureDefaultProjectForFile(e);if(!t.languageServiceEnabled)return;const n=t.getSourceFile(e.path),r=!!n&&!!n.checkJsDirective;this.eventHandler({eventName:Dye,data:{info:{checkJs:r}}})}closeClientFile(e,t){const n=this.getScriptInfoForNormalizedPath(fhe(e)),r=!!n&&this.closeOpenFile(n,t);return t||this.printProjects(),r}collectChanges(e,t,n,r){for(const i of t){const t=D(e,(e=>e.projectName===i.getProjectName()));r.push(i.getChangesSinceVersion(t&&t.version,n))}}synchronizeProjectList(e,t){const n=[];return this.collectChanges(e,this.externalProjects,t,n),this.collectChanges(e,this.configuredProjects.values(),t,n),this.collectChanges(e,this.inferredProjects,t,n),n}applyChangesInOpenFiles(e,t,n){let r,i,o=!1;if(e)for(const t of e){const e=this.getOrCreateOpenScriptInfo(fhe(t.fileName),t.content,Gye(t.scriptKind),t.hasMixedContent,t.projectRootPath?fhe(t.projectRootPath):void 0);(r||(r=[])).push(e)}if(t)for(const e of t){const t=this.getScriptInfo(e.fileName);Sn.assert(!!t),this.applyChangesToFile(t,e.changes)}if(n)for(const e of n)o=this.closeClientFile(e,!0)||o;r&&(i=V(r,(e=>this.assignProjectToOpenedScriptInfo(e).retainProjects))),o&&this.assignOrphanScriptInfosToInferredProject(),r?(this.cleanupAfterOpeningFile(i),r.forEach((e=>this.telemetryOnOpenFile(e))),this.printProjects()):v(n)&&this.printProjects()}applyChangesToFile(e,t){for(const n of t)e.editContent(n.span.start,n.span.start+n.span.length,n.newText)}closeConfiguredProjectReferencedFromExternalProject(e){const t=this.findConfiguredProjectByProjectName(e);!t||(t.deleteExternalProjectReference(),t.hasOpenRef())||this.removeProject(t)}closeExternalProject(e){const t=fhe(e),n=this.externalProjectToConfiguredProjectMap.get(t);if(n){for(const e of n)this.closeConfiguredProjectReferencedFromExternalProject(e);this.externalProjectToConfiguredProjectMap.delete(t)}else{const t=this.findExternalProjectByProjectName(e);t&&this.removeProject(t)}}openExternalProjects(e){const t=Xe(this.externalProjects,(e=>e.getProjectName()),(e=>!0));pp(this.externalProjectToConfiguredProjectMap,(e=>{t.set(e,!0)}));for(const n of e)this.openExternalProject(n),t.delete(n.projectFileName);pp(t,(e=>{this.closeExternalProject(e)}))}static escapeFilenameForRegex(e){return e.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=jye}applySafeList(t){const{rootFiles:n}=t,r=t.typeAcquisition;if(Sn.assert(!!r,"proj.typeAcquisition should be set by now"),!1===r.enable||r.disableFilenameBasedTypeAcquisition)return[];const i=r.include||(r.include=[]),o=[],a=n.map((e=>oa(e.fileName))),s=[];for(const t of Object.keys(this.safelist)){const n=this.safelist[t];for(const r of a)if(n.match.test(r)){if(this.logger.info(`Excluding files based on rule ${t} matching file '${r}'`),n.types)for(const e of n.types)i.includes(e)||i.push(e);if(n.exclude)for(const i of n.exclude){const a=r.replace(n.match,((...n)=>i.map((r=>"number"==typeof r?dt(n[r])?e.escapeFilenameForRegex(n[r]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${t} - not enough groups`),"\\*"):r)).join("")));o.includes(a)||o.push(a)}else{const t=e.escapeFilenameForRegex(r);o.includes(t)||o.push(t)}}}const c=o.map((e=>new RegExp(e,"i"))),l=[];for(let e=0;e<t.rootFiles.length;e++)if(c.some((t=>t.test(a[e]))))s.push(a[e]);else{let n=!1;if(r.enable){const t=ea(St(a[e]));if($o(t,"js")){const r=Xt(Yk(t)),o=this.legacySafelist.get(r);void 0!==o&&(this.logger.info(`Excluded '${a[e]}' because it matched ${r} from the legacy safelist`),s.push(a[e]),n=!0,i.includes(o)||i.push(o))}}n||(/^.+[.-]min\.js$/.test(a[e])?s.push(a[e]):l.push(t.rootFiles[e]))}return t.rootFiles=l,s}openExternalProject(e){e.typeAcquisition=e.typeAcquisition||{},e.typeAcquisition.include=e.typeAcquisition.include||[],e.typeAcquisition.exclude=e.typeAcquisition.exclude||[],void 0===e.typeAcquisition.enable&&(e.typeAcquisition.enable=dye(e.rootFiles.map((e=>e.fileName))));const t=this.applySafeList(e);let n;const r=[];for(const t of e.rootFiles){const e=fhe(t.fileName);whe(e)?0===this.serverMode&&this.host.fileExists(e)&&(n||(n=[])).push(e):r.push(t)}n&&n.sort();const i=this.findExternalProjectByProjectName(e.projectFileName);let o;if(i){if(i.excludedFiles=t,!n){const t=Hye(e.options),n=$ye(e.options,i.getCurrentDirectory()),r=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,t,e.rootFiles,Rye);return r?i.disableLanguageService(r):i.enableLanguageService(),i.setProjectErrors(null==n?void 0:n.errors),this.updateRootAndOptionsOfNonInferredProject(i,e.rootFiles,Rye,t,e.typeAcquisition,e.options.compileOnSave,null==n?void 0:n.watchOptions),void i.updateGraph()}this.closeExternalProject(e.projectFileName)}else if(this.externalProjectToConfiguredProjectMap.get(e.projectFileName))if(n){const t=this.externalProjectToConfiguredProjectMap.get(e.projectFileName);let r=0,i=0;for(;r<n.length&&i<t.length;){const e=n[r],a=t[i];a<e?(this.closeConfiguredProjectReferencedFromExternalProject(a),i++):(a>e||((o||(o=[])).push(a),i++),r++)}for(let e=i;e<t.length;e++)this.closeConfiguredProjectReferencedFromExternalProject(t[e])}else this.closeExternalProject(e.projectFileName);if(n){this.externalProjectToConfiguredProjectMap.set(e.projectFileName,n);for(const t of n){let n=this.findConfiguredProjectByProjectName(t);n||(n=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(t,`Creating configured project in external project: ${e.projectFileName}`):this.createLoadAndUpdateConfiguredProject(t,`Creating configured project in external project: ${e.projectFileName}`)),n&&!I(o,t)&&n.addExternalProjectReference()}}else{this.externalProjectToConfiguredProjectMap.delete(e.projectFileName);this.createExternalProject(e.projectFileName,r,e.options,e.typeAcquisition,t).updateGraph()}}hasDeferredExtension(){for(const e of this.hostConfiguration.extraFileExtensions)if(7===e.scriptKind)return!0;return!1}requestEnablePlugin(e,t,n){if(this.host.importPlugin||this.host.require)if(this.logger.info(`Enabling plugin ${t.name} from candidate paths: ${n.join(",")}`),t.name&&!XM(t.name).rest){if(this.host.importPlugin){const r=tye.importServicePluginAsync(t,n,this.host,(e=>this.logger.info(e)));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let i=this.pendingPluginEnablements.get(e);return i||this.pendingPluginEnablements.set(e,i=[]),void i.push(r)}this.endEnablePlugin(e,tye.importServicePluginSync(t,n,this.host,(e=>this.logger.info(e))))}else this.logger.info(`Skipped loading plugin ${t.name||JSON.stringify(t)} because only package name is allowed plugin name`);else this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded")}endEnablePlugin(e,{pluginConfigEntry:t,resolvedModule:n,errorLogs:r}){var i;if(n){const r=null==(i=this.currentPluginConfigOverrides)?void 0:i.get(t.name);if(r){const e=t.name;(t=r).name=e}e.enableProxy(n,t)}else b(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;const e=$e(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(e),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(e){Sn.assert(void 0===this.currentPluginEnablementPromise),await Promise.all(J(e,(([e,t])=>this.enableRequestedPluginsForProjectAsync(e,t)))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(e,t){const n=await Promise.all(t);if(!e.isClosed()){for(const t of n)this.endEnablePlugin(e,t);this.delayUpdateProjectGraph(e)}}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){const n=this.packageJsonCache,r=t&&this.toPath(t),i=this.toPath(e),o=[],a=e=>{switch(n.directoryHasPackageJson(e)){case 3:return n.searchDirectoryAndAncestors(e),a(e);case-1:const t=sa(e,"package.json");this.watchPackageJsonFile(t);const r=n.getInDirectory(e);r&&o.push(r)}if(r&&r===e)return!0};return Fa(Zo(i),a),o}getNearestAncestorDirectoryWithPackageJson(e){return Fa(e,(e=>{switch(this.packageJsonCache.directoryHasPackageJson(this.toPath(e))){case-1:return e;case 0:return;case 3:return this.host.fileExists(sa(e,"package.json"))?e:void 0}}))}watchPackageJsonFile(e){const t=this.packageJsonFilesMap||(this.packageJsonFilesMap=new Map);t.has(e)||(this.invalidateProjectPackageJson(e),t.set(e,this.watchFactory.watchFile(e,((e,n)=>{const r=this.toPath(e);switch(n){case 0:return Sn.fail();case 1:this.packageJsonCache.addOrUpdate(r),this.invalidateProjectPackageJson(r);break;case 2:this.packageJsonCache.delete(r),this.invalidateProjectPackageJson(r),t.get(r).close(),t.delete(r)}}),250,this.hostConfiguration.watchOptions,gH.PackageJson)))}onAddPackageJson(e){this.packageJsonCache.addOrUpdate(e),this.watchPackageJsonFile(e)}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}invalidateProjectPackageJson(e){function t(t){e?t.onPackageJsonChange(e):t.onAutoImportProviderSettingsChanged()}this.configuredProjects.forEach(t),this.inferredProjects.forEach(t),this.externalProjects.forEach(t)}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=function(){let e;return{get:()=>e,set(t){e=t},clear(){e=void 0}}}())}}).filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,qye=zye}});function gve(e){let t,n,r;const i={get(e,t,i,o){if(n&&r===a(e,i,o))return n.get(t)},set(n,r,i,a,c,l){if(o(n,i,a).set(r,s(c,l,!1)),l)for(const n of c)if(n.isInNodeModules){const r=n.path.substring(0,n.path.indexOf(Ij)+Ij.length-1);(null==t?void 0:t.has(r))||(t||(t=new Map)).set(r,e.watchNodeModulesForPackageJsonChanges(r))}},setModulePaths(e,t,n,r,i){const a=o(e,n,r),c=a.get(t);c?c.modulePaths=i:a.set(t,s(i,void 0,void 0))},setBlockedByPackageJsonDependencies(e,t,n,r,i){const a=o(e,n,r),c=a.get(t);c?c.isBlockedByPackageJsonDependencies=i:a.set(t,s(void 0,void 0,i))},clear(){null==t||t.forEach((e=>e.close())),null==n||n.clear(),null==t||t.clear(),r=void 0},count:()=>n?n.size:0};return Sn.isDebugging&&Object.defineProperty(i,"__cache",{get:()=>n}),i;function o(e,t,o){const s=a(e,t,o);return n&&r!==s&&i.clear(),r=s,n||(n=new Map)}function a(e,t,n){return`${e},${t.importModuleSpecifierEnding},${t.importModuleSpecifierPreference},${n.overrideImportMode}`}function s(e,t,n){return{modulePaths:e,moduleSpecifiers:t,isBlockedByPackageJsonDependencies:n}}}var hve=g({"src/server/moduleSpecifierCache.ts"(){lbe()}});function yve(e){const t=new Map,n=new Map;return{addOrUpdate:r,forEach:t.forEach.bind(t),get:t.get.bind(t),delete:e=>{t.delete(e),n.set(Zo(e),!0)},getInDirectory:e=>t.get(sa(e,"package.json"))||void 0,directoryHasPackageJson:i,searchDirectoryAndAncestors:t=>{Fa(t,(t=>{if(3!==i(t))return!0;const o=e.toPath(sa(t,"package.json"));IZ(e,o)?r(o):n.set(t,!0)}))}};function r(r){const i=Sn.checkDefined(JZ(r,e.host));t.set(r,i),n.delete(Zo(r))}function i(e){return t.has(sa(e,"package.json"))?-1:n.has(e)?0:3}}var vve,bve,xve,Sve,kve,Tve,Cve=g({"src/server/packageJsonCache.ts"(){lbe()}});function wve(e,t){if((mye(e)||hye(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function Nve(e,t,n){const r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:kV(n.messageText,"\n"),code:n.code,category:to(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:J(n.relatedInformation,Dve)}}function Dve(e){return e.file?{span:{start:Fve(_s(e.file,e.start)),end:Fve(_s(e.file,e.start+e.length)),file:e.file.fileName},message:kV(e.messageText,"\n"),category:to(e),code:e.code}:{message:kV(e.messageText,"\n"),category:to(e),code:e.code}}function Fve(e){return{line:e.line+1,offset:e.character+1}}function Pve(e,t){const n=e.file&&Fve(_s(e.file,e.start)),r=e.file&&Fve(_s(e.file,e.start+e.length)),i=kV(e.messageText,"\n"),{code:o,source:a}=e,s={start:n,end:r,text:i,code:o,category:to(e),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:a,relatedInformation:J(e.relatedInformation,Dve)};return t?{...s,fileName:e.file&&e.file.fileName}:s}function Eve(e,t,n,r){const i=t.hasLevel(3),o=JSON.stringify(e);i&&t.info(`${e.type}:${BK(e)}`);return`Content-Length: ${1+n(o,"utf8")}\r\n\r\n${o}${r}`}function Ave(e,t){return{seq:0,type:"event",event:e,body:t}}function Ive(){return lt((({textSpan:e})=>e.start+100003*e.length),gY)}function Ove(e,t,n){for(const r of _t(e)?e:e.projects)n(r,t);!_t(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach(((e,t)=>{for(const r of e)n(r,t)}))}function Lve(e,t,n,r,i,o){const a=new Map,s=ct();s.enqueue({project:t,location:n}),Ove(e,n.fileName,((e,t)=>{const r={fileName:t,pos:n.pos};s.enqueue({project:e,location:r})}));const c=t.projectService,l=t.getCancellationToken(),_=function(e,t,n){const r=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),i=r&&De(r);return i&&!i.isLocal?{fileName:i.fileName,pos:i.textSpan.start}:void 0}(t,n,r),u=Tt((()=>t.isSourceOfProjectReferenceRedirect(_.fileName)?_:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(_))),d=Tt((()=>t.isSourceOfProjectReferenceRedirect(_.fileName)?_:t.getLanguageService().getSourceMapper().tryGetSourcePosition(_))),p=new Set;e:for(;!s.isEmpty();){for(;!s.isEmpty();){if(l.isCancellationRequested())break e;const{project:e,location:t}=s.dequeue();if(a.has(e))continue;if(Mve(e,t))continue;if(cve(e),!e.containsFile(fhe(t.fileName)))continue;const n=f(e,t);a.set(e,n??she),p.add(Rve(e))}_&&(c.loadAncestorProjectTree(p),c.forEachEnabledProject((e=>{if(l.isCancellationRequested())return;if(a.has(e))return;const t=jve(_,e,u,d);t&&s.enqueue({project:e,location:t})})))}return 1===a.size?Ee(a.values()):a;function f(e,t){const n=i(e,t);if(n){for(const t of n)o(t,(t=>{const n=c.getOriginalLocationEnsuringConfiguredProject(e,t);if(!n)return;const r=c.getScriptInfo(n.fileName);for(const e of r.containingProjects)e.isOrphan()||a.has(e)||s.enqueue({project:e,location:n});const i=c.getSymlinkedProjects(r);i&&i.forEach(((e,t)=>{for(const r of e)r.isOrphan()||a.has(r)||s.enqueue({project:r,location:{fileName:t,pos:n.pos}})}))}));return n}}}function jve(e,t,n,r){if(t.containsFile(fhe(e.fileName))&&!Mve(t,e))return e;const i=n();if(i&&t.containsFile(fhe(i.fileName)))return i;const o=r();return o&&t.containsFile(fhe(o.fileName))?o:void 0}function Mve(e,t){if(!t)return!1;const n=e.getLanguageService().getProgram();if(!n)return!1;const r=n.getSourceFile(t.fileName);return!!r&&r.resolvedPath!==r.path&&r.resolvedPath!==e.toPath(t.fileName)}function Rve(e){return gye(e)?e.canonicalConfigFilePath:e.getProjectName()}function Bve({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function Jve(e,t){return vY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function zve(e,t){return bY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function qve(e,t){return xY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function Uve(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset($s(e))}}function Vve(e,t,n){const r=Uve(e,n),i=t&&Uve(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function Wve(e,t){return pve(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t);var n}function Hve(e,t,n,r){const i=function(e,t,n){for(const{fileName:r,textChanges:i}of n)if(r===t)for(let t=i.length-1;t>=0;t--){const{newText:n,span:{start:r,length:o}}=i[t];e=e.slice(0,r)+n+e.slice(r+o)}return e}(e,t,r),{line:o,character:a}=ss(rs(i),n);return{line:o+1,offset:a+1}}function $ve(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:o},{disableLineTextInReferences:a}){const s=Sn.checkDefined(e.getScriptInfo(t)),c=Vve(n,r,s),l=a?void 0:function(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,$s(n)).replace(/\r|\n/g,"")}(s,c);return{file:t,...c,lineText:l,isWriteAccess:i,isDefinition:o}}function Kve(e){return void 0===e||e&&"object"==typeof e&&"string"==typeof e.exportName&&(void 0===e.fileName||"string"==typeof e.fileName)&&(void 0===e.ambientModuleName||"string"==typeof e.ambientModuleName&&(void 0===e.isPackageJsonImport||"boolean"==typeof e.isPackageJsonImport))}var Gve,Xve,Qve,Yve,Zve,ebe,tbe,nbe,rbe,ibe=g({"src/server/session.ts"(){lbe(),sbe(),Uhe(),vve={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},bve=Dhe,xve=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){void 0!==this.requestId&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){const n=this.requestId;Sn.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate((()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,(()=>this.executeAction(t)))}),e))}delay(e,t,n){const r=this.requestId;Sn.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)))}),t,e))}executeAction(e){var t,n,r,i,o,a;let s=!1;try{this.operationHost.isCancellationRequested()?(s=!0,null==(t=Fr)||t.instant(Fr.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):(null==(n=Fr)||n.push(Fr.Phase.Session,"stepAction",{seq:this.requestId}),e(this),null==(r=Fr)||r.pop())}catch(e){null==(i=Fr)||i.popAll(),s=!0,e instanceof qr?null==(o=Fr)||o.instant(Fr.Phase.Session,"stepCanceled",{seq:this.requestId}):(null==(a=Fr)||a.instant(Fr.Phase.Session,"stepError",{seq:this.requestId,message:e.message}),this.operationHost.logError(e,`delayed processing of request ${this.requestId}`))}!s&&this.hasPendingWork()||this.complete()}setTimerHandle(e){void 0!==this.timerHandle&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){void 0!==this.immediateId&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},Sve=["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"],kve=[...Sve,"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"],Tve=class e{constructor(e){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const e={version:t};return this.requiredResponse(e)},openExternalProject:e=>(this.projectService.openExternalProject(e.arguments),this.requiredResponse(!0)),openExternalProjects:e=>(this.projectService.openExternalProjects(e.arguments.projects),this.requiredResponse(!0)),closeExternalProject:e=>(this.projectService.closeExternalProject(e.arguments.projectFileName),this.requiredResponse(!0)),synchronizeProjectList:e=>{const t=this.projectService.synchronizeProjectList(e.arguments.knownProjects,e.arguments.includeProjectReferenceRedirectInfo);if(!t.some((e=>e.projectErrors&&0!==e.projectErrors.length)))return this.requiredResponse(t);const n=J(t,(e=>e.projectErrors&&0!==e.projectErrors.length?{info:e.info,changes:e.changes,files:e.files,projectErrors:this.convertToDiagnosticsWithLinePosition(e.projectErrors,void 0)}:e));return this.requiredResponse(n)},updateOpen:e=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(e.arguments.openFiles&&z(e.arguments.openFiles,(e=>({fileName:e.file,content:e.fileContent,scriptKind:e.scriptKindName,projectRootPath:e.projectRootPath}))),e.arguments.changedFiles&&z(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:X(Ce(e.textChanges),(t=>{const n=Sn.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&&z(e.arguments.changedFiles,(e=>({fileName:e.fileName,changes:Ce(e.changes)}))),e.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),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(fhe(e.arguments.file),e.arguments.fileContent,Xye(e.arguments.scriptKindName),e.arguments.projectRootPath?fhe(e.arguments.projectRootPath):void 0),this.notRequired()),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()),geterrForProject:e=>(this.errorCheck.startNew((t=>this.getDiagnosticsForProject(t,e.arguments.delay,e.arguments.file))),this.notRequired()),change:e=>(this.change(e.arguments),this.notRequired()),configure:e=>(this.projectService.setHostConfiguration(e.arguments),this.doOutput(void 0,"configure",e.seq,!0),this.notRequired()),reload:e=>(this.reload(e.arguments,e.seq),this.requiredResponse({reloadFinished:!0})),saveto:e=>{const t=e.arguments;return this.saveToTmp(t.file,t.tmpfile),this.notRequired()},close:e=>{const t=e.arguments;return this.closeClientFile(t.file),this.notRequired()},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:()=>(this.projectService.reloadProjects(),this.notRequired()),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)),"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.doOutput(void 0,"configurePlugin",e.seq,!0),this.notRequired()),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))})),this.host=e.host,this.cancellationToken=e.cancellationToken,this.typingsInstaller=e.typingsInstaller||Xhe,this.byteLength=e.byteLength,this.hrtime=e.hrtime,this.logger=e.logger,this.canUseEvents=e.canUseEvents,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=e.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:n}=e;this.eventHandler=this.canUseEvents?e.eventHandler||(e=>this.defaultEventHandler(e)):void 0;const r={executeWithRequestId:(e,t)=>this.executeWithRequestId(e,t),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(e,t)=>this.logError(e,t),sendRequestCompletedEvent:e=>this.sendRequestCompletedEvent(e),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new xve(r);const i={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:e.useSingleInferredProject,useInferredProjectPerProjectRoot:e.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:n,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};switch(this.projectService=new qye(i),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new The(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Sve.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}))));break;case 2:kve.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.Syntactic`)}))));break;default:Sn.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(e){this.event({request_seq:e},"requestCompleted")}addPerformanceData(e,t){this.performanceData||(this.performanceData={}),this.performanceData[e]=(this.performanceData[e]??0)+t}performanceEventHandler(e){switch(e.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",e.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",e.durationMs)}}defaultEventHandler(e){switch(e.eventName){case xye:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case Sye:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case kye:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case Tye:case Fye:case Pye:case Eye:this.event(e.data,e.eventName);break;case Cye:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:J(e.data.diagnostics,(e=>Pve(e,!0)))},e.eventName);break;case wye:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case Nye:{const t="telemetry";this.event({telemetryEventName:e.eventName,payload:e.data},t);break}}}projectsUpdatedInBackgroundEvent(e){this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${e}`),e.length&&(this.suppressDiagnosticEvents||this.noGetErrOnBackgroundUpdate||this.errorCheck.startNew((t=>this.updateErrorCheck(t,e,100,!0))),this.event({openFiles:e},xye))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r="Exception on executing command "+t;if(e.message&&(r+=":\n"+RK(e.message),e.stack&&(r+="\n"+RK(e.stack))),this.logger.hasLevel(3)){if(n)try{const{file:e,project:t}=this.getFileAndProject(n),i=t.getScriptInfoForNormalizedPath(e);if(i){const e=UQ(i.getSnapshot());r+=`\n\nFile text of ${n.file}:${RK(e)}\n`}}catch{}if(e.ProgramFiles){r+=`\n\nProgram files: ${JSON.stringify(e.ProgramFiles)}\n`,r+="\n\nProjects::\n";let t=0;const n=e=>{r+=`\nProject '${e.projectName}' (${eye[e.projectKind]}) ${t}\n`,r+=e.filesToString(!0),r+="\n-----------------------------------------------\n",t++};this.projectService.externalProjects.forEach(n),this.projectService.configuredProjects.forEach(n),this.projectService.inferredProjects.forEach(n)}}this.logger.msg(r,"Err")}send(e){"event"!==e.type||this.canUseEvents?this.writeMessage(e):this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(e)}`)}writeMessage(e){var t;const n=Eve(e,this.logger,this.byteLength,this.host.newLine);null==(t=rr)||t.logEvent(`Response message size: ${n.length}`),this.host.write(n)}event(e,t){this.send(Ave(t,e))}doOutput(e,t,n,r,i){const o={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:this.performanceData};if(r){let t;if(_t(e))o.body=e,t=e.metadata,delete e.metadata;else if("object"==typeof e)if(e.metadata){const{metadata:n,...r}=e;o.body=r,t=n}else o.body=e;else o.body=e;t&&(o.metadata=t)}else Sn.assert(void 0===e);i&&(o.message=i),this.send(o)}semanticCheck(e,t){var n,r;null==(n=Fr)||n.push(Fr.Phase.Session,"semanticCheck",{file:e,configFilePath:t.canonicalConfigFilePath});const i=wve(t,e)?she:t.getLanguageService().getSemanticDiagnostics(e).filter((e=>!!e.file));this.sendDiagnosticsEvent(e,t,i,"semanticDiag"),null==(r=Fr)||r.pop()}syntacticCheck(e,t){var n,r;null==(n=Fr)||n.push(Fr.Phase.Session,"syntacticCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSyntacticDiagnostics(e),"syntaxDiag"),null==(r=Fr)||r.pop()}suggestionCheck(e,t){var n,r;null==(n=Fr)||n.push(Fr.Phase.Session,"suggestionCheck",{file:e,configFilePath:t.canonicalConfigFilePath}),this.sendDiagnosticsEvent(e,t,t.getLanguageService().getSuggestionDiagnostics(e),"suggestionDiag"),null==(r=Fr)||r.pop()}sendDiagnosticsEvent(e,t,n,r){try{this.event({file:e,diagnostics:n.map((n=>Nve(e,t,n)))},r)}catch(e){this.logError(e,r)}}updateErrorCheck(e,t,n,r=!0){Sn.assert(!this.suppressDiagnosticEvents);const i=this.changeSeq,o=Math.min(n,200);let a=0;const s=()=>{a++,t.length>a&&e.delay("checkOne",o,c)},c=()=>{if(this.changeSeq!==i)return;let n=t[a];if(dt(n)&&(n=this.toPendingErrorCheck(n),!n))return void s();const{fileName:o,project:c}=n;cve(c),c.containsFile(o,r)&&(this.syntacticCheck(o,c),this.changeSeq===i&&(0===c.projectService.serverMode?e.immediate("semanticCheck",(()=>{this.semanticCheck(o,c),this.changeSeq===i&&(this.getPreferences(o).disableSuggestions?s():e.immediate("suggestionCheck",(()=>{this.suggestionCheck(o,c),s()})))})):s()))};t.length>a&&this.changeSeq===i&&e.delay("checkOne",n,c)}cleanProjects(e,t){if(t){this.logger.info(`cleaning ${e}`);for(const 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){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e);return n.getEncodedSyntacticClassifications(t,e)}getEncodedSemanticClassifications(e){const{file:t,project:n}=this.getFileAndProject(e),r="2020"===e.format?"2020":"original";return n.getLanguageService().getEncodedSemanticClassifications(t,e,r)}getProject(e){return void 0===e?void 0:this.projectService.findProject(e)}getConfigFileAndProject(e){const t=this.getProject(e.projectFileName),n=fhe(e.file);return{configFile:t&&t.hasConfigFile(n)?n:void 0,project:t}}getConfigFileDiagnostics(e,t,n){const r=M(oe(t.getAllProjectErrors(),t.getLanguageService().getCompilerOptionsDiagnostics()),(t=>!!t.file&&t.file.fileName===e));return n?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r):J(r,(e=>Pve(e,!1)))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map((e=>({message:kV(e.messageText,this.host.newLine),start:e.start,length:e.length,category:to(e),code:e.code,source:e.source,startLocation:e.file&&Fve(_s(e.file,e.start)),endLocation:e.file&&Fve(_s(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:J(e.relatedInformation,Dve)})))}getCompilerOptionsDiagnostics(e){const t=this.getProject(e.projectFileName);return this.convertToDiagnosticsWithLinePosition(M(t.getLanguageService().getCompilerOptionsDiagnostics(),(e=>!e.file)),void 0)}convertToDiagnosticsWithLinePosition(e,t){return e.map((e=>({message:kV(e.messageText,this.host.newLine),start:e.start,length:e.length,category:to(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:J(e.relatedInformation,Dve)})))}getDiagnosticsWorker(e,t,n,r){const{project:i,file:o}=this.getFileAndProject(e);if(t&&wve(i,o))return she;const a=i.getScriptInfoForNormalizedPath(o),s=n(i,o);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map((e=>Nve(o,i,e)))}getDefinition(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapDefinitionInfoLocations(i.getLanguageService().getDefinitionAtPosition(r,o)||she,i);return n?this.mapDefinitionInfo(a,i):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map((e=>{const n=zve(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){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=Sn.checkDefined(i.getScriptInfo(r)),s=i.getLanguageService().getDefinitionAndBoundSpan(r,o);if(!s||!s.definitions)return{definitions:she,textSpan:void 0};const c=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:l}=s;return n?{definitions:this.mapDefinitionInfo(c,i),textSpan:Uve(l,a)}:{definitions:c.map(e.mapToOriginalLocation),textSpan:l}}findSourceDefinition(e){var t;const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDefinitionAtPosition(n,i);let a=this.mapDefinitionInfoLocations(o||she,r).slice();if(0===this.projectService.serverMode&&(!re(a,(e=>fhe(e.fileName)!==n&&!e.isAmbient))||re(a,(e=>!!e.failedAliasResolution)))){const e=lt((e=>e.textSpan.start),gY);null==a||a.forEach((t=>e.add(t)));const o=r.getNoDtsResolutionProject(n),_=o.getLanguageService(),u=null==(t=_.getDefinitionAtPosition(n,i,!0,!1))?void 0:t.filter((e=>fhe(e.fileName)!==n));if(re(u))for(const t of u){if(t.unverified){const n=c(t,r.getLanguageService().getProgram(),_.getProgram());if(re(n)){for(const t of n)e.add(t);continue}}e.add(t)}else{const t=a.filter((e=>fhe(e.fileName)!==n&&e.isAmbient));for(const a of re(t)?t:function(){const e=r.getLanguageService(),t=e.getProgram(),o=HX(t.getSourceFile(n),i);if((Qu(o)||HN(o))&&sS(o.parent))return dS(o,(t=>{var r;if(t===o)return;const i=null==(r=e.getDefinitionAtPosition(n,t.getStart(),!0,!1))?void 0:r.filter((e=>fhe(e.fileName)!==n&&e.isAmbient)).map((e=>({fileName:e.fileName,name:Ly(o)})));return re(i)?i:void 0}))||she;return she}()){const t=s(a.fileName,n,o);if(!t)continue;const r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,o.currentDirectory,o.directoryStructureHost);if(!r)continue;o.containsScriptInfo(r)||(o.addRoot(r),o.updateGraph());const i=_.getProgram(),c=Sn.checkDefined(i.getSourceFile(t));for(const t of l(a.name,c,i))e.add(t)}}a=$e(e.values())}return a=a.filter((e=>!e.isAmbient&&!e.failedAliasResolution)),this.mapDefinitionInfo(a,r);function s(e,t,n){var i,o,a;const s=GT(e);if(s&&e.lastIndexOf(Ij)===s.topLevelNodeModulesIndex){const c=e.substring(0,s.packageRootIndex),l=null==(i=r.getModuleResolutionCache())?void 0:i.getPackageJsonInfoCache(),_=r.getCompilationSettings(),u=WM(_a(c+"/package.json",r.getCurrentDirectory()),VM(l,r,_));if(!u)return;const d=qM(u,{moduleResolution:2},r,r.getModuleResolutionCache()),p=uR(dR(e.substring(s.topLevelPackageNameIndex+1,s.packageRootIndex))),f=r.toPath(e);if(d&&re(d,(e=>r.toPath(e)===f)))return null==(o=n.resolutionCache.resolveSingleModuleNameWithoutWatching(p,t).resolvedModule)?void 0:o.resolvedFileName;{const r=`${p}/${Yk(e.substring(s.packageRootIndex+1))}`;return null==(a=n.resolutionCache.resolveSingleModuleNameWithoutWatching(r,t).resolvedModule)?void 0:a.resolvedFileName}}}function c(e,t,r){var o;const a=r.getSourceFile(e.fileName);if(!a)return;const s=HX(t.getSourceFile(n),i),c=t.getTypeChecker().getSymbolAtLocation(s),_=c&&rp(c,276);if(!_)return;return l((null==(o=_.propertyName)?void 0:o.text)||_.name.text,a,r)}function l(e,t,n){return G(mue.Core.getTopMostDeclarationNamesInFile(e,t),(e=>{const t=n.getTypeChecker().getSymbolAtLocation(e),r=ty(e);if(t&&r)return Oue.createDefinitionInfo(r,n.getTypeChecker(),t,r,!0)}))}}getEmitOutput(e){const{file:t,project:n}=this.getFileAndProject(e);if(!n.shouldEmitFile(n.getScriptInfo(t)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const r=n.getLanguageService().getEmitOutput(t);return e.richResponse?{...r,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(r.diagnostics):r.diagnostics.map((e=>Pve(e,!0)))}:r}mapJSDocTagInfo(e,t,n){return e?e.map((e=>{var r;return{...e,text:n?this.mapDisplayParts(e.text,t):null==(r=e.text)?void 0:r.map((e=>e.text)).join("")}})):[]}mapDisplayParts(e,t){return e?e.map((e=>"linkName"!==e.kind?e:{...e,target:this.toFileSpan(e.target.fileName,e.target.textSpan,t)})):[]}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?(Sn.assert(void 0!==e.originalTextSpan,"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){const r=n.getLanguageService(),i=r.toLineColumnOffset(e,t.start),o=r.toLineColumnOffset(e,$s(t));return{file:e,start:{line:i.line+1,offset:i.character+1},end:{line:o.line+1,offset:o.character+1}}}toFileSpanWithContext(e,t,n,r){const i=this.toFileSpan(e,t,r),o=n&&this.toFileSpan(e,n,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}getTypeDefinition(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.getPositionInFile(e,t),i=this.mapDefinitionInfoLocations(n.getLanguageService().getTypeDefinitionAtPosition(t,r)||she,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map((e=>{const n=zve(e,t);return n?{...n,kind:e.kind,displayParts:e.displayParts}:e}))}getImplementation(t,n){const{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),a=this.mapImplementationLocations(i.getLanguageService().getImplementationAtPosition(r,o)||she,i);return n?a.map((({fileName:e,textSpan:t,contextSpan:n})=>this.toFileSpanWithContext(e,t,n,i))):a.map(e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(e){const{configFile:t}=this.getConfigFileAndProject(e);return t?she:this.getDiagnosticsWorker(e,!1,((e,t)=>e.getLanguageService().getSyntacticDiagnostics(t)),!!e.includeLinePosition)}getSemanticDiagnosticsSync(e){const{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){const{configFile:t}=this.getConfigFileAndProject(e);return t?she:this.getDiagnosticsWorker(e,!0,((e,t)=>e.getLanguageService().getSuggestionDiagnostics(t)),!!e.includeLinePosition)}getJsxClosingTag(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getJsxClosingTagAtPosition(t,r);return void 0===i?void 0:{newText:i.newText,caretOffset:0}}getLinkedEditingRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=n.getLinkedEditingRangeAtPosition(t,r),o=this.projectService.getScriptInfoForNormalizedPath(t);if(void 0!==o&&void 0!==i)return function(e,t){const 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}}(i,o)}getDocumentHighlights(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.getPositionInFile(e,n),o=r.getLanguageService().getDocumentHighlights(n,i,e.filesToSearch);return o?t?o.map((({fileName:e,highlightSpans:t})=>{const n=r.getScriptInfo(e);return{file:e,highlightSpans:t.map((({textSpan:e,kind:t,contextSpan:r})=>({...Vve(e,r,n),kind:t})))}})):o:she}provideInlayHints(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);return n.getLanguageService().provideInlayHints(t,e,this.getPreferences(t)).map((e=>{const{position:t,displayParts:n}=e;return{...e,position:r.positionToLineOffset(t),displayParts:null==n?void 0:n.map((({text:e,span:t,file:n})=>{if(t){Sn.assertIsDefined(n,"Target file should be defined together with its span.");const r=this.projectService.getScriptInfo(n);return{text:e,span:{start:r.positionToLineOffset(t.start),end:r.positionToLineOffset(t.start+t.length),file:n}}}return{text:e}}))}}))}setCompilerOptionsForInferredProjects(e){this.projectService.setCompilerOptionsForInferredProjects(e.options,e.projectRootPath)}getProjectInfo(e){return this.getProjectInfoWorker(e.file,e.projectFileName,e.needFileNameList,!1)}getProjectInfoWorker(e,t,n,r){const{project:i}=this.getFileAndProjectWorker(e,t);cve(i);return{configFileName:i.getProjectName(),languageServiceDisabled:!i.languageServiceEnabled,fileNames:n?i.getFileNames(!1,r):void 0}}getRenameInfo(e){const{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){const t=this.getProject(e.projectFileName);t&&(r=[t])}else{const o=t?this.projectService.getScriptInfoEnsuringProjectsUptoDate(e.file):this.projectService.getScriptInfo(e.file);if(!o)return n?she:(this.projectService.logErrorForScriptInfoNotFound(e.file),lhe.ThrowNoProject());t||this.projectService.ensureDefaultProjectForFile(o),r=o.containingProjects,i=this.projectService.getSymlinkedProjects(o)}return r=M(r,(e=>e.languageServiceEnabled&&!e.isOrphan())),n||r&&r.length||i?i?{projects:r,symLinkedProjects:i}:r:(this.projectService.logErrorForScriptInfoNotFound(e.file??e.projectFileName),lhe.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return lhe.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){const n=fhe(e.file),r=this.getPositionInFile(e,n),i=this.getProjects(e),o=this.getDefaultProject(e),a=this.getPreferences(n),s=this.mapRenameInfo(o.getLanguageService().getRenameInfo(n,r,a),Sn.checkDefined(this.projectService.getScriptInfo(n)));if(!s.canRename)return t?{info:s,locs:[]}:[];const c=function(e,t,n,r,i,o){const a=Lve(e,t,n,!0,((e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,o)),((e,t)=>t(Bve(e))));if(_t(a))return a;const s=[],c=Ive();return a.forEach(((e,t)=>{for(const n of e)c.has(n)||Jve(Bve(n),t)||(s.push(n),c.add(n))})),s}(i,o,{fileName:e.file,pos:r},!!e.findInStrings,!!e.findInComments,a);return t?{info:s,locs:this.toSpanGroups(c)}:c}mapRenameInfo(e,t){if(e.canRename){const{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:c}=e;return{canRename:n,fileToRename:r,displayName:i,fullDisplayName:o,kind:a,kindModifiers:s,triggerSpan:Uve(c,t)}}return e}toSpanGroups(e){const t=new Map;for(const{fileName:n,textSpan:r,contextSpan:i,originalContextSpan:o,originalTextSpan:a,originalFileName:s,...c}of e){let e=t.get(n);e||t.set(n,e={file:n,locs:[]});const o=Sn.checkDefined(this.projectService.getScriptInfo(n));e.locs.push({...Vve(r,i,o),...c})}return $e(t.values())}getReferences(e,t){const n=fhe(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),o=function(e,t,n,r){var i,o;const a=Lve(e,t,n,!1,((e,t)=>(r.info(`Finding references to ${t.fileName} position ${t.pos} in project ${e.getProjectName()}`),e.getLanguageService().findReferences(t.fileName,t.pos))),((e,t)=>{t(Bve(e.definition));for(const n of e.references)t(Bve(n))}));if(_t(a))return a;const s=a.get(t);if(void 0===(null==(o=null==(i=null==s?void 0:s[0])?void 0:i.references[0])?void 0:o.isDefinition))a.forEach((e=>{for(const t of e)for(const e of t.references)delete e.isDefinition}));else{const e=Ive();for(const t of s)for(const n of t.references)if(n.isDefinition){e.add(n);break}const 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(const t of e)for(const e of t.references)e.isDefinition=!1}))}const c=[],l=Ive();return a.forEach(((e,t)=>{for(const n of e){const e=Jve(Bve(n.definition),t),r=void 0===e?n.definition:{...n.definition,textSpan:oc(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:qve(n.definition,t)};let i=D(c,(e=>gY(e.definition,r)));i||(i={definition:r,references:[]},c.push(i));for(const e of n.references)l.has(e)||Jve(Bve(e),t)||(l.add(e),i.references.push(e))}})),c.filter((e=>0!==e.references.length))}(r,this.getDefaultProject(e),{fileName:e.file,pos:i},this.logger);if(!t)return o;const a=this.getPreferences(n),s=this.getDefaultProject(e),c=s.getScriptInfoForNormalizedPath(n),l=s.getLanguageService().getQuickInfoAtPosition(n,i),_=l?e5(l.displayParts):"",u=l&&l.textSpan,d=u?c.positionToLineOffset(u.start).offset:0,p=u?c.getSnapshot().getText(u.start,$s(u)):"";return{refs:V(o,(e=>e.references.map((e=>$ve(this.projectService,e,a))))),symbolName:p,symbolStartOffset:d,symbolDisplayString:_}}getFileReferences(e,t){const n=this.getProjects(e),r=e.file,i=this.getPreferences(fhe(r)),o=[],a=Ive();if(Ove(n,void 0,(e=>{if(e.getCancellationToken().isCancellationRequested())return;const t=e.getLanguageService().getFileReferences(r);if(t)for(const e of t)a.has(e)||(o.push(e),a.add(e))})),!t)return o;return{refs:o.map((e=>$ve(this.projectService,e,i))),symbolName:`"${e.file}"`}}openClientFile(e,t,n,r){this.projectService.openClientFileWithNormalizedPath(e,t,n,!1,r)}getPosition(e,t){return void 0!==e.position?e.position:t.lineOffsetToPosition(e.line,e.offset)}getPositionInFile(e,t){const n=this.projectService.getScriptInfoForNormalizedPath(t);return this.getPosition(e,n)}getFileAndProject(e){return this.getFileAndProjectWorker(e.file,e.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(e){const{file:t,project:n}=this.getFileAndProject(e);return{file:t,languageService:n.getLanguageService(!1)}}getFileAndProjectWorker(e,t){const n=fhe(e);return{file:n,project:this.getProject(t)||this.projectService.ensureDefaultProjectForFile(n)}}getOutliningSpans(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=r.getOutliningSpans(n);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return i.map((t=>({textSpan:Uve(t.textSpan,e),hintSpan:Uve(t.hintSpan,e),bannerText:t.bannerText,autoCollapse:t.autoCollapse,kind:t.kind})))}return i}getTodoComments(e){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getTodoComments(t,e.descriptors)}getDocCommentTemplate(e){const{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){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.onlyMultiLine,i=this.getPositionInFile(e,t);return n.getSpanOfEnclosingComment(t,i,r)}getIndentation(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t),i=e.options?Wye(e.options):this.getFormatOptions(t);return{position:r,indentation:n.getIndentationAtPosition(t,r,i)}}getBreakpointStatement(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getBreakpointStatementAtPosition(t,r)}getNameOrDottedNameSpan(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.getNameOrDottedNameSpan(t,r,r)}isValidBraceCompletion(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.getPositionInFile(e,t);return n.isValidBraceCompletionAtPosition(t,r,e.openingBrace.charCodeAt(0))}getQuickInfoWorker(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i));if(!o)return;const a=!!this.getPreferences(n).displayPartsForJSDoc;if(t){const e=e5(o.displayParts);return{kind:o.kind,kindModifiers:o.kindModifiers,start:i.positionToLineOffset(o.textSpan.start),end:i.positionToLineOffset($s(o.textSpan)),displayString:e,documentation:a?this.mapDisplayParts(o.documentation,r):e5(o.documentation),tags:this.mapJSDocTagInfo(o.tags,r,a)}}return a?o:{...o,tags:this.mapJSDocTagInfo(o.tags,r,!1)}}getFormattingEditsForRange(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=r.lineOffsetToPosition(e.endLine,e.endOffset),a=n.getFormattingEditsForRange(t,i,o,this.getFormatOptions(t));if(a)return a.map((e=>this.convertTextChangeToCodeEdit(e,r)))}getFormattingEditsForRangeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Wye(e.options):this.getFormatOptions(t);return n.getFormattingEditsForRange(t,e.position,e.endPosition,r)}getFormattingEditsForDocumentFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Wye(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?Wye(e.options):this.getFormatOptions(t);return n.getFormattingEditsAfterKeystroke(t,e.position,e.key,r)}getFormattingEditsAfterKeystroke(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=this.projectService.getScriptInfoForNormalizedPath(t),i=r.lineOffsetToPosition(e.line,e.offset),o=this.getFormatOptions(t),a=n.getFormattingEditsAfterKeystroke(t,i,e.key,o);if("\n"===e.key&&(!a||0===a.length||function(e,t){return e.every((e=>$s(e.span)<t))}(a,i))){const{lineText:s,absolutePosition:c}=r.textStorage.getAbsolutePositionAndLineText(e.line);if(s&&s.search("\\S")<0){const e=n.getIndentationAtPosition(t,i,o);let r,l,_=0;for(r=0,l=s.length;r<l;r++)if(" "===s.charAt(r))_++;else{if("\t"!==s.charAt(r))break;_+=o.tabSize}if(e!==_){const t=c+r;a.push({span:ac(c,t),newText:Mge.getIndentationString(e,o)})}}}if(a)return a.map((e=>({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset($s(e.span)),newText:e.newText?e.newText:""})))}getCompletions(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getCompletionsAtPosition(n,o,{...Qye(this.getPreferences(n)),triggerCharacter:e.triggerCharacter,triggerKind:e.triggerKind,includeExternalModuleExports:e.includeExternalModuleExports,includeInsertTextCompletions:e.includeInsertTextCompletions},r.projectService.getFormatCodeOptions(n));if(void 0===a)return;if("completions-full"===t)return a;const s=e.prefix||"",c=G(a.entries,(e=>{if(a.isMemberCompletion||an(e.name.toLowerCase(),s.toLowerCase())){const{name:t,kind:n,kindModifiers:r,sortText:o,insertText:a,filterText:s,replacementSpan:c,hasAction:l,source:_,sourceDisplay:u,labelDetails:d,isSnippet:p,isRecommended:f,isPackageJsonImport:m,isImportStatementCompletion:g,data:h}=e;return{name:t,kind:n,kindModifiers:r,sortText:o,insertText:a,filterText:s,replacementSpan:c?Uve(c,i):void 0,isSnippet:p,hasAction:l||void 0,source:_,sourceDisplay:u,labelDetails:d,isRecommended:f,isPackageJsonImport:m,isImportStatementCompletion:g,data:h}}}));if("completions"===t)return a.metadata&&(c.metadata=a.metadata),c;return{...a,optionalReplacementSpan:a.optionalReplacementSpan&&Uve(a.optionalReplacementSpan,i),entries:c}}getCompletionEntryDetails(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.projectService.getFormatCodeOptions(n),s=!!this.getPreferences(n).displayPartsForJSDoc,c=G(e.entryNames,(e=>{const{name:t,source:i,data:s}="string"==typeof e?{name:e,source:void 0,data:void 0}:e;return r.getLanguageService().getCompletionEntryDetails(n,o,t,a,i,this.getPreferences(n),s?mt(s,Kve):void 0)}));return t?s?c:c.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))):c.map((e=>({...e,codeActions:J(e.codeActions,(e=>this.mapCodeAction(e))),documentation:this.mapDisplayParts(e.documentation,r),tags:this.mapJSDocTagInfo(e.tags,r,s)})))}getCompileOnSaveAffectedFileList(e){const t=this.getProjects(e,!0,!0),n=this.projectService.getScriptInfo(e.file);return n?function(e,t,n,r){const i=W(_t(n)?n:n.projects,(t=>r(t,e)));return!_t(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach(((e,n)=>{const o=t(n);i.push(...V(e,(e=>r(e,o))))})),ce(i,Ft)}(n,(e=>this.projectService.getScriptInfoForPath(e)),t,((e,t)=>{if(!e.compileOnSaveEnabled||!e.languageServiceEnabled||e.isOrphan())return;const n=e.getCompilationSettings();return n.noEmit||oO(t.fileName)&&!function(e){return _k(e)||!!e.emitDecoratorMetadata}(n)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!Ev(n)}})):she}emitFile(e){const{file:t,project:n}=this.getFileAndProject(e);if(n||lhe.ThrowNoProject(),!n.languageServiceEnabled)return!!e.richResponse&&{emitSkipped:!0,diagnostics:[]};const r=n.getScriptInfo(t),{emitSkipped:i,diagnostics:o}=n.emitFile(r,((e,t,n)=>this.host.writeFile(e,t,n)));return e.richResponse?{emitSkipped:i,diagnostics:e.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o):o.map((e=>Pve(e,!0)))}:!i}getSignatureHelpItems(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getLanguageService().getSignatureHelpItems(n,o,e),s=!!this.getPreferences(n).displayPartsForJSDoc;if(a&&t){const e=a.applicableSpan;return{...a,applicableSpan:{start:i.positionToLineOffset(e.start),end:i.positionToLineOffset(e.start+e.length)},items:this.mapSignatureHelpItems(a.items,r,s)}}return s||!a?a:{...a,items:a.items.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)})))}}toPendingErrorCheck(e){const t=fhe(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){const t=this.projectService.getScriptInfo(e.file);Sn.assert(!!t),t.textStorage.switchToScriptVersionCache();const n=t.lineOffsetToPosition(e.line,e.offset),r=t.lineOffsetToPosition(e.endLine,e.endOffset);n>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(t,ee({span:{start:n,length:r-n},newText:e.insertString})))}reload(e,t){const n=fhe(e.file),r=void 0===e.tmpfile?void 0:fhe(e.tmpfile),i=this.projectService.getScriptInfoForNormalizedPath(n);i&&(this.changeSeq++,i.reloadFromFile(r)&&this.doOutput(void 0,"reload",t,!0))}saveToTmp(e,t){const n=this.projectService.getScriptInfo(e);n&&n.saveTo(t)}closeClientFile(e){if(!e)return;const t=ua(e);this.projectService.closeClientFile(t)}mapLocationNavigationBarItems(e,t){return J(e,(e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>Uve(e,t))),childItems:this.mapLocationNavigationBarItems(e.childItems,t),indent:e.indent})))}getNavigationBarItems(e,t){const{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=>Uve(e,t))),nameSpan:e.nameSpan&&Uve(e.nameSpan,t),childItems:J(e.childItems,(e=>this.toLocationNavigationTree(e,t)))}}getNavigationTree(e,t){const{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){const n=this.getFullNavigateToItems(e);return V(n,t?({project:e,navigateToItems:t})=>t.map((t=>{const 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($s(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})):({navigateToItems:e})=>e)}getFullNavigateToItems(e){const{currentFileOnly:t,searchValue:n,maxResultCount:r,projectFileName:i}=e;if(t){Sn.assertIsDefined(e.file);const{file:t,project:i}=this.getFileAndProject(e);return[{project:i,navigateToItems:i.getLanguageService().getNavigateToItems(n,r,t)}]}const o=this.getHostPreferences(),a=[],s=new Map;if(e.file||i){Ove(this.getProjects(e),void 0,(e=>c(e)))}else this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>c(e)));return a;function c(e){const t=M(e.getLanguageService().getNavigateToItems(n,r,void 0,e.isNonTsProject(),o.excludeLibrarySymbolsInNavTo),(t=>function(e){const t=e.name;if(!s.has(t))return s.set(t,[e]),!0;const n=s.get(t);for(const t of n)if(l(t,e))return!1;return n.push(e),!0}(t)&&!Jve(Bve(t),e)));t.length&&a.push({project:e,navigateToItems:t})}function l(e,t){return e===t||!(!e||!t)&&(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 n5();if(e.file){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}const t=this.getProject(e.projectFileName);return t||lhe.ThrowNoProject(),t.getLanguageService().getSupportedCodeFixes()}isLocation(e){return void 0!==e.line}extractPositionOrRange(e,t){let n,r;var i;return this.isLocation(e)?n=void 0!==(i=e).position?i.position:t.lineOffsetToPosition(i.line,i.offset):r=this.getRange(e,t),Sn.checkDefined(void 0===n?r:n)}getRange(e,t){const{startPosition:n,endPosition:r}=this.getStartAndEndPosition(e,t);return{pos:n,end:r}}getApplicableRefactors(e){const{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)}getEditsForRefactor(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),o=r.getLanguageService().getEditsForRefactor(n,this.getFormatOptions(n),this.extractPositionOrRange(e,i),e.refactor,e.action,this.getPreferences(n),e.interactiveRefactorArguments);if(void 0===o)return{edits:[]};if(t){const{renameFilename:e,renameLocation:t,edits:n}=o;let i;if(void 0!==e&&void 0!==t){i=Hve(UQ(r.getScriptInfoForNormalizedPath(fhe(e)).getSnapshot()),e,t,n)}return{renameLocation:i,renameFilename:e,edits:this.mapTextChangesToCodeEdits(n),notApplicableReason:o.notApplicableReason}}return o}getMoveToRefactoringFileSuggestions(e){const{file:t,project:n}=this.getFileAndProject(e),r=n.getScriptInfoForNormalizedPath(t);return n.getLanguageService().getMoveToRefactoringFileSuggestions(t,this.extractPositionOrRange(e,r),this.getPreferences(t))}organizeImports(e,t){Sn.assert("file"===e.scope.type);const{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){const n=fhe(e.oldFilePath),r=fhe(e.newFilePath),i=this.getHostFormatOptions(),o=this.getHostPreferences(),a=new Set,s=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject((e=>{const t=e.getLanguageService().getEditsForFileRename(n,r,i,o),c=[];for(const e of t)a.has(e.fileName)||(s.push(e),c.push(e.fileName));for(const e of c)a.add(e)})),t?s.map((e=>this.mapTextChangeToCodeEdit(e))):s}getCodeFixes(e,t){const{file:n,project:r}=this.getFileAndProject(e),i=r.getScriptInfoForNormalizedPath(n),{startPosition:o,endPosition:a}=this.getStartAndEndPosition(e,i);let s;try{s=r.getLanguageService().getCodeFixesAtPosition(n,o,a,e.errorCodes,this.getFormatOptions(n),this.getPreferences(n))}catch(t){const i=r.getLanguageService(),s=[...i.getSyntacticDiagnostics(n),...i.getSemanticDiagnostics(n),...i.getSuggestionDiagnostics(n)].map((e=>nc(o,a-o,e.start,e.length)&&e.code)),c=e.errorCodes.find((e=>!s.includes(e)));throw void 0!==c&&(t.message=`BADCLIENT: Bad error code, ${c} not found in range ${o}..${a} (found: ${s.join(", ")}); could have caused this error:\n${t.message}`),t}return t?s.map((e=>this.mapCodeFixAction(e))):s}getCombinedCodeFix({scope:e,fixId:t},n){Sn.assert("file"===e.type);const{file:r,project:i}=this.getFileAndProject(e.args),o=i.getLanguageService().getCombinedCodeFix({type:"file",fileName:r},t,this.getFormatOptions(r),this.getPreferences(r));return n?{changes:this.mapTextChangesToCodeEdits(o.changes),commands:o.commands}:o}applyCodeActionCommand(e){const t=e.command;for(const e of ut(t)){const{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 void 0!==e.startPosition?n=e.startPosition:(n=t.lineOffsetToPosition(e.startLine,e.startOffset),e.startPosition=n),void 0!==e.endPosition?r=e.endPosition:(r=t.lineOffsetToPosition(e.endLine,e.endOffset),e.endPosition=r),{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:o}){return{fixName:e,description:t,changes:this.mapTextChangesToCodeEdits(n),commands:r,fixId:i,fixAllDescription:o}}mapTextChangesToCodeEdits(e){return e.map((e=>this.mapTextChangeToCodeEdit(e)))}mapTextChangeToCodeEdit(e){const t=this.projectService.getScriptInfoOrConfig(e.fileName);return!!e.isNewFile==!!t&&(t||this.projectService.logErrorForScriptInfoNotFound(e.fileName),Sn.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!e.isNewFile,hasScriptInfo:!!t}))),t?{fileName:e.fileName,textChanges:e.textChanges.map((e=>function(e,t){return{start:Wve(t,e.span.start),end:Wve(t,$s(e.span)),newText:e.newText}}(e,t)))}:function(e){Sn.assert(1===e.textChanges.length);const t=Pe(e.textChanges);return Sn.assert(0===t.span.start&&0===t.span.length),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}(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){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getPosition(e,i),a=r.getBraceMatchingAtPosition(n,o);return a?t?a.map((e=>Uve(e,i))):a:void 0}getDiagnosticsForProject(e,t,n){if(this.suppressDiagnosticEvents)return;const{fileNames:r,languageServiceDisabled:i}=this.getProjectInfoWorker(n,void 0,!0,!0);if(i)return;const o=r.filter((e=>!e.includes("lib.d.ts")));if(0===o.length)return;const a=[],s=[],c=[],l=[],_=fhe(n),u=this.projectService.ensureDefaultProjectForFile(_);for(const e of o)if(this.getCanonicalFileName(e)===this.getCanonicalFileName(n))a.push(e);else{this.projectService.getScriptInfo(e).isScriptOpen()?s.push(e):oO(e)?l.push(e):c.push(e)}const d=[...a,...s,...c,...l].map((e=>({fileName:e,project:u})));this.updateErrorCheck(e,d,t,!1)}configurePlugin(e){this.projectService.configurePlugin(e)}getSmartSelectionRange(e,t){const{locations:n}=e,{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(e),o=Sn.checkDefined(this.projectService.getScriptInfo(r));return J(n,(e=>{const n=this.getPosition(e,o),a=i.getSmartSelectionRange(r,n);return t?this.mapSelectionRange(a,o):a}))}toggleLineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfo(n),o=this.getRange(e,i),a=r.toggleLineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}toggleMultilineComment(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.toggleMultilineComment(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}commentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.commentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}uncommentSelection(e,t){const{file:n,languageService:r}=this.getFileAndLanguageServiceForSyntacticOperation(e),i=this.projectService.getScriptInfoForNormalizedPath(n),o=this.getRange(e,i),a=r.uncommentSelection(n,o);if(t){const e=this.projectService.getScriptInfoForNormalizedPath(n);return a.map((t=>this.convertTextChangeToCodeEdit(t,e)))}return a}mapSelectionRange(e,t){const n={textSpan:Uve(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){const t=fhe(e),n=this.projectService.getScriptInfoForNormalizedPath(t);return n||(this.projectService.logErrorForScriptInfoNotFound(t),lhe.ThrowNoProject())}toProtocolCallHierarchyItem(e){const t=this.getScriptInfoFromProjectService(e.file);return{name:e.name,kind:e.kind,kindModifiers:e.kindModifiers,file:e.file,containerName:e.containerName,span:Uve(e.span,t),selectionSpan:Uve(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){const t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map((e=>Uve(e,t)))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map((e=>Uve(e,t)))}}prepareCallHierarchy(e){const{file:t,project:n}=this.getFileAndProject(e),r=this.projectService.getScriptInfoForNormalizedPath(t);if(r){const i=this.getPosition(e,r),o=n.getLanguageService().prepareCallHierarchy(t,i);return o&&GZ(o,(e=>this.toProtocolCallHierarchyItem(e)))}}provideCallHierarchyIncomingCalls(e){const{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){const{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 ua(this.host.useCaseSensitiveFileNames?e:St(e))}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(e){return{response:e,responseRequired:!0}}addProtocolHandler(e,t){if(this.handlers.has(e))throw new Error(`Protocol handler already exists for command "${e}"`);this.handlers.set(e,t)}setCurrentRequest(e){Sn.assert(void 0===this.currentRequestId),this.currentRequestId=e,this.cancellationToken.setRequest(e)}resetCurrentRequest(e){Sn.assert(this.currentRequestId===e),this.currentRequestId=void 0,this.cancellationToken.resetRequest(e)}executeWithRequestId(e,t){try{return this.setCurrentRequest(e),t()}finally{this.resetCurrentRequest(e)}}executeCommand(e){const t=this.handlers.get(e.command);if(t){const n=this.executeWithRequestId(e.seq,(()=>t(e)));return this.projectService.enableRequestedPlugins(),n}return this.logger.msg(`Unrecognized JSON command:${BK(e)}`,"Err"),this.doOutput(void 0,"unknown",e.seq,!1,`Unrecognized JSON command: ${e.command}`),{responseRequired:!1}}onMessage(e){var t,n,r,i,o,a,s,c,l,_,u;let d,p,f;this.gcTimer.scheduleCollect(),this.performanceData=void 0,this.logger.hasLevel(2)&&(d=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${RK(this.toStringMessage(e))}`));try{p=this.parseMessage(e),f=p.arguments&&p.arguments.file?p.arguments:void 0,null==(t=Fr)||t.instant(Fr.Phase.Session,"request",{seq:p.seq,command:p.command}),null==(n=rr)||n.logStartCommand(""+p.command,this.toStringMessage(e).substring(0,100)),null==(r=Fr)||r.push(Fr.Phase.Session,"executeCommand",{seq:p.seq,command:p.command},!0);const{response:s,responseRequired:c}=this.executeCommand(p);if(null==(i=Fr)||i.pop(),this.logger.hasLevel(2)){const e=(m=this.hrtime(d),(1e9*m[0]+m[1])/1e6).toFixed(4);c?this.logger.perftrc(`${p.seq}::${p.command}: elapsed time (in milliseconds) ${e}`):this.logger.perftrc(`${p.seq}::${p.command}: async elapsed time (in milliseconds) ${e}`)}null==(o=rr)||o.logStopCommand(""+p.command,"Success"),null==(a=Fr)||a.instant(Fr.Phase.Session,"response",{seq:p.seq,command:p.command,success:!!s}),s?this.doOutput(s,p.command,p.seq,!0):c&&this.doOutput(void 0,p.command,p.seq,!1,"No content available.")}catch(t){if(null==(s=Fr)||s.popAll(),t instanceof qr)return null==(c=rr)||c.logStopCommand(""+(p&&p.command),"Canceled: "+t),null==(l=Fr)||l.instant(Fr.Phase.Session,"commandCanceled",{seq:null==p?void 0:p.seq,command:null==p?void 0:p.command}),void this.doOutput({canceled:!0},p.command,p.seq,!0);this.logErrorWorker(t,this.toStringMessage(e),f),null==(_=rr)||_.logStopCommand(""+(p&&p.command),"Error: "+t),null==(u=Fr)||u.instant(Fr.Phase.Session,"commandError",{seq:null==p?void 0:p.seq,command:null==p?void 0:p.command,message:t.message}),this.doOutput(void 0,p?p.command:"unknown",p?p.seq:0,!1,"Error processing request. "+t.message+"\n"+t.stack)}var m}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()}}}}),obe=g({"src/server/scriptVersionCache.ts"(){lbe(),sbe(),4,Gve=(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))(Gve||{}),Xve=class{constructor(){this.goSubtree=!0,this.lineIndex=new tbe,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new nbe,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;const n=tbe.linesFromText(e).lines;let r,i;n.length>1&&""===n[n.length-1]&&n.pop();for(let e=this.endBranch.length-1;e>=0;e--)this.endBranch[e].updateCounts(),0===this.endBranch[e].charCount()&&(i=this.endBranch[e],r=e>0?this.endBranch[e-1]:this.branchNode);i&&r.remove(i);const o=this.startPath[this.startPath.length-1];if(n.length>0)if(o.text=n[0],n.length>1){let e=new Array(n.length-1),t=o;for(let t=1;t<n.length;t++)e[t-1]=new rbe(n[t]);let r=this.startPath.length-2;for(;r>=0;){const n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let i=e.length;for(;i>0;){const t=new nbe;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(o);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){const o=this.stack[this.stack.length-1];let a;function s(e){return e.isLeaf()?new rbe(""):new nbe}switch(2===this.state&&1===i&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n),i){case 0:this.goSubtree=!1,4!==this.state&&o.add(n);break;case 1:4===this.state?this.goSubtree=!1:(a=s(n),o.add(a),this.startPath.push(a));break;case 2:4!==this.state?(a=s(n),o.add(a),this.startPath.push(a)):n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 3:this.goSubtree=!1;break;case 4:4!==this.state?this.goSubtree=!1:n.isLeaf()||(a=s(n),o.add(a),this.endBranch.push(a));break;case 5:this.goSubtree=!1,1!==this.state&&o.add(n)}this.goSubtree&&this.stack.push(a)}leaf(e,t,n){1===this.state?this.initialText=n.text.substring(0,e):2===this.state?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},Qve=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return lc(oc(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},(Yve=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new Qve(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(const e of this.changes)n=n.edit(e.pos,e.deleteLen,e.insertedText);t=new ebe(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){const t=this._getSnapshot().index,{lineText:n,absolutePosition:r}=t.lineNumberToInfo(e+1);return oc(r,void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,t){if(!(e<t))return Js;if(e>=this.minVersion){const n=[];for(let r=e+1;r<=t;r++){const e=this.versions[this.versionToIndex(r)];for(const t of e.changesSincePreviousVersion)n.push(t.getTextChangeRange())}return _c(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new e,r=new ebe(0,n,new tbe);n.versions[n.currentVersion]=r;const i=tbe.linesFromText(t);return r.index.load(i.lines),n}}).changeNumberThreshold=8,Yve.changeLengthThreshold=256,Yve.maxVersions=8,Zve=Yve,ebe=class e{constructor(e,t,n,r=she){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?Js:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},tbe=class e{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(e){return this.lineNumberToInfo(e).absolutePosition}positionToLineOffset(e){const{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()){const{position:t,leaf:n}=this.root.lineNumberToInfo(e,0);return{absolutePosition:t,lineText:n&&n.text}}return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const n=[];for(let e=0;e<t.length;e++)n[e]=new rbe(t[e]);this.root=e.buildTreeFromBottom(n)}else this.root=new nbe}walk(e,t,n){this.root.walk(e,t,n)}getText(e,t){let n="";return t>0&&e<this.root.charCount()&&this.walk(e,t,{goSubtree:!0,done:!1,leaf:(e,t,r)=>{n=n.concat(r.text.substring(e,e+t))}}),n}getLength(){return this.root.charCount()}every(e,t,n){n||(n=this.root.charCount());const 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(0===this.root.charCount())return Sn.assert(0===n),void 0!==r?(this.load(e.linesFromText(r).lines),this):void 0;{let e;if(this.checkEdits){const i=this.getText(0,this.root.charCount());e=i.slice(0,t)+r+i.slice(t+n)}const i=new Xve;let o=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const e=this.getText(t,1);r=r?e+r:e,n=0,o=!0}else if(n>0){const e=t+n,{zeroBasedColumn:i,lineText:o}=this.positionToColumnAndLineText(e);0===i&&(n+=o.length,r=r?r+o:o)}if(this.root.walk(t,n,i),i.insertLines(r,o),this.checkEdits){const t=i.lineIndex.getText(0,i.lineIndex.getLength());Sn.assert(e===t,"buffer edit mismatch")}return i.lineIndex}}static buildTreeFromBottom(e){if(e.length<4)return new nbe(e);const t=new Array(Math.ceil(e.length/4));let n=0;for(let r=0;r<t.length;r++){const i=Math.min(n+4,e.length);t[r]=new nbe(e.slice(n,i)),n=i}return this.buildTreeFromBottom(t)}static linesFromText(e){const t=rs(e);if(0===t.length)return{lines:[],lineMap:t};const n=new Array(t.length),r=t.length-1;for(let i=0;i<r;i++)n[i]=e.substring(t[i],t[i+1]);const i=e.substring(t[r]);return i.length>0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},nbe=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(const 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){let r=0,i=this.children[r].charCount(),o=e;for(;o>=i;)this.skipChild(o,t,r,n,0),o-=i,r++,i=this.children[r].charCount();if(o+t<=i){if(this.execWalk(o,t,n,r,2))return}else{if(this.execWalk(o,i-o,n,r,1))return;let e=t-(i-o);r++;for(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){const e=this.children.length;if(r<e-1)for(let t=r+1;t<e;t++)this.skipChild(0,0,t,n,5)}}charOffsetToLineInfo(e,t){if(0===this.children.length)return{oneBasedLine:e,zeroBasedColumn:t,lineText:void 0};for(const n of this.children){if(n.charCount()>t)return n.isLeaf()?{oneBasedLine:e,zeroBasedColumn:t,lineText:n.text}:n.charOffsetToLineInfo(e,t);t-=n.charCount(),e+=n.lineCount()}const n=this.lineCount();if(0===n)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};return{oneBasedLine:n,zeroBasedColumn:Sn.checkDefined(this.lineNumberToInfo(n,0).leaf).charCount(),lineText:void 0}}lineNumberToInfo(e,t){for(const n of this.children){const 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;const r=this.children.length,i=++t;if(t<r){for(n=new e;t<r;)n.add(this.children[t]),t++;n.updateCounts()}return this.children.length=i,n}remove(e){const t=this.findChildIndex(e),n=this.children.length;if(t<n-1)for(let e=t;e<n-1;e++)this.children[e]=this.children[e+1];this.children.pop()}findChildIndex(e){const t=this.children.indexOf(e);return Sn.assert(-1!==t),t}insertAt(t,n){let r=this.findChildIndex(t);const i=this.children.length,o=n.length;if(i<4&&r===i-1&&1===o)return this.add(n[0]),this.updateCounts(),[];{const t=this.splitAfter(r);let i=0;for(r++;r<4&&i<o;)this.children[r]=n[i],r++,i++;let a=[],s=0;if(i<o){s=Math.ceil((o-i)/4),a=new Array(s);let t=0;for(let t=0;t<s;t++)a[t]=new e;let r=a[0];for(;i<o;)r.add(n[i]),i++,4===r.children.length&&(t++,r=a[t]);for(let e=a.length-1;e>=0;e--)0===a[e].children.length&&a.pop()}t&&a.push(t),this.updateCounts();for(let e=0;e<s;e++)a[e].updateCounts();return a}}add(e){this.children.push(e),Sn.assert(this.children.length<=4)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},rbe=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,n){n.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}}}}),abe={};h(abe,{ActionInvalidate:()=>TK,ActionPackageInstalled:()=>CK,ActionSet:()=>kK,ActionWatchTypingLocations:()=>PK,Arguments:()=>EK,AutoImportProviderProject:()=>oye,AuxiliaryProject:()=>rye,CharRangeSection:()=>Gve,CloseFileWatcherEvent:()=>Eye,CommandNames:()=>bve,ConfigFileDiagEvent:()=>Cye,ConfiguredProject:()=>aye,CreateDirectoryWatcherEvent:()=>Pye,CreateFileWatcherEvent:()=>Fye,Errors:()=>lhe,EventBeginInstallTypes:()=>NK,EventEndInstallTypes:()=>DK,EventInitializationFailed:()=>FK,EventTypesRegistry:()=>wK,ExternalProject:()=>sye,GcTimer:()=>The,InferredProject:()=>nye,LargeFileReferencedEvent:()=>Tye,LineIndex:()=>tbe,LineLeaf:()=>rbe,LineNode:()=>nbe,LogLevel:()=>ahe,Msg:()=>che,OpenFileInfoTelemetryEvent:()=>Dye,Project:()=>tye,ProjectInfoTelemetryEvent:()=>Nye,ProjectKind:()=>eye,ProjectLanguageServiceStateEvent:()=>wye,ProjectLoadingFinishEvent:()=>kye,ProjectLoadingStartEvent:()=>Sye,ProjectReferenceProjectLoadKind:()=>Jye,ProjectService:()=>qye,ProjectsUpdatedInBackgroundEvent:()=>xye,ScriptInfo:()=>Hhe,ScriptVersionCache:()=>Zve,Session:()=>Tve,TextStorage:()=>Whe,ThrottledOperations:()=>khe,TypingsCache:()=>Qhe,allFilesAreJsOrDts:()=>uye,allRootFilesAreJsOrDts:()=>_ye,asNormalizedPath:()=>ghe,convertCompilerOptions:()=>Hye,convertFormatOptions:()=>Wye,convertScriptKindName:()=>Xye,convertTypeAcquisition:()=>Kye,convertUserPreferences:()=>Qye,convertWatchOptions:()=>$ye,countEachFileTypes:()=>lye,createInstallTypingsRequest:()=>phe,createModuleSpecifierCache:()=>gve,createNormalizedPathMap:()=>hhe,createPackageJsonCache:()=>yve,createSortedArray:()=>She,emptyArray:()=>she,findArgument:()=>jK,forEachResolvedProjectReferenceProject:()=>eve,formatDiagnosticToProtocol:()=>Pve,formatMessage:()=>Eve,getBaseConfigFileName:()=>whe,getLocationInNewDocument:()=>Hve,hasArgument:()=>LK,hasNoTypeScriptSource:()=>dye,indent:()=>RK,isBackgroundProject:()=>yye,isConfigFile:()=>pve,isConfiguredProject:()=>gye,isDynamicFileName:()=>Khe,isExternalProject:()=>hye,isInferredProject:()=>mye,isInferredProjectName:()=>yhe,makeAutoImportProviderProjectName:()=>bhe,makeAuxiliaryProjectName:()=>xhe,makeInferredProjectName:()=>vhe,maxFileSize:()=>bye,maxProgramSizeForNonTsFiles:()=>vye,normalizedPathToPath:()=>mhe,nowString:()=>MK,nullCancellationToken:()=>vve,nullTypingsInstaller:()=>Xhe,projectContainsInfoDirectly:()=>sve,protocol:()=>Vhe,removeSorted:()=>Nhe,stringifyIndented:()=>BK,toEvent:()=>Ave,toNormalizedPath:()=>fhe,tryConvertScriptKindName:()=>Gye,typingsInstaller:()=>ohe,updateProjectIfDirty:()=>cve});var sbe=g({"src/server/_namespaces/ts.server.ts"(){KK(),uhe(),dhe(),Che(),qhe(),$he(),Yhe(),cye(),Uye(),mve(),hve(),Cve(),ibe(),obe()}}),cbe={};h(cbe,{ANONYMOUS:()=>BG,AccessFlags:()=>pi,AssertionLevel:()=>_,AssignmentDeclarationKind:()=>ki,AssignmentKind:()=>fd,Associativity:()=>gd,BreakpointResolver:()=>g5,BuilderFileEmit:()=>oW,BuilderProgramKind:()=>aW,BuilderState:()=>tW,BundleFileSectionKind:()=>Ki,CallHierarchy:()=>j5,CharacterCodes:()=>Ri,CheckFlags:()=>ai,CheckMode:()=>xB,ClassificationType:()=>DG,ClassificationTypeNames:()=>NG,CommentDirectiveType:()=>zr,Comparison:()=>n,CompletionInfoFlags:()=>bG,CompletionTriggerKind:()=>pG,Completions:()=>C_e,ContainerFlags:()=>SR,ContextFlags:()=>Xr,Debug:()=>Sn,DiagnosticCategory:()=>Ti,Diagnostics:()=>Ea,DocumentHighlights:()=>z0,ElementFlags:()=>di,EmitFlags:()=>qi,EmitHint:()=>Wi,EmitOnly:()=>Wr,EndOfLineState:()=>kG,EnumKind:()=>oi,ExitStatus:()=>$r,ExportKind:()=>g0,Extension:()=>Bi,ExternalEmitHelpers:()=>Vi,FileIncludeKind:()=>Ur,FilePreprocessingDiagnosticsKind:()=>Vr,FileSystemEntryKind:()=>_o,FileWatcherEventKind:()=>no,FindAllReferences:()=>mue,FlattenLevel:()=>ez,FlowFlags:()=>Jr,ForegroundColorEscapeSequences:()=>$U,FunctionFlags:()=>md,GeneratedIdentifierFlags:()=>Rr,GetLiteralTextFlags:()=>sd,GoToDefinition:()=>Oue,HighlightSpanKind:()=>mG,IdentifierNameMap:()=>xJ,IdentifierNameMultiMap:()=>SJ,ImportKind:()=>m0,ImportsNotUsedAsValues:()=>Ai,IndentStyle:()=>gG,IndexFlags:()=>fi,IndexKind:()=>yi,InferenceFlags:()=>xi,InferencePriority:()=>bi,InlayHintKind:()=>fG,InlayHints:()=>zue,InternalEmitFlags:()=>Ui,InternalSymbolName:()=>si,InvalidatedProjectKind:()=>a$,JSDocParsingMode:()=>Yi,JsDoc:()=>sde,JsTyping:()=>oG,JsxEmit:()=>Ei,JsxFlags:()=>jr,JsxReferenceKind:()=>mi,LanguageServiceMode:()=>lG,LanguageVariant:()=>ji,LexicalEnvironmentFlags:()=>$i,ListFormat:()=>Gi,LogLevel:()=>xn,MemberOverrideStatus:()=>Kr,ModifierFlags:()=>Lr,ModuleDetectionKind:()=>wi,ModuleInstanceState:()=>xR,ModuleKind:()=>Pi,ModuleResolutionKind:()=>Ci,ModuleSpecifierEnding:()=>Zd,NavigateTo:()=>m2,NavigationBar:()=>p6,NewLineKind:()=>Ii,NodeBuilderFlags:()=>Qr,NodeCheckFlags:()=>ci,NodeFactoryFlags:()=>NC,NodeFlags:()=>Or,NodeResolutionFeatures:()=>Aj,ObjectFlags:()=>_i,OperationCanceledException:()=>qr,OperatorPrecedence:()=>hd,OrganizeImports:()=>Mde,OrganizeImportsMode:()=>dG,OuterExpressionKinds:()=>Hi,OutliningElementsCollector:()=>Kde,OutliningSpanKind:()=>xG,OutputFileType:()=>SG,PackageJsonAutoImportPreference:()=>cG,PackageJsonDependencyGroup:()=>sG,PatternMatchKind:()=>i1,PollingInterval:()=>ro,PollingWatchKind:()=>Fi,PragmaKindFlags:()=>Xi,PrivateIdentifierKind:()=>Jw,ProcessLevel:()=>wz,ProgramUpdateLevel:()=>AU,QuotePreference:()=>jG,RelationComparisonResult:()=>Mr,Rename:()=>rpe,ScriptElementKind:()=>CG,ScriptElementKindModifier:()=>wG,ScriptKind:()=>Oi,ScriptSnapshot:()=>aG,ScriptTarget:()=>Li,SemanticClassificationFormat:()=>uG,SemanticMeaning:()=>IG,SemicolonPreference:()=>hG,SignatureCheckMode:()=>SB,SignatureFlags:()=>hi,SignatureHelp:()=>Fpe,SignatureKind:()=>gi,SmartSelectionRange:()=>qpe,SnippetKind:()=>zi,SortKind:()=>a,StructureIsReused:()=>Hr,SymbolAccessibility:()=>ei,SymbolDisplay:()=>Zpe,SymbolDisplayPartKind:()=>vG,SymbolFlags:()=>ii,SymbolFormatFlags:()=>Zr,SyntaxKind:()=>Ir,SyntheticSymbolKind:()=>ti,Ternary:()=>Si,ThrottledCancellationToken:()=>z7,TokenClass:()=>TG,TokenFlags:()=>Br,TransformFlags:()=>Ji,TypeFacts:()=>vB,TypeFlags:()=>li,TypeFormatFlags:()=>Yr,TypeMapKind:()=>vi,TypePredicateKind:()=>ni,TypeReferenceSerializationKind:()=>ri,UnionReduction:()=>Gr,UpToDateStatusType:()=>t$,VarianceFlags:()=>ui,Version:()=>Pn,VersionRange:()=>En,WatchDirectoryFlags:()=>Mi,WatchDirectoryKind:()=>Di,WatchFileKind:()=>Ni,WatchLogLevel:()=>IU,WatchType:()=>gH,accessPrivateIdentifier:()=>ZJ,addDisposableResourceHelper:()=>mN,addEmitFlags:()=>iw,addEmitHelper:()=>Tw,addEmitHelpers:()=>Cw,addInternalEmitFlags:()=>aw,addNodeFactoryPatcher:()=>LC,addObjectAllocatorPatcher:()=>xS,addRange:()=>be,addRelatedInfo:()=>pT,addSyntheticLeadingComment:()=>hw,addSyntheticTrailingComment:()=>bw,addToSeen:()=>iS,advancedAsyncSuperHelper:()=>vN,affectsDeclarationPathOptionDeclarations:()=>wO,affectsEmitOptionDeclarations:()=>CO,allKeysStartWithDot:()=>QM,altDirectorySeparator:()=>Oo,and:()=>_n,append:()=>he,appendIfUnique:()=>Se,arrayFrom:()=>$e,arrayIsEqualTo:()=>fe,arrayIsHomogeneous:()=>wT,arrayIsSorted:()=>de,arrayOf:()=>He,arrayReverseIterator:()=>Ce,arrayToMap:()=>Xe,arrayToMultiMap:()=>Ye,arrayToNumericMap:()=>Qe,arraysEqual:()=>O,assertType:()=>pn,assign:()=>Ke,assignHelper:()=>Hw,asyncDelegator:()=>Gw,asyncGeneratorHelper:()=>Kw,asyncSuperHelper:()=>yN,asyncValues:()=>Xw,attachFileToDiagnostics:()=>PS,awaitHelper:()=>$w,awaiterHelper:()=>Yw,base64decode:()=>ux,base64encode:()=>_x,binarySearch:()=>Re,binarySearchKey:()=>Be,bindSourceFile:()=>FR,breakIntoCharacterSpans:()=>S1,breakIntoWordSpans:()=>k1,buildLinkParts:()=>RY,buildOpts:()=>AO,buildOverload:()=>$ge,bundlerModuleNameResolver:()=>CM,canBeConvertedToAsync:()=>X1,canHaveDecorators:()=>_I,canHaveExportModifier:()=>YT,canHaveFlowNode:()=>wh,canHaveIllegalDecorators:()=>AA,canHaveIllegalModifiers:()=>IA,canHaveIllegalType:()=>PA,canHaveIllegalTypeParameters:()=>EA,canHaveJSDoc:()=>Nh,canHaveLocals:()=>Tu,canHaveModifiers:()=>lI,canHaveSymbol:()=>ku,canJsonReportNoInputFiles:()=>ZL,canProduceDiagnostics:()=>Fq,canUsePropertyAccess:()=>eC,canWatchAffectingLocation:()=>tH,canWatchAtTypes:()=>YW,canWatchDirectoryOrFile:()=>QW,cartesianProduct:()=>gn,cast:()=>mt,chainBundle:()=>wJ,chainDiagnosticMessages:()=>LS,changeAnyExtension:()=>ha,changeCompilerHostLikeToUseCache:()=>fV,changeExtension:()=>tT,changesAffectModuleResolution:()=>sp,changesAffectingProgramStructure:()=>lp,childIsDecorated:()=>lg,classElementOrClassElementParameterIsDecorated:()=>ug,classHasClassThisAssignment:()=>fz,classHasDeclaredOrExplicitlyAssignedName:()=>Sz,classHasExplicitlyAssignedName:()=>xz,classOrConstructorParameterIsDecorated:()=>_g,classPrivateFieldGetHelper:()=>dN,classPrivateFieldInHelper:()=>fN,classPrivateFieldSetHelper:()=>pN,classicNameResolver:()=>fR,classifier:()=>J5,cleanExtendedConfigCache:()=>RU,clear:()=>B,clearMap:()=>Kx,clearSharedExtendedConfigFileWatcher:()=>MU,climbPastPropertyAccess:()=>tX,climbPastPropertyOrElementAccess:()=>nX,clone:()=>tt,cloneCompilerOptions:()=>CQ,closeFileWatcher:()=>Bx,closeFileWatcherOf:()=>HU,codefix:()=>Sce,collapseTextChangeRangesAcrossMultipleVersions:()=>_c,collectExternalModuleInfo:()=>PJ,combine:()=>ye,combinePaths:()=>sa,commentPragmas:()=>Qi,commonOptionsWithBuild:()=>vO,commonPackageFolders:()=>jd,compact:()=>me,compareBooleans:()=>Vt,compareDataObjects:()=>$x,compareDiagnostics:()=>RS,compareDiagnosticsSkipRelatedInformation:()=>BS,compareEmitHelpers:()=>SN,compareNumberOfDirectorySeparators:()=>Qk,comparePaths:()=>xa,comparePathsCaseInsensitive:()=>ba,comparePathsCaseSensitive:()=>va,comparePatternKeys:()=>ZM,compareProperties:()=>Ut,compareStringsCaseInsensitive:()=>jt,compareStringsCaseInsensitiveEslintCompatible:()=>Mt,compareStringsCaseSensitive:()=>Rt,compareStringsCaseSensitiveUI:()=>qt,compareTextSpans:()=>Ot,compareValues:()=>It,compileOnSaveCommandLineOption:()=>dO,compilerOptionsAffectDeclarationPath:()=>vk,compilerOptionsAffectEmit:()=>yk,compilerOptionsAffectSemanticDiagnostics:()=>hk,compilerOptionsDidYouMeanDiagnostics:()=>MO,compilerOptionsIndicateEsModules:()=>GQ,compose:()=>Dt,computeCommonSourceDirectoryOfFilenames:()=>lV,computeLineAndCharacterOfPosition:()=>ss,computeLineOfPosition:()=>cs,computeLineStarts:()=>rs,computePositionOfLineAndCharacter:()=>os,computeSignature:()=>LW,computeSignatureWithDiagnostics:()=>OW,computeSuggestionDiagnostics:()=>J1,concatenate:()=>oe,concatenateDiagnosticMessageChains:()=>jS,consumesNodeCoreModules:()=>qZ,contains:()=>I,containsIgnoredPath:()=>RT,containsObjectRestOrSpread:()=>aI,containsParseError:()=>Tp,containsPath:()=>Sa,convertCompilerOptionsForTelemetry:()=>Nj,convertCompilerOptionsFromJson:()=>ij,convertJsonOption:()=>dj,convertToBase64:()=>lx,convertToJson:()=>PL,convertToObject:()=>FL,convertToOptionsWithAbsolutePaths:()=>UL,convertToRelativePath:()=>wa,convertToTSConfig:()=>IL,convertTypeAcquisitionFromJson:()=>oj,copyComments:()=>sZ,copyEntries:()=>fp,copyLeadingComments:()=>dZ,copyProperties:()=>rt,copyTrailingAsLeadingComments:()=>fZ,copyTrailingComments:()=>pZ,couldStartTrivia:()=>hs,countWhere:()=>j,createAbstractBuilder:()=>$W,createAccessorPropertyBackingField:()=>eI,createAccessorPropertyGetRedirector:()=>tI,createAccessorPropertySetRedirector:()=>nI,createBaseNodeFactory:()=>vC,createBinaryExpressionTrampoline:()=>WA,createBindingHelper:()=>sN,createBuildInfo:()=>TU,createBuilderProgram:()=>jW,createBuilderProgramUsingProgramBuildInfo:()=>zW,createBuilderStatusReporter:()=>d$,createCacheWithRedirects:()=>cM,createCacheableExportInfoMap:()=>y0,createCachedDirectoryStructureHost:()=>LU,createClassNamedEvaluationHelperBlock:()=>vz,createClassThisAssignmentBlock:()=>dz,createClassifier:()=>D0,createCommentDirectivesMap:()=>Hp,createCompilerDiagnostic:()=>IS,createCompilerDiagnosticForInvalidCustomType:()=>iL,createCompilerDiagnosticFromMessageChain:()=>OS,createCompilerHost:()=>_V,createCompilerHostFromProgramHost:()=>JH,createCompilerHostWorker:()=>pV,createDetachedDiagnostic:()=>NS,createDiagnosticCollection:()=>ov,createDiagnosticForFileFromMessageChain:()=>Hf,createDiagnosticForNode:()=>Bf,createDiagnosticForNodeArray:()=>Jf,createDiagnosticForNodeArrayFromMessageChain:()=>Uf,createDiagnosticForNodeFromMessageChain:()=>qf,createDiagnosticForNodeInSourceFile:()=>zf,createDiagnosticForRange:()=>Kf,createDiagnosticMessageChainFromDiagnostic:()=>$f,createDiagnosticReporter:()=>yH,createDocumentPositionMapper:()=>bJ,createDocumentRegistry:()=>W0,createDocumentRegistryInternal:()=>H0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>HW,createEmitHelperFactory:()=>xN,createEmptyExports:()=>zE,createExpressionForJsxElement:()=>HE,createExpressionForJsxFragment:()=>$E,createExpressionForObjectLiteralElementLike:()=>YE,createExpressionForPropertyName:()=>QE,createExpressionFromEntityName:()=>XE,createExternalHelpersImportDeclarationIfNeeded:()=>hA,createFileDiagnostic:()=>ES,createFileDiagnosticFromMessageChain:()=>Wf,createForOfBindingStatement:()=>KE,createGetCanonicalFileName:()=>tn,createGetSourceFile:()=>uV,createGetSymbolAccessibilityDiagnosticForNode:()=>Eq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Pq,createGetSymbolWalker:()=>jR,createIncrementalCompilerHost:()=>QH,createIncrementalProgram:()=>YH,createInputFiles:()=>KC,createInputFilesWithFilePaths:()=>GC,createInputFilesWithFileTexts:()=>XC,createJsxFactoryExpression:()=>WE,createLanguageService:()=>a5,createLanguageServiceSourceFile:()=>i5,createMemberAccessForPropertyName:()=>qE,createModeAwareCache:()=>uM,createModeAwareCacheKey:()=>_M,createModuleNotFoundChain:()=>vp,createModuleResolutionCache:()=>gM,createModuleResolutionLoader:()=>PV,createModuleResolutionLoaderUsingGlobalCache:()=>lH,createModuleSpecifierResolutionHost:()=>XQ,createMultiMap:()=>ot,createNodeConverters:()=>CC,createNodeFactory:()=>jC,createOptionNameMap:()=>nL,createOverload:()=>Hge,createPackageJsonImportFilter:()=>zZ,createPackageJsonInfo:()=>JZ,createParenthesizerRules:()=>SC,createPatternMatcher:()=>s1,createPrependNodes:()=>XV,createPrinter:()=>DU,createPrinterWithDefaults:()=>eU,createPrinterWithRemoveComments:()=>tU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>nU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>rU,createProgram:()=>HV,createProgramHost:()=>UH,createPropertyNameNodeForIdentifierOrLiteral:()=>$T,createQueue:()=>ct,createRange:()=>gx,createRedirectedBuilderProgram:()=>UW,createResolutionCache:()=>_H,createRuntimeTypeSerializer:()=>Rz,createScanner:()=>Ls,createSemanticDiagnosticsBuilderProgram:()=>WW,createSet:()=>lt,createSolutionBuilder:()=>g$,createSolutionBuilderHost:()=>f$,createSolutionBuilderWithWatch:()=>h$,createSolutionBuilderWithWatchHost:()=>m$,createSortedArray:()=>le,createSourceFile:()=>YI,createSourceMapGenerator:()=>oJ,createSourceMapSource:()=>QC,createSuperAccessVariableStatement:()=>Wz,createSymbolTable:()=>op,createSymlinkCache:()=>Ck,createSystemWatchFunctions:()=>Po,createTextChange:()=>MQ,createTextChangeFromStartLength:()=>jQ,createTextChangeRange:()=>lc,createTextRangeFromNode:()=>IQ,createTextRangeFromSpan:()=>LQ,createTextSpan:()=>oc,createTextSpanFromBounds:()=>ac,createTextSpanFromNode:()=>EQ,createTextSpanFromRange:()=>OQ,createTextSpanFromStringLiteralLikeContent:()=>AQ,createTextWriter:()=>yv,createTokenRange:()=>Sx,createTypeChecker:()=>IB,createTypeReferenceDirectiveResolutionCache:()=>hM,createTypeReferenceResolutionLoader:()=>AV,createUnparsedSourceFile:()=>$C,createWatchCompilerHost:()=>ZH,createWatchCompilerHostOfConfigFile:()=>HH,createWatchCompilerHostOfFilesAndCompilerOptions:()=>$H,createWatchFactory:()=>BH,createWatchHost:()=>RH,createWatchProgram:()=>e$,createWatchStatusReporter:()=>xH,createWriteFileMeasuringIO:()=>dV,declarationNameToString:()=>If,decodeMappings:()=>uJ,decodedTextSpanIntersectsWith:()=>nc,decorateHelper:()=>zw,deduplicate:()=>ce,defaultIncludeSpec:()=>YO,defaultInitCompilerOptions:()=>jO,defaultMaximumTruncationLength:()=>rd,detectSortCaseSensitivity:()=>pe,diagnosticCategoryName:()=>to,diagnosticToString:()=>l0,directoryProbablyExists:()=>fx,directorySeparator:()=>Io,displayPart:()=>TY,displayPartsToString:()=>e5,disposeEmitNodes:()=>tw,disposeResourcesHelper:()=>gN,documentSpansEqual:()=>gY,dumpTracingLegend:()=>Ar,elementAt:()=>s,elideNodes:()=>GA,emitComments:()=>ab,emitDetachedComments:()=>sb,emitFiles:()=>kU,emitFilesAndReportErrors:()=>jH,emitFilesAndReportErrorsAndGetExitStatus:()=>MH,emitModuleKindIsNonNodeESM:()=>KS,emitNewLineBeforeLeadingCommentOfPosition:()=>ob,emitNewLineBeforeLeadingComments:()=>rb,emitNewLineBeforeLeadingCommentsOfPosition:()=>ib,emitSkippedWithNoDiagnostics:()=>oV,emitUsingBuildInfo:()=>NU,emptyArray:()=>r,emptyFileSystemEntries:()=>tp,emptyMap:()=>i,emptyOptions:()=>_G,emptySet:()=>o,endsWith:()=>$t,ensurePathIsNonModuleName:()=>ga,ensureScriptKind:()=>zk,ensureTrailingDirectorySeparator:()=>ma,entityNameToString:()=>Rf,enumerateInsertsAndDeletes:()=>mn,equalOwnProperties:()=>Ge,equateStringsCaseInsensitive:()=>Pt,equateStringsCaseSensitive:()=>Et,equateValues:()=>Ft,esDecorateHelper:()=>Vw,escapeJsxAttributeString:()=>pv,escapeLeadingUnderscores:()=>wc,escapeNonAsciiString:()=>uv,escapeSnippetText:()=>WT,escapeString:()=>_v,every:()=>N,expandPreOrPostfixIncrementOrDecrementExpression:()=>ZE,explainFiles:()=>PH,explainIfFileIsRedirectAndImpliedFormat:()=>EH,exportAssignmentIsAlias:()=>sy,exportStarHelper:()=>uN,expressionResultIsUnused:()=>MT,extend:()=>nt,extendsHelper:()=>Zw,extensionFromPath:()=>sT,extensionIsTS:()=>oT,extensionsNotSupportingExtensionlessResolution:()=>Yd,externalHelpersModuleNameText:()=>nd,factory:()=>AC,fileExtensionIs:()=>$o,fileExtensionIsOneOf:()=>Ko,fileIncludeReasonToDiagnostics:()=>OH,fileShouldUseJavaScriptRequire:()=>f0,filter:()=>M,filterMutate:()=>R,filterSemanticDiagnostics:()=>KV,find:()=>D,findAncestor:()=>kc,findBestPatternMatch:()=>on,findChildOfKind:()=>OX,findComputedPropertyNameCacheAssignment:()=>rI,findConfigFile:()=>sV,findContainingList:()=>LX,findDiagnosticForNode:()=>WZ,findFirstNonJsxWhitespaceToken:()=>XX,findIndex:()=>P,findLast:()=>F,findLastIndex:()=>E,findListItemInfo:()=>AX,findMap:()=>A,findModifier:()=>dY,findNextToken:()=>YX,findPackageJson:()=>RZ,findPackageJsons:()=>MZ,findPrecedingMatchingToken:()=>lQ,findPrecedingToken:()=>ZX,findSuperStatementIndexPath:()=>BJ,findTokenOnLeftOfPosition:()=>QX,findUseStrictPrologue:()=>iA,first:()=>Pe,firstDefined:()=>S,firstDefinedIterator:()=>k,firstIterator:()=>Ee,firstOrOnly:()=>XZ,firstOrUndefined:()=>De,firstOrUndefinedIterator:()=>Fe,fixupCompilerOptions:()=>n2,flatMap:()=>V,flatMapIterator:()=>H,flatMapToMutable:()=>W,flatten:()=>U,flattenCommaList:()=>oI,flattenDestructuringAssignment:()=>nz,flattenDestructuringBinding:()=>oz,flattenDiagnosticMessageText:()=>kV,forEach:()=>b,forEachAncestor:()=>up,forEachAncestorDirectory:()=>Fa,forEachChild:()=>KI,forEachChildRecursively:()=>GI,forEachEmittedFile:()=>aU,forEachEnclosingBlockScopeContainer:()=>Af,forEachEntry:()=>dp,forEachExternalModuleToImportFrom:()=>b0,forEachImportClauseDeclaration:()=>hh,forEachKey:()=>pp,forEachLeadingCommentRange:()=>Ts,forEachNameInAccessChainWalkingLeft:()=>dS,forEachPropertyAssignment:()=>jm,forEachResolvedProjectReference:()=>OV,forEachReturnStatement:()=>vm,forEachRight:()=>x,forEachTrailingCommentRange:()=>Cs,forEachTsConfigPropArray:()=>Jm,forEachUnique:()=>hY,forEachYieldExpression:()=>bm,forSomeAncestorDirectory:()=>eS,formatColorAndReset:()=>vV,formatDiagnostic:()=>hV,formatDiagnostics:()=>gV,formatDiagnosticsWithColorAndContext:()=>SV,formatGeneratedName:()=>ZA,formatGeneratedNamePart:()=>QA,formatLocation:()=>xV,formatMessage:()=>AS,formatStringFromArgs:()=>kS,formatting:()=>Mge,fullTripleSlashAMDReferencePathRegEx:()=>ud,fullTripleSlashReferencePathRegEx:()=>cd,generateDjb2Hash:()=>fo,generateTSConfig:()=>qL,generatorHelper:()=>aN,getAdjustedReferenceLocation:()=>VX,getAdjustedRenameLocation:()=>WX,getAliasDeclarationFromName:()=>oy,getAllAccessorDeclarations:()=>Qv,getAllDecoratorsOfClass:()=>HJ,getAllDecoratorsOfClassElement:()=>$J,getAllJSDocTags:()=>bl,getAllJSDocTagsOfKind:()=>xl,getAllKeys:()=>Ve,getAllProjectOutputs:()=>bU,getAllSuperTypeNodes:()=>py,getAllUnscopedEmitHelpers:()=>TN,getAllowJSCompilerOption:()=>fk,getAllowSyntheticDefaultImports:()=>ik,getAncestor:()=>gy,getAnyExtensionFromPath:()=>na,getAreDeclarationMapsEnabled:()=>nk,getAssignedExpandoInitializer:()=>Jg,getAssignedName:()=>Rc,getAssignedNameOfIdentifier:()=>hz,getAssignmentDeclarationKind:()=>Gg,getAssignmentDeclarationPropertyAccessKind:()=>oh,getAssignmentTargetKind:()=>zh,getAutomaticTypeDirectiveNames:()=>oM,getBaseFileName:()=>ea,getBinaryOperatorPrecedence:()=>rv,getBuildInfo:()=>wU,getBuildInfoFileVersionMap:()=>qW,getBuildInfoText:()=>CU,getBuildOrderFromAnyBuildOrder:()=>u$,getBuilderCreationParameters:()=>AW,getBuilderFileEmit:()=>cW,getCheckFlags:()=>Jx,getClassExtendsHeritageElement:()=>uy,getClassLikeDeclarationOfSymbol:()=>Yx,getCombinedLocalAndExportSymbolFlags:()=>Ux,getCombinedModifierFlags:()=>hc,getCombinedNodeFlags:()=>vc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>yc,getCommentRange:()=>pw,getCommonSourceDirectory:()=>yU,getCommonSourceDirectoryOfConfig:()=>vU,getCompilerOptionValue:()=>bk,getCompilerOptionsDiffValue:()=>JL,getConditions:()=>rM,getConfigFileParsingDiagnostics:()=>UV,getConstantValue:()=>Sw,getContainerFlags:()=>IR,getContainerNode:()=>gX,getContainingClass:()=>Um,getContainingClassExcludingClassDecorators:()=>Hm,getContainingClassStaticBlock:()=>Vm,getContainingFunction:()=>zm,getContainingFunctionDeclaration:()=>qm,getContainingFunctionOrClassStaticBlock:()=>Wm,getContainingNodeArray:()=>BT,getContainingObjectLiteralElement:()=>c5,getContextualTypeFromParent:()=>yZ,getContextualTypeFromParentOrAncestorTypeNode:()=>BX,getCurrentTime:()=>l$,getDeclarationDiagnostics:()=>Oq,getDeclarationEmitExtensionForPath:()=>Fv,getDeclarationEmitOutputFilePath:()=>Nv,getDeclarationEmitOutputFilePathWorker:()=>Dv,getDeclarationFromName:()=>ty,getDeclarationModifierFlagsFromSymbol:()=>zx,getDeclarationOfKind:()=>rp,getDeclarationsOfKind:()=>ip,getDeclaredExpandoInitializer:()=>Bg,getDecorators:()=>Bc,getDefaultCompilerOptions:()=>t5,getDefaultExportInfoWorker:()=>C0,getDefaultFormatCodeSettings:()=>EG,getDefaultLibFileName:()=>Hs,getDefaultLibFilePath:()=>_5,getDefaultLikeExportInfo:()=>k0,getDiagnosticText:()=>hL,getDiagnosticsWithinSpan:()=>HZ,getDirectoryPath:()=>Zo,getDirectoryToWatchFailedLookupLocation:()=>nH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>oH,getDocumentPositionMapper:()=>j1,getESModuleInterop:()=>rk,getEditsForFileRename:()=>X0,getEffectiveBaseTypeNode:()=>_y,getEffectiveConstraintOfTypeParameter:()=>Tl,getEffectiveContainerForJSDocTemplateTag:()=>Ih,getEffectiveImplementsTypeNodes:()=>dy,getEffectiveInitializer:()=>Rg,getEffectiveJSDocHost:()=>Lh,getEffectiveModifierFlags:()=>wb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Nb,getEffectiveModifierFlagsNoCache:()=>Eb,getEffectiveReturnTypeNode:()=>eb,getEffectiveSetAccessorTypeAnnotationNode:()=>nb,getEffectiveTypeAnnotationNode:()=>Yv,getEffectiveTypeParameterDeclarations:()=>kl,getEffectiveTypeRoots:()=>Yj,getElementOrPropertyAccessArgumentExpressionOrName:()=>rh,getElementOrPropertyAccessName:()=>ih,getElementsOfBindingOrAssignmentPattern:()=>DA,getEmitDeclarations:()=>_k,getEmitFlags:()=>tf,getEmitHelpers:()=>Nw,getEmitModuleDetectionKind:()=>XS,getEmitModuleKind:()=>$S,getEmitModuleResolutionKind:()=>GS,getEmitScriptTarget:()=>HS,getEmitStandardClassFields:()=>gk,getEnclosingBlockScopeContainer:()=>Ef,getEnclosingContainer:()=>Pf,getEncodedSemanticClassifications:()=>L0,getEncodedSyntacticClassifications:()=>J0,getEndLinePosition:()=>Ep,getEntityNameFromTypeNode:()=>ig,getEntrypointsFromPackageJsonInfo:()=>qM,getErrorCountForSummary:()=>kH,getErrorSpanForNode:()=>Qf,getErrorSummaryText:()=>NH,getEscapedTextOfIdentifierOrLiteral:()=>jy,getEscapedTextOfJsxAttributeName:()=>cC,getEscapedTextOfJsxNamespacedName:()=>uC,getExpandoInitializer:()=>zg,getExportAssignmentExpression:()=>cy,getExportInfoMap:()=>S0,getExportNeedsImportStarHelper:()=>NJ,getExpressionAssociativity:()=>Yy,getExpressionPrecedence:()=>ev,getExternalHelpersModuleName:()=>mA,getExternalModuleImportEqualsDeclarationExpression:()=>vg,getExternalModuleName:()=>fh,getExternalModuleNameFromDeclaration:()=>Tv,getExternalModuleNameFromPath:()=>Cv,getExternalModuleNameLiteral:()=>bA,getExternalModuleRequireArgument:()=>bg,getFallbackOptions:()=>WU,getFileEmitOutput:()=>iW,getFileMatcherPatterns:()=>jk,getFileNamesFromConfigSpecs:()=>gj,getFileWatcherEventKind:()=>To,getFilesInErrorForSummary:()=>TH,getFirstConstructorWithBody:()=>qv,getFirstIdentifier:()=>Gb,getFirstNonSpaceCharacterPosition:()=>QY,getFirstProjectOutput:()=>SU,getFixableErrorSpanExpression:()=>KZ,getFormatCodeSettingsForWriting:()=>_0,getFullWidth:()=>gp,getFunctionFlags:()=>Ny,getHeritageClause:()=>my,getHostSignatureFromJSDoc:()=>Oh,getIdentifierAutoGenerate:()=>Mw,getIdentifierGeneratedImportReference:()=>Bw,getIdentifierTypeArguments:()=>Lw,getImmediatelyInvokedFunctionExpression:()=>Ym,getImpliedNodeFormatForFile:()=>VV,getImpliedNodeFormatForFileWorker:()=>WV,getImportNeedsImportDefaultHelper:()=>FJ,getImportNeedsImportStarHelper:()=>DJ,getIndentSize:()=>hv,getIndentString:()=>gv,getInferredLibraryNameResolveFrom:()=>jV,getInitializedVariables:()=>jx,getInitializerOfBinaryExpression:()=>ah,getInitializerOfBindingOrAssignmentElement:()=>SA,getInterfaceBaseTypeNodes:()=>fy,getInternalEmitFlags:()=>nf,getInvokedExpression:()=>og,getIsolatedModules:()=>YS,getJSDocAugmentsTag:()=>Kc,getJSDocClassTag:()=>Xc,getJSDocCommentRanges:()=>gm,getJSDocCommentsAndTags:()=>Dh,getJSDocDeprecatedTag:()=>al,getJSDocDeprecatedTagNoCache:()=>sl,getJSDocEnumTag:()=>cl,getJSDocHost:()=>jh,getJSDocImplementsTags:()=>Gc,getJSDocOverrideTagNoCache:()=>ol,getJSDocParameterTags:()=>qc,getJSDocParameterTagsNoCache:()=>Uc,getJSDocPrivateTag:()=>Zc,getJSDocPrivateTagNoCache:()=>el,getJSDocProtectedTag:()=>tl,getJSDocProtectedTagNoCache:()=>nl,getJSDocPublicTag:()=>Qc,getJSDocPublicTagNoCache:()=>Yc,getJSDocReadonlyTag:()=>rl,getJSDocReadonlyTagNoCache:()=>il,getJSDocReturnTag:()=>_l,getJSDocReturnType:()=>ml,getJSDocRoot:()=>Mh,getJSDocSatisfiesExpressionType:()=>aC,getJSDocSatisfiesTag:()=>dl,getJSDocTags:()=>hl,getJSDocTagsNoCache:()=>yl,getJSDocTemplateTag:()=>ul,getJSDocThisTag:()=>ll,getJSDocType:()=>fl,getJSDocTypeAliasName:()=>FA,getJSDocTypeAssertionType:()=>lA,getJSDocTypeParameterDeclarations:()=>tb,getJSDocTypeParameterTags:()=>Wc,getJSDocTypeParameterTagsNoCache:()=>Hc,getJSDocTypeTag:()=>pl,getJSXImplicitImportBase:()=>Sk,getJSXRuntimeImport:()=>kk,getJSXTransformEnabled:()=>xk,getKeyForCompilerOptions:()=>sM,getLanguageVariant:()=>zS,getLastChild:()=>rS,getLeadingCommentRanges:()=>Fs,getLeadingCommentRangesOfNode:()=>mm,getLeftmostAccessExpression:()=>uS,getLeftmostExpression:()=>pS,getLibraryNameFromLibFileName:()=>MV,getLineAndCharacterOfPosition:()=>_s,getLineInfo:()=>aJ,getLineOfLocalPosition:()=>Jv,getLineOfLocalPositionFromLineMap:()=>zv,getLineStartPositionForPosition:()=>vX,getLineStarts:()=>as,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Ox,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Ix,getLinesBetweenPositions:()=>ls,getLinesBetweenRangeEndAndRangeStart:()=>Dx,getLinesBetweenRangeEndPositions:()=>Fx,getLiteralText:()=>rf,getLocalNameForExternalImport:()=>vA,getLocalSymbolForExportDefault:()=>sx,getLocaleSpecificMessage:()=>wS,getLocaleTimeString:()=>bH,getMappedContextSpan:()=>xY,getMappedDocumentSpan:()=>bY,getMappedLocation:()=>vY,getMatchedFileSpec:()=>AH,getMatchedIncludeSpec:()=>IH,getMeaningFromDeclaration:()=>qG,getMeaningFromLocation:()=>UG,getMembersOfDeclaration:()=>Sm,getModeForFileReference:()=>TV,getModeForResolutionAtIndex:()=>CV,getModeForUsageLocation:()=>NV,getModifiedTime:()=>go,getModifiers:()=>Jc,getModuleInstanceState:()=>CR,getModuleNameStringLiteralAt:()=>eW,getModuleSpecifierEndingPreference:()=>Kk,getModuleSpecifierResolverHost:()=>QQ,getNameForExportedSymbol:()=>YZ,getNameFromIndexInfo:()=>Of,getNameFromPropertyName:()=>HQ,getNameOfAccessExpression:()=>cS,getNameOfCompilerOptionValue:()=>ML,getNameOfDeclaration:()=>Mc,getNameOfExpando:()=>Ug,getNameOfJSDocTypedef:()=>Oc,getNameOrArgument:()=>nh,getNameTable:()=>s5,getNamesForExportedSymbol:()=>QZ,getNamespaceDeclarationNode:()=>mh,getNewLineCharacter:()=>mx,getNewLineKind:()=>c0,getNewLineOrDefaultFromHost:()=>BY,getNewTargetContainer:()=>Xm,getNextJSDocCommentLocation:()=>Eh,getNodeForGeneratedName:()=>XA,getNodeId:()=>PB,getNodeKind:()=>hX,getNodeModifiers:()=>hQ,getNodeModulePathParts:()=>GT,getNonAssignedNameOfDeclaration:()=>jc,getNonAssignmentOperatorForCompoundAssignment:()=>jJ,getNonAugmentationDeclaration:()=>yf,getNonDecoratorTokenPosOfNode:()=>Kp,getNormalizedAbsolutePath:()=>_a,getNormalizedAbsolutePathWithoutRoot:()=>da,getNormalizedPathComponents:()=>la,getObjectFlags:()=>Zx,getOperator:()=>tv,getOperatorAssociativity:()=>Zy,getOperatorPrecedence:()=>nv,getOptionFromName:()=>pL,getOptionsForLibraryResolution:()=>yM,getOptionsNameMap:()=>rL,getOrCreateEmitNode:()=>ew,getOrCreateExternalHelpersModuleNameIfNeeded:()=>yA,getOrUpdate:()=>Y,getOriginalNode:()=>Sc,getOriginalNodeId:()=>TJ,getOriginalSourceFile:()=>Qy,getOutputDeclarationFileName:()=>pU,getOutputExtension:()=>uU,getOutputFileNames:()=>xU,getOutputPathsFor:()=>lU,getOutputPathsForBundle:()=>cU,getOwnEmitOutputFilePath:()=>wv,getOwnKeys:()=>Ue,getOwnValues:()=>We,getPackageJsonInfo:()=>$M,getPackageJsonTypesVersionsPaths:()=>Qj,getPackageJsonsVisibleToFile:()=>BZ,getPackageNameFromTypesPackageName:()=>uR,getPackageScopeForPath:()=>WM,getParameterSymbolFromJSDoc:()=>Ah,getParameterTypeNode:()=>XT,getParentNodeInSpan:()=>_Y,getParseTreeNode:()=>Cc,getParsedCommandLineOfConfigFile:()=>yL,getPathComponents:()=>ra,getPathComponentsRelativeTo:()=>Ta,getPathFromPathComponents:()=>ia,getPathUpdater:()=>Q0,getPathsBasePath:()=>Av,getPatternFromSpec:()=>Ik,getPendingEmitKind:()=>lW,getPositionOfLineAndCharacter:()=>is,getPossibleGenericSignatures:()=>dQ,getPossibleOriginalInputExtensionForExtension:()=>Pv,getPossibleTypeArgumentsInfo:()=>pQ,getPreEmitDiagnostics:()=>mV,getPrecedingNonSpaceCharacterPosition:()=>YY,getPrivateIdentifier:()=>QJ,getProperties:()=>JJ,getProperty:()=>qe,getPropertyArrayElementValue:()=>Mm,getPropertyAssignmentAliasLikeExpression:()=>ly,getPropertyNameForPropertyNameNode:()=>Iy,getPropertyNameForUniqueESSymbol:()=>My,getPropertyNameFromType:()=>mC,getPropertyNameOfBindingOrAssignmentElement:()=>CA,getPropertySymbolFromBindingElement:()=>lY,getPropertySymbolsFromContextualType:()=>l5,getQuoteFromPreference:()=>iY,getQuotePreference:()=>rY,getRangesWhere:()=>ie,getRefactorContextSpan:()=>$Z,getReferencedFileLocation:()=>zV,getRegexFromPattern:()=>Mk,getRegularExpressionForWildcard:()=>Pk,getRegularExpressionsForWildcards:()=>Ek,getRelativePathFromDirectory:()=>Ca,getRelativePathFromFile:()=>Na,getRelativePathToDirectoryOrUrl:()=>Da,getRenameLocation:()=>uZ,getReplacementSpanForContextToken:()=>PQ,getResolutionDiagnostic:()=>YV,getResolutionModeOverride:()=>DV,getResolveJsonModule:()=>lk,getResolvePackageJsonExports:()=>sk,getResolvePackageJsonImports:()=>ck,getResolvedExternalModuleName:()=>Sv,getRestIndicatorOfBindingOrAssignmentElement:()=>TA,getRestParameterElementType:()=>xm,getRightMostAssignedExpression:()=>Wg,getRootDeclaration:()=>Ky,getRootDirectoryOfResolutionCache:()=>aH,getRootLength:()=>Yo,getRootPathSplitLength:()=>sH,getScriptKind:()=>$Y,getScriptKindFromFileName:()=>qk,getScriptTargetFeatures:()=>ad,getSelectedEffectiveModifierFlags:()=>kb,getSelectedSyntacticModifierFlags:()=>Tb,getSemanticClassifications:()=>I0,getSemanticJsxChildren:()=>iv,getSetAccessorTypeAnnotationNode:()=>Vv,getSetAccessorValueParameter:()=>Uv,getSetExternalModuleIndicator:()=>WS,getShebang:()=>Es,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>kh,getSingleVariableOfVariableStatement:()=>Th,getSnapshotText:()=>UQ,getSnippetElement:()=>Fw,getSourceFileOfModule:()=>wp,getSourceFileOfNode:()=>Cp,getSourceFilePathInNewDir:()=>Lv,getSourceFilePathInNewDirWorker:()=>jv,getSourceFileVersionAsHashFromText:()=>zH,getSourceFilesToEmit:()=>Iv,getSourceMapRange:()=>sw,getSourceMapper:()=>L1,getSourceTextOfNodeFromSourceFile:()=>Gp,getSpanOfTokenAtPosition:()=>Gf,getSpellingSuggestion:()=>Wt,getStartPositionOfLine:()=>Fp,getStartPositionOfRange:()=>Ax,getStartsOnNewLine:()=>uw,getStaticPropertiesAndClassStaticBlock:()=>qJ,getStrictOptionValue:()=>pk,getStringComparer:()=>Bt,getSuperCallFromStatement:()=>MJ,getSuperContainer:()=>Qm,getSupportedCodeFixes:()=>n5,getSupportedExtensions:()=>Uk,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Vk,getSwitchedType:()=>kZ,getSymbolId:()=>EB,getSymbolNameForPrivateIdentifier:()=>Ry,getSymbolTarget:()=>KY,getSyntacticClassifications:()=>B0,getSyntacticModifierFlags:()=>Db,getSyntacticModifierFlagsNoCache:()=>Ab,getSynthesizedDeepClone:()=>ZY,getSynthesizedDeepCloneWithReplacements:()=>eZ,getSynthesizedDeepClones:()=>nZ,getSynthesizedDeepClonesWithReplacements:()=>rZ,getSyntheticLeadingComments:()=>mw,getSyntheticTrailingComments:()=>yw,getTargetLabel:()=>rX,getTargetOfBindingOrAssignmentElement:()=>kA,getTemporaryModuleResolutionState:()=>VM,getTextOfConstantValue:()=>of,getTextOfIdentifierOrLiteral:()=>Ly,getTextOfJSDocComment:()=>Sl,getTextOfJsxAttributeName:()=>lC,getTextOfJsxNamespacedName:()=>dC,getTextOfNode:()=>Yp,getTextOfNodeFromSourceText:()=>Qp,getTextOfPropertyName:()=>Mf,getThisContainer:()=>$m,getThisParameter:()=>Wv,getTokenAtPosition:()=>KX,getTokenPosOfNode:()=>$p,getTokenSourceMapRange:()=>lw,getTouchingPropertyName:()=>HX,getTouchingToken:()=>$X,getTrailingCommentRanges:()=>Ps,getTrailingSemicolonDeferringWriter:()=>vv,getTransformFlagsSubtreeExclusions:()=>WC,getTransformers:()=>Uq,getTsBuildInfoEmitOutputFilePath:()=>sU,getTsConfigObjectLiteralExpression:()=>Rm,getTsConfigPropArrayElementValue:()=>Bm,getTypeAnnotationNode:()=>Zv,getTypeArgumentOrTypeParameterList:()=>yQ,getTypeKeywordOfTypeOnlyImport:()=>fY,getTypeNode:()=>Iw,getTypeNodeIfAccessible:()=>TZ,getTypeParameterFromJsDoc:()=>Rh,getTypeParameterOwner:()=>uc,getTypesPackageName:()=>lR,getUILocale:()=>Jt,getUniqueName:()=>_Z,getUniqueSymbolId:()=>XY,getUseDefineForClassFields:()=>mk,getWatchErrorSummaryDiagnosticMessage:()=>CH,getWatchFactory:()=>VU,group:()=>Ze,groupBy:()=>et,guessIndentation:()=>Xu,handleNoEmitOptions:()=>$V,hasAbstractModifier:()=>yb,hasAccessorModifier:()=>bb,hasAmbientModifier:()=>vb,hasChangesInResolutions:()=>kp,hasChildOfKind:()=>IX,hasContextSensitiveParameters:()=>JT,hasDecorators:()=>Sb,hasDocComment:()=>mQ,hasDynamicName:()=>Ey,hasEffectiveModifier:()=>pb,hasEffectiveModifiers:()=>ub,hasEffectiveReadonlyModifier:()=>xb,hasExtension:()=>Ho,hasIndexSignature:()=>SZ,hasInitializer:()=>Hu,hasInvalidEscape:()=>sv,hasJSDocNodes:()=>Vu,hasJSDocParameterTags:()=>$c,hasJSFileExtension:()=>Wk,hasJsonModuleEmitEnabled:()=>QS,hasOnlyExpressionInitializer:()=>$u,hasOverrideModifier:()=>hb,hasPossibleExternalModuleReference:()=>Df,hasProperty:()=>ze,hasPropertyAccessExpressionWithName:()=>iX,hasQuestionToken:()=>yh,hasRecordedExternalHelpers:()=>gA,hasResolutionModeOverride:()=>hC,hasRestParameter:()=>Zu,hasScopeMarker:()=>uu,hasStaticModifier:()=>gb,hasSyntacticModifier:()=>fb,hasSyntacticModifiers:()=>db,hasTSFileExtension:()=>Hk,hasTabstop:()=>tC,hasTrailingDirectorySeparator:()=>Go,hasType:()=>Wu,hasTypeArguments:()=>Bh,hasZeroOrOneAsteriskCharacter:()=>Tk,helperString:()=>kN,hostGetCanonicalFileName:()=>xv,hostUsesCaseSensitiveFileNames:()=>bv,idText:()=>Dc,identifierIsThisKeyword:()=>Xv,identifierToKeywordKind:()=>Fc,identity:()=>bt,identitySourceMapConsumer:()=>rJ,ignoreSourceNewlines:()=>Ew,ignoredPaths:()=>co,importDefaultHelper:()=>_N,importFromModuleSpecifier:()=>dh,importNameElisionDisabled:()=>ZS,importStarHelper:()=>lN,indexOfAnyCharCode:()=>L,indexOfNode:()=>ef,indicesOf:()=>se,inferredTypesContainingFile:()=>rV,injectClassNamedEvaluationHelperBlockIfMissing:()=>kz,injectClassThisAssignmentIfMissing:()=>mz,insertImports:()=>pY,insertLeadingStatement:()=>GE,insertSorted:()=>_e,insertStatementAfterCustomPrologue:()=>Up,insertStatementAfterStandardPrologue:()=>qp,insertStatementsAfterCustomPrologue:()=>zp,insertStatementsAfterStandardPrologue:()=>Jp,intersperse:()=>w,intrinsicTagNameToString:()=>pC,introducesArgumentsExoticObject:()=>Fm,inverseJsxOptionMap:()=>fO,isAbstractConstructorSymbol:()=>Qx,isAbstractModifier:()=>tD,isAccessExpression:()=>sS,isAccessibilityModifier:()=>TQ,isAccessor:()=>N_,isAccessorModifier:()=>rD,isAliasSymbolDeclaration:()=>iy,isAliasableExpression:()=>ay,isAmbientModule:()=>lf,isAmbientPropertyDeclaration:()=>xf,isAnonymousFunctionDefinition:()=>Uy,isAnyDirectorySeparator:()=>Bo,isAnyImportOrBareOrAccessedRequire:()=>wf,isAnyImportOrReExport:()=>Ff,isAnyImportSyntax:()=>Cf,isAnySupportedFileExtension:()=>cT,isApplicableVersionedTypesKey:()=>nR,isArgumentExpressionOfElementAccess:()=>uX,isArray:()=>_t,isArrayBindingElement:()=>J_,isArrayBindingOrAssignmentElement:()=>$_,isArrayBindingOrAssignmentPattern:()=>H_,isArrayBindingPattern:()=>KD,isArrayLiteralExpression:()=>XD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>wQ,isArrayTypeNode:()=>FD,isArrowFunction:()=>aF,isAsExpression:()=>xF,isAssertClause:()=>_P,isAssertEntry:()=>uP,isAssertionExpression:()=>su,isAssertsKeyword:()=>QN,isAssignmentDeclaration:()=>Mg,isAssignmentExpression:()=>Vb,isAssignmentOperator:()=>zb,isAssignmentPattern:()=>B_,isAssignmentTarget:()=>qh,isAsteriskToken:()=>JN,isAsyncFunction:()=>Dy,isAsyncModifier:()=>XN,isAutoAccessorPropertyDeclaration:()=>D_,isAwaitExpression:()=>_F,isAwaitKeyword:()=>YN,isBigIntLiteral:()=>DN,isBinaryExpression:()=>pF,isBinaryOperatorToken:()=>VA,isBindableObjectDefinePropertyCall:()=>Xg,isBindableStaticAccessExpression:()=>Zg,isBindableStaticElementAccessExpression:()=>eh,isBindableStaticNameExpression:()=>th,isBindingElement:()=>GD,isBindingElementOfBareOrAccessedRequire:()=>Ag,isBindingName:()=>h_,isBindingOrAssignmentElement:()=>q_,isBindingOrAssignmentPattern:()=>U_,isBindingPattern:()=>R_,isBlock:()=>PF,isBlockOrCatchScoped:()=>sf,isBlockScope:()=>Sf,isBlockScopedContainerTopLevel:()=>ff,isBooleanLiteral:()=>x_,isBreakOrContinueStatement:()=>Rl,isBreakStatement:()=>zF,isBuildInfoFile:()=>oU,isBuilderProgram:()=>DH,isBundle:()=>KP,isBundleFileTextLike:()=>lS,isCallChain:()=>Fl,isCallExpression:()=>eF,isCallExpressionTarget:()=>WG,isCallLikeExpression:()=>Q_,isCallLikeOrFunctionLikeExpression:()=>X_,isCallOrNewExpression:()=>Y_,isCallOrNewExpressionTarget:()=>$G,isCallSignatureDeclaration:()=>bD,isCallToHelper:()=>CN,isCaseBlock:()=>iP,isCaseClause:()=>RP,isCaseKeyword:()=>aD,isCaseOrDefaultClause:()=>Ru,isCatchClause:()=>zP,isCatchClauseVariableDeclaration:()=>qT,isCatchClauseVariableDeclarationOrBindingElement:()=>cf,isCheckJsEnabledForFile:()=>_T,isChildOfNodeWithKind:()=>ym,isCircularBuildOrder:()=>_$,isClassDeclaration:()=>YF,isClassElement:()=>C_,isClassExpression:()=>yF,isClassInstanceProperty:()=>F_,isClassLike:()=>w_,isClassMemberModifier:()=>p_,isClassNamedEvaluationHelperBlock:()=>bz,isClassOrTypeElement:()=>O_,isClassStaticBlockDeclaration:()=>gD,isClassThisAssignmentBlock:()=>pz,isCollapsedRange:()=>xx,isColonToken:()=>UN,isCommaExpression:()=>aA,isCommaListExpression:()=>NF,isCommaSequence:()=>sA,isCommaToken:()=>MN,isComment:()=>vQ,isCommonJsExportPropertyAssignment:()=>Nm,isCommonJsExportedExpression:()=>wm,isCompoundAssignment:()=>LJ,isComputedNonLiteralName:()=>Lf,isComputedPropertyName:()=>cD,isConciseBody:()=>mu,isConditionalExpression:()=>fF,isConditionalTypeNode:()=>jD,isConstTypeReference:()=>Ll,isConstructSignatureDeclaration:()=>xD,isConstructorDeclaration:()=>hD,isConstructorTypeNode:()=>wD,isContextualKeyword:()=>by,isContinueStatement:()=>JF,isCustomPrologue:()=>um,isDebuggerStatement:()=>KF,isDeclaration:()=>Nu,isDeclarationBindingElement:()=>z_,isDeclarationFileName:()=>oO,isDeclarationName:()=>ey,isDeclarationNameOfEnumOrNamespace:()=>Lx,isDeclarationReadonly:()=>tm,isDeclarationStatement:()=>Du,isDeclarationWithTypeParameterChildren:()=>Tf,isDeclarationWithTypeParameters:()=>kf,isDecorator:()=>uD,isDecoratorTarget:()=>GG,isDefaultClause:()=>BP,isDefaultImport:()=>gh,isDefaultModifier:()=>GN,isDefaultedExpandoInitializer:()=>qg,isDeleteExpression:()=>sF,isDeleteTarget:()=>Yh,isDeprecatedDeclaration:()=>a0,isDestructuringAssignment:()=>Hb,isDiagnosticWithLocation:()=>VZ,isDiskPathRoot:()=>qo,isDoStatement:()=>LF,isDocumentRegistryEntry:()=>V0,isDotDotDotToken:()=>jN,isDottedName:()=>Xb,isDynamicName:()=>Ay,isESSymbolIdentifier:()=>zy,isEffectiveExternalModule:()=>vf,isEffectiveModuleDeclaration:()=>df,isEffectiveStrictModeSourceFile:()=>bf,isElementAccessChain:()=>Dl,isElementAccessExpression:()=>ZD,isEmittedFileOfProgram:()=>UU,isEmptyArrayLiteral:()=>ax,isEmptyBindingElement:()=>fc,isEmptyBindingPattern:()=>pc,isEmptyObjectLiteral:()=>ox,isEmptyStatement:()=>AF,isEmptyStringLiteral:()=>dg,isEntityName:()=>m_,isEntityNameExpression:()=>Kb,isEnumConst:()=>em,isEnumDeclaration:()=>tP,isEnumMember:()=>WP,isEqualityOperatorKind:()=>bZ,isEqualsGreaterThanToken:()=>WN,isExclamationToken:()=>zN,isExcludedFile:()=>hj,isExclusivelyTypeOnlyImportOrExport:()=>wV,isExpandoPropertyDeclaration:()=>gC,isExportAssignment:()=>yP,isExportDeclaration:()=>vP,isExportModifier:()=>KN,isExportName:()=>nA,isExportNamespaceAsDefaultDeclaration:()=>Xp,isExportOrDefaultModifier:()=>$A,isExportSpecifier:()=>xP,isExportsIdentifier:()=>Hg,isExportsOrModuleExportsOrAlias:()=>AR,isExpression:()=>au,isExpressionNode:()=>fg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>mX,isExpressionOfOptionalChainRoot:()=>Al,isExpressionStatement:()=>IF,isExpressionWithTypeArguments:()=>bF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>$b,isExternalModule:()=>tO,isExternalModuleAugmentation:()=>gf,isExternalModuleImportEqualsDeclaration:()=>yg,isExternalModuleIndicator:()=>pu,isExternalModuleNameRelative:()=>Vs,isExternalModuleReference:()=>CP,isExternalModuleSymbol:()=>zQ,isExternalOrCommonJsModule:()=>Yf,isFileLevelReservedGeneratedIdentifier:()=>c_,isFileLevelUniqueName:()=>Ap,isFileProbablyExternalModule:()=>DI,isFirstDeclarationOfSymbolParameter:()=>SY,isFixablePromiseHandler:()=>W1,isForInOrOfStatement:()=>fu,isForInStatement:()=>RF,isForInitializer:()=>hu,isForOfStatement:()=>BF,isForStatement:()=>MF,isFunctionBlock:()=>Em,isFunctionBody:()=>gu,isFunctionDeclaration:()=>QF,isFunctionExpression:()=>oF,isFunctionExpressionOrArrowFunction:()=>VT,isFunctionLike:()=>y_,isFunctionLikeDeclaration:()=>b_,isFunctionLikeKind:()=>k_,isFunctionLikeOrClassStaticBlockDeclaration:()=>v_,isFunctionOrConstructorTypeNode:()=>M_,isFunctionOrModuleBlock:()=>T_,isFunctionSymbol:()=>_h,isFunctionTypeNode:()=>CD,isFutureReservedKeyword:()=>Sy,isGeneratedIdentifier:()=>a_,isGeneratedPrivateIdentifier:()=>s_,isGetAccessor:()=>Uu,isGetAccessorDeclaration:()=>yD,isGetOrSetAccessorDeclaration:()=>wl,isGlobalDeclaration:()=>i0,isGlobalScopeAugmentation:()=>mf,isGrammarError:()=>Lp,isHeritageClause:()=>JP,isHoistedFunction:()=>dm,isHoistedVariableStatement:()=>fm,isIdentifier:()=>HN,isIdentifierANonContextualKeyword:()=>Cy,isIdentifierName:()=>ry,isIdentifierOrThisTypeNode:()=>LA,isIdentifierPart:()=>Is,isIdentifierStart:()=>As,isIdentifierText:()=>Os,isIdentifierTypePredicate:()=>Om,isIdentifierTypeReference:()=>CT,isIfStatement:()=>OF,isIgnoredFileFromWildCardWatching:()=>qU,isImplicitGlob:()=>Ak,isImportAttribute:()=>pP,isImportAttributeName:()=>o_,isImportAttributes:()=>dP,isImportCall:()=>sm,isImportClause:()=>cP,isImportDeclaration:()=>sP,isImportEqualsDeclaration:()=>aP,isImportKeyword:()=>oD,isImportMeta:()=>cm,isImportOrExportSpecifier:()=>e_,isImportOrExportSpecifierName:()=>HY,isImportSpecifier:()=>hP,isImportTypeAssertionContainer:()=>lP,isImportTypeNode:()=>VD,isImportableFile:()=>v0,isInComment:()=>fQ,isInCompoundLikeAssignment:()=>Uh,isInExpressionContext:()=>mg,isInJSDoc:()=>Ng,isInJSFile:()=>Tg,isInJSXText:()=>sQ,isInJsonFile:()=>Cg,isInNonReferenceComment:()=>DQ,isInReferenceComment:()=>NQ,isInRightSideOfInternalImportEqualsDeclaration:()=>VG,isInString:()=>rQ,isInTemplateString:()=>aQ,isInTopLevelContext:()=>Gm,isInTypeQuery:()=>Kv,isIncrementalCompilation:()=>dk,isIndexSignatureDeclaration:()=>SD,isIndexedAccessTypeNode:()=>zD,isInferTypeNode:()=>MD,isInfinityOrNaNString:()=>zT,isInitializedProperty:()=>UJ,isInitializedVariable:()=>Mx,isInsideJsxElement:()=>cQ,isInsideJsxElementOrAttribute:()=>iQ,isInsideNodeModules:()=>UZ,isInsideTemplateLiteral:()=>kQ,isInstanceOfExpression:()=>rx,isInstantiatedModule:()=>AB,isInterfaceDeclaration:()=>ZF,isInternalDeclaration:()=>jq,isInternalModuleImportEqualsDeclaration:()=>xg,isInternalName:()=>eA,isIntersectionTypeNode:()=>LD,isIntrinsicJsxName:()=>mv,isIterationStatement:()=>lu,isJSDoc:()=>_E,isJSDocAllType:()=>nE,isJSDocAugmentsTag:()=>pE,isJSDocAuthorTag:()=>fE,isJSDocCallbackTag:()=>gE,isJSDocClassTag:()=>mE,isJSDocCommentContainingNode:()=>Ju,isJSDocConstructSignature:()=>vh,isJSDocDeprecatedTag:()=>kE,isJSDocEnumTag:()=>CE,isJSDocFunctionType:()=>sE,isJSDocImplementsTag:()=>OE,isJSDocIndexSignature:()=>Dg,isJSDocLikeText:()=>NI,isJSDocLink:()=>ZP,isJSDocLinkCode:()=>eE,isJSDocLinkLike:()=>Yu,isJSDocLinkPlain:()=>tE,isJSDocMemberName:()=>YP,isJSDocNameReference:()=>QP,isJSDocNamepathType:()=>lE,isJSDocNamespaceBody:()=>bu,isJSDocNode:()=>Bu,isJSDocNonNullableType:()=>oE,isJSDocNullableType:()=>iE,isJSDocOptionalParameter:()=>nC,isJSDocOptionalType:()=>aE,isJSDocOverloadTag:()=>SE,isJSDocOverrideTag:()=>xE,isJSDocParameterTag:()=>wE,isJSDocPrivateTag:()=>yE,isJSDocPropertyLikeTag:()=>ql,isJSDocPropertyTag:()=>IE,isJSDocProtectedTag:()=>vE,isJSDocPublicTag:()=>hE,isJSDocReadonlyTag:()=>bE,isJSDocReturnTag:()=>NE,isJSDocSatisfiesExpression:()=>oC,isJSDocSatisfiesTag:()=>LE,isJSDocSeeTag:()=>TE,isJSDocSignature:()=>dE,isJSDocTag:()=>zu,isJSDocTemplateTag:()=>PE,isJSDocThisTag:()=>DE,isJSDocThrowsTag:()=>jE,isJSDocTypeAlias:()=>bh,isJSDocTypeAssertion:()=>cA,isJSDocTypeExpression:()=>XP,isJSDocTypeLiteral:()=>uE,isJSDocTypeTag:()=>FE,isJSDocTypedefTag:()=>EE,isJSDocUnknownTag:()=>AE,isJSDocUnknownType:()=>rE,isJSDocVariadicType:()=>cE,isJSXTagName:()=>pg,isJsonEqual:()=>yT,isJsonSourceFile:()=>Zf,isJsxAttribute:()=>IP,isJsxAttributeLike:()=>Lu,isJsxAttributeName:()=>_C,isJsxAttributes:()=>OP,isJsxChild:()=>Ou,isJsxClosingElement:()=>FP,isJsxClosingFragment:()=>AP,isJsxElement:()=>wP,isJsxExpression:()=>jP,isJsxFragment:()=>PP,isJsxNamespacedName:()=>MP,isJsxOpeningElement:()=>DP,isJsxOpeningFragment:()=>EP,isJsxOpeningLikeElement:()=>Mu,isJsxOpeningLikeElementTagName:()=>XG,isJsxSelfClosingElement:()=>NP,isJsxSpreadAttribute:()=>LP,isJsxTagNameExpression:()=>Iu,isJsxText:()=>PN,isJumpStatementTarget:()=>oX,isKeyword:()=>hy,isKeywordOrPunctuation:()=>vy,isKnownSymbol:()=>By,isLabelName:()=>sX,isLabelOfLabeledStatement:()=>aX,isLabeledStatement:()=>WF,isLateVisibilityPaintedStatement:()=>Nf,isLeftHandSideExpression:()=>eu,isLeftHandSideOfAssignment:()=>Wb,isLet:()=>om,isLineBreak:()=>ps,isLiteralComputedPropertyDeclarationName:()=>ny,isLiteralExpression:()=>Gl,isLiteralExpressionOfObject:()=>Xl,isLiteralImportTypeNode:()=>lm,isLiteralKind:()=>Kl,isLiteralLikeAccess:()=>Qg,isLiteralLikeElementAccess:()=>Yg,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>fX,isLiteralTypeLikeExpression:()=>BA,isLiteralTypeLiteral:()=>ou,isLiteralTypeNode:()=>UD,isLocalName:()=>tA,isLogicalOperator:()=>jb,isLogicalOrCoalescingAssignmentExpression:()=>Rb,isLogicalOrCoalescingAssignmentOperator:()=>Mb,isLogicalOrCoalescingBinaryExpression:()=>Jb,isLogicalOrCoalescingBinaryOperator:()=>Bb,isMappedTypeNode:()=>qD,isMemberName:()=>Cl,isMetaProperty:()=>TF,isMethodDeclaration:()=>mD,isMethodOrAccessor:()=>P_,isMethodSignature:()=>fD,isMinusToken:()=>BN,isMissingDeclaration:()=>SP,isModifier:()=>f_,isModifierKind:()=>u_,isModifierLike:()=>A_,isModuleAugmentationExternal:()=>hf,isModuleBlock:()=>rP,isModuleBody:()=>yu,isModuleDeclaration:()=>nP,isModuleExportsAccessExpression:()=>Kg,isModuleIdentifier:()=>$g,isModuleName:()=>RA,isModuleOrEnumDeclaration:()=>Su,isModuleReference:()=>Au,isModuleSpecifierLike:()=>sY,isModuleWithStringLiteralName:()=>_f,isNameOfFunctionDeclaration:()=>pX,isNameOfModuleDeclaration:()=>dX,isNamedClassElement:()=>E_,isNamedDeclaration:()=>Lc,isNamedEvaluation:()=>Wy,isNamedEvaluationSource:()=>Vy,isNamedExportBindings:()=>Bl,isNamedExports:()=>bP,isNamedImportBindings:()=>xu,isNamedImports:()=>gP,isNamedImportsOrExports:()=>_S,isNamedTupleMember:()=>ED,isNamespaceBody:()=>vu,isNamespaceExport:()=>mP,isNamespaceExportDeclaration:()=>oP,isNamespaceImport:()=>fP,isNamespaceReexportDeclaration:()=>hg,isNewExpression:()=>tF,isNewExpressionTarget:()=>HG,isNoSubstitutionTemplateLiteral:()=>AN,isNode:()=>Ul,isNodeArray:()=>$l,isNodeArrayMultiLine:()=>Px,isNodeDescendantOf:()=>Zh,isNodeKind:()=>Vl,isNodeLikeSystem:()=>bn,isNodeModulesDirectory:()=>Pa,isNodeWithPossibleHoistedDeclaration:()=>Vh,isNonContextualKeyword:()=>xy,isNonExportDefaultModifier:()=>KA,isNonGlobalAmbientModule:()=>uf,isNonGlobalDeclaration:()=>o0,isNonNullAccess:()=>iC,isNonNullChain:()=>Ml,isNonNullExpression:()=>kF,isNonStaticMethodOrAccessorWithPrivateName:()=>VJ,isNotEmittedOrPartiallyEmittedNode:()=>cu,isNotEmittedStatement:()=>kP,isNullishCoalesce:()=>Ol,isNumber:()=>pt,isNumericLiteral:()=>NN,isNumericLiteralName:()=>HT,isObjectBindingElementWithoutPropertyName:()=>cY,isObjectBindingOrAssignmentElement:()=>W_,isObjectBindingOrAssignmentPattern:()=>V_,isObjectBindingPattern:()=>$D,isObjectLiteralElement:()=>Ku,isObjectLiteralElementLike:()=>L_,isObjectLiteralExpression:()=>QD,isObjectLiteralMethod:()=>Am,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Im,isObjectTypeDeclaration:()=>oS,isOctalDigit:()=>gs,isOmittedExpression:()=>vF,isOptionalChain:()=>Pl,isOptionalChainRoot:()=>El,isOptionalDeclaration:()=>rC,isOptionalJSDocPropertyLikeTag:()=>ZT,isOptionalTypeNode:()=>AD,isOuterExpression:()=>_A,isOutermostOptionalChain:()=>Il,isOverrideModifier:()=>nD,isPackedArrayLiteral:()=>jT,isParameter:()=>_D,isParameterDeclaration:()=>$y,isParameterOrCatchClauseVariable:()=>UT,isParameterPropertyDeclaration:()=>dc,isParameterPropertyModifier:()=>d_,isParenthesizedExpression:()=>iF,isParenthesizedTypeNode:()=>RD,isParseTreeNode:()=>Tc,isPartOfTypeNode:()=>hm,isPartOfTypeQuery:()=>gg,isPartiallyEmittedExpression:()=>wF,isPatternMatch:()=>ln,isPinnedComment:()=>Wp,isPlainJsFile:()=>Np,isPlusToken:()=>RN,isPossiblyTypeArgumentPosition:()=>uQ,isPostfixUnaryExpression:()=>dF,isPrefixUnaryExpression:()=>uF,isPrivateIdentifier:()=>$N,isPrivateIdentifierClassElementDeclaration:()=>l_,isPrivateIdentifierPropertyAccessExpression:()=>__,isPrivateIdentifierSymbol:()=>Jy,isProgramBundleEmitBuildInfo:()=>wW,isProgramUptoDate:()=>qV,isPrologueDirective:()=>_m,isPropertyAccessChain:()=>Nl,isPropertyAccessEntityNameExpression:()=>Qb,isPropertyAccessExpression:()=>YD,isPropertyAccessOrQualifiedName:()=>G_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>K_,isPropertyAssignment:()=>qP,isPropertyDeclaration:()=>pD,isPropertyName:()=>g_,isPropertyNameLiteral:()=>Oy,isPropertySignature:()=>dD,isProtoSetter:()=>qy,isPrototypeAccess:()=>Zb,isPrototypePropertyAssignment:()=>sh,isPunctuation:()=>yy,isPushOrUnshiftIdentifier:()=>Hy,isQualifiedName:()=>sD,isQuestionDotToken:()=>VN,isQuestionOrExclamationToken:()=>OA,isQuestionOrPlusOrMinusToken:()=>MA,isQuestionToken:()=>qN,isRawSourceMap:()=>lJ,isReadonlyKeyword:()=>ZN,isReadonlyKeywordOrPlusOrMinusToken:()=>jA,isRecognizedTripleSlashComment:()=>Vp,isReferenceFileLocation:()=>JV,isReferencedFile:()=>BV,isRegularExpressionLiteral:()=>EN,isRequireCall:()=>Fg,isRequireVariableStatement:()=>Og,isRestParameter:()=>ed,isRestTypeNode:()=>ID,isReturnStatement:()=>qF,isReturnStatementWithFixablePromiseHandler:()=>V1,isRightSideOfAccessExpression:()=>tx,isRightSideOfInstanceofExpression:()=>ix,isRightSideOfPropertyAccess:()=>_X,isRightSideOfQualifiedName:()=>lX,isRightSideOfQualifiedNameOrPropertyAccess:()=>ex,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>nx,isRootedDiskPath:()=>zo,isSameEntityName:()=>Vg,isSatisfiesExpression:()=>SF,isScopeMarker:()=>_u,isSemicolonClassElement:()=>FF,isSetAccessor:()=>qu,isSetAccessorDeclaration:()=>vD,isShebangTrivia:()=>xs,isShiftOperatorOrHigher:()=>JA,isShorthandAmbientModuleSymbol:()=>pf,isShorthandPropertyAssignment:()=>UP,isSignedNumericLiteral:()=>Py,isSimpleCopiableExpression:()=>IJ,isSimpleInlineableExpression:()=>OJ,isSingleOrDoubleQuote:()=>Lg,isSourceFile:()=>$P,isSourceFileFromLibrary:()=>d0,isSourceFileJS:()=>Sg,isSourceFileNotJS:()=>kg,isSourceFileNotJson:()=>wg,isSourceMapping:()=>pJ,isSpecialPropertyDeclaration:()=>ch,isSpreadAssignment:()=>VP,isSpreadElement:()=>hF,isStatement:()=>Pu,isStatementButNotDeclaration:()=>Fu,isStatementOrBlock:()=>Eu,isStatementWithLocals:()=>Dp,isStatic:()=>mb,isStaticModifier:()=>eD,isString:()=>dt,isStringAKeyword:()=>Ty,isStringANonContextualKeyword:()=>ky,isStringAndEmptyAnonymousObjectIntersection:()=>SQ,isStringDoubleQuoted:()=>jg,isStringLiteral:()=>FN,isStringLiteralLike:()=>Qu,isStringLiteralOrJsxExpression:()=>ju,isStringLiteralOrTemplate:()=>xZ,isStringOrNumericLiteralLike:()=>Fy,isStringOrRegularExpressionOrTemplateLiteral:()=>bQ,isStringTextContainingNode:()=>i_,isSuperCall:()=>am,isSuperKeyword:()=>iD,isSuperOrSuperProperty:()=>Zm,isSuperProperty:()=>eg,isSupportedSourceFileName:()=>Gk,isSwitchStatement:()=>VF,isSyntaxList:()=>ME,isSyntheticExpression:()=>CF,isSyntheticReference:()=>TP,isTagName:()=>cX,isTaggedTemplateExpression:()=>nF,isTaggedTemplateTag:()=>KG,isTemplateExpression:()=>mF,isTemplateHead:()=>IN,isTemplateLiteral:()=>Z_,isTemplateLiteralKind:()=>Ql,isTemplateLiteralToken:()=>Yl,isTemplateLiteralTypeNode:()=>HD,isTemplateLiteralTypeSpan:()=>WD,isTemplateMiddle:()=>ON,isTemplateMiddleOrTemplateTail:()=>Zl,isTemplateSpan:()=>DF,isTemplateTail:()=>LN,isTextWhiteSpaceLike:()=>yY,isThis:()=>yX,isThisContainerOrFunctionBlock:()=>Km,isThisIdentifier:()=>$v,isThisInTypeQuery:()=>Gv,isThisInitializedDeclaration:()=>ng,isThisInitializedObjectBindingExpression:()=>rg,isThisProperty:()=>tg,isThisTypeNode:()=>BD,isThisTypeParameter:()=>KT,isThisTypePredicate:()=>Lm,isThrowStatement:()=>HF,isToken:()=>Hl,isTokenKind:()=>Wl,isTraceEnabled:()=>Mj,isTransientSymbol:()=>ap,isTrivia:()=>wy,isTryStatement:()=>$F,isTupleTypeNode:()=>PD,isTypeAlias:()=>xh,isTypeAliasDeclaration:()=>eP,isTypeAssertionExpression:()=>rF,isTypeDeclaration:()=>QT,isTypeElement:()=>I_,isTypeKeyword:()=>RQ,isTypeKeywordToken:()=>BQ,isTypeKeywordTokenOrIdentifier:()=>JQ,isTypeLiteralNode:()=>DD,isTypeNode:()=>j_,isTypeNodeKind:()=>aS,isTypeOfExpression:()=>cF,isTypeOnlyExportDeclaration:()=>n_,isTypeOnlyImportDeclaration:()=>t_,isTypeOnlyImportOrExportDeclaration:()=>r_,isTypeOperatorNode:()=>JD,isTypeParameterDeclaration:()=>lD,isTypePredicateNode:()=>kD,isTypeQueryNode:()=>ND,isTypeReferenceNode:()=>TD,isTypeReferenceType:()=>Gu,isTypeUsableAsPropertyName:()=>fC,isUMDExportSymbol:()=>tS,isUnaryExpression:()=>nu,isUnaryExpressionWithWrite:()=>iu,isUnicodeIdentifierStart:()=>es,isUnionTypeNode:()=>OD,isUnparsedNode:()=>zl,isUnparsedPrepend:()=>HP,isUnparsedSource:()=>GP,isUnparsedTextLike:()=>Jl,isUrl:()=>Jo,isValidBigIntString:()=>kT,isValidESSymbolDeclaration:()=>Dm,isValidTypeOnlyAliasUseSite:()=>TT,isValueSignatureDeclaration:()=>Wh,isVarAwaitUsing:()=>nm,isVarConst:()=>im,isVarUsing:()=>rm,isVariableDeclaration:()=>GF,isVariableDeclarationInVariableStatement:()=>Cm,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Eg,isVariableDeclarationInitializedToRequire:()=>Pg,isVariableDeclarationList:()=>XF,isVariableLike:()=>km,isVariableLikeOrAccessor:()=>Tm,isVariableStatement:()=>EF,isVoidExpression:()=>lF,isWatchSet:()=>Rx,isWhileStatement:()=>jF,isWhiteSpaceLike:()=>us,isWhiteSpaceSingleLine:()=>ds,isWithStatement:()=>UF,isWriteAccess:()=>Wx,isWriteOnlyAccess:()=>Vx,isYieldExpression:()=>gF,jsxModeNeedsExplicitImport:()=>u0,keywordPart:()=>wY,last:()=>Ie,lastOrUndefined:()=>Ae,length:()=>v,libMap:()=>hO,libs:()=>gO,lineBreakPart:()=>JY,linkNamePart:()=>jY,linkPart:()=>MY,linkTextPart:()=>LY,listFiles:()=>FH,loadModuleFromGlobalCache:()=>hR,loadWithModeAwareCache:()=>IV,makeIdentifierFromModuleName:()=>af,makeImport:()=>eY,makeImportIfNecessary:()=>ZQ,makeStringLiteral:()=>tY,mangleScopedPackageName:()=>_R,map:()=>J,mapAllOrFail:()=>K,mapDefined:()=>G,mapDefinedEntries:()=>Q,mapDefinedIterator:()=>X,mapEntries:()=>ne,mapIterator:()=>z,mapOneOrMany:()=>GZ,mapToDisplayParts:()=>zY,matchFiles:()=>Rk,matchPatternOrExact:()=>uT,matchedText:()=>rn,matchesExclude:()=>vj,maybeBind:()=>it,maybeSetLocalizedDiagnosticMessages:()=>CS,memoize:()=>Tt,memoizeCached:()=>Nt,memoizeOne:()=>Ct,memoizeWeak:()=>wt,metadataHelper:()=>qw,min:()=>Lt,minAndMax:()=>fT,missingFileModifiedTime:()=>io,modifierToFlag:()=>Ob,modifiersToFlags:()=>Ib,moduleOptionDeclaration:()=>xO,moduleResolutionIsEqualTo:()=>yp,moduleResolutionNameAndModeGetter:()=>tV,moduleResolutionOptionDeclarations:()=>NO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>ok,moduleResolutionUsesNodeModules:()=>YQ,moduleSpecifiers:()=>dB,moveEmitHelpers:()=>Dw,moveRangeEnd:()=>hx,moveRangePastDecorators:()=>vx,moveRangePastModifiers:()=>bx,moveRangePos:()=>yx,moveSyntheticComments:()=>xw,mutateMap:()=>Xx,mutateMapSkippingNewValues:()=>Gx,needsParentheses:()=>hZ,needsScopeMarker:()=>du,newCaseClauseTracker:()=>p0,newPrivateEnvironment:()=>XJ,noEmitNotification:()=>Xq,noEmitSubstitution:()=>Gq,noTransformers:()=>Jq,noTruncationMaximumTruncationLength:()=>id,nodeCanBeDecorated:()=>ag,nodeHasName:()=>Ic,nodeIsDecorated:()=>sg,nodeIsMissing:()=>Ip,nodeIsPresent:()=>Op,nodeIsSynthesized:()=>Xy,nodeModuleNameResolver:()=>wM,nodeModulesPathPart:()=>Ij,nodeNextJsonConfigResolver:()=>NM,nodeOrChildIsDecorated:()=>cg,nodeOverlapsWithStartEnd:()=>NX,nodePosToString:()=>Pp,nodeSeenTracker:()=>qQ,nodeStartsNewLexicalEnvironment:()=>Gy,nodeToDisplayParts:()=>WY,noop:()=>gt,noopFileWatcher:()=>fH,normalizePath:()=>ua,normalizeSlashes:()=>oa,not:()=>dn,notImplemented:()=>kt,notImplementedResolver:()=>Zq,nullNodeConverters:()=>kC,nullParenthesizerRules:()=>bC,nullTransformationContext:()=>zq,objectAllocator:()=>Ed,operatorPart:()=>DY,optionDeclarations:()=>kO,optionMapToObject:()=>OL,optionsAffectingProgramStructure:()=>FO,optionsForBuild:()=>EO,optionsForWatch:()=>yO,optionsHaveChanges:()=>_p,optionsHaveModuleResolutionChanges:()=>cp,or:()=>un,orderedRemoveItem:()=>Qt,orderedRemoveItemAt:()=>Yt,outFile:()=>Ev,packageIdToPackageName:()=>bp,packageIdToString:()=>xp,paramHelper:()=>Uw,parameterIsThisKeyword:()=>Hv,parameterNamePart:()=>FY,parseBaseNodeFactory:()=>gI,parseBigInt:()=>xT,parseBuildCommand:()=>gL,parseCommandLine:()=>dL,parseCommandLineWorker:()=>_L,parseConfigFileTextToJson:()=>bL,parseConfigFileWithSystem:()=>SH,parseConfigHostFromCompilerHostLike:()=>GV,parseCustomTypeOption:()=>aL,parseIsolatedEntityName:()=>ZI,parseIsolatedJSDocComment:()=>rO,parseJSDocTypeExpressionForTests:()=>iO,parseJsonConfigFileContent:()=>WL,parseJsonSourceFileConfigFileContent:()=>HL,parseJsonText:()=>eO,parseListTypeOption:()=>sL,parseNodeFactory:()=>hI,parseNodeModuleFromPath:()=>AM,parsePackageName:()=>XM,parsePseudoBigInt:()=>vT,parseValidBigInt:()=>ST,patchWriteFileEnsuringDirectory:()=>Eo,pathContainsNodeModules:()=>EM,pathIsAbsolute:()=>Uo,pathIsBareSpecifier:()=>Wo,pathIsRelative:()=>Vo,patternText:()=>nn,perfLogger:()=>rr,performIncrementalCompilation:()=>KH,performance:()=>Dr,plainJSErrors:()=>iV,positionBelongsToNode:()=>FX,positionIsASICandidate:()=>FZ,positionIsSynthesized:()=>iT,positionsAreOnSameLine:()=>Ex,preProcessFile:()=>A1,probablyUsesSemicolons:()=>PZ,processCommentPragmas:()=>aO,processPragmasIntoFields:()=>sO,processTaggedTemplateExpression:()=>Dz,programContainsEsModules:()=>KQ,programContainsModules:()=>$Q,projectReferenceIsEqualTo:()=>hp,propKeyHelper:()=>rN,propertyNamePart:()=>PY,pseudoBigIntToString:()=>bT,punctuationPart:()=>NY,pushIfUnique:()=>xe,quote:()=>vZ,quotePreferenceFromString:()=>nY,rangeContainsPosition:()=>SX,rangeContainsPositionExclusive:()=>kX,rangeContainsRange:()=>bX,rangeContainsRangeExclusive:()=>xX,rangeContainsStartEnd:()=>CX,rangeEndIsOnSameLineAsRangeStart:()=>Nx,rangeEndPositionsAreOnSameLine:()=>Cx,rangeEquals:()=>Ne,rangeIsOnSingleLine:()=>kx,rangeOfNode:()=>mT,rangeOfTypeParameters:()=>gT,rangeOverlapsWithStartEnd:()=>wX,rangeStartIsOnSameLineAsRangeEnd:()=>wx,rangeStartPositionsAreOnSameLine:()=>Tx,readBuilderProgram:()=>XH,readConfigFile:()=>vL,readHelper:()=>tN,readJson:()=>px,readJsonConfigFile:()=>xL,readJsonOrUndefined:()=>dx,reduceEachLeadingCommentRange:()=>ws,reduceEachTrailingCommentRange:()=>Ns,reduceLeft:()=>Je,reduceLeftIterator:()=>T,reducePathComponents:()=>aa,refactor:()=>g7,regExpEscape:()=>Dk,relativeComplement:()=>ge,removeAllComments:()=>nw,removeEmitHelper:()=>ww,removeExtension:()=>eT,removeFileExtension:()=>Yk,removeIgnoredPath:()=>GW,removeMinAndVersionNumbers:()=>Xt,removeOptionality:()=>_Q,removePrefix:()=>sn,removeSuffix:()=>Kt,removeTrailingDirectorySeparator:()=>fa,repeatString:()=>VQ,replaceElement:()=>Me,resolutionExtensionIsTSOrJson:()=>aT,resolveConfigFileProjectName:()=>r$,resolveJSModule:()=>kM,resolveLibrary:()=>vM,resolveModuleName:()=>xM,resolveModuleNameFromCache:()=>bM,resolvePackageNameToPackageJson:()=>iM,resolvePath:()=>ca,resolveProjectReferencePath:()=>QV,resolveTripleslashReference:()=>cV,resolveTypeReferenceDirective:()=>tM,resolvingEmptyArray:()=>td,restHelper:()=>Qw,returnFalse:()=>ht,returnNoopFileWatcher:()=>mH,returnTrue:()=>yt,returnUndefined:()=>vt,returnsPromise:()=>U1,runInitializersHelper:()=>Ww,sameFlatMap:()=>$,sameMap:()=>q,sameMapping:()=>dJ,scanShebangTrivia:()=>Ss,scanTokenAtPosition:()=>Xf,scanner:()=>AG,screenStartingMessageCodes:()=>pH,semanticDiagnosticsOptionDeclarations:()=>TO,serializeCompilerOptions:()=>RL,server:()=>abe,servicesVersion:()=>N7,setCommentRange:()=>fw,setConfigFileInOptions:()=>$L,setConstantValue:()=>kw,setEachParent:()=>IT,setEmitFlags:()=>rw,setFunctionNameHelper:()=>iN,setGetSourceFileAsHashVersioned:()=>qH,setIdentifierAutoGenerate:()=>jw,setIdentifierGeneratedImportReference:()=>Rw,setIdentifierTypeArguments:()=>Ow,setInternalEmitFlags:()=>ow,setLocalizedDiagnosticMessages:()=>TS,setModuleDefaultHelper:()=>cN,setNodeFlags:()=>ET,setObjectAllocator:()=>SS,setOriginalNode:()=>YC,setParent:()=>AT,setParentRecursive:()=>OT,setPrivateIdentifier:()=>YJ,setSnippetElement:()=>Pw,setSourceMapRange:()=>cw,setStackTraceLimit:()=>mo,setStartsOnNewLine:()=>dw,setSyntheticLeadingComments:()=>gw,setSyntheticTrailingComments:()=>vw,setSys:()=>Ao,setSysLog:()=>wo,setTextRange:()=>cI,setTextRangeEnd:()=>DT,setTextRangePos:()=>NT,setTextRangePosEnd:()=>FT,setTextRangePosWidth:()=>PT,setTokenSourceMapRange:()=>_w,setTypeNode:()=>Aw,setUILocale:()=>zt,setValueDeclaration:()=>lh,shouldAllowImportingTsExtension:()=>gR,shouldPreserveConstEnums:()=>uk,shouldResolveJsRequire:()=>ak,shouldUseUriStyleNodeCoreModules:()=>s0,showModuleSpecifier:()=>nS,signatureHasLiteralTypes:()=>BB,signatureHasRestParameter:()=>RB,signatureToDisplayParts:()=>VY,single:()=>Le,singleElementArray:()=>fn,singleIterator:()=>ee,singleOrMany:()=>je,singleOrUndefined:()=>Oe,skipAlias:()=>qx,skipAssertions:()=>pA,skipConstraint:()=>WQ,skipOuterExpressions:()=>uA,skipParentheses:()=>Qh,skipPartiallyEmittedExpressions:()=>jl,skipTrivia:()=>ys,skipTypeChecking:()=>hT,skipTypeParentheses:()=>Xh,skipWhile:()=>vn,sliceAfter:()=>dT,some:()=>re,sort:()=>Te,sortAndDeduplicate:()=>ue,sortAndDeduplicateDiagnostics:()=>Ws,sourceFileAffectingCompilerOptions:()=>DO,sourceFileMayBeEmitted:()=>Ov,sourceMapCommentRegExp:()=>tJ,sourceMapCommentRegExpDontCareLineStart:()=>eJ,spacePart:()=>CY,spanMap:()=>te,spreadArrayHelper:()=>nN,stableSort:()=>we,startEndContainsRange:()=>TX,startEndOverlapsWithStartEnd:()=>DX,startOnNewLine:()=>fA,startTracing:()=>Er,startsWith:()=>an,startsWithDirectory:()=>ka,startsWithUnderscore:()=>r0,startsWithUseStrict:()=>oA,stringContainsAt:()=>n0,stringToToken:()=>ns,stripQuotes:()=>fv,supportedDeclarationExtensions:()=>Xd,supportedJSExtensions:()=>Hd,supportedJSExtensionsFlat:()=>$d,supportedLocaleDirectories:()=>zs,supportedTSExtensions:()=>qd,supportedTSExtensionsFlat:()=>Ud,supportedTSImplementationExtensions:()=>Qd,suppressLeadingAndTrailingTrivia:()=>iZ,suppressLeadingTrivia:()=>oZ,suppressTrailingTrivia:()=>aZ,symbolEscapedNameNoDefault:()=>aY,symbolName:()=>Pc,symbolNameNoDefault:()=>oY,symbolPart:()=>kY,symbolToDisplayParts:()=>UY,syntaxMayBeASICandidate:()=>JG,syntaxRequiresTrailingSemicolonOrASI:()=>DZ,sys:()=>uo,sysLog:()=>Co,tagNamesAreEquivalent:()=>uO,takeWhile:()=>yn,targetOptionDeclaration:()=>bO,templateObjectHelper:()=>eN,testFormatSettings:()=>yG,textChangeRangeIsUnchanged:()=>cc,textChangeRangeNewSpan:()=>sc,textChanges:()=>Pfe,textOrKeywordPart:()=>EY,textPart:()=>AY,textRangeContainsPositionInclusive:()=>Xs,textSpanContainsPosition:()=>Gs,textSpanContainsTextSpan:()=>Qs,textSpanEnd:()=>$s,textSpanIntersection:()=>ic,textSpanIntersectsWith:()=>tc,textSpanIntersectsWithPosition:()=>rc,textSpanIntersectsWithTextSpan:()=>ec,textSpanIsEmpty:()=>Ks,textSpanOverlap:()=>Zs,textSpanOverlapsWith:()=>Ys,textSpansEqual:()=>mY,textToKeywordObj:()=>Oa,timestamp:()=>Yn,toArray:()=>ut,toBuilderFileEmit:()=>BW,toBuilderStateFileInfoForMultiEmit:()=>RW,toEditorSettings:()=>Y7,toFileNameLowerCase:()=>St,toLowerCase:()=>xt,toPath:()=>pa,toProgramEmitPending:()=>JW,tokenIsIdentifierOrKeyword:()=>Qa,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Ya,tokenToString:()=>ts,trace:()=>jj,tracing:()=>Fr,tracingEnabled:()=>Pr,transform:()=>d5,transformClassFields:()=>Lz,transformDeclarations:()=>Mq,transformECMAScriptModule:()=>Cq,transformES2015:()=>fq,transformES2016:()=>uq,transformES2017:()=>Vz,transformES2018:()=>$z,transformES2019:()=>Gz,transformES2020:()=>Qz,transformES2021:()=>Zz,transformES5:()=>gq,transformESDecorators:()=>qz,transformESNext:()=>tq,transformGenerators:()=>yq,transformJsx:()=>lq,transformLegacyDecorators:()=>Jz,transformModule:()=>xq,transformNamedEvaluation:()=>Cz,transformNodeModule:()=>Nq,transformNodes:()=>Qq,transformSystemModule:()=>kq,transformTypeScript:()=>Iz,transpile:()=>t2,transpileModule:()=>e2,transpileOptionValueCompilerOptions:()=>PO,tryAddToSet:()=>Z,tryAndIgnoreErrors:()=>LZ,tryCast:()=>ft,tryDirectoryExists:()=>OZ,tryExtractTSExtension:()=>cx,tryFileExists:()=>IZ,tryGetClassExtendingExpressionWithTypeArguments:()=>qb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Ub,tryGetDirectories:()=>EZ,tryGetExtensionFromPath:()=>lT,tryGetImportFromModuleSpecifier:()=>ph,tryGetJSDocSatisfiesTypeNode:()=>sC,tryGetModuleNameFromFile:()=>xA,tryGetModuleSpecifierFromDeclaration:()=>uh,tryGetNativePerformanceHooks:()=>tr,tryGetPropertyAccessOrIdentifierToString:()=>Yb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>wA,tryGetSourceMappingURL:()=>sJ,tryGetTextOfPropertyName:()=>jf,tryIOAndConsumeErrors:()=>jZ,tryParsePattern:()=>nT,tryParsePatterns:()=>rT,tryParseRawSourceMap:()=>_J,tryReadDirectory:()=>AZ,tryReadFile:()=>SL,tryRemoveDirectoryPrefix:()=>Nk,tryRemoveExtension:()=>Zk,tryRemovePrefix:()=>cn,tryRemoveSuffix:()=>Gt,typeAcquisitionDeclarations:()=>IO,typeAliasNamePart:()=>IY,typeDirectiveIsEqualTo:()=>Sp,typeKeywords:()=>LG,typeParameterNamePart:()=>OY,typeReferenceResolutionNameAndModeGetter:()=>nV,typeToDisplayParts:()=>qY,unchangedPollThresholds:()=>so,unchangedTextChangeRange:()=>Js,unescapeLeadingUnderscores:()=>Nc,unmangleScopedPackageName:()=>dR,unorderedRemoveItem:()=>en,unorderedRemoveItemAt:()=>Zt,unreachableCodeIsError:()=>ek,unusedLabelIsError:()=>tk,unwrapInnermostStatementOfLabel:()=>Pm,updateErrorForNoInputFiles:()=>ej,updateLanguageServiceSourceFile:()=>o5,updateMissingFilePathsWatch:()=>JU,updatePackageJsonWatch:()=>BU,updateResolutionField:()=>Hj,updateSharedExtendedConfigFileWatcher:()=>jU,updateSourceFile:()=>nO,updateWatchingWildcardDirectories:()=>zU,usesExtensionsOnImports:()=>$k,usingSingleLineStringWriter:()=>mp,utf16EncodeAsString:()=>Bs,validateLocaleAndSetLanguage:()=>xc,valuesHelper:()=>oN,version:()=>t,versionMajorMinor:()=>e,visitArray:()=>VB,visitCommaListElements:()=>QB,visitEachChild:()=>YB,visitFunctionBody:()=>GB,visitIterationBody:()=>XB,visitLexicalEnvironment:()=>HB,visitNode:()=>qB,visitNodes:()=>UB,visitParameterList:()=>$B,walkUpBindingElementsAndPatterns:()=>mc,walkUpLexicalEnvironments:()=>GJ,walkUpOuterExpressions:()=>dA,walkUpParenthesizedExpressions:()=>Kh,walkUpParenthesizedTypes:()=>$h,walkUpParenthesizedTypesAndGetParentAndChild:()=>Gh,whitespaceOrMapCommentRegExp:()=>nJ,writeCommentRange:()=>cb,writeFile:()=>Mv,writeFileEnsuringDirectories:()=>Bv,zipWith:()=>C});var lbe=g({"src/server/_namespaces/ts.ts"(){OK(),PG(),zge(),Yge(),sbe()}}),_be={};h(_be,{ActionInvalidate:()=>TK,ActionPackageInstalled:()=>CK,ActionSet:()=>kK,ActionWatchTypingLocations:()=>PK,Arguments:()=>EK,AutoImportProviderProject:()=>oye,AuxiliaryProject:()=>rye,CharRangeSection:()=>Gve,CloseFileWatcherEvent:()=>Eye,CommandNames:()=>bve,ConfigFileDiagEvent:()=>Cye,ConfiguredProject:()=>aye,CreateDirectoryWatcherEvent:()=>Pye,CreateFileWatcherEvent:()=>Fye,Errors:()=>lhe,EventBeginInstallTypes:()=>NK,EventEndInstallTypes:()=>DK,EventInitializationFailed:()=>FK,EventTypesRegistry:()=>wK,ExternalProject:()=>sye,GcTimer:()=>The,InferredProject:()=>nye,LargeFileReferencedEvent:()=>Tye,LineIndex:()=>tbe,LineLeaf:()=>rbe,LineNode:()=>nbe,LogLevel:()=>ahe,Msg:()=>che,OpenFileInfoTelemetryEvent:()=>Dye,Project:()=>tye,ProjectInfoTelemetryEvent:()=>Nye,ProjectKind:()=>eye,ProjectLanguageServiceStateEvent:()=>wye,ProjectLoadingFinishEvent:()=>kye,ProjectLoadingStartEvent:()=>Sye,ProjectReferenceProjectLoadKind:()=>Jye,ProjectService:()=>qye,ProjectsUpdatedInBackgroundEvent:()=>xye,ScriptInfo:()=>Hhe,ScriptVersionCache:()=>Zve,Session:()=>Tve,TextStorage:()=>Whe,ThrottledOperations:()=>khe,TypingsCache:()=>Qhe,allFilesAreJsOrDts:()=>uye,allRootFilesAreJsOrDts:()=>_ye,asNormalizedPath:()=>ghe,convertCompilerOptions:()=>Hye,convertFormatOptions:()=>Wye,convertScriptKindName:()=>Xye,convertTypeAcquisition:()=>Kye,convertUserPreferences:()=>Qye,convertWatchOptions:()=>$ye,countEachFileTypes:()=>lye,createInstallTypingsRequest:()=>phe,createModuleSpecifierCache:()=>gve,createNormalizedPathMap:()=>hhe,createPackageJsonCache:()=>yve,createSortedArray:()=>She,emptyArray:()=>she,findArgument:()=>jK,forEachResolvedProjectReferenceProject:()=>eve,formatDiagnosticToProtocol:()=>Pve,formatMessage:()=>Eve,getBaseConfigFileName:()=>whe,getLocationInNewDocument:()=>Hve,hasArgument:()=>LK,hasNoTypeScriptSource:()=>dye,indent:()=>RK,isBackgroundProject:()=>yye,isConfigFile:()=>pve,isConfiguredProject:()=>gye,isDynamicFileName:()=>Khe,isExternalProject:()=>hye,isInferredProject:()=>mye,isInferredProjectName:()=>yhe,makeAutoImportProviderProjectName:()=>bhe,makeAuxiliaryProjectName:()=>xhe,makeInferredProjectName:()=>vhe,maxFileSize:()=>bye,maxProgramSizeForNonTsFiles:()=>vye,normalizedPathToPath:()=>mhe,nowString:()=>MK,nullCancellationToken:()=>vve,nullTypingsInstaller:()=>Xhe,projectContainsInfoDirectly:()=>sve,protocol:()=>Vhe,removeSorted:()=>Nhe,stringifyIndented:()=>BK,toEvent:()=>Ave,toNormalizedPath:()=>fhe,tryConvertScriptKindName:()=>Gye,typingsInstaller:()=>ohe,updateProjectIfDirty:()=>cve});var ube=g({"src/typescript/_namespaces/ts.server.ts"(){KK(),sbe()}}),dbe={};h(dbe,{ANONYMOUS:()=>BG,AccessFlags:()=>pi,AssertionLevel:()=>_,AssignmentDeclarationKind:()=>ki,AssignmentKind:()=>fd,Associativity:()=>gd,BreakpointResolver:()=>g5,BuilderFileEmit:()=>oW,BuilderProgramKind:()=>aW,BuilderState:()=>tW,BundleFileSectionKind:()=>Ki,CallHierarchy:()=>j5,CharacterCodes:()=>Ri,CheckFlags:()=>ai,CheckMode:()=>xB,ClassificationType:()=>DG,ClassificationTypeNames:()=>NG,CommentDirectiveType:()=>zr,Comparison:()=>n,CompletionInfoFlags:()=>bG,CompletionTriggerKind:()=>pG,Completions:()=>C_e,ContainerFlags:()=>SR,ContextFlags:()=>Xr,Debug:()=>Sn,DiagnosticCategory:()=>Ti,Diagnostics:()=>Ea,DocumentHighlights:()=>z0,ElementFlags:()=>di,EmitFlags:()=>qi,EmitHint:()=>Wi,EmitOnly:()=>Wr,EndOfLineState:()=>kG,EnumKind:()=>oi,ExitStatus:()=>$r,ExportKind:()=>g0,Extension:()=>Bi,ExternalEmitHelpers:()=>Vi,FileIncludeKind:()=>Ur,FilePreprocessingDiagnosticsKind:()=>Vr,FileSystemEntryKind:()=>_o,FileWatcherEventKind:()=>no,FindAllReferences:()=>mue,FlattenLevel:()=>ez,FlowFlags:()=>Jr,ForegroundColorEscapeSequences:()=>$U,FunctionFlags:()=>md,GeneratedIdentifierFlags:()=>Rr,GetLiteralTextFlags:()=>sd,GoToDefinition:()=>Oue,HighlightSpanKind:()=>mG,IdentifierNameMap:()=>xJ,IdentifierNameMultiMap:()=>SJ,ImportKind:()=>m0,ImportsNotUsedAsValues:()=>Ai,IndentStyle:()=>gG,IndexFlags:()=>fi,IndexKind:()=>yi,InferenceFlags:()=>xi,InferencePriority:()=>bi,InlayHintKind:()=>fG,InlayHints:()=>zue,InternalEmitFlags:()=>Ui,InternalSymbolName:()=>si,InvalidatedProjectKind:()=>a$,JSDocParsingMode:()=>Yi,JsDoc:()=>sde,JsTyping:()=>oG,JsxEmit:()=>Ei,JsxFlags:()=>jr,JsxReferenceKind:()=>mi,LanguageServiceMode:()=>lG,LanguageVariant:()=>ji,LexicalEnvironmentFlags:()=>$i,ListFormat:()=>Gi,LogLevel:()=>xn,MemberOverrideStatus:()=>Kr,ModifierFlags:()=>Lr,ModuleDetectionKind:()=>wi,ModuleInstanceState:()=>xR,ModuleKind:()=>Pi,ModuleResolutionKind:()=>Ci,ModuleSpecifierEnding:()=>Zd,NavigateTo:()=>m2,NavigationBar:()=>p6,NewLineKind:()=>Ii,NodeBuilderFlags:()=>Qr,NodeCheckFlags:()=>ci,NodeFactoryFlags:()=>NC,NodeFlags:()=>Or,NodeResolutionFeatures:()=>Aj,ObjectFlags:()=>_i,OperationCanceledException:()=>qr,OperatorPrecedence:()=>hd,OrganizeImports:()=>Mde,OrganizeImportsMode:()=>dG,OuterExpressionKinds:()=>Hi,OutliningElementsCollector:()=>Kde,OutliningSpanKind:()=>xG,OutputFileType:()=>SG,PackageJsonAutoImportPreference:()=>cG,PackageJsonDependencyGroup:()=>sG,PatternMatchKind:()=>i1,PollingInterval:()=>ro,PollingWatchKind:()=>Fi,PragmaKindFlags:()=>Xi,PrivateIdentifierKind:()=>Jw,ProcessLevel:()=>wz,ProgramUpdateLevel:()=>AU,QuotePreference:()=>jG,RelationComparisonResult:()=>Mr,Rename:()=>rpe,ScriptElementKind:()=>CG,ScriptElementKindModifier:()=>wG,ScriptKind:()=>Oi,ScriptSnapshot:()=>aG,ScriptTarget:()=>Li,SemanticClassificationFormat:()=>uG,SemanticMeaning:()=>IG,SemicolonPreference:()=>hG,SignatureCheckMode:()=>SB,SignatureFlags:()=>hi,SignatureHelp:()=>Fpe,SignatureKind:()=>gi,SmartSelectionRange:()=>qpe,SnippetKind:()=>zi,SortKind:()=>a,StructureIsReused:()=>Hr,SymbolAccessibility:()=>ei,SymbolDisplay:()=>Zpe,SymbolDisplayPartKind:()=>vG,SymbolFlags:()=>ii,SymbolFormatFlags:()=>Zr,SyntaxKind:()=>Ir,SyntheticSymbolKind:()=>ti,Ternary:()=>Si,ThrottledCancellationToken:()=>z7,TokenClass:()=>TG,TokenFlags:()=>Br,TransformFlags:()=>Ji,TypeFacts:()=>vB,TypeFlags:()=>li,TypeFormatFlags:()=>Yr,TypeMapKind:()=>vi,TypePredicateKind:()=>ni,TypeReferenceSerializationKind:()=>ri,UnionReduction:()=>Gr,UpToDateStatusType:()=>t$,VarianceFlags:()=>ui,Version:()=>Pn,VersionRange:()=>En,WatchDirectoryFlags:()=>Mi,WatchDirectoryKind:()=>Di,WatchFileKind:()=>Ni,WatchLogLevel:()=>IU,WatchType:()=>gH,accessPrivateIdentifier:()=>ZJ,addDisposableResourceHelper:()=>mN,addEmitFlags:()=>iw,addEmitHelper:()=>Tw,addEmitHelpers:()=>Cw,addInternalEmitFlags:()=>aw,addNodeFactoryPatcher:()=>LC,addObjectAllocatorPatcher:()=>xS,addRange:()=>be,addRelatedInfo:()=>pT,addSyntheticLeadingComment:()=>hw,addSyntheticTrailingComment:()=>bw,addToSeen:()=>iS,advancedAsyncSuperHelper:()=>vN,affectsDeclarationPathOptionDeclarations:()=>wO,affectsEmitOptionDeclarations:()=>CO,allKeysStartWithDot:()=>QM,altDirectorySeparator:()=>Oo,and:()=>_n,append:()=>he,appendIfUnique:()=>Se,arrayFrom:()=>$e,arrayIsEqualTo:()=>fe,arrayIsHomogeneous:()=>wT,arrayIsSorted:()=>de,arrayOf:()=>He,arrayReverseIterator:()=>Ce,arrayToMap:()=>Xe,arrayToMultiMap:()=>Ye,arrayToNumericMap:()=>Qe,arraysEqual:()=>O,assertType:()=>pn,assign:()=>Ke,assignHelper:()=>Hw,asyncDelegator:()=>Gw,asyncGeneratorHelper:()=>Kw,asyncSuperHelper:()=>yN,asyncValues:()=>Xw,attachFileToDiagnostics:()=>PS,awaitHelper:()=>$w,awaiterHelper:()=>Yw,base64decode:()=>ux,base64encode:()=>_x,binarySearch:()=>Re,binarySearchKey:()=>Be,bindSourceFile:()=>FR,breakIntoCharacterSpans:()=>S1,breakIntoWordSpans:()=>k1,buildLinkParts:()=>RY,buildOpts:()=>AO,buildOverload:()=>$ge,bundlerModuleNameResolver:()=>CM,canBeConvertedToAsync:()=>X1,canHaveDecorators:()=>_I,canHaveExportModifier:()=>YT,canHaveFlowNode:()=>wh,canHaveIllegalDecorators:()=>AA,canHaveIllegalModifiers:()=>IA,canHaveIllegalType:()=>PA,canHaveIllegalTypeParameters:()=>EA,canHaveJSDoc:()=>Nh,canHaveLocals:()=>Tu,canHaveModifiers:()=>lI,canHaveSymbol:()=>ku,canJsonReportNoInputFiles:()=>ZL,canProduceDiagnostics:()=>Fq,canUsePropertyAccess:()=>eC,canWatchAffectingLocation:()=>tH,canWatchAtTypes:()=>YW,canWatchDirectoryOrFile:()=>QW,cartesianProduct:()=>gn,cast:()=>mt,chainBundle:()=>wJ,chainDiagnosticMessages:()=>LS,changeAnyExtension:()=>ha,changeCompilerHostLikeToUseCache:()=>fV,changeExtension:()=>tT,changesAffectModuleResolution:()=>sp,changesAffectingProgramStructure:()=>lp,childIsDecorated:()=>lg,classElementOrClassElementParameterIsDecorated:()=>ug,classHasClassThisAssignment:()=>fz,classHasDeclaredOrExplicitlyAssignedName:()=>Sz,classHasExplicitlyAssignedName:()=>xz,classOrConstructorParameterIsDecorated:()=>_g,classPrivateFieldGetHelper:()=>dN,classPrivateFieldInHelper:()=>fN,classPrivateFieldSetHelper:()=>pN,classicNameResolver:()=>fR,classifier:()=>J5,cleanExtendedConfigCache:()=>RU,clear:()=>B,clearMap:()=>Kx,clearSharedExtendedConfigFileWatcher:()=>MU,climbPastPropertyAccess:()=>tX,climbPastPropertyOrElementAccess:()=>nX,clone:()=>tt,cloneCompilerOptions:()=>CQ,closeFileWatcher:()=>Bx,closeFileWatcherOf:()=>HU,codefix:()=>Sce,collapseTextChangeRangesAcrossMultipleVersions:()=>_c,collectExternalModuleInfo:()=>PJ,combine:()=>ye,combinePaths:()=>sa,commentPragmas:()=>Qi,commonOptionsWithBuild:()=>vO,commonPackageFolders:()=>jd,compact:()=>me,compareBooleans:()=>Vt,compareDataObjects:()=>$x,compareDiagnostics:()=>RS,compareDiagnosticsSkipRelatedInformation:()=>BS,compareEmitHelpers:()=>SN,compareNumberOfDirectorySeparators:()=>Qk,comparePaths:()=>xa,comparePathsCaseInsensitive:()=>ba,comparePathsCaseSensitive:()=>va,comparePatternKeys:()=>ZM,compareProperties:()=>Ut,compareStringsCaseInsensitive:()=>jt,compareStringsCaseInsensitiveEslintCompatible:()=>Mt,compareStringsCaseSensitive:()=>Rt,compareStringsCaseSensitiveUI:()=>qt,compareTextSpans:()=>Ot,compareValues:()=>It,compileOnSaveCommandLineOption:()=>dO,compilerOptionsAffectDeclarationPath:()=>vk,compilerOptionsAffectEmit:()=>yk,compilerOptionsAffectSemanticDiagnostics:()=>hk,compilerOptionsDidYouMeanDiagnostics:()=>MO,compilerOptionsIndicateEsModules:()=>GQ,compose:()=>Dt,computeCommonSourceDirectoryOfFilenames:()=>lV,computeLineAndCharacterOfPosition:()=>ss,computeLineOfPosition:()=>cs,computeLineStarts:()=>rs,computePositionOfLineAndCharacter:()=>os,computeSignature:()=>LW,computeSignatureWithDiagnostics:()=>OW,computeSuggestionDiagnostics:()=>J1,concatenate:()=>oe,concatenateDiagnosticMessageChains:()=>jS,consumesNodeCoreModules:()=>qZ,contains:()=>I,containsIgnoredPath:()=>RT,containsObjectRestOrSpread:()=>aI,containsParseError:()=>Tp,containsPath:()=>Sa,convertCompilerOptionsForTelemetry:()=>Nj,convertCompilerOptionsFromJson:()=>ij,convertJsonOption:()=>dj,convertToBase64:()=>lx,convertToJson:()=>PL,convertToObject:()=>FL,convertToOptionsWithAbsolutePaths:()=>UL,convertToRelativePath:()=>wa,convertToTSConfig:()=>IL,convertTypeAcquisitionFromJson:()=>oj,copyComments:()=>sZ,copyEntries:()=>fp,copyLeadingComments:()=>dZ,copyProperties:()=>rt,copyTrailingAsLeadingComments:()=>fZ,copyTrailingComments:()=>pZ,couldStartTrivia:()=>hs,countWhere:()=>j,createAbstractBuilder:()=>$W,createAccessorPropertyBackingField:()=>eI,createAccessorPropertyGetRedirector:()=>tI,createAccessorPropertySetRedirector:()=>nI,createBaseNodeFactory:()=>vC,createBinaryExpressionTrampoline:()=>WA,createBindingHelper:()=>sN,createBuildInfo:()=>TU,createBuilderProgram:()=>jW,createBuilderProgramUsingProgramBuildInfo:()=>zW,createBuilderStatusReporter:()=>d$,createCacheWithRedirects:()=>cM,createCacheableExportInfoMap:()=>y0,createCachedDirectoryStructureHost:()=>LU,createClassNamedEvaluationHelperBlock:()=>vz,createClassThisAssignmentBlock:()=>dz,createClassifier:()=>D0,createCommentDirectivesMap:()=>Hp,createCompilerDiagnostic:()=>IS,createCompilerDiagnosticForInvalidCustomType:()=>iL,createCompilerDiagnosticFromMessageChain:()=>OS,createCompilerHost:()=>_V,createCompilerHostFromProgramHost:()=>JH,createCompilerHostWorker:()=>pV,createDetachedDiagnostic:()=>NS,createDiagnosticCollection:()=>ov,createDiagnosticForFileFromMessageChain:()=>Hf,createDiagnosticForNode:()=>Bf,createDiagnosticForNodeArray:()=>Jf,createDiagnosticForNodeArrayFromMessageChain:()=>Uf,createDiagnosticForNodeFromMessageChain:()=>qf,createDiagnosticForNodeInSourceFile:()=>zf,createDiagnosticForRange:()=>Kf,createDiagnosticMessageChainFromDiagnostic:()=>$f,createDiagnosticReporter:()=>yH,createDocumentPositionMapper:()=>bJ,createDocumentRegistry:()=>W0,createDocumentRegistryInternal:()=>H0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>HW,createEmitHelperFactory:()=>xN,createEmptyExports:()=>zE,createExpressionForJsxElement:()=>HE,createExpressionForJsxFragment:()=>$E,createExpressionForObjectLiteralElementLike:()=>YE,createExpressionForPropertyName:()=>QE,createExpressionFromEntityName:()=>XE,createExternalHelpersImportDeclarationIfNeeded:()=>hA,createFileDiagnostic:()=>ES,createFileDiagnosticFromMessageChain:()=>Wf,createForOfBindingStatement:()=>KE,createGetCanonicalFileName:()=>tn,createGetSourceFile:()=>uV,createGetSymbolAccessibilityDiagnosticForNode:()=>Eq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Pq,createGetSymbolWalker:()=>jR,createIncrementalCompilerHost:()=>QH,createIncrementalProgram:()=>YH,createInputFiles:()=>KC,createInputFilesWithFilePaths:()=>GC,createInputFilesWithFileTexts:()=>XC,createJsxFactoryExpression:()=>WE,createLanguageService:()=>a5,createLanguageServiceSourceFile:()=>i5,createMemberAccessForPropertyName:()=>qE,createModeAwareCache:()=>uM,createModeAwareCacheKey:()=>_M,createModuleNotFoundChain:()=>vp,createModuleResolutionCache:()=>gM,createModuleResolutionLoader:()=>PV,createModuleResolutionLoaderUsingGlobalCache:()=>lH,createModuleSpecifierResolutionHost:()=>XQ,createMultiMap:()=>ot,createNodeConverters:()=>CC,createNodeFactory:()=>jC,createOptionNameMap:()=>nL,createOverload:()=>Hge,createPackageJsonImportFilter:()=>zZ,createPackageJsonInfo:()=>JZ,createParenthesizerRules:()=>SC,createPatternMatcher:()=>s1,createPrependNodes:()=>XV,createPrinter:()=>DU,createPrinterWithDefaults:()=>eU,createPrinterWithRemoveComments:()=>tU,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>nU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>rU,createProgram:()=>HV,createProgramHost:()=>UH,createPropertyNameNodeForIdentifierOrLiteral:()=>$T,createQueue:()=>ct,createRange:()=>gx,createRedirectedBuilderProgram:()=>UW,createResolutionCache:()=>_H,createRuntimeTypeSerializer:()=>Rz,createScanner:()=>Ls,createSemanticDiagnosticsBuilderProgram:()=>WW,createSet:()=>lt,createSolutionBuilder:()=>g$,createSolutionBuilderHost:()=>f$,createSolutionBuilderWithWatch:()=>h$,createSolutionBuilderWithWatchHost:()=>m$,createSortedArray:()=>le,createSourceFile:()=>YI,createSourceMapGenerator:()=>oJ,createSourceMapSource:()=>QC,createSuperAccessVariableStatement:()=>Wz,createSymbolTable:()=>op,createSymlinkCache:()=>Ck,createSystemWatchFunctions:()=>Po,createTextChange:()=>MQ,createTextChangeFromStartLength:()=>jQ,createTextChangeRange:()=>lc,createTextRangeFromNode:()=>IQ,createTextRangeFromSpan:()=>LQ,createTextSpan:()=>oc,createTextSpanFromBounds:()=>ac,createTextSpanFromNode:()=>EQ,createTextSpanFromRange:()=>OQ,createTextSpanFromStringLiteralLikeContent:()=>AQ,createTextWriter:()=>yv,createTokenRange:()=>Sx,createTypeChecker:()=>IB,createTypeReferenceDirectiveResolutionCache:()=>hM,createTypeReferenceResolutionLoader:()=>AV,createUnparsedSourceFile:()=>$C,createWatchCompilerHost:()=>ZH,createWatchCompilerHostOfConfigFile:()=>HH,createWatchCompilerHostOfFilesAndCompilerOptions:()=>$H,createWatchFactory:()=>BH,createWatchHost:()=>RH,createWatchProgram:()=>e$,createWatchStatusReporter:()=>xH,createWriteFileMeasuringIO:()=>dV,declarationNameToString:()=>If,decodeMappings:()=>uJ,decodedTextSpanIntersectsWith:()=>nc,decorateHelper:()=>zw,deduplicate:()=>ce,defaultIncludeSpec:()=>YO,defaultInitCompilerOptions:()=>jO,defaultMaximumTruncationLength:()=>rd,detectSortCaseSensitivity:()=>pe,diagnosticCategoryName:()=>to,diagnosticToString:()=>l0,directoryProbablyExists:()=>fx,directorySeparator:()=>Io,displayPart:()=>TY,displayPartsToString:()=>e5,disposeEmitNodes:()=>tw,disposeResourcesHelper:()=>gN,documentSpansEqual:()=>gY,dumpTracingLegend:()=>Ar,elementAt:()=>s,elideNodes:()=>GA,emitComments:()=>ab,emitDetachedComments:()=>sb,emitFiles:()=>kU,emitFilesAndReportErrors:()=>jH,emitFilesAndReportErrorsAndGetExitStatus:()=>MH,emitModuleKindIsNonNodeESM:()=>KS,emitNewLineBeforeLeadingCommentOfPosition:()=>ob,emitNewLineBeforeLeadingComments:()=>rb,emitNewLineBeforeLeadingCommentsOfPosition:()=>ib,emitSkippedWithNoDiagnostics:()=>oV,emitUsingBuildInfo:()=>NU,emptyArray:()=>r,emptyFileSystemEntries:()=>tp,emptyMap:()=>i,emptyOptions:()=>_G,emptySet:()=>o,endsWith:()=>$t,ensurePathIsNonModuleName:()=>ga,ensureScriptKind:()=>zk,ensureTrailingDirectorySeparator:()=>ma,entityNameToString:()=>Rf,enumerateInsertsAndDeletes:()=>mn,equalOwnProperties:()=>Ge,equateStringsCaseInsensitive:()=>Pt,equateStringsCaseSensitive:()=>Et,equateValues:()=>Ft,esDecorateHelper:()=>Vw,escapeJsxAttributeString:()=>pv,escapeLeadingUnderscores:()=>wc,escapeNonAsciiString:()=>uv,escapeSnippetText:()=>WT,escapeString:()=>_v,every:()=>N,expandPreOrPostfixIncrementOrDecrementExpression:()=>ZE,explainFiles:()=>PH,explainIfFileIsRedirectAndImpliedFormat:()=>EH,exportAssignmentIsAlias:()=>sy,exportStarHelper:()=>uN,expressionResultIsUnused:()=>MT,extend:()=>nt,extendsHelper:()=>Zw,extensionFromPath:()=>sT,extensionIsTS:()=>oT,extensionsNotSupportingExtensionlessResolution:()=>Yd,externalHelpersModuleNameText:()=>nd,factory:()=>AC,fileExtensionIs:()=>$o,fileExtensionIsOneOf:()=>Ko,fileIncludeReasonToDiagnostics:()=>OH,fileShouldUseJavaScriptRequire:()=>f0,filter:()=>M,filterMutate:()=>R,filterSemanticDiagnostics:()=>KV,find:()=>D,findAncestor:()=>kc,findBestPatternMatch:()=>on,findChildOfKind:()=>OX,findComputedPropertyNameCacheAssignment:()=>rI,findConfigFile:()=>sV,findContainingList:()=>LX,findDiagnosticForNode:()=>WZ,findFirstNonJsxWhitespaceToken:()=>XX,findIndex:()=>P,findLast:()=>F,findLastIndex:()=>E,findListItemInfo:()=>AX,findMap:()=>A,findModifier:()=>dY,findNextToken:()=>YX,findPackageJson:()=>RZ,findPackageJsons:()=>MZ,findPrecedingMatchingToken:()=>lQ,findPrecedingToken:()=>ZX,findSuperStatementIndexPath:()=>BJ,findTokenOnLeftOfPosition:()=>QX,findUseStrictPrologue:()=>iA,first:()=>Pe,firstDefined:()=>S,firstDefinedIterator:()=>k,firstIterator:()=>Ee,firstOrOnly:()=>XZ,firstOrUndefined:()=>De,firstOrUndefinedIterator:()=>Fe,fixupCompilerOptions:()=>n2,flatMap:()=>V,flatMapIterator:()=>H,flatMapToMutable:()=>W,flatten:()=>U,flattenCommaList:()=>oI,flattenDestructuringAssignment:()=>nz,flattenDestructuringBinding:()=>oz,flattenDiagnosticMessageText:()=>kV,forEach:()=>b,forEachAncestor:()=>up,forEachAncestorDirectory:()=>Fa,forEachChild:()=>KI,forEachChildRecursively:()=>GI,forEachEmittedFile:()=>aU,forEachEnclosingBlockScopeContainer:()=>Af,forEachEntry:()=>dp,forEachExternalModuleToImportFrom:()=>b0,forEachImportClauseDeclaration:()=>hh,forEachKey:()=>pp,forEachLeadingCommentRange:()=>Ts,forEachNameInAccessChainWalkingLeft:()=>dS,forEachPropertyAssignment:()=>jm,forEachResolvedProjectReference:()=>OV,forEachReturnStatement:()=>vm,forEachRight:()=>x,forEachTrailingCommentRange:()=>Cs,forEachTsConfigPropArray:()=>Jm,forEachUnique:()=>hY,forEachYieldExpression:()=>bm,forSomeAncestorDirectory:()=>eS,formatColorAndReset:()=>vV,formatDiagnostic:()=>hV,formatDiagnostics:()=>gV,formatDiagnosticsWithColorAndContext:()=>SV,formatGeneratedName:()=>ZA,formatGeneratedNamePart:()=>QA,formatLocation:()=>xV,formatMessage:()=>AS,formatStringFromArgs:()=>kS,formatting:()=>Mge,fullTripleSlashAMDReferencePathRegEx:()=>ud,fullTripleSlashReferencePathRegEx:()=>cd,generateDjb2Hash:()=>fo,generateTSConfig:()=>qL,generatorHelper:()=>aN,getAdjustedReferenceLocation:()=>VX,getAdjustedRenameLocation:()=>WX,getAliasDeclarationFromName:()=>oy,getAllAccessorDeclarations:()=>Qv,getAllDecoratorsOfClass:()=>HJ,getAllDecoratorsOfClassElement:()=>$J,getAllJSDocTags:()=>bl,getAllJSDocTagsOfKind:()=>xl,getAllKeys:()=>Ve,getAllProjectOutputs:()=>bU,getAllSuperTypeNodes:()=>py,getAllUnscopedEmitHelpers:()=>TN,getAllowJSCompilerOption:()=>fk,getAllowSyntheticDefaultImports:()=>ik,getAncestor:()=>gy,getAnyExtensionFromPath:()=>na,getAreDeclarationMapsEnabled:()=>nk,getAssignedExpandoInitializer:()=>Jg,getAssignedName:()=>Rc,getAssignedNameOfIdentifier:()=>hz,getAssignmentDeclarationKind:()=>Gg,getAssignmentDeclarationPropertyAccessKind:()=>oh,getAssignmentTargetKind:()=>zh,getAutomaticTypeDirectiveNames:()=>oM,getBaseFileName:()=>ea,getBinaryOperatorPrecedence:()=>rv,getBuildInfo:()=>wU,getBuildInfoFileVersionMap:()=>qW,getBuildInfoText:()=>CU,getBuildOrderFromAnyBuildOrder:()=>u$,getBuilderCreationParameters:()=>AW,getBuilderFileEmit:()=>cW,getCheckFlags:()=>Jx,getClassExtendsHeritageElement:()=>uy,getClassLikeDeclarationOfSymbol:()=>Yx,getCombinedLocalAndExportSymbolFlags:()=>Ux,getCombinedModifierFlags:()=>hc,getCombinedNodeFlags:()=>vc,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>yc,getCommentRange:()=>pw,getCommonSourceDirectory:()=>yU,getCommonSourceDirectoryOfConfig:()=>vU,getCompilerOptionValue:()=>bk,getCompilerOptionsDiffValue:()=>JL,getConditions:()=>rM,getConfigFileParsingDiagnostics:()=>UV,getConstantValue:()=>Sw,getContainerFlags:()=>IR,getContainerNode:()=>gX,getContainingClass:()=>Um,getContainingClassExcludingClassDecorators:()=>Hm,getContainingClassStaticBlock:()=>Vm,getContainingFunction:()=>zm,getContainingFunctionDeclaration:()=>qm,getContainingFunctionOrClassStaticBlock:()=>Wm,getContainingNodeArray:()=>BT,getContainingObjectLiteralElement:()=>c5,getContextualTypeFromParent:()=>yZ,getContextualTypeFromParentOrAncestorTypeNode:()=>BX,getCurrentTime:()=>l$,getDeclarationDiagnostics:()=>Oq,getDeclarationEmitExtensionForPath:()=>Fv,getDeclarationEmitOutputFilePath:()=>Nv,getDeclarationEmitOutputFilePathWorker:()=>Dv,getDeclarationFromName:()=>ty,getDeclarationModifierFlagsFromSymbol:()=>zx,getDeclarationOfKind:()=>rp,getDeclarationsOfKind:()=>ip,getDeclaredExpandoInitializer:()=>Bg,getDecorators:()=>Bc,getDefaultCompilerOptions:()=>t5,getDefaultExportInfoWorker:()=>C0,getDefaultFormatCodeSettings:()=>EG,getDefaultLibFileName:()=>Hs,getDefaultLibFilePath:()=>_5,getDefaultLikeExportInfo:()=>k0,getDiagnosticText:()=>hL,getDiagnosticsWithinSpan:()=>HZ,getDirectoryPath:()=>Zo,getDirectoryToWatchFailedLookupLocation:()=>nH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>oH,getDocumentPositionMapper:()=>j1,getESModuleInterop:()=>rk,getEditsForFileRename:()=>X0,getEffectiveBaseTypeNode:()=>_y,getEffectiveConstraintOfTypeParameter:()=>Tl,getEffectiveContainerForJSDocTemplateTag:()=>Ih,getEffectiveImplementsTypeNodes:()=>dy,getEffectiveInitializer:()=>Rg,getEffectiveJSDocHost:()=>Lh,getEffectiveModifierFlags:()=>wb,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Nb,getEffectiveModifierFlagsNoCache:()=>Eb,getEffectiveReturnTypeNode:()=>eb,getEffectiveSetAccessorTypeAnnotationNode:()=>nb,getEffectiveTypeAnnotationNode:()=>Yv,getEffectiveTypeParameterDeclarations:()=>kl,getEffectiveTypeRoots:()=>Yj,getElementOrPropertyAccessArgumentExpressionOrName:()=>rh,getElementOrPropertyAccessName:()=>ih,getElementsOfBindingOrAssignmentPattern:()=>DA,getEmitDeclarations:()=>_k,getEmitFlags:()=>tf,getEmitHelpers:()=>Nw,getEmitModuleDetectionKind:()=>XS,getEmitModuleKind:()=>$S,getEmitModuleResolutionKind:()=>GS,getEmitScriptTarget:()=>HS,getEmitStandardClassFields:()=>gk,getEnclosingBlockScopeContainer:()=>Ef,getEnclosingContainer:()=>Pf,getEncodedSemanticClassifications:()=>L0,getEncodedSyntacticClassifications:()=>J0,getEndLinePosition:()=>Ep,getEntityNameFromTypeNode:()=>ig,getEntrypointsFromPackageJsonInfo:()=>qM,getErrorCountForSummary:()=>kH,getErrorSpanForNode:()=>Qf,getErrorSummaryText:()=>NH,getEscapedTextOfIdentifierOrLiteral:()=>jy,getEscapedTextOfJsxAttributeName:()=>cC,getEscapedTextOfJsxNamespacedName:()=>uC,getExpandoInitializer:()=>zg,getExportAssignmentExpression:()=>cy,getExportInfoMap:()=>S0,getExportNeedsImportStarHelper:()=>NJ,getExpressionAssociativity:()=>Yy,getExpressionPrecedence:()=>ev,getExternalHelpersModuleName:()=>mA,getExternalModuleImportEqualsDeclarationExpression:()=>vg,getExternalModuleName:()=>fh,getExternalModuleNameFromDeclaration:()=>Tv,getExternalModuleNameFromPath:()=>Cv,getExternalModuleNameLiteral:()=>bA,getExternalModuleRequireArgument:()=>bg,getFallbackOptions:()=>WU,getFileEmitOutput:()=>iW,getFileMatcherPatterns:()=>jk,getFileNamesFromConfigSpecs:()=>gj,getFileWatcherEventKind:()=>To,getFilesInErrorForSummary:()=>TH,getFirstConstructorWithBody:()=>qv,getFirstIdentifier:()=>Gb,getFirstNonSpaceCharacterPosition:()=>QY,getFirstProjectOutput:()=>SU,getFixableErrorSpanExpression:()=>KZ,getFormatCodeSettingsForWriting:()=>_0,getFullWidth:()=>gp,getFunctionFlags:()=>Ny,getHeritageClause:()=>my,getHostSignatureFromJSDoc:()=>Oh,getIdentifierAutoGenerate:()=>Mw,getIdentifierGeneratedImportReference:()=>Bw,getIdentifierTypeArguments:()=>Lw,getImmediatelyInvokedFunctionExpression:()=>Ym,getImpliedNodeFormatForFile:()=>VV,getImpliedNodeFormatForFileWorker:()=>WV,getImportNeedsImportDefaultHelper:()=>FJ,getImportNeedsImportStarHelper:()=>DJ,getIndentSize:()=>hv,getIndentString:()=>gv,getInferredLibraryNameResolveFrom:()=>jV,getInitializedVariables:()=>jx,getInitializerOfBinaryExpression:()=>ah,getInitializerOfBindingOrAssignmentElement:()=>SA,getInterfaceBaseTypeNodes:()=>fy,getInternalEmitFlags:()=>nf,getInvokedExpression:()=>og,getIsolatedModules:()=>YS,getJSDocAugmentsTag:()=>Kc,getJSDocClassTag:()=>Xc,getJSDocCommentRanges:()=>gm,getJSDocCommentsAndTags:()=>Dh,getJSDocDeprecatedTag:()=>al,getJSDocDeprecatedTagNoCache:()=>sl,getJSDocEnumTag:()=>cl,getJSDocHost:()=>jh,getJSDocImplementsTags:()=>Gc,getJSDocOverrideTagNoCache:()=>ol,getJSDocParameterTags:()=>qc,getJSDocParameterTagsNoCache:()=>Uc,getJSDocPrivateTag:()=>Zc,getJSDocPrivateTagNoCache:()=>el,getJSDocProtectedTag:()=>tl,getJSDocProtectedTagNoCache:()=>nl,getJSDocPublicTag:()=>Qc,getJSDocPublicTagNoCache:()=>Yc,getJSDocReadonlyTag:()=>rl,getJSDocReadonlyTagNoCache:()=>il,getJSDocReturnTag:()=>_l,getJSDocReturnType:()=>ml,getJSDocRoot:()=>Mh,getJSDocSatisfiesExpressionType:()=>aC,getJSDocSatisfiesTag:()=>dl,getJSDocTags:()=>hl,getJSDocTagsNoCache:()=>yl,getJSDocTemplateTag:()=>ul,getJSDocThisTag:()=>ll,getJSDocType:()=>fl,getJSDocTypeAliasName:()=>FA,getJSDocTypeAssertionType:()=>lA,getJSDocTypeParameterDeclarations:()=>tb,getJSDocTypeParameterTags:()=>Wc,getJSDocTypeParameterTagsNoCache:()=>Hc,getJSDocTypeTag:()=>pl,getJSXImplicitImportBase:()=>Sk,getJSXRuntimeImport:()=>kk,getJSXTransformEnabled:()=>xk,getKeyForCompilerOptions:()=>sM,getLanguageVariant:()=>zS,getLastChild:()=>rS,getLeadingCommentRanges:()=>Fs,getLeadingCommentRangesOfNode:()=>mm,getLeftmostAccessExpression:()=>uS,getLeftmostExpression:()=>pS,getLibraryNameFromLibFileName:()=>MV,getLineAndCharacterOfPosition:()=>_s,getLineInfo:()=>aJ,getLineOfLocalPosition:()=>Jv,getLineOfLocalPositionFromLineMap:()=>zv,getLineStartPositionForPosition:()=>vX,getLineStarts:()=>as,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Ox,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Ix,getLinesBetweenPositions:()=>ls,getLinesBetweenRangeEndAndRangeStart:()=>Dx,getLinesBetweenRangeEndPositions:()=>Fx,getLiteralText:()=>rf,getLocalNameForExternalImport:()=>vA,getLocalSymbolForExportDefault:()=>sx,getLocaleSpecificMessage:()=>wS,getLocaleTimeString:()=>bH,getMappedContextSpan:()=>xY,getMappedDocumentSpan:()=>bY,getMappedLocation:()=>vY,getMatchedFileSpec:()=>AH,getMatchedIncludeSpec:()=>IH,getMeaningFromDeclaration:()=>qG,getMeaningFromLocation:()=>UG,getMembersOfDeclaration:()=>Sm,getModeForFileReference:()=>TV,getModeForResolutionAtIndex:()=>CV,getModeForUsageLocation:()=>NV,getModifiedTime:()=>go,getModifiers:()=>Jc,getModuleInstanceState:()=>CR,getModuleNameStringLiteralAt:()=>eW,getModuleSpecifierEndingPreference:()=>Kk,getModuleSpecifierResolverHost:()=>QQ,getNameForExportedSymbol:()=>YZ,getNameFromIndexInfo:()=>Of,getNameFromPropertyName:()=>HQ,getNameOfAccessExpression:()=>cS,getNameOfCompilerOptionValue:()=>ML,getNameOfDeclaration:()=>Mc,getNameOfExpando:()=>Ug,getNameOfJSDocTypedef:()=>Oc,getNameOrArgument:()=>nh,getNameTable:()=>s5,getNamesForExportedSymbol:()=>QZ,getNamespaceDeclarationNode:()=>mh,getNewLineCharacter:()=>mx,getNewLineKind:()=>c0,getNewLineOrDefaultFromHost:()=>BY,getNewTargetContainer:()=>Xm,getNextJSDocCommentLocation:()=>Eh,getNodeForGeneratedName:()=>XA,getNodeId:()=>PB,getNodeKind:()=>hX,getNodeModifiers:()=>hQ,getNodeModulePathParts:()=>GT,getNonAssignedNameOfDeclaration:()=>jc,getNonAssignmentOperatorForCompoundAssignment:()=>jJ,getNonAugmentationDeclaration:()=>yf,getNonDecoratorTokenPosOfNode:()=>Kp,getNormalizedAbsolutePath:()=>_a,getNormalizedAbsolutePathWithoutRoot:()=>da,getNormalizedPathComponents:()=>la,getObjectFlags:()=>Zx,getOperator:()=>tv,getOperatorAssociativity:()=>Zy,getOperatorPrecedence:()=>nv,getOptionFromName:()=>pL,getOptionsForLibraryResolution:()=>yM,getOptionsNameMap:()=>rL,getOrCreateEmitNode:()=>ew,getOrCreateExternalHelpersModuleNameIfNeeded:()=>yA,getOrUpdate:()=>Y,getOriginalNode:()=>Sc,getOriginalNodeId:()=>TJ,getOriginalSourceFile:()=>Qy,getOutputDeclarationFileName:()=>pU,getOutputExtension:()=>uU,getOutputFileNames:()=>xU,getOutputPathsFor:()=>lU,getOutputPathsForBundle:()=>cU,getOwnEmitOutputFilePath:()=>wv,getOwnKeys:()=>Ue,getOwnValues:()=>We,getPackageJsonInfo:()=>$M,getPackageJsonTypesVersionsPaths:()=>Qj,getPackageJsonsVisibleToFile:()=>BZ,getPackageNameFromTypesPackageName:()=>uR,getPackageScopeForPath:()=>WM,getParameterSymbolFromJSDoc:()=>Ah,getParameterTypeNode:()=>XT,getParentNodeInSpan:()=>_Y,getParseTreeNode:()=>Cc,getParsedCommandLineOfConfigFile:()=>yL,getPathComponents:()=>ra,getPathComponentsRelativeTo:()=>Ta,getPathFromPathComponents:()=>ia,getPathUpdater:()=>Q0,getPathsBasePath:()=>Av,getPatternFromSpec:()=>Ik,getPendingEmitKind:()=>lW,getPositionOfLineAndCharacter:()=>is,getPossibleGenericSignatures:()=>dQ,getPossibleOriginalInputExtensionForExtension:()=>Pv,getPossibleTypeArgumentsInfo:()=>pQ,getPreEmitDiagnostics:()=>mV,getPrecedingNonSpaceCharacterPosition:()=>YY,getPrivateIdentifier:()=>QJ,getProperties:()=>JJ,getProperty:()=>qe,getPropertyArrayElementValue:()=>Mm,getPropertyAssignmentAliasLikeExpression:()=>ly,getPropertyNameForPropertyNameNode:()=>Iy,getPropertyNameForUniqueESSymbol:()=>My,getPropertyNameFromType:()=>mC,getPropertyNameOfBindingOrAssignmentElement:()=>CA,getPropertySymbolFromBindingElement:()=>lY,getPropertySymbolsFromContextualType:()=>l5,getQuoteFromPreference:()=>iY,getQuotePreference:()=>rY,getRangesWhere:()=>ie,getRefactorContextSpan:()=>$Z,getReferencedFileLocation:()=>zV,getRegexFromPattern:()=>Mk,getRegularExpressionForWildcard:()=>Pk,getRegularExpressionsForWildcards:()=>Ek,getRelativePathFromDirectory:()=>Ca,getRelativePathFromFile:()=>Na,getRelativePathToDirectoryOrUrl:()=>Da,getRenameLocation:()=>uZ,getReplacementSpanForContextToken:()=>PQ,getResolutionDiagnostic:()=>YV,getResolutionModeOverride:()=>DV,getResolveJsonModule:()=>lk,getResolvePackageJsonExports:()=>sk,getResolvePackageJsonImports:()=>ck,getResolvedExternalModuleName:()=>Sv,getRestIndicatorOfBindingOrAssignmentElement:()=>TA,getRestParameterElementType:()=>xm,getRightMostAssignedExpression:()=>Wg,getRootDeclaration:()=>Ky,getRootDirectoryOfResolutionCache:()=>aH,getRootLength:()=>Yo,getRootPathSplitLength:()=>sH,getScriptKind:()=>$Y,getScriptKindFromFileName:()=>qk,getScriptTargetFeatures:()=>ad,getSelectedEffectiveModifierFlags:()=>kb,getSelectedSyntacticModifierFlags:()=>Tb,getSemanticClassifications:()=>I0,getSemanticJsxChildren:()=>iv,getSetAccessorTypeAnnotationNode:()=>Vv,getSetAccessorValueParameter:()=>Uv,getSetExternalModuleIndicator:()=>WS,getShebang:()=>Es,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>kh,getSingleVariableOfVariableStatement:()=>Th,getSnapshotText:()=>UQ,getSnippetElement:()=>Fw,getSourceFileOfModule:()=>wp,getSourceFileOfNode:()=>Cp,getSourceFilePathInNewDir:()=>Lv,getSourceFilePathInNewDirWorker:()=>jv,getSourceFileVersionAsHashFromText:()=>zH,getSourceFilesToEmit:()=>Iv,getSourceMapRange:()=>sw,getSourceMapper:()=>L1,getSourceTextOfNodeFromSourceFile:()=>Gp,getSpanOfTokenAtPosition:()=>Gf,getSpellingSuggestion:()=>Wt,getStartPositionOfLine:()=>Fp,getStartPositionOfRange:()=>Ax,getStartsOnNewLine:()=>uw,getStaticPropertiesAndClassStaticBlock:()=>qJ,getStrictOptionValue:()=>pk,getStringComparer:()=>Bt,getSuperCallFromStatement:()=>MJ,getSuperContainer:()=>Qm,getSupportedCodeFixes:()=>n5,getSupportedExtensions:()=>Uk,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Vk,getSwitchedType:()=>kZ,getSymbolId:()=>EB,getSymbolNameForPrivateIdentifier:()=>Ry,getSymbolTarget:()=>KY,getSyntacticClassifications:()=>B0,getSyntacticModifierFlags:()=>Db,getSyntacticModifierFlagsNoCache:()=>Ab,getSynthesizedDeepClone:()=>ZY,getSynthesizedDeepCloneWithReplacements:()=>eZ,getSynthesizedDeepClones:()=>nZ,getSynthesizedDeepClonesWithReplacements:()=>rZ,getSyntheticLeadingComments:()=>mw,getSyntheticTrailingComments:()=>yw,getTargetLabel:()=>rX,getTargetOfBindingOrAssignmentElement:()=>kA,getTemporaryModuleResolutionState:()=>VM,getTextOfConstantValue:()=>of,getTextOfIdentifierOrLiteral:()=>Ly,getTextOfJSDocComment:()=>Sl,getTextOfJsxAttributeName:()=>lC,getTextOfJsxNamespacedName:()=>dC,getTextOfNode:()=>Yp,getTextOfNodeFromSourceText:()=>Qp,getTextOfPropertyName:()=>Mf,getThisContainer:()=>$m,getThisParameter:()=>Wv,getTokenAtPosition:()=>KX,getTokenPosOfNode:()=>$p,getTokenSourceMapRange:()=>lw,getTouchingPropertyName:()=>HX,getTouchingToken:()=>$X,getTrailingCommentRanges:()=>Ps,getTrailingSemicolonDeferringWriter:()=>vv,getTransformFlagsSubtreeExclusions:()=>WC,getTransformers:()=>Uq,getTsBuildInfoEmitOutputFilePath:()=>sU,getTsConfigObjectLiteralExpression:()=>Rm,getTsConfigPropArrayElementValue:()=>Bm,getTypeAnnotationNode:()=>Zv,getTypeArgumentOrTypeParameterList:()=>yQ,getTypeKeywordOfTypeOnlyImport:()=>fY,getTypeNode:()=>Iw,getTypeNodeIfAccessible:()=>TZ,getTypeParameterFromJsDoc:()=>Rh,getTypeParameterOwner:()=>uc,getTypesPackageName:()=>lR,getUILocale:()=>Jt,getUniqueName:()=>_Z,getUniqueSymbolId:()=>XY,getUseDefineForClassFields:()=>mk,getWatchErrorSummaryDiagnosticMessage:()=>CH,getWatchFactory:()=>VU,group:()=>Ze,groupBy:()=>et,guessIndentation:()=>Xu,handleNoEmitOptions:()=>$V,hasAbstractModifier:()=>yb,hasAccessorModifier:()=>bb,hasAmbientModifier:()=>vb,hasChangesInResolutions:()=>kp,hasChildOfKind:()=>IX,hasContextSensitiveParameters:()=>JT,hasDecorators:()=>Sb,hasDocComment:()=>mQ,hasDynamicName:()=>Ey,hasEffectiveModifier:()=>pb,hasEffectiveModifiers:()=>ub,hasEffectiveReadonlyModifier:()=>xb,hasExtension:()=>Ho,hasIndexSignature:()=>SZ,hasInitializer:()=>Hu,hasInvalidEscape:()=>sv,hasJSDocNodes:()=>Vu,hasJSDocParameterTags:()=>$c,hasJSFileExtension:()=>Wk,hasJsonModuleEmitEnabled:()=>QS,hasOnlyExpressionInitializer:()=>$u,hasOverrideModifier:()=>hb,hasPossibleExternalModuleReference:()=>Df,hasProperty:()=>ze,hasPropertyAccessExpressionWithName:()=>iX,hasQuestionToken:()=>yh,hasRecordedExternalHelpers:()=>gA,hasResolutionModeOverride:()=>hC,hasRestParameter:()=>Zu,hasScopeMarker:()=>uu,hasStaticModifier:()=>gb,hasSyntacticModifier:()=>fb,hasSyntacticModifiers:()=>db,hasTSFileExtension:()=>Hk,hasTabstop:()=>tC,hasTrailingDirectorySeparator:()=>Go,hasType:()=>Wu,hasTypeArguments:()=>Bh,hasZeroOrOneAsteriskCharacter:()=>Tk,helperString:()=>kN,hostGetCanonicalFileName:()=>xv,hostUsesCaseSensitiveFileNames:()=>bv,idText:()=>Dc,identifierIsThisKeyword:()=>Xv,identifierToKeywordKind:()=>Fc,identity:()=>bt,identitySourceMapConsumer:()=>rJ,ignoreSourceNewlines:()=>Ew,ignoredPaths:()=>co,importDefaultHelper:()=>_N,importFromModuleSpecifier:()=>dh,importNameElisionDisabled:()=>ZS,importStarHelper:()=>lN,indexOfAnyCharCode:()=>L,indexOfNode:()=>ef,indicesOf:()=>se,inferredTypesContainingFile:()=>rV,injectClassNamedEvaluationHelperBlockIfMissing:()=>kz,injectClassThisAssignmentIfMissing:()=>mz,insertImports:()=>pY,insertLeadingStatement:()=>GE,insertSorted:()=>_e,insertStatementAfterCustomPrologue:()=>Up,insertStatementAfterStandardPrologue:()=>qp,insertStatementsAfterCustomPrologue:()=>zp,insertStatementsAfterStandardPrologue:()=>Jp,intersperse:()=>w,intrinsicTagNameToString:()=>pC,introducesArgumentsExoticObject:()=>Fm,inverseJsxOptionMap:()=>fO,isAbstractConstructorSymbol:()=>Qx,isAbstractModifier:()=>tD,isAccessExpression:()=>sS,isAccessibilityModifier:()=>TQ,isAccessor:()=>N_,isAccessorModifier:()=>rD,isAliasSymbolDeclaration:()=>iy,isAliasableExpression:()=>ay,isAmbientModule:()=>lf,isAmbientPropertyDeclaration:()=>xf,isAnonymousFunctionDefinition:()=>Uy,isAnyDirectorySeparator:()=>Bo,isAnyImportOrBareOrAccessedRequire:()=>wf,isAnyImportOrReExport:()=>Ff,isAnyImportSyntax:()=>Cf,isAnySupportedFileExtension:()=>cT,isApplicableVersionedTypesKey:()=>nR,isArgumentExpressionOfElementAccess:()=>uX,isArray:()=>_t,isArrayBindingElement:()=>J_,isArrayBindingOrAssignmentElement:()=>$_,isArrayBindingOrAssignmentPattern:()=>H_,isArrayBindingPattern:()=>KD,isArrayLiteralExpression:()=>XD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>wQ,isArrayTypeNode:()=>FD,isArrowFunction:()=>aF,isAsExpression:()=>xF,isAssertClause:()=>_P,isAssertEntry:()=>uP,isAssertionExpression:()=>su,isAssertsKeyword:()=>QN,isAssignmentDeclaration:()=>Mg,isAssignmentExpression:()=>Vb,isAssignmentOperator:()=>zb,isAssignmentPattern:()=>B_,isAssignmentTarget:()=>qh,isAsteriskToken:()=>JN,isAsyncFunction:()=>Dy,isAsyncModifier:()=>XN,isAutoAccessorPropertyDeclaration:()=>D_,isAwaitExpression:()=>_F,isAwaitKeyword:()=>YN,isBigIntLiteral:()=>DN,isBinaryExpression:()=>pF,isBinaryOperatorToken:()=>VA,isBindableObjectDefinePropertyCall:()=>Xg,isBindableStaticAccessExpression:()=>Zg,isBindableStaticElementAccessExpression:()=>eh,isBindableStaticNameExpression:()=>th,isBindingElement:()=>GD,isBindingElementOfBareOrAccessedRequire:()=>Ag,isBindingName:()=>h_,isBindingOrAssignmentElement:()=>q_,isBindingOrAssignmentPattern:()=>U_,isBindingPattern:()=>R_,isBlock:()=>PF,isBlockOrCatchScoped:()=>sf,isBlockScope:()=>Sf,isBlockScopedContainerTopLevel:()=>ff,isBooleanLiteral:()=>x_,isBreakOrContinueStatement:()=>Rl,isBreakStatement:()=>zF,isBuildInfoFile:()=>oU,isBuilderProgram:()=>DH,isBundle:()=>KP,isBundleFileTextLike:()=>lS,isCallChain:()=>Fl,isCallExpression:()=>eF,isCallExpressionTarget:()=>WG,isCallLikeExpression:()=>Q_,isCallLikeOrFunctionLikeExpression:()=>X_,isCallOrNewExpression:()=>Y_,isCallOrNewExpressionTarget:()=>$G,isCallSignatureDeclaration:()=>bD,isCallToHelper:()=>CN,isCaseBlock:()=>iP,isCaseClause:()=>RP,isCaseKeyword:()=>aD,isCaseOrDefaultClause:()=>Ru,isCatchClause:()=>zP,isCatchClauseVariableDeclaration:()=>qT,isCatchClauseVariableDeclarationOrBindingElement:()=>cf,isCheckJsEnabledForFile:()=>_T,isChildOfNodeWithKind:()=>ym,isCircularBuildOrder:()=>_$,isClassDeclaration:()=>YF,isClassElement:()=>C_,isClassExpression:()=>yF,isClassInstanceProperty:()=>F_,isClassLike:()=>w_,isClassMemberModifier:()=>p_,isClassNamedEvaluationHelperBlock:()=>bz,isClassOrTypeElement:()=>O_,isClassStaticBlockDeclaration:()=>gD,isClassThisAssignmentBlock:()=>pz,isCollapsedRange:()=>xx,isColonToken:()=>UN,isCommaExpression:()=>aA,isCommaListExpression:()=>NF,isCommaSequence:()=>sA,isCommaToken:()=>MN,isComment:()=>vQ,isCommonJsExportPropertyAssignment:()=>Nm,isCommonJsExportedExpression:()=>wm,isCompoundAssignment:()=>LJ,isComputedNonLiteralName:()=>Lf,isComputedPropertyName:()=>cD,isConciseBody:()=>mu,isConditionalExpression:()=>fF,isConditionalTypeNode:()=>jD,isConstTypeReference:()=>Ll,isConstructSignatureDeclaration:()=>xD,isConstructorDeclaration:()=>hD,isConstructorTypeNode:()=>wD,isContextualKeyword:()=>by,isContinueStatement:()=>JF,isCustomPrologue:()=>um,isDebuggerStatement:()=>KF,isDeclaration:()=>Nu,isDeclarationBindingElement:()=>z_,isDeclarationFileName:()=>oO,isDeclarationName:()=>ey,isDeclarationNameOfEnumOrNamespace:()=>Lx,isDeclarationReadonly:()=>tm,isDeclarationStatement:()=>Du,isDeclarationWithTypeParameterChildren:()=>Tf,isDeclarationWithTypeParameters:()=>kf,isDecorator:()=>uD,isDecoratorTarget:()=>GG,isDefaultClause:()=>BP,isDefaultImport:()=>gh,isDefaultModifier:()=>GN,isDefaultedExpandoInitializer:()=>qg,isDeleteExpression:()=>sF,isDeleteTarget:()=>Yh,isDeprecatedDeclaration:()=>a0,isDestructuringAssignment:()=>Hb,isDiagnosticWithLocation:()=>VZ,isDiskPathRoot:()=>qo,isDoStatement:()=>LF,isDocumentRegistryEntry:()=>V0,isDotDotDotToken:()=>jN,isDottedName:()=>Xb,isDynamicName:()=>Ay,isESSymbolIdentifier:()=>zy,isEffectiveExternalModule:()=>vf,isEffectiveModuleDeclaration:()=>df,isEffectiveStrictModeSourceFile:()=>bf,isElementAccessChain:()=>Dl,isElementAccessExpression:()=>ZD,isEmittedFileOfProgram:()=>UU,isEmptyArrayLiteral:()=>ax,isEmptyBindingElement:()=>fc,isEmptyBindingPattern:()=>pc,isEmptyObjectLiteral:()=>ox,isEmptyStatement:()=>AF,isEmptyStringLiteral:()=>dg,isEntityName:()=>m_,isEntityNameExpression:()=>Kb,isEnumConst:()=>em,isEnumDeclaration:()=>tP,isEnumMember:()=>WP,isEqualityOperatorKind:()=>bZ,isEqualsGreaterThanToken:()=>WN,isExclamationToken:()=>zN,isExcludedFile:()=>hj,isExclusivelyTypeOnlyImportOrExport:()=>wV,isExpandoPropertyDeclaration:()=>gC,isExportAssignment:()=>yP,isExportDeclaration:()=>vP,isExportModifier:()=>KN,isExportName:()=>nA,isExportNamespaceAsDefaultDeclaration:()=>Xp,isExportOrDefaultModifier:()=>$A,isExportSpecifier:()=>xP,isExportsIdentifier:()=>Hg,isExportsOrModuleExportsOrAlias:()=>AR,isExpression:()=>au,isExpressionNode:()=>fg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>mX,isExpressionOfOptionalChainRoot:()=>Al,isExpressionStatement:()=>IF,isExpressionWithTypeArguments:()=>bF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>$b,isExternalModule:()=>tO,isExternalModuleAugmentation:()=>gf,isExternalModuleImportEqualsDeclaration:()=>yg,isExternalModuleIndicator:()=>pu,isExternalModuleNameRelative:()=>Vs,isExternalModuleReference:()=>CP,isExternalModuleSymbol:()=>zQ,isExternalOrCommonJsModule:()=>Yf,isFileLevelReservedGeneratedIdentifier:()=>c_,isFileLevelUniqueName:()=>Ap,isFileProbablyExternalModule:()=>DI,isFirstDeclarationOfSymbolParameter:()=>SY,isFixablePromiseHandler:()=>W1,isForInOrOfStatement:()=>fu,isForInStatement:()=>RF,isForInitializer:()=>hu,isForOfStatement:()=>BF,isForStatement:()=>MF,isFunctionBlock:()=>Em,isFunctionBody:()=>gu,isFunctionDeclaration:()=>QF,isFunctionExpression:()=>oF,isFunctionExpressionOrArrowFunction:()=>VT,isFunctionLike:()=>y_,isFunctionLikeDeclaration:()=>b_,isFunctionLikeKind:()=>k_,isFunctionLikeOrClassStaticBlockDeclaration:()=>v_,isFunctionOrConstructorTypeNode:()=>M_,isFunctionOrModuleBlock:()=>T_,isFunctionSymbol:()=>_h,isFunctionTypeNode:()=>CD,isFutureReservedKeyword:()=>Sy,isGeneratedIdentifier:()=>a_,isGeneratedPrivateIdentifier:()=>s_,isGetAccessor:()=>Uu,isGetAccessorDeclaration:()=>yD,isGetOrSetAccessorDeclaration:()=>wl,isGlobalDeclaration:()=>i0,isGlobalScopeAugmentation:()=>mf,isGrammarError:()=>Lp,isHeritageClause:()=>JP,isHoistedFunction:()=>dm,isHoistedVariableStatement:()=>fm,isIdentifier:()=>HN,isIdentifierANonContextualKeyword:()=>Cy,isIdentifierName:()=>ry,isIdentifierOrThisTypeNode:()=>LA,isIdentifierPart:()=>Is,isIdentifierStart:()=>As,isIdentifierText:()=>Os,isIdentifierTypePredicate:()=>Om,isIdentifierTypeReference:()=>CT,isIfStatement:()=>OF,isIgnoredFileFromWildCardWatching:()=>qU,isImplicitGlob:()=>Ak,isImportAttribute:()=>pP,isImportAttributeName:()=>o_,isImportAttributes:()=>dP,isImportCall:()=>sm,isImportClause:()=>cP,isImportDeclaration:()=>sP,isImportEqualsDeclaration:()=>aP,isImportKeyword:()=>oD,isImportMeta:()=>cm,isImportOrExportSpecifier:()=>e_,isImportOrExportSpecifierName:()=>HY,isImportSpecifier:()=>hP,isImportTypeAssertionContainer:()=>lP,isImportTypeNode:()=>VD,isImportableFile:()=>v0,isInComment:()=>fQ,isInCompoundLikeAssignment:()=>Uh,isInExpressionContext:()=>mg,isInJSDoc:()=>Ng,isInJSFile:()=>Tg,isInJSXText:()=>sQ,isInJsonFile:()=>Cg,isInNonReferenceComment:()=>DQ,isInReferenceComment:()=>NQ,isInRightSideOfInternalImportEqualsDeclaration:()=>VG,isInString:()=>rQ,isInTemplateString:()=>aQ,isInTopLevelContext:()=>Gm,isInTypeQuery:()=>Kv,isIncrementalCompilation:()=>dk,isIndexSignatureDeclaration:()=>SD,isIndexedAccessTypeNode:()=>zD,isInferTypeNode:()=>MD,isInfinityOrNaNString:()=>zT,isInitializedProperty:()=>UJ,isInitializedVariable:()=>Mx,isInsideJsxElement:()=>cQ,isInsideJsxElementOrAttribute:()=>iQ,isInsideNodeModules:()=>UZ,isInsideTemplateLiteral:()=>kQ,isInstanceOfExpression:()=>rx,isInstantiatedModule:()=>AB,isInterfaceDeclaration:()=>ZF,isInternalDeclaration:()=>jq,isInternalModuleImportEqualsDeclaration:()=>xg,isInternalName:()=>eA,isIntersectionTypeNode:()=>LD,isIntrinsicJsxName:()=>mv,isIterationStatement:()=>lu,isJSDoc:()=>_E,isJSDocAllType:()=>nE,isJSDocAugmentsTag:()=>pE,isJSDocAuthorTag:()=>fE,isJSDocCallbackTag:()=>gE,isJSDocClassTag:()=>mE,isJSDocCommentContainingNode:()=>Ju,isJSDocConstructSignature:()=>vh,isJSDocDeprecatedTag:()=>kE,isJSDocEnumTag:()=>CE,isJSDocFunctionType:()=>sE,isJSDocImplementsTag:()=>OE,isJSDocIndexSignature:()=>Dg,isJSDocLikeText:()=>NI,isJSDocLink:()=>ZP,isJSDocLinkCode:()=>eE,isJSDocLinkLike:()=>Yu,isJSDocLinkPlain:()=>tE,isJSDocMemberName:()=>YP,isJSDocNameReference:()=>QP,isJSDocNamepathType:()=>lE,isJSDocNamespaceBody:()=>bu,isJSDocNode:()=>Bu,isJSDocNonNullableType:()=>oE,isJSDocNullableType:()=>iE,isJSDocOptionalParameter:()=>nC,isJSDocOptionalType:()=>aE,isJSDocOverloadTag:()=>SE,isJSDocOverrideTag:()=>xE,isJSDocParameterTag:()=>wE,isJSDocPrivateTag:()=>yE,isJSDocPropertyLikeTag:()=>ql,isJSDocPropertyTag:()=>IE,isJSDocProtectedTag:()=>vE,isJSDocPublicTag:()=>hE,isJSDocReadonlyTag:()=>bE,isJSDocReturnTag:()=>NE,isJSDocSatisfiesExpression:()=>oC,isJSDocSatisfiesTag:()=>LE,isJSDocSeeTag:()=>TE,isJSDocSignature:()=>dE,isJSDocTag:()=>zu,isJSDocTemplateTag:()=>PE,isJSDocThisTag:()=>DE,isJSDocThrowsTag:()=>jE,isJSDocTypeAlias:()=>bh,isJSDocTypeAssertion:()=>cA,isJSDocTypeExpression:()=>XP,isJSDocTypeLiteral:()=>uE,isJSDocTypeTag:()=>FE,isJSDocTypedefTag:()=>EE,isJSDocUnknownTag:()=>AE,isJSDocUnknownType:()=>rE,isJSDocVariadicType:()=>cE,isJSXTagName:()=>pg,isJsonEqual:()=>yT,isJsonSourceFile:()=>Zf,isJsxAttribute:()=>IP,isJsxAttributeLike:()=>Lu,isJsxAttributeName:()=>_C,isJsxAttributes:()=>OP,isJsxChild:()=>Ou,isJsxClosingElement:()=>FP,isJsxClosingFragment:()=>AP,isJsxElement:()=>wP,isJsxExpression:()=>jP,isJsxFragment:()=>PP,isJsxNamespacedName:()=>MP,isJsxOpeningElement:()=>DP,isJsxOpeningFragment:()=>EP,isJsxOpeningLikeElement:()=>Mu,isJsxOpeningLikeElementTagName:()=>XG,isJsxSelfClosingElement:()=>NP,isJsxSpreadAttribute:()=>LP,isJsxTagNameExpression:()=>Iu,isJsxText:()=>PN,isJumpStatementTarget:()=>oX,isKeyword:()=>hy,isKeywordOrPunctuation:()=>vy,isKnownSymbol:()=>By,isLabelName:()=>sX,isLabelOfLabeledStatement:()=>aX,isLabeledStatement:()=>WF,isLateVisibilityPaintedStatement:()=>Nf,isLeftHandSideExpression:()=>eu,isLeftHandSideOfAssignment:()=>Wb,isLet:()=>om,isLineBreak:()=>ps,isLiteralComputedPropertyDeclarationName:()=>ny,isLiteralExpression:()=>Gl,isLiteralExpressionOfObject:()=>Xl,isLiteralImportTypeNode:()=>lm,isLiteralKind:()=>Kl,isLiteralLikeAccess:()=>Qg,isLiteralLikeElementAccess:()=>Yg,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>fX,isLiteralTypeLikeExpression:()=>BA,isLiteralTypeLiteral:()=>ou,isLiteralTypeNode:()=>UD,isLocalName:()=>tA,isLogicalOperator:()=>jb,isLogicalOrCoalescingAssignmentExpression:()=>Rb,isLogicalOrCoalescingAssignmentOperator:()=>Mb,isLogicalOrCoalescingBinaryExpression:()=>Jb,isLogicalOrCoalescingBinaryOperator:()=>Bb,isMappedTypeNode:()=>qD,isMemberName:()=>Cl,isMetaProperty:()=>TF,isMethodDeclaration:()=>mD,isMethodOrAccessor:()=>P_,isMethodSignature:()=>fD,isMinusToken:()=>BN,isMissingDeclaration:()=>SP,isModifier:()=>f_,isModifierKind:()=>u_,isModifierLike:()=>A_,isModuleAugmentationExternal:()=>hf,isModuleBlock:()=>rP,isModuleBody:()=>yu,isModuleDeclaration:()=>nP,isModuleExportsAccessExpression:()=>Kg,isModuleIdentifier:()=>$g,isModuleName:()=>RA,isModuleOrEnumDeclaration:()=>Su,isModuleReference:()=>Au,isModuleSpecifierLike:()=>sY,isModuleWithStringLiteralName:()=>_f,isNameOfFunctionDeclaration:()=>pX,isNameOfModuleDeclaration:()=>dX,isNamedClassElement:()=>E_,isNamedDeclaration:()=>Lc,isNamedEvaluation:()=>Wy,isNamedEvaluationSource:()=>Vy,isNamedExportBindings:()=>Bl,isNamedExports:()=>bP,isNamedImportBindings:()=>xu,isNamedImports:()=>gP,isNamedImportsOrExports:()=>_S,isNamedTupleMember:()=>ED,isNamespaceBody:()=>vu,isNamespaceExport:()=>mP,isNamespaceExportDeclaration:()=>oP,isNamespaceImport:()=>fP,isNamespaceReexportDeclaration:()=>hg,isNewExpression:()=>tF,isNewExpressionTarget:()=>HG,isNoSubstitutionTemplateLiteral:()=>AN,isNode:()=>Ul,isNodeArray:()=>$l,isNodeArrayMultiLine:()=>Px,isNodeDescendantOf:()=>Zh,isNodeKind:()=>Vl,isNodeLikeSystem:()=>bn,isNodeModulesDirectory:()=>Pa,isNodeWithPossibleHoistedDeclaration:()=>Vh,isNonContextualKeyword:()=>xy,isNonExportDefaultModifier:()=>KA,isNonGlobalAmbientModule:()=>uf,isNonGlobalDeclaration:()=>o0,isNonNullAccess:()=>iC,isNonNullChain:()=>Ml,isNonNullExpression:()=>kF,isNonStaticMethodOrAccessorWithPrivateName:()=>VJ,isNotEmittedOrPartiallyEmittedNode:()=>cu,isNotEmittedStatement:()=>kP,isNullishCoalesce:()=>Ol,isNumber:()=>pt,isNumericLiteral:()=>NN,isNumericLiteralName:()=>HT,isObjectBindingElementWithoutPropertyName:()=>cY,isObjectBindingOrAssignmentElement:()=>W_,isObjectBindingOrAssignmentPattern:()=>V_,isObjectBindingPattern:()=>$D,isObjectLiteralElement:()=>Ku,isObjectLiteralElementLike:()=>L_,isObjectLiteralExpression:()=>QD,isObjectLiteralMethod:()=>Am,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Im,isObjectTypeDeclaration:()=>oS,isOctalDigit:()=>gs,isOmittedExpression:()=>vF,isOptionalChain:()=>Pl,isOptionalChainRoot:()=>El,isOptionalDeclaration:()=>rC,isOptionalJSDocPropertyLikeTag:()=>ZT,isOptionalTypeNode:()=>AD,isOuterExpression:()=>_A,isOutermostOptionalChain:()=>Il,isOverrideModifier:()=>nD,isPackedArrayLiteral:()=>jT,isParameter:()=>_D,isParameterDeclaration:()=>$y,isParameterOrCatchClauseVariable:()=>UT,isParameterPropertyDeclaration:()=>dc,isParameterPropertyModifier:()=>d_,isParenthesizedExpression:()=>iF,isParenthesizedTypeNode:()=>RD,isParseTreeNode:()=>Tc,isPartOfTypeNode:()=>hm,isPartOfTypeQuery:()=>gg,isPartiallyEmittedExpression:()=>wF,isPatternMatch:()=>ln,isPinnedComment:()=>Wp,isPlainJsFile:()=>Np,isPlusToken:()=>RN,isPossiblyTypeArgumentPosition:()=>uQ,isPostfixUnaryExpression:()=>dF,isPrefixUnaryExpression:()=>uF,isPrivateIdentifier:()=>$N,isPrivateIdentifierClassElementDeclaration:()=>l_,isPrivateIdentifierPropertyAccessExpression:()=>__,isPrivateIdentifierSymbol:()=>Jy,isProgramBundleEmitBuildInfo:()=>wW,isProgramUptoDate:()=>qV,isPrologueDirective:()=>_m,isPropertyAccessChain:()=>Nl,isPropertyAccessEntityNameExpression:()=>Qb,isPropertyAccessExpression:()=>YD,isPropertyAccessOrQualifiedName:()=>G_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>K_,isPropertyAssignment:()=>qP,isPropertyDeclaration:()=>pD,isPropertyName:()=>g_,isPropertyNameLiteral:()=>Oy,isPropertySignature:()=>dD,isProtoSetter:()=>qy,isPrototypeAccess:()=>Zb,isPrototypePropertyAssignment:()=>sh,isPunctuation:()=>yy,isPushOrUnshiftIdentifier:()=>Hy,isQualifiedName:()=>sD,isQuestionDotToken:()=>VN,isQuestionOrExclamationToken:()=>OA,isQuestionOrPlusOrMinusToken:()=>MA,isQuestionToken:()=>qN,isRawSourceMap:()=>lJ,isReadonlyKeyword:()=>ZN,isReadonlyKeywordOrPlusOrMinusToken:()=>jA,isRecognizedTripleSlashComment:()=>Vp,isReferenceFileLocation:()=>JV,isReferencedFile:()=>BV,isRegularExpressionLiteral:()=>EN,isRequireCall:()=>Fg,isRequireVariableStatement:()=>Og,isRestParameter:()=>ed,isRestTypeNode:()=>ID,isReturnStatement:()=>qF,isReturnStatementWithFixablePromiseHandler:()=>V1,isRightSideOfAccessExpression:()=>tx,isRightSideOfInstanceofExpression:()=>ix,isRightSideOfPropertyAccess:()=>_X,isRightSideOfQualifiedName:()=>lX,isRightSideOfQualifiedNameOrPropertyAccess:()=>ex,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>nx,isRootedDiskPath:()=>zo,isSameEntityName:()=>Vg,isSatisfiesExpression:()=>SF,isScopeMarker:()=>_u,isSemicolonClassElement:()=>FF,isSetAccessor:()=>qu,isSetAccessorDeclaration:()=>vD,isShebangTrivia:()=>xs,isShiftOperatorOrHigher:()=>JA,isShorthandAmbientModuleSymbol:()=>pf,isShorthandPropertyAssignment:()=>UP,isSignedNumericLiteral:()=>Py,isSimpleCopiableExpression:()=>IJ,isSimpleInlineableExpression:()=>OJ,isSingleOrDoubleQuote:()=>Lg,isSourceFile:()=>$P,isSourceFileFromLibrary:()=>d0,isSourceFileJS:()=>Sg,isSourceFileNotJS:()=>kg,isSourceFileNotJson:()=>wg,isSourceMapping:()=>pJ,isSpecialPropertyDeclaration:()=>ch,isSpreadAssignment:()=>VP,isSpreadElement:()=>hF,isStatement:()=>Pu,isStatementButNotDeclaration:()=>Fu,isStatementOrBlock:()=>Eu,isStatementWithLocals:()=>Dp,isStatic:()=>mb,isStaticModifier:()=>eD,isString:()=>dt,isStringAKeyword:()=>Ty,isStringANonContextualKeyword:()=>ky,isStringAndEmptyAnonymousObjectIntersection:()=>SQ,isStringDoubleQuoted:()=>jg,isStringLiteral:()=>FN,isStringLiteralLike:()=>Qu,isStringLiteralOrJsxExpression:()=>ju,isStringLiteralOrTemplate:()=>xZ,isStringOrNumericLiteralLike:()=>Fy,isStringOrRegularExpressionOrTemplateLiteral:()=>bQ,isStringTextContainingNode:()=>i_,isSuperCall:()=>am,isSuperKeyword:()=>iD,isSuperOrSuperProperty:()=>Zm,isSuperProperty:()=>eg,isSupportedSourceFileName:()=>Gk,isSwitchStatement:()=>VF,isSyntaxList:()=>ME,isSyntheticExpression:()=>CF,isSyntheticReference:()=>TP,isTagName:()=>cX,isTaggedTemplateExpression:()=>nF,isTaggedTemplateTag:()=>KG,isTemplateExpression:()=>mF,isTemplateHead:()=>IN,isTemplateLiteral:()=>Z_,isTemplateLiteralKind:()=>Ql,isTemplateLiteralToken:()=>Yl,isTemplateLiteralTypeNode:()=>HD,isTemplateLiteralTypeSpan:()=>WD,isTemplateMiddle:()=>ON,isTemplateMiddleOrTemplateTail:()=>Zl,isTemplateSpan:()=>DF,isTemplateTail:()=>LN,isTextWhiteSpaceLike:()=>yY,isThis:()=>yX,isThisContainerOrFunctionBlock:()=>Km,isThisIdentifier:()=>$v,isThisInTypeQuery:()=>Gv,isThisInitializedDeclaration:()=>ng,isThisInitializedObjectBindingExpression:()=>rg,isThisProperty:()=>tg,isThisTypeNode:()=>BD,isThisTypeParameter:()=>KT,isThisTypePredicate:()=>Lm,isThrowStatement:()=>HF,isToken:()=>Hl,isTokenKind:()=>Wl,isTraceEnabled:()=>Mj,isTransientSymbol:()=>ap,isTrivia:()=>wy,isTryStatement:()=>$F,isTupleTypeNode:()=>PD,isTypeAlias:()=>xh,isTypeAliasDeclaration:()=>eP,isTypeAssertionExpression:()=>rF,isTypeDeclaration:()=>QT,isTypeElement:()=>I_,isTypeKeyword:()=>RQ,isTypeKeywordToken:()=>BQ,isTypeKeywordTokenOrIdentifier:()=>JQ,isTypeLiteralNode:()=>DD,isTypeNode:()=>j_,isTypeNodeKind:()=>aS,isTypeOfExpression:()=>cF,isTypeOnlyExportDeclaration:()=>n_,isTypeOnlyImportDeclaration:()=>t_,isTypeOnlyImportOrExportDeclaration:()=>r_,isTypeOperatorNode:()=>JD,isTypeParameterDeclaration:()=>lD,isTypePredicateNode:()=>kD,isTypeQueryNode:()=>ND,isTypeReferenceNode:()=>TD,isTypeReferenceType:()=>Gu,isTypeUsableAsPropertyName:()=>fC,isUMDExportSymbol:()=>tS,isUnaryExpression:()=>nu,isUnaryExpressionWithWrite:()=>iu,isUnicodeIdentifierStart:()=>es,isUnionTypeNode:()=>OD,isUnparsedNode:()=>zl,isUnparsedPrepend:()=>HP,isUnparsedSource:()=>GP,isUnparsedTextLike:()=>Jl,isUrl:()=>Jo,isValidBigIntString:()=>kT,isValidESSymbolDeclaration:()=>Dm,isValidTypeOnlyAliasUseSite:()=>TT,isValueSignatureDeclaration:()=>Wh,isVarAwaitUsing:()=>nm,isVarConst:()=>im,isVarUsing:()=>rm,isVariableDeclaration:()=>GF,isVariableDeclarationInVariableStatement:()=>Cm,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Eg,isVariableDeclarationInitializedToRequire:()=>Pg,isVariableDeclarationList:()=>XF,isVariableLike:()=>km,isVariableLikeOrAccessor:()=>Tm,isVariableStatement:()=>EF,isVoidExpression:()=>lF,isWatchSet:()=>Rx,isWhileStatement:()=>jF,isWhiteSpaceLike:()=>us,isWhiteSpaceSingleLine:()=>ds,isWithStatement:()=>UF,isWriteAccess:()=>Wx,isWriteOnlyAccess:()=>Vx,isYieldExpression:()=>gF,jsxModeNeedsExplicitImport:()=>u0,keywordPart:()=>wY,last:()=>Ie,lastOrUndefined:()=>Ae,length:()=>v,libMap:()=>hO,libs:()=>gO,lineBreakPart:()=>JY,linkNamePart:()=>jY,linkPart:()=>MY,linkTextPart:()=>LY,listFiles:()=>FH,loadModuleFromGlobalCache:()=>hR,loadWithModeAwareCache:()=>IV,makeIdentifierFromModuleName:()=>af,makeImport:()=>eY,makeImportIfNecessary:()=>ZQ,makeStringLiteral:()=>tY,mangleScopedPackageName:()=>_R,map:()=>J,mapAllOrFail:()=>K,mapDefined:()=>G,mapDefinedEntries:()=>Q,mapDefinedIterator:()=>X,mapEntries:()=>ne,mapIterator:()=>z,mapOneOrMany:()=>GZ,mapToDisplayParts:()=>zY,matchFiles:()=>Rk,matchPatternOrExact:()=>uT,matchedText:()=>rn,matchesExclude:()=>vj,maybeBind:()=>it,maybeSetLocalizedDiagnosticMessages:()=>CS,memoize:()=>Tt,memoizeCached:()=>Nt,memoizeOne:()=>Ct,memoizeWeak:()=>wt,metadataHelper:()=>qw,min:()=>Lt,minAndMax:()=>fT,missingFileModifiedTime:()=>io,modifierToFlag:()=>Ob,modifiersToFlags:()=>Ib,moduleOptionDeclaration:()=>xO,moduleResolutionIsEqualTo:()=>yp,moduleResolutionNameAndModeGetter:()=>tV,moduleResolutionOptionDeclarations:()=>NO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>ok,moduleResolutionUsesNodeModules:()=>YQ,moduleSpecifiers:()=>dB,moveEmitHelpers:()=>Dw,moveRangeEnd:()=>hx,moveRangePastDecorators:()=>vx,moveRangePastModifiers:()=>bx,moveRangePos:()=>yx,moveSyntheticComments:()=>xw,mutateMap:()=>Xx,mutateMapSkippingNewValues:()=>Gx,needsParentheses:()=>hZ,needsScopeMarker:()=>du,newCaseClauseTracker:()=>p0,newPrivateEnvironment:()=>XJ,noEmitNotification:()=>Xq,noEmitSubstitution:()=>Gq,noTransformers:()=>Jq,noTruncationMaximumTruncationLength:()=>id,nodeCanBeDecorated:()=>ag,nodeHasName:()=>Ic,nodeIsDecorated:()=>sg,nodeIsMissing:()=>Ip,nodeIsPresent:()=>Op,nodeIsSynthesized:()=>Xy,nodeModuleNameResolver:()=>wM,nodeModulesPathPart:()=>Ij,nodeNextJsonConfigResolver:()=>NM,nodeOrChildIsDecorated:()=>cg,nodeOverlapsWithStartEnd:()=>NX,nodePosToString:()=>Pp,nodeSeenTracker:()=>qQ,nodeStartsNewLexicalEnvironment:()=>Gy,nodeToDisplayParts:()=>WY,noop:()=>gt,noopFileWatcher:()=>fH,normalizePath:()=>ua,normalizeSlashes:()=>oa,not:()=>dn,notImplemented:()=>kt,notImplementedResolver:()=>Zq,nullNodeConverters:()=>kC,nullParenthesizerRules:()=>bC,nullTransformationContext:()=>zq,objectAllocator:()=>Ed,operatorPart:()=>DY,optionDeclarations:()=>kO,optionMapToObject:()=>OL,optionsAffectingProgramStructure:()=>FO,optionsForBuild:()=>EO,optionsForWatch:()=>yO,optionsHaveChanges:()=>_p,optionsHaveModuleResolutionChanges:()=>cp,or:()=>un,orderedRemoveItem:()=>Qt,orderedRemoveItemAt:()=>Yt,outFile:()=>Ev,packageIdToPackageName:()=>bp,packageIdToString:()=>xp,paramHelper:()=>Uw,parameterIsThisKeyword:()=>Hv,parameterNamePart:()=>FY,parseBaseNodeFactory:()=>gI,parseBigInt:()=>xT,parseBuildCommand:()=>gL,parseCommandLine:()=>dL,parseCommandLineWorker:()=>_L,parseConfigFileTextToJson:()=>bL,parseConfigFileWithSystem:()=>SH,parseConfigHostFromCompilerHostLike:()=>GV,parseCustomTypeOption:()=>aL,parseIsolatedEntityName:()=>ZI,parseIsolatedJSDocComment:()=>rO,parseJSDocTypeExpressionForTests:()=>iO,parseJsonConfigFileContent:()=>WL,parseJsonSourceFileConfigFileContent:()=>HL,parseJsonText:()=>eO,parseListTypeOption:()=>sL,parseNodeFactory:()=>hI,parseNodeModuleFromPath:()=>AM,parsePackageName:()=>XM,parsePseudoBigInt:()=>vT,parseValidBigInt:()=>ST,patchWriteFileEnsuringDirectory:()=>Eo,pathContainsNodeModules:()=>EM,pathIsAbsolute:()=>Uo,pathIsBareSpecifier:()=>Wo,pathIsRelative:()=>Vo,patternText:()=>nn,perfLogger:()=>rr,performIncrementalCompilation:()=>KH,performance:()=>Dr,plainJSErrors:()=>iV,positionBelongsToNode:()=>FX,positionIsASICandidate:()=>FZ,positionIsSynthesized:()=>iT,positionsAreOnSameLine:()=>Ex,preProcessFile:()=>A1,probablyUsesSemicolons:()=>PZ,processCommentPragmas:()=>aO,processPragmasIntoFields:()=>sO,processTaggedTemplateExpression:()=>Dz,programContainsEsModules:()=>KQ,programContainsModules:()=>$Q,projectReferenceIsEqualTo:()=>hp,propKeyHelper:()=>rN,propertyNamePart:()=>PY,pseudoBigIntToString:()=>bT,punctuationPart:()=>NY,pushIfUnique:()=>xe,quote:()=>vZ,quotePreferenceFromString:()=>nY,rangeContainsPosition:()=>SX,rangeContainsPositionExclusive:()=>kX,rangeContainsRange:()=>bX,rangeContainsRangeExclusive:()=>xX,rangeContainsStartEnd:()=>CX,rangeEndIsOnSameLineAsRangeStart:()=>Nx,rangeEndPositionsAreOnSameLine:()=>Cx,rangeEquals:()=>Ne,rangeIsOnSingleLine:()=>kx,rangeOfNode:()=>mT,rangeOfTypeParameters:()=>gT,rangeOverlapsWithStartEnd:()=>wX,rangeStartIsOnSameLineAsRangeEnd:()=>wx,rangeStartPositionsAreOnSameLine:()=>Tx,readBuilderProgram:()=>XH,readConfigFile:()=>vL,readHelper:()=>tN,readJson:()=>px,readJsonConfigFile:()=>xL,readJsonOrUndefined:()=>dx,reduceEachLeadingCommentRange:()=>ws,reduceEachTrailingCommentRange:()=>Ns,reduceLeft:()=>Je,reduceLeftIterator:()=>T,reducePathComponents:()=>aa,refactor:()=>g7,regExpEscape:()=>Dk,relativeComplement:()=>ge,removeAllComments:()=>nw,removeEmitHelper:()=>ww,removeExtension:()=>eT,removeFileExtension:()=>Yk,removeIgnoredPath:()=>GW,removeMinAndVersionNumbers:()=>Xt,removeOptionality:()=>_Q,removePrefix:()=>sn,removeSuffix:()=>Kt,removeTrailingDirectorySeparator:()=>fa,repeatString:()=>VQ,replaceElement:()=>Me,resolutionExtensionIsTSOrJson:()=>aT,resolveConfigFileProjectName:()=>r$,resolveJSModule:()=>kM,resolveLibrary:()=>vM,resolveModuleName:()=>xM,resolveModuleNameFromCache:()=>bM,resolvePackageNameToPackageJson:()=>iM,resolvePath:()=>ca,resolveProjectReferencePath:()=>QV,resolveTripleslashReference:()=>cV,resolveTypeReferenceDirective:()=>tM,resolvingEmptyArray:()=>td,restHelper:()=>Qw,returnFalse:()=>ht,returnNoopFileWatcher:()=>mH,returnTrue:()=>yt,returnUndefined:()=>vt,returnsPromise:()=>U1,runInitializersHelper:()=>Ww,sameFlatMap:()=>$,sameMap:()=>q,sameMapping:()=>dJ,scanShebangTrivia:()=>Ss,scanTokenAtPosition:()=>Xf,scanner:()=>AG,screenStartingMessageCodes:()=>pH,semanticDiagnosticsOptionDeclarations:()=>TO,serializeCompilerOptions:()=>RL,server:()=>_be,servicesVersion:()=>N7,setCommentRange:()=>fw,setConfigFileInOptions:()=>$L,setConstantValue:()=>kw,setEachParent:()=>IT,setEmitFlags:()=>rw,setFunctionNameHelper:()=>iN,setGetSourceFileAsHashVersioned:()=>qH,setIdentifierAutoGenerate:()=>jw,setIdentifierGeneratedImportReference:()=>Rw,setIdentifierTypeArguments:()=>Ow,setInternalEmitFlags:()=>ow,setLocalizedDiagnosticMessages:()=>TS,setModuleDefaultHelper:()=>cN,setNodeFlags:()=>ET,setObjectAllocator:()=>SS,setOriginalNode:()=>YC,setParent:()=>AT,setParentRecursive:()=>OT,setPrivateIdentifier:()=>YJ,setSnippetElement:()=>Pw,setSourceMapRange:()=>cw,setStackTraceLimit:()=>mo,setStartsOnNewLine:()=>dw,setSyntheticLeadingComments:()=>gw,setSyntheticTrailingComments:()=>vw,setSys:()=>Ao,setSysLog:()=>wo,setTextRange:()=>cI,setTextRangeEnd:()=>DT,setTextRangePos:()=>NT,setTextRangePosEnd:()=>FT,setTextRangePosWidth:()=>PT,setTokenSourceMapRange:()=>_w,setTypeNode:()=>Aw,setUILocale:()=>zt,setValueDeclaration:()=>lh,shouldAllowImportingTsExtension:()=>gR,shouldPreserveConstEnums:()=>uk,shouldResolveJsRequire:()=>ak,shouldUseUriStyleNodeCoreModules:()=>s0,showModuleSpecifier:()=>nS,signatureHasLiteralTypes:()=>BB,signatureHasRestParameter:()=>RB,signatureToDisplayParts:()=>VY,single:()=>Le,singleElementArray:()=>fn,singleIterator:()=>ee,singleOrMany:()=>je,singleOrUndefined:()=>Oe,skipAlias:()=>qx,skipAssertions:()=>pA,skipConstraint:()=>WQ,skipOuterExpressions:()=>uA,skipParentheses:()=>Qh,skipPartiallyEmittedExpressions:()=>jl,skipTrivia:()=>ys,skipTypeChecking:()=>hT,skipTypeParentheses:()=>Xh,skipWhile:()=>vn,sliceAfter:()=>dT,some:()=>re,sort:()=>Te,sortAndDeduplicate:()=>ue,sortAndDeduplicateDiagnostics:()=>Ws,sourceFileAffectingCompilerOptions:()=>DO,sourceFileMayBeEmitted:()=>Ov,sourceMapCommentRegExp:()=>tJ,sourceMapCommentRegExpDontCareLineStart:()=>eJ,spacePart:()=>CY,spanMap:()=>te,spreadArrayHelper:()=>nN,stableSort:()=>we,startEndContainsRange:()=>TX,startEndOverlapsWithStartEnd:()=>DX,startOnNewLine:()=>fA,startTracing:()=>Er,startsWith:()=>an,startsWithDirectory:()=>ka,startsWithUnderscore:()=>r0,startsWithUseStrict:()=>oA,stringContainsAt:()=>n0,stringToToken:()=>ns,stripQuotes:()=>fv,supportedDeclarationExtensions:()=>Xd,supportedJSExtensions:()=>Hd,supportedJSExtensionsFlat:()=>$d,supportedLocaleDirectories:()=>zs,supportedTSExtensions:()=>qd,supportedTSExtensionsFlat:()=>Ud,supportedTSImplementationExtensions:()=>Qd,suppressLeadingAndTrailingTrivia:()=>iZ,suppressLeadingTrivia:()=>oZ,suppressTrailingTrivia:()=>aZ,symbolEscapedNameNoDefault:()=>aY,symbolName:()=>Pc,symbolNameNoDefault:()=>oY,symbolPart:()=>kY,symbolToDisplayParts:()=>UY,syntaxMayBeASICandidate:()=>JG,syntaxRequiresTrailingSemicolonOrASI:()=>DZ,sys:()=>uo,sysLog:()=>Co,tagNamesAreEquivalent:()=>uO,takeWhile:()=>yn,targetOptionDeclaration:()=>bO,templateObjectHelper:()=>eN,testFormatSettings:()=>yG,textChangeRangeIsUnchanged:()=>cc,textChangeRangeNewSpan:()=>sc,textChanges:()=>Pfe,textOrKeywordPart:()=>EY,textPart:()=>AY,textRangeContainsPositionInclusive:()=>Xs,textSpanContainsPosition:()=>Gs,textSpanContainsTextSpan:()=>Qs,textSpanEnd:()=>$s,textSpanIntersection:()=>ic,textSpanIntersectsWith:()=>tc,textSpanIntersectsWithPosition:()=>rc,textSpanIntersectsWithTextSpan:()=>ec,textSpanIsEmpty:()=>Ks,textSpanOverlap:()=>Zs,textSpanOverlapsWith:()=>Ys,textSpansEqual:()=>mY,textToKeywordObj:()=>Oa,timestamp:()=>Yn,toArray:()=>ut,toBuilderFileEmit:()=>BW,toBuilderStateFileInfoForMultiEmit:()=>RW,toEditorSettings:()=>Y7,toFileNameLowerCase:()=>St,toLowerCase:()=>xt,toPath:()=>pa,toProgramEmitPending:()=>JW,tokenIsIdentifierOrKeyword:()=>Qa,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Ya,tokenToString:()=>ts,trace:()=>jj,tracing:()=>Fr,tracingEnabled:()=>Pr,transform:()=>d5,transformClassFields:()=>Lz,transformDeclarations:()=>Mq,transformECMAScriptModule:()=>Cq,transformES2015:()=>fq,transformES2016:()=>uq,transformES2017:()=>Vz,transformES2018:()=>$z,transformES2019:()=>Gz,transformES2020:()=>Qz,transformES2021:()=>Zz,transformES5:()=>gq,transformESDecorators:()=>qz,transformESNext:()=>tq,transformGenerators:()=>yq,transformJsx:()=>lq,transformLegacyDecorators:()=>Jz,transformModule:()=>xq,transformNamedEvaluation:()=>Cz,transformNodeModule:()=>Nq,transformNodes:()=>Qq,transformSystemModule:()=>kq,transformTypeScript:()=>Iz,transpile:()=>t2,transpileModule:()=>e2,transpileOptionValueCompilerOptions:()=>PO,tryAddToSet:()=>Z,tryAndIgnoreErrors:()=>LZ,tryCast:()=>ft,tryDirectoryExists:()=>OZ,tryExtractTSExtension:()=>cx,tryFileExists:()=>IZ,tryGetClassExtendingExpressionWithTypeArguments:()=>qb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>Ub,tryGetDirectories:()=>EZ,tryGetExtensionFromPath:()=>lT,tryGetImportFromModuleSpecifier:()=>ph,tryGetJSDocSatisfiesTypeNode:()=>sC,tryGetModuleNameFromFile:()=>xA,tryGetModuleSpecifierFromDeclaration:()=>uh,tryGetNativePerformanceHooks:()=>tr,tryGetPropertyAccessOrIdentifierToString:()=>Yb,tryGetPropertyNameOfBindingOrAssignmentElement:()=>wA,tryGetSourceMappingURL:()=>sJ,tryGetTextOfPropertyName:()=>jf,tryIOAndConsumeErrors:()=>jZ,tryParsePattern:()=>nT,tryParsePatterns:()=>rT,tryParseRawSourceMap:()=>_J,tryReadDirectory:()=>AZ,tryReadFile:()=>SL,tryRemoveDirectoryPrefix:()=>Nk,tryRemoveExtension:()=>Zk,tryRemovePrefix:()=>cn,tryRemoveSuffix:()=>Gt,typeAcquisitionDeclarations:()=>IO,typeAliasNamePart:()=>IY,typeDirectiveIsEqualTo:()=>Sp,typeKeywords:()=>LG,typeParameterNamePart:()=>OY,typeReferenceResolutionNameAndModeGetter:()=>nV,typeToDisplayParts:()=>qY,unchangedPollThresholds:()=>so,unchangedTextChangeRange:()=>Js,unescapeLeadingUnderscores:()=>Nc,unmangleScopedPackageName:()=>dR,unorderedRemoveItem:()=>en,unorderedRemoveItemAt:()=>Zt,unreachableCodeIsError:()=>ek,unusedLabelIsError:()=>tk,unwrapInnermostStatementOfLabel:()=>Pm,updateErrorForNoInputFiles:()=>ej,updateLanguageServiceSourceFile:()=>o5,updateMissingFilePathsWatch:()=>JU,updatePackageJsonWatch:()=>BU,updateResolutionField:()=>Hj,updateSharedExtendedConfigFileWatcher:()=>jU,updateSourceFile:()=>nO,updateWatchingWildcardDirectories:()=>zU,usesExtensionsOnImports:()=>$k,usingSingleLineStringWriter:()=>mp,utf16EncodeAsString:()=>Bs,validateLocaleAndSetLanguage:()=>xc,valuesHelper:()=>oN,version:()=>t,versionMajorMinor:()=>e,visitArray:()=>VB,visitCommaListElements:()=>QB,visitEachChild:()=>YB,visitFunctionBody:()=>GB,visitIterationBody:()=>XB,visitLexicalEnvironment:()=>HB,visitNode:()=>qB,visitNodes:()=>UB,visitParameterList:()=>$B,walkUpBindingElementsAndPatterns:()=>mc,walkUpLexicalEnvironments:()=>GJ,walkUpOuterExpressions:()=>dA,walkUpParenthesizedExpressions:()=>Kh,walkUpParenthesizedTypes:()=>$h,walkUpParenthesizedTypesAndGetParentAndChild:()=>Gh,whitespaceOrMapCommentRegExp:()=>nJ,writeCommentRange:()=>cb,writeFile:()=>Mv,writeFileEnsuringDirectories:()=>Bv,zipWith:()=>C});var pbe,fbe,mbe=g({"src/typescript/_namespaces/ts.ts"(){OK(),PG(),zge(),lbe(),ube()}});return(pbe={"src/typescript/typescript.ts"(e,t){mbe(),mbe(),"undefined"!=typeof console&&(Sn.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:case 4:return console.log(t)}}}),t.exports=dbe}},function(){return fbe||(0,pbe[m(pbe)[0]])((fbe={exports:{}}).exports,fbe),fbe.exports})()})();"undefined"!=typeof module&&module.exports&&(module.exports=ts);