UNPKG

vite-plugin-entry-shaking-debugger

Version:
32 lines (30 loc) 3.49 MB
import{s as Wpt}from"./index-KgVZN0dg.js";function Upt(Xe,ht){for(var Zt=0;Zt<ht.length;Zt++){const Wt=ht[Zt];if(typeof Wt!="string"&&!Array.isArray(Wt)){for(const rr in Wt)if(rr!=="default"&&!(rr in Xe)){const Ue=Object.getOwnPropertyDescriptor(Wt,rr);Ue&&Object.defineProperty(Xe,rr,Ue.get?Ue:{enumerable:!0,get:()=>Wt[rr]})}}}return Object.freeze(Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"}))}var M5e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function aFe(Xe){return Xe&&Xe.__esModule&&Object.prototype.hasOwnProperty.call(Xe,"default")?Xe.default:Xe}function qpt(Xe){if(Xe.__esModule)return Xe;var ht=Xe.default;if(typeof ht=="function"){var Zt=function Wt(){return this instanceof Wt?Reflect.construct(ht,arguments,this.constructor):ht.apply(this,arguments)};Zt.prototype=ht.prototype}else Zt={};return Object.defineProperty(Zt,"__esModule",{value:!0}),Object.keys(Xe).forEach(function(Wt){var rr=Object.getOwnPropertyDescriptor(Xe,Wt);Object.defineProperty(Zt,Wt,rr.get?rr:{enumerable:!0,get:function(){return Xe[Wt]}})}),Zt}function R5e(Xe){throw new Error('Could not dynamically require "'+Xe+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var p0e={exports:{}};const Hpt={},Gpt=Object.freeze(Object.defineProperty({__proto__:null,default:Hpt},Symbol.toStringTag,{value:"Module"})),Qk=qpt(Gpt);var j5e;function dFe(){return j5e||(j5e=1,function(Xe){var ht={};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var Zt=(()=>{var Wt=Object.defineProperty,rr=Object.getOwnPropertyNames,Ue=(e,t)=>function(){return e&&(t=(0,e[rr(e)[0]])(e=0)),t},Bn=(e,t)=>function(){return t||(0,e[rr(e)[0]])((t={exports:{}}).exports,t),t.exports},bn=(e,t)=>{for(var n in t)Wt(e,n,{get:t[n],enumerable:!0})},Si,lr,Tr,ei=Ue({"src/compiler/corePublic.ts"(){Si="5.4",lr="5.4.3",Tr=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Tr||{})}});function yt(e){return e?e.length:0}function kt(e,t){if(e)for(let n=0;n<e.length;n++){const i=t(e[n],n);if(i)return i}}function Sn(e,t){if(e)for(let n=e.length-1;n>=0;n--){const i=t(e[n],n);if(i)return i}}function ns(e,t){if(e!==void 0)for(let n=0;n<e.length;n++){const i=t(e[n],n);if(i!==void 0)return i}}function Ha(e,t){for(const n of e){const i=t(n);if(i!==void 0)return i}}function xa(e,t,n){let i=n;if(e){let s=0;for(const o of e)i=t(i,o,s),s++}return i}function Do(e,t,n){const i=[];E.assertEqual(e.length,t.length);for(let s=0;s<e.length;s++)i.push(n(e[s],t[s],s));return i}function Bc(e,t){if(e.length<=1)return e;const n=[];for(let i=0,s=e.length;i<s;i++)i&&n.push(t),n.push(e[i]);return n}function si(e,t){if(e){for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1}return!0}function on(e,t,n){if(e!==void 0)for(let i=n??0;i<e.length;i++){const s=e[i];if(t(s,i))return s}}function _u(e,t,n){if(e!==void 0)for(let i=n??e.length-1;i>=0;i--){const s=e[i];if(t(s,i))return s}}function bs(e,t,n){if(e===void 0)return-1;for(let i=n??0;i<e.length;i++)if(t(e[i],i))return i;return-1}function ka(e,t,n){if(e===void 0)return-1;for(let i=n??e.length-1;i>=0;i--)if(t(e[i],i))return i;return-1}function of(e,t){for(let n=0;n<e.length;n++){const i=t(e[n],n);if(i)return i}return E.fail()}function wi(e,t,n=f0){if(e){for(const i of e)if(n(i,t))return!0}return!1}function Ya(e,t,n=f0){return e.length===t.length&&e.every((i,s)=>n(i,t[s]))}function Vl(e,t,n){for(let i=n||0;i<e.length;i++)if(wi(t,e.charCodeAt(i)))return i;return-1}function Bu(e,t){let n=0;if(e)for(let i=0;i<e.length;i++){const s=e[i];t(s,i)&&n++}return n}function vn(e,t){if(e){const n=e.length;let i=0;for(;i<n&&t(e[i]);)i++;if(i<n){const s=e.slice(0,i);for(i++;i<n;){const o=e[i];t(o)&&s.push(o),i++}return s}}return e}function pm(e,t){let n=0;for(let i=0;i<e.length;i++)t(e[i],i,e)&&(e[n]=e[i],n++);e.length=n}function H_(e){e.length=0}function nr(e,t){let n;if(e){n=[];for(let i=0;i<e.length;i++)n.push(t(e[i],i))}return n}function*$v(e,t){for(const n of e)yield t(n)}function kc(e,t){if(e)for(let n=0;n<e.length;n++){const i=e[n],s=t(i,n);if(i!==s){const o=e.slice(0,n);for(o.push(s),n++;n<e.length;n++)o.push(t(e[n],n));return o}}return e}function Hf(e){const t=[];for(const n of e)n&&(Ss(n)?Jn(t,n):t.push(n));return t}function ra(e,t){let n;if(e)for(let i=0;i<e.length;i++){const s=t(e[i],i);s&&(Ss(s)?n=Jn(n,s):n=yr(n,s))}return n||We}function wb(e,t){const n=[];if(e)for(let i=0;i<e.length;i++){const s=t(e[i],i);s&&(Ss(s)?Jn(n,s):n.push(s))}return n}function*sE(e,t){for(const n of e){const i=t(n);i&&(yield*i)}}function ND(e,t){let n;if(e)for(let i=0;i<e.length;i++){const s=e[i],o=t(s,i);(n||s!==o||Ss(o))&&(n||(n=e.slice(0,i)),Ss(o)?Jn(n,o):n.push(o))}return n||e}function aE(e,t){const n=[];for(let i=0;i<e.length;i++){const s=t(e[i],i);if(s===void 0)return;n.push(s)}return n}function qi(e,t){const n=[];if(e)for(let i=0;i<e.length;i++){const s=t(e[i],i);s!==void 0&&n.push(s)}return n}function*fi(e,t){for(const n of e){const i=t(n);i!==void 0&&(yield i)}}function Oo(e,t){if(!e)return;const n=new Map;return e.forEach((i,s)=>{const o=t(s,i);if(o!==void 0){const[c,u]=o;c!==void 0&&u!==void 0&&n.set(c,u)}}),n}function Fc(e,t,n){if(e.has(t))return e.get(t);const i=n();return e.set(t,i),i}function To(e,t){return e.has(t)?!1:(e.add(t),!0)}function*Zc(e){yield e}function cf(e,t,n){let i;if(e){i=[];const s=e.length;let o,c,u=0,f=0;for(;u<s;){for(;f<s;){const g=e[f];if(c=t(g,f),f===0)o=c;else if(c!==o)break;f++}if(u<f){const g=n(e.slice(u,f),o,u,f);g&&i.push(g),u=f}o=c,f++}}return i}function Ab(e,t){if(!e)return;const n=new Map;return e.forEach((i,s)=>{const[o,c]=t(s,i);n.set(o,c)}),n}function _t(e,t){if(e)if(t){for(const n of e)if(t(n))return!0}else return e.length>0;return!1}function ID(e,t,n){let i;for(let s=0;s<e.length;s++)t(e[s])?i=i===void 0?s:i:i!==void 0&&(n(i,s),i=void 0);i!==void 0&&n(i,e.length)}function es(e,t){return _t(t)?_t(e)?[...e,...t]:t:e}function vB(e,t){return t}function Xk(e){return e.map(vB)}function PFe(e,t,n){const i=Xk(e);w0e(e,i,n);let s=e[i[0]];const o=[i[0]];for(let c=1;c<i.length;c++){const u=i[c],f=e[u];t(s,f)||(o.push(u),s=f)}return o.sort(),o.map(c=>e[c])}function DFe(e,t){const n=[];for(const i of e)dp(n,i,t);return n}function Qv(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?PFe(e,t,n):DFe(e,t)}function wFe(e,t){if(e.length===0)return We;let n=e[0];const i=[n];for(let s=1;s<e.length;s++){const o=e[s];switch(t(o,n)){case!0:case 0:continue;case-1:return E.fail("Array is unsorted.")}i.push(n=o)}return i}function bB(){return[]}function ly(e,t,n,i){if(e.length===0)return e.push(t),!0;const s=l0(e,t,Xo,n);return s<0?(e.splice(~s,0,t),!0):i?(e.splice(s,0,t),!0):!1}function oE(e,t,n){return wFe(Nb(e,t),n||t||Ju)}function g7(e,t){if(e.length<2)return!0;for(let n=1,i=e.length;n<i;n++)if(t(e[n-1],e[n])===1)return!1;return!0}function cE(e,t,n,i){let s=3;if(e.length<2)return s;let o=t(e[0]);for(let c=1,u=e.length;c<u&&s!==0;c++){const f=t(e[c]);s&1&&n(o,f)>0&&(s&=-2),s&2&&i(o,f)>0&&(s&=-3),o=f}return s}function Bd(e,t,n=f0){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!n(e[i],t[i],i))return!1;return!0}function FD(e){let t;if(e)for(let n=0;n<e.length;n++){const i=e[n];(t||!i)&&(t||(t=e.slice(0,n)),i&&t.push(i))}return t||e}function $K(e,t,n){if(!t||!e||t.length===0||e.length===0)return t;const i=[];e:for(let s=0,o=0;o<t.length;o++){o>0&&E.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const c=s;s<e.length;s++)switch(s>c&&E.assertGreaterThanOrEqual(n(e[s],e[s-1]),0),n(t[o],e[s])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return i}function yr(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Yk(e,t){return e===void 0?t:t===void 0?e:Ss(e)?Ss(t)?es(e,t):yr(e,t):Ss(t)?yr(t,e):[e,t]}function QK(e,t){return t<0?e.length+t:t}function Jn(e,t,n,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,i);n=n===void 0?0:QK(t,n),i=i===void 0?t.length:QK(t,i);for(let s=n;s<i&&s<t.length;s++)t[s]!==void 0&&e.push(t[s]);return e}function dp(e,t,n){return wi(e,t,n)?!1:(e.push(t),!0)}function yh(e,t,n){return e?(dp(e,t,n),e):[t]}function w0e(e,t,n){t.sort((i,s)=>n(e[i],e[s])||Yo(i,s))}function Nb(e,t){return e.length===0?e:e.slice().sort(t)}function*SB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function c0(e,t){const n=Xk(e);return w0e(e,n,t),n.map(i=>e[i])}function TB(e,t,n,i){for(;n<i;){if(e[n]!==t[n])return!1;n++}return!0}function Wl(e){return e===void 0||e.length===0?void 0:e[0]}function h7(e){if(e)for(const t of e)return t}function Ma(e){return E.assert(e.length!==0),e[0]}function xB(e){for(const t of e)return t;E.fail("iterator is empty")}function Qo(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function za(e){return E.assert(e.length!==0),e[e.length-1]}function Xm(e){return e&&e.length===1?e[0]:void 0}function kB(e){return E.checkDefined(Xm(e))}function Ym(e){return e&&e.length===1?e[0]:e}function CB(e,t,n){const i=e.slice(0);return i[t]=n,i}function l0(e,t,n,i,s){return JT(e,n(t),n,i,s)}function JT(e,t,n,i,s){if(!_t(e))return-1;let o=s||0,c=e.length-1;for(;o<=c;){const u=o+(c-o>>1),f=n(e[u],u);switch(i(f,t)){case-1:o=u+1;break;case 0:return u;case 1:c=u-1;break}}return~o}function e_(e,t,n,i,s){if(e&&e.length>0){const o=e.length;if(o>0){let c=i===void 0||i<0?0:i;const u=s===void 0||c+s>o-1?o-1:c+s;let f;for(arguments.length<=2?(f=e[c],c++):f=n;c<=u;)f=t(f,e[c],c),c++;return f}}return n}function yo(e,t){return fy.call(e,t)}function y7(e,t){return fy.call(e,t)?e[t]:void 0}function Og(e){const t=[];for(const n in e)fy.call(e,n)&&t.push(n);return t}function A0e(e){const t=[];do{const n=Object.getOwnPropertyNames(e);for(const i of n)dp(t,i)}while(e=Object.getPrototypeOf(e));return t}function zT(e){const t=[];for(const n in e)fy.call(e,n)&&t.push(e[n]);return t}function XK(e,t){const n=new Array(e);for(let i=0;i<e;i++)n[i]=t(i);return n}function Is(e,t){const n=[];for(const i of e)n.push(t?t(i):i);return n}function Zk(e,...t){for(const n of t)if(n!==void 0)for(const i in n)yo(n,i)&&(e[i]=n[i]);return e}function YK(e,t,n=f0){if(e===t)return!0;if(!e||!t)return!1;for(const i in e)if(fy.call(e,i)&&(!fy.call(t,i)||!n(e[i],t[i])))return!1;for(const i in t)if(fy.call(t,i)&&!fy.call(e,i))return!1;return!0}function Xv(e,t,n=Xo){const i=new Map;for(const s of e){const o=t(s);o!==void 0&&i.set(o,n(s))}return i}function ZK(e,t,n=Xo){const i=[];for(const s of e)i[t(s)]=n(s);return i}function OD(e,t,n=Xo){const i=Gf();for(const s of e)i.add(t(s),n(s));return i}function lE(e,t,n=Xo){return Is(OD(e,t).values(),n)}function v7(e,t){const n={};if(e)for(const i of e){const s=`${t(i)}`;(n[s]??(n[s]=[])).push(i)}return n}function EB(e){const t={};for(const n in e)fy.call(e,n)&&(t[n]=e[n]);return t}function b7(e,t){const n={};for(const i in t)fy.call(t,i)&&(n[i]=t[i]);for(const i in e)fy.call(e,i)&&(n[i]=e[i]);return n}function PB(e,t){for(const n in t)fy.call(t,n)&&(e[n]=t[n])}function Qs(e,t){return t?t.bind(e):void 0}function Gf(){const e=new Map;return e.add=AFe,e.remove=NFe,e}function AFe(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}function NFe(e,t){const n=this.get(e);n&&(WT(n,t),n.length||this.delete(e))}function LD(e){const t=(e==null?void 0:e.slice())||[];let n=0;function i(){return n===t.length}function s(...c){t.push(...c)}function o(){if(i())throw new Error("Queue is empty");const c=t[n];if(t[n]=void 0,n++,n>100&&n>t.length>>1){const u=t.length-n;t.copyWithin(0,n),t.length=u,n=0}return c}return{enqueue:s,dequeue:o,isEmpty:i}}function DB(e,t){const n=new Map;let i=0;function*s(){for(const c of n.values())Ss(c)?yield*c:yield c}const o={has(c){const u=e(c);if(!n.has(u))return!1;const f=n.get(u);if(!Ss(f))return t(f,c);for(const g of f)if(t(g,c))return!0;return!1},add(c){const u=e(c);if(n.has(u)){const f=n.get(u);if(Ss(f))wi(f,c,t)||(f.push(c),i++);else{const g=f;t(g,c)||(n.set(u,[g,c]),i++)}}else n.set(u,c),i++;return this},delete(c){const u=e(c);if(!n.has(u))return!1;const f=n.get(u);if(Ss(f)){for(let g=0;g<f.length;g++)if(t(f[g],c))return f.length===1?n.delete(u):f.length===2?n.set(u,f[1-g]):NB(f,g),i--,!0}else if(t(f,c))return n.delete(u),i--,!0;return!1},clear(){n.clear(),i=0},get size(){return i},forEach(c){for(const u of Is(n.values()))if(Ss(u))for(const f of u)c(f,f,o);else{const f=u;c(f,f,o)}},keys(){return s()},values(){return s()},*entries(){for(const c of s())yield[c,c]},[Symbol.iterator]:()=>s(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function Ss(e){return Array.isArray(e)}function VT(e){return Ss(e)?e:[e]}function Cs(e){return typeof e=="string"}function u0(e){return typeof e=="number"}function Zn(e,t){return e!==void 0&&t(e)?e:void 0}function Xs(e,t){return e!==void 0&&t(e)?e:E.fail(`Invalid cast. The supplied value ${e} did not pass the test '${E.getFunctionName(t)}'.`)}function Va(e){}function Jd(){return!1}function _0(){return!0}function N1(){}function Xo(e){return e}function KK(e){return e.toLowerCase()}function Zm(e){return _ee.test(e)?e.replace(_ee,KK):e}function Bs(){throw new Error("Not implemented")}function v_(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Km(e){const t=new Map;return n=>{const i=`${typeof n}:${n}`;let s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(n),t.set(i,s)),s}}function N0e(e){const t=new WeakMap;return n=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(n),t.set(n,i)),i}}function eee(e,t){return(...n)=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(...n),t.set(n,i)),i}}function I0e(e,t,n,i,s){if(s){const o=[];for(let c=0;c<arguments.length;c++)o[c]=arguments[c];return c=>e_(o,(u,f)=>f(u),c)}else return i?o=>i(n(t(e(o)))):n?o=>n(t(e(o))):t?o=>t(e(o)):e?o=>e(o):o=>o}function f0(e,t){return e===t}function I1(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Ib(e,t){return f0(e,t)}function F0e(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Yo(e,t){return F0e(e,t)}function S7(e,t){return Yo(e==null?void 0:e.start,t==null?void 0:t.start)||Yo(e==null?void 0:e.length,t==null?void 0:t.length)}function wB(e,t){return e_(e,(n,i)=>t(n,i)===-1?n:i)}function T7(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 tee(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 Ju(e,t){return F0e(e,t)}function Kk(e){return e?T7:Ju}function ree(){return RB}function nee(e){RB!==e&&(RB=e,fee=void 0)}function MD(e,t){return(fee||(fee=M0e(RB)))(e,t)}function iee(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function uy(e,t){return Yo(e?1:0,t?1:0)}function uE(e,t,n){const i=Math.max(2,Math.floor(e.length*.34));let s=Math.floor(e.length*.4)+1,o;for(const c of t){const u=n(c);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;const f=IFe(e,u,s-.1);if(f===void 0)continue;E.assert(f<s),s=f,o=c}}return o}function IFe(e,t,n){let i=new Array(t.length+1),s=new Array(t.length+1);const o=n+.01;for(let u=0;u<=t.length;u++)i[u]=u;for(let u=1;u<=e.length;u++){const f=e.charCodeAt(u-1),g=Math.ceil(u>n?u-n:1),d=Math.floor(t.length>n+u?n+u:t.length);s[0]=u;let y=u;for(let T=1;T<g;T++)s[T]=o;for(let T=g;T<=d;T++){const k=e[u-1].toLowerCase()===t[T-1].toLowerCase()?i[T-1]+.1:i[T-1]+2,w=f===t.charCodeAt(T-1)?i[T-1]:Math.min(i[T]+1,s[T-1]+1,k);s[T]=w,y=Math.min(y,w)}for(let T=d+1;T<=t.length;T++)s[T]=o;if(y>n)return;const S=i;i=s,s=S}const c=i[t.length];return c>n?void 0:c}function yc(e,t,n){const i=e.length-t.length;return i>=0&&(n?I1(e.slice(i),t):e.indexOf(t,i)===i)}function eC(e,t){return yc(e,t)?e.slice(0,e.length-t.length):e}function see(e,t){return yc(e,t)?e.slice(0,e.length-t.length):void 0}function AB(e){let t=e.length;for(let n=t-1;n>0;n--){let i=e.charCodeAt(n);if(i>=48&&i<=57)do--n,i=e.charCodeAt(n);while(n>0&&i>=48&&i<=57);else if(n>4&&(i===110||i===78)){if(--n,i=e.charCodeAt(n),i!==105&&i!==73||(--n,i=e.charCodeAt(n),i!==109&&i!==77))break;--n,i=e.charCodeAt(n)}else break;if(i!==45&&i!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function tC(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return _y(e,n),!0;return!1}function _y(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function NB(e,t){e[t]=e[e.length-1],e.pop()}function WT(e,t){return FFe(e,n=>n===t)}function FFe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return NB(e,n),!0;return!1}function Eu(e){return e?Xo:Zm}function aee({prefix:e,suffix:t}){return`${e}*${t}`}function oee(e,t){return E.assert(x7(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function IB(e,t,n){let i,s=-1;for(const o of e){const c=t(o);x7(c,n)&&c.prefix.length>s&&(s=c.prefix.length,i=o)}return i}function is(e,t,n){return n?I1(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function _E(e,t){return is(e,t)?e.substr(t.length):e}function FB(e,t,n=Xo){return is(n(e),n(t))?e.substring(t.length):void 0}function x7({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&is(n,e)&&yc(n,t)}function k7(e,t){return n=>e(n)&&t(n)}function zd(...e){return(...t)=>{let n;for(const i of e)if(n=i(...t),n)return n;return n}}function C7(e){return(...t)=>!e(...t)}function O0e(e){}function UT(e){return e===void 0?void 0:[e]}function E7(e,t,n,i,s,o){o=o||Va;let c=0,u=0;const f=e.length,g=t.length;let d=!1;for(;c<f&&u<g;){const y=e[c],S=t[u],T=n(y,S);T===-1?(i(y),c++,d=!0):T===1?(s(S),u++,d=!0):(o(S,y),c++,u++)}for(;c<f;)i(e[c++]),d=!0;for(;u<g;)s(t[u++]),d=!0;return d}function cee(e){const t=[];return L0e(e,t,void 0,0),t}function L0e(e,t,n,i){for(const s of e[i]){let o;n?(o=n.slice(),o.push(s)):o=[s],i===e.length-1?t.push(o):L0e(e,t,o,i+1)}}function P7(e,t){if(e){const n=e.length;let i=0;for(;i<n&&t(e[i]);)i++;return e.slice(0,i)}}function lee(e,t){if(e){const n=e.length;let i=0;for(;i<n&&t(e[i]);)i++;return e.slice(i)}}function OB(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&!0}var We,D7,uee,LB,p0,fy,_ee,MB,M0e,fee,RB,OFe=Ue({"src/compiler/core.ts"(){$s(),We=[],D7=new Map,uee=new Set,LB=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(LB||{}),p0=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e&&(t=QK(e,t),t<e.length))return e[t]},fy=Object.prototype.hasOwnProperty,_ee=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,MB=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(MB||{}),M0e=(()=>{return t;function e(n,i,s){if(n===i)return 0;if(n===void 0)return-1;if(i===void 0)return 1;const o=s(n,i);return o<0?-1:o>0?1:0}function t(n){const i=new Intl.Collator(n,{usage:"sort",sensitivity:"variant"}).compare;return(s,o)=>e(s,o,i)}})()}}),jB,E,LFe=Ue({"src/compiler/debug.ts"(){$s(),$s(),jB=(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))(jB||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(Xt){return e.currentLogLevel<=Xt}e.shouldLog=n;function i(Xt,qe){e.loggingHost&&n(Xt)&&e.loggingHost.log(Xt,qe)}function s(Xt){i(3,Xt)}e.log=s,(Xt=>{function qe(di){i(1,di)}Xt.error=qe;function Nt(di){i(2,di)}Xt.warn=Nt;function vr(di){i(3,di)}Xt.log=vr;function ni(di){i(4,di)}Xt.trace=ni})(s=e.log||(e.log={}));const o={};function c(){return t}e.getAssertionLevel=c;function u(Xt){const qe=t;if(t=Xt,Xt>qe)for(const Nt of Og(o)){const vr=o[Nt];vr!==void 0&&e[Nt]!==vr.assertion&&Xt>=vr.level&&(e[Nt]=vr,o[Nt]=void 0)}}e.setAssertionLevel=u;function f(Xt){return t>=Xt}e.shouldAssert=f;function g(Xt,qe){return f(Xt)?!0:(o[qe]={level:Xt,assertion:e[qe]},e[qe]=Va,!1)}function d(Xt,qe){debugger;const Nt=new Error(Xt?`Debug Failure. ${Xt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Nt,qe||d),Nt}e.fail=d;function y(Xt,qe,Nt){return d(`${qe||"Unexpected node."}\r Node ${fe(Xt.kind)} was unexpected.`,Nt||y)}e.failBadSyntaxKind=y;function S(Xt,qe,Nt,vr){Xt||(qe=qe?`False expression: ${qe}`:"False expression.",Nt&&(qe+=`\r Verbose Debug Information: `+(typeof Nt=="string"?Nt:Nt())),d(qe,vr||S))}e.assert=S;function T(Xt,qe,Nt,vr,ni){if(Xt!==qe){const di=Nt?vr?`${Nt} ${vr}`:Nt:"";d(`Expected ${Xt} === ${qe}. ${di}`,ni||T)}}e.assertEqual=T;function k(Xt,qe,Nt,vr){Xt>=qe&&d(`Expected ${Xt} < ${qe}. ${Nt||""}`,vr||k)}e.assertLessThan=k;function w(Xt,qe,Nt){Xt>qe&&d(`Expected ${Xt} <= ${qe}`,Nt||w)}e.assertLessThanOrEqual=w;function D(Xt,qe,Nt){Xt<qe&&d(`Expected ${Xt} >= ${qe}`,Nt||D)}e.assertGreaterThanOrEqual=D;function F(Xt,qe,Nt){Xt==null&&d(qe,Nt||F)}e.assertIsDefined=F;function J(Xt,qe,Nt){return F(Xt,qe,Nt||J),Xt}e.checkDefined=J;function U(Xt,qe,Nt){for(const vr of Xt)F(vr,qe,Nt||U)}e.assertEachIsDefined=U;function Q(Xt,qe,Nt){return U(Xt,qe,Nt||Q),Xt}e.checkEachDefined=Q;function B(Xt,qe="Illegal value:",Nt){const vr=typeof Xt=="object"&&yo(Xt,"kind")&&yo(Xt,"pos")?"SyntaxKind: "+fe(Xt.kind):JSON.stringify(Xt);return d(`${qe} ${vr}`,Nt||B)}e.assertNever=B;function re(Xt,qe,Nt,vr){g(1,"assertEachNode")&&S(qe===void 0||si(Xt,qe),Nt||"Unexpected node.",()=>`Node array did not pass test '${ee(qe)}'.`,vr||re)}e.assertEachNode=re;function R(Xt,qe,Nt,vr){g(1,"assertNode")&&S(Xt!==void 0&&(qe===void 0||qe(Xt)),Nt||"Unexpected node.",()=>`Node ${fe(Xt==null?void 0:Xt.kind)} did not pass test '${ee(qe)}'.`,vr||R)}e.assertNode=R;function Y(Xt,qe,Nt,vr){g(1,"assertNotNode")&&S(Xt===void 0||qe===void 0||!qe(Xt),Nt||"Unexpected node.",()=>`Node ${fe(Xt.kind)} should not have passed test '${ee(qe)}'.`,vr||Y)}e.assertNotNode=Y;function ue(Xt,qe,Nt,vr){g(1,"assertOptionalNode")&&S(qe===void 0||Xt===void 0||qe(Xt),Nt||"Unexpected node.",()=>`Node ${fe(Xt==null?void 0:Xt.kind)} did not pass test '${ee(qe)}'.`,vr||ue)}e.assertOptionalNode=ue;function de(Xt,qe,Nt,vr){g(1,"assertOptionalToken")&&S(qe===void 0||Xt===void 0||Xt.kind===qe,Nt||"Unexpected node.",()=>`Node ${fe(Xt==null?void 0:Xt.kind)} was not a '${fe(qe)}' token.`,vr||de)}e.assertOptionalToken=de;function H(Xt,qe,Nt){g(1,"assertMissingNode")&&S(Xt===void 0,qe||"Unexpected node.",()=>`Node ${fe(Xt.kind)} was unexpected'.`,Nt||H)}e.assertMissingNode=H;function q(Xt){}e.type=q;function ee(Xt){if(typeof Xt!="function")return"";if(yo(Xt,"name"))return Xt.name;{const qe=Function.prototype.toString.call(Xt),Nt=/^function\s+([\w$]+)\s*\(/.exec(qe);return Nt?Nt[1]:""}}e.getFunctionName=ee;function oe(Xt){return`{ name: ${ji(Xt.escapedName)}; flags: ${mt(Xt.flags)}; declarations: ${nr(Xt.declarations,qe=>fe(qe.kind))} }`}e.formatSymbol=oe;function Se(Xt=0,qe,Nt){const vr=K(qe);if(Xt===0)return vr.length>0&&vr[0][0]===0?vr[0][1]:"0";if(Nt){const ni=[];let di=Xt;for(const[Gi,hs]of vr){if(Gi>Xt)break;Gi!==0&&Gi&Xt&&(ni.push(hs),di&=~Gi)}if(di===0)return ni.join("|")}else for(const[ni,di]of vr)if(ni===Xt)return di;return Xt.toString()}e.formatEnum=Se;const ae=new Map;function K(Xt){const qe=ae.get(Xt);if(qe)return qe;const Nt=[];for(const ni in Xt){const di=Xt[ni];typeof di=="number"&&Nt.push([di,ni])}const vr=c0(Nt,(ni,di)=>Yo(ni[0],di[0]));return ae.set(Xt,vr),vr}function fe(Xt){return Se(Xt,A7,!1)}e.formatSyntaxKind=fe;function ke(Xt){return Se(Xt,W7,!1)}e.formatSnippetKind=ke;function Oe(Xt){return Se(Xt,z7,!1)}e.formatScriptKind=Oe;function ge(Xt){return Se(Xt,N7,!0)}e.formatNodeFlags=ge;function be(Xt){return Se(Xt,I7,!0)}e.formatModifierFlags=be;function xe(Xt){return Se(Xt,V7,!0)}e.formatTransformFlags=xe;function De(Xt){return Se(Xt,U7,!0)}e.formatEmitFlags=De;function mt(Xt){return Se(Xt,R7,!0)}e.formatSymbolFlags=mt;function he(Xt){return Se(Xt,j7,!0)}e.formatTypeFlags=he;function Fe(Xt){return Se(Xt,J7,!0)}e.formatSignatureFlags=Fe;function Qe(Xt){return Se(Xt,B7,!0)}e.formatObjectFlags=Qe;function It(Xt){return Se(Xt,JD,!0)}e.formatFlowFlags=It;function lt(Xt){return Se(Xt,F7,!0)}e.formatRelationComparisonResult=lt;function Be(Xt){return Se(Xt,O9,!0)}e.formatCheckMode=Be;function gt(Xt){return Se(Xt,L9,!0)}e.formatSignatureCheckMode=gt;function qt(Xt){return Se(Xt,F9,!0)}e.formatTypeFacts=qt;let Gt=!1,xr;function Vr(Xt){"__debugFlowFlags"in Xt||Object.defineProperties(Xt,{__tsDebuggerDisplay:{value(){const qe=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",Nt=this.flags&-2048;return`${qe}${Nt?` (${It(Nt)})`:""}`}},__debugFlowFlags:{get(){return Se(this.flags,JD,!0)}},__debugToString:{value(){return hn(this)}}})}function or(Xt){Gt&&(typeof Object.setPrototypeOf=="function"?(xr||(xr=Object.create(Object.prototype),Vr(xr)),Object.setPrototypeOf(Xt,xr)):Vr(Xt))}e.attachFlowNodeDebugInfo=or;let zt;function Jt(Xt){"__tsDebuggerDisplay"in Xt||Object.defineProperties(Xt,{__tsDebuggerDisplay:{value(qe){return qe=String(qe).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${qe}`}}})}function pi(Xt){Gt&&(typeof Object.setPrototypeOf=="function"?(zt||(zt=Object.create(Array.prototype),Jt(zt)),Object.setPrototypeOf(Xt,zt)):Jt(Xt))}e.attachNodeArrayDebugInfo=pi;function ts(){if(Gt)return;const Xt=new WeakMap,qe=new WeakMap;Object.defineProperties(tu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const vr=this.flags&33554432?"TransientSymbol":"Symbol",ni=this.flags&-33554433;return`${vr} '${gc(this)}'${ni?` (${mt(ni)})`:""}`}},__debugFlags:{get(){return mt(this.flags)}}}),Object.defineProperties(tu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const vr=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",ni=this.flags&524288?this.objectFlags&-1344:0;return`${vr}${this.symbol?` '${gc(this.symbol)}'`:""}${ni?` (${Qe(ni)})`:""}`}},__debugFlags:{get(){return he(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Qe(this.objectFlags):""}},__debugTypeToString:{value(){let vr=Xt.get(this);return vr===void 0&&(vr=this.checker.typeToString(this),Xt.set(this,vr)),vr}}}),Object.defineProperties(tu.getSignatureConstructor().prototype,{__debugFlags:{get(){return Fe(this.flags)}},__debugSignatureToString:{value(){var vr;return(vr=this.checker)==null?void 0:vr.signatureToString(this)}}});const Nt=[tu.getNodeConstructor(),tu.getIdentifierConstructor(),tu.getTokenConstructor(),tu.getSourceFileConstructor()];for(const vr of Nt)yo(vr.prototype,"__debugKind")||Object.defineProperties(vr.prototype,{__tsDebuggerDisplay:{value(){return`${tc(this)?"GeneratedIdentifier":Ie(this)?`Identifier '${dn(this)}'`:Vi(this)?`PrivateIdentifier '${dn(this)}'`:Sa(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:df(this)?`NumericLiteral ${this.text}`:OO(this)?`BigIntLiteral ${this.text}n`:_c(this)?"TypeParameterDeclaration":gs(this)?"ParameterDeclaration":Pc(this)?"ConstructorDeclaration":Yf(this)?"GetAccessorDeclaration":gf(this)?"SetAccessorDeclaration":Px(this)?"CallSignatureDeclaration":W8(this)?"ConstructSignatureDeclaration":T2(this)?"IndexSignatureDeclaration":U8(this)?"TypePredicateNode":Sp(this)?"TypeReferenceNode":ug(this)?"FunctionTypeNode":n6(this)?"ConstructorTypeNode":Dx(this)?"TypeQueryNode":hf(this)?"TypeLiteralNode":q8(this)?"ArrayTypeNode":wx(this)?"TupleTypeNode":BO(this)?"OptionalTypeNode":JO(this)?"RestTypeNode":Ly(this)?"UnionTypeNode":Ax(this)?"IntersectionTypeNode":Nx(this)?"ConditionalTypeNode":oS(this)?"InferTypeNode":cS(this)?"ParenthesizedTypeNode":H8(this)?"ThisTypeNode":lS(this)?"TypeOperatorNode":uS(this)?"IndexedAccessTypeNode":s6(this)?"MappedTypeNode":My(this)?"LiteralTypeNode":i6(this)?"NamedTupleMember":Qg(this)?"ImportTypeNode":fe(this.kind)}${this.flags?` (${ge(this.flags)})`:""}`}},__debugKind:{get(){return fe(this.kind)}},__debugNodeFlags:{get(){return ge(this.flags)}},__debugModifierFlags:{get(){return be(Bre(this))}},__debugTransformFlags:{get(){return xe(this.transformFlags)}},__debugIsParseTreeNode:{get(){return TE(this)}},__debugEmitFlags:{get(){return De(Oa(this))}},__debugGetText:{value(ni){if(qo(this))return"";let di=qe.get(this);if(di===void 0){const Gi=Ts(this),hs=Gi&&Mr(Gi);di=hs?n2(hs,Gi,ni):"",qe.set(this,di)}return di}}});Gt=!0}e.enableDebugInfo=ts;function Oi(Xt){const qe=Xt&7;let Nt=qe===0?"in out":qe===3?"[bivariant]":qe===2?"in":qe===1?"out":qe===4?"[independent]":"";return Xt&8?Nt+=" (unmeasurable)":Xt&16&&(Nt+=" (unreliable)"),Nt}e.formatVariance=Oi;class xs{__debugToString(){var qe;switch(this.kind){case 3:return((qe=this.debugInfo)==null?void 0:qe.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return Do(this.sources,this.targets||nr(this.sources,()=>"any"),(Nt,vr)=>`${Nt.__debugTypeToString()} -> ${typeof vr=="string"?vr:vr.__debugTypeToString()}`).join(", ");case 2:return Do(this.sources,this.targets,(Nt,vr)=>`${Nt.__debugTypeToString()} -> ${vr().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` `)}`;default:return B(this)}}}e.DebugTypeMapper=xs;function kr(Xt){return e.isDebugging?Object.setPrototypeOf(Xt,xs.prototype):Xt}e.attachDebugPrototypeIfDebug=kr;function xi(Xt){return console.log(hn(Xt))}e.printControlFlowGraph=xi;function hn(Xt){let qe=-1;function Nt(A){return A.id||(A.id=qe,qe--),A.id}let vr;(A=>{A.lr="─",A.ud="│",A.dr="╭",A.dl="╮",A.ul="╯",A.ur="╰",A.udr="├",A.udl="┤",A.dlr="┬",A.ulr="┴",A.udlr="╫"})(vr||(vr={}));let ni;(A=>{A[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"})(ni||(ni={}));const di=2032,Gi=882,hs=Object.create(null),sa=[],Da=tt(Xt,new Set);for(const A of sa)A.text=ir(A.flowNode,A.circular),$e(A);const mr=vt(Da),Pr=je(mr);return at(Da,0),ar();function Le(A){return!!(A.flags&128)}function st(A){return!!(A.flags&12)&&!!A.antecedents}function nt(A){return!!(A.flags&di)}function Tt(A){return!!(A.flags&Gi)}function ne(A){const le=[];for(const W of A.edges)W.source===A&&le.push(W.target);return le}function we(A){const le=[];for(const W of A.edges)W.target===A&&le.push(W.source);return le}function tt(A,le){const W=Nt(A);let ce=hs[W];if(ce&&le.has(A))return ce.circular=!0,ce={id:-1,flowNode:A,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},sa.push(ce),ce;if(le.add(A),!ce)if(hs[W]=ce={id:W,flowNode:A,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},sa.push(ce),st(A))for(const Ne of A.antecedents)j(ce,Ne,le);else nt(A)&&j(ce,A.antecedent,le);return le.delete(A),ce}function j(A,le,W){const ce=tt(le,W),Ne={source:A,target:ce};A.edges.push(Ne),ce.edges.push(Ne)}function $e(A){if(A.level!==-1)return A.level;let le=0;for(const W of we(A))le=Math.max(le,$e(W)+1);return A.level=le}function vt(A){let le=0;for(const W of ne(A))le=Math.max(le,vt(W));return le+1}function je(A){const le=Pe(Array(A),0);for(const W of sa)le[W.level]=Math.max(le[W.level],W.text.length);return le}function at(A,le){if(A.lane===-1){A.lane=le,A.endLane=le;const W=ne(A);for(let ce=0;ce<W.length;ce++){ce>0&&le++;const Ne=W[ce];at(Ne,le),Ne.endLane>A.endLane&&(le=Ne.endLane)}A.endLane=le}}function Ft(A){if(A&2)return"Start";if(A&4)return"Branch";if(A&8)return"Loop";if(A&16)return"Assignment";if(A&32)return"True";if(A&64)return"False";if(A&128)return"SwitchClause";if(A&256)return"ArrayMutation";if(A&512)return"Call";if(A&1024)return"ReduceLabel";if(A&1)return"Unreachable";throw new Error}function ur(A){const le=Mr(A);return n2(le,A,!1)}function ir(A,le){let W=Ft(A.flags);if(le&&(W=`${W}#${Nt(A)}`),Tt(A))A.node&&(W+=` (${ur(A.node)})`);else if(Le(A)){const ce=[];for(let Ne=A.clauseStart;Ne<A.clauseEnd;Ne++){const Ce=A.switchStatement.caseBlock.clauses[Ne];B3(Ce)?ce.push("default"):ce.push(ur(Ce.expression))}W+=` (${ce.join(", ")})`}return le==="circularity"?`Circular(${W})`:W}function ar(){const A=Pr.length,le=sa.reduce((dt,Pt)=>Math.max(dt,Pt.lane),0)+1,W=Pe(Array(le),""),ce=Pr.map(()=>Array(le)),Ne=Pr.map(()=>Pe(Array(le),0));for(const dt of sa){ce[dt.level][dt.lane]=dt;const Pt=ne(dt);for(let fr=0;fr<Pt.length;fr++){const Fr=Pt[fr];let jr=8;Fr.lane===dt.lane&&(jr|=4),fr>0&&(jr|=1),fr<Pt.length-1&&(jr|=2),Ne[dt.level][Fr.lane]|=jr}Pt.length===0&&(Ne[dt.level][dt.lane]|=16);const Ut=we(dt);for(let fr=0;fr<Ut.length;fr++){const Fr=Ut[fr];let jr=4;fr>0&&(jr|=1),fr<Ut.length-1&&(jr|=2),Ne[dt.level-1][Fr.lane]|=jr}}for(let dt=0;dt<A;dt++)for(let Pt=0;Pt<le;Pt++){const Ut=dt>0?Ne[dt-1][Pt]:0,fr=Pt>0?Ne[dt][Pt-1]:0;let Fr=Ne[dt][Pt];Fr||(Ut&8&&(Fr|=12),fr&2&&(Fr|=3),Ne[dt][Pt]=Fr)}for(let dt=0;dt<A;dt++)for(let Pt=0;Pt<W.length;Pt++){const Ut=Ne[dt][Pt],fr=Ut&4?"─":" ",Fr=ce[dt][Pt];Fr?(Ce(Pt,Fr.text),dt<A-1&&(Ce(Pt," "),Ce(Pt,Et(fr,Pr[dt]-Fr.text.length)))):dt<A-1&&Ce(Pt,Et(fr,Pr[dt]+1)),Ce(Pt,V(Ut)),Ce(Pt,Ut&8&&dt<A-1&&!ce[dt+1][Pt]?"─":" ")}return` ${W.join(` `)} `;function Ce(dt,Pt){W[dt]+=Pt}}function V(A){switch(A){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 Pe(A,le){if(A.fill)A.fill(le);else for(let W=0;W<A.length;W++)A[W]=le;return A}function Et(A,le){if(A.repeat)return le>0?A.repeat(le):"";let W="";for(;W.length<le;)W+=A;return W}}e.formatControlFlowGraph=hn})(E||(E={}))}});function R0e(e){const t=B0e.exec(e);if(!t)return;const[,n,i="0",s="0",o="",c=""]=t;if(!(o&&!J0e.test(o))&&!(c&&!V0e.test(c)))return{major:parseInt(n,10),minor:parseInt(i,10),patch:parseInt(s,10),prerelease:o,build:c}}function MFe(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;const n=Math.min(e.length,t.length);for(let i=0;i<n;i++){const s=e[i],o=t[i];if(s===o)continue;const c=dee.test(s),u=dee.test(o);if(c||u){if(c!==u)return c?-1:1;const f=Yo(+s,+o);if(f)return f}else{const f=Ju(s,o);if(f)return f}}return Yo(e.length,t.length)}function j0e(e){const t=[];for(let n of e.trim().split(U0e)){if(!n)continue;const i=[];n=n.trim();const s=G0e.exec(n);if(s){if(!RFe(s[1],s[2],i))return}else for(const o of n.split(q0e)){const c=$0e.exec(o.trim());if(!c||!jFe(c[1],c[2],i))return}t.push(i)}return t}function pee(e){const t=H0e.exec(e);if(!t)return;const[,n,i="*",s="*",o,c]=t;return{version:new ld(Bp(n)?0:parseInt(n,10),Bp(n)||Bp(i)?0:parseInt(i,10),Bp(n)||Bp(i)||Bp(s)?0:parseInt(s,10),o,c),major:n,minor:i,patch:s}}function RFe(e,t,n){const i=pee(e);if(!i)return!1;const s=pee(t);return s?(Bp(i.major)||n.push(eg(">=",i.version)),Bp(s.major)||n.push(Bp(s.minor)?eg("<",s.version.increment("major")):Bp(s.patch)?eg("<",s.version.increment("minor")):eg("<=",s.version)),!0):!1}function jFe(e,t,n){const i=pee(t);if(!i)return!1;const{version:s,major:o,minor:c,patch:u}=i;if(Bp(o))(e==="<"||e===">")&&n.push(eg("<",ld.zero));else switch(e){case"~":n.push(eg(">=",s)),n.push(eg("<",s.increment(Bp(c)?"major":"minor")));break;case"^":n.push(eg(">=",s)),n.push(eg("<",s.increment(s.major>0||Bp(c)?"major":s.minor>0||Bp(u)?"minor":"patch")));break;case"<":case">=":n.push(Bp(c)||Bp(u)?eg(e,s.with({prerelease:"0"})):eg(e,s));break;case"<=":case">":n.push(Bp(c)?eg(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):Bp(u)?eg(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):eg(e,s));break;case"=":case void 0:Bp(c)||Bp(u)?(n.push(eg(">=",s.with({prerelease:"0"}))),n.push(eg("<",s.increment(Bp(c)?"major":"minor").with({prerelease:"0"})))):n.push(eg("=",s));break;default:return!1}return!0}function Bp(e){return e==="*"||e==="x"||e==="X"}function eg(e,t){return{operator:e,operand:t}}function BFe(e,t){if(t.length===0)return!0;for(const n of t)if(JFe(e,n))return!0;return!1}function JFe(e,t){for(const n of t)if(!zFe(e,n.operator,n.operand))return!1;return!0}function zFe(e,t,n){const i=e.compareTo(n);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return E.assertNever(t)}}function VFe(e){return nr(e,WFe).join(" || ")||"*"}function WFe(e){return nr(e,UFe).join(" ")}function UFe(e){return`${e.operator}${e.operand}`}var B0e,J0e,z0e,V0e,W0e,dee,BB,ld,RD,U0e,q0e,H0e,G0e,$0e,qFe=Ue({"src/compiler/semver.ts"(){$s(),B0e=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,J0e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,z0e=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,V0e=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,W0e=/^[a-z0-9-]+$/i,dee=/^(0|[1-9]\d*)$/,BB=class d7{constructor(t,n=0,i=0,s="",o=""){typeof t=="string"&&({major:t,minor:n,patch:i,prerelease:s,build:o}=E.checkDefined(R0e(t),"Invalid version")),E.assert(t>=0,"Invalid argument: major"),E.assert(n>=0,"Invalid argument: minor"),E.assert(i>=0,"Invalid argument: patch");const c=s?Ss(s)?s:s.split("."):We,u=o?Ss(o)?o:o.split("."):We;E.assert(si(c,f=>z0e.test(f)),"Invalid argument: prerelease"),E.assert(si(u,f=>W0e.test(f)),"Invalid argument: build"),this.major=t,this.minor=n,this.patch=i,this.prerelease=c,this.build=u}static tryParse(t){const n=R0e(t);if(!n)return;const{major:i,minor:s,patch:o,prerelease:c,build:u}=n;return new d7(i,s,o,c,u)}compareTo(t){return this===t?0:t===void 0?1:Yo(this.major,t.major)||Yo(this.minor,t.minor)||Yo(this.patch,t.patch)||MFe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new d7(this.major+1,0,0);case"minor":return new d7(this.major,this.minor+1,0);case"patch":return new d7(this.major,this.minor,this.patch+1);default:return E.assertNever(t)}}with(t){const{major:n=this.major,minor:i=this.minor,patch:s=this.patch,prerelease:o=this.prerelease,build:c=this.build}=t;return new d7(n,i,s,o,c)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return _t(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),_t(this.build)&&(t+=`+${this.build.join(".")}`),t}},BB.zero=new BB(0,0,0,["0"]),ld=BB,RD=class oFe{constructor(t){this._alternatives=t?E.checkDefined(j0e(t),"Invalid range spec."):We}static tryParse(t){const n=j0e(t);if(n){const i=new oFe("");return i._alternatives=n,i}}test(t){return typeof t=="string"&&(t=new ld(t)),BFe(t,this._alternatives)}toString(){return VFe(this._alternatives)}},U0e=/\|\|/g,q0e=/\s+/g,H0e=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,G0e=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,$0e=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Q0e(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function HFe(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Q0e(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function GFe(){if(OB())try{const{performance:e,PerformanceObserver:t}=Qk;if(Q0e(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function mee(){return JB}var JB,gee,Uo,$Fe=Ue({"src/compiler/performanceCore.ts"(){$s(),JB=HFe()||GFe(),gee=JB==null?void 0:JB.performance,Uo=gee?()=>gee.now():Date.now?Date.now:()=>+new Date}}),w7,t_,QFe=Ue({"src/compiler/perfLogger.ts"(){try{const e=ht.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";w7=R5e(e)}catch{w7=void 0}t_=w7!=null&&w7.logEvent?w7:void 0}});function X0e(e,t,n,i){return e?zB(t,n,i):VB}function zB(e,t,n){let i=0;return{enter:s,exit:o};function s(){++i===1&&Zo(t)}function o(){--i===0?(Zo(n),$f(e,t,n)):i<0&&E.fail("enter/exit count does not match.")}}function Zo(e){if(rC){const t=fE.get(e)??0;fE.set(e,t+1),nC.set(e,Uo()),Fb==null||Fb.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function $f(e,t,n){if(rC){const i=(n!==void 0?nC.get(n):void 0)??Uo(),s=(t!==void 0?nC.get(t):void 0)??hee,o=iC.get(e)||0;iC.set(e,o+(i-s)),Fb==null||Fb.measure(e,t,n)}}function XFe(e){return fE.get(e)||0}function YFe(e){return iC.get(e)||0}function ZFe(e){iC.forEach((t,n)=>e(n,t))}function KFe(e){nC.forEach((t,n)=>e(n))}function eOe(e){e!==void 0?iC.delete(e):iC.clear(),Fb==null||Fb.clearMeasures(e)}function tOe(e){e!==void 0?(fE.delete(e),nC.delete(e)):(fE.clear(),nC.clear()),Fb==null||Fb.clearMarks(e)}function rOe(){return rC}function nOe(e=fu){var t;return rC||(rC=!0,jD||(jD=mee()),jD&&(hee=jD.performance.timeOrigin,(jD.shouldWriteNativeEvents||(t=e==null?void 0:e.cpuProfilingEnabled)!=null&&t.call(e)||e!=null&&e.debugMode)&&(Fb=jD.performance))),!0}function iOe(){rC&&(nC.clear(),fE.clear(),iC.clear(),Fb=void 0,rC=!1)}var jD,Fb,VB,rC,hee,nC,fE,iC,sOe=Ue({"src/compiler/performance.ts"(){$s(),VB={enter:Va,exit:Va},rC=!1,hee=Uo(),nC=new Map,fE=new Map,iC=new Map}}),yee={};bn(yee,{clearMarks:()=>tOe,clearMeasures:()=>eOe,createTimer:()=>zB,createTimerIf:()=>X0e,disable:()=>iOe,enable:()=>nOe,forEachMark:()=>KFe,forEachMeasure:()=>ZFe,getCount:()=>XFe,getDuration:()=>YFe,isEnabled:()=>rOe,mark:()=>Zo,measure:()=>$f,nullTimer:()=>VB});var Ob=Ue({"src/compiler/_namespaces/ts.performance.ts"(){sOe()}}),Zr,BD,vee,bee,aOe=Ue({"src/compiler/tracing.ts"(){$s(),Ob(),(e=>{let t,n=0,i=0,s;const o=[];let c;const u=[];function f(re,R,Y){if(E.assert(!Zr,"Tracing already started"),t===void 0)try{t=Qk}catch(ee){throw new Error(`tracing requires having fs (original error: ${ee.message||ee})`)}s=re,o.length=0,c===void 0&&(c=Hn(R,"legend.json")),t.existsSync(R)||t.mkdirSync(R,{recursive:!0});const ue=s==="build"?`.${process.pid}-${++n}`:s==="server"?`.${process.pid}`:"",de=Hn(R,`trace${ue}.json`),H=Hn(R,`types${ue}.json`);u.push({configFilePath:Y,tracePath:de,typesPath:H}),i=t.openSync(de,"w"),Zr=e;const q={cat:"__metadata",ph:"M",ts:1e3*Uo(),pid:1,tid:1};t.writeSync(i,`[ `+[{name:"process_name",args:{name:"tsc"},...q},{name:"thread_name",args:{name:"Main"},...q},{name:"TracingStartedInBrowser",...q,cat:"disabled-by-default-devtools.timeline"}].map(ee=>JSON.stringify(ee)).join(`, `))}e.startTracing=f;function g(){E.assert(Zr,"Tracing is not in progress"),E.assert(!!o.length==(s!=="server")),t.writeSync(i,` ] `),t.closeSync(i),Zr=void 0,o.length?Q(o):u[u.length-1].typesPath=void 0}e.stopTracing=g;function d(re){s!=="server"&&o.push(re)}e.recordType=d,(re=>{re.Parse="parse",re.Program="program",re.Bind="bind",re.Check="check",re.CheckTypes="checkTypes",re.Emit="emit",re.Session="session"})(e.Phase||(e.Phase={}));function y(re,R,Y){J("I",re,R,Y,'"s":"g"')}e.instant=y;const S=[];function T(re,R,Y,ue=!1){ue&&J("B",re,R,Y),S.push({phase:re,name:R,args:Y,time:1e3*Uo(),separateBeginAndEnd:ue})}e.push=T;function k(re){E.assert(S.length>0),F(S.length-1,1e3*Uo(),re),S.length--}e.pop=k;function w(){const re=1e3*Uo();for(let R=S.length-1;R>=0;R--)F(R,re);S.length=0}e.popAll=w;const D=1e3*10;function F(re,R,Y){const{phase:ue,name:de,args:H,time:q,separateBeginAndEnd:ee}=S[re];ee?(E.assert(!Y,"`results` are not supported for events with `separateBeginAndEnd`"),J("E",ue,de,H,void 0,R)):D-q%D<=R-q&&J("X",ue,de,{...H,results:Y},`"dur":${R-q}`,q)}function J(re,R,Y,ue,de,H=1e3*Uo()){s==="server"&&R==="checkTypes"||(Zo("beginTracing"),t.writeSync(i,`, {"pid":1,"tid":1,"ph":"${re}","cat":"${R}","ts":${H},"name":"${Y}"`),de&&t.writeSync(i,`,${de}`),ue&&t.writeSync(i,`,"args":${JSON.stringify(ue)}`),t.writeSync(i,"}"),Zo("endTracing"),$f("Tracing","beginTracing","endTracing"))}function U(re){const R=Mr(re);return R?{path:R.path,start:Y(_o(R,re.pos)),end:Y(_o(R,re.end))}:void 0;function Y(ue){return{line:ue.line+1,character:ue.character+1}}}function Q(re){var R,Y,ue,de,H,q,ee,oe,Se,ae,K,fe,ke,Oe,ge,be,xe,De,mt;Zo("beginDumpTypes");const he=u[u.length-1].typesPath,Fe=t.openSync(he,"w"),Qe=new Map;t.writeSync(Fe,"[");const It=re.length;for(let lt=0;lt<It;lt++){const Be=re[lt],gt=Be.objectFlags,qt=Be.aliasSymbol??Be.symbol;let Gt;if(gt&16|Be.flags&2944)try{Gt=(R=Be.checker)==null?void 0:R.typeToString(Be)}catch{Gt=void 0}let xr={};if(Be.flags&8388608){const kr=Be;xr={indexedAccessObjectType:(Y=kr.objectType)==null?void 0:Y.id,indexedAccessIndexType:(ue=kr.indexType)==null?void 0:ue.id}}let Vr={};if(gt&4){const kr=Be;Vr={instantiatedType:(de=kr.target)==null?void 0:de.id,typeArguments:(H=kr.resolvedTypeArguments)==null?void 0:H.map(xi=>xi.id),referenceLocation:U(kr.node)}}let or={};if(Be.flags&16777216){const kr=Be;or={conditionalCheckType:(q=kr.checkType)==null?void 0:q.id,conditionalExtendsType:(ee=kr.extendsType)==null?void 0:ee.id,conditionalTrueType:((oe=kr.resolvedTrueType)==null?void 0:oe.id)??-1,conditionalFalseType:((Se=kr.resolvedFalseType)==null?void 0:Se.id)??-1}}let zt={};if(Be.flags&33554432){const kr=Be;zt={substitutionBaseType:(ae=kr.baseType)==null?void 0:ae.id,constraintType:(K=kr.constraint)==null?void 0:K.id}}let Jt={};if(gt&1024){const kr=Be;Jt={reverseMappedSourceType:(fe=kr.source)==null?void 0:fe.id,reverseMappedMappedType:(ke=kr.mappedType)==null?void 0:ke.id,reverseMappedConstraintType:(Oe=kr.constraintType)==null?void 0:Oe.id}}let pi={};if(gt&256){const kr=Be;pi={evolvingArrayElementType:kr.elementType.id,evolvingArrayFinalType:(ge=kr.finalArrayType)==null?void 0:ge.id}}let ts;const Oi=Be.checker.getRecursionIdentity(Be);Oi&&(ts=Qe.get(Oi),ts||(ts=Qe.size,Qe.set(Oi,ts)));const xs={id:Be.id,intrinsicName:Be.intrinsicName,symbolName:(qt==null?void 0:qt.escapedName)&&ji(qt.escapedName),recursionId:ts,isTuple:gt&8?!0:void 0,unionTypes:Be.flags&1048576?(be=Be.types)==null?void 0:be.map(kr=>kr.id):void 0,intersectionTypes:Be.flags&2097152?Be.types.map(kr=>kr.id):void 0,aliasTypeArguments:(xe=Be.aliasTypeArguments)==null?void 0:xe.map(kr=>kr.id),keyofType:Be.flags&4194304?(De=Be.type)==null?void 0:De.id:void 0,...xr,...Vr,...or,...zt,...Jt,...pi,destructuringPattern:U(Be.pattern),firstDeclaration:U((mt=qt==null?void 0:qt.declarations)==null?void 0:mt[0]),flags:E.formatTypeFlags(Be.flags).split("|"),display:Gt};t.writeSync(Fe,JSON.stringify(xs)),lt<It-1&&t.writeSync(Fe,`, `)}t.writeSync(Fe,`] `),t.closeSync(Fe),Zo("endDumpTypes"),$f("Dump types","beginDumpTypes","endDumpTypes")}function B(){c&&t.writeFileSync(c,JSON.stringify(u))}e.dumpLegend=B})(BD||(BD={})),vee=BD.startTracing,bee=BD.dumpLegend}});function Lb(e,t=!0){const n=zD[e.category];return t?n.toLowerCase():n}var A7,N7,I7,WB,F7,O7,UB,JD,qB,sC,L7,HB,GB,M7,$B,QB,XB,YB,ZB,KB,eJ,tJ,rJ,nJ,iJ,R7,sJ,aJ,oJ,cJ,j7,B7,lJ,uJ,_J,fJ,pJ,dJ,J7,mJ,gJ,hJ,yJ,vJ,bJ,zD,aC,SJ,TJ,xJ,kJ,pE,CJ,EJ,PJ,z7,DJ,wJ,AJ,NJ,IJ,V7,W7,U7,FJ,OJ,LJ,MJ,RJ,jJ,BJ,JJ,VD,zJ,Y0e=Ue({"src/compiler/types.ts"(){A7=(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