prettier
Version:
Prettier is an opinionated code formatter
11 lines • 1.15 MB
JavaScript
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.typescript=e()}})(function(){"use strict";var T5=Object.create;var xf=Object.defineProperty;var S5=Object.getOwnPropertyDescriptor;var x5=Object.getOwnPropertyNames;var w5=Object.getPrototypeOf,C5=Object.prototype.hasOwnProperty;var E5=(e,t)=>()=>(e&&(t=e(e=0)),t);var ut=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hh=(e,t)=>{for(var r in t)xf(e,r,{get:t[r],enumerable:!0})},Nb=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let _ of x5(t))!C5.call(e,_)&&_!==r&&xf(e,_,{get:()=>t[_],enumerable:!(a=S5(t,_))||a.enumerable});return e};var Ob=(e,t,r)=>(r=e!=null?T5(w5(e)):{},Nb(t||!e||!e.__esModule?xf(r,"default",{value:e,enumerable:!0}):r,e)),wf=e=>Nb(xf({},"__esModule",{value:!0}),e);var Cf={};Hh(Cf,{default:()=>k5});var A5,k5,Ef=E5(()=>{A5=()=>()=>{},k5=A5});var Dt=ut((QV,E7)=>{var D5=Object.defineProperty,hv=Object.getOwnPropertyNames,Vt=(e,t)=>function(){return e&&(t=(0,e[hv(e)[0]])(e=0)),t},P5=(e,t)=>function(){return t||(0,e[hv(e)[0]])((t={exports:{}}).exports,t),t.exports},I5=(e,t)=>{for(var r in t)D5(e,r,{get:t[r],enumerable:!0})},yv,Gf,Zh,N5=Vt({"src/compiler/corePublic.ts"(){"use strict";yv="5.2",Gf="5.2.2",Zh=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Zh||{})}});function Ka(e){return e?e.length:0}function yr(e,t){if(e)for(let r=0;r<e.length;r++){let a=t(e[r],r);if(a)return a}}function O5(e,t){if(e)for(let r=e.length-1;r>=0;r--){let a=t(e[r],r);if(a)return a}}function ng(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let a=t(e[r],r);if(a!==void 0)return a}}function M5(e,t){for(let r of e){let a=t(r);if(a!==void 0)return a}}function L5(e,t,r){let a=r;if(e){let _=0;for(let p of e)a=t(a,p,_),_++}return a}function ey(e,t,r){let a=[];N.assertEqual(e.length,t.length);for(let _=0;_<e.length;_++)a.push(r(e[_],t[_],_));return a}function J5(e,t){if(e.length<=1)return e;let r=[];for(let a=0,_=e.length;a<_;a++)a&&r.push(t),r.push(e[a]);return r}function so(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function Yr(e,t,r){if(e!==void 0)for(let a=r??0;a<e.length;a++){let _=e[a];if(t(_,a))return _}}function ig(e,t,r){if(e!==void 0)for(let a=r??e.length-1;a>=0;a--){let _=e[a];if(t(_,a))return _}}function _l(e,t,r){if(e===void 0)return-1;for(let a=r??0;a<e.length;a++)if(t(e[a],a))return a;return-1}function R5(e,t,r){if(e===void 0)return-1;for(let a=r??e.length-1;a>=0;a--)if(t(e[a],a))return a;return-1}function j5(e,t){for(let r=0;r<e.length;r++){let a=t(e[r],r);if(a)return a}return N.fail()}function es(e,t,r=_o){if(e){for(let a of e)if(r(a,t))return!0}return!1}function gv(e,t,r=_o){return e.length===t.length&&e.every((a,_)=>r(a,t[_]))}function bv(e,t,r){for(let a=r||0;a<e.length;a++)if(es(t,e.charCodeAt(a)))return a;return-1}function F5(e,t){let r=0;if(e)for(let a=0;a<e.length;a++){let _=e[a];t(_,a)&&r++}return r}function $r(e,t){if(e){let r=e.length,a=0;for(;a<r&&t(e[a]);)a++;if(a<r){let _=e.slice(0,a);for(a++;a<r;){let p=e[a];t(p)&&_.push(p),a++}return _}}return e}function B5(e,t){let r=0;for(let a=0;a<e.length;a++)t(e[a],a,e)&&(e[r]=e[a],r++);e.length=r}function U5(e){e.length=0}function Aa(e,t){let r;if(e){r=[];for(let a=0;a<e.length;a++)r.push(t(e[a],a))}return r}function*q5(e,t){for(let r of e)yield t(r)}function z5(e,t){if(e)for(let r=0;r<e.length;r++){let a=e[r],_=t(a,r);if(a!==_){let p=e.slice(0,r);for(p.push(_),r++;r<e.length;r++)p.push(t(e[r],r));return p}}return e}function o_(e){let t=[];for(let r of e)r&&(zt(r)?Rr(t,r):t.push(r));return t}function Bo(e,t){let r;if(e)for(let a=0;a<e.length;a++){let _=t(e[a],a);_&&(zt(_)?r=Rr(r,_):r=xt(r,_))}return r||$e}function vv(e,t){let r=[];if(e)for(let a=0;a<e.length;a++){let _=t(e[a],a);_&&(zt(_)?Rr(r,_):r.push(_))}return r}function*W5(e,t){for(let r of e){let a=t(r);a&&(yield*a)}}function Tv(e,t){let r;if(e)for(let a=0;a<e.length;a++){let _=e[a],p=t(_,a);(r||_!==p||zt(p))&&(r||(r=e.slice(0,a)),zt(p)?Rr(r,p):r.push(p))}return r||e}function V5(e,t){let r=[];for(let a=0;a<e.length;a++){let _=t(e[a],a);if(_===void 0)return;r.push(_)}return r}function Za(e,t){let r=[];if(e)for(let a=0;a<e.length;a++){let _=t(e[a],a);_!==void 0&&r.push(_)}return r}function*H5(e,t){for(let r of e){let a=t(r);a!==void 0&&(yield a)}}function G5(e,t){if(!e)return;let r=new Map;return e.forEach((a,_)=>{let p=t(_,a);if(p!==void 0){let[d,h]=p;d!==void 0&&h!==void 0&&r.set(d,h)}}),r}function X5(e,t,r){if(e.has(t))return e.get(t);let a=r();return e.set(t,a),a}function $5(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Q5(e){yield e}function Y5(e,t,r){let a;if(e){a=[];let _=e.length,p,d,h=0,l=0;for(;h<_;){for(;l<_;){let v=e[l];if(d=t(v,l),l===0)p=d;else if(d!==p)break;l++}if(h<l){let v=r(e.slice(h,l),p,h,l);v&&a.push(v),h=l}p=d,l++}}return a}function K5(e,t){if(!e)return;let r=new Map;return e.forEach((a,_)=>{let[p,d]=t(_,a);r.set(p,d)}),r}function mt(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function Z5(e,t,r){let a;for(let _=0;_<e.length;_++)t(e[_])?a=a===void 0?_:a:a!==void 0&&(r(a,_),a=void 0);a!==void 0&&r(a,e.length)}function y_(e,t){return mt(t)?mt(e)?[...e,...t]:t:e}function eC(e,t){return t}function ag(e){return e.map(eC)}function tC(e,t,r){let a=ag(e);Cv(e,a,r);let _=e[a[0]],p=[a[0]];for(let d=1;d<a.length;d++){let h=a[d],l=e[h];t(_,l)||(p.push(h),_=l)}return p.sort(),p.map(d=>e[d])}function rC(e,t){let r=[];for(let a of e)Ol(r,a,t);return r}function Sv(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?tC(e,t,r):rC(e,t)}function nC(e,t){if(e.length===0)return $e;let r=e[0],a=[r];for(let _=1;_<e.length;_++){let p=e[_];switch(t(p,r)){case!0:case 0:continue;case-1:return N.fail("Array is unsorted.")}a.push(r=p)}return a}function iC(){return[]}function yl(e,t,r,a){if(e.length===0)return e.push(t),!0;let _=Ml(e,t,bt,r);return _<0?(e.splice(~_,0,t),!0):a?(e.splice(_,0,t),!0):!1}function xv(e,t,r){return nC(Xf(e,t),r||t||Ci)}function aC(e,t){if(e.length<2)return!0;for(let r=1,a=e.length;r<a;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function oC(e,t,r,a){let _=3;if(e.length<2)return _;let p=t(e[0]);for(let d=1,h=e.length;d<h&&_!==0;d++){let l=t(e[d]);_&1&&r(p,l)>0&&(_&=-2),_&2&&a(p,l)>0&&(_&=-3),p=l}return _}function sC(e,t,r=_o){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(!r(e[a],t[a],a))return!1;return!0}function _C(e){let t;if(e)for(let r=0;r<e.length;r++){let a=e[r];(t||!a)&&(t||(t=e.slice(0,r)),a&&t.push(a))}return t||e}function cC(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;let a=[];e:for(let _=0,p=0;p<t.length;p++){p>0&&N.assertGreaterThanOrEqual(r(t[p],t[p-1]),0);t:for(let d=_;_<e.length;_++)switch(_>d&&N.assertGreaterThanOrEqual(r(e[_],e[_-1]),0),r(t[p],e[_])){case-1:a.push(t[p]);continue e;case 0:continue e;case 1:continue t}}return a}function xt(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function lC(e,t){return e===void 0?t:t===void 0?e:zt(e)?zt(t)?y_(e,t):xt(e,t):zt(t)?xt(t,e):[e,t]}function ty(e,t){return t<0?e.length+t:t}function Rr(e,t,r,a){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,a);r=r===void 0?0:ty(t,r),a=a===void 0?t.length:ty(t,a);for(let _=r;_<a&&_<t.length;_++)t[_]!==void 0&&e.push(t[_]);return e}function Ol(e,t,r){return es(e,t,r)?!1:(e.push(t),!0)}function wv(e,t,r){return e?(Ol(e,t,r),e):[t]}function Cv(e,t,r){t.sort((a,_)=>r(e[a],e[_])||kr(a,_))}function Xf(e,t){return e.length===0?e:e.slice().sort(t)}function*uC(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Ev(e,t){let r=ag(e);return Cv(e,r,t),r.map(a=>e[a])}function pC(e,t,r,a){for(;r<a;){if(e[r]!==t[r])return!1;r++}return!0}function g_(e){return e===void 0||e.length===0?void 0:e[0]}function fC(e){if(e)for(let t of e)return t}function og(e){return N.assert(e.length!==0),e[0]}function dC(e){for(let t of e)return t;N.fail("iterator is empty")}function wi(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function ka(e){return N.assert(e.length!==0),e[e.length-1]}function Jd(e){return e&&e.length===1?e[0]:void 0}function mC(e){return N.checkDefined(Jd(e))}function hC(e){return e&&e.length===1?e[0]:e}function yC(e,t,r){let a=e.slice(0);return a[t]=r,a}function Ml(e,t,r,a,_){return Av(e,r(t),r,a,_)}function Av(e,t,r,a,_){if(!mt(e))return-1;let p=_||0,d=e.length-1;for(;p<=d;){let h=p+(d-p>>1),l=r(e[h],h);switch(a(l,t)){case-1:p=h+1;break;case 0:return h;case 1:d=h-1;break}}return~p}function Rd(e,t,r,a,_){if(e&&e.length>0){let p=e.length;if(p>0){let d=a===void 0||a<0?0:a,h=_===void 0||d+_>p-1?p-1:d+_,l;for(arguments.length<=2?(l=e[d],d++):l=r;d<=h;)l=t(l,e[d],d),d++;return l}}return r}function Qr(e,t){return Jn.call(e,t)}function gC(e,t){return Jn.call(e,t)?e[t]:void 0}function sg(e){let t=[];for(let r in e)Jn.call(e,r)&&t.push(r);return t}function bC(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let a of r)Ol(t,a)}while(e=Object.getPrototypeOf(e));return t}function vC(e){let t=[];for(let r in e)Jn.call(e,r)&&t.push(e[r]);return t}function TC(e,t){let r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a);return r}function jd(e,t){let r=[];for(let a of e)r.push(t?t(a):a);return r}function SC(e,...t){for(let r of t)if(r!==void 0)for(let a in r)Qr(r,a)&&(e[a]=r[a]);return e}function kv(e,t,r=_o){if(e===t)return!0;if(!e||!t)return!1;for(let a in e)if(Jn.call(e,a)&&(!Jn.call(t,a)||!r(e[a],t[a])))return!1;for(let a in t)if(Jn.call(t,a)&&!Jn.call(e,a))return!1;return!0}function xC(e,t,r=bt){let a=new Map;for(let _ of e){let p=t(_);p!==void 0&&a.set(p,r(_))}return a}function wC(e,t,r=bt){let a=[];for(let _ of e)a[t(_)]=r(_);return a}function Dv(e,t,r=bt){let a=Fd();for(let _ of e)a.add(t(_),r(_));return a}function CC(e,t,r=bt){return jd(Dv(e,t).values(),r)}function EC(e,t){let r={};if(e)for(let a of e){let _=`${t(a)}`;(r[_]??(r[_]=[])).push(a)}return r}function AC(e){let t={};for(let r in e)Jn.call(e,r)&&(t[r]=e[r]);return t}function kC(e,t){let r={};for(let a in t)Jn.call(t,a)&&(r[a]=t[a]);for(let a in e)Jn.call(e,a)&&(r[a]=e[a]);return r}function DC(e,t){for(let r in t)Jn.call(t,r)&&(e[r]=t[r])}function rr(e,t){return t?t.bind(e):void 0}function Fd(){let e=new Map;return e.add=PC,e.remove=IC,e}function PC(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function IC(e,t){let r=this.get(e);r&&(Rv(r,t),r.length||this.delete(e))}function NC(e){let t=(e==null?void 0:e.slice())||[],r=0;function a(){return r===t.length}function _(...d){t.push(...d)}function p(){if(a())throw new Error("Queue is empty");let d=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){let h=t.length-r;t.copyWithin(0,r),t.length=h,r=0}return d}return{enqueue:_,dequeue:p,isEmpty:a}}function OC(e,t){let r=new Map,a=0;function*_(){for(let d of r.values())zt(d)?yield*d:yield d}let p={has(d){let h=e(d);if(!r.has(h))return!1;let l=r.get(h);if(!zt(l))return t(l,d);for(let v of l)if(t(v,d))return!0;return!1},add(d){let h=e(d);if(r.has(h)){let l=r.get(h);if(zt(l))es(l,d,t)||(l.push(d),a++);else{let v=l;t(v,d)||(r.set(h,[v,d]),a++)}}else r.set(h,d),a++;return this},delete(d){let h=e(d);if(!r.has(h))return!1;let l=r.get(h);if(zt(l)){for(let v=0;v<l.length;v++)if(t(l[v],d))return l.length===1?r.delete(h):l.length===2?r.set(h,l[1-v]):cg(l,v),a--,!0}else if(t(l,d))return r.delete(h),a--,!0;return!1},clear(){r.clear(),a=0},get size(){return a},forEach(d){for(let h of jd(r.values()))if(zt(h))for(let l of h)d(l,l,p);else{let l=h;d(l,l,p)}},keys(){return _()},values(){return _()},*entries(){for(let d of _())yield[d,d]},[Symbol.iterator]:()=>_(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return p}function zt(e){return Array.isArray(e)}function If(e){return zt(e)?e:[e]}function b_(e){return typeof e=="string"}function MC(e){return typeof e=="number"}function On(e,t){return e!==void 0&&t(e)?e:void 0}function gi(e,t){return e!==void 0&&t(e)?e:N.fail(`Invalid cast. The supplied value ${e} did not pass the test '${N.getFunctionName(t)}'.`)}function Rn(e){}function $f(){return!1}function Pv(){return!0}function LC(){}function bt(e){return e}function Iv(e){return e.toLowerCase()}function Nv(e){return iy.test(e)?e.replace(iy,Iv):e}function JC(){throw new Error("Not implemented")}function ry(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Nn(e){let t=new Map;return r=>{let a=`${typeof r}:${r}`,_=t.get(a);return _===void 0&&!t.has(a)&&(_=e(r),t.set(a,_)),_}}function RC(e){let t=new WeakMap;return r=>{let a=t.get(r);return a===void 0&&!t.has(r)&&(a=e(r),t.set(r,a)),a}}function jC(e,t){return(...r)=>{let a=t.get(r);return a===void 0&&!t.has(r)&&(a=e(...r),t.set(r,a)),a}}function FC(e,t,r,a,_){if(_){let p=[];for(let d=0;d<arguments.length;d++)p[d]=arguments[d];return d=>Rd(p,(h,l)=>l(h),d)}else return a?p=>a(r(t(e(p)))):r?p=>r(t(e(p))):t?p=>t(e(p)):e?p=>e(p):p=>p}function _o(e,t){return e===t}function s_(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Ll(e,t){return _o(e,t)}function Ov(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function kr(e,t){return Ov(e,t)}function BC(e,t){return kr(e==null?void 0:e.start,t==null?void 0:t.start)||kr(e==null?void 0:e.length,t==null?void 0:t.length)}function UC(e,t){return Rd(e,(r,a)=>t(r,a)===-1?r:a)}function Bd(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function qC(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function Ci(e,t){return Ov(e,t)}function _g(e){return e?Bd:Ci}function zC(){return Yf}function Mv(e){Yf!==e&&(Yf=e,oy=void 0)}function WC(e,t){return(oy||(oy=Wv(Yf)))(e,t)}function VC(e,t,r,a){return e===t?0:e===void 0?-1:t===void 0?1:a(e[r],t[r])}function HC(e,t){return kr(e?1:0,t?1:0)}function Lv(e,t,r){let a=Math.max(2,Math.floor(e.length*.34)),_=Math.floor(e.length*.4)+1,p;for(let d of t){let h=r(d);if(h!==void 0&&Math.abs(h.length-e.length)<=a){if(h===e||h.length<3&&h.toLowerCase()!==e.toLowerCase())continue;let l=GC(e,h,_-.1);if(l===void 0)continue;N.assert(l<_),_=l,p=d}}return p}function GC(e,t,r){let a=new Array(t.length+1),_=new Array(t.length+1),p=r+.01;for(let h=0;h<=t.length;h++)a[h]=h;for(let h=1;h<=e.length;h++){let l=e.charCodeAt(h-1),v=Math.ceil(h>r?h-r:1),y=Math.floor(t.length>r+h?r+h:t.length);_[0]=h;let C=h;for(let k=1;k<v;k++)_[k]=p;for(let k=v;k<=y;k++){let L=e[h-1].toLowerCase()===t[k-1].toLowerCase()?a[k-1]+.1:a[k-1]+2,G=l===t.charCodeAt(k-1)?a[k-1]:Math.min(a[k]+1,_[k-1]+1,L);_[k]=G,C=Math.min(C,G)}for(let k=y+1;k<=t.length;k++)_[k]=p;if(C>r)return;let S=a;a=_,_=S}let d=a[t.length];return d>r?void 0:d}function ts(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function XC(e,t){return ts(e,t)?e.slice(0,e.length-t.length):e}function $C(e,t){return ts(e,t)?e.slice(0,e.length-t.length):void 0}function eo(e,t){return e.indexOf(t)!==-1}function QC(e){let t=e.length;for(let r=t-1;r>0;r--){let a=e.charCodeAt(r);if(a>=48&&a<=57)do--r,a=e.charCodeAt(r);while(r>0&&a>=48&&a<=57);else if(r>4&&(a===110||a===78)){if(--r,a=e.charCodeAt(r),a!==105&&a!==73||(--r,a=e.charCodeAt(r),a!==109&&a!==77))break;--r,a=e.charCodeAt(r)}else break;if(a!==45&&a!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function YC(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return Jv(e,r),!0;return!1}function Jv(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function cg(e,t){e[t]=e[e.length-1],e.pop()}function Rv(e,t){return KC(e,r=>r===t)}function KC(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return cg(e,r),!0;return!1}function Ud(e){return e?bt:Nv}function ZC({prefix:e,suffix:t}){return`${e}*${t}`}function eE(e,t){return N.assert(lg(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function jv(e,t,r){let a,_=-1;for(let p of e){let d=t(p);lg(d,r)&&d.prefix.length>_&&(_=d.prefix.length,a=p)}return a}function Fr(e,t){return e.lastIndexOf(t,0)===0}function tE(e,t){return Fr(e,t)?e.substr(t.length):e}function Fv(e,t,r=bt){return Fr(r(e),r(t))?e.substring(t.length):void 0}function lg({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&Fr(r,e)&&ts(r,t)}function rE(e,t){return r=>e(r)&&t(r)}function ug(...e){return(...t)=>{let r;for(let a of e)if(r=a(...t),r)return r;return r}}function nE(e){return(...t)=>!e(...t)}function iE(e){}function Qf(e){return e===void 0?void 0:[e]}function aE(e,t,r,a,_,p){p=p||Rn;let d=0,h=0,l=e.length,v=t.length,y=!1;for(;d<l&&h<v;){let C=e[d],S=t[h],k=r(C,S);k===-1?(a(C),d++,y=!0):k===1?(_(S),h++,y=!0):(p(S,C),d++,h++)}for(;d<l;)a(e[d++]),y=!0;for(;h<v;)_(t[h++]),y=!0;return y}function oE(e){let t=[];return Bv(e,t,void 0,0),t}function Bv(e,t,r,a){for(let _ of e[a]){let p;r?(p=r.slice(),p.push(_)):p=[_],a===e.length-1?t.push(p):Bv(e,t,p,a+1)}}function Uv(e,t,r=" "){return t<=e.length?e:r.repeat(t-e.length)+e}function sE(e,t,r=" "){return t<=e.length?e:e+r.repeat(t-e.length)}function _E(e,t){if(e){let r=e.length,a=0;for(;a<r&&t(e[a]);)a++;return e.slice(0,a)}}function cE(e,t){if(e){let r=e.length,a=0;for(;a<r&&t(e[a]);)a++;return e.slice(a)}}function lE(e){let t=e.length-1;for(;t>=0&&Vi(e.charCodeAt(t));)t--;return e.slice(0,t+1)}function uE(){return!1}var $e,pg,qv,ny,zv,Jn,iy,ay,Wv,oy,Yf,qd,n_,gl,pE=Vt({"src/compiler/core.ts"(){"use strict";Dr(),$e=[],pg=new Map,qv=new Set,ny=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(ny||{}),zv=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=ty(e,t),t<e.length))return e[t]},Jn=Object.prototype.hasOwnProperty,iy=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,ay=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(ay||{}),Wv=(()=>{let e,t,r=h();return l;function a(v,y,C){if(v===y)return 0;if(v===void 0)return-1;if(y===void 0)return 1;let S=C(v,y);return S<0?-1:S>0?1:0}function _(v){let y=new Intl.Collator(v,{usage:"sort",sensitivity:"variant"}).compare;return(C,S)=>a(C,S,y)}function p(v){if(v!==void 0)return d();return(C,S)=>a(C,S,y);function y(C,S){return C.localeCompare(S)}}function d(){return(C,S)=>a(C,S,v);function v(C,S){return y(C.toUpperCase(),S.toUpperCase())||y(C,S)}function y(C,S){return C<S?-1:C>S?1:0}}function h(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?_:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?p:d}function l(v){return v===void 0?e||(e=r(v)):v==="en-US"?t||(t=r(v)):r(v)}})(),qd=String.prototype.trim?e=>e.trim():e=>n_(gl(e)),n_=String.prototype.trimEnd?e=>e.trimEnd():lE,gl=String.prototype.trimStart?e=>e.trimStart():e=>e.replace(/^\s+/g,"")}}),sy,N,Vv=Vt({"src/compiler/debug.ts"(){"use strict";Dr(),Dr(),sy=(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))(sy||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(q){return e.currentLogLevel<=q}e.shouldLog=r;function a(q,oe){e.loggingHost&&r(q)&&e.loggingHost.log(q,oe)}function _(q){a(3,q)}e.log=_,(q=>{function oe(z){a(1,z)}q.error=oe;function ge(z){a(2,z)}q.warn=ge;function Se(z){a(3,z)}q.log=Se;function nt(z){a(4,z)}q.trace=nt})(_=e.log||(e.log={}));let p={};function d(){return t}e.getAssertionLevel=d;function h(q){let oe=t;if(t=q,q>oe)for(let ge of sg(p)){let Se=p[ge];Se!==void 0&&e[ge]!==Se.assertion&&q>=Se.level&&(e[ge]=Se,p[ge]=void 0)}}e.setAssertionLevel=h;function l(q){return t>=q}e.shouldAssert=l;function v(q,oe){return l(q)?!0:(p[oe]={level:q,assertion:e[oe]},e[oe]=Rn,!1)}function y(q,oe){debugger;let ge=new Error(q?`Debug Failure. ${q}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(ge,oe||y),ge}e.fail=y;function C(q,oe,ge){return y(`${oe||"Unexpected node."}\r
Node ${Xt(q.kind)} was unexpected.`,ge||C)}e.failBadSyntaxKind=C;function S(q,oe,ge,Se){q||(oe=oe?`False expression: ${oe}`:"False expression.",ge&&(oe+=`\r
Verbose Debug Information: `+(typeof ge=="string"?ge:ge())),y(oe,Se||S))}e.assert=S;function k(q,oe,ge,Se,nt){if(q!==oe){let z=ge?Se?`${ge} ${Se}`:ge:"";y(`Expected ${q} === ${oe}. ${z}`,nt||k)}}e.assertEqual=k;function L(q,oe,ge,Se){q>=oe&&y(`Expected ${q} < ${oe}. ${ge||""}`,Se||L)}e.assertLessThan=L;function G(q,oe,ge){q>oe&&y(`Expected ${q} <= ${oe}`,ge||G)}e.assertLessThanOrEqual=G;function K(q,oe,ge){q<oe&&y(`Expected ${q} >= ${oe}`,ge||K)}e.assertGreaterThanOrEqual=K;function ue(q,oe,ge){q==null&&y(oe,ge||ue)}e.assertIsDefined=ue;function Y(q,oe,ge){return ue(q,oe,ge||Y),q}e.checkDefined=Y;function B(q,oe,ge){for(let Se of q)ue(Se,oe,ge||B)}e.assertEachIsDefined=B;function ae(q,oe,ge){return B(q,oe,ge||ae),q}e.checkEachDefined=ae;function Ce(q,oe="Illegal value:",ge){let Se=typeof q=="object"&&Qr(q,"kind")&&Qr(q,"pos")?"SyntaxKind: "+Xt(q.kind):JSON.stringify(q);return y(`${oe} ${Se}`,ge||Ce)}e.assertNever=Ce;function Ze(q,oe,ge,Se){v(1,"assertEachNode")&&S(oe===void 0||so(q,oe),ge||"Unexpected node.",()=>`Node array did not pass test '${or(oe)}'.`,Se||Ze)}e.assertEachNode=Ze;function qe(q,oe,ge,Se){v(1,"assertNode")&&S(q!==void 0&&(oe===void 0||oe(q)),ge||"Unexpected node.",()=>`Node ${Xt(q==null?void 0:q.kind)} did not pass test '${or(oe)}'.`,Se||qe)}e.assertNode=qe;function rt(q,oe,ge,Se){v(1,"assertNotNode")&&S(q===void 0||oe===void 0||!oe(q),ge||"Unexpected node.",()=>`Node ${Xt(q.kind)} should not have passed test '${or(oe)}'.`,Se||rt)}e.assertNotNode=rt;function it(q,oe,ge,Se){v(1,"assertOptionalNode")&&S(oe===void 0||q===void 0||oe(q),ge||"Unexpected node.",()=>`Node ${Xt(q==null?void 0:q.kind)} did not pass test '${or(oe)}'.`,Se||it)}e.assertOptionalNode=it;function Ir(q,oe,ge,Se){v(1,"assertOptionalToken")&&S(oe===void 0||q===void 0||q.kind===oe,ge||"Unexpected node.",()=>`Node ${Xt(q==null?void 0:q.kind)} was not a '${Xt(oe)}' token.`,Se||Ir)}e.assertOptionalToken=Ir;function ar(q,oe,ge){v(1,"assertMissingNode")&&S(q===void 0,oe||"Unexpected node.",()=>`Node ${Xt(q.kind)} was unexpected'.`,ge||ar)}e.assertMissingNode=ar;function ci(q){}e.type=ci;function or(q){if(typeof q!="function")return"";if(Qr(q,"name"))return q.name;{let oe=Function.prototype.toString.call(q),ge=/^function\s+([\w$]+)\s*\(/.exec(oe);return ge?ge[1]:""}}e.getFunctionName=or;function Nr(q){return`{ name: ${Vo(q.escapedName)}; flags: ${Tr(q.flags)}; declarations: ${Aa(q.declarations,oe=>Xt(oe.kind))} }`}e.formatSymbol=Nr;function Ge(q=0,oe,ge){let Se=Ur(oe);if(q===0)return Se.length>0&&Se[0][0]===0?Se[0][1]:"0";if(ge){let nt=[],z=q;for(let[X,ee]of Se){if(X>q)break;X!==0&&X&q&&(nt.push(ee),z&=~X)}if(z===0)return nt.join("|")}else for(let[nt,z]of Se)if(nt===q)return z;return q.toString()}e.formatEnum=Ge;let Gt=new Map;function Ur(q){let oe=Gt.get(q);if(oe)return oe;let ge=[];for(let nt in q){let z=q[nt];typeof z=="number"&&ge.push([z,nt])}let Se=Ev(ge,(nt,z)=>kr(nt[0],z[0]));return Gt.set(q,Se),Se}function Xt(q){return Ge(q,td,!1)}e.formatSyntaxKind=Xt;function Tn(q){return Ge(q,fd,!1)}e.formatSnippetKind=Tn;function Sn(q){return Ge(q,ud,!1)}e.formatScriptKind=Sn;function sr(q){return Ge(q,rd,!0)}e.formatNodeFlags=sr;function $t(q){return Ge(q,nd,!0)}e.formatModifierFlags=$t;function St(q){return Ge(q,pd,!0)}e.formatTransformFlags=St;function xn(q){return Ge(q,dd,!0)}e.formatEmitFlags=xn;function Tr(q){return Ge(q,od,!0)}e.formatSymbolFlags=Tr;function vt(q){return Ge(q,sd,!0)}e.formatTypeFlags=vt;function ct(q){return Ge(q,cd,!0)}e.formatSignatureFlags=ct;function Ut(q){return Ge(q,_d,!0)}e.formatObjectFlags=Ut;function fr(q){return Ge(q,bl,!0)}e.formatFlowFlags=fr;function ht(q){return Ge(q,id,!0)}e.formatRelationComparisonResult=ht;function wn(q){return Ge(q,CheckMode,!0)}e.formatCheckMode=wn;function Tt(q){return Ge(q,SignatureCheckMode,!0)}e.formatSignatureCheckMode=Tt;function Or(q){return Ge(q,TypeFacts,!0)}e.formatTypeFacts=Or;let pt=!1,Mr;function at(q){"__debugFlowFlags"in q||Object.defineProperties(q,{__tsDebuggerDisplay:{value(){let oe=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",ge=this.flags&~(2048-1);return`${oe}${ge?` (${fr(ge)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,bl,!0)}},__debugToString:{value(){return Ae(this)}}})}function er(q){pt&&(typeof Object.setPrototypeOf=="function"?(Mr||(Mr=Object.create(Object.prototype),at(Mr)),Object.setPrototypeOf(q,Mr)):at(q))}e.attachFlowNodeDebugInfo=er;let Qt;function tn(q){"__tsDebuggerDisplay"in q||Object.defineProperties(q,{__tsDebuggerDisplay:{value(oe){return oe=String(oe).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${oe}`}}})}function Bn(q){pt&&(typeof Object.setPrototypeOf=="function"?(Qt||(Qt=Object.create(Array.prototype),tn(Qt)),Object.setPrototypeOf(q,Qt)):tn(q))}e.attachNodeArrayDebugInfo=Bn;function Un(){if(pt)return;let q=new WeakMap,oe=new WeakMap;Object.defineProperties(wt.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Se=this.flags&33554432?"TransientSymbol":"Symbol",nt=this.flags&-33554433;return`${Se} '${hd(this)}'${nt?` (${Tr(nt)})`:""}`}},__debugFlags:{get(){return Tr(this.flags)}}}),Object.defineProperties(wt.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Se=this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?`IntrinsicType ${this.intrinsicName}`:this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",nt=this.flags&524288?this.objectFlags&-1344:0;return`${Se}${this.symbol?` '${hd(this.symbol)}'`:""}${nt?` (${Ut(nt)})`:""}`}},__debugFlags:{get(){return vt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Ut(this.objectFlags):""}},__debugTypeToString:{value(){let Se=q.get(this);return Se===void 0&&(Se=this.checker.typeToString(this),q.set(this,Se)),Se}}}),Object.defineProperties(wt.getSignatureConstructor().prototype,{__debugFlags:{get(){return ct(this.flags)}},__debugSignatureToString:{value(){var Se;return(Se=this.checker)==null?void 0:Se.signatureToString(this)}}});let ge=[wt.getNodeConstructor(),wt.getIdentifierConstructor(),wt.getTokenConstructor(),wt.getSourceFileConstructor()];for(let Se of ge)Qr(Se.prototype,"__debugKind")||Object.defineProperties(Se.prototype,{__tsDebuggerDisplay:{value(){return`${wa(this)?"GeneratedIdentifier":Ee(this)?`Identifier '${Ot(this)}'`:jr(this)?`PrivateIdentifier '${Ot(this)}'`:mn(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:lo(this)?`NumericLiteral ${this.text}`:o6(this)?`BigIntLiteral ${this.text}n`:No(this)?"TypeParameterDeclaration":Ma(this)?"ParameterDeclaration":J_(this)?"ConstructorDeclaration":m_(this)?"GetAccessorDeclaration":Qo(this)?"SetAccessorDeclaration":c6(this)?"CallSignatureDeclaration":Vx(this)?"ConstructSignatureDeclaration":l6(this)?"IndexSignatureDeclaration":Hx(this)?"TypePredicateNode":R_(this)?"TypeReferenceNode":tu(this)?"FunctionTypeNode":u6(this)?"ConstructorTypeNode":Gx(this)?"TypeQueryNode":Am(this)?"TypeLiteralNode":Xx(this)?"ArrayTypeNode":$x(this)?"TupleTypeNode":Qx(this)?"OptionalTypeNode":Yx(this)?"RestTypeNode":Kx(this)?"UnionTypeNode":Zx(this)?"IntersectionTypeNode":e8(this)?"ConditionalTypeNode":t8(this)?"InferTypeNode":f6(this)?"ParenthesizedTypeNode":d6(this)?"ThisTypeNode":r8(this)?"TypeOperatorNode":n8(this)?"IndexedAccessTypeNode":i8(this)?"MappedTypeNode":m6(this)?"LiteralTypeNode":p6(this)?"NamedTupleMember":ru(this)?"ImportTypeNode":Xt(this.kind)}${this.flags?` (${sr(this.flags)})`:""}`}},__debugKind:{get(){return Xt(this.kind)}},__debugNodeFlags:{get(){return sr(this.flags)}},__debugModifierFlags:{get(){return $t(lS(this))}},__debugTransformFlags:{get(){return St(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Tl(this)}},__debugEmitFlags:{get(){return xn(ti(this))}},__debugGetText:{value(nt){if(Ta(this))return"";let z=oe.get(this);if(z===void 0){let X=Fl(this),ee=X&&ri(X);z=ee?Xo(ee,X,nt):"",oe.set(this,z)}return z}}});pt=!0}e.enableDebugInfo=Un;function rn(q){let oe=q&7,ge=oe===0?"in out":oe===3?"[bivariant]":oe===2?"in":oe===1?"out":oe===4?"[independent]":"";return q&8?ge+=" (unmeasurable)":q&16&&(ge+=" (unreliable)"),ge}e.formatVariance=rn;class nn{__debugToString(){var oe;switch(this.kind){case 3:return((oe=this.debugInfo)==null?void 0:oe.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return ey(this.sources,this.targets||Aa(this.sources,()=>"any"),(ge,Se)=>`${ge.__debugTypeToString()} -> ${typeof Se=="string"?Se:Se.__debugTypeToString()}`).join(", ");case 2:return ey(this.sources,this.targets,(ge,Se)=>`${ge.__debugTypeToString()} -> ${Se().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return Ce(this)}}}e.DebugTypeMapper=nn;function Di(q){return e.isDebugging?Object.setPrototypeOf(q,nn.prototype):q}e.attachDebugPrototypeIfDebug=Di;function qn(q){return console.log(Ae(q))}e.printControlFlowGraph=qn;function Ae(q){let oe=-1;function ge(x){return x.id||(x.id=oe,oe--),x.id}let Se;(x=>{x.lr="\u2500",x.ud="\u2502",x.dr="\u256D",x.dl="\u256E",x.ul="\u256F",x.ur="\u2570",x.udr="\u251C",x.udl="\u2524",x.dlr="\u252C",x.ulr="\u2534",x.udlr="\u256B"})(Se||(Se={}));let nt;(x=>{x[x.None=0]="None",x[x.Up=1]="Up",x[x.Down=2]="Down",x[x.Left=4]="Left",x[x.Right=8]="Right",x[x.UpDown=3]="UpDown",x[x.LeftRight=12]="LeftRight",x[x.UpLeft=5]="UpLeft",x[x.UpRight=9]="UpRight",x[x.DownLeft=6]="DownLeft",x[x.DownRight=10]="DownRight",x[x.UpDownLeft=7]="UpDownLeft",x[x.UpDownRight=11]="UpDownRight",x[x.UpLeftRight=13]="UpLeftRight",x[x.DownLeftRight=14]="DownLeftRight",x[x.UpDownLeftRight=15]="UpDownLeftRight",x[x.NoChildren=16]="NoChildren"})(nt||(nt={}));let z=2032,X=882,ee=Object.create(null),xe=[],ke=[],Le=ia(q,new Set);for(let x of xe)x.text=oa(x.flowNode,x.circular),En(x);let lt=Ii(Le),yt=aa(lt);return Vn(Le,0),Mt();function jt(x){return!!(x.flags&128)}function qr(x){return!!(x.flags&12)&&!!x.antecedents}function na(x){return!!(x.flags&z)}function Cn(x){return!!(x.flags&X)}function zn(x){let f=[];for(let $ of x.edges)$.source===x&&f.push($.target);return f}function Pi(x){let f=[];for(let $ of x.edges)$.target===x&&f.push($.source);return f}function ia(x,f){let $=ge(x),Q=ee[$];if(Q&&f.has(x))return Q.circular=!0,Q={id:-1,flowNode:x,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},xe.push(Q),Q;if(f.add(x),!Q)if(ee[$]=Q={id:$,flowNode:x,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},xe.push(Q),qr(x))for(let O of x.antecedents)Wn(Q,O,f);else na(x)&&Wn(Q,x.antecedent,f);return f.delete(x),Q}function Wn(x,f,$){let Q=ia(f,$),O={source:x,target:Q};ke.push(O),x.edges.push(O),Q.edges.push(O)}function En(x){if(x.level!==-1)return x.level;let f=0;for(let $ of Pi(x))f=Math.max(f,En($)+1);return x.level=f}function Ii(x){let f=0;for(let $ of zn(x))f=Math.max(f,Ii($));return f+1}function aa(x){let f=j(Array(x),0);for(let $ of xe)f[$.level]=Math.max(f[$.level],$.text.length);return f}function Vn(x,f){if(x.lane===-1){x.lane=f,x.endLane=f;let $=zn(x);for(let Q=0;Q<$.length;Q++){Q>0&&f++;let O=$[Q];Vn(O,f),O.endLane>x.endLane&&(f=O.endLane)}x.endLane=f}}function Sr(x){if(x&2)return"Start";if(x&4)return"Branch";if(x&8)return"Loop";if(x&16)return"Assignment";if(x&32)return"True";if(x&64)return"False";if(x&128)return"SwitchClause";if(x&256)return"ArrayMutation";if(x&512)return"Call";if(x&1024)return"ReduceLabel";if(x&1)return"Unreachable";throw new Error}function Je(x){let f=ri(x);return Xo(f,x,!1)}function oa(x,f){let $=Sr(x.flags);if(f&&($=`${$}#${ge(x)}`),Cn(x))x.node&&($+=` (${Je(x.node)})`);else if(jt(x)){let Q=[];for(let O=x.clauseStart;O<x.clauseEnd;O++){let fe=x.switchStatement.caseBlock.clauses[O];m8(fe)?Q.push("default"):Q.push(Je(fe.expression))}$+=` (${Q.join(", ")})`}return f==="circularity"?`Circular(${$})`:$}function Mt(){let x=yt.length,f=xe.reduce((be,he)=>Math.max(be,he.lane),0)+1,$=j(Array(f),""),Q=yt.map(()=>Array(f)),O=yt.map(()=>j(Array(f),0));for(let be of xe){Q[be.level][be.lane]=be;let he=zn(be);for(let we=0;we<he.length;we++){let et=he[we],Ye=8;et.lane===be.lane&&(Ye|=4),we>0&&(Ye|=1),we<he.length-1&&(Ye|=2),O[be.level][et.lane]|=Ye}he.length===0&&(O[be.level][be.lane]|=16);let Re=Pi(be);for(let we=0;we<Re.length;we++){let et=Re[we],Ye=4;we>0&&(Ye|=1),we<Re.length-1&&(Ye|=2),O[be.level-1][et.lane]|=Ye}}for(let be=0;be<x;be++)for(let he=0;he<f;he++){let Re=be>0?O[be-1][he]:0,we=he>0?O[be][he-1]:0,et=O[be][he];et||(Re&8&&(et|=12),we&2&&(et|=3),O[be][he]=et)}for(let be=0;be<x;be++)for(let he=0;he<$.length;he++){let Re=O[be][he],we=Re&4?"\u2500":" ",et=Q[be][he];et?(fe(he,et.text),be<x-1&&(fe(he," "),fe(he,T(we,yt[be]-et.text.length)))):be<x-1&&fe(he,T(we,yt[be]+1)),fe(he,Lr(Re)),fe(he,Re&8&&be<x-1&&!Q[be+1][he]?"\u2500":" ")}return`
${$.join(`
`)}
`;function fe(be,he){$[be]+=he}}function Lr(x){switch(x){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function j(x,f){if(x.fill)x.fill(f);else for(let $=0;$<x.length;$++)x[$]=f;return x}function T(x,f){if(x.repeat)return f>0?x.repeat(f):"";let $="";for(;$.length<f;)$+=x;return $}}e.formatControlFlowGraph=Ae})(N||(N={}))}}),fE=()=>{},dE=()=>{},mE=()=>{},Sa=Date.now,hE=()=>{},Kf=new Proxy(()=>{},{get:()=>Kf});function Mb(e){if(fg){let t=_y.get(e)??0;_y.set(e,t+1),ed.set(e,Sa()),Zf==null||Zf.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function yE(e,t,r){if(fg){let a=(r!==void 0?ed.get(r):void 0)??Sa(),_=(t!==void 0?ed.get(t):void 0)??Hv,p=cy.get(e)||0;cy.set(e,p+(a-_)),Zf==null||Zf.measure(e,t,r)}}var Zf,gE,fg,Hv,ed,_y,cy,XV=Vt({"src/compiler/performance.ts"(){"use strict";Dr(),gE={enter:Rn,exit:Rn},fg=!1,Hv=Sa(),ed=new Map,_y=new Map,cy=new Map}}),Gv=()=>{},bE=()=>{},xa;function vE(e,t=!0){let r=ld[e.category];return t?r.toLowerCase():r}var td,rd,nd,ly,id,uy,py,bl,fy,ad,dy,my,hy,yy,gy,by,vy,Ty,Sy,xy,wy,Cy,Ey,Ay,ky,od,Dy,Py,Iy,Ny,sd,_d,Oy,My,Ly,Jy,Ry,jy,cd,Fy,By,Uy,qy,zy,Wy,ld,Vy,Hy,Gy,Xy,$y,Qy,Yy,Ky,Zy,ud,e0,t0,r0,n0,i0,pd,fd,dd,a0,o0,s0,_0,c0,l0,u0,p0,zd,Xv=Vt({"src/compiler/types.ts"(){"use strict";td=(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.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]